2013-12-29 Janus Weil <janus@gcc.gnu.org>
[official-gcc.git] / gcc / ChangeLog
blob5834df2d7c3ee8a33aa62122b5e252efd8afc2ad
1 2013-12-28  Eric Botcazou  <ebotcazou@adacore.com>
3         * doc/invoke.texi (output file options): Document -fada-spec-parent.
5 2013-12-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7             Sergey Lega  <sergey.s.lega@intel.com>
8             Anna Tikhonova  <anna.tikhonova@intel.com>
9             Ilya Tocar  <ilya.tocar@intel.com>
10             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11             Ilya Verbin  <ilya.verbin@intel.com>
12             Kirill Yukhin  <kirill.yukhin@intel.com>
13             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15         * config/i386/sse.md (avx512f_fixupimm<mode>_maskz): Extend to support
16         EVEX's RC.
17         (avx512f_sfixupimm<mode>_maskz): Ditto.
18         * config/i386/subst.md (round_saeonly_expand_name): New.
19         (round_saeonly_expand_nimm_predicate): Ditto.
20         (round_saeonly_expand_operand6): Ditto.
21         (round_saeonly_expand): Ditto.
23 2013-12-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
24             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
25             Sergey Lega  <sergey.s.lega@intel.com>
26             Anna Tikhonova  <anna.tikhonova@intel.com>
27             Ilya Tocar  <ilya.tocar@intel.com>
28             Andrey Turetskiy  <andrey.turetskiy@intel.com>
29             Ilya Verbin  <ilya.verbin@intel.com>
30             Kirill Yukhin  <kirill.yukhin@intel.com>
31             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
33         * config/i386/sse.md (avx512f_fmadd_<mode>_maskz): Extend to support
34         EVEX's RC.
35         (avx512f_fmaddsub_<mode>_maskz): Ditto.
36         * config/i386/subst.md (round_expand_name): New.
37         (round_expand_nimm_predicate): Ditto.
38         (round_expand_operand): Ditto.
39         (round_expand): Ditto.
41 2013-12-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
42             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
43             Sergey Lega  <sergey.s.lega@intel.com>
44             Anna Tikhonova  <anna.tikhonova@intel.com>
45             Ilya Tocar  <ilya.tocar@intel.com>
46             Andrey Turetskiy  <andrey.turetskiy@intel.com>
47             Ilya Verbin  <ilya.verbin@intel.com>
48             Kirill Yukhin  <kirill.yukhin@intel.com>
49             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
51         * config/i386/sse.md (<code><mode>3<mask_name>): Extend to support
52         EVEX's SAE mode.
53         (*<code><mode>3_finite<mask_name>): Ditto.
54         (*<code><mode>3<mask_name>): Ditto.
55         (avx512f_cmp<mode>3<mask_scalar_merge_name>): Ditto.
56         (avx512f_vmcmp<mode>3): Ditto.
57         (avx512f_vmcmp<mode>3_mask): Ditto.
58         (<sse>_comi): Ditto.
59         (<sse>_ucomi): Ditto.
60         (sse_cvttss2si): Ditto.
61         (sse_cvttss2siq): Ditto.
62         (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
63         (avx512f_vcvttss2usi): Ditto.
64         (avx512f_vcvttss2usiq): Ditto.
65         (avx512f_vcvttsd2usi): Ditto.
66         (avx512f_vcvttsd2usiq): Ditto.
67         (sse2_cvttsd2si): Ditto.
68         (sse2_cvttsd2siq): Ditto.
69         (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
70         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
71         (avx512f_getexp<mode><mask_name>): Ditto.
72         (avx512f_fixupimm<mode><sd_maskz_name>): Ditto.
73         (avx512f_fixupimm<mode>_mask): Ditto.
74         (avx512f_sfixupimm<mode><sd_maskz_name>): Ditto.
75         (avx512f_sfixupimm<mode>_mask): Ditto.
76         (avx512f_rndscale<mode><mask_name>): Ditto.
77         (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
78         (avx512f_getmant<mode><mask_name>): Ditto.
79         * config/i386/subst.md (round_saeonly_name): New.
80         (round_saeonly_mask_operand2): Ditto.
81         (round_saeonly_mask_operand3): Ditto.
82         (round_saeonly_mask_scalar_operand3): Ditto.
83         (round_saeonly_mask_scalar_operand4): Ditto.
84         (round_saeonly_mask_scalar_merge_operand4): Ditto.
85         (round_saeonly_sd_mask_operand5): Ditto.
86         (round_saeonly_op2): Ditto.
87         (round_saeonly_op4): Ditto.
88         (round_saeonly_op5): Ditto.
89         (round_saeonly_op6): Ditto.
90         (round_saeonly_mask_op2): Ditto.
91         (round_saeonly_mask_op3): Ditto.
92         (round_saeonly_mask_scalar_op3): Ditto.
93         (round_saeonly_mask_scalar_op4): Ditto.
94         (round_saeonly_mask_scalar_merge_op4): Ditto.
95         (round_saeonly_sd_mask_op5): Ditto.
96         (round_saeonly_constraint): Ditto.
97         (round_saeonly_constraint2): Ditto.
98         (round_saeonly_nimm_predicate): Ditto.
99         (round_saeonly_mode512bit_condition): Ditto.
100         (round_saeonly): Ditto.
102 2013-12-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
103             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
104             Sergey Lega  <sergey.s.lega@intel.com>
105             Anna Tikhonova  <anna.tikhonova@intel.com>
106             Ilya Tocar  <ilya.tocar@intel.com>
107             Andrey Turetskiy  <andrey.turetskiy@intel.com>
108             Ilya Verbin  <ilya.verbin@intel.com>
109             Kirill Yukhin  <kirill.yukhin@intel.com>
110             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
112         * config/i386/i386.c (ix86_print_operand): Print EVEX's RC modifiers.
113         * config/i386/i386.md (define_constants): Define EVEx's RC constants.
114         * gcc/config/i386/sse.md (<plusminus_insn><mode>3<mask_name>): Extend
115         to support EVEX's rounding control.
116         (*<plusminus_insn><mode>3<mask_name>): Ditto.
117         (mul<mode>3<mask_name>): Ditto.
118         (*mul<mode>3<mask_name>): Ditto.
119         (<sse>_div<mode>3<mask_name>): Ditto.
120         (<sse>_sqrt<mode>2<mask_name>): Ditto.
121         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>): Ditto.
122         (avx512f_fmadd_<mode>_mask): Ditto.
123         (avx512f_fmadd_<mode>_mask3): Ditto.
124         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>): Ditto.
125         (avx512f_fmsub_<mode>_mask): Ditto.
126         (avx512f_fmsub_<mode>_mask3): Ditto.
127         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>): Ditto.
128         (avx512f_fnmadd_<mode>_mask): Ditto.
129         (avx512f_fnmadd_<mode>_mask3): Ditto.
130         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>): Ditto.
131         (avx512f_fnmsub_<mode>_mask): Ditto.
132         (avx512f_fnmsub_<mode>_mask3): Ditto.
133         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name>): Ditto.
134         (avx512f_fmaddsub_<mode>_mask): Ditto.
135         (avx512f_fmaddsub_<mode>_mask3): Ditto.
136         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name>): Ditto.
137         (avx512f_fmsubadd_<mode>_mask): Ditto.
138         (avx512f_fmsubadd_<mode>_mask3): Ditto.
139         (fmai_vmfmadd_<mode>): Ditto.
140         (*fmai_fmadd_<mode>): Ditto.
141         (*fmai_fmsub_<mode>): Ditto.
142         (*fmai_fnmadd_<mode>): Ditto.
143         (*fmai_fnmsub_<mode>): Ditto.
144         (sse_cvtsi2ss): Ditto.
145         (sse_cvtsi2ssq): Ditto.
146         (sse_cvtss2si): Ditto.
147         (sse_cvtss2siq): Ditto.
148         (cvtusi2<ssescalarmodesuffix>32): Ditto.
149         (cvtusi2<ssescalarmodesuffix>64): Ditto.
150         (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
151         (ufloatv16siv16sf2<mask_name>): Ditto.
152         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
153         (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
154         (sse2_cvtsi2sdq): Ditto.
155         (avx512f_vcvtss2usi): Ditto.
156         (avx512f_vcvtss2usiq): Ditto.
157         (avx512f_vcvtsd2usi): Ditto.
158         (avx512f_vcvtsd2usiq): Ditto.
159         (sse2_cvtsd2si): Ditto.
160         (sse2_cvtsd2siq): Ditto.
161         (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
162         (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
163         (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
164         (avx512f_scalef<mode><mask_name>): Ditto.
165         (<code><mode>3<mask_name>): Ditto.
166         (*avx2_<code><mode>3<mask_name>): Ditto.
167         (avx512er_exp2<mode><mask_name): Ditto.
168         (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
169         (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
170         (avx512f_fmadd_<mode>_maskz): New.
171         * config/i386/subst.md (SUBST_A): New.
172         (round_name): Ditto.
173         (round_mask_operand2): Ditto.
174         (round_mask_operand3): Ditto.
175         (round_mask_scalar_operand3): Ditto.
176         (round_sd_mask_operand4): Ditto.
177         (round_op2): Ditto.
178         (round_op3): Ditto.
179         (round_op4): Ditto.
180         (round_op5): Ditto.
181         (round_op6): Ditto.
182         (round_mask_op2): Ditto.
183         (round_mask_op3): Ditto.
184         (round_mask_scalar_op3): Ditto.
185         (round_sd_mask_op4): Ditto.
186         (round_constraint): Ditto.
187         (round_constraint2): Ditto.
188         (round_constraint3): Ditto.
189         (round_nimm_predicate): Ditto.
190         (round_mode512bit_condition): Ditto.
191         (round_modev4sf_condition): Ditto.
192         (round_codefor): Ditto.
193         (round_opnum): Ditto.
194         (round): Ditto.
196 2013-12-26   H.J. Lu  <hongjiu.lu@intel.com>
198         PR target/59588
199         * config/i386/i386.c (ix86_option_override_internal): Don't
200         check generic tuning.  Don't change i686 tuning.
202 2013-12-26   H.J. Lu  <hongjiu.lu@intel.com>
204         PR target/59601
205         * config/i386/i386.c (get_builtin_code_for_version): Map
206         PROCESSOR_NEHALEM to "corei7".
208 2013-12-26  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
210         * config/i386/i386.c (get_builtin_code_for_version): Rename AMD 
211         CPU names M_AMD_BOBCAT to M_AMD_BTVER1 and M_AMD_JAGUAR 
212         to M_AMD_BTVER2.
213         (processor_model): Likewise.
214         (arch_names_table): Likewise.
216 2013-12-26  Uros Bizjak  <ubizjak@gmail.com>
218         * config/i386/driver-i386.c (decode_caches_intel): Add missing entries.
220 2013-12-25   H.J. Lu  <hongjiu.lu@intel.com>
222         PR target/59587
223         * config/i386/i386.c (struct ptt): Add a field for processor name.
224         (processor_target_table): Sync with processor_type.
225         Add processor names.
226         (cpu_names): Removed.
227         (ix86_option_override_internal): Default x_ix86_tune_string
228         to processor_target_table[TARGET_CPU_DEFAULT].name.
229         (ix86_function_specific_print): Assert arch and tune < PROCESSOR_max.
230         Use processor_target_table to print arch and tune names.
231         * config/i386/i386.h (TARGET_CPU_DEFAULT): Default to
232         PROCESSOR_GENERIC.
233         (target_cpu_default): Removed.
234         (processor_type): Reordered.
236 2013-12-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
237             H.J. Lu  <hongjiu.lu@intel.com>
239         PR target/59422
240         * config/i386/i386.c (get_builtin_code_for_version): Handle
241         PROCESSOR_HASWELL, PROCESSOR_SILVERMONT, PROCESSOR_BTVER1,
242         PROCESSOR_BTVER2, PROCESSOR_BDVER3 and PROCESSOR_BDVER4.
243         Change priority of PROCESSOR_BDVER1 to P_PROC_XOP.
244         (fold_builtin_cpu): Add "ivybridge", "haswell", "bonnell",
245         "silvermont", "bobcat" and "jaguar" CPU names.  Add "sse4a",
246         "fma4", "xop" and "fma" ISA names.
248 2013-12-24   H.J. Lu  <hongjiu.lu@intel.com>
250         * config/i386/i386.c (ix86_option_override_internal): Check
251         opts->x_ix86_arch_string instead of ix86_arch_string.
253 2013-12-24  Renlin Li  <Renlin.Li@arm.com>
255         * config/arm/arm-protos.h (vfp_const_double_for_bits): Declare.
256         * config/arm/constraints.md (Dp): Define new constraint.
257         * config/arm/predicates.md (const_double_vcvt_power_of_two): Define
258         new predicate.
259         * config/arm/arm.c (arm_print_operand): Add print for new fucntion.
260         (vfp3_const_double_for_bits): New function.
261         * config/arm/vfp.md (combine_vcvtf2i): Define new instruction.
263 2013-12-23  Hans-Peter Nilsson  <hp@axis.com>
265         PR target/59203
266         * config/cris/cris.c (cris_pic_symbol_type_of): Fix typo,
267         checking t1 twice instead of t1 and t2 respectively.
269         PR middle-end/59584
270         * config/cris/predicates.md (cris_nonsp_register_operand):
271         New define_predicate.
272         * config/cris/cris.md: Replace register_operand with
273         cris_nonsp_register_operand for destinations in all
274         define_splits where a register is set more than once.
276 2013-12-23  Jason Merrill  <jason@redhat.com>
278         * gdbinit.in (input_line, input_filename): Define.
280         * cgraph.h (struct cgraph_node): Add calls_comdat_local.
281         (symtab_comdat_local_p, symtab_in_same_comdat_p): New.
282         * cif-code.def: Add USES_COMDAT_LOCAL.
283         * symtab.c (verify_symtab_base): Make sure we don't refer to a
284         comdat-local symbol from outside its comdat.
285         * cgraph.c (verify_cgraph_node): Likewise.
286         * cgraphunit.c (mark_functions_to_output): Don't mark comdat-locals.
287         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
288         (function_and_variable_visibility): Handle comdat-local fns.
289         * ipa-cp.c (determine_versionability): Don't clone comdat-locals.
290         * ipa-inline-analysis.c (compute_inline_parameters): Update
291         calls_comdat_local.
292         * ipa-inline-transform.c (inline_call): Likewise.
293         (save_inline_function_body): Don't clear DECL_COMDAT_GROUP.
294         * ipa-inline.c (can_inline_edge_p): Check calls_comdat_local.
295         * lto-cgraph.c (input_overwrite_node): Read calls_comdat_local.
296         (lto_output_node): Write it.
297         * symtab.c (symtab_dissolve_same_comdat_group_list): Clear
298         DECL_COMDAT_GROUP for comdat-locals.
300 2013-12-23   H.J. Lu  <hongjiu.lu@intel.com>
302         * config/i386/i386.c (processor_target_table): Move Bonnell and
303         Silvermont entries before generic.
305 2013-12-23  Bingfeng Mei  <bmei@broadcom.com>
307         PR middle-end/59569
308         * tree-vect-stmts.c (vectorizable_store): Skip permutation for
309         consant/external operand, and add a few missing \n.
311 2013-12-23   H.J. Lu  <hongjiu.lu@intel.com>
312              Tocar Ilya  <ilya.tocar@intel.com>
314         * config/i386/core2.md: Replace corei7 with nehalem.
316         * config/i386/driver-i386.c (host_detect_local_cpu): Use nehalem,
317         westmere, sandybridge, ivybridge, haswell, bonnell, silvermont
318         for cpu names.
320         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
321         PROCESSOR_COREI7, PROCESSOR_COREI7_AVX, PROCESSOR_ATOM,
322         PROCESSOR_SLM with PROCESSOR_NEHALEM, PROCESSOR_SANDYBRIDGE,
323         PROCESSOR_BONNELL, PROCESSOR_SILVERMONT.  Define
324         __nehalem/__nehalem__, __sandybridge/__sandybridge__,
325         __haswell/__haswell__, __tune_nehalem__, __tune_sandybridge__,
326         __tune_haswell__, __bonnell/__bonnell__,
327         __silvermont/__silvermont__, __tune_bonnell__,
328         __tune_silvermont__.
330         * config/i386/i386.c (m_COREI7): Renamed to ...
331         (m_NEHALEM): This.
332         (m_COREI7_AVX): Renamed to ...
333         (m_SANDYBRIDGE): This.
334         (m_ATOM): Renamed to ...
335         (m_BONNELL): This.
336         (m_SLM): Renamed to ...
337         (m_SILVERMONT): This.
338         (m_CORE_ALL): Updated.
339         (cpu_names): Add "nehalem", "westmere", "sandybridge",
340         "ivybridge", "haswell", "broadwell", "bonnell", "silvermont".
341         (PTA_CORE2): New.
342         (PTA_NEHALEM): Likewise.
343         (PTA_WESTMERE): Likewise.
344         (PTA_SANDYBRIDGE): Likewise.
345         (PTA_IVYBRIDGE): Likewise.
346         (PTA_HASWELL): Likewise.
347         (PTA_BROADWELL): Likewise.
348         (PTA_BONNELL): Likewise.
349         (PTA_SILVERMONT): Likewise.
350         (ix86_option_override_internal): Use new PTA_XXX.  Add nehalem,
351         westmere, sandybridge, ivybridge, haswell, bonnell, silvermont.
352         (ix86_lea_outperforms): Updated.
353         (ix86_issue_rate): Likewise.
354         (ix86_adjust_cost): Likewise.
355         (ia32_multipass_dfa_lookahead): Likewise.
356         (do_reorder_for_imul): Likewise.
357         (swap_top_of_ready_list): Likewise.
358         (ix86_sched_reorder): Likewise.
359         (ix86_sched_init_global): Likewise.
360         (get_builtin_code_for_version): Likewise.
361         (processor_model): Replace M_INTEL_ATOM, M_INTEL_SLM with
362         M_INTEL_BONNELL, M_INTEL_SILVERMONT.
363         (arch_names_table): Updated.
365         * config/i386/i386.h (TARGET_COREI7): Removed.
366         (TARGET_COREI7_AVX): Likewise.
367         (TARGET_ATOM): Likewise.
368         (TARGET_SLM): Likewise.
369         (TARGET_NEHALEM): New.
370         (TARGET_SANDYBRIDGE): Likewise.
371         (TARGET_BONNELL): Likewise.
372         (TARGET_SILVERMONT): Likewise.
373         (target_cpu_default): Add TARGET_CPU_DEFAULT_core_avx2,
374         TARGET_CPU_DEFAULT_nehalem, TARGET_CPU_DEFAULT_westmere,
375         TARGET_CPU_DEFAULT_sandybridge, TARGET_CPU_DEFAULT_ivybridge,
376         TARGET_CPU_DEFAULT_broadwell, TARGET_CPU_DEFAULT_bonnell,
377         TARGET_CPU_DEFAULT_silvermont.  Move TARGET_CPU_DEFAULT_haswell
378         before TARGET_CPU_DEFAULT_broadwell.
379         (processor_type): Replace PROCESSOR_COREI7, PROCESSOR_COREI7_AVX,
380         PROCESSOR_ATOM, PROCESSOR_SLM with PROCESSOR_NEHALEM,
381         PROCESSOR_SANDYBRIDGE, PROCESSOR_BONNELL, PROCESSOR_SILVERMONT.
383         * config/i386/i386.md (cpu): Replace corei7 with nehalem.
385         * config/i386/x86-tune.def: Updated.
387         * doc/invoke.texi: Replace corei7, corei7-avx, core-avx-i,
388         core-avx2, atom, slm with nehalem, sandybridge, ivybridge,
389         haswell, bonnel, silvermont.  Add westmere.
391 2013-12-23  Andrey Belevantsev  <abel@ispras.ru>
393         PR rtl-optimization/57422
394         * sel-sched.c (fill_vec_av_set): Assert that the fence insn
395         can always be scheduled in its current form.
397 2013-12-23  Andrey Belevantsev  <abel@ispras.ru>
399         PR rtl-optimization/57422
400         * sel-sched.c (mark_unavailable_hard_regs): Fix typo when calling
401         add_to_hard_reg_set.
403 2013-12-20  Sharad Singhai  <singhai@google.com>
405         * Makefile.in: Add optinfo.texi.
406         * doc/invoke.texi: Fix typo.
407         * doc/optinfo.texi: New documentation for optimization info.
408         * doc/passes.texi: Add new node.
410 2013-12-20  Trevor saunders  <tsaunders@mozilla.com>
412         * vec.h (stack_vec): Convert to a templaate specialization of
413         auto_vec.
414         * config/i386/i386.c, df-scan.c, function.c, genautomata.c,
415         gimplify.c, graphite-clast-to-gimple.c, graphite-dependences.c,
416         graphite-scop-detection.c, graphite-sese-to-poly.c, hw-doloop.c,
417         trans-mem.c, tree-call-cdce.c, tree-data-ref.c, tree-dfa.c,
418         tree-if-conv.c, tree-inline.c, tree-loop-distribution.c,
419         tree-parloops.c, tree-predcom.c, tree-ssa-alias.c,
420         tree-ssa-loop-ivcanon.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
421         tree-ssa-uncprop.c, tree-vect-loop.c, tree-vect-patterns.c,
422         tree-vect-slp.c, tree-vect-stmts.c, var-tracking.c: Adjust.
424 2013-12-20  Eric Botcazou  <ebotcazou@adacore.com>
426         * config/arm/arm.c (arm_expand_prologue): In a nested APCS frame with
427         arguments to push onto the stack and no varargs, save ip into the last
428         stack slot if r3 isn't available on entry.
430 2013-12-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
432         * config/arm/neon.ml (crypto_intrinsics): Add vceq_64 and vtst_p64.
433         * config/arm/arm_neon.h: Regenerate.
434         * config/arm/neon-docgen.ml: Add vceq_p64 and vtst_p64.
435         * doc/arm-neon-intrinsics.texi: Regenerate.
437 2013-12-20  Vladimir Makarov  <vmakarov@redhat.com>
439         * config/arm/arm.h (THUMB_SECONDARY_OUTPUT_RELOAD_CLASS): Return
440         NO_REGS for LRA.
442 2013-12-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
444         * config/arm/arm_acle.h: Add underscores before variables.
446 2013-12-20  Bingfeng Mei  <bmei@broadcom.com>
448         PR tree-optimization/59544
449         * tree-vect-stmts.c (perm_mask_for_reverse): Move before
450         vectorizable_store.
451         (vectorizable_store): Handle negative step.
453 2013-12-20  Tocar Ilya  <ilya.tocar@intel.com>
455         * config.gcc: Support march=broadwell.
456         * config/i386/driver-i386.c (host_detect_local_cpu): Detect Broadwell.
457         * config/i386/i386.c (ix86_option_override_internal): Add broadwell.
458         * doc/invoke.texi: Document march=broadwell.
460 2013-12-20  Jakub Jelinek  <jakub@redhat.com>
462         * ubsan.c: Include tree-ssanames.h, asan.h and gimplify-me.h.
463         (ubsan_type_descriptor): Handle BOOLEAN_TYPE and ENUMERAL_TYPE
464         like INTEGER_TYPE.
465         (instrument_bool_enum_load): New function.
466         (ubsan_pass): Call it.
467         (gate_ubsan): Also enable for SANITIZE_BOOL or SANITIZE_ENUM.
468         * asan.c (create_cond_insert_point): No longer static.
469         * asan.h (create_cond_insert_point): Declare.
470         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE): New
471         built-in.
472         * opts.c (common_handle_option): Handle -fsanitize=bool and
473         -fsanitize=enum.
474         * builtins.c (fold_builtin_memory_op): When sanitizing bool
475         and enum loads, don't use enum or bool types for memcpy folding.
476         * flag-types.h (SANITIZE_BOOL, SANITIZE_ENUM): New.
477         (SANITIZE_UNDEFINED): Or these in.
479 2013-12-20  Chung-Ju Wu  <jasonwucj@gmail.com>
481         * config/nds32/nds32.h (NDS32_MODE_TYPE_ALIGN): New macro.
482         (NDS32_AVAILABLE_REGNUM_FOR_ARG): Use more accurate alignment checking
483         to determine available register number.
484         * config/nds32/nds32.c (nds32_needs_double_word_align): Use new
485         macro NDS32_MODE_TYPE_ALIGN.
486         (nds32_function_arg): Refine code layout.
488 2013-12-19  Jeff Law  <law@redhat.com>
490         * doc/invoke.texi: (dump-rtl-ree): Fix typo and clarify ree
491         handles both zero and sign extension.
493 2013-12-19  Teresa Johnson  <tejohnson@google.com>
495         PR gcov-profile/59542
496         * bb-reorder.c (duplicate_computed_gotos): Invoke fixup_partitions
497         if we have made any changes.
499 2013-12-19  Jakub Jelinek  <jakub@redhat.com>
501         PR other/59545
502         * genattrtab.c (struct attr_hash): Change hashcode type to unsigned.
503         (attr_hash_add_rtx, attr_hash_add_string): Change hashcode parameter
504         to unsigned.
505         (attr_rtx_1): Change hashcode variable to unsigned.
506         (attr_string): Likewise.  Perform first multiplication in
507         unsigned type.
508         * ifcvt.c (noce_try_store_flag_constants): Avoid signed integer
509         overflows.
510         * double-int.c (neg_double): Likewise.
511         * stor-layout.c (set_min_and_max_values_for_integral_type): Likewise.
512         * combine.c (force_to_mode): Likewise.
513         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn,
514         reload_cse_move2add, move2add_note_store): Likewise.
515         * simplify-rtx.c (simplify_const_unary_operation,
516         simplify_const_binary_operation): Likewise.
517         * ipa-split.c (find_split_points): Initialize first.can_split
518         and first.non_ssa_vars.
519         * gengtype-state.c (read_state_files_list): Fix up check.
520         * genautomata.c (reserv_sets_hash_value): Use portable rotation idiom.
522 2013-12-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
524         * config/arm/neon-docgen.ml: Add crypto intrinsics documentation.
525         * doc/arm-neon-intrinsics.texi: Regenerate.
527 2013-12-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
529         * config/arm/neon-testgen.ml (effective_target): Handle "CRYPTO".
531 2013-12-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
533         * config/arm/arm.c (enum arm_builtins): Add crypto builtins.
534         (arm_init_neon_builtins): Handle crypto builtins.
535         (bdesc_2arg): Likewise.
536         (bdesc_1arg): Likewise.
537         (bdesc_3arg): New table.
538         (arm_expand_ternop_builtin): New function.
539         (arm_expand_unop_builtin): Handle sha1h explicitly.
540         (arm_expand_builtin): Handle ternary builtins.
541         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS):
542         Define __ARM_FEATURE_CRYPTO.
543         * config/arm/arm.md: Include crypto.md.
544         (is_neon_type): Add crypto types.
545         * config/arm/arm_neon_builtins.def: Add TImode reinterprets.
546         * config/arm/crypto.def: New.
547         * config/arm/crypto.md: Likewise.
548         * config/arm/iterators.md (CRYPTO_UNARY): New int iterator.
549         (CRYPTO_BINARY): Likewise.
550         (CRYPTO_TERNARY): Likewise.
551         (CRYPTO_SELECTING): Likewise.
552         (crypto_pattern): New int attribute.
553         (crypto_size_sfx): Likewise.
554         (crypto_mode): Likewise.
555         (crypto_type): Likewise.
556         * config/arm/neon-gen.ml: Handle poly64_t and poly128_t types.
557         Handle crypto intrinsics.
558         * config/arm/neon.ml: Add support for poly64 and polt128 types
559         and intrinsics. Define crypto intrinsics.
560         * config/arm/neon.md (neon_vreinterpretti<mode>): New pattern.
561         (neon_vreinterpretv16qi<mode>): Use VQXMOV mode iterator.
562         (neon_vreinterpretv8hi<mode>): Likewise.
563         (neon_vreinterpretv4si<mode>): Likewise.
564         (neon_vreinterpretv4sf<mode>): Likewise.
565         (neon_vreinterpretv2di<mode>): Likewise.
566         * config/arm/unspecs.md (UNSPEC_AESD, UNSPEC_AESE, UNSPEC_AESIMC)
567         (UNSPEC_AESMC, UNSPEC_SHA1C, UNSPEC_SHA1M, UNSPEC_SHA1P, UNSPEC_SHA1H)
568         (UNSPEC_SHA1SU0, UNSPEC_SHA1SU1, UNSPEC_SHA256H, UNSPEC_SHA256H2)
569         (UNSPEC_SHA256SU0, UNSPEC_SHA256SU1, VMULLP64): Define.
570         * config/arm/arm_neon.h: Regenerate.
572 2013-12-19  H.J. Lu  <hongjiu.lu@intel.com>
574         PR driver/59321
575         * collect2.c (main): Check -fuse-ld=[bfd|gold] when
576         DEFAULT_LINKER is defined.
577         * common.opt (fuse-ld=bfd): Add Driver.
578         (fuse-ld=gold): Likewise.
579         * gcc.c (use_ld): New variable.
580         (driver_handle_option): Set use_ld for OPT_fuse_ld_bfd and
581         OPT_fuse_ld_gold.
582         (main): Check -fuse-ld=[bfd|gold] for -print-prog-name=ld.
584 2013-12-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
586         * Makefile.in (TEXI_GCC_FILES): Add arm-acle-intrinsics.texi.
587         * config.gcc (extra_headers): Add arm_acle.h.
588         * config/arm/arm.c (FL_CRC32): Define.
589         (arm_have_crc): Likewise.
590         (arm_option_override): Set arm_have_crc.
591         (arm_builtins): Add CRC32 builtins.
592         (bdesc_2arg): Likewise.
593         (arm_init_crc32_builtins): New function.
594         (arm_init_builtins): Initialise CRC32 builtins.
595         (arm_file_start): Handle architecture extensions.
596         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
597         __ARM_FEATURE_CRC32.  Define __ARM_32BIT_STATE.
598         (TARGET_CRC32): Define.
599         * config/arm/arm-arches.def: Add armv8-a+crc.
600         * config/arm/arm-tables.opt: Regenerate.
601         * config/arm/arm.md (type): Add crc.
602         (<crc_variant>): New insn.
603         * config/arm/arm_acle.h: New file.
604         * config/arm/iterators.md (CRC): New int iterator.
605         (crc_variant, crc_mode): New int attributes.
606         * confg/arm/unspecs.md (UNSPEC_CRC32B, UNSPEC_CRC32H, UNSPEC_CRC32W,
607         UNSPEC_CRC32CB, UNSPEC_CRC32CH, UNSPEC_CRC32CW): New unspecs.
608         * doc/invoke.texi: Document -march=armv8-a+crc option.
609         * doc/extend.texi: Document ACLE intrinsics.
611 2013-12-19  Charles Baylis  <charles.baylis@linaro.org>
613         PR target/59142
614         * config/arm/arm-ldmstm.ml: Use low_register_operand for Thumb
615         patterns.
616         * config/arm/ldmstm.md: Regenerate.
618 2013-12-19  Charles Baylis  <charles.baylis@linaro.org>
620         PR target/59142
621         * config/arm/predicates.md (arm_hard_general_register_operand):
622         New predicate.
623         (arm_hard_register_operand): Remove.
624         * config/arm/arm-ldmstm.ml: Use arm_hard_general_register_operand
625         for all patterns.
626         * config/arm/ldmstm.md: Regenerate.
628 2013-12-19  Charles Baylis  <charles.baylis@linaro.org>
630         PR target/59142
631         * config/arm/predicates.md (vfp_hard_register_operand): New predicate.
632         * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use
633         vfp_hard_register_operand.
635 2013-12-19  Tejas Belagod  <tejas.belagod@arm.com>
637         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
638         Define builtin types for poly64_t poly128_t.
639         (TYPES_BINOPP, aarch64_types_binopp_qualifiers): New.
640         * aarch64/aarch64-simd-builtins.def: Update builtins table.
641         * config/aarch64/aarch64-simd.md (aarch64_crypto_pmulldi,
642         aarch64_crypto_pmullv2di): New.
643         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Update table for
644         poly64x2_t mangler.
645         * config/aarch64/arm_neon.h (poly64x2_t, poly64_t, poly128_t): Define.
646         (vmull_p64, vmull_high_p64): New.
647         * config/aarch64/iterators.md (UNSPEC_PMULL<2>): New.
649 2013-12-19  Tejas Belagod  <tejas.belagod@arm.com>
651         * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
652         * config/aarch64/aarch64-simd.md
653         (aarch64_crypto_sha256h<sha256_op>v4si, aarch64_crypto_sha256su0v4si,
654         aarch64_crypto_sha256su1v4si): New.
655         * config/aarch64/arm_neon.h (vsha256hq_u32, vsha256h2q_u32,
656         vsha256su0q_u32, vsha256su1q_u32): New.
657         * config/aarch64/iterators.md (UNSPEC_SHA256H<2>, UNSPEC_SHA256SU<01>):
658         New.
659         (CRYPTO_SHA256): New int iterator.
660         (sha256_op): New int attribute.
662 2013-12-19  Tejas Belagod  <tejas.belagod@arm.com>
664         * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
665         * config/aarch64/aarch64-builtins.c (aarch64_types_ternopu_qualifiers,
666         TYPES_TERNOPU): New.
667         * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hsi,
668         aarch64_crypto_sha1su1v4si, aarch64_crypto_sha1<sha1_op>v4si,
669         aarch64_crypto_sha1su0v4si): New.
670         * config/aarch64/arm_neon.h (vsha1cq_u32, sha1mq_u32, vsha1pq_u32,
671         vsha1h_u32, vsha1su0q_u32, vsha1su1q_u32): New.
672         * config/aarch64/iterators.md (UNSPEC_SHA1<CPMH>, UNSPEC_SHA1SU<01>):
673         New.
674         (CRYPTO_SHA1): New int iterator.
675         (sha1_op): New int attribute.
677 2013-12-19  Tejas Belagod  <tejas.belagod@arm.com>
679         * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
680         * config/aarch64/aarch64-builtins.c (aarch64_types_binopu_qualifiers,
681         TYPES_BINOPU): New.
682         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi,
683         aarch64_crypto_aes<aesmc_op>v16qi): New.
684         * config/aarch64/arm_neon.h (vaeseq_u8, vaesdq_u8, vaesmcq_u8,
685         vaesimcq_u8): New.
686         * config/aarch64/iterators.md (UNSPEC_AESE, UNSPEC_AESD, UNSPEC_AESMC,
687         UNSPEC_AESIMC): New.
688         (CRYPTO_AES, CRYPTO_AESMC): New int iterators.
689         (aes_op, aesmc_op): New int attributes.
691 2013-12-19  Tejas Belagod  <tejas.belagod@arm.com>
693         * config/arm/types.md (neon_mul_d_long, crypto_aes, crypto_sha1_xor,
694         crypto_sha1_fast, crypto_sha1_slow, crypto_sha256_fast,
695         crypto_sha256_slow): New.
697 2013-12-19  Tejas Belagod  <tejas.belagod@arm.com>
699         * config/aarch64/aarch64.h (TARGET_CRYPTO): New.
700         (__ARM_FEATURE_CRYPTO): Define if TARGET_CRYPTO is true.
702 2013-12-19  Dominik Vogt  <vogt@linux.vnet.ibm.com>
703             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
705         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default): New
706         constant.
707         (s390_hotpatch_trampoline_halfwords_max): New constant.
708         (s390_hotpatch_trampoline_halfwords): New static variable.
709         (get_hotpatch_attribute): New function.
710         (s390_handle_hotpatch_attribute): New function.
711         (s390_attribute_table): New target specific attribute table to
712         implement the hotpatch attribute.
713         (s390_option_override): Parse hotpatch options.
714         (s390_function_num_hotpatch_trampoline_halfwords): New function.
715         (s390_can_inline_p): Implement target hook to
716         suppress hotpatching for explicitly inlined functions.
717         (s390_asm_output_function_label): Generate hotpatch prologue.
718         (TARGET_ATTRIBUTE_TABLE): Define to implement target attribute table.
719         (TARGET_CAN_INLINE_P): Define to implement target hook.
720         * config/s390/s390.opt (mhotpatch): New options -mhotpatch,
721         -mhotpatch=.
722         * config/s390/s390-protos.h (s390_asm_output_function_label): Add
723         prototype.
724         * config/s390/s390.h (ASM_OUTPUT_FUNCTION_LABEL): Target specific
725         function label generation for hotpatching.
726         (FUNCTION_BOUNDARY): Align functions to eight bytes.
727         * doc/extend.texi: Document hotpatch attribute.
728         * doc/invoke.texi: Document -mhotpatch option.
730 2013-12-19  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
732         * config/i386/i386.c: Include cfgloop.h.
733         (ix86_loop_memcount): New function.
734         (ix86_loop_unroll_adjust): New function.
735         (TARGET_LOOP_UNROLL_ADJUST): Define.
736         * config/i386/i386.h
737         (TARGET_ADJUST_UNROLL): Define.
738         * config/i386/x86-tune.def
739         (X86_TUNE_ADJUST_UNROLL): Define.
741 2013-12-19  Marek Polacek  <polacek@redhat.com>
743         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Remove
744         variable alg.  Use index variable i directly.
746 2013-12-19  Eric Botcazou  <ebotcazou@adacore.com>
748         * print-tree.c (print_node) <case tcc_type>: Print no_force_blk_flag
749         for all types.
751 2013-12-19  Monk Chiang  <sh.chiang04@gmail.com>
753         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
754         Consider TARGET_CPU_DEFAULT settings.
756 2013-12-18  James Greenhalgh  <james.greenhalgh@arm.com>
758         * config/aarch64/aarch64-cores.def: Add support for
759         -mcpu=cortex-a57.cortex-a53.
760         * config/aarch64/aarch64-tune.md: Regenerate.
761         * doc/invoke.texi: Document -mcpu=cortex-a57.cortex-a53.
763 2013-12-18  James Greenhalgh  <james.greenhalgh@arm.com>
765         * config/aarch64/aarch64-cores.def: Add new column for SCHEDULER_IDENT.
766         * config/aarch64/aarch64-opts.h (AARCH64_CORE): Handle SCHEDULER_IDENT.
767         * config/aarch64/aarch64.c (AARCH64_CORE): Handle SCHEDULER_IDENT.
768         (aarch64_parse_cpu): mcpu implies a default value for mtune.
769         * config/aarch64/aarch64.h (AARCH64_CORE): Handle SCHEDULER_IDENT.
771 2013-12-18  James Greenhalgh  <james.greenhalgh@arm.com>
773         * common/config/aarch64/aarch64-common.c
774         (aarch64_rewrite_selected_cpu): New.
775         (aarch64_rewrite_mcpu): New.
776         * config/aarch64/aarch64-protos.h
777         (aarch64_rewrite_selected_cpu): New.
778         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): New.
779         (BIG_LITTLE_SPEC_FUNCTIONS): Likewise.
780         (ASM_CPU_SPEC): Likewise.
781         (EXTRA_SPEC_FUNCTIONS): Likewise.
782         (EXTRA_SPECS): Likewise.
783         (ASM_SPEC): Likewise.
784         * config/aarch64/aarch64.c (aarch64_start_file): Rewrite target
785         CPU name.
787 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
789         * omp-low.c (simd_clone_clauses_extract): Replaced the string
790         "cilk simd elemental" with "cilk simd function."
791         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
792         Removed a carriage-return from a warning string.
794 2013-12-18  Aldy Hernandez  <aldyh@redhat.com>
796         * passes.c (execute_function_dump): Set graph_dump_initialized
797         appropriately.
798         (pass_init_dump_file): Similarly.
799         (execute_one_pass): Pass new argument to do_per_function.
800         * tree-pass.h (class opt_pass): New field graph_dump_initialized.
802 2013-12-18  Aldy Hernandez  <aldyh@redhat.com>
804         * doc/tree-ssa.texi (SSA Operands): Remove reference to
805         SSA_OP_VMAYUSE.
806         Synchronize SSA_OP* definitions with source.
807         * ssa-iterators.h: Fix comment for FOR_EACH_IMM_USE_STMT.
808         Add not to SSA_OP* macro definitions.
810 2013-12-18  Jakub Jelinek  <jakub@redhat.com>
812         PR target/59539
813         * config/i386/sse.md
814         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
815         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): New expanders,
816         prefix existing define_insn names with *.
818 2013-12-18  Eric Botcazou  <ebotcazou@adacore.com>
820         * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Fix thinko.
822 2013-12-18  James Greenhalgh  <james.greenhalgh@arm.com>
823             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
825         * config/arm/t-aprofile: Add cortex-a15.cortex-a7, cortex-a12,
826         cortex-a57, cortex-a57.cortex-a53.
828 2013-12-18  Eric Botcazou  <ebotcazou@adacore.com>
830         PR debug/59418
831         * dwarf2cfi.c (dwarf2out_frame_debug_cfa_offset): Fix comment and tidy.
832         (dwarf2out_frame_debug_cfa_restore): Handle TARGET_DWARF_REGISTER_SPAN.
833         (dwarf2out_frame_debug_expr): Tidy.
835 2013-12-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
836             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
837             Sergey Lega  <sergey.s.lega@intel.com>
838             Anna Tikhonova  <anna.tikhonova@intel.com>
839             Ilya Tocar  <ilya.tocar@intel.com>
840             Andrey Turetskiy  <andrey.turetskiy@intel.com>
841             Ilya Verbin  <ilya.verbin@intel.com>
842             Kirill Yukhin  <kirill.yukhin@intel.com>
843             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
845         * config/i386/sse.md (*fma_fmadd_<mode>): Extend to support masking.
846         (*fma_fmsub_<mode>): Ditto.
847         (*fma_fnmadd_<mode>): Ditto.
848         (*fma_fnmsub_<mode>): Ditto.
849         (*fma_fmaddsub_<mode>): Ditto.
850         (*fma_fmsubadd_<mode>): Ditto.
851         (avx512f_vternlog<mode>): Ditto.
852         (avx512f_fixupimm<mode>): Ditto.
853         (avx512f_sfixupimm<mode>): Ditto.
854         (avx512f_vpermi2var<mode>3): Ditto.
855         (avx512f_vpermt2var<mode>3): Ditto.
856         (avx512f_fmaddsub_<mode>_maskz): New.
857         (avx512f_vternlog<mode>_maskz): Ditto.
858         (avx512f_fixupimm<mode>_maskz): Ditto.
859         (avx512f_sfixupimm<mode>_maskz): Ditto.
860         (avx512f_vpermi2var<mode>3_maskz): Ditto.
861         (avx512f_vpermt2var<mode>3_maskz): Ditto.
862         (avx512f_expand<mode>_maskz): Ditto.
863         * config/i386/subst.md (sd_maskz_name): Ditto.
864         (sd_mask_op4): Ditto.
865         (sd_mask_op5): Ditto.
866         (sd_mask_codefor): Ditto.
867         (sd_mask_mode512bit_condition): Ditto.
868         (sd): Ditto.
870 2013-12-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
871             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
872             Sergey Lega  <sergey.s.lega@intel.com>
873             Anna Tikhonova  <anna.tikhonova@intel.com>
874             Ilya Tocar  <ilya.tocar@intel.com>
875             Andrey Turetskiy  <andrey.turetskiy@intel.com>
876             Ilya Verbin  <ilya.verbin@intel.com>
877             Kirill Yukhin  <kirill.yukhin@intel.com>
878             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
880         * config/i386/sse.md (avx512f_cmp<mode>3): Extend to support masking.
881         (avx512f_ucmp<mode>3): Ditto.
882         (avx512f_eq<mode>3): Ditto.
883         (avx512f_gt<mode>3): Ditto.
884         (avx512f_testm<mode>3): Ditto.
885         (avx512f_testnm<mode>3): Ditto.
886         * config/i386/subst.md (SUBST_S): New.
887         (mask_scalar_merge_name): Ditto.
888         (mask_scalar_merge_operand3): Ditto.
889         (mask_scalar_merge_operand4): Ditto.
890         (mask_scalar_merge): Ditto.
892 2013-12-17  Jan Hubicka  <hubicka@ucw.cz>
894         PR middle-end/35545
895         * gimple-fold.c (fold_gimple_assign): Attempt to devirtualize
896         OBJ_TYPE_REF.
897         (gimple_fold_stmt_to_constant_1): Bypass OBJ_TYPE_REF wrappers.
899 2013-12-17  Jan Hubicka  <hubicka@ucw.cz>
901         PR middle-end/35545
902         * tree-vrp.c (extract_range_from_unary_expr_1): Handle OBJ_TYPE_REF.
904 2013-12-17  Teresa Johnson  <tejohnson@google.com>
906         PR gcov-profile/59527
907         * cfgrtl.c (fixup_reorder_chain): Handle a region-crossing
908         branch, which can't be eliminated.
910 2013-12-18  Martin Liska  <marxin.liska@gmail.com>
911             Jan Hubicka  <jh@suse.cz>
913         * cgraphunit.c (node_cmp): New function.
914         (expand_all_functions): Function ordering added.
915         * common.opt: New profile based function reordering flag introduced.
916         * lto-partition.c: Support for time profile added.
917         * lto.c: Likewise.
918         * predict.c (handle_missing_profiles): Time profile handled in
919           missing profiles.
921 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
923         PR tree-optimization/59523
924         * tree-vectorizer.c (fold_loop_vectorized_call): Call update_stmt
925         on updated stmts.
927 2013-12-17  Aldy Hernandez  <aldyh@redhat.com>
929         * ipa-inline.c (gate_ipa_inline): Remove.
930         (const pass_data pass_data_ipa_inline): Unset has_gate.
931         (class pass_ipa_inline): Remove gate() method.
933 2013-12-17  Jan Hubicka  <hubicka@ucw.cz>
935         * ipa-devirt.c (get_polymorphic_call_info): Fix offset calculatoin
936         in contains_type_p query.
938 2013-12-17  Thomas Schwinge  <thomas@codesourcery.com>
940         * omp-low.c (tmp_ompfn_id_num): Remove leftover variable definition.
942         * tree-pass.h (make_pass_expand_omp_ssa): Remove leftover function
943         declaration.
945         * omp-low.c: Remove leftover comment.
947         * omp-low.c (check_combined_parallel): Reflect reality in comment.
949         * doc/cfg.texi (Control Flow): Refer to passes.def instead of passes.c.
950         * doc/passes.texi (Pass manager): Refer to passes.def.
952         * doc/gccint.texi (Top): Fix inclusion order.
954 2013-12-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
956         * config/arm/arm-cores.def (cortex-a12): Use cortexa15 scheduling.
957         * config/arm/arm.c (arm_issue_rate): Handle cortexa12.
958         * config/arm/arm.md (generic_vfp): Remove cortexa12.
960 2013-12-17  James Greenhalgh  <james.greenhalgh@arm.com>
962         * config/arm/arm-cores.def (cortex-a57.cortex-a53): New.
963         * doc/invoke.texi: Document -mcpu=cortex-a57.cortex-a53.
964         * config/arm/arm-tables.opt: Regenerate.
965         * config/arm/arm-tune.md: Regenerate.
966         * config/arm/bpabi.h
967         (BE8_LINK_SPEC): Handle -mcpu=cortex-a57.cortex-a53.
969 2013-12-17  James Greenhalgh  <james.greenhalgh@arm.com>
971         * config/arm/arm-cores.def (cortex-a57): New.
972         * doc/invoke.texi: Document -mcpu=cortex-a57.
973         * config/arm/arm-tables.opt: Regenerate.
974         * config/arm/arm-tune.md: Regenerate.
975         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle -mcpu=cortex-a57.
977 2013-12-17  James Greenhalgh  <james.greenhalgh@arm.com>
979         * config/arm/arm-cores.def (cortex-a15.cortex-a7): New.
980         * doc/invoke.texi: Document -mcpu=cortex-a15.cortex-a7.
981         * config/arm/arm-tables.opt: Regenerate.
982         * config/arm/arm-tune.md: Regenerate.
983         * config/arm/bpabi.h
984         (BE8_LINK_SPEC): Handle -mcpu=cortex-a5.cortex-a7.
986 2013-12-17  James Greenhalgh  <james.greenhalgh@arm.com>
988         * config/arm/arm-cores.def: Add new column for TUNE_IDENT.
989         * config/arm/genopt.sh: Improve layout.
990         * config/arm/arm-tune.md: Regenerate.
991         * config/arm/arm-tables.opt: Regenerate.
992         * config/arm/arm-opts.h (ARM_CORE): Modify macro for TUNE_IDENT.
993         * config/arm/arm.c (ARM_CORE): Modify macro for TUNE_IDENT.
994         (arm_option_override): When a CPU is chosen, that should also
995         form the tune target.
996         * config/arm/arm.h (ARM_CORE): Modify macro for TUNE_IDENT.
998 2013-12-17  James Greenhalgh  <james.greenhalgh@arm.com>
1000         * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): New.
1001         (arm_rewrite_mcpu): Likewise.
1002         * config/arm/arm-protos.h (arm_rewrite_selected_cpu): New.
1003         * config/arm/arm.h (BIG_LITTLE_SPEC): New.
1004         (BIG_LITTLE_SPEC_FUNCTIONS): Likewise.
1005         (EXTRA_SPEC_FUNCTIONS): Include BIG_LITTLE_SPEC_FUNCTIONS.
1006         (ASM_CPU_SPEC): Include BIG_LITTLE_SPEC.
1007         * config/arm/arm.c (arm_file_start): Rewrite arm_selecetd_cpu values.
1009 2013-12-17  Eric Botcazou  <ebotcazou@adacore.com>
1011         * expmed.c (lowpart_bit_field_p): Fix comment.
1012         (store_bit_field_using_insv): Fix formatting.
1013         (store_bit_field): Likewise.
1014         (store_fixed_bit_field): More declaration and remove return.
1015         (store_fixed_bit_field_1): Fix formatting.
1016         (extract_fixed_bit_field): Move declaration.
1017         (extract_fixed_bit_field_1): Simplify.
1019 2013-12-17  Jan Hubicka  <hubicka@ucw.cz>
1021         * ipa-utils.h (possible_polymorphic_call_targets): Determine
1022         context of the call.
1023         * gimple-fold.c (gimple_fold_call): Use ipa-devirt to devirtualize.
1025 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
1027         * expr.c (convert_modes): For SUBREG_PROMOTED_VAR_P use SUBREG_REG (x)
1028         instead of x as last gen_lowpart argument.
1030 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
1032         * predict.h (PROB_LIKELY): Fix the value.
1033         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Add support
1034         for overflow checking for modes without 2xwider supported mode,
1035         if the mode has 2xnarrower mode.
1037         * internal-fn.c: Include stringpool.h and tree-ssanames.h.
1038         (ubsan_expand_si_overflow_addsub_check): In the generic expansion,
1039         try to improve generated code if one of the arguments is constant
1040         or get_range_info says that one of the argument is always
1041         negative or always non-negative.
1042         * tree-vrp.c (simplify_internal_call_using_ranges): New function.
1043         (simplify_stmt_using_ranges): Call it.
1045 2013-12-16  Vladimir Makarov  <vmakarov@redhat.com>
1047         PR rtl-optimization/59466
1048         * emit-rtl.c (change_address_1): Don't validate address for LRA.
1049         * recog.c (general_operand): Accept any memory for LRA.
1050         * lra.c (lra_set_insn_recog_data): Add an assert.
1052 2013-12-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1054         * config/arm/driver-arm.c (arm_cpu_table): Add cortex-a12 entry.
1056 2013-12-14  Jan Hubicka  <jh@suse.cz>
1057             Markus Trippelsdorf  <octoploid@yandex.com>
1059         PR ipa/59265
1060         * ipa-profile.c (ipa_profile_generate_summary): Do not ICE when
1061         call is already devirtualized.
1063 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
1065         * Makefile.in (version.o): Restore dependencies on
1066         $(REVISION), $(DATESTAMP), $(BASEVER) and $(DEVPHASE).
1068 2013-12-14  Jan Hubicka  <jh@suse.cz>
1070         PR ipa/59473
1071         * ipa-devirt.c (get_class_context): Do not ICE when type is found
1072         at wrong offset.
1074 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
1076         PR libgomp/58756
1077         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_REDUCTION>: For
1078         reductions without placeholder if is_simd, but when not using
1079         GOMP_SIMD* internal calls, also perform the reduction operation
1080         on the outer var rather than simple assignment.
1082 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
1084         PR middle-end/58956
1085         PR middle-end/59470
1086         * gimple-walk.h (walk_stmt_load_store_addr_fn): New typedef.
1087         (walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Use it
1088         for callback params.
1089         * gimple-walk.c (walk_stmt_load_store_ops): Likewise.
1090         (walk_stmt_load_store_addr_ops): Likewise.  Adjust all callback
1091         calls to supply the gimple operand containing the base tree
1092         as an extra argument.
1093         * tree-ssa-ter.c: Include gimple-walk.h.
1094         (find_ssaname, find_ssaname_in_store): New helper functions.
1095         (find_replaceable_in_bb): For calls or GIMPLE_ASM, only set
1096         same_root_var if USE is used somewhere in the stores of the stmt.
1097         * ipa-prop.c (visit_ref_for_mod_analysis): Remove name of the stmt
1098         argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
1099         * ipa-pure-const.c (check_load, check_store, check_ipa_load,
1100         check_ipa_store): Likewise.
1101         * gimple.c (gimple_ior_addresses_taken_1, check_loadstore): Likewise.
1102         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Likewise.
1103         (verify_non_ssa_vars, visit_bb): Adjust their callers.
1104         * cfgexpand.c (add_scope_conflicts_1): Use
1105         walk_stmt_load_store_addr_fn type for visit variable.
1106         (visit_op, visit_conflict): Remove name of the stmt
1107         argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
1108         * tree-sra.c (asm_visit_addr): Likewise.  Remove name of the data
1109         argument and ATTRIBUTE_UNUSED.
1110         * cgraphbuild.c (mark_address, mark_load, mark_store): Add another
1111         unnamed tree argument.
1112         * gimple-ssa-isolate-paths.c (check_loadstore): Likewise.  Remove
1113         ATTRIBUTE_UNUSED from stmt parameter.
1115 2013-12-16  Chung-Lin Tang  <cltang@codesourcery.com>
1117         * opts-common.c (integral_argument): Add support for
1118         hexadecimal command option integer arguments. Update comments.
1120 2013-12-14   Jan Hubicka  <jh@suse.cz>
1122         PR ipa/59265
1123         * ipa-prop.c (ipa_analyze_call_uses): Skip already
1124         devirtualized calls.
1126 2013-12-14   Jan Hubicka  <jh@suse.cz>
1128         PR middle-end/58477
1129         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
1131 2013-12-14   Jan Hubicka  <jh@suse.cz>
1133         PR middle-end/58477
1134         * cgraphclones.c (cgraph_clone_edge): Do not resolve speculative edges.
1136 2013-12-14   H.J. Lu  <hongjiu.lu@intel.com>
1138         PR target/59492
1139         * config/i386/i386.c (ix86_function_specific_restore): Don't
1140         change -fPIC.
1142 2013-12-14  Eric Botcazou  <ebotcazou@adacore.com>
1144         * var-tracking.c (add_stores): Fix oversight in latest commit.
1146 2013-12-14  Marek Polacek  <polacek@redhat.com>
1148         PR sanitizer/59503
1149         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Call
1150         expand_binop with correct optab depending on code.
1152 2013-12-14  Tom de Vries  <tom@codesourcery.com>
1154         * calls.c (expand_call): Fix REG_PARM_STACK_SPACE comparison.
1156 2013-12-13  DJ Delorie  <dj@redhat.com>
1158         * config/rl78/rl78-expand.md (one_cmplqi2): Make constant signed.
1160         * config/msp430/msp430.md (movqi): replace general_operand with
1161         msp_general_operand and nonimmediate_operand with
1162         msp_nonimmediate_operand to allow volatile operands.
1163         (movhi): Likewise.
1164         (movpsi): Likewise.
1165         (addpsi3): Likewise.
1166         (addhi3): Likewise.
1167         (addhi3_cy): Likewise.
1168         (addchi4_cy): Likewise.
1169         (xor<mode>3): Likewise.
1170         (ome_cmpl<mode>2): Likewise.
1171         (extendqihi2): Likewise.
1172         (zero_extendqihi2): Likewise.
1173         (zero_extendhipsi2): Likewise.
1174         (truncpsihi2): Likewise.
1175         (srai_1): Likewise.
1177 2013-12-13  Vladimir Makarov  <vmakarov@redhat.com>
1179         * ira.h (struct ira_reg_equiv): Rename to ira_reg_equiv_s.
1180         * ira.c: Ditto.
1181         * lra-int.h (lra_init_equiv): New prototype.
1182         * lra-constraints.c (lra_init_equiv, update_equiv): New functions.
1183         (loc_equivalence_callback): Use the 3rd arg.
1184         (lra_constraints): Update equivalences.  Pass curr_insn to
1185         simplify_replace_fn_rtx.
1186         * lra.c (lra): Call lra_init_equiv.
1188 2013-12-13  Kenneth Zadeck  <zadeck@naturalbridge.com>
1190         * genmodes.c (emit_max_int): Fixed missing parens.
1192 2013-12-13  Aldy Hernandez  <aldyh@redhat.com>
1194         PR tree-optimization/59149
1195         * calls.c (flags_from_decl_or_type): Fail on non decl or type.
1196         * trans-mem.c (diagnose_tm_1): Do not call flags_from_decl_or_type
1197         if no type or decl.
1199 2013-12-13  Kenneth Zadeck  <zadeck@naturalbridge.com>
1201         * config/arc/arc.h (BITS_PER_UNIT): Removed.
1202         * config/bfin/bfin.h (BITS_PER_UNIT): Removed.
1203         * config/lm32/lm32.h (BITS_PER_UNIT): Removed.
1204         * config/m32c/m32c.h (BITS_PER_UNIT): Removed.
1205         * config/microblaze/microblaze.h (BITS_PER_UNIT): Removed.
1206         * config/picochip/picochip.h (BITS_PER_UNIT): Removed.
1207         * config/spu/spu.h (BITS_PER_UNIT): Removed.
1208         * defaults.h (BITS_PER_UNIT): Removed.
1209         * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): New.
1210         * doc/rtl (BITS_PER_UNIT): Moved from tm.texi.
1211         (MAX_BITSIZE_MODE_ANY_INT): Updated.
1212         * doc/tm.texi (BITS_PER_UNIT): Removed.
1213         * doc/tm.texi.in (BITS_PER_UNIT): Removed.
1214         * genmodes.c (bits_per_unit, max_bitsize_mode_any_int): New.
1215         (create_modes): Added code to set bits_per_unit and
1216         max_bitsize_mode_any_int.
1217         (emit_max_int): Changed code generation.
1218         * mkconfig.sh: Added insn-modes.h.
1220 2013-12-13  Jeff Law  <law@redhat.com>
1222         PR tree-optimization/45685
1223         * tree-ssa-phiopt.c (neg_replacement): New function.
1224         (tree_ssa_phiopt_worker): Call it.
1226 2013-12-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
1228         * config/i386/i386.c (slm_cost): Fix imul cost for HI.
1230 2013-12-13  Bin Cheng  <bin.cheng@arm.com>
1232         PR tree-optimization/58296
1233         PR tree-optimization/41488
1234         * tree-scalar-evolution.c: Include necessary header files.
1235         (simplify_peeled_chrec): New function.
1236         (analyze_evolution_in_loop): New static variable.
1237         Call simplify_peeled_chrec.
1238         * tree-ssa-loop-ivopts.c (mark_bivs): Don't mark peeled IV as biv.
1239         (add_old_iv_candidates): Don't add candidate for peeled IV.
1240         * tree-affine.h (aff_combination_zero_p): New function.
1242 2013-12-13  Nick Clifton  <nickc@redhat.com>
1244         * config/msp430/msp430.c (is_wakeup_func): New function.  Returns
1245         true if the current function has the wakeup attribute.
1246         (msp430_start_function): Note if the function has the wakeup
1247         attribute.
1248         (msp430_attribute_table): Add wakeup attribute.
1249         (msp430_expand_epilogue): Add support for wakeup functions.
1250         * config/msp430/msp430.md (disable_interrupts): Emit a NOP after
1251         the DINT instruction.
1252         * doc/extend.texi: Document the wakeup attribute.
1254 2013-12-13  Kai Tietz  <kitetz@redhat.com>
1256         PR c++/57897
1257         * config/i386/i386.c (ix86_option_override_internal): Set for
1258         x64 target flag_unwind_tables, if flag_asynchronous_unwind_tables
1259         was explicit set.
1261 2013-12-12  Jeff Law  <law@redhat.com>
1263         * i386.md (simple LEA peephole2): Add missing mode to zero_extend
1264         for zero-extended MULT simple LEA pattern.
1266 2013-12-12  Vladimir Makarov  <vmakarov@redhat.com>
1268         PR middle-end/59470
1269         * lra-coalesce.c (lra_coalesce): Invalidate inheritance pseudo
1270         values if necessary.
1272 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
1274         PR libgomp/59467
1275         * gimplify.c (omp_check_private): Add copyprivate argument, if it
1276         is true, don't check omp_privatize_by_reference.
1277         (gimplify_scan_omp_clauses): For OMP_CLAUSE_COPYPRIVATE verify
1278         decl is private in outer context.  Adjust omp_check_private caller.
1280 2013-12-11  Jeff Law  <law@redhat.com>
1282         PR rtl-optimization/59446
1283         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
1284         test for crossing a loop header.
1286 2013-12-11  Sriraman Tallam  <tmsriram@google.com>
1288         PR target/59390
1289         * config/i386/i386.c (get_builtin): New function.
1290         (ix86_builtin_vectorized_function): Replace all instances of
1291         ix86_builtins[...] with get_builtin(...).
1292         (ix86_builtin_reciprocal): Ditto.
1294 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1296         * langhooks.h (lang_hooks_for_decls): Remove lang_hooks_for_cilkplus.
1297         (lang_hooks_for_cilkplus): Remove.
1298         * langhooks.c (lhd_cilk_detect_spawn): Likewise.
1299         (lhd_install_body_with_frame_cleanup): Likewise.
1300         * langhooks-def.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
1301         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
1302         (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
1303         (LANG_HOOKS_CILKPLUS): Likewise.
1304         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_CILKPLUS.
1305         * gimplify.c (gimplify_expr): Removed CILK_SPAWN_STMT case.
1306         (gimplify_modify_expr): Removed handling of _Cilk_spawn in expr.
1307         (gimplify_call_expr): Likewise.
1309 2013-12-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1311         * expr.c (expand_assignment): Remove dependency on
1312         flag_strict_volatile_bitfields.  Always set the memory access mode.
1313         (expand_expr_real_1): Likewise.
1315 2013-12-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1317         PR middle-end/59134
1318         * expmed.c (store_bit_field): Use narrow_bit_field_mem and
1319         store_fixed_bit_field_1 for -fstrict-volatile-bitfields.
1320         (store_fixed_bit_field): Split up.  Call store_fixed_bit_field_1
1321         to do the real work.
1322         (store_fixed_bit_field_1): New function.
1323         (store_split_bit_field): Limit the unit size to the memory mode size,
1324         to prevent recursion.
1326 2013-12-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1327             Sandra Loosemore  <sandra@codesourcery.com>
1329         PR middle-end/23623
1330         PR middle-end/48784
1331         PR middle-end/56341
1332         PR middle-end/56997
1333         * expmed.c (strict_volatile_bitfield_p): Add bitregion_start
1334         and bitregion_end parameters.  Test for compliance with C++
1335         memory model.
1336         (store_bit_field): Adjust call to strict_volatile_bitfield_p.
1337         Add fallback logic for cases where -fstrict-volatile-bitfields
1338         is supposed to apply, but cannot.
1339         (extract_bit_field): Likewise. Use narrow_bit_field_mem and
1340         extract_fixed_bit_field_1 to do the extraction.
1341         (extract_fixed_bit_field): Revert to previous mode selection algorithm.
1342         Call extract_fixed_bit_field_1 to do the real work.
1343         (extract_fixed_bit_field_1): New function.
1345 2013-12-11  Sandra Loosemore  <sandra@codesourcery.com>
1347         PR middle-end/23623
1348         PR middle-end/48784
1349         PR middle-end/56341
1350         PR middle-end/56997
1351         * expmed.c (strict_volatile_bitfield_p): New function.
1352         (store_bit_field_1): Don't special-case strict volatile
1353         bitfields here.
1354         (store_bit_field): Handle strict volatile bitfields here instead.
1355         (store_fixed_bit_field): Don't special-case strict volatile
1356         bitfields here.
1357         (extract_bit_field_1): Don't special-case strict volatile
1358         bitfields here.
1359         (extract_bit_field): Handle strict volatile bitfields here instead.
1360         (extract_fixed_bit_field): Don't special-case strict volatile
1361         bitfields here.  Simplify surrounding code to resemble that in
1362         store_fixed_bit_field.
1363         * doc/invoke.texi (Code Gen Options): Update
1364         -fstrict-volatile-bitfields description.
1366 2013-12-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
1368         * configure.ac: Add check for aarch64 assembler -mabi support.
1369         * configure: Regenerate.
1370         * config.in: Regenerate.
1371         * config/aarch64/aarch64-elf.h (ASM_MABI_SPEC): New define.
1372         (ASM_SPEC): Update to substitute -mabi with ASM_MABI_SPEC.
1373         * config/aarch64/aarch64.h (aarch64_override_options): Issue error
1374         if assembler does not support -mabi and option ilp32 is selected.
1375         * doc/install.texi: Added note that building gcc 4.9 and after
1376         with pre 2.24 binutils will not support -mabi=ilp32.
1378 2013-12-11  Marek Polacek  <polacek@redhat.com>
1380         PR sanitizer/59399
1381         * expr.c (expand_expr_real_1): Remove assert dealing with
1382         internal calls and turn that into a condition instead.
1384 2013-12-11  Yvan Roux  <yvan.roux@linaro.org>
1386         * config/arm/arm.opt (mlra): Enable LRA by default.
1388 2013-12-11  Jakub Jelinek  <jakub@redhat.com>
1390         PR tree-optimization/59417
1391         * tree-ssa-copy.c (fini_copy_prop): If copy_of[i].value is defined
1392         in a different bb rhan var, only duplicate points-to info and
1393         not alignment info and don't duplicate range info.
1394         * tree-ssa-loop-niter.c (determine_value_range): Instead of
1395         assertion failure handle inconsistencies in range info by only
1396         using var's range info and not PHI result range infos.
1398         PR tree-optimization/59386
1399         * tree-inline.c (remap_gimple_stmt): If not id->do_not_unshare,
1400         unshare_expr (id->retval) before passing it to gimple_build_assign.
1402 2013-12-11  Bin Cheng  <bin.cheng@arm.com>
1404         Reverted:
1405         2013-12-10  Bin Cheng  <bin.cheng@arm.com>
1406         PR tree-optimization/41488
1407         * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
1408         for PEELED_CHREC kind IV.
1409         * tree-scalar-evolution.c: Include necessary header files.
1410         (peeled_chrec_map, simplify_peeled_chrec): New.
1411         (analyze_evolution_in_loop): New static variable.
1412         Call simplify_peeled_chrec.
1413         (scev_initialize): Initialize peeled_chrec_map.
1414         (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
1416 2013-12-10   H.J. Lu  <hongjiu.lu@intel.com>
1418         PR target/59458
1419         * config/i386/i386.md (*movsf_internal): Set mode to SI for
1420         alternative 13.
1422 2013-12-10  Eric Botcazou  <ebotcazou@adacore.com>
1424         PR rtl-optimization/58295
1425         * simplify-rtx.c (simplify_truncation): Restrict the distribution for
1426         WORD_REGISTER_OPERATIONS targets.
1428 2013-12-10  Richard Sandiford  <rdsandiford@googlemail.com>
1430         * genrecog.c (validate_pattern): Treat all messages except missing
1431         modes as errors.
1432         * config/epiphany/epiphany.md: Remove constraints from
1433         define_peephole2s.
1434         * config/h8300/h8300.md: Remove constraints from define_splits.
1435         * config/msp430/msp430.md: Likewise.
1436         * config/mcore/mcore.md (movdi_i, movsf_i, movdf_k): Use
1437         nonimmediate_operand rather than general_operand for operand 0.
1438         * config/moxie/moxie.md (*movsi, *movqi, *movhi): Likewise.
1439         * config/pdp11/predicates.md (float_operand, float_nonimm_operand):
1440         Use match_operator rather than match_test to invoke general_operand.
1441         * config/v850/v850.md (*movqi_internal, *movhi_internal)
1442         (*movsi_internal_v850e, *movsi_internal, *movsf_internal): Likewise.
1444 2013-12-10  Richard Sandiford  <rdsandiford@googlemail.com>
1446         * config/tilegx/tilegx.md (insn_ld_add<bitsuffix>): Use
1447         register_operand rather than pointer_operand.  Add modes to the
1448         operands.
1449         (insn_ldna_add<bitsuffix>): Likewise.
1450         (insn_ld<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
1451         (insn_ldnt_add<bitsuffix>): Likewise.
1452         (insn_ldnt<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
1453         (insn_ld_add_L2<bitsuffix>): Likewise.
1454         (insn_ldna_add_L2<bitsuffix>): Likewise.
1455         (insn_ld<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
1456         (insn_ldnt_add_L2<bitsuffix>): Likewise.
1457         (insn_ldnt<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
1458         (insn_ld_add_miss<bitsuffix>): Likewise.
1459         (insn_ldna_add_miss<bitsuffix>): Likewise.
1460         (insn_ld<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
1461         (insn_ldnt_add_miss<bitsuffix>): Likewise.
1462         (insn_ldnt<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
1463         (insn_st_add<bitsuffix>): Likewise.
1464         (insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1465         (*insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1466         (insn_stnt_add<bitsuffix>): Likewise.
1467         (insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1468         (*insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1469         (vec_pack_<pack_optab>_v4hi): Use register_operand rather than
1470         reg_or_0_operand for operand 0.
1471         (insn_v2<pack_insn>): Likewise.
1472         (vec_pack_hipart_v4hi): Likewise.
1473         (insn_v2packh): Likewise.
1474         (vec_pack_ssat_v2si): Likewise.
1475         (insn_v4packsc): Likewise.
1477 2013-12-10  H.J. Lu  <hongjiu.lu@intel.com>
1479         * basic-block.h (gcov_working_set_t): Put back typedef.
1480         * gcov-io.h (gcov_bucket_type): Likewise.
1481         (gcov_working_set_info, gcov_working_set_t): Likewise.
1483 2013-12-10  Oleg Endo  <olegendo@gcc.gnu.org>
1485         * cgraph.h (cgraph_node_set_iterator, varpool_node_set_iterator):
1486         Remove typedef.
1487         (cgraph_inline_failed_enum, cgraph_inline_failed_t): Remove typedef and
1488         rename to cgraph_inline_failed_t.
1489         * tree-ssa-alias.h (ao_ref_s, ao_ref): Remove typedef and rename
1490         to ao_ref.
1491         * reload.h (reg_equivs_s, reg_equivs_t): Remove typedef and rename
1492         to reg_equivs_t.
1493         * conditions.h (CC_STATUS): Remove typedef.
1494         * bitmap.h (bitmap_obstack): Remove typedef.
1495         (bitmap_element_def, bitmap_element): Remove typedef and rename to
1496         bitmap_element.
1497         (bitmap_head_def, bitmap_head): Remove typedef and rename to
1498         bitmap_head.
1499         (bitmap_iterator): Remove typedef.
1500         * target.h (cumulative_args_t, print_switch_type,
1501         secondary_reload_info): Remove typedef.
1502         * dwarf2out.h (dw_cfi_oprnd_struct, dw_cfi_oprnd): Remove
1503         dw_cfi_oprnd_struct alias.
1504         (dw_cfi_struct, dw_cfi_node): Remove typedef and rename to dw_cfi_node.
1505         (dw_fde_struct, dw_fde_node): Remove typedef and rename to dw_fde_node.
1506         (cfa_loc, dw_cfa_location): Remove typedef and rename to
1507         dw_cfa_location.
1508         (dw_vec_struct, dw_vec_const): Remove typedef and rename to
1509         dw_vec_const.
1510         (dw_val_struct, dw_val_node): Remove typedef and rename to dw_val_node.
1511         (dw_loc_descr_struct, dw_loc_descr_node): Remove typedef and rename to
1512         dw_loc_descr_node.
1513         * params.h (param_info, compiler_param): Remove typedef.
1514         * opts.h (cl_deferred_param): Remove typedef.
1515         * sreal.h (sreal): Remove typedef.
1516         * ddg.h (dep_type, dep_data_type): Remove typedef.
1517         * graphite-clast-to-gimple.h (cloog_prog_clast, bb_pbb_def): Remove
1518         typedef.
1519         * lto-streamer.h (lto_decl_stream_e_t, lto_encoder_entry,
1520         lto_symtab_encoder_iterator, res_pair): Remove typedef.
1521         * tree-affine.h (affine_tree_combination, aff_tree): Remove typedef
1522         and rename to aff_tree.
1523         * sched-int.h (region): Remove typedef.
1524         * diagnostic.h (diagnostic_info,
1525         diagnostic_classification_change_t): Remove typedef.
1526         * tree-ssa-loop.h (affine_iv_d): Remove typedef and rename to
1527         affine_iv.
1528         * sbitmap.h (sbitmap_iterator): Remove typedef.
1529         * ssa-iterators.h (immediate_use_iterator_d, imm_use_iterator):
1530         Remove typedef and rename to imm_use_iterator.
1531         (ssa_operand_iterator_d, ssa_op_iter): Remove typedef and rename to
1532         ssa_op_iter.
1533         * ggc-internal.h (ggc_statistics): Remove typedef.
1534         * cselib.h (cselib_val_struct, cselib_val): Remove typedef and
1535         rename to cselib_val.
1536         * tree-core.h (alias_pair): Remove typedef.
1537         (constructor_elt_d, constructor_elt): Remove typedef and rename to
1538         constructor_elt.
1539         (ssa_use_operand_d, ssa_use_operand_t): Remove typedef and rename to
1540         ssa_use_operand_t.
1541         * graphite-sese-to-poly.h (base_alias_pair): Remove typedef.
1542         * tree-data-ref.h (conflict_function): Remove typedef.
1543         * tree-inline.h (copy_body_data): Remove typedef.
1544         * ipa-inline.h (condition, size_time_entry, inline_param_summary_t,
1545         edge_growth_cache_entry): Remove typedef.
1546         * regrename.h (operand_rr_info, insn_rr_info): Remove typedef.
1547         * gimple-iterator.h (gimple_stmt_iterator_d, gimple_stmt_iterator):
1548         Remove typedef and rename to gimple_stmt_iterator.
1549         * basic-block.h (ce_if_block, ce_if_block_t): Remove typedef and
1550         rename to ce_if_block.
1551         (edge_iterator): Remove typedef.
1552         * ipa-prop.h (ipa_agg_jf_item, ipa_agg_jf_item_t): Remove typedef
1553         and rename to ipa_agg_jf_item.
1554         (ipa_agg_jump_function_t, ipa_param_descriptor_t, ipa_node_params_t,
1555         ipa_parm_adjustment_t): Remove typedef.
1556         (ipa_jump_func, ipa_jump_func_t): Remove typedef and rename to
1557         ipa_jump_func.
1558         (ipa_edge_args, ipa_edge_args_t): Remove typedef and rename to
1559         ipa_edge_args.
1560         * gcov-io.h (gcov_bucket_type): Remove typedef.
1561         (gcov_working_set_info, gcov_working_set_t): Remove typedef and rename
1562         to gcov_working_set_t.
1563         * ira-int.h (minmax_set_iterator, ira_allocno_iterator,
1564         ira_object_iterator, ira_allocno_object_iterator, ira_pref_iterator,
1565         ira_copy_iterator, ira_object_conflict_iterator): Remove typedef.
1566         * tree-iterator.h (tree_stmt_iterator): Remove typedef.
1567         * rtl.h (addr_diff_vec_flags, mem_attrs, reg_attrs,
1568         replace_label_data): Remove typedef.
1569         (rtunion_def, rtunion): Remove typedef and rename to rtunion.
1570         * hard-reg-set.h (hard_reg_set_iterator): Remove typedef.
1571         * sel-sched-ir.h (_list_iterator, sel_global_bb_info_def,
1572         sel_region_bb_info_def, succ_iterator): Remove typedef.
1573         (deps_where_def, deps_where_t): Remove typedef and rename to
1574         deps_where_t.
1575         * coretypes.h: Adapt forward declarations.
1576         * tree-scalar-evolution.h: Likewise.
1577         * tree-ssa-address.h: Likewise.
1578         * tree-ssa-operands.h: Likewise.
1579         * function.h: Likewise.
1580         * config/frv/frv-protos.h: Likewise.
1581         * targhooks.h: Likewise.
1582         * basic_block.h: Likewise.
1583         * rtl.def: Adapt documentation.
1584         * doc/tm.texi: Likewise.
1585         * ipa-cp.c: Adapt uses.
1586         * bitmap.c: Likewise.
1587         * dwarf2out.c: Likewise.
1588         * target.def: Likewise.
1589         * ipa-inline-analysis.c: Likewise.
1590         * dwarf2cfi.c: Likewise.
1591         * tree-ssa-loop-ivopts.c: Likewise.
1592         * lto-cgraph.c: Likewise.
1593         * config/frv/frv.c: Likewise.
1594         * ifcvt.c: Likewise.
1595         * ipa-prop.c: Likewise.
1597 2013-12-10  Kai Tietz  <ktietz@redhat.com>
1599         PR target/56807
1600         * config/i386/i386.c (ix86_expand_prologue): Address saved
1601         registers stack-relative, not via frame-pointer.
1603 2013-12-10  Richard Biener  <rguenther@suse.de>
1605         PR middle-end/38474
1606         * tree-ssa-structalias.c (solution_set_expand): Expand into
1607         a different possibly cached bitmap and return the result.
1608         (set_union_with_increment): Pass in a shared expanded bitmap
1609         and adjust.
1610         (do_sd_constraint): Likewise.
1611         (do_ds_constraint): Likewise.
1612         (do_complex_constraint): Likewise.
1613         (solve_graph): Manage the shared expanded bitmap.
1615 2013-12-10  Jakub Jelinek  <jakub@redhat.com>
1617         * tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field.
1618         (LOOP_VINFO_SCALAR_LOOP): Define.
1619         (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
1620         * config/i386/sse.md (maskload<mode>, maskstore<mode>): New expanders.
1621         * tree-data-ref.c (get_references_in_stmt): Handle MASK_LOAD and
1622         MASK_STORE.
1623         * internal-fn.def (LOOP_VECTORIZED, MASK_LOAD, MASK_STORE): New
1624         internal fns.
1625         * tree-if-conv.c: Include expr.h, optabs.h, tree-ssa-loop-ivopts.h and
1626         tree-ssa-address.h.
1627         (release_bb_predicate): New function.
1628         (free_bb_predicate): Use it.
1629         (reset_bb_predicate): Likewise.  Don't unallocate bb->aux
1630         just to immediately allocate it again.
1631         (add_to_predicate_list): Add loop argument.  If basic blocks that
1632         dominate loop->latch don't insert any predicate.
1633         (add_to_dst_predicate_list): Adjust caller.
1634         (if_convertible_phi_p): Add any_mask_load_store argument, if true,
1635         handle it like flag_tree_loop_if_convert_stores.
1636         (insert_gimplified_predicates): Likewise.
1637         (ifcvt_can_use_mask_load_store): New function.
1638         (if_convertible_gimple_assign_stmt_p): Add any_mask_load_store
1639         argument, check if some conditional loads or stores can't be
1640         converted into MASK_LOAD or MASK_STORE.
1641         (if_convertible_stmt_p): Add any_mask_load_store argument,
1642         pass it down to if_convertible_gimple_assign_stmt_p.
1643         (predicate_bbs): Don't return bool, only check if the last stmt
1644         of a basic block is GIMPLE_COND and handle that.  Adjust
1645         add_to_predicate_list caller.
1646         (if_convertible_loop_p_1): Only call predicate_bbs if
1647         flag_tree_loop_if_convert_stores and free_bb_predicate in that case
1648         afterwards, check gimple_code of stmts here.  Replace is_predicated
1649         check with dominance check.  Add any_mask_load_store argument,
1650         pass it down to if_convertible_stmt_p and if_convertible_phi_p,
1651         call if_convertible_phi_p only after all if_convertible_stmt_p calls.
1652         (if_convertible_loop_p): Add any_mask_load_store argument,
1653         pass it down to if_convertible_loop_p_1.
1654         (predicate_mem_writes): Emit MASK_LOAD and/or MASK_STORE calls.
1655         (combine_blocks): Add any_mask_load_store argument, pass
1656         it down to insert_gimplified_predicates and call predicate_mem_writes
1657         if it is set.  Call predicate_bbs.
1658         (version_loop_for_if_conversion): New function.
1659         (tree_if_conversion): Adjust if_convertible_loop_p and combine_blocks
1660         calls.  Return todo flags instead of bool, call
1661         version_loop_for_if_conversion if if-conversion should be just
1662         for the vectorized loops and nothing else.
1663         (main_tree_if_conversion): Adjust caller.  Don't call
1664         tree_if_conversion for dont_vectorize loops if if-conversion
1665         isn't explicitly enabled.
1666         * tree-vect-data-refs.c (vect_check_gather): Handle
1667         MASK_LOAD/MASK_STORE.
1668         (vect_analyze_data_refs, vect_supportable_dr_alignment): Likewise.
1669         * gimple.h (gimple_expr_type): Handle MASK_STORE.
1670         * internal-fn.c (expand_LOOP_VECTORIZED, expand_MASK_LOAD,
1671         expand_MASK_STORE): New functions.
1672         * tree-vectorizer.c: Include tree-cfg.h and gimple-fold.h.
1673         (vect_loop_vectorized_call, fold_loop_vectorized_call): New functions.
1674         (vectorize_loops): Don't try to vectorize loops with
1675         loop->dont_vectorize set.  Set LOOP_VINFO_SCALAR_LOOP for if-converted
1676         loops, fold LOOP_VECTORIZED internal call depending on if loop
1677         has been vectorized or not.
1678         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
1679         New function.
1680         (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
1681         If non-NULL, copy basic blocks from scalar_loop instead of loop, but
1682         still to loop's entry or exit edge.
1683         (slpeel_tree_peel_loop_to_edge): Add scalar_loop argument, pass it
1684         down to slpeel_tree_duplicate_loop_to_edge_cfg.
1685         (vect_do_peeling_for_loop_bound, vect_do_peeling_for_loop_alignment):
1686         Adjust callers.
1687         (vect_loop_versioning): If LOOP_VINFO_SCALAR_LOOP, perform loop
1688         versioning from that loop instead of LOOP_VINFO_LOOP, move it to the
1689         right place in the CFG afterwards.
1690         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
1691         MASK_STORE.
1692         * cfgloop.h (struct loop): Add dont_vectorize field.
1693         * tree-loop-distribution.c (copy_loop_before): Adjust
1694         slpeel_tree_duplicate_loop_to_edge_cfg caller.
1695         * optabs.def (maskload_optab, maskstore_optab): New optabs.
1696         * passes.def: Add a note that pass_vectorize must immediately follow
1697         pass_if_conversion.
1698         * tree-predcom.c (split_data_refs_to_components): Give up if
1699         DR_STMT is a call.
1700         * tree-vect-stmts.c (vect_mark_relevant): Don't crash if lhs is NULL.
1701         (exist_non_indexing_operands_for_use_p): Handle MASK_LOAD
1702         and MASK_STORE.
1703         (vectorizable_mask_load_store): New function.
1704         (vectorizable_call): Call it for MASK_LOAD or MASK_STORE.
1705         (vect_transform_stmt): Handle MASK_STORE.
1706         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Ignore
1707         DR_STMT where lhs is NULL.
1708         * optabs.h (can_vec_perm_p): Fix up comment typo.
1709         (can_vec_mask_load_store_p): New prototype.
1710         * optabs.c (can_vec_mask_load_store_p): New function.
1712 2013-12-10  Eric Botcazou  <ebotcazou@adacore.com>
1714         * expr.c (expand_expr_real_1) <normal_inner_ref>: Always return 0 for
1715         the extraction of a bit-field of null size.
1717 2013-12-10  Marek Polacek  <polacek@redhat.com>
1719         PR sanitizer/59437
1720         * vtable-verify.c (var_is_used_for_virtual_call_p): Check the
1721         return value of gimple_call_fn.  Use is_gimple_call/is_gimple_assign
1722         instead of gimple_code.
1724 2013-12-10  Maxim Kuvyrkov  <maxim@kugelworks.com>
1726         * config.gcc (mips*-mti-linux*, mips64*-*-linux*):
1727         Add android definitions.
1728         (s390x-*-linux*): Use linux-protos.h.
1730 2013-12-10  Bin Cheng  <bin.cheng@arm.com>
1732         PR tree-optimization/41488
1733         * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
1734         for PEELED_CHREC kind IV.
1735         * tree-scalar-evolution.c: Include necessary header files.
1736         (peeled_chrec_map, simplify_peeled_chrec): New.
1737         (analyze_evolution_in_loop): New static variable.
1738         Call simplify_peeled_chrec.
1739         (scev_initialize): Initialize peeled_chrec_map.
1740         (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
1742 2013-12-09  Andrew Pinski  <apinski@cavium.com>
1744         * config/aarch64/t-aarch64 (MULTILIB_OPTIONS): Fix definition so
1745         that options are conflicting ones.
1747 2013-12-09  Eric Botcazou  <ebotcazou@adacore.com>
1749         * optabs.c (gen_int_libfunc): Do not compare modes directly.
1751 2013-12-09  David Malcolm  <dmalcolm@redhat.com>
1753         * basic-block.h (FOR_ALL_BB): Eliminate macro.
1755         * cfg.c (alloc_aux_for_blocks, clear_aux_for_blocks): Replace
1756         uses of FOR_ALL_BB with FOR_ALL_BB_FN, making uses of cfun explicit.
1758         * cfganal.c (inverted_post_order_compute): Likewise.
1759         * cfgcleanup.c (try_optimize_cfg): Likewise.
1760         * cfgexpand.c (add_scope_conflicts): Likewise.
1761         * cfghooks.c (dump_flow_info, account_profile_record): Likewise.
1762         * cfgrtl.c (relink_block_chain): Likewise.
1763         * dce.c (mark_artificial_uses): Likewise.
1764         * df-core.c (df_set_blocks, df_compute_cfg_image, df_dump): Likewise.
1765         * df-problems.c (df_lr_verify_solution_start,
1766         df_lr_verify_solution_end, df_lr_verify_transfer_functions,
1767         df_live_verify_solution_start, df_live_verify_solution_end,
1768         df_live_set_all_dirty, df_live_verify_transfer_functions,
1769         df_md_local_comput): Likewise.
1770         * df-scan.c (df_scan_free_internal, df_scan_alloc)
1771         df_reorganize_refs_by_insn, df_scan_verify): Likewise.
1772         * dominance.c (compute_dom_fast_query, calculate_dominance_info,
1773         free_dominance_info): Likewise.
1774         * dse.c (dse_step1, dse_step3, dse_step4, dse_step6): Likewise.
1775         * graph.c (draw_cfg_edges): Likewise.
1776         * graphite-scop-detection.c (print_graphite_scop_statistics,
1777         dot_all_scops_1): Likewise.
1778         * graphite.c (print_global_statistics,
1779         print_graphite_scop_statistics): Likewise.
1780         * ira.c (do_reload): Likewise.
1781         * loop-init.c (loop_optimizer_finalize): Likewise.
1782         * lto-streamer-in.c (input_function): Likewise.
1783         * lto-streamer-out.c (output_function): Likewise.
1784         * mcf.c (adjust_cfg_counts): Likewise.
1785         * predict.c (estimate_loops): Likewise.
1786         * sched-rgn.c (haifa_find_rgns): Likewise.
1787         * tree-cfg.c (split_critical_edges): Likewise.
1788         * tree-dfa.c (renumber_gimple_stmt_uids): Likewise.
1789         * tree-loop-distribution.c (tree_loop_distribution): Likewise.
1790         * tree-ssa-pre.c (compute_antic, insert, init_pre): Likewise.
1791         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1792         * var-tracking.c (vt_initialize, vt_finalize): Likewise.
1793         * vtable-verify.c (vtable_verify_main): Likewise.
1794         * web.c (web_main): Likewise.
1796 2013-12-09  David Malcolm  <dmalcolm@redhat.com>
1798         * basic-block.h (FOR_EACH_BB_REVERSE): Eliminate macro.
1800         * cfghooks.c (verify_flow_info): Replace uses of FOR_EACH_BB_REVERSE
1801         with FOR_EACH_BB_REVERSE_FN, making uses of cfun explicit.
1802         * cfgrtl.c (print_rtl_with_bb, rtl_verify_edges,
1803         rtl_verify_bb_insns, rtl_verify_bb_pointers,
1804         rtl_verify_bb_insn_chain, rtl_verify_fallthru): Likewise.
1805         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1806         * config/sh/sh.c (sh_md_init_global): Likewise.
1807         * config/sh/sh_optimize_sett_clrt.cc
1808         (sh_optimize_sett_clrt::execute): Likewise.
1809         * dce.c (reset_unmarked_insns_debug_uses, delete_unmarked_insns):
1810         Likewise.
1811         * dominance.c (calc_dfs_tree): Likewise.
1812         * final.c (final): Likewise.
1813         * function.c (thread_prologue_and_epilogue_insns): Likewise.
1814         * gcse.c (compute_code_hoist_vbeinout): Likewise.
1815         * ira.c (update_equiv_regs, build_insn_chain): Likewise.
1816         * lcm.c (compute_antinout_edge): Likewise.
1817         * mode-switching.c (optimize_mode_switching): Likewise.
1818         * postreload.c (reload_combine): Likewise.
1819         * recog.c (split_all_insns, peephole2_optimize): Likewise.
1820         * tree-ssa-live.c (live_worklist): Likewise.
1822 2013-12-09  David Malcolm  <dmalcolm@redhat.com>
1824         * basic-block.h (FOR_EACH_BB): Eliminate macro.
1826         * asan.c (transform_statements, execute_sanopt): Eliminate
1827         use of FOR_EACH_BB in favor of FOR_EACH_BB_FN, to make use of cfun
1828         explicit.
1829         * auto-inc-dec.c (rest_of_handle_auto_inc_dec): Likewise.
1830         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges,
1831         set_edge_can_fallthru_flag, fix_up_fall_thru_edges,
1832         fix_crossing_unconditional_branches, add_reg_crossing_jump_notes,
1833         insert_section_boundary_note, rest_of_handle_reorder_blocks,
1834         duplicate_computed_gotos): Likewise.
1835         * cfg.c (clear_edges, compact_blocks, brief_dump_cfg): Likewise.
1836         * cfganal.c (find_unreachable_blocks, add_noreturn_fake_exit_edges,
1837         compute_dominance_frontiers_1, single_pred_before_succ_order): Likewise.
1838         * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
1839         * cfgcleanup.c (try_optimize_cfg, delete_dead_jumptables): Likewise.
1840         * cfgexpand.c (add_scope_conflicts, discover_nonconstant_array_refs):
1841         Likewise.
1842         * cfgloop.c (flow_loops_cfg_dump, get_loop_body, record_loop_exits,
1843         verify_loop_structure): Likewise.
1844         * cfgloopanal.c (mark_loop_exit_edges): Likewise.
1845         * cfgrtl.c (compute_bb_for_insn, find_partition_fixes,
1846         verify_hot_cold_block_grouping, purge_all_dead_edges,
1847         fixup_abnormal_edges, record_effective_endpoints,
1848         outof_cfg_layout_mode, fixup_reorder_chain, force_one_exit_fallthru,
1849         break_superblocks): Likewise.
1850         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges,
1851         cgraph_rebuild_references): Likewise.
1852         * combine-stack-adj.c (combine_stack_adjustments): Likewise.
1853         * combine.c (delete_noop_moves, create_log_links,
1854         combine_instructions): Likewise.
1855         * config/arm/arm.c (thumb1_reorg, thumb2_reorg): Likewise.
1856         * config/bfin/bfin.c (bfin_gen_bundles, reorder_var_tracking_notes):
1857         Likewise.
1858         * config/c6x/c6x.c (c6x_gen_bundles, conditionalize_after_sched,
1859         c6x_reorg): Likewise.
1860         * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
1861         * config/frv/frv.c (frv_optimize_membar): Likewise.
1862         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
1863         * config/ia64/ia64.c (ia64_reorg): Likewise.
1864         * config/mips/mips.c (mips_annotate_pic_calls): Likewise.
1865         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
1866         * config/rs6000/rs6000.c (rs6000_alloc_sdmode_stack_slot): Likewise.
1867         * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
1868         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Likewise.
1869         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1870         * config/tilegx/tilegx.c (tilegx_gen_bundles,
1871         reorder_var_tracking_notes): Likewise.
1872         * config/tilepro/tilepro.c (tilepro_gen_bundles,
1873         reorder_var_tracking_notes): Likewise.
1874         * coverage.c (coverage_compute_cfg_checksum): Likewise.
1875         * cprop.c (compute_hash_table_work, compute_cprop_data,
1876         local_cprop_pass, find_implicit_sets): Likewise.
1877         * cse.c (cse_condition_code_reg): Likewise.
1878         * dce.c (prescan_insns_for_dce): Likewise.
1879         * df-core.c (df_compact_blocks): Likewise.
1880         * df-problems.c (df_word_lr_alloc): Likewise.
1881         * df-scan.c (df_scan_start_dump, df_scan_blocks, df_insn_rescan_all,
1882         df_update_entry_exit_and_calls): Likewise.
1883         * dominance.c (calculate_dominance_info, verify_dominators,
1884         debug_dominance_info): Likewise.
1885         * dse.c (dse_step5_nospill): Likewise.
1886         * except.c (finish_eh_generation): Likewise.
1887         * final.c (compute_alignments): Likewise.
1888         * function.c (thread_prologue_and_epilogue_insns,
1889         rest_of_match_asm_constraints): Likewise.
1890         * gcse.c (compute_hash_table_work, prune_expressions,
1891         compute_pre_data, compute_code_hoist_vbeinout, hoist_code,
1892         calculate_bb_reg_pressure, compute_ld_motion_mems): Likewise.
1893         * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
1894         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour,
1895         find_explicit_erroneous_behaviour): Likewise.
1896         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa,
1897         rewrite_cross_bb_scalar_deps_out_of_ssa): Likewise.
1898         * haifa-sched.c (haifa_sched_init): Likewise.
1899         * hw-doloop.c (discover_loops, set_bb_indices, reorder_loops):
1900         Likewise.
1901         * ifcvt.c (if_convert): Likewise.
1902         * init-regs.c (initialize_uninitialized_regs): Likewise.
1903         * ipa-prop.c (ipcp_transform_function): Likewise.
1904         * ipa-pure-const.c (analyze_function): Likewise.
1905         * ipa-split.c (find_split_points, execute_split_functions): Likewise.
1906         * ira-build.c (form_loop_tree): Likewise.
1907         * ira-costs.c (find_costs_and_classes): Likewise.
1908         * ira-emit.c (emit_moves, add_ranges_and_copies, ira_emit): Likewise.
1909         * ira.c (decrease_live_ranges_number, compute_regs_asm_clobbered,
1910         mark_elimination, update_equiv_regs, find_moveable_pseudos,
1911         split_live_ranges_for_shrink_wrap, allocate_initial_values): Likewise.
1912         * jump.c (mark_all_labels): Likewise.
1913         * lcm.c (compute_laterin, compute_insert_delete, compute_available,
1914         compute_nearerout, compute_rev_insert_delete): Likewise.
1915         * loop-init.c (fix_loop_structure): Likewise.
1916         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
1917         * lower-subreg.c (decompose_multiword_subregs,
1918         decompose_multiword_subregs): Likewise.
1919         * lra-assigns.c (assign_by_spills): Likewise.
1920         * lra-coalesce.c (lra_coalesce): Likewise.
1921         * lra-constraints.c (lra_inheritance, remove_inheritance_pseudos):
1922         Likewise.
1923         * lra-eliminations.c (lra_init_elimination): Likewise.
1924         * lra-spills.c (assign_spill_hard_regs, spill_pseudos,
1925         lra_final_code_change): Likewise.
1926         * lra.c (remove_scratches, check_rtl, has_nonexceptional_receiver,
1927         update_inc_notes): Likewise.
1928         * mcf.c (adjust_cfg_counts): Likewise.
1929         * mode-switching.c (optimize_mode_switching): Likewise.
1930         * modulo-sched.c (rest_of_handle_sms): Likewise.
1931         * omp-low.c (optimize_omp_library_calls, expand_omp_taskreg,
1932         expand_omp_target): Likewise.
1933         * postreload-gcse.c (alloc_mem, compute_hash_table): Likewise.
1934         * postreload.c (reload_cse_regs_1): Likewise.
1935         * predict.c (strip_predict_hints, tree_bb_level_predictions,
1936         tree_estimate_probability, expensive_function_p,
1937         estimate_bb_frequencies, compute_function_frequency): Likewise.
1938         * profile.c (is_inconsistent, compute_branch_probabilities,
1939         branch_prob): Likewise.
1940         * ree.c (find_removable_extensions): Likewise.
1941         * reg-stack.c (compensate_edges, convert_regs, reg_to_stack): Likewise.
1942         * regcprop.c (copyprop_hardreg_forward): Likewise.
1943         * reginfo.c (init_subregs_of_mode): Likewise.
1944         * regrename.c (regrename_analyze): Likewise.
1945         * regstat.c (regstat_compute_ri, regstat_compute_calls_crossed):
1946         Likewise.
1947         * reload1.c (has_nonexceptional_receiver, reload,
1948         calculate_elim_costs_all_insns): Likewise.
1949         * resource.c (init_resource_info, free_resource_info): Likewise.
1950         * sched-ebb.c (schedule_ebbs): Likewise.
1951         * sched-rgn.c (is_cfg_nonregular, find_single_block_region,
1952         haifa_find_rgns, sched_rgn_local_init): Likewise.
1953         * sel-sched-dump.c (sel_dump_cfg_2): Likewise.
1954         * sel-sched-ir.c (init_lv_sets, free_lv_sets,
1955         make_regions_from_the_rest): Likewise.
1956         * sese.c (build_sese_loop_nests, sese_build_liveouts): Likewise.
1957         * stack-ptr-mod.c (notice_stack_pointer_modification): Likewise.
1958         * store-motion.c (compute_store_table, build_store_vectors,
1959         one_store_motion_pass): Likewise.
1960         * tracer.c (tail_duplicate): Likewise.
1961         * trans-mem.c (compute_transaction_bits): Likewise.
1962         * tree-call-cdce.c (tree_call_cdce): Likewise.
1963         * tree-cfg.c (replace_loop_annotate, factor_computed_gotos,
1964         fold_cond_expr_cond, make_edges, assign_discriminators,
1965         make_abnormal_goto_edges, cleanup_dead_labels, group_case_labels,
1966         dump_cfg_stats, gimple_verify_flow_info, print_loop,
1967         execute_fixup_cfg): Likewise.
1968         * tree-cfgcleanup.c (cleanup_tree_cfg_1, merge_phi_nodes): Likewise.
1969         * tree-complex.c (init_dont_simulate_again, tree_lower_complex):
1970         Likewise.
1971         * tree-dfa.c (collect_dfa_stats, dump_enumerated_decls): Likewise.
1972         * tree-eh.c (execute_lower_resx, execute_lower_eh_dispatch,
1973         mark_reachable_handlers): Likewise.
1974         * tree-emutls.c (lower_emutls_function_body): Likewise.
1975         * tree-if-conv.c (main_tree_if_conversion): Likewise.
1976         * tree-inline.c (optimize_inline_calls): Likewise.
1977         * tree-into-ssa.c (rewrite_into_ssa, update_ssa): Likewise.
1978         * tree-nrv.c (tree_nrv, execute_return_slot_opt): Likewise.
1979         * tree-object-size.c (compute_object_sizes): Likewise.
1980         * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees,
1981         insert_backedge_copies, tree_profiling): Likewise.
1982         * tree-scalar-evolution.c (scev_const_prop): Likewise.
1983         * tree-sra.c (scan_function, sra_modify_function_body,
1984         propagate_dereference_distances, ipa_sra_modify_function_body,
1985         convert_callers): Likewise.
1986         * tree-ssa-ccp.c (ccp_initialize, execute_fold_all_builtins): Likewise.
1987         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
1988         create_outofssa_var_map, coalesce_partitions): Likewise.
1989         * tree-ssa-copy.c (init_copy_prop): Likewise.
1990         * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
1991         * tree-ssa-dce.c (find_obviously_necessary_stmts,
1992         eliminate_unnecessary_stmts): Likewise.
1993         * tree-ssa-dom.c (free_all_edge_infos, tree_ssa_dominator_optimize):
1994         Likewise.
1995         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
1996         * tree-ssa-live.c (clear_unused_block_pointer, remove_unused_locals,
1997         new_tree_live_info, calculate_live_on_exit, dump_live_info,
1998         analyze_memory_references, fill_always_executed_in,
1999         tree_ssa_lim_finalize): Likewise.
2000         * tree-ssa-loop-manip.c (find_uses_to_rename, verify_loop_closed_ssa):
2001         Likewise.
2002         * tree-ssa-math-opts.c (execute_cse_reciprocals, execute_cse_sincos,
2003         execute_optimize_bswap, execute_optimize_widening_mul): Likewise.
2004         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
2005         * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
2006         * tree-ssa-tail-merge.c (find_same_succ, reset_cluster_vectors):
2007         Likewise.
2008         * tree-ssa-ter.c (find_replaceable_exprs): Likewise.
2009         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
2010         * tree-ssa-uncprop.c (associate_equivalences_with_edges,
2011         tree_ssa_uncprop): Likewise.
2012         * tree-ssa-uninit.c (warn_uninitialized_vars,
2013         execute_late_warn_uninitialized): Likewise.
2014         * tree-ssa.c (verify_ssa, execute_update_addresses_taken): Likewise.
2015         * tree-stdarg.c (check_all_va_list_escapes, execute_optimize_stdarg):
2016         Likewise.
2017         * tree-switch-conversion.c (do_switchconv): Likewise.
2018         * tree-vect-generic.c (expand_vector_operations): Likewise.
2019         * tree-vectorizer.c (adjust_simduid_builtins, note_simd_array_uses,
2020         execute_vect_slp): Likewise.
2021         * tree-vrp.c (check_all_array_refs, remove_range_assertions,
2022         vrp_initialize, identify_jump_threads, instrument_memory_accesses):
2023         Likewise.
2024         * ubsan.c (ubsan_pass): Likewise.
2025         * value-prof.c (verify_histograms,
2026         gimple_value_profile_transformations, gimple_find_values_to_profile):
2027         Likewise.
2028         * var-tracking.c (vt_find_locations, dump_dataflow_sets, vt_emit_notes,
2029         vt_initialize, delete_debug_insns, vt_finalize): Likewise.
2031 2013-12-09  David Malcolm  <dmalcolm@redhat.com>
2033         * basic-block.h (last_basic_block): Eliminate macro.
2035         * asan.c (transform_statements): Eliminate use of last_basic_block
2036         in favor of last_basic_block_for_fn, in order to make use of cfun
2037         explicit.
2038         * bb-reorder.c (copy_bb, reorder_basic_blocks): Likewise.
2039         * bt-load.c (compute_defs_uses_and_gen, compute_kill, compute_out,
2040         link_btr_uses, build_btr_def_use_webs, migrate_btr_defs): Likewise.
2041         * cfg.c (compact_blocks): Likewise.
2042         * cfganal.c (mark_dfs_back_edges,
2043         control_dependences::control_dependences, post_order_compute,
2044         pre_and_rev_post_order_compute_fn, dfs_enumerate_from, compute_idf,
2045         single_pred_before_succ_order): Likewise.
2046         * cfgbuild.c (make_edges): Likewise.
2047         * cfgexpand.c (add_scope_conflicts, gimple_expand_cfg): Likewise.
2048         * cfghooks.c (verify_flow_info): Likewise.
2049         * cfgloop.c (verify_loop_structure): Likewise.
2050         * cfgloopanal.c (just_once_each_iteration_p,
2051         mark_irreducible_loops): Likewise.
2052         * cfgloopmanip.c (fix_bb_placements, remove_path,
2053         update_dominators_in_loop): Likewise.
2054         * cfgrtl.c (create_basic_block_structure, rtl_create_basic_block,
2055         break_superblocks, rtl_flow_call_edges_add): Likewise.
2056         * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
2057         * config/frv/frv.c (frv_optimize_membar): Likewise.
2058         * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
2059         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
2060         * cprop.c (compute_local_properties, find_implicit_sets,
2061         bypass_conditional_jumps, one_cprop_pass): Likewise.
2062         * cse.c (cse_main): Likewise.
2063         * df-core.c (rest_of_handle_df_initialize, df_worklist_dataflow,
2064         df_analyze, df_grow_bb_info, df_compact_blocks): Likewise.
2065         * df-problems.c (df_lr_verify_solution_start,
2066         df_live_verify_solution_start, df_md_local_compute): Likewise.
2067         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
2068         calc_idoms): Likewise.
2069         * domwalk.c (dom_walker::walk): Likewise.
2070         * dse.c (dse_step0, dse_step3): Likewise.
2071         * function.c (epilogue_done): Likewise.
2072         * gcse.c (alloc_gcse_mem, compute_local_properties,
2073         prune_insertions_deletions, compute_pre_data,
2074         pre_expr_reaches_here_p, one_pre_gcse_pass,
2075         compute_code_hoist_vbeinout, should_hoist_expr_to_dom, hoist_code,
2076         one_code_hoisting_pass): Likewise.
2077         * graph.c (draw_cfg_nodes_no_loops): Likewise.
2078         * graphite-sese-to-poly.c (build_scop_bbs): Likewise.
2079         * haifa-sched.c (unlink_bb_notes): Likewise.
2080         * ipa-split.c (execute_split_functions): Likewise.
2081         * ira-build.c (create_loop_tree_nodes, remove_unnecessary_regions):
2082         Likewise.
2083         * ira-emit.c (ira_emit): Likewise.
2084         * ira.c (find_moveable_pseudos, ira): Likewise.
2085         * lcm.c (compute_antinout_edge, compute_laterin,
2086         compute_insert_delete, pre_edge_lcm, compute_available,
2087         compute_nearerout, compute_rev_insert_delete,
2088         pre_edge_rev_lcm): Likewise.
2089         * loop-unroll.c (opt_info_start_duplication, apply_opt_in_copies):
2090         Likewise.
2091         * lower-subreg.c (decompose_multiword_subregs): Likewise.
2092         * lra-lives.c (lra_create_live_ranges): Likewise.
2093         * lra.c (lra): Likewise.
2094         * mode-switching.c (optimize_mode_switching): Likewise.
2095         * recog.c (split_all_insns): Likewise.
2096         * regcprop.c (copyprop_hardreg_forward): Likewise.
2097         * regrename.c (regrename_analyze): Likewise.
2098         * reload1.c (reload): Likewise.
2099         * resource.c (init_resource_info): Likewise.
2100         * sched-rgn.c (haifa_find_rgns, extend_rgns, compute_trg_info,
2101         realloc_bb_state_array, schedule_region, extend_regions): Likewise.
2102         * sel-sched-ir.c (sel_extend_global_bb_info, extend_region_bb_info,
2103         recompute_rev_top_order, sel_init_pipelining,
2104         make_regions_from_the_rest): Likewise.
2105         * store-motion.c (remove_reachable_equiv_notes,build_store_vectors)
2106         Likewise.
2107         * tracer.c (tail_duplicate): Likewise.
2108         * trans-mem.c (tm_region_init, get_bb_regions_instrumented): Likewise.
2109         * tree-cfg.c (create_bb, cleanup_dead_labels, gimple_dump_cfg,
2110         gimple_flow_call_edges_add): Likewise.
2111         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls,
2112         cleanup_tree_cfg_1): Likewise.
2113         * tree-complex.c (tree_lower_complex): Likewise.
2114         * tree-inline.c (copy_cfg_body): Likewise.
2115         * tree-into-ssa.c (mark_phi_for_rewrite, rewrite_into_ssa,
2116         prepare_def_site_for, update_ssa): Likewise.
2117         * tree-ssa-dce.c (tree_dce_init, perform_tree_ssa_dce): Likewise.
2118         * tree-ssa-dom.c (record_edge_info): Likewise.
2119         * tree-ssa-live.c (new_tree_live_info, live_worklist): Likewise.
2120         * tree-ssa-loop-im.c (fill_always_executed_in_1): Likewise.
2121         * tree-ssa-loop-manip.c (copy_phi_node_args
2122         gimple_duplicate_loop_to_header_edge): Likewise.
2123         * tree-ssa-pre.c (compute_antic): Likewise.
2124         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2125         * tree-ssa-reassoc.c (init_reassoc): Likewise.
2126         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
2127         * tree-ssa-tail-merge.c (init_worklist): Likewise.
2128         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
2129         * tree-stdarg.c (reachable_at_most_once): Likewise.
2130         * tree-vrp.c (find_assert_locations): Likewise.
2131         * var-tracking.c (vt_find_locations): Likewise.
2133 2013-12-09  David Malcolm  <dmalcolm@redhat.com>
2135         * basic-block.h (profile_status): Eliminate macro.
2137         * cfgbuild.c (find_many_sub_basic_blocks): Eliminate use of
2138         profile_status macro in favor of profile_status_for_fn, making
2139         use of cfun explicit.
2140         * cfghooks.c (account_profile_record): Likewise.
2141         * cfgloopanal.c (single_likely_exit):
2142         * cfgrtl.c (rtl_verify_edges, rtl_account_profile_record): Likewise.
2143         * graphite.c (graphite_finalize):
2144         * internal-fn.c (ubsan_expand_si_overflow_addsub_check,
2145         ubsan_expand_si_overflow_neg_check,
2146         ubsan_expand_si_overflow_mul_check): Likewise.
2147         * ipa-split.c (consider_split, execute_split_functions):
2148         * loop-unroll.c (decide_peel_simple):
2149         * optabs.c (emit_cmp_and_jump_insn_1):
2150         * predict.c (maybe_hot_edge_p, probably_never_executed,
2151         predictable_edge_p, probability_reliable_p, gimple_predict_edge,
2152         tree_estimate_probability_driver, estimate_bb_frequencies,
2153         compute_function_frequency, rebuild_frequencies): Likewise.
2154         * profile.c (compute_branch_probabilities): Likewise.
2155         * tree-cfg.c (gimple_account_profile_record): Likewise.
2156         * tree-inline.c (optimize_inline_calls): Likewise.
2158 2013-12-09  David Malcolm  <dmalcolm@redhat.com>
2160         * basic-block.h (label_to_block_map): Eliminate macro.
2162         * gimple.c (gimple_set_bb): Replace uses of label_to_block_map with
2163         uses of label_to_block_map_for_fn, making uses of cfun be explicit.
2164         * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
2165         (verify_gimple_label): Likewise.
2167 2013-12-09  David Malcolm  <dmalcolm@redhat.com>
2169         * basic-block.h (basic_block_info): Eliminate macro.
2171         * cfgrtl.c (rtl_create_basic_block): Replace uses of basic_block_info
2172         with basic_block_info_for_fn, making uses of cfun be explicit.
2173         * tree-cfg.c (build_gimple_cfg, create_bb): Likewise.
2175 2013-12-09  David Malcolm  <dmalcolm@redhat.com>
2177         * basic-block.h (BASIC_BLOCK): Eliminate macro.
2179         * alias.c (init_alias_analysis): Eliminate BASIC_BLOCK macro in
2180         favor of uses of BASIC_BLOCK_FOR_FN, making uses of cfun explicit.
2181         * bt-load.c (compute_defs_uses_and_gen, compute_out, link_btr_uses,
2182         block_at_edge_of_live_range_p, migrate_btr_defs): Likewise.
2183         * caller-save.c (insert_one_insn): Likewise.
2184         * cfg.c (debug_bb, get_bb_original, get_bb_copy): Likewise.
2185         * cfgexpand.c (add_scope_conflicts): Likewise.
2186         * cfghooks.c (verify_flow_info): Likewise.
2187         * cfgloop.c (flow_loops_find): Likewise.
2188         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
2189         * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
2190         * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
2191         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
2192         * cse.c (cse_main): Likewise.
2193         * dce.c (fast_dce): Likewise.
2194         * df-core.c (df_set_blocks, df_worklist_propagate_forward,
2195         df_worklist_propagate_backward, df_worklist_dataflow_doublequeue,
2196         df_bb_replace, df_dump_region): Likewise.
2197         * df-problems.c (df_rd_bb_local_compute, df_lr_bb_local_compute,
2198         df_live_bb_local_compute, df_chain_remove_problem)
2199         df_chain_create_bb, df_word_lr_bb_local_compute, df_note_bb_compute,
2200         df_md_bb_local_compute, df_md_local_compute,
2201         df_md_transfer_function): Likewise.
2202         * df-scan.c (df_scan_blocks, df_reorganize_refs_by_reg_by_insn,
2203         df_reorganize_refs_by_insn, df_bb_refs_collect,
2204         df_record_entry_block_defs, df_update_entry_block_defs,
2205         df_record_exit_block_uses): Likewise.
2206         * dominance.c (nearest_common_dominator_for_set): Likewise.
2207         * gcse.c (hoist_code): Likewise.
2208         * graph.c (draw_cfg_nodes_no_loops): Likewise.
2209         * ipa-inline-analysis.c (param_change_prob,
2210         estimate_function_body_sizes): Likewise.
2211         * ipa-split.c (dominated_by_forbidden): Likewise.
2212         * loop-unroll.c (apply_opt_in_copies): Likewise.
2213         * lower-subreg.c (decompose_multiword_subregs): Likewise.
2214         * lra-lives.c (lra_create_live_ranges): Likewise.
2215         * predict.c (propagate_freq): Likewise.
2216         * regrename.c (regrename_analyze): Likewise.
2217         * regstat.c (regstat_bb_compute_ri, regstat_bb_compute_calls_crossed):
2218         Likewise.
2219         * resource.c (mark_target_live_regs): Likewise.
2220         * sched-ebb.c (ebb_fix_recovery_cfg): Likewise.
2221         * sched-int.h (EBB_FIRST_BB, EBB_LAST_BB): Likewise.
2222         * sched-rgn.c (debug_region, dump_region_dot, too_large,
2223         haifa_find_rgns, extend_rgns, compute_dom_prob_ps, update_live,
2224         propagate_deps, sched_is_disabled_for_current_region_p): Likewise.
2225         * sched-vis.c (debug_bb_n_slim): Likewise.
2226         * sel-sched-ir.c (sel_finish_global_and_expr, verify_backedges,
2227         purge_empty_blocks, sel_remove_loop_preheader): Likewise.
2228         * sel-sched.c (remove_insns_that_need_bookkeeping)
2229         (current_region_empty_p, sel_region_init, simplify_changed_insns):
2230         Likewise.
2231         * trans-mem.c (execute_tm_mark, execute_tm_edges,
2232         tm_memopt_compute_antic, ipa_tm_scan_irr_function): Likewise.
2233         * tree-cfg.c (make_edges, end_recording_case_labels,
2234         label_to_block_fn, gimple_debug_bb, gimple_flow_call_edges_add,
2235         remove_edge_and_dominated_blocks, remove_edge_and_dominated_blocks,
2236         gimple_purge_all_dead_eh_edges,
2237         gimple_purge_all_dead_abnormal_call_edges): Likewise.
2238         * tree-cfgcleanup.c (fixup_noreturn_call,
2239         split_bbs_on_noreturn_calls, cleanup_tree_cfg_1): Likewise.
2240         * tree-inline.c (copy_cfg_body, fold_marked_statements): Likewise.
2241         * tree-into-ssa.c (set_livein_block, prune_unused_phi_nodes,
2242         insert_phi_nodes_for, insert_updated_phi_nodes_for): Likewise.
2243         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
2244         * tree-ssa-live.c (live_worklist): Likewise.
2245         * tree-ssa-loop-manip.c (compute_live_loop_exits, add_exit_phis_var,
2246         find_uses_to_rename, copy_phi_node_args): Likewise.
2247         * tree-ssa-pre.c (compute_antic): Likewise.
2248         * tree-ssa-reassoc.c (update_range_test, optimize_range_tests):
2249         Likewise.
2250         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
2251         * tree-ssa-tail-merge.c (same_succ_hash, same_succ_def::equal,
2252         same_succ_flush_bbs, update_worklist, set_cluster,
2253         same_phi_alternatives, find_clusters_1, apply_clusters,
2254         update_debug_stmts): Likewise.
2255         * tree-ssa-threadupdate.c (mark_threaded_blocks,
2256         thread_through_all_blocks): Likewise.
2257         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
2258         * tree-vrp.c (find_assert_locations): Likewise.
2260 2013-12-09  David Malcolm  <dmalcolm@redhat.com>
2262         * basic-block.h (SET_BASIC_BLOCK): Eliminate macro.
2264         * cfg.c (compact_blocks): Replace uses of SET_BASIC_BLOCK
2265         with SET_BASIC_BLOCK_FOR_FN, making use of cfun explicit.
2266         (expunge_block): Likewise.
2267         * cfgrtl.c (create_basic_block_structure): Likewise.
2268         * df-core.c (df_compact_blocks, df_bb_replace): Likewise.
2269         * sel-sched.c (create_block_for_bookkeeping): Likewise.
2270         * tree-cfg.c (create_bb): Likewise.
2272 2013-12-09  David Malcolm  <dmalcolm@redhat.com>
2274         * basic-block.h (profile_status_for_function): Rename to...
2275         (profile_status_for_fn): ...this.
2277         * cfg.c (check_bb_profile): Update for renaming.
2278         * cgraphbuild.c (compute_call_stmt_bb_frequency): Likewise.
2279         * lto-streamer-in.c (input_cfg): Likewise.
2280         * lto-streamer-out.c (output_cfg):  Likewise.
2281         * predict.c (maybe_hot_frequency_p, maybe_hot_count_p,
2282         maybe_hot_bb_p, probably_never_executed)
2283         (handle_missing_profiles): Likewise.
2284         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2285         * tree-inline.c (copy_bb, initialize_cfun): Likewise.
2287 2013-12-09  David Malcolm  <dmalcolm@redhat.com>
2289         * basic-block.h (label_to_block_map_for_function): Rename to...
2290         (label_to_block_map_for_fn): ...this.
2292         * lto-streamer-in.c (input_cfg): Update for renaming.
2293         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2295 2013-12-09  David Malcolm  <dmalcolm@redhat.com>
2297         * basic-block.h (last_basic_block_for_function): Rename to...
2298         (last_basic_block_for_fn): ...this.
2300         * ipa-utils.c (ipa_merge_profiles): Update for renaming of
2301         last_basic_block_for_function to last_basic_block_for_fn.
2302         * lto-streamer-in.c (input_cfg): Likewise.
2303         * lto-streamer-out.c (output_cfg): Likewise.
2304         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2305         * tree-sra.c (propagate_dereference_distances, ipa_early_sra):
2306         Likewise.
2308 2013-12-09  David Malcolm  <dmalcolm@redhat.com>
2310         * basic-block.h (basic_block_info_for_function): Rename to...
2311         (basic_block_info_for_fn): ...this.
2312         (BASIC_BLOCK_FOR_FUNCTION): Rename to...
2313         (BASIC_BLOCK_FOR_FN): ...this.
2314         (SET_BASIC_BLOCK_FOR_FUNCTION): Rename to...
2315         (SET_BASIC_BLOCK_FOR_FN): ...this.
2317         * gimple-streamer-in.c (input_phi, input_bb): Update for renaming
2318         of BASIC_BLOCK_FOR_FUNCTION to BASIC_BLOCK_FOR_FN.
2319         * ipa-utils.c (ipa_merge_profiles): Likewise.
2320         * lto-streamer-in.c (make_new_block): Update for renaming of
2321         SET_BASIC_BLOCK_FOR_FUNCTION to SET_BASIC_BLOCK_FOR_FN.
2322         (input_cfg): Update for renamings.
2323         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2324         (dump_function_to_file): Update for renaming of
2325         basic_block_info_for_function to basic_block_info_for_fn.
2327 2013-12-09  Richard Biener  <rguenther@suse.de>
2329         PR middle-end/38474
2330         * tree-ssa-structalias.c (set_union_with_increment): Remove
2331         unreachable code.
2332         (do_complex_constraint): Call set_union_with_increment with
2333         the solution delta, not the full solution.
2334         (make_transitive_closure_constraints): Merge the two constraints.
2336 2013-12-09  Richard Earnshaw  <rearnsha@arm.com>
2338         * arm.c (mem_ok_for_ldrd_strd): Rename first argument as MEM.  Do
2339         more address validation checks.
2341 2013-12-09  Marek Polacek  <polacek@redhat.com>
2343         PR sanitizer/59415
2344         * vtable-verify.c (verify_bb_vtables): Check the return value
2345         of gimple_call_fn.  Use is_gimple_call instead of gimple_code.
2347 2013-12-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2349         * config/arm/arm.md (generic_sched): Add cortexa12.
2350         (generic_vfp): Likewise.
2351         * config/arm/arm.c (cortexa12_extra_costs): New cost table.
2352         (arm_cortex_a12_tune): New tuning struct.
2353         * config/arm/arm-cores.def: Add cortex-a12.
2354         * config/arm/arm-tables.opt: Regenerate.
2355         * config/arm/arm-tune.md: Likewise.
2356         * config/arm/bpabi.h: Add cortex-a12.
2357         * doc/invoke.texi: Document -mcpu=cortex-a12.
2359 2013-12-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2361         * doc/install.texi (Prerequisites): Explicitly mention C library
2362         and its headers for multilib builds.
2364 2013-12-08  Oleg Endo  <olegendo@gcc.gnu.org>
2366         PR target/52898
2367         PR target/51697
2368         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
2369         OPT_mcbranchdi entry.
2370         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Mark as undocumented and
2371         emit a warning.
2372         * config/sh/sh.c (sh_option_override): Initialize TARGET_CBRANCHDI4
2373         and TARGET_CMPEQDI_T variables.
2374         * doc/invoke.texi (SH options): Undocument -mcbranchdi and -mcmpeqdi.
2376 2013-12-07  Maxim Kuvyrkov  <maxim@kugelworks.com>
2378         * config/linux.h: Fix typo in a comment.
2380 2013-12-07  Maxim Kuvyrkov  <maxim@kugelworks.com>
2382         * config.gcc (*linux*): Split libc selection from Android support.
2383         Add libc selection to all *linux* targets.  Add Android support to
2384         architectures that support it.
2385         (arm*-*-linux-*, i[34567]86-*-linux*, x86_64-*-linux*,)
2386         (mips*-*-linux*): Add Android support.
2388 2013-12-07  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2389             Maxim Kuvyrkov  <maxim@kugelworks.com>
2391         * config/bfin/uclinux.h, config/c6x/uclinux-elf.h,
2392         * config/lm32/uclinux-elf.h, config/m68k/uclinux.h,
2393         * config/moxie/uclinux.h (TARGET_LIBC_HAS_FUNCTION): Move definitions
2394         to linux.h.
2395         * config/linux-android.h (TARGET_HAS_IFUNC_P): Move definition
2396         to linux.h.
2397         * config/linux.h (TARGET_LIBC_HAS_FUNCTION, TARGET_HAS_IFUNC_P):
2398         Define appropriately for Linux and uClinux targets.
2400 2013-12-07  Maxim Kuvyrkov  <maxim@kugelworks.com>
2402         * config/linux.c (linux_has_ifunc_p): Use correct test.
2404 2013-12-07  Maxim Kuvyrkov  <maxim@kugelworks.com>
2406         * config/linux.c (linux_android_has_ifunc_p): Rename to
2407         linux_has_ifunc_p.
2408         (linux_android_libc_has_function): Rename to linux_libc_has_function.
2409         * config/linux-protos.h (linux_android_has_ifunc_p,)
2410         (linux_android_libc_has_function): Update declarations.
2411         * config/linux.h, config/linux-android.h, config/alpha/linux.h,
2412         * config/rs6000/linux.h, config/rs6000/linux64.h: Update.
2414 2013-12-07  Maxim Kuvyrkov  <maxim@kugelworks.com>
2416         * linux-android.c: Rename to linux.c.
2417         * t-linux-android: Rename to t-linux.  Update references
2418         to linux-android.c
2419         * config.gcc: Update references to t-linux-android and linux-android.o.
2421 2013-12-07  Alan Modra  <amodra@gmail.com>
2423         * config/rs6000/rs6000.md (bswapdi2_32bit): Remove ?? from r->r
2424         alternative.
2426 2013-12-07  Ralf Corsépius  <ralf.corsepius@rtems.org>
2428         * config.gcc (microblaze*-*-rtems*): Add TARGET_BIG_ENDIAN_DEFAULT.
2430 2013-12-06  Vladimir Makarov  <vmakarov@redhat.com>
2432         * config/rs6000/rs600.md (*bswapdi2_64bit): Remove ?? from the
2433         constraint.
2435 2013-12-06  Caroline Tice  <cmtice@google.com>
2437         Submitting patch from Stephen Checkoway, s@cs.jhu.edu
2438         * vtable-verify.c (verify_bb_vtables): Replace all uses of verified
2439         vtable pointer with the results of the verification call, rather than
2440         only the uses in the next statement.
2442 2013-12-06  Andrew Pinski  <apinski@cavium.com>
2444         PR target/59092
2445         * config/aarch64/aarch64.md (trap): New pattern.
2447 2013-12-06  Jakub Jelinek  <jakub@redhat.com>
2449         PR tree-optimization/59388
2450         * tree-ssa-reassoc.c (update_range_test): If op == range->exp,
2451         gimplify tem after stmt rather than before it.
2453         * tree-data-ref.c (struct data_ref_loc_d): Replace pos field with ref.
2454         (get_references_in_stmt): Don't record operand addresses, but
2455         operands themselves.
2456         (find_data_references_in_stmt, graphite_find_data_references_in_stmt):
2457         Adjust for the pos -> ref change.
2459 2013-12-06  H.J. Lu  <hongjiu.lu@intel.com>
2461         * config.gcc: Change --with-cpu=ia to --with-cpu=intel.
2463         * config/i386/i386.c (cpu_names): Replace "ia" with "intel".
2464         (processor_alias_table): Likewise.
2465         (ix86_option_override_internal): Likewise.
2466         * config/i386/i386.h (target_cpu_default): Replace
2467         TARGET_CPU_DEFAULT_ia with TARGET_CPU_DEFAULT_intel.
2469         * doc/invoke.texi: Replace -mtune=ia with -mtune=intel.
2471 2013-12-06  Uros Bizjak  <ubizjak@gmail.com>
2473         PR target/59405
2474         * config/i386/i386.c (type_natural_mode): Properly handle
2475         size 8 for !TARGET_64BIT.
2477 2013-12-06  Trevor Saunders  <tsaunders@mozilla.com>
2479         * tree-ssa-pre.c (compute_antic_aux): Remove redundant call to
2480         vec::release.
2482 2013-12-06  Ian Bolton  <ian.bolton@arm.com>
2483             Mark Mitchell  <mark@codesourcery.com>
2485         PR target/59091
2486         * config/arm/arm.md (trap): New pattern.
2487         * config/arm/types.md: Added a type for trap.
2489 2013-12-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2491         * expr.c (expand_assignment): Update bitregion_start and bitregion_end.
2493 2013-12-06  Eric Botcazou  <ebotcazou@adacore.com>
2495         PR target/59316
2496         * config/sparc/sparc.h (SPARC_LOW_FE_EXCEPT_VALUES): Define.
2497         * config/sparc/sol2.h (SPARC_LOW_FE_EXCEPT_VALUES): Redefine.
2498         * config/sparc/sparc.c (TARGET_INIT_BUILTINS): Move around.
2499         (TARGET_BUILTIN_DECL): Define.
2500         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Likewise.
2501         (sparc32_initialize_trampoline): Adjust call to gen_flush.
2502         (enum sparc_builtins): New enumeral type.
2503         (sparc_builtins): New static array.
2504         (sparc_builtins_icode): Likewise.
2505         (def_builtin): Accept a separate icode and save the result.
2506         (def_builtin_const): Likewise.
2507         (sparc_fpu_init_builtins): New function.
2508         (sparc_vis_init_builtins): Pass the builtin code.
2509         (sparc_init_builtins): Call it if TARGET_FPU.
2510         (sparc_builtin_decl): New function.
2511         (sparc_expand_builtin): Deal with SPARC_BUILTIN_{LD,ST}FSR.
2512         (sparc_handle_vis_mul8x16): Use the builtin code.
2513         (sparc_fold_builtin): Likewise.  Deal with SPARC_BUILTIN_{LD,ST}FSR
2514         and SPARC_BUILTIN_PDISTN.
2515         (compound_expr): New helper function.
2516         (sparc_atomic_assign_expand_fenv): New function.
2517         * config/sparc/sparc.md (unspecv): Reorder values, add UNSPECV_LDFSR
2518         and UNSPECV_STFSR.
2519         (flush, flushdi): Merge into single pattern.
2520         (ldfsr): New instruction.
2521         (stfsr): Likewise.
2523 2013-12-06  Oleg Endo  <olegendo@gcc.gnu.org>
2525         * asan.c: Remove struct tags when referring to class varpool_node.
2526         * cgraph.h: Likewise.
2527         * cgraphbuild.c: Likewise.
2528         * cgraphunit.c: Likewise.
2529         * dbxout.c: Likewise.
2530         * dwarf2out.c: Likewise.
2531         * gimple-fold.c: Likewise.
2532         * ipa-devirt.c: Likewise.
2533         * ipa-ref-inline.h: Likewise.
2534         * ipa-ref.h: Likewise.
2535         * ipa-reference.c: Likewise.
2536         * ipa-utils.c: Likewise.
2537         * ipa.c: Likewise.
2538         * lto-cgraph.c: Likewise.
2539         * lto-streamer-out.c: Likewise.
2540         * lto-streamer.h: Likewise.
2541         * passes.c: Likewise.
2542         * toplev.c: Likewise.
2543         * tree-eh.c: Likewise.
2544         * tree-emutls.c: Likewise.
2545         * tree-pass.h: Likewise.
2546         * tree-ssa-structalias.c: Likewise.
2547         * tree-vectorizer.c: Likewise.
2548         * tree.c: Likewise.
2549         * varasm.c: Likewise.
2550         * varpool.c: Likewise.
2552 2013-12-06  Oleg Endo  <olegendo@gcc.gnu.org>
2554         * cgraphunit.c: Remove struct tags when referring to class
2555         ipa_opt_pass_d or class opt_pass.
2556         * function.h: Likewise.
2557         * lto-cgraph.c: Likewise.
2558         * pass_manager.h: Likewise.
2559         * passes.c: Likewise.
2560         * tree-pass.h: Likewise.
2562 2013-12-06  Richard Biener  <rguenther@suse.de>
2564         PR tree-optimization/59058
2565         * tree-vectorizer.h (struct _loop_vec_info): Add num_itersm1 member.
2566         (LOOP_VINFO_NITERSM1): New macro.
2567         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Express
2568         the vector loop entry test in terms of scalar latch executions.
2569         (vect_do_peeling_for_alignment): Update LOOP_VINFO_NITERSM1.
2570         * tree-vect-loop.c (vect_get_loop_niters): Also return the
2571         number of latch executions.
2572         (new_loop_vec_info): Initialize LOOP_VINFO_NITERSM1.
2573         (vect_analyze_loop_form): Likewise.
2574         (vect_generate_tmps_on_preheader): Compute the number of
2575         vectorized iterations differently.
2577 2013-12-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2579         * config/score/score.c (score_force_temporary): Delete function.
2580         (score_split_symbol): Ditto.
2581         * config/score/score.h (ASM_OUTPUT_ADDR_DIFF_ELT): Add extra
2582         parentheses to silence ambiguity warning and reindent.
2584 2013-12-05  Marek Polacek  <polacek@redhat.com>
2586         * doc/invoke.texi: Document -fsanitize=signed-integer-overflow.
2588 2013-12-05  H.J. Lu  <hongjiu.lu@intel.com>
2590         * config.gcc: Support --with-cpu=ia.
2592         * config/i386/i386.c (cpu_names): Add "ia".
2593         (processor_alias_table): Likewise.
2594         (ix86_option_override_internal): Disallow -march=ia.
2595         * config/i386/i386.h (target_cpu_default): Add TARGET_CPU_DEFAULT_ia.
2597         * doc/invoke.texi: Document -mtune=ia.
2599 2013-12-05  Vladimir Makarov  <vmakarov@redhat.com>
2601         PR rtl-optimization/59317
2602         * lra-constraints.c (in_class_p): Don't ignore insn with constant
2603         as a source.
2605 2013-12-05  Martin Jambor  <mjambor@suse.cz>
2607         PR ipa/58253
2608         * ipa-prop.c (ipa_modify_formal_parameters): Create decls of
2609         non-BLKmode in their naturally aligned type.
2611 2013-12-05  Marek Polacek  <polacek@redhat.com>
2613         PR sanitizer/59333
2614         PR sanitizer/59397
2615         * ubsan.c: Include rtl.h and expr.h.
2616         (ubsan_encode_value): Add new parameter.  If expanding, assign
2617         a stack slot for DECL_RTL of the temporary and call expand_assignment.
2618         Handle BOOLEAN_TYPE and ENUMERAL_TYPE.
2619         (ubsan_build_overflow_builtin): Adjust ubsan_encode_value call.
2620         * ubsan.h (ubsan_encode_value): Adjust declaration.
2621         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Move
2622         ubsan_build_overflow_builtin above expand_normal call.  Surround
2623         this call with push_temp_slots and pop_temp_slots.
2624         (ubsan_expand_si_overflow_neg_check): Likewise.
2625         (ubsan_expand_si_overflow_mul_check): Likewise.
2627 2013-12-05  Yufeng Zhang  <yufeng.zhang@arm.com>
2629         * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Guard
2630         the get_alternative_base call with flag_expensive_optimizations.
2631         (alloc_cand_and_find_basis): Likewise.
2633 2013-12-05  Tejas Belagod  <tejas.belagod@arm.com>
2635         * rtlanal.c (set_noop_p): Return nonzero in case of redundant
2636         vec_select for overlapping register lanes.
2638 2013-12-05  Kirill Yukhin  <kirill.yukhin@intel.com>
2640         * config/i386/i386.c (ix86_expand_builtin): Generate
2641         reg for readflags built-in when optimizing.
2642         * config/i386/i386.md (*pushfl<mode>): Rename to ...
2643         (pushfl<mode>2): This. Fix iterator.
2644         (*popfl<mode>): Rename to ...
2645         (*popfl<mode>1): This. Fix iterator.
2647 2013-12-05  Kirill Yukhin  <kirill.yukhin@intel.com>
2649         * config/i386/i386.c (IX86_BUILTIN_READ_FLAGS): New.
2650         (IX86_BUILTIN_WRITE_FLAGS): Ditto.
2651         (ix86_init_mmx_sse_builtins): Define
2652         __builtin_ia32_writeeflags_u32, __builtin_ia32_writeeflags_u64,
2653         __builtin_ia32_readeflags_u32, __builtin_ia32_readeflags_u64.
2654         (ix86_expand_builtin): Expand them.
2655         * config/i386/ia32intrin.h (__readeflags): New.
2656         (__writeeflags): Ditto.
2657         * config/i386/i386.md (*pushfl<mode>): Ditto.
2658         (*popfl<mode>1): Ditto.
2660 2013-12-05  Richard Biener  <rguenther@suse.de>
2662         PR tree-optimization/59374
2663         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
2664         Commonize known and unknown dependence case fixing the allowed
2665         read-write dependence case and dropping code that should not matter.
2667 2013-12-05  Kirill Yukhin  <kirill.yukhin@intel.com>
2669         * config/ia64/ia64.md (prologue_allocate_stack): Block auto-
2670         generation of predicated version.
2671         (epilogue_deallocate_stack): Ditto.
2672         (prologue_allocate_stack_pr): Add explicit predicated version.
2673         (epilogue_deallocate_stack_pr): Ditto.
2674         * config/ia64/ia64.c (ia64_single_set): Use explicit version.
2676 2013-12-05  Alan Modra  <amodra@gmail.com>
2678         * configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
2679         build != host.
2680         <recursive call for build != host>: Clear GMPINC.  Don't bother
2681         saving CFLAGS.
2683 2013-12-04  Jakub Jelinek  <jakub@redhat.com>
2684             Marek Polacek  <polacek@redhat.com>
2686         * opts.c (common_handle_option): Handle
2687         -fsanitize=signed-integer-overflow.
2688         * config/i386/i386.md (addv<mode>4, subv<mode>4, mulv<mode>4,
2689         negv<mode>3, negv<mode>3_1): Define expands.
2690         (*addv<mode>4, *subv<mode>4, *mulv<mode>4, *negv<mode>3): Define insns.
2691         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW,
2692         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW,
2693         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW,
2694         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW): Define.
2695         * ubsan.h (PROB_VERY_UNLIKELY, PROB_EVEN, PROB_VERY_LIKELY,
2696         PROB_ALWAYS): Define.
2697         (ubsan_build_overflow_builtin): Declare.
2698         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Add folding of
2699         internal functions.
2700         * ubsan.c (PROB_VERY_UNLIKELY): Don't define here.
2701         (ubsan_build_overflow_builtin): New function.
2702         (instrument_si_overflow): Likewise.
2703         (ubsan_pass): Add signed integer overflow checking.
2704         (gate_ubsan): Enable the pass also when SANITIZE_SI_OVERFLOW.
2705         * flag-types.h (enum sanitize_code): Add SANITIZE_SI_OVERFLOW.
2706         * internal-fn.c: Include ubsan.h and target.h.
2707         (ubsan_expand_si_overflow_addsub_check): New function.
2708         (ubsan_expand_si_overflow_neg_check): Likewise.
2709         (ubsan_expand_si_overflow_mul_check): Likewise.
2710         (expand_UBSAN_CHECK_ADD): Likewise.
2711         (expand_UBSAN_CHECK_SUB): Likewise.
2712         (expand_UBSAN_CHECK_MUL): Likewise.
2713         * fold-const.c (fold_binary_loc): Don't fold A + (-B) -> A - B and
2714         (-A) + B -> B - A when doing the signed integer overflow checking.
2715         * internal-fn.def (UBSAN_CHECK_ADD, UBSAN_CHECK_SUB, UBSAN_CHECK_MUL):
2716         Define.
2717         * tree-vrp.c (extract_range_basic): Handle internal calls.
2718         * optabs.def (addv4_optab, subv4_optab, mulv4_optab, negv4_optab): New
2719         optabs.
2720         * asan.c: Include predict.h.
2721         (PROB_VERY_UNLIKELY, PROB_ALWAYS): Don't define here.
2722         * predict.c: Move the PROB_* macros...
2723         * predict.h (enum br_predictor): ...here.
2724         (PROB_LIKELY, PROB_UNLIKELY): Define.
2725         * trans-mem.c: Include predict.h.
2726         (PROB_VERY_UNLIKELY, PROB_ALWAYS, PROB_VERY_LIKELY,
2727         PROB_LIKELY, PROB_UNLIKELY): Don't define here.
2729 2013-12-04  Jeff Law  <law@redhat.com>
2731         * common.opt: Split up -fisolate-erroneous-paths into
2732         -fisolate-erroneous-paths-dereference and
2733         -fisolate-erroneous-paths-attribute.
2734         * invoke.texi: Corresponding changes.
2735         * gimple.c (infer_nonnull_range):  Add and use new arguments to control
2736         what kind of statements can be used to infer a non-null range.
2737         * gimple.h (infer_nonnull_range): Update prototype.
2738         * tree-vrp.c (infer_value_range): Corresponding changes.
2739         * opts.c (default_options_table): Update due to option split.
2740         * gimple-ssa-isolate-paths.c: Fix trailing whitespace.
2741         (find_implicit_erroneous_behaviour): Pass additional arguments
2742         to infer_nonnull_range.
2743         (find_explicit_erroneous_behaviour): Similarly.
2744         (gate_isolate_erroneous_paths): Check both of the new options.
2746 2013-12-04  Jeff Law  <law@redhat.com>
2748         * expr.c (expand_assignment): Update comments.
2750 2013-12-04  Tobias Burnus  <burnus@net-b.de>
2752         PR debug/37132
2753         * lto-streamer.h (LTO_tags): Add LTO_namelist_decl_ref.
2754         * tree.def (NAMELIST_DECL): Add.
2755         * tree.h (NAMELIST_DECL_ASSOCIATED_DECL): New macro.
2756         * tree.c (initialize_tree_contains_struct): Add asserts for it.
2757         * dwarf2out.c (gen_namelist_decl): New function.
2758         (gen_decl_die, dwarf2out_decl): Call it.
2759         (dwarf2out_imported_module_or_decl_1): Handle NAMELIST_DECL.
2760         * lto-streamer-in.c (lto_input_tree_ref): Handle NAMELIST_DECL.
2761         (lto_input_tree_ref, lto_input_tree_1): Update lto_tag_check_range
2762         call.
2763         * lto-streamer-out.c (lto_output_tree_ref): Handle NAMELIST_DECL.
2765 2013-12-03  Xinliang David Li  <davidxl@google.com>
2767         * tree-ssa-structalias.c (constraint_set_union): Change return type
2768         from void to bool.
2769         (merge_node_constraints): Ditto.
2770         (unify_nodes): Update changed set when constraints set changes.
2772 2013-12-04  H.J. Lu  <hongjiu.lu@intel.com>
2774         * configure.ac: Append gdbasan.in to .gdbinit if CFLAGS contains
2775         -fsanitize=address.
2776         * configure: Regenerated.
2778         * gdbasan.in: New file.
2780 2013-12-04  Jakub Jelinek  <jakub@redhat.com>
2782         PR rtl-optimization/58726
2783         * combine.c (force_to_mode): Fix comment typo.  Don't destructively
2784         modify x for ROTATE, ROTATERT and IF_THEN_ELSE.
2786 2013-12-04  Jakub Jelinek  <jakub@redhat.com>
2787             Uros Bizjak  <ubizjak@gmail.com>
2789         PR target/59163
2790         * config/i386/i386.c (ix86_legitimate_combined_insn): If for
2791         !TARGET_AVX there is misaligned MEM operand with vector mode
2792         and get_attr_ssememalign is 0, return false.
2793         (ix86_expand_special_args_builtin): Add get_pointer_alignment
2794         computed alignment and for non-temporal loads/stores also
2795         at least GET_MODE_ALIGNMENT as MEM_ALIGN.
2796         * config/i386/sse.md
2797         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
2798         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
2799         <sse2_avx_avx512f>_loaddqu<mode><mask_name>,
2800         <sse2_avx_avx512f>_storedqu<mode>, <sse3>_lddqu<avxsizesuffix>,
2801         sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
2802         sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
2803         *vec_interleave_highv2df, *vec_interleave_lowv2df,
2804         *vec_extractv2df_1_sse, sse2_movsd, sse4_1_<code>v8qiv8hi2,
2805         sse4_1_<code>v4qiv4si2, sse4_1_<code>v4hiv4si2,
2806         sse4_1_<code>v2qiv2di2, sse4_1_<code>v2hiv2di2,
2807         sse4_1_<code>v2siv2di2, sse4_2_pcmpestr, *sse4_2_pcmpestr_unaligned,
2808         sse4_2_pcmpestri, sse4_2_pcmpestrm, sse4_2_pcmpestr_cconly,
2809         sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned, sse4_2_pcmpistri,
2810         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add ssememalign attribute.
2811         * config/i386/i386.md (ssememalign): New define_attr.
2813 2013-12-04  Jakub Jelinek  <jakub@redhat.com>
2815         PR tree-optimization/59355
2816         * ipa-devirt.c (gate_ipa_devirt): Return false if !flag_devirtualize.
2817         * opts.c (common_handle_option): Fix comment spelling.
2819 2013-12-04  Yufeng Zhang  <yufeng.zhang@arm.com>
2821         * gimple-ssa-strength-reduction.c: Include tree-affine.h.
2822         (name_expansions): New static variable.
2823         (alt_base_map): Ditto.
2824         (get_alternative_base): New function.
2825         (find_basis_for_candidate): For CAND_REF, optionally call
2826         find_basis_for_base_expr with the returned value from
2827         get_alternative_base.
2828         (record_potential_basis): Add new parameter 'base' of type 'tree';
2829         add an assertion of non-NULL base; use base to set node->base_expr.
2830         (alloc_cand_and_find_basis): Update; call record_potential_basis
2831         for CAND_REF with the returned value from get_alternative_base.
2832         (replace_refs): Dump details on the replacing.
2833         (execute_strength_reduction): Call pointer_map_create for
2834         alt_base_map; call free_affine_expand_cache with &name_expansions.
2836 2013-12-03  Wei Mi  <wmi@google.com>
2838         PR rtl-optimization/59020
2839         * sched-deps.c (try_group_insn): Move it from haifa-sched.c to here.
2840         (sched_analyze_insn): Call try_group_insn.
2841         (sched_analyze): Cleanup SCHED_GROUP_P before start the analysis.
2842         * haifa-sched.c (try_group_insn): Moved to sched-deps.c.
2843         (group_insns_for_macro_fusion): Removed.
2844         (sched_init): Remove calling group_insns_for_macro_fusion.
2846 2013-12-03  Peter Bergner  <bergner@vnet.ibm.com>
2848         * config/rs6000/htmintrin.h (_TEXASR_INSTRUCTION_FETCH_CONFLICT): Fix
2849         typo in macro name.
2850         (_TEXASRU_INSTRUCTION_FETCH_CONFLICT): Likewise.
2852 2013-12-03  Vladimir Makarov  <vmakarov@redhat.com>
2854         * config/aarch64/aarch64.c (aarch64_frame_pointer_required): Check
2855         LR_REGNUM.
2856         (aarch64_can_eliminate): Don't check elimination source when
2857         frame_pointer_required is false.
2859 2013-12-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2861         * config/avr/avr.c (avr_option_override): Warn if asked to generate
2862         position independent code.
2863         * config/avr/avr.h: Modify LINK_SPEC to reject -shared.
2865 2013-12-03   H.J. Lu  <hongjiu.lu@intel.com>
2867         PR target/59363
2868         * config/i386/i386.c (emit_memset): Adjust destination address
2869         after gen_strset.
2870         (expand_setmem_epilogue): Likewise.
2872 2013-12-03  Marek Polacek  <polacek@redhat.com>
2874         PR middle-end/56344
2875         * calls.c (expand_call): Disallow passing huge arguments by value.
2877 2013-12-03  Jakub Jelinek  <jakub@redhat.com>
2879         PR tree-optimization/59362
2880         * tree-object-size.c (object_sizes): Change into array of
2881         vec<unsigned HOST_WIDE_INT>.
2882         (compute_builtin_object_size): Check computed bitmap for
2883         non-NULL instead of object_sizes.  Call safe_grow on object_sizes
2884         vector if new SSA_NAMEs appeared.
2885         (init_object_sizes): Check computed bitmap for non-NULL.
2886         Call safe_grow on object_sizes elements instead of initializing
2887         it with XNEWVEC.
2888         (fini_object_sizes): Call release on object_sizes elements, don't
2889         set it to NULL.
2891         PR middle-end/59011
2892         * gimplify.c (nonlocal_vla_vars): New variable.
2893         (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
2894         nonlocal_vla_vars chain.
2895         (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
2896         if outer_bind has DECL_INITIAL (current_function_decl) block.
2898         PR target/58864
2899         * dojump.c (save_pending_stack_adjust, restore_pending_stack_adjust):
2900         New functions.
2901         * expr.h (struct saved_pending_stack_adjust): New type.
2902         (save_pending_stack_adjust, restore_pending_stack_adjust): New
2903         prototypes.
2904         * optabs.c (emit_conditional_move): Call save_pending_stack_adjust
2905         and get_last_insn before do_pending_stack_adjust, call
2906         restore_pending_stack_adjust after delete_insns_since.
2907         * expr.c (expand_expr_real_2): Don't call do_pending_stack_adjust
2908         before calling emit_conditional_move.
2909         * expmed.c (expand_sdiv_pow2): Likewise.
2910         * calls.c (expand_call): Use {save,restore}_pending_stack_adjust.
2912 2013-12-02  Jeff Law  <law@redhat.com>
2914         PR tree-optimization/59322
2915         * tree-ssa-threadedge.c (create_edge_and_update_destination_phis):
2916         Remove code which copied jump threading paths.
2918 2013-12-02  Sriraman Tallam  <tmsriram@google.com>
2920         PR target/58944
2921         * config/i386/i386.opt (ix86_arch_string): Mark this variable
2922         for saving in cl_target_option.
2923         (ix86_tune_string): Ditto.
2924         (ix86_cmodel): Ditto.
2925         (ix86_abi): Ditto.
2926         (ix86_asm_dialect): Ditto.
2927         (ix86_branch_cost): Ditto.
2928         (ix86_dump_tunes): Ditto.
2929         (ix86_force_align_arg_pointer): Ditto.
2930         (ix86_force_drap): Ditto.
2931         (ix86_incoming_stack_boundary_arg): Ditto.
2932         (ix86_pmode): Ditto.
2933         (ix86_preferred_stack_boundary_arg): Ditto.
2934         (ix86_recip_name): Ditto.
2935         (ix86_regparm): Ditto.
2936         (ix86_section_threshold): Ditto.
2937         (ix86_sse2avx): Ditto.
2938         (ix86_stack_protector_guard): Ditto.
2939         (ix86_stringop_alg): Ditto.
2940         (ix86_tls_dialect): Ditto.
2941         (ix86_tune_ctrl_string): Ditto.
2942         (ix86_tune_memcpy_strategy): Ditto.
2943         (ix86_tune_memset_strategy): Ditto.
2944         (ix86_tune_no_default): Ditto.
2945         (ix86_veclibabi_type): Ditto.
2946         * config/i386/i386.c (function_specific_save): Save the above
2947         variables in gcc_options to cl_target_option.
2948         (function_specific_restore): Do the reverse done in
2949         function_specific_save.
2950         (ix86_valid_target_attribute_tree): Change ix86_arch_string
2951         and ix86_tune_string to use the opts structure.
2952         (ix86_option_override_internal):Change
2953         ix86_incoming_stack_boundary_arg to
2954         opts->x_ix86_incoming_stack_boundary_arg
2956 2013-12-02  Joern Rennecke  <joern.rennecke@embecosm.com>
2958         * config/epiphany/epiphany.h: Wrap rtl_opt_pass declarations
2959         in #ifndef IN_LIBGCC2 / #endif.
2961 2013-12-02  Jakub Jelinek  <jakub@redhat.com>
2963         PR tree-optimization/59358
2964         * tree-vrp.c (union_ranges): To check for the partially overlapping
2965         ranges or adjacent ranges, also compare *vr0max with vr1max.
2967 2013-12-02  Sterling Augustine Â <saugustine@google.com>
2969         * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
2970         when there isn't a skeleton die.
2972 2013-12-02  Marek Polacek  <polacek@redhat.com>
2974         PR sanitizer/59353
2975         * doc/invoke.texi: Document -fsanitize=return.
2977 2013-12-02  Tobias Burnus  <burnus@net-b.de>
2978             Manuel López-Ibáñez  <manu@gcc.gnu.org>
2980         PR middle-end/59257
2981         * doc/invoke.texi: Add missing @opindex.
2982         (-fsanitize=): Use @gcctabopt instead of @itemize.
2984 2013-12-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2986         Fix C++0x memory model for unaligned fields in packed, aligned(4)
2987         structures with -fno-strict-volatile-bitfields on STRICT_ALIGNMENT
2988         targets like arm-none-eabi.
2989         * expr.c (expand_assignment): Handle normal fields like bit regions.
2991 2013-12-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2993         PR target/58115
2994         * function.c (invoke_set_current_function_hook): Call
2995         targetm.set_current_function after setting this_fn_optabs.
2997 2013-12-02  Richard Biener  <rguenther@suse.de>
2999         PR tree-optimization/59139
3000         * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
3001         code in get_val_for.
3002         (get_val_for): Use gcc_checking_asserts.
3004 2013-12-02  Richard Biener  <rguenther@suse.de>
3006         PR middle-end/59199
3007         * tree-ssa-operands.c (opf_implicit): Remove.
3008         (opf_address_taken): New flag.
3009         (get_expr_operands): Remove early out, pass down opf_address_taken for
3010         ADDR_EXPRs, add a use operand only for non-opf_address_taken bases.
3011         (get_indirect_ref_operands): Rename to ...
3012         (get_mem_ref_operands): ... this.
3013         (get_asm_expr_operands): Rename to ...
3014         (get_asm_stmt_operands): ... this.
3016 2013-12-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
3018         * ipa-inline.c (check_callers): Add missed pointer de-reference.
3020 2013-12-02  Eric Botcazou  <ebotcazou@adacore.com>
3022         PR tree-optimization/59356
3023         * tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the
3024         offset computation using the precision of the index type.
3026 2013-12-02  Yvan Roux  <yvan.roux@linaro.org>
3028         PR target/58785
3029         * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
3030         when rclass is GENERAL_REGS.
3032 2013-12-02  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
3034         * loop-unroll.c (decide_unroll_constant_iterations): Check macro
3035         TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
3037 2013-12-01  Eric Botcazou  <ebotcazou@adacore.com>
3039         * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
3040         identifier node.
3042 2013-12-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3044         * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
3046 2013-11-30  Paulo Matos  <pmatos@broadcom.com>
3047             Eric Botcazou  <ebotcazou@adacore.com>
3049         * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
3050         as applied to nonzero_sign_valid when last_set_mode has less precision
3051         than mode.
3053 2013-11-30  Tobias Burnus  <burnus@net-b.de>
3055         PR sanitizer/59275
3056         * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
3057         environment variable and link to a list with flags.
3058         (-fsanitize=thread): Ditto and update link.
3060 2013-11-29  Vladimir Makarov  <vmakarov@redhat.com>
3062         PR rtl-optimization/59340
3063         * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
3065         Revert
3066         2013-11-20  Robert Suchanek  <Robert.Suchanek@imgtec.com>
3068         * lra.c (lra): Set lra_in_progress before check_rtl call.
3069         * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
3070         adding clobber regs when LRA is running.
3072 2013-11-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3074         PR target/59289
3075         * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
3077 2013-11-29  Richard Biener  <rguenther@suse.de>
3079         PR middle-end/59208
3080         * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
3081         free_stmt_operands, update_stmt_operands): Add struct function
3082         argument.
3083         * tree-ssa-operands.c: Remove uses of cfun, propagate struct
3084         function argument from fini_ssa_operands, verify_ssa_operands,
3085         free_stmt_operands and update_stmt_operands everywhere.
3086         * tree-ssanames.h (release_ssa_name_fn): New.
3087         (release_ssa_name): Inline wrapper around release_ssa_name_fn.
3088         * tree-ssanames.c (release_ssa_name): Rename to ...
3089         (release_ssa_name_fn): ... this and add struct function argument.
3090         * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
3091         (update_stmt_fn): New function.
3092         * tree-cfg.c (move_block_to_fn): Adjust.
3093         * tree-if-conv.c (free_bb_predicate): Likewise.
3094         * tree-ssa.c (verify_ssa): Likewise.
3095         (delete_tree_ssa): Likewise.
3096         * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
3097         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
3098         update_stmt_fn instead of update_stmt.
3100 2013-11-29  Yvan Roux  <yvan.roux@linaro.org>
3102         * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
3103         for LRA.
3105 2013-11-29  Yvan Roux  <yvan.roux@linaro.org>
3107         * config/arm/arm.md (store_minmaxsi): Use only when
3108         optimize_function_for_size_p.
3110 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
3111             Yury Gribov  <y.gribov@samsung.com>
3113         PR sanitizer/59063
3114         * config/gnu-user.h: Removed old code for setting up sanitizer libs.
3115         * gcc.c: Using libsanitizer spec instead of explicit libs.
3117 2013-11-29  Ilya Enkovich  <ilya.enkovich@intel.com>
3119         Reverted:
3120         2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
3121         * cgraph.h (varpool_node): Add need_bounds_init field.
3122         * lto-cgraph.c (lto_output_varpool_node): Output
3123         need_bounds_init value.
3124         (input_varpool_node): Read need_bounds_init value.
3125         * varpool.c (dump_varpool_node): Dump need_bounds_init field.
3127         Reverted:
3128         2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
3129         * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
3130         * dwarf2out.c (gen_subprogram_die): Ignore bound args.
3131         (gen_type_die_with_usage): Skip pointer bounds.
3132         (dwarf2out_global_decl): Likewise.
3134         Reverted:
3135         2013-11-18  Ilya Enkovich  <ilya.enkovich@intel.com>
3136         * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
3137         * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
3138         * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
3139         * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
3140         * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
3141         (gimple_call_with_bounds_p): New.
3142         (gimple_call_set_with_bounds): New.
3143         (gimple_call_num_nobnd_args): Remove.
3144         (gimple_call_nobnd_arg): Remove.
3145         * tree.h (CALL_WITH_BOUNDS_P): New.
3146         * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
3148         Reverted:
3149         2013-11-08  Ilya Enkovich  <ilya.enkovich@intel.com>
3150         * common.opt (fcheck-pointer-bounds): Move to ...
3151         * c-family/c.opt: ... here.
3152         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
3153         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
3154         * langhooks.h (lang_hooks): Remove chkp_supported field.
3155         * toplev.c (process_options): Remove chkp_supported check.
3157         Reverted:
3158         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
3159         * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
3160         * tree.h (POINTER_BOUNDS_P): New.
3161         (BOUNDED_TYPE_P): New.
3162         (BOUNDED_P): New.
3163         (pointer_bounds_type_node): New.
3164         * tree.c (build_common_tree_nodes): Initialize
3165         pointer_bounds_type_node.
3166         * gimple.h (gimple_call_get_nobnd_arg_index): New.
3167         (gimple_call_num_nobnd_args): New.
3168         (gimple_call_nobnd_arg): New.
3169         (gimple_return_retbnd): New.
3170         (gimple_return_set_retbnd): New
3171         * gimple.c (gimple_build_return): Increase number of ops
3172         for return statement.
3173         (gimple_call_get_nobnd_arg_index): New.
3174         * gimple-pretty-print.c (dump_gimple_return): Print second op.
3176         Reverted:
3177         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
3178         * ipa.c (cgraph_build_static_cdtor_1): Support contructors
3179         with "chkp ctor" and "bnd_legacy" attributes.
3180         * gimplify.c (gimplify_init_constructor): Avoid infinite
3181         loop during gimplification of bounds initializer.
3183         Reverted:
3184         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
3185         * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
3186         (handle_bnd_legacy): New.
3187         (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
3188         * doc/extend.texi: Document bnd_variable_size and bnd_legacy
3189         attributes.
3191         Reverted:
3192         2013-10-29  Ilya Enkovich  <ilya.enkovich@intel.com>
3193         * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
3194         (BT_FN_PTR_CONST_PTR): New.
3195         (BT_FN_CONST_PTR_CONST_PTR): New.
3196         (BT_FN_PTR_CONST_PTR_SIZE): New.
3197         (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
3198         (BT_FN_VOID_PTRPTR_CONST_PTR): New.
3199         (BT_FN_VOID_CONST_PTR_SIZE): New.
3200         (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
3201         * chkp-builtins.def: New.
3202         * builtins.def: include chkp-builtins.def.
3203         (DEF_CHKP_BUILTIN): New.
3204         * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
3205         BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
3206         BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
3207         BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
3208         BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
3209         BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
3210         BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
3211         BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
3212         BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
3213         BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
3214         * common.opt (fcheck-pointer-bounds): New.
3215         * toplev.c (process_options): Check Pointer Bounds Checker is
3216         supported.
3217         * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
3219         Reverted:
3220         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
3221         * target.def (builtin_chkp_function): New.
3222         (chkp_bound_type): New.
3223         (chkp_bound_mode): New.
3224         (fn_abi_va_list_bounds_size): New.
3225         (load_bounds_for_arg): New.
3226         (store_bounds_for_arg): New.
3227         * targhooks.h (default_load_bounds_for_arg): New.
3228         (default_store_bounds_for_arg): New.
3229         (default_fn_abi_va_list_bounds_size): New.
3230         (default_chkp_bound_type): New.
3231         (default_chkp_bound_mode): New.
3232         (default_builtin_chkp_function): New.
3233         * targhooks.c (default_load_bounds_for_arg): New.
3234         (default_store_bounds_for_arg): New.
3235         (default_fn_abi_va_list_bounds_size): New.
3236         (default_chkp_bound_type): New.
3237         (default_chkp_bound_mode); New.
3238         (default_builtin_chkp_function): New.
3239         * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
3240         (TARGET_LOAD_BOUNDS_FOR_ARG): New.
3241         (TARGET_STORE_BOUNDS_FOR_ARG): New.
3242         (TARGET_BUILTIN_CHKP_FUNCTION): New.
3243         (TARGET_CHKP_BOUND_TYPE): New.
3244         (TARGET_CHKP_BOUND_MODE): New.
3245         * doc/tm.texi: Regenerated.
3246         * langhooks.h (lang_hooks): Add chkp_supported field.
3247         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
3248         (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
3250         Reverted:
3251         2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
3252         * config/i386/constraints.md (B): New.
3253         (Ti): New.
3254         (Tb): New.
3255         * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
3256         * config/i386/i386-modes.def (BND32): New.
3257         (BND64): New.
3258         * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
3259         * config/i386/i386.c (isa_opts): Add mmpx.
3260         (regclass_map): Add bound registers.
3261         (dbx_register_map): Likewise.
3262         (dbx64_register_map): Likewise.
3263         (svr4_dbx_register_map): Likewise.
3264         (PTA_MPX): New.
3265         (ix86_option_override_internal): Support MPX ISA.
3266         (ix86_conditional_register_usage): Support bound registers.
3267         (print_reg): Likewise.
3268         (ix86_code_end): Add MPX bnd prefix.
3269         (output_set_got): Likewise.
3270         (ix86_output_call_insn): Likewise.
3271         (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
3272         (ix86_print_operand_punct_valid_p): Likewise.
3273         (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
3274         UNSPEC_BNDMK_ADDR.
3275         (ix86_class_likely_spilled_p): Add bound regs support.
3276         (ix86_hard_regno_mode_ok): Likewise.
3277         (x86_order_regs_for_local_alloc): Likewise.
3278         (ix86_bnd_prefixed_insn_p): New.
3279         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
3280         (FIXED_REGISTERS): Add bound registers.
3281         (CALL_USED_REGISTERS): Likewise.
3282         (REG_ALLOC_ORDER): Likewise.
3283         (HARD_REGNO_NREGS): Likewise.
3284         (TARGET_MPX): New.
3285         (VALID_BND_REG_MODE): New.
3286         (FIRST_BND_REG): New.
3287         (LAST_BND_REG): New.
3288         (reg_class): Add BND_REGS.
3289         (REG_CLASS_NAMES): Likewise.
3290         (REG_CLASS_CONTENTS): Likewise.
3291         (BND_REGNO_P): New.
3292         (ANY_BND_REG_P): New.
3293         (BNDmode): New.
3294         (HI_REGISTER_NAMES): Add bound registers.
3295         * config/i386/i386.md (UNSPEC_BNDMK): New.
3296         (UNSPEC_BNDMK_ADDR): New.
3297         (UNSPEC_BNDSTX): New.
3298         (UNSPEC_BNDLDX): New.
3299         (UNSPEC_BNDLDX_ADDR): New.
3300         (UNSPEC_BNDCL): New.
3301         (UNSPEC_BNDCU): New.
3302         (UNSPEC_BNDCN): New.
3303         (UNSPEC_MPX_FENCE): New.
3304         (BND0_REG): New.
3305         (BND1_REG): New.
3306         (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
3307         (length_immediate): Likewise.
3308         (prefix_0f): Likewise.
3309         (memory): Likewise.
3310         (prefix_rep): Check for bnd prefix.
3311         (length_nobnd): New.
3312         (length): Use length_nobnd if specified.
3313         (BND): New.
3314         (bnd_ptr): New.
3315         (BNDCHECK): New.
3316         (bndcheck): New.
3317         (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
3318         (*jcc_2): Likewise.
3319         (jump): Likewise.
3320         (simple_return_internal): Likewise.
3321         (simple_return_pop_internal): Likewise.
3322         (*indirect_jump): Add MPX bnd prefix.
3323         (*tablejump_1): Likewise.
3324         (simple_return_internal_long): Likewise.
3325         (simple_return_indirect_internal): Likewise.
3326         (<mode>_mk): New.
3327         (*<mode>_mk): New.
3328         (mov<mode>): New.
3329         (*mov<mode>_internal_mpx): New.
3330         (<mode>_<bndcheck>): New.
3331         (*<mode>_<bndcheck>): New.
3332         (<mode>_ldx): New.
3333         (*<mode>_ldx): New.
3334         (<mode>_stx): New.
3335         (*<mode>_stx): New.
3336         * config/i386/predicates.md (lea_address_operand): Rename to...
3337         (address_no_seg_operand): ... this.
3338         (address_mpx_no_base_operand): New.
3339         (address_mpx_no_index_operand): New.
3340         (bnd_mem_operator): New.
3341         * config/i386/i386.opt (mmpx): New.
3342         * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
3343         * doc/rtl.texi Add documentation for BND32mode and BND64mode.
3345         Reverted:
3346         2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
3347         * mode-classes.def (MODE_POINTER_BOUNDS): New.
3348         * tree.def (POINTER_BOUNDS_TYPE): New.
3349         * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
3350         (POINTER_BOUNDS_MODE): New.
3351         (make_pointer_bounds_mode): New.
3352         * machmode.h (POINTER_BOUNDS_MODE_P): New.
3353         * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
3354         (layout_type): Support POINTER_BOUNDS_TYPE.
3355         * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
3356         * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
3357         (type_contains_placeholder_1): Likewise.
3358         * tree.h (POINTER_BOUNDS_TYPE_P): New.
3359         * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
3360         * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
3362 2013-11-29  Richard Biener  <rguenther@suse.de>
3364         PR middle-end/59338
3365         * tree-cfg.c (verify_expr): Restrict bounds verification of
3366         BIT_FIELD_REF arguments to non-aggregate typed base objects.
3368 2013-11-29  Richard Biener  <rguenther@suse.de>
3370         PR tree-optimization/59334
3371         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
3372         in previous commit.
3374 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
3375             Richard Biener  <rguenther@suse.de>
3377         PR lto/59326
3378         * omp-low.c (simd_clone_create): Return NULL if for definition
3379         !cgraph_function_with_gimple_body_p (old_node).  Call cgraph_get_body
3380         before calling cgraph_function_versioning.
3381         (expand_simd_clones): Look for "omp declare simd" attribute first.
3382         Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
3383         Punt if node->global.inlined_to.
3384         (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
3385         Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
3386         * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
3388 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
3390         PR lto/59326
3391         * tree-core.h (enum omp_clause_schedule_kind): Add
3392         OMP_CLAUSE_SCHEDULE_LAST.
3393         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
3394         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
3395         (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
3396         (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
3397         * lto-streamer-out.c (lto_is_streamable): Allow streaming OMP_CLAUSE.
3398         (DFS_write_tree_body): Handle OMP_CLAUSE.
3399         * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New function.
3400         (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
3401         (write_ts_omp_clause_tree_pointers): New function.
3402         (streamer_write_tree_body): Call it for OMP_CLAUSE.
3403         (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
3404         * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New function.
3405         (unpack_value_fields): Call it for OMP_CLAUSE.
3406         (streamer_alloc_tree): Handle OMP_CLAUSE.
3407         (lto_input_ts_omp_clause_tree_pointers): New function.
3408         (streamer_read_tree_body): Call it for OMP_CLAUSE.
3410 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
3412         * doc/implement-c.texi: Document C11 implementation-defined
3413         behavior.  Refer to -ffp-contract=fast for contraction behavior.
3414         * doc/invoke.texi (-std=c99, std=c11): Update description of
3415         completeness.
3416         (-std=gnu99): Don't mention as future default.
3417         (-std=gnu11): Mention as intended future default.
3418         * doc/standards.texi: Update descriptions of C99 and C11 support.
3419         Limit statement about C99 facilities for freestanding
3420         implementations to some platforms only.
3422 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
3424         PR middle-end/59327
3425         * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit HWI hosts.
3427 2013-11-28  Vladimir Makarov  <vmakarov@redhat.com>
3429         PR target/57293
3430         * ira.h (ira_setup_eliminable_regset): Remove parameter.
3431         * ira.c (ira_setup_eliminable_regset): Ditto.  Add
3432         SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
3433         Don't call lra_init_elimination.
3434         (ira): Call ira_setup_eliminable_regset without arguments.
3435         * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
3436         from ira_setup_eliminable_regset call.
3437         * gcse.c (calculate_bb_reg_pressure): Ditto.
3438         * haifa-sched.c (sched_init): Ditto.
3439         * lra.h (lra_init_elimination): Remove the prototype.
3440         * lra-int.h (lra_insn_recog_data): New member sp_offset.  Move
3441         used_insn_alternative upper.
3442         (lra_eliminate_regs_1): Add one more parameter.
3443         (lra-eliminate): Ditto.
3444         * lra.c (lra_invalidate_insn_data): Set sp_offset.
3445         (setup_sp_offset): New.
3446         (lra_process_new_insns): Call setup_sp_offset.
3447         (lra): Add argument to lra_eliminate calls.
3448         * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
3449         (get_equiv_with_elimination): New.
3450         (process_addr_reg): Call get_equiv_with_elimination instead of
3451         get_equiv_substitution.
3452         (equiv_address_substitution): Ditto.
3453         (loc_equivalence_change_p): Ditto.
3454         (loc_equivalence_callback, lra_constraints): Ditto.
3455         (curr_insn_transform): Ditto.  Print the sp offset
3456         (process_alt_operands): Prevent stack pointer reloads.
3457         (lra_constraints): Remove one argument from lra_eliminate call.
3458         Move it up.  Mark used hard regs bfore it.  Use
3459         get_equiv_with_elimination instead of get_equiv_substitution.
3460         * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
3461         assert for param values combination.  Use sp offset.  Add argument
3462         to lra_eliminate_regs_1 calls.
3463         (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
3464         (curr_sp_change): New static var.
3465         (mark_not_eliminable): Add parameter.  Update curr_sp_change.
3466         Don't prevent elimination to sp if we can calculate its change.
3467         Pass the argument to mark_not_eliminable calls.
3468         (eliminate_regs_in_insn): Add a parameter.  Use sp offset.  Add
3469         argument to lra_eliminate_regs_1 call.
3470         (update_reg_eliminate): Move calculation of hard regs for spill
3471         lower.  Switch off lra_in_progress temporarily to generate regs
3472         involved into elimination.
3473         (lra_init_elimination): Rename to init_elimination.  Make it
3474         static.  Set up insn sp offset, check the offsets at the end of BBs.
3475         (process_insn_for_elimination): Add parameter.  Pass its value to
3476         eliminate_regs_in_insn.
3477         (lra_eliminate): : Add parameter.  Pass its value to
3478         process_insn_for_elimination.  Add assert for param values
3479         combination.  Call init_elimination.  Don't update offsets in
3480         equivalence substitutions.
3481         * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
3482         for created stack slot.
3483         (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
3484         onto stack slot.
3486 2013-11-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3488         * config/arm/iterators.md (vrint_conds): New int attribute.
3489         * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
3490         (smax<mode>3): Likewise.
3491         (smin<mode>3): Likewise.
3493 2013-11-28  Richard Sandiford  <rdsandiford@googlemail.com>
3495         * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
3496         * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
3497         * tree-ssanames.h (set_range_info): Add range_type argument.
3498         (duplicate_ssa_name_range_info): Likewise.
3499         * tree-ssanames.c (set_range_info): Take the range type as argument
3500         and store it in SSA_NAME_ANTI_RANGE_P.
3501         (duplicate_ssa_name_range_info): Likewise.
3502         (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
3503         (set_nonzero_bits): Update call to set_range_info.
3504         (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
3505         * tree-ssa-copy.c (fini_copy_prop): Likewise.
3506         * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
3507         (vrp_finalize): Likewise, passing anti-ranges directly.
3509 2013-11-28  Richard Biener  <rguenther@suse.de>
3511         PR tree-optimization/59330
3512         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
3513         and fix delayed marking of free calls not necessary.
3515 2013-11-28  Andrew MacLeod  <amacleod@redhat.com>
3517         * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
3518         is_gimple_reg_type.
3519         * ipa-prop.c (determine_known_aggregate_parts): Likewise.
3521 2013-11-28  Terry Guo  <terry.guo@arm.com>
3523         * config/arm/arm.c (v7m_extra_costs): New table.
3524         (arm_v7m_tune): Use it.
3526 2013-11-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3528         * config/sol2.h (TIME_LIBRARY): Define.
3530 2013-11-28  Richard Biener  <rguenther@suse.de>
3532         PR lto/59323
3533         * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
3534         CONST_DECLs in function context are not indexable.
3536 2013-11-28  Chung-Ju Wu  <jasonwucj@gmail.com>
3538         * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
3539         not optimized for size.
3541 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
3543         * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
3544         fields.
3545         (expand_stack_vars): For -fsanitize=address, use (and set initially)
3546         data->asan_base as base for vars and update asan_alignb.
3547         (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
3548         Pass them to asan_emit_stack_protection.
3549         * asan.c (asan_detect_stack_use_after_return): New variable.
3550         (asan_emit_stack_protection): Add pbase and alignb arguments.
3551         Implement use after return sanitization.
3552         * asan.h (asan_emit_stack_protection): Adjust prototype.
3553         (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
3555 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
3557         * common.opt: Introduced a new option -fsimd-cost-model.
3558         * doc/invoke.texi: Introduced a new openmp-simd warning and
3559         a new -fsimd-cost-model option.
3560         * tree-vectorizer.h (unlimited_cost_model): Interface updated
3561         to rely on the particular loop info.
3562         * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
3563         (vect_peeling_hash_choose_best_peeling): Ditto.
3564         (vect_enhance_data_refs_alignment): Ditto.
3565         * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
3566         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
3567         plus added openmp-simd warining.
3569 2013-11-27  H.J. Lu  <hongjiu.lu@intel.com>
3571         PR rtl-optimization/59311
3572         * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
3573         * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
3575 2013-11-27  Eric Botcazou  <ebotcazou@adacore.com>
3577         * var-tracking.c (track_expr_p): Do not track declarations for parts
3578         of tracked parameters.
3579         (add_stores): Do not track values for tracked parameters passed in
3580         multiple locations.
3581         (vt_get_decl_and_offset): Handle PARALLEL.
3582         (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
3584 2013-11-27  Jeff Law  <law@redhat.com>
3586         * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
3587         clobber the loop structure thread_block was unsuccessful.  If
3588         thread_block was unsuccessful, cleanup appropriately.
3590 2013-11-27  Chen Liqin <liqin.gcc@gmail.com>
3592         * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
3593         (score_char_to_class): Likewise.
3595 2013-11-27  Kenneth Zadeck  <zadeck@naturalbridge.com>
3597         * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with
3598         the overflow bit set.
3600 2013-11-27  Richard Biener  <rguenther@suse.de>
3602         PR middle-end/58723
3603         * cgraphbuild.c (build_cgraph_edges): Do not build edges
3604         for internal calls.
3605         (rebuild_cgraph_edges): Likewise.
3606         * ipa-inline-analysis.c (estimate_function_body_sizes):
3607         Skip internal calls.
3608         * tree-inline.c (estimate_num_insns): Estimate size of internal
3609         calls as 0.
3610         (gimple_expand_calls_inline): Do not try inline-expanding
3611         internal calls.
3612         * lto-streamer-in.c (input_cfg): Stream loop safelen,
3613         force_vect and simduid.
3614         (input_struct_function_base): Stream has_force_vect_loops
3615         and has_simduid_loops.
3616         (input_function): Adjust.
3617         * lto-streamer-out.c (output_cfg): Stream loop safelen,
3618         force_vect and simduid.
3619         (output_struct_function_base): Stream has_force_vect_loops
3620         and has_simduid_loops.
3622 2013-11-27  Kai Tietz  <ktietz@redhat.com>
3624         * config/i386/winnt.c (i386_pe_section_type_flags): Use const
3625         pointer cast.
3627 2013-11-27  Kugan Vivekanandarajah  <kuganv@linaro.org>
3629         * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
3630         * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
3632 2013-11-27  Marek Polacek  <polacek@redhat.com>
3634         PR sanitizer/59306
3635         * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
3636         instead of walk_gimple_op.
3637         (ubsan_pass): Adjust.  Call instrument_null only if SANITIZE_NULL.
3639 2013-11-27  Aldy Hernandez  <aldyh@redhat.com>
3640             Jakub Jelinek  <jakub@redhat.com>
3642         * cgraph.h (enum cgraph_simd_clone_arg_type): New.
3643         (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
3644         (struct cgraph_node): Add simdclone and simd_clones fields.
3645         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
3646         ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
3647         (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
3648         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
3649         * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
3650         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
3651         * doc/tm.texi: Regenerated.
3652         * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
3653         * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
3654         attribute is present.
3655         * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
3656         (simd_clone_vector_of_formal_parm_types): New function.
3657         (simd_clone_struct_alloc, simd_clone_struct_copy,
3658         simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
3659         simd_clone_compute_base_data_type, simd_clone_mangle,
3660         simd_clone_create, simd_clone_adjust_return_type,
3661         create_tmp_simd_array, simd_clone_adjust_argument_types,
3662         simd_clone_init_simd_arrays): New functions.
3663         (struct modify_stmt_info): New type.
3664         (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
3665         simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
3666         functions.
3667         (pass_data_omp_simd_clone): New variable.
3668         (pass_omp_simd_clone): New class.
3669         (make_pass_omp_simd_clone): New function.
3670         * passes.def (pass_omp_simd_clone): New.
3671         * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
3672         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target hooks.
3673         * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
3674         * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
3675         * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
3676         * tree-pass.h (make_pass_omp_simd_clone): New prototype.
3677         * tree-vect-data-refs.c: Include cgraph.h.
3678         (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
3679         and find_data_references_in_bb, if find_data_references_in_stmt
3680         fails, still allow calls to #pragma omp declare simd functions
3681         in #pragma omp simd loops unless they contain data references among
3682         the call arguments or in lhs.
3683         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
3684         calls with no lhs.
3685         (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls
3686         without lhs.
3687         * tree-vectorizer.h (enum stmt_vec_info_type): Add
3688         call_simd_clone_vec_info_type.
3689         (struct _stmt_vec_info): Add simd_clone_fndecl field.
3690         (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
3691         * tree-vect-stmts.c: Include tree-ssa-loop.h,
3692         tree-scalar-evolution.h and cgraph.h.
3693         (vectorizable_call): Handle calls without lhs.  Assert
3694         !stmt_can_throw_internal instead of failing for it.  Don't update
3695         EH stuff.
3696         (struct simd_call_arg_info): New.
3697         (vectorizable_simd_clone_call): New function.
3698         (vect_transform_stmt): Call it.
3699         (vect_analyze_stmt): Likewise.  Allow NULL STMT_VINFO_VECTYPE for
3700         calls without lhs.
3701         * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
3702         if cgraph_function_with_gimple_body_p is true.
3704 2013-11-27  Tom de Vries  <tom@codesourcery.com>
3705             Marc Glisse  <marc.glisse@inria.fr>
3707         PR middle-end/59037
3708         * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
3709         BIT_FIELD_REF.
3710         * gimple-fold.c (gimple_fold_indirect_ref): Same.
3711         * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
3712         out-of-bounds.
3714 2013-11-27  Eric Botcazou  <ebotcazou@adacore.com>
3716         PR middle-end/59138
3717         * expr.c (emit_group_store): Don't write past the end of the structure.
3718         (store_bit_field): Fix formatting.
3720 2013-11-27  Richard Biener  <rguenther@suse.de>
3722         PR tree-optimization/59288
3723         * tree-vect-loop.c (get_initial_def_for_induction): Do not
3724         re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
3726 2013-11-27  Marek Polacek  <polacek@redhat.com>
3728         * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
3729         for a decl, recreate that decl.  Save into the hash table VAR_DECLs
3730         rather than ADDR_EXPRs.
3732 2013-11-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3734         * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
3736 2013-11-26  David Malcolm  <dmalcolm@redhat.com>
3738         * gengtype.c (struct seen_tag): New.
3739         (already_seen_tag): New.
3740         (mark_tag_as_seen): New.
3741         (walk_subclasses): Support having multiple subclasses using the
3742         same tag by tracking which tags have already been seen, and using
3743         this to avoid adding duplicate cases to the "switch" statement.
3744         The call to already_seen_tag introduces an O(N^2) when running
3745         gengtype on N, the number of tags, due to the repeated linear
3746         search, but currently max(N) is relatively small (the number of
3747         GSS codes, which is 26).
3748         (walk_type): Pass in a seen_tag for use by the walk_subclasses
3749         recursion.
3751         * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
3752         underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
3753         GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
3754         GIMPLE_OMP_RETURN happens to share the data layout of
3755         GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
3756         (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
3757         underlying GSS value from GSS_OMP_PARALLEL to
3758         GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
3759         not directly related; they merely share in-memory layout.
3760         (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
3761         for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
3763         * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
3764         Rename to...
3765         (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
3766         ...these.
3767         (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
3768         (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout): ...these.
3769         (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename to...
3770         (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
3771         ...these.
3773         * gimple.h (gimple_statement_resx): New subclass of
3774         gimple_statement_eh_ctrl, with the invariant that
3775         stmt->code == GIMPLE_RESX.
3776         (gimple_statement_eh_dispatch): New subclass of
3777         gimple_statement_eh_ctrl, with the invariant that
3778         stmt->code == GIMPLE_EH_DISPATH.
3780         (gimple_statement_omp_parallel): The existing class expressed
3781         a layout (GSS_OMP_PARALLEL), but the codes with that layout
3782         are not all related, so it makes more sense for this class to
3783         express a *code* (GIMPLE_OMP_PARALLEL).  GSS_OMP_PARALLEL has
3784         been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
3785         rename the existing gimple_statement_omp_parallel class to...
3786         (gimple_statement_omp_parallel_layout): ...this, expressing
3787         a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
3788         (gimple_statement_omp_taskreg): New subclass of
3789         gimple_statement_omp_parallel_layout, expressing the invariant
3790         that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
3791         as used by the various gimple_omp_taskreg_ accessors.
3792         (gimple_statement_omp_parallel): Reintroduce this class, this time
3793         as a subclass of gimple_statement_omp_taskreg to express the
3794         invariant stmt->code == GIMPLE_OMP_PARALLEL.
3795         (gimple_statement_omp_target) New class, subclassing
3796         gimple_statement_omp_parallel_layout, to express the invariant
3797         stmt->code == GIMPLE_OMP_TARGET.
3798         (gimple_statement_omp_task): Update to inherit from
3799         gimple_statement_omp_taskreg rather than
3800         gimple_statement_omp_parallel.
3802         (gimple_statement_omp_single): Rename to...
3803         (gimple_statement_omp_single_layout): ...this, expressing the
3804         invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
3805         (gimple_statement_omp_single): ...and reintroduce this name as
3806         a subclass of gimple_statement_omp_single_layout, expressing
3807         the invariant that code == GIMPLE_OMP_SINGLE.
3808         (gimple_statement_omp_teams): New class, subclassing
3809         gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
3811         (gimple_statement_omp_atomic_store): Rename to...
3812         (gimple_statement_omp_atomic_store_layout): ...this, expressing
3813         the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
3814         (gimple_statement_omp_atomic_store): ...and reintroduce this
3815         name as a subclass of gimple_statement_omp_atomic_store_layout
3816         with code == GIMPLE_OMP_ATOMIC_STORE.
3817         (gimple_statement_omp_return): New class, subclassing
3818         gimple_statement_omp_atomic_store_layout for the code
3819         GIMPLE_OMP_RETURN.
3821         (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
3822         (is_a_helper <gimple_statement_resx>::test): New.
3823         (is_a_helper <gimple_statement_eh_dispatch>::test): New.
3824         (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
3825         check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
3826         (is_a_helper <gimple_statement_omp_return>::test): New.
3827         (is_a_helper <gimple_statement_omp_taskreg>::test): New.
3828         (is_a_helper <gimple_statement_omp_parallel>::test): Only check
3829         for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
3830         GIMPLE_OMP_TARGET.
3831         (is_a_helper <gimple_statement_omp_target>::test): New.
3832         (is_a_helper <gimple_statement_omp_single>::test): Only check
3833         for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
3834         (is_a_helper <gimple_statement_omp_teams>::test): New.
3836         (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
3837         (is_a_helper <const gimple_statement_resx>::test): New.
3838         (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
3839         (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
3840         check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
3841         (is_a_helper <const gimple_statement_omp_return>::test): New.
3842         (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
3843         (is_a_helper <const gimple_statement_omp_parallel>::test): Only
3844         check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
3845         GIMPLE_OMP_TARGET.
3846         (is_a_helper <const gimple_statement_omp_target>::test): New.
3847         (is_a_helper <const gimple_statement_omp_single>::test): Only
3848         check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
3849         (is_a_helper <const gimple_statement_omp_teams>::test): New.
3851         (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
3852         gimple_omp_return_lhs_ptr): Replace bogus downcasts to
3853         gimple_statement_omp_atomic_store with downcasts to
3854         gimple_statement_omp_return, thus requiring that the code be
3855         GIMPLE_OMP_RETURN.
3856         (gimple_resx_region, gimple_resx_set_region): Replace bogus
3857         downcasts to gimple_statement_eh_ctrl with downcasts to
3858         gimple_statement_resx, thus requiring that the code be GIMPLE_RESX.
3859         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
3860         Replace bogus downcasts to const gimple_statement_eh_ctrl with
3861         downcasts to gimple_statement_eh_dispatch, thus requiring that
3862         the code be GIMPLE_EH_DISPATCH.
3863         (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
3864         gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
3865         gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
3866         gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
3867         gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
3868         gimple_statement_omp_parallel with downcasts to
3869         gimple_statement_omp_taskreg, thus requiring that the code be
3870         either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
3871         (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
3872         gimple_omp_target_set_clauses, gimple_omp_target_child_fn
3873         gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
3874         gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
3875         gimple_omp_target_set_data_arg): Replace bogus downcasts to
3876         gimple_statement_omp_parallel with downcasts to
3877         gimple_statement_omp_target, thus requiring that the code be
3878         GIMPLE_OMP_TARGET.
3879         (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
3880         gimple_omp_teams_set_clauses): Replace bogus downcasts to
3881         gimple_statement_omp_single with downcasts to
3882         gimple_statement_omp_teams, thus requiring that the code be
3883         GIMPLE_OMP_TEAMS.
3885         * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
3886         gimple_statement_resx.
3887         (gimple_build_eh_dispatch): Fix bogus as_a<> to use
3888         gimple_statement_eh_dispatch.
3890 2013-11-26  Jakub Jelinek  <jakub@redhat.com>
3892         PR tree-optimization/59014
3893         * tree-vrp.c (register_edge_assert_for_1): Don't look
3894         through conversions from non-integral types or through
3895         narrowing conversions.
3897         PR target/59229
3898         * config/i386/i386.c (device_alg): Fix up formatting.
3899         (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
3900         similarly to count && count < epilogue_size_needed.  Fix up
3901         comment typo.
3902         * builtins.c (determine_block_size): Fix comment typo.
3904         PR sanitizer/59258
3905         * ubsan.c (ubsan_source_location): Don't add any location
3906         to ADDR_EXPR in the ctor.  Revert 2013-11-22 change.
3907         (ubsan_create_data): Strip block info from LOC.
3909         PR middle-end/59273
3910         * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
3911         if there isn't optab handler for the corresponding vector PLUS_EXPR.
3913         PR rtl-optimization/59166
3914         * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
3915         DF_REF_LOC in validate_change call.
3916         (split_live_ranges_for_shrink_wrap): Likewise.
3918         PR middle-end/59150
3919         * omp-low.c (lower_rec_input_clause): For reduction with placeholder
3920         of references to constant size types in simd loops, defer emitting
3921         initializer for the new_var, emit it later on only if not using
3922         SIMD arrays for it.
3924         PR middle-end/59152
3925         * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
3926         for the inner loop if collapse_bb is non-NULL.
3927         (expand_omp_simd): Use cont_bb rather than e->dest as latch.
3929 2013-11-26  Yufeng Zhang  <yufeng.zhang@arm.com>
3931         * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
3932         a constant immediate before force_reg.
3934 2013-11-26  Richard Biener  <rguenther@suse.de>
3936         PR tree-optimization/59245
3937         * tree-vrp.c (set_value_range): Assert that we don't have
3938         overflowed constants (but our infinities).
3939         (set_value_range_to_value): Drop all overflow flags.
3940         (vrp_visit_phi_node): Likewise.
3941         (vrp_visit_assignment_or_call): Use set_value_range_to_value
3942         to set a constant range.
3944 2013-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3946         PR target/59290
3947         * config/arm/arm.md (*zextendsidi_negsi): New pattern.
3948         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
3949         for zero_extend case.
3951 2013-11-26  H.J. Lu  <hongjiu.lu@intel.com>
3953         PR bootstrap/55552
3954         * configure.ac (install_gold_as_default): New.  Set to yes for
3955         --disable-ld or --enable-gold=default.
3956         (gcc_cv_ld_gold_srcdir): New.
3957         (gcc_cv_ld): Also check in-tree gold if install_gold_as_default is yes.
3958         (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
3959         (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
3960         * configure: Regenerated.
3962         * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
3963         (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
3964         (original) [collect-ld && -fuse-ld=bfd]: Set to
3965         $ORIGINAL_LD_BFD_FOR_TARGET.
3966         (original) [collect-ld && -fuse-ld=gold]: Set to
3967         $ORIGINAL_LD_GOLD_FOR_TARGET.
3968         (dir) [collect-ld && ../gold/ld-new]: Set to gold.
3969         (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
3971 2013-11-26  Terry Guo  <terry.guo@arm.com>
3973         * config/arm/arm.c (require_pic_register): Handle high pic base
3974         register for thumb-1.
3975         (arm_load_pic_register): Also initialize high pic base register.
3976         * doc/invoke.texi: Update documentation for option -mpic-register.
3978 2013-11-26  Oleg Endo  <olegendo@gcc.gnu.org>
3980         PR target/58314
3981         PR target/50751
3982         * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
3983         Prefix function names with 'sh_'.  Make them non-static.
3984         * config/sh/sh-protos.h (sh_disp_addr_displacement,
3985         sh_max_mov_insn_displacement): Add declarations.
3986         * config/sh/constraints.md (Q): Reject QImode.
3987         (Sdd): Use match_code "mem".
3988         (Snd): Fix erroneous matching of non-memory operands.
3989         * config/sh/predicates.md (short_displacement_mem_operand): New
3990         predicate.
3991         (general_movsrc_operand): Disallow PC relative QImode loads.
3992         * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
3993         (*movqi, *movhi): Merge both insns into...
3994         (*mov<mode>): ... this new insn.  Replace generic 'm' constraints with
3995         'Snd' and 'Sdd' constraints.  Calculate insn length dynamically based
3996         on the operand types.
3998 2013-11-26  Joern Rennecke  <joern.rennecke@embecosm.com>
4000         * config/epiphany/epiphany.c (epiphany_expand_prologue):
4001         Remove unused variable save_config.
4002         (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
4003         assert.
4005 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
4007         * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
4008         using other intrinsics.
4009         (vtbx3_<psu>8): Likewise.
4011 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
4013         * config/aarch64/aarch64-builtins.c
4014         (aarch64_types_bsl_p_qualifiers): New.
4015         (aarch64_types_bsl_s_qualifiers): Likewise.
4016         (aarch64_types_bsl_u_qualifiers): Likewise.
4017         (TYPES_BSL_P): Likewise.
4018         (TYPES_BSL_S): Likewise.
4019         (TYPES_BSL_U): Likewise.
4020         (BUILTIN_VALLDIF): Likewise.
4021         (BUILTIN_VDQQH): Likewise.
4022         * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
4023         * config/aarch64/aarch64-simd.md
4024         (aarch64_simd_bsl<mode>_internal): Handle more modes.
4025         (aarch64_simd_bsl<mode>): Likewise.
4026         * config/aarch64/arm_neon.h
4027         (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
4028         * config/aarch64/iterators.md (VALLDIF): New.
4029         (Vbtype): Handle more modes.
4031 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
4033         * config/aarch64/aarch64-builtins.c
4034         (aarch64_type_qualifiers): Add qualifier_poly.
4035         (aarch64_build_scalar_type): Also build Poly types.
4036         (aarch64_build_vector_type): Likewise.
4037         (aarch64_build_type): Likewise.
4038         (aarch64_build_signed_type): New.
4039         (aarch64_build_unsigned_type): Likewise.
4040         (aarch64_build_poly_type): Likewise.
4041         (aarch64_init_simd_builtins): Also handle Poly types.
4043 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
4045         * config/aarch64/aarch64-builtins.c
4046         (VAR1): Use new naming scheme for aarch64_builtins.
4047         (aarch64_builtin_vectorized_function): Use new aarch64_builtins names.
4049 2013-11-26  Richard Biener  <rguenther@suse.de>
4051         PR tree-optimization/59287
4052         * tree-ssa-structalias.c (get_constraint_for_component_ref):
4053         Remove no longer necessary special-casing of union accesses.
4055 2013-11-26  Richard Biener  <rguenther@suse.de>
4057         * pretty-print.c (output_buffer::~output_buffer): Really
4058         free the obstacks.
4060 2013-11-25  Jeff Law  <law@redhat.com>
4062         * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
4063         invalidate loop information.
4065 2013-11-25  Oleg Endo  <olegendo@gcc.gnu.org>
4067         * config/sh/sh.md (doloop_end_split): Add missing SI mode.
4069 2013-11-25  Oleg Endo  <olegendo@gcc.gnu.org>
4071         PR target/53976
4072         PR target/59243
4073         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
4074         comments.
4075         (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
4076         previously visited basic blocks before recursing instead of only one
4077         basic block.
4079 2013-11-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4081         * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
4082         * config/aarch64/aarch64-cores.def (cortex-a53):
4083         Use cortexa53 tuning struct.
4085 2013-11-25  Andrew Macleod  <amacleod@redhat.com>
4087         PR bootstrap/59260
4088         * fold-const.c: Include hash-table.h.
4090 2013-11-25  Marek Polacek  <polacek@redhat.com>
4092         PR sanitizer/59258
4093         * ubsan.c (ubsan_create_data): Increase the size of the fields array.
4095 2013-11-25  Richard Biener  <rguenther@suse.de>
4097         * tree-dfa.c: Remove unused convert.h include.
4099 2013-11-25  Terry Guo  <terry.guo@arm.com>
4101         * doc/invoke.texi (-mslow-flash-data): Document new option.
4102         * config/arm/arm.opt (mslow-flash-data): New option.
4103         * config/arm/arm-protos.h (arm_max_const_double_inline_cost):
4104         Declare it.
4105         * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
4106         are disabled.
4107         (arm_disable_literal_pool): Declare it.
4108         * config/arm/arm.c (arm_disable_literal_pool): New variable.
4109         (arm_option_override): Handle new option.
4110         (thumb2_legitimate_address_p): Don't allow symbol references when
4111         literal pools are disabled.
4112         (arm_max_const_double_inline_cost): New function.
4113         * config/arm/arm.md (types.md): Include it before ...
4114         (use_literal_pool): New attribute.
4115         (enabled): Use new attribute.
4116         (split pattern): Replace symbol+offset with MOVW/MOVT.
4118 2013-11-24  Steven Bosscher  <steven@gcc.gnu.org>
4120         PR bootstrap/59279
4121         Revert previous commit.
4123 2013-11-24  Steven Bosscher  <steven@gcc.gnu.org>
4125         * jump.c (reset_insn_reg_label_operand_notes): New function,
4126         split out from ...
4127         (init_label_info): ... here.  Reset LABEL_NUSES in cfglayout mode.
4128         * cfgcleanup.c (delete_dead_jump_tables_between): New function,
4129         split out from ...
4130         (delete_dead_jumptables): ... here.  Handle cfglayout mode.
4131         (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
4132         expensive CFG cleanup is called for.
4133         * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
4134         (cfg_layout_finalize): Delete dead jump tables before re-building
4135         the insns chain.
4136         * ira.c (ira): Rebuild jump labels *after* deleting unreachable
4137         basic blocks, not before.
4138         * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
4140         * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
4141         insns chain of a scheduling extended basic block, they cannot appear
4142         there in cfglayout mode.
4144 2013-11-24  Tobias Burnus  <burnus@net-b.de>
4146         * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
4148 2013-11-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4150         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
4151         for little endian.
4153 2013-11-24  H.J. Lu  <hongjiu.lu@intel.com>
4155         * graphite-sese-to-poly.c: Don't include extra "expr.h".
4157 2013-11-23  Eric Botcazou  <ebotcazou@adacore.com>
4159         * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
4161 2013-11-23  David Edelson  <dje.gcc@gmail.com>
4162             Andrew Dixie  <andrewd@gentrack.com>
4164         PR target/33704
4165         * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
4166         (COLLECT_SHARED_FINI_FUNC): Define.
4168         * collect2.c (aix_shared_initname): Declare.
4169         (aix_shared_fininame): Declare.
4170         (symkind): Add SYM_AIXI and SYM_AIXD.
4171         (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
4172         (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
4173         (aixlazy_flag): Parse.
4174         (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
4175         (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
4177 2013-11-23  David Edelsohn  <dje.gcc@gmail.com>
4179         * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
4180         (rs6000_xcoff_select_section): Place decls with stricter alignment
4181         into named sections.
4182         (rs6000_xcoff_unique_section): Allow unique sections for
4183         uninitialized data with strict alignment.
4185 2013-11-23  Jakub Jelinek  <jakub@redhat.com>
4187         PR tree-optimization/59154
4188         * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
4189         rhs1 of a cast and new_op is invariant, fold_convert it.
4190         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
4191         simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
4193 2013-11-23  Uros Bizjak  <ubizjak@gmail.com>
4195         PR target/56788
4196         * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
4197         Declare as MULTI_ARG_1_SF instruction.
4198         <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
4199         * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
4200         from *xop_vmfrcz_<mode>.
4201         * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
4202         to merge scalar result with __A.
4203         (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
4204         result with __A.
4206 2013-11-23  Eric Botcazou  <ebotcazou@adacore.com>
4208         * gimplify.h (recalculate_side_effects): Delete.
4209         * gimplify.c (recalculate_side_effects): Make static and add comment.
4211 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
4213         * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
4214         for the destination of a define_peephole2.  Likewise register_operand
4215         rather than arith_reg_operand.  Remove constraints from
4216         define_peephole2s.
4218 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
4220         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
4221         Delete.
4222         (mn10300_store_multiple_operation_p): Declare.
4223         * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
4224         Rename to...
4225         (mn10300_store_multiple_operation_p): ...this and remove mode
4226         argument.
4227         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
4228         Define.
4230 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
4232         * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
4233         (pop_multiple_operation): Delete.
4234         (analyze_push_multiple_operation): Declare.
4235         (analyze_pop_multiple_operation): Declare.
4236         * config/bfin/bfin.c (push_multiple_operation): Rename to...
4237         (analyze_push_multiple_operation): ...this and remove mode argument.
4238         (pop_multiple_operation): Rename to...
4239         (analyze_pop_multiple_operation): ...this and remove mode argument.
4240         * config/bfin/predicates.md (push_multiple_operation): Define.
4241         (pop_multiple_operation): Likewise.
4243 2013-11-23  Alan Modra  <amodra@gmail.com>
4245         * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
4247 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
4249         PR sanitizer/59061
4250         * common.opt (static-liblsan): Add.
4251         * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
4252         Define.
4253         * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK.  Renumber
4254         SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
4255         SANITIZE_RETURN.
4256         * opts.c (common_handle_option): Handle -fsanitize=leak.
4257         * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
4258         (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
4259         (LIBUBSAN_EARLY_SPEC): Remove.
4260         (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
4261         (SANITIZER_SPEC): Add -fsanitize=leak handling.
4262         (sanitize_spec_function): Handle %sanitize(leak).
4263         * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
4265 2013-11-22  Aldy Hernandez  <aldyh@redhat.com>
4266             Jakub Jelinek  <jakub@redhat.com>
4268         * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
4269         * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
4270         (ipa_get_vector_of_formal_parm_types): ... this.  No longer static.
4271         (ipa_modify_formal_parameters): Adjust caller.  Remove
4272         synth_parm_prefix argument.  Use operator enum instead of bit fields.
4273         Add assert for properly handling vector of references.  Handle
4274         creating brand new parameters.
4275         (ipa_modify_call_arguments): Use operator enum instead of bit
4276         fields.
4277         (ipa_combine_adjustments): Same.  Assert that IPA_PARM_OP_NEW is not
4278         used.
4279         (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
4280         New functions.
4281         (ipa_dump_param_adjustments): Rename reduction to new_decl.
4282         Use operator enum instead of bit fields.
4283         * ipa-prop.h (enum ipa_parm_op): New.
4284         (struct ipa_parm_adjustment): New field op.  Rename reduction
4285         to new_decl, new_arg_prefix to arg_prefix and remove remove_param
4286         and copy_param.
4287         (ipa_modify_formal_parameters): Remove last argument.
4288         (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
4289         ipa_get_adjustment_candidate): New prototypes.
4290         * tree-sra.c (turn_representatives_into_adjustments): Use operator
4291         enum.  Set arg_prefix.
4292         (get_adjustment_for_base): Use operator enum.
4293         (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
4294         ipa-prop.c.
4295         (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
4296         (ipa_sra_modify_function_body): Same.  No longer static.
4297         (sra_ipa_reset_debug_stmts): Use operator enum.
4298         (modify_function): Do not pass prefix argument.
4300 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
4302         * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
4303         (ubsan_pass): Ignore clobber stmts.
4305         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
4306         * opts.c (common_handle_option): Add -fsanitize=return.
4307         * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
4308         or it into SANITIZE_UNDEFINED.
4310         * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
4311         BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
4312         * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
4313         Don't instrument accesses to VAR_DECLs which are known to fit
4314         into their bounds and the vars are known to have shadow bytes
4315         indicating allowed access.
4316         (asan_dynamic_init_call): New function.
4317         (asan_add_global): If vnode->dynamically_initialized,
4318         set __has_dynamic_init to 1 instead of 0.
4319         (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
4320         * asan.h (asan_dynamic_init_call): New prototype.
4321         * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
4323 2013-11-22  Martin Jambor  <mjambor@suse.cz>
4325         PR rtl-optimization/10474
4326         * ira.c (interesting_dest_for_shprep_1): New function.
4327         (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
4328         also check parallels.
4330 2013-11-22  Jeff Law  <law@redhat.com>
4332         * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
4333         NULL for RHS, which we used to invalidate equivalences.
4334         (record_temporary_equivalences_from_phis): New bitmap arguments
4335         and a boolean indicating if we have passed a backedge.  If we
4336         have passed a backedge, then set the appropriate bit in the
4337         bitmaps for the SRC & DEST of PHIs creating equivalences.
4338         (invalidate_equivalences, dummy_simplify): New functions.
4339         (cond_arg_set_in_b): Remove.
4340         (record_temporary_equivalences_from_stmts_at_dest): New bitmap
4341         arguments and a boolean indicating if we have passed a backedge.
4342         If we have passed a backedge, then perform invalidations as needed.
4343         (thread_around_empty_blocks): If we have seen a backedge, then
4344         use the dummy simplify routine.
4345         (thread_through_normal_block): Likewise.  Pass bitmaps and
4346         backedge status to children.  Do not pessimize so much when
4347         traversing backedges in the CFG.
4348         (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
4349         If we have seen a backedge, then use the dummy simplify routine.
4350         Do not pessimize so much when traversing backedges.
4352 2013-11-22  Hans-Peter Nilsson  <hp@axis.com>
4354         * config/cris/cris.c (cris_atomic_align_for_mode): New function.
4355         (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
4357 2013-11-22  Yuri Rumyantsev  <ysrumyan@gmail.com>
4359         * config/i386/i386.c (processor_alias_table): Enable PTA_AES,
4360         PTA_PCLMUL and PTA_RDRND for Silvermont.
4361         * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
4362         for Silvermont.
4364         * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
4366 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
4368         * hooks.h (hook_uint_mode_0): Add Prototype.
4369         * hooks.c (hook_uint_mode_0): New default function.
4370         * target.def (atomic_align_for_mode): New target hook.
4371         * tree.c (build_atomic_base): Add alignment override parameter.
4372         (build_common_tree_nodes): Use atomic alignment override.
4373         * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
4374         * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
4376 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
4378         * gimple.h: Remove all includes.
4379         (recalculate_side_effects): Move prototype to gimplify.h.
4380         * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
4381         * gengtype.c (open_base_files): Add gimple.h include list.
4382         * gimplify.h (recalculate_side_effects): Relocate prototype here.
4383         * gimple.c: Adjust include list.
4384         (recalculate_side_effects): Move to gimplify.c.
4385         * gimplify.c: Adjust include list.
4386         (recalculate_side_effects): Relocate from gimple.c.
4387         * alias.c: Add required include files removed from gimple.h.
4388         * asan.c: Likewise.
4389         * builtins.c: Likewise.
4390         * calls.c: Likewise.
4391         * cfgexpand.c: Likewise.
4392         * cfgloop.c: Likewise.
4393         * cfgloopmanip.c: Likewise.
4394         * cgraphbuild.c: Likewise.
4395         * cgraph.c: Likewise.
4396         * cgraphclones.c: Likewise.
4397         * cgraphunit.c: Likewise.
4398         * cilk-common.c: Likewise.
4399         * data-streamer.c: Likewise.
4400         * data-streamer-in.c: Likewise.
4401         * data-streamer-out.c: Likewise.
4402         * dse.c: Likewise.
4403         * dwarf2out.c: Likewise.
4404         * emit-rtl.c: Likewise.
4405         * except.c: Likewise.
4406         * expr.c: Likewise.
4407         * fold-const.c: Likewise.
4408         * function.c: Likewise.
4409         * gimple-builder.c: Likewise.
4410         * gimple-expr.c: Likewise.
4411         * gimple-fold.c: Likewise.
4412         * gimple-iterator.c: Likewise.
4413         * gimple-low.c: Likewise.
4414         * gimple-pretty-print.c: Likewise.
4415         * gimple-ssa-isolate-paths.c: Likewise.
4416         * gimple-ssa-strength-reduction.c: Likewise.
4417         * gimple-streamer-in.c: Likewise.
4418         * gimple-streamer-out.c: Likewise.
4419         * gimple-walk.c: Likewise.
4420         * gimplify-me.c: Likewise.
4421         * graphite-blocking.c: Likewise.
4422         * graphite.c: Likewise.
4423         * graphite-clast-to-gimple.c: Likewise.
4424         * graphite-dependences.c: Likewise.
4425         * graphite-interchange.c: Likewise.
4426         * graphite-optimize-isl.c: Likewise.
4427         * graphite-poly.c: Likewise.
4428         * graphite-scop-detection.c: Likewise.
4429         * graphite-sese-to-poly.c: Likewise.
4430         * internal-fn.c: Likewise.
4431         * ipa.c: Likewise.
4432         * ipa-cp.c: Likewise.
4433         * ipa-devirt.c: Likewise.
4434         * ipa-inline-analysis.c: Likewise.
4435         * ipa-inline.c: Likewise.
4436         * ipa-profile.c: Likewise.
4437         * ipa-prop.c: Likewise.
4438         * ipa-pure-const.c: Likewise.
4439         * ipa-reference.c: Likewise.
4440         * ipa-split.c: Likewise.
4441         * ipa-utils.c: Likewise.
4442         * langhooks.c: Likewise.
4443         * lto-cgraph.c: Likewise.
4444         * lto-compress.c: Likewise.
4445         * lto-opts.c: Likewise.
4446         * lto-section-in.c: Likewise.
4447         * lto-section-out.c: Likewise.
4448         * lto-streamer.c: Likewise.
4449         * lto-streamer-in.c: Likewise.
4450         * lto-streamer-out.c: Likewise.
4451         * omp-low.c: Likewise.
4452         * opts-global.c: Likewise.
4453         * passes.c: Likewise.
4454         * predict.c: Likewise.
4455         * profile.c: Likewise.
4456         * sese.c: Likewise.
4457         * stmt.c: Likewise.
4458         * stor-layout.c: Likewise.
4459         * symtab.c: Likewise.
4460         * targhooks.c: Likewise.
4461         * toplev.c: Likewise.
4462         * tracer.c: Likewise.
4463         * trans-mem.c: Likewise.
4464         * tree-affine.c: Likewise.
4465         * tree.c: Likewise.
4466         * tree-call-cdce.c: Likewise.
4467         * tree-cfg.c: Likewise.
4468         * tree-cfgcleanup.c: Likewise.
4469         * tree-chrec.c: Likewise.
4470         * tree-complex.c: Likewise.
4471         * tree-data-ref.c: Likewise.
4472         * tree-dfa.c: Likewise.
4473         * tree-eh.c: Likewise.
4474         * tree-emutls.c: Likewise.
4475         * tree-if-conv.c: Likewise.
4476         * tree-inline.c: Likewise.
4477         * tree-into-ssa.c: Likewise.
4478         * tree-loop-distribution.c: Likewise.
4479         * tree-nested.c: Likewise.
4480         * tree-nrv.c: Likewise.
4481         * tree-object-size.c: Likewise.
4482         * tree-outof-ssa.c: Likewise.
4483         * tree-parloops.c: Likewise.
4484         * tree-phinodes.c: Likewise.
4485         * tree-predcom.c: Likewise.
4486         * tree-pretty-print.c: Likewise.
4487         * tree-profile.c: Likewise.
4488         * tree-scalar-evolution.c: Likewise.
4489         * tree-sra.c: Likewise.
4490         * tree-ssa-address.c: Likewise.
4491         * tree-ssa-alias.c: Likewise.
4492         * tree-ssa.c: Likewise.
4493         * tree-ssa-ccp.c: Likewise.
4494         * tree-ssa-coalesce.c: Likewise.
4495         * tree-ssa-copy.c: Likewise.
4496         * tree-ssa-copyrename.c: Likewise.
4497         * tree-ssa-dce.c: Likewise.
4498         * tree-ssa-dom.c: Likewise.
4499         * tree-ssa-dse.c: Likewise.
4500         * tree-ssa-forwprop.c: Likewise.
4501         * tree-ssa-ifcombine.c: Likewise.
4502         * tree-ssa-live.c: Likewise.
4503         * tree-ssa-loop.c: Likewise.
4504         * tree-ssa-loop-ch.c: Likewise.
4505         * tree-ssa-loop-im.c: Likewise.
4506         * tree-ssa-loop-ivcanon.c: Likewise.
4507         * tree-ssa-loop-ivopts.c: Likewise.
4508         * tree-ssa-loop-manip.c: Likewise.
4509         * tree-ssa-loop-niter.c: Likewise.
4510         * tree-ssa-loop-prefetch.c: Likewise.
4511         * tree-ssa-loop-unswitch.c: Likewise.
4512         * tree-ssa-math-opts.c: Likewise.
4513         * tree-ssanames.c: Likewise.
4514         * tree-ssa-operands.c: Likewise.
4515         * tree-ssa-phiopt.c: Likewise.
4516         * tree-ssa-phiprop.c: Likewise.
4517         * tree-ssa-pre.c: Likewise.
4518         * tree-ssa-propagate.c: Likewise.
4519         * tree-ssa-reassoc.c: Likewise.
4520         * tree-ssa-sccvn.c: Likewise.
4521         * tree-ssa-sink.c: Likewise.
4522         * tree-ssa-strlen.c: Likewise.
4523         * tree-ssa-structalias.c: Likewise.
4524         * tree-ssa-tail-merge.c: Likewise.
4525         * tree-ssa-ter.c: Likewise.
4526         * tree-ssa-threadedge.c: Likewise.
4527         * tree-ssa-threadupdate.c: Likewise.
4528         * tree-ssa-uncprop.c: Likewise.
4529         * tree-ssa-uninit.c: Likewise.
4530         * tree-stdarg.c: Likewise.
4531         * tree-streamer.c: Likewise.
4532         * tree-streamer-in.c: Likewise.
4533         * tree-streamer-out.c: Likewise.
4534         * tree-switch-conversion.c: Likewise.
4535         * tree-tailcall.c: Likewise.
4536         * tree-vect-data-refs.c: Likewise.
4537         * tree-vect-generic.c: Likewise.
4538         * tree-vect-loop.c: Likewise.
4539         * tree-vect-loop-manip.c: Likewise.
4540         * tree-vectorizer.c: Likewise.
4541         * tree-vect-patterns.c: Likewise.
4542         * tree-vect-slp.c: Likewise.
4543         * tree-vect-stmts.c: Likewise.
4544         * tree-vrp.c: Likewise.
4545         * tsan.c: Likewise.
4546         * ubsan.c: Likewise.
4547         * value-prof.c: Likewise.
4548         * varpool.c: Likewise.
4549         * var-tracking.c: Likewise.
4550         * vtable-verify.c: Likewise.
4551         * config/darwin.c: Likewise.
4552         * config/aarch64/aarch64-builtins.c: Likewise.
4553         * config/aarch64/aarch64.c: Likewise.
4554         * config/alpha/alpha.c: Likewise.
4555         * config/i386/i386.c: Likewise.
4556         * config/i386/winnt.c: Likewise.
4557         * config/ia64/ia64.c: Likewise.
4558         * config/m32c/m32c.c: Likewise.
4559         * config/mep/mep.c: Likewise.
4560         * config/mips/mips.c: Likewise.
4561         * config/rs6000/rs6000.c: Likewise.
4562         * config/s390/s390.c: Likewise.
4563         * config/sh/sh.c: Likewise.
4564         * config/sparc/sparc.c: Likewise.
4565         * config/spu/spu.c: Likewise.
4566         * config/stormy16/stormy16.c: Likewise.
4567         * config/tilegx/tilegx.c: Likewise.
4568         * config/tilepro/tilepro.c: Likewise.
4569         * config/xtensa/xtensa.c: Likewise.
4571 2013-11-22  Richard Earnshaw  <rearnsha@arm.com>
4573         PR target/59216
4574         * arm.md (negdi_extendsidi): Fix invalid split.
4576 2013-11-22  Alex Velenko  <Alex.Velenko@arm.com>
4578         * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
4579         (vmov_n_f64): Likewise.
4580         (vmov_n_p8): Likewise.
4581         (vmov_n_p16): Likewise.
4582         (vmov_n_s8): Likewise.
4583         (vmov_n_s16): Likewise.
4584         (vmov_n_s32): Likewise.
4585         (vmov_n_s64): Likewise.
4586         (vmov_n_u8): Likewise.
4587         (vmov_n_u16): Likewise.
4588         (vmov_n_u32): Likewise.
4589         (vmov_n_u64): Likewise.
4590         (vmovq_n_f32): Likewise.
4591         (vmovq_n_f64): Likewise.
4592         (vmovq_n_p8): Likewise.
4593         (vmovq_n_p16): Likewise.
4594         (vmovq_n_s8): Likewise.
4595         (vmovq_n_s16): Likewise.
4596         (vmovq_n_s32): Likewise.
4597         (vmovq_n_s64): Likewise.
4598         (vmovq_n_u8): Likewise.
4599         (vmovq_n_u16): Likewise.
4600         (vmovq_n_u32): Likewise.
4601         (vmovq_n_u64): Likewise.
4603 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
4605         * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
4606         vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
4607         (reduc_<sur>plus_<mode>): Factorize V2DI into this.
4608         (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
4609         and also change to float UNSPEC.
4610         (reduc_maxmin_uns>_<mode>): Remove V2DI.
4611         * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
4612         vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
4613         result access for big-endian.
4614         (__LANE0): New macro used to fix up lane access of 'across-lanes'
4615         intrinsics for big-endian.
4616         * config/aarch64/iterators.md (VDQV): Add V2DI.
4617         (VDQV_S): New.
4618         (vp): New mode attribute.
4620 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
4622         * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
4623         vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
4624         big-endian.
4626 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
4628         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
4629         for big-endian element order.
4630         (aarch64_simd_vec_setv2di): Likewise.
4631         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
4632         *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
4633         (vec_extract): Expand using aarch64_get_lane.
4634         * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
4636 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
4638         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
4639         and stores to be ABI compliant.
4641 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
4643         * input.h (input_line): Remove.
4644         (input_filename): Likewise.
4645         (in_system_header): Likewise.
4646         * tree.h (EXPR_LOC_OR_HERE): Remove.
4647         * config/bfin/bfin.c (output_file_start): Remove use of
4648         input_filename macro.
4649         * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
4650         * gimplify.c (internal_get_tmp_var): Likewise.
4651         EXPR_LOC_OR_HERE macro.
4652         (shortcut_cond_expr): Likewise.
4653         * tree-diagnostic.c (diagnostic_report_current_function): Remove
4654         use of input_filename macro.
4655         * tree.c (get_file_function_name): Likewise.
4657 2013-11-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
4659         * store-layout.c (place-field): Fix hwi test and accessor mismatch.
4661 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
4663         * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
4664         (same sized) elements even if the type of the CONSTRUCTOR has
4665         vector mode and target is a REG.
4667 2013-11-22  Richard Biener  <rguenther@suse.de>
4669         Revert
4670         2013-11-21  Richard Biener  <rguenther@suse.de>
4672         * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
4673         nb_iterations_upper_bound by one.
4675 2013-11-22  H.J. Lu  <hongjiu.lu@intel.com>
4677         * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
4678         for Silvermont.
4680         * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
4681         core-avx-i, core-avx2 and slm.
4683 2013-11-22  Eric Botcazou  <ebotcazou@adacore.com>
4685         * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
4687 2013-11-22  Richard Sandiford  <rdsandiford@googlemail.com>
4689         * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
4690         (stzx_24_<mode>): Likewise mra_operand.
4692 2013-11-22  Jeff Law  <law@redhat.com>
4694         * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
4695         (thread_block_1): Do not cancel jump threads which go from
4696         inside a loop, through the header, then back inside the loop.
4697         (bb_ends_with_multiway_branch): New function.
4698         (thread_through_all_blocks): Handle threading cases which start
4699         in a loop through the loop header to a point in the loop.
4701         * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
4702         jump thread path properly.
4704 2013-11-22  Trevor Saunders  <tsaunders@mozilla.com>
4706         * vec.h (auto_vec): New class.
4707         * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
4708         function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
4709         ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
4710         tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
4711         tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
4712         tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
4713         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
4714         tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
4715         appropriate instead of vec for local variables.
4717 2013-11-21  Teresa Johnson  <tejohnson@google.com>
4719         PR target/59233
4720         * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
4721         not understood by old_insns_match_p.
4723 2013-11-21  Bill Schmidt  <wschmidt@vnet.ibm.com>
4725         * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
4726         little endian change.
4727         (vec_pack_sfix_trunc_v2df): Likewise.
4728         (vec_pack_ufix_trunc_v2df): Likewise.
4729         * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
4730         double checking of endianness.
4732 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
4734         * tree-vect-generic.c (optimize_vector_constructor): New function.
4735         (expand_vector_operations_1): Call it.
4737 2013-11-21  Uros Bizjak  <ubizjak@gmail.com>
4739         * config/i386/i386.c (ix86_expand_special_args_builtin): Use
4740         ix86_zero_extend_to_Pmode where appropriate.
4741         (ix86_expand_builtin): Ditto.
4743 2013-11-21  Cary Coutant  <ccoutant@google.com>
4745         * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
4746         (add_linkage_name): Don't add linkage name for -g1.
4747         (decls_for_scope): Process subblocks for -g1.
4748         (dwarf2out_source_line): Output line tables for -g1.
4749         (dwarf2out_finish): Likewise.
4750         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
4751         unused scopes for -g1.
4752         * opts.c (common_handle_option): Handle -g same as -g2.
4753         * doc/invoke.texi: Update description for -g1.
4755 2013-11-21  Peter Bergner  <bergner@vnet.ibm.com>
4757         * doc/extend.texi: Document htm builtins.
4759 2013-11-21  Jeff Law  <law@redhat.com>
4761         PR tree-optimization/59221
4762         * tree-ssa-threadedge.c (thread_across_edge): Properly manage
4763         temporary equivalences when threading through joiner blocks.
4765 2013-11-21  Joseph Myers  <joseph@codesourcery.com>
4767         PR rtl-optimization/55950
4768         * real.c (real_sqrt): Remove function.
4769         * real.h (real_sqrt): Remove prototype.
4770         * simplify-rtx.c (simplify_const_unary_operation): Do not fold
4771         SQRT using real_sqrt.
4773 2013-11-21  Richard Biener  <rguenther@suse.de>
4775         PR tree-optimization/59058
4776         * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
4777         * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
4778         * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
4779         (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
4780         (NITERS_KNOWN_P): Fold into ...
4781         (LOOP_VINFO_NITERS_KNOWN_P): ... this.
4782         (LOOP_VINFO_PEELING_FOR_NITER): Add.
4783         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
4784         Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4785         (vect_do_peeling_for_alignment): Re-use precomputed niter
4786         instead of re-emitting it.
4787         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4788         Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4789         * tree-vect-loop.c (vect_get_loop_niters): Use
4790         number_of_latch_executions.
4791         (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
4792         (vect_analyze_loop_form): Simplify.
4793         (vect_analyze_loop_operations): Move epilogue peeling code ...
4794         (vect_analyze_loop_2): ... here and adjust it to compute
4795         LOOP_VINFO_PEELING_FOR_NITER.
4796         (vect_estimate_min_profitable_iters): Use
4797         LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4798         (vect_build_loop_niters): Emit on the preheader.
4799         (vect_generate_tmps_on_preheader): Likewise.
4800         (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
4801         of recomputing it.  Adjust.
4803 2013-11-21  Richard Biener  <rguenther@suse.de>
4805         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
4806         LOC_LINE): Remove wrappers and fix all users.
4807         (struct _loop_vec_info): Remove loop_line_number member.
4808         (LOOP_VINFO_LOC): Remove.
4809         * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
4810         tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
4811         and LOC_LINE.
4813 2013-11-21  Richard Biener  <rguenther@suse.de>
4815         * tree-ssa-forwprop.c (simplify_vce): New function.
4816         (ssa_forward_propagate_and_combine): Call it.
4818 2013-11-21  Richard Biener  <rguenther@suse.de>
4820         * tree-vect-loop-manip.c (vect_build_loop_niters,
4821         vect_generate_tmps_on_preheader): Move ...
4822         * tree-vect-loop.c (vect_build_loop_niters,
4823         vect_generate_tmps_on_preheader): ... here and simplify.
4824         (vect_transform_loop): Call them here and pass down results
4825         to consumers.
4826         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
4827         Get niter variables from caller.
4828         (vect_do_peeling_for_alignment): Likewise.
4829         * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
4830         (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
4831         Adjust prototypes.
4833 2013-11-21  Richard Biener  <rguenther@suse.de>
4835         * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
4836         nb_iterations_upper_bound by one.
4838 2013-11-21  Richard Biener  <rguenther@suse.de>
4840         PR tree-optimization/59058
4841         * tree-loop-distribution.c (struct partition_s): Add plus_one member.
4842         (build_size_arg_loc): Apply niter adjustment here.
4843         (generate_memset_builtin): Adjust.
4844         (generate_memcpy_builtin): Likewise.
4845         (classify_partition): Do not use number_of_exit_cond_executions
4846         but record whether niter needs to be adjusted.
4848 2013-11-21  Eric Botcazou  <ebotcazou@adacore.com>
4850         * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
4851         could throw.
4853 2013-11-21  Oleg Endo  <olegendo@gcc.gnu.org>
4855         PR target/53976
4856         * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
4857         * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
4858         * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
4859         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
4860         sh_optimize_sett_clrt pass.o to extra_objs.
4862 2013-11-20  David Malcolm  <dmalcolm@redhat.com>
4864         * cfg.c (dump_edge_info): Remove redundant comment.
4865         * cfgcleanup.c (outgoing_edges_match): Reword reference to
4866         EXIT_BLOCK_PTR in comment.
4867         (try_optimize_cfg): Likewise.
4868         * cfgrtl.c (last_bb_in_partition): Likewise.
4869         * cgraph.c (cgraph_node_cannot_return): Likewise.
4870         * function.c (thread_prologue_and_epilogue_insns): Likewise.
4871         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
4872         * ipa-split.c (consider_split): Likewise.
4873         * profile.c (find_spanning_tree): Likewise.
4874         * sched-int.h (common_sched_info_def.add_block): Likewise.
4875         * dominance.c (calc_dfs_tree_nonrec): Reword references in
4876         comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
4877         * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
4878         in comments to now removed ENTRY_BLOCK_PTR macro.
4879         (tree_forwarder_block_p): Reword reference in comment to
4880         EXIT_BLOCK_PTR.
4881         * tree-inline.c (copy_cfg_body): Reword references in comments to
4882         now removed ENTRY_BLOCK_PTR macro.
4883         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
4884         * tree-scalar-evolution.h ( block_before_loop): Likewise.  Add
4885         a comma to the comment to clarify the meaning.
4887 2013-11-20  Andrew MacLeod  <amacleod@redhat.com>
4889         * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
4890         Move to gimplify.c.
4891         (free_gimplify_stack): Add prototype.
4892         * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
4893         (struct gimplify_ctx): Relocate here.
4894         (gimplify_ctxp): Make static.
4895         (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New.  Manage a
4896         list of struct gimplify_ctx.
4897         (push_gimplify_context): Add default parameters and allocate a struct
4898         from the pool.
4899         (pop_gimplify_context): Free a struct back to the pool.
4900         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
4901         gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
4902         use a local 'struct gimplify_ctx'.
4903         * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
4904         * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
4905         Likewise.
4906         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
4907         lower_omp_ordered, lower_omp_critical, lower_omp_for,
4908         create_task_copyfn, lower_omp_taskreg, lower_omp_target,
4909         lower_omp_teams, execute_lower_omp): Likewise.
4910         * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
4911         * tree-inline.c (optimize_inline_calls): Likewise.
4913 2013-11-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4915         * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
4916         (vsx_extract_<mode>): Likewise.
4917         (*vsx_extract_<mode>_one_le): New LE variant on
4918         *vsx_extract_<mode>_zero.
4919         (vsx_extract_v4sf): Adjust for little endian.
4921 2013-11-20  Vladimir Makarov  <vmakarov@redhat.com>
4923         PR rtl-optimization/59133
4924         * lra.c (expand_reg_data): Add new argument.  Set up ALL_REGS for
4925         new pseudos.
4926         (lra_create_new_reg_with_unique_value): Pass new argument value.
4927         (lra_emit_add, lra_emit_move): Ditto.
4928         * lra-constraints.c (in_class_p): Add check for move for a new insn.
4929         (change_class): Rename to lra_change_class.  Move to lra-int.h.
4930         (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
4931         change_class.
4932         (process_addr_reg, process_addr): Ditto.
4933         (curr_insn_transform): Ditto.  Add check on old pseudo for
4934         optional reload.
4935         * lra-int.h (lra_get_regno_hard_regno): Move below.
4936         (lra_change_class): Renamed change_class from lra.c.
4938 2013-11-20  David Malcolm  <dmalcolm@redhat.com>
4940         * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
4941         the children of a NULL pointer.
4943 2013-11-20  Robert Suchanek  <Robert.Suchanek@imgtec.com>
4945         * lra.c (lra): Set lra_in_progress before check_rtl call.
4946         * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
4947         adding clobber regs when LRA is running.
4949 2013-11-20  Maciej W. Rozycki  <macro@codesourcery.com>
4951         * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
4952         restriction for ISA_MIPS32R2.
4953         (ISA_HAS_LXC1_SXC1): New macro.
4954         (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
4955         (ISA_HAS_NMADD4_NMSUB4): Likewise.
4956         (ISA_HAS_FP_RECIP_RSQRT): Likewise.
4957         (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
4958         * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
4959         ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
4960         (*<ANYF:storex>_<P:mode>): Likewise.
4962 2013-11-20  Maciej W. Rozycki  <macro@codesourcery.com>
4964         * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
4965         * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
4966         ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
4967         * config/mips/mips.md (recip_condition): Remove mode attribute.
4968         (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
4969         <recip_condition>.
4970         (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
4972 2013-11-20  Eric Botcazou  <ebotcazou@adacore.com>
4974         PR target/59207
4975         * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
4976         Make sure neg2_ovf is set before being used.
4978 2013-11-20  Basile Starynkevitch  <basile@starynkevitch.net>
4980         * plugin.def: Add comment about register_callback and
4981         invoke_plugin_callbacks_full.
4983         * plugin.c (register_callback, invoke_plugin_callbacks_full):
4984         Handle PLUGIN_INCLUDE_FILE event.
4986 2013-11-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4988         * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
4989         allow subregs of TDmode in FPRs of smaller size in little-endian.
4990         (rs6000_split_multireg_move): When splitting an access to TDmode
4991         in FPRs, do not use simplify_gen_subreg.
4993 2013-11-20  Joseph Myers  <joseph@codesourcery.com>
4995         PR middle-end/21718
4996         * real.c: Remove comment about decimal string conversion and
4997         rounding errors.
4998         (real_from_string): Use MPFR to convert nonzero decimal constant
4999         to REAL_VALUE_TYPE.
5001 2013-11-20  Eric Botcazou  <ebotcazou@adacore.com>
5003         * config/arm/arm.c (arm_dwarf_register_span): Take into account the
5004         endianness of the D registers for the legacy encodings.
5006 2013-11-20  Richard Earnshaw  <rearnsha@arm.com>
5008         PR rtl-optimization/54300
5009         * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
5010         outputs in a single-set are killed from the value chains.
5012 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
5014         * cgraph.h (varpool_node): Add need_bounds_init field.
5015         * lto-cgraph.c (lto_output_varpool_node): Output
5016         need_bounds_init value.
5017         (input_varpool_node): Read need_bounds_init value.
5018         * varpool.c (dump_varpool_node): Dump need_bounds_init field.
5020 2013-11-20  Jan Hubicka  <jh@suse.cz>
5022         * opts.c (finish_options): Imply -ffat-lto-objects with
5023         -fno-use-linker-plugin.
5024         * common.opt (fuse-linker-plugin): Add var.
5026 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
5028         * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
5029         * dwarf2out.c (gen_subprogram_die): Ignore bound args.
5030         (gen_type_die_with_usage): Skip pointer bounds.
5031         (dwarf2out_global_decl): Likewise.
5033 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
5035         * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
5036         from all insns.
5038 2013-11-20  Yuri Rumyantsev  <ysrumyan@gmail.com>
5040         PR target/57756
5041         * config/i386/i386.c (ix86_option_override_internal): Add missed
5042         argument prefix for 'ix86_fpmath'.
5043         * config/i386/ssemath.h: Add missed definition of
5044         TARGET_FPMATH_DEFAULT_P macros.
5046 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
5047             Mike Stump  <mikestump@comcast.net>
5048             Richard Sandiford  <rdsandiford@googlemail.com>
5050         * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
5051         instead of TREE_INT_CST_LOW, in cases where there is a protecting
5052         tree_fits_shwi_p or tree_fits_uhwi_p.
5053         * builtins.c (fold_builtin_powi): Likewise.
5054         * config/epiphany/epiphany.c (epiphany_special_round_type_align):
5055         Likewise.
5056         * dbxout.c (dbxout_symbol): Likewise.
5057         * expr.c (expand_expr_real_1): Likewise.
5058         * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
5059         (fold_binary_loc): Likewise.
5060         * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
5061         * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
5062         * omp-low.c (lower_omp_for_lastprivate): Likewise.
5063         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
5064         * stor-layout.c (compute_record_mode): Likewise.
5065         * tree-cfg.c (verify_expr): Likewise.
5066         * tree-dfa.c (get_ref_base_and_extent): Likewise.
5067         * tree-pretty-print.c (dump_array_domain): Likewise.
5068         * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
5069         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
5070         * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
5071         * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
5072         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
5073         * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
5074         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
5075         (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
5076         (vn_reference_lookup_3, simplify_binary_expression): Likewise.
5077         * tree-ssa-structalias.c (bitpos_of_field): Likewise.
5078         (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
5079         (create_variable_info_for_1): Likewise.
5080         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
5081         (vect_verify_datarefs_alignment): Likewise.
5082         (vect_analyze_data_ref_accesses): Likewise.
5083         (vect_prune_runtime_alias_test_list): Likewise.
5084         * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
5086 2013-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
5088         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
5089         overflow.  Use tree_to_shwi.
5091 2013-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
5093         * fold-const.c (fold_binary_loc): Use unsigned rather than signed
5094         HOST_WIDE_INTs when folding (x >> c) << c.
5096 2013-11-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5097             Dominik Vogt  <vogt@linux.vnet.ibm.com>
5099         * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
5100         int comparisons with an out of range condition code.
5101         (s390_optimize_nonescaping_tx): Skip empty BBs.
5102         Generate the new tbegin RTX when removing the FPR clobbers (with
5103         two SETs).
5104         (s390_expand_tbegin): Fix the retry loop counter.  Copy CC to the
5105         result before doing the retry calculations.
5106         (s390_init_builtins): Make tbegin "returns_twice" and tabort
5107         "noreturn".
5108         * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
5109         the TDB setting part of an tbegin.
5110         ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
5111         ("tx_assist"): Set unused argument to an immediate zero instead of
5112         loading zero into a GPR and pass it as argument.
5113         * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
5114         Remove inline and related attributes.
5115         (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
5116         (__TM_is_illegal, __TM_is_footprint_exceeded)
5117         (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
5119 2013-11-20  Richard Biener  <rguenther@suse.de>
5121         PR lto/59035
5122         * lto-opts.c (lto_write_options): Write defaults only if
5123         they were not explicitely specified.  Also write
5124         -ffp-contract default.
5125         * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
5126         conservatively.
5127         (run_gcc): Pass through -ffp-contract.
5129 2013-11-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5131         * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
5133 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
5135         * config/aarch64/aarch64-builtins.c
5136         (aarch64_simd_itype): Remove.
5137         (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
5138         (VAR1): Use qualifiers.
5139         (aarch64_build_scalar_type): New.
5140         (aarch64_build_vector_type): Likewise.
5141         (aarch64_build_type): Likewise.
5142         (aarch64_init_simd_builtins): Refactor, remove special cases,
5143         consolidate main loop.
5144         (aarch64_simd_expand_args): Likewise.
5146 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
5148         PR c/53001
5149         * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
5151 2013-11-19  Miro Kropacek  <miro.kropacek@gmail.com>
5153         * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
5155 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
5157         * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
5158         to "vec<>" instances.
5159         (build_pretty_printer): Register the vec<>* prettyprinter.
5161 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
5163         * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
5164         (GdbSubprinter.handles_type): New.
5165         (GdbSubprinterTypeList): New subclass of GdbSubprinter.
5166         (GdbSubprinterRegex): New subclass of GdbSubprinter.
5167         (GdbPrettyPrinters.add_printer): Remove in favor of...
5168         (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
5169         (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
5170         (GdbPrettyPrinters.__call__): Update search for subprinter
5171         to use handles_type method.
5172         (build_pretty_printer): Update registration of subprinters to
5173         use the new API above, supporting multiple spelling of each type,
5174         and allowing for future regex-based subprinters.
5176 2013-11-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5178         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
5179         V16QI vector splat case for little endian.
5181 2013-11-19  Jeff Law  <law@redhat.com>
5183         * tree-ssa-threadedge.c (thread_across_edge): After threading
5184         through a joiner, allow threading a normal block requiring duplication.
5186         * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
5187         jump threading requests that would muck up the loop structures.
5189         * tree-ssa-threadupdate.c: Fix trailing whitespace.
5190         * tree-ssa-threadupdate.h: Likewise.
5192 2013-11-19  Mike Stump  <mikestump@comcast.net>
5194         * gdbinit.in: Add pmz to print out mpz values.
5196 2013-11-20  Jan Hubicka  <jh@suse.cz>
5198         * common.opt (ffat-lto-objects): Disable by default.
5199         * doc/invoke.texi (fat-lto-objects): Update documentation.
5200         * opts.c: Enable fat-lto-objects on lto plugin disable setups.
5202 2013-11-19  Martin Jambor  <mjambor@suse.cz>
5204         PR rtl-optimization/59099
5205         * ira.c (find_moveable_pseudos): Put back various analyses from ira()
5206         here.
5207         (ira): Move init_reg_equiv and call to
5208         split_live_ranges_for_shrink_wrap up, remove analyses around call
5209         to find_moveable_pseudos.
5211 2013-11-20  Alan Modra  <amodra@gmail.com>
5213         * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
5214         * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
5215         to strict alignment on older processors when little-endian.
5216         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
5217         for ELFv2.
5219 2013-11-19  Teresa Johnson  <tejohnson@google.com>
5221         * common/config/i386/i386-common.c: Enable
5222         -freorder-blocks-and-partition at -O2 and up for x86.
5223         * doc/invoke.texi: Update -freorder-blocks-and-partition default.
5224         * opts.c (finish_options): Only warn if
5225         -freorder-blocks-and-partition was set on command line.
5227 2013-11-19  Sriraman Tallam  <tmsriram@google.com>
5229         * final.c (final_scan_insn): Emit a label for the split
5230         cold function part.  Label name is formed by suffixing
5231         the original function name with "cold".
5233 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
5235         * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
5236         (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
5237         (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
5238         (EXIT_BLOCK_PTR_FOR_FN): ...this.
5239         (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
5240         cfun be explicit.
5241         (EXIT_BLOCK_PTR): Likewise.
5242         (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
5243         (FOR_ALL_BB_FN): Update for renaming of
5244         "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
5246         * cfg.c (init_flow): Likewise.
5247         (check_bb_profile): Likewise.
5248         * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
5249         * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
5250         * cfghooks.c (account_profile_record): Likewise.
5251         * cfgloop.c (init_loops_structure): Likewise.
5252         * cgraphbuild.c (record_eh_tables): Likewise.
5253         (compute_call_stmt_bb_frequency): Likewise.
5254         * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
5255         * lto-streamer-in.c (input_cfg): Likewise.
5256         * predict.c (maybe_hot_frequency_p): Likewise.
5257         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
5258         * tree-inline.c (initialize_cfun): Likewise.
5259         (copy_cfg_body): Likewise.
5260         (copy_body): Likewise.
5261         (tree_function_versioning): Likewise.
5263         * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
5264         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5265         (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
5266         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
5267         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5268         (connect_traces): Likewise.
5269         (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
5270         (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
5271         (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
5272         macro.
5273         (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
5274         EXIT_BLOCK_PTR.
5275         (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
5276         (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
5277         (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
5278         (rotate_loop): Likewise.
5279         * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
5280         * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
5281         EXIT_BLOCK_PTR.
5282         (alloc_aux_for_edges): Likewise.
5283         (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
5284         (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
5285         EXIT_BLOCK_PTR.
5286         (compact_blocks): Likewise.
5287         (clear_edges): Likewise.
5288         * cfganal.c (single_pred_before_succ_order): Remove usage of
5289         ENTRY_BLOCK_PTR macro.
5290         (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
5291         (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
5292         (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
5293         (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
5294         (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
5295         EXIT_BLOCK_PTR.
5296         (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
5297         (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
5298         EXIT_BLOCK_PTR.
5299         (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
5300         (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
5301         (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
5302         (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5303         (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
5304         (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
5305         EXIT_BLOCK_PTR.
5306         (print_edge_list): Likewise.
5307         (create_edge_list): Likewise.
5308         (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
5309         (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
5310         EXIT_BLOCK_PTR.
5311         * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
5312         macro.
5313         (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
5314         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5315         * cfgcleanup.c (delete_unreachable_blocks): Likewise.
5316         (try_optimize_cfg): Likewise.
5317         (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
5318         (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
5319         (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
5320         (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
5321         (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
5322         (try_forward_edges): Likewise.
5323         (try_simplify_condjump): Likewise.
5324         * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
5325         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5326         (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
5327         (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
5328         EXIT_BLOCK_PTR.
5329         (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
5330         (expand_gimple_tailcall): Likewise.
5331         * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
5332         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5333         (tidy_fallthru_edges): Likewise.
5334         (verify_flow_info): Likewise.
5335         * cfgloop.c (flow_bb_inside_loop_p): Likewise.
5336         (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
5337         (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
5338         (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
5339         (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
5340         (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
5341         (get_loop_body_in_dom_order): Likewise.
5342         (get_loop_body): Likewise.
5343         * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
5344         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5345         * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
5346         macro.
5347         (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
5348         (fix_bb_placement): Likewise.
5349         * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
5350         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5351         (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
5352         (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
5353         EXIT_BLOCK_PTR.
5354         (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
5355         (cfg_layout_can_merge_blocks_p): Remove uses of macros:
5356         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5357         (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
5358         macro.
5359         (fixup_fallthru_exit_predecessor): Remove uses of macros:
5360         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5361         (fixup_reorder_chain): Likewise.
5362         (relink_block_chain): Likewise.
5363         (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
5364         (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
5365         (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
5366         (force_one_exit_fallthru): Likewise.
5367         (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
5368         EXIT_BLOCK_PTR.
5369         (rtl_verify_edges): Likewise.
5370         (commit_edge_insertions): Likewise.
5371         (commit_one_edge_insertion): Likewise.
5372         (rtl_split_edge): Likewise.
5373         (force_nonfallthru_and_redirect): Likewise.
5374         (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
5375         (skip_insns_after_block): Likewise.
5376         (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
5377         EXIT_BLOCK_PTR.
5378         (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
5379         (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
5380         EXIT_BLOCK_PTR.
5381         (contains_no_active_insn_p): Likewise.
5382         (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
5383         (entry_of_function): Likewise.
5384         (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
5385         (fixup_new_cold_bb): Likewise.
5386         (patch_jump_insn): Likewise.
5387         (try_redirect_by_replacing_jump): Likewise.
5388         (block_label): Likewise.
5389         (could_fall_through): Likewise.
5390         (can_fallthru): Likewise.
5391         * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
5392         ENTRY_BLOCK_PTR macro.
5393         (rebuild_cgraph_edges): Likewise.
5394         * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
5395         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5396         (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
5397         * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
5398         (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
5399         (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
5400         (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
5401         (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
5402         macro.
5403         (reg_nonzero_bits_for_combine): Likewise.
5404         (set_nonzero_bits_and_sign_copies): Likewise.
5405         (combine_instructions): Likewise.
5406         * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
5407         EXIT_BLOCK_PTR.
5408         (bypass_conditional_jumps): Likewise.
5409         (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
5410         (find_implicit_sets): Likewise.
5411         (cprop_jump): Likewise.
5412         * cse.c (cse_cc_succs): Likewise.
5413         (cse_find_path): Likewise.
5414         * df-problems.c (df_lr_confluence_0): Likewise.
5415         * df-scan.c (df_entry_block_defs_collect): Remove usage of
5416         ENTRY_BLOCK_PTR macro.
5417         (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
5418         * dominance.c (iterate_fix_dominators): Remove usage of
5419         ENTRY_BLOCK_PTR macro.
5420         (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5421         (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
5422         (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
5423         EXIT_BLOCK_PTR.
5424         (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
5425         macro.
5426         (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
5427         EXIT_BLOCK_PTR.
5428         * domwalk.c (cmp_bb_postorder): Likewise.
5429         * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
5430         * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
5431         macro.
5432         (sjlj_emit_function_enter): Likewise.
5433         * final.c (compute_alignments): Likewise.
5434         * function.c (thread_prologue_and_epilogue_insns): Remove uses of
5435         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5436         (reposition_prologue_and_epilogue_notes): Remove usage of
5437         EXIT_BLOCK_PTR macro.
5438         (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
5439         EXIT_BLOCK_PTR.
5440         (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
5441         (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
5442         * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
5443         (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
5444         (compute_code_hoist_vbeinout): Likewise.
5445         (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
5446         (pre_expr_reaches_here_p_work): Likewise.
5447         * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
5448         (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
5449         EXIT_BLOCK_PTR.
5450         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
5451         ENTRY_BLOCK_PTR macro.
5452         * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
5453         macro.
5454         * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
5455         ENTRY_BLOCK_PTR macro.
5456         * graphite-scop-detection.c (build_scops): Likewise.
5457         (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
5458         (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
5459         * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
5460         macro.
5461         (unlink_bb_notes): Likewise.
5462         (create_check_block_twin): Likewise.
5463         (init_before_recovery): Likewise.
5464         (sched_extend_bb): Likewise.
5465         (priority): Likewise.
5466         * hw-doloop.c (reorder_loops): Likewise.
5467         (discover_loop): Likewise.
5468         * ifcvt.c (dead_or_predicable): Remove uses of macros:
5469         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5470         (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
5471         (block_has_only_trap): Likewise.
5472         (cond_exec_find_if_block): Likewise.
5473         (merge_if_block): Likewise.
5474         * ipa-inline-analysis.c (param_change_prob): Remove usage of
5475         ENTRY_BLOCK_PTR macro.
5476         (record_modified): Likewise.
5477         * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
5478         EXIT_BLOCK_PTR macro.
5479         (local_pure_const): Likewise.
5480         * ipa-split.c (split_function): Remove uses of macros:
5481         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5482         (find_split_points): Likewise.
5483         (consider_split): Likewise.
5484         (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
5485         (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
5486         * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
5487         * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
5488         * ira-emit.c (entered_from_non_parent_p): Remove usage of
5489         ENTRY_BLOCK_PTR macro.
5490         (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
5491         * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
5492         * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
5493         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5494         * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
5495         macro.
5496         (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
5497         EXIT_BLOCK_PTR.
5498         (compute_farthest): Likewise.
5499         (compute_available): Likewise.
5500         (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
5501         (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
5502         EXIT_BLOCK_PTR.
5503         (compute_earliest): Likewise.
5504         (compute_antinout_edge): Likewise.
5505         * loop-iv.c (simplify_using_initial_values): Remove usage of
5506         ENTRY_BLOCK_PTR macro.
5507         * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
5508         macro.
5509         * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
5510         macro.
5511         * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
5512         macro.
5513         * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
5514         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5515         * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
5516         macro.
5517         * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
5518         macro.
5519         * lto-streamer-out.c (output_cfg): Likewise.
5520         * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
5521         EXIT_BLOCK_PTR.
5522         (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
5523         * mode-switching.c (optimize_mode_switching): Likewise.
5524         (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
5525         * modulo-sched.c (rest_of_handle_sms): Likewise.
5526         (canon_loop): Likewise.
5527         * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
5528         * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
5529         of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5530         * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
5531         macro.
5532         (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
5533         (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
5534         (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
5535         (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
5536         (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
5537         (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
5538         (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
5539         (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
5540         (gimple_predict_edge): Likewise.
5541         (probably_never_executed): Likewise.
5542         * profile.c (find_spanning_tree): Remove uses of macros:
5543         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5544         (branch_prob): Likewise.
5545         (compute_branch_probabilities): Likewise.
5546         (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
5547         (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
5548         (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
5549         (set_bb_counts): Likewise.
5550         (correct_negative_edge_counts): Likewise.
5551         (get_exec_counts): Likewise.
5552         (instrument_values): Likewise.
5553         (instrument_edges): Likewise.
5554         * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
5555         EXIT_BLOCK_PTR.
5556         (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
5557         (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
5558         (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
5559         (reg_to_stack): Likewise.
5560         * regs.h (REG_N_SETS): Likewise.
5561         * reload.c (find_dummy_reload): Likewise.
5562         (combine_reloads): Likewise.
5563         (push_reload): Likewise.
5564         * reload1.c (has_nonexceptional_receiver): Remove usage of
5565         EXIT_BLOCK_PTR macro.
5566         * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
5567         macro.
5568         (find_basic_block): Likewise.
5569         * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
5570         (schedule_ebbs): Likewise.
5571         * sched-int.h (sel_sched_p): Likewise.
5572         * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
5573         macro.
5574         (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
5575         (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
5576         EXIT_BLOCK_PTR.
5577         (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
5578         (extend_rgns): Likewise.
5579         (find_single_block_region): Likewise.
5580         * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
5581         ENTRY_BLOCK_PTR macro.
5582         (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
5583         (sel_create_recovery_block): Likewise.
5584         (bb_ends_ebb_p): Likewise.
5585         (sel_bb_end): Likewise.
5586         (sel_bb_head): Likewise.
5587         (free_lv_sets): Likewise.
5588         (init_lv_sets): Likewise.
5589         (tidy_control_flow): Likewise.
5590         (maybe_tidy_empty_bb): Likewise.
5591         * sel-sched-ir.h (_succ_iter_cond): Likewise.
5592         (_succ_iter_start): Likewise.
5593         (sel_bb_empty_or_nop_p): Likewise.
5594         (get_loop_exit_edges_unique_dests): Likewise.
5595         (inner_loop_header_p): Likewise.
5596         * sel-sched.c (create_block_for_bookkeeping): Likewise.
5597         (find_block_for_bookkeeping): Likewise.
5598         * store-motion.c (remove_reachable_equiv_notes): Likewise.
5599         (insert_store): Likewise.
5600         * trans-mem.c (ipa_tm_transform_clone): Remove usage of
5601         ENTRY_BLOCK_PTR macro.
5602         (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
5603         (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
5604         (gate_tm_init): Likewise.
5605         (tm_region_init): Likewise.
5606         * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
5607         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5608         (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
5609         (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
5610         EXIT_BLOCK_PTR.
5611         (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
5612         (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
5613         EXIT_BLOCK_PTR.
5614         (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
5615         macro.
5616         (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
5617         EXIT_BLOCK_PTR.
5618         (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
5619         macro.
5620         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5621         (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
5622         (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
5623         (build_gimple_cfg): Likewise.
5624         (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
5625         (gimple_can_merge_blocks_p): Likewise.
5626         * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
5627         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5628         * tree-complex.c (update_parameter_components): Remove usage of
5629         ENTRY_BLOCK_PTR macro.
5630         * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
5631         EXIT_BLOCK_PTR macro.
5632         * tree-inline.c (tree_function_versioning): Remove uses of macros:
5633         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5634         (delete_unreachable_blocks_update_callgraph): Likewise.
5635         (initialize_cfun): Likewise.
5636         (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
5637         (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
5638         (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
5639         * tree-into-ssa.c (update_ssa): Likewise.
5640         (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
5641         (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
5642         (rewrite_into_ssa): Likewise.
5643         (rewrite_debug_stmt_uses): Likewise.
5644         * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
5645         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5646         * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
5647         ENTRY_BLOCK_PTR macro.
5648         * tree-scalar-evolution.h (block_before_loop): Likewise.
5649         * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
5650         (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
5651         EXIT_BLOCK_PTR.
5652         (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
5653         macro.
5654         (propagate_dereference_distances): Remove uses of macros:
5655         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5656         (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
5657         macro.
5658         * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
5659         (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
5660         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
5661         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
5662         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5663         (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
5664         (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
5665         (mark_control_dependent_edges_necessary): Remove uses of macros:
5666         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5667         * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
5668         ENTRY_BLOCK_PTR macro.
5669         (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
5670         * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
5671         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5672         (calculate_live_on_exit): Likewise.
5673         (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
5674         (loe_visit_block): Likewise.
5675         * tree-ssa-live.h (live_on_exit): Remove uses of macros:
5676         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5677         (live_on_entry): Likewise.
5678         * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
5679         EXIT_BLOCK_PTR macro.
5680         * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
5681         ENTRY_BLOCK_PTR macro.
5682         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
5683         (bound_difference): Likewise.
5684         * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
5685         of EXIT_BLOCK_PTR macro.
5686         * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
5687         of ENTRY_BLOCK_PTR macro.
5688         * tree-ssa-math-opts.c (register_division_in): Likewise.
5689         * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
5690         * tree-ssa-pre.c (compute_avail): Likewise.
5691         (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
5692         (insert): Remove usage of ENTRY_BLOCK_PTR macro.
5693         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
5694         (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
5695         (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
5696         EXIT_BLOCK_PTR.
5697         (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
5698         * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
5699         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5700         (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
5701         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
5702         (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
5703         * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
5704         (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
5705         (find_pdom): Likewise.
5706         (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
5707         * tree-stdarg.c (reachable_at_most_once): Likewise.
5708         * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
5709         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5710         (eliminate_tail_call): Likewise.
5711         * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
5712         macro.
5713         (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
5714         * var-tracking.c (vt_initialize): Remove uses of macros:
5715         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5716         (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
5717         (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
5718         (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
5719         EXIT_BLOCK_PTR.
5720         * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
5721         macro.
5722         * config/bfin/bfin.c (hwloop_optimize): Likewise.
5723         * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
5724         of EXIT_BLOCK_PTR macro.
5725         * config/arm/arm.c (require_pic_register): Remove usage of
5726         ENTRY_BLOCK_PTR macro.
5727         (arm_r3_live_at_start_p): Likewise.
5728         (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
5729         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
5730         * config/frv/frv.c (frv_optimize_membar_global): Likewise.
5731         * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
5732         ENTRY_BLOCK_PTR macro.
5733         * config/i386/i386.c (ix86_count_insn): Likewise.
5734         (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
5735         (ix86_pad_short_function): Likewise.
5736         (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
5737         (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
5738         (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
5739         (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
5740         (ix86_expand_epilogue): Likewise.
5741         * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
5742         (ia64_expand_prologue): Likewise.
5744 2013-11-19  Catherine Moore  <clm@codesourcery.com>
5746         * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
5747         * config/mips/mips.opt (mfix-rm7000): New option.
5748         * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
5749         * config/mips/mips.c (mips_reorg_process_insns): Disable
5750         noreorder for TARGET_FIX_RM7000.
5752 2013-11-19  Oleg Endo  <olegendo@gcc.gnu.org>
5754         * config/sh/sh-c.c: Fix typo in include of file attribs.h.
5756 2013-11-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5758         * config/arm/arm.c (arm_new_rtx_costs):
5759         Handle narrow mode add-shifts properly.
5760         * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
5761         * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
5762         Declare extern.
5764 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
5766         * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
5768 2013-11-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5770         * config/rs6000/vector.md ("mov<mode>"): Do not call
5771         rs6000_emit_le_vsx_move to move into or out of GPRs.
5772         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
5773         source and destination are not GPR hard regs.
5775 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
5777         * basic-block.h (n_edges_for_function): Rename macro to...
5778         (n_edges_for_fn): ...this.
5779         (n_edges): Eliminate macro as work towards making uses of
5780         cfun be explicit.
5782         * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
5783         to "n_edges_for_fn".
5785         * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
5786         (clear_edges): Likewise.
5787         (free_edge): Likewise.
5788         * cfghooks.c (dump_flow_info): Likewise.
5789         * cprop.c (is_too_expensive): Likewise.
5790         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
5791         * gcse.c (is_too_expensive): Likewise.
5792         (prune_insertions_deletions): Likewise.
5793         * mcf.c (create_fixup_graph): Likewise.
5794         * sched-rgn.c (haifa_find_rgns): Likewise.
5795         * tree-cfg.c (gimple_dump_cfg): Likewise.
5796         * var-tracking.c (variable_tracking_main_1): Likewise.
5798 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5800         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
5801         length lines.
5803 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5805         * config/aarch64/aarch64.md
5806         (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
5808 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5810         * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
5812 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
5814         * varasm.c (align_variable): Give error instead of warning for
5815         unsupported alignment.
5816         (assemble_noswitch_variable): Likewise.
5818 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
5820         * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
5821         cb_file_change.
5823 2013-11-19  Peter Bergner  <bergner@vnet.ibm.com>
5825         * loop-doloop.c (doloop_optimize_loops): Remove unused
5826         loop iterator argument from FOR_EACH_LOOP.
5828 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
5830         Convert gimple types from a union to C++ inheritance.
5831         * Makefile.in (GIMPLE_H): Add dep on is-a.h.
5832         * coretypes.h (union gimple_statement_d): Remove declaration.
5833         (gimple): Convert from being a "union gimple_statement_d *"
5834         to a "struct gimple_statement_base *".
5835         (const_gimple): Likewise (with "const").
5836         * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
5837         (ggc_alloc_cleared_gimple_statement_stat): ...this.
5838         * gimple-pretty-print.c (debug): Change parameter from a
5839         "gimple_statement_d &" to a "gimple_statement_base &".
5840         (debug): Change parameter from a "gimple_statement_d *" to
5841         a "gimple_statement_base *".
5842         * gimple-pretty-print.h (debug): Update declarations as above.
5843         * gimple.c (gimple_alloc_stat): Update for renaming of
5844         ggc_alloc_cleared_gimple_statement_d_stat to
5845         ggc_alloc_cleared_gimple_statement_stat.
5846         * gimple.h: Include "is-a.h" for use by is_a_helper
5847         specializations in followup autogenerated patch.
5848         (struct gimple statement_base): Make this type usable as a base
5849         class by adding "desc", "tag" and "variable_size" to GTY, thus
5850         using opting-in to gengtype's support for simple inheritance.
5851         (gimple_statement_with_ops_base): Convert to a subclass of
5852         gimple_statement_base, dropping initial "gsbase" field.  Note that
5853         this type is abstract, with no GSS_ value, and thus no GTY tag value.
5854         (gimple_statement_with_ops): Convert to a subclass of
5855         gimple_statement_with_ops_base, dropping initial "opbase" field.
5856         Add tag value to GTY marking.  Update marking of op field to
5857         reflect how num_ops field is accessed via inheritance.
5858         (gimple_statement_with_memory_ops_base): Convert to a subclass of
5859         gimple_statement_with_ops_base, dropping initial "opbase" field.
5860         Add tag value to GTY marking.
5861         (gimple_statement_with_memory_ops): Convert to a subclass of
5862         public gimple_statement_with_memory_ops_base, dropping initial
5863         "membase" field.  Add tag value to GTY marking.  Update marking
5864         of op field to reflect how num_ops field is accessed via inheritance.
5865         (gimple_statement_call): Analogous changes that also update the
5866         marking of the "u" union.
5867         (gimple_statement_omp): Convert to a subclass of
5868         gimple_statement_base, dropping initial "gsbase" field, adding
5869         tag value to GTY marking.
5870         (gimple_statement_bind): Likewise.
5871         (gimple_statement_catch): Likewise.
5872         (gimple_statement_eh_filter): Likewise.
5873         (gimple_statement_eh_else): Likewise.
5874         (gimple_statement_eh_mnt): Likewise.
5875         (gimple_statement_phi): Likewise.
5876         (gimple_statement_eh_ctrl): Likewise.
5877         (gimple_statement_try): Likewise.
5878         (gimple_statement_wce): Likewise.
5879         (gimple_statement_asm): Convert to a subclass of
5880         gimple_statement_with_memory_ops_base, dropping initial
5881         "membase" field, adding tag value to GTY marking, and updating
5882         marking of op field.
5883         (gimple_statement_omp_critical): Convert to a subclass of
5884         gimple_statement_omp, dropping initial "omp" field, adding tag
5885         value to GTY marking.
5886         (gimple_statement_omp_for): Likewise.
5887         (gimple_statement_omp_parallel): Likewise.
5888         (gimple_statement_omp_task): Convert to a subclass of
5889         gimple_statement_omp_parallel, dropping initial "par" field,
5890         adding tag value to GTY marking.
5891         (gimple_statement_omp_sections): Convert to a subclass of
5892         gimple_statement_omp, dropping initial "omp" field, adding
5893         tag value to GTY marking.
5894         (gimple_statement_omp_continue): Convert to a subclass of
5895         gimple_statement_base, dropping initial "gsbase" field, adding
5896         tag value to GTY marking.
5897         (gimple_statement_omp_single): Convert to a subclass of
5898         gimple_statement_omp, dropping initial "omp" field, adding
5899         tag value to GTY marking.
5900         (gimple_statement_omp_atomic_load): Convert to a subclass of
5901         gimple_statement_base, dropping initial "gsbase" field, adding
5902         tag value to GTY marking.
5903         (gimple_statement_omp_atomic_store): Convert to a subclass of
5904         gimple_statement_base, dropping initial "gsbase" field, adding
5905         tag value to GTY marking.
5906         (gimple_statement_transaction): Convert to a subclass of
5907         gimple_statement_with_memory_ops_base, dropping initial "gsbase"
5908         field, adding tag value to GTY marking.
5909         (union gimple_statement_d): Remove.
5910         * system.h (CONST_CAST_GIMPLE): Update to use
5911         "struct gimple_statement_base *" rather than
5912         "union gimple_statement_d *".
5913         * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
5914         gimple_statement_d to gimple_statement_base.
5916         * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
5917         (gimple_set_use_ops): Port from union to usage of as_a.
5918         (gimple_set_vuse): Likewise.
5919         (gimple_set_vdef): Likewise.
5920         (gimple_call_internal_fn): Port from union to a static_cast,
5921         given that the type has already been asserted.
5922         (gimple_omp_body_ptr): Port from unchecked union usage to
5923         a static_cast.
5924         (gimple_omp_set_body): Likewise.
5926         * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
5927         gimple types to a true class hierarchy.
5928         (update_call_edge_frequencies): Likewise.
5929         (gsi_insert_seq_nodes_before): Likewise.
5930         (gsi_insert_seq_nodes_after): Likewise.
5931         (gsi_split_seq_after): Likewise.
5932         (gsi_set_stmt): Likewise.
5933         (gsi_split_seq_before): Likewise.
5934         (gsi_remove): Likewise.
5935         * gimple-iterator.h (gsi_one_before_end_p): Likewise.
5936         (gsi_next): Likewise.
5937         (gsi_prev): Likewise.
5938         * gimple-pretty-print.c (dump_gimple_debug): Likewise.
5939         * gimple-ssa.h (gimple_vuse_op): Likewise.
5940         (gimple_vdef_op): Likewise.
5941         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
5942         * gimple-streamer-out.c (output_gimple_stmt): Likewise.
5943         * gimple.c (gimple_set_code): Likewise.
5944         (gimple_alloc_stat): Likewise.
5945         (gimple_set_subcode): Likewise.
5946         (gimple_build_call_internal_1): Likewise.
5947         (gimple_check_failed): Likewise.
5948         (gimple_call_flags): Likewise.
5949         (gimple_set_bb): Likewise.
5950         * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
5951         (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
5952         (is_a_helper <gimple_statement_call> (gimple)): Likewise.
5953         (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
5954         (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
5955         (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
5956         (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
5957         (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
5958         (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
5959         (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
5960         (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
5961         (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
5962         (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
5963         (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
5964         (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
5965         (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
5966         (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
5967         (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
5968         (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
5969         (is_a_helper <gimple_statement_try> (gimple)): Likewise.
5970         (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
5971         (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
5972         (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
5973         (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
5974         (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
5975         (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
5976         Likewise.
5977         (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
5978         Likewise.
5979         (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
5980         Likewise.
5981         (is_a_helper <const gimple_statement_omp_atomic_store>
5982         (const_gimple)): Likewise.
5983         (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
5984         Likewise.
5985         (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
5986         Likewise.
5987         (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
5988         Likewise.
5989         (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
5990         Likewise.
5991         (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
5992         Likewise.
5993         (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
5994         Likewise.
5995         (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
5996         Likewise.
5997         (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
5998         (is_a_helper <const gimple_statement_transaction> (const_gimple)):
5999         Likewise.
6000         (gimple_seq_last): Update for conversion of gimple types to a true
6001         class hierarchy.
6002         (gimple_seq_set_last): Likewise.
6003         (gimple_code): Likewise.
6004         (gimple_bb): Likewise.
6005         (gimple_block): Likewise.
6006         (gimple_set_block): Likewise.
6007         (gimple_location): Likewise.
6008         (gimple_location_ptr): Likewise.
6009         (gimple_set_location): Likewise.
6010         (gimple_no_warning_p): Likewise.
6011         (gimple_set_no_warning): Likewise.
6012         (gimple_set_visited): Likewise.
6013         (gimple_visited_p): Likewise.
6014         (gimple_set_plf): Likewise.
6015         (gimple_plf): Likewise.
6016         (gimple_set_uid): Likewise.
6017         (gimple_uid): Likewise.
6018         (gimple_init_singleton): Likewise.
6019         (gimple_modified_p): Likewise.
6020         (gimple_set_modified): Likewise.
6021         (gimple_expr_code): Likewise.
6022         (gimple_has_volatile_ops): Likewise.
6023         (gimple_set_has_volatile_ops): Likewise.
6024         (gimple_omp_subcode): Likewise.
6025         (gimple_omp_set_subcode): Likewise.
6026         (gimple_omp_return_set_nowait): Likewise.
6027         (gimple_omp_section_set_last): Likewise.
6028         (gimple_omp_parallel_set_combined_p): Likewise.
6029         (gimple_omp_atomic_set_need_value): Likewise.
6030         (gimple_omp_atomic_set_seq_cst): Likewise.
6031         (gimple_num_ops): Likewise.
6032         (gimple_set_num_ops): Likewise.
6033         (gimple_assign_nontemporal_move_p): Likewise.
6034         (gimple_assign_set_nontemporal_move): Likewise.
6035         (gimple_assign_rhs_code): Likewise.
6036         (gimple_assign_set_rhs_code): Likewise.
6037         (gimple_call_internal_p): Likewise.
6038         (gimple_call_with_bounds_p): Likewise.
6039         (gimple_call_set_with_bounds): Likewise.
6040         (gimple_call_set_tail): Likewise.
6041         (gimple_call_tail_p): Likewise.
6042         (gimple_call_set_return_slot_opt): Likewise.
6043         (gimple_call_return_slot_opt_p): Likewise.
6044         (gimple_call_set_from_thunk): Likewise.
6045         (gimple_call_from_thunk_p): Likewise.
6046         (gimple_call_set_va_arg_pack): Likewise.
6047         (gimple_call_va_arg_pack_p): Likewise.
6048         (gimple_call_set_nothrow): Likewise.
6049         (gimple_call_set_alloca_for_var): Likewise.
6050         (gimple_call_alloca_for_var_p): Likewise.
6051         (gimple_call_copy_flags): Likewise.
6052         (gimple_cond_code): Likewise.
6053         (gimple_cond_set_code): Likewise.
6054         (gimple_cond_make_false): Likewise.
6055         (gimple_cond_make_true): Likewise.
6056         (gimple_asm_volatile_p): Likewise.
6057         (gimple_asm_set_volatile): Likewise.
6058         (gimple_asm_set_input): Likewise.
6059         (gimple_asm_input_p): Likewise.
6060         (gimple_try_kind): Likewise.
6061         (gimple_try_set_kind): Likewise.
6062         (gimple_try_catch_is_cleanup): Likewise.
6063         (gimple_try_set_catch_is_cleanup): Likewise.
6064         (gimple_wce_cleanup_eh_only): Likewise.
6065         (gimple_wce_set_cleanup_eh_only): Likewise.
6066         (gimple_debug_bind_p): Likewise.
6067         (gimple_debug_source_bind_p): Likewise.
6068         (gimple_omp_for_set_kind): Likewise.
6069         (gimple_omp_for_set_combined_p): Likewise.
6070         (gimple_omp_for_set_combined_into_p): Likewise.
6071         (gimple_omp_target_set_kind): Likewise.
6072         (gimple_transaction_subcode): Likewise.
6073         (gimple_transaction_set_subcode): Likewise.
6074         (gimple_predict_predictor): Likewise.
6075         (gimple_predict_set_predictor): Likewise.
6076         (gimple_predict_outcome): Likewise.
6077         (gimple_predict_set_outcome): Likewise.
6078         (gimple_transaction_set_label): Likewise.
6079         (gimple_transaction_set_body): Likewise.
6080         (gimple_transaction_label_ptr): Likewise.
6081         (gimple_transaction_label): Likewise.
6082         (gimple_transaction_body_ptr): Likewise.
6083         (gimple_omp_continue_set_control_use): Likewise.
6084         (gimple_omp_continue_control_use_ptr): Likewise.
6085         (gimple_omp_continue_control_use): Likewise.
6086         (gimple_omp_continue_set_control_def): Likewise.
6087         (gimple_omp_continue_control_def_ptr): Likewise.
6088         (gimple_omp_continue_control_def): Likewise.
6089         (gimple_omp_atomic_load_rhs_ptr): Likewise.
6090         (gimple_omp_atomic_load_rhs): Likewise.
6091         (gimple_omp_atomic_load_set_rhs): Likewise.
6092         (gimple_omp_atomic_load_lhs_ptr): Likewise.
6093         (gimple_omp_atomic_load_lhs): Likewise.
6094         (gimple_omp_atomic_load_set_lhs): Likewise.
6095         (gimple_omp_atomic_store_val_ptr): Likewise.
6096         (gimple_omp_atomic_store_val): Likewise.
6097         (gimple_omp_atomic_store_set_val): Likewise.
6098         (gimple_omp_for_cond): Likewise.
6099         (gimple_omp_for_set_cond): Likewise.
6100         (gimple_omp_sections_set_control): Likewise.
6101         (gimple_omp_sections_control_ptr): Likewise.
6102         (gimple_omp_sections_control): Likewise.
6103         (gimple_omp_sections_set_clauses): Likewise.
6104         (gimple_omp_sections_clauses_ptr): Likewise.
6105         (gimple_omp_sections_clauses): Likewise.
6106         (gimple_omp_teams_set_clauses): Likewise.
6107         (gimple_omp_teams_clauses_ptr): Likewise.
6108         (gimple_omp_teams_clauses): Likewise.
6109         (gimple_omp_target_set_data_arg): Likewise.
6110         (gimple_omp_target_data_arg_ptr): Likewise.
6111         (gimple_omp_target_data_arg): Likewise.
6112         (gimple_omp_target_set_child_fn): Likewise.
6113         (gimple_omp_target_child_fn_ptr): Likewise.
6114         (gimple_omp_target_child_fn): Likewise.
6115         (gimple_omp_target_set_clauses): Likewise.
6116         (gimple_omp_target_clauses_ptr): Likewise.
6117         (gimple_omp_target_clauses): Likewise.
6118         (gimple_omp_single_set_clauses): Likewise.
6119         (gimple_omp_single_clauses_ptr): Likewise.
6120         (gimple_omp_single_clauses): Likewise.
6121         (gimple_omp_task_set_arg_align): Likewise.
6122         (gimple_omp_task_arg_align_ptr): Likewise.
6123         (gimple_omp_task_arg_align): Likewise.
6124         (gimple_omp_task_set_arg_size): Likewise.
6125         (gimple_omp_task_arg_size_ptr): Likewise.
6126         (gimple_omp_task_arg_size): Likewise.
6127         (gimple_omp_task_set_copy_fn): Likewise.
6128         (gimple_omp_task_copy_fn_ptr): Likewise.
6129         (gimple_omp_task_copy_fn): Likewise.
6130         (gimple_omp_task_set_data_arg): Likewise.
6131         (gimple_omp_task_data_arg_ptr): Likewise.
6132         (gimple_omp_task_data_arg): Likewise.
6133         (gimple_omp_task_set_child_fn): Likewise.
6134         (gimple_omp_task_child_fn_ptr): Likewise.
6135         (gimple_omp_task_child_fn): Likewise.
6136         (gimple_omp_task_set_clauses): Likewise.
6137         (gimple_omp_task_clauses_ptr): Likewise.
6138         (gimple_omp_task_clauses): Likewise.
6139         (gimple_omp_parallel_set_data_arg): Likewise.
6140         (gimple_omp_parallel_data_arg_ptr): Likewise.
6141         (gimple_omp_parallel_data_arg): Likewise.
6142         (gimple_omp_parallel_set_child_fn): Likewise.
6143         (gimple_omp_parallel_child_fn_ptr): Likewise.
6144         (gimple_omp_parallel_child_fn): Likewise.
6145         (gimple_omp_parallel_set_clauses): Likewise.
6146         (gimple_omp_parallel_clauses_ptr): Likewise.
6147         (gimple_omp_parallel_clauses): Likewise.
6148         (gimple_omp_for_set_pre_body): Likewise.
6149         (gimple_omp_for_pre_body_ptr): Likewise.
6150         (gimple_omp_for_set_incr): Likewise.
6151         (gimple_omp_for_incr_ptr): Likewise.
6152         (gimple_omp_for_incr): Likewise.
6153         (gimple_omp_for_set_final): Likewise.
6154         (gimple_omp_for_final_ptr): Likewise.
6155         (gimple_omp_for_final): Likewise.
6156         (gimple_omp_for_set_initial): Likewise.
6157         (gimple_omp_for_initial_ptr): Likewise.
6158         (gimple_omp_for_initial): Likewise.
6159         (gimple_omp_for_set_index): Likewise.
6160         (gimple_omp_for_index_ptr): Likewise.
6161         (gimple_omp_for_index): Likewise.
6162         (gimple_omp_for_collapse): Likewise.
6163         (gimple_omp_for_set_clauses): Likewise.
6164         (gimple_omp_for_clauses_ptr): Likewise.
6165         (gimple_omp_for_clauses): Likewise.
6166         (gimple_omp_critical_set_name): Likewise.
6167         (gimple_omp_critical_name_ptr): Likewise.
6168         (gimple_omp_critical_name): Likewise.
6169         (gimple_eh_dispatch_set_region): Likewise.
6170         (gimple_eh_dispatch_region): Likewise.
6171         (gimple_resx_set_region): Likewise.
6172         (gimple_resx_region): Likewise.
6173         (gimple_phi_set_arg): Likewise.
6174         (gimple_phi_arg): Likewise.
6175         (gimple_phi_set_result): Likewise.
6176         (gimple_phi_result_ptr): Likewise.
6177         (gimple_phi_result): Likewise.
6178         (gimple_phi_num_args): Likewise.
6179         (gimple_phi_capacity): Likewise.
6180         (gimple_wce_set_cleanup): Likewise.
6181         (gimple_wce_cleanup_ptr): Likewise.
6182         (gimple_try_set_cleanup): Likewise.
6183         (gimple_try_set_eval): Likewise.
6184         (gimple_try_cleanup_ptr): Likewise.
6185         (gimple_try_eval_ptr): Likewise.
6186         (gimple_eh_else_set_e_body): Likewise.
6187         (gimple_eh_else_set_n_body): Likewise.
6188         (gimple_eh_else_e_body_ptr): Likewise.
6189         (gimple_eh_else_n_body_ptr): Likewise.
6190         (gimple_eh_must_not_throw_set_fndecl): Likewise.
6191         (gimple_eh_must_not_throw_fndecl): Likewise.
6192         (gimple_eh_filter_set_failure): Likewise.
6193         (gimple_eh_filter_set_types): Likewise.
6194         (gimple_eh_filter_failure_ptr): Likewise.
6195         (gimple_eh_filter_types_ptr): Likewise.
6196         (gimple_eh_filter_types): Likewise.
6197         (gimple_catch_set_handler): Likewise.
6198         (gimple_catch_set_types): Likewise.
6199         (gimple_catch_handler_ptr): Likewise.
6200         (gimple_catch_types_ptr): Likewise.
6201         (gimple_catch_types): Likewise.
6202         (gimple_asm_string): Likewise.
6203         (gimple_asm_set_label_op): Likewise.
6204         (gimple_asm_label_op): Likewise.
6205         (gimple_asm_set_clobber_op): Likewise.
6206         (gimple_asm_clobber_op): Likewise.
6207         (gimple_asm_set_output_op): Likewise.
6208         (gimple_asm_output_op_ptr): Likewise.
6209         (gimple_asm_output_op): Likewise.
6210         (gimple_asm_set_input_op): Likewise.
6211         (gimple_asm_input_op_ptr): Likewise.
6212         (gimple_asm_input_op): Likewise.
6213         (gimple_asm_nlabels): Likewise.
6214         (gimple_asm_nclobbers): Likewise.
6215         (gimple_asm_noutputs): Likewise.
6216         (gimple_asm_ninputs): Likewise.
6217         (gimple_bind_set_block): Likewise.
6218         (gimple_bind_block): Likewise.
6219         (gimple_bind_add_seq): Likewise.
6220         (gimple_bind_add_stmt): Likewise.
6221         (gimple_bind_set_body): Likewise.
6222         (gimple_bind_body_ptr): Likewise.
6223         (gimple_bind_append_vars): Likewise.
6224         (gimple_bind_set_vars): Likewise.
6225         (gimple_bind_vars): Likewise.
6226         (gimple_call_clobber_set): Likewise.
6227         (gimple_call_use_set): Likewise.
6228         (gimple_call_set_internal_fn): Likewise.
6229         (gimple_call_set_fntype): Likewise.
6230         (gimple_call_fntype): Likewise.
6231         (gimple_omp_return_lhs_ptr): Likewise.
6232         (gimple_omp_return_lhs): Likewise.
6233         (gimple_omp_return_set_lhs): Likewise.
6234         (gimple_omp_taskreg_set_data_arg): Likewise.
6235         (gimple_omp_taskreg_data_arg_ptr): Likewise.
6236         (gimple_omp_taskreg_data_arg): Likewise.
6237         (gimple_omp_taskreg_set_child_fn): Likewise.
6238         (gimple_omp_taskreg_child_fn_ptr): Likewise.
6239         (gimple_omp_taskreg_child_fn): Likewise.
6240         (gimple_omp_taskreg_set_clauses): Likewise.
6241         (gimple_omp_taskreg_clauses_ptr): Likewise.
6242         (gimple_omp_taskreg_clauses): Likewise.
6243         (gimple_vuse): Likewise.
6244         (gimple_vdef): Likewise.
6245         (gimple_vuse_ptr): Likewise.
6246         (gimple_vdef_ptr): Likewise.
6247         * tree-inline.c (copy_debug_stmt): Likewise.
6248         * tree-phinodes.c (make_phi_node): Likewise.
6250         * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
6251         (is_a_helper <gimple_statement_with_ops>::test): New.
6252         (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
6253         (is_a_helper <gimple_statement_with_memory_ops>::test): New.
6255         * gimple-streamer-in.c (input_gimple_stmt): Port from union
6256         access to use of as_a.
6257         * gimple.c (gimple_build_asm_1): Likewise.
6258         (gimple_build_try): Likewise.  Also, return a specific subclass
6259         rather than just gimple.
6260         (gimple_build_resx): Port from union access to use of as_a.
6261         (gimple_build_eh_dispatch): Likewise.
6262         (gimple_build_omp_for): Likewise.  Also, convert allocation of iter
6263         now that gengtype no longer provides a typed allocator function.
6264         (gimple_copy): Likewise.
6265         * gimple.h (gimple_build_try): Return a specific subclass rather
6266         than just gimple.
6267         * gimplify.c (gimplify_cleanup_point_expr): Replace union access
6268         with subclass access by making use of new return type of
6269         gimple_build_try.
6270         * tree-phinodes.c: (allocate_phi_node): Return a
6271         "gimple_statement_phi *" rather than just a gimple.
6272         (resize_phi_node): Likewise.
6273         (make_phi_node): Replace union access with subclass access by
6274         making use of new return type of allocate_phi_node.
6275         (reserve_phi_args_for_new_edge): Replace union access with as_a.
6276         (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
6277         than just a gimple.
6278         (remove_phi_args): Update for change to remove_phi_arg_num.
6280         * gdbhooks.py (GimplePrinter.to_string): Update lookup of
6281         code field to reflect inheritance, rather than embedding of
6282         the base gimple type.
6284 2013-11-19  Richard Biener  <rguenther@suse.de>
6286         * cfgloop.h (struct loop_iterator): C++-ify, add constructor
6287         and destructor and make fel_next a member function.
6288         (fel_next): Transform into ...
6289         (loop_iterator::next): ... this.
6290         (fel_init): Transform into ...
6291         (loop_iterator::loop_iterator): ... this.
6292         (loop_iterator::~loop_iterator): New.
6293         (FOR_EACH_LOOP): Remove loop-iterator argument.
6294         (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
6295         * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
6296         graphite-clast-to-gimple.c, graphite-scop-detection.c,
6297         graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
6298         loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
6299         modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
6300         tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
6301         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
6302         tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
6303         tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
6304         tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
6305         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
6306         uses of FOR_EACH_LOOP and remove loop_iterator variables.  Replace
6307         FOR_EACH_LOOP_BREAK with break.
6309 2013-11-19  Richard Biener  <rguenther@suse.de>
6311         PR tree-optimization/59164
6312         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
6313         Uncomment assert.
6314         * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
6315         whether we can create an epilogue loop to reflect thecases where
6316         we create one.
6318 2013-11-19  Andrew MacLeod  <amacleod@redhat.com>
6320         * graphite-sese-to-poly.c: Include expr.h.
6322 2013-11-19  Richard Biener  <rguenther@suse.de>
6324         PR middle-end/58956
6325         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
6326         loads into stmts that may clobber it.
6328 2013-11-19  Bernd Schmidt  <bernds@codesourcery.com>
6330         * cgraphunit.c (symtab_terminator): New variable.
6331         (queued_nodes): Renamed from first.  Use symtab_terminator as
6332         initializer.
6333         (analyze_functions): Adjust accordingly.
6334         (cgraph_process_new_functions): Return void.
6335         * cgraph.h (cgraph_process_new_functions): Adjust declaration.
6337 2013-11-19  Marek Polacek  <polacek@redhat.com>
6339         * opts.c (common_handle_option): Add -fsanitize=null option.
6340         Turn off -fdelete-null-pointer-checks option when doing the
6341         NULL pointer checking.
6342         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
6343         * tree-pass.h (make_pass_ubsan): Declare.
6344         (make_pass_sanopt): Declare.
6345         * timevar.def (TV_TREE_UBSAN): New timevar.
6346         * passes.def: Add pass_sanopt and pass_ubsan.
6347         * ubsan.h (ubsan_null_ckind): New enum.
6348         (ubsan_mismatch_data): New struct.
6349         (ubsan_expand_null_ifn): Declare.
6350         (ubsan_create_data): Adjust declaration.
6351         (ubsan_type_descriptor): Likewise.
6352         * asan.c: Include "ubsan.h".
6353         (pass_data_sanopt): New pass.
6354         (execute_sanopt): New function.
6355         (gate_sanopt): Likewise.
6356         (make_pass_sanopt): Likewise.
6357         (class pass_sanopt): New class.
6358         * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
6359         gimple-iterator.h and cfgloop.h.
6360         (PROB_VERY_UNLIKELY): Define.
6361         (tree_type_map_hash): New function.
6362         (ubsan_type_descriptor): Add new parameter.
6363         Improve type name generation.
6364         (ubsan_create_data): Add new parameter.  Add pointer data into
6365         ubsan structure.
6366         (ubsan_expand_null_ifn): New function.
6367         (instrument_member_call): Likewise.
6368         (instrument_mem_ref): Likewise.
6369         (instrument_null): Likewise.
6370         (ubsan_pass): Likewise.
6371         (gate_ubsan): Likewise.
6372         (make_pass_ubsan): Likewise.
6373         (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
6374         (class pass_ubsan): New class.
6375         (pass_data_ubsan): New pass.
6376         * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
6377         * internal-fn.c (expand_UBSAN_NULL): New function.
6378         * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
6379         even when !flag_toplevel_reorder.
6380         * internal-fn.def (UBSAN_NULL): New.
6382 2013-11-19  Jan Hubicka  <jh@suse.cz>
6384         * cgraph.c (cgraph_create_indirect_edge): Use
6385         get_polymorphic_call_info.
6386         * cgraph.h (cgraph_indirect_call_info): Add outer_type,
6387         maybe_in_construction and maybe_derived_type.
6388         * ipa-utils.h (ipa_polymorphic_call_context): New structure.
6389         (ipa_dummy_polymorphic_call_context): New global var.
6390         (possible_polymorphic_call_targets): Add context paramter.
6391         (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
6392         (possible_polymorphic_call_target_p): Likewise.
6393         (get_polymorphic_call_info): New function.
6394         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
6395         (add_type_duplicate): Remove forgotten debug output.
6396         (method_class_type): Add sanity check.
6397         (maybe_record_node): Add FINALP parameter.
6398         (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
6399         by info by get_binfo_at_offset.
6400         (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
6401         parameters; pass them to record-binfo.
6402         (polymorphic_call_target_d): Add context and FINAL.
6403         (polymorphic_call_target_hasher::hash): Hash context.
6404         (polymorphic_call_target_hasher::equal): Compare context.
6405         (free_polymorphic_call_targets_hash):
6406         (get_class_context): New function.
6407         (contains_type_p): New function.
6408         (get_polymorphic_call_info): New function.
6409         (walk_bases): New function.
6410         (possible_polymorphic_call_targets): Add context parameter; honnor it.
6411         (dump_possible_polymorphic_call_targets): Dump context.
6412         (possible_polymorphic_call_target_p): Add context.
6413         (update_type_inheritance_graph): Update comment.s
6414         (ipa_set_jf_known_type): Assert that compoentn type is known.
6415         (ipa_note_param_call): Do not tamper with offsets.
6416         (ipa_analyze_indirect_call_uses): When offset is being changed; clear
6417         outer type.
6418         (update_indirect_edges_after_inlining): Likewise.
6419         (ipa_write_indirect_edge_info): Stream new fields.
6420         (ipa_read_indirect_edge_info): Stream in new fields.
6422 2013-11-19  Jan Hubicka  <jh@suse.cz>
6424         * tree-pretty-print.c (dump_generic_node): Print class type of
6425         OBJ_TYPE_REF.
6427 2013-11-19  Joey Ye  <joey.ye@arm.com>
6429         * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
6430         * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
6431         for new option.
6432         * config/arm/arm.c (arm_option_override): By default disable
6433         -marm-pic-data-is-text-relative.
6434         (legitimize_pic_address): Use arm_pic_data_is_text_relative.
6435         (arm_assemble_integer): Likewise.
6436         * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
6437         New macro to initialize -marm-pic-data-is-text-relative.
6439 2013-11-19  Bin Cheng  <bin.cheng@arm.com>
6441         * tree-ssa-loop-ivopts.c (enum ainc_type): New.
6442         (address_cost_data): New field.
6443         (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
6444         Use ainc_costs for auto-increment rtx patterns.  Cleanup TWS.
6446 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
6448         * config/aarch64/aarch64.md: Remove v8type from all insns.
6450 2013-11-19  Richard Biener  <rguenther@suse.de>
6452         PR tree-optimization/57517
6453         * tree-predcom.c (combinable_refs_p): Verify the combination
6454         is always executed when the refs are.
6456 2013-11-19  Jeff Law  <law@redhat.com>
6458         * tree-ssa-threadupdate.c: Include ssa-iterators.h
6459         (copy_phi_arg_into_existing_phi): New function.
6460         (any_remaining_duplicated_blocks): Likewise.
6461         (ssa_fix_duplicate_block_edges): Handle multiple duplicated
6462         blocks on a jump threading path.
6464         * tree-ssa-threadupdate.c (thread_through_loop_header):  Do not
6465         thread through a joiner which has the latch edge.
6467 2013-11-19  Jan Hubicka  <jh@suse.cz>
6469         * md.texi (setmem): Document new parameter.
6470         * optabs.c (maybe_gen_insn): Support 9 operands.
6471         * builtins.c (determine_block_size): Add probable_max_size;
6472         support anti-ranges.
6473         (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
6474         probable_max_size.
6475         * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
6476         emit_block_move, clear_storage_hints, set_storage_via_setmem):
6477         Likewise.
6478         * expr.h (emit_block_move_hints, clear_storage_hints,
6479         set_storage_via_setmem): Update prototype.
6480         * i386.md (setmem, movmem patterns): Add 9th operand.
6481         * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
6482         * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
6483         argument; pass it to decide_alg.
6485 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
6487         * basic-block.h (n_basic_blocks_for_function): Rename macro to...
6488         (n_basic_blocks_for_fn): ...this.
6490         (n_basic_blocks): Eliminate macro as work towards making uses of
6491         cfun be explicit.
6493         * cfgloop.c (init_loops_structure): Update for renaming of
6494         "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
6495         * graph.c (draw_cfg_nodes_no_loops): Likewise.
6496         * ipa-utils.c (ipa_merge_profiles): Likewise.
6497         * lto-streamer-in.c (make_new_block): Likewise.
6498         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
6499         (dump_function_to_file): Likewise.
6501         * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
6502         macro with "n_basic_blocks_for_fn (cfun)".
6503         * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
6504         (duplicate_computed_gotos): Likewise.
6505         (reorder_basic_blocks): Likewise.
6506         * bt-load.c (augment_live_range): Likewise.
6507         * cfg.c (expunge_block): Likewise.
6508         (compact_blocks): Likewise.
6509         * cfganal.c (single_pred_before_succ_order): Likewise.
6510         (compute_idf): Likewise.
6511         (flow_dfs_compute_reverse_init): Likewise.
6512         (pre_and_rev_post_order_compute): Likewise.
6513         (pre_and_rev_post_order_compute_fn): Likewise.
6514         (inverted_post_order_compute): Likewise.
6515         (post_order_compute): Likewise.
6516         (print_edge_list): Likewise.
6517         (find_unreachable_blocks): Likewise.
6518         (mark_dfs_back_edges): Likewise.
6519         * cfgcleanup.c (try_optimize_cfg): Likewise.
6520         (try_forward_edges): Likewise.
6521         * cfghooks.c (dump_flow_info): Likewise.
6522         * cfgloop.c (verify_loop_structure): Likewise.
6523         (get_loop_body): Likewise.
6524         (flow_loops_find): Likewise.
6525         * cfgloopmanip.c (add_loop): Likewise.
6526         (remove_path): Likewise.
6527         (find_path): Likewise.
6528         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
6529         (rtl_verify_bb_layout): Likewise.
6530         (entry_of_function): Likewise.
6531         (rtl_create_basic_block): Likewise.
6532         * coverage.c (coverage_compute_cfg_checksum): Likewise.
6533         * cprop.c (one_cprop_pass): Likewise.
6534         (is_too_expensive): Likewise.
6535         * df-core.c (df_compute_cfg_image): Likewise.
6536         (df_compact_blocks): Likewise.
6537         (df_worklist_dataflow_doublequeue): Likewise.
6538         * dominance.c (calculate_dominance_info): Likewise.
6539         (calc_dfs_tree): Likewise.
6540         (calc_dfs_tree_nonrec): Likewise.
6541         (init_dom_info): Likewise.
6542         * domwalk.c (cmp_bb_postorder): Likewise.
6543         * function.c (thread_prologue_and_epilogue_insns): Likewise.
6544         (generate_setjmp_warnings): Likewise.
6545         * fwprop.c (build_single_def_use_links): Likewise.
6546         * gcse.c (is_too_expensive): Likewise.
6547         (one_code_hoisting_pass): Likewise.
6548         (one_pre_gcse_pass): Likewise.
6549         * graphite.c (graphite_initialize): Likewise.
6550         * haifa-sched.c (haifa_sched_init): Likewise.
6551         * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
6552         * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
6553         * ira-build.c (ira_build): Likewise.
6554         * lcm.c (compute_nearerout): Likewise.
6555         (compute_available): Likewise.
6556         (compute_laterin): Likewise.
6557         (compute_antinout_edge): Likewise.
6558         * lra-lives.c (lra_create_live_ranges): Likewise.
6559         * lra.c (has_nonexceptional_receiver): Likewise.
6560         * mcf.c (create_fixup_graph): Likewise.
6561         * profile.c (branch_prob): Likewise.
6562         * reg-stack.c (convert_regs_2): Likewise.
6563         * regrename.c (regrename_analyze): Likewise.
6564         * reload1.c (has_nonexceptional_receiver): Likewise.
6565         * reorg.c (dbr_schedule): Likewise.
6566         * sched-deps.c (sched_deps_init): Likewise.
6567         * sched-ebb.c (schedule_ebbs): Likewise.
6568         * sched-rgn.c (extend_regions): Likewise.
6569         (schedule_insns): Likewise.
6570         (sched_rgn_init): Likewise.
6571         (extend_rgns): Likewise.
6572         (haifa_find_rgns): Likewise.
6573         * sel-sched-ir.c (recompute_rev_top_order): Likewise.
6574         (sel_recompute_toporder): Likewise.
6575         * sel-sched.c (run_selective_scheduling): Likewise.
6576         * store-motion.c (one_store_motion_pass): Likewise.
6577         (remove_reachable_equiv_notes): Likewise.
6578         * tracer.c (tracer): Likewise.
6579         (tail_duplicate): Likewise.
6580         * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
6581         (dump_cfg_stats): Likewise.
6582         (gimple_dump_cfg): Likewise.
6583         (create_bb): Likewise.
6584         (build_gimple_cfg): Likewise.
6585         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
6586         * tree-inline.c (optimize_inline_calls): Likewise.
6587         (fold_marked_statements): Likewise.
6588         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
6589         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
6590         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
6591         * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
6592         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
6593         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
6594         * tree-ssa-pre.c (do_pre): Likewise.
6595         (init_pre): Likewise.
6596         (compute_avail): Likewise.
6597         * tree-ssa-reassoc.c (init_reassoc): Likewise.
6598         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
6599         * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
6600         (init_worklist): Likewise.
6601         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
6602         * var-tracking.c (variable_tracking_main_1): Likewise.
6603         (vt_find_locations): Likewise.
6604         (vt_stack_adjustments): Likewise.
6605         * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
6606         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
6608 2013-11-18  Jan Hubicka  <jh@suse.cz>
6610         * profile.c (compute_branch_probabilities): Do not sanity check
6611         run_max.
6613 2013-11-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
6615         * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
6616         GET_MODE_PRECISION.
6617         * fold-const.c (fold_single_bit_test_into_sign_test)
6618         (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
6620 2013-11-18  Teresa Johnson  <tejohnson@google.com>
6622         * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
6623         cfglayout after bb reordering.
6624         * passes.def: Move compgotos before bb reordering since it goes into
6625         cfglayout.
6627 2013-11-18  Bernd Schmidt  <bernds@codesourcery.com>
6629         * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
6630         * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
6631         static.
6632         (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
6633         make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
6634         pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
6635         * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
6636         * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
6637         Remove all_lto_gen_passes.
6638         * passes.c (pass_manager::dump_passes): Remove its use.
6639         (pass_manager::register_pass): Likewise.
6640         (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
6641         (pass_manager::pass_manager): Don't initialize or use it.
6642         (write_lto): New static function.
6643         (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
6644         instead of using all_lto_gen_passes.
6645         * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
6646         pass_ipa_lto_finish_out): Delete.
6647         * tree-pass.h (make_pass_ipa_lto_gimple_out,
6648         make_pass_ipa_lto_finish_out): Don't declare.
6650 2013-11-18  Jeff Law  <law@redhat.com>
6652         * tree-ssa-threadupdate.c (redirection_data): Record two
6653         duplicated blocks instead of just one.
6654         (local_info): Explain why we don't create a template for the
6655         second duplicated block in a thread path.
6656         (create_block_for_threading): Accept argument indicating array
6657         index into redirection_data to store its result.
6658         (lookup_redirection_data): Initialize both duplicate blocks.
6659         (ssa_create_duplicates): If a jump threading path needs multiple
6660         blocks duplicated, then duplicate them.
6661         (ssa_fix_duplicate_block_edges): Corresponding changes.
6662         (ssa_fixup_template_block, thread_single_edge):  Likewise.
6664 2013-11-18  Marek Polacek  <polacek@redhat.com>
6666         * doc/invoke.texi: Extend -fsanitize=undefined documentation.
6668 2013-11-18  Andrew Pinski <apinski@cavium.com>
6669             Steve Ellcey  <sellcey@mips.com>
6671         PR target/56552
6672         * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
6673         type restriction from equality_operator on conditonal move.
6674         (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
6675         (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
6677 2013-11-18  Jeff Law  <law@redhat.com>
6679         * tree-ssa-threadupdate.c: Fix file block comment.
6680         Fix minor indention issue.
6682 2013-11-18  Uros Bizjak  <ubizjak@gmail.com>
6684         * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
6685         ix86_address_subreg_operand.  Move subreg checks to
6686         ix86_validate_address_register.  Move address override check to
6687         ix86_legitimate_address_p.
6688         (ix86_validate_address_register): New function.
6689         (ix86_legitimate_address_p): Call ix86_validate_address_register
6690         to validate base and index registers.  Add address override check
6691         from ix86_decompose_address.
6692         (ix86_decompose_address): Remove.
6694 2013-11-18  Richard Biener  <rguenther@suse.de>
6696         PR tree-optimization/59125
6697         PR tree-optimization/54570
6698         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
6699         is not complete do not treat component-references with offset zero
6700         but different fields as equal.
6701         * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
6702         (compute_object_sizes): Apply TLC.  Propagate the constant
6703         results into all uses and fold their stmts.
6704         * passes.def (pass_all_optimizations): Move pass_object_sizes
6705         after the first pass_forwprop and before pass_fre.
6707 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
6709         * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
6710         * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
6711         (tree_ctz): Remove cast to unsigned type.
6712         * builtins.c (fold_builtin_memory_op): Likewise.
6713         * dwarf2out.c (descr_info_loc): Likewise.
6714         * godump.c (go_output_typedef): Likewise.
6715         * omp-low.c (expand_omp_simd): Likewise.
6716         * stor-layout.c (excess_unit_span): Likewise.
6717         * tree-object-size.c (addr_object_size): Likewise.
6718         * tree-sra.c (analyze_all_variable_accesses): Likewise.
6719         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
6720         (simplify_rotate): Likewise.
6721         * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
6722         (handle_pointer_plus): Likewise.
6723         * tree-switch-conversion.c (check_range): Likewise.
6724         * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
6725         * tsan.c (instrument_builtin_call): Likewise.
6726         * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
6727         * trans-mem.c (tm_log_add): Likewise.
6728         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
6729         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
6730         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
6731         * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
6733 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
6735         * tree.h (host_integerp, tree_low_cst): Delete.
6736         * tree.c (host_integerp, tree_low_cst): Delete.
6738 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
6740         * expr.h: Update comments to refer to tree_to_[su]hwi rather
6741         than tree_low_cst.
6742         * fold-const.c (fold_binary_loc): Likewise.
6743         * expr.c (store_constructor): Use tree_to_uhwi rather than
6744         tree_low_cst.
6745         * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
6746         * stmt.c (emit_case_dispatch_table): Likewise.
6747         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
6749 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
6751         * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
6752         config/aarch64/aarch64.c, config/alpha/predicates.md,
6753         config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
6754         config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
6755         config/mep/mep-pragma.c, config/mips/mips.c,
6756         config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
6757         dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
6758         function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
6759         predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
6760         tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
6761         tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
6762         tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
6763         tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
6764         tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
6765         Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
6767 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
6769         * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
6770         config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
6771         config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
6772         coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
6773         fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
6774         predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
6775         tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
6776         tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
6777         tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
6778         tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
6779         Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
6781 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
6783         * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
6784         * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
6786 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
6788         * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
6789         than host_integerp.
6791 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
6793         * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
6794         config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
6795         gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
6796         tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
6797         tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
6798         tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
6799         tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
6800         config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
6801         config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
6802         config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
6803         gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
6804         tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
6805         tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
6806         tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
6807         tree_fits_uhwi_p throughout.
6809 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
6811         * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
6812         config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
6813         config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
6814         expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
6815         gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
6816         omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
6817         stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
6818         tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
6819         tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
6820         tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
6821         tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
6822         tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
6823         varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
6824         throughout.
6826 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
6828         * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
6829         * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
6831 2013-11-18  Kirill Yukhin  <kirill.yukhin@intel.com>
6833         * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
6834         flag if it kills its address, not its post-increment.
6836 2013-11-18  Ilya Enkovich  <ilya.enkovich@intel.com>
6838         * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
6839         * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
6840         * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
6841         * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
6842         * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
6843         (gimple_call_with_bounds_p): New.
6844         (gimple_call_set_with_bounds): New.
6845         (gimple_call_num_nobnd_args): Remove.
6846         (gimple_call_nobnd_arg): Remove.
6847         * tree.h (CALL_WITH_BOUNDS_P): New.
6848         * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
6850 2013-11-18  Trevor Saunders  <tsaunders@mozilla.com>
6852         * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
6853         (symtab_node_name): Rename to symtab_node::name.
6854         (cgraph_node_asm_name): Remove.
6855         (varpool_node_asm_name): Remove.
6856         * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
6857         ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
6858         ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
6859         ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
6860         tree-ssa-structalias.c value-prof.c varpool.c Adjust.
6862 2013-11-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6864         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
6865         * config/arm/arm.c (arm_cortex_a53_tune): New.
6866         * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
6868 2013-11-12  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
6870         * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
6871         (case ${target}): Add bdver4.
6872         * config/i386/bdver3.md: Add bdver4.
6873         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
6874         -march=native recognize bdver4 processors.
6875         * config/i386/i386-c.c (ix86_target_macros_internal): Add
6876         bdver4 def_and_undef
6877         * config/i386/i386.c (struct processor_costs bdver4_cost): New.
6878         (m_BDVER4): New definition.
6879         (m_AMD_MULTIPLE): Includes m_BDVER4.
6880         (processor_target_table): Add bdver4 entry.
6881         (static const char *const cpu_names): Add bdver4 entry.
6882         (software_prefetching_beneficial_p): Add bdver3.
6883         (ix86_option_override_internal): Add bdver4 instruction sets.
6884         (ix86_issue_rate): Add bdver4.
6885         (ix86_adjust_cost): Add bdver4.
6886         (ia32_multipass_dfa_lookahead): Add bdver4.
6887         (enum processor_model): Add M_AMDFAM15H_BDVER4.
6888         (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
6889         (has_dispatch): Add bdver4.
6890         * config/i386/i386.h (TARGET_BDVER4): New definition.
6891         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
6892         (enum processor_type): Add PROCESSOR_BDVER4.
6893         * config/i386/i386.md (define_attr "cpu"): Add bdver4.
6894         * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
6895         * doc/extend.texi: Add details about bdver4.
6896         * doc/invoke.texi: Add details about bdver4. Add
6897         fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
6899 2013-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6901         * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
6902         sdmode_stack_slot also in little-endian mode.
6904 2013-11-17  Jan Hubicka  <jh@suse.cz>
6906         * doc/md.texi (setmem, movstr): Update documentation.
6907         * builtins.c (determine_block_size): New function.
6908         (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
6909         (expand_builtin_memset_args): Use it and pass it to
6910         set_storage_via_setmem.
6911         * expr.c (emit_block_move_via_movmem): Add min_size/max_size
6912         parameters; update call to expander.
6913         (emit_block_move_hints): Add min_size/max_size parameters.
6914         (clear_storage_hints): Likewise.
6915         (set_storage_via_setmem): Likewise.
6916         (clear_storage): Update.
6917         * expr.h (emit_block_move_hints, clear_storage_hints,
6918         set_storage_via_setmem): Update prototypes.
6919         * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
6920         (ix86_expand_movmem, ix86_expand_setmem): Remove.
6921         (ix86_expand_movmem, ix86_expand_setmem): Remove.
6922         * i386.md (movmem, setmem): Pass parameters.
6924 2013-11-17  Uros Bizjak  <ubizjak@gmail.com>
6926         PR target/59153
6927         * config/i386/i386.c (ix86_address_subreg_operand): Do not
6928         reject non-integer subregs.
6929         (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
6930         Move check for invalid x32 constant addresses ...
6931         (ix86_legitimate_address_p): ... here.
6933 2011-11-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6935         * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
6936         parameter and use it in REG_FRAME_RELATED_EXPR note.
6937         (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
6938         parameter.
6939         (rs6000_emit_prologue): Likewise, but for little endian VSX
6940         stores, pass the source register of the store instead.
6942 2013-11-17  Andrew MacLeod  <amacleod@redhat.com>
6944         * gimple.h: Reorder prototypes to match .c declaration order, and
6945         remove protyotypes for functions not in gimple.c.
6946         (LABEL): Move to tree-into-ssa.c.
6947         * gimple.c: Remove unused prototypes.
6948         (get_base_address): Move to tree.c.
6949         * tree.c (get_base_address): Relocate from gimple.c.
6950         * builtins.h (validate_gimple_arglist): Add prototype.
6951         * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
6952         * cfgexpand.h: New File.
6953         (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
6954         * tree.h (build_addr): Move to tree-nested.h.
6955         * tree-nested.h: New File.
6956         (build_addr, lower_nested_functions, insert_field_into_struct): Add
6957         prototypes.
6958         * tree-inline.h (estimated_stack_frame_size): Remove prototype.
6959         * ipa-inline-analysis.c: Include cfgexpand.h.
6960         * cgraphunit.c: Include tree-nested.h.
6961         * omp-low.c: Likewise.
6962         * tree-parloops.c: Likewise.
6963         * gimple-low.h: Likewise.
6964         * tree-profile.h: Likewise.
6965         * expr.c: Include cfgexpand.h.
6966         * tree-affine.c: Likewise.
6967         * tree-ssa.c: Likewise.
6968         * tree-ssa-loop-im.c: Include trans-mem.h.
6969         * tree-ssa-tail-merge.c: Likewise.
6970         * value-prof.c: Include builtins.h and tree-nested.h.
6971         * tree-into-ssa.c (LABEL): Define here.
6973 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
6975         * config/arc/arc.c (arc_predicate_delay_insns): New function.
6976         (pass_data_arc_predicate_delay_insns): New pass_data instance.
6977         (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
6978         (make_pass_arc_predicate_delay_insns): New function.
6979         (arc_init): Register pass_arc_predicate_delay_insns if
6980         flag_delayed_branch is active.
6982 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
6984         * config/arc/constraints.md (Rcq): Simplify register number test.
6986 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
6988         * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
6990 2013-11-15  Kaz Kojima  <kkojima@gcc.gnu.org>
6992         * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
6993         is null.
6995 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
6997         * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
6998         * gimple-pretty-print.c (dump_omp_for): Add case for
6999         GF_OMP_FOR_KIND_CILKSIMD.
7000         * gimple.h (enum gf_mask): Restructure entries to add
7001         GF_OMP_FOR_KIND_CILKSIMD.
7002         * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
7003         (gimplify_omp_for): Handle CILK_SIMD.
7004         (gimplify_expr): Add ccase for CILK_SIMD.
7005         * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
7006         (build_outer_var_ref): Same.
7007         (check_omp_nesting_restrictions): Same.
7008         (lower_rec_input_clauses): Same.
7009         (lower_lastprivate_clauses): Same.
7010         (expand_omp_for): Same.
7011         (execute_expand_omp): Check flag_enable_cilkplus.
7012         (execute_lower_omp): Same.
7013         (diagnose_sb_0): Handle CILK_SIMD.
7014         (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
7015         (setjmp_or_longjmp_p): New.
7016         (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
7017         * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
7018         * tree.def: Add tree code for CILK_SIMD.
7020 2013-11-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7022         * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
7023         Remove.
7024         (altivec_vperm_<mode>): Revert earlier little endian change.
7025         (*altivec_vperm_<mode>_internal): Remove.
7026         (altivec_vperm_<mode>_uns): Revert earlier little endian change.
7027         (*altivec_vperm_<mode>_uns_internal): Remove.
7028         * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
7030 2013-11-15  Jeff Law  <law@redhat.com>
7032         * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
7033         has_abnormal_or_outgoing_edge.  Check for EH edges as well.
7034         * gimple-ssa-isolate-paths.c
7035         (find_implicit_erroneous_behaviour): Corresponding changes.
7036         Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
7037         (find_explicit_erroneous_behaviour): Likewise.
7039 2013-11-15  Jeff Law  <law@redhat.com>
7041         * ifcvt.c (find_cond_trap): Properly handle case where
7042         trap_bb == else_bb.
7044 2013-11-15  Andreas Schwab  <schwab@linux-m68k.org>
7046         * configure: Regenerate.
7048 2013-11-15  James Greenhalgh  <james.greenhalgh@arm.com>
7050         * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
7051         * config/aarch64/aarch64.md: Likewise, correct "type" attribute
7052         where it is incorrect or missing.
7054 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
7056         * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
7057         host_integerp test.
7058         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
7059         Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
7060         constant.
7061         * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
7062         pair with a TREE_CODE test and TREE_INT_CST_LOW.
7063         * tree-vect-generic.c (expand_vector_divmod): Likewise.
7065 2013-11-15  Richard Biener  <rguenther@suse.de>
7067         PR tree-optimization/50262
7068         * tree-ssa-alias.h (struct pt_solution): Split
7069         vars_contains_global into vars_contains_nonlocal,
7070         vars_contains_escaped and vars_contains_escaped_heap.
7071         * tree-ssa-structalias.c (label_visit): Expand comment.
7072         (handle_lhs_call): Adjust comment.
7073         (set_uids_in_ptset): Set the new flags appropriately.
7074         (pt_solution_set): Adjust.
7075         (pt_solution_set_var): Likewise.
7076         (pt_solution_ior_into): Likewise.
7077         (pt_solution_includes_global): Likewise.
7078         (pt_solutions_intersect_1): Optimize escaped handling.
7079         (compute_points_to_sets): Remove heap variable globalization.
7080         (ipa_escaped_pt): Adjust initializer.
7081         (pass_data_ipa_pta): Do not run TODO_update_ssa.
7082         * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
7083         * tree-ssa-alias.c (dump_points_to_solution): Likewise.
7085 2013-11-15  Richard Biener  <rguenther@suse.de>
7087         * tree-loop-distribution.c (tree_loop_distribution): Make sure
7088         to distribute all stores.
7090 2013-11-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7092         * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
7094 2013-11-15  Joseph Myers  <joseph@codesourcery.com>
7096         * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
7097         * configure.ac: Determine target_header_dir earlier.
7098         (--with-glibc-version): New configure option.
7099         Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
7100         gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
7101         * configure: Regenerate.
7102         * doc/install.texi (--enable-gnu-unique-object): Don't refer to
7103         native toolchains for default.
7104         (--with-glibc-version): Document.
7106 2013-11-15  Eric Botcazou  <ebotcazou@adacore.com>
7108         * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
7110 2013-11-15  Uros Bizjak  <ubizjak@gmail.com>
7112         * lto-streamer-in.c (input function): Call cgraph_create_node if
7113         cgraph_get_node failed.
7115 2013-11-14  Olivier Hainque  <hainque@adacore.com>
7117         * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
7118         defer allocation of DECL_IGNORED_P variables at toplevel unless really
7119         small.  Factorize size threshold computation from the existing one.
7120         (expand_used_vars): Refine comment.
7122 2013-11-14  Cong Hou  <congh@google.com>
7124         * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
7125         address field as it can be obtained from dr.  Rename the struct.
7126         * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
7127         steps of data references during sort.
7128         (vect_prune_runtime_alias_test_list): Adjust with the change to
7129         struct dr_with_seg_len.
7130         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
7131         Adjust with the change to struct dr_with_seg_len.
7133 2013-11-14  Jeff Law  <law@redhat.com>
7135         PR middle-end/59127
7136         * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
7137         * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
7138         * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
7139         (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
7140         edges, then ignore it.  If the statement exhibiting erroneous
7141         behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
7142         then we can not optimize.
7143         (find_explicit_erroneous_behaviour): Likewise.
7145 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
7147         * gimplify-me.h:  New file.  Add prototypes.
7148         * gimplify.h: Don't include gimple.h.
7149         (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
7150         Relocate from gimple.h.
7151         * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
7152         is_gimple_sizepos): Move to gimplify.h.
7153         (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
7154         (enum gsi_iterator_update): Move to gimple-iterator.h.
7155         * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
7156         * gimplify-me.c: New File.
7157         (force_gimple_operand_1, force_gimple_operand,
7158         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
7159         gimple_regimplify_operands): Relocate from gimplify.c.
7160         * gimplify.c (force_gimple_operand_1, force_gimple_operand,
7161         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
7162         gimple_regimplify_operands): Move to gimplify-me.c.
7163         (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
7164         from gimple.h.
7165         * Makefile.in (OBJS): Add gimplify-me.o
7166         * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
7167         required.
7168         * cfgloopmanip.c: Likewise.
7169         * cgraphunit.c: Likewise.
7170         * cilk-common.c: Likewise.
7171         * fold-const.c: Likewise.
7172         * function.c: Likewise.
7173         * gimple-expr.c: Likewise.
7174         * gimple-fold.c: Likewise.
7175         * gimple-ssa-strength-reduction.c: Likewise.
7176         * gimple.c: Likewise.
7177         * graphite-clast-to-gimple.c: Likewise.
7178         * graphite-sese-to-poly.c: Likewise.
7179         * ipa-prop.c: Likewise.
7180         * ipa-split.c: Likewise.
7181         * ipa.c: Likewise.
7182         * langhooks.c: Likewise.
7183         * omp-low.c: Likewise.
7184         * sese.c: Likewise.
7185         * stor-layout.c: Likewise.
7186         * targhooks.c: Likewise.
7187         * trans-mem.c: Likewise.
7188         * tree-affine.c: Likewise.
7189         * tree-cfg.c: Likewise.
7190         * tree-cfgcleanup.c: Likewise.
7191         * tree-complex.c: Likewise.
7192         * tree-if-conv.c: Likewise.
7193         * tree-inline.c: Likewise.
7194         * tree-loop-distribution.c: Likewise.
7195         * tree-nested.c: Likewise.
7196         * tree-parloops.c: Likewise.
7197         * tree-predcom.c: Likewise.
7198         * tree-profile.c: Likewise.
7199         * tree-scalar-evolution.c: Likewise.
7200         * tree-sra.c: Likewise.
7201         * tree-ssa-address.c: Likewise.
7202         * tree-ssa-ccp.c: Likewise.
7203         * tree-ssa-dce.c: Likewise.
7204         * tree-ssa-forwprop.c: Likewise.
7205         * tree-ssa-ifcombine.c: Likewise.
7206         * tree-ssa-loop-im.c: Likewise.
7207         * tree-ssa-loop-ivopts.c: Likewise.
7208         * tree-ssa-loop-manip.c: Likewise.
7209         * tree-ssa-loop-niter.c: Likewise.
7210         * tree-ssa-loop-prefetch.c: Likewise.
7211         * tree-ssa-loop-unswitch.c: Likewise.
7212         * tree-ssa-math-opts.c: Likewise.
7213         * tree-ssa-phiopt.c: Likewise.
7214         * tree-ssa-phiprop.c: Likewise.
7215         * tree-ssa-pre.c: Likewise.
7216         * tree-ssa-propagate.c: Likewise.
7217         * tree-ssa-reassoc.c: Likewise.
7218         * tree-ssa-sccvn.c: Likewise.
7219         * tree-ssa-strlen.c: Likewise.
7220         * tree-ssa.c: Likewise.
7221         * tree-switch-conversion.c: Likewise.
7222         * tree-tailcall.c: Likewise.
7223         * tree-vect-data-refs.c: Likewise.
7224         * tree-vect-generic.c: Likewise.
7225         * tree-vect-loop-manip.c: Likewise.
7226         * tree-vect-loop.c: Likewise.
7227         * tree-vect-patterns.c: Likewise.
7228         * tree-vect-stmts.c: Likewise.
7229         * tree.c: Likewise.
7230         * tsan.c: Likewise.
7231         * value-prof.c: Likewise.
7232         * config/aarch64/aarch64.c: Likewise.
7233         * config/alpha/alpha.c: Likewise.
7234         * config/darwin.c: Likewise.
7235         * config/i386/i386.c: Likewise.
7236         * config/ia64/ia64.c: Likewise.
7237         * config/mep/mep.c: Likewise.
7238         * config/mips/mips.c: Likewise.
7239         * config/rs6000/rs6000.c: Likewise.
7240         * config/s390/s390.c: Likewise.
7241         * config/sh/sh.c: Likewise.
7242         * config/sparc/sparc.c: Likewise.
7243         * config/spu/spu.c: Likewise.
7244         * config/stormy16/stormy16.c: Likewise.
7245         * config/tilegx/tilegx.c: Likewise.
7246         * config/tilepro/tilepro.c: Likewise.
7247         * config/xtensa/xtensa.c: Likewise.
7249 2013-11-14  Diego Novillo  <dnovillo@google.com>
7251         * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
7253 2013-11-14  Diego Novillo  <dnovillo@google.com>
7255         * tree.h: Include fold-const.h.
7256         (aggregate_value_p): Moved to function.h.
7257         (alloca_call_p): Moved to calls.h.
7258         (allocate_struct_function): Moved to function.h.
7259         (apply_tm_attr): Moved to attribs.h.
7260         (array_at_struct_end_p): Moved to expr.h.
7261         (array_ref_element_size): Moved to tree-dfa.h.
7262         (array_ref_low_bound): Moved to tree-dfa.h.
7263         (array_ref_up_bound): Moved to tree.h.
7264         (assemble_alias): Moved to cgraph.h.
7265         (bit_from_pos): Moved to stor-layout.h.
7266         (build_addr): Moved to tree-nested.h.
7267         (build_duplicate_type): Moved to tree-inline.h.
7268         (build_fold_addr_expr): Moved to fold-const.h.
7269         (build_fold_addr_expr_with_type): Moved to fold-const.h.
7270         (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
7271         (build_fold_indirect_ref): Moved to fold-const.h.
7272         (build_fold_indirect_ref_loc): Moved to fold-const.h.
7273         (build_personality_function): Moved to tree.h.
7274         (build_range_check): Moved to fold-const.h.
7275         (build_simple_mem_ref): Moved to fold-const.h.
7276         (build_simple_mem_ref_loc): Moved to fold-const.h.
7277         (build_tm_abort_call): Moved to trans-mem.h.
7278         (byte_from_pos): Moved to stor-layout.h.
7279         (call_expr_flags): Moved to calls.h.
7280         (can_move_by_pieces): Moved to expr.h.
7281         (categorize_ctor_elements): Moved to expr.h.
7282         (change_decl_assembler_name): Moved to gcc-symtab.h.
7283         (combine_comparisons): Moved to fold-const.h.
7284         (complete_ctor_at_level_p): Moved to tree.h.
7285         (component_ref_field_offset): Moved to tree-dfa.h.
7286         (compute_builtin_object_size): Moved to tree-object-size.h.
7287         (compute_record_mode): Moved to stor-layout.h.
7288         (constant_boolean_node): Moved to fold-const.h.
7289         (constructor_static_from_elts_p): Moved to varasm.h.
7290         (cxx11_attribute_p): Moved to attribs.h.
7291         (debug_body): Moved to print-tree.h.
7292         (debug_find_tree): Moved to tree-inline.h.
7293         (debug_fold_checksum): Moved to fold-const.h.
7294         (debug_head): Moved to print-tree.h.
7295         (debug_head): Moved to print-tree.h.
7296         (debug_raw): Moved to print-tree.h.
7297         (debug_tree): Moved to print-tree.h.
7298         (debug_vec_tree): Moved to print-tree.h.
7299         (debug_verbose): Moved to print-tree.h.
7300         (debug_verbose): Moved to print-tree.h.
7301         (decl_attributes): Moved to attribs.h.
7302         (decl_binds_to_current_def_p): Moved to varasm.h.
7303         (decl_default_tls_model): Moved to varasm.h.
7304         (decl_replaceable_p): Moved to varasm.h.
7305         (div_if_zero_remainder): Moved to fold-const.h.
7306         (double_int mem_ref_offset): Moved to fold-const.h.
7307         (dump_addr): Moved to print-tree.h.
7308         (element_precision): Moved to machmode.h.
7309         (expand_dummy_function_end): Moved to function.h.
7310         (expand_function_end): Moved to function.h.
7311         (expand_function_start): Moved to function.h.
7312         (expand_label): Moved to stmt.h.
7313         (expr_first): Moved to tree-iterator.h.
7314         (expr_last): Moved to tree-iterator.h.
7315         (finalize_size_functions): Moved to stor-layout.h.
7316         (finish_builtin_struct): Moved to stor-layout.h.
7317         (finish_record_layout): Moved to stor-layout.h.
7318         (fixup_signed_type): Moved to stor-layout.h.
7319         (fixup_unsigned_type): Moved to stor-layout.h.
7320         (flags_from_decl_or_type): Moved to calls.h.
7321         (fold): Moved to fold-const.h.
7322         (fold_abs_const): Moved to fold-const.h.
7323         (fold_binary): Moved to fold-const.h.
7324         (fold_binary_loc): Moved to fold-const.h.
7325         (fold_binary_to_constant): Moved to fold-const.h.
7326         (fold_build1): Moved to fold-const.h.
7327         (fold_build1_initializer_loc): Moved to fold-const.h.
7328         (fold_build1_loc): Moved to fold-const.h.
7329         (fold_build1_stat_loc): Moved to fold-const.h.
7330         (fold_build2): Moved to fold-const.h.
7331         (fold_build2_initializer_loc): Moved to fold-const.h.
7332         (fold_build2_loc): Moved to fold-const.h.
7333         (fold_build2_stat_loc): Moved to fold-const.h.
7334         (fold_build3): Moved to fold-const.h.
7335         (fold_build3_loc): Moved to fold-const.h.
7336         (fold_build3_stat_loc): Moved to fold-const.h.
7337         (fold_build_call_array): Moved to fold-const.h.
7338         (fold_build_call_array_initializer): Moved to fold-const.h.
7339         (fold_build_call_array_initializer_loc): Moved to fold-const.h.
7340         (fold_build_call_array_loc): Moved to fold-const.h.
7341         (fold_build_cleanup_point_expr): Moved to fold-const.h.
7342         (fold_convert): Moved to fold-const.h.
7343         (fold_convert_loc): Moved to fold-const.h.
7344         (fold_convertible_p): Moved to fold-const.h.
7345         (fold_defer_overflow_warnings): Moved to fold-const.h.
7346         (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
7347         (fold_fma): Moved to fold-const.h.
7348         (fold_ignored_result): Moved to fold-const.h.
7349         (fold_indirect_ref): Moved to fold-const.h.
7350         (fold_indirect_ref_1): Moved to fold-const.h.
7351         (fold_indirect_ref_loc): Moved to fold-const.h.
7352         (fold_read_from_constant_string): Moved to fold-const.h.
7353         (fold_real_zero_addition_p): Moved to fold-const.h.
7354         (fold_single_bit_test): Moved to fold-const.h.
7355         (fold_strip_sign_ops): Moved to fold-const.h.
7356         (fold_ternary): Moved to fold-const.h.
7357         (fold_ternary_loc): Moved to fold-const.h.
7358         (fold_unary): Moved to tree-data-ref.h.
7359         (fold_unary_ignore_overflow): Moved to fold-const.h.
7360         (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
7361         (fold_unary_loc): Moved to fold-const.h.
7362         (fold_unary_to_constant): Moved to fold-const.h.
7363         (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
7364         (fold_undefer_overflow_warnings): Moved to fold-const.h.
7365         (folding_initializer): Moved to fold-const.h.
7366         (free_temp_slots): Moved to function.h.
7367         (generate_setjmp_warnings): Moved to function.h.
7368         (get_attribute_name): Moved to attribs.h.
7369         (get_identifier): Moved to stringpool.h.
7370         (get_identifier_with_length): Moved to stringpool.h.
7371         (get_inner_reference): Moved to tree.h.
7372         (gimple_alloca_call_p): Moved to calls.h.
7373         (gimplify_parameters): Moved to function.h.
7374         (highest_pow2_factor): Moved to expr.h.
7375         (indent_to): Moved to print-tree.h.
7376         (init_attributes): Moved to attribs.h.
7377         (init_dummy_function_start): Moved to function.h.
7378         (init_function_start): Moved to function.h.
7379         (init_inline_once): Moved to tree-inline.h.
7380         (init_object_sizes): Moved to tree-object-size.h.
7381         (init_temp_slots): Moved to function.h.
7382         (init_tree_optimization_optabs): Moved to optabs.h.
7383         (initialize_sizetypes): Moved to stor-layout.h.
7384         (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
7385         (initializer_constant_valid_p): Moved to varasm.h.
7386         (int_const_binop): Moved to fold-const.h.
7387         (internal_reference_types): Moved to stor-layout.h.
7388         (invert_tree_comparison): Moved to fold-const.h.
7389         (invert_truthvalue): Moved to fold-const.h.
7390         (invert_truthvalue_loc): Moved to fold-const.h.
7391         (is_tm_ending_fndecl): Moved to trans-mem.h.
7392         (is_tm_may_cancel_outer): Moved to trans-mem.h.
7393         (is_tm_pure): Moved to trans-mem.h.
7394         (is_tm_safe): Moved to trans-mem.h.
7395         (layout_decl): Moved to stor-layout.h.
7396         (layout_type): Moved to stor-layout.h.
7397         (lookup_attribute_spec): Moved to attribs.h.
7398         (make_accum_type): Moved to stor-layout.h.
7399         (make_decl_one_only): Moved to varasm.h.
7400         (make_decl_rtl): Moved to tree.h.
7401         (make_decl_rtl_for_debug): Moved to varasm.h.
7402         (make_fract_type): Moved to stor-layout.h.
7403         (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
7404         (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
7405         (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
7406         (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
7407         (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
7408         (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
7409         (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
7410         (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
7411         (make_range): Moved to fold-const.h.
7412         (make_range_step): Moved to fold-const.h.
7413         (make_sat_signed_accum_type): Moved to stor-layout.h.
7414         (make_sat_signed_fract_type): Moved to stor-layout.h.
7415         (make_sat_unsigned_accum_type): Moved to stor-layout.h.
7416         (make_sat_unsigned_fract_type): Moved to stor-layout.h.
7417         (make_signed_accum_type): Moved to stor-layout.h.
7418         (make_signed_fract_type): Moved to stor-layout.h.
7419         (make_signed_type): Moved to stor-layout.h.
7420         (make_unsigned_accum_type): Moved to stor-layout.h.
7421         (make_unsigned_fract_type): Moved to stor-layout.h.
7422         (make_unsigned_type): Moved to stor-layout.h.
7423         (mark_decl_referenced): Moved to varasm.h.
7424         (mark_referenced): Moved to varasm.h.
7425         (may_negate_without_overflow_p): Moved to fold-const.h.
7426         (maybe_get_identifier): Moved to stringpool.h.
7427         (merge_ranges): Moved to fold-const.h.
7428         (merge_weak): Moved to varasm.h.
7429         (mode_for_size_tree): Moved to stor-layout.h.
7430         (multiple_of_p): Moved to fold-const.h.
7431         (must_pass_in_stack_var_size): Moved to calls.h.
7432         (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
7433         (native_encode_expr): Moved to fold-const.h.
7434         (native_interpret_expr): Moved to fold-const.h.
7435         (non_lvalue): Moved to fold-const.h.
7436         (non_lvalue_loc): Moved to fold-const.h.
7437         (normalize_offset): Moved to stor-layout.h.
7438         (normalize_rli): Moved to stor-layout.h.
7439         (notice_global_symbol): Moved to varasm.h.
7440         (omit_one_operand): Moved to fold-const.h.
7441         (omit_one_operand_loc): Moved to fold-const.h.
7442         (omit_two_operands): Moved to fold-const.h.
7443         (omit_two_operands_loc): Moved to fold-const.h.
7444         (operand_equal_p): Moved to tree-data-ref.h.
7445         (parse_input_constraint): Moved to stmt.h.
7446         (parse_output_constraint): Moved to stmt.h.
7447         (place_field): Moved to stor-layout.h.
7448         (pop_function_context): Moved to function.h.
7449         (pop_temp_slots): Moved to function.h.
7450         (pos_from_bit): Moved to stor-layout.h.
7451         (preserve_temp_slots): Moved to function.h.
7452         (print_node): Moved to print-tree.h.
7453         (print_node_brief): Moved to print-tree.h.
7454         (print_rtl): Moved to rtl.h.
7455         (process_pending_assemble_externals): Moved to varasm.h.
7456         (ptr_difference_const): Moved to fold-const.h.
7457         (push_function_context): Moved to function.h.
7458         (push_struct_function): Moved to function.h.
7459         (push_temp_slots): Moved to function.h.
7460         (record_tm_replacement): Moved to trans-mem.h.
7461         (relayout_decl): Moved to stor-layout.h.
7462         (resolve_asm_operand_names): Moved to stmt.h.
7463         (resolve_unique_section): Moved to varasm.h.
7464         (rli_size_so_far): Moved to stor-layout.h.
7465         (rli_size_unit_so_far): Moved to stor-layout.h.
7466         (round_down): Moved to fold-const.h.
7467         (round_down_loc): Moved to fold-const.h.
7468         (round_up): Moved to fold-const.h.
7469         (round_up_loc): Moved to fold-const.h.
7470         (set_decl_incoming_rtl): Moved to emit-rtl.h.
7471         (set_decl_rtl): Moved to tree.h.
7472         (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
7473         (set_user_assembler_name): Moved to varasm.h.
7474         (setjmp_call_p): Moved to calls.h.
7475         (size_binop): Moved to fold-const.h.
7476         (size_binop_loc): Moved to fold-const.h.
7477         (size_diffop): Moved to fold-const.h.
7478         (size_diffop_loc): Moved to fold-const.h.
7479         (size_int_kind): Moved to fold-const.h.
7480         (stack_protect_epilogue): Moved to function.h.
7481         (start_record_layout): Moved to stor-layout.h.
7482         (supports_one_only): Moved to varasm.h.
7483         (swap_tree_comparison): Moved to fold-const.h.
7484         (tm_malloc_replacement): Moved to trans-mem.h.
7485         (tree build_fold_addr_expr_loc): Moved to fold-const.h.
7486         (tree build_invariant_address): Moved to fold-const.h.
7487         (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
7488         (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
7489         (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
7490         (tree_expr_nonnegative_p): Moved to fold-const.h.
7491         (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
7492         (tree_output_constant_def): Moved to varasm.h.
7493         (tree_overlaps_hard_reg_set): Moved to stmt.h.
7494         (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
7495         (tree_single_nonzero_warnv_p): Moved to fold-const.h.
7496         (tree_swap_operands_p): Moved to fold-const.h.
7497         (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
7498         (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
7499         (update_alignment_for_field): Moved to stor-layout.h.
7500         (use_register_for_decl): Moved to function.h.
7501         (variable_size): Moved to rtl.h.
7502         (vector_type_mode): Moved to stor-layout.h.
7503         * cgraph.h: Corresponding changes.
7504         * emit-rtl.h: Corresponding changes.
7505         * expr.h: Corresponding changes.
7506         * function.h: Corresponding changes.
7507         * optabs.h: Corresponding changes.
7508         * trans-mem.h: Corresponding changes.
7509         Protect against multiple inclusion.
7510         * tree-inline.h: Corresponding changes.
7511         * tree-iterator.h: Corresponding changes.
7512         * tree-dfa.h: Include expr.h.
7513         * tree-ssanames.h: Include stringpool.h.
7514         * attribs.h: New file.
7515         * calls.h: New file.
7516         * fold-const.h: New file.
7517         * gcc-symtab.h: New file.
7518         * print-rtl.h: New file.
7519         * print-tree.h: New file.
7520         * stmt.h: New file.
7521         * stor-layout.h: New file.
7522         * strinpool.h: New file.
7523         * tree-nested.h: New file
7524         * tree-object-size.h: New file.
7525         * varasm.h: New file.
7527 2013-11-14  Diego Novillo  <dnovillo@google.com>
7529         * alias.c: Include varasm.h.
7530         Include expr.h.
7531         * asan.c: Include calls.h.
7532         Include stor-layout.h.
7533         Include varasm.h.
7534         * attribs.c: Include stringpool.h.
7535         Include attribs.h.
7536         Include stor-layout.h.
7537         * builtins.c: Include stringpool.h.
7538         Include stor-layout.h.
7539         Include calls.h.
7540         Include varasm.h.
7541         Include tree-object-size.h.
7542         * calls.c: Include stor-layout.h.
7543         Include varasm.h.
7544         Include stringpool.h.
7545         Include attribs.h.
7546         * cfgexpand.c: Include stringpool.h.
7547         Include varasm.h.
7548         Include stor-layout.h.
7549         Include stmt.h.
7550         Include print-tree.h.
7551         * cgraph.c: Include varasm.h.
7552         Include calls.h.
7553         Include print-tree.h.
7554         * cgraphclones.c: Include stringpool.h.
7555         Include function.h.
7556         Include emit-rtl.h.
7557         Move inclusion of rtl.h earlier in the file.
7558         * cgraphunit.c: Include varasm.h.
7559         Include stor-layout.h.
7560         Include stringpool.h.
7561         * cilk-common.c: Include stringpool.h.
7562         Include stor-layout.h.
7563         * combine.c: Include stor-layout.h.
7564         * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
7565         Include stringpool.h.
7566         Include calls.h.
7567         * config/aarch64/aarch64.c: Include stringpool.h.
7568         Include stor-layout.h.
7569         Include calls.h.
7570         Include varasm.h.
7571         * config/alpha/alpha.c: Include stor-layout.h.
7572         Include calls.h.
7573         Include varasm.h.
7574         * config/arc/arc.c: Include varasm.h.
7575         Include stor-layout.h.
7576         Include stringpool.h.
7577         Include calls.h.
7578         * config/arm/arm.c: Include stringpool.h.
7579         Include stor-layout.h.
7580         Include calls.h.
7581         Include varasm.h.
7582         * config/avr/avr-c.c: Include stor-layout.h.
7583         * config/avr/avr-log.c: Include print-tree.h.
7584         * config/avr/avr.c: Include print-tree.h.
7585         Include calls.h.
7586         Include stor-layout.h.
7587         Include stringpool.h.
7588         * config/bfin/bfin.c: Include varasm.h.
7589         Include calls.h.
7590         * config/c6x/c6x.c: Include stor-layout.h.
7591         Include varasm.h.
7592         Include calls.h.
7593         Include stringpool.h.
7594         * config/cr16/cr16.c: Include stor-layout.h.
7595         Include calls.h.
7596         * config/cris/cris.c: Include varasm.h.
7597         Include stor-layout.h.
7598         Include calls.h.
7599         Include stmt.h.
7600         * config/darwin.c: Include stringpool.h.
7601         Include varasm.h.
7602         Include stor-layout.h.
7603         * config/epiphany/epiphany.c: Include stor-layout.h.
7604         Include varasm.h.
7605         Include calls.h.
7606         Include stringpool.h.
7607         * config/fr30/fr30.c: Include stor-layout.h.
7608         Include varasm.h.
7609         * config/frv/frv.c: Include varasm.h.
7610         Include stor-layout.h.
7611         Include stringpool.h.
7612         * config/h8300/h8300.c: Include stor-layout.h.
7613         Include varasm.h.
7614         Include calls.h.
7615         Include stringpool.h.
7616         * config/i386/i386.c: Include stringpool.h.
7617         Include attribs.h.
7618         Include calls.h.
7619         Include stor-layout.h.
7620         Include varasm.h.
7621         * config/i386/winnt-cxx.c: Include stringpool.h.
7622         Include attribs.h.
7623         * config/i386/winnt.c: Include stringpool.h.
7624         Include varasm.h.
7625         * config/ia64/ia64-c.c: Include stringpool.h.
7626         * config/ia64/ia64.c: Include stringpool.h.
7627         Include stor-layout.h.
7628         Include calls.h.
7629         Include varasm.h.
7630         * config/iq2000/iq2000.c: Include stor-layout.h.
7631         Include calls.h.
7632         Include varasm.h.
7633         * config/lm32/lm32.c: Include calls.h.
7634         * config/m32c/m32c.c: Include stor-layout.h.
7635         Include varasm.h.
7636         Include calls.h.
7637         * config/m32r/m32r.c: Include stor-layout.h.
7638         Include varasm.h.
7639         Include stringpool.h.
7640         Include calls.h.
7641         * config/m68k/m68k.c: Include calls.h.
7642         Include stor-layout.h.
7643         Include varasm.h.
7644         * config/mcore/mcore.c: Include stor-layout.h.
7645         Include varasm.h.
7646         Include stringpool.h.
7647         Include calls.h.
7648         * config/mep/mep.c: Include varasm.h.
7649         Include calls.h.
7650         Include stringpool.h.
7651         Include stor-layout.h.
7652         * config/microblaze/microblaze.c: Include varasm.h.
7653         Include stor-layout.h.
7654         Include calls.h.
7655         * config/mips/mips.c: Include varasm.h.
7656         Include stringpool.h.
7657         Include stor-layout.h.
7658         Include calls.h.
7659         * config/mmix/mmix.c: Include varasm.h.
7660         Include stor-layout.h.
7661         Include calls.h.
7662         * config/mn10300/mn10300.c: Include stor-layout.h.
7663         Include varasm.h.
7664         Include calls.h.
7665         * config/moxie/moxie.c: Include stor-layout.h.
7666         Include varasm.h.
7667         Include calls.h.
7668         * config/msp430/msp430.c: Include stor-layout.h.
7669         Include calls.h.
7670         * config/nds32/nds32.c: Include stor-layout.h.
7671         Include varasm.h.
7672         Include calls.h.
7673         * config/pa/pa.c: Include stor-layout.h.
7674         Include stringpool.h.
7675         Include varasm.h.
7676         Include calls.h.
7677         * config/pdp11/pdp11.c: Include stor-layout.h.
7678         Include varasm.h.
7679         Include calls.h.
7680         * config/picochip/picochip.c: Include calls.h.
7681         Include stor-layout.h.
7682         Include stringpool.h.
7683         Include varasm.h.
7684         * config/rl78/rl78.c: Include varasm.h.
7685         Include stor-layout.h.
7686         Include calls.h.
7687         * config/rs6000/rs6000-c.c: Include stor-layout.h.
7688         Include stringpool.h.
7689         * config/rs6000/rs6000.c: Include stringpool.h.
7690         Include stor-layout.h.
7691         Include calls.h.
7692         Include print-tree.h.
7693         Include varasm.h.
7694         * config/rx/rx.c: Include varasm.h.
7695         Include stor-layout.h.
7696         Include calls.h.
7697         * config/s390/s390.c: Include print-tree.h.
7698         Include stringpool.h.
7699         Include stor-layout.h.
7700         Include varasm.h.
7701         Include calls.h.
7702         * config/score/score.c: Include stringpool.h.
7703         Include calls.h.
7704         Include varasm.h.
7705         Include stor-layout.h.
7706         * config/sh/sh-c.c: Include stringpool.h.
7707         Include attribs.h.h.
7708         * config/sh/sh.c: Include stringpool.h.
7709         Include stor-layout.h.
7710         Include calls.h.
7711         Include varasm.h.
7712         * config/sol2-c.c: Include stringpool.h.
7713         Include attribs.h.
7714         * config/sol2-cxx.c: Include stringpool.h.
7715         * config/sol2.c: Include stringpool.h.
7716         Include varasm.h.
7717         * config/sparc/sparc.c: Include stringpool.h.
7718         Include stor-layout.h.
7719         Include calls.h.
7720         Include varasm.h.
7721         * config/spu/spu-c.c: Include stringpool.h.
7722         * config/spu/spu.c: Include stringpool.h.
7723         Include stor-layout.h.
7724         Include calls.h.
7725         Include varasm.h.
7726         * config/stormy16/stormy16.c: Include stringpool.h.
7727         Include stor-layout.h.
7728         Include varasm.h.
7729         Include calls.h.
7730         * config/tilegx/tilegx.c: Include stringpool.h.
7731         Include stor-layout.h.
7732         Include varasm.h.
7733         Include calls.h.
7734         * config/tilepro/tilepro.c: Include stringpool.h.
7735         Include stor-layout.h.
7736         Include varasm.h.
7737         Include calls.h.
7738         * config/v850/v850-c.c: Include stringpool.h.
7739         Include attribs.h.
7740         * config/v850/v850.c: Include stringpool.h.
7741         Include stor-layout.h.
7742         Include varasm.h.
7743         Include calls.h.
7744         * config/vax/vax.c: Include calls.h.
7745         Include varasm.h.
7746         * config/vms/vms.c: Include stringpool.h.
7747         * config/vxworks.c: Include stringpool.h.
7748         * config/xtensa/xtensa.c: Include stringpool.h.
7749         Include stor-layout.h.
7750         Include calls.h.
7751         Include varasm.h.
7752         * convert.c: Include stor-layout.h.
7753         * coverage.c: Include stringpool.h.
7754         Include stor-layout.h.
7755         * dbxout.c: Include varasm.h.
7756         Include stor-layout.h.
7757         * dojump.c: Include stor-layout.h.
7758         * dse.c: Include stor-layout.h.
7759         * dwarf2asm.c: Include stringpool.h.
7760         Include varasm.h.
7761         * dwarf2cfi.c: Include stor-layout.h.
7762         * dwarf2out.c: Include rtl.h.
7763         Include stringpool.h.
7764         Include stor-layout.h.
7765         Include varasm.h.
7766         Include function.h.
7767         Include emit-rtl.h.
7768         Move inclusion of rtl.h earlier in the file.
7769         * emit-rtl.c: Include varasm.h.
7770         * except.c: Include stringpool.h.
7771         Include stor-layout.h.
7772         * explow.c: Include stor-layout.h.
7773         * expmed.c: Include stor-layout.h.
7774         * expr.c: Include stringpool.h.
7775         Include stor-layout.h.
7776         Include attribs.h.
7777         Include varasm.h.
7778         * final.c: Include varasm.h.
7779         * fold-const.c: Include stor-layout.h.
7780         Include calls.h.
7781         Include tree-iterator.h.
7782         * function.c: Include stor-layout.h.
7783         Include varasm.h.
7784         Include stringpool.h.
7785         * genattrtab.c (write_header): Emit includes for varasm.h,
7786         stor-layout.h and calls.h.
7787         * genautomata.c (main): Likewise.
7788         * genemit.c: Likewise.
7789         * genopinit.c: Likewise.
7790         * genoutput.c (output_prologue): Likewise.
7791         * genpeep.c: Likewise.
7792         * genpreds.c (write_insn_preds_c): Likewise.
7793         * gengtype.c (open_base_files): Add stringpool.h.
7794         * gimple-expr.c: Include stringpool.h.
7795         Include stor-layout.h.
7796         * gimple-fold.c: Include stringpool.h.
7797         Include expr.h.
7798         Include stmt.h.
7799         Include stor-layout.h.
7800         * gimple-low.c: Include tree-nested.h.
7801         Include calls.h.
7802         * gimple-pretty-print.c: Include stringpool.h.
7803         * gimple-ssa-strength-reduction.c: Include stor-layout.h.
7804         Include expr.h.
7805         * gimple-walk.c: Include stmt.h.
7806         * gimple.c: Include calls.h.
7807         Include stmt.h.
7808         Include stor-layout.h.
7809         * gimplify.c: Include stringpool.h.
7810         Include calls.h.
7811         Include varasm.h.
7812         Include stor-layout.h.
7813         Include stmt.h.
7814         Include print-tree.h.
7815         Include expr.h.
7816         * gimplify-me.c: Include stmt.h
7817         Include stor-layout.h
7818         * internal-fn.c: Include stor-layout.h.
7819         * ipa-devirt.c: Include print-tree.h.
7820         Include calls.h.
7821         * ipa-inline-analysis.c: Include stor-layout.h.
7822         Include stringpool.h.
7823         Include print-tree.h.
7824         * ipa-inline.c: Include trans-mem.h.
7825         Include calls.h.
7826         * ipa-prop.c: Include expr.h.
7827         Include stor-layout.h.
7828         Include print-tree.h.
7829         * ipa-pure-const.c: Include print-tree.h.
7830         Include calls.h.
7831         * ipa-reference.c: Include calls.h.
7832         * ipa-split.c: Include stringpool.h.
7833         Include expr.h.
7834         Include calls.h.
7835         * ipa.c: Include calls.h.
7836         Include stringpool.h.
7837         * langhooks.c: Include stringpool.h.
7838         Include attribs.h.
7839         * lto-cgraph.c: Include stringpool.h.
7840         * lto-streamer-in.c: Include stringpool.h.
7841         * lto-streamer-out.c: Include stor-layout.h.
7842         Include stringpool.h.
7843         * omp-low.c: Include stringpool.h.
7844         Include stor-layout.h.
7845         Include expr.h.
7846         * optabs.c: Include stor-layout.h.
7847         Include stringpool.h.
7848         Include varasm.h.
7849         * passes.c: Include varasm.h.
7850         * predict.c: Include calls.h.
7851         * print-rtl.c: Include print-tree.h.
7852         * print-tree.c: Include varasm.h.
7853         Include print-rtl.h.
7854         Include stor-layout.h.
7855         * realmpfr.c: Include stor-layout.h.
7856         * reg-stack.c: Include varasm.h.
7857         * sdbout.c: Include varasm.h.
7858         Include stor-layout.h.
7859         * simplify-rtx.c: Include varasm.h.
7860         * stmt.c: Include varasm.h.
7861         Include stor-layout.h.
7862         * stor-layout.c: Include stor-layout.h.
7863         Include stringpool.h.
7864         Include varasm.h.
7865         Include print-tree.h.
7866         * symtab.c: Include rtl.h.
7867         Include print-tree.h.
7868         Include varasm.h.
7869         Include function.h.
7870         Include emit-rtl.h.
7871         * targhooks.c: Include stor-layout.h.
7872         Include varasm.h.
7873         * toplev.c: Include varasm.h.
7874         Include tree-inline.h.
7875         * trans-mem.c: Include calls.h.
7876         Include function.h.
7877         Include rtl.h.
7878         Include emit-rtl.h.
7879         * tree-affine.c: Include expr.h.
7880         * tree-browser.c: Include print-tree.h.
7881         * tree-call-cdce.c: Include stor-layout.h.
7882         * tree-cfg.c: Include trans-mem.h.
7883         Include stor-layout.h.
7884         Include print-tree.h.
7885         * tree-complex.c: Include stor-layout.h.
7886         * tree-data-ref.c: Include expr.h.
7887         * tree-dfa.c: Include stor-layout.h.
7888         * tree-eh.c: Include expr.h.
7889         Include calls.h.
7890         * tree-emutls.c: Include stor-layout.h.
7891         Include varasm.h.
7892         * tree-if-conv.c: Include stor-layout.h.
7893         * tree-inline.c: Include stor-layout.h.
7894         Include calls.h.
7895         * tree-loop-distribution.c: Include stor-layout.h.
7896         * tree-nested.c: Include stringpool.h.
7897         Include stor-layout.h.
7898         * tree-object-size.c: Include tree-object-size.h.
7899         * tree-outof-ssa.c: Include stor-layout.h.
7900         * tree-parloops.c: Include stor-layout.h.
7901         Include tree-nested.h.
7902         * tree-pretty-print.c: Include stor-layout.h.
7903         Include expr.h.
7904         * tree-profile.c: Include varasm.h.
7905         Include tree-nested.h.
7906         * tree-scalar-evolution.c: Include expr.h.
7907         * tree-sra.c: Include stor-layout.h.
7908         * tree-ssa-address.c: Include stor-layout.h.
7909         * tree-ssa-ccp.c: Include stor-layout.h.
7910         * tree-ssa-dce.c: Include calls.h.
7911         * tree-ssa-dom.c: Include stor-layout.h.
7912         * tree-ssa-forwprop.c: Include stor-layout.h.
7913         * tree-ssa-ifcombine.c: Include stor-layout.h.
7914         * tree-ssa-loop-ivopts.c: Include stor-layout.h.
7915         * tree-ssa-loop-niter.c: Include calls.h.
7916         Include expr.h.
7917         * tree-ssa-loop-prefetch.c: Include stor-layout.h.
7918         * tree-ssa-math-opts.c: Include stor-layout.h.
7919         * tree-ssa-operands.c: Include stmt.h.
7920         Include print-tree.h.
7921         * tree-ssa-phiopt.c: Include stor-layout.h.
7922         * tree-ssa-reassoc.c: Include stor-layout.h.
7923         * tree-ssa-sccvn.c: Include stor-layout.h.
7924         * tree-ssa-sink.c: Include stor-layout.h.
7925         * tree-ssa-strlen.c: Include stor-layout.h.
7926         * tree-ssa-structalias.c: Include stor-layout.h.
7927         Include stmt.h.
7928         * tree-ssa-tail-merge.c: Include stor-layout.h.
7929         Include trans-mem.h.
7930         * tree-ssa-uncprop.c: Include stor-layout.h.
7931         * tree-ssa.c: Include stor-layout.h.
7932         * tree-ssanames.c: Include stor-layout.h.
7933         * tree-streamer-in.c: Include stringpool.h.
7934         * tree-streamer-out.c: Include stor-layout.h.
7935         * tree-switch-conversion.c: Include varasm.h.
7936         Include stor-layout.h.
7937         * tree-tailcall.c: Include stor-layout.h.
7938         * tree-vect-data-refs.c: Include stor-layout.h.
7939         * tree-vect-generic.c: Include stor-layout.h.
7940         * tree-vect-loop.c: Include stor-layout.h.
7941         * tree-vect-patterns.c: Include stor-layout.h.
7942         * tree-vect-slp.c: Include stor-layout.h.
7943         * tree-vect-stmts.c: Include stor-layout.h.
7944         * tree-vectorizer.c: Include stor-layout.h.
7945         * tree-vrp.c: Include stor-layout.h.
7946         Include calls.h.
7947         * tree.c: Include stor-layout.h.
7948         Include calls.h.
7949         Include attribs.h.
7950         Include varasm.h.
7951         * tsan.c: Include expr.h.
7952         * ubsan.c: Include stor-layout.h.
7953         Include stringpool.h.
7954         * value-prof.c: Include tree-nested.h.
7955         Include calls.h.
7956         * var-tracking.c: Include varasm.h.
7957         Include stor-layout.h.
7958         * varasm.c: Include stor-layout.h.
7959         Include stringpool.h.
7960         Include gcc-symtab.h.
7961         Include varasm.h.
7962         * varpool.c: Include varasm.h.
7963         * vmsdbgout.c: Include varasm.h.
7964         * xcoffout.c: Include varasm.h.
7966 2013-11-14  Joern Rennecke  <joern.rennecke@embecosm.com>
7968         * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
7969         use (.&-4) idiom.
7971 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7973         * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
7975 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7976             Alan Modra  <amodra@gmail.com>
7978         * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
7979         (RS6000_SAVE_TOC): Remove.
7980         (RS6000_TOC_SAVE_SLOT): New macro.
7981         * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
7982         (rs6000_parm_start): Use it.
7983         (rs6000_function_arg_advance_1): Likewise.
7984         (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
7985         (rs6000_emit_epilogue): Likewise.
7986         (rs6000_call_aix): Likewise.
7987         (rs6000_output_function_prologue): Do not save/restore r11
7988         around calling _mcount for ABI_ELFv2.
7990 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7991             Alan Modra  <amodra@gmail.com>
7993         * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
7994         Add prototype.
7995         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
7996         (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
7997         * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
7998         (rs6000_function_parms_need_stack): Likewise.
7999         (rs6000_reg_parm_stack_space): Likewise.
8000         (rs6000_function_arg): Do not replace BLKmode by Pmode when
8001         returning a register argument.
8003 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8004             Michael Gschwind  <mkg@us.ibm.com>
8006         * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
8007         (ALTIVEC_ARG_MAX_RETURN): Likewise.
8008         (FUNCTION_VALUE_REGNO_P): Use them.
8009         * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
8010         (rs6000_return_in_msb): New function.
8011         (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
8012         Handle aggregates of up to 16 bytes for ELFv2.
8013         (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
8015 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8016             Michael Gschwind  <mkg@us.ibm.com>
8018         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
8019         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
8020         (rs6000_discover_homogeneous_aggregate): Likewise.
8021         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
8022         (rs6000_function_arg_advance_1): Likewise.
8023         (rs6000_function_arg): Likewise.
8024         (rs6000_arg_partial_bytes): Likewise.
8025         (rs6000_psave_function_arg): Handle BLKmode arguments.
8027 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8028             Michael Gschwind  <mkg@us.ibm.com>
8030         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
8031         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
8032         (rs6000_discover_homogeneous_aggregate): Likewise.
8033         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
8034         (rs6000_function_arg_advance_1): Likewise.
8035         (rs6000_function_arg): Likewise.
8036         (rs6000_arg_partial_bytes): Likewise.
8037         (rs6000_psave_function_arg): Handle BLKmode arguments.
8039 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8041         * config/rs6000/rs6000.c (machine_function): New member
8042         r2_setup_needed.
8043         (rs6000_emit_prologue): Set r2_setup_needed if necessary.
8044         (rs6000_output_mi_thunk): Set r2_setup_needed.
8045         (rs6000_output_function_prologue): Output global entry point
8046         prologue and local entry point marker if needed for ABI_ELFv2.
8047         Output -mprofile-kernel code here.
8048         (output_function_profiler): Do not output -mprofile-kernel
8049         code here; moved to rs6000_output_function_prologue.
8050         (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
8052         (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
8053         (rs6000_output_function_entry): Likewise.
8054         (rs6000_assemble_integer): Likewise.
8055         (rs6000_elf_encode_section_info): Likewise.
8056         (rs6000_elf_declare_function_name): Do not create dot symbols
8057         or .opd section for ABI_ELFv2.
8059         (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
8060         (rs6000_trampoline_init): Likewise.
8061         (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
8063         (rs6000_call_aix): Handle ELFv2 indirect calls.  Do not check
8064         for function descriptors in ABI_ELFv2.
8066         * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
8067         on ABI_AIX only, not ABI_ELFv2.
8068         ("*call_value_indirect_aix<mode>"): Likewise.
8069         ("*call_indirect_elfv2<mode>"): New pattern.
8070         ("*call_value_indirect_elfv2<mode>"): Likewise.
8072         * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
8073         check for function descriptors in ABI_ELFv2.
8074         ("current_file_function_operand"): Likewise.
8076         * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
8077         (toc): Undefine.
8078         (FUNC_NAME): Define ELFv2 variant.
8079         (JUMP_TARGET): Likewise.
8080         (FUNC_START): Likewise.
8081         (HIDDEN_FUNC): Likewise.
8082         (FUNC_END): Likeiwse.
8084 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8086         * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
8087         and --with-abi=elfv2.
8088         * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
8089         * config/rs6000/rs6000.opt (mabi=elfv1): New option.
8090         (mabi=elfv2): Likewise.
8091         * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
8092         * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
8093         if !RS6000_BI_ARCH.
8094         (ELFv2_ABI_CHECK): New macro.
8095         (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
8096         rs6000_current_abi to ABI_AIX or ABI_ELFv2.
8097         (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
8098         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
8099         _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
8101         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
8102         (debug_stack_info): Likewise.
8103         (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
8104         (rs6000_legitimize_tls_address): Likewise.
8105         (rs6000_conditional_register_usage): Likewise.
8106         (rs6000_emit_move): Likewise.
8107         (init_cumulative_args): Likewise.
8108         (rs6000_function_arg_advance_1): Likewise.
8109         (rs6000_function_arg): Likewise.
8110         (rs6000_arg_partial_bytes): Likewise.
8111         (rs6000_output_function_entry): Likewise.
8112         (rs6000_assemble_integer): Likewise.
8113         (rs6000_savres_strategy): Likewise.
8114         (rs6000_stack_info): Likewise.
8115         (rs6000_function_ok_for_sibcall): Likewise.
8116         (rs6000_emit_load_toc_table): Likewise.
8117         (rs6000_savres_routine_name): Likewise.
8118         (ptr_regno_for_savres): Likewise.
8119         (rs6000_emit_prologue): Likewise.
8120         (rs6000_emit_epilogue): Likewise.
8121         (rs6000_output_function_epilogue): Likewise.
8122         (output_profile_hook): Likewise.
8123         (output_function_profiler): Likewise.
8124         (rs6000_trampoline_size): Likewise.
8125         (rs6000_trampoline_init): Likewise.
8126         (rs6000_elf_output_toc_section_asm_op): Likewise.
8127         (rs6000_elf_encode_section_info): Likewise.
8128         (rs6000_elf_reloc_rw_mask): Likewise.
8129         (rs6000_elf_declare_function_name): Likewise.
8130         (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
8131         except that rs6000_compat_align_parm is always assumed false.
8132         (rs6000_gimplify_va_arg): Likewise.
8133         (rs6000_call_aix): Update comment.
8134         (rs6000_sibcall_aix): Likewise.
8135         * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
8136         Treat ABI_ELFv2 the same as ABI_AIX.
8137         ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
8138         ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
8139         ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
8140         ("load_toc_aix_si"): Likewise.
8141         ("load_toc_aix_di"): Likewise.
8142         ("call"): Likewise.
8143         ("call_value"): Likewise.
8144         ("*call_local_aix<mode>"): Likewise.
8145         ("*call_value_local_aix<mode>"): Likewise.
8146         ("*call_nonlocal_aix<mode>"): Likewise.
8147         ("*call_value_nonlocal_aix<mode>"): Likewise.
8148         ("*call_indirect_aix<mode>"): Likewise.
8149         ("*call_value_indirect_aix<mode>"): Likewise.
8150         ("sibcall"): Likewise.
8151         ("sibcall_value"): Likewise.
8152         ("*sibcall_aix<mode>"): Likewise.
8153         ("*sibcall_value_aix<mode>"): Likewise.
8154         * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
8155         ("current_file_function_operand"): Likewise.
8157 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8159         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
8160         by making use of the fact that for vector / floating point arguments
8161         passed both in VRs/FPRs and in the fixed parameter area, the partial
8162         bytes mechanism is in fact not used.
8164 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8166         * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
8167         (rs6000_finish_function_arg): Likewise.
8168         (rs6000_function_arg): Use rs6000_psave_function_arg and
8169         rs6000_finish_function_arg to handle both vector and floating
8170         point arguments that are also passed in GPRs / the stack.
8172 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8174         * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
8175         (USE_ALTIVEC_FOR_ARG_P): Likewise.
8176         (rs6000_darwin64_record_arg_advance_recurse): Update uses.
8177         (rs6000_function_arg_advance_1):Likewise.
8178         (rs6000_darwin64_record_arg_recurse): Likewise.
8179         (rs6000_function_arg): Likewise.
8180         (rs6000_arg_partial_bytes): Likewise.
8182 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8184         * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
8185         "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
8186         (rs6000_savres_strategy): Likewise.
8187         (rs6000_return_addr): Likewise.
8188         (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
8189         testing for ABI_V4 (since ABI_DARWIN is impossible here).
8190         (rs6000_emit_prologue): Likewise.
8191         (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
8192         (rs6000_elf_declare_function_name): Remove duplicated test.
8193         * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
8194         for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
8195         ("load_toc_v4_PIC_1_normal"): Likewise.
8196         ("load_toc_v4_PIC_1_476"): Likewise.
8197         ("load_toc_v4_PIC_1b"): Likewise.
8198         ("load_toc_v4_PIC_1b_normal"): Likewise.
8199         ("load_toc_v4_PIC_1b_476"): Likewise.
8200         ("load_toc_v4_PIC_2"): Likewise.
8201         ("load_toc_v4_PIC_3b"): Likewise.
8202         ("load_toc_v4_PIC_3c"): Likewise.
8203         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
8204         (RS6000_SAVE_AREA): Likewise.
8205         (FP_ARG_MAX_REG): Likewise.
8206         (RETURN_ADDRESS_OFFSET): Likewise.
8207         * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
8208         of ABI_AIX.
8209         (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
8210         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
8212 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8214         * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
8215         (rs6000_call_aix): ... this.  Handle both direct and indirect calls.
8216         Create call insn directly instead of via various gen_... routines.
8217         Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
8218         (rs6000_sibcall_aix): New function.
8219         * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
8220         (TOC_SAVE_OFFSET_64BIT): Likewise.
8221         (AIX_FUNC_DESC_TOC_32BIT): Likewise.
8222         (AIX_FUNC_DESC_TOC_64BIT): Likewise.
8223         (AIX_FUNC_DESC_SC_32BIT): Likewise.
8224         (AIX_FUNC_DESC_SC_64BIT): Likewise.
8225         ("call" expander): Call rs6000_call_aix.
8226         ("call_value" expander): Likewise.
8227         ("call_indirect_aix<ptrsize>"): Replace this pattern ...
8228         ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
8229         ("*call_indirect_aix<mode>"): ... by this insn pattern.
8230         ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
8231         ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
8232         ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
8233         ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
8234         ("*call_nonlocal_aix<mode>"): ... this pattern.
8235         ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
8236         ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
8237         ("*call_local_aix<mode>"): New insn pattern.
8238         ("*call_value_local_aix<mode>"): Likewise.
8239         ("sibcall" expander): Call rs6000_sibcall_aix.
8240         ("sibcall_value" expander): Likewise.  Move earlier in file.
8241         ("*sibcall_nonlocal_aix<mode>"): Replace by ...
8242         ("*sibcall_aix<mode>"): ... this pattern.
8243         ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
8244         ("*sibcall_value_aix<mode>"): ... this pattern.
8245         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
8246         (rs6000_call_aix): Add prototype.
8247         (rs6000_sibcall_aix): Likewise.
8249 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
8251         PR sanitizer/59122
8252         * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
8253         isn't confused by the artificial decl.
8255 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8257         * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
8258         RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
8259         Instead, add USEs of all modified call-saved CR fields to the
8260         insn storing the result to the stack slot, and provide an
8261         appropriate REG_FRAME_RELATED_EXPR for that insn.
8262         * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
8263         * config/rs6000/predicates.md ("crsave_operation"): New predicate.
8265 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8266             Alan Modra  <amodra@gmail.com>
8268         * function.c (assign_parms): Use all.reg_parm_stack_space instead
8269         of re-evaluating REG_PARM_STACK_SPACE target macro.
8270         (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE.  Use it
8271         instead of evaluating target macro REG_PARM_STACK_SPACE every time.
8272         (assign_parm_find_entry_rtl): Update call.
8273         * calls.c (initialize_argument_information): Update call.
8274         (emit_library_call_value_1): Likewise.
8275         * expr.h (locate_and_pad_parm): Update prototype.
8277 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8279         * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
8280         arguments.
8282 2013-11-14  DJ Delorie  <dj@redhat.com>
8284         * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
8285         to 16 bits.
8287 2013-11-14  Jeff Law  <law@redhat.com>
8289         * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
8290         EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
8292 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
8294         * doc/invoke.texi: Update documentation for AArch64's -mcpu
8295         and -mtune options.
8297 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
8299         * config/aarch64/aarch64-cores.def (example-1): Remove.
8300         (example-2): Likewise.
8301         * config/aarch64/aarch64-tune.md: Regenerate.
8302         * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
8303         (generic_sched): Remove "large", "small".
8304         * config/aarch64/large.md: Delete.
8305         * config/aarch64/small.md: Delete.
8307 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
8309         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
8310         * config/aarch64/aarch64-tune.md: Regenerate.
8311         * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
8312         (generic_sched): "no" if we are tuning for cortexa15.
8313         * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
8314         relative path.
8316 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
8318         * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
8319         * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
8320         * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
8321         (all_cores): Use cortexa53 when tuning for "generic".
8322         (aarch64_override_options): Fix comment.
8323         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
8324         * config/aarch64/aarch64-generic.md: Delete.
8326 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
8328         * config/aarch64/aarch64.c (all_architectures): Remove "generic".
8330 2013-11-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8332         * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
8333         (generic_rtx_cost_table): Remove.
8334         (aarch64_rtx_costs): Use fields from cpu_cost_table.
8335         * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
8336         insn_extra_cost.
8337         (cpu_rtx_cost_table): Remove.
8339 2013-11-14  Julian Brown  <julian@codesourcery.com>
8340             Joey Ye  <joey.ye@arm.com>
8342         * config/arm/arm.c (arm_cortex_m_branch_cost): New.
8343         (arm_v7m_tune): New.
8344         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
8345         arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
8346         arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
8347         * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
8349 2013-11-14  Kirill Yukhin  <kirill.yukhin@intel.com>
8351         PR target/57491
8352         * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
8353         flag setting.
8355 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
8356             Uros Bizjak  <ubizjak@gmail.com>
8358         PR target/59101
8359         * config/i386/i386.md (*anddi_2): Only allow CCZmode if
8360         operands[2] satisfies_constraint_Z that might have bit 31 set.
8362 2013-11-13  Jeff Law  <law@redhat.com>
8364         PR tree-optimization/59102
8365         * gimple-ssa-isolate-paths.c
8366         (insert_trap_and_remove_trailing_statments): Ensure STMT is a
8367         gimple assignment before looking at gimple_assign_lhs.
8369 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
8371         * ira.c: Add comment about threads at the top of file.
8373 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
8375         * ira-color.c (coalesce_allocnos): Don't allocate and free
8376         sorted_copies.
8378 2013-11-14  Tom de Vries  <tom@codesourcery.com>
8380         * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
8381         equality for GIMPLE_ASSIGN.
8383 2013-11-14  Tom de Vries  <tom@codesourcery.com>
8385         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
8386         function out of ...
8387         (gimple_equal_p): ... here.
8389 2013-11-14  Tom de Vries  <tom@codesourcery.com>
8391         * trans-mem.c (is_tm_ending): New function.
8392         * gimple.h (is_tm_ending): Declare.
8393         * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
8394         BUILT_IN_TM_COMMIT.
8395         (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
8397 2013-11-14  Tom de Vries  <tom@codesourcery.com>
8399         * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
8401 2013-11-13  Andrew MacLeod  <amacleod@redhat.com>
8403         * gimple-walk.h: New File.  Relocate prototypes from gimple.h.
8404         (struct walk_stmt_info):  Relocate here from gimple.h.
8405         * gimple-iterator.h: New File.  Relocate prototypes from gimple.h.
8406         (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
8407         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
8408         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
8409         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
8410         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
8411         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
8412         * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
8413         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
8414         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
8415         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
8416         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
8417         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
8418         (struct walk_stmt_info): Move to gimple-walk.h.
8419         (gimple_seq_set_location): Move to gimple.c
8420         * gimple-walk.c: New File.
8421         (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
8422         walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
8423         walk_stmt_load_store_ops): Relocate here from gimple.c.
8424         * gimple-iterator.c: Include gimple-iterator.h.
8425         * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
8426         walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
8427         walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
8428         gimple-walk.c.
8429         (gimple_seq_set_location): Relocate from gimple.h.
8430         * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
8431         * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
8432         * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
8433         * Makefile.in (OBJS): Add gimple-walk.o
8434         * asan.c: Update Include list as required for gimple-iterator.h and
8435         gimple-walk.h.
8436         * cfgexpand.c: Likewise.
8437         * cfgloop.c: Likewise.
8438         * cfgloopmanip.c: Likewise.
8439         * cgraph.c: Likewise.
8440         * cgraphbuild.c: Likewise.
8441         * cgraphunit.c: Likewise.
8442         * gimple-fold.c: Likewise.
8443         * gimple-low.c: Likewise.
8444         * gimple-pretty-print.c: Likewise.
8445         * gimple-ssa-isolate-paths.c: Likewise.
8446         * gimple-ssa-strength-reduction.c: Likewise.
8447         * gimple-streamer-in.c: Likewise.
8448         * gimple-streamer-out.c: Likewise.
8449         * gimplify.c: Likewise.
8450         * graphite-blocking.c: Likewise.
8451         * graphite-clast-to-gimple.c: Likewise.
8452         * graphite-dependences.c: Likewise.
8453         * graphite-interchange.c: Likewise.
8454         * graphite-optimize-isl.c: Likewise.
8455         * graphite-poly.c: Likewise.
8456         * graphite-scop-detection.c: Likewise.
8457         * graphite-sese-to-poly.c: Likewise.
8458         * graphite.c: Likewise.
8459         * ipa-inline-analysis.c: Likewise.
8460         * ipa-profile.c: Likewise.
8461         * ipa-prop.c: Likewise.
8462         * ipa-pure-const.c: Likewise.
8463         * ipa-split.c: Likewise.
8464         * lto-streamer-in.c: Likewise.
8465         * lto-streamer-out.c: Likewise.
8466         * omp-low.c: Likewise.
8467         * predict.c: Likewise.
8468         * profile.c: Likewise.
8469         * sese.c: Likewise.
8470         * tracer.c: Likewise.
8471         * trans-mem.c: Likewise.
8472         * tree-call-cdce.c: Likewise.
8473         * tree-cfg.c: Likewise.
8474         * tree-cfgcleanup.c: Likewise.
8475         * tree-complex.c: Likewise.
8476         * tree-data-ref.c: Likewise.
8477         * tree-dfa.c: Likewise.
8478         * tree-eh.c: Likewise.
8479         * tree-emutls.c: Likewise.
8480         * tree-if-conv.c: Likewise.
8481         * tree-inline.c: Likewise.
8482         * tree-into-ssa.c: Likewise.
8483         * tree-loop-distribution.c: Likewise.
8484         * tree-nested.c: Likewise.
8485         * tree-nrv.c: Likewise.
8486         * tree-object-size.c: Likewise.
8487         * tree-outof-ssa.c: Likewise.
8488         * tree-parloops.c: Likewise.
8489         * tree-predcom.c: Likewise.
8490         * tree-profile.c: Likewise.
8491         * tree-scalar-evolution.c: Likewise.
8492         * tree-sra.c: Likewise.
8493         * tree-ssa-ccp.c: Likewise.
8494         * tree-ssa-coalesce.c: Likewise.
8495         * tree-ssa-copy.c: Likewise.
8496         * tree-ssa-copyrename.c: Likewise.
8497         * tree-ssa-dce.c: Likewise.
8498         * tree-ssa-dom.c: Likewise.
8499         * tree-ssa-dse.c: Likewise.
8500         * tree-ssa-forwprop.c: Likewise.
8501         * tree-ssa-ifcombine.c: Likewise.
8502         * tree-ssa-live.c: Likewise.
8503         * tree-ssa-loop-ch.c: Likewise.
8504         * tree-ssa-loop-im.c: Likewise.
8505         * tree-ssa-loop-ivcanon.c: Likewise.
8506         * tree-ssa-loop-ivopts.c: Likewise.
8507         * tree-ssa-loop-manip.c: Likewise.
8508         * tree-ssa-loop-niter.c: Likewise.
8509         * tree-ssa-loop-prefetch.c: Likewise.
8510         * tree-ssa-loop.c: Likewise.
8511         * tree-ssa-math-opts.c: Likewise.
8512         * tree-ssa-phiopt.c: Likewise.
8513         * tree-ssa-phiprop.c: Likewise.
8514         * tree-ssa-pre.c: Likewise.
8515         * tree-ssa-propagate.c: Likewise.
8516         * tree-ssa-reassoc.c: Likewise.
8517         * tree-ssa-sink.c: Likewise.
8518         * tree-ssa-strlen.c: Likewise.
8519         * tree-ssa-structalias.c: Likewise.
8520         * tree-ssa-tail-merge.c: Likewise.
8521         * tree-ssa-ter.c: Likewise.
8522         * tree-ssa-threadedge.c: Likewise.
8523         * tree-ssa-threadupdate.c: Likewise.
8524         * tree-ssa-uncprop.c: Likewise.
8525         * tree-ssa-uninit.c: Likewise.
8526         * tree-ssa.c: Likewise.
8527         * tree-stdarg.c: Likewise.
8528         * tree-switch-conversion.c: Likewise.
8529         * tree-tailcall.c: Likewise.
8530         * tree-vect-data-refs.c: Likewise.
8531         * tree-vect-generic.c: Likewise.
8532         * tree-vect-loop-manip.c: Likewise.
8533         * tree-vect-loop.c: Likewise.
8534         * tree-vect-patterns.c: Likewise.
8535         * tree-vect-slp.c: Likewise.
8536         * tree-vect-stmts.c: Likewise.
8537         * tree-vectorizer.c: Likewise.
8538         * tree-vrp.c: Likewise.
8539         * tree.c: Likewise.
8540         * tsan.c: Likewise.
8541         * value-prof.c: Likewise.
8542         * vtable-verify.c: Likewise.
8544 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
8546         * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
8547         fix.
8549 2013-11-13  Jeff Law  <law@redhat.com>
8551         * PR middle-end/59119
8552         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
8553         function, extracted from gimple_ssa_isolate_erroneous_paths.
8554         (find_explicit_erroneous_behaviour): Similarly.
8555         (insert_trap_and_remove_trailing_statements): Remove statements
8556         in reverse order.
8558 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
8560         * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
8561         Make that check explicit.  BB_HEAD cannot be NULL, remove check for it.
8562         * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
8563         looking at INSN_CODE.
8564         * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
8565         active_insn_p object, respect basic block boundaries.
8566         * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
8567         follows immediately after the jump table data label.
8568         * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
8569         * config/sh/sh.c (barrier_align): Likewise.  Rearrange code such
8570         that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
8572 2013-11-13  Teresa Johnson  <tejohnson@google.com>
8574         PR ipa/58862
8575         * predict.c (drop_profile): Error is currently too strict.
8576         (handle_missing_profiles): Pass call_count to drop_profile.
8578 2013-11-13  Teresa Johnson  <tejohnson@google.com>
8580         PR ipa/58862
8581         * ipa-inline.c (edge_badness): Fix overflow.
8583 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
8585         PR rtl-optimization/59036
8586         * ira-color.c (struct allocno_color_data): Add new members
8587         first_thread_allocno, next_thread_allocno, thread_freq.
8588         (sorted_copies): New static var.
8589         (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
8590         (allocno_thread_conflict_p, merge_threads)
8591         (form_threads_from_copies, form_threads_from_bucket)
8592         (form_threads_from_colorable_allocno, init_allocno_threads): New
8593         functions.
8594         (bucket_allocno_compare_func): Add comparison by thread frequency
8595         and threads.
8596         (add_allocno_to_ordered_bucket): Rename to
8597         add_allocno_to_ordered_colorable_bucket.  Remove parameter.
8598         (push_only_colorable): Call form_threads_from_bucket.
8599         (color_pass): Call init_allocno_threads.  Use
8600         consideration_allocno_bitmap instead of coloring_allocno_bitmap
8601         for nuillify allocno color data.
8602         (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
8603         (coalesce_allocnos): Use static sorted copies.
8605 2013-11-13  Jakub Jelinek  <jakub@redhat.com>
8607         * passes.c (execute_todo): Don't call do_per_function if
8608         flags are zero.
8609         (execute_one_ipa_transform_pass, execute_one_pass): Don't call
8610         execute_function_dump if dump_file is NULL.
8612 2013-11-13  Martin Jambor  <mjambor@suse.cz>
8614         * cgraph.c (cgraph_get_create_node): Do what
8615         cgraph_get_create_real_symbol_node used to do.
8616         (cgraph_get_create_real_symbol_node): Removed.  Changed all users to
8617         call cgraph_get_create_node.
8618         * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
8619         * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
8620         cgraph_get_create_node.  Assert we get a node.
8622 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
8624         * config/aarch64/aarch64-simd.md (vec_extract): New.
8626 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
8628         * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
8629         the constraint.
8631 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
8633         * cfgexpand.c (expand_used_vars): Allocate space for partitions based
8634         on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
8635         or if optimization is enabled.
8636         * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
8637         require that all the names based on a PARM_DECL or a RESULT_DECL that
8638         isn't ignored for debug info be coalesced.
8640 2013-11-13  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8642         * config/c6x/c6x.c: Include "gimple-expr.h".
8644 2013-11-13  Richard Biener  <rguenther@suse.de>
8646         * gimple-streamer-out.c (output_gimple_stmt): Also wrap
8647         decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
8648         * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
8649         dealing with type mismatches inside component reference chains.
8651 2013-11-13  Marc Glisse  <marc.glisse@inria.fr>
8653         PR tree-optimization/59077
8654         * ipa-pure-const.c (better_state): Update *state.
8656 2013-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
8658         * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
8659         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
8660         Update offset calculations.
8662 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
8664         PR ada/35998
8665         * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
8666         for fields.  Do not add the attribute if the size is negative.
8668 2013-11-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8670         * config/arm/arm.c: Include aarch-cost-tables.h.
8671         (generic_extra_costs): Move from here...
8672         * config/arm/aarch-cost-tables.h: ... To here.  New file.
8674 2013-11-13  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8675             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8676             Sergey Lega  <sergey.s.lega@intel.com>
8677             Anna Tikhonova  <anna.tikhonova@intel.com>
8678             Ilya Tocar  <ilya.tocar@intel.com>
8679             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8680             Ilya Verbin  <ilya.verbin@intel.com>
8681             Kirill Yukhin  <kirill.yukhin@intel.com>
8682             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8684         * config/i386/i386.c (ix86_print_operand): Support z-masking.
8685         * config/i386/predicate.md (const_0_to_4_operand): New.
8686         (const_0_to_5_operand): Ditto.
8687         * config/i386/sse.md (UNSPEC_COMPRESS): New.
8688         (UNSPEC_COMPRESS_STORE): Ditto.
8689         (UNSPEC_EXPAND): Ditto.
8690         (UNSPEC_EMBEDDED_ROUNDING): Ditto.
8691         (define_mode_attr ssescalarsize): Ditto.
8692         (avx512f_load<mode>_mask): Ditto.
8693         (avx512f_store<mode>_mask): Ditto.
8694         (avx512f_storedqu<mode>_mask): Ditto.
8695         (avx512f_vmcmp<mode>3_mask): Ditto.
8696         (avx512f_fmadd_<mode>_mask): Ditto.
8697         (avx512f_fmadd_<mode>_mask3): Ditto.
8698         (avx512f_fmsub_<mode>_mask): Ditto.
8699         (avx512f_fmsub_<mode>_mask3): Ditto.
8700         (avx512f_fnmadd_<mode>_mask): Ditto.
8701         (avx512f_fnmadd_<mode>_mask3): Ditto.
8702         (avx512f_fnmsub_<mode>_mask): Ditto.
8703         (avx512f_fnmsub_<mode>_mask3): Ditto.
8704         (avx512f_fmaddsub_<mode>_mask): Ditto.
8705         (avx512f_fmaddsub_<mode>_mask3): Ditto.
8706         (avx512f_fmsubadd_<mode>_mask): Ditto.
8707         (avx512f_fmsubadd_<mode>_mask3): Ditto.
8708         (vec_unpacku_float_lo_v16si): Ditto.
8709         (avx512f_vextract<shuffletype>32x4_mask): Ditto.
8710         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
8711         (avx512f_vextract<shuffletype>64x4_mask): Ditto.
8712         (vec_extract_lo_<mode>_maskm): Ditto.
8713         (vec_extract_hi_<mode>_maskm): Ditto.
8714         (avx512f_vternlog<mode>_mask): Ditto.
8715         (avx512f_shufps512_mask): Ditto.
8716         (avx512f_fixupimm<mode>_mask): Ditto.
8717         (avx512f_shufpd512_mask): Ditto.
8718         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
8719         (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
8720         (*avx512f_<code>v8div16qi2_store_mask): Ditto.
8721         (ashr<mode>3<mask_name>): Ditto.
8722         (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
8723         (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
8724         (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
8725         (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
8726         (avx512f_pshufdv3_mask): Ditto.
8727         (avx512f_perm<mode>_mask): Ditto.
8728         (avx512f_vpermi2var<mode>3_mask): Ditto.
8729         (avx512f_vpermt2var<mode>3_mask): Ditto.
8730         (avx512f_compress<mode>_mask): Ditto.
8731         (avx512f_compressstore<mode>_mask): Ditto.
8732         (avx512f_expand<mode>_mask): Ditto.
8733         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
8734         to support masking.
8735         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
8736         (<plusminus_insn><mode>3<mask_name>): Ditto.
8737         (*<plusminus_insn><mode>3<mask_name>): Ditto.
8738         (mul<mode>3<mask_name>): Ditto.
8739         (*mul<mode>3<mask_name>): Ditto.
8740         (<sse>_div<mode>3<mask_name>): Ditto.
8741         (<mask_codefor>rcp14<mode><mask_name>): Ditto.
8742         (<sse>_sqrt<mode>2<mask_name>): Ditto.
8743         (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
8744         (<code><mode>3<mask_name>/smaxmin): Ditto.
8745         (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
8746         (*<code><mode>3<mask_name>/smaxmin): Ditto.
8747         (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
8748         (ufloatv16siv16sf2<mask_name>): Ditto.
8749         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
8750         (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
8751         (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
8752         (float<si2dfmodelower><mode>2<mask_name>): Ditto.
8753         (ufloatv8siv8df<mask_name>): Ditto.
8754         (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
8755         (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
8756         (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
8757         (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
8758         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
8759         (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
8760         (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
8761         (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
8762         (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
8763         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
8764         (vec_extract_lo_<mode><mask_name>): Ditto.
8765         (vec_extract_hi_<mode><mask_name>): Ditto.
8766         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
8767         (avx512f_movddup512<mask_name>): Ditto.
8768         (avx512f_unpcklpd512<mask_name>): Ditto.
8769         (*avx512f_unpcklpd512<mask_name>): Ditto.
8770         (*avx512f_vmscalef<mode>): Ditto.
8771         (avx512f_scalef<mode><mask_name>): Ditto.
8772         (avx512f_getexp<mode><mask_name>): Ditto.
8773         (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
8774         (avx512f_rndscale<mode><mask_name>): Ditto.
8775         (avx512f_shufps512_1<mask_name>): Ditto.
8776         (avx512f_shufpd512_1<mask_name>): Ditto.
8777         (<plusminus_insn><mode>3<mask_name>): Ditto.
8778         (*<plusminus_insn><mode>3<mask_name>): Ditto.
8779         (vec_widen_umult_even_v16si<mask_name>): Ditto.
8780         (*vec_widen_umult_even_v16si<mask_name>): Ditto.
8781         (vec_widen_smult_even_v16si<mask_name>): Ditto.
8782         (*vec_widen_smult_even_v16si<mask_name>): Ditto.
8783         (mul<mode>3<mask_name>): Ditto.
8784         (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
8785         (<shift_insn><mode>3<mask_name>): Ditto.
8786         (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
8787         (avx512f_<rotate><mode><mask_name>): Ditto.
8788         (<code><mode>3<mask_name>/maxmin): Ditto.
8789         (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
8790         (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
8791         (*andnot<mode>3<mask_name>): Ditto.
8792         (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
8793         (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
8794         (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
8795         (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
8796         (vec_set_lo_<mode><mask_name>): Ditto.
8797         (vec_set_hi_<mode><mask_name>): Ditto.
8798         (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
8799         (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
8800         (avx512f_pshufd_1<mask_name>): Ditto.
8801         (<mask_codefor>abs<mode>2<mask_name>): Ditto.
8802         (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
8803         (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
8804         (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
8805         (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
8806         (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
8807         (avx512er_exp2<mode><mask_name>): Ditto.
8808         (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
8809         (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
8810         (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
8811         (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
8812         (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
8813         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
8814         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
8815         (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
8816         (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
8817         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
8818         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
8819         (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
8820         (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
8821         (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
8822         (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
8823         (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
8824         (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
8825         (avx512f_getmant<mode><mask_name>): Ditto.
8826         (clz<mode>2<mask_name>): Ditto.
8827         (<mask_codefor>conflict<mode><mask_name>): Ditto.
8828         (*srcp14<mode>): Remove visibility.
8829         (*rsqrt14<mode>): Ditto.
8830         (*fma_fmsub_<mode>): Ditto.
8831         (*fma_fnmadd_<mode>): Ditto.
8832         (*avx512f_rndscale<mode>): Ditto.
8833         * config/i386/subst.md: New file.
8835 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
8837         * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
8838         * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
8839         (atomic_load_explicit, atomic_exchange_explicit)
8840         (atomic_compare_exchange_strong_explicit)
8841         (atomic_compare_exchange_weak_explicit): Use __auto_type to
8842         declare variable initialized with PTR argument.
8844 2013-11-12  Jeff Law  <law@redhat.com>
8846         * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
8847         backedge_seen_p.  Set, use and pass it to children appropriately.
8848         (thread_through_normal_block): Similarly.
8849         (thread_across_edge): Similarly.
8851         * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
8852         memory references as volatile.
8853         (insert_trap_and_remove_trailing_statements): Fix comment.
8855 2013-11-12  Vladimir Makarov  <vmakarov@redhat.com>
8857         PR other/58712
8858         * ira-costs.c (record_operand_costs): Check operands number for
8859         the single set.
8861 2013-11-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
8863         PR target/59054
8864         * config/rs6000/rs6000.md (movdi_internal32): Eliminate
8865         constraints that would allow DImode into the traditional Altivec
8866         registers, but cause undesirable code generation when loading 0 as
8867         a constant.
8868         (movdi_internal64): Likewise.
8869         (cmp<mode>_fpr): Do not use %x for CR register output.
8870         (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
8871         -mallow-upper-sf debug switches are used.
8873 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
8875         * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
8876         create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
8877         Relocate prototypes from gimple.h.
8878         * gimplify.h: New File.  Relocate some prototypes from gimple.h here.
8879         (gimple_predicate, enum fallback, enum gimplify_status): Relocate
8880         from gimple.h.
8881         * gimple.h: Move some prototypes to gimplify.h.
8882         (gimple_predicate, enum fallback, enum gimplify_status): Move to
8883         gimplify.h.
8884         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
8885         Relocate from gimpify.c.
8886         * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
8887         create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
8888         is_gimple_reg_rhs) Relocate from gimplify.c.
8889         * gimplify.c (mark_addressable): Move to gimple-expr.c.
8890         (gimple_seq_add_stmt_without_update): Move to gimple.c.
8891         (remove_suffix, tmp_var_id_num, create_tmp_var_name,
8892         create_tmp_var_raw, create_tmp_var, create_tmp_reg,
8893         is_gimple_reg_rhs): Move to gimple-expr.c.
8894         (should_carry_location_p): Move to gimple.c.
8895         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
8896         to gimple.h.
8897         (annotate_one_with_location, annotate_all_with_location_after,
8898         annotate_all_with_location): Move to gimple.c.
8899         (compare_case_labels, sort_case_labels,
8900         preprocess_case_label_vec_for_gimple): Move to gimple.c.
8901         (rhs_predicate_for): Make static.
8902         (gimplify_assign): Relocate from gimple.c.
8903         * gimple.c (gimplify_assign): Move to gimplify.c.
8904         (gimple_seq_add_stmt_without_update, should_carry_location_p,
8905         annotate_one_with_location, annotate_all_with_location_after,
8906         annotate_all_with_location, compare_case_labels, sort_case_labels,
8907         preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
8908         * tree.h (unshare_expr, unshare_expr_without_location,
8909         mark_addressable): Move prototypes to gimplify.h.
8910         * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
8911         tmp_var_id_num
8912         * asan.c: Include gimplify.h rather than gimple.h.
8913         * cfgloopmanip.c: Likewise.
8914         * cgraphunit.c: Likewise.
8915         * cilk-common.c: Likewise.
8916         * dwarf2out.c: Dont include gimple.h.
8917         * fold-const.c: Include gimplify.h rather than gimple.h.
8918         * function.c: Likewise.
8919         * gimple-fold.c: Likewise.
8920         * gimple-ssa-strength-reduction.c: Likewise.
8921         * graphite-clast-to-gimple.c: Likewise.
8922         * graphite-sese-to-poly.c: Likewise.
8923         * ipa-prop.c: Likewise.
8924         * ipa-split.c: Likewise.
8925         * ipa.c: Likewise.
8926         * langhooks.c: Dont include gimple.h.
8927         * loop-init.c: Include gimplify.h rather than gimple.h.
8928         * omp-low.c: Likewise.
8929         * sese.c: Likewise.
8930         * stor-layout.c: Likewise.
8931         * targhooks.c: Likewise.
8932         * trans-mem.c: Likewise.
8933         * tree-affine.c: Likewise.
8934         * tree-cfg.c: Likewise.
8935         * tree-cfgcleanup.c: Likewise.
8936         * tree-complex.c: Likewise.
8937         * tree-if-conv.c: Likewise.
8938         * tree-inline.c: Likewise.
8939         * tree-iterator.c: Likewise.
8940         * tree-loop-distribution.c: Likewise.
8941         * tree-nested.c: Likewise.
8942         * tree-parloops.c: Likewise.
8943         * tree-predcom.c: Likewise.
8944         * tree-profile.c: Likewise.
8945         * tree-scalar-evolution.c: Likewise.
8946         * tree-sra.c: Likewise.
8947         * tree-ssa-address.c: Likewise.
8948         * tree-ssa-ccp.c: Likewise.
8949         * tree-ssa-dce.c: Likewise.
8950         * tree-ssa-forwprop.c: Likewise.
8951         * tree-ssa-ifcombine.c: Likewise.
8952         * tree-ssa-loop-im.c: Likewise.
8953         * tree-ssa-loop-ivopts.c: Likewise.
8954         * tree-ssa-loop-manip.c: Likewise.
8955         * tree-ssa-loop-niter.c: Likewise.
8956         * tree-ssa-loop-prefetch.c: Likewise.
8957         * tree-ssa-loop-unswitch.c: Likewise.
8958         * tree-ssa-math-opts.c: Likewise.
8959         * tree-ssa-phiopt.c: Likewise.
8960         * tree-ssa-phiprop.c: Likewise.
8961         * tree-ssa-pre.c: Likewise.
8962         * tree-ssa-propagate.c: Likewise.
8963         * tree-ssa-reassoc.c: Likewise.
8964         * tree-ssa-sccvn.c: Likewise.
8965         * tree-ssa-strlen.c: Likewise.
8966         * tree-ssa.c: Likewise.
8967         * tree-switch-conversio: Likewise.n.c
8968         * tree-tailcall.c: Likewise.
8969         * tree-vect-data-refs.c: Likewise.
8970         * tree-vect-generic.c: Likewise.
8971         * tree-vect-loop-manip.c: Likewise.
8972         * tree-vect-loop.c: Likewise.
8973         * tree-vect-patterns.c: Likewise.
8974         * tree-vect-stmts.c: Likewise.
8975         * tsan.c: Likewise.
8976         * value-prof.c: Likewise.
8977         * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
8978         * config/alpha/alpha.c: Likewise.
8979         * config/darwin.c: Likewise.
8980         * config/i386/i386.c: Likewise.
8981         * config/ia64/ia64.c: Likewise.
8982         * config/mep/mep.c: Likewise.
8983         * config/mips/mips.c: Likewise.
8984         * config/rs6000/rs6000.c: Likewise.
8985         * config/s390/s390.c: Likewise.
8986         * config/sh/sh.c: Likewise.
8987         * config/sparc/sparc.c: Likewise.
8988         * config/spu/spu.c: Likewise.
8989         * config/stormy16/stormy16.c: Likewise.
8990         * config/tilegx/tilegx.c: Likewise.
8991         * config/tilepro/tilepro.c: Likewise.
8992         * config/xtensa/xtensa.c: Likewise.
8994 2013-11-12  Adam Butcher  <adam@jessamine.co.uk>
8996         * tree.c (grow_tree_vec_stat): New function ...
8997         * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
8998         and macro front-end.
9000 2013-11-12  Marek Polacek  <polacek@redhat.com>
9002         * final.c (update_alignments): Initialize label to NULL_RTX.
9004 2013-11-12  Jeff Law  <law@redhat.com>
9006         * gimple-ssa-isolate-paths.c (check_loadstore): New function.
9007         (insert_trap_and_remove_trailing_statements): New argument OP which
9008         is the NULL pointer.  Emit the trap after the load/store through
9009         the NULL pointer.  Simplify the RHS of a store through a NULL pointer
9010         when trivial to do so.
9011         (isolate_path): Corresponding changes.
9012         (gimple_ssa_isolate_erroneous_path): Likewise.
9014 2013-11-12  Teresa Johnson  <tejohnson@google.com>
9015             Jan Hubicka  <jh@suse.cz>
9017         * predict.c (drop_profile): New function.
9018         (handle_missing_profiles): Ditto.
9019         (counts_to_freqs): Don't overwrite estimated frequencies
9020         when function has no profile counts.
9021         * predict.h (handle_missing_profiles): Declare.
9022         * tree-inline.c (freqs_to_counts): New function.
9023         (copy_cfg_body): Invoke freqs_to_counts as needed.
9024         * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
9026 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
9028         PR target/59088
9029         * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
9030         Set for m_HASWELL.
9031         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
9033 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
9035         PR target/59084
9036         * config/i386/i386.c (ix86_option_override_internal): Check
9037         X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
9038         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
9039         MASK_AVX256_SPLIT_UNALIGNED_LOAD and
9040         MASK_AVX256_SPLIT_UNALIGNED_STORE.
9042         * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
9043         Clear m_COREI7_AVX and update comments.
9044         (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
9046 2013-11-12  Martin Jambor  <mjambor@suse.cz>
9048         PR rtl-optimization/10474
9049         * ira.c (interesting_dest_for_shprep): New function.
9050         (split_live_ranges_for_shrink_wrap): Likewise.
9051         (find_moveable_pseudos): Move calculation of dominance info,
9052         df_analysios and the final anlyses to...
9053         (ira): ...here, call split_live_ranges_for_shrink_wrap.
9055 2013-11-12  Bin Cheng  <bin.cheng@arm.com>
9057         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
9058         Handle type conversion.
9060 2013-11-11  Martin Liska  <marxin.liska@gmail.com>
9061             Jan Hubicka  <jh@suse.cz>
9063         * cgraph.c (dump_cgraph_node): Profile dump added.
9064         * cgraph.h (struct cgraph_node): New time profile variable added.
9065         * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
9066         * gcov-io.h (gcov_type): New profiler type introduced.
9067         * ipa-profile.c (lto_output_node): Streaming for time profile added.
9068         (input_node): Time profiler is read from LTO stream.
9069         * predict.c (maybe_hot_count_p): Hot prediction changed.
9070         * profile.c (instrument_values): New case for time profiler added.
9071         (compute_value_histograms): Read of time profile.
9072         * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
9073         * tree-profile.c (init_ic_make_global_vars): Time profiler
9074         function added.
9075         (gimple_init_edge_profiler): TP function instrumentation.
9076         (gimple_gen_time_profiler): New.
9077         * value-prof.c (gimple_add_histogram_value): Support for time profiler
9078         added.
9079         (dump_histogram_value): TP type added to dumps.
9080         (visit_hist): More sensitive check that takes TP into account.
9081         (gimple_find_values_to_profile): TP instrumentation.
9082         * value-prof.h (hist_type): New histogram type added.
9083         (struct histogram_value_t): Pointer to struct function added.
9084         * libgcc/Makefile.in: New GCOV merge function for TP added.
9085         * libgcov.c: function_counter variable introduced.
9086         (_gcov_merge_time_profile): New.
9087         (_gcov_time_profiler): New.
9089 2013-11-11  Marc Glisse  <marc.glisse@inria.fr>
9090             Jeff Law  <law@redhat.com>
9092         * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
9093         ao_ref_init_from_ptr_and_size for builtins.
9095 2013-11-11  Uros Bizjak  <ubizjak@gmail.com>
9096             H.J. Lu  <hongjiu.lu@intel.com>
9098         PR target/58853
9099         * config/i386/x86-tune.def
9100         (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
9101         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
9102         * config/i386/i386.h
9103         (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
9104         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES.  Update for renamed
9105         X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
9106         * config/i386/i386.c (ix86_expand_set_or_movmem): Use
9107         TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
9108         misaligned_prologue_used.  Check that
9109         desired_aling <= epilogue_size_needed.
9111 2013-11-11  Cong Hou  <congh@google.com>
9113         PR tree-optimization/59050
9114         * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
9116 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
9118         PR middle-end/59049
9119         * expmed.c (emit_store_flag): Fail for const-const comparison.
9121 2013-11-11  Tristan Gingold  <gingold@adacore.com>
9122             Eric Botcazou  <ebotcazou@adacore.com>
9124         * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
9125         * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
9126         * tree.def (CONSTRUCTOR): Likewise.
9127         * doc/generic.texi (CONSTRUCTOR): Likewise.  Update description.
9128         * gimplify.c (gimplify_init_constructor): Do not clear the object when
9129         the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
9131 2013-11-11  Basile Starynkevitch  <basile@starynkevitch.net>
9133         * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
9134         diagnostic_finish.
9136 2013-11-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9138         * config/arm/arm.c (arm_new_rtx_costs): Return after handling
9139         comparisons.
9141 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
9143         * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
9145 2013-11-08  Jeff Law  <law@redhat.com>
9147         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
9148         threading paths first, then perform PHI node checks if applicable.
9150 2013-11-10  Karlson2k  <k2k@narod.ru>
9151             Kai Tietz  <ktietz@redhat.com>
9153         PR plugin/52872
9154         * configure.ac: Adding for exported symbols check
9155         and for rdynamic-check executable-extension.
9156         * configure: Regenerated.
9158 2013-11-10  Uros Bizjak  <ubizjak@gmail.com>
9160         * mode-switching.c (optimize_mode_switching): Mark block as
9161         nontransparent, if last_mode at block exit is different from no_mode.
9163 2013-11-09  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9165         * function.c (NAME__MAIN): Move to...
9166         * cfgexpand.c (NAME__MAIN): ...here.
9168 2013-11-09  Richard Sandiford  <rdsandiford@googlemail.com>
9170         * target.def (can_use_doloop_p): New hook.
9171         * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
9172         * doc/tm.texi: Regenerate.
9173         * doc/md.texi (doloop_begin, doloop_end): Update documentation.
9174         * hooks.h (hook_bool_dint_dint_uint_true): Declare.
9175         * hooks.c (hook_bool_dint_dint_uint_true): New function.
9176         * targhooks.h (can_use_doloop_if_innermost): Declare.
9177         * targhooks.c (can_use_doloop_if_innermost): New function.
9178         * target.h: Include double-int.h.
9179         * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
9180         Remove iteration count, maximum iteration count, loop depth and
9181         enter-at-top inputs from doloop_begin and doloop_end.
9182         * config/arc/arc.md (doloop_begin, doloop_end): Update for new
9183         interface.
9184         * config/arc/arc.c (arc_can_use_doloop_p): New function.
9185         (TARGET_CAN_USE_DOLOOP_P): Define.
9186         * config/arm/thumb2.md (doloop_end): Update for new interface.
9187         * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
9188         * config/bfin/bfin.md (doloop_end): Update for new interface.
9189         * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
9190         (TARGET_CAN_USE_DOLOOP_P): Define.
9191         * config/c6x/c6x.md (doloop_end): Update for new interface.
9192         * config/ia64/ia64.md (doloop_end): Update for new interface.
9193         * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
9194         * config/mep/mep.md (doloop_begin, doloop_end): Update for new
9195         interface.
9196         * config/mep/mep.c (mep_emit_doloop): Likewise.
9197         (TARGET_CAN_USE_DOLOOP_P): Define.
9198         * config/rs6000/rs6000.md (doloop_end): Update for new interface.
9199         * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
9200         * config/s390/s390.md (doloop_end): Update for new interface.
9201         * config/sh/sh.md (doloop_end): Likewise.
9202         * config/spu/spu.md (doloop_end): Likewise.
9203         * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
9204         * config/tilegx/tilegx.md (doloop_end): Update for new interface.
9205         * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
9206         * config/tilepro/tilepro.md (doloop_end): Update for new interface.
9207         * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
9208         * config/v850/v850.md (doloop_begin, doloop_end): Update for new
9209         interface.
9210         * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
9212 2013-11-08  H.J. Lu  <hongjiu.lu@intel.com>
9214         PR other/59055
9215         * doc/extend.texi: Move Cilk Plus Builtins node before Other
9216         Builtins node.
9218 2013-11-08  Andrew MacLeod  <amacleod@redhat.com>
9219             Joseph Myers  <joseph@codesourcery.com>
9221         * ginclude/stdatomic.h: New file.
9222         * Makefile.in (USER_H): Add stdatomic.h.
9224 2013-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9226         * config/arm/arm.c (arm_new_rtx_costs): Break after handling
9227         comparisons.
9229 2013-11-08  Jeff Law  <law@redhat.com>
9231         * tree-ssa-threadupdate.h (delete_thread_path): Declare.
9232         * tree-ssa-threadupdate.c (delete_thread_path): New function.
9233         (ssa_redirect_edges, thread_block_1): Use it.
9234         (thread_through_loop_header, mark_threaded_blocks): Likewise.
9235         (thread_through_all_blocks, register_jump_thread): Likewise.
9236         * tree-ssa-threadedge.c (thread_across_edge): Likewise.
9238 2013-11-08  James Greenhalgh  <james.greenhalgh@arm.com>
9240         * config/arm/aarch-common.c
9241         (search_term): New typedef.
9242         (shift_rtx_costs): New array.
9243         (arm_rtx_shift_left_p): New.
9244         (arm_find_sub_rtx_with_search_term): Likewise.
9245         (arm_find_sub_rtx_with_code): Likewise.
9246         (arm_early_load_addr_dep): Add sanity checking.
9247         (arm_no_early_alu_shift_dep): Likewise.
9248         (arm_no_early_alu_shift_value_dep): Likewise.
9249         (arm_no_early_mul_dep): Likewise.
9250         (arm_no_early_store_addr_dep): Likewise.
9252 2013-11-08  Richard Biener  <rguenther@suse.de>
9254         PR tree-optimization/59047
9255         * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
9257 2013-11-08  Ilya Enkovich  <ilya.enkovich@intel.com>
9259         * common.opt (fcheck-pointer-bounds): Move to ...
9260         * c-family/c.opt: ... here.
9261         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
9262         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
9263         * langhooks.h (lang_hooks): Remove chkp_supported field.
9264         * toplev.c (process_options): Remove chkp_supported check.
9266 2013-11-08  Richard Biener  <rguenther@suse.de>
9268         PR tree-optimization/59038
9269         PR tree-optimization/58955
9270         * tree-loop-distribution.c (pg_add_dependence_edges): Revert
9271         previous change.  Handle known dependences correctly.
9273 2013-11-08  Tom de Vries  <tom@codesourcery.com>
9275         * config/rs6000/t-xilinx: Remove duplicate contents.
9277 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
9278             Joseph Myers  <joseph@codesourcery.com>
9280         * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
9281         (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
9282         TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
9283         (struct tree_base): Add atomic_flag field.
9284         * tree.h (TYPE_ATOMIC): New accessor macro.
9285         (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
9286         (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
9287         (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
9288         (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
9289         * tree.c (set_type_quals): Set TYPE_ATOMIC.
9290         (find_atomic_core_type): New function.
9291         (build_qualified_type): Adjust alignment for qualified types.
9292         (build_atomic_base): New function
9293         (build_common_tree_nodes): Build atomicQI_type_node,
9294         atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
9295         atomicTI_type_node.
9296         * print-tree.c (print_node): Print atomic qualifier.
9297         * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
9298         * target.def (atomic_assign_expand_fenv): New hook.
9299         * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
9300         * doc/tm.texi: Regenerate.
9301         * targhooks.c (default_atomic_assign_expand_fenv): New function.
9302         * targhooks.h (default_atomic_assign_expand_fenv): Declare.
9303         * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
9304         * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
9305         function type.
9306         * config/i386/i386.c (enum ix86_builtins): Add
9307         IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
9308         IX86_BUILTIN_FNCLEX.
9309         (bdesc_special_args): Add __builtin_ia32_fnstenv,
9310         __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
9311         (ix86_expand_builtin): Handle the new built-in functions.
9312         (ix86_atomic_assign_expand_fenv): New function.
9313         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
9314         * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
9315         (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
9316         (fnstenv, fldenv, fnstsw, fnclex): New insns.
9318 2013-11-07  Steve Ellcey  <sellcey@mips.com>
9320         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
9321         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
9322         (MULTILIB_DIRNAMES): Add fp64 directory.
9323         (MULTILIB_EXCEPTIONS): Add new exclusions.
9325 2013-11-07  Aldy Hernandez  <aldyh@redhat.com>
9327         * gimplify.c (gimple_regimplify_operands): Do not set
9328         SSA_NAME_DEF_STMT.
9329         * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
9330         (rewrite_close_phi_out_of_ssa): Same.
9331         (rewrite_phi_out_of_ssa): Same.
9332         (rewrite_degenerate_phi): Same.
9333         (handle_scalar_deps_crossing_scop_limits): Same.
9334         * tree-if-conv.c (predicate_scalar_phi): Same.
9335         * tree-parloops.c (create_loads_for_reductions): Same.
9336         (create_final_loads_for_reduction): Same.
9337         (create_loads_and_stores_for_name): Same.
9338         (transform_to_exit_first_loop): Same.
9339         (create_parallel_loop): Same.
9340         * tree-ssa-loop-im.c
9341         (move_computations_dom_walker::before_dom_children): Same.
9342         * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
9343         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
9344         * tree-ssa-propagate.c (substitute_and_fold): Same.
9345         * tree-vect-loop.c (vect_finalize_reduction): Same.
9346         * tree-vect-stmts.c (vectorizable_call): Same.
9348 2013-11-07  Mike Stump  <mikestump@comcast.net>
9350         * config/pdp11/pdp11.c: Include dbxout.h.
9351         * config/picochip/picochip.c: Likewise.
9353 2013-11-07  Cong Hou  <congh@google.com>
9355         PR tree-optimization/56764
9356         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
9357         Combine alias checks if it is possible to amortize the runtime
9358         overhead.  Return the number of alias checks after merging.
9359         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
9360         Use the function vect_create_cond_for_alias_checks () to check
9361         the number of alias checks.
9363 2013-11-07  Jeff Law  <law@redhat.com>
9365         * varpool.c (ctor_for_folding): Fix typo in comment.
9367 2013-11-07  Joern Rennecke  <joern.rennecke@embecosm.com>
9369         * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
9370         reg_a := reg_b + reg_a  ==>  reg_a := reg_a + reg_b
9372 2013-11-07  Jeff Law  <law@redhat.com>
9374         * doc/invoke.texi (-fisolate-erroneous-paths): Document.
9376         * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
9377         No longer check if we have __builtin_trap, assume it's available.
9379 2013-11-07  Diego Novillo  <dnovillo@google.com>
9381         * attribs.c (lookup_scoped_attribute_spec): Make static.
9382         (get_attribute_namespace): Likewise.
9383         * builtins.c (more_const_call_expr_args_p): Move from tree.h.
9384         (validate_arglist): Move earlier in the file. Make static.
9385         (expand_stack_restore): Move from stmt.c
9386         (expand_stack_save): Move from stmt.c
9387         (rewrite_call_expr_array): Move earlier in the file.
9388         (rewrite_call_expr_valist): Likewise.
9389         * cfgexpand.c: Include hard-reg-set.h before tree.h
9390         Include recog.h.
9391         Include output.h.
9392         (expand_asm_loc): Move from stmt.c.
9393         (n_occurrences): Move from stmt.c.
9394         (check_operand_nalternatives): Move from stmt.c.
9395         (tree_conflicts_with_clobbers_p): Move from stmt.c.
9396         (expand_asm_operands): Move from stmt.c
9397         (expand_asm_stmt): Move from stmt.c
9398         (expand_computed_goto): Move from stmt.c
9399         (expand_goto): Move from stmt.c
9400         (expand_null_return_1): Move from stmt.c
9401         (expand_null_return): Move from stmt.c
9402         (expand_value_return): Move from stmt.c
9403         (expand_return): Move from stmt.c
9404         (expand_main_function): Move from function.c
9405         (stack_protect_prologue): Move from function.c
9406         * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
9407         (build_function_decl_skip_args): Move from tree.c.
9408         * explow.c (tree_expr_size): Move from tree.c.
9409         * expr.c (addr_expr_of_non_mem_decl_p): Remove.
9410         (fields_length): Move from tree.c.
9411         * fold-const.c (size_low_cst): Move from tree.c.
9412         (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
9413         (tree_expr_nonzero_p): Make static. Move earlier in the file.
9414         (fold_build3_initializer_loc): Remove.
9415         (tree_invalid_nonnegative_warnv_p): Make static.
9416         * function.c (expand_main_function): Move to cfgexpand.c.
9417         (stack_protect_prologue): Move to cfgexpand.c.
9418         (set_insn_locations): Move earlier in the file.
9419         * gimple-fold.c: Include langhooks.h.
9420         (truth_type_for): Move from tree.c.
9421         * print-tree.c (print_vec_tree): Remove.
9422         * stmt.c (expand_computed_goto): Move to cfgexpand.c.
9423         (expand_goto): Move to cfgexpand.c.
9424         (n_occurrences): Move to cfgexpand.c.
9425         (expand_asm_loc): Move to cfgexpand.c
9426         (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
9427         (expand_asm_operands): Move to cfgexpand.c.
9428         (expand_asm_stmt): Move to cfgexpand.c.
9429         (check_operand_nalternatives): Move to cfgexpand.c
9430         (expand_null_return): Move to cfgexpand.c.
9431         (expand_value_return): Move to cfgexpand.c.
9432         (expand_null_return_1): Move to cfgexpand.c.
9433         (expand_return): Move to cfgexpand.c.
9434         (expand_stack_save): Move to builtins.c.
9435         (expand_stack_restore): Move to builtins.c
9436         * symtab.c: Include output.h.
9437         (decl_assembler_name_hash): Move from tree.c.
9438         (decl_assembler_name_equal): Move from tree.c.
9439         * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
9440         * tree-eh.c (in_array_bounds_p): Move from tree.c.
9441         (range_in_array_bounds_p): Move from tree.c.
9442         * tree-object-size.c (fini_object_sizes): Make static.
9443         * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
9444         * tree-vrp.c (ssa_name_nonnegative_p): Remove.
9445         * tree.c (decl_assembler_name_equal): Move to symtab.c.
9446         (tree_expr_size): Move to explow.c.
9447         (decl_assembler_name_hash): Move to symtab.c.
9448         (real_twop): Remove.
9449         (tree_expr_size): Move to explow.c.
9450         (stabilize_reference_1): Move earlier in the file. Make static.
9451         (omp_remove_redundant_declare_simd_attrs): Remove.
9452         (simple_cst_list_equal): Move earlier in the file. Make static.
9453         (size_low_cst): Move to fold-const.c.
9454         (build_type_no_quals): Remove.
9455         (build_function_type_skip_args): Move to cgraphclones.c.
9456         (build_function_decl_skip_args): Move to cgraphclones.c.
9457         (in_array_bounds_p): Move to tree-eh.c.
9458         (range_in_array_bounds_p): Move to tree-eh.c.
9459         (truth_type_for): Move to gimple-fold.c.
9460         (list_equal_p): Remove.
9461         * tree.h (decl_assembler_name_equal): Remove.
9462         (decl_assembler_name_hash): Remove.
9463         (truth_type_for): Remove.
9464         (build_type_no_quals): Remove.
9465         (build_function_decl_skip_args): Remove.
9466         (in_array_bounds_p): Remove.
9467         (range_in_array_bounds_p): Remove.
9468         (size_low_cst): Remove.
9469         (omp_remove_redundant_declare_simd_attrs): Remove.
9470         (tree_expr_size): Remove.
9471         (fields_length): Remove.
9472         (stabilize_reference_1): Remove.
9473         (expand_goto): Remove.
9474         (expand_stack_save): Remove.
9475         (expand_stack_restore): Remove.
9476         (expand_return): Remove.
9477         (fold_build3_initializer_loc): Remove.
9478         (tree_expr_nonzero_p): Remove.
9479         (tree_invalid_nonnegative_warnv_p): Remove.
9480         (tree_expr_nonzero_warnv_p): Remove.
9481         (fold_builtin_snprintf_chk): Remove.
9482         (validate_arglist): Remove.
9483         (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
9484         (simple_cst_list_equal): Remove.
9485         (real_twop): Remove.
9486         (expand_main_function): Remove.
9487         (stack_protect_prologue): Remove.
9488         (print_vec_tree): Remove.
9489         (lookup_scoped_attribute_spec): Remove.
9490         (get_attribute_namespace): Remove.
9491         (expand_computed_goto): Remove.
9492         (expand_asm_stmt): Remove.
9493         (list_equal_p): Remove.
9494         (ssa_name_nonnegative_p): Remove.
9495         (fini_object_sizes): Remove.
9496         (addr_expr_of_non_mem_decl_p): Remove.
9497         (is_tm_safe_or_pure): Move to trans-mem.c.
9498         (more_const_call_expr_args_p): Remove.
9499         (save_vtable_map_decl): Remove.
9501 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
9503         * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
9504         linker plugins, too.
9506         * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
9507         link to libgomp and its dependencies.
9508         * config/ia64/hpux.h (LIB_SPEC): Likewise.
9509         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
9510         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
9511         * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
9513 2013-11-07  Jakub Jelinek  <jakub@redhat.com>
9515         * tree-ssa-loop-niter.c: Include tree-ssanames.h.
9516         (determine_value_range): Add loop argument.  Use get_range_info to
9517         improve range.
9518         (bound_difference): Adjust caller.
9520 2013-11-07  Richard Biener  <rguenther@suse.de>
9521             Jakub Jelinek  <jakub@redhat.com>
9523         * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
9524         latches from header PHI arguments from the latch edge.
9526 2013-11-07  Paolo Carlini  <paolo.carlini@oracle.com>
9528         PR c++/58176
9529         * varasm.c (output_constant): Handle NULLPTR_TYPE.
9531 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
9533         * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
9534         misaligned_prologue_used when it has been set.
9536 2013-11-07  Yury Gribov  <y.gribov@samsung.com>
9537             Jakub Jelinek  <jakub@redhat.com>
9539         PR sanitizer/59029
9540         * asan.c (get_mem_refs_of_builtin_call): Allow
9541         integer literals as addresses in instrumented builtins.
9543 2013-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9545         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
9546         Explain why plus_constant is not used.
9548 2013-11-07  Richard Biener  <rguenther@suse.de>
9550         * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
9551         (canonicalize_value): ... this.  Also handle stripping of
9552         TREE_OVERFLOW.
9553         (get_value, set_lattice_value, get_value_for_expr): Adjust.
9554         * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
9555         * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
9557 2013-11-07  Richard Biener  <rguenther@suse.de>
9559         * tree-dfa.c (get_ref_base_and_extent): Fix casting.
9561 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
9563         PR target/59034
9564         * config/i386/i386.md (push peepholer/splitter): Use Pmode
9565         with stack_pointer_rtx.
9567 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
9569         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
9570         using operand_equal_p.
9572 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
9574         * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
9575         * tree-affine.c (get_inner_reference_aff): Return base.
9576         * tree-affine.h (get_inner_reference_aff): Change prototype.
9578 2013-11-06  Tobias Burnus  <burnus@net-b.de>
9580         * doc/invoke.texi (Wdate-time): Fix typo.
9582 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
9584         * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
9585         cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
9586         fp_arith_reg_operand instead of arith_reg_operand.
9588 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
9590         * config/sh/sh.md (adddi3): Remove empty constraints.
9591         Remove can_create_pseudo_p and arith_reg_operand check.
9592         (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
9593         Split before reload.
9595 2013-11-06  Jeff Law  <law@redhat.com>
9596             Tom Tromey  <tromey@redhat.com>
9598         * gdbinit.in: Disable strict type checking.
9600 2013-11-06  Vladimir Makarov  <vmakarov@redhat.com>
9602         * tree-pass.h (make_pass_live_range_shrinkage): New external.
9603         * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
9604         * sched-rgn.c (gate_handle_live_range_shrinkage): New.
9605         (rest_of_handle_live_range_shrinkage): Ditto
9606         (class pass_live_range_shrinkage): Ditto.
9607         (pass_data_live_range_shrinkage): Ditto.
9608         (make_pass_live_range_shrinkage): Ditto.
9609         * sched-int.h (initialize_live_range_shrinkage): New prototype.
9610         (finish_live_range_shrinkage): Ditto.
9611         * sched-deps.c (create_insn_reg_set): Make void return value.
9612         * passes.def: Add pass_live_range_shrinkage.
9613         * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
9614         * haifa-sched.c (live_range_shrinkage_p): New.
9615         (initialize_live_range_shrinkage, finish_live_range_shrinkage):
9616         New functions.
9617         (rank_for_schedule): Add code for pressure relief through live
9618         range shrinkage.
9619         (schedule_insn): Print more debug info.
9620         (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
9621         through live range shrinkage.
9622         * doc/invoke.texi (-flive-range-shrinkage): New.
9623         * common.opt (flive-range-shrinkage): New.
9625 2013-11-06  Uros Bizjak  <ubizjak@gmail.com>
9627         PR target/59021
9628         * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
9629         AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
9630         (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
9631         RTXes that return in AVX256 register.
9633 2013-11-06  Richard Biener  <rguenther@suse.de>
9635         PR tree-optimization/58653
9636         * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
9637         (prepare_initializers_chain): Adjust.
9639 2013-11-06  Andrew MacLeod  <amacleod@redhat.com>
9641         * gimple.h (block_in_transaction): Move to basic-block.h and rename.
9642         (gimple_in_transaction): Use bb_in_transaction.
9643         * basic-block.h (bb_in_transaction): Relocate here and rename.
9644         * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
9646 2013-11-06  Richard Biener  <rguenther@suse.de>
9648         * tree.c (drop_tree_overflow): New function.
9649         * tree.h (drop_tree_overflow): Declare.
9650         * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
9651         * tree-vrp.c (range_int_cst_singleton_p): Use
9652         is_overflow_infinity instead of testing TREE_OVERFLOW.
9653         (extract_range_from_assert): Likewise.
9654         (zero_nonzero_bits_from_vr): Likewise.
9655         (extract_range_basic): Likewise.
9656         (register_new_assert_for): Use drop_tree_overflow.
9657         (vrp_visit_phi_node): Likewise.
9659 2013-11-06  Eric Botcazou  <ebotcazou@adacore.com>
9661         * config/i386/i386.c (ix86_expand_prologue): Optimize stack
9662         checking for leaf functions without dynamic stack allocation.
9663         * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
9664         (ia64_expand_prologue): Likewise.
9665         * config/mips/mips.c (mips_expand_prologue): Likewise.
9666         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
9667         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
9668         (sparc_flat_expand_prologue): Likewise.
9670 2013-11-06  James Greenhalgh  <james.greenhalgh@arm.com>
9672         * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
9673         (__ST3_LANE_FUNC): Likewise.
9674         (__ST4_LANE_FUNC): Likewise.
9676 2013-11-06  Nick Clifton  <nickc@redhat.com>
9678         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
9679         name returned by msp430_mcu_name.
9680         (LIB_SPEC): If a -T option has not been specified then set a
9681         default, mcu-specific, linker script.
9682         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
9683         * config/msp430/msp430.c (msp430x_names): Likewise.
9684         Alpha sort the names for ease of comparison.
9685         (msp430_mcu_name): New function:  Returns a string suitable for
9686         use as a C preprocessor symbol based upon the name of the MCU
9687         being targeted.
9688         (msp430_option_override): Accept msp430x and msp430xv2 as generic
9689         mcu names.
9690         * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
9692         * gcc.c (do_spec_1): Do not insert a space after a %* substitution
9693         unless it is the last part of a spec substring.
9694         * doc/invoke.texi (Spec Files): Document space insertion
9695         behaviour of %*.
9697 2013-11-06  Christian Bruel  <christian.bruel@st.com>
9699         * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
9700         Factorize probabilities, Use adjust_address instead of
9701         adjust_automodify_address when possible. Enable for optimize.
9702         (sh_expand_strlen): New function.
9703         * config/sh/sh-protos.h (sh_expand_strlen): Declare.
9704         * config/sh/sh.md (strlensi): New pattern.
9705         (UNSPEC_BUILTIN_STRLEN): Define.
9707 2013-11-06  Jakub Jelinek  <jakub@redhat.com>
9709         PR middle-end/58970
9710         * expr.c (get_bit_range): Handle *offset == NULL_TREE.
9711         (expand_assignment): If *bitpos is negative, set *offset
9712         and adjust *bitpos, so that it is not negative.
9714 2013-11-06  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
9716         * config/i386/bdver3.md : Added two additional decoder units
9717         to support issue rate of 4 and remodeled vector unit.
9718         * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
9719         architectures is set to 4.
9720         * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
9721         lookahead is set to 4 for BD architectures.
9723 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9725         * config/rs6000/rs6000.c (rs6000_option_override_internal):
9726         Remove restriction against use of VSX instructions when generating
9727         code for little endian mode.
9729 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9731         * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
9732         for both big and little endian.
9733         (mulv8hi3): Swap input operands for merge high and merge low
9734         instructions for little endian.
9736 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9738         * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
9739         define_insn to define_expand that uses even patterns for big
9740         endian and odd patterns for little endian.
9741         (vec_widen_smult_even_v16qi): Likewise.
9742         (vec_widen_umult_even_v8hi): Likewise.
9743         (vec_widen_smult_even_v8hi): Likewise.
9744         (vec_widen_umult_odd_v16qi): Likewise.
9745         (vec_widen_smult_odd_v16qi): Likewise.
9746         (vec_widen_umult_odd_v8hi): Likewise.
9747         (vec_widen_smult_odd_v8hi): Likewise.
9748         (altivec_vmuleub): New define_insn.
9749         (altivec_vmuloub): Likewise.
9750         (altivec_vmulesb): Likewise.
9751         (altivec_vmulosb): Likewise.
9752         (altivec_vmuleuh): Likewise.
9753         (altivec_vmulouh): Likewise.
9754         (altivec_vmulesh): Likewise.
9755         (altivec_vmulosh): Likewise.
9757 2013-11-05  Mike Stump  <mikestump@comcast.net>
9759         * Makefile.in (mostlyclean): Remove c-family objects.
9761 2013-11-05  Ian Lance Taylor  <iant@google.com>
9763         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
9764         If possible, add .cfi directives to record change to bx.
9765         * config/i386/i386.c (ix86_emit_cfi): New function.
9766         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
9768 2013-11-05  Steven Bosscher  <steven@gcc.gnu.org>
9770         * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
9771         immediately after a label for a tablejump pattern.
9773         * config/arm/arm.c (is_jump_table): Remove.
9774         (create_fix_barrier): Use tablejump_p instead.
9775         (arm_reorg): Likewise.
9776         (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
9777         (thumb2_output_casesi): Likewise.
9778         * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
9779         * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
9780         casesi_shift_media, casesi_load_media): Likewise.
9781         * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
9782         * config/microblaze/microblaze.md: Likewise.
9784 2013-11-05  Tobias Burnus  <burnus@net-b.de>
9786         * doc/invoke.texi (-Wdate-time): Document.
9788 2013-11-05  Richard Sandiford  <rdsandiford@googlemail.com>
9790         * double-int.c (lshift_double, rshift_double): Remove
9791         SHIFT_COUNT_TRUNCATED handling.
9793 2013-11-05  Jeff Law  <law@redhat.com>
9795         * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
9796         * common.opt (-fisolate-erroneous-paths): Add option and documentation.
9797         * gimple-ssa-isolate-paths.c: New file.
9798         * gimple.c (check_loadstore): New function.
9799         (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
9800         Verify OP is in the argument list and the argument corresponding
9801         to OP is a pointer type.  Use operand_equal_p rather than
9802         pointer equality when testing if OP is on the nonnull list.
9803         Use check_loadstore rather than count_ptr_derefs.  Handle
9804         GIMPLE_RETURN statements.
9805         * tree-vrp.c (infer_nonnull_range): Remove.
9806         * gimple.h (infer_nonnull_range): Declare.
9807         * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
9808         * passes.def: Add pass_isolate_erroneous_paths.
9809         * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
9810         * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
9811         * tree-ssa.c (struct count_ptr_d): Remove.
9812         (count_ptr_derefs, count_uses_and_derefs): Remove.
9813         * tree-ssa.h (count_uses_and_derefs): Remove.
9815 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
9817         PR rtl-optimization/58997
9818         * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
9819         get_iv_value to be in iv->mode rather than iv->extend_mode.
9820         (iv_extend): Likewise.  Otherwise, if iv->extend != extend,
9821         use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
9822         * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
9823         mode.
9825 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
9827         * gimple.h: Move some prototypes to gimple-expr.h and add to include
9828         list.
9829         (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
9830         Move to gimple-expr.h.
9831         * gimple-expr.h: New file.  Relocate some prototypes from gimple.h.
9832         (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
9833         is_gimple_id, virtual_operand_p, is_gimple_addressable,
9834         is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
9835         Relocate here.
9836         * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
9837         gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
9838         is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
9839         is_gimple_address, is_gimple_invariant_address,
9840         is_gimple_ip_invariant_address, is_gimple_min_invariant,
9841         is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
9842         virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
9843         is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
9844         gimple_decl_printable_name, useless_type_conversion_p,
9845         types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
9846         gimple-expr.[ch].
9847         * gimple-expr.c: New File.
9848         (useless_type_conversion_p, gimple_set_body, gimple_body,
9849         gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
9850         gimple_can_coalesce_p, extract_ops_from_tree_1,
9851         gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
9852         is_gimple_address, is_gimple_invariant_address,
9853         is_gimple_ip_invariant_address, is_gimple_min_invariant,
9854         is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
9855         is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
9856         is_gimple_mem_ref_addr): Relocate here.
9857         * Makefile.in (OBJS): Add gimple-expr.o.
9859 2013-11-05  David Malcolm  <dmalcolm@redhat.com>
9861         * gengtype-parse.c (struct_field_seq): Support empty structs.
9863 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
9865         * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
9867 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
9869         * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
9870         for !TARGET_80387.
9871         * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
9872         _SOFT_FLOAT here.
9873         (LONG_DOUBLE_TYPE_SIZE): New define.
9874         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
9876 2013-11-05  Paolo Carlini  <paolo.carlini@oracle.com>
9878         PR c++/58724
9879         * doc/extend.texi [visibility ("visibility_type")]: Add example
9880         about visibility attribute on namespace declaration.
9882 2013-11-05  Richard Biener  <rguenther@suse.de>
9884         PR ipa/58492
9885         * passes.def (all_passes): Start with pass_fixup_cfg again.
9887 2013-11-05  Richard Biener  <rguenther@suse.de>
9889         PR tree-optimization/58955
9890         * tree-loop-distribution.c (pg_add_dependence_edges): Fix
9891         edge direction.
9893 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9895         * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
9896         little endian.
9897         (vec_pack_ufix_trunc_v2df): Likewise.
9899 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
9901         PR middle-end/58981
9902         * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
9903         pattern, instead of word_mode.
9905         * expr.c (emit_block_move_via_movmem): Don't use mode wider than
9906         Pmode for size.
9907         (set_storage_via_setmem): Likewise.
9909 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
9911         * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
9912         gimple.h and the rest of the condition in eliminate_build.
9913         (eliminate_build): Call new routine.
9914         * gimple.h (phi_ssa_name_p): Delete.
9916 2013-11-05  Trevor Saunders  <tsaunders@mozilla.com>
9918         * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
9919         case of no prefix and reserving zero slots, because when that's the
9920         case we'll never get here.
9921         * vec.h (va_heap::reserve): Don't try and handle
9922         vec_prefix::calculate_allocation returning zero because that should
9923         never happen.
9925 2013-11-05  Richard Biener  <rguenther@suse.de>
9927         PR middle-end/58941
9928         * tree-dfa.c (get_ref_base_and_extent): Merge common code
9929         in MEM_REF and TARGET_MEM_REF handling.  Make sure to
9930         process trailing array detection before diving into the
9931         view-converted object (and possibly apply some extra offset).
9933 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
9935         * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
9936         New function.
9937         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
9939 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
9941         PR tree-optimization/58958
9942         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
9943         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
9945 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
9947         * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
9948         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
9950 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
9952         PR tree-optimization/58984
9953         * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
9954         set *SIZE_P if non-NULL on success.
9955         (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
9956         callers.
9957         (ipcp_transform_function): Likewise.  Punt if size of access
9958         is different from TYPE_SIZE on v->value's type.
9960 2013-11-05  Tobias Burnus  <burnus@net-b.de>
9962         * doc/invoke.texi (-fopenmp-simd): Document new option.
9963         * gimplify.c (gimplify_body): Accept -fopenmp-simd.
9964         * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
9965         * tree.c (attribute_value_equal): Ditto.
9967 2013-11-04  Wei Mi  <wmi@google.com>
9969         * sched-rgn.c (add_branch_dependences): Keep insns in
9970         a SCHED_GROUP at the end of BB to remain their location.
9972 2013-11-04  Wei Mi  <wmi@google.com>
9974         * config/i386/i386.c (memory_address_length): Extract a part
9975         of code to rip_relative_addr_p.
9976         (rip_relative_addr_p): New Function.
9977         (ix86_macro_fusion_p): Ditto.
9978         (ix86_macro_fusion_pair_p): Ditto.
9979         * config/i386/i386.h: Add new tune features about macro-fusion.
9980         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
9981         * doc/tm.texi: Generated.
9982         * doc/tm.texi.in: Ditto.
9983         * haifa-sched.c (try_group_insn): New Function.
9984         (group_insns_for_macro_fusion): Ditto.
9985         (sched_init): Call group_insns_for_macro_fusion.
9986         * target.def: Add two hooks: macro_fusion_p and
9987         macro_fusion_pair_p.
9989 2013-11-04  Kostya Serebryany  <kcc@google.com>
9991         Update to match the changed asan API.
9992         * asan.c (asan_function_start): New function.
9993         (asan_emit_stack_protection): Update the string stored in the
9994         stack red zone to match new API.  Store the PC of the current
9995         function in the red zone.
9996         (asan_global_struct): Update the __asan_global definition to match
9997         the new API.
9998         (asan_add_global): Ditto.
9999         * asan.h (asan_function_start): New prototype.
10000         * final.c (final_start_function): Call asan_function_start.
10001         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
10002         to __asan_init_v3.
10004 2013-11-04  Wei Mi  <wmi@google.com>
10006         * config/i386/i386-c.c (ix86_target_macros_internal): Separate
10007         PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
10008         * config/i386/i386.c (ix86_option_override_internal): Ditto.
10009         (ix86_issue_rate): Ditto.
10010         (ix86_adjust_cost): Ditto.
10011         (ia32_multipass_dfa_lookahead): Ditto.
10012         (ix86_sched_init_global): Ditto.
10013         (get_builtin_code_for_version): Ditto.
10014         * config/i386/i386.h (enum target_cpu_default): Ditto.
10015         (enum processor_type): Ditto.
10016         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
10018 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
10020         PR rtl-optimization/58967
10021         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
10022         !lra_in_progress for mode sizes bigger word.
10024 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10026         * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
10027         arguments to merge instruction for little endian.
10028         (vec_widen_umult_lo_v16qi): Likewise.
10029         (vec_widen_smult_hi_v16qi): Likewise.
10030         (vec_widen_smult_lo_v16qi): Likewise.
10031         (vec_widen_umult_hi_v8hi): Likewise.
10032         (vec_widen_umult_lo_v8hi): Likewise.
10033         (vec_widen_smult_hi_v8hi): Likewise.
10034         (vec_widen_smult_lo_v8hi): Likewise.
10036 2013-11-04  Ian Lance Taylor  <iant@google.com>
10038         * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
10039         * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
10040         builtins that take pointers.
10041         * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
10042         * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
10043         (run_gcc): Pass -fnon-call-exceptions.
10045 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
10047         * optabs.c (expand_vec_perm): Revert one incorrect line from
10048         2013-10-31 change.
10050         PR tree-optimization/58978
10051         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
10052         use_stmt by single_imm_use directly.  Only call single_imm_use
10053         on SSA_NAMEs.
10055 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
10057         PR rtl-optimization/58968
10058         * lra-spills.c (return_regno_p): New function.
10059         (lra_final_code_change): Use it.
10061 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
10063         * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
10064         * target.def (float_exceptions_rounding_supported_p): New hook.
10065         * targhooks.c (default_float_exceptions_rounding_supported_p): New
10066         function.
10067         * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
10068         * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
10069         New @hook.
10070         * doc/tm.texi: Regenerate.
10071         * config.gcc (powerpc*-*-linux*): Set extra_objs.
10072         * config/rs6000/rs6000-linux.c: New file.
10073         * config/rs6000/rs6000-protos.h
10074         (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
10075         * config/rs6000/linux.h
10076         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
10077         * config/rs6000/linux64.h
10078         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
10079         * config/rs6000/t-linux (rs6000-linux.o): New rule.
10080         * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
10082 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10084         * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
10085         Replace the define_insn_and_split with a define_insn and two
10086         define_splits, with the split after reload re-permuting the source
10087         register to its original value.
10088         (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
10089         (*vsx_le_perm_store_v8hi): Likewise.
10090         (*vsx_le_perm_store_v16qi): Likewise.
10092 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10094         * config/rs6000/vector.md (vec_pack_trunc_v2df):  Adjust for
10095         little endian.
10097 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
10099         PR tree-optimization/58946
10100         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
10101         bbs with bbinfo[idx].op != NULL before all blocks with
10102         bbinfo[idx].op == NULL.
10104 2013-11-04  Richard Sandiford  <rdsandiford@googlemail.com>
10106         * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
10107         (avr_dump_double_int_hex): Likewise.
10108         (avr_log_vadump): Remove %D and %X handling.
10109         * config/avr/avr.c (avr_double_int_push_digit): Delete.
10110         (avr_map_op_t): Change map from double_int to unsigned int.
10111         (avr_map_op): Update accordingly.
10112         (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
10113         (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
10114         unsigned ints rather than double_ints.
10116 2013-11-03  Marek Polacek  <polacek@redhat.com>
10118         Implement -fsanitize=vla-bound.
10119         * opts.c (common_handle_option): Handle vla-bound.
10120         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
10121         * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
10122         * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
10124 2013-11-02  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
10126         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
10127         little endian.
10129 2013-11-02  Uros Bizjak  <ubizjak@gmail.com>
10131         * config/i386/constraints.md (Ts, Tv): New address constrains.
10132         * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
10133         constraint for address_no_seg_operand.
10134         * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
10135         (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
10136         (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
10137         (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
10138         (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
10139         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
10140         (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
10141         (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
10142         constraint for vsib_address_operand.
10144 2013-11-02  Steven Bosscher  <steven@gcc.gnu.org>
10146         * gcse.c (pre_delete): Remove references to regmove from comments.
10147         * recog.c: (validate_replace_rtx_1): Likewise.
10148         * config/rl78/rl78.c: Likewise.
10149         * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
10150         * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
10151         * common/config/mmix/mmix-common.c: Likewise.
10153 2013-11-01  Trevor Saunders  <tsaunders@mozilla.com>
10155         * function.c (reorder_blocks): Convert block_stack to a stack_vec.
10156         * gimplify.c (gimplify_compound_lval): Likewise.
10157         * graphite-clast-to-gimple.c (gloog): Likewise.
10158         * graphite-dependences.c (loop_is_parallel_p): Likewise.
10159         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
10160         (limit_scop); Likewise.
10161         (build_scops): Likewise.
10162         (dot_scop): Likewise.
10163         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
10164         (build_scop_drs): Likewise.
10165         (insert_stmts): Likewise.
10166         (insert_out_of_ssa_copy): Likewise.
10167         (remove_phi): Likewise.
10168         (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
10169         * hw-doloop.c (discover_loop): Likewise.
10170         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
10171         * tree-dfa.c (dump_enumerated_decls): Likewise.
10172         * tree-if-conv.c (if_convertable_loop_p): Likewise.
10173         * tree-inline.c (tree_function_versioning): Likewise.
10174         * tree-loop-distribution.c (build_rdg): Likewise.
10175         (rdg_flag_vertex_and_dependent): Likewise.
10176         (distribute_loop): Likewise.
10177         * tree-parloops.c (loop_parallel_p): Likewise.
10178         (eliminate_local_variables): Likewise.
10179         (separate_decls_in_region): Likewise.
10180         * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
10181         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
10182         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
10183         * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
10184         * tree-vect-patterns.c (vect_pattern_recog): Likewise.
10185         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
10186         (vectorizable_condition): Likewise.
10188 2013-11-01  Uros Bizjak  <ubizjak@gmail.com>
10190         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
10191         * configure: Regenerate.
10192         * config/i386/i386.md (*movdi_internal): Change
10193         HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
10194         (*movdf_internal): Ditto.
10195         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
10196         * config/i386/sse.md (vec_concatv2di): Output interunit movq
10197         for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
10199 2013-10-31  Robert Suchanek  <Robert.Suchanek@imgtec.com>
10201         * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
10202         after comment.
10204 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
10206         Automated part of renaming of symtab_node_base to symtab_node.
10208         Patch autogenerated by rename_symtab.py from
10209         https://github.com/davidmalcolm/gcc-refactoring-scripts
10210         revision 58bb219cc090b2f4516a9297d868c245495ee622
10211         with ChangeLog entry fixed up by hand.
10213         * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
10214         symtab_node.
10215         (cgraph_node_for_asm): Likewise.
10216         * cgraph.h (symtab_node_base): Likewise.
10217         (cgraph_node): Likewise.
10218         (varpool_node): Likewise.
10219         (is_a_helper <cgraph_node>::test): Likewise.
10220         (is_a_helper <varpool_node>::test): Likewise.
10221         (symtab_nodes): Likewise.
10222         (symtab_register_node): Likewise.
10223         (symtab_unregister_node): Likewise.
10224         (symtab_remove_node): Likewise.
10225         (symtab_get_node): Likewise.
10226         (symtab_node_for_asm): Likewise.
10227         (symtab_node_asm_name): Likewise.
10228         (symtab_node_name): Likewise.
10229         (symtab_insert_node_to_hashtable): Likewise.
10230         (symtab_add_to_same_comdat_group): Likewise.
10231         (symtab_dissolve_same_comdat_group_list): Likewise.
10232         (dump_symtab_node): Likewise.
10233         (debug_symtab_node): Likewise.
10234         (dump_symtab_base): Likewise.
10235         (verify_symtab_node): Likewise.
10236         (verify_symtab_base): Likewise.
10237         (symtab_used_from_object_file_p): Likewise.
10238         (symtab_alias_ultimate_target): Likewise.
10239         (symtab_resolve_alias): Likewise.
10240         (fixup_same_cpp_alias_visibility): Likewise.
10241         (symtab_for_node_and_aliases): Likewise.
10242         (symtab_nonoverwritable_alias): Likewise.
10243         (availability symtab_node_availability): Likewise.
10244         (symtab_semantically_equivalent_p): Likewise.
10245         (fixup_same_cpp_alias_visibility): Likewise.
10246         (symtab_prevail_in_asm_name_hash): Likewise.
10247         (cgraph): Likewise.
10248         (varpool): Likewise.
10249         (varpool_first_variable): Likewise.
10250         (varpool_next_variable): Likewise.
10251         (varpool_first_static_initializer): Likewise.
10252         (varpool_next_static_initializer): Likewise.
10253         (varpool_first_defined_variable): Likewise.
10254         (varpool_next_defined_variable): Likewise.
10255         (cgraph_first_defined_function): Likewise.
10256         (cgraph_next_defined_function): Likewise.
10257         (cgraph_first_function): Likewise.
10258         (cgraph_next_function): Likewise.
10259         (cgraph_first_function_with_gimple_body): Likewise.
10260         (cgraph_next_function_with_gimple_body): Likewise.
10261         (symtab_alias_target): Likewise.
10262         (symtab_real_symbol_p): Likewise.
10263         (symtab_can_be_discarded): Likewise.
10264         * cgraphbuild.c (mark_address): Likewise.
10265         (mark_load): Likewise.
10266         (mark_store): Likewise.
10267         * cgraphunit.c (decide_is_symbol_needed): Likewise.
10268         (first): Likewise.
10269         (enqueue_node): Likewise.
10270         (referred_to_p): Likewise.
10271         (cgraph_process_same_body_aliases): Likewise.
10272         (analyze_functions): Likewise.
10273         (handle_alias_pairs): Likewise.
10274         (output_weakrefs): Likewise.
10275         (compile): Likewise.
10276         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
10277         * ipa-inline-analysis.c (inline_write_summary): Likewise.
10278         * ipa-prop.c (remove_described_reference): Likewise.
10279         (try_decrement_rdesc_refcount): Likewise.
10280         (ipa_edge_duplication_hook): Likewise.
10281         * ipa-ref.c (ipa_record_reference): Likewise.
10282         (ipa_maybe_record_reference): Likewise.
10283         (ipa_clone_ref): Likewise.
10284         (ipa_clone_references): Likewise.
10285         (ipa_clone_referring): Likewise.
10286         (ipa_find_reference): Likewise.
10287         (ipa_remove_stmt_references): Likewise.
10288         (ipa_clear_stmts_in_references): Likewise.
10289         * ipa-ref.h (symtab_node_base): Likewise.
10290         (ipa_ref): Likewise.
10291         (ipa_record_reference): Likewise.
10292         (ipa_maybe_record_reference): Likewise.
10293         (ipa_clone_references): Likewise.
10294         (ipa_clone_referring): Likewise.
10295         (ipa_clone_ref): Likewise.
10296         (ipa_find_reference): Likewise.
10297         (ipa_remove_stmt_references): Likewise.
10298         (ipa_clear_stmts_in_references): Likewise.
10299         * ipa-reference.c (ipa_reference_write_optimization_summary):
10300         Likewise.
10301         * ipa.c (enqueue_node): Likewise.
10302         (process_references): Likewise.
10303         (walk_polymorphic_call_targets): Likewise.
10304         (symtab_remove_unreachable_nodes): Likewise.
10305         (address_taken_from_non_vtable_p): Likewise.
10306         (comdat_can_be_unshared_p_1): Likewise.
10307         (comdat_can_be_unshared_p): Likewise.
10308         (can_replace_by_local_alias): Likewise.
10309         (function_and_variable_visibility): Likewise.
10310         * is-a.h: Likewise (within example in comment).
10311         * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
10312         (lto_symtab_encoder_encode): Likewise.
10313         (lto_symtab_encoder_delete_node): Likewise.
10314         (lto_symtab_encoder_in_partition_p): Likewise.
10315         (lto_set_symtab_encoder_in_partition): Likewise.
10316         (output_refs): Likewise.
10317         (compute_ltrans_boundary): Likewise.
10318         (output_symtab): Likewise.
10319         (input_node): Likewise.
10320         (input_ref): Likewise.
10321         (input_edge): Likewise.
10322         (input_cgraph_1): Likewise.
10323         (input_refs): Likewise.
10324         (output_cgraph_opt_summary): Likewise.
10325         (input_node_opt_summary): Likewise.
10326         (input_cgraph_opt_section): Likewise.
10327         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
10328         Likewise.
10329         * lto-streamer-out.c (lto_output): Likewise.
10330         (output_symbol_p): Likewise.
10331         (produce_symtab): Likewise.
10332         * lto-streamer.h (lto_encoder_entry): Likewise.
10333         (lto_free_function_in_decl_state_for_node): Likewise.
10334         (lto_symtab_encoder_encode): Likewise.
10335         (lto_symtab_encoder_delete_node): Likewise.
10336         (lto_symtab_encoder_in_partition_p): Likewise.
10337         (lto_set_symtab_encoder_in_partition): Likewise.
10338         (lto_symtab_encoder_lookup): Likewise.
10339         (lsei_node): Likewise.
10340         (lto_symtab_encoder_deref): Likewise.
10341         * symtab.c (symtab_hash): Likewise.
10342         (assembler_name_hash): Likewise.
10343         (symtab_nodes): Likewise.
10344         (hash_node): Likewise.
10345         (eq_node): Likewise.
10346         (hash_node_by_assembler_name): Likewise.
10347         (eq_assembler_name): Likewise.
10348         (insert_to_assembler_name_hash): Likewise.
10349         (unlink_from_assembler_name_hash): Likewise.
10350         (symtab_prevail_in_asm_name_hash): Likewise.
10351         (symtab_register_node): Likewise.
10352         (symtab_insert_node_to_hashtable): Likewise.
10353         (symtab_unregister_node): Likewise.
10354         (symtab_get_node): Likewise.
10355         (symtab_remove_node): Likewise.
10356         (symtab_initialize_asm_name_hash): Likewise.
10357         (symtab_node_for_asm): Likewise.
10358         (symtab_add_to_same_comdat_group): Likewise.
10359         (symtab_dissolve_same_comdat_group_list): Likewise.
10360         (symtab_node_asm_name): Likewise.
10361         (symtab_node_name): Likewise.
10362         (dump_symtab_base): Likewise.
10363         (dump_symtab_node): Likewise.
10364         (dump_symtab): Likewise.
10365         (debug_symtab_node): Likewise.
10366         (verify_symtab_base): Likewise.
10367         (verify_symtab_node): Likewise.
10368         (verify_symtab): Likewise.
10369         (symtab_used_from_object_file_p): Likewise.
10370         (symtab_node_availability): Likewise.
10371         (symtab_alias_ultimate_target): Likewise.
10372         (fixup_same_cpp_alias_visibility): Likewise.
10373         (symtab_resolve_alias): Likewise.
10374         (symtab_for_node_and_aliases): Likewise.
10375         (symtab_for_node_and_aliases): Likewise.
10376         (symtab_nonoverwritable_alias_1): Likewise.
10377         (symtab_nonoverwritable_alias): Likewise.
10378         (symtab_semantically_equivalent_p): Likewise.
10379         * value-prof.c (init_node_map): Likewise.
10380         * varasm.c (find_decl): Likewise.
10381         * varpool.c (varpool_node_for_asm): Likewise.
10382         (varpool_remove_unreferenced_decls): Likewise.
10384 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
10386         Manual part of renaming of symtab_node_base to symtab_node.
10388         * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
10389         clashes with the preferred name for the base class.
10390         (const_symtab_node): Remove redundant typedef.
10392 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
10394         * optabs.c (expand_vec_perm): Avoid vector mode punning
10395         SUBREGs in SET_DEST.
10396         * expmed.c (store_bit_field_1): Likewise.
10397         * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
10398         vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
10399         vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
10400         * config/i386/i386.c (ix86_expand_vector_move_misalign,
10401         ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
10402         ix86_expand_sse_unpack, ix86_expand_args_builtin,
10403         ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
10404         emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
10405         expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
10406         expand_vec_perm_vpshufb2_vpermq,
10407         expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
10408         expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
10409         ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
10410         (expand_vec_perm_palignr): Likewise.  Modify a copy of *d rather
10411         than *d itself.
10413 2013-10-31  Uros Bizjak  <ubizjak@gmail.com>
10415         * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
10416         Use gcc_unreachable for unhandled modes.  Do not check results of
10417         expand_simple_binop.  If not expanded to target, move the result.
10419 2013-10-31  Chung-Ju Wu  <jasonwucj@gmail.com>
10420             Shiva Chen  <shiva0217@gmail.com>
10422         * config.gcc (nds32*-*-*): Add nds32 target.
10423         * config/nds32/nds32.c: New file.
10424         * config/nds32/nds32.h: New file.
10425         * config/nds32/nds32.md: New file.
10426         * config/nds32/constants.md: New file.
10427         * config/nds32/constraints.md: New file.
10428         * config/nds32/iterators.md: New file.
10429         * config/nds32/nds32-doubleword.md: New file.
10430         * config/nds32/nds32-intrinsic.md: New file.
10431         * config/nds32/nds32_intrinsic.h: New file.
10432         * config/nds32/nds32-modes.def: New file.
10433         * config/nds32/nds32-multiple.md: New file.
10434         * config/nds32/nds32.opt: New file.
10435         * config/nds32/nds32-opts.h: New file.
10436         * config/nds32/nds32-protos.h: New file.
10437         * config/nds32/nds32-peephole2.md: New file.
10438         * config/nds32/pipelines.md: New file.
10439         * config/nds32/predicates.md: New file.
10440         * config/nds32/t-mlibs: New file.
10441         * common/config/nds32: New directory and files.
10443         * doc/invoke.texi (NDS32 options): Document nds32 specific options.
10444         * doc/md.texi (NDS32 family): Document nds32 specific constraints.
10445         * doc/install.texi (Cross-Compiler-Specific Options): Document
10446         --with-nds32-lib for nds32 target.
10447         * doc/extend.texi (Function Attributes, Target Builtins): Document
10448         nds32 specific attributes.
10450 2013-10-31  Vladimir Makarov  <vmakarov@redhat.com>
10452         * lra-constraints (process_alt_operands): Use the result
10453         elimination register for operand when matching constraints.
10455 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
10457         * tree-vrp.c (maybe_set_nonzero_bits): New function.
10458         (remove_range_assertions): Call it.
10460         * tree.c (tree_ctz): New function.
10461         * tree.h (tree_ctz): New prototype.
10462         * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
10463         first argument from tree to const_tree.
10464         * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
10465         * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
10466         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
10467         static.
10468         * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
10469         * tree-vect-loop.c (vect_analyze_loop_operations,
10470         vect_transform_loop): Don't force scalar loop for bound just because
10471         number of iterations is unknown, only do it if it is not known to be
10472         a multiple of vectorization_factor.
10473         * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
10475         * gimple-pretty-print.c (dump_ssaname_info): Print newline also
10476         in case of VR_VARYING.  Print get_nonzero_bits if not all ones.
10477         * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
10478         (set_nonzero_bits, get_nonzero_bits): New prototypes.
10479         * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
10480         a default def isn't partially constant.
10481         (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
10482         is known to be partially zero.
10483         (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
10484         to see if a default def isn't partially constant.
10485         * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
10486         creation of a range, if VR_RANGE, try to improve nonzero_bits from
10487         the range.
10488         (set_nonzero_bits, get_nonzero_bits): New functions.
10490         * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
10491         * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
10492         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
10493         (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
10494         uses but in the condition and ASSERT_EXPR and the other successor of
10495         the predecessor bb is __builtin_unreachable (), set_range_info of the
10496         ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
10498 2013-10-31  Martin Jambor  <mjambor@suse.cz>
10500         PR rtl-optimization/58934
10501         Revert:
10502         2013-10-30  Martin Jambor  <mjambor@suse.cz>
10503         PR rtl-optimization/10474
10504         * ira.c (find_moveable_pseudos): Do not calculate dominance info
10505         nor df analysis.
10506         (interesting_dest_for_shprep): New function.
10507         (split_live_ranges_for_shrink_wrap): Likewise.
10508         (ira): Calculate dominance info and df analysis. Call
10509         split_live_ranges_for_shrink_wrap.
10511 2013-10-31  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
10512             Yury Gribov  <y.gribov@samsung.com>
10514         PR sanitizer/58543
10515         * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
10516         shadow pointer to avoid clobbering the main one.
10518 2013-10-31  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
10520         * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
10522 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
10524         PR bootstrap/58933
10525         * ira-color.c (update_costs_from_copies): Add new parameter.  Use
10526         it for calling update_costs_from_allocno.
10527         (assign_hard_reg): Call restore_costs_from_copies only for
10528         !retry_p.  Pass new argument to update_costs_from_copies.
10529         (color_pass): Pass new argument to update_costs_from_copies.
10530         (ira_mark_allocation_change): Ditto.
10532 2013-10-30  Sharad Singhai  <singhai@google.com>
10534         PR middle-end/58134
10535         * opts.c (common_handle_option): Remove deprecated option
10536         -ftree-vectorizer-verbose.
10537         * doc/invoke.texi (Debugging Options): Ditto.
10538         * opts-global.c (handle_common_deferred_options): Ditto.
10539         (dump_remap_tree_vectorizer_verbose): Delete.
10540         * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
10542 2013-10-30  DJ Delorie  <dj@redhat.com>
10544         * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
10545         that take no arguments.
10547 2013-10-30  Joern Rennecke  <joern.rennecke@embecosm.com>
10549         PR other/58545
10550         * reload1.c (update_eliminables_and_spill): New function, broken
10551         out of reload.
10552         (reload): Use it.  Check for frame size change after frame size
10553         alignment, and call update_eliminables_and_spill first if continue-ing.
10555 2013-10-30  Cong Hou  <congh@google.com>
10557         PR target/58762
10558         * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
10559         * config/i386/i386.c (ix86_expand_sse2_abs): New function.
10560         * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
10562 2013-10-18  Mikael Pettersson  <mikpelinux@gmail.com>
10564         PR rtl-optimization/58369
10565         * reload1.c (compute_reload_subreg_offset): New function.
10566         (choose_reload_regs): Use it to pass endian-correct
10567         offset to subreg_regno_offset.
10569 2013-10-30  Tobias Burnus  <burnus@net-b.de>
10571         PR other/33426
10572         * tree-cfg.c (replace_loop_annotate): Replace warning by
10573         warning_at.
10575 2013-10-30  Jason Merrill  <jason@redhat.com>
10577         * configure.ac (loose_warn): Add -Wno-format if
10578         --disable-build-format-warnings.
10580 2013-10-30  David Malcolm  <dmalcolm@redhat.com>
10582         * cgraphunit.c (analyze_functions): Split symtab_node declarations
10583         onto multiple lines to make things easier for rename_symtab.py.
10585         * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
10586         (symtab_semantically_equivalent_p): Likewise.
10588 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
10590         PR target/58784
10591         * lra.c (check_rtl): Remove address check before LRA work.
10593 2013-10-30  Marc Glisse  <marc.glisse@inria.fr>
10595         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
10596         POINTER_PLUS_EXPR in the defining statement.
10598 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
10600         * regmove.c: Remove.
10601         * tree-pass.h (make_pass_regmove): Remove.
10602         * timevar.def (TV_REGMOVE): Remove.
10603         * passes.def (pass_regmove): Remove.
10604         * opts.c (default_options_table): Remove entry for regmove.
10605         * doc/passes.texi: Remove regmove pass description.
10606         * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
10607         options.
10608         (-fdump-rtl-regmove): Ditto.
10609         * common.opt (foptimize-register-move, fregmove): Ignore.
10610         * Makefile.in (OBJS): Remove regmove.o.
10611         * regmove.c: Remove.
10612         * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
10613         and type.
10614         (struct ira_allocno) New member allocno_prefs.
10615         (ALLOCNO_PREFS): New macro.
10616         (ira_prefs, ira_prefs_num): New external vars.
10617         (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
10618         (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
10619         (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
10620         Ditto.
10621         (ira_add_allocno_copy_to_list): Remove prototype.
10622         (ira_swap_allocno_copy_ends_if_necessary): Ditto.
10623         (ira_pref_iterator): New type.
10624         (ira_pref_iter_init, ira_pref_iter_cond): New functions.
10625         (FOR_EACH_PREF): New macro.
10626         * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
10627         (ira_get_dup_out_num): Ditto. Rename from get_dup_num.  Modify the
10628         code.
10629         (ira_setup_alts): New function.
10630         (decrease_live_ranges_number): New function.
10631         (ira): Call the above function.
10632         * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
10633         (ira_create_allocno): Initialize allocno prefs.
10634         (pref_pool, pref_vec): New static vars.
10635         (initiate_prefs, find_allocno_pref, ira_create_pref): New
10636         functions.
10637         (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
10638         (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
10639         (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
10640         (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
10641         (ira_add_allocno_copy_to_list): Make static.  Rename to
10642         add_allocno_copy_to_list.
10643         (ira_swap_allocno_copy_ends_if_necessary): Make static.  Rename to
10644         swap_allocno_copy_ends_if_necessary.
10645         (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
10646         ira_remove_allocno_prefs.
10647         (ira_flattening): Ditto.
10648         (ira_build): Call initiate_prefs, print_prefs.
10649         (ira_destroy): Call finish_prefs.
10650         * ira-color.c (struct update_cost_record): New.
10651         (struct allocno_color_data): Add new member update_cost_records.
10652         (update_cost_record_pool): New static var.
10653         (init_update_cost_records, get_update_cost_record): New functions.
10654         (free_update_cost_record_list, finish_update_cost_records): Ditto.
10655         (struct update_cost_queue_elem): Add member from.
10656         (initiate_cost_update): Call init_update_cost_records.
10657         (finish_cost_update): Call finish_update_cost_records.
10658         (queue_update_cost, get_next_update_cost): Add new param from.
10659         (Update_allocno_cost, update_costs_from_allocno): New functions.
10660         (update_costs_from_prefs): Ditto.
10661         (update_copy_costs): Rename to update_costs_from_copies.
10662         (restore_costs_from_copies): New function.
10663         (update_conflict_hard_regno_costs): Don't go back.
10664         (assign_hard_reg): Call restore_costs_from_copies.  Add printing
10665         more debug info.
10666         (pop_allocnos): Add priniting more debug info.
10667         (color_allocnos): Remove prefs for conflicting hard regs.
10668         Call update_costs_from_prefs.
10669         * ira-conflicts.c (commutative_constraint_p): Move to ira.c
10670         (get_dup_num): Rename, modify, and move to ira.c
10671         (process_regs_for_copy): Add prefs.
10672         (add_insn_allocno_copies): Put src as first arg of
10673         process_regs_for_copy.  Remove dead code.  Call ira_setup_alts.
10674         * ira-costs.c (record_reg_classes): Modify and move code into
10675         record_operands_costs.
10676         (find_costs_and_classes): Create prefs for the hard reg of small
10677         reg class.
10678         (process_bb_node_for_hard_reg_moves): Add prefs.
10680 2013-10-30  Richard Biener  <rguenther@suse.de>
10682         PR middle-end/57100
10683         * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
10684         * cfganal.c (pre_and_rev_post_order_compute_fn): New function
10685         as worker for ...
10686         (pre_and_rev_post_order_compute): ... which now wraps it.
10687         * graph.c (draw_cfg_nodes_no_loops): Use
10688         pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
10689         on cfun.
10691 2013-10-30  Christian Bruel  <christian.bruel@st.com>
10693         * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
10694         (sh_expand_cmpstr): Handle known align and schedule improvements.
10695         * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
10696         * config/sh/sh.md (cmpstrnsi): New pattern.
10698 2013-10-30  Martin Jambor  <mjambor@suse.cz>
10700         PR rtl-optimization/10474
10701         * ira.c (find_moveable_pseudos): Do not calculate dominance info
10702         nor df analysis.
10703         (interesting_dest_for_shprep): New function.
10704         (split_live_ranges_for_shrink_wrap): Likewise.
10705         (ira): Calculate dominance info and df analysis. Call
10706         split_live_ranges_for_shrink_wrap.
10708 2013-10-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10710         PR target/58854
10711         * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
10713 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
10715         * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
10716         * tree.h (POINTER_BOUNDS_P): New.
10717         (BOUNDED_TYPE_P): New.
10718         (BOUNDED_P): New.
10719         (pointer_bounds_type_node): New.
10720         * tree.c (build_common_tree_nodes): Initialize
10721         pointer_bounds_type_node.
10722         * gimple.h (gimple_call_get_nobnd_arg_index): New.
10723         (gimple_call_num_nobnd_args): New.
10724         (gimple_call_nobnd_arg): New.
10725         (gimple_return_retbnd): New.
10726         (gimple_return_set_retbnd): New
10727         * gimple.c (gimple_build_return): Increase number of ops
10728         for return statement.
10729         (gimple_call_get_nobnd_arg_index): New.
10730         * gimple-pretty-print.c (dump_gimple_return): Print second op.
10732 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
10734         * ipa.c (cgraph_build_static_cdtor_1): Support contructors
10735         with "chkp ctor" and "bnd_legacy" attributes.
10736         * gimplify.c (gimplify_init_constructor): Avoid infinite
10737         loop during gimplification of bounds initializer.
10739 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
10741         * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
10742         (handle_bnd_legacy): New.
10743         (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
10744         * doc/extend.texi: Document bnd_variable_size and bnd_legacy
10745         attributes.
10747 2013-10-29  Ilya Enkovich  <ilya.enkovich@intel.com>
10749         * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
10750         (BT_FN_PTR_CONST_PTR): New.
10751         (BT_FN_CONST_PTR_CONST_PTR): New.
10752         (BT_FN_PTR_CONST_PTR_SIZE): New.
10753         (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
10754         (BT_FN_VOID_PTRPTR_CONST_PTR): New.
10755         (BT_FN_VOID_CONST_PTR_SIZE): New.
10756         (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
10757         * chkp-builtins.def: New.
10758         * builtins.def: include chkp-builtins.def.
10759         (DEF_CHKP_BUILTIN): New.
10760         * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
10761         BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
10762         BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
10763         BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
10764         BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
10765         BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
10766         BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
10767         BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
10768         BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
10769         BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
10770         * common.opt (fcheck-pointer-bounds): New.
10771         * toplev.c (process_options): Check Pointer Bounds Checker is
10772         supported.
10773         * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
10775 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
10777         * target.def (builtin_chkp_function): New.
10778         (chkp_bound_type): New.
10779         (chkp_bound_mode): New.
10780         (fn_abi_va_list_bounds_size): New.
10781         (load_bounds_for_arg): New.
10782         (store_bounds_for_arg): New.
10783         * targhooks.h (default_load_bounds_for_arg): New.
10784         (default_store_bounds_for_arg): New.
10785         (default_fn_abi_va_list_bounds_size): New.
10786         (default_chkp_bound_type): New.
10787         (default_chkp_bound_mode): New.
10788         (default_builtin_chkp_function): New.
10789         * targhooks.c (default_load_bounds_for_arg): New.
10790         (default_store_bounds_for_arg): New.
10791         (default_fn_abi_va_list_bounds_size): New.
10792         (default_chkp_bound_type): New.
10793         (default_chkp_bound_mode); New.
10794         (default_builtin_chkp_function): New.
10795         * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
10796         (TARGET_LOAD_BOUNDS_FOR_ARG): New.
10797         (TARGET_STORE_BOUNDS_FOR_ARG): New.
10798         (TARGET_BUILTIN_CHKP_FUNCTION): New.
10799         (TARGET_CHKP_BOUND_TYPE): New.
10800         (TARGET_CHKP_BOUND_MODE): New.
10801         * doc/tm.texi: Regenerated.
10802         * langhooks.h (lang_hooks): Add chkp_supported field.
10803         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
10804         (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
10806 2013-10-29  Andrew Pinski <apinski@cavium.com>
10808         * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
10809         (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
10810         fails, combining the branches anyways.
10811         (tree_ssa_ifcombine): Inverse the order of the basic block walk,
10812         increases the number of combinings.
10813         * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
10815 2013-10-29  Mike Stump  <mikestump@comcast.net>
10817         * machmode.def (PARTIAL_INT_MODE): Add precision and name.
10818         * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
10819         (make_vector_mode): Increase namebuf to 16.
10820         (emit_insn_modes_h): When processing BImode, don't
10821         also match partial int modes.
10822         (emit_class_narrowest_mode): Likewise.
10824         * config/bfin/bfin-modes.def: Add precision to PDI.
10825         * config/m32c/m32c-modes.def: Add precision to PSI.
10826         * config/msp430/msp430-modes.def: Add precision to PSI.
10827         * config/rs6000/rs6000-modes.def: Add precision to PTI.
10828         * config/sh/sh-modes.def: Add precision to PSI and PDI.
10830 2013-10-29  Oleg Endo  <olegendo@gcc.gnu.org>
10832         PR target/54236
10833         * config/sh/sh.md (*addc): Rename existing variations to ...
10834         (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
10835         (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
10836         *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
10837         * config/sh/sh.c (addsubcosts): Handle some addc special cases.
10839 2013-10-29  Teresa Johnson  <tejohnson@google.com>
10841         PR ipa/58862
10842         * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
10843         insanities when updating probabilities.
10845 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
10847         * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
10848         prettyprinter for cgraph_node to reflect the conversion of the
10849         symtable types to a C++ class hierarchy: it now *is* a
10850         symtab_node_base, rather than having one (named "symbol").
10852 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
10854         * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
10855         __cilkrts_pop_frame.  If matched, then return true for built-in
10856         function name.
10857         (expand_builtin): Added BUILT_IN_CILK_DETACH and
10858         BUILT_IN_CILK_POP_FRAME case.
10859         * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
10860         (lhs_cilk_detect_spawn): Likewise.
10861         (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
10862         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
10863         (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
10864         (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
10865         (LANG_HOOKS_CILKPLUS): Likewise.
10866         * tree.h (CILK_SPAWN_FN): Likewise.
10867         * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
10868         * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
10869         (OBJS): Added cilk-common.o.
10870         (BUILTINS_DEF): Added cilk-builtins.def.
10871         * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
10872         (lhd_cilk_detect_spawn): Likewise.
10873         * langhooks.h (lang_hooks_for_cilkplus): New struct.
10874         (struct lang_hooks): Added new field called "cilkplus."
10875         * cilk-common.c: New file.
10876         * cilk.h: Likewise.
10877         * cilk-builtins.def: Likewise.
10878         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
10879         "__cilk" macro and set it to 200.
10880         * function.h (struct function::cilk_frame_decl): New field.
10881         (struct function::is_cilk_function): Likewise.
10882         (struct function::calls_cilk_spawn): Likewise.
10883         * gimplify.c (gimplify_call_expr): Added a check if the function call
10884         being gimplified is a spawn detach point.  If so, then add pop_frame
10885         and detach function calls.
10886         (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
10887         for gimplifying _Cilk_spawn and _Cilk_sync statements.
10888         (gimplify_return_expr): Added a check for _Cilk_spawn usage in
10889         function.  If so, added a _Cilk_sync and gimplified it.
10890         (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
10891         INIT_EXPRs.  If so, then call gimplify_cilk_spawn.
10892         * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
10893         spawner function.
10894         (can_inline_edge_p): Prevent inling of spawnee function.
10895         * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
10896         for functions that use Cilk keywords.
10897         * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
10898         * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
10899         CILK_SYNC_STMT cases.
10900         * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
10901         trees.
10902         * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
10903         (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
10904         * passes.texi (Cilk Keywords): New section that describes the compiler
10905         code changes for handling Cilk Keywords.
10907 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
10909         Patch autogenerated by refactor_symtab.py from
10910         https://github.com/davidmalcolm/gcc-refactoring-scripts
10911         revision 58bb219cc090b2f4516a9297d868c245495ee622
10913         * asan.c (asan_finish_file): Update for conversion of symtab types to
10914         a true class hierarchy.
10915         * cfgexpand.c (estimated_stack_frame_size): Likewise.
10916         * cgraph.c (cgraph_get_body): Likewise.
10917         (cgraph_get_create_real_symbol_node): Likewise.
10918         (verify_cgraph_node): Likewise.
10919         (verify_edge_corresponds_to_fndecl): Likewise.
10920         (verify_edge_count_and_frequency): Likewise.
10921         (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
10922         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
10923         (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
10924         (cgraph_node_cannot_return): Likewise.
10925         (cgraph_set_pure_flag_1): Likewise.
10926         (cgraph_set_const_flag_1): Likewise.
10927         (cgraph_set_nothrow_flag_1): Likewise.
10928         (cgraph_make_node_local_1): Likewise.
10929         (cgraph_for_node_and_aliases): Likewise.
10930         (cgraph_for_node_thunks_and_aliases): Likewise.
10931         (cgraph_node_can_be_local_p): Likewise.
10932         (cgraph_node_cannot_be_local_p_1): Likewise.
10933         (cgraph_function_body_availability): Likewise.
10934         (dump_cgraph_node): Likewise.
10935         (cgraph_rtl_info): Likewise.
10936         (cgraph_mark_address_taken_node): Likewise.
10937         (cgraph_remove_node): Likewise.
10938         (cgraph_release_function_body): Likewise.
10939         (cgraph_update_edges_for_call_stmt_node): Likewise.
10940         (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
10941         (cgraph_make_edge_direct): Likewise.
10942         (cgraph_resolve_speculation): Likewise.
10943         (cgraph_speculative_call_info): Likewise.
10944         (cgraph_turn_edge_to_speculative): Likewise.
10945         (cgraph_create_edge_1): Likewise.
10946         (cgraph_set_call_stmt): Likewise.
10947         (cgraph_node_for_asm): Likewise.
10948         (cgraph_add_thunk): Likewise.
10949         (cgraph_same_body_alias): Likewise.
10950         (cgraph_create_function_alias): Likewise.
10951         (cgraph_create_node): Likewise.
10952         (cgraph_create_empty_node): Likewise.
10953         (record_function_versions): Likewise.
10954         (used_from_object_file_p): Likewise.
10955         * cgraph.h (symtab_can_be_discarded): Likewise.
10956         (symtab_real_symbol_p): Likewise.
10957         (cgraph_mark_force_output_node): Likewise.
10958         (cgraph_edge_recursive_p): Likewise.
10959         (symtab_alias_target): Likewise.
10960         (varpool_all_refs_explicit_p): Likewise.
10961         (varpool_can_remove_if_no_refs): Likewise.
10962         (cgraph_only_called_directly_or_aliased_p): Likewise.
10963         (cgraph_next_function_with_gimple_body): Likewise.
10964         (cgraph_first_function_with_gimple_body): Likewise.
10965         (cgraph_function_with_gimple_body_p): Likewise.
10966         (cgraph_next_function): Likewise.
10967         (cgraph_first_function): Likewise.
10968         (cgraph_next_defined_function): Likewise.
10969         (cgraph_first_defined_function): Likewise.
10970         (varpool_next_defined_variable): Likewise.
10971         (varpool_first_defined_variable): Likewise.
10972         (varpool_next_static_initializer): Likewise.
10973         (varpool_first_static_initializer): Likewise.
10974         (varpool_next_variable): Likewise.
10975         (varpool_first_variable): Likewise.
10976         (varpool_node_name): Likewise.
10977         (varpool): Likewise.
10978         (cgraph): Likewise.
10979         (is_a_helper <varpool_node>::test): Likewise.
10980         (is_a_helper <cgraph_node>::test): Likewise.
10981         (varpool_variable_node): Likewise.
10982         (cgraph_function_or_thunk_node): Likewise.
10983         (varpool_alias_target): Likewise.
10984         (cgraph_alias_target): Likewise.
10985         (cgraph_node_name): Likewise.
10986         (varpool_node_asm_name): Likewise.
10987         (cgraph_node_asm_name): Likewise.
10988         * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
10989         (cgraph_rebuild_references): Likewise.
10990         (rebuild_cgraph_edges): Likewise.
10991         (record_eh_tables): Likewise.
10992         (build_cgraph_edges): Likewise.
10993         (mark_store): Likewise.
10994         (mark_load): Likewise.
10995         (mark_address): Likewise.
10996         (record_type_list): Likewise.
10997         (record_reference): Likewise.
10998         * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
10999         (cgraph_materialize_clone): Likewise.
11000         (cgraph_function_versioning): Likewise.
11001         (cgraph_copy_node_for_versioning): Likewise.
11002         (update_call_expr): Likewise.
11003         (cgraph_find_replacement_node): Likewise.
11004         (cgraph_create_virtual_clone): Likewise.
11005         (cgraph_clone_node): Likewise.
11006         * cgraphunit.c (compile): Likewise.
11007         (output_weakrefs): Likewise.
11008         (output_in_order): Likewise.
11009         (expand_function): Likewise.
11010         (assemble_thunks_and_aliases): Likewise.
11011         (expand_thunk): Likewise.
11012         (mark_functions_to_output): Likewise.
11013         (handle_alias_pairs): Likewise.
11014         (analyze_functions): Likewise.
11015         (walk_polymorphic_call_targets): Likewise.
11016         (varpool_finalize_decl): Likewise.
11017         (process_function_and_variable_attributes): Likewise.
11018         (cgraph_process_same_body_aliases): Likewise.
11019         (analyze_function): Likewise.
11020         (cgraph_add_new_function): Likewise.
11021         (cgraph_finalize_function): Likewise.
11022         (referred_to_p): Likewise.
11023         (cgraph_reset_node): Likewise.
11024         (cgraph_process_new_functions): Likewise.
11025         (enqueue_node): Likewise.
11026         (decide_is_symbol_needed): Likewise.
11027         * coverage.c (coverage_compute_profile_id): Likewise.
11028         * dbxout.c (dbxout_expand_expr): Likewise.
11029         * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
11030         (reference_to_unused): Likewise.
11031         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
11032         * gimplify.c (unvisit_body): Likewise.
11033         (unshare_body): Likewise.
11034         * ipa-cp.c (ipcp_generate_summary): Likewise.
11035         (ipcp_decision_stage): Likewise.
11036         (identify_dead_nodes): Likewise.
11037         (decide_whether_version_node): Likewise.
11038         (decide_about_value): Likewise.
11039         (perhaps_add_new_callers): Likewise.
11040         (create_specialized_node): Likewise.
11041         (update_profiling_info): Likewise.
11042         (ipcp_propagate_stage): Likewise.
11043         (estimate_local_effects): Likewise.
11044         (good_cloning_opportunity_p): Likewise.
11045         (devirtualization_time_bonus): Likewise.
11046         (propagate_constants_accross_call): Likewise.
11047         (initialize_node_lattices): Likewise.
11048         (ipcp_cloning_candidate_p): Likewise.
11049         (determine_versionability): Likewise.
11050         (print_all_lattices): Likewise.
11051         (print_lattice): Likewise.
11052         (ipcp_discover_new_direct_edges): Likewise.
11053         * ipa-devirt.c (ipa_devirt): Likewise.
11054         (likely_target_p): Likewise.
11055         (update_type_inheritance_graph): Likewise.
11056         (possible_polymorphic_call_target_p): Likewise.
11057         (dump_possible_polymorphic_call_targets): Likewise.
11058         (devirt_variable_node_removal_hook): Likewise.
11059         (record_binfo): Likewise.
11060         (maybe_record_node): Likewise.
11061         (build_type_inheritance_graph): Likewise.
11062         * ipa-inline-analysis.c (inline_write_summary): Likewise.
11063         (inline_generate_summary): Likewise.
11064         (inline_analyze_function): Likewise.
11065         (do_estimate_growth): Likewise.
11066         (simple_edge_hints): Likewise.
11067         (estimate_node_size_and_time): Likewise.
11068         (estimate_edge_devirt_benefit): Likewise.
11069         (compute_inline_parameters): Likewise.
11070         (estimate_function_body_sizes): Likewise.
11071         (compute_bb_predicates): Likewise.
11072         (initialize_inline_failed): Likewise.
11073         (dump_inline_summary): Likewise.
11074         (dump_inline_edge_summary): Likewise.
11075         * ipa-inline-transform.c (inline_transform): Likewise.
11076         (preserve_function_body_p): Likewise.
11077         (save_inline_function_body): Likewise.
11078         (inline_call): Likewise.
11079         (clone_inlined_nodes): Likewise.
11080         (can_remove_node_now_p): Likewise.
11081         (can_remove_node_now_p_1): Likewise.
11082         * ipa-inline.c (early_inliner): Likewise.
11083         (early_inline_small_functions): Likewise.
11084         (inline_always_inline_functions): Likewise.
11085         (ipa_inline): Likewise.
11086         (flatten_function): Likewise.
11087         (inline_small_functions): Likewise.
11088         (speculation_useful_p): Likewise.
11089         (recursive_inlining): Likewise.
11090         (update_caller_keys): Likewise.
11091         (reset_edge_caches): Likewise.
11092         (update_edge_key): Likewise.
11093         (edge_badness): Likewise.
11094         (relative_time_benefit): Likewise.
11095         (want_inline_self_recursive_call_p): Likewise.
11096         (want_inline_small_function_p): Likewise.
11097         (want_early_inline_function_p): Likewise.
11098         (num_calls): Likewise.
11099         (can_early_inline_edge_p): Likewise.
11100         (can_inline_edge_p): Likewise.
11101         (report_inline_failed_reason): Likewise.
11102         * ipa-profile.c (ipa_profile): Likewise.
11103         (ipa_propagate_frequency): Likewise.
11104         (ipa_propagate_frequency_1): Likewise.
11105         (ipa_profile_generate_summary): Likewise.
11106         * ipa-prop.c (ipcp_transform_function): Likewise.
11107         (read_replacements_section): Likewise.
11108         (ipa_prop_read_section): Likewise.
11109         (ipa_modify_call_arguments): Likewise.
11110         (ipa_print_node_params): Likewise.
11111         (propagate_controlled_uses): Likewise.
11112         (update_indirect_edges_after_inlining): Likewise.
11113         (remove_described_reference): Likewise.
11114         (ipa_make_edge_direct_to_target): Likewise.
11115         (ipa_analyze_node): Likewise.
11116         (ipa_analyze_params_uses): Likewise.
11117         (ipa_compute_jump_functions): Likewise.
11118         (ipa_get_callee_param_type): Likewise.
11119         (ipa_print_node_jump_functions): Likewise.
11120         (ipa_initialize_node_params): Likewise.
11121         (ipa_populate_param_decls): Likewise.
11122         (ipa_func_spec_opts_forbid_analysis_p): Likewise.
11123         (write_agg_replacement_chain): Likewise.
11124         (ipa_write_node_info): Likewise.
11125         (ipa_edge_duplication_hook): Likewise.
11126         (try_decrement_rdesc_refcount): Likewise.
11127         * ipa-pure-const.c (propagate_nothrow): Likewise.
11128         (propagate_pure_const): Likewise.
11129         (pure_const_read_summary): Likewise.
11130         (pure_const_write_summary): Likewise.
11131         (analyze_function): Likewise.
11132         * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
11133         (ipa_ref_referring_ref_list): Likewise.
11134         * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
11135         (ipa_remove_stmt_references): Likewise.
11136         (ipa_find_reference): Likewise.
11137         (ipa_dump_referring): Likewise.
11138         (ipa_dump_references): Likewise.
11139         (ipa_record_reference): Likewise.
11140         * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
11141         (ipa_reference_write_optimization_summary): Likewise.
11142         (write_node_summary_p): Likewise.
11143         (propagate): Likewise.
11144         (read_write_all_from_decl): Likewise.
11145         (generate_summary): Likewise.
11146         (analyze_function): Likewise.
11147         (propagate_bits): Likewise.
11148         (ipa_reference_get_not_written_global): Likewise.
11149         (ipa_reference_get_not_read_global): Likewise.
11150         * ipa-split.c (execute_split_functions): Likewise.
11151         (split_function): Likewise.
11152         * ipa-utils.c (ipa_merge_profiles): Likewise.
11153         (dump_cgraph_node_set): Likewise.
11154         (ipa_reverse_postorder): Likewise.
11155         (ipa_edge_within_scc): Likewise.
11156         (ipa_get_nodes_in_cycle): Likewise.
11157         (ipa_free_postorder_info): Likewise.
11158         (ipa_reduced_postorder): Likewise.
11159         (searchc): Likewise.
11160         (recursive_call_p): Likewise.
11161         * ipa.c (ipa_cdtor_merge): Likewise.
11162         (record_cdtor_fn): Likewise.
11163         (function_and_variable_visibility): Likewise.
11164         (varpool_externally_visible_p): Likewise.
11165         (cgraph_externally_visible_p): Likewise.
11166         (comdat_can_be_unshared_p): Likewise.
11167         (comdat_can_be_unshared_p_1): Likewise.
11168         (address_taken_from_non_vtable_p): Likewise.
11169         (ipa_discover_readonly_nonaddressable_vars): Likewise.
11170         (symtab_remove_unreachable_nodes): Likewise.
11171         (walk_polymorphic_call_targets): Likewise.
11172         (process_references): Likewise.
11173         (enqueue_node): Likewise.
11174         (has_addr_references_p): Likewise.
11175         (cgraph_non_local_node_p_1): Likewise.
11176         * is-a.h (varpool_analyze_node): Likewise.
11177         * lto-cgraph.c (input_symtab): Likewise.
11178         (merge_profile_summaries): Likewise.
11179         (input_cgraph_1): Likewise.
11180         (input_edge): Likewise.
11181         (input_varpool_node): Likewise.
11182         (input_node): Likewise.
11183         (input_overwrite_node): Likewise.
11184         (compute_ltrans_boundary): Likewise.
11185         (output_refs): Likewise.
11186         (lto_output_varpool_node): Likewise.
11187         (lto_output_node): Likewise.
11188         (reachable_from_other_partition_p): Likewise.
11189         (referenced_from_other_partition_p): Likewise.
11190         (lto_output_edge): Likewise.
11191         (output_node_opt_summary): Likewise.
11192         (add_node_to): Likewise.
11193         (reachable_from_this_partition_p): Likewise.
11194         (lto_set_symtab_encoder_in_partition): Likewise.
11195         (lto_symtab_encoder_in_partition_p): Likewise.
11196         (lto_set_symtab_encoder_encode_initializer): Likewise.
11197         (lto_symtab_encoder_encode_initializer_p): Likewise.
11198         (lto_set_symtab_encoder_encode_body): Likewise.
11199         (lto_symtab_encoder_encode_body_p): Likewise.
11200         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
11201         Likewise.
11202         * lto-streamer-in.c (lto_read_body): Likewise.
11203         (fixup_call_stmt_edges): Likewise.
11204         (fixup_call_stmt_edges_1): Likewise.
11205         * lto-streamer-out.c (produce_symtab): Likewise.
11206         (output_symbol_p): Likewise.
11207         (write_symbol): Likewise.
11208         (lto_output): Likewise.
11209         (copy_function): Likewise.
11210         (output_function): Likewise.
11211         * passes.c (function_called_by_processed_nodes_p): Likewise.
11212         (ipa_write_optimization_summaries): Likewise.
11213         (ipa_write_summaries): Likewise.
11214         (do_per_function_toporder): Likewise.
11215         (do_per_function): Likewise.
11216         (dump_passes): Likewise.
11217         * symtab.c (symtab_semantically_equivalent_p): Likewise.
11218         (symtab_nonoverwritable_alias): Likewise.
11219         (symtab_nonoverwritable_alias_1): Likewise.
11220         (symtab_for_node_and_aliases): Likewise.
11221         (symtab_resolve_alias): Likewise.
11222         (fixup_same_cpp_alias_visibility): Likewise.
11223         (symtab_alias_ultimate_target): Likewise.
11224         (symtab_used_from_object_file_p): Likewise.
11225         (verify_symtab_base): Likewise.
11226         (dump_symtab_base): Likewise.
11227         (symtab_node_name): Likewise.
11228         (symtab_node_asm_name): Likewise.
11229         (symtab_dissolve_same_comdat_group_list): Likewise.
11230         (symtab_add_to_same_comdat_group): Likewise.
11231         (symtab_unregister_node): Likewise.
11232         (symtab_insert_node_to_hashtable): Likewise.
11233         (symtab_register_node): Likewise.
11234         (unlink_from_assembler_name_hash): Likewise.
11235         (insert_to_assembler_name_hash): Likewise.
11236         (eq_assembler_name): Likewise.
11237         (hash_node_by_assembler_name): Likewise.
11238         (eq_node): Likewise.
11239         (hash_node): Likewise.
11240         * toplev.c (wrapup_global_declaration_2): Likewise.
11241         * trans-mem.c (ipa_tm_execute): Likewise.
11242         (ipa_tm_transform_clone): Likewise.
11243         (ipa_tm_transform_transaction): Likewise.
11244         (ipa_tm_transform_calls_redirect): Likewise.
11245         (ipa_tm_insert_gettmclone_call): Likewise.
11246         (ipa_tm_insert_irr_call): Likewise.
11247         (ipa_tm_create_version): Likewise.
11248         (ipa_tm_create_version_alias): Likewise.
11249         (ipa_tm_mark_forced_by_abi_node): Likewise.
11250         (ipa_tm_mark_force_output_node): Likewise.
11251         (ipa_tm_diagnose_tm_safe): Likewise.
11252         (ipa_tm_mayenterirr_function): Likewise.
11253         (ipa_tm_scan_irr_function): Likewise.
11254         (ipa_tm_note_irrevocable): Likewise.
11255         (ipa_tm_scan_calls_clone): Likewise.
11256         (get_cg_data): Likewise.
11257         * tree-eh.c (tree_could_trap_p): Likewise.
11258         * tree-emutls.c (ipa_lower_emutls): Likewise.
11259         (create_emultls_var): Likewise.
11260         (lower_emutls_function_body): Likewise.
11261         (gen_emutls_addr): Likewise.
11262         (emutls_decl): Likewise.
11263         (new_emutls_decl): Likewise.
11264         * tree-inline.c (tree_function_versioning): Likewise.
11265         (optimize_inline_calls): Likewise.
11266         (expand_call_inline): Likewise.
11267         (estimate_num_insns): Likewise.
11268         (copy_bb): Likewise.
11269         (delete_unreachable_blocks_update_callgraph): Likewise.
11270         * tree-nested.c (gimplify_all_functions): Likewise.
11271         (create_nesting_tree): Likewise.
11272         (check_for_nested_with_variably_modified): Likewise.
11273         * tree-pretty-print.c (dump_function_header): Likewise.
11274         * tree-profile.c (tree_profiling): Likewise.
11275         * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
11276         (modify_function): Likewise.
11277         (convert_callers): Likewise.
11278         (convert_callers_for_node): Likewise.
11279         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
11280         (associate_varinfo_to_alias): Likewise.
11281         (create_variable_info_for): Likewise.
11282         (get_constraint_for_ssa_var): Likewise.
11283         * tree-vectorizer.c (increase_alignment): Likewise.
11284         * tree.c (find_decls_types_in_var): Likewise.
11285         (find_decls_types_in_node): Likewise.
11286         (free_lang_data_in_decl): Likewise.
11287         * value-prof.c (gimple_ic_transform): Likewise.
11288         (gimple_ic): Likewise.
11289         (check_ic_target): Likewise.
11290         (init_node_map): Likewise.
11291         * varasm.c (decl_binds_to_current_def_p): Likewise.
11292         (default_binds_local_p_1): Likewise.
11293         (dump_tm_clone_pairs): Likewise.
11294         (assemble_alias): Likewise.
11295         (find_decl): Likewise.
11296         (mark_decl_referenced): Likewise.
11297         * varpool.c (varpool_for_node_and_aliases): Likewise.
11298         (varpool_extra_name_alias): Likewise.
11299         (varpool_create_variable_alias): Likewise.
11300         (add_new_static_var): Likewise.
11301         (varpool_finalize_named_section_flags): Likewise.
11302         (varpool_remove_unreferenced_decls): Likewise.
11303         (enqueue_node): Likewise.
11304         (varpool_assemble_decl): Likewise.
11305         (assemble_aliases): Likewise.
11306         (varpool_analyze_node): Likewise.
11307         (cgraph_variable_initializer_availability): Likewise.
11308         (varpool_add_new_variable): Likewise.
11309         (ctor_for_folding): Likewise.
11310         (dump_varpool_node): Likewise.
11311         (varpool_remove_initializer): Likewise.
11312         (varpool_remove_node): Likewise.
11313         (varpool_node_for_decl): Likewise.
11314         (varpool_create_empty_node): Likewise.
11315         * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
11316         (ix86_get_function_versions_dispatcher): Likewise.
11318 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
11320         * cgraph.h (symtab_node_base): Convert to a class;
11321         add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
11322         chain_next/prev from symtab_node_def.
11323         (cgraph_node): Inherit from symtab_node; add GTY option
11324         tag ("SYMTAB_FUNCTION").
11325         (varpool_node): Inherit from symtab_node; add GTY option
11326         tag ("SYMTAB_VARIABLE").
11327         (symtab_node_def): Remove.
11328         (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
11329         (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
11330         (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
11331         (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
11333         * ipa-ref.h (symtab_node_def): Drop.
11334         (symtab_node): Change underlying type from symtab_node_def to
11335         symtab_node_base.
11336         (const_symtab_node): Likwise.
11338         * is-a.h: Update examples in comment.
11340         * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
11341         (assembler_name_hash): Likewise.
11343 2013-10-29  Martin Liska  <marxin.liska@gmail.com>
11345         * doc/tree-ssa.texi (gimple_phi_result): Document.
11346         (gimple_phi_num_args, gimple_phi_arg): Likewise.
11347         (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
11348         (PHI_RESULT, PHI_NUM_ARGS): Remove.
11349         (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
11351 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
11353         * expr.h: Revert change and include tree-core.h.
11354         * rtl.h: Revert change and don't include tree-core.h.
11356 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
11358         * config/darwin.c: Include gimple.h.
11359         * config/i386/winnt.c: Likewise.
11361 2013-10-29  Marc Glisse  <marc.glisse@inria.fr>
11363         PR tree-optimization/19831
11364         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
11366 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
11368         * tree-outof-ssa.h: Remove include files.
11369         * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
11370         * expr.c: Likewise.
11371         * tree-ssa-coalesce.c: Likewise.
11372         * cfgexpand.c: Likewise.
11373         * tree-ssa-ter.c: Likewise.
11374         * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
11375         * lto-streamer.h: Likewise.
11376         * cgraphbuild.c: Add gimple.h to include list.
11377         * data-streamer-in.c: Likewise.
11378         * ipa-cp.c: Likewise.
11379         * tree-streamer.c: Likewise.
11380         * lto-compress.c: Likewise.
11381         * ipa-reference.c: Likewise.
11382         * data-streamer-out.c: Likewise.
11383         * lto-cgraph.c: Likewise.
11384         * cgraphclones.c: Likewise.
11385         * ipa-utils.c: Likewise.
11386         * data-streamer.c: Likewise.
11387         * ipa-split.c: Likewise.
11388         * lto-section-in.c: Likewise.
11389         * tree-streamer-out.c: Likewise.
11390         * ipa-prop.c: Likewise.
11391         * tree-streamer-in.c: Likewise.
11392         * symtab.c: Likewise.
11393         * opts-global.c: Likewise.
11394         * lto-opts.c: Likewise.
11395         * lto-section-out.c: Likewise.
11396         * lto-streamer.c: Likewise.
11397         * rtl.h: Add tree-core.h to include list.
11398         * expr.h: Remove tree-core.h from include list.
11399         * gimple.h: Likewise.
11400         * ipa-utils.h: Likewise.
11401         * streamer-hooks.h: Likewise.
11402         * streamer-hooks.c: Include input.h.
11404 2013-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11406         * config/arm/arm.c (cortexa7_extra_costs): New table.
11407         (arm_cortex_a7_tune): New.
11408         * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
11410 2013-10-29  Eric Botcazou  <ebotcazou@adacore.com>
11412         * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
11414 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
11416         * doc/gty.texi ("Inheritance and GTY"): Make it clear that
11417         to use autogenerated markers for a class-hierarchy, every class
11418         must have a GTY marker.
11419         * gengtype.h (struct type): Add linked list of subclasses to
11420         the "s" member of the union.
11421         (add_subclass): New decl.
11422         * gengtype-state.c (read_state_struct_type): Set up subclass
11423         linked list.
11424         * gengtype.c (get_ultimate_base_class): New.
11425         (add_subclass): New.
11426         (new_structure): Set up subclass linked list.
11427         (set_gc_used_type): Propagate usage information to subclasses.
11428         (output_mangled_typename): Use get_ultimate_base_class.
11429         (walk_subclasses): Use the subclass linked list, avoiding an
11430         O(N^2) when writing out all types.
11431         (walk_type): Issue an error if the base class is missing a tag,
11432         rather than generating bogus C code.  Add a gcc_unreachable
11433         default case, in case people omit tags from concrete subclasses,
11434         or get the values wrong.
11435         (write_func_for_structure): Issue an error for subclasses for
11436         which the base doesn't have a "desc", since otherwise the
11437         autogenerated routines for the base would silently fail to visit
11438         any subclass fields.
11439         (write_root): Use get_ultimate_base_class, tweaking constness of
11440         tp to match that function's signature.
11442 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
11444         * doc/gty.texi (GTY Options): Add note about inheritance to
11445         description of desc and tag.
11446         (Inheritance and GTY): New.
11448 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
11450         * gengtype-parse.c (opts_have): Drop "static" so that
11451         we can use this from gengtype.c.
11452         * gengtype.c (set_gc_used_type): Mark any base class as used;
11453         update field traversal to visit inherited fields.
11454         (output_mangled_typename):  Convert references to classes within
11455         an inheritance hierarchy to reference the ultimate base class,
11456         since only it will have gt_ functions.
11457         (get_string_option): New.
11458         (walk_subclasses): New.
11459         (walk_type): Treat GTY structs that have a "desc" as being the
11460         root of an inheritance hierarchy.  Generate a switch on it
11461         within the marking function which walks all subclasses, adding
11462         cases for them via walk_subclasses.  For subclasses, visit all
11463         fields of the type (including inherited ones).
11464         (write_func_for_structure): Don't write fns for subclasses, only
11465         for the ultimate base class within an inheritance hierarchy.
11466         Subclasses-marking will be handled by the base class marking functions.
11467         (write_types): Likewise.
11468         (write_local_func_for_structure): Likewise.
11469         (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
11470         a "tag" option (and are thus concrete subclasses).
11471         (write_root): Use the marker function for the ultimate base class.
11472         * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
11473         (opts_have): Add declaration.
11475 2013-10-28  Vladimir Makarov  <vmakarov@redhat.com>
11477         * lra-spills.c (lra_final_code_change): Remove useless move insns
11478         originated from moves of pseudos.
11480 2013-10-28  Jeff Law  <law@redhat.com>
11482         * lower-subreg.c (resolve_simple_move): Fix comment typo.
11484 2013-10-28  Trevor Saunders  <tsaunders@mozilla.com>
11486         * df-scan.c (df_collection_rec): Adjust.
11487         (copy_defs): New constant.
11488         (copy_uses): Likewise.
11489         (copy_eq_uses): Likewise.
11490         (copy_mw): Likewise.
11491         (copy_all): Likewise.
11492         (df_insn_rescan): Adjust.
11493         (df_notes_rescan): Likewise.
11494         (df_swap_refs): Likewise.
11495         (df_sort_and_compress_refs): Likewise.
11496         (df_sort_and_compress_mws): Likewise.
11497         (df_install_refs): Likewise.
11498         (df_install_mws): Likewise.
11499         (df_refs_add_to_chains): Add flags parameter controlling which vectors
11500         are coppied.
11501         (df_bb_refs_record): Adjust.
11502         (df_record_entry_block_defs): Likewise.
11503         (df_record_exit_block_defs): Likewise.
11504         (df_refs_verify): Likewise.
11505         (df_mws_verify): Likewise.
11506         (df_insn_refs_verify): Likewise.
11507         (df_bb_verify): Likewise.
11508         * ipa-pure-const.c (finish_state): Remove.
11509         (propagate): Adjust.
11510         * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
11511         tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
11512         var-tracking.c: Adjust.
11513         * vec.c (stack_vecs): Remove.
11514         (register_stack_vec): Likewise.
11515         (stack_vec_register_index): Likewise.
11516         (unregister_stack_vec): Likewise.
11517         * vec.h (struct va_stack): Remove.
11518         (struct vec<T, A, vl_ptr>): Specialize as
11519         struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
11520         allocation strategy compatable with the vl_ptr layout.
11521         (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
11522         specialization anyway.
11523         (class stack_vec): New class.
11524         (vec_stack_alloc): Remove.
11525         (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
11527 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11528             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11529             Sergey Lega  <sergey.s.lega@intel.com>
11530             Anna Tikhonova  <anna.tikhonova@intel.com>
11531             Ilya Tocar  <ilya.tocar@intel.com>
11532             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11533             Ilya Verbin  <ilya.verbin@intel.com>
11534             Kirill Yukhin  <kirill.yukhin@intel.com>
11535             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11537         * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
11538         (*prefetch_avx512pf_<mode>): New.
11539         * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
11540         (avx512f_maskcmp<mode>3): Ditto.
11541         (vashrv16si3): Ditto.
11543 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11544             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11545             Sergey Lega  <sergey.s.lega@intel.com>
11546             Anna Tikhonova  <anna.tikhonova@intel.com>
11547             Ilya Tocar  <ilya.tocar@intel.com>
11548             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11549             Ilya Verbin  <ilya.verbin@intel.com>
11550             Kirill Yukhin  <kirill.yukhin@intel.com>
11551             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11553         * config/i386/i386.md (any_truncate): New.
11554         (trunsuffix): Ditto.
11555         * config/i386/predicates.md (const_8_to_9_operand): New.
11556         (const_10_to_11_operand): Ditto.
11557         (const_12_to_13_operand): Ditto.
11558         (const_14_to_15_operand): Ditto.
11559         (const_16_to_19_operand): Ditto.
11560         (const_20_to_23_operand): Ditto.
11561         (const_24_to_27_operand): Ditto.
11562         (const_28_to_31_operand): Ditto.
11563         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
11564         (cvtusi2<ssescalarmodesuffix>32): New.
11565         (cvtusi2<ssescalarmodesuffix>64): Ditto.
11566         (ufloatv16siv16sf2): Ditto.
11567         (avx512f_fix_notruncv16sfv16si): Ditto.
11568         (avx512f_ufix_notruncv16sfv16si): Ditto.
11569         (avx512f_vcvtss2usi): Ditto.
11570         (avx512f_vcvtss2usiq): Ditto.
11571         (avx512f_vcvttss2usi): Ditto.
11572         (avx512f_vcvttss2usiq): Ditto.
11573         (avx512f_vcvtsd2usi): Ditto.
11574         (avx512f_vcvtsd2usiq): Ditto.
11575         (avx512f_vcvttsd2usi): Ditto.
11576         (avx512f_vcvttsd2usiq): Ditto.
11577         (ufloatv8siv8df): Ditto.
11578         (avx512f_cvtdq2pd512_2): Ditto.
11579         (avx512f_cvtpd2dq512): Ditto.
11580         (avx512f_ufix_notruncv8dfv8si): Ditto.
11581         (avx512f_cvtpd2ps512): Ditto.
11582         (vec_unpacks_lo_v16sf): Ditto.
11583         (vec_unpacks_hi_v16sf): Ditto.
11584         (vec_unpacks_float_hi_v16si): Ditto.
11585         (vec_unpacks_float_lo_v16si): Ditto.
11586         (avx512f_unpckhps512): Ditto.
11587         (avx512f_unpcklps512): Ditto.
11588         (avx512f_movshdup512): Ditto.
11589         (avx512f_movsldup512): Ditto.
11590         (vec_extract_lo_v32hi): Ditto.
11591         (vec_extract_hi_v32hi): Ditto.
11592         (vec_extract_lo_v64qi): Ditto.
11593         (vec_extract_hi_v64qi): Ditto.
11594         (avx512f_unpckhpd512): Ditto.
11595         (avx512f_movddup512): Ditto.
11596         (avx512f_unpcklpd512): Ditto.
11597         (*avx512f_unpcklpd512): Ditto.
11598         (avx512f_shufps512_1): Ditto.
11599         (avx512f_shufpd512_1): Ditto.
11600         (avx512f_interleave_highv8di): Ditto.
11601         (avx512f_interleave_lowv8di): Ditto.
11602         (PMOV_DST_MODE): Ditto.
11603         (pmov_src_mode): Ditto.
11604         (pmov_src_lower): Ditto.
11605         (pmov_suff): Ditto.
11606         (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
11607         (*avx512f_<code>v8div16qi2): Ditto.
11608         (*avx512f_<code>v8div16qi2_store): Ditto.
11609         (vec_widen_umult_even_v16si): Ditto.
11610         (*vec_widen_umult_even_v16si): Ditto.
11611         (vec_widen_smult_even_v16si): Ditto.
11612         (*vec_widen_smult_even_v16si): Ditto.
11613         (avx512f_interleave_highv16si): Ditto.
11614         (avx512f_interleave_lowv16si): Ditto.
11615         (avx512f_<code>v16qiv16si2): Ditto.
11616         (avx512f_<code>v16hiv16si2): Ditto.
11617         (avx512f_<code>v8qiv8di2): Ditto.
11618         (avx512f_<code>v8hiv8di2): Ditto.
11619         (avx512f_<code>v8siv8di2): Ditto.
11620         (avx512cd_maskb_vec_dupv8di): Ditto.
11621         (avx512cd_maskw_vec_dupv16si): Ditto.
11622         (avx512f_vcvtph2ps512): Ditto.
11623         (avx512f_vcvtps2ph512): Ditto.
11624         (VEC_EXTRACT_MODE): Extened with wider modes.
11625         (VEC_PERM_AVX2): Ditto.
11626         (VEC_PERM_CONST): Ditto.
11628 2013-10-28  Joern Rennecke  <joern.rennecke@embecosm.com>
11630         * config/arc/arc.c (arc_ccfsm_post_advance):
11631         Add comment about TYPE_RETURN.
11633 2013-10-28  Bin Cheng  <bin.cheng@arm.com>
11635         * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
11636         Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
11637         (strip_offset): Convert offset to unsigned number.
11639 2013-10-27  Tom de Vries  <tom@codesourcery.com>
11641         * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
11642         Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
11644 2013-10-27  Oleg Endo  <olegendo@gcc.gnu.org>
11646         * config/sh/sh.c (MSW, LSW): Move and rename macros to...
11647         * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
11648         (TARGET_BIG_ENDIAN): New macro.
11649         * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
11650         Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
11651         * config/sh/sh.c: Likewise.
11652         * config/sh/sh.h: Likewise.
11654 2013-10-27  Hans-Peter Nilsson  <hp@axis.com>
11656         * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
11657         removed PRED_MUDFLAP with PRED_NORETURN.  Correct file-path in comment.
11659 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
11661         * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
11662         Fix formatting.
11663         (cmpstr_t, cmpstrsi): Fix formatting.
11665 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
11667         PR target/52483
11668         * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
11669         addressing, do not use general_operand for memory operands.
11671 2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
11673         Revert:
11674         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
11675         * lra-spills.c (lra_final_code_change): Remove useless move insns.
11677 2013-10-26  Jeff Law  <law@redhat.com>
11679         * predict.c (PRED_MUDFLAP): Remove.
11680         * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
11682         * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
11683         (OBJS): Remove tree-nomudflap.o
11684         (GTFILES): Remove tree-mudflap.c
11685         * builtins.c (expand_builtin_alloc): Remove mudflap support.
11686         * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
11687         (mfwrap_spec, mflib_spec): Likewise.
11688         (cpp_unique_options, cc1_options, static_specs): Likewise.
11689         * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
11690         * passes.def: Likewise.
11691         * toplev.c (compile_file, process_options): Likewise.
11692         * tree-inline.c (copy_tree_r): Likewise.
11693         * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
11694         * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
11695         (build_constant_desc, output_constant_def_contents): Likewise.
11696         (categorize_decl_for_section): Likewise.
11697         * tree-mudflap.c: Removed.
11698         * tree-mudflap.h: Removed.
11699         * tree-nomudflap.c: Removed.
11700         * bfin/uclinux.h (MFWRAP_SPEC): Remove.
11701         * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
11702         * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
11703         * config/sol2.h (MFLIB_SPEC): Likewise.
11704         * doc/install.texi: Remove mudflap references.
11705         * doc/passes.texi: Similarly.
11706         * doc/sourcebuild.texi: Similarly.
11707         * doc/invoke.texi: Remove mudlfap related options.
11709 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
11711         PR rtl-optimization/58759
11712         * lra-constraints.c (lra_constraints): Remove wrong condition to
11713         remove insn setting up an equivalent pseudo.
11715 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
11717         * config/rs6000/rs6000-protos.h
11718         (rs6000_secondary_memory_needed_mode): New prototype.
11719         * config/rs6000/rs6000.c: Include ira.h.
11720         (TARGET_LRA_P): Redefine.
11721         (rs6000_legitimate_offset_address_p): Call
11722         legitimate_constant_pool_address_p in strict mode for LRA.
11723         (rs6000_legitimate_address_p): Ditto.
11724         (legitimate_lo_sum_address_p): Add code for LRA.  Use lra_in_progress.
11725         (rs6000_emit_move): Add LRA version of code to generate load/store
11726         of SDmode values.
11727         (rs6000_secondary_memory_needed_mode): New.
11728         (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
11729         (rs6000_secondary_reload_class): Return NO_REGS for LRA for
11730         constants, memory, and FP registers.
11731         (rs6000_lra_p): New.
11732         * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
11733         * config/rs6000/rs6000.opt (mlra): New option.
11734         * lra-spills.c (lra_final_code_change): Remove useless move insns.
11736 2013-10-25  Yufeng Zhang  <yufeng.zhang@arm.com>
11738         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
11739         has_single_use () and not do the conversion if has_single_use ()
11740         returns false for the multiplication result.
11742 2013-10-25  David Malcolm  <dmalcolm@redhat.com>
11744         * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
11745         to "NODE", since this works on a "tree", not an
11746         "enum tree_code".
11747         (CONSTANT_CLASS_P): Likewise.
11748         (TYPE_P): Likewise.
11749         (DECL_P): Likewise.
11750         (INDIRECT_REF_P): Likewise.
11751         (REFERENCE_CLASS_P): Likewise.
11752         (COMPARISON_CLASS_P): Likewise.
11753         (UNARY_CLASS_P): Likewise.
11754         (BINARY_CLASS_P): Likewise.
11755         (STATEMENT_CLASS_P): Likewise.
11756         (VL_EXP_CLASS_P): Likewise.
11757         (EXPRESSION_CLASS_P): Likewise.
11758         (IS_TYPE_OR_DECL_P): Likewise.
11760 2013-10-25  Marc Glisse  <marc.glisse@inria.fr>
11762         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
11763         ADDR_EXPR in the defining statement.
11765 2013-10-25  Richard Biener  <rguenther@suse.de>
11767         PR tree-optimization/58626
11768         * tree-loop-distribution.c (enum rdg_dep_type): Remove
11769         anti_dd, output_dd and input_dd.
11770         (struct rdg_edge): Remove level and relation members.
11771         (RDGE_LEVEL, RDGE_RELATION): Remove.
11772         (dot_rdg_1): Adjust.
11773         (create_rdg_edge_for_ddr): Remove.
11774         (create_rdg_edges_for_scalar): Adjust.
11775         (create_edge_for_control_dependence): Likewise.
11776         (create_rdg_edges): Split into ...
11777         (create_rdg_flow_edges): ... this
11778         (create_rdg_cd_edges): ... and this.
11779         (free_rdg): Adjust.
11780         (build_rdg): Likewise, do not compute data dependences or
11781         add edges for them.
11782         (pg_add_dependence_edges): New function.
11783         (pgcmp): Likewise.
11784         (distribute_loop): First apply all non-dependence based
11785         partition mergings.  Then compute dependences between partitions
11786         and merge and order partitions according to them.
11788 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
11790         PR rtl-optimization/58831
11791         * alias.c (init_alias_analysis): At the beginning of each iteration,
11792         set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
11794 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
11796         * recog.c (search_ofs): New static variable moved from...
11797         (peep2_find_free_register): ...here.
11798         (peephole2_optimize): Initialize it.
11800 2013-10-25  Tobias Burnus  <burnus@net-b.de>
11802         * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
11804 2013-10-25  Uros Bizjak  <ubizjak@gmail.com>
11806         * config/i386/i386.h (TARGET_MPX): New define.
11807         (TARGET_MPX_P): Ditto.
11809 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
11811         * config/i386/constraints.md (B): New.
11812         (Ti): New.
11813         (Tb): New.
11814         * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
11815         * config/i386/i386-modes.def (BND32): New.
11816         (BND64): New.
11817         * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
11818         * config/i386/i386.c (isa_opts): Add mmpx.
11819         (regclass_map): Add bound registers.
11820         (dbx_register_map): Likewise.
11821         (dbx64_register_map): Likewise.
11822         (svr4_dbx_register_map): Likewise.
11823         (PTA_MPX): New.
11824         (ix86_option_override_internal): Support MPX ISA.
11825         (ix86_conditional_register_usage): Support bound registers.
11826         (print_reg): Likewise.
11827         (ix86_code_end): Add MPX bnd prefix.
11828         (output_set_got): Likewise.
11829         (ix86_output_call_insn): Likewise.
11830         (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
11831         (ix86_print_operand_punct_valid_p): Likewise.
11832         (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
11833         UNSPEC_BNDMK_ADDR.
11834         (ix86_class_likely_spilled_p): Add bound regs support.
11835         (ix86_hard_regno_mode_ok): Likewise.
11836         (x86_order_regs_for_local_alloc): Likewise.
11837         (ix86_bnd_prefixed_insn_p): New.
11838         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
11839         (FIXED_REGISTERS): Add bound registers.
11840         (CALL_USED_REGISTERS): Likewise.
11841         (REG_ALLOC_ORDER): Likewise.
11842         (HARD_REGNO_NREGS): Likewise.
11843         (TARGET_MPX): New.
11844         (VALID_BND_REG_MODE): New.
11845         (FIRST_BND_REG): New.
11846         (LAST_BND_REG): New.
11847         (reg_class): Add BND_REGS.
11848         (REG_CLASS_NAMES): Likewise.
11849         (REG_CLASS_CONTENTS): Likewise.
11850         (BND_REGNO_P): New.
11851         (ANY_BND_REG_P): New.
11852         (BNDmode): New.
11853         (HI_REGISTER_NAMES): Add bound registers.
11854         * config/i386/i386.md (UNSPEC_BNDMK): New.
11855         (UNSPEC_BNDMK_ADDR): New.
11856         (UNSPEC_BNDSTX): New.
11857         (UNSPEC_BNDLDX): New.
11858         (UNSPEC_BNDLDX_ADDR): New.
11859         (UNSPEC_BNDCL): New.
11860         (UNSPEC_BNDCU): New.
11861         (UNSPEC_BNDCN): New.
11862         (UNSPEC_MPX_FENCE): New.
11863         (BND0_REG): New.
11864         (BND1_REG): New.
11865         (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
11866         (length_immediate): Likewise.
11867         (prefix_0f): Likewise.
11868         (memory): Likewise.
11869         (prefix_rep): Check for bnd prefix.
11870         (length_nobnd): New.
11871         (length): Use length_nobnd if specified.
11872         (BND): New.
11873         (bnd_ptr): New.
11874         (BNDCHECK): New.
11875         (bndcheck): New.
11876         (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
11877         (*jcc_2): Likewise.
11878         (jump): Likewise.
11879         (simple_return_internal): Likewise.
11880         (simple_return_pop_internal): Likewise.
11881         (*indirect_jump): Add MPX bnd prefix.
11882         (*tablejump_1): Likewise.
11883         (simple_return_internal_long): Likewise.
11884         (simple_return_indirect_internal): Likewise.
11885         (<mode>_mk): New.
11886         (*<mode>_mk): New.
11887         (mov<mode>): New.
11888         (*mov<mode>_internal_mpx): New.
11889         (<mode>_<bndcheck>): New.
11890         (*<mode>_<bndcheck>): New.
11891         (<mode>_ldx): New.
11892         (*<mode>_ldx): New.
11893         (<mode>_stx): New.
11894         (*<mode>_stx): New.
11895         * config/i386/predicates.md (lea_address_operand): Rename to...
11896         (address_no_seg_operand): ... this.
11897         (address_mpx_no_base_operand): New.
11898         (address_mpx_no_index_operand): New.
11899         (bnd_mem_operator): New.
11900         * config/i386/i386.opt (mmpx): New.
11901         * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
11902         * doc/rtl.texi Add documentation for BND32mode and BND64mode.
11904 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
11906         * mode-classes.def (MODE_POINTER_BOUNDS): New.
11907         * tree.def (POINTER_BOUNDS_TYPE): New.
11908         * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
11909         (POINTER_BOUNDS_MODE): New.
11910         (make_pointer_bounds_mode): New.
11911         * machmode.h (POINTER_BOUNDS_MODE_P): New.
11912         * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
11913         (layout_type): Support POINTER_BOUNDS_TYPE.
11914         * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
11915         * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
11916         (type_contains_placeholder_1): Likewise.
11917         * tree.h (POINTER_BOUNDS_TYPE_P): New.
11918         * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
11919         * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
11921 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
11923         * expr.c (expand_expr_real_1): Use mode of memory reference rather than
11924         mode of address computation when calling memory_address_addr_space.
11926 2013-08-24  Richard Henderson  <rth@twiddle.net>
11928         PR rtl/58542
11929         * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
11930         instead of create_convert_operand_to.
11931         (maybe_emit_sync_lock_test_and_set): Likewise.
11932         (expand_atomic_compare_and_swap): Likewise.
11933         (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
11935 2013-08-24  Sriraman Tallam  <tmsriram@google.com>
11937         * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
11938         Change param_is to use the struct and not the pointer to the struct.
11940 2013-10-24  Andrew MacLeod  <amacleod@redhat.com>
11942         * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
11943         * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
11944         Move to targhooks.c.
11945         (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
11946         * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
11947         Relocate from gimplify.c.
11948         * targhooks.h: Add 2 prototypes.
11949         * tree.h: Delete 2 prototypes.
11951 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
11953         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
11954         [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
11956 2013-10-24  Cong Hou  <congh@google.com>
11958         * convert.c (convert_to_real): Guard those unsafe math function
11959         convertions with flag_unsafe_math_optimizations.  Handle sqrt()
11960         specially.
11962 2013-10-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
11964         PR ipa/58712
11965         * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
11966         as argument.
11967         (cgraph_create_edge): Use the new argument.
11968         (cgraph_create_indirect_edge): Likewise.
11970 2013-10-24  Joern Rennecke  <joern.rennecke@embecosm.com>
11972         * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
11973         TYPE_UNCOND_BRANCH.
11974         (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
11975         changes statep->state.
11977 2013-10-24  Tobias Burnus  <burnus@net-b.de>
11979         PR other/33426
11980         * tree-cfg.c (replace_loop_annotate): New function.
11981         (execute_build_cfg): Call it.
11982         * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
11983         * internal-fn.c (expand_ANNOTATE): New function.
11984         * internal-fn.def (ANNOTATE): Define as new internal function.
11985         * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
11986         * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
11987         * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
11988         * doc/extend.texi (Pragmas): Document #pragma ivdep.
11989         * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
11991 2013-10-17  Ian Bolton  <ian.bolton@arm.com>
11992             Marcus Shawcroft  <marcus.shawcroft@arm.com>
11994         * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
11995         Special case reload SP+C into none GENERAL_REGS.
11997 2013-10-24  Michael Matz  <matz@suse.de>
11999         * gengtype.c (is_file_equal): Check that files will be same length.
12001 2013-10-25  Christian Bruel  <christian.bruel@st.com>
12003         * config.gcc (sh-*): Add sh-mem.o to extra_obj.
12004         * config/sh/t-sh (sh-mem.o): New rule.
12005         * config/sh/sh-mem.cc (expand_block_move): Moved here.
12006         (sh_expand_cmpstr): New function.
12007         * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
12008         * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
12009         * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
12010         (rotlhi3_8): Rename.
12012 2013-10-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12014         * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
12015         * Makefile.in (CXXDEPMODE): Assign and change users.
12016         (CCDEPMODE): Delete.
12017         * configure: Regenerate.
12019 2013-10-23  David Malcolm  <dmalcolm@redhat.com>
12021         * gengtype-parse.c (require_without_advance): New.
12022         (type): For GTY-marked types that are not GTY((user)), parse any
12023         base classes, requiring them to be single-inheritance, and not
12024         be templates.  For non-GTY-marked types and GTY((user)),
12025         continue to skip over any C++ inheritance specification.
12026         * gengtype-state.c (state_writer::write_state_struct_type):
12027         Write base class of type (if any).
12028         (read_state_struct_type): Read base class of type (if any).
12029         * gengtype.c (new_structure): Add a "base_class" parameter.
12030         (create_optional_field_): Update for new parameter to new_structure.
12031         (adjust_field_rtx_def): Likewise.
12032         (adjust_field_tree_exp): Likewise.
12033         * gengtype.h (struct type): Add "base_class" field to the s
12034         union field.
12035         (new_structure): Add "base" parameter.
12037 2013-10-23  Sriraman Tallam  <tmsriram@google.com>
12039         PR target/57756
12040         * config/i386/i386.c (ix86_option_override_internal):
12041         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
12042         (ix86_valid_target_attribute_tree):
12043         Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
12044         Change TARGET_SSE to TARGET_SSE_P (opts->...)
12046 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
12048         * tree-ssa-loop.h: Remove include files.
12049         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
12050         * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
12051         * graphite-clast-to-gimple.c: Likewise.
12052         * graphite-scop-detection.c: Likewise.
12053         * graphite-sese-to-poly.c: Likewise.
12054         * ipa-inline-analysis.c: Likewise.
12055         * ipa-pure-const.c: Likewise.
12056         * loop-init.c: Likewise.
12057         * passes.c: Likewise.
12058         * predict.c: Likewise.
12059         * tree-cfg.c: Likewise.
12060         * tree-cfgcleanup.c: Likewise.
12061         * tree-chrec.c: Likewise.
12062         * tree-data-ref.c: Likewise.
12063         * tree-loop-distribution.c: Likewise.
12064         * tree-parloops.c: Likewise.
12065         * tree-predcom.c: Likewise.
12066         * tree-scalar-evolution.c: Likewise.
12067         * tree-ssa-address.c: Likewise.
12068         * tree-ssa.c: Likewise.
12069         * tree-ssa-dce.c: Likewise.
12070         * tree-ssa-loop.c: Likewise.
12071         * tree-ssa-loop-im.c: Likewise.
12072         * tree-ssa-loop-ivcanon.c: Likewise.
12073         * tree-ssa-loop-ivopts.c: Likewise.
12074         * tree-ssa-loop-manip.c: Likewise.
12075         * tree-ssa-loop-niter.c: Likewise.
12076         * tree-ssa-loop-prefetch.c: Likewise.
12077         * tree-ssa-loop-unswitch.c: Likewise.
12078         * tree-ssa-reassoc.c: Likewise.
12079         * tree-vect-data-refs.c: Likewise.
12080         * tree-vect-loop.c: Likewise.
12081         * tree-vect-loop-manip.c: Likewise.
12082         * tree-vectorizer.c: Likewise.
12083         * tree-vect-stmts.c: Likewise.
12084         * tree-vrp.c: Likewise.
12086 2013-10-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12088         * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
12090 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
12092         PR tree-optimization/58775
12093         PR tree-optimization/58791
12094         * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
12095         (insert_stmt_after): Rewritten, don't move the stmt, but really
12096         insert it.
12097         (get_stmt_uid_with_default): Remove.
12098         (build_and_add_sum): Use insert_stmt_after and
12099         reassoc_stmt_dominates_stmt_p.  Fix up uid if bb contains only labels.
12100         (update_range_test): Set uid on stmts added by
12101         force_gimple_operand_gsi.  Don't immediately modify statements
12102         in inter-bb optimization, just update oe->op values.
12103         (optimize_range_tests): Return bool whether any changed have been made.
12104         (update_ops): New function.
12105         (struct inter_bb_range_test_entry): New type.
12106         (maybe_optimize_range_tests): Perform statement changes here.
12107         (not_dominated_by, appears_later_in_bb, get_def_stmt,
12108         ensure_ops_are_available): Remove.
12109         (find_insert_point): Rewritten.
12110         (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
12111         return LHS of the (new resp. old) stmt.  Don't call
12112         ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
12113         instead of last, move new stmt at the right place.
12114         (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
12115         (negate_value): Likewise.  Set uids.
12116         (break_up_subtract_bb): Initialize uids.
12117         (reassociate_bb): Adjust rewrite_expr_tree caller.
12118         (do_reassoc): Don't call renumber_gimple_stmt_uids.
12120 2013-10-23  David Edelsohn  <dje.gcc@gmail.com>
12122         PR target/58838
12123         * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
12124         TARGET_32BIT final condition.
12125         (mulsi3_internal2 and splitter): Same.
12127 2013-10-23  Jeff Law  <law@redhat.com>
12129         * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
12130         through joiner blocks with abnormal outgoing edges.
12132         * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
12133         Add parameter JOINERS, to allow/disallow threading through joiner
12134         blocks.
12135         (thread_block): New.  Call thread_block_1.
12136         (mark_threaded_blocks): Remove code to filter out certain cases
12137         of threading through joiner blocks.
12138         (thread_through_all_blocks): Document how we can have a dangling
12139         edge AUX field and clear it.
12141 2013-10-23  Ian Lance Taylor  <iant@google.com>
12143         * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
12144         (C++ Dialect Options): Likewise.
12145         (Optimize Options): Likewise.
12147 2013-10-23  Tom de Vries  <tom@codesourcery.com>
12149         PR tree-optimization/58805
12150         * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
12152 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
12154         * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
12155         sequence based on get_range_info returned range.
12157 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
12159         * tree-ssa.h: Remove all #include's
12160         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
12161         * alias.c: Move required includes from tree-ssa.h.
12162         * asan.c: Likewise.
12163         * builtins.c: Likewise.
12164         * calls.c: Likewise.
12165         * cfgexpand.c: Likewise.
12166         * cfghooks.c: Likewise.
12167         * cfgloop.c: Likewise.
12168         * cfgloopmanip.c: Likewise.
12169         * cgraph.c: Likewise.
12170         * cgraphbuild.c: Likewise.
12171         * cgraphclones.c: Likewise.
12172         * cgraphunit.c: Likewise.
12173         * dse.c: Likewise.
12174         * except.c: Likewise.
12175         * expr.c: Likewise.
12176         * final.c: Likewise.
12177         * fold-const.c: Likewise.
12178         * ggc-page.c: Likewise.
12179         * gimple-builder.c: Likewise.
12180         * gimple-fold.c: Likewise.
12181         * gimple-iterator.c: Likewise.
12182         * gimple-low.c: Likewise.
12183         * gimple-pretty-print.c: Likewise.
12184         * gimple-ssa-strength-reduction.c: Likewise.
12185         * gimple-streamer-in.c: Likewise.
12186         * gimple-streamer-out.c: Likewise.
12187         * gimplify.c: Likewise.
12188         * graphite-blocking.c: Likewise.
12189         * graphite-clast-to-gimple.c: Likewise.
12190         * graphite-dependences.c: Likewise.
12191         * graphite-interchange.c: Likewise.
12192         * graphite-optimize-isl.c: Likewise.
12193         * graphite-poly.c: Likewise.
12194         * graphite-scop-detection.c: Likewise.
12195         * graphite-sese-to-poly.c: Likewise.
12196         * graphite.c: Likewise.
12197         * ipa-cp.c: Likewise.
12198         * ipa-inline-analysis.c: Likewise.
12199         * ipa-inline-transform.c: Likewise.
12200         * ipa-inline.c: Likewise.
12201         * ipa-prop.c: Likewise.
12202         * ipa-pure-const.c: Likewise.
12203         * ipa-reference.c: Likewise.
12204         * ipa-split.c: Likewise.
12205         * ipa-utils.c: Likewise.
12206         * loop-init.c: Likewise.
12207         * lto-cgraph.c: Likewise.
12208         * lto-section-in.c: Likewise.
12209         * lto-section-out.c: Likewise.
12210         * lto-streamer-in.c: Likewise.
12211         * lto-streamer-out.c: Likewise.
12212         * lto-streamer.c: Likewise.
12213         * omp-low.c: Likewise.
12214         * passes.c: Likewise.
12215         * predict.c: Likewise.
12216         * print-tree.c: Likewise.
12217         * profile.c: Likewise.
12218         * sese.c: Likewise.
12219         * targhooks.c: Likewise.
12220         * tracer.c: Likewise.
12221         * trans-mem.c: Likewise.
12222         * tree-call-cdce.c: Likewise.
12223         * tree-cfg.c: Likewise.
12224         * tree-cfgcleanup.c: Likewise.
12225         * tree-chrec.c: Likewise.
12226         * tree-complex.c: Likewise.
12227         * tree-data-ref.c: Likewise.
12228         * tree-dfa.c: Likewise.
12229         * tree-eh.c: Likewise.
12230         * tree-emutls.c: Likewise.
12231         * tree-if-conv.c: Likewise.
12232         * tree-inline.c: Likewise.
12233         * tree-into-ssa.c: Likewise.
12234         * tree-loop-distribution.c: Likewise.
12235         * tree-mudflap.c: Likewise.
12236         * tree-nested.c: Likewise.
12237         * tree-nrv.c: Likewise.
12238         * tree-object-size.c: Likewise.
12239         * tree-outof-ssa.c: Likewise.
12240         * tree-parloops.c: Likewise.
12241         * tree-phinodes.c: Likewise.
12242         * tree-predcom.c: Likewise.
12243         * tree-pretty-print.c: Likewise.
12244         * tree-profile.c: Likewise.
12245         * tree-scalar-evolution.c: Likewise.
12246         * tree-sra.c: Likewise.
12247         * tree-ssa-address.c: Likewise.
12248         * tree-ssa-alias.c: Likewise.
12249         * tree-ssa-ccp.c: Likewise.
12250         * tree-ssa-coalesce.c: Likewise.
12251         * tree-ssa-copy.c: Likewise.
12252         * tree-ssa-copyrename.c: Likewise.
12253         * tree-ssa-dce.c: Likewise.
12254         * tree-ssa-dom.c: Likewise.
12255         * tree-ssa-dse.c: Likewise.
12256         * tree-ssa-forwprop.c: Likewise.
12257         * tree-ssa-ifcombine.c: Likewise.
12258         * tree-ssa-live.c: Likewise.
12259         * tree-ssa-loop-ch.c: Likewise.
12260         * tree-ssa-loop-im.c: Likewise.
12261         * tree-ssa-loop-ivcanon.c: Likewise.
12262         * tree-ssa-loop-ivopts.c: Likewise.
12263         * tree-ssa-loop-manip.c: Likewise.
12264         * tree-ssa-loop-niter.c: Likewise.
12265         * tree-ssa-loop-prefetch.c: Likewise.
12266         * tree-ssa-loop-unswitch.c: Likewise.
12267         * tree-ssa-loop.c: Likewise.
12268         * tree-ssa-math-opts.c: Likewise.
12269         * tree-ssa-operands.c: Likewise.
12270         * tree-ssa-phiopt.c: Likewise.
12271         * tree-ssa-phiprop.c: Likewise.
12272         * tree-ssa-pre.c: Likewise.
12273         * tree-ssa-propagate.c: Likewise.
12274         * tree-ssa-reassoc.c: Likewise.
12275         * tree-ssa-sccvn.c: Likewise.
12276         * tree-ssa-sink.c: Likewise.
12277         * tree-ssa-strlen.c: Likewise.
12278         * tree-ssa-structalias.c: Likewise.
12279         * tree-ssa-tail-merge.c: Likewise.
12280         * tree-ssa-ter.c: Likewise.
12281         * tree-ssa-threadedge.c: Likewise.
12282         * tree-ssa-threadupdate.c: Likewise.
12283         * tree-ssa-uncprop.c: Likewise.
12284         * tree-ssa-uninit.c: Likewise.
12285         * tree-ssa.c: Likewise.
12286         * tree-ssanames.c: Likewise.
12287         * tree-stdarg.c: Likewise.
12288         * tree-streamer-in.c: Likewise.
12289         * tree-switch-conversion.c: Likewise.
12290         * tree-tailcall.c: Likewise.
12291         * tree-vect-data-refs.c: Likewise.
12292         * tree-vect-generic.c: Likewise.
12293         * tree-vect-loop-manip.c: Likewise.
12294         * tree-vect-loop.c: Likewise.
12295         * tree-vect-patterns.c: Likewise.
12296         * tree-vect-slp.c: Likewise.
12297         * tree-vect-stmts.c: Likewise.
12298         * tree-vectorizer.c: Likewise.
12299         * tree-vrp.c: Likewise.
12300         * tree.c: Likewise.
12301         * tsan.c: Likewise.
12302         * value-prof.c: Likewise.
12303         * var-tracking.c: Likewise.
12304         * varpool.c: Likewise.
12305         * vtable-verify.c: Likewise.
12307 2013-10-23  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12309         * config/tilegx/tilegx.c: Include "tree.h".
12311 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
12313         * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
12314         the info, not after it.
12315         (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
12316         dump_ssaname_info call.
12317         (pp_gimple_stmt_1): Adjust caller.
12318         (dump_phi_nodes): Likewise.  Don't print "# " here.
12320 2013-10-22  Jan Hubicka  <jh@suse.cz>
12322         * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
12323         tuning flag.
12324         * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
12325         * i386.c (expand_small_movmem_or_setmem): New function.
12326         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
12327         function.
12328         (alg_usable_p): Add support for value ranges; cleanup.
12329         (ix86_expand_set_or_movmem): Add support for misaligned moves.
12331 2013-10-22  Sterling Augustine  <saugustine@google.com>
12333         * doc/invoke.texi: Document -ggnu-pubnames.
12334         * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
12335         logic.
12336         * dwarf2out.c: Include gdb/gdb-index.h.
12337         (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
12338         debug_generate_pub_sections.
12339         (is_java, output_pubtables, output_pubname): New functions.
12340         (include_pubname_in_output): Handle debug_generate_pub_sections at
12341         level 2.
12342         (size_of_pubnames): Use new local space_for_flags based on
12343         debug_generate_pub_sections.
12344         (output_pubnames): Unify pubnames and pubtypes output logic.
12345         Genericize comments.  Call output_pubname.
12346         (dwarf2out_finish): Move logic to output_pubnames and call it.
12348 2013-10-22  Uros Bizjak  <ubizjak@gmail.com>
12350         PR target/58779
12351         * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
12352         Remove CCCmode handling.
12353         <case LTU>: Return 'c' suffix for CCCmode.
12354         <case GEU>: Return 'nc' suffix for CCCmode.
12355         (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
12356         * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
12357         (*sub<mode>3_cc_overflow): Ditto.
12358         (*subsi3_zext_cc_overflow): Ditto.
12360 2013-10-22  Steve Ellcey  <sellcey@mips.com>
12362         * config/mips/mips.c (mips_rtx_costs):  Fix cost estimate for nor
12363         (AND (NOT OP1) (NOT OP2)).
12365 2013-10-22  Bill Schmidt  <wschmidt@vnet.ibm.com>
12367         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
12368         meaning of merge-high and merge-low masks for little endian; avoid
12369         use of vector-pack masks for little endian for mismatched modes.
12371 2013-10-22  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12373         * config/tilepro/tilepro.c: Include "tree.h".
12375 2013-10-22  Andreas Schwab  <schwab@suse.de>
12377         * config/m68k/m68k.c (notice_update_cc): Handle register conflict
12378         with PRE_DEC.
12380 2013-10-22  Paolo Carlini  <paolo.carlini@oracle.com>
12382         * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
12383         [Ed Smith-Rowland]): New entries.
12384         ([Stephen M. Webb]): Update.
12386 2013-10-22  Andrew MacLeod  <amacleod@redhat.com>
12388         * tree-ssa-ter.h: Remove duplicate copy of file contents.
12390 2013-10-21  Marek Polacek  <polacek@redhat.com>
12392         PR middle-end/58809
12393         * fold-const.c (fold_range_test): Return 0 if the type is not
12394         an integral type.
12396 2013-10-21  Richard Sandiford  <rdsandiford@googlemail.com>
12398         * system.h: Move hwint.h include further down.
12399         * hwint.h (sext_hwi, zext_hwi): Define unconditionally.  Add
12400         gcc_checking_asserts.
12401         * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
12403 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12405         Fix volatile issues in optimize_bit_field_compare.
12406         * fold-const.c (optimize_bit_field_compare): Bail out if
12407         lvolatilep or rvolatilep.
12409 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12411         Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
12412         and get_inner_reference returning different pmode for non-volatile
12413         bit-field members dependent on flag_strict_volatile_bitfields.
12414         * stor-layout.c (layout_decl): Remove special handling of
12415         flag_strict_volatile_bitfields.
12416         * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
12417         if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
12419 2013-10-21  Paulo Matos  <pmatos@broadcom.com>
12421         * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
12422         calculations.
12424 2013-10-21  Jeff Law  <law@redhat.com>
12426         * tree-ssa-threadedge.c (thread_through_normal_block): New
12427         argument VISITED.  Remove VISISTED as a local variable.  When we
12428         have a threadable jump, verify the destination of the jump has not
12429         been visised.
12430         (thread_across_edge): Allocate VISITED bitmap once at function
12431         scope and use it throughout.  Make sure to set appropriate bits in
12432         VISITED for E (start of jump thread path).
12433         * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
12434         through a joiner if any edge on the path has a recorded jump thread.
12436 2013-10-21  Ian Lance Taylor  <iant@google.com>
12438         * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
12439         don't imply that attributes can solve all problems.
12440         (Directory Options): Fix typo.
12442 2013-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12444         * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
12445         extend and extend_add.
12447 2013-10-21  Richard Biener  <rguenther@suse.de>
12449         PR tree-optimization/58794
12450         * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
12451         of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
12453 2013-10-21  Richard Biener  <rguenther@suse.de>
12455         PR middle-end/58742
12456         * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
12457         to (T) X for sign-changing conversions (or no conversion).
12459 2013-10-20  Uros Bizjak  <ubizjak@gmail.com>
12461         * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
12463 2013-10-20  Jan Hubicka  <jh@suse.cz>
12465         * config/i386/i386-tune.def: Add comment; organize into categories
12467 2013-10-21  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
12469         * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
12470         argument.  Update function comment.
12471         (expand_set_or_movmem_via_rep): New function combining
12472         expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
12473         (expand_movmem_via_rep_mov): Remove.
12474         expand_setmem_via_rep_stos): Remove.
12475         (expand_movmem_epilogue): Update calls correspondingly.
12476         (expand_setmem_epilogue_via_loop): Likewise.
12477         (emit_memset): New.
12478         (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
12479         (expand_set_or_movmem_prologue): New function combining
12480         expand_movmem_prologue and expand_setmem_prologue.
12481         (expand_movmem_prologue): Remove.
12482         (expand_setmem_prologue): Remove.
12483         (expand_set_or_movmem_constant_prologue): New function combining
12484         expand_constant_movmem_prologue and expand_constant_setmem_prologue.
12485         (expand_constant_movmem_prologue): Remove.
12486         (expand_constant_setmem_prologue): Remove.
12487         (promote_duplicated_reg): Allow vector-const0 value.
12488         (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
12489         and ix86_expand_setmem.
12490         (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
12491         (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
12493 2013-10-21  Diego Novillo  <dnovillo@google.com>
12495         * asan.c: Include tree.h
12496         * bb-reorder.c: Likewise.
12497         * cfgcleanup.c: Likewise.
12498         * cfgloopmanip.c: Likewise.
12499         * data-streamer-in.c: Likewise.
12500         * data-streamer-out.c: Likewise.
12501         * data-streamer.c: Likewise.
12502         * dwarf2cfi.c: Likewise.
12503         * graphite-blocking.c: Likewise.
12504         * graphite-clast-to-gimple.c: Likewise.
12505         * graphite-dependences.c: Likewise.
12506         * graphite-interchange.c: Likewise.
12507         * graphite-optimize-isl.c: Likewise.
12508         * graphite-poly.c: Likewise.
12509         * graphite-scop-detection.c: Likewise.
12510         * graphite-sese-to-poly.c: Likewise.
12511         * graphite.c: Likewise.
12512         * ipa-devirt.c: Likewise.
12513         * ipa-profile.c: Likewise.
12514         * ipa.c: Likewise.
12515         * ira.c: Likewise.
12516         * loop-init.c: Likewise.
12517         * loop-unroll.c: Likewise.
12518         * lower-subreg.c: Likewise.
12519         * lto/lto-object.c: Likewise.
12520         * recog.c: Likewise.
12521         * reginfo.c: Likewise.
12522         * tree-loop-distribution.c: Likewise.
12523         * tree-parloops.c: Likewise.
12524         * tree-ssa-strlen.c: Likewise.
12525         * tree-streamer.c: Likewise.
12526         * value-prof.c: Likewise.
12527         * target-globals.c: Likewise.
12528         * expr.h: Include tree-core.h instead of tree.h.
12529         * gimple.h: Likewise.
12530         * ipa-prop.h: Likewise.
12531         * ipa-utils.h: Likewise.
12532         * lto-streamer.h: Likewise.
12533         * streamer-hooks.h: Likewise.
12534         * ipa-reference.h: Include cgraph.h instead of tree.h.
12535         * cgraph.h: Include basic-block.h instead of tree.h.
12536         * tree-streamer.h: Do not include tree.h.
12537         * genattrtab.c (write_header): Generate inclusion of tree.h.
12538         * genautomata.c (main): Likewise.
12539         * genemit.c: Likewise.
12540         * genopinit.c: Likewise.
12541         * genoutput.c (output_prologue): Likewise.
12542         * genpeep.c: Likewise.
12544 2013-10-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12546         * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
12547         little endian.
12548         (vec_unpacku_hi_v8hi): Likewise.
12549         (vec_unpacku_lo_v16qi): Likewise.
12550         (vec_unpacku_lo_v8hi): Likewise.
12552 2013-10-20  Jan Hubicka  <jh@suse.cz>
12554         * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
12555         X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
12556         (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
12558 2013-10-20  Richard Sandiford  <rdsandiford@googlemail.com>
12560         * config/mips/mips.h (ISA_HAS_WSBH): Define.
12561         * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
12562         constants.
12563         (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
12565 2013-10-19  John David Anglin  <danglin@gcc.gnu.org>
12567         PR target/58603
12568         * system.h: Undef m_slot.
12570 2013-10-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12572         * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
12573         all elements for both endian flavors.
12575 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
12577         PR target/58792
12578         * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
12579         ST1_REG and XMM1_REG for 32bit and 64bit targets.  Also add DI_REG
12580         and SI_REG for 64bit SYSV ABI targets.
12582 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
12584         * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
12585         to multi_reg_return.  Clarify that we are skipping USEs of multiple
12586         return registers.  Use bool type where appropriate.
12588 2013-10-18  Jan Hubicka  <jh@suse.cz>
12590         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
12591         for cold functions.
12592         * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
12593         (X86_TUNE_PUSH_MEMORY): Likewise.
12594         (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
12595         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
12596         (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
12597         New.
12598         * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
12599         x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
12600         Remove.
12601         (ix86_option_override_internal): Update to use tune features instead
12602         of variables.
12604 2013-10-18  Cong Hou  <congh@google.com>
12606         PR tree-optimization/58508
12607         * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
12608         statement that contains data refs with zero-step.
12610 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
12612         * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
12613         sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
12614         * gimple-low.c (gimple_check_call_arg,
12615         gimple_check_call_matching_types): Move to cgraph.c.
12616         * gimple-low.h: Remove prototype.
12617         * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
12618         Relocate from gimple-low.c.
12619         * cgraph.h: Add prototype.  Don't include basic-block.h.
12620         * gimplify.c: Add gimple-low to include list.
12621         * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
12622         * tree-eh.c: Add gimple-low to include list.
12623         * tree-nested.c: Likewise.
12624         * cfgexpand.c: Add tree-ssa-address.h to include list.
12625         * expr.c: Likewise.
12626         * gimple-fold.c: Likewise.
12627         * gimple-ssa-strength-reduction.c: Likewise.
12628         * trans-mem.c: Likewise.
12629         * tree-mudflap.c: Likewise.
12630         * tree-ssa-loop-ivopts.c: Likewise.
12631         * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
12632         (degenerate_phi_result): Move to tree-phinodes.c.
12633         * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
12634         * tree-ssa-threadedge.c: Likewise.
12635         * tree-vrp.c: Likewise.
12636         * tree-phinodes.c (degenerate_phi_result): Relocate here.
12637         * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
12638         * tree-phinodes.h (degenerate_phi_result): Add prototype.
12639         * tree-ssa-copy.c: Include tree-ssa-dom.h.
12640         * tree-ssa-forwprop.c: Likewise.
12641         * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
12642         pass_data_cleanup_cfg_post_optimizing,
12643         make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
12644         * tree-optimize.c: Delete File.
12645         * graphite.c: Include tree-cfgcleanup.h.
12646         * passes.c: Likewise.
12647         * tree-cfg.c: Likewise.
12648         * tree-profile.c: Likewise.
12649         * tree-ssa-dse.c: Likewise.
12650         * tree-ssa-loop-ivcanon.c: Likewise.
12651         * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
12652         * tree-outof-ssa.c: Include sbitmap.h.
12653         * tree-ssa-live.c: Likewise.
12654         * tree-ssa-propagate.c: Likewise.
12655         * tree-ssa-structalias.c: Likewise.
12656         * tree-stdarg.c: Likewise.
12657         * Makefile.in (OBJS): Delete tree-optimize.o.
12658         * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
12659         * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
12660         * varasm.c: Include basic-block.h.
12661         * cfgloop.h: Include function.h instead of basic-block.h
12662         (bb_loop_depth): Move to cfgloop.c.
12663         * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
12665 2013-10-18  Teresa Johnson  <tejohnson@google.com>
12667         * predict.c (probably_never_executed): Compare frequency-based
12668         count to number of training runs.
12669         * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
12671 2013-10-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12673         * config/arm/arm.c (cortexa9_extra_costs): New table.
12674         (arm_cortex_a9_tune): Use cortexa9_extra_costs.
12676 2013-10-18  Jeff Law  <law@redhat.com>
12678         * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
12680         * tree-ssa-threadupdate.c: Include "dbgcnt.h".
12681         (register_jump_thread): Add "registered_jump_thread" debug
12682         counter support.
12683         * dbgcnt.def (registered_jump_thread): New debug counter.
12685 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
12687         * config/rs6000/rs6000.c: Include cgraph.h.
12689 2013-10-18  Teresa Johnson  <tejohnson@google.com>
12691         * tree-ssa-tail-merge.c (replace_block_by): Update edge
12692         weights during merging.
12694 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
12696         * tree-cfg.h: Rename from tree-flow.h.  Remove #includes.
12697         * tree-ssa.h: Relocate required #includes from tree-cfg.h.
12698         * tree-ssa-operands.h: Remove prototype.
12699         * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
12700         * gimple.c (virtual_operand_p): Relocate from gimple.c.
12701         * gimple.h: Add prototype.
12702         * gimple-ssa.h: Include tree-ssa-operands.h.
12703         * tree-dump.c: Add tree-cfg.h to include list.
12704         * tree-ssa-alias.c: Add ipa-reference.h to include list.
12705         * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
12706         * config/i386/i386.c: Don't include tree-flow.h.
12707         * config/rs6000/rs6000.c: Likewise.
12709 2013-10-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12711         * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
12713 2013-10-18  Richard Biener  <rguenther@suse.de>
12715         * stor-layout.c (layout_type): Do not change TYPE_PRECISION
12716         or TYPE_UNSIGNED of integral types.
12717         (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
12718         NULL_TREE for zero-precision integral types.
12720 2013-10-18  James Greenhalgh  <james.greenhalgh@arm.com>
12722         * config/aarch64/arm_neon.h
12723         (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
12725 2013-10-17  Sriraman Tallam  <tmsriram@google.com>
12727         PR target/57756
12728         * opth-gen.awk: Define target_flags_explicit.
12730 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
12732         * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
12733         fields to the reg_addr array that describes the valid addressing
12734         mode for any register, general purpose registers, floating point
12735         registers, and Altivec registers.
12736         (FIRST_RELOAD_REG_CLASS): Likewise.
12737         (LAST_RELOAD_REG_CLASS): Likewise.
12738         (struct reload_reg_map_type): Likewise.
12739         (reload_reg_map_type): Likewise.
12740         (RELOAD_REG_VALID): Likewise.
12741         (RELOAD_REG_MULTIPLE): Likewise.
12742         (RELOAD_REG_INDEXED): Likewise.
12743         (RELOAD_REG_OFFSET): Likewise.
12744         (RELOAD_REG_PRE_INCDEC): Likewise.
12745         (RELOAD_REG_PRE_MODIFY): Likewise.
12746         (reg_addr): Likewise.
12747         (mode_supports_pre_incdec_p): New helper functions to say whether
12748         a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
12749         (mode_supports_pre_modify_p): Likewise.
12750         (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
12751         print the valid address mode bits for each mode.
12752         (rs6000_debug_print_mode): Likewise.
12753         (rs6000_debug_reg_global): Likewise.
12754         (rs6000_setup_reg_addr_masks): New function to set up the address
12755         mask bits for each type.
12756         (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
12757         Call rs6000_setup_reg_addr_masks to set up the address mask bits.
12758         (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
12759         mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
12760         PRE_MODIFY are supported.
12761         (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
12762         registers, instead of {src,dest}_av_p.
12763         (rs6000_print_options_internal): Tweak the debug output slightly.
12765 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
12767         * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
12768         isa attribute.
12770 2013-10-17  Andrew MacLeod  <amacleod@redhat.com>
12772         * tree-flow.h (struct omp_region): Move to omp-low.c.
12773         Remove omp_ prototypes and variables.
12774         * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
12775         (copy_var_decl): Relocate prototype from tree-flow.h.
12776         * gimple.c (copy_var_decl): Relocate from omp-low.c.
12777         * tree.h: Move prototype to omp-low.h.
12778         * omp-low.h: New File.  Relocate prototypes here.
12779         * omp-low.c (struct omp_region): Make local here.
12780         (root_omp_region): Make static.
12781         (copy_var_decl) Move to gimple.c.
12782         (new_omp_region): Make static.
12783         (make_gimple_omp_edges): New.  Refactored from tree-cfg.c make_edges.
12784         * tree-cfg.c: Include omp-low.h.
12785         (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
12786         * gimplify.c: Include omp-low.h.
12787         * tree-parloops.c: Likewise.
12789 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
12791         * config/i386/i386.c (ix86_fixup_binary_operands): When both source
12792         operands are in memory, prefer to force non-matched operand 1 to
12793         the register.
12795 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
12797         PR target/58673
12798         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
12799         restrict TImode addresses to single indirect registers if both
12800         -mquad-memory and -mvsx-timode are used.
12801         (rs6000_output_move_128bit): Use quad_load_store_p to determine if
12802         we should emit load/store quad.  Remove using %y for quad memory
12803         addresses.
12805         * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
12806         constraints to allow load/store quad on machines where TImode is
12807         not allowed in VSX registers.  Use 'n' instead of 'F' constraint
12808         for TImode to load integer constants.
12810 2013-10-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12812         * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
12814 2013-10-17  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12816         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
12817         handling of STACK_REG.
12819 2013-10-17  Richard Biener  <rguenther@suse.de>
12821         PR tree-optimization/58143
12822         * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
12823         New function.
12824         (rewrite_to_defined_overflow): Likewise.
12825         (move_computations_dom_walker::before_dom): Rewrite stmts
12826         with undefined signed overflow that are not always executed
12827         into unsigned arithmetic.
12829 2013-10-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
12831         PR target/57756
12832         * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
12833         explicit isa flag to be an options variable, instead of using
12834         global_options_set.  Remove define from rs6000.h.
12835         * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
12837         * config/rs6000/rs6000.c (rs6000_option_override_internal):
12838         Initialize rs6000_isa_flags_explicit.
12839         (rs6000_function_specific_save): Add gcc_options* parameter, so
12840         that the powerpc builds after the 2013-10-15 changes.
12841         (rs6000_function_specific_restore): Likewise.
12843 2013-10-16  DJ Delorie  <dj@redhat.com>
12845         * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
12846         op is a REG before checking REGNO.
12847         (rl78_alloc_physical_registers): Verify pattern is a SET before
12848         checking SET_SRC.
12850 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12852         * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
12853         endianness.
12854         (vec_unpacks_lo_v4sf): Likewise.
12855         (vec_unpacks_float_hi_v4si): Likewise.
12856         (vec_unpacks_float_lo_v4si): Likewise.
12857         (vec_unpacku_float_hi_v4si): Likewise.
12858         (vec_unpacku_float_lo_v4si): Likewise.
12860 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12862         * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
12863         (vsx_concat_v2sf): Likewise.
12865 2013-10-16  James Greenhalgh  <james.greenhalgh@arm.com>
12867         * config/aarch64/aarch64.md
12868         (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
12870 2013-10-16  Andrew MacLeod  <amacleod@redhat.com>
12872         PR tree-optimization/58697
12873         * cfgloop.c (get_estimated_loop_iterations_int): Rename from
12874         estimated_loop_iterations_int.
12875         (max_stmt_executions_int): Call get_max_loop_iterations_int.
12876         (get_max_loop_iterations_int): New.  HWINT version of
12877         get_max_loop_iterations.
12878         * cfgloop.h: Add prototypes.
12879         * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
12880         * loop-unroll.c (decide_peel_once_rolling): Call
12881         get_estimated_loop_iterations_int.
12882         * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
12883         * tree-ssa-loop-niter.h: Tweak prototypes.
12885 2013-10-16  David Malcolm  <dmalcolm@redhat.com>
12887         * gengtype-parse.c (struct_field_seq): Ignore access-control
12888         keywords ("public:" etc).
12890 2013-10-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12892         * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
12893         FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
12895 2013-10-16  Yvan Roux  <yvan.roux@linaro.org>
12897         * config/arm/arm.opt (mlra): New option.
12898         * config/arm/arm.c (arm_lra_p): New function.
12899         (TARGET_LRA_P): Define.
12901 2013-10-16  Paulo Matos  <pmatos@broadcom.com>
12903         * tree-core.h (tree_code_name): Remove.
12904         * tree.h (get_tree_code_name): New prototype.
12905         * tree.c (tree_code_name): Make static.
12906         (get_tree_code_name): New function.
12907         (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
12908         tree_class_check_failed, tree_range_check_failed,
12909         tree_not_class_check_failed, omp_clause_check_failed,
12910         tree_contains_struct_check_failed, tree_operand_check_failed): Use new
12911         wrapper get_tree_code_name instead of calling tree_code_name directly.
12912         * tree-vrp.c (dump_asserts_for): Likewise.
12913         * tree-dump.c (dequeue_and_dump): Likewise.
12914         * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
12915         * tree-pretty-print.h (pp_unsupported_tree): Likewise.
12916         * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
12917         * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
12918         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
12919         dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
12920         dump_gimple_omp_for): Likewise.
12921         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
12922         * tree-ssa-pre.c (print_pre_expr): Likewise.
12923         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
12924         * print-tree.c (print_node_brief, print_node): Likewise.
12925         * gimple.c (gimple_check_failed): Likewise.
12926         * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
12927         * config/frv/frv.c (frv_init_cumulative_args): Likewise.
12928         * config/mep/mep.c (mep_validate_vliw): Likewise.
12929         * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
12930         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
12932 2013-10-16  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
12934         * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
12935         for AMD bdver3.
12937 2013-10-16  Hans-Peter Nilsson  <hp@axis.com>
12939         * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
12940         (MULTILIB_MATCHES): Add multilib for -march=v8.
12942 2013-10-15  Sriraman Tallam  <tmsriram@google.com>
12944         PR target/57756
12945         * optc-save-gen.awk: Add extra parameter to the save and restore
12946         target calls.
12947         * opth-gen.awk: Generate new TARGET_* macros  to accept a parameter.
12948         * tree.c (build_optimization_node): New parameter.  Add extra parameter
12949         to call to cl_optimization_save.
12950         (build_target_option_node): New parameter. Add extra parameter
12951         to call to cl_target_option_save.
12952         * tree.h (build_optimization_node): New parameter.
12953         (build_target_option_node): New parameter.
12954         * c-family/c-common.c (handle_optimize_attribute): Fix calls to
12955         build_optimization_node and build_target_option_node.
12956         * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
12957         (handle_pragma_push_options): Ditto.
12958         * toplev.c (process_options): Ditto.
12959         * opts.c (init_options_struct): Check for opts_set non-null.
12960         * target.def (target_option.save): New parameter.
12961         (target_option.restore): New parameter.
12962         * tm.texi: Generate.
12963         * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
12964         (ix86_pragma_target_parse): Ditto.
12965         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
12966         parameters.
12967         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
12968         to  build_optimization_node and build_target_option_node.
12969         (rs6000_valid_attribute_p): Ditto.
12970         (rs6000_pragma_target_parse): Ditto.
12971         * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
12972         data.
12973         * config/i386/i386.h:
12974         TARGET_64BIT_P: New Macro
12975         TARGET_MMX_P: New Macro.
12976         TARGET_3DNOW_P: New Macro.
12977         TARGET_3DNOW_A_P: New Macro.
12978         TARGET_SSE_P: New Macro.
12979         TARGET_SSE2_P: New Macro.
12980         TARGET_SSE3_P: New Macro.
12981         TARGET_SSSE3_P: New Macro.
12982         TARGET_SSE4_1_P: New Macro.
12983         TARGET_SSE4_2_P: New Macro.
12984         TARGET_AVX_P: New Macro.
12985         TARGET_AVX2_P: New Macro.
12986         TARGET_AVX512F_P: New Macro.
12987         TARGET_AVX512PF_P: New Macro.
12988         TARGET_AVX512ER_P: New Macro.
12989         TARGET_AVX512CD_P: New Macro.
12990         TARGET_FMA_P: New Macro.
12991         TARGET_SSE4A_P: New Macro.
12992         TARGET_FMA4_P: New Macro.
12993         TARGET_XOP_P: New Macro.
12994         TARGET_LWP_P: New Macro.
12995         TARGET_ABM_P: New Macro.
12996         TARGET_BMI_P: New Macro.
12997         TARGET_BMI2_P: New Macro.
12998         TARGET_LZCNT_P: New Macro.
12999         TARGET_TBM_P: New Macro.
13000         TARGET_POPCNT_P: New Macro.
13001         TARGET_SAHF_P: New Macro.
13002         TARGET_MOVBE_P: New Macro.
13003         TARGET_CRC32_P: New Macro.
13004         TARGET_AES_P: New Macro.
13005         TARGET_PCLMUL_P: New Macro.
13006         TARGET_CMPXCHG16B_P: New Macro.
13007         TARGET_FSGSBASE_P: New Macro.
13008         TARGET_RDRND_P: New Macro.
13009         TARGET_F16C_P: New Macro.
13010         TARGET_RTM_P: New Macro.
13011         TARGET_HLE_P: New Macro.
13012         TARGET_RDSEED_P: New Macro.
13013         TARGET_PRFCHW_P: New Macro.
13014         TARGET_ADX_P: New Macro.
13015         TARGET_FXSR_P: New Macro.
13016         TARGET_XSAVE_P: New Macro.
13017         TARGET_XSAVEOPT_P: New Macro.
13018         TARGET_LP64_P: New Macro.
13019         TARGET_X32_P: New Macro.
13020         TARGET_FPMATH_DEFAULT_P: New Macro.
13021         TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
13022         * config/i386/i386.c (ix86_option_override_internal): New parameters.
13023         opts and opts_set.
13024         Change ix86_tune_string to access opts->x_ix86_tune_string.
13025         Change ix86_isa_flags to access opts->x_ix86_isa_flags.
13026         Change ix86_arch_string to access opts->x_ix86_arch_string.
13027         Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
13028         Change ix86_pmode to access opts->x_ix86_pmode.
13029         Change ix86_abi to access opts->x_ix86_abi.
13030         Change ix86_cmodel to access opts->x_ix86_cmodel.
13031         Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
13032         Change ix86_isa_flags_explicit to access
13033         opts->x_ix86_isa_flags_explicit.
13034         Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
13035         Change ix86_regparm to access opts->x_ix86_regparm.
13036         Change ix86_branch_cost to access opts->x_ix86_branch_cost.
13037         Change ix86_preferred_stack_boundary_arg to access
13038         opts->x_ix86_preferred_stack_boundary_arg.
13039         Change ix86_force_align_arg_pointer to access
13040         opts->x_ix86_force_align_arg_pointer.
13041         Change ix86_incoming_stack_boundar_arg to access
13042         opts->x_ix86_incoming_stack_boundar_arg.
13043         Change ix86_fpmath to access opts->x_ix86_fpmath.
13044         Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
13045         Change ix86_recip_name to access opts->x_ix86_recip_name.
13046         Change ix86_stack_protector_guard to access
13047         opts->x_ix86_stack_protector_guard.
13048         Change ix86_tune_memcpy_strategy to access
13049         opts->x_ix86_tune_memcpy_strategy.
13050         Change ix86_tune_memset_strategy to access
13051         opts->x_ix86_tune_memset_strategy.
13052         Change global_options to access opts.
13053         Change global_options_set to access opts_set.
13054         Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
13055         Change TARGET_MMX to TARGET_MMX_P (opts->...).
13056         Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
13057         Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
13058         Change TARGET_SSE to TARGET_SSE_P (opts->...).
13059         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
13060         Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
13061         Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
13062         Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
13063         Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
13064         Change TARGET_AVX to TARGET_AVX_P (opts->...).
13065         Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
13066         Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
13067         Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
13068         Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
13069         Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
13070         Change TARGET_FMA to TARGET_FMA_P (opts->...).
13071         Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
13072         Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
13073         Change TARGET_XOP to TARGET_XOP_P (opts->...).
13074         Change TARGET_LWP to TARGET_LWP_P (opts->...).
13075         Change TARGET_ABM to TARGET_ABM_P (opts->...).
13076         Change TARGET_BMI to TARGET_BMI_P (opts->...).
13077         Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
13078         Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
13079         Change TARGET_TBM to TARGET_TBM_P (opts->...).
13080         Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
13081         Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
13082         Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
13083         Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
13084         Change TARGET_AES to TARGET_AES_P (opts->...).
13085         Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
13086         Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
13087         Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
13088         Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
13089         Change TARGET_F16C to TARGET_F16C_P (opts->...).
13090         Change TARGET_RTM to TARGET_RTM_P (opts->...).
13091         Change TARGET_HLE to TARGET_HLE_P (opts->...).
13092         Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
13093         Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
13094         Change TARGET_ADX to TARGET_ADX_P (opts->...).
13095         Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
13096         Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
13097         Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
13098         Change TARGET_LP64 to TARGET_LP64_P (opts->...).
13099         Change TARGET_X32 to TARGET_X32_P (opts->...).
13100         Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
13101         Change TARGET_FLOAT_RETURNS_IN_80387 to
13102         TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
13103         (ix86_function_specific_save): New parameter. Use opts-> fields
13104         to replace global fields.
13105         (ix86_function_specific_restore): Ditto.
13106         (ix86_valid_target_attribute_inner_p): New parameters.
13107         Fix recursive call.
13108         Fix call to ix86_handle_option and set_option.
13109         (ix86_valid_target_attribute_tree): New parameters.
13110         Change global_options to access opts.
13111         Change global_options_set to access opts_set.
13112         Fix call to ix86_valid_target_attribute_inner_p.
13113         Change ix86_tune_string to access opts->x_ix86_tune_string.
13114         Change ix86_arch_string to access opts->x_ix86_arch_string.
13115         Change ix86_fpmath to access opts->x_ix86_fpmath
13116         Fix call to ix86_option_override_internal.
13117         Fix call to ix86_add_new_builtins.
13118         Fix calls to build_optimization_node and build_target_option_node.
13119         (ix86_valid_target_attribute_p): Remove access to global_options.
13120         Use new gcc_options structure func_options.
13121         Fix call to ix86_valid_target_attribute_tree.
13122         Fix call to  build_optimization_node.
13123         (get_builtin_code_for_version): Fix call to
13124         ix86_valid_target_attribute_tree.
13126 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
13128         * Makefile.in (PICFLAG): New.
13129         (enable_host_shared): New.
13130         (INTERNAL_CFLAGS): Use PICFLAG.
13131         (LIBIBERTY): Use pic build of libiberty.a if configured with
13132         --enable-host-shared.
13133         * configure.ac: Add --enable-host-shared, setting up new
13134         PICFLAG variable.
13135         * configure: Regenerate.
13136         * doc/install.texi (--enable-shared): Add note contrasting it with ...
13137         (--enable-host-shared): New option.
13139 2013-10-15  Richard Biener  <rguenther@suse.de>
13141         * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
13142         for built-in functions.
13144 2013-10-15  Zhenqiang Chen  <zhenqiang.chen@arm.com>
13146         * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
13147         (optimize_range_tests_1): New function,
13148         extracted from optimize_range_tests.
13149         (optimize_range_tests_xor): Similarly.
13150         (optimize_range_tests_diff): New function.
13151         (optimize_range_tests): Use optimize_range_tests_1.
13153 2013-10-15  Cong Hou  <congh@google.com>
13155         * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
13156         requirement of the reduction pattern so that one operand of the
13157         reduction operation can come from outside of the loop.
13159 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
13161         * config/arm/neon-schedgen.ml: Remove.
13162         * config/arm/cortex-a9-neon.md: Remove comment regarding
13163         neon-schedgen.ml.
13165 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
13167         * config/arm/types: Remove old neon types.
13169 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
13171         * config/arm/cortex-a7.md
13172         (cortex_a7_neon_type): New.
13173         (cortex_a7_neon_mul): Update for new types.
13174         (cortex_a7_neon_mla): Likewise.
13175         (cortex_a7_neon): Likewise.
13177 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
13179         * config/arm/cortex-a15-neon.md
13180         (cortex_a15_neon_type): New,
13182         (cortex_a15_neon_int_1): Remove.
13183         (cortex_a15_neon_int_2): Likewise.
13184         (cortex_a15_neon_int_3): Likewise.
13185         (cortex_a15_neon_int_4): Likewise.
13186         (cortex_a15_neon_int_5): Likewise.
13187         (cortex_a15_neon_vqneg_vqabs): Likewise.
13188         (cortex_a15_neon_vmov): Likewise.
13189         (cortex_a15_neon_vaba): Likewise.
13190         (cortex_a15_neon_vaba_qqq): Likewise.
13191         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13192         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13193         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
13194         Likewise.
13195         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13196         (cortex_a15_neon_mla_qqq_8_16): Likewise.
13197         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
13198         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13199         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13200         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
13201         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13202         (cortex_a15_neon_shift_1): Likewise.
13203         (cortex_a15_neon_shift_2): Likewise.
13204         (cortex_a15_neon_shift_3): Likewise.
13205         (cortex_a15_neon_vshl_ddd): Likewise.
13206         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13207         (cortex_a15_neon_vsra_vrsra): Likewise.
13208         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
13209         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
13210         (cortex_a15_neon_bp_3cycle): Likewise.
13211         (cortex_a15_neon_ldm_2): Likewise.
13212         (cortex_a15_neon_stm_2): Likewise.
13213         (cortex_a15_neon_mcr): Likewise.
13214         (cortex_a15_neon_mrc): Likewise.
13215         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
13216         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
13217         (cortex_a15_neon_fp_vmul_ddd): Likewise.
13218         (cortex_a15_neon_fp_vmul_qqd): Likewise.
13219         (cortex_a15_neon_fp_vmla_ddd): Likewise.
13220         (cortex_a15_neon_fp_vmla_qqq): Likewise.
13221         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
13222         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
13223         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
13224         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
13225         (cortex_a15_neon_bp_simple): Likewise.
13226         (cortex_a15_neon_bp_2cycle): Likewise.
13227         (cortex_a15_neon_bp_3cycle): Likewise.
13228         (cortex_a15_neon_vld1_1_2_regs): Likewise.
13229         (cortex_a15_neon_vld1_3_4_regs): Likewise.
13230         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
13231         (cortex_a15_neon_vld2_4_regs): Likewise.
13232         (cortex_a15_neon_vld3_vld4): Likewise.
13233         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
13234         (cortex_a15_neon_vst1_3_4_regs): Likewise.
13235         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
13236         (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
13237         (cortex_a15_neon_vst3_vst4): Rename to...
13238         (cortex_a15_neon_vst4): This, update for new attributes.
13239         (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
13240         (cortex_a15_neon_vld3_vld4_lane): Likewise.
13241         (cortex_a15_neon_vst1_vst2_lane): Likewise.
13242         (cortex_a15_neon_vst3_vst4_lane): Likewise.
13243         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
13244         (cortex_a15_neon_ldm_2): Likewise.
13245         (cortex_a15_neon_stm_2): Likewise.
13246         (cortex_a15_neon_mcr): Likewise.
13247         (cortex_a15_neon_mcr_2_mcrr): Likewise.
13248         (cortex_a15_neon_mrc): Likewise.
13249         (cortex_a15_neon_mrrc): Likewise.
13251         (cortex_a15_neon_abd): New.
13252         (cortex_a15_neon_abd_q): Likewise.
13253         (cortex_a15_neon_aba): Likewise.
13254         (cortex_a15_neon_aba_q): Likewise.
13255         (cortex_a15_neon_acc): Likewise.
13256         (cortex_a15_neon_acc_q): Likewise.
13257         (cortex_a15_neon_arith_basic): Likewise.
13258         (cortex_a15_neon_arith_complex): Likewise.
13259         (cortex_a15_neon_multiply): Likewise.
13260         (cortex_a15_neon_multiply_q): Likewise.
13261         (cortex_a15_neon_mla): Likewise.
13262         (cortex_a15_neon_mla_q): Likewise.
13263         (cortex_a15_neon_sat_mla_long): Likewise.
13264         (cortex_a15_neon_shift_acc): Likewise.
13265         (cortex_a15_neon_shift_imm_basic): Likewise.
13266         (cortex_a15_neon_shift_imm_complex): Likewise.
13267         (cortex_a15_neon_shift_reg_basic): Likewise.
13268         (cortex_a15_neon_shift_reg_basic_q): Likewise.
13269         (cortex_a15_neon_shift_reg_complex): Likewise.
13270         (cortex_a15_neon_shift_reg_complex_q): Likewise.
13271         (cortex_a15_neon_fp_negabs): Likewise
13272         (cortex_a15_neon_fp_arith): Likewise
13273         (cortex_a15_neon_fp_arith_q): Likewise
13274         (cortex_a15_neon_fp_cvt_int): Likewise
13275         (cortex_a15_neon_fp_cvt_int_q): Likewise
13276         (cortex_a15_neon_fp_cvt_16): Likewise
13277         (cortex_a15_neon_fp_mul): Likewise
13278         (cortex_a15_neon_fp_mul_q): Likewise
13279         (cortex_a15_neon_fp_mla): Likewise
13280         (cortex_a15_neon_fp_mla_q): Likewise
13281         (cortex_a15_neon_fp_recps_rsqrte): Likewise.
13282         (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
13283         (cortex_a15_neon_bitops): Likewise.
13284         (cortex_a15_neon_bitops_q): Likewise.
13285         (cortex_a15_neon_from_gp): Likewise.
13286         (cortex_a15_neon_from_gp_q): Likewise.
13287         (cortex_a15_neon_tbl3_tbl4): Likewise.
13288         (cortex_a15_neon_zip_q): Likewise.
13289         (cortex_a15_neon_to_gp): Likewise.
13290         (cortex_a15_neon_load_a): Likewise.
13291         (cortex_a15_neon_load_b): Likewise.
13292         (cortex_a15_neon_load_c): Likewise.
13293         (cortex_a15_neon_load_d): Likewise.
13294         (cortex_a15_neon_load_e): Likewise.
13295         (cortex_a15_neon_load_f): Likewise.
13296         (cortex_a15_neon_store_a): Likewise.
13297         (cortex_a15_neon_store_b): Likewise.
13298         (cortex_a15_neon_store_c): Likewise.
13299         (cortex_a15_neon_store_d): Likewise.
13300         (cortex_a15_neon_store_e): Likewise.
13301         (cortex_a15_neon_store_f): Likewise.
13302         (cortex_a15_neon_store_g): Likewise.
13303         (cortex_a15_neon_store_h): Likewise.
13304         (cortex_a15_vfp_to_from_gp): Likewise.
13306 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
13308         * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
13310         (cortex_a9_neon_vshl_ddd): Remove.
13311         (cortex_a9_neon_vst3_vst4): Likewise.
13312         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
13314         (cortex_a9_neon_bit_ops_q): New.
13316         (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
13317         (cortex_a9_neon_int_2): Likewise.
13318         (cortex_a9_neon_int_3): Likewise.
13319         (cortex_a9_neon_int_4): Likewise.
13320         (cortex_a9_neon_int_5): Likewise.
13321         (cortex_a9_neon_vqneg_vqabs): Likewise.
13322         (cortex_a9_neon_vmov): Likewise.
13323         (cortex_a9_neon_vaba): Likewise.
13324         (cortex_a9_neon_vaba_qqq): Likewise.
13325         (cortex_a9_neon_shift_1): Likewise.
13326         (cortex_a9_neon_shift_2): Likewise.
13327         (cortex_a9_neon_shift_3): Likewise.
13328         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13329         (cortex_a9_neon_vsra_vrsra): Likewise.
13330         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13331         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13332         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
13333         Likewise.
13334         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13335         (cortex_a9_neon_mla_qqq_8_16): Likewise.
13336         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
13337         Likewise.
13338         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13339         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13340         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
13341         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13342         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
13343         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
13344         (cortex_a9_neon_fp_vsum): Likewise.
13345         (cortex_a9_neon_fp_vmul_ddd): Likewise.
13346         (cortex_a9_neon_fp_vmul_qqd): Likewise.
13347         (cortex_a9_neon_fp_vmla_ddd): Likewise.
13348         (cortex_a9_neon_fp_vmla_qqq): Likewise.
13349         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
13350         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
13351         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
13352         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
13353         (cortex_a9_neon_bp_simple): Likewise.
13354         (cortex_a9_neon_bp_2cycle): Likewise.
13355         (cortex_a9_neon_bp_3cycle): Likewise.
13356         (cortex_a9_neon_ldr): Likewise.
13357         (cortex_a9_neon_str): Likewise.
13358         (cortex_a9_neon_vld1_1_2_regs): Likewise.
13359         (cortex_a9_neon_vld1_3_4_regs): Likewise.
13360         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
13361         (cortex_a9_neon_vld2_4_regs): Likewise.
13362         (cortex_a9_neon_vld3_vld4): Likewise.
13363         (cortex_a9_neon_vld1_vld2_lane): Likewise.
13364         (cortex_a9_neon_vld3_vld4_lane): Likewise.
13365         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
13366         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
13367         (cortex_a9_neon_vst1_3_4_regs): Likewise.
13368         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
13369         (cortex_a9_neon_vst1_vst2_lane): Likewise.
13370         (cortex_a9_neon_vst3_vst4_lane): Likewise.
13371         (cortex_a9_neon_mcr): Likewise.
13372         (cortex_a9_neon_mcr_2_mcrr): Likewise.
13373         (cortex_a9_neon_mrc): Likewise.
13374         (cortex_a9_neon_mrrc): Likewise.
13376 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
13378         * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
13380         (cortex_a8_neon_vshl_ddd): Remove.
13381         (cortex_a8_neon_vst3_vst4): Likewise.
13382         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
13384         (cortex_a8_neon_bit_ops_q): New.
13386         (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
13387         (cortex_a8_neon_int_2): Likewise..
13388         (cortex_a8_neon_int_3): Likewise.
13389         (cortex_a8_neon_int_5): Likewise.
13390         (cortex_a8_neon_vqneg_vqabs): Likewise.
13391         (cortex_a8_neon_int_4): Likewise.
13392         (cortex_a8_neon_vaba): Likewise.
13393         (cortex_a8_neon_vaba_qqq): Likewise.
13394         (cortex_a8_neon_shift_1): Likewise.
13395         (cortex_a8_neon_shift_2): Likewise.
13396         (cortex_a8_neon_shift_3): Likewise.
13397         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13398         (cortex_a8_neon_vsra_vrsra): Likewise.
13399         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13400         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13401         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
13402         Likewise.
13403         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13404         (cortex_a8_neon_mla_qqq_8_16): Likewise.
13405         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
13406         Likewise.
13407         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13408         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13409         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
13410         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13411         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
13412         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
13413         (cortex_a8_neon_fp_vsum): Likewise.
13414         (cortex_a8_neon_fp_vmul_ddd): Likewise.
13415         (cortex_a8_neon_fp_vmul_qqd): Likewise.
13416         (cortex_a8_neon_fp_vmla_ddd): Likewise.
13417         (cortex_a8_neon_fp_vmla_qqq): Likewise.
13418         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
13419         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
13420         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
13421         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
13422         (cortex_a8_neon_bp_simple): Likewise.
13423         (cortex_a8_neon_bp_2cycle): Likewise.
13424         (cortex_a8_neon_bp_3cycle): Likewise.
13425         (cortex_a8_neon_ldr): Likewise.
13426         (cortex_a8_neon_str): Likewise.
13427         (cortex_a8_neon_vld1_1_2_regs): Likewise.
13428         (cortex_a8_neon_vld1_3_4_regs): Likewise.
13429         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
13430         (cortex_a8_neon_vld2_4_regs): Likewise.
13431         (cortex_a8_neon_vld3_vld4): Likewise.
13432         (cortex_a8_neon_vld1_vld2_lane): Likewise.
13433         (cortex_a8_neon_vld3_vld4_lane): Likewise.
13434         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
13435         (cortex_a8_neon_vst1_3_4_regs): Likewise.
13436         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
13437         (cortex_a8_neon_vst1_vst2_lane): Likewise.
13438         (cortex_a8_neon_vst3_vst4_lane): Likewise.
13439         (cortex_a8_neon_mcr): Likewise.
13440         (cortex_a8_neon_mcr_2_mcrr): Likewise.
13441         (cortex_a8_neon_mrc): Likewise.
13442         (cortex_a8_neon_mrrc): Likewise.
13444 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
13446         * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
13447         (fp): New.
13448         * config/aarch64/aarch64-simd.md (neon_type): Remove.
13449         (aarch64_simd_dup<mode>): Add "type" attribute.
13450         (aarch64_dup_lane<mode>): Likewise.
13451         (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
13452         (*aarch64_simd_mov<mode>): Likewise.
13453         (aarch64_simd_mov_from_<mode>low): Likewise.
13454         (aarch64_simd_mov_from_<mode>high): Likewise.
13455         (orn<mode>3): Likewise.
13456         (bic<mode>3): Likewise.
13457         (add<mode>3): Likewise.
13458         (sub<mode>3): Likewise.
13459         (mul<mode>3): Likewise.
13460         (*aarch64_mul3_elt<mode>): Likewise.
13461         (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
13462         (*aarch64_mul3_elt_to_128df): Likewise.
13463         (*aarch64_mul3_elt_to_64v2df): Likewise.
13464         (neg<mode>2): Likewise.
13465         (abs<mode>2): Likewise.
13466         (abd<mode>_3): Likewise.
13467         (aba<mode>_3): Likewise.
13468         (fabd<mode>_3): Likewise.
13469         (*fabd_scalar<mode>3): Likewise.
13470         (and<mode>3): Likewise.
13471         (ior<mode>3): Likewise.
13472         (xor<mode>3): Likewise.
13473         (one_cmpl<mode>2): Likewise.
13474         (aarch64_simd_vec_set<mode>): Likewise.
13475         (aarch64_simd_lshr<mode>): Likewise.
13476         (aarch64_simd_ashr<mode>): Likewise.
13477         (aarch64_simd_imm_shl<mode>): Likewise.
13478         (aarch64_simd_reg_sshl<mode): Likewise.
13479         (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
13480         (aarch64_simd_reg_shl<mode>_signed): Likewise.
13481         (aarch64_simd_vec_setv2di): Likewise.
13482         (aarch64_simd_vec_set<mode>): Likewise.
13483         (aarch64_mla<mode>): Likewise.
13484         (*aarch64_mla_elt<mode>): Likewise.
13485         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
13486         (aarch64_mls<mode>): Likewise.
13487         (*aarch64_mls_elt<mode>): Likewise.
13488         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
13489         (<su><maxmin><mode>3): Likewise.
13490         (move_lo_quad_<mode>): Likewise.
13491         (aarch64_simd_move_hi_quad_<mode>): Likewise.
13492         (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
13493         (vec_pack_trunc_<mode>): Likewise.
13494         (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
13495         (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
13496         (*aarch64_<su>mlal_lo<mode>): Likewise.
13497         (*aarch64_<su>mlal_hi<mode>): Likewise.
13498         (*aarch64_<su>mlsl_lo<mode>): Likewise.
13499         (*aarch64_<su>mlsl_hi<mode>): Likewise.
13500         (*aarch64_<su>mlal<mode>): Likewise.
13501         (*aarch64_<su>mlsl<mode>): Likewise.
13502         (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
13503         (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
13504         (add<mode>3): Likewise.
13505         (sub<mode>3): Likewise.
13506         (mul<mode>3): Likewise.
13507         (div<mode>3): Likewise.
13508         (neg<mode>2): Likewise.
13509         (abs<mode>2): Likewise.
13510         (fma<mode>4): Likewise.
13511         (*aarch64_fma4_elt<mode>): Likewise.
13512         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
13513         (*aarch64_fma4_elt_to_128df): Likewise.
13514         (*aarch64_fma4_elt_to_64v2df): Likewise.
13515         (fnma<mode>4): Likewise.
13516         (*aarch64_fnma4_elt<mode>): Likewise.
13517         (*aarch64_fnma4_elt_<vswap_width_name><mode>
13518         (*aarch64_fnma4_elt_to_128df): Likewise.
13519         (*aarch64_fnma4_elt_to_64v2df): Likewise.
13520         (<frint_pattern><mode>2): Likewise.
13521         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
13522         (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
13523         (vec_unpacks_lo_v4sf): Likewise.
13524         (aarch64_float_extend_lo_v2df): Likewise.
13525         (vec_unpacks_hi_v4sf): Likewise.
13526         (aarch64_float_truncate_lo_v2sf): Likewise.
13527         (aarch64_float_truncate_hi_v4sf): Likewise.
13528         (aarch64_vmls<mode>): Likewise.
13529         (<su><maxmin><mode>3): Likewise.
13530         (<maxmin_uns><mode>3): Likewise.
13531         (reduc_<sur>plus_<mode>): Likewise.
13532         (reduc_<sur>plus_v2di): Likewise.
13533         (reduc_<sur>plus_v2si): Likewise.
13534         (reduc_<sur>plus_<mode>): Likewise.
13535         (aarch64_addpv4sf): Likewise.
13536         (clz<mode>2): Likewise.
13537         (reduc_<maxmin_uns>_<mode>): Likewise.
13538         (reduc_<maxmin_uns>_v2di): Likewise.
13539         (reduc_<maxmin_uns>_v2si): Likewise.
13540         (reduc_<maxmin_uns>_<mode>): Likewise.
13541         (reduc_<maxmin_uns>_v4sf): Likewise.
13542         (aarch64_simd_bsl<mode>_internal): Likewise.
13543         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
13544         (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
13545         (aarch64_get_lane<mode>): Likewise.
13546         (*aarch64_combinez<mode>): Likewise.
13547         (aarch64_combine<mode>): Likewise.
13548         (aarch64_simd_combine<mode>): Likewise.
13549         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
13550         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
13551         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
13552         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
13553         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
13554         (aarch64_<sur>h<addsub><mode>): Likewise.
13555         (aarch64_<sur><addsub>hn<mode>): Likewise.
13556         (aarch64_<sur><addsub>hn2<mode>): Likewise.
13557         (aarch64_pmul<mode>): Likewise.
13558         (aarch64_<su_optab><optab><mode>): Likewise.
13559         (aarch64_<sur>qadd<mode>): Likewise.
13560         (aarch64_sqmovun<mode>): Likewise.
13561         (aarch64_<sur>qmovn<mode>): Likewise.
13562         (aarch64_s<optab><mode>): Likewise.
13563         (aarch64_sq<r>dmulh<mode>): Likewise.
13564         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
13565         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
13566         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
13567         (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
13568         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
13569         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
13570         (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
13571         (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
13572         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
13573         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
13574         (aarch64_sqdmull<mode>): Likewise.
13575         (aarch64_sqdmull_lane<mode>_internal): Likewise.
13576         (aarch64_sqdmull_n<mode>): Likewise.
13577         (aarch64_sqdmull2<mode>_internal): Likewise.
13578         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
13579         (aarch64_sqdmull2_n<mode>_internal): Likewise.
13580         (aarch64_<sur>shl<mode>): Likewise.
13581         (aarch64_<sur>q<r>shl<mode>
13582         (aarch64_<sur>shll_n<mode>): Likewise.
13583         (aarch64_<sur>shll2_n<mode>): Likewise.
13584         (aarch64_<sur>shr_n<mode>): Likewise.
13585         (aarch64_<sur>sra_n<mode>): Likewise.
13586         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
13587         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
13588         (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
13589         (aarch64_cm<optab><mode>): Likewise.
13590         (aarch64_cm<optab>di): Likewise.
13591         (aarch64_cm<optab><mode>): Likewise.
13592         (aarch64_cm<optab>di): Likewise.
13593         (aarch64_cmtst<mode>): Likewise.
13594         (aarch64_cmtstdi): Likewise.
13595         (aarch64_cm<optab><mode>): Likewise.
13596         (*aarch64_fac<optab><mode>): Likewise.
13597         (aarch64_addp<mode>): Likewise.
13598         (aarch64_addpdi): Likewise.
13599         (sqrt<mode>2): Likewise.
13600         (vec_load_lanesoi<mode>): Likewise.
13601         (vec_store_lanesoi<mode>): Likewise.
13602         (vec_load_lanesci<mode>): Likewise.
13603         (vec_store_lanesci<mode>): Likewise.
13604         (vec_load_lanesxi<mode>): Likewise.
13605         (vec_store_lanesxi<mode>): Likewise.
13606         (*aarch64_mov<mode>): Likewise.
13607         (aarch64_ld2<mode>_dreg): Likewise.
13608         (aarch64_ld2<mode>_dreg): Likewise.
13609         (aarch64_ld3<mode>_dreg): Likewise.
13610         (aarch64_ld3<mode>_dreg): Likewise.
13611         (aarch64_ld4<mode>_dreg): Likewise.
13612         (aarch64_ld4<mode>_dreg): Likewise.
13613         (aarch64_tbl1<mode>): Likewise.
13614         (aarch64_tbl2v16qi): Likewise.
13615         (aarch64_combinev16qi): Likewise.
13616         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
13617         (aarch64_st2<mode>_dreg): Likewise.
13618         (aarch64_st2<mode>_dreg): Likewise.
13619         (aarch64_st3<mode>_dreg): Likewise.
13620         (aarch64_st3<mode>_dreg): Likewise.
13621         (aarch64_st4<mode>_dreg): Likewise.
13622         (aarch64_st4<mode>_dreg): Likewise.
13623         (*aarch64_simd_ld1r<mode>): Likewise.
13624         (aarch64_frecpe<mode>): Likewise.
13625         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
13626         (aarch64_frecps<mode>): Likewise.
13628 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
13630         * config/arm/iterators.md (V_elem_ch): New.
13631         (q): Likewise.
13632         (VQH_type): Likewise.
13633         * config/arm/arm.md (is_neon_type): New.
13634         (conds): Use is_neon_type.
13635         (anddi3_insn): Update type attribute.
13636         (xordi3_insn): Likewise.
13637         (one_cmpldi2): Likewise.
13638         * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
13639         * config/arm/neon.md (neon_mov): Update type attribute.
13640         (*movmisalign<mode>_neon_store): Likewise.
13641         (*movmisalign<mode>_neon_load): Likewise.
13642         (vec_set<mode>_internal): Likewise.
13643         (vec_set<mode>_internal): Likewise.
13644         (vec_setv2di_internal): Likewise.
13645         (vec_extract<mode>): Likewise.
13646         (vec_extract<mode>): Likewise.
13647         (vec_extractv2di): Likewise.
13648         (*add<mode>3_neon): Likewise.
13649         (adddi3_neon): Likewise.
13650         (*sub<mode>3_neon): Likewise.
13651         (subdi3_neon): Likewise.
13652         (fma<VCVTF:mode>4): Likewise.
13653         (fma<VCVTF:mode>4_intrinsic): Likewise.
13654         (*fmsub<VCVTF:mode>4): Likewise.
13655         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
13656         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
13657         (ior<mode>3): Likewise.
13658         (and<mode>3): Likewise.
13659         (orn<mode>3_neon): Likewise.
13660         (orndi3_neon): Likewise.
13661         (bic<mode>3_neon): Likewise.
13662         (bicdi3_neon): Likewise.
13663         (xor<mode>3): Likewise.
13664         (one_cmpl<mode>2): Likewise.
13665         (abs<mode>2): Likewise.
13666         (neg<mode>2): Likewise.
13667         (negdi2_neon): Likewise.
13668         (*umin<mode>3_neon): Likewise.
13669         (*umax<mode>3_neon): Likewise.
13670         (*smin<mode>3_neon): Likewise.
13671         (*smax<mode>3_neon): Likewise.
13672         (vashl<mode>3): Likewise.
13673         (vashr<mode>3_imm): Likewise.
13674         (vlshr<mode>3_imm): Likewise.
13675         (ashl<mode>3_signed): Likewise.
13676         (ashl<mode>3_unsigned): Likewise.
13677         (neon_load_count): Likewise.
13678         (ashldi3_neon_noclobber): Likewise.
13679         (ashldi3_neon): Likewise.
13680         (signed_shift_di3_neon): Likewise.
13681         (unsigned_shift_di3_neon): Likewise.
13682         (ashrdi3_neon_imm_noclobber): Likewise.
13683         (lshrdi3_neon_imm_noclobber): Likewise.
13684         (<shift>di3_neon): Likewise.
13685         (widen_ssum<mode>3): Likewise.
13686         (widen_usum<mode>3): Likewise.
13687         (quad_halves_<code>v4si): Likewise.
13688         (quad_halves_<code>v4sf): Likewise.
13689         (quad_halves_<code>v8hi): Likewise.
13690         (quad_halves_<code>v16qi): Likewise.
13691         (reduc_splus_v2di): Likewise.
13692         (neon_vpadd_internal<mode>): Likewise.
13693         (neon_vpsmin<mode>): Likewise.
13694         (neon_vpsmax<mode>): Likewise.
13695         (neon_vpumin<mode>): Likewise.
13696         (neon_vpumax<mode>): Likewise.
13697         (*ss_add<mode>_neon): Likewise.
13698         (*us_add<mode>_neon): Likewise.
13699         (*ss_sub<mode>_neon): Likewise.
13700         (*us_sub<mode>_neon): Likewise.
13701         (neon_vadd<mode>_unspec): Likewise.
13702         (neon_vaddl<mode>): Likewise.
13703         (neon_vaddw<mode>): Likewise.
13704         (neon_vhadd<mode>): Likewise.
13705         (neon_vqadd<mode>): Likewise.
13706         (neon_vaddhn<mode>): Likewise.
13707         (neon_vmul<mode>): Likewise.
13708         (neon_vfms<VCVTF:mode>): Likewise.
13709         (neon_vmlal<mode>): Likewise.
13710         (neon_vmls<mode>): Likewise.
13711         (neon_vmlsl<mode>): Likewise.
13712         (neon_vqdmulh<mode>): Likewise.
13713         (neon_vqdmlal<mode>): Likewise.
13714         (neon_vqdmlsl<mode>): Likewise.
13715         (neon_vmull<mode>): Likewise.
13716         (neon_vqdmull<mode>): Likewise.
13717         (neon_vsub<mode>_unspec): Likewise.
13718         (neon_vsubl<mode>): Likewise.
13719         (neon_vsubw<mode>): Likewise.
13720         (neon_vqsub<mode>): Likewise.
13721         (neon_vhsub<mode>): Likewise.
13722         (neon_vsubhn<mode>): Likewise.
13723         (neon_vceq<mode>): Likewise.
13724         (neon_vcge<mode>): Likewise.
13725         (neon_vcgeu<mode>): Likewise.
13726         (neon_vcgt<mode>): Likewise.
13727         (neon_vcgtu<mode>): Likewise.
13728         (neon_vcle<mode>): Likewise.
13729         (neon_vclt<mode>): Likewise.
13730         (neon_vcage<mode>): Likewise.
13731         (neon_vcagt<mode>): Likewise.
13732         (neon_vtst<mode>): Likewise.
13733         (neon_vabd<mode>): Likewise.
13734         (neon_vabdl<mode>): Likewise.
13735         (neon_vaba<mode>): Likewise.
13736         (neon_vabal<mode>): Likewise.
13737         (neon_vmax<mode>): Likewise.
13738         (neon_vmin<mode>): Likewise.
13739         (neon_vpaddl<mode>): Likewise.
13740         (neon_vpadal<mode>): Likewise.
13741         (neon_vpmax<mode>): Likewise.
13742         (neon_vpmin<mode>): Likewise.
13743         (neon_vrecps<mode>): Likewise.
13744         (neon_vrsqrts<mode>): Likewise.
13745         (neon_vqabs<mode>): Likewise.
13746         (neon_vqneg<mode>): Likewise.
13747         (neon_vcls<mode>): Likewise.
13748         (clz<mode>2): Likewise.
13749         (popcount<mode>2): Likewise.
13750         (neon_vrecpe<mode>): Likewise.
13751         (neon_vrsqrte<mode>): Likewise.
13752         (neon_vget_lane<mode>_sext_internal): Likewise.
13753         (neon_vget_lane<mode>_zext_internal): Likewise.
13754         (neon_vdup_n<mode>): Likewise.
13755         (neon_vdup_n<mode>): Likewise.
13756         (neon_vdup_nv2di): Likewise.
13757         (neon_vdup_lane<mode>_interal): Likewise.
13758         (*neon_vswp<mode>): Likewise.
13759         (neon_vcombine<mode>): Likewise.
13760         (float<mode><V_cvtto>2): Likewise.
13761         (floatuns<mode><V_cvtto>2): Likewise.
13762         (fix_trunc<mode><V_cvtto>2): Likewise.
13763         (fixuns_trunc<mode><V_cvtto>2
13764         (neon_vcvt<mode>): Likewise.
13765         (neon_vcvt<mode>): Likewise.
13766         (neon_vcvtv4sfv4hf): Likewise.
13767         (neon_vcvtv4hfv4sf): Likewise.
13768         (neon_vcvt_n<mode>): Likewise.
13769         (neon_vcvt_n<mode>): Likewise.
13770         (neon_vmovn<mode>): Likewise.
13771         (neon_vqmovn<mode>): Likewise.
13772         (neon_vqmovun<mode>): Likewise.
13773         (neon_vmovl<mode>): Likewise.
13774         (neon_vmul_lane<mode>): Likewise.
13775         (neon_vmul_lane<mode>): Likewise.
13776         (neon_vmull_lane<mode>): Likewise.
13777         (neon_vqdmull_lane<mode>): Likewise.
13778         (neon_vqdmulh_lane<mode>): Likewise.
13779         (neon_vqdmulh_lane<mode>): Likewise.
13780         (neon_vmla_lane<mode>): Likewise.
13781         (neon_vmla_lane<mode>): Likewise.
13782         (neon_vmlal_lane<mode>): Likewise.
13783         (neon_vqdmlal_lane<mode>): Likewise.
13784         (neon_vmls_lane<mode>): Likewise.
13785         (neon_vmls_lane<mode>): Likewise.
13786         (neon_vmlsl_lane<mode>): Likewise.
13787         (neon_vqdmlsl_lane<mode>): Likewise.
13788         (neon_vext<mode>): Likewise.
13789         (neon_vrev64<mode>): Likewise.
13790         (neon_vrev32<mode>): Likewise.
13791         (neon_vrev16<mode>): Likewise.
13792         (neon_vbsl<mode>_internal): Likewise.
13793         (neon_vshl<mode>): Likewise.
13794         (neon_vqshl<mode>): Likewise.
13795         (neon_vshr_n<mode>): Likewise.
13796         (neon_vshrn_n<mode>): Likewise.
13797         (neon_vqshrn_n<mode>): Likewise.
13798         (neon_vqshrun_n<mode>): Likewise.
13799         (neon_vshl_n<mode>): Likewise.
13800         (neon_vqshl_n<mode>): Likewise.
13801         (neon_vqshlu_n<mode>): Likewise.
13802         (neon_vshll_n<mode>): Likewise.
13803         (neon_vsra_n<mode>): Likewise.
13804         (neon_vsri_n<mode>): Likewise.
13805         (neon_vsli_n<mode>): Likewise.
13806         (neon_vtbl1v8qi): Likewise.
13807         (neon_vtbl2v8qi): Likewise.
13808         (neon_vtbl3v8qi): Likewise.
13809         (neon_vtbl4v8qi): Likewise.
13810         (neon_vtbl1v16qi): Likewise.
13811         (neon_vtbl2v16qi): Likewise.
13812         (neon_vcombinev16qi): Likewise.
13813         (neon_vtbx1v8qi): Likewise.
13814         (neon_vtbx2v8qi): Likewise.
13815         (neon_vtbx3v8qi): Likewise.
13816         (neon_vtbx4v8qi): Likewise.
13817         (*neon_vtrn<mode>_insn): Likewise.
13818         (*neon_vzip<mode>_insn): Likewise.
13819         (*neon_vuzp<mode>_insn): Likewise.
13820         (neon_vld1<mode>): Likewise.
13821         (neon_vld1_lane<mode>): Likewise.
13822         (neon_vld1_lane<mode>): Likewise.
13823         (neon_vld1_dup<mode>): Likewise.
13824         (neon_vld1_dup<mode>): Likewise.
13825         (neon_vld1_dupv2di): Likewise.
13826         (neon_vst1<mode>): Likewise.
13827         (neon_vst1_lane<mode>): Likewise.
13828         (neon_vst1_lane<mode>): Likewise.
13829         (neon_vld2<mode>): Likewise.
13830         (neon_vld2<mode>): Likewise.
13831         (neon_vld2_lane<mode>): Likewise.
13832         (neon_vld2_lane<mode>): Likewise.
13833         (neon_vld2_dup<mode>): Likewise.
13834         (neon_vst2<mode>): Likewise.
13835         (neon_vst2<mode>): Likewise.
13836         (neon_vst2_lane<mode>): Likewise.
13837         (neon_vst2_lane<mode>): Likewise.
13838         (neon_vld3<mode>): Likewise.
13839         (neon_vld3qa<mode>): Likewise.
13840         (neon_vld3qb<mode>): Likewise.
13841         (neon_vld3_lane<mode>): Likewise.
13842         (neon_vld3_lane<mode>): Likewise.
13843         (neon_vld3_dup<mode>): Likewise.
13844         (neon_vst3<mode>): Likewise.
13845         (neon_vst3qa<mode>): Likewise.
13846         (neon_vst3qb<mode>): Likewise.
13847         (neon_vst3_lane<mode>): Likewise.
13848         (neon_vst3_lane<mode>): Likewise.
13849         (neon_vld4<mode>): Likewise.
13850         (neon_vld4qa<mode>): Likewise.
13851         (neon_vld4qb<mode>): Likewise.
13852         (neon_vld4_lane<mode>): Likewise.
13853         (neon_vld4_lane<mode>): Likewise.
13854         (neon_vld4_dup<mode>): Likewise.
13855         (neon_vst4<mode>): Likewise.
13856         (neon_vst4qa<mode>): Likewise.
13857         (neon_vst4qb<mode>): Likewise.
13858         (neon_vst4_lane<mode>): Likewise.
13859         (neon_vst4_lane<mode>): Likewise.
13860         (neon_vec_unpack<US>_lo_<mode>): Likewise.
13861         (neon_vec_unpack<US>_hi_<mode>): Likewise.
13862         (neon_vec_<US>mult_lo_<mode>): Likewise.
13863         (neon_vec_<US>mult_hi_<mode>): Likewise.
13864         (neon_vec_<US>shiftl_<mode>): Likewise.
13865         (neon_unpack<US>_<mode>): Likewise.
13866         (neon_vec_<US>mult_<mode>): Likewise.
13867         (vec_pack_trunc_<mode>): Likewise.
13868         (neon_vec_pack_trunc_<mode>): Likewise.
13869         (neon_vabd<mode>_2): Likewise.
13870         (neon_vabd<mode>_3): Likewise.
13872 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
13874         * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
13875         (load_pair): Update type attribute.
13876         (store_pair): Update type attribute.
13877         * config/aarch64/iterators.md (q): New.
13879 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
13881         * config/arm/types.md: Add new types for Neon insns.
13883 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13884             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13885             Sergey Lega  <sergey.s.lega@intel.com>
13886             Anna Tikhonova  <anna.tikhonova@intel.com>
13887             Ilya Tocar  <ilya.tocar@intel.com>
13888             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13889             Ilya Verbin  <ilya.verbin@intel.com>
13890             Kirill Yukhin  <kirill.yukhin@intel.com>
13891             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13893         * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
13894         UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
13895         UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
13896         (rcp14<mode>): New.
13897         (srcp14<mode>): Ditto.
13898         (rsqrt14<mode>): Ditto.
13899         (rsqrt14<mode>): Ditto.
13900         (avx512f_vmscalef<mode>): Ditto.
13901         (avx512f_scalef<mode>): Ditto.
13902         (avx512f_getexp<mode>): Ditto.
13903         (avx512f_sgetexp<mode>): Ditto.
13904         (avx512f_fixupimm<mode>): Ditto.
13905         (avx512f_sfixupimm<mode>): Ditto.
13906         (avx512f_rndscale<mode>): Ditto.
13907         (*avx512er_exp2<mode>): Ditto.
13908         (*avx512er_rcp28<mode>): Ditto.
13909         (avx512er_rsqrt28<mode>): Ditto.
13910         (avx512f_getmant<mode>): Ditto.
13911         (avx512f_getmant<mode>): Ditto.
13912         (avx512f_rndscale<mode>): Fix formatting.
13914 2013-10-15  Martin Jambor  <mjambor@suse.cz>
13916         * ipa-utils.h (ipa_edge_within_scc): Declare.
13917         * ipa-cp.c (edge_within_scc): Moved...
13918         * ipa-utils.c (ipa_edge_within_scc): ...here.  Updated all callers.
13920 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13921             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13922             Sergey Lega  <sergey.s.lega@intel.com>
13923             Anna Tikhonova  <anna.tikhonova@intel.com>
13924             Ilya Tocar  <ilya.tocar@intel.com>
13925             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13926             Ilya Verbin  <ilya.verbin@intel.com>
13927             Kirill Yukhin  <kirill.yukhin@intel.com>
13928             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13930         * config/i386/predicates.md (const_8_to_15_operand): New.
13931         (const_16_to_31_operand): Ditto.
13932         * config/i386/sse.md (V8FI): New.
13933         (V16FI): Ditto.
13934         (reduc_splus_v8df): Ditto.
13935         (reduc_splus_v16sf): Ditto.
13936         (avx512f_vextract<shuffletype>32x4_1): Ditto.
13937         (vec_extract_hi_<mode>): Ditto.
13938         (avx512f_vinsert<shuffletype>32x4_1): Ditto.
13939         (vec_set_lo_<mode>): Ditto.
13940         (vec_set_hi_<mode>): Ditto.
13941         (avx512f_shuf_<shuffletype>64x2_1): Ditto.
13942         (avx512f_shuf_<shuffletype>32x4_1): Ditto.
13943         (avx512f_pshufd_1): Ditto.
13944         (avx512f_broadcast<mode>): Ditto.
13945         (avx512f_broadcast<mode>): Ditto.
13946         (define_split): Split vec_extract_lo into move.
13947         (ssequartermode): Ditto.
13948         (ssedoublemode): Extened with wider modes.
13949         (vec_extract_lo_<mode>): Ditto.
13951 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13952             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13953             Sergey Lega  <sergey.s.lega@intel.com>
13954             Anna Tikhonova  <anna.tikhonova@intel.com>
13955             Ilya Tocar  <ilya.tocar@intel.com>
13956             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13957             Ilya Verbin  <ilya.verbin@intel.com>
13958             Kirill Yukhin  <kirill.yukhin@intel.com>
13959             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13961         * config/i386/predicates.md (register_or_constm1_operand): New.
13962         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
13963         UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
13964         UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
13965         UNSPEC_SCATTER_PREFETCH
13966         (VI48_512): New.
13967         (avx512f_ucmp<mode>3): Ditto.
13968         (avx512f_vternlog<mode>): Ditto.
13969         (avx512f_align<mode>): Ditto.
13970         (<shift_insn><mode>3): Ditto.
13971         (avx512f_<rotate>v<mode>): Ditto.
13972         (avx512f_<rotate><mode>): Ditto.
13973         (avx512f_eq<mode>3): Ditto.
13974         (avx512f_eq<mode>3_1): Ditto.
13975         (avx512f_gt<mode>3): Ditto.
13976         (avx512f_testm<mode>3): Ditto.
13977         (avx512f_testnm<mode>3): Ditto.
13978         (avx512pf_gatherpf<mode>): Ditto.
13979         (*avx512pf_gatherpf<mode>_mask): Ditto.
13980         (*avx512pf_gatherpf<mode>): Ditto.
13981         (avx512pf_scatterpf<mode>): Ditto.
13982         (*avx512pf_scatterpf<mode>_mask): Ditto.
13983         (*avx512pf_scatterpf<mode>): Ditto.
13984         (avx512f_vec_dup_gpr<mode>): Ditto.
13985         (clz<mode>2): Ditto.
13986         (conflict<mode>): Ditto.
13987         (REDUC_SMINMAX_MODE): Extened with wider modes.
13988         (reduc_<code>_<mode>): Ditto.
13989         (vlshr<mode>3): Ditto.
13990         (vashl<mode>3): Ditto.
13992 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13993             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13994             Sergey Lega  <sergey.s.lega@intel.com>
13995             Anna Tikhonova  <anna.tikhonova@intel.com>
13996             Ilya Tocar  <ilya.tocar@intel.com>
13997             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13998             Ilya Verbin  <ilya.verbin@intel.com>
13999             Kirill Yukhin  <kirill.yukhin@intel.com>
14000             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14002         * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
14003         UNSPEC_SCATTER.
14004         (VI48F_512): New.
14005         (avx512fmaskmode): Ditto.
14006         (bcstscalarsuff): Ditto.
14007         (avx512f_blendm<mode>): Ditto.
14008         (cmp_imm_predicate): Ditto.
14009         (avx512f_cmp<mode>3): Ditto.
14010         (avx512f_vec_dup<mode>): Ditto.
14011         (avx512f_vec_dup_mem<mode>): Ditto.
14012         (avx512f_vpermi2var<mode>3): Ditto.
14013         (avx512f_vpermt2var<mode>3): Ditto.
14014         (vec_init<mode>): Ditto.
14015         (avx512f_gathersi<mode>): Ditto.
14016         (*avx512f_gathersi<mode>): Ditto.
14017         (*avx512f_gathersi<mode>_2): Ditto.
14018         (avx512f_gatherdi<mode>): Ditto.
14019         (*avx512f_gatherdi<mode>): Ditto.
14020         (*avx512f_gatherdi<mode>_2): Ditto.
14021         (avx512f_scattersi<mode>): Ditto.
14022         (*avx512f_scattersi<mode>): Ditto.
14023         (avx512f_scatterdi<mode>): Ditto.
14024         (*avx512f_scatterdi<mode>): Ditto.
14025         (sseintprefix): Extened with wider modes.
14026         (VEC_GATHER_IDXSI): Ditto.
14027         (VEC_GATHER_IDXDI): Ditto.
14028         (VEC_GATHER_SRCDI): Ditto.
14030 2013-10-15  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
14031             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14033         * config/arm/t-aprofile: New file.
14034         * config.gcc: Handle --with-multilib-list option.
14036 2013-10-15  Bernd Schmidt  <bernds@codesourcery.com>
14038         * reload1.c (reloads_unique_chain_p): Ensure that r1 is
14039         the input for r2.
14041 2013-10-15  Richard Biener  <rguenther@suse.de>
14043         * tree-loop-distribution.c (build_empty_rdg): Inline into
14044         single user.
14045         (rdg_flag_vertex): Inline into single user.
14046         (rdg_flag_vertex_and_dependent): Likewise.
14047         (build_rdg_partition_for_vertex): Remove processed bitmap.
14048         (rdg_build_partitions): Simplify.
14050 2013-10-15  Richard Biener  <rguenther@suse.de>
14052         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
14053         Restructure forwarding through conversions and copies to
14054         avoid performing copy-propagation the wrong way.  Adjust
14055         recursion invocations.
14056         (forward_propagate_addr_expr): Add argument stating if we
14057         are recursing from a single-use.
14058         (ssa_forward_propagate_and_combine): Adjust.
14060 2013-10-14  David Malcolm  <dmalcolm@redhat.com>
14062         * dumpfile.h (gcc::dump_manager): New class, to hold state
14063         relating to dumpfile management.
14064         (get_dump_file_name): Remove in favor of method of dump_manager.
14065         (dump_initialized_p): Likewise.
14066         (dump_start): Likewise.
14067         (dump_finish): Likewise.
14068         (dump_switch_p): Likewise.
14069         (dump_register): Likewise.
14070         (get_dump_file_info): Likewise.
14071         * context.c (gcc::context::context): Construct the dump_manager
14072         instance.
14073         * context.h (gcc::context::get_dumps): New.
14074         (gcc::context::m_dumps): New.
14075         * coverage.c (coverage_init): Port to dump_manager API.
14076         * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
14077         (extra_dump_files_in_use): Likewise.
14078         (extra_dump_files_alloced): Likewise.
14079         (gcc::dump_manager::dump_manager): New.
14080         (dump_register): Convert to...
14081         (gcc::dump_manager::dump_register): ...method, replacing
14082         function-static next_dump with m_next_dump field.
14083         (get_dump_file_info): Convert to...
14084         (gcc::dump_manager::get_dump_file_info): ...method.
14085         (get_dump_file_name): Convert to...
14086         (gcc::dump_manager::get_dump_file_name): ...method.
14087         (dump_start): Convert to...
14088         (gcc::dump_manager::dump_start): ...method.
14089         (dump_finish): Convert to...
14090         (gcc::dump_manager::dump_finish): ...method.
14091         (dump_begin): Replace body with...
14092         (gcc::dump_manager::dump_begin): ...new method.
14093         (dump_phase_enabled_p): Convert to...
14094         (gcc::dump_manager::dump_phase_enabled_p): ...method.
14095         (dump_phase_enabled_p): Convert to...
14096         (gcc::dump_manager::dump_phase_enabled_p): ...method.
14097         (dump_initialized_p):  Convert to...
14098         (gcc::dump_manager::dump_initialized_p): ...method.
14099         (dump_flag_name): Replace body with...
14100         (gcc::dump_manager::dump_flag_name): ...new method.
14101         (dump_enable_all): Convert to...
14102         (gcc::dump_manager::dump_enable_all): ...new method.
14103         (opt_info_enable_passes): Convert to...
14104         (gcc::dump_manager::opt_info_enable_passes): ...new method.
14105         (dump_switch_p_1): Convert to...
14106         (gcc::dump_manager::dump_switch_p_1): ...new method.
14107         (dump_switch_p):  Convert to...
14108         (gcc::dump_manager::dump_switch_p): ...new method.
14109         (opt_info_switch_p): Port to dump_manager API.
14110         (enable_rtl_dump_file): Likewise.
14111         * opts-global.c (handle_common_deferred_options): Port to new
14112         dump_manager API.
14113         * passes.c (pass_manager::finish_optimization_passes): Likewise.
14114         (pass_manager::register_one_dump_file): Likewise.
14115         (pass_manager::register_pass): Likewise.
14116         (pass_init_dump_file): Likewise.
14117         (pass_fini_dump_file): Likewise.
14118         * statistics.c (statistics_early_init): Likewise.
14120 2013-10-14  Richard Biener  <rguenther@suse.de>
14122         * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
14123         iterative_hash_canonical_type, gimple_canonical_type_hash,
14124         gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
14125         gimple_register_canonical_type, print_gimple_types_stats,
14126         free_gimple_type_tables): Move to lto/lto.c
14127         (gt-gimple.h): Do not include.
14128         * gimple.h (gimple_register_canonical_type,
14129         print_gimple_types_stats, free_gimple_type_tables): Remove.
14130         * Makefile.in (GTFILES): Remove gimple.c.
14132 2013-10-14  Travis Snoozy  <quandary@remstate.com>
14134         PR target/58716
14135         * config/msp430/msp430.c (msp430_option_override): Correct thinko
14136         scanning for msp430x targets.
14138 2013-10-14  Eric Botcazou  <ebotcazou@adacore.com>
14140         PR bootstrap/58509
14141         * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
14142         (registers_ok_for_ldd_peep): Move around.
14143         * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
14144         * config/sparc/sparc.md (widening peepholes): Use it.
14146 2013-10-14  Richard Biener  <rguenther@suse.de>
14148         PR middle-end/58712
14149         PR middle-end/55358
14150         * gimple.c (iterative_hash_canonical_type): Make sure to
14151         record the hash into the correct hashtable slot.
14153 2013-10-13  Eric Botcazou  <ebotcazou@adacore.com>
14155         PR rtl-optimization/58662
14156         * combine.c (try_combine): Take into account death nodes on I2 when
14157         splitting a PARALLEL of two independent SETs.  Fix dump message.
14159 2013-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
14161         PR target/51244
14162         * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
14163         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
14164         extra_objs.
14165         * config/sh/t-sh (sh_treg_combine.o): New entry.
14166         * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
14167         implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
14168         (register_sh_passes): New function.  Register sh_treg_combine pass.
14169         (sh_option_override): Invoke it.
14170         (sh_canonicalize_comparison): Handle op0_preserve_value.
14171         * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
14172         opportunities.  Canonicalize branch condition.
14173         (nott): Allow only if pseudos can be created for non-SH2A.
14175 2013-10-12  H.J. Lu  <hongjiu.lu@intel.com>
14177         PR target/58690
14178         * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
14179         (ix86_expand_movmem): Replace copy_addr_to_reg with
14180         ix86_copy_addr_to_reg.
14181         (ix86_expand_setmem): Likewise.
14183 2013-10-12  Alexander Monakov  <amonakov@ispras.ru>
14185         * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
14186         provided by ix86_fp_compare_mode instead of CCFPUmode.
14188 2013-10-12  James Greenhalgh  <james.greenhalgh@arm.com>
14190         * config/aarch64/arm_neon.h
14191         (vtbx<1,3>_<psu>8): Fix register constriants.
14193 2013-10-11  Jeff Law  <law@redhat.com>
14195         PR tree-optimization/58640
14196         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
14197         threading paths that cross over two loop entry points.
14199 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14201         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
14202         handle vector float as well.
14203         (*vsx_le_perm_load_v4si): Likewise.
14204         (*vsx_le_perm_store_v2di): Likewise.
14205         (*vsx_le_perm_store_v4si): Likewise.
14207 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14209         * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
14210         directly to circumvent subtract from splat{31} workaround.
14211         * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
14212         prototype.
14213         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
14214         * config/rs6000/altivec.md (define_c_enum "unspec"): Add
14215         UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
14216         (altivec_vperm_<mode>): Convert to define_insn_and_split to
14217         separate big and little endian logic.
14218         (*altivec_vperm_<mode>_internal): New define_insn.
14219         (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
14220         separate big and little endian logic.
14221         (*altivec_vperm_<mode>_uns_internal): New define_insn.
14222         (vec_permv16qi): Add little endian logic.
14224 2013-10-11  Marc Glisse  <marc.glisse@inria.fr>
14226         * doc/extend.texi (returns_nonnull): Remove arguments.
14228 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14229             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14230             Sergey Lega  <sergey.s.lega@intel.com>
14231             Anna Tikhonova  <anna.tikhonova@intel.com>
14232             Ilya Tocar  <ilya.tocar@intel.com>
14233             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14234             Ilya Verbin  <ilya.verbin@intel.com>
14235             Kirill Yukhin  <kirill.yukhin@intel.com>
14236             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14238         * config/i386/sse.md (VI48F_256_512): New.
14239         (avx2_permvar<mode>): Change to ...
14240         (<avx2_avx512f>_permvar<mode>): This.
14242 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14243             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14244             Sergey Lega  <sergey.s.lega@intel.com>
14245             Anna Tikhonova  <anna.tikhonova@intel.com>
14246             Ilya Tocar  <ilya.tocar@intel.com>
14247             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14248             Ilya Verbin  <ilya.verbin@intel.com>
14249             Kirill Yukhin  <kirill.yukhin@intel.com>
14250             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14252         * config/i386/i386.c (bdesc_args): Change corresponding pattern for
14253         __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
14254         * config/i386/sse.md (VI4_AVX): New.
14255         (sf2simodelower): Ditto.
14256         (sse2_cvtps2dq): Change to ...
14257         (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
14259 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14260             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14261             Sergey Lega  <sergey.s.lega@intel.com>
14262             Anna Tikhonova  <anna.tikhonova@intel.com>
14263             Ilya Tocar  <ilya.tocar@intel.com>
14264             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14265             Ilya Verbin  <ilya.verbin@intel.com>
14266             Kirill Yukhin  <kirill.yukhin@intel.com>
14267             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14269         * config/i386/sse.md (V_512): New.
14270         (VI_512): Ditto.
14271         (vcond<V_512:mode><VF_512:mode>): Ditto.
14272         (vcond<V_512:mode><VI_512:mode>): Ditto.
14273         (vcondu<V_512:mode><VI_512:mode>): Ditto.
14275 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14276             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14277             Sergey Lega  <sergey.s.lega@intel.com>
14278             Anna Tikhonova  <anna.tikhonova@intel.com>
14279             Ilya Tocar  <ilya.tocar@intel.com>
14280             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14281             Ilya Verbin  <ilya.verbin@intel.com>
14282             Kirill Yukhin  <kirill.yukhin@intel.com>
14283             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14285         * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
14286         * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
14287         (FMAMODE): Ditto.
14288         (fma<mode>4): Removed condition.
14289         (fms<mode>4): Ditto.
14290         (fnma<mode>4): Ditto.
14291         (fnms<mode>4): Ditto.
14292         (fma4i_fmadd_<mode>): Ditto.
14293         (*fma_fmadd_<mode>): Ditto.
14294         (*fma_fmsub_<mode>): Ditto.
14295         (*fma_fnmadd_<mode>): Ditto.
14296         (*fma_fnmsub_<mode>): Ditto.
14297         (fmaddsub_<mode>): Allow for TARGET_AVX512F.
14298         (*fma_fmaddsub_<mode>): Ditto.
14299         (*fma_fmsubadd_<mode>): Ditto.
14300         (*fmai_fmadd_<mode>): Ditto.
14301         (*fmai_fmsub_<mode>): Ditto.
14302         (*fmai_fnmadd_<mode>): Ditto.
14303         (*fmai_fnmsub_<mode>): Ditto.
14305 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14306             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14307             Sergey Lega  <sergey.s.lega@intel.com>
14308             Anna Tikhonova  <anna.tikhonova@intel.com>
14309             Ilya Tocar  <ilya.tocar@intel.com>
14310             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14311             Ilya Verbin  <ilya.verbin@intel.com>
14312             Kirill Yukhin  <kirill.yukhin@intel.com>
14313             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14315         * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
14316         (VI124_256): Changed to ...
14317         (VI124_256_48_512): This.
14318         (ssepackmode): Extended with wider modes.
14319         (<code><mode>3): Changed iterator.
14320         (*avx2_<code><mode>3): Ditto.
14321         (vec_pack_trunc_<mode>): Ditto.
14323 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14324             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14325             Sergey Lega  <sergey.s.lega@intel.com>
14326             Anna Tikhonova  <anna.tikhonova@intel.com>
14327             Ilya Tocar  <ilya.tocar@intel.com>
14328             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14329             Ilya Verbin  <ilya.verbin@intel.com>
14330             Kirill Yukhin  <kirill.yukhin@intel.com>
14331             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14333         * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
14334         (VI8F_256_512): Ditto.
14335         (abs<mode>2): Changed iterator.
14336         (avx2_perm<mode>): Changed to ...
14337         (<avx2_avx512f>_perm<mode>): This.
14338         (avx2_perm<mode>_1): Changed to ...
14339         (<avx2_avx512f>_perm<mode>_1): This.
14341 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14342             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14343             Sergey Lega  <sergey.s.lega@intel.com>
14344             Anna Tikhonova  <anna.tikhonova@intel.com>
14345             Ilya Tocar  <ilya.tocar@intel.com>
14346             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14347             Ilya Verbin  <ilya.verbin@intel.com>
14348             Kirill Yukhin  <kirill.yukhin@intel.com>
14349             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14351         * config/i386/sse.md (VI48_AVX512F): New.
14352         (VI48_AVX2): Changed to ...
14353         (VI48_AVX2_48_AVX512F): This.
14354         (avx2_ashrv<mode>): Changed to ...
14355         (<avx2_avx512f>_ashrv<mode>): This.
14356         (avx2_<shift_insn>v<mode>): Changed to ...
14357         (<avx2_avx512f>_<shift_insn>v<mode>): This.
14359 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14360             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14361             Sergey Lega  <sergey.s.lega@intel.com>
14362             Anna Tikhonova  <anna.tikhonova@intel.com>
14363             Ilya Tocar  <ilya.tocar@intel.com>
14364             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14365             Ilya Verbin  <ilya.verbin@intel.com>
14366             Kirill Yukhin  <kirill.yukhin@intel.com>
14367             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14369         * config/i386/sse.md (VI4_AVX512F): New.
14370         (VI8_AVX2_AVX512F): Ditto.
14371         (mul<mode>3): Extended with wider modes.
14372         (*<sse4_1_avx2>_mul<mode>3): Ditto.
14373         (mul<mode>3): Ditto.
14374         (vec_widen_<s>mult_odd_<mode>): Ditto.
14376 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14377             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14378             Sergey Lega  <sergey.s.lega@intel.com>
14379             Anna Tikhonova  <anna.tikhonova@intel.com>
14380             Ilya Tocar  <ilya.tocar@intel.com>
14381             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14382             Ilya Verbin  <ilya.verbin@intel.com>
14383             Kirill Yukhin  <kirill.yukhin@intel.com>
14384             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14386         * config/i386/sse.md (VI2_AVX512F): New.
14387         (VI124_AVX512F): Ditto.
14388         (sseunpackmode): Extended with wider modes.
14389         (sseunpackfltmode): Ditto.
14390         (vec_unpacks_float_hi_<mode>): Ditto.
14391         (vec_unpacks_float_lo_<mode>): Ditto.
14392         (vec_unpacku_float_hi_<mode>): Ditto.
14393         (vec_unpacku_float_lo_<mode>): Ditto.
14394         (vec_unpacks_lo_<mode>): Ditto.
14395         (vec_unpacks_hi_<mode>): Ditto.
14396         (vec_unpacku_lo_<mode>): Ditto.
14397         (vec_unpacku_hi_<mode>): Ditto.
14399 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14400             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14401             Sergey Lega  <sergey.s.lega@intel.com>
14402             Anna Tikhonova  <anna.tikhonova@intel.com>
14403             Ilya Tocar  <ilya.tocar@intel.com>
14404             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14405             Ilya Verbin  <ilya.verbin@intel.com>
14406             Kirill Yukhin  <kirill.yukhin@intel.com>
14407             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14409         * config/i386/i386.md (multdiv): New.
14410         (multdiv_mnemonic): Ditto.
14411         * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
14412         (<sse>_vm<multdiv_mnemonic><mode>3): This.
14413         (<sse>_vmdiv<mode>3): Removed.
14415 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14416             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14417             Sergey Lega  <sergey.s.lega@intel.com>
14418             Anna Tikhonova  <anna.tikhonova@intel.com>
14419             Ilya Tocar  <ilya.tocar@intel.com>
14420             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14421             Ilya Verbin  <ilya.verbin@intel.com>
14422             Kirill Yukhin  <kirill.yukhin@intel.com>
14423             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14425         * config/i386/sse.md (V): Extended with wider modes.
14426         (VF2): Ditto.
14427         (ssehalfvecmode): Ditto.
14428         (i128): Ditto.
14429         (ssepackfltmode): Ditto.
14430         (avx_vec_concat<mode>): Ditto.
14431         (V_256_512): New iterator.
14432         (VF2_512_256): Ditto.
14433         (si2dfmode): New attribute.
14434         (si2dfmodelower): Ditto.
14435         (sf2dfmode): Ditto.
14436         (concat_tg_mode): Ditto.
14437         (floatv4siv4df2): Changed to ...
14438         (float<si2dfmodelower><mode>2): This.
14439         (avx_cvtps2pd256): Changed to ...
14440         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
14441         (vec_pack_trunc_v4df): Changed to ...
14442         (vec_pack_trunc_<mode>): This.
14443         (avx_vpermil<mode>): Changed to ...
14444         (<sse2_avx_avx512f>_vpermil<mode>): This.
14445         (<fixsuffix>fix_truncv8dfv8si2): New.
14446         (vec_pack_sfix_trunc_v8df): Ditto.
14447         (avx512f_rndscale<mode>): Ditto.
14448         (avx512f_roundpd512): Ditto.
14449         (vec_pack_ufix_trunc_<mode>): Updated iterator.
14451 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14452             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14453             Sergey Lega  <sergey.s.lega@intel.com>
14454             Anna Tikhonova  <anna.tikhonova@intel.com>
14455             Ilya Tocar  <ilya.tocar@intel.com>
14456             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14457             Ilya Verbin  <ilya.verbin@intel.com>
14458             Kirill Yukhin  <kirill.yukhin@intel.com>
14459             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14461         * config/i386/i386.md (any_fix): New iterator.
14462         (fixsuffix): New attribute.
14463         * config/i386/sse.md (VF1): Extened with wider modes.
14464         (VI): Ditto.
14465         (VI_AVX2): Ditto.
14466         (VI8): Ditto.
14467         (sseintvecmodelower): Ditto.
14468         (ssescalarmode): Ditto.
14469         (ssescalarnum): Ditto.
14470         (VF1_128_256): New.
14471         (ssexmmmode): Ditto.
14472         (<fixsuffix>fix_truncv16sfv16si2): Ditto.
14473         (<sse>_rcp<mode>2): Change iterator.
14474         (rsqrt<mode>2): Ditto.
14475         (<sse>_rsqrt<mode>2): Ditto.
14476         (avx2_vec_dup<mode>): Ditto.
14477         (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
14478         (round<mode>2_sfix): Ditto.
14479         (avx2_pbroadcast<mode>): Ditto.
14480         (*andnot<mode>3): Handle XI mode.
14481         (*<code><mode>3): Ditto.
14482         (AVXTOSSEMODE): Removed.
14483         (avx_vpermil<mode>): Changed to ...
14484         (<sse2_avx_avx512f>_vpermil<mode>): This.
14486 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14487             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14488             Sergey Lega  <sergey.s.lega@intel.com>
14489             Anna Tikhonova  <anna.tikhonova@intel.com>
14490             Ilya Tocar  <ilya.tocar@intel.com>
14491             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14492             Ilya Verbin  <ilya.verbin@intel.com>
14493             Kirill Yukhin  <kirill.yukhin@intel.com>
14494             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14496         * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
14497         (<sse>_comi): Ditto.
14498         (<sse>_ucomi): Ditto.
14499         (sse_cvtss2siq_2): Ditto.
14500         (sse2_cvtsd2si): Ditto.
14501         (sse2_cvtsd2siq): Ditto.
14502         (sse2_cvttsd2si): Ditto.
14503         (sse2_cvttsd2siq): Ditto.
14504         (<shift_insn><mode>3): Ditto.
14505         (sse2_cvtsi2sdq): Update constraint and prefix.
14506         (sse_cvtsi2ss): Update prefix.
14507         (sse_cvtsi2ssq): Ditto.
14509 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
14511         * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
14512         ignore internal calls.
14514 2013-10-11  Richard Biener  <rguenther@suse.de>
14516         * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
14517         and (ab) for SSA_NAMEs.  Mark INTEGER_CSTs with (OVF) if
14518         TREE_OVERFLOW is set.
14520 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
14522         * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
14524         * gimple.c: GIMPLE statements have subcodes, not sub-codes.
14525         * gimple.h: Likewise.
14527         * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
14529         * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
14530         macros.
14532         * doc/gimple.texi (is_gimple_omp): Move into the correct section.
14534         * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
14535         * configure: Regenerate.
14537 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
14539         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
14540         and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
14541         formatting fixes, use pp_colon instead of pp_character (..., ':'),
14542         similarly pp_right_paren.
14543         (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
14544         OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
14545         allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
14546         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
14547         clauses.
14548         (omp_declare_simd_clauses_equal,
14549         omp_remove_redundant_declare_simd_attrs): New functions.
14550         (attribute_value_equal): Use omp_declare_simd_clauses_equal.
14551         (walk_tree_1): Handle new OpenMP 4.0 clauses.
14552         * tree.h (OMP_LOOP_CHECK): Define.
14553         (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
14554         OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
14555         (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
14556         OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
14557         OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
14558         OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
14559         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
14560         OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
14561         OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
14562         OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
14563         OMP_CLAUSE_SIMDLEN_EXPR): Define.
14564         (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
14565         (omp_remove_redundant_declare_simd_attrs): New prototype.
14566         * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
14567         GIMPLE_OMP_TEAMS): New codes.
14568         (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
14569         * omp-low.c (struct omp_context): Add cancel_label and cancellable
14570         fields.
14571         (target_nesting_level): New variable.
14572         (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
14573         OMP_CLAUSE_DIST_SCHEDULE.  Don't fallback to library implementation
14574         for collapse > 1 static schedule unless ordered.
14575         (get_ws_args_for): Add par_stmt argument.  Handle combined loops.
14576         (determine_parallel_type): Adjust get_ws_args_for caller.
14577         (install_var_field): Handle mask & 4 for double indirection.
14578         (scan_sharing_clauses): Ignore shared clause on teams construct.
14579         Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
14580         (create_omp_child_function): If inside target or declare target
14581         constructs, set "omp declare target" attribute on the child function.
14582         (find_combined_for): New function.
14583         (scan_omp_parallel): Handle combined loops.
14584         (scan_omp_target, scan_omp_teams): New functions.
14585         (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
14586         restrictions and set ctx->cancellable for cancellable constructs.
14587         (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
14588         selected builtin calls.  Handle GIMPLE_OMP_TASKGROUP,
14589         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
14590         (build_omp_barrier): Add lhs argument, return gimple rather than tree.
14591         (omp_clause_aligned_alignment): New function.
14592         (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
14593         (lower_rec_input_clauses): Add FD argument.  Ignore shared clauses
14594         on teams constructs.  Handle user defined reductions and new
14595         OpenMP 4.0 clauses.
14596         (lower_reduction_clauses): Don't set placeholder to address of ref
14597         if it has already the right type.
14598         (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
14599         (expand_parallel_call): Use the new non-_start suffixed builtins,
14600         handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
14601         and GOMP_parallel_end after the call.
14602         (expand_task_call): Handle OMP_CLAUSE_DEPEND.
14603         (expand_omp_for_init_counts): Handle combined loops.
14604         (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
14605         loops.
14606         (expand_omp_for_generic): Likewise.  Use GOMP_loop_end_cancel at the
14607         end of cancellable loops.
14608         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
14609         Likewise.  Handle collapse > 1 loops.
14610         (expand_omp_simd): Handle combined loops.
14611         (expand_omp_for): Add inner_stmt argument, adjust callers of
14612         expand_omp_for* functions, use expand_omp_for_static*chunk even
14613         for collapse > 1 unless ordered.
14614         (expand_omp_sections): Use GOMP_sections_end_cancel at the end
14615         of cancellable sections.
14616         (expand_omp_single): Remove need_barrier variable, just rely on
14617         gimple_omp_return_nowait_p.  Adjust build_omp_barrier caller.
14618         (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
14619         (expand_omp_atomic_load, expand_omp_atomic_store,
14620         expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
14621         (expand_omp_target): New function.
14622         (expand_omp): Handle combined loops.  Handle GIMPLE_OMP_TASKGROUP,
14623         GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
14624         (build_omp_regions_1): Immediately close region for
14625         GF_OMP_TARGET_KIND_UPDATE.
14626         (maybe_add_implicit_barrier_cancel): New function.
14627         (lower_omp_sections): Adjust lower_rec_input_clauses caller.  Handle
14628         cancellation.
14629         (lower_omp_single): Likewise.  Add clobber after the barrier.
14630         (lower_omp_taskgroup): New function.
14631         (lower_omp_for): Handle combined loops.  Adjust
14632         lower_rec_input_clauses caller.  Handle cancellation.
14633         (lower_depend_clauses): New function.
14634         (lower_omp_taskreg): Lower depend clauses.  Adjust
14635         lower_rec_input_clauses caller.  Add clobber after the call.  Handle
14636         cancellation.
14637         (lower_omp_target, lower_omp_teams): New functions.
14638         (lower_omp_1): Handle cancellation.  Handle GIMPLE_OMP_TASKGROUP,
14639         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
14640         and GOMP_cancellation_point calls.
14641         (lower_omp): Fold stmts inside of target region.
14642         (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
14643         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
14644         * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
14645         (BT_FN_VOID_OMPFN_PTR_UINT,
14646         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
14647         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
14648         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
14649         (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
14650         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
14651         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
14652         BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
14653         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
14654         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
14655         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
14656         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
14657         call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
14658         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
14659         BUILT_IN_GOMP_SECTIONS_END_CANCEL.  Don't handle
14660         BUILT_IN_GOMP_PARALLEL_END.
14661         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
14662         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
14663         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
14664         GF_OMP_FOR_KIND_DISTRIBUTE.
14665         (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
14666         (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
14667         (dump_gimple_omp_return): Print lhs if it has any.
14668         (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
14669         gimple_omp_atomic_seq_cst_p.
14670         (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
14671         and GIMPLE_OMP_TEAMS.
14672         * langhooks.c (lhd_omp_mappable_type): New function.
14673         * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
14674         * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
14675         hook.
14676         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
14677         GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
14678         (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
14679         (struct gimplify_omp_ctx): Add combined_loop field.
14680         (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
14681         on stmts inside of target region.
14682         (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
14683         (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
14684         ORT_TARGET and ORT_TARGET_DATA.
14685         (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
14686         Handle GOVD_MAP.
14687         (omp_notice_threadprivate_variable): Complain about threadprivate
14688         variables in target region.
14689         (omp_notice_variable): Complain about vars with non-mappable type
14690         in target region.  Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
14691         (omp_check_private): Ignore ORT_TARGET* regions.
14692         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
14693         gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
14694         (find_combined_omp_for): New function.
14695         (gimplify_omp_for): Handle gimplification of combined loops.
14696         (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
14697         OMP_TEAMS.
14698         (gimplify_omp_target_update): New function.
14699         (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
14700         (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
14701         OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
14702         (gimplify_body): If fndecl has "omp declare target" attribute, add
14703         implicit ORT_TARGET context around it.
14704         * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
14705         OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
14706         * tree-nested.c (convert_nonlocal_reference_stmt,
14707         convert_local_reference_stmt, convert_gimple_call): Handle
14708         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14709         * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
14710         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
14711         instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
14712         (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
14713         BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
14714         BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
14715         BUILT_IN_GOMP_LOOP_END_CANCEL,
14716         BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
14717         BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
14718         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
14719         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
14720         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
14721         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
14722         BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
14723         BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
14724         (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
14725         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
14726         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
14727         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
14728         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
14729         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
14730         * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
14731         Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14732         * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
14733         gimple_build_omp_teams): New functions.
14734         (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
14735         GIMPLE_OMP_TASKGROUP.  Walk optional lhs on GIMPLE_OMP_RETURN.
14736         (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
14737         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14738         * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
14739         GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
14740         GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
14741         GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
14742         GF_OMP_ATOMIC_SEQ_CST): New.
14743         (gimple_build_omp_taskgroup, gimple_build_omp_target,
14744         gimple_build_omp_teams): New prototypes.
14745         (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
14746         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14747         (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
14748         GIMPLE_OMP_SINGLE as end of range.
14749         (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
14750         gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
14751         gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
14752         gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
14753         gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
14754         gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
14755         gimple_omp_target_kind, gimple_omp_target_set_kind,
14756         gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
14757         gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
14758         gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
14759         gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
14760         gimple_omp_teams_set_clauses): New inlines.
14761         (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
14762         and GIMPLE_OMP_TASKGROUP.
14763         * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
14764         (enum omp_clause_depend_kind, enum omp_clause_map_kind,
14765         enum omp_clause_proc_bind_kind): New.
14766         (union omp_clause_subcode): Add depend_kind, map_kind and
14767         proc_bind_kind fields.
14768         * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
14769         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14770         * langhooks-def.h (lhd_omp_mappable_type): New prototype.
14771         (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
14772         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
14774 2013-10-10  Teresa Johnson  <tejohnson@google.com>
14776         * predict.c (tree_estimate_probability): Add new parameter
14777         for estimate_bb_frequencies.
14778         (estimate_bb_frequencies): Add new parameter to force estimation.
14779         (rebuild_frequencies): When max frequency in function is small,
14780         recompute counts from frequencies.
14781         * predict.h (estimate_bb_frequencies): New parameter.
14783 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
14785         * ipa-inline.c (ipa_inline): Fix leak of "order" when
14786         optimizations are disabled.
14788 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
14790         * coverage.c (coverage_finish): Fix leak of da_file_name.
14792 2013-10-10  Jan Hubicka  <jh@suse.cz>
14794         * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
14795         for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
14796         Bobcat and generic.
14798 2013-10-10  Jakub Jelinek  <jakub@redhat.com>
14800         PR middle-end/58670
14801         * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
14802         if any labels are in FALLTHRU_BB, use a special label emitted
14803         immediately after the asm goto insn rather than label_rtx
14804         of the LABEL_DECL.
14805         (expand_asm_stmt): Adjust caller.
14806         * cfgrtl.c (commit_one_edge_insertion): Force splitting of
14807         edge if the last insn in predecessor is a jump with single successor,
14808         but it isn't simplejump_p.
14810 2013-10-10  Richard Biener  <rguenther@suse.de>
14812         PR tree-optimization/58656
14813         * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
14815 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
14817         * gimplify.c: Include expr.h and tm_p.h for targets with special
14818         va-arg padding requirements.
14820 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
14822         * tree-flow.h: Move some prototypes to gimple.h.
14823         (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
14824         * gimple.h: Relocate some prototypes from tree-flow.h
14825         * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
14826         Move to gimplify.c.
14827         * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
14828         (build_va_arg_indirect_ref): Relocate and make static.
14829         (std_gimplify_va_arg_expr): Relocate here.
14830         * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
14831         * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
14833 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14835         * doc/md.texi: Document the mnemonic attribute.
14837 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14839         PR target/57377
14840         * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
14841         (set_attr_alternative x ...) when searching for user defined
14842         mnemonic attribute.
14844 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
14846         * config/alpha/alpha.c: Add gimple-ssa.h to include list.
14848 2013-10-09  Easwaran Raman <eraman@google.com>
14850         * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
14851         * cfgexpand.c (defer_stack_allocation): ...use here
14852         * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
14854 2013-10-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
14856         * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
14857         (operand_equal_for_value_replacement): New function, extracted from
14858         value_replacement and enhanced to catch more cases.
14859         (value_replacement): Use operand_equal_for_value_replacement.
14861 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
14863         * loop-doloop.c (doloop_modify, doloop_optimize): Use
14864         get_max_loop_iterations.
14866 2013-10-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14868         * config/arm/aarch-common.c (arm_early_load_addr_dep):
14869         Place comment above function.
14871 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
14873         * tree-flow.h: Remove all remaining prototypes, enums and structs that
14874         are not related to tree-cfg.c.
14875         * tree-ssa-address.h: New file.  Relocate prototypes.
14876         * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
14877         (addr_for_mem_ref): New.  Combine call to get_address_description and
14878         return addr_for_mem_ref.
14879         * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
14880         * tree-ssa-live.h: Adjust prototypes.
14881         * passes.c: Include tree-ssa-live.h.
14882         * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
14883         * graphite.c (graphite_transform_loops): Make static.
14884         (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
14885         make_pass_graphite, pass_data_graphite_transforms,
14886         make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
14887         * ipa-pure-const.c (warn_function_noreturn): Make static.
14888         (execute_warn_function_noreturn, gate_warn_function_noreturn,
14889         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
14890         Relocate from tree-cfg.c
14891         * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
14892         static.
14893         (execute_warn_function_noreturn, gate_warn_function_noreturn,
14894         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
14895         Move to ipa-pure-const.c.
14896         (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
14897         Relocate from tree-optimize.c.
14898         * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
14899         make_pass_fixup_cfg): Move to tree-cfg.c.
14900         * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
14901         Relocate some prototypes.
14902         * tree-data-ref.h (tree_check_data_deps) Add prototype.
14903         * tree-dump.c (dump_function_to_file): Remove prototype.
14904         Add tree-flow.h to the include file.
14905         * tree-dump.h: Remove prototype.
14906         * tree-parloops.h: New File.  Add prototypes.
14907         * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
14908         pass_data_parallelize_loops,  make_pass_parallelize_loops): Relocate
14909         from tree-ssa-loop.c.
14910         * tree-predcom.c (run_tree_predictive_commoning,
14911         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
14912         Relocate here from tree-ssa-loop.c.
14913         * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
14914         ssa_name_values.release ().
14915         * tree-ssa-threadedge.h: New File.  Relocate prototypes here.
14916         (ssa_name_values): Relocate from tree-flow.h.
14917         * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
14918         * tree-ssa-loop.c (run_tree_predictive_commoning,
14919         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
14920         graphite_transforms, gate_graphite_transforms, pass_data_graphite,
14921         make_pass_graphite, pass_data_graphite_transforms,
14922         make_pass_graphite_transforms, gate_tree_parallelize_loops,
14923         tree_parallelize_loops, pass_data_parallelize_loops,
14924         make_pass_parallelize_loops): Move to other files.
14925         * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
14926         moved here.
14927         * tree.h: Remove prototypes from tree-address.c.
14929 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
14931         * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
14932         (struct int_tree_map): Move to tree-hasher.h
14933         (SCALE, LABEL, PERCENT): Move to gimple.h
14934         * tree-flow-inline.h: Delete.  Move functions to other files.
14935         (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
14936         * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
14937         (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
14938         * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
14939         inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
14940         (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
14941         * tree-hasher.h: Don't include tree-flow.h.
14942         (struct int_tree_map): Relocate from tree-flow.h.
14943         * tree-sra.c (contains_view_convert_expr_p): Relocate from
14944         tree-flow-inline.h and make static.
14945         * tree-ssa-alias.h (ranges_overlap_p): Relocate from
14946         tree-flow-inline.h.
14947         * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
14948         tree-flow-inline.h and make static.
14949         * tree.h (is_global_var, may_be_aliased): Relocate from
14950         tree-flow-inline.h.
14951         * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
14952         * value-prof.c: No longer include tree-flow-inline.h.
14953         * tree-switch-conversion.c: No longer include tree-flow-inline.h.
14955 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
14957         * tree-flow.h: Move some protoypes.  Include new tree-ssa-loop.h.
14958         (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
14959         (enum move_pos): Move to tree-ssa-loop-im.h
14960         * cfgloop.h: Move some prototypes.
14961         (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
14962         * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
14963         * tree-ssa-loop.h: New File.  Include other tree-ssa-loop-*.h files.
14964         (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
14965         (loop_containing_stmt): Relocate from tree-flow-inline.h.
14966         * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
14967         * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
14968         (enum move_pos): Relocate here.
14969         (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
14970         tree-ssa-loop.c.
14971         (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
14972         (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
14973         make_pass_lim): Relocate here from tree-ssa-loop.c.
14974         * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
14975         tree-ssa-loop.c.
14976         (loop_edge_to_cancel, unloop_loops): Make static.
14977         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
14978         make_pass_iv_canon): Relocate from tree-ssa-loop.c.
14979         (tree_complete_unroll, gate_tree_complete_unroll,
14980         pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
14981         (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
14982         pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
14983         * tree-ssa-loop-ivopts.c: Remove local prototypes.
14984         (stmt_invariant_in_loop_p): Remove unused function.
14985         * tree-ssa-loop-ivopts.h: New file.  Add prototypes.
14986         * tree-ssa-loop-manip.h: New file.  Add prototypes.
14987         * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
14988         (gcov_type_to_double_int): Move to cfgloop.h.
14989         (double_int_cmp, bound_index,
14990         estimate_numbers_of_iterations_loop): Make static.
14991         (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
14992         (max_loop_iterations): Factor out get_max_loop_iterations.
14993         (estimated_loop_iterations_int, max_stmt_executions_int): Move to
14994         cfgloop.c.
14995         * tree-ssa-loop-niter.h: New file.  Add prototypes.
14996         * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
14997         gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
14998         make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
14999         * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
15000         gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
15001         make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
15002         * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
15003         pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
15004         (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
15005         pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
15006         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
15007         make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
15008         pass_data_complete_unroll, make_pass_complete_unroll,
15009         tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
15010         pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
15011         tree-ssa-loop-ivcanon.c.
15012         (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
15013         pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
15014         tree-ssa-loop-prefetch.c.
15015         (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
15016         tree-ssa-loop-im.c.
15017         (get_lsm_tmp_name): Relocate and add suffix parameter.
15018         (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
15019         * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
15020         * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
15021         max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
15022         (get_estimated_loop_iterations): Factor out accessor from
15023         estimated_loop_iterations in tree-ssa-loop-niter.c.
15024         (get_max_loop_iterations): Factor out accessor from
15025         _max_loop_iterations in tree-ssa-niter.c.
15026         * loop-unroll.c (decide_unroll_constant_iterations,
15027         decide_unroll_runtime_iterations, decide_peel_simple,
15028         decide_unroll_stupid): Use new get_* accessors.
15030 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
15032         PR tree-optimization/20318
15033         * doc/extend.texi (returns_nonnull): New function attribute.
15034         * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
15035         attribute.
15036         * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
15037         (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
15039 2013-10-09  Eric Botcazou  <ebotcazou@adacore.com>
15041         PR middle-end/58570
15042         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
15043         false if both components are bitfields.
15045 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
15047         * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
15048         (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
15049         (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
15050         * config/aarch64/aarch64.h
15051         (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
15052         * config/aarch64/aarch64-simd-builtins.def
15053         (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
15055 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
15057         * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
15059 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
15061         * config/aarch64/arm_neon.h (vdiv_f64): Added.
15063 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
15065         * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
15066         (vneg_f64): New intrinsic.
15067         (vneg_s8): Asm replaced with C.
15068         (vneg_s16): Likewise.
15069         (vneg_s32): Likewise.
15070         (vneg_s64): New intrinsic.
15071         (vnegq_f32): Asm replaced with C.
15072         (vnegq_f64): Likewise.
15073         (vnegq_s8): Likewise.
15074         (vnegq_s16): Likewise.
15075         (vnegq_s32): Likewise.
15076         (vnegq_s64): Likewise.
15078 2013-10-09  Renlin Li  <Renlin.Li@arm.com>
15080         * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
15082 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15084         * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
15085         packed stack special handling.
15086         (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
15087         back to fixed stack slots for FPRs saved due to stdarg.
15089 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15091         * config/s390/s390.c (s390_frame_info): Restructure function.
15093 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15095         * config/s390/s390.c (struct s390_frame_layout): New field
15096         gpr_save_slots.
15097         (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
15098         (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
15099         regs_ever_clobbered to char*.
15100         (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
15101         of cfun->has_nonlocal_label.  Ignore frame related restore INSNs.
15102         (s390_register_info): Enable FPR save slots.  Move/Copy some
15103         functionality into ...
15104         (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
15105         (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
15106         function.
15107         (s390_frame_info): Do gpr slot allocation here now.  stdarg does
15108         not imply a stack frame.
15109         (s390_init_frame_layout): Remove variable clobbered_regs.
15110         (s390_update_register_info): Remove function.
15111         (s390_hard_regno_rename_ok): Call-saved regs without a save slot
15112         cannot be used for register renaming.
15113         (s390_hard_regno_scratch_ok): New function.
15114         (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
15115         (s390_initial_elimination_offset): Change offset calculation of
15116         the return address pointer.
15117         (save_gprs): Deal with only r6 being saved from the call-saved regs.
15118         (restore_gprs): Set frame related flag.
15119         (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
15120         (s390_emit_prologue): Call s390_register_info instead of
15121         s390_update_frame_layout.  Call s390_save_gprs_to_fprs.
15122         (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
15123         (s390_optimize_prologue): Call s390_optimize_register_info.
15124         Try to remove also FPR slot save/restore INSNs.  Remove frame
15125         related flags from restore INSNs.
15127 2013-10-08  DJ Delorie  <dj@redhat.com>
15129         * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
15130         (movhi): Likewise.
15132         * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
15133         avoid conflict with the MI use of %c.
15134         * config/rl78/rl78-real.md: change %c to %C throughout.
15135         * config/rl78/rl78-virt.md: Likewise.
15137 2013-10-08  Jan Hubicka  <jh@suse.cz>
15139         * config/i386/i386.c (ix86_option_override_internal): Switch
15140         to SSE math for -ffast-math when target ISA supports SSE2.
15142 2013-10-08  Andrew MacLeod  <amacleod@redhat.com>
15144         * tree-flow.h: Remove some prototypes.
15145         * tree.h: Remove some protypes, add a couple.
15146         * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
15147         using_eh_for_cleanups_p): Add interface routines for front ends.
15148         * tree-eh.h: New file.  Add protoptyes.
15149         * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
15150         (add_stmt_to_eh_lp_fn): Make static.
15151         (lower_try_finally): Use new using_eh_for_cleanups_p.
15152         * emit-rtl.c: Include tree-eh.h.
15153         * gimple.h: Include tree-eh.h.
15155 2013-10-08  Marc Glisse  <marc.glisse@inria.fr>
15157         PR tree-optimization/58480
15158         * tree-vrp.c (infer_nonnull_range): New function.
15159         (infer_value_range): Call infer_nonnull_range.
15161 2013-10-08  Dehao Chen  <dehao@google.com>
15163         PR tree-optimization/58619
15164         * tree-inline.c (copy_phis_for_bb): Combine location data
15165         only if non-null.
15167 2013-10-08  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
15169         PR target/58423
15170         * config/arm/arm.c (arm_emit_ldrd_pop): Attach
15171         RTX_FRAME_RELATED_P on INSN.
15173 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15175         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
15176         (altivec_expand_vec_perm_const): Call it.
15178 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15180         * config/rs6000/vector.md (mov<mode>): Emit permuted move
15181         sequences for LE VSX loads and stores at expand time.
15182         * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
15183         prototype.
15184         * config/rs6000/rs6000.c (rs6000_const_vec): New.
15185         (rs6000_gen_le_vsx_permute): New.
15186         (rs6000_gen_le_vsx_load): New.
15187         (rs6000_gen_le_vsx_store): New.
15188         (rs6000_gen_le_vsx_move): New.
15189         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
15190         (*vsx_le_perm_load_v4si): New.
15191         (*vsx_le_perm_load_v8hi): New.
15192         (*vsx_le_perm_load_v16qi): New.
15193         (*vsx_le_perm_store_v2di): New.
15194         (*vsx_le_perm_store_v4si): New.
15195         (*vsx_le_perm_store_v8hi): New.
15196         (*vsx_le_perm_store_v16qi): New.
15197         (*vsx_xxpermdi2_le_<mode>): New.
15198         (*vsx_xxpermdi4_le_<mode>): New.
15199         (*vsx_xxpermdi8_le_V8HI): New.
15200         (*vsx_xxpermdi16_le_V16QI): New.
15201         (*vsx_lxvd2x2_le_<mode>): New.
15202         (*vsx_lxvd2x4_le_<mode>): New.
15203         (*vsx_lxvd2x8_le_V8HI): New.
15204         (*vsx_lxvd2x16_le_V16QI): New.
15205         (*vsx_stxvd2x2_le_<mode>): New.
15206         (*vsx_stxvd2x4_le_<mode>): New.
15207         (*vsx_stxvd2x8_le_V8HI): New.
15208         (*vsx_stxvd2x16_le_V16QI): New.
15210 2013-10-07  Renlin Li  <Renlin.Li@arm.com>
15212         * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
15214 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15216         * config/s390/s390.c (s390_register_info): Make the call-saved FPR
15217         loop to work also for 31bit ABI.
15218         Save the stack pointer for frame_size > 0.
15220 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15222         * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
15223         ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
15224         constraint letters from expanders.
15225         ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
15226         retry count to general_operand.
15227         ("tabort"): Give operand 0 a mode.
15228         ("tabort_1"): Add mode and constraint letter for operand 0.
15229         * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
15231 2013-10-04  Jeff Law  <law@redhat.com>
15233         * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
15235         * tree-ssa-threadedge.c (thread_through_normal_block): Broken
15236         out of ...
15237         (thread_across_edge): Here.  Call it.
15239 2013-10-04  Cary Coutant  <ccoutant@google.com>
15241         * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
15242         discarding a location list expression (or a piece of one).
15244 2013-10-03  Jan Hubicka  <jh@suse.cz>
15246         * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
15247         rate of 2.  Core2, Corei7 and Haswell has issue rate of 4.
15248         (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
15250 2013-10-03  Jan Hubicka  <jh@suse.cz>
15252         * config/i386/i386.c (ix86_option_override_internal): Do not enable
15253         accumulate-outgoing-args when producing unwind info.
15255 2013-10-03  Wei Mi  <wmi@google.com>
15257         * lra-constraints.c (insert_move_for_subreg): New function
15258         extracted from simplify_operand_subreg.
15259         (simplify_operand_subreg): Add reload for paradoxical subreg.
15261 2013-10-03  Rong Xu  <xur@google.com>
15263         * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
15264         the candidate of builtin_expect such that we should fix the
15265         size/time estimation.
15266         (estimate_function_body_sizes): Do the acutally size/time fix-up
15267         for builtin_expect.
15269 2013-10-03  Rong Xu  <xur@google.com>
15271         * predict.c (tree_predict_by_opcode): Get the probability
15272         for builtin_expect from param builtin_expect_probability.
15273         * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
15274         * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
15275         * doc/invoke.texi: Add documentation for builtin-expect-probability.
15277 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
15279         PR c++/19476
15280         * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
15281         * calls.c (alloca_call_p): Use get_callee_fndecl.
15282         * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
15283         * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
15284         Likewise.
15285         (vrp_visit_stmt): Remove duplicated code.
15287 2013-10-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
15289         * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
15290         ceildf2, btruncdf2, instead of vsx_* name.
15292         * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
15293         iterators to only do V2DF and V4SF here.  Move the DF code to
15294         rs6000.md where it is combined with SF mode.  Replace <VSv> with
15295         just 'v' since only vector operations are handled with these insns
15296         after moving the DF support to rs6000.md.
15297         (vsx_sub<mode>3): Likewise.
15298         (vsx_mul<mode>3): Likewise.
15299         (vsx_div<mode>3): Likewise.
15300         (vsx_fre<mode>2): Likewise.
15301         (vsx_neg<mode>2): Likewise.
15302         (vsx_abs<mode>2): Likewise.
15303         (vsx_nabs<mode>2): Likewise.
15304         (vsx_smax<mode>3): Likewise.
15305         (vsx_smin<mode>3): Likewise.
15306         (vsx_sqrt<mode>2): Likewise.
15307         (vsx_rsqrte<mode>2): Likewise.
15308         (vsx_fms<mode>4): Likewise.
15309         (vsx_nfma<mode>4): Likewise.
15310         (vsx_copysign<mode>3): Likewise.
15311         (vsx_btrunc<mode>2): Likewise.
15312         (vsx_floor<mode>2): Likewise.
15313         (vsx_ceil<mode>2): Likewise.
15314         (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
15315         (vsx_sminsf3): Likewise.
15316         (vsx_fmadf4): Likewise.
15317         (vsx_fmsdf4): Likewise.
15318         (vsx_nfmadf4): Likewise.
15319         (vsx_nfmsdf4): Likewise.
15320         (vsx_cmpdf_internal1): Likewise.
15322         * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
15323         simpler to select whether a target has SPE or traditional floating
15324         point support in iterators.
15325         (TARGET_DF_SPE): Likewise.
15326         (TARGET_SF_FPR): Likewise.
15327         (TARGET_DF_FPR): Likewise.
15328         (TARGET_SF_INSN): Macros to say whether floating point support
15329         exists for a given operation for expanders.
15330         (TARGET_DF_INSN): Likewise.
15332         * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
15333         combining of SF/DF mode operations, using both traditional and VSX
15334         registers.
15335         (Fvsx): Likewise.
15336         (Ff): Likewise.
15337         (Fv): Likewise.
15338         (Fs): Likewise.
15339         (Ffre): Likewise.
15340         (FFRE): Likewise.
15341         (abs<mode>2): Combine SF/DF modes using traditional floating point
15342         instructions.  Add support for using the upper DF registers with
15343         VSX support, and SF registers with power8-vector support.  Update
15344         expanders for operations supported by both the SPE and traditional
15345         floating point units.
15346         (abs<mode>2_fpr): Likewise.
15347         (nabs<mode>2): Likewise.
15348         (nabs<mode>2_fpr): Likewise.
15349         (neg<mode>2): Likewise.
15350         (neg<mode>2_fpr): Likewise.
15351         (add<mode>3): Likewise.
15352         (add<mode>3_fpr): Likewise.
15353         (sub<mode>3): Likewise.
15354         (sub<mode>3_fpr): Likewise.
15355         (mul<mode>3): Likewise.
15356         (mul<mode>3_fpr): Likewise.
15357         (div<mode>3): Likewise.
15358         (div<mode>3_fpr): Likewise.
15359         (sqrt<mode>3): Likewise.
15360         (sqrt<mode>3_fpr): Likewise.
15361         (fre<Fs>): Likewise.
15362         (rsqrt<mode>2): Likewise.
15363         (cmp<mode>_fpr): Likewise.
15364         (smax<mode>3): Likewise.
15365         (smin<mode>3): Likewise.
15366         (smax<mode>3_vsx): Likewise.
15367         (smin<mode>3_vsx): Likewise.
15368         (negsf2): Delete SF operations that are merged with DF.
15369         (abssf2): Likewise.
15370         (addsf3): Likewise.
15371         (subsf3): Likewise.
15372         (mulsf3): Likewise.
15373         (divsf3): Likewise.
15374         (fres): Likewise.
15375         (fmasf4_fpr): Likewise.
15376         (fmssf4_fpr): Likewise.
15377         (nfmasf4_fpr): Likewise.
15378         (nfmssf4_fpr): Likewise.
15379         (sqrtsf2): Likewise.
15380         (rsqrtsf_internal1): Likewise.
15381         (smaxsf3): Likewise.
15382         (sminsf3): Likewise.
15383         (cmpsf_internal1): Likewise.
15384         (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
15385         (negdf2): Delete DF operations that are merged with SF.
15386         (absdf2): Likewise.
15387         (nabsdf2): Likewise.
15388         (adddf3): Likewise.
15389         (subdf3): Likewise.
15390         (muldf3): Likewise.
15391         (divdf3): Likewise.
15392         (fred): Likewise.
15393         (rsqrtdf_internal1): Likewise.
15394         (fmadf4_fpr): Likewise.
15395         (fmsdf4_fpr): Likewise.
15396         (nfmadf4_fpr): Likewise.
15397         (nfmsdf4_fpr): Likewise.
15398         (sqrtdf2): Likewise.
15399         (smaxdf3): Likewise.
15400         (smindf3): Likewise.
15401         (cmpdf_internal1): Likewise.
15402         (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
15403         (btrunc<mode>2): Delete separate expander, and combine with the
15404         insn and add VSX instruction support.  Use TARGET_<MODE>_FPR.
15405         (btrunc<mode>2_fpr): Likewise.
15406         (ceil<mode>2): Likewise.
15407         (ceil<mode>2_fpr): Likewise.
15408         (floor<mode>2): Likewise.
15409         (floor<mode>2_fpr): Likewise.
15410         (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
15411         Add support for using the upper registers with VSX and
15412         power8-vector.  Move insns to be closer to the define_expands. On
15413         VSX systems, prefer the traditional form of FMA over the VSX
15414         version, since the traditional form allows the target not to
15415         overlap with the inputs.
15416         (fms<mode>4_fpr): Likewise.
15417         (nfma<mode>4_fpr): Likewise.
15418         (nfms<mode>4_fpr): Likewise.
15420 2013-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15421             Richard Earnshaw  <richard.earnshaw@arm.com>
15423         * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
15424         (struct mult_cost_table): Likewise.
15425         (struct mem_cost_table): Likewise.
15426         (struct fp_cost_table): Likewise.
15427         (struct vector_cost_table): Likewise.
15428         (cpu_cost_table): Likewise.
15429         * config/arm/arm.opt (mold-rts-costs): New option.
15430         (mnew-generic-costs): Likewise.
15431         * config/arm/arm.c (generic_extra_costs): New table.
15432         (cortexa15_extra_costs): Likewise.
15433         (arm_slowmul_tune): Use NULL as new costs.
15434         (arm_fastmul_tune): Likewise.
15435         (arm_strongarm_tune): Likewise.
15436         (arm_xscale_tune): Likewise.
15437         (arm_9e_tune): Likewise.
15438         (arm_v6t2_tune): Likewise.
15439         (arm_cortex_a5_tune): Likewise.
15440         (arm_cortex_a9_tune): Likewise.
15441         (arm_v6m_tune): Likewise.
15442         (arm_fa726te_tune): Likewise.
15443         (arm_cortex_a15_tune): Use cortex15_extra_costs.
15444         (arm_cortex_tune): Use generict_extra_costs.
15445         (shifter_op_p): New function.
15446         (arm_unspec_cost): Likewise.
15447         (LIBCALL_COST): Define.
15448         (arm_new_rtx_costs): New function.
15449         (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
15450         table is available. Use old costs otherwise unless mnew-generic-costs
15451         is specified.
15452         * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
15453         (cpu_cost_table): Declare.
15455 2013-10-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15457         PR target/58460
15458         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
15459         (*subs_mul_imm_<mode>)
15460         (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
15461         (*sub_<shift>_<mode>)
15462         (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
15463         Remove k constraint.
15465 2013-10-03  Ian Bolton  <ian.bolton@arm.com>
15467         * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
15468         code.
15469         * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
15471 2013-10-02  Teresa Johnson  <tejohnson@google.com>
15473         * predict.c (probably_never_executed): New function.
15474         (probably_never_executed_bb_p): Invoke probably_never_executed.
15475         (probably_never_executed_edge_p): Ditto.
15476         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
15477         Treat profile insanities conservatively.
15479 2013-10-02  John David Anglin  <danglin@gcc.gnu.org>
15481         * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
15483 2013-10-02  Vladimir Makarov  <vmakarov@redhat.com>
15485         * lra-constraints.c (process_alt_operand): Calculate scratch_p and
15486         use it.  Use smaller increase for scratch.  Don't increase reject
15487         for early clobber scratch.
15488         * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
15489         setting eliminated regs except setting fp from hfp.
15490         (lra_eliminate): Check lra_insn_recog_data on NULL.
15492 2013-10-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
15494         PR target/58587
15495         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
15496         setting -mvsx-timode by default until the underlying problem is fixed.
15497         (RS6000_CPU, power7 defaults): Likewise.
15499 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
15501         * config/x-linux (host-linux.o): Remove header dependencies.
15502         Use $(COMPILE) and $(POSTCOMPILE).
15503         * config/t-linux-android (linux-android.o): Ditto.
15505 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
15507         * Makefile.in (expmed.o-warn): Remove.
15509 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
15511         * graphite-scop-detection.c: Include tree-ssa-propagate,h.
15512         * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
15514 2013-10-02  Teresa Johnson  <tejohnson@google.com>
15516         * dojump.c (do_jump_1): Divide probability between
15517         both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
15519 2013-10-02  Tom Tromey  <tromey@redhat.com>
15521         * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
15523 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
15525         * tree-flow.h: Remove some prototypes.
15526         * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
15527         mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
15528         * tree-into-ssa.c (mark_virtual_operand_for_renaming,
15529         mark_virtual_phi_result_for_renaming): Relocate here.
15530         * tree-into-ssa.h: Add prototypes.
15531         * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
15532         single_pred_before_succ_order.
15533         (blocks_in_phiopt_order): Rename and move to cfganal.c.
15534         (nonfreeing_call_p) Move to gimple.c.
15535         * cfganal.c (single_pred_before_succ_order): Move and renamed from
15536         tree-ssa-phiopt.c.
15537         * basic-block.h (single_pred_before_succ_order): Add prototype.
15538         * gimple.c (nonfreeing_call_p): Relocate here.
15539         * gimple.h: Add prototype.
15540         * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
15541         * tree-ssa-dom.h: New file.  Relocate prototypes here.
15542         * tree-ssa.h: Include tree-ssa-dom.h.
15544 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
15546         * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
15547         Use $(COMPILE) and $(POSTCOMPILE).
15549         * config/alpha/x-alpha (driver-alpha.o): Ditto.
15551 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
15553         * tree-flow.h: Remove some prototypes.
15554         * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
15555         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
15556         * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
15557         propagate_tree_value*): Move from here to...
15558         * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
15559         propagate_tree_value*): Relocate here.
15560         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
15561         * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
15562         * gimple-fold.c: Remove gimple-fold.h from include list.
15563         * tree-vrp.c: Remove gimple-fold.h from include list.
15564         * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
15565         * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
15566         * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
15567         * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
15568         * sese.c: Add tree-ssa-propagate.h to include list.
15570 2013-10-02  Richard Biener  <rguenther@suse.de>
15572         * tree-loop-distribution.c: Include tree-vectorizer.h for
15573         find_loop_location.
15574         (enum partition_kind): Remove PKIND_REDUCTION.
15575         (struct partition_s): Remove has_writes member, add reduction_p member.
15576         (partition_alloc): Adjust.
15577         (partition_builtin_p): Likewise.
15578         (partition_has_writes): Remove.
15579         (partition_reduction_p): New function.
15580         (partition_merge_into): Likewise.
15581         (generate_code_for_partition): Commonize builtin partition
15582         handling tail.
15583         (rdg_cannot_recompute_vertex_p): Remove.
15584         (already_processed_vertex_p): Likewise.
15585         (rdg_flag_vertex): Do not set has_writes.
15586         (classify_partition): Adjust.
15587         (rdg_build_partitions): Do not set has_writes, treat all
15588         partitions as useful.
15589         (distribute_loop): Record number of library calls generated.  Adjust.
15590         (tree_loop_distribution): Report number of loops and library
15591         calls generated as opt-info.
15593 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
15595         * tree-flow.h: Include new .h files.  Move prototypes.
15596         * tree-cfgcleanup.h: New file.  Add prototypes from tree-flow.h.
15597         * tree-dfa.h: New File.  Add prototypes from tree-flow.h.
15598         (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
15599         * tree-pretty-print.h: Add prototypes from tree-flow.h.
15600         * tree-into-ssa.h: New File.  Add prototypes from tree-flow.h.
15601         ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
15602         * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
15603         * tree.h (get_ref_base_and_extent): Move prototype out.
15604         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
15605         tree-dfa.h.
15606         * gimple-low.h: New File.  Add prototypes from tree-flow.h.
15607         * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
15608         * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
15609         * tree-scalar-evolution.c: Include tree.h.
15610         * sese.c: Include tree.h.
15611         * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
15612         * dwarf2out.c: Include tree-dfa.h.
15613         * tree-chrec.c: Include tree.h.
15614         * tree-data-ref.c: Include tree.h.
15616 2013-10-02  Yufeng Zhang  <yufeng.zhang@arm.com>
15618         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
15619         Fix whitespace.
15621 2013-10-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15623         * config/t-sol2 (sol2-c.o): Remove header dependencies.
15624         Use $(COMPILE) and $(POSTCOMPILE).
15625         (sol2-cxx.o): Likewise.
15626         (sol2-stubs.o): Likewise.
15627         (sol2.o): Likewise.
15628         * config/x-solaris (host-solaris.o): Likewise.
15630         * config/sparc/t-sparc (sparc.o): Remove.
15631         (sparc-c.o): Remove header dependencies.
15632         Use $(COMPILE) and $(POSTCOMPILE).
15633         * config/sparc/x-sparc: Likewise.
15635 2013-10-02  Joern Rennecke  <joern.rennecke@embecosm.com>
15637         * config/arc/arc-opts.h: Add 2013 to Copyright years.
15638         * config/arc/arc700.md: Likewise.
15639         * config/arc/arc-modes.def: Likewise.
15640         * config/arc/arc-simd.h: Likewise.
15641         * config/arc/t-arc-uClibc: Likewise.
15642         * config/arc/t-arc-newlib: Likewise.
15644 2013-10-02  Renlin Li  <renlin.li@arm.com>
15646         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
15647         plus_constant.
15648         (aarch64_expand_epilogue): Likewise.
15650 2013-10-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15651             Yufeng Zhang  <yufeng.zhang@arm.com>
15653         * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
15654         declaration.
15655         (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
15656         'base_in' represent a conversion and legal_cast_p_1 holds; set
15657         'base_in' with the returned value from get_unwidened.
15659 2013-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15661         * config/arm/arm.c (arm_legitimize_reload_address): Explain why
15662         plus_constant is not used.
15664 2013-10-01  Wei Mi  <wmi@google.com>
15666         * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
15667         * config/i386/i386.md: Add define_peephole2 to
15668         break partial reg stall for cvtss2sd/cvtsd2ss.
15670 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
15672         * config/arc/arc.c (pass_arc_ifcvt::clone):
15673         Update for ctxt_ -> m_ctxt change.
15675 2013-10-01  Jeff Law  <law@redhat.com>
15677         * tree-ssa-threadupdate.c (struct redirection_data): Delete
15678         outgoing_edge and intermediate_edge fields.  Instead store the path.
15679         (redirection_data::hash): Hash on the last edge's destination index.
15680         (redirection_data::equal): Check the entire thread path.
15681         (lookup_redirectio_data): Corresponding changes.
15682         (create_edge_and_update_destination_phis): Likewise.
15683         (thread_single_edge): Likewise.
15685 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
15686             Diego Novillo <dnovillo@google.com>
15688         * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
15689         (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
15690         (vld32wh_insn, vld32wl_insn): Delete commented-out old
15691         versions of these patterns.
15693         * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
15694         (__builtin_arc_aligned): Likewise.
15696         * config/arc/arc.md: Expand adc_0 comment stating the intended
15697         purpose and why it isn't ready.
15698         Replace commented out call_value_via_label_mixed with a
15699         plain comment about bl_s.
15701         * config/arc/arc.c (stdio.h): Don't include directly.
15702         (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
15703         Remove if (1) condition.
15704         (arc_encode_section_info): Fix comment.
15706 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
15708         * config/arc/arc.c (arc_conditional_register_usage):
15709         Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
15710         Also set reg_alloc_order for DMA config regs.
15712 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
15713             Jeremy Bennett  <jeremy.bennett@embecosm.com>
15715         * doc/install.texi (--with-cpu): Mention ARC.
15716         (arc-*-elf32): New paragraph.
15717         (arc-linux-uclibc): Likewise.
15718         * doc/md.texi (Machine Constraints): Add ARC part.
15719         * doc/invoke.texi: (menu): Add ARC Options.
15720         (Machine Dependent Options) <ARC Options>: Add synopsis.
15721         (node ARC Options): Add.
15722         * doc/extend.texi (long_call / short_call attribute): Add ARC.
15723         (ARC Built-in Functions): New section defining
15724         generic ARC built-in functions.
15725         (ARC SIMD Built-in Functions): New section defining SIMD specific
15726         built-in functions.
15727         (Declaring Attributes of Functions): Extended
15728         description of short_call and long_call attributes for ARC and
15729         added index entries.
15731 2013-10-01  Saurabh Verma  <saurabh.verma@codito.com>
15732             Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
15733             Joern Rennecke  <joern.rennecke@embecosm.com>
15734             Muhammad Khurram Riaz  <khurram.riaz@arc.com>
15735             Brendan Kehoe  <brendan@zen.org>
15736             Michael Eager  <eager@eagercon.com>
15737             Simon Cook  <simon.cook@embecosm.com>
15738             Jeremy Bennett  <jeremy.bennett@embecosm.com>
15740         * config/arc, common/config/arc: New directories.
15742 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
15743             Brendan Kehoe  <brendan@zen.org>
15744             Simon Cook  <simon.cook@embecosm.com>
15746         * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
15748 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
15750         * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
15751         * tree-ssa-coalesce.h: New. Move prototype to here.
15752         * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
15753         * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
15754         (gimple_can_coalesce_p): Move to...
15755         * gimple.c (gimple_can_coalesce_p): Here.
15757 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
15759         * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
15760         (dump_decl_set): Move to gimple.c.
15761         * gimple.h: Don't include tree-ssa-operands.h.
15762         (dump_decl_set): Add prototype.
15763         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
15764         Move to gimple-ssa.h.
15765         (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
15766         gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
15767         gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
15768         gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
15769         * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
15770         than PHI_ARG_DEF.
15771         (dump_decl_set): Relocate here.
15772         * gimple-ssa.h: New file.
15773         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
15774         Relocate from gimple.h.
15775         * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
15776         * tree-ssa-operands.c (swap_ssa_operands): Rename from
15777         swap_tree_operands and remove non-ssa path.
15778         (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
15779         * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
15780         swap_ssa_operands.
15781         * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
15782         vect_is_simple_reduction_1): Use swap_ssa_operands.
15783         * tree-flow.h: Move various prototypes to tree-phinodes.h.
15784         (enum need_phi_state): Move to tree-into-ssa.c.
15785         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
15786         BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
15787         (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
15788         * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
15789         link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
15790         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
15791         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
15792         num_imm_uses): Move to ssa-iterators.h.
15793         (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
15794         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
15795         tree-phinodes.h.
15796         (op_iter_done, op_iter_next_def, op_iter_next_tree,
15797         clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
15798         op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
15799         single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
15800         num_ssa_operands, delink_stmt_imm_use, single_phi_def,
15801         op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
15802         end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
15803         first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
15804         end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
15805         (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
15806         gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
15807         gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
15808         phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
15809         (set_phi_nodes): Move to tree-phinodes.h.
15810         * tree-ssa-operands.h (enum ssa_op_iter_type,
15811         struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
15812         ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
15813         (dump_decl_set): Remove prototype.
15814         (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
15815         * tree-phinodes.h: New file.  Move some prototypes from tree-flow.h.
15816         (set_phi_nodes): Relocate from tree-flow-inline.h.
15817         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
15818         tree-flow-inline.h
15819         * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
15820         include list.  Temporarily add gimple.h to include list.
15821         * ssa-iterators.h: New file.
15822         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
15823         BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
15824         (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
15825         FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
15826         Relocate from tree-ssa-operands.h.
15827         (delink_imm_use, link_imm_use_to_list, link_imm_use,
15828         set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
15829         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
15830         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
15831         num_imm_uses, get_use_from_ptr, get_def_from_ptr,
15832         phi_arg_index_from_use, op_iter_done, op_iter_next_def,
15833         op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
15834         op_iter_init_use, op_iter_init_def, op_iter_init_tree,
15835         single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
15836         zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
15837         single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
15838         end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
15839         link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
15840         first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
15841         Relocate from tree-flow-inline.h.
15842         * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
15844 2013-10-01  Vidya Praveen  <vidyapraveen@arm.com>
15846         * aarch64-simd.md
15847         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
15848         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
15849         Insert '\t' to output template.
15850         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
15851         (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
15852         gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
15853         (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
15855 2013-10-01  Uros Bizjak  <ubizjak@gmail.com>
15857         * doc/install.texi (Host/target specific installation notes for GCC):
15858         Put @anchor before @heading.
15859         * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
15860         Use @email for email addresses.
15862 2013-10-01  Jeff Law  <law@redhat.com>
15864         * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
15865         a vec.  Only delete the path if we create one without successfully
15866         registering a jump thread.
15867         * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
15868         as a pointer.
15869         * tree-ssa-threadupdate.c (threaded_edges): Remove.  No longer used
15870         (paths): New vector of jump threading paths.
15871         (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
15872         (THREAD_PATH): New accessor macro for the entire thread path.
15873         (lookup_redirection_data): Get intermediate and final outgoing edge
15874         from the thread path.
15875         (create_edge_and_update_destination_phis): Copy the threading path.
15876         (ssa_fix_duplicate_block_edges): Get edges and block types from the
15877         jump threading path.
15878         (ssa_redirect_edges): Get edges and block types from the jump threading
15879         path.  Free the path vector.
15880         (thread_block): Get edges from the jump threading path.  Look at the
15881         entire path to see if we thread to a loop exit.  If we cancel a jump
15882         thread request, then free the path vector.
15883         (thread_single_edge): Get edges and block types from the jump threading
15884         path.  Free the path vector.
15885         (thread_through_loop_header): Get edges and block types from the jump
15886         threading path.  Free the path vector.
15887         (mark_threaded_blocks): Iterate over the vector of paths and store
15888         the path on the appropriate edge.  Get edges and block types from the
15889         jump threading path.
15890         (mark_threaded_blocks): Get edges and block types from the jump
15891         threading path.  Free the path vector.
15892         (thread_through_all_blocks): Use the vector of paths rather than
15893         a vector of 3-edge sets.
15894         (register_jump_thread): Accept pointer to a path vector rather
15895         than the path vector itself.  Store the path vector for later use.
15896         Simplify.
15898 2013-10-01  Jakub Jelinek  <jakub@redhat.com>
15899             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15901         PR target/58574
15902         * config/s390/s390.c (s390_split_branches): Modify check for table
15903         jump insns.
15904         (s390_chunkify_start): Rearrange table jump insn check in order to
15905         deal with compare and branch insns correctly.
15907 2013-10-01  Kugan Vivekanandarajah  <kuganv@linaro.org>
15909         PR target/58578
15910         Revert
15911         2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
15912         * config/arm/arm.md (arm_ashldi3_1bit):  define_insn into
15913         define_insn_and_split.
15914         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
15915         (shiftsi3_compare): New pattern.
15916         (rrx): New pattern.
15917         * config/arm/unspecs.md (UNSPEC_RRX): New.
15919 2013-10-01  Alan Modra  <amodra@gmail.com>
15921         * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
15922         casing inout operands.
15924 2013-10-01  Richard Biener  <rguenther@suse.de>
15926         PR tree-optimization/58553
15927         * tree-loop-distribution.c (struct partition_s): Add niter member.
15928         (classify_partition): Populate niter member for the partition
15929         and properly identify whether the relevant store happens before
15930         or after the loop exit.
15931         (generate_memset_builtin): Use niter member from the partition.
15932         (generate_memcpy_builtin): Likewise.
15934 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
15936         * vec.h (vec_prefix, vec): Prefix member names with "m_".
15937         * vec.c (vec_prefix::calculate_allocation): Update accordingly.
15939 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
15941         * basic-block.h (edge_list): Prefix member names with "m_".
15942         * context.h (context): Likewise.
15943         * domwalk.h (dom_walker): Likewise.
15944         * gengtype-state.c (s_expr_writer, state_writer): Likewise.
15945         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
15946         * hash-table.h (hash_table): Likewise.
15947         * machmode.h (bit_field_mode_iterator): Likewise.
15948         * pass_manager.h (pass_list): Likewise.
15949         * tree-into-ssa.c (mark_def_dom_walker): Likewise.
15950         * tree-pass.h (pass_data): Likewise.
15951         * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
15952         * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
15953         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
15954         * asan.c (pass_data_asan): Update accordingly.
15955         * cfganal.c (control_dependences::find_control_dependence): Likewise.
15956         (control_dependences::control_dependences): Likewise.
15957         (control_dependences::~control_dependences): Likewise.
15958         (control_dependences::~control_dependences): Likewise.
15959         (control_dependences::get_edges_dependent_on): Likewise.
15960         * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
15961         (pass_data_remove_cgraph_callee_edges::clone): Likewise.
15962         * context.c (gcc::context::context): Likewise.
15963         * cprop.c (pass_rtl_cprop::clone): Likewise.
15964         * domwalk.c (dom_walker::walk): Likewise.
15965         * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
15966         * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
15967         * mode-switching.c (pass_mode_switching::clone): Likewise.
15968         * passes.c (opt_pass::opt_pass): Likewise.
15969         (pass_manager::pass_manager): Likewise.
15970         * predict.c (pass_strip_predict_hints::clone): Likewise.
15971         * recog.c (pass_data pass_data_peephole2::clone): Likewise.
15972         (pass_split_all_insns::clone): Likewise.
15973         * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
15974         Likewise.
15975         (bit_field_mode_iterator::next_mode): Likewise.
15976         (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
15977         * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
15978         * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
15979         * tree-complex.c (pass_lower_complex::clone): Likewise.
15980         * tree-eh.c (pass_cleanup_eh::clone): Likewise.
15981         * tree-object-size.c (pass_object_sizes::clone): Likewise.
15982         * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
15983         * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
15984         (pass_fold_builtins::clone): Likewise.
15985         * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
15986         * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
15987         * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
15988         (pass_cd_dce::clone): Likewise.
15989         * tree-ssa-dom.c (pass_dominator::clone): Likewise.
15990         (pass_phi_only_cprop::clone): Likewise.
15991         * tree-ssa-dse.c (pass_dse::clone): Likewise.
15992         * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
15993         * tree-ssa-loop.c (pass_lim::clone): Likewise.
15994         * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
15995         * tree-ssa-pre.c (pass_fre::clone): Likewise.
15996         * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
15997         * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
15998         * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
15999         * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
16000         * tree-vrp.c (pass_vrp::clone): Likewise.
16001         * tsan.c (pass_tsan::clone): Likewise.
16003 2013-09-30  Jakub Jelinek  <jakub@redhat.com>
16005         PR middle-end/58564
16006         * fold-const.c (tree_unary_nonnegative_warnv_p): Use
16007         INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
16009         PR middle-end/58564
16010         * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
16011         optimization, punt if sign_bit_p looked through any zero extension.
16013 2013-09-30  Teresa Johnson  <tejohnson@google.com>
16015         * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
16016         Update redirected out edge count in joiner case.
16017         (ssa_redirect_edges): Common the joiner and non-joiner cases
16018         so that joiner case gets profile updates.
16020 2013-09-30  Richard Biener  <rguenther@suse.de>
16022         PR tree-optimization/58554
16023         * tree-loop-distribution.c (classify_partition): Require
16024         unconditionally executed stores for memcpy and memset recognition.
16025         (tree_loop_distribution): Calculate dominance info.
16027 2013-09-30  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
16029         * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
16030         (NO_PROFILE_COUNTERS): Likewise.
16031         (PROFILE_HOOK): Likewise.
16032         (FUNCTION_PROFILER): Likewise.
16033         * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
16035 2013-09-30  Iain Sandoe  <iain@codesourcery.com>
16037         * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
16038         calls and defines in TARGET_MACHO conditional.
16039         (load_macho_picbase_di): Likewise.
16040         (reload_macho_picbase): Likewise.
16041         (reload_macho_picbase_si): Likewise.
16042         (reload_macho_picbase_di): Likewise.
16043         (nonlocal_goto_receiver): Likewise.
16045 2013-09-30  Nick Clifton  <nickc@redhat.com>
16047         * config/msp430/msp430.c (msp430x_names): New array.  Lists MCUs
16048         that use the MSP430X ISA.
16049         (msp430_option_override): Scan -mmcu command line option for any
16050         MCU name that supports the MSP430X ISA.
16051         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
16052         -mmcu options which enable the MSP430X ISA.
16054 2013-09-30  Richard Biener  <rguenther@suse.de>
16056         PR middle-end/58532
16057         * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
16058         before looking for setjmp-like calls.
16060 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
16062         PR target/10901
16063         * config/darwin-protos.h (machopic_get_function_picbase): New.
16064         * config/darwin.c (machopic_get_function_picbase): New.
16065         * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
16066         label for a new func.  (load_macho_picbase_di): Likewise.
16067         (reload_macho_picbase): New expand.
16068         (reload_macho_picbase_si): New insn.
16069         (reload_macho_picbase_di): New insn.
16070         (nonlocal_goto_receiver): New define and split.
16071         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
16072         (unspecv enum): Add UNSPECV_NLGR.
16074 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
16076         * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
16077         that altivec registers are correctly sized on Darwin.
16079 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
16081         * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
16082         darwin-driver.o): Use COMPILE and POSTCOMPILE.
16083         * config/x-darwin (host-darwin.o): Likewise.
16084         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
16085         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
16086         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
16088 2013-09-29  Uros Bizjak  <ubizjak@gmail.com>
16090         * doc/invoke.texi: Fix usage of @tie{} command.
16092 2013-09-29  Eric Botcazou  <ebotcazou@adacore.com>
16094         * config/sparc/sync.md: Add peephole for consecutive memory barriers.
16096 2013-09-28  Jan Hubicka  <jh@suse.cz>
16098         * config/i386/x86-tune.def: Add documentation for each of the options;
16099         add whitespace.
16101 2013-09-28  Jan Hubicka  <jh@suse.cz>
16103         * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
16104         generic.
16105         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
16106         (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
16107         (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
16108         (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
16109         (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
16111 2013-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
16113         * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
16114         bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
16115         cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
16116         cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
16117         combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
16118         cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
16119         df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
16120         dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
16121         errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
16122         fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
16123         gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
16124         genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
16125         genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
16126         genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
16127         gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
16128         gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
16129         gimple.h, godump.c, graphite-clast-to-gimple.c,
16130         graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
16131         graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
16132         hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
16133         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
16134         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
16135         ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
16136         loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
16137         lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
16138         mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
16139         pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
16140         predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
16141         profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
16142         regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
16143         reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
16144         sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
16145         statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
16146         system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
16147         tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
16148         tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
16149         tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
16150         tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
16151         tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
16152         tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
16153         tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
16154         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
16155         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16156         tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
16157         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
16158         tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
16159         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
16160         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
16161         tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
16162         tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
16163         tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
16164         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
16165         tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
16166         tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
16167         varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
16168         whitespace before "(".
16170 2013-09-28  Sandra Loosemore  <sandra@codesourcery.com>
16172         * expr.h (extract_bit_field): Remove packedp parameter.
16173         * expmed.c (extract_fixed_bit_field): Remove packedp parameter
16174         from forward declaration.
16175         (store_split_bit_field): Remove packedp arg from calls to
16176         extract_fixed_bit_field.
16177         (extract_bit_field_1): Remove packedp parameter and packedp
16178         argument from recursive calls and calls to extract_fixed_bit_field.
16179         (extract_bit_field): Remove packedp parameter and corresponding
16180         arg to extract_bit_field_1.
16181         (extract_fixed_bit_field): Remove packedp parameter.  Remove code
16182         to issue warnings.
16183         (extract_split_bit_field): Remove packedp arg from call to
16184         extract_fixed_bit_field.
16185         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
16186         (copy_blkmode_from_reg): Likewise.
16187         (copy_blkmode_to_reg): Likewise.
16188         (read_complex_part): Likewise.
16189         (store_field): Likewise.
16190         (expand_expr_real_1): Likewise.
16191         * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
16192         to extract_bit_field.
16193         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
16194         call to extract_bit_field.
16195         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
16196         call to extract_bit_field.
16197         * doc/invoke.texi (Code Gen Options): Remove mention of warnings
16198         and special packedp behavior from -fstrict-volatile-bitfields
16199         documentation.
16201 2013-09-27  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
16203         * lra-eliminations.c (init_elim_table): Guard value_p.
16205 2013-09-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
16207         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
16208         DFmode, DImode, and SFmode in the upper VSX registers based on the
16209         -mupper-regs-{df,sf} flags.  Fix wu constraint to be ALTIVEC_REGS
16210         if -mpower8-vector.  Combine -mvsx-timode handling with the rest
16211         of the VSX register handling.
16213         * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
16214         (f32_sv): Likewise.
16215         (zero_extendsidi2_lfiwzx): Add support for loading into the
16216         Altivec registers with -mpower8-vector.  Use wu/wv constraints to
16217         only do VSX memory options on Altivec registers.
16218         (extendsidi2_lfiwax): Likewise.
16219         (extendsfdf2_fpr): Likewise.
16220         (mov<mode>_hardfloat, SF/SD modes): Likewise.
16221         (mov<mode>_hardfloat32, DF/DD modes): Likewise.
16222         (mov<mode>_hardfloat64, DF/DD modes): Likewise.
16223         (movdi_internal64): Likewise.
16225 2013-09-27  Xinliang David Li  <davidxl@google.com>
16227         * opts.c (finish_options): Adjust parameters
16228         according to vect cost model.
16229         (common_handle_option): Set dynamic vect cost
16230         model for FDO.
16231         targhooks.c (default_add_stmt_cost): Compute stmt cost
16232         unconditionally.
16233         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
16234         Use helper function.
16235         * tree-vectorizer.h (unlimited_cost_model): New function.
16236         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
16237         * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
16238         function.
16239         (vect_enhance_data_refs_alignment): Ditto.
16240         * flag-types.h: New enum.
16241         * common/config/i386/i386-common.c (ix86_option_init_struct):
16242         No need to initialize vect_cost_model flag.
16243         * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
16244         unconditionally.
16246 2013-09-27  Diego Novillo  <dnovillo@google.com>
16248         * gimple.h (enum ssa_mode): Remove.
16250 2013-09-27  Paulo Matos  <pmatos@broadcom.com>
16252         * cfgloop.h (number_of_loops): Fix typo in check for null.
16254 2013-09-27  Jakub Jelinek  <jakub@redhat.com>
16256         PR middle-end/58551
16257         * tree-cfg.c (move_sese_region_to_fn): Also move loops that
16258         are children of outermost saved_cfun's loop, and set it up to
16259         be moved to dest_cfun's outermost loop.  Fix up num_nodes adjustments
16260         if loop != loop0 and SESE region contains bbs that belong to loop0.
16262 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
16264         * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
16265         (binary_scale_code_p, get_base_term, get_index_term): New functions.
16266         (set_address_segment, set_address_base, set_address_index)
16267         (set_address_disp): Accept the argument unconditionally.
16268         (baseness): Remove must_be_base_p and must_be_index_p checks.
16269         (decompose_normal_address): Classify as much as possible in the
16270         main loop.
16272 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
16274         * cse.c (count_reg_usage): Handle INT_LIST.
16275         * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
16276         * reginfo.c (reg_scan_mark_refs): Likewise.
16277         * reload1.c (eliminate_regs_1): Likewise.
16279 2013-09-27  Iain Sandoe  <iain@codesourcery.com>
16281         PR middle-end/58547
16282         * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
16283         signed.
16285 2013-09-27  Richard Biener  <rguenther@suse.de>
16287         PR tree-optimization/58459
16288         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
16289         restriction not propagating into loops.
16291 2013-09-26  Florian Weimer  <fw@deneb.enyo.de>
16293         * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
16294         * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
16295         * doc/tree-ssa.texi (Walking use-def chains): Delete.
16297 2013-09-26  Richard Biener  <rguenther@suse.de>
16299         * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
16301 2013-09-26  Richard Biener  <rguenther@suse.de>
16303         * alias.h (component_uses_parent_alias_set): Rename to ...
16304         (component_uses_parent_alias_set_from): ... this.
16305         * alias.c (component_uses_parent_alias_set): Rename to ...
16306         (component_uses_parent_alias_set_from): ... this and return
16307         the desired parent.
16308         (reference_alias_ptr_type_1): Use the result from
16309         component_uses_parent_alias_set_from instead of stripping
16310         components one at a time.
16311         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
16313 2013-09-26  Andrew MacLeod  <amacleod@redhat.com>
16315         * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
16316         Move prototypes to...
16317         * tree-ssa-ter.h: New File.  Move prototypes here.
16318         * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
16319         * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
16320         * tree-outof-ssa.c (ssa_is_replaceable_p): New.  Refactor common bits
16321         from is_replaceable_p.
16322         * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
16323         (ter_is_replaceable_p): New.  Use new refactored ssa_is_replaceable_p.
16324         (process_replaceable): Use ter_is_replaceable_p.
16325         (find_replaceable_in_bb): Use ter_is_replaceable_p.
16326         * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c.  Use
16327         newly refactored ssa_is_replaceable_p.
16328         * cfgexpand.c: Include tree-outof-ssa.h.
16329         * ssaexpand.h: Delete.
16331 2013-09-26  Andrew MacLeod <amacleod@redhat.com>
16333         * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
16334         (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
16335         tree-ssa.c
16336         (create_gimple_tmp): Delete.
16337         (get_expr_type, build_assign, build_type_cast): Move to...
16338         * gimple-builder.c: New File.
16339         (get_expr_type): Relocate from gimple.c.
16340         (build_assign, build_type_cast): Change to only create ssanames.
16341         * gimple.h: Move prototypes to...
16342         * gimple-builder.h: New File. Here.
16343         * tree-ssa.h: And here.
16344         * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
16345         count_uses_and_derefs): Relocate from gimple.c.
16346         (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
16347         * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
16348         * tree-ssa-math-opts (execute_cse_reciprocals): Use
16349         gimple_replace_ssa_lhs.
16350         * asan.c: Include gimple-builder.h.
16351         * Makefile.in: Add gimple-builder.o.
16353 2013-09-26  Richard Biener  <rguenther@suse.de>
16355         * tree-ssa-live.c (var_map_base_init): Handle SSA names with
16356         DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
16357         (loe_visit_block): Use gcc_checking_assert.
16358         * tree-ssa-coalesce.c (create_outofssa_var_map): Use
16359         gimple_assign_ssa_name_copy_p.
16360         (gimple_can_coalesce_p): Adjust according to the var_map_base_init
16361         change.
16363 2013-09-26  David Edelsohn  <dje.gcc@gmail.com>
16365         * config/rs6000/t-rs6000 (rs6000.o): Remove.
16366         (rs6000-c.o): Use COMPILE and POSTCOMPILE.
16368 2013-09-26  Richard Biener  <rguenther@suse.de>
16370         PR tree-optimization/58539
16371         * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
16372         the fact that debug statements are not taking part in loop-closed
16373         SSA construction.
16375 2013-09-26  Nick Clifton  <nickc@redhat.com>
16377         * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
16378         time warning message.
16379         (msp430_print_operand_raw): Delete unused letter parameter.
16380         (TARGET_PRINT_OPERAND_ADDRESS): Define.
16381         (msp430_print_operand_address): New function.
16382         (msp430_print_operand): Move address printing code from here to
16383         new function.
16384         * config/msp430/msp430.md (movsipsi2): Add comment in generated
16385         assembler.
16386         (zero_extendpsisi2): Likewise.
16387         (extendpsisi2): New pattern.
16388         (andneghi3): New pattern.
16390 2013-09-26  Yvan Roux  <yvan.roux@linaro.org>
16392         * config/aarch64/aarch64.opt (mlra): New option.
16393         * config/aarch64/aarch64.c (aarch64_lra_p): New function.
16394         (TARGET_LRA_P): Define.
16396 2013-09-26  Eric Botcazou  <ebotcazou@adacore.com>
16398         * expr.c (expand_assignment): Remove obsolete comment.
16400 2013-09-25  Jeff Law  <law@redhat.com>
16402         * tree-flow.h (thread_through_all_blocks): Prototype moved into
16403         tree-ssa-threadupdate.h.
16404         (register_jump_thread): Similarly.
16405         * tree-ssa-threadupdate.h: New header file.
16406         * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
16407         * tree-vrp.c: Likewise.
16408         * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
16409         (thread_around_empty_blocks): Change type of path vector argument to
16410         an edge,type pair from just an edge.  Initialize both elements when
16411         appending to a jump threading path.  Tweak references to elements
16412         appropriately.
16413         (thread_across_edge): Similarly.  Release memory for the elements
16414         as needed.
16415         * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
16416         (dump_jump_thread_path): New function broken out from
16417         register_jump_thread.
16418         (register_jump_thread): Use dump_jump_thread_path.  Change type of
16419         path vector entries.  Search the path for NULL edges and dump
16420         the path if one is found.  Tweak the conversion of path to 3-edge
16421         form to use the block copy type information embedded in the path.
16423 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
16425         * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
16427 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
16428             Vladimir Makarov  <vmakarov@redhat.com>
16430         * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
16431         from the least significant bit.
16432         (strip_address_mutations): Add bitfield operations handling.
16433         (must_be_index_p): Add shifting and rotate operations handling.
16434         (set_address_base): Use must_be_base_p predicate.
16435         (set_address_index): Use must_be_index_p predicate.
16437 2013-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16438             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16439             Sergey Lega  <sergey.s.lega@intel.com>
16440             Anna Tikhonova  <anna.tikhonova@intel.com>
16441             Ilya Tocar  <ilya.tocar@intel.com>
16442             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16443             Ilya Verbin  <ilya.verbin@intel.com>
16444             Kirill Yukhin  <kirill.yukhin@intel.com>
16445             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16447         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
16448         Use new names.
16449         (ix86_expand_vector_move_misalign): Support new unaligned load and
16450         stores and use new names.
16451         (CODE_FOR_sse2_storedqu): Rename to ...
16452         (CODE_FOR_sse2_storedquv16qi): ... this.
16453         (CODE_FOR_sse2_loaddqu): Rename to ...
16454         (CODE_FOR_sse2_loaddquv16qi): ... this.
16455         (CODE_FOR_avx_loaddqu256): Rename to ...
16456         (CODE_FOR_avx_loaddquv32qi): ... this.
16457         (CODE_FOR_avx_storedqu256): Rename to ...
16458         (CODE_FOR_avx_storedquv32qi): ... this.
16459         * config/i386/i386.md (fpint_logic): New.
16460         * config/i386/sse.md (VMOVE): Extend for AVX512.
16461         (VF): Ditto.
16462         (VF_128_256): New.
16463         (VF_512): Ditto.
16464         (VI_UNALIGNED_LOADSTORE): Ditto.
16465         (sse2_avx_avx512f): Ditto.
16466         (sse2_avx2): Extend for AVX512.
16467         (sse4_1_avx2): Ditto.
16468         (avx2_avx512f): New.
16469         (sse): Extend for AVX512.
16470         (sse2): Ditto.
16471         (sse4_1): Ditto.
16472         (avxsizesuffix): Ditto.
16473         (sseintvecmode): Ditto.
16474         (ssePSmode): Ditto.
16475         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
16476         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
16477         (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
16478         (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
16479         (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
16480         (<sse2_avx_avx512f>_storedqu<mode): ... this.
16481         (<sse>_movnt<mode>): Replace constraint "x" with "v".
16482         (STORENT_MODE): Extend for AVX512.
16483         (*absneg<mode>2): Replace constraint "x" with "v".
16484         (*mul<mode>3): Ditto.
16485         (*ieee_smin<mode>3): Ditto.
16486         (*ieee_smax<mode>3): Ditto.
16487         (avx_cmp<mode>3): Replace VF with VF_128_256.
16488         (*<sse>_maskcmp<mode>3_comm): Ditto.
16489         (<sse>_maskcmp<mode>3): Ditto.
16490         (<sse>_andnot<mode>3): Extend for AVX512.
16491         (<code><mode>3, anylogic): Replace VF with VF_128_256.
16492         (<code><mode>3, fpint_logic): New.
16493         (*<code><mode>3): Extend for AVX512.
16494         (avx512flogicsuff): New.
16495         (avx512f_<logic><mode>): Ditto.
16496         (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
16497         VF_128_256.
16498         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
16499         (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
16500         (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
16501         (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
16502         (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
16503         (xop_vpermil2<mode>3): Ditto.
16504         (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
16505         (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
16506         (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
16507         (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
16509 2013-09-25  Tom Tromey  <tromey@redhat.com>
16511         * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
16512         (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
16513         (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
16514         (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
16515         (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
16516         (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
16517         (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
16518         (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
16519         (GRAPHITE_HTAB_H): Remove.
16521 2013-09-25  Tom Tromey  <tromey@redhat.com>
16523         * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
16525 2013-09-25  Tom Tromey  <tromey@redhat.com>
16527         * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
16529 2013-09-25  Tom Tromey  <tromey@redhat.com>
16531         * config/i386/t-i386 (i386.o): Remove.
16532         (i386-c.o): Use COMPILE and POSTCOMPILE.
16534 2013-09-25  Tom Tromey  <tromey@redhat.com>
16536         * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
16538 2013-09-25  Tom Tromey  <tromey@redhat.com>
16540         * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
16541         (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
16542         (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
16543         (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
16544         (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
16545         (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
16546         (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
16547         (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
16548         (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
16549         (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
16550         (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
16551         (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
16552         (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
16553         (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
16554         (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
16555         (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
16556         (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
16557         (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
16558         (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
16559         (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
16560         (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
16561         (tree-ssa-pre.o, tree-ssa-sccvn.o)
16562         (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
16563         (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
16564         (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
16565         (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
16566         (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
16567         (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
16568         (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
16569         (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
16570         (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
16571         (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
16572         (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
16573         (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
16574         (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
16575         (graphite-clast-to-gimple.o, graphite-dependences.o)
16576         (graphite-interchange.o, graphite-poly.o)
16577         (graphite-scop-detection.o, graphite-sese-to-poly.o)
16578         (graphite-optimize-isl.o, tree-vect-loop.o)
16579         (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
16580         (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
16581         (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
16582         (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
16583         (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
16584         (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
16585         (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
16586         (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
16587         (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
16588         (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
16589         (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
16590         (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
16591         (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
16592         (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
16593         (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
16594         (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
16595         (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
16596         (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
16597         (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
16598         (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
16599         (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
16600         (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
16601         (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
16602         (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
16603         (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
16604         (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
16605         (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
16606         (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
16607         (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
16608         (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
16609         (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
16610         (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
16611         (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
16612         (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
16613         (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
16614         (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
16615         (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
16616         (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
16617         (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
16618         (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
16619         (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
16620         (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
16621         (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
16622         (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
16623         (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
16624         (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
16625         (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
16626         (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
16627         (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
16628         (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
16629         (gcov-dump.o): Remove.
16630         (default-c.o): Use COMPILE and POSTCOMPILE.
16631         (CFLAGS-gcc.o): New variable.
16632         ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
16634 2013-09-25  Tom Tromey  <tromey@redhat.com>
16636         * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
16637         (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
16638         (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
16639         (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
16640         (c-family/c-pragma.o, c-family/c-pretty-print.o)
16641         (c-family/c-semantics.o, c-family/c-ada-spec.o)
16642         (c-family/array-notation-common.o, c-family/stub-objc.o)
16643         (c-family/c-ubsan.o): Remove.
16645 2013-09-25  Tom Tromey  <tromey@redhat.com>
16647         * Makefile.in (C_TREE_H): Reference c/c-tree.h.
16649 2013-09-25  Tom Tromey  <tromey@redhat.com>
16651         * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
16652         to add -DENABLE_SHARED_LIBGCC.
16653         (gcc.o): Don't use subshell.
16655 2013-09-25  Tom Tromey  <tromey@redhat.com>
16657         * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
16658         * configure.ac: Don't invoke AM_PROG_CC_C_O.
16659         (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
16660         * configure, config.in: Rebuild.
16662 2013-09-25  Tom Tromey  <tromey@redhat.com>
16664         * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
16665         (COMPILE, POSTCOMPILE): New variables.
16666         (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
16667         (DEPFILES): New variable.
16668         Include ".Po" files.
16669         * configure.ac: Add checks for dependency checking.
16670         * configure, aclocal.m4: Regenerate.
16672 2013-09-25  Tom Tromey  <tromey@redhat.com>
16674         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
16675         ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
16677 2013-09-25  Tom Tromey  <tromey@redhat.com>
16679         * Makefile.in (generated_files): Add options.h,
16680         target-hooks-def.h, insn-opinit.h,
16681         common/common-target-hooks-def.h, pass-instances.def,
16682         c-family/c-target-hooks-def.h.
16684 2013-09-25  Jeff Law  <law@redhat.com>
16686         * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
16687         than foo[foo.length () - 1] to access last member in a vec.
16688         * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
16690 2013-09-25  Richard Biener  <rguenther@suse.de>
16692         PR middle-end/58521
16693         * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
16695 2013-09-25  Jan Hubicka  <jh@suse.cz>
16697         * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
16698         test.
16700 2013-09-25  Marek Polacek  <polacek@redhat.com>
16702         PR sanitizer/58420
16703         * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
16704         when determining the type name.
16706 2013-09-24  Oleg Endo  <olegendo@gcc.gnu.org>
16708         * config/sh/sh.md: Fix formatting.
16710 2013-09-24  Xinliang David Li  <davidxl@google.com>
16712         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
16713         max peel iterations parameter.
16714         * param.def: New parameter.
16715         * doc/invoke.texi: Document New parameter.
16717 2013-09-24  Christophe Lyon  <christophe.lyon@linaro.org>
16719         * gimple-pretty-print.c: Various whitespace tweaks.
16720         * tree-core.h: Likewise.
16721         * tree-pretty-print.c: Likewise.
16722         * tree-ssa-alias.c: Likewise.
16723         * tree-ssa-copy.c: Likewise.
16724         * tree-ssanames.c: Likewise.
16725         * tree-ssanames.h: Likewise.
16726         * tree-vrp.c: Likewise.
16728 2013-09-24  Alan Modra  <amodra@gmail.com>
16730         PR middle-end/57134
16731         PR middle-end/57586
16732         * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
16733         for output operands that disallow regs.  Don't use EXPAND_WRITE on
16734         inout operands.
16736 2013-09-24  Richard Biener  <rguenther@suse.de>
16738         PR middle-end/58513
16739         * tree.c (reference_alias_ptr_type): Move ...
16740         * alias.c (reference_alias_ptr_type): ... here and implement
16741         in terms of the new reference_alias_ptr_type_1.
16742         (ref_all_alias_ptr_type_p): New helper.
16743         (get_deref_alias_set_1): Drop flag_strict_aliasing here,
16744         use ref_all_alias_ptr_type_p.
16745         (get_deref_alias_set): Add flag_strict_aliasing check here.
16746         (reference_alias_ptr_type_1): New function, split out from ...
16747         (get_alias_set): ... here.
16748         (alias_ptr_types_compatible_p): New function.
16749         * alias.h (reference_alias_ptr_type): Declare.
16750         (alias_ptr_types_compatible_p): Likewise.
16751         * tree.h (reference_alias_ptr_type): Remove.
16752         * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
16753         to compare MEM_REF alias types.
16755 2013-09-24  Richard Biener  <rguenther@suse.de>
16757         * tree-vrp.c (vrp_finalize): Check for SSA name presence.
16759 2013-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
16761         * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
16762         reload helper function arrays into a single array reg_addr.
16763         (reload_fpr_gpr): Likewise.
16764         (reload_gpr_vsx): Likewise.
16765         (reload_vsx_gpr): Likewise.
16766         (struct rs6000_reg_addr): Likewise.
16767         (reg_addr): Likewise.
16768         (rs6000_debug_reg_global): Change rs6000_vector_reload,
16769         reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
16770         (rs6000_init_hard_regno_mode_ok): Likewise.
16771         (rs6000_secondary_reload_direct_move): Likewise.
16772         (rs6000_secondary_reload): Likewise.
16774         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
16775         constraints: wu, ww, and wy.  Repurpose wv constraint added during
16776         power8 changes.  Put wg constraint in alphabetical order.
16778         * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
16779         for future work to add ISA 2.07 VSX single precision support.
16780         (-mvsx-scalar-double): Change default from -1 to 1, update
16781         documentation comment.
16782         (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
16783         (-mupper-regs-df): New debug switch to control whether DF values
16784         can go in the traditional Altivec registers.
16785         (-mupper-regs-sf): New debug switch to control whether SF values
16786         can go in the traditional Altivec registers.
16788         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
16789         and wy constraints.
16790         (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
16791         loop variables.  Rename -mvsx-scalar-memory to -mupper-regs-df.
16792         Add new constraints, wu/ww/wy.  Repurpose wv constraint.
16793         (rs6000_debug_legitimate_address_p): Print if we are running
16794         before, during, or after reload.
16795         (rs6000_secondary_reload): Add a comment.
16796         (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
16798         * config/rs6000/constraints.md (wa constraint): Sort w<x>
16799         constraints.  Update documentation string.
16800         (wd constraint): Likewise.
16801         (wf constraint): Likewise.
16802         (wg constraint): Likewise.
16803         (wn constraint): Likewise.
16804         (ws constraint): Likewise.
16805         (wt constraint): Likewise.
16806         (wx constraint): Likewise.
16807         (wz constraint): Likewise.
16808         (wu constraint): New constraint for ISA 2.07 SFmode scalar
16809         instructions.
16810         (ww constraint): Likewise.
16811         (wy constraint): Likewise.
16812         (wv constraint): Repurpose ISA 2.07 constraint that we did not use
16813         in the previous submissions.
16814         * doc/md.texi (PowerPC and IBM RS6000): Likewise.
16816 2013-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
16818         * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
16819         (REG_BR_PROB): Say that the probability is stored in an int_list.
16820         * reg-notes.def: Update commentary to mention INT_LIST.
16821         * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
16822         (INT_LIST): New rtx.
16823         * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
16824         * rtlanal.c (int_reg_note_p): New function.
16825         (alloc_reg_note): Assert that the note does not have an int argument.
16826         (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
16827         * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
16828         * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
16829         rather than an INSN_LIST.  Handle INT_LIST.
16830         * ifcvt.c (cond_exec_process_insns): Take the probability as an int
16831         rather than an rtx.  Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
16832         (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
16833         Manipulate them as ints rather than rtxes.
16834         * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
16835         * regmove.c (copy_src_to_dest): Likewise.
16836         * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
16838         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
16839         into the cases that need it.
16840         * config/arm/arm.c (arm_unwind_emit): Likewise.
16842         * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
16843         * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
16844         * loop-doloop.c (add_test, doloop_modify): Likewise.
16845         * loop-unswitch.c (compare_and_jump_seq): Likewise.
16846         * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
16847         * predict.c (combine_predictions_for_insn): Likewise.
16848         * print-rtl.c (print_rtx): Handle INT_LIST.
16849         * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
16850         * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
16851         * config/arm/arm.c (emit_unlikely_jump): Likewise.
16852         * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
16853         (ix86_split_fp_branch, predict_jump): Likewise.
16854         * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
16855         * config/sh/sh.c (expand_cbranchsi4): Likewise.
16856         * config/spu/spu.c (ea_load_store_inline): Likewise.
16858         * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
16859         value of a REG_BR_PROB note.
16860         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
16861         (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
16862         * emit-rtl.c (try_split): Likewise.
16863         * predict.c (br_prob_note_reliable_p): Likewise.
16864         (invert_br_probabilities, combine_predictions_for_insn): Likewise.
16865         * reorg.c (mostly_true_jump): Likewise.
16866         * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
16867         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
16868         * config/i386/i386.c (ix86_print_operand): Likewise.
16869         * config/ia64/ia64.c (ia64_print_operand): Likewise.
16870         * config/mmix/mmix.c (mmix_print_operand): Likewise.
16871         * config/rs6000/rs6000.c (output_cbranch): Likewise.
16872         * config/s390/s390.c (s390_expand_tbegin): Likewise.
16873         * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
16874         * config/sparc/sparc.c (output_cbranch): Likewise.
16875         * config/spu/spu.c (get_branch_target): Likewise.
16876         * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
16877         * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
16879 2013-09-23  Jan Hubicka  <jh@suse.cz>
16881         * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
16882         for ipa-devirt.
16883         * ipa-utils.h (possible_polymorphic_call_target_p): New function.
16884         * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
16885         of external calls
16886         * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
16887         (gimple_fold_call): Dump inconsistent devirtualizations; add
16888         sanity check for type based devirtualizations.
16889         * ipa-prop.c: Include ipa-utils.h
16890         (ipa_intraprocedural_devirtualization): Add sanity check.
16891         (try_make_edge_direct_virtual_call): Likewise.
16893 2013-09-23  Eric Botcazou  <ebotcazou@adacore.com>
16895         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
16896         assignment statements.
16898 2013-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
16900         * gimple-pretty-print.c (dump_ssaname_info): New function.
16901         (dump_gimple_phi): Call it.
16902         (pp_gimple_stmt_1): Likewise.
16903         * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
16904         (range_info_def): Declare.
16905         * tree-pretty-print.c (pp_double_int): New function.
16906         (dump_generic_node): Call it.
16907         * tree-pretty-print.h (pp_double_int): Declare.
16908         * tree-ssa-alias.c (dump_alias_info): Check pointer type.
16909         * tree-ssanames.h (range_info_def): New structure.
16910         (value_range_type): Move definition here.
16911         (set_range_info, value_range_type, duplicate_ssa_name_range_info):
16912         Declare.
16913         * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
16914         initialization.
16915         (set_range_info): New function.
16916         (get_range_info): Likewise.
16917         (duplicate_ssa_name_range_info): Likewise.
16918         (duplicate_ssa_name_fn): Check pointer type and call
16919         duplicate_ssa_name_range_info.
16920         * tree-ssa-copy.c (fini_copy_prop): Likewise.
16921         * tree-vrp.c (value_range_type): Remove definition, now in
16922         tree-ssanames.h.
16923         (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
16924         * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
16925         (SSA_NAME_RANGE_INFO): New macro.
16927 2013-09-23  Richard Biener  <rguenther@suse.de>
16929         PR tree-optimization/58464
16930         * tree-ssa-pre.c (phi_trans_lookup): Remove.
16931         (phi_trans_add): Change to add conditionally on being not present.
16932         (phi_translate_1): Remove recursion detection here.
16933         (phi_translate): Pre-seed the cache with NULL to catch
16934         recursion here in a more generic way.
16935         (bitmap_find_leader): Adjust comment.
16936         (get_representative_for): Dump value-numbers.
16937         (create_expression_by_pieces): Likewise.
16938         (insert_into_preds_of_block): Likewise.
16940 2013-09-23  Christian Bruel  <christian.bruel@st.com>
16942         PR target/58475
16943         * config/sh/sh.md (movsf_ie): Allow fpul_operand.
16944         * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
16946 2013-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
16948         Revert r202780:
16949         2013-09-20  Renlin Li  <renlin.li@arm.com>
16951         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
16952         plus_constant.
16953         (aarch64_expand_epilogue): Likewise.
16954         (aarch64_legitimize_reload_address): Likewise.
16956 2013-09-22  Eric Botcazou  <ebotcazou@adacore.com>
16958         * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
16959         NULL_TREE before pushing them onto the vector.  Likewise for labels.
16961 2013-09-21  Eric Botcazou  <ebotcazou@adacore.com>
16963         * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
16964         comparison operators when -fno-trapping-math is in effect.
16965         * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
16966         comparison operators in TFmode and assert that unsupported operators
16967         cannot reach here.
16968         (ia64_print_operand): Likewise.
16970 2013-09-21  Jan Hubicka  <jh@suse.cz>
16972         * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
16973         (sse_typeless_stores): Enable for core
16974         (sse_load0_by_pxor): Likewise.
16975         (four_jump_limit): Disable for core.
16976         (pad_returns): Likewise.
16977         (avoid_vector_decode): Likewise.
16978         (fuse_cmp_and_branch): Enable for cores.
16979         * i386.c (x86_accumulate_outgoing_args): Disable for cores.
16981 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
16983         PR middle-end/56791
16984         * config/pa/pa.c (pa_option_override): Disable auto increment and
16985         decrement instructions until reload is completed.
16987         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
16988         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
16989         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
16991 2013-09-20  DJ Delorie  <dj@redhat.com>
16992             Nick Clifton  <nickc@redhat.com>
16994         * config/rl78/rl78.c: Various whitespace and comment tweaks.
16995         (need_to_save): Save bank 0 on interrupts.
16996         (characterize_address): Strip far address wrappers.
16997         (rl78_as_legitimate_address): Likewise.
16998         (transcode_memory_rtx): Likewise.
16999         (rl78_peep_movhi_p): Disable this peephole after devirt.
17000         (rl78_propogate_register_origins): Forget all origins when a
17001         CLOBBER is seen.
17002         * config/rl78/rl78-virt.md: Various whitespace tweaks.
17003         * config/rl78/rl78-real.md: Various whitespace tweaks.  Additional
17004         peephole2's.
17005         * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
17006         * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
17007         * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
17008         relocating.
17009         * config/rl78/constraints.md: Various whitespace and paren tweaks.
17011 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
17013         * config/pa/pa.md: In "scc" insn patterns, change output template to
17014         handle const0_rtx in reg_or_0_operand operands.
17016 2013-09-20  Martin Husemann  <martin@NetBSD.org>
17018         PR target/56875
17019         * config/vax/vax.c (vax_output_int_move): Use D format specifier.
17020         * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
17022 2013-09-20  Richard Biener  <rguenther@suse.de>
17024         PR middle-end/58484
17025         * tree-scalar-evolution.c (struct scev_info_str): Shrink by
17026         remembering SSA name version and block index.
17027         (new_scev_info_str): Adjust.
17028         (hash_scev_info): Likewise.  Also hash the block index.
17029         (eq_scev_info): Adjust.
17030         (find_var_scev_info): Likewise.
17031         (struct instantiate_cache_entry): Remove.
17032         (struct instantiate_cache_type): Use a htab to map name, block
17033         to chrec.
17034         (instantiate_cache_type::~instantiate_cache_type): Adjust.
17035         (get_instantiated_value_entry): Likewise.
17036         (hash_idx_scev_info, eq_idx_scev_info): New functions.
17037         (instantiate_scev_name): Adjust.
17039 2013-09-20  Jeff Law  <law@redhat.com>
17041         * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
17043 2013-09-20  Yufeng Zhang  <yufeng.zhang@arm.com>
17045         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
17046         Call aarch64_simd_expand_args to update op[argc].
17048 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
17050         * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
17051         plugin argument.
17053 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
17055         * gengtype.c (file_rules): Added rule for *.cc files.
17056         (get_output_file_with_visibility): Give fatal message when no
17057         rules found.
17059 2013-09-20  Renlin Li  <renlin.li@arm.com>
17061         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
17062         (aarch64_expand_epilogue): Likewise.
17063         (aarch64_legitimize_reload_address): Likewise.
17065 2013-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17067         PR middle-end/57748
17068         * expr.c (expand_assignment): Remove misalignp code path.
17070 2013-09-20  Marek Polacek  <polacek@redhat.com>
17072         PR sanitizer/58413
17073         * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
17074         TYPE_PRECISION.  Add asserts.
17076 2013-09-20  Richard Biener  <rguenther@suse.de>
17078         PR tree-optimization/58453
17079         * tree-loop-distribution.c (distribute_loop): Apply the cost
17080         model for -ftree-loop-distribute-patterns, too.
17082 2013-09-20  Richard Biener  <rguenther@suse.de>
17084         PR middle-end/58473
17085         * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
17086         make type comparison less strict.
17088 2013-09-20  Alan Modra  <amodra@gmail.com>
17090         * configure: Regenerate.
17091         * aclocal.m4: Regenerate.
17093 2013-09-20  Marek Polacek  <polacek@redhat.com>
17095         PR other/58467
17096         * doc/extend.texi: Document that attribute used is meant to be used
17097         on variables with static storage duration.
17099 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
17101         PR tree-optimization/58472
17102         * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
17103         simd_lane_access set inv_p = false.
17104         * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
17105         the simduid magic VAR_DECL.
17107 2013-09-19  Jan Hubicka  <jh@suse.cz>
17109         * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
17111 2013-09-17  Jeff Law  <law@redhat.com>
17113         * tree-ssa-dom.c (record_temporary_equivalences): New function
17114         split out of dom_opt_dom_walker::after_dom_children.
17115         (dom_opt_dom_walker::thread_across_edge): Move common code
17116         in here from dom_opt_dom_walker::after_dom_children.
17117         (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
17119 2013-09-19  Jan Hubicka  <jh@suse.cz>
17121         * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
17122         (TARGET_GENERIC): Use PROCESOR_GENERIC
17123         (enum processor_type): Unify generic32 and 64.
17124         * i386.md (cpu): Likewise.
17125         * x86-tune.def (use_leave): Enable for generic32.
17126         (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
17127         * athlon.md: Change generic64 to generic in all occurences.
17128         * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
17129         (ix86_target_macros_internal): Likewise.
17130         * driver-i386.c (host_detect_local_cpu): Likewise.
17131         * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
17132         to ..
17133         (generic_memcpy, generic_memset, generic_cost): This one.
17134         (generic32_memcpy, generic32_memset, generic32_cost): Remove.
17135         (m_GENERIC32, m_GENERIC64): Remove.
17136         (m_GENERIC): Turn into one flag.
17137         (processor_target): Unify generic tunnings.
17138         (ix86_option_override_internal): Replace generic32/64 by generic.
17139         (ix86_issue_rate): Likewise.
17140         (ix86_adjust_cost): Likewise.
17142 2013-09-19  Jan Hubicka  <jh@suse.cz>
17144         * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
17145         of speculative flag.
17147 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
17149         * omp-low.c (expand_omp_sections): Always pass len - 1 to
17150         GOMP_sections_start, even if !exit_reachable.
17152 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
17154         * lra-constraints.c (need_for_all_save_p): Use macro
17155         HARD_REGNO_CALL_PART_CLOBBERED.
17156         * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
17157         set up pseudo conflict hard regs.
17159 2013-09-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
17161         PR target/58452
17162         * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
17163         operands.
17165 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
17167         PR rtl-optimization/58438
17168         * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
17169         * lra-constraints.c (undo_optional_reloads): Keep optional reloads
17170         from previous subpasses.
17172 2013-09-18  Richard Earnshaw  <rearnsha@arm.com>
17174         * arm.c (arm_get_frame_offsets): Validate architecture supports
17175         LDRD/STRD before accepting the tuning preference.
17176         (arm_expand_prologue): Likewise.
17177         (arm_expand_epilogue): Likewise.
17179 2013-09-18  Richard Biener  <rguenther@suse.de>
17181         PR tree-optimization/58417
17182         * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
17183         have chrecs with symbols defined in the loop as operands.
17184         (chrec_fold_multiply): Likewise.
17185         * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
17186         parameters before folding binary operations.
17187         (struct instantiate_cache_entry_hasher): Remove.
17188         (struct instantiate_cache_type): Use a pointer-map.
17189         (instantiate_cache_type::instantiate_cache_type): New function.
17190         (instantiate_cache_type::get): Likewise.
17191         (instantiate_cache_type::set): Likewise.
17192         (instantiate_cache_type::~instantiate_cache_type): Adjust.
17193         (get_instantiated_value_entry): Likewise.
17194         (global_cache): New global.
17195         (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
17196         instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
17197         instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
17198         (instantiate_scev_name): Adjust.
17199         (instantiate_scev): Construct global instead of local cache.
17200         (resolve_mixers): Likewise.
17202 2013-09-18  Daniel Morris  <danielm@ecoscentric.com>
17203             Paolo Carlini  <paolo.carlini@oracle.com>
17205         PR c++/58458
17206         * doc/implement-cxx.texi: Fix references to the C++ standards.
17208 2013-09-18  Jakub Jelinek  <jakub@redhat.com>
17210         * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
17211         * tree-vect-data-refs.c (vect_analyze_data_refs): For
17212         simd_lane_access drs, update also DR_ALIGNED_TO.
17214 2013-09-18  Marek Polacek  <polacek@redhat.com>
17216         PR sanitizer/58411
17217         * doc/extend.texi: Document no_sanitize_undefined attribute.
17218         * builtins.c (fold_builtin_0): Don't sanitize function if it has the
17219         no_sanitize_undefined attribute.
17221 2013-09-18  Nick Clifton  <nickc@redhat.com>
17223         * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
17224         (ASM_DECLARE_FUNCTION_NAME): Define.
17226 2013-09-17  Trevor Saunders  <tsaunders@mozilla.com>
17228         * compare-elim.c (find_comparison_dom_walker): New class
17229         (find_comparisons_in_bb): Rename to
17230         find_comparison_dom_walker::before_dom_children
17231         (find_comparisons): Adjust
17232         * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
17233         adjust.
17234         (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
17235         * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
17236         (init_walk_dominator_tree): Remove declaration.
17237         (fini_walk_dominator_tree): Remove declaration.
17238         * fwprop.c (single_def_use_dom_walker): New class
17239         (single_def_use_enter_block): Convert to
17240         single_def_use_dom_walker::before_dom_children.
17241         (single_def_use_leave_block): Convert to
17242         single_def_use_dom_walker::after_dom_children.
17243         (build_single_def_use_links): Adjust.
17244         * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
17245         class.
17246         (find_candidates_in_block): Convert to
17247         find_candidates_dom_walker::before_dom_children.
17248         (execute_strength_reduction): Adjust.
17249         * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
17250         (sese_dom_walker): New class.
17251         (sese_dom_walker::sese_dom_walker): New constructor.
17252         (sese_dom_walker::~sese_dom_walker): New destructor.
17253         (build_sese_conditions_before): Convert to
17254         sese_dom_walker::before_dom_children.
17255         (build_sese_conditions_after): Convert to
17256         sese_dom_walker::after_dom_children.
17257         (build_poly_scop): Adjust
17258         * tree-into-ssa.c (rewrite_dom_walker): New class
17259         (rewrite_enter_block): Convert to
17260         rewrite_dom_walker::before_dom_children.
17261         (rewrite_leave_block): Convert to
17262         rewrite_dom_walker::after_dom_children.
17263         (rewrite_update_dom_walker): New class.
17264         (rewrite_update_enter_block): Convert to
17265         rewrite_update_dom_walker::before_dom_children.
17266         (rewrite_update_leave_block): Convert to
17267         rewrite_update_dom_walker::after_dom_children.
17268         (rewrite_blocks, rewrite_into_ssa): Adjust.
17269         (mark_def_dom_walker): New class.
17270         (mark_def_dom_walker::mark_def_dom_walker): New constructor.
17271         (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
17272         (mark_def_sites_blocks): Convert to
17273         mark_def_dom_walker::before_dom_children.
17274         (mark_def_site_blocks): Remove.
17275         * tree-ssa-dom.c (dom_opt_dom_walker): New class.
17276         (tree_ssa_dominator_optimize): Adjust.
17277         (dom_thread_across_edge): Convert to method
17278         dom_opt_dom_walker::thread_across_edge.
17279         (dom_opt_enter_block): Convert to member function
17280         dom_opt_dom_walker::before_dom_children.
17281         (dom_opt_leave_block): Convert to member function
17282         dom_opt_dom_walker::after_dom_children.
17283         * tree-ssa-dse.c (dse_dom_walker): New class.
17284         (dse_enter_block): Convert to member function
17285         dse_dom_walker::before_dom_children.
17286         (tree_ssa_dse): Adjust.
17287         * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
17288         (determine_invariantness_stmt): Convert to method
17289         invariantness_dom_walker::before_dom_children.
17290         (determine_invariantness): Remove
17291         (move_computations_dom_walker): New class.
17292         (move_computations_stmt): Convert to method
17293         move_computations_dom_walker::before_dom_children.
17294         (move_computations, tree_ssa_lim): Adjust.
17295         * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
17296         (nt_init_block): Convert to method
17297         notrappping_dom_walker::before_dom_children.
17298         (nt_fini_block): Convert to method
17299         method nontrapping_dom_walker::after_dom_children.
17300         (get_non_trapping): Adjust.
17301         * tree-ssa-pre.c (eliminate_dom_walker): New class.
17302         (eliminate_bb): Convert to method
17303         eliminate_dom_walker::before_dom_children.
17304         (eliminate_leave_block): Convert to method
17305         eliminate_dom_walker::after_dom_children.
17306         (eliminate): Adjust.
17307         * tree-ssa-strlen.c (strlen_dom_walker): New class.
17308         (strlen_enter_block): Convert to method
17309         strlen_dom_walker::before_dom_children.
17310         (strlen_leave_block): Convert to method
17311         method strlen_dom_walker::after_dom_children.
17312         (tree_ssa_strlen): Adjust.
17313         * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
17314         (tree_ssa_uncprop): Adjust.
17315         (uncprop_leave_block): Convert to method
17316         uncprop_dom_walker::after_dom_children.
17317         (uncprop_leave_block): Convert to method
17318         uncprop_dom_walker::before_dom_children.
17320 2013-09-18  Bin Cheng  <bin.cheng@arm.com>
17322         * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
17323         branch in same basic block.  Check both src and dest of the move insn.
17325 2013-09-17  Nick Clifton  <nickc@redhat.com>
17327         * config/rl78/rl78-real.md (bf): New pattern.
17328         (bt): New pattern.
17329         * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
17330         (rl78_print_operand): Do not put a # before a %B.
17331         * config/rl78/rl78.opt: Tweak doc strings.
17333 2013-09-17  DJ Delorie  <dj@redhat.com>
17335         * config/rl78/constraints.md (Wcv): Allow up to $r31.
17336         * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
17337         (rl78_option_override): Likewise, if -mallregs.
17338         (is_virtual_register): Likewise.
17339         * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
17340         (REGNO_OK_FOR_BASE_P): Likewise.
17341         * config/rl78/rl78.opt (-mallregs): New.
17343 2013-09-17  Nick Clifton  <nickc@redhat.com>
17345         * config/rl78/rl78.c (need_to_save): Change return type to bool.
17346         For interrupt functions: save all call clobbered registers if the
17347         interrupt handler is not a leaf function.
17348         (rl78_expand_prologue): Always recompute the frame information.
17349         For interrupt functions: only select bank 0 if one of the bank 0
17350         registers is going to be psuhed.
17352 2013-09-17  DJ Delorie  <dj@redhat.com>
17354         * config/rl78/constraints.md: For each W* constraint, rename to C*
17355         and create a W* constraint that checks for an optional ES: prefix
17356         pattern also.
17357         * config/rl78/rl78.md (UNS_ES_ADDR): New.
17358         (es_addr): New.  Used to wrap far addresses.
17359         * config/rl78/rl78-protos.h (rl78_es_addr): New.
17360         (rl78_es_base): New.
17361         * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
17362         wrapped far addresses.
17363         (rl78_print_operand_1): Unwrap far addresses before processing.
17364         (rl78_lo16): Wrap far addresses in unspecs.
17365         (rl78_es_addr): New.
17366         (rl78_es_base): New.
17367         (insn_ok_now): Check for not-yet-wrapped far addresses.
17368         (transcode_memory_rtx): Properly re-wrap far addresses.
17370 2013-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17372         * config/sparc/t-rtems: Add leon3 multilibs.
17374 2013-09-17  Cong Hou  <congh@google.com>
17376         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
17377         when checking the dot production pattern. The type of rhs operand
17378         of multiply is now checked correctly.
17380 2013-09-17  Jeff Law  <law@redhat.com>
17382         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
17383         edge implied equivalences into successor phis.
17384         * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
17385         here from tree-ssa-threadedge.c.
17386         (mark_threaded_blocks): When threading through a joiner, if both
17387         successors of the joiner's clone reach the same block, verify the
17388         PHI arguments are equal.  If not, cancel the jump threading request.
17389         * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
17390         tree-ssa-threadupdate.c
17391         (thread_across_edge): Don't check PHI argument equality when
17392         threading through joiner block here.
17394 2013-09-17  Andrew MacLeod <amacleod@redhat.com>
17396         * tree-flow.h (ssa_undefined_value_p): Remove prototype.
17397         * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
17398         (warn_uninit, warn_uninitialized_vars,
17399         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
17400         Move to tree-ssa-uninit.c.
17401         * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
17402         (has_undefined_value_p): New.  Pass dependant parts of
17403         ssa_undefined_value_p.
17404         (uninit_undefined_value_p): Use has_undefined_value_p.
17405         (warn_uninit, warn_uninitialized_vars,
17406         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
17407         Move from tree-ssa.c.
17408         * tree-ssa.h: Adjust prototypes.
17410 2013-09-17  Jan Hubicka  <jh@suse.cz>
17412         PR middle-end/58332
17413         * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
17414         * ipa-inline.c (can_inline_edge_p): Do not downgrade
17415         FUNCTION_NOT_OPTIMIZED.
17416         * ipa-inline-analysis.c (compute_inline_parameters): Function
17417         not optimized is not inlinable unless it is alwaysinline.
17418         (inline_analyze_function): Force calls in not optimized
17419         function not inlinable.
17421 2013-09-17  Jan Hubicka  <jh@suse.cz>
17423         PR middle-end/58329
17424         * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
17425         to return NULL.
17426         * ipa.c (function_and_variable_visibility): Likewise.
17427         * ipa-profile.c (ipa_profile): Likewise.
17429 2013-09-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17431         PR ipa/58398
17432         * cgraph.c (cgraph_function_body_availability): Check for ifunc
17433         attribute, and don't inline the resolver in this case.
17435 2013-09-17  Teresa Johnson  <tejohnson@google.com>
17437         * coverage.c (get_coverage_counts): Add missing newline.
17439 2013-09-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17441         PR tree-optimization/58088
17442         * fold-const.c (mask_with_trailing_zeros): New function.
17443         (fold_binary_loc): Make sure we don't recurse infinitely
17444         when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
17445         Use mask_with_trailing_zeros where appropriate.
17447 2013-09-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
17449         * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
17450         of 'prev' var to get better distance estimation.
17452 2013-09-17  Eric Botcazou  <ebotcazou@adacore.com>
17454         * tree-inline.h (struct copy_body_data): Add transform_parameter.
17455         * tree-inline.c (is_parameter_of): New predicate.
17456         (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
17457         a parameter has been remapped.
17458         (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
17459         (optimize_inline_calls): Initialize transform_parameter.
17460         (copy_gimple_seq_and_replace_locals): Likewise.
17461         (tree_function_versioning): Likewise.
17462         (maybe_inline_call_in_expr): Likewise.
17464 2013-09-17  Nick Clifton  <nickc@redhat.com>
17466         * config/msp430/msp430-protos.h: Add prototypes for new functions.
17467         * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
17468         interrupt handlers.
17469         (is_attr_func): New function.
17470         (msp430_is_interrupt_func): New function.
17471         (is_naked_func): New function.
17472         (is_reentrant_func): New function.
17473         (is_critical_func): New function.
17474         (msp430_start_function): Add annotations for function attributes.
17475         (msp430_attr): New function.
17476         (msp430_attribute_table): New.
17477         (msp430_function_section): New function.
17478         (TARGET_ASM_FUNCTION_SECTION): Define.
17479         (msp430_builtin): New enum.
17480         (msp430_init_builtins): New function.
17481         (msp430_builtin_devl): New function.
17482         (msp430_expand_builtin): New function.
17483         (TARGET_INIT_BUILTINS): Define.
17484         (TARGET_EXPAND_BUILTINS): Define.
17485         (TARGET_BUILTIN_DECL): Define.
17486         (msp430_expand_prologue): Add support for naked, interrupt,
17487         critical and reentrant functions.
17488         (msp430_expand_epilogue): Likewise.
17489         (msp430_print_operand): Handle 'O' character.
17490         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
17491         NO_TRAMPOLINES.
17492         * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
17493         UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
17494         (pushm): Use a 'n' rather than an 'i' constraint.
17495         (msp_return): Add generation of the interrupt return instruction.
17496         (disable_interrupts): New pattern.
17497         (enable_interrupts): New pattern.
17498         (push_intr_state): New pattern.
17499         (pop_intr_state): New pattern.
17500         (bic_SR): New pattern.
17501         (bis_SR): New pattern.
17502         * doc/extend.texi: Document MSP430 function attributes and builtin
17503         functions.
17505 2013-09-17  Richard Biener  <rguenther@suse.de>
17507         PR tree-optimization/58432
17508         * tree-loop-distribution.c (tree_loop_distribution): Also
17509         scan PHIs for outside loop uses and seed a partition from them.
17511 2013-09-17  Bin Cheng  <bin.cheng@arm.com>
17513         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
17514         (restructure_reference): Call backtrace_base_for_ref.
17516 2013-09-17  Alan Modra  <amodra@gmail.com>
17518         PR target/57589
17519         * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
17520         patch.
17522 2013-09-16  DJ Delorie  <dj@redhat.com>
17524         * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
17525         vregs location for RL78/G10.
17526         (rl78_expand_prologue): Avoid SEL on G10.
17527         (rl78_expand_epilogue): Likewise.
17528         (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
17529         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
17530         __RL78_G10__ when appropriate.
17531         (ASM_SPEC): Pass -mg10 along to the assembler.
17532         * config/rl78/rl78.md (sel_rb): Disable for G10.
17533         * config/rl78/rl78.opt: Add -mg10 option.
17534         * config/rl78/t-rl78: Add -mg10 multilib.
17536 2013-09-16  Xinliang David Li  <davidxl@google.com>
17538         * tree-if-conv.c (main_tree_if_conversion): Check new flag.
17539         * omp-low.c (omp_max_vf): Ditto.
17540         (expand_omp_simd): Ditto.
17541         * tree-vectorizer.c (vectorize_loops): Ditto.
17542         (gate_vect_slp): Ditto.
17543         (gate_increase_alignment): Ditto.
17544         * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
17545         * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
17546         (gate_tree_vectorize): Name change.
17547         (tree_vectorize): Ditto.
17548         (pass_vectorize::gate): Call new function.
17549         (pass_vectorize::execute): Ditto.
17550         * opts.c: O3 default setting change.
17551         (finish_options): Check new flag.
17552         * doc/invoke.texi: Document new flags.
17553         * common.opt: New flags.
17555 2013-09-16  Andreas Schwab  <schwab@linux-m68k.org>
17557         * doc/tm.texi.in (Cond Exec Macros): Remove node.
17558         (Condition Code): Don't reference it.
17559         * doc/tm.texi: Regenerate.
17561 2013-09-16  Vladimir Makarov  <vmakarov@redhat.com>
17563         PR middle-end/58418
17564         * lra-constraints.c (undo_optional_reloads): Consider all optional
17565         reload even if it did not get a hard reg.
17567 2013-09-16  Teresa Johnson  <tejohnson@google.com>
17569         * dumpfile.c (dump_loc): Remove newline emission.
17570         * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
17571         emission to dump_printf_loc calls where missing.
17572         (vect_mark_for_runtime_alias_test): Ditto.
17573         (vect_analyze_data_ref_dependence): Ditto.
17574         (vect_analyze_data_ref_dependences): Ditto.
17575         (vect_slp_analyze_data_ref_dependence): Ditto.
17576         (vect_slp_analyze_data_ref_dependences): Ditto.
17577         (vect_compute_data_ref_alignment): Ditto.
17578         (vect_update_misalignment_for_peel): Ditto.
17579         (vect_verify_datarefs_alignment): Ditto.
17580         (vector_alignment_reachable_p): Ditto.
17581         (vect_get_data_access_cost): Ditto.
17582         (vect_enhance_data_refs_alignment): Ditto.
17583         (vect_find_same_alignment_drs): Ditto.
17584         (vect_analyze_data_refs_alignment): Ditto.
17585         (vect_analyze_group_access): Ditto.
17586         (vect_analyze_data_ref_access): Ditto.
17587         (vect_analyze_data_ref_accesses): Ditto.
17588         (vect_prune_runtime_alias_test_list): Ditto.
17589         (vect_analyze_data_refs): Ditto.
17590         (vect_create_addr_base_for_vector_ref): Ditto.
17591         (vect_create_data_ref_ptr): Ditto.
17592         (vect_grouped_store_supported): Ditto.
17593         (vect_grouped_load_supported): Ditto.
17594         * value-prof.c (check_counter): Ditto.
17595         (check_ic_target): Ditto.
17596         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
17597         (vect_recog_widen_mult_pattern): Ditto.
17598         (vect_recog_widen_sum_pattern): Ditto.
17599         (vect_recog_over_widening_pattern): Ditto.
17600         (vect_recog_widen_shift_pattern): Ditto.
17601         (vect_recog_rotate_pattern): Ditto.
17602         (vect_recog_vector_vector_shift_pattern): Ditto.
17603         (vect_recog_divmod_pattern): Ditto.
17604         (vect_recog_mixed_size_cond_pattern): Ditto.
17605         (vect_recog_bool_pattern): Ditto.
17606         (vect_pattern_recog_1): Ditto.
17607         (vect_pattern_recog): Ditto.
17608         * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
17609         (vect_is_simple_iv_evolution): Ditto.
17610         (vect_analyze_scalar_cycles_1): Ditto.
17611         (vect_get_loop_niters): Ditto.
17612         (vect_analyze_loop_1): Ditto.
17613         (vect_analyze_loop_form): Ditto.
17614         (vect_analyze_loop_operations): Ditto.
17615         (vect_analyze_loop_2): Ditto.
17616         (vect_analyze_loop): Ditto.
17617         (report_vect_op): Ditto.
17618         (vect_is_slp_reduction): Ditto.
17619         (vect_is_simple_reduction_1): Ditto.
17620         (vect_get_known_peeling_cost): Ditto.
17621         (vect_estimate_min_profitable_iters): Ditto.
17622         (vect_model_reduction_cost): Ditto.
17623         (vect_model_induction_cost): Ditto.
17624         (get_initial_def_for_induction): Ditto.
17625         (vect_create_epilog_for_reduction): Ditto.
17626         (vectorizable_reduction): Ditto.
17627         (vectorizable_induction): Ditto.
17628         (vectorizable_live_operation): Ditto.
17629         (vect_loop_kill_debug_uses): Ditto.
17630         (vect_transform_loop): Ditto.
17631         * tree-vect-stmts.c (vect_mark_relevant): Ditto.
17632         (vect_stmt_relevant_p): Ditto.
17633         (process_use): Ditto.
17634         (vect_mark_stmts_to_be_vectorized): Ditto.
17635         (vect_model_simple_cost): Ditto.
17636         (vect_model_promotion_demotion_cost): Ditto.
17637         (vect_model_store_cost): Ditto.
17638         (vect_get_store_cost): Ditto.
17639         (vect_model_load_cost): Ditto.
17640         (vect_get_load_cost): Ditto.
17641         (vect_init_vector_1): Ditto.
17642         (vect_get_vec_def_for_operand): Ditto.
17643         (vect_finish_stmt_generation): Ditto.
17644         (vectorizable_call): Ditto.
17645         (vectorizable_conversion): Ditto.
17646         (vectorizable_assignment): Ditto.
17647         (vectorizable_shift): Ditto.
17648         (vectorizable_operation): Ditto.
17649         (vectorizable_store): Ditto.
17650         (vectorizable_load): Ditto.
17651         (vectorizable_condition): Ditto.
17652         (vect_analyze_stmt): Ditto.
17653         (vect_transform_stmt): Ditto.
17654         (vect_is_simple_use): Ditto.
17655         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
17656         (vect_can_advance_ivs_p): Ditto.
17657         (vect_update_ivs_after_vectorizer): Ditto.
17658         (vect_do_peeling_for_loop_bound): Ditto.
17659         (vect_gen_niters_for_prolog_loop): Ditto.
17660         (vect_update_inits_of_drs): Ditto.
17661         (vect_create_cond_for_alias_checks): Ditto.
17662         * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
17663         (vect_build_slp_tree_1): Ditto.
17664         (vect_supported_load_permutation_p): Ditto.
17665         (vect_analyze_slp_instance): Ditto.
17666         (vect_analyze_slp): Ditto.
17667         (vect_make_slp_decision): Ditto.
17668         (vect_detect_hybrid_slp): Ditto.
17669         (vect_bb_vectorization_profitable_p): Ditto.
17670         (vect_slp_analyze_bb_1): Ditto.
17671         (vect_update_slp_costs_according_to_vf): Ditto.
17672         (vect_get_mask_element): Ditto.
17673         (vect_transform_slp_perm_load): Ditto.
17674         (vect_schedule_slp_instance): Ditto.
17675         (vect_schedule_slp): Ditto.
17676         (vect_slp_transform_bb): Ditto.
17677         * profile.c (read_profile_edge_counts): Ditto.
17678         (compute_branch_probabilities): Ditto.
17679         * coverage.c (get_coverage_counts): Ditto.
17681 2013-09-16  Diego Novillo  <dnovillo@google.com>
17683         * tree-core.h: Add missing comment lines from refactoring of tree.h.
17685 2013-09-16  Jan Hubicka  <jh@suse.cz>
17687         * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
17688         abstract functions; for static functions check the presence of body.
17690 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
17692         * config/aarch64/aarch64-simd-builtins.def (fma): New.
17693         * config/aarch64/aarch64-simd.md
17694         (aarch64_mla_elt<mode>): New.
17695         (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
17696         (aarch64_mls_elt<mode>): Likewise.
17697         (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
17698         (aarch64_fma4_elt<mode>): Likewise.
17699         (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
17700         (aarch64_fma4_elt_to_128v2df): Likewise.
17701         (aarch64_fma4_elt_to_64df): Likewise.
17702         (fnma<mode>4): Likewise.
17703         (aarch64_fnma4_elt<mode>): Likewise.
17704         (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
17705         (aarch64_fnma4_elt_to_128v2df): Likewise.
17706         (aarch64_fnma4_elt_to_64df): Likewise.
17707         * config/aarch64/iterators.md (VDQSF): New.
17708         * config/aarch64/arm_neon.h
17709         (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
17710         (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
17712 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
17714         * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
17715         (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
17716         (aarch64_mul3_elt_to_128df): Likewise.
17717         (aarch64_mul3_elt_to_64v2df): Likewise.
17718         * config/aarch64/iterators.md (VEL): Also handle DFmode.
17719         (VMUL): New.
17720         (VMUL_CHANGE_NLANES) Likewise.
17721         (h_con): Likewise.
17722         (f): Likewise.
17723         * config/aarch64/arm_neon.h
17724         (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
17726 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
17728         * config/aarch64/arm_neon.h
17729         (vcvtx_high_f32_f64): Fix parameters.
17731 2013-09-16  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
17732             Uros Bizjak  <ubizjak@gmail.com>
17734         * config/alpha.c: Include tree-ssanames.h.
17736 2013-09-16  Richard Biener  <rguenther@suse.de>
17738         * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
17739         (dot_rdg_1): Handle control_dd.
17740         (create_edge_for_control_dependence): New function.
17741         (create_rdg_edges): Add control dependences if asked for.
17742         (build_rdg): Likewise.
17743         (generate_loops_for_partition): If there are not necessary
17744         control stmts remove all their dependencies.
17745         (collect_condition_stmts, rdg_flag_loop_exits): Remove.
17746         (distribute_loop): Pass on control dependences.
17747         (tree_loop_distribution): Compute control dependences and remove
17748         restriction on number of loop nodes.
17750 2013-09-16  Jakub Jelinek  <jakub@redhat.com>
17752         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
17753         for internal calls.
17755 2013-09-16  Richard Sandiford  <rdsandiford@googlemail.com>
17757         * cse.c (try_const_anchors): Punt on CC modes.
17759 2013-09-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
17761         * config/vax/constraints.md (T): Add missing CONSTANT_P check.
17763 2013-09-14  John David Anglin  <danglin@gcc.gnu.org>
17765         PR target/58382
17766         * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
17767         calls to word_mode.
17769 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
17771         PR target/48094
17772         * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
17773         seen.
17774         (darwin_objc1_section): Likewise.
17775         (darwin_file_end): Emit Image Info section when required.
17777 2013-09-14  Jan Hubicka  <jh@suse.cz>
17779         * tree-into-ssa.c (gate_into_ssa): New.
17780         (pass_data_build_ssa): Use it.
17781         * cgraph.h (expand_thunk): Update prototype.
17782         * cgraphunit.c (analyze_function): Expand thunks early.
17783         (expand_thunk): Fix DECL_CONTEXT of reust_decl;
17784         build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
17785         set lowered flag; do not add new function.
17786         (assemble_thunks_and_aliases): Update.
17787         * tree-ssa.c (gate_init_datastructures): New gate.
17788         (pass_data_init_datastructures): Use it.
17790 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
17792         PR target/58269
17793         * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
17794         xmm register set described in the psABI.
17796 2013-09-13  Evgeny Gavrin <e.gavrin@samsung.com>
17798         * dwarf2out.c (should_emit_struct_debug): Add check
17799         for type_decl variable is not NULL.
17801 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
17803         * config.gcc: Use new winnt-c.c target hooks
17804         * config/t-winnt: New file
17805         * config/winnt-c.c: New file
17806         * doc/tm.texi.in: Document new hook
17807         * doc/tm.texi: Regenerated
17809 2013-09-13  Jan Hubicka  <jh@suse.cz>
17811         PR middle-end/58094
17812         * ipa-inline.c (check_callers): New function.
17813         (check_caller_edge): Remove.
17814         (want_inline_function_to_all_callers_p): Also permit alises that are
17815         called dirrectly.
17816         (inline_to_all_callers): Terminate the walk when devirtualization
17817         introduce new calls.
17819 2013-09-13  Jan Hubicka  <jh@suse.cz>
17821         * ipa-inline-analysis.c (struct growth_data): Add node.
17822         (do_estimate_growth_1): Fix detection of recursion.
17824 2013-09-13  Jakub Jelinek  <jakub@redhat.com>
17826         PR tree-optimization/58392
17827         * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
17828         to avoid shadowing of outer loop variable.  If
17829         saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
17830         replace_by_duplicate_decl simduid of loops that have it set and
17831         set dest_cfun->has_simduid_loops and/or
17832         dest_cfun->has_force_vect_loops.
17833         * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
17834         instead of maybe_lookup_decl.
17835         * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
17836         Use id->blocks_to_copy instead of blocks_to_copy.  Adjust recursive
17837         call.  Copy over force_vect and copy and remap simduid.  Set
17838         cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
17839         (copy_cfg_body): Remove blocks_to_copy argument.  Use
17840         id->blocks_to_copy instead of blocks_to_copy.  Adjust copy_loops
17841         caller.  Don't set cfun->has_simduid_loops and/or
17842         cfun->has_force_vect_loops here.
17843         (copy_body): Remove blocks_to_copy argument.  Adjust copy_cfg_body
17844         caller.
17845         (expand_call_inline, tree_function_versioning): Adjust copy_body
17846         callers.
17848 2013-09-13  Martin Jambor  <mjambor@suse.cz>
17850         PR bootstrap/58388
17851         * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
17852         the assert if the edge was a speculative one.
17854 2013-09-13  Richard Biener  <rguenther@suse.de>
17856         * tree-data-ref.h (known_dependences_p): Move here ...
17857         * tree-loop-distribution.c (known_dependences_p): ... from here.
17858         (dump_rdg_component, debug_rdg_component): Remove.
17859         (dump_rdg): Adjust.
17860         (generate_loops_for_partition): Use gimple_uid instead of
17861         relying on matching stmt visit order.
17862         (rdg_build_partitions): Take starting stmt vector.
17863         (ldist_gen): Merge into ...
17864         (distribute_loop): ... this function.  Do not compute starting
17865         vertices vector.
17866         * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
17868 2013-09-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17870         * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
17871         Set type attribute correctly. Set predicable_short_it attribute.
17872         (cmpsi_shiftsi): Remove %? from output template.
17874 2013-09-13  Richard Biener  <rguenther@suse.de>
17876         * tree-loop-distribution.c (struct rdg_component,
17877         rdg_defs_used_in_other_loops_p, free_rdg_components,
17878         rdg_build_components): Remove.
17879         (stmts_from_loop): Do not record virtual PHIs.
17880         (generate_loops_for_partition): Skip virtual PHIs.
17881         (build_rdg_partition_for_component): Rename to ...
17882         (build_rdg_partition_for_vertex): ... this and adjust.
17883         (rdg_build_partitions): Take a vector of starting vertices
17884         instead of components.  Remove unnecessary leftover handling.
17885         (ldist_gen): Do not build components or record other stores.
17886         (distribute_loop): Do not distribute loops containing stmts
17887         with side-effects.
17889 2013-09-13  Christian Bruel  <christian.bruel@st.com>
17891         PR target/58314
17892         * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
17894 2013-09-13  Kai Tietz  <ktietz@redhat.com>
17896         * config.gcc: Separate cases for mingw and cygwin targets,
17897         and add 64-bit cygwin target case.
17899         * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
17900         dll-export inline-functions.
17901         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
17903 2013-09-13  Jeff Law  <law@redhat.com>
17905         PR middle-end/58387
17906         Revert:
17907         2013-09-06  Jeff Law  <law@redhat.com>
17909         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
17910         edge implied equivalences into successor phis.
17912 2013-09-12  DJ Delorie  <dj@redhat.com>
17914         * config/rl78/rl78-virt.md: Change from | to \; for asm line
17915         separators.
17917 2013-09-12  Brooks Moses  <bmoses@google.com>
17919         PR driver/42955
17920         * Makefile.in: Do not install driver binaries in $(target)/bin.
17922 2013-09-12  DJ Delorie  <dj@redhat.com>
17924         * config/rl78/rl78.opt (mrelax): New.
17925         * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
17926         * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
17928         * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
17929         between SP and FP.
17930         (rl78_expand_epilogue): Likewise.
17932 2013-09-12  Vladimir Makarov  <vmakarov@redhat.com>
17934         PR middle-end/58335
17935         * lra-eliminations.c (remove_reg_equal_offset_note): New.
17936         (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
17937         pointer elimination with using remove_reg_equal_offset_note.
17939 2013-09-12  DJ Delorie  <dj@redhat.com>
17941         * config/msp430/: New port.
17942         * config.gcc (msp430): Added.
17943         * doc/invoke.texi: Document MSP430 options.
17944         * doc/install.texi: Document msp430-elf
17945         * doc/md.texi: Document msp430-elf
17946         * doc/contrib.texi: Document msp430-elf
17948         * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
17949         PSImode.
17951 2013-09-12  Martin Jambor  <mjambor@suse.cz>
17953         PR ipa/58389
17954         * ipa-prop.c (remove_described_reference): Give up if the edge in the
17955         reference descriptor is NULL.
17956         (ipa_edge_removal_hook): If owning a reference descriptor, set its
17957         edge to NULL.
17959 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
17961         * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
17962         (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
17963         num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
17964         * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
17965         make_temp_ssa_name): move to tree-ssanames.h
17966         * tree-ssa-alias.h: Move prototype.
17967         * tree-ssa.h: Include tree-ssanames.h.
17968         * tree-ssanames.c (FREE_SSANAMES): Move to here.
17969         * tree-ssanames.h: New.  Move items from tree-flow*.h
17970         * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
17972 2013-09-12  Richard Biener  <rguenther@suse.de>
17974         PR tree-optimization/58404
17975         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
17976         propagate non-invariant addresses into dereferences wrapped
17977         in component references.
17979 2013-09-12  Richard Biener  <rguenther@suse.de>
17981         PR tree-optimization/58402
17982         * passes.def: Move pass_late_warn_uninitialized later.
17984 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
17986         * tree-ssa.h: New.  Move content from tree-flow.h and
17987         tree-flow-inline.h.
17988         * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
17989         Move prototypes belonging to tree-ssa.c.
17990         * tree-flow-inline.h (redirect_edge_var_map_def,
17991         redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
17992         tree-ssa.h.
17993         * gimple.h: Adjust prototypes.
17994         * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
17995         to...
17996         * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
17997         * tree.h: Move prototype to tree-ssa.h.
17998         * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
17999         * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
18000         * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
18001         cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
18002         cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
18003         ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
18004         gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
18005         gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
18006         graphite-blocking.c, graphite-clast-to-gimple.c,
18007         graphite-dependences.c, graphite-interchange.c,
18008         graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
18009         graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
18010         ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
18011         ipa-reference.c, ipa-split.c, ipa-utils.c,
18012         loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
18013         lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
18014         passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
18015         tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
18016         tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
18017         tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
18018         tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
18019         tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
18020         tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
18021         tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
18022         tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
18023         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
18024         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
18025         tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
18026         value-prof.c, var-tracking.c,
18027         varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
18029 2013-09-12  Richard Biener  <rguenther@suse.de>
18031         PR tree-optimization/58396
18032         * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
18033         (build_rdg): Take a loop-nest parameter, fix memleaks.
18034         (distribute_loop): Compute loop-nest here and pass it to build_rdg.
18036 2013-09-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
18038         * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
18039         for SLM.
18041 2013-09-12  Cameron McInally  <cameron.mcinally@nyu.edu>
18043         * doc/extend.texi: Fix errors in x86 FMA builtin naming.
18044         The FMA instruction names should have a 'v' prefix.
18046 2013-09-12  Richard Biener  <rguenther@suse.de>
18048         * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
18049         (dot_rdg): Use popen instead of system in optional code.
18050         (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
18051         (already_processed_vertex_p): Adjust.
18052         (has_anti_or_output_dependence, predecessor_has_mem_write,
18053         mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
18054         rdg_flag_uses): Remove.
18055         (rdg_flag_vertex): Simplify.
18056         (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
18057         remove recursion.
18058         (build_rdg_partition_for_component): Process the first vertex
18059         of a component only.
18060         (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
18062 2013-09-12  Alan Modra  <amodra@gmail.com>
18064         * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
18066 2013-09-11  DJ Delorie  <dj@redhat.com>
18067             Nick Clifton  <nickc@redhat.com>
18069         * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
18070         (rl78_stack_based_mem): New.
18071         * config/rl78/constraints.md (Iv08): New.
18072         (Iv16): New.
18073         (Iv24): New.
18074         (Is09): New.
18075         (Is17): New.
18076         (Is25): New.
18077         (ISsi): New.
18078         (IShi): New.
18079         (ISqi): New.
18080         * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
18081         (movhi): Likewise.
18082         (movsi): Change from expand to insn-and-split.
18083         (ashrsi3): Clobber AX.
18084         (lshrsi3): New.
18085         (ashlsi3): New.
18086         (cbranchsi4): New.
18087         * config/rl78/rl78.md (CC_REG): Fix.
18088         (addsi3): Allow memory and immediate operands.
18089         (addsi3_internal): Split into...
18090         (addsi3_internal_virt): ...new, and ...
18091         (addsi3_internal_real): ...new.
18092         (subsi): New.
18093         (subsi3_internal_virt): New.
18094         (subsi3_internal_real): New.
18095         (mulsi3): Add memory operand.
18096         (mulsi3_rl78): Likewise.
18097         (mulsi3_g13): Likewise.
18098         * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
18099         (cbranchqi4_real): Add more constraint options.
18100         (cbranchhi4_real): Expand pattern.
18101         (cbranchhi4_real_signed): New.
18102         (cbranchhi4_real_inverted): New.
18103         (cbranchsi4_real_lt): New.
18104         (cbranchsi4_real_ge): New.
18105         (cbranchsi4_real_signed): New.
18106         (cbranchsi4_real): New.
18107         (peephole2): New.
18108         * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
18109         constant shifts.
18110         (lshrsi3_virt): Likewise.
18111         (ashlsi3_virt): Likewise.
18112         (cbranchqi4_virt_signed): New.
18113         (cbranchhi4_virt_signed): New.
18114         (cbranchsi4_virt): New.
18115         * config/rl78/rl78.c: Whitespace fixes throughout.
18116         (move_elim_pass): New.
18117         (pass_data_rl78_move_elim): New.
18118         (pass_rl78_move_elim): New.
18119         (make_pass_rl78_move_elim): New.
18120         (rl78_devirt_info): Run devirt earlier.
18121         (rl78_move_elim_info): New.
18122         (rl78_asm_file_start): Register it.
18123         (rl78_split_movsi): New.
18124         (rl78_as_legitimate_address): Allow virtual base registers when
18125         appropriate.
18126         (rl78_addr_space_convert): Remove spurious debug stuff.
18127         (rl78_print_operand_1): Add z,s,S,r,E modifiers.
18128         (rl78_print_operand): More cases for not printing '#'.
18129         (rl78_expand_compare): Remove most of the logic.
18130         (content_memory): New.
18131         (clear_content_memory): New.
18132         (get_content_index): New.
18133         (get_content_name): New.
18134         (display_content_memory): New.
18135         (update_content): New.
18136         (record_content): New.
18137         (already_contains): New.
18138         (insn_ok_now): Re-recog insns with virtual registers.
18139         (add_postponed_content_update): New.
18140         (process_postponed_content_update): New.
18141         (gen_and_emit_move): New.
18142         (transcode_memory_rtx): Record new location content.
18143         Use gen_and_emit_move.
18144         (force_into_acc): New.
18145         (move_to_acc): Use gen_and_emit_move.
18146         (move_from_acc): Likewise.
18147         (move_acc_to_reg): Likewise.
18148         (move_to_x): Likewise.
18149         (move_to_hl): Likewise.
18150         (move_to_de): Likewise.
18151         (rl78_alloc_physical_registers_op1): Record location content.
18152         (has_constraint): New.
18153         (rl78_alloc_physical_registers_op2): Record location content.
18154         Optimize use of HL.
18155         (rl78_alloc_physical_registers_ro1): Likewise.
18156         (rl78_alloc_physical_registers_cmp): Likewise.
18157         (rl78_alloc_physical_registers_umul): Likewise.
18158         (rl78_alloc_address_registers_macax): New.
18159         (rl78_alloc_physical_registers): Initialize and set location
18160         content memory as needed.
18161         (rl78_reorg): Make sure split2 is called.
18162         (rl78_rtx_costs): New.
18164 2013-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
18166         * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
18167         for (not (neg ...)) and (neg (not ...)) cases.
18169 2013-09-11  Richard Biener  <rguenther@suse.de>
18171         PR middle-end/58377
18172         * passes.def: Split critical edges before late uninit warning passes.
18173         * tree-cfg.c (pass_split_crit_edges): Implement clone method.
18175 2013-09-11  Jakub Jelinek  <jakub@redhat.com>
18177         PR tree-optimization/58385
18178         * fold-const.c (build_range_check): If both low and high are NULL,
18179         use omit_one_operand_loc to preserve exp side-effects.
18181 2013-09-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18183         * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
18185 2013-09-11  Richard Biener  <rguenther@suse.de>
18187         * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
18188         dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
18189         dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
18190         create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
18191         stmts_from_loop, known_dependences_p, build_empty_rdg,
18192         build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
18193         * tree-loop-distribution.c: ... here.
18194         * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
18195         RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
18196         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
18197         struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
18198         * tree-loop-distribution.c: ... here.
18199         * tree-loop-distribution.c: Include gimple-pretty-print.h.
18200         (struct partition_s): Add loops member.
18201         (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
18202         rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
18203         build_rdg_partition_for_component, rdg_build_partitions): Adjust.
18205 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18206             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
18207             Sergey Lega  <sergey.s.lega@intel.com>
18208             Anna Tikhonova  <anna.tikhonova@intel.com>
18209             Ilya Tocar  <ilya.tocar@intel.com>
18210             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18211             Ilya Verbin  <ilya.verbin@intel.com>
18212             Kirill Yukhin  <kirill.yukhin@intel.com>
18213             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
18215         * config/i386/constraints.md (k): New.
18216         (Yk): Ditto.
18217         * config/i386/i386.c (const regclass_map): Add new mask registers.
18218         (dbx_register_map): Ditto.
18219         (dbx64_register_map): Ditto.
18220         (svr4_dbx_register_map): Ditto.
18221         (ix86_conditional_register_usage): Squash mask registers if AVX512F is
18222         disabled.
18223         (ix86_preferred_reload_class): Disable constants for mask registers.
18224         (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
18225         (ix86_hard_regno_mode_ok): Support new mask registers.
18226         (x86_order_regs_for_local_alloc): Ditto.
18227         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
18228         (FIXED_REGISTERS): Add new mask registers.
18229         (CALL_USED_REGISTERS): Ditto.
18230         (REG_ALLOC_ORDER): Ditto.
18231         (VALID_MASK_REG_MODE): New.
18232         (FIRST_MASK_REG): Ditto.
18233         (LAST_MASK_REG): Ditto.
18234         (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
18235         (MAYBE_MASK_CLASS_P): New.
18236         (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
18237         (REG_CLASS_CONTENTS): Ditto.
18238         (MASK_REGNO_P): New.
18239         (ANY_MASK_REG_P): Ditto.
18240         (HI_REGISTER_NAMES): Add new mask registers.
18241         * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
18242         MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
18243         mask registers.
18244         (attribute "type"): Add mskmov, msklog.
18245         (attribute "length_immediate"): Support them.
18246         (attribute "memory"): Ditto.
18247         (attribute "prefix_0f"): Ditto.
18248         (*movhi_internal): Support new mask registers.
18249         (*movqi_internal): Ditto.
18250         (define_split): Split out clobber pattern is a logic
18251         insn on mask registers.
18252         (*k<logic><mode>): New.
18253         (*andhi_1): Extend to support mask regs.
18254         (*andqi_1): Extend to support mask regs.
18255         (kandn<mode>): New.
18256         (define_split): Split and-not to and and not if operands
18257         are not mask regs.
18258         (*<code><mode>_1): Separate HI mode to new pattern...
18259         (*<code>hi_1): This.
18260         (*<code>qi_1): Extend to support mask regs.
18261         (kxnor<mode>): New.
18262         (kortestzhi): Ditto.
18263         (kortestchi): Ditto.
18264         (kunpckhi): Ditto.
18265         (*one_cmpl<mode>2_1): Remove HImode and handle it...
18266         (*one_cmplhi2_1): ...Here, now with mask registers support.
18267         (*one_cmplqi2_1): Support new mask registers.
18268         (HI/QImode arithmetics splitter): Don't split if mask registers
18269         are used.
18270         (HI/QImode not splitter): Ditto.
18271         * config/i386/predicated.md (mask_reg_operand): New.
18272         (general_reg_operand): Ditto.
18274 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18276         * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
18277         * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
18279 2013-09-10  Jeff Law  <law@redhat.com>
18281         PR tree-optimization/58380
18282         * tree-ssa-threadupdate.c (thread_block): Recognize another case
18283         of threading through a buried loop header.
18285         * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
18286         return value for single successor case.
18288 2013-09-10  Jan Hubicka  <jh@suse.cz>
18290         * ipa-devirt.c (ipa_devirt): Enable with LTO.
18292 2013-09-10  Richard Earnshaw  <rearnsha@arm.com>
18294         PR target/58361
18295         * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
18296         support conditional execution.
18297         (combine_vcvt_f64_<FCVTI32typename>): Likewise.
18299 2013-09-10  Vladimir Makarov  <vmakarov@redhat.com>
18301         * lra.c (lra): Clear lra_optional_reload_pseudos before every
18302         constraint pass.
18303         * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
18304         Check destination too to check move insn.
18305         (undo_optional_reloads): Add check that the original peudo did not
18306         changed its allocation and the optional reload was inherited on last
18307         inheritance pass.  Break loop after deciding to keep optional reload.
18308         (lra_undo_inheritance): Add check that inherited pseudo still in
18309         memory.
18311 2013-09-10  James Greenhalgh  <james.greenhalgh@arm.com>
18313         * config/aarch64/aarch64.md (generic_sched): New.
18314         * config/aarch64/aarch64-generic.md (load): Make conditional
18315         on generic_sched attribute.
18316         (nonload): Likewise.
18318 2013-09-10  Jan Hubicka  <jh@suse.cz>
18320         * lto-cgraph.c: Include ipa-utils.h.
18321         (compute_ltrans_boundary): Also add possible targets into the boundary.
18323 2013-09-10  Jan Hubicka  <jh@suse.cz>
18325         * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
18326         VAR_DECL of vtable rather than full expression.
18328 2013-09-10  Jan Hubicka  <jh@suse.cz>
18329             Paolo Carlini  <paolo.carlini@oracle.com>
18331         * cgraphunit.c (analyze_functions): Save input_location, set it
18332         to UNKNOWN_LOCATION and restore it at the end.
18334 2013-09-10  Martin Jambor  <mjambor@suse.cz>
18336         * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
18337         represented by a thunk.
18339 2013-09-10  Jeff Law  <law@redhat.com>
18341         PR tree-optimization/58343
18342         * tree-ssa-threadupdate.c (thread_block): Identify and disable
18343         jump threading requests through loop headers buried in the middle
18344         of a jump threading path.
18346         * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
18347         in return value/type.
18349 2013-09-10  Jakub Jelinek  <jakub@redhat.com>
18351         PR rtl-optimization/58365
18352         * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
18353         resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
18354         it differs.
18356 2013-09-10  Richard Biener  <rguenther@suse.de>
18358         * tree-data-ref.h (build_rdg): Drop all parameters but loop.
18359         * tree-data-ref.c (create_rdg_vertices): Collect all data
18360         references, signal failure to the caller, use data-ref API.
18361         (build_rdg): Compute data references only once.  Maintain lifetime
18362         of data references and data dependences from within RDG.
18363         (free_rdg): Free dependence relations.
18364         * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
18365         inventing extra dependences.
18366         (distribute_loop): Update for RDG API changes.
18368 2013-09-10  Kai Tietz  <ktietz@redhat.com>
18370         * doc/invoke.texi (fms-extensions): Document changed
18371         behavior for ms-abi targets.
18372         * config/i386/i386.c (ix86_option_override_internal):
18373         Set default value of option -fms-extension for ms-abi targets.
18375 2013-09-10  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
18377         * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
18379 2013-09-10  Alan Modra  <amodra@gmail.com>
18381         PR target/58330
18382         * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
18384 2013-09-10  Alan Modra  <amodra@gmail.com>
18386         * config/rs6000/predicates.md (add_cint_operand): New.
18387         (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
18388         * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
18389         using add_cint_operand.
18390         (largetoc_high_plus_aix): Likewise.
18392 2013-09-09  Jakub Jelinek  <jakub@redhat.com>
18394         PR tree-optimization/58364
18395         * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
18396         BOOLEAN_TYPE, only invert in_p and continue with arg0 if
18397         the current range can't be an unconditional true or false.
18399 2013-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
18401         * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
18403 2013-09-09  Uros Bizjak  <ubizjak@gmail.com>
18405         * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
18407 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
18409         PR c++/43452
18410         * doc/invoke.texi (-Wdelete-incomplete): Document it.
18412 2013-09-09  Ian Bolton  <ian.bolton@arm.com>
18414         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
18415         NO_REGS for immediate that can't be moved directly into FP_REGS.
18417 2013-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18419         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
18420         comparison with negated operand.
18421         * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
18422         RTL form.
18424 2013-09-09  Richard Biener  <rguenther@suse.de>
18426         PR middle-end/58326
18427         * cfgloopmanip.c (fix_bb_placements): When fixing the placement
18428         of a subloop record all its block as affecting loop-closed SSA form.
18430 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
18432         * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
18433         of an rtx/bitpos pair.
18434         (store_fixed_bit_field): Update accordingly.
18436 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
18438         * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
18439         GEN_INT.
18440         * builtins.c (expand_errno_check): Likewise.
18441         * dwarf2cfi.c (init_return_column_size): Likewise.
18442         * except.c (sjlj_mark_call_sites): Likewise.
18443         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
18444         * lra-constraints.c (emit_inc): Likewise.
18445         * ree.c (combine_set_extension): Likewise.
18446         * regmove.c (fixup_match_2): Likewise.
18447         * reload1.c (inc_for_reload): Likewise.
18449 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
18451         * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
18452         (force_to_mode, simplify_shift_const_1, simplify_comparison):
18453         Use gen_int_mode with the mode of the associated simplify_* call.
18454         * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
18455         * expmed.c (expand_shift_1): Likewise.
18456         * function.c (instantiate_virtual_regs_in_insn): Likewise.
18457         * loop-iv.c (iv_number_of_iterations): Likewise.
18458         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
18459         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
18461 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
18463         * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
18464         of the associated expand_* call.
18465         (asan_emit_stack_protection): Likewise.
18466         * builtins.c (round_trampoline_addr): Likewise.
18467         * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
18468         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
18469         (emit_store_flag): Likewise.
18470         * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
18471         (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
18472         Likewise.
18473         * function.c (instantiate_virtual_regs_in_insn): Likewise.
18474         * ifcvt.c (noce_try_store_flag_constants): Likewise.
18475         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
18476         * modulo-sched.c (generate_prolog_epilog): Likewise.
18477         * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
18478         (expand_ctz, expand_ffs, expand_unop): Likewise.
18480 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
18482         * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
18483         of the associated gen_rtx_* call.
18484         * caller-save.c (init_caller_save): Likewise.
18485         * combine.c (find_split_point, make_extraction): Likewise.
18486         (make_compound_operation): Likewise.
18487         * dwarf2out.c (mem_loc_descriptor): Likewise.
18488         * explow.c (plus_constant, probe_stack_range): Likewise.
18489         * expmed.c (expand_mult_const): Likewise.
18490         * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
18491         * reload1.c (init_reload): Likewise.
18492         * valtrack.c (cleanup_auto_inc_dec): Likewise.
18493         * var-tracking.c (adjust_mems): Likewise.
18494         * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
18495         rather than gen_rtx_fmt_ee.
18497 2013-09-09  Jan Hubicka  <jh@suse.cz>
18499         PR middle-end/58294
18500         * value-prof.c (gimple_ic): Copy also abnormal edges.
18502 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
18504         * asan.c (asan_shadow_cst): Use gen_int_mode.
18506 2013-09-08  Jan Hubicka  <jh@suse.cz>
18508         * ipa-profile.c: Add toplevel comment.
18509         (ipa_propagate_frequency_1): Be more conservative when profile is read.
18510         (contains_hot_call_p): New function.
18511         (ipa_propagate_frequency): Set frequencies based on counts when
18512         profile is read.
18513         * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
18514         profile; do not tamper with profile after inlining if it is read.
18516 2013-09-08  Jan Hubicka  <jh@suse.cz>
18518         * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
18519         speculative edges.
18521 2013-09-08  Jan Hubicka  <jh@suse.cz>
18523         * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
18524         summary generation.
18526 2013-09-08  Jeff Law  <law@redhat.com>
18528         PR bootstrap/58340
18529         * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
18530         of 'found'.
18532 2013-09-08  Andi Kleen  <ak@linux.intel.com>
18534         * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
18536 2013-09-08  Jan Hubicka  <jh@suse.cz>
18538         * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
18540 2013-09-08  Richard Sandiford  <rdsandiford@googlemail.com>
18542         * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
18543         for non-debug insns.
18544         * lra.c (new_insn_reg): Take the containing insn as a parameter.
18545         Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
18546         (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
18547         accordingly.
18549 2013-09-08  Jan Hubicka  <jh@suse.cz>
18551         * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
18552         targets and devirtualize to BUILT_IN_UNREACHABLE.
18553         * timevar.def (TV_IPA_UNREACHABLE): New timevar.
18554         * ipa.c (walk_polymorphic_call_targets): New function.
18555         (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
18556         functions; use the new timevar.
18557         * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
18558         was removed from the program.
18559         (record_binfo): If BINFO corresponds to an anonymous namespace, we may
18560         not consider it in the walk when its vtable is dead.
18561         (possible_polymorphic_call_targets_1): Pass anonymous flag to
18562         record_binfo.
18563         (devirt_variable_node_removal_hook): New function.
18564         (possible_polymorphic_call_targets): Also register
18565         devirt_variable_node_removal_hook.
18566         (ipa_devirt): Do not do non-speculative devirtualization.
18567         (gate_ipa_devirt): One execute if devirtualizing speculatively.
18569 2013-09-08  Jan Hubicka  <jh@suse.cz>
18571         * cgraph.h (varpool_node_hook, varpool_node_hook_list,
18572         varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
18573         varpool_remove_variable_insertion_hook): Declare.
18574         * varpool.c (varpool_node_hook_list): New structure.
18575         (first_varpool_node_removal_hook,
18576         first_varpool_variable_insertion_hook): New variables.
18577         (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
18578         varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
18579         varpool_remove_variable_insertion_hook,
18580         varpool_call_variable_insertion_hooks): New functions.
18581         (varpool_remove_node): Use it.
18583 2013-09-08  Paolo Carlini  <paolo.carlini@oracle.com>
18585         PR c++/54941
18586         * diagnostic.c (diagnostic_build_prefix): When s.file is
18587         "<built-in>" don't output line and column numbers.
18589 2013-09-06  Jan Hubicka  <jh@suse.cz>
18591         * cgraphunit.c (expand_thunk): Get body before touching arguments.
18592         * lto-streamer-out.c: Stream thunks, too.
18593         * lto-streamer-in.c (input_function): Pop cfun here
18594         (lto_read_body): Instead of here.
18596 2013-09-06  Caroline Tice  <cmtice@google.com>
18598         * doc/install.texi: Add documentation for the --enable-vtable-verify
18599         and the --disable-libvtv configure options.
18601 2013-09-06  Jeff Law  <law@redhat.com>
18603         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
18604         edge implied equivalences into successor phis.
18606 2013-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
18608         * resource.c (mark_referenced_resources): Handle COND_EXEC.
18610 2013-09-06  Claudiu Zissulescu  <claziss@synopsys.com>
18612         * resource.c (mark_target_live_regs): Compute resources taking
18613         into account if a call is predicated or not.
18615 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
18617         * toplev.c (output_stack_usage): Be prepared for suffixes created by
18618         the compiler in the function names.
18620 2013-09-06  Jan Hubicka  <jh@suse.cz>
18622         PR middle-end/58094
18623         * ipa-inline.c (has_caller_p): New function.
18624         (want_inline_function_to_all_callers_p): Use it.
18625         (sum_callers, inline_to_all_callers): Break out from ...
18626         (ipa_inline): ... here.
18628 2013-09-06  Jan Hubicka  <jh@suse.cz>
18630         * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
18631         only when AVX is enabled.
18633 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
18635         * config/aarch64/aarch64.md
18636         (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
18637         is fpsimd_<load/store>2.
18638         (load_pair<mode>): Likewise.
18639         (store_pair<mode>): Likewise.
18641 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
18643         * config/arm/types.md (type): Add "mrs" type.
18644         * config/aarch64/aarch64.md
18645         (aarch64_load_tp_hard): Make type "mrs".
18646         * config/arm/arm.md
18647         (load_tp_hard): Make type "mrs".
18648         * config/arm/cortex-a15.md: Update with new attributes.
18649         * config/arm/cortex-a5.md: Update with new attributes.
18650         * config/arm/cortex-a53.md: Update with new attributes.
18651         * config/arm/cortex-a7.md: Update with new attributes.
18652         * config/arm/cortex-a8.md: Update with new attributes.
18653         * config/arm/cortex-a9.md: Update with new attributes.
18654         * config/arm/cortex-m4.md: Update with new attributes.
18655         * config/arm/cortex-r4.md: Update with new attributes.
18656         * config/arm/fa526.md: Update with new attributes.
18657         * config/arm/fa606te.md: Update with new attributes.
18658         * config/arm/fa626te.md: Update with new attributes.
18659         * config/arm/fa726te.md: Update with new attributes.
18661 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
18663         * config/aarch64/aarch64.md
18664         (*movti_aarch64): Use "multiple" for type where v8type is "move2".
18665         (*movtf_aarch64): Likewise.
18666         * config/arm/arm.md
18667         (thumb1_movdi_insn): Use "multiple" for type where more than one
18668         instruction is used for a move.
18669         (*arm32_movhf): Likewise.
18670         (*thumb_movdf_insn): Likewise.
18672 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
18674         * config/arm/types.md (type): Rename fcpys to fmov.
18675         * config/arm/vfp.md
18676         (*arm_movsi_vfp): Rename type fcpys as fmov.
18677         (*thumb2_movsi_vfp): Likewise
18678         (*movhf_vfp_neon): Likewise
18679         (*movhf_vfp): Likewise
18680         (*movsf_vfp): Likewise
18681         (*thumb2_movsf_vfp): Likewise
18682         (*movsfcc_vfp): Likewise
18683         (*thumb2_movsfcc_vfp): Likewise
18684         * config/aarch64/aarch64-simd.md
18685         (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
18686         * config/aarch64/aarch64.md
18687         (*movsi_aarch64): Replace type mov_reg with fmovs.
18688         (*movdi_aarch64): Likewise
18689         (*movsf_aarch64): Likewise
18690         (*movdf_aarch64): Likewise
18691         * config/arm/arm.c
18692         (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
18693         * config/arm/iwmmxt.md
18694         (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
18695         * config/arm/arm1020e.md: Update with new attributes.
18696         * config/arm/cortex-a15-neon.md: Update with new attributes.
18697         * config/arm/cortex-a5.md: Update with new attributes.
18698         * config/arm/cortex-a53.md: Update with new attributes.
18699         * config/arm/cortex-a7.md: Update with new attributes.
18700         * config/arm/cortex-a8-neon.md: Update with new attributes.
18701         * config/arm/cortex-a9.md: Update with new attributes.
18702         * config/arm/cortex-m4-fpu.md: Update with new attributes.
18703         * config/arm/cortex-r4f.md: Update with new attributes.
18704         * config/arm/marvell-pj4.md: Update with new attributes.
18705         * config/arm/vfp11.md: Update with new attributes.
18707 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
18709         * config/aarch64/aarch64.md
18710         (*madd<mode>): Fix type attribute.
18711         (*maddsi_uxtw): Likewise.
18712         (*msub<mode>): Likewise.
18713         (*msubsi_uxtw): Likewise.
18714         (<su_optab>maddsidi4): Likewise.
18715         (<su_optab>msubsidi4): Likewise.
18717 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
18719         * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
18720         * config/arm/arm.md (core_cycles): Remove fdiv.
18721         * config/arm/vfp.md:
18722         (*sqrtsf2_vfp): Update for attribute changes.
18723         (*sqrtdf2_vfp): Likewise.
18724         * config/aarch64/aarch64.md:
18725         (sqrt<mode>2): Update for attribute changes.
18726         * config/arm/arm1020e.md: Update with new attributes.
18727         * config/arm/cortex-a15-neon.md: Update with new attributes.
18728         * config/arm/cortex-a5.md: Update with new attributes.
18729         * config/arm/cortex-a53.md: Update with new attributes.
18730         * config/arm/cortex-a7.md: Update with new attributes.
18731         * config/arm/cortex-a8-neon.md: Update with new attributes.
18732         * config/arm/cortex-a9.md: Update with new attributes.
18733         * config/arm/cortex-m4-fpu.md: Update with new attributes.
18734         * config/arm/cortex-r4f.md: Update with new attributes.
18735         * config/arm/marvell-pj4.md: Update with new attributes.
18736         * config/arm/vfp11.md: Update with new attributes.
18738 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
18740         * config/arm/types.md
18741         (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
18742         * config/aarch64/aarch64.md
18743         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
18744         new attributes.
18745         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
18746         (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
18747         (float<GPI:mode><GPF:mode>2): Likewise.
18748         * config/arm/vfp.md
18749         (*truncsisf2_vfp): Update with new attributes.
18750         (*truncsidf2_vfp): Likewise.
18751         (fixuns_truncsfsi2): Likewise.
18752         (fixuns_truncdfsi2): Likewise.
18753         (*floatsisf2_vfp): Likewise.
18754         (*floatsidf2_vfp): Likewise.
18755         (floatunssisf2): Likewise.
18756         (floatunssidf2): Likewise.
18757         (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
18758         (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
18759         * config/arm/arm1020e.md: Update with new attributes.
18760         * config/arm/cortex-a15-neon.md: Update with new attributes.
18761         * config/arm/cortex-a5.md: Update with new attributes.
18762         * config/arm/cortex-a53.md: Update with new attributes.
18763         * config/arm/cortex-a7.md: Update with new attributes.
18764         * config/arm/cortex-a8-neon.md: Update with new attributes.
18765         * config/arm/cortex-a9.md: Update with new attributes.
18766         * config/arm/cortex-m4-fpu.md: Update with new attributes.
18767         * config/arm/cortex-r4f.md: Update with new attributes.
18768         * config/arm/marvell-pj4.md: Update with new attributes.
18769         * config/arm/vfp11.md: Update with new attributes.
18771 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
18773         * config/aarch64/arm_neon.h
18774         (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
18775         (vqtbx<1,2,3,4><q>_s8): Likewise.
18777 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
18779         * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
18780         * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
18781         (add<mode>3): Add type attribute.
18782         (add<mode>3): Likewise.
18783         (usadd<mode>3): Likewise.
18784         (ssadd<mode>3): Likewise.
18785         (sub<mode>3): Likewise.
18786         (sub<mode>3): Likewise.
18787         (ussub<mode>3): Likewise.
18788         (sssub<mode>3): Likewise.
18789         (ssmulsa3): Likewise.
18790         (usmulusa3): Likewise.
18791         (arm_usatsihi): Likewise.
18792         * config/arm/vfp.md
18793         (*movdi_vfp): Add types for all instructions.
18794         (*movdi_vfp_cortexa8): Likewise.
18795         (*movhf_vfp_neon): Likewise.
18796         (*movhf_vfp): Likewise.
18797         (*movdf_vfp): Likewise.
18798         (*thumb2_movdf_vfp): Likewise.
18799         (*thumb2_movdfcc_vfp): Likewise.
18800         * config/arm/arm.md: Add type attribute to all insn patterns.
18801         (*thumb1_adddi3): Add type attribute.
18802         (*arm_adddi3): Likewise.
18803         (*adddi_sesidi_di): Likewise.
18804         (*adddi_zesidi_di): Likewise.
18805         (*thumb1_addsi3): Likewise.
18806         (addsi3_compare0): Likewise.
18807         (*addsi3_compare0_scratch): Likewise.
18808         (*compare_negsi_si): Likewise.
18809         (cmpsi2_addneg): Likewise.
18810         (*addsi3_carryin_<optab>): Likewise.
18811         (*addsi3_carryin_alt2_<optab>): Likewise.
18812         (*addsi3_carryin_clobercc_<optab>): Likewise.
18813         (*subsi3_carryin): Likewise.
18814         (*subsi3_carryin_const): Likewise.
18815         (*subsi3_carryin_compare): Likewise.
18816         (*subsi3_carryin_compare_const): Likewise.
18817         (*arm_subdi3): Likewise.
18818         (*thumb_subdi3): Likewise.
18819         (*subdi_di_zesidi): Likewise.
18820         (*subdi_di_sesidi): Likewise.
18821         (*subdi_zesidi_di): Likewise.
18822         (*subdi_sesidi_di): Likewise.
18823         (*subdi_zesidi_ze): Likewise.
18824         (thumb1_subsi3_insn): Likewise.
18825         (*arm_subsi3_insn): Likewise.
18826         (*anddi3_insn): Likewise.
18827         (*anddi_zesidi_di): Likewise.
18828         (*anddi_sesdi_di): Likewise.
18829         (*ne_zeroextracts): Likewise.
18830         (*ne_zeroextracts): Likewise.
18831         (*ite_ne_zeroextr): Likewise.
18832         (*ite_ne_zeroextr): Likewise.
18833         (*anddi_notdi_di): Likewise.
18834         (*anddi_notzesidi): Likewise.
18835         (*anddi_notsesidi): Likewise.
18836         (andsi_notsi_si): Likewise.
18837         (thumb1_bicsi3): Likewise.
18838         (*iordi3_insn): Likewise.
18839         (*iordi_zesidi_di): Likewise.
18840         (*iordi_sesidi_di): Likewise.
18841         (*thumb1_iorsi3_insn): Likewise.
18842         (*xordi3_insn): Likewise.
18843         (*xordi_zesidi_di): Likewise.
18844         (*xordi_sesidi_di): Likewise.
18845         (*arm_xorsi3): Likewise.
18846         (*andsi_iorsi3_no): Likewise.
18847         (*smax_0): Likewise.
18848         (*smax_m1): Likewise.
18849         (*arm_smax_insn): Likewise.
18850         (*smin_0): Likewise.
18851         (*arm_smin_insn): Likewise.
18852         (*arm_umaxsi3): Likewise.
18853         (*arm_uminsi3): Likewise.
18854         (*minmax_arithsi): Likewise.
18855         (*minmax_arithsi_): Likewise.
18856         (*satsi_<SAT:code>): Likewise.
18857         (arm_ashldi3_1bit): Likewise.
18858         (arm_ashrdi3_1bit): Likewise.
18859         (arm_lshrdi3_1bit): Likewise.
18860         (*arm_negdi2): Likewise.
18861         (*thumb1_negdi2): Likewise.
18862         (*arm_negsi2): Likewise.
18863         (*thumb1_negsi2): Likewise.
18864         (*negdi_extendsid): Likewise.
18865         (*negdi_zero_extend): Likewise.
18866         (*arm_abssi2): Likewise.
18867         (*thumb1_abssi2): Likewise.
18868         (*arm_neg_abssi2): Likewise.
18869         (*thumb1_neg_abss): Likewise.
18870         (one_cmpldi2): Likewise.
18871         (extend<mode>di2): Likewise.
18872         (*compareqi_eq0): Likewise.
18873         (*arm_extendhisi2addsi): Likewise.
18874         (*arm_movdi): Likewise.
18875         (*thumb1_movdi_insn): Likewise.
18876         (*arm_movt): Likewise.
18877         (*thumb1_movsi_insn): Likewise.
18878         (pic_add_dot_plus_four): Likewise.
18879         (pic_add_dot_plus_eight): Likewise.
18880         (tls_load_dot_plus_eight): Likewise.
18881         (*thumb1_movhi_insn): Likewise.
18882         (*thumb1_movsf_insn): Likewise.
18883         (*movdf_soft_insn): Likewise.
18884         (*thumb_movdf_insn): Likewise.
18885         (cbranchsi4_insn): Likewise.
18886         (cbranchsi4_scratch): Likewise.
18887         (*negated_cbranchsi4): Likewise.
18888         (*tbit_cbranch): Likewise.
18889         (*tlobits_cbranch): Likewise.
18890         (*tstsi3_cbranch): Likewise.
18891         (*cbranchne_decr1): Likewise.
18892         (*addsi3_cbranch): Likewise.
18893         (*addsi3_cbranch_scratch): Likewise.
18894         (*arm_cmpdi_insn): Likewise.
18895         (*arm_cmpdi_unsig): Likewise.
18896         (*arm_cmpdi_zero): Likewise.
18897         (*thumb_cmpdi_zero): Likewise.
18898         (*deleted_compare): Likewise.
18899         (*mov_scc): Likewise.
18900         (*mov_negscc): Likewise.
18901         (*mov_notscc): Likewise.
18902         (*cstoresi_eq0_thumb1_insn): Likewise.
18903         (cstoresi_nltu_thumb1): Likewise.
18904         (cstoresi_ltu_thu): Likewise.
18905         (thumb1_addsi3_addgeu): Likewise.
18906         (*arm_jump): Likewise.
18907         (*thumb_jump): Likewise.
18908         (*check_arch2): Likewise.
18909         (arm_casesi_internal): Likewise.
18910         (thumb1_casesi_dispatch): Likewise.
18911         (*arm_indirect_jump): Likewise.
18912         (*thumb1_indirect_jump): Likewise.
18913         (nop): Likewise.
18914         (*and_scc): Likewise.
18915         (*ior_scc): Likewise.
18916         (*compare_scc): Likewise.
18917         (*cond_move): Likewise.
18918         (*cond_arith): Likewise.
18919         (*cond_sub): Likewise.
18920         (*cmp_ite0): Likewise.
18921         (*cmp_ite1): Likewise.
18922         (*cmp_and): Likewise.
18923         (*cmp_ior): Likewise.
18924         (*ior_scc_scc): Likewise.
18925         (*ior_scc_scc_cmp): Likewise.
18926         (*and_scc_scc): Likewise.
18927         (*and_scc_scc_cmp): Likewise.
18928         (*and_scc_scc_nod): Likewise.
18929         (*negscc): Likewise.
18930         (movcond_addsi): Likewise.
18931         (movcond): Likewise.
18932         (*ifcompare_plus_move): Likewise.
18933         (*if_plus_move): Likewise.
18934         (*ifcompare_move_plus): Likewise.
18935         (*if_move_plus): Likewise.
18936         (*ifcompare_arith_arith): Likewise.
18937         (*if_arith_arith): Likewise.
18938         (*ifcompare_arith_move): Likewise.
18939         (*if_arith_move): Likewise.
18940         (*ifcompare_move_arith): Likewise.
18941         (*if_move_arith): Likewise.
18942         (*ifcompare_move_not): Likewise.
18943         (*if_move_not): Likewise.
18944         (*ifcompare_not_move): Likewise.
18945         (*if_not_move): Likewise.
18946         (*ifcompare_shift_move): Likewise.
18947         (*if_shift_move): Likewise.
18948         (*ifcompare_move_shift): Likewise.
18949         (*if_move_shift): Likewise.
18950         (*ifcompare_shift_shift): Likewise.
18951         (*ifcompare_not_arith): Likewise.
18952         (*ifcompare_arith_not): Likewise.
18953         (*if_arith_not): Likewise.
18954         (*ifcompare_neg_move): Likewise.
18955         (*if_neg_move): Likewise.
18956         (*ifcompare_move_neg): Likewise.
18957         (*if_move_neg): Likewise.
18958         (prologue_thumb1_interwork): Likewise.
18959         (*cond_move_not): Likewise.
18960         (*sign_extract_onebit): Likewise.
18961         (*not_signextract_onebit): Likewise.
18962         (stack_tie): Likewise.
18963         (align_4): Likewise.
18964         (align_8): Likewise.
18965         (consttable_end): Likewise.
18966         (consttable_1): Likewise.
18967         (consttable_2): Likewise.
18968         (consttable_4): Likewise.
18969         (consttable_8): Likewise.
18970         (consttable_16): Likewise.
18971         (*thumb1_tablejump): Likewise.
18972         (prefetch): Likewise.
18973         (force_register_use): Likewise.
18974         (thumb_eh_return): Likewise.
18975         (load_tp_hard): Likewise.
18976         (load_tp_soft): Likewise.
18977         (tlscall): Likewise.
18978         (*arm_movtas_ze): Likewise.
18979         (*arm_rev): Likewise.
18980         (*arm_revsh): Likewise.
18981         (*arm_rev16): Likewise.
18982         * config/arm/thumb2.md
18983         (*thumb2_smaxsi3): Likewise.
18984         (*thumb2_sminsi3): Likewise.
18985         (*thumb32_umaxsi3): Likewise.
18986         (*thumb2_uminsi3): Likewise.
18987         (*thumb2_negdi2): Likewise.
18988         (*thumb2_abssi2): Likewise.
18989         (*thumb2_neg_abss): Likewise.
18990         (*thumb2_movsi_insn): Likewise.
18991         (tls_load_dot_plus_four): Likewise.
18992         (*thumb2_movhi_insn): Likewise.
18993         (*thumb2_mov_scc): Likewise.
18994         (*thumb2_mov_negs): Likewise.
18995         (*thumb2_mov_negs): Likewise.
18996         (*thumb2_mov_nots): Likewise.
18997         (*thumb2_mov_nots): Likewise.
18998         (*thumb2_movsicc_): Likewise.
18999         (*thumb2_movsfcc_soft_insn): Likewise.
19000         (*thumb2_indirect_jump): Likewise.
19001         (*thumb2_and_scc): Likewise.
19002         (*thumb2_ior_scc): Likewise.
19003         (*thumb2_ior_scc_strict_it): Likewise.
19004         (*thumb2_cond_move): Likewise.
19005         (*thumb2_cond_arith): Likewise.
19006         (*thumb2_cond_ari): Likewise.
19007         (*thumb2_cond_sub): Likewise.
19008         (*thumb2_negscc): Likewise.
19009         (*thumb2_movcond): Likewise.
19010         (thumb2_casesi_internal): Likewise.
19011         (thumb2_casesi_internal_pic): Likewise.
19012         (*thumb2_alusi3_short): Likewise.
19013         (*thumb2_mov<mode>_shortim): Likewise.
19014         (*thumb2_addsi_short): Likewise.
19015         (*thumb2_subsi_short): Likewise.
19016         (thumb2_addsi3_compare0): Likewise.
19017         (*thumb2_cbz): Likewise.
19018         (*thumb2_cbnz): Likewise.
19019         (*thumb2_one_cmplsi2_short): Likewise.
19020         (*thumb2_negsi2_short): Likewise.
19021         (*orsi_notsi_si): Likewise.
19022         * config/arm/arm1020e.md: Update with new attributes.
19023         * config/arm/arm1026ejs.md: Update with new attributes.
19024         * config/arm/arm1136jfs.md: Update with new attributes.
19025         * config/arm/arm926ejs.md: Update with new attributes.
19026         * config/arm/cortex-a15.md: Update with new attributes.
19027         * config/arm/cortex-a5.md: Update with new attributes.
19028         * config/arm/cortex-a53.md: Update with new attributes.
19029         * config/arm/cortex-a7.md: Update with new attributes.
19030         * config/arm/cortex-a8.md: Update with new attributes.
19031         * config/arm/cortex-a9.md: Update with new attributes.
19032         * config/arm/cortex-m4.md: Update with new attributes.
19033         * config/arm/cortex-r4.md: Update with new attributes.
19034         * config/arm/fa526.md: Update with new attributes.
19035         * config/arm/fa606te.md: Update with new attributes.
19036         * config/arm/fa626te.md: Update with new attributes.
19037         * config/arm/fa726te.md: Update with new attributes.
19039 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
19041         * config/aarch64/aarch64-simd.md
19042         (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
19043         <vwx> iterator to ensure correct register choice.
19044         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
19045         (aarch64_sqdmull_n<mode>): Likewise.
19046         (aarch64_sqdmull2_n<mode>_internal): Likewise.
19047         * config/aarch64/arm_neon.h
19048         (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
19049         (vml<as><q>_n_<su>16): Likewise.
19050         (vml<as>l_high_lane<q>_<su>16): Likewise.
19051         (vml<as>l_high_n_<su>16): Likewise.
19052         (vml<as>l_lane<q>_<su>16): Likewise.
19053         (vml<as>l_n_<su>16): Likewise.
19054         (vmul<q>_lane<q>_<su>16): Likewise.
19055         (vmul<q>_n_<su>16): Likewise.
19056         (vmull_lane<q>_<su>16): Likewise.
19057         (vmull_n_<su>16): Likewise.
19058         (vmull_high_lane<q>_<su>16): Likewise.
19059         (vmull_high_n_<su>16): Likewise.
19060         (vqrdmulh<q>_n_s16): Likewise.
19062 2013-09-06  Tejas Belagod  <tejas.belagod@arm.com>
19064         * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
19065         have the correct lane parameter.
19067 2013-09-06  Richard Biener <rguenther@suse.de>
19069         * cfganal.c (control_dependences::~control_dependences):
19070         Properly free all of the vector.
19072 2013-09-06  Kirill Yukhin  <kirill.yukhin@intel.com>
19074         PR target/58269
19075         * config/i386/i386.c (ix86_conditional_register_usage):
19076         Proper initialize extended SSE registers.
19078 2013-09-06  Jan Hubicka  <jh@suse.cz>
19080         PR tree-optimization/58311
19081         * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
19083 2013-09-06  Jan Hubicka  <jh@suse.cz>
19085         * Makefile.in (tree-sra.o): Update dependencies.
19086         * tree-sra.c: Include ipa-utils.h
19087         (scan_function): Use recursive_call_p.
19088         (has_caller_p): New function.
19089         (cgraph_for_node_and_aliases): Count also callers of aliases.
19091 2013-09-06  Jan Hubicka  <jh@suse.cz>
19093         PR middle-end/58094
19094         * cgraph.h (symtab_semantically_equivalent_p): Declare.
19095         * tree-tailcall.c: Include ipa-utils.h.
19096         (find_tail_calls): Use it.
19097         * ipa-pure-const.c (check_call): Likewise.
19098         * ipa-utils.c (recursive_call_p): New function.
19099         * ipa-utils.h (recursive_call_p): Dclare.
19100         * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
19101         (symtab_semantically_equivalent_p): New function.
19102         * Makefile.in (tree-tailcall.o): Update dependencies.
19104 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
19106         * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
19107         non-inlinable part.
19109 2013-09-06  Richard Biener  <rguenther@suse.de>
19111         * lto-streamer.h (lto_global_var_decls): Remove.
19112         * Makefile.in (OBJS): Remove lto-symtab.o.
19113         (lto-symtab.o): Remove.
19114         (GTFILES): Remove lto-symtab.c
19115         * lto-symtab.c: Move to lto/
19117 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19119         * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
19120         (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
19121         (UNSPEC_FPINT_RINT): New constant definitions.
19122         (FPINT, fpint_name, fpint_roundingmode): New integer iterator
19123         definition with 2 attributes.
19124         ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
19125         ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
19126         definitions.
19128 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19130         * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
19131         ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
19132         Set the mnemonic attribute to "bcr_flush".  Set the "z196prop"
19133         attribute to "z196_alone".
19134         * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
19135         "zEC12_simple".
19137 2013-09-06  Richard Biener  <rguenther@suse.de>
19139         * basic-block.h (class control_dependences): New.
19140         * tree-ssa-dce.c (control_dependence_map): Remove.
19141         (cd): New global.
19142         (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
19143         (set_control_dependence_map_bit, clear_control_dependence_bitmap,
19144         find_pdom, find_control_dependence, find_all_control_dependences):
19145         Move to cfganal.c.
19146         (mark_control_dependent_edges_necessary,
19147         find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
19148         tree_dce_done, perform_tree_ssa_dce): Adjust.
19149         * cfganal.c (set_control_dependence_map_bit,
19150         clear_control_dependence_bitmap, find_pdom, find_control_dependence,
19151         find_all_control_dependences): Move from tree-ssa-dce.c and
19152         implement as methods of control_dependences class.
19153         (control_dependences::control_dependences): New.
19154         (control_dependences::~control_dependences): Likewise.
19155         (control_dependences::get_edges_dependent_on): Likewise.
19156         (control_dependences::get_edge): Likewise.
19158 2013-09-04  Jan Hubicka  <jh@suse.cz>
19160         * tree.c (types_same_for_odr): Drop overactive check.
19161         * ipa-devirt.c (hash_type_name): Likewise.
19163 2013-09-04  Jan Hubicka  <jh@suse.cz>
19165         * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
19166         (analyze_functions): ... here.
19168 2013-09-04  Jan Hubicka  <jh@suse.cz>
19170         PR middle-end/58201
19171         * cgraphunit.c (analyze_functions): Clear AUX fields
19172         after processing; initialize assembler name has.
19174 2013-09-05  Jeff Law  <law@redhat.com>
19176         * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
19177         from thread_around_empty_block.  Record threading path into PATH.
19178         Recurse if threading through the initial block is successful.
19179         (thread_across_edge): Corresponding changes to slightly simplify.
19181 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
19183         * config/aarch64/aarch64.md
19184         (type): Remove frecpe, frecps, frecpx.
19185         (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
19186         fix to be a TARGET_SIMD instruction.
19187         (aarch64_frecps): Remove.
19188         * config/aarch64/aarch64-simd.md
19189         (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
19190         (aarch64_frecps<mode>): Handle all float/vector of float modes.
19192 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
19193             Sofiane Naci  <sofiane.naci@arm.com>
19195         * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
19196         into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
19197         Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
19198         "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
19199         "logic_reg", "logics_reg", "rev".  Expand "arlo_shift" into
19200         "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
19201         "logics_shift_imm".  Expand "arlo_shift_reg" into "alu_shift_reg",
19202         "alus_shift_reg", "logic_shift_reg", "logics_shift_reg".  Expand "clz"
19203         into "clz, "rbit".  Rename "shift" to "shift_imm".
19204         * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
19205         changes.  Update for attribute changes all occurrences of arlo_* and
19206         shift* types.
19207         * config/arm/arm-fixed.md: Update for attribute changes
19208         all occurrences of arlo_* types.
19209         * config/arm/thumb2.md: Update for attribute changes all occurrences
19210         of arlo_* types.
19211         * config/arm/arm.c (xscale_sched_adjust_cost):  (rtx insn, rtx
19212         (cortexa7_older_only): Likewise.
19213         (cortexa7_younger):  Likewise.
19214         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
19215         (1020alu_shift_op): Likewise.
19216         (1020alu_shift_reg_op): Likewise.
19217         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
19218         (alu_shift_op): Likewise.
19219         (alu_shift_reg_op): Likewise.
19220         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
19221         (11_alu_shift_op): Likewise.
19222         (11_alu_shift_reg_op): Likewise.
19223         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
19224         (9_alu_shift_reg_op): Likewise.
19225         * config/arm/cortex-a15.md (cortex_a15_alu): Update for
19226         attribute changes.
19227         (cortex_a15_alu_shift): Likewise.
19228         (cortex_a15_alu_shift_reg): Likewise.
19229         * config/arm/cortex-a5.md (cortex_a5_alu): Update for
19230         attribute changes.
19231         (cortex_a5_alu_shift): Likewise.
19232         * config/arm/cortex-a53.md (cortex_a53_alu): Update for
19233         attribute changes.
19234         (cortex_a53_alu_shift): Likewise.
19235         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
19236         attribute changes.
19237         (cortex_a7_alu_reg): Likewise.
19238         (cortex_a7_alu_shift): Likewise.
19239         * config/arm/cortex-a8.md (cortex_a8_alu): Update for
19240         attribute changes.
19241         (cortex_a8_alu_shift): Likewise.
19242         (cortex_a8_alu_shift_reg): Likewise.
19243         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
19244         (cortex_a9_dp_shift): Likewise.
19245         * config/arm/cortex-m4.md (cortex_m4_alu): Update for
19246         attribute changes.
19247         * config/arm/cortex-r4.md
19248         (cortex_r4_alu): Update for attribute changes.
19249         (cortex_r4_mov): Likewise.
19250         (cortex_r4_alu_shift_reg): Likewise.
19251         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
19252         (526_alu_shift_op): Likewise.
19253         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
19254         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
19255         (626te_alu_shift_op): Likewise.
19256         * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
19257         (726te_alu_shift_op): Likewise.
19258         (726te_alu_shift_reg_op): Likewise.
19259         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
19260         (mp626_alu_shift_op): Likewise.
19261         * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
19262         (pj4_alu_conds): Likewise.
19263         (pj4_shift): Likewise.
19264         (pj4_shift_conds): Likewise.
19265         (pj4_alu_shift): Likewise.
19266         (pj4_alu_shift_conds): Likewise.
19267         * config/aarch64/aarch64.md: Update for attribute change
19268         all occurrences of arlo_* and shift* types.
19270 2013-09-05  Mike Stump  <mikestump@comcast.net>
19272         * tree.h: Move documentation for tree_function_decl to tree-core.h
19273         with the declaration.
19275 2013-09-05  Peter Bergner  <bergner@vnet.ibm.com>
19277         PR target/58139
19278         * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
19279         looking for widest mode.
19281 2013-09-05  Eric Botcazou  <ebotcazou@adacore.com>
19283         * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
19285 2013-09-05  Richard Biener  <rguenther@suse.de>
19287         PR tree-optimization/58137
19288         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
19289         Do not create vectors of pointers.
19290         * tree-vect-loop.c (get_initial_def_for_induction): Use proper
19291         types for the components of the vector initializer.
19292         * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
19293         allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
19295 2013-09-05  Martin Jambor  <mjambor@suse.cz>
19297         * ipa-prop.c (remove_described_reference): Accept missing references,
19298         return false if that hppens, otherwise return true.
19299         (cgraph_node_for_jfunc): New function.
19300         (try_decrement_rdesc_refcount): Likewise.
19301         (try_make_edge_direct_simple_call): Use them.
19302         (ipa_edge_removal_hook): Remove references from rdescs.
19303         (ipa_edge_duplication_hook): Clone rdescs and their references
19304         when the new edge has the same caller as the old one.
19305         * cgraph.c (cgraph_resolve_speculation): Remove speculative
19306         reference before removing any edges.
19308 2013-09-05  Richard Earnshaw  <rearnsha@arm.com>
19310         * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
19311         initial store.
19312         * thumb2.md (thumb2_storewb_parisi): New pattern.
19314 2013-09-05  Yufeng Zhang  <yufeng.zhang@arm.com>
19316         * config/aarch64/aarch64-option-extensions.def: Add
19317         AARCH64_OPT_EXTENSION of 'crc'.
19318         * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
19319         (AARCH64_ISA_CRC): Ditto.
19320         * doc/invoke.texi (-march and -mcpu feature modifiers): Add
19321         description of the CRC extension.
19323 2013-09-05  Alexander Ivchenko  <alexander.ivchenko@intel.com>
19325         * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
19326         * config/rs6000/linux.h: Ditto.
19327         * alpha/linux.h: Ditto.
19328         * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
19329         no_c99_libc_has_function.
19330         * config/c6x/uclinux-elf.h: Ditto.
19331         * config/lm32/uclinux-elf.h: Ditto.
19332         * config/m68k/uclinux.h: Ditto.
19333         * config/moxie/uclinux.h: Ditto.
19334         * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
19335         (crisv32-*-linux*, cris-*-linux*): Ditto.
19336         * config/bfin/bfin.c: Include "tm_p.h".
19338 2013-09-05  Richard Biener  <rguenther@suse.de>
19340         * tree-vect-loop.c (vect_analyze_loop_operations): Properly
19341         check for a definition without a basic-block.
19343 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
19344             Sofiane Naci <sofiane.naci@arm.com>
19346         * config/aarch64/aarch64.md
19347         (*movti_aarch64): Rename r_2_f and f_2_r.
19348         (*movsf_aarch64): Likewise.
19349         (*movdf_aarch64): Likewise.
19350         (*movtf_aarch64): Likewise.
19351         (aarch64_movdi_<mode>low): Likewise.
19352         (aarch64_movdi_<mode>high): Likewise.
19353         (aarch64_mov<mode>high_di): Likewise.
19354         (aarch64_mov<mode>low_di): Likewise.
19355         (aarch64_movtilow_tilow): Likewise.
19356         * config/arm/arm.md (attribute "neon_type"): Delete.  Move attribute
19357         values to config/arm/types.md
19358         (attribute "conds"): Update for attribute change.
19359         (anddi3_insn): Likewise.
19360         (iordi3_insn): Likewise.
19361         (xordi3_insn): Likewise.
19362         (one_cmpldi2): Likewise.
19363         * config/arm/types.md (type): Add Neon types.
19364         * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
19365         use "type" attribute.
19366         (movmisalign<mode>_neon_store): Likewise.
19367         (movmisalign<mode>_neon_load): Likewise.
19368         (vec_set<mode>_internal): Likewise.
19369         (vec_setv2di_internal): Likewise.
19370         (vec_extract<mode>): Likewise.
19371         (vec_extractv2di): Likewise.
19372         (add<mode>3_neon): Likewise.
19373         (adddi3_neon): Likewise.
19374         (sub<mode>3_neon): Likewise.
19375         (subdi3_neon): Likewise.
19376         (mul<mode>3_neon): Likewise.
19377         (mul<mode>3add<mode>_neon): Likewise.
19378         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
19379         (fma<VCVTF:mode>4)): Likewise.
19380         (fma<VCVTF:mode>4_intrinsic): Likewise.
19381         (fmsub<VCVTF:mode>4)): Likewise.
19382         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
19383         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
19384         (ior<mode>3): Likewise.
19385         (and<mode>3): Likewise.
19386         (anddi3_neon): Likewise.
19387         (orn<mode>3_neon): Likewise.
19388         (orndi3_neon): Likewise.
19389         (bic<mode>3_neon): Likewise.
19390         (bicdi3_neon): Likewise.
19391         (xor<mode>3): Likewise.
19392         (one_cmpl<mode>2): Likewise.
19393         (abs<mode>2): Likewise.
19394         (neg<mode>2): Likewise.
19395         (umin<mode>3_neon): Likewise.
19396         (umax<mode>3_neon): Likewise.
19397         (smin<mode>3_neon): Likewise.
19398         (smax<mode>3_neon): Likewise.
19399         (vashl<mode>3): Likewise.
19400         (vashr<mode>3_imm): Likewise.
19401         (vlshr<mode>3_imm): Likewise.
19402         (ashl<mode>3_signed): Likewise.
19403         (ashl<mode>3_unsigned): Likewise.
19404         (neon_load_count): Likewise.
19405         (ashldi3_neon_noclobber): Likewise.
19406         (signed_shift_di3_neon): Likewise.
19407         (unsigned_shift_di3_neon): Likewise.
19408         (ashrdi3_neon_imm_noclobber): Likewise.
19409         (lshrdi3_neon_imm_noclobber): Likewise.
19410         (widen_ssum<mode>3): Likewise.
19411         (widen_usum<mode>3): Likewise.
19412         (quad_halves_<code>v4si): Likewise.
19413         (quad_halves_<code>v4sf): Likewise.
19414         (quad_halves_<code>v8hi): Likewise.
19415         (quad_halves_<code>v16qi): Likewise.
19416         (reduc_splus_v2di): Likewise.
19417         (neon_vpadd_internal<mode>): Likewise.
19418         (neon_vpsmin<mode>): Likewise.
19419         (neon_vpsmax<mode>): Likewise.
19420         (neon_vpumin<mode>): Likewise.
19421         (neon_vpumax<mode>): Likewise.
19422         (ss_add<mode>_neon): Likewise.
19423         (us_add<mode>_neon): Likewise.
19424         (ss_sub<mode>_neon): Likewise.
19425         (us_sub<mode>_neon): Likewise.
19426         (neon_vadd<mode>_unspec): Likewise.
19427         (neon_vaddl<mode>): Likewise.
19428         (neon_vaddw<mode>): Likewise.
19429         (neon_vhadd<mode>): Likewise.
19430         (neon_vqadd<mode>): Likewise.
19431         (neon_vaddhn<mode>): Likewise.
19432         (neon_vmul<mode>): Likewise.
19433         (neon_vmla<mode>): Likewise.
19434         (neon_vmlal<mode>): Likewise.
19435         (neon_vmls<mode>): Likewise.
19436         (neon_vmlsl<mode>): Likewise.
19437         (neon_vqdmulh<mode>): Likewise.
19438         (neon_vqdmlal<mode>): Likewise.
19439         (neon_vqdmlsl<mode>): Likewise.
19440         (neon_vmull<mode>): Likewise.
19441         (neon_vqdmull<mode>): Likewise.
19442         (neon_vsub<mode>_unspec): Likewise.
19443         (neon_vsubl<mode>): Likewise.
19444         (neon_vsubw<mode>): Likewise.
19445         (neon_vqsub<mode>): Likewise.
19446         (neon_vhsub<mode>): Likewise.
19447         (neon_vsubhn<mode>): Likewise.
19448         (neon_vceq<mode>): Likewise.
19449         (neon_vcge<mode>): Likewise.
19450         (neon_vcgeu<mode>): Likewise.
19451         (neon_vcgt<mode>): Likewise.
19452         (neon_vcgtu<mode>): Likewise.
19453         (neon_vcle<mode>): Likewise.
19454         (neon_vclt<mode>): Likewise.
19455         (neon_vcage<mode>): Likewise.
19456         (neon_vcagt<mode>): Likewise.
19457         (neon_vtst<mode>): Likewise.
19458         (neon_vabd<mode>): Likewise.
19459         (neon_vabdl<mode>): Likewise.
19460         (neon_vaba<mode>): Likewise.
19461         (neon_vabal<mode>): Likewise.
19462         (neon_vmax<mode>): Likewise.
19463         (neon_vmin<mode>): Likewise.
19464         (neon_vpaddl<mode>): Likewise.
19465         (neon_vpadal<mode>): Likewise.
19466         (neon_vpmax<mode>): Likewise.
19467         (neon_vpmin<mode>): Likewise.
19468         (neon_vrecps<mode>): Likewise.
19469         (neon_vrsqrts<mode>): Likewise.
19470         (neon_vqabs<mode>): Likewise.
19471         (neon_vqneg<mode>): Likewise.
19472         (neon_vcls<mode>): Likewise.
19473         (clz<mode>2): Likewise.
19474         (popcount<mode>2): Likewise.
19475         (neon_vrecpe): Likewise.
19476         (neon_vrsqrte): Likewise.
19477         (neon_vget_lane<mode>_sext_internal): Likewise.
19478         (neon_vget_lane<mode>_zext_internal): Likewise.
19479         (neon_vdup_n<mode>): Likewise.
19480         (neon_vdup_nv2di): Likewise.
19481         (neon_vdpu_lane<mode>_internal): Likewise.
19482         (neon_vswp<mode>): Likewise.
19483         (float<mode><V_cvtto>2): Likewise.
19484         (floatuns<mode><V_cvtto>2): Likewise.
19485         (fix_trunc<mode><V_cvtto>)2): Likewise
19486         (fixuns_trunc<mode><V_cvtto)2): Likewise.
19487         (neon_vcvt<mode>): Likewise.
19488         (neon_vcvtv4sfv4hf): Likewise.
19489         (neon_vcvtv4hfv4sf): Likewise.
19490         (neon_vcvt_n<mode>): Likewise.
19491         (neon_vmovn<mode>): Likewise.
19492         (neon_vqmovn<mode>): Likewise.
19493         (neon_vqmovun<mode>): Likewise.
19494         (neon_vmovl<mode>): Likewise.
19495         (neon_vmul_lane<mode>): Likewise.
19496         (neon_vmull_lane<mode>): Likewise.
19497         (neon_vqdmull_lane<mode>): Likewise.
19498         (neon_vqdmulh_lane<mode>): Likewise.
19499         (neon_vmla_lane<mode>): Likewise.
19500         (neon_vmlal_lane<mode>): Likewise.
19501         (neon_vqdmlal_lane<mode>): Likewise.
19502         (neon_vmls_lane<mode>): Likewise.
19503         (neon_vmlsl_lane<mode>): Likewise.
19504         (neon_vqdmlsl_lane<mode>): Likewise.
19505         (neon_vext<mode>): Likewise.
19506         (neon_vrev64<mode>): Likewise.
19507         (neon_vrev32<mode>): Likewise.
19508         (neon_vrev16<mode>): Likewise.
19509         (neon_vbsl<mode>_internal): Likewise.
19510         (neon_vshl<mode>): Likewise.
19511         (neon_vqshl<mode>): Likewise.
19512         (neon_vshr_n<mode>): Likewise.
19513         (neon_vshrn_n<mode>): Likewise.
19514         (neon_vqshrn_n<mode>): Likewise.
19515         (neon_vqshrun_n<mode>): Likewise.
19516         (neon_vshl_n<mode>): Likewise.
19517         (neon_vqshl_n<mode>): Likewise.
19518         (neon_vqshlu_n<mode>): Likewise.
19519         (neon_vshll_n<mode>): Likewise.
19520         (neon_vsra_n<mode>): Likewise.
19521         (neon_vsri_n<mode>): Likewise.
19522         (neon_vsli_n<mode>): Likewise.
19523         (neon_vtbl1v8qi): Likewise.
19524         (neon_vtbl2v8qi): Likewise.
19525         (neon_vtbl3v8qi): Likewise.
19526         (neon_vtbl4v8qi): Likewise.
19527         (neon_vtbx1v8qi): Likewise.
19528         (neon_vtbx2v8qi): Likewise.
19529         (neon_vtbx3v8qi): Likewise.
19530         (neon_vtbx4v8qi): Likewise.
19531         (neon_vtrn<mode>_internal): Likewise.
19532         (neon_vzip<mode>_internal): Likewise.
19533         (neon_vuzp<mode>_internal): Likewise.
19534         (neon_vld1<mode>): Likewise.
19535         (neon_vld1_lane<mode>): Likewise.
19536         (neon_vld1_dup<mode>): Likewise.
19537         (neon_vld1_dupv2di): Likewise.
19538         (neon_vst1<mode>): Likewise.
19539         (neon_vst1_lane<mode>): Likewise.
19540         (neon_vld2<mode>): Likewise.
19541         (neon_vld2_lane<mode>): Likewise.
19542         (neon_vld2_dup<mode>): Likewise.
19543         (neon_vst2<mode>): Likewise.
19544         (neon_vst2_lane<mode>): Likewise.
19545         (neon_vld3<mode>): Likewise.
19546         (neon_vld3qa<mode>): Likewise.
19547         (neon_vld3qb<mode>): Likewise.
19548         (neon_vld3_lane<mode>): Likewise.
19549         (neon_vld3_dup<mode>): Likewise.
19550         (neon_vst3<mode>): Likewise.
19551         (neon_vst3qa<mode>): Likewise.
19552         (neon_vst3qb<mode>): Likewise.
19553         (neon_vst3_lane<mode>): Likewise.
19554         (neon_vld4<mode>): Likewise.
19555         (neon_vld4qa<mode>): Likewise.
19556         (neon_vld4qb<mode>): Likewise.
19557         (neon_vld4_lane<mode>): Likewise.
19558         (neon_vld4_dup<mode>): Likewise.
19559         (neon_vst4<mode>): Likewise.
19560         (neon_vst4qa<mode>): Likewise.
19561         (neon_vst4qb<mode>): Likewise.
19562         (neon_vst4_lane<mode>): Likewise.
19563         (neon_vec_unpack<US>_lo_<mode>): Likewise.
19564         (neon_vec_unpack<US>_hi_<mode>): Likewise.
19565         (neon_vec_<US>mult_lo_<mode>): Likewise.
19566         (neon_vec_<US>mult_hi_<mode>): Likewise.
19567         (neon_vec_<US>shiftl_<mode>): Likewise.
19568         (neon_unpack<US>_<mode>): Likewise.
19569         (neon_vec_<US>mult_<mode>): Likewise.
19570         (vec_pack_trunc_<mode>): Likewise.
19571         (neon_vec_pack_trunk_<mode>): Likewise.
19572         (neon_vabd<mode>_2): Likewise.
19573         (neon_vabd<mode>_3): Likewise.
19574         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
19575         (thumb2_movsi_vfp): Likewise.
19576         (movdi_vfp): Likewise.
19577         (movdi_vfp_cortexa8): Likewise.
19578         (movhf_vfp_neon): Likewise.
19579         (movhf_vfp): Likewiwse.
19580         (movsf_vfp): Likewiwse.
19581         (thumb2_movsf_vfp): Likewiwse.
19582         (movdf_vfp): Likewise.
19583         (thumb2_movdf_vfp): Likewise.
19584         (movsfcc_vfp): Likewise.
19585         (thumb2_movsfcc_vfp): Likewise.
19586         (movdfcc_vfp): Likewise.
19587         (thumb2_movdfcc_vfp): Likewise.
19588         * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
19589         * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
19590         (v10_v2c): Likewise.
19591         * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
19592         attribute change.
19593         (cortex_a15_neon_int_2): Likewise.
19594         (cortex_a15_neon_int_3): Likewise.
19595         (cortex_a15_neon_int_4): Likewise.
19596         (cortex_a15_neon_int_5): Likewise.
19597         (cortex_a15_neon_vqneg_vqabs): Likewise.
19598         (cortex_a15_neon_vmov): Likewise.
19599         (cortex_a15_neon_vaba): Likewise.
19600         (cortex_a15_neon_vaba_qqq): Likewise.
19601         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19602         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
19603         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
19604         scalar_64_32_long_scalar): Likewise.
19605         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19606         (cortex_a15_neon_mla_qqq_8_16): Likewise.
19607         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
19608         lotype_qdd_64_32_long): Likewise.
19609         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
19610         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
19611         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
19612         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
19613         (cortex_a15_neon_shift_1): Likewise.
19614         (cortex_a15_neon_shift_2): Likewise.
19615         (cortex_a15_neon_shift_3): Likewise.
19616         (cortex_a15_neon_vshl_ddd): Likewise.
19617         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
19618         (cortex_a15_neon_vsra_vrsra): Likewise.
19619         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
19620         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
19621         (cortex_a15_neon_fp_vmul_ddd): Likewise.
19622         (cortex_a15_neon_fp_vmul_qqd): Likewise.
19623         (cortex_a15_neon_fp_vmla_ddd): Likewise.
19624         (cortex_a15_neon_fp_vmla_qqq): Likewise.
19625         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
19626         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
19627         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
19628         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
19629         (cortex_a15_neon_bp_simple): Likewise.
19630         (cortex_a15_neon_bp_2cycle): Likewise.
19631         (cortex_a15_neon_bp_3cycle): Likewise.
19632         (cortex_a15_neon_vld1_1_2_regs): Likewise.
19633         (cortex_a15_neon_vld1_3_4_regs): Likewise.
19634         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19635         (cortex_a15_neon_vld2_4_regs): Likewise.
19636         (cortex_a15_neon_vld3_vld4): Likewise.
19637         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19638         (cortex_a15_neon_vst1_3_4_regs): Likewise.
19639         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
19640         (cortex_a15_neon_vst3_vst4): Likewise.
19641         (cortex_a15_neon_vld1_vld2_lane): Likewise.
19642         (cortex_a15_neon_vld3_vld4_lane" 10
19643         (cortex_a15_neon_vst1_vst2_lane): Likewise.
19644         (cortex_a15_neon_vst3_vst4_lane): Likewise.
19645         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
19646         (cortex_a15_neon_ldm_2): Likewise.0
19647         (cortex_a15_neon_stm_2): Likewise.
19648         (cortex_a15_neon_mcr): Likewise.
19649         (cortex_a15_neon_mcr_2_mcrr): Likewise.
19650         (cortex_a15_neon_mrc): Likewise.
19651         (cortex_a15_neon_mrrc): Likewise.
19652         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
19653         change.
19654         (cortex_a15_alu_shift): Likewise.
19655         (cortex_a15_alu_shift_reg): Likewise.
19656         (cortex_a15_mult32): Likewise.
19657         (cortex_a15_mult64): Likewise.
19658         (cortex_a15_block): Likewise.
19659         (cortex_a15_branch): Likewise.
19660         (cortex_a15_load1): Likewise.
19661         (cortex_a15_load3): Likewise.
19662         (cortex_a15_store1): Likewise.
19663         (cortex_a15_store3): Likewise.
19664         (cortex_a15_call): Likewise.
19665         * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
19666         (cortex_a5_f2r): Likewise.
19667         * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
19668         change.
19669         (cortex_a53_f2r): Likewise.
19670         * config/arm/cortex-a7.md
19671         (cortex_a7_branch): Update for attribute change.
19672         (cortex_a7_call): Likewise.
19673         (cortex_a7_alu_imm): Likewise.
19674         (cortex_a7_alu_reg): Likewise.
19675         (cortex_a7_alu_shift): Likewise.
19676         (cortex_a7_mul): Likewise.
19677         (cortex_a7_load1): Likewise.
19678         (cortex_a7_store1): Likewise.
19679         (cortex_a7_load2): Likewise.
19680         (cortex_a7_store2): Likewise.
19681         (cortex_a7_load3): Likewise.
19682         (cortex_a7_store3): Likewise.
19683         (cortex_a7_load4): Likewise.
19684         (cortex_a7_store4): Likewise.
19685         (cortex_a7_fpalu): Likewise.
19686         (cortex_a7_fconst): Likewise.
19687         (cortex_a7_fpmuls): Likewise.
19688         (cortex_a7_neon_mul): Likewise.
19689         (cortex_a7_fpmacs): Likewise.
19690         (cortex_a7_neon_mla: Likewise.
19691         (cortex_a7_fpmuld: Likewise.
19692         (cortex_a7_fpmacd: Likewise.
19693         (cortex_a7_fpfmad: Likewise.
19694         (cortex_a7_fdivs: Likewise.
19695         (cortex_a7_fdivd: Likewise.
19696         (cortex_a7_r2f: Likewise.
19697         (cortex_a7_f2r: Likewise.
19698         (cortex_a7_f_flags: Likewise.
19699         (cortex_a7_f_loads: Likewise.
19700         (cortex_a7_f_loadd: Likewise.
19701         (cortex_a7_f_stores: Likewise.
19702         (cortex_a7_f_stored: Likewise.
19703         (cortex_a7_neon): Likewise.
19704         * config/arm/cortex-a8-neon.md
19705         (cortex_a8_neon_mrc): Update for attribute change.
19706         (cortex_a8_neon_mrrc): Likewise.
19707         (cortex_a8_neon_int_1): Likewise.
19708         (cortex_a8_neon_int_2): Likewise.
19709         (cortex_a8_neon_int_3): Likewise.
19710         (cortex_a8_neon_int_4): Likewise.
19711         (cortex_a8_neon_int_5): Likewise.
19712         (cortex_a8_neon_vqneg_vqabs): Likewise.
19713         (cortex_a8_neon_vmov): Likewise.
19714         (cortex_a8_neon_vaba): Likewise.
19715         (cortex_a8_neon_vaba_qqq): Likewise.
19716         (cortex_a8_neon_vsma): Likewise.
19717         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19718         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
19719         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
19720         long_scalar): Likewise.
19721         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19722         (cortex_a8_neon_mla_qqq_8_16): Likewise.
19723         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
19724         long_scalar_qdd_64_32_long): Likewise.
19725         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
19726         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
19727         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
19728         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
19729         (cortex_a8_neon_shift_1): Likewise.
19730         (cortex_a8_neon_shift_2): Likewise.
19731         (cortex_a8_neon_shift_3): Likewise.
19732         (cortex_a8_neon_vshl_ddd): Likewise.
19733         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
19734         (cortex_a8_neon_vsra_vrsra): Likewise.
19735         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
19736         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
19737         (cortex_a8_neon_fp_vsum): Likewise.
19738         (cortex_a8_neon_fp_vmul_ddd): Likewise.
19739         (cortex_a8_neon_fp_vmul_qqd): Likewise.
19740         (cortex_a8_neon_fp_vmla_ddd): Likewise.
19741         (cortex_a8_neon_fp_vmla_qqq): Likewise.
19742         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
19743         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
19744         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
19745         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
19746         (cortex_a8_neon_bp_simple): Likewise.
19747         (cortex_a8_neon_bp_2cycle): Likewise.
19748         (cortex_a8_neon_bp_3cycle): Likewise.
19749         (cortex_a8_neon_ldr): Likewise.
19750         (cortex_a8_neon_str): Likewise.
19751         (cortex_a8_neon_vld1_1_2_regs): Likewise.
19752         (cortex_a8_neon_vld1_3_4_regs): Likewise.
19753         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19754         (cortex_a8_neon_vld2_4_regs): Likewise.
19755         (cortex_a8_neon_vld3_vld4): Likewise.
19756         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19757         (cortex_a8_neon_vst1_3_4_regs): Likewise.
19758         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
19759         (cortex_a8_neon_vst3_vst4): Likewise.
19760         (cortex_a8_neon_vld1_vld2_lane): Likewise.
19761         (cortex_a8_neon_vld3_vld4_lane): Likewise.
19762         (cortex_a8_neon_vst1_vst2_lane): Likewise.
19763         (cortex_a8_neon_vst3_vst4_lane): Likewise.
19764         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
19765         (cortex_a8_neon_mcr): Likewise.
19766         (cortex_a8_neon_mcr_2_mcrr): Likewise.
19767         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
19768         * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
19769         change.
19770         (ca9_neon_mrrc): Likewise.
19771         (cortex_a9_neon_int_1): Likewise.
19772         (cortex_a9_neon_int_2): Likewise.
19773         (cortex_a9_neon_int_3): Likewise.
19774         (cortex_a9_neon_int_4): Likewise.
19775         (cortex_a9_neon_int_5): Likewise.
19776         (cortex_a9_neon_vqneg_vqabs): Likewise.
19777         (cortex_a9_neon_vmov): Likewise.
19778         (cortex_a9_neon_vaba): Likewise.
19779         (cortex_a9_neon_vaba_qqq): Likewise.
19780         (cortex_a9_neon_vsma): Likewise.
19781         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19782         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
19783         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
19784         long_scalar): Likewise.
19785         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19786         (cortex_a9_neon_mla_qqq_8_16): Likewise.
19787         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
19788         long_scalar_qdd_64_32_long): Likewise.
19789         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
19790         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
19791         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
19792         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
19793         (cortex_a9_neon_shift_1): Likewise.
19794         (cortex_a9_neon_shift_2): Likewise.
19795         (cortex_a9_neon_shift_3): Likewise.
19796         (cortex_a9_neon_vshl_ddd): Likewise.
19797         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
19798         (cortex_a9_neon_vsra_vrsra): Likewise.
19799         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
19800         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
19801         (cortex_a9_neon_fp_vsum): Likewise.
19802         (cortex_a9_neon_fp_vmul_ddd): Likewise.
19803         (cortex_a9_neon_fp_vmul_qqd): Likewise.
19804         (cortex_a9_neon_fp_vmla_ddd): Likewise.
19805         (cortex_a9_neon_fp_vmla_qqq): Likewise.
19806         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
19807         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
19808         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
19809         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
19810         (cortex_a9_neon_bp_simple): Likewise.
19811         (cortex_a9_neon_bp_2cycle): Likewise.
19812         (cortex_a9_neon_bp_3cycle): Likewise.
19813         (cortex_a9_neon_ldr): Likewise.
19814         (cortex_a9_neon_str): Likewise.
19815         (cortex_a9_neon_vld1_1_2_regs): Likewise.
19816         (cortex_a9_neon_vld1_3_4_regs): Likewise.
19817         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19818         (cortex_a9_neon_vld2_4_regs): Likewise.
19819         (cortex_a9_neon_vld3_vld4): Likewise.
19820         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19821         (cortex_a9_neon_vst1_3_4_regs): Likewise.
19822         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
19823         (cortex_a9_neon_vst3_vst4): Likewise.
19824         (cortex_a9_neon_vld1_vld2_lane): Likewise.
19825         (cortex_a9_neon_vld3_vld4_lane): Likewise.
19826         (cortex_a9_neon_vst1_vst2_lane): Likewise.
19827         (cortex_a9_neon_vst3_vst4_lane): Likewise.
19828         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
19829         (cortex_a9_neon_mcr): Likewise.
19830         (cortex_a9_neon_mcr_2_mcrr): Likewise.
19831         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
19832         (cortex_a9_fps): Likewise.
19833         * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
19834         change.
19835         (cortex_m4_fmuls): Likewise.
19836         * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
19837         change.
19838         (cortex_r4_mrc): Likewise.
19839         * config/arm/iterators.md: Update comment referring to neon_type.
19840         * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
19841         (iwmmxt_movsi_insn): Likewise.
19842         * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
19843         attribute change.
19844         (pj4_core_to_vfp): Likewise.
19845         * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
19846         attribute change.
19847         * config/arm/vfp11.md (vfp_fload): Update for attribute change.
19848         (vfp_fstore): Likewise.
19849         * doc/md.texi: Change references to neon_type to refer to type.
19851 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
19853         * tree.h (DECL_BUILT_IN): Fix typo in comment.
19855 2013-09-04  David Edelsohn  <dje.gcc@gmail.com>
19857         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
19858         lglobl if not weak.
19860 2013-09-04  Easwaran Raman  <eraman@google.com>
19862         PR middle-end/57370
19863         * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
19864         (build_and_add_sum): Use it.
19865         (appears_later_in_bb): Simplify code.
19867 2013-09-04  Teresa Johnson  <tejohnson@google.com>
19869         * dumpfile.c (dump_finish): Don't close stderr/stdout.
19871 2013-09-04  James Greenhalgh  <james.greenhalgh@arm.com>
19873         * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
19875 2013-09-04  Jan Hubicka  <jh@suse.cz>
19877         * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
19878         * ipa-devirt.c: Include diganostic.h
19879         (odr_type_d): Add types and types_set.
19880         (hash_type_name): Work for types with vtables during LTO.
19881         (odr_hasher::remove): Fix comment; destroy types_set.
19882         (add_type_duplicate): New function,
19883         (get_odr_type): Use it.
19884         (dump_type_inheritance_graph): Dump type duplicates.
19885         * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
19886         graph.
19887         * tree.c (types_same_for_odr): Give exact answers on types with
19888         virtual tables.
19890 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
19892         * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
19893         explaining their differences.
19895 2013-09-04  Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
19897         * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
19899 2013-09-03  Jeff Law  <law@redhat.com>
19901         * tree-ssa-threadedge.c (thread_across_edge): Record entire path
19902         when not threading through a joiner block.  Pass joiner/no joiner
19903         state to register_jump_thread.
19904         * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
19905         state from argument rather than implying on path length.
19906         Dump the entire jump thread path into debugging dump.
19907         * tree-flow.h (register_jump_thread): Update prototype.
19909 2013-08-29  Xinliang David Li  <davidxl@google.com>
19911         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19912         Remove a trivial gcc_assert.
19914 2013-08-29  Xinliang David Li  <davidxl@google.com>
19916         * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
19917         * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
19918         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19919         Delay base decl alignment adjustment.
19920         * tree-vectorizer.c (vect_destroy_datarefs): New function.
19921         * tree-vectorizer.h: New data structure.
19922         (set_dr_misalignment): New function.
19923         (dr_misalignment): Ditto.
19924         * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
19925         (vectorizable_load): Ditto.
19926         (ensure_base_align): New function.
19927         (vectorize_loops): Add dbg_cnt support.
19928         (execute_vect_slp): Ditto.
19929         * dbgcnt.def: New debug counter.
19930         * Makefile: New dependency.
19932 2013-09-03  Meador Inge  <meadori@codesourcery.com>
19934         Revert:
19936         2013-08-30  Meador Inge  <meadori@codesourcery.com>
19938         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
19940 2013-09-03  David Edelsohn  <dje.gcc@gmail.com>
19942         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
19943         function descriptor.
19945 2013-09-03  Richard Biener  <rguenther@suse.de>
19947         * tree-affine.c (add_elt_to_tree): Fix association issue,
19948         avoid useless converts and make sure to always return a
19949         properly typed result.
19951 2013-09-03  Richard Biener  <rguenther@suse.de>
19953         PR middle-end/57656
19954         * fold-const.c (negate_expr_p): Fix division case.
19955         (negate_expr): Likewise.
19957 2013-09-03  Richard Biener  <rguenther@suse.de>
19959         PR lto/58285
19960         * tree-streamer-out.c: Include tm.h.
19961         * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
19963 2013-09-03  Jan Hubicka  <jh@suse.cz>
19965         * tree-profile.c (tree_profiling): Cleanup CFG when done.
19967 2013-09-03  Alan Modra  <amodra@gmail.com>
19969         * config.gcc (powerpc*-*-linux*): Add support for little-endian
19970         multilibs to big-endian target and vice versa.
19971         * config/rs6000/t-linux64: Use := assignment on all vars.
19972         (MULTILIB_EXTRA_OPTS): Remove fPIC.
19973         (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
19974         * config/rs6000/t-linux64le: New file.
19975         * config/rs6000/t-linux64bele: New file.
19976         * config/rs6000/t-linux64lebe: New file.
19978 2013-09-02  Jan Hubicka  <jh@suse.cz>
19980         * ipa-inline-transform.c (inline_transform): Do not
19981         optimize_inline_calls when not optimizing.
19983 2013-09-02  Jan Hubicka  <jh@suse.cz>
19985         * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
19986         duplicated nodes for assembler names.
19987         * symtab.c (symtab_unregister_node): Do not attempt to unlink
19988         hard registers from assembler name hash.
19990 2013-09-02  Jan Hubicka  <jh@suse.cz>
19992         * ipa-split.c (execute_split_functions): Split externally visible
19993         functions called once.
19995 2013-09-02  Martin Jambor  <mjambor@suse.cz>
19997         PR ipa/58106
19998         * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
19999         linked list.  When finding the correct duplicate, also consider also
20000         the caller in additon to its inlined_to node.
20002 2013-09-02  James Greenhalgh  <james.greenhalgh@arm.com>
20004         * config/aarch64/aarch64-simd-builtins.def
20005         (dup_lane_scalar): Remove.
20006         * config/aarch64/aarch64-simd.md
20007         (aarch64_simd_dup): Add 'w->w' alternative.
20008         (aarch64_dup_lane<mode>): Allow for VALL.
20009         (aarch64_dup_lane_scalar<mode>): Remove.
20010         (aarch64_dup_lane_<vswap_width_name><mode>): New.
20011         (aarch64_get_lane_signed<mode>): Add w->w altenative.
20012         (aarch64_get_lane_unsigned<mode>): Likewise.
20013         (aarch64_get_lane<mode>): Likewise.
20014         * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
20015         (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
20016         * config/aarch64/iterators.md (VSWAP_WIDTH): New.
20017         (VCON): Change container of V2SF.
20018         (vswap_width_name): Likewise.
20019         * config/aarch64/arm_neon.h
20020         (__aarch64_vdup_lane_any): New.
20021         (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
20022         (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
20023         (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
20025 2013-09-02  Eric Botcazou  <ebotcazou@adacore.com>
20027         PR middle-end/56382
20028         * expr.c (emit_move_complex): Do not move complex FP values as parts if
20029         the source or the destination is a single hard register.
20031 2013-09-02  Richard Biener  <rguenther@suse.de>
20033         PR middle-end/57511
20034         * tree-scalar-evolution.c (instantiate_scev_name): Allow
20035         non-linear SCEVs.
20037 2013-09-02  Richard Biener  <rguenther@suse.de>
20039         * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
20040         arithmetic to sizetype.
20042 2013-09-02  Bin Cheng  <bin.cheng@arm.com>
20044         * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
20045         Find auto-increment use both before and after candidate.
20047 2013-09-02  Marek Polacek  <polacek@redhat.com>
20049         * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
20051 2013-09-01  Jan Hubicka  <jh@suse.cz>
20053         * Makefile.in: Add ipa-profile.o
20054         (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
20055         * cgraph.c (struct cgraph_propagate_frequency_data,
20056         cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
20057         ipa-profile.c; replace cgraph_ by ipa_ prefix.
20058         * cgraph.h (cgraph_propagate_frequency): Remove.
20059         * ipa-inline-analysis.c: Include ipa-utils.h;
20060         drop duplicated cfgloop.h.
20061         (inline_update_callee_summaries): Update.
20062         * ipa-profile.c: New file.
20063         * ipa-utils.h (ipa_propagate_frequency): Declare.
20064         * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
20065         data-streamer.h, value-prof.h.
20066         (symtab_remove_unreachable_nodes): Update profile.
20067         (struct histogram_entry, histogram, histogram_pool, histogram_hash,
20068         account_time_size, cmp_counts, dump_histogram,
20069         ipa_profile_generate_summary, ipa_profile_write_summary,
20070         ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
20071         pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
20072         Move to ipa-profile.c.
20074 2013-09-01  John David Anglin  <danglin@gcc.gnu.org>
20076         * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
20078 2013-09-01  Jan Hubicka  <jh@suse.cz>
20080         * common.opt (fdevirtualize-speculatively): New function.
20081         * invoke.texi (fdevirtualize-speculatively): Document.
20082         * ipa-devirt.c: Include ipa-inline.h
20083         (likely_target_p): New function.
20084         (ipa_devirt): New function.
20085         (gate_ipa_devirt): New function.
20086         (pass_data_ipa_devirt): New static var.
20087         (pass_ipa_devirt): Likewise.
20088         (make_pass_ipa_devirt): New function.
20089         * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
20090         (common_handle_option): Disable devirtualization when
20091         value range profiling is available.
20092         * passes.def (pass_ipa_devirt): Add.
20093         * timever.def (TV_IPA_DEVIRT): New timevar.
20094         * tree-pass.h (make_pass_ipa_devirt):
20096 2013-09-01  Iain Sandoe  <iain@codesourcery.com>
20098         * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
20099         include sanitize(undefined).
20101 2013-08-31  Diego Novillo  <dnovillo@google.com>
20103         * Makefile.in (TREE_CORE_H): Define.
20104         (TREE_H): Use.
20105         (GTFILES): Add tree-core.h.
20106         * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
20107         size the array.
20108         * tree-core.h: New file.
20109         Move all data structures, enum, typedefs, global
20110         declarations and constants from ...
20111         * tree.h: ... here.
20113 2013-08-31  Jan Hubicka  <jh@suse.cz>
20115         * bulitins.c (expand_builtin): Do not early exit for gcov
20116         instrumented functions.
20118 2013-08-31  Marek Polacek  <polacek@redhat.com>
20120         * ubsan.c: Include tm_p.h.
20122 2013-08-31  Jan Hubicka  <jh@suse.cz>
20124         * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
20125         warning.
20127         * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
20128         * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
20129         * tree-cfg.c (verify_gimple_label): ... here.
20130         * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
20131         (ipa_merge_profiles): New function.
20132         * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
20133         (lto_input_function_body): Likewise.
20134         * ipa-utils.h (ipa_merge_profiles): Declare.
20135         * lto-streamer.h (lto_input_function_body): Update prototype.
20136         (emit_label_in_global_context_p): Remove.
20137         * lto-symtab.c: Include ipa-utils.h
20138         (lto_cgraph_replace_node): Use ipa_merge_profiles.
20140 2013-08-31  Jan Hubicka  <jh@suse.cz>
20142         * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
20144 2013-08-31  Jan Hubicka  <jh@suse.cz>
20146         * basic-block.h (apply_scale): Make scale parmeter gcov_type.
20148 2013-08-31  Uros Bizjak  <ubizjak@gmail.com>
20150         * config/alpha/alpha.c (alpha_emit_conditional_move): Update
20151         "cmp" RTX before signed_comparison_operator check to account
20152         for "code" changes.
20154 2013-08-30  Jan Hubicka  <jh@suse.cz>
20156         * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
20157         (detect_type_change_1): Rename to ...
20158         (detect_type_change): ... this one; early return on non-polymorphic
20159         types.
20160         (detect_type_change_ssa): Add comp_type parameter; update
20161         use of detect_type_change.
20162         (compute_complex_assign_jump_func): Add param_type parameter;
20163         update use of detect_type_change_ssa.
20164         (compute_complex_ancestor_jump_func): Likewise.
20165         (ipa_get_callee_param_type): New function.
20166         (ipa_compute_jump_functions_for_edge): Compute parameter type;
20167         update calls to the jump function computation functions.
20169 2013-08-30  Teresa Johnson  <tejohnson@google.com>
20170             Steven Bosscher  <steven@gcc.gnu.org>
20172         * cfgrtl.c (fixup_new_cold_bb): New routine.
20173         (commit_edge_insertions): Invoke fixup_partitions.
20174         (find_partition_fixes): New routine.
20175         (fixup_partitions): Ditto.
20176         (verify_hot_cold_block_grouping): Update comments.
20177         (rtl_verify_edges): Invoke find_partition_fixes.
20178         (rtl_verify_bb_pointers): Update comments.
20179         (rtl_verify_bb_layout): Ditto.
20180         * basic-block.h (probably_never_executed_edge_p): Declare.
20181         (fixup_partitions): Ditto.
20182         * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
20183         * bb-reorder.c (sanitize_hot_paths): New function.
20184         (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
20185         sanitize_hot_paths.
20186         * predict.c (probably_never_executed_edge_p): New routine.
20187         * cfg.c (check_bb_profile): Add partition insanity warnings.
20189 2013-08-30  Meador Inge  <meadori@codesourcery.com>
20191         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
20193 2013-08-30  Marek Polacek  <polacek@redhat.com>
20195         * Makefile.in (ubsan.o): Add.
20196         (c-family/c-ubsan.o): Add.
20197         (builtins.o): Add ubsan.h dependency.
20198         * ubsan.h: New file.
20199         * ubsan.c: New file.
20200         * common.opt: Add -fsanitize=undefined option.
20201         (flag_sanitize): Add variable.
20202         (fsanitize=): Add option.  Add Driver.
20203         (fsanitize=thread): Remove option.
20204         (fsanitize=address): Likewise.
20205         (static-libubsan): New option.
20206         * doc/invoke.texi: Document the new flag and -static-libubsan.
20207         * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
20208         (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
20209         * builtin-attrs.def (ATTR_COLD): Define.
20210         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
20211         * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
20212         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
20213         * flag-types.h (sanitize_code): New enum.
20214         * opts.c (common_handle_option): Parse command line arguments
20215         of -fsanitize=.  Add -fsanitize=unreachable option.
20216         * varasm.c (get_variable_section): Adjust.
20217         (assemble_noswitch_variable): Likewise.
20218         (assemble_variable): Likewise.
20219         (output_constant_def_contents): Likewise.
20220         (categorize_decl_for_section): Likewise.
20221         (place_block_symbol): Likewise.
20222         (output_object_block): Likewise.
20223         * builtins.def: Likewise.
20224         * toplev.c (compile_file): Likewise.
20225         (process_options): Likewise.
20226         * cppbuiltin.c: Likewise.
20227         * tsan.c (tsan_pass): Likewise.
20228         (tsan_gate): Likewise.
20229         (tsan_gate_O0): Likewise.
20230         * cfgexpand.c (partition_stack_vars): Likewise.
20231         (expand_stack_vars): Likewise.
20232         (defer_stack_allocation): Likewise.
20233         (expand_used_vars): Likewise.
20234         * cfgcleanup.c (old_insns_match_p): Likewise.
20235         * asan.c (asan_finish_file): Likewise.
20236         (asan_instrument): Likewise.
20237         (gate_asan): Likewise.
20238         (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
20239         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
20240         (asan_global_struct): Use pointer_sized_int_node instead
20241         calling build_nonstandard_integer_type.
20242         (initialize_sanitizer_builtins): Likewise.
20243         (asan_finish_file): Likewise.
20244         * gcc.c: Document %{%:function(args):X}.
20245         (static_spec_functions): Add sanitize.
20246         (handle_spec_function): Add retval_nonnull argument and if non-NULL,
20247         store funcval != NULL there.
20248         (do_spec_1): Adjust handle_spec_function caller.
20249         (handle_braces): Allow %:function(args) as condition.
20250         (sanitize_spec_function): New function.
20251         (ADD_STATIC_LIBUBSAN_LIBS): Define.
20252         (LIBUBSAN_SPEC): Likewise.
20253         (LIBUBSAN_EARLY_SPEC): Likewise.
20254         (SANITIZER_SPEC): Handle libubsan.
20255         (SANITIZER_EARLY_SPEC): Likewise.
20256         * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
20257         instead of fsanitize=address.
20258         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
20259         instead of fsanitize=address*.
20260         * builtins.c: Include ubsan.h.
20261         (fold_builtin_0): Instrument __builtin_unreachable.
20262         * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
20263         instead of flag_asan.
20264         * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
20265         (pointer_sized_int_node): Define.
20266         * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
20268 2013-08-30  Mike Stump  <mikestump@comcast.net>
20270         * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
20271         with RE patterns.
20273 2013-08-29  Jan Hubicka  <jh@suse.cz>
20275         * cgraph.c (cgraph_function_body_availability): Handle weakref
20276         correctly.
20277         * passes.def: Remove pass_fixup_cfg.
20278         * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
20279         track when we need to remove functions.
20280         (gate_ipa_inline): Execute inlining always; add comment why.
20281         (pass_data_ipa_inline): Remove TODO_remove_functions.
20282         * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
20283         do not produce summaries.
20284         * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
20285         (symtab_nonoverwritable_alias): Assert we are not called on weakref.
20286         * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
20287         constant pool and vtable.
20289 2013-08-30  Tejas Belagod  <tejas.belagod@arm.com>
20291         * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
20292         New arm_neon.h's internal macros to specify 64-bit constants.
20293         Avoid using stdint.h's macros.
20295 2013-08-30  Joern Rennecke  <joern.rennecke@embecosm.com>
20297         * recog.c (verify_changes): Verify that changes[i].old is non-zero
20298         before applying REG_P.
20300 2013-08-30  Jakub Jelinek  <jakub@redhat.com>
20302         PR tree-optimization/58277
20303         * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
20304         after seeing too many stmts with vdef in between dombb and current
20305         bb, invalidate everything.
20307 2013-08-30  Richard Biener  <rguenther@suse.de>
20309         * fold-const.c (fold_single_bit_test): Fix overflow test.
20311 2013-08-30  Eric Botcazou  <ebotcazou@adacore.com>
20313         * function.c (assign_parm_setup_reg): For a parameter passed by pointer
20314         and which can live in a register, always retrieve the value on entry.
20315         * var-tracking.c (add_stores): Treat the copy on entry for a parameter
20316         passed by invisible reference specially.
20317         (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
20318         (vt_add_function_parameter): Correctly deal with a parameter passed by
20319         invisible reference.
20321 2013-08-30  Jan Hubicka  <jh@suse.cz>
20323         * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
20325 2013-08-30  Richard Biener  <rguenther@suse.de>
20327         PR tree-optimization/58228
20328         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
20329         allow invariant loads in nested loop vectorization.
20331 2013-08-30  Richard Biener  <rguenther@suse.de>
20333         PR tree-optimization/58223
20334         * tree-loop-distribution.c (has_anti_dependence): Rename to ...
20335         (has_anti_or_output_dependence): ... this and adjust to also
20336         look for output dependences.
20337         (mark_nodes_having_upstream_mem_writes): Adjust.
20338         (rdg_flag_uses): Likewise.
20340 2013-08-30  Richard Biener  <rguenther@suse.de>
20342         PR tree-optimization/58010
20343         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
20344         assert that we have a loop-closed PHI.
20346 2013-08-29  Jan Hubicka  <jh@suse.cz>
20348         * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
20349         * cgraph.c (cgraph_release_function_body): Free decl_in_state.
20350         * lto-section-in.c (lto_free_function_in_decl_state): New function.
20351         (lto_free_function_in_decl_state_for_node): New function.
20353 2013-08-29  Xinliang David Li  <davidxl@google.com>
20355         * loop-unroll.c (report_unroll_peel): Minor message change.
20356         * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
20357         Emit alignment peeling message with default -fopt-info.
20358         (vect_loop_versioning): Emit loop version info message.
20359         * tree-vectorizer.c (vectorize_loops): Minor message change.
20360         (execute_vect_slp): Ditto.
20362 2013-08-29  Eric Botcazou  <ebotcazou@adacore.com>
20364         * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
20365         of the clone from the DECL_NAME of the original function.
20367 2013-08-29  Oleg Endo  <olegendo@gcc.gnu.org>
20369         * passes.c (register_pass): Add overload.
20370         * tree-pass.h (register_pass): Forward declare it.  Add comment.
20372 2013-08-29  Jan Hubicka  <jh@suse.cz>
20374         * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
20375         DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
20376         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
20377         DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
20378         (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
20379         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
20380         Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
20381         (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
20383 2013-08-29  Teresa Johnson  <tejohnson@google.com>
20385         * dumpfile.c (dump_loc): Output column number.
20386         * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
20387         * doc/invoke.texi: Document optall -fopt-info flag.
20388         * profile.c (read_profile_edge_counts): Use new dump framework.
20389         (compute_branch_probabilities): Ditto.
20390         * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
20391         when pass not in any opt group.
20392         * pass_manager.h (pass_manager::get_pass_profile): New method.
20393         * value-prof.c (check_counter): Use new dump framework.
20394         (check_ic_target): Ditto.
20395         * coverage.c (get_coverage_counts): Ditto.
20396         (coverage_init): Setup new dump framework.
20398 2013-08-29  Richard Biener  <rguenther@suse.de>
20400         PR tree-optimization/58246
20401         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
20402         handle the dominance check inside a basic-block.
20404 2013-08-29  Richard Biener  <rguenther@suse.de>
20406         PR middle-end/57287
20407         * tree-ssa-copy.c (may_propagate_copy): Allow propagating
20408         of default defs that appear in abnormal PHI nodes.
20410 2013-08-29  Richard Biener  <rguenther@suse.de>
20412         PR tree-optimization/57685
20413         * tree-vrp.c (register_edge_assert_for_1): Recurse only for
20414         single-use operands to avoid exponential complexity.
20416 2013-08-28  Dehao Chen  <dehao@google.com>
20418         * ipa-inline.c (edge_badness): Fix integer underflow.
20420 2013-08-28  Uros Bizjak  <ubizjak@gmail.com>
20422         * gtm-builtins.def (_ITM_free): Declare leaf.
20424 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
20426         PR target/58067
20427         * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
20428         (*tls_local_dynamic_base_64_largepic): Likewise.
20429         (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
20430         Remove predicate from call operand.
20431         * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
20432         return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
20434 2013-08-28  Jeff Law  <law@redhat.com>
20436         * tree-ssa-threadedge.c (thread_around_empty_block): Remove
20437         checks for the number of predecessors and successors allowed.
20438         * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
20439         which require copying a joiner block if there is a request which
20440         is a subpath that requires no joiner block copying.
20442 2013-08-28  Jan Hubicka  <jh@suse.cz>
20444         * lto-streamer-out.c (DFS_write_tree_body): Drop
20445         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
20446         (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
20447         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
20448         * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
20449         Do not read DECL_ERROR_ISSUED.
20450         (unpack_ts_decl_with_vis_value_fields): Do not read
20451         DECL_DEFER_OUTPUT.
20452         (lto_input_ts_binfo_tree_pointers): Do not read
20453         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
20454         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
20455         write DECL_ERROR_ISSUED..
20456         (pack_ts_decl_with_vis_value_fields): Do not write
20457         DECL_DEFER_OUTPUT.
20458         (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
20459         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
20460         * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
20461         * tree.h (tree_decl_common): Update comment.
20462         (DECL_ERROR_ISSUED): Remove.
20464 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
20466         PR middle-end/58257
20467         * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
20469 2013-08-28  Jan Hubicka  <jh@suse.cz>
20471         * builtins.def (free): Declare leaf.
20473 2013-08-27  David Malcolm  <dmalcolm@redhat.com>
20475         * gdbhooks.py: New.
20476         * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
20477         * configure: Regenerate.
20479 2013-08-27  Martin Jambor  <mjambor@suse.cz>
20481         * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
20482         (ipa_ancestor_jf_data): Likewise.
20483         (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
20484         (ipa_get_jf_pass_through_type_preserved): New function.
20485         (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
20486         (ipa_get_jf_ancestor_type_preserved): New function.
20487         * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
20488         (ipa_get_jf_ancestor_result): Likewise.
20489         (propagate_vals_accross_pass_through): Use
20490         ipa_get_jf_pass_through_result to do all the value mappings.
20491         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
20492         type_preserved flag.
20493         (ipa_set_jf_cst_copy): New function.
20494         (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
20495         (ipa_set_jf_arith_pass_through): Likewise.
20496         (ipa_set_ancestor_jf): Likewise.
20497         (compute_complex_assign_jump_func): Set type_preserved instead of
20498         punting.
20499         (ipa_compute_jump_functions_for_edge): Likewise.
20500         (combine_known_type_and_ancestor_jfs): Honor type_preserved.
20501         (update_jump_functions_after_inlining): Update type_preserved.
20502         Explicitely create jump functions when combining one with pass_through.
20503         (ipa_write_jump_function): Stream the type_preserved flags.
20504         (ipa_read_jump_function): Likewise.
20506 2013-08-27  Jakub Jelinek  <jakub@redhat.com>
20507             Aldy Hernandez  <aldyh@redhat.com>
20509         * Makefile.in (omp-low.o): Depend on $(TARGET_H).
20510         * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
20511         * function.h (struct function): Add has_force_vect_loops and
20512         has_simduid_loops.
20513         * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
20514         * gimple.c (gimple_build_omp_critical): Add KIND argument and
20515         handle it.
20516         * gimple.def: Update CLAUSES comments.
20517         * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
20518         (gimple_build_omp_for): Add argument to prototype.
20519         (gimple_omp_for_kind): New.
20520         (gimple_omp_for_set_kind): New.
20521         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
20522         GOVD_DATA_SHARE_CLASS.
20523         (enum omp_region_type): Add ORT_SIMD.
20524         (gimple_add_tmp_var): Handle ORT_SIMD.
20525         (gimplify_var_or_parm_decl): Same.
20526         (is_gimple_stmt): Same.
20527         (omp_firstprivatize_variable): Same.
20528         (omp_add_variable): Only use splay_tree_insert if lookup failed.
20529         (omp_notice_variable): Handle ORT_SIMD.
20530         (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
20531         (omp_check_private): Handle ORT_SIMD.
20532         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
20533         OMP_CLAUSE_SAFELEN.
20534         (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
20535         Handle OMP_CLAUSE_LASTPRIVATE.
20536         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
20537         OMP_CLAUSE_SAFELEN.
20538         (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
20539         (gimplify_expr): Handle OMP_SIMD.
20540         * internal-fn.c (expand_GOMP_SIMD_LANE): New.
20541         (expand_GOMP_SIMD_VF): New.
20542         (expand_GOMP_SIMD_LAST_LANE): New.
20543         * internal-fn.def (GOMP_SIMD_LANE): New.
20544         (GOMP_SIMD_VF): New.
20545         (GOMP_SIMD_LAST_LANE): New.
20546         * omp-low.c: Include target.h.
20547         (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
20548         OMP_CLAUSE_SAFELEN.
20549         (check_omp_nesting_restrictions): Same.
20550         (omp_max_vf): New.
20551         (lower_rec_simd_input_clauses): New.
20552         (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
20553         OMP_CLAUSE_LINEAR.
20554         (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
20555         GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
20556         (expand_omp_build_assign): New.
20557         (expand_omp_for_init_counts): New.
20558         (expand_omp_for_init_vars): New.
20559         (extract_omp_for_update_vars): New.
20560         (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
20561         and rewrite accordingly.
20562         (expand_omp_simd): New.
20563         (expand_omp_for): Use expand_omp_simd.
20564         (lower_omp_for_lastprivate): Unshare vinit when appropriate.
20565         (lower_omp_for): Do not lower the body.
20566         * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
20567         in their own loops.
20568         * tree-flow.h (find_omp_clause): Remove prototype.
20569         * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
20570         forcing vectorization of the loop, or if flag_tree_vectorize.
20571         (gate_tree_if_conversion): Similarly.
20572         * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
20573         gimple_build_omp_for.
20574         (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
20575         * tree-parloops (create_parallel_loop): Pass kind argument to
20576         gimple_build_omp_for.
20577         * tree-pretty-print.c (dump_omp_clause): Add cases for
20578         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
20579         OMP_CLAUSE__SIMDUID_.
20580         (dump_generic_node): Handle OMP_SIMD.
20581         * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
20582         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
20583         unroll OMP_SIMD loops here.
20584         * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
20585         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
20586         loop->safelen.
20587         (vect_analyze_data_refs): Handle simd loops.
20588         * tree-vect-loop.c (vectorizable_live_operation): Handle
20589         IFN_GOMP_SIMD*.
20590         * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
20591         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
20592         (vectorizable_load): Same.
20593         * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
20594         (struct simduid_to_vf): New.
20595         (simduid_to_vf::hash): New.
20596         (simduid_to-vf::equal): New.
20597         (struct simd_array_to_simduid): New.
20598         (simd_array_to_simduid::hash): New.
20599         (simd_array_to_simduid::equal): New.
20600         (adjust_simduid_builtins): New.
20601         (struct note_simd_array_uses_struct): New.
20602         (note_simd_array_uses_cb): New.
20603         (note_simd_array_uses): New.
20604         (vectorize_loops): Handle simd hints and adjust simd builtins
20605         accordingly.
20606         * tree-vectorizer.h (struct _stmt_vec_info): Add
20607         simd_lane_access_p field.
20608         (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
20609         * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
20610         OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
20611         (omp_clause_code_name): Same.
20612         (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
20613         OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
20614         * tree.def (OMP_SIMD): New entry.
20615         * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
20616         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
20617         (OMP_CLAUSE_DECL): Adjust range for new clauses.
20618         (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
20619         (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
20620         (OMP_CLAUSE_LINEAR_STEP): New.
20621         (OMP_CLAUSE_SAFELEN_EXPR): New.
20622         (OMP_CLAUSE__SIMDUID__DECL): New.
20623         (find_omp_clause): New prototype.
20625 2013-08-27  H.J. Lu  <hongjiu.lu@intel.com>
20627         * config/i386/driver-i386.c (host_detect_local_cpu): Update
20628         Haswell processor detection.
20630 2013-08-27  Christian Widmer  <shadow@umbrox.de>
20632         PR target/57927
20633         * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
20634         of Ivy Bridge and Haswell processors.  Assume core-avx2 for unknown
20635         AVX2 capable processors.
20637 2013-08-27  Tejas Belagod  <tejas.belagod@arm.com>
20639         * config/aarch64/arm_neon.h: Replace all inline asm implementations
20640         of vget_low_* with implementations in terms of other intrinsics.
20642 2013-08-27  Marc Glisse  <marc.glisse@inria.fr>
20644         PR middle-end/57219
20645         * doc/extend.texi (__builtin_isinf_sign): Restrict the return
20646         values to -1, 0 and 1.
20648 2013-08-27  Vidya Praveen  <vidyapraveen@arm.com>
20650         * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
20651         UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
20652         (<optab><mode>3_insn): Remove.
20653         (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
20654         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
20655         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
20656         (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
20657         (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
20658         (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
20659         (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
20660         (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
20661         (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
20662         (ror<mode>3_insn): Likewise.
20663         * config/aarch64/predicates.md (aarch64_simd_register): New.
20665 2013-08-27  Richard Biener  <rguenther@suse.de>
20667         PR tree-optimization/57521
20668         * tree-if-conv.c (if_convertible_bb_p): Verify that at least
20669         one edge is non-critical.
20670         (find_phi_replacement_condition): Make sure to use a non-critical
20671         edge.  Cleanup and remove old bug workarounds.
20672         (bb_postdominates_preds): Remove.
20673         (if_convertible_loop_p_1): Do not compute post-dominators.
20674         (combine_blocks): Do not free post-dominators.
20675         (main_tree_if_conversion): Likewise.
20676         (pass_data_if_conversion): Add TODO_verify_ssa.
20678 2013-08-27  DJ Delorie  <dj@redhat.com>
20680         * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
20682 2013-08-27  Yufeng Zhang  <yufeng.zhang@arm.com>
20684         * function.c (assign_parm_find_data_types): Set passed_mode and
20685         nominal_mode to the TYPE_MODE of nominal_type for the built
20686         pointer type in case of the struct-pass-by-reference.
20688 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
20690         * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
20691         (UINT16_TYPE): Change default to "unsigned int".
20693         * config/avr/avr.opt (mfract-convert-truncate): New option.
20694         * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
20695         is set, round negative fractional integers according to n1169
20696         when converting to integer types.
20698 2013-08-26  Jan Hubicka  <jh@suse.cz>
20700         * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
20701         methods can not be called indirectly when their address is not taken.
20703 2013-08-26  Jan Hubicka  <jh@suse.cz>
20705         * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
20706         ctor_for_folding.
20708 2013-08-26  Jan Hubicka  <jh@suse.cz>
20710         * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
20711         can be unshared.
20713 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
20715         * reload.c (find_valid_class): Allow classes that do not include
20716         FIRST_PSEUDO_REGISTER - 1.
20718 2013-08-26  Jan Hubicka  <jh@suse.cz>
20720         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
20721         fix edge count/frequency when speculation failed; fix type check
20722         for the direct call.
20724 2013-08-26  Jan Hubicka  <jh@suse.cz>
20726         * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
20728 2013-08-26  Jan Hubicka  <jh@suse.cz>
20730         * ipa-inline-transform.c (inline_transform): Be ready for basic block
20731         to be changed by edge redirection.
20733 2013-08-26  Jan Hubicka  <jh@suse.cz>
20735         * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
20736         formating; add sanity check.
20737         (cgraph_resolve_speculation): Add FIXME about scaling profiles.
20738         (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
20739         * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
20740         (resolve_noninline_speculation): Update callee keys, too.
20742 2013-08-26  Jan Hubicka  <jh@suse.cz>
20744         * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
20745         (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
20747 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
20749         * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
20750         into proper place.
20752 2013-08-26  Uros Bizjak  <ubizjak@gmail.com>
20754         * config/i386/i386.c (ix86_debug_options): Remove prototype.
20755         (x86_64_elf_select_section): Ditto.
20756         (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
20757         arguments.
20758         (ix86_pass_by_reference): Ditto.
20759         (output_set_got): Ditto.
20760         (ix86_unary_operator_ok): Ditto.
20761         (ix86_expand_builtin): Ditto.
20763 2013-08-23  Jan Hubicka  <jh@suse.cz>
20765         * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
20767 2013-08-23  Jan Hubicka  <jh@suse.cz>
20769         * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
20770         (tree_decl_with_vis): Add FINAL field.
20772 2013-08-23  Jeff Law  <law@redhat.com>
20774         * tree-ssa-pre.c (do_regular_insertion): Include the expression in
20775         the debugging dump when the expression is fully redundant.
20777 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20779         * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
20780         * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
20781         * pretty-print.c (pp_formatted_text_data): Likewise.
20782         (pp_write_text_to_stream): Likewise.
20783         (pp_write_text_as_dot_label_to_stream): Likewise.
20784         (pp_append_r): Likewise.
20785         (pp_format): Likewise.
20786         (pp_flush): Likewise.
20787         (pp_clear_output_area): Likewise.
20788         (pp_append_text): Likewise.
20789         (pp_formatted_text): Likewise.
20790         (pp_remaining_character_count_for_line): Likewise.
20791         (pp_newline): Likewise.
20792         (pp_character): Likewise.
20793         (output_buffer::~output_buffer): Define.
20794         (pretty_printer::~pretty_printer): Destruct output buffer.
20795         * pretty-print.h (output_buffer::~output_buffer): Declare.
20796         (pretty_printer::~pretty_printer): Declare virtual.
20798 2013-08-24  Marc Glisse  <marc.glisse@inria.fr>
20800         PR other/57324
20801         * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
20802         HOST_WIDE_INT_M1U): New macros.
20803         * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
20804         fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
20805         unsigned -1 for lshift.
20806         * cse.c (cse_insn): Likewise.
20807         * double-int.c (rshift_double, lshift_double): Likewise.
20808         * builtins.c (fold_builtin_bitop): Likewise.
20809         * combine.c (force_to_mode): Likewise.
20810         * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
20811         * simplify-rtx.c (simplify_const_unary_operation,
20812         simplify_const_binary_operation): Likewise.
20813         * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
20814         check_va_list_escapes): Likewise.
20815         * rtlanal.c (nonzero_bits1): Likewise.
20816         * expmed.c (expand_smod_pow2): Likewise.
20817         * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
20819 2013-08-23  Jan Hubicka  <jh@suse.cz>
20821         * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
20822         as having address taken.
20824 2013-08-23  Jan Hubicka  <jh@suse.cz>
20826         * ipa-utils.h (method_class_type): Declare.
20827         * ipa-devirt.c (method_class_type): Export.
20829         * cgraphunit.c (analyze_functions): Do basic devirtualization;
20830         do not walk base classes of anonymous types.
20832 2013-08-23  Kaz Kojima  <kkojima@gcc.gnu.org>
20834         PR rtl-optimization/58220
20835         PR regression/58221
20836         * final.c (reemit_insn_block_notes): Use NEXT_INSN to
20837         handle SEQUENCE insns properly.
20839 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20841         * pretty-print.h (pp_newline_and_flush): Declare.  Remove macro
20842         definition.
20843         (pp_newline_and_indent): Likewise.
20844         (pp_separate_with): Likewise.
20845         * pretty-print.c (pp_newline_and_flush): Define.
20846         (pp_newline_and_indent): Likewise.
20847         (pp_separate_with): Likewise.
20849 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
20851         PR target/58218
20852         * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
20853         * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
20855 2013-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
20857         * config/i386/predicates.md (ext_sse_reg_operand): New.
20858         * config/i386/i386.md (*movti_internal): Use
20859         predicate to determine if EVEX is needed.
20860         (*movsi_internal): Ditto.
20861         (*movdf_internal): Ditto.
20862         (*movsf_internal): Ditto.
20863         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
20865 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
20867         PR tree-optimization/58209
20868         * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
20869         (find_tail_calls): Give up for pointer result types if m is non-NULL.
20870         (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
20871         emit POINTER_PLUS_EXPR.
20872         (create_tailcall_accumulator): For pointer result type accumulate in
20873         sizetype type.
20875 2013-08-22  Paolo Carlini  <paolo.carlini@oracle.com>
20877         * configure.ac: Add backslashes missing from the last change.
20878         * configure: Regenerate.
20880 2013-08-22  Jan Hubicka  <jh@susue.cz>
20882         * ipa.c (function_and_variable_visibility): First remember function
20883         was global and then make it local.
20885 2013-08-22  Julian Brown  <julian@codesourcery.com>
20887         * configure.ac: Add aarch64 to list of arches which use "nop" in
20888         debug_line test.
20889         * configure: Regenerate.
20891 2013-08-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20893         * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
20894         gnu_libc_has_function.
20895         * config/s390/tpf.h: Likewise.
20897 2013-08-22  Jan Hubicka  <jh@susue.cz>
20899         * timevar.c (validate_phases): Add cast.
20901 2013-08-22  Jan Hubicka  <jh@susue.cz>
20903         * timevar.c (validate_phases): Use size_t for memory.
20904         * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
20906 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20908         * pretty-print.h (output_buffer::output_buffer): Declare.
20909         (pretty_printer::pretty_printer): Likewise.
20910         (pp_construct): Remove.
20911         * pretty-print.c (output_buffer::output_buffer): Define.
20912         (pretty_printer::pretty_printer): Rename from pp_construct.  Simplify.
20913         * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
20914         (print_gimple_expr): Likewise.
20915         (print_gimple_seq): Likewise.
20916         (gimple_dump_bb): Likewise.
20917         * sched-vis.c (dump_value_slim): Likewise.
20918         (dump_insn_slim): Likewise.
20919         (dump_rtl_slim): Likewise.
20920         (str_pattern_slim): Likewise.
20921         * tree-mudflap.c (mf_varname_tree): Likewise.
20922         * graph.c (print_graph_cfg): Likewise.
20923         (start_graph_dump): Likewise.
20924         * tree-pretty-print.c (maybe_init_pretty_print): Likewise.  Use
20925         placement-new.
20926         * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
20927         pretty printer initialization.
20928         * coretypes.h (diagnostic_context): Remove superflous type alias
20929         declaration.
20930         (pretty_printer): Likewise.  Declare directly as a class.
20931         (pretty_print_info): Remove declaration as class.
20932         * asan.c (asan_emit_stack_protection): Remove call to pp_construct
20933         and pp_clear_output_area.
20934         (asan_add_global): Likewise.
20936 2013-08-22  Jan Hubicka  <jh@suse.cz>
20938         * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
20939         * ipa-utils.h (update_type_inheritance_graph): Declare.
20940         (possible_polymorphic_call_target_p): Declare.
20941         (possible_polymorphic_call_target_p): New.
20942         * ipa-devirt.c: Update toplevel comments.
20943         (cached_polymorphic_call_targets): Move up.
20944         (odr_type_d): Move ID down.
20945         (polymorphic_type_binfo_p): Update comment.
20946         (odr_hasher::remove): Likewise;
20947         (get_odr_type): Set anonymous_namespace.
20948         (dump_odr_type): Dump it.
20949         (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
20950         (maybe_record_node): Record node in cached_polymorphic_call_targets.
20951         (record_binfo): Add comment.
20952         (free_polymorphic_call_targets_hash): Do not ICE when cache is not
20953         built.
20954         (devirt_node_removal_hook): Do not iCE when cache is freed.
20955         (possible_polymorphic_call_target_p): New predicate.
20956         (update_type_inheritance_graph): New function.
20958 2013-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
20959             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
20960             Sergey Lega  <sergey.s.lega@intel.com>
20961             Anna Tikhonova  <anna.tikhonova@intel.com>
20962             Ilya Tocar  <ilya.tocar@intel.com>
20963             Andrey Turetskiy  <andrey.turetskiy@intel.com>
20964             Ilya Verbin  <ilya.verbin@intel.com>
20965             Kirill Yukhin  <kirill.yukhin@intel.com>
20966             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
20968         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
20969         (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
20970         (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
20971         (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
20972         (OPTION_MASK_ISA_AVX2_UNSET): Update.
20973         (OPTION_MASK_ISA_AVX512F_UNSET): New.
20974         (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
20975         (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
20976         (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
20977         (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
20978         OPT_mavx512pf, OPT_mavx512er cases.
20979         * config/i386/constraints.md (v): New constraint.
20980         (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
20981         * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
20982         (bit_AVX512CD): New.
20983         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
20984         AVX512F, AVX512ER, AVX512PF, AVX512CD features.
20985         * config/i386/i386-c.c (ix86_target_macros_internal):
20986         Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
20987         __AVX512PF__.
20988         * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
20989         (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
20990         * config/i386/i386.c (regclass_map, dbx_register_map)
20991         (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
20992         (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
20993         (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
20994         -mavx512pf options.
20995         (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
20996         PTA_AVX512PF, PTA_AVX512CD.  Handle -mavx512f, -mavx512er, -mavx512cd,
20997         -mavx512pf options.  Fix formatting.
20998         (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
20999         targets.  Squash EVEX_SSE_REGS if AVX512F is disabled.
21000         (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
21001         -mavx512cd, -mavx512pf options.
21002         (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
21003         (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
21004         (ix86_preferred_output_reload_class): Replace SSE_REGS with
21005         ALL_SSE_REGS.
21006         (ix86_hard_regno_mode_ok): Support 512-bit registers.
21007         (ix86_set_reg_reg_cost): Ditto.
21008         (x86_order_regs_for_local_alloc): Ditto.
21009         (MAX_VECT_LEN): Extend to 64-byte.
21010         (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
21011         * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
21012         (TARGET_AVX512ER, TARGET_AVX512CD): New.
21013         (BIGGEST_ALIGNMENT): Extend to 512-bits.
21014         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
21015         (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
21016         (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
21017         (SSE_REG_MODE_P): Support new modes.
21018         (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
21019         (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
21020         (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
21021         (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
21022         (REG_CLASS_CONTENTS): Add new registers.
21023         (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
21024         (EXT_REX_SSE_REGNO_P): New.
21025         (HI_REGISTER_NAMES): Add new registers.
21026         * config/i386/i386.md: Define constants for new registers.
21027         (mode): Add new 512-bit modes.
21028         (prefix): Support evex prefix.
21029         (isa): Support avx512f, noavx512f, fma_avx512f.
21030         (ssemodesuffix): Add new 512-bit modes.
21031         (movxi): New.
21032         (*movxi_internal_avx512f): Ditto.
21033         (*movdi_internal): Replace constraint "x" with the new constraint "v".
21034         Support MODE_XI.
21035         (*movsi_internal): Likewise.
21036         (*movdf_internal): Likewise.
21037         (*movsf_internal): Likewise.
21038         (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
21039         (<code><mode>3): Likewise.
21040         * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
21041         New.
21042         * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
21043         with the new constraint "v".
21044         * config/i386/sse.md (*mov<mode>_internal): Support new registers and
21045         modes.
21046         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
21047         with the new constraint "v".
21048         (<sse2>_loaddqu<avxsizesuffix>): Likewise.
21049         (<sse2>_storedqu<avxsizesuffix>): Likewise.
21050         (*<plusminus_insn><mode>3): Likewise.
21051         (<sse>_vm<plusminus_insn><mode>3): Likewise.
21052         (*mul<mode>3): Likewise.
21053         (<sse>_vmmul<mode>3): Likewise.
21054         (<sse>_div<mode>3): Likewise.
21055         (<sse>_vmdiv<mode>3): Likewise.
21056         (<sse>_sqrt<mode>2): Likewise.
21057         (<sse>_vmsqrt<mode>2): Likewise.
21058         (*<code><mode>3_finite): Likewise.
21059         (*<code><mode>3) <smaxmin>: Likewise.
21060         (<sse>_vm<code><mode>3): Likewise.
21061         (*<code><mode>3) <any_logic>: Likewise.
21062         (*fma_fmadd_<mode>): Likewise.
21063         (*fma_fmsub_<mode>): Likewise.
21064         (*fma_fnmadd_<mode>): Likewise.
21065         (*fma_fnmsub_<mode>): Likewise.
21066         (*fma_fmaddsub_<mode>): Likewise.
21067         (*fma_fmsubadd_<mode>): Likewise.
21068         (*fmai_fmadd_<mode>): Likewise.
21069         (*fmai_fmsub_<mode>): Likewise.
21070         (*fmai_fnmadd_<mode>): Likewise.
21071         (*fmai_fnmsub_<mode>): Likewise.
21072         (sse_cvtsi2ss): Likewise.
21073         (sse_cvtsi2ssq): Likewise.
21074         (sse_cvtss2si): Likewise.
21075         (sse_cvtss2si_2): Likewise.
21076         (sse_cvtss2siq): Likewise.
21077         (sse_cvtss2siq_2): Likewise.
21078         (sse_cvttss2si): Likewise.
21079         (sse_cvtss2siq_2): Likewise.
21080         (float<sseintvecmodelower><mode>2): Likewise.
21081         (sse2_cvtsd2si_2): Likewise.
21082         (sse2_cvtsd2siq_2): Likewise.
21083         (*<plusminus_insn><mode>3): Likewise.
21084         (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
21085         (*<sse4_1_avx2>_mul<mode>3): Likewise.
21086         (ashr<mode>3): Likewise.
21087         (<shift_insn><mode>3): Likewise.
21088         (avx2_<code><mode>3): Likewise.
21089         (*avx2_<code><mode>3): Likewise.
21090         (*andnot<mode>3): Likewise.
21091         (*<code><mode>3) <any_logic>: Likewise.
21092         (abs<mode>2): Likewise.
21093         (avx2_permvar<mode>): Likewise.
21094         (avx2_perm<mode>_1): Likewise.
21095         (*avx_vpermilp<mode>): Likewise.
21096         (avx_vpermilvar<mode>3): Likewise.
21097         (avx2_ashrv<mode>): Likewise.
21098         (avx2_<shift_insn>v<mode>): Likewise.
21099         * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
21100         -mavx512cd.
21101         * doc/rtl.texi: Document XImode.
21103 2013-08-21  Jeff Law  <law@redhat.com>
21105         * tree-flow.h (register_jump_thread): Pass vector of edges
21106         instead of each important edge.
21107         * tree-ssa-threadedge.c (thread_across_edge): Build the jump
21108         thread path into a vector and pass that to register_jump_thread.
21109         * tree-ssa-threadupdate.c (register_jump_thread): Conver the
21110         passed in edge vector to the current 3-edge form.
21112         Revert:
21113         2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
21115         * dce.c (fini_dce): Call df_analyze again just in case
21116         delete_unmarked_insns removed anything.
21118 2013-08-21  Joern Rennecke  <joern.rennecke@embecosm.com>
21120         * reload.h (struct reg_equivs): Rename to ..
21121         (struct reg_equivs_s): .. this.
21123 2013-08-20  Martin Liska  <marxin.liska@gmail.com>
21125         * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
21127 2013-08-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21129         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
21131 2013-08-21  Jeff Law  <law@redhat.com>
21133         * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
21134         simplify assignments too.  If the RHS collapses to a singleton
21135         range, then return the value for the range.
21137 2013-08-21  Kirill Yukhin  <kirill.yukhin@intel.com>
21139         * config/i386/sse.md (V16): Rename to...
21140         (VMOVE): this.
21141         (mov<mode>): Update iterator name.
21142         (*mov<mode>_internal): Ditto.
21143         (push<mode>1): Ditto.
21144         (movmisalign<mode>): Ditto.
21146 2013-08-20  Jan Hubicka  <jh@suse.cz>
21148         PR bootstrap/58186
21149         * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
21150         entry for direct edges.
21151         (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
21153 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
21155         Revert my last two changes, r201865 and r201864:
21157         Revert r201865:
21158         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
21160         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
21161         instances can own GC refs.
21163         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
21164         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
21165         (gcc::context::gt_pch_nx): Likewise.
21166         (gcc::context::gt_pch_nx):  Likewise.
21167         * ggc.h (gt_ggc_mx <T>): New.
21168         (gt_pch_nx_with_op <T>): New.
21169         (gt_pch_nx <T>): New.
21170         * passes.c (opt_pass::gt_ggc_mx): New.
21171         (opt_pass::gt_pch_nx): New.
21172         (opt_pass::gt_pch_nx_with_op): New.
21173         (pass_manager::gt_ggc_mx): New.
21174         (pass_manager::gt_pch_nx): New.
21175         (pass_manager::gt_pch_nx_with_op): New.
21176         (pass_manager::operator new): Use
21177         ggc_internal_cleared_alloc_stat rather than xcalloc.
21178         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
21179         (pass_manager::gt_ggc_mx): New.
21180         (pass_manager::gt_pch_nx): New.
21181         (pass_manager::gt_pch_nx_with_op): New.
21182         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
21183         (opt_pass::operator new): New.
21184         (opt_pass::gt_ggc_mx): New.
21185         (opt_pass::gt_pch_nx): New.
21186         (opt_pass::gt_pch_nx_with_op): New.
21188         Revert r201864:
21189         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
21191         * Makefile.in (GTFILES): Add context.h.
21192         * context.c (gcc::context::operator new): New.
21193         (gcc::context::gt_ggc_mx): New.
21194         (gcc::context::gt_pch_nx): New.
21195         (gcc::context::gt_pch_nx): New.
21196         * context.h (gcc::context): Add GTY((user)) marking.
21197         (gcc::context::operator new): New.
21198         (gcc::context::gt_ggc_mx): New.
21199         (gcc::context::gt_pch_nx): New.
21200         (gcc::context::gt_pch_nx): New.
21201         (g): Add GTY marking.
21202         (gt_ggc_mx (gcc::context *)): New.
21203         (gt_pch_nx (gcc::context *)): New.
21204         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
21205         void *cookie)): New.
21206         * gengtype.c (open_base_files) <ifiles>: Add context.h.
21208 2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
21210         * dce.c (fini_dce): Call df_analyze again just in case
21211         delete_unmarked_insns removed anything.
21213 2013-08-20  Teresa Johnson  <tejohnson@google.com>
21215         PR rtl-optimizations/57451
21216         * final.c (reemit_insn_block_notes): Prevent lexical blocks
21217         from crossing split section boundaries.
21219 2013-08-20  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
21221         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
21222         * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
21223         with MULTLIB_DEFAULTS.
21225 2013-08-20  Nick Clifton  <nickc@redhat.com>
21227         * target.def (narrow_volatile_bitfield): Note that the default
21228         value is false, not !TARGET_STRICT_ALIGN.
21229         * doc/tm.texi: Regenerate.
21231 2013-08-20  Pavel Chupin  <pavel.v.chupin@intel.com>
21233         Fix LIB_SPEC for systems without libpthread.
21235         * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
21236         * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
21237         for Android.
21238         * config/i386/linux-common.h: Likewise.
21239         * config/mips/linux-common.h: Likewise.
21241 2013-08-20  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
21243         * tree-ssa-ccp.c (get_default_value): Remove redundant condition
21244         checks.
21246 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
21248         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
21249         instances can own GC refs.
21251         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
21252         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
21253         (gcc::context::gt_pch_nx): Likewise.
21254         (gcc::context::gt_pch_nx):  Likewise.
21255         * ggc.h (gt_ggc_mx <T>): New.
21256         (gt_pch_nx_with_op <T>): New.
21257         (gt_pch_nx <T>): New.
21258         * passes.c (opt_pass::gt_ggc_mx): New.
21259         (opt_pass::gt_pch_nx): New.
21260         (opt_pass::gt_pch_nx_with_op): New.
21261         (pass_manager::gt_ggc_mx): New.
21262         (pass_manager::gt_pch_nx): New.
21263         (pass_manager::gt_pch_nx_with_op): New.
21264         (pass_manager::operator new): Use
21265         ggc_internal_cleared_alloc_stat rather than xcalloc.
21266         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
21267         (pass_manager::gt_ggc_mx): New.
21268         (pass_manager::gt_pch_nx): New.
21269         (pass_manager::gt_pch_nx_with_op): New.
21270         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
21271         (opt_pass::operator new): New.
21272         (opt_pass::gt_ggc_mx): New.
21273         (opt_pass::gt_pch_nx): New.
21274         (opt_pass::gt_pch_nx_with_op): New.
21276 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
21278         * Makefile.in (GTFILES): Add context.h.
21279         * context.c (gcc::context::operator new): New.
21280         (gcc::context::gt_ggc_mx): New.
21281         (gcc::context::gt_pch_nx): New.
21282         (gcc::context::gt_pch_nx): New.
21283         * context.h (gcc::context): Add GTY((user)) marking.
21284         (gcc::context::operator new): New.
21285         (gcc::context::gt_ggc_mx): New.
21286         (gcc::context::gt_pch_nx): New.
21287         (gcc::context::gt_pch_nx): New.
21288         (g): Add GTY marking.
21289         (gt_ggc_mx (gcc::context *)): New.
21290         (gt_pch_nx (gcc::context *)): New.
21291         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
21292         void *cookie)): New.
21293         * gengtype.c (open_base_files) <ifiles>: Add context.h.
21295 2013-08-20  Alan Modra  <amodra@gmail.com>
21297         PR target/57865
21298         * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
21299         (rs6000_emit_epilogue): Likewise.
21301 2013-08-19  Dehao Chen  <dehao@google.com>
21303         * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
21305 2013-08-19  Peter Bergner  <bergner@vnet.ibm.com>
21306             Jakub Jelinek  <jakub@redhat.com>
21308         * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
21309         (BUILT_IN_FABSD64): Likewise.
21310         (BUILT_IN_FABSD128): Likewise.
21311         * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
21312         (fold_builtin_1): Likewise.
21313         * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
21314         destination and source operands.
21315         (*abstd2_fpr): Likewise.
21316         (*nabstd2_fpr): Likewise.
21318 2013-08-19  Richard Sandiford  <rdsandiford@googlemail.com>
21320         * config/mips/mips.c (mips_adjust_insn_length): Add checks for
21321         JUMP_P and INSN_P.
21323 2013-08-19  Aldy Hernandez  <aldyh@redhat.com>
21325         * doc/invoke.texi (-fcilkplus): Clarify that implementation is
21326         incomplete.
21328 2013-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
21330         * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
21331         * builtins.c (default_libc_has_function): New.
21332         (gnu_libc_has_function): Ditto.
21333         (no_c99_libc_has_function): Ditto.
21334         (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
21335         instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
21336         (fold_builtin_sincos): Likewise.
21337         (fold_builtin_cexp): Likewise.
21338         * builtins.def (DEF_C94_BUILTIN): Likewise.
21339         (DEF_C99_BUILTIN): Likewise.
21340         (DEF_C99_C90RES_BUILTIN): Likewise.
21341         (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
21342         definitions to using this define.
21343         * config/darwin-protos.h (darwin_libc_has_function): New.
21344         * config/darwin.c (darwin_libc_has_function): Ditto.
21345         * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
21346         TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
21347         * config/darwin.h: Ditto.
21348         * config/elfos.h: Ditto.
21349         * config/freebsd.h: Ditto.
21350         * config/i386/cygming.h: Ditto.
21351         * config/i386/djgpp.h: Ditto.
21352         * config/i386/i386-interix.h: Ditto.
21353         * config/microblaze/microblaze.h: Ditto.
21354         * config/mmix/mmix.h: Ditto.
21355         * config/gnu-user.h: Ditto.
21356         * config/ia64/hpux.h: Ditto.
21357         * config/pa/pa-hpux.h: Ditto.
21358         * config/pdp11/pdp11.h: Ditto.
21359         * config/picochip/picochip.h: Ditto.
21360         * config/linux.h: Ditto.
21361         * config/netbsd.h: Ditto.
21362         * config/openbsd.h: Ditto.
21363         * config/rs6000/aix43.h: Ditto.
21364         * config/rs6000/aix51.h: Ditto.
21365         * config/rs6000/aix52.h: Ditto.
21366         * config/rs6000/aix53.h: Ditto.
21367         * config/rs6000/aix61.h: Ditto.
21368         * config/rs6000/darwin.h: Ditto.
21369         * config/rs6000/linux.h: Ditto.
21370         * config/rs6000/linux64.h: Ditto.
21371         * config/s390/tpf.h: Ditto.
21372         * config/sol2-10.h: Ditto.
21373         * config/sol2.h: Ditto.
21374         * config/vms/vms.h: Ditto.
21375         * config/vxworks.h: Ditto.
21376         * config/linux-android.c (linux_android_libc_has_function):
21377         New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
21378         * config/linux-protos.h (linux_android_libc_has_function):
21379         New declaration.
21380         * config/i386/i386.c (ix86_libc_has_function): New.
21381         * config/i386/i386-protos.h
21382         (ix86_libc_has_function): New declaration.
21383         * config/i386/i386.md
21384         ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
21385         ("isinf<mode>2): Likewise.
21386         * convert.c (convert_to_integer): Using new target hook
21387         TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
21388         TARGET_C99_FUNCTIONS.
21389         * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
21390         * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
21391         * coretypes.h (function_class): New enum for different
21392         classes of functions.
21393         * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
21394         * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
21395         (TARGET_HAS_SINCOS): Likewise.
21396         (TARGET_LIBC_HAS_FUNCTION): New.
21397         * doc/tm.texi: Regenerated.
21398         * targhooks.h (default_libc_has_function): New declaration.
21399         (no_c99_libc_has_function): Ditto.
21400         (gnu_libc_has_function): Ditto.
21401         * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
21402         and TARGET_HAS_SINCOS.
21404 2013-08-18  Jan Hubicka  <jh@suse.cz>
21406         * Makeifle-in (ipa-devirt.o): New.
21407         (GTFILES): Add ipa-utils.h and ipa-devirt.c
21408         * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
21409         (analyze_functions): Look into possible targets of polymorphic call.
21410         * dumpfile.c (dump_files): Add type-inheritance dump.
21411         * dumpfile.h (TDI_inheritance): New.
21412         * ipa-devirt.c: New file.
21413         * ipa-utils.h (odr_type_d): Forward declare.
21414         (odr_type): New type.
21415         (build_type_inheritance_graph): Declare.
21416         (possible_polymorphic_call_targets): Declare and introduce inline
21417         variant when only edge is pased.
21418         (dump_possible_polymorphic_call_targets): Likewise.
21419         * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
21420         * tree.c (type_in_anonymous_namespace_p): Break out from ...
21421         (types_same_for_odr): ... here.
21422         * tree.h (type_in_anonymous_namespace_p): Declare.
21424 2013-08-18  Jakub Jelinek  <jakub@redhat.com>
21426         PR tree-optimization/58006
21427         * tree-parloops.c (take_address_of): Don't ICE if get_name
21428         returns NULL.
21429         (eliminate_local_variables_stmt): Remove clobber stmts.
21431 2013-08-18  Eric Botcazou  <ebotcazou@adacore.com>
21433         * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
21434         error message is issued for an alias to undefined symbol.
21436 2013-08-18  Jan Hubicka  <jh@suse.cz>
21438         * cgraph.c (cgraph_create_indirect_edge): Discover
21439         polymorphic calls and record basic info into indirect_info.
21440         * gimple-fold.c (gimple_fold_call): When doing BINFO based
21441         devirtualization, ignore objc function calls.
21442         * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
21443         call with no parm index info.
21444         * ipa-prop.c (ipa_analyze_call_uses): Likewise.
21445         * tree.c (virtual_method_call_p): New function.
21446         * tree.h (virtual_method_call_p): Declare.
21448 2013-08-16  Jan Hubicka  <jh@suse.cz>
21450         PR middle-end/58179
21451         * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
21453 2013-08-16  David Edelsohn  <dje.gcc@gmail.com>
21455         * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
21456         attribute.
21458 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
21460         * gengtype.c (type_for_name): Add special-case support for
21461         locating types within the "gcc::" namespace.
21462         (open_base_files): Emit a "using namespace gcc" directive.
21464 2013-08-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
21466         PR target/58160
21467         * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
21468         memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
21470         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
21471         array instead of each individual operand as a separate argument.
21472         (emit_fusion_gpr_load): Likewise.
21473         (expand_fusion_gpr_load): Add new function declaration.
21475         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
21476         signature to have the operands passed as an array, instead of as
21477         separate arguments.  Allow ZERO_EXTEND to be in the memory
21478         address, and also SIGN_EXTEND if -mpower8-fusion-sign.  Do not
21479         depend on the register live/dead flags when peepholes are run.
21480         (expand_fusion_gpr_load): New function to be called from the
21481         peephole2 pass, to change the register that addis sets to be the
21482         target register.
21483         (emit_fusion_gpr_load): Change the calling signature to have the
21484         operands passed as an array, instead of as separate arguments.
21485         Allow ZERO_EXTEND to be in the memory address, and also
21486         SIGN_EXTEND if -mpower8-fusion-sign.
21488         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
21489         unspec enumeration.
21490         (power8 fusion peephole/peephole2): Rework the fusion peepholes to
21491         adjust the register addis loads up in the peephole2 pass.  Do not
21492         depend on the register live/dead state when the peephole pass is done.
21494 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
21496         * gengtype.c (create_user_defined_type): Ensure that the kind
21497         is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
21498         declaration is seen before the GTY((user)) marking.
21500 2013-08-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21502         PR target/58105
21503         * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
21505 2013-08-16  Jan Hubicka  <jh@suse.cz>
21507         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
21508         arugment expected_type.
21509         (gimple_fold_call): Use it.
21510         * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
21511         * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
21512         * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
21513         (try_make_edge_direct_virtual_call): Likewise.
21514         * tree.c (obj_type_ref_class): New.
21515         * tree.h (obj_type_ref_class): Use it.
21517 2013-08-16  Gabriel Dos Reis  <gdr@integrable-solutions.net>
21519         * sched-vis.c (rtl_slim_pp_initialized): Remove.
21520         (rtl_slim_pp): Likewise.
21521         (init_rtl_slim_pretty_print): Likewise.
21522         (dump_value_slim):  Don't call it.  Use local pretty printer.
21523         (dump_insn_slim): Likewise.
21524         (dump_rtl_slim): Likewise.
21525         (str_pattern_slim): Likewise.
21526         * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
21527         Simplify.
21529 2013-08-16  Jakub Jelinek  <jakub@redhat.com>
21531         PR tree-optimization/58164
21532         * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
21533         walk gimple_goto_dest of GIMPLE_GOTO.
21535         PR tree-optimization/58165
21536         * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
21537         bi_call must be the last stmt in a bb, don't split_block, instead
21538         use fallthru edge from it and give up if there is none.
21539         Release conds vector when returning early.
21541 2013-08-14  Xinliang David Li  <davidxl@google.com>
21543         * config/i386/i386.c (ix86_option_override_internal):
21544         Remove unused variable and field.
21546 2013-08-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21548         PR target/57949
21549         * doc/invoke.texi: Add documentation of mcompat-align-parm option.
21550         * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
21551         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
21552         and Linux, correct BLKmode alignment when 128-bit alignment is
21553         required and compatibility flag is not set.
21554         (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
21555         for zero-size arguments when compatibility flag is not set.
21557 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
21559         PR tree-optimization/58145
21560         * tree-sra.c (build_ref_for_offset): If prev_base has
21561         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
21563 2013-08-14  Xinliang David Li  <davidxl@google.com>
21565         * config/i386/i386.c (ix86_option_override_internal):
21566         Fix uninitialized variable error.
21568 2013-08-14  Xinliang David Li  <davidxl@google.com>
21570         * config/i386/i386.opt: Define two new options.
21571         * config/i386/x86-tune.def: Add arch selector field in macros.
21572         * config/i386/i386.h: Adjust macro definition.
21573         * config/i386/i386.c (ix86_option_override_internal):
21574         Refactor the code.
21575         (parse_mtune_ctrl_str): New function.
21576         (set_ix86_tune_features): New function.
21577         (ix86_function_specific_restore): Call the new helper function.
21579 2013-08-14  Andrey Belevantsev  <abel@ispras.ru>
21581         PR rtl-optimization/57662
21582         * sel-sched.c (code_motion_process_successors): When the current insn
21583         is removed after the recursive traversal, break from the loop.
21584         Add comments and debug printouts.
21586 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
21587             Alexandre Oliva  <aoliva@redhat.com>
21589         PR target/58067
21590         * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
21591         and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
21592         there also UNSPEC_PLTOFF.
21594 2013-08-14  Marek Polacek  <polacek@redhat.com>
21596         * ipa-inline-analysis.c (add_clause): Avoid shifting integer
21597         NUM_CONDITIONS bit positions.
21599 2013-08-13  Cary Coutant  <ccoutant@google.com>
21601         * dwarf2out.c (CHECKSUM_BLOCK): New macro.
21602         (attr_checksum): Hash vector contents instead of pointer.
21603         (attr_checksum_ordered): Likewise.
21605 2013-08-13  Uros Bizjak  <ubizjak@gmail.com>
21607         * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
21608         when Pmode != word_mode.  Add length_address attribute.
21609         (sse3_monitor_<mode>): Merge from sse3_monitor and
21610         sse3_monitor64_<mode> insn patterns.  Emit addr32 prefix when
21611         Pmode != word_mode.  Update insn length attribute.
21612         * config/i386/i386.c (ix86_option_override_internal): Update
21613         ix86_gen_monitor selection for merged sse3_monitor insn.
21615 2013-08-13  Julian Brown  <julian@codesourcery.com>
21617         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
21618         perform invalid legitimization on greater-than-word-size modes for
21619         TARGET_E500_DOUBLE.
21621 2013-08-13  Vladimir Makarov  <vmakarov@redhat.com>
21623         * ira.c (setup_class_translate_array): Use aclass instead of cl
21624         for classes not fully covered by allocno classes.
21626 2013-08-13  Jakub Jelinek  <jakub@redhat.com>
21628         PR tree-optimization/57661
21629         * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
21630         * tree-inline.c (tree_function_versioning): Initialize it.
21631         (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
21632         if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
21633         that is not being copied.
21635         PR sanitizer/56417
21636         * asan.c (instrument_strlen_call): Fix typo in comment.
21637         Use char * type even for the lhs of POINTER_PLUS_EXPR.
21639 2013-08-13  Steve Ellcey  <sellcey@mips.com>
21641         * config/mips/mips.md (prefetch): Use lw instead of ld on
21642         loongson in 32bit mode.
21644 2013-08-13  Nick Clifton  <nickc@redhat.com>
21646         * config.gcc: (avr-linux): Allow for tmake_file not being empty.
21648 2013-08-13  Jan Hubicka  <jh@suse.cz>
21650         * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
21651         introduced edge; fix typo in sanity check.
21652         (cgraph_resolve_speculation): Export; improve diagnostic.
21653         (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
21654         speculation at type mismatch.
21655         * cgraph.h (cgraph_turn_edge_to_speculative): Update.
21656         (cgraph_resolve_speculation): Declare.
21657         (symtab_can_be_discarded): New function.
21658         * value-prof.c (gimple_ic_transform): Remove actual transform code.
21659         * ipa-inline-transform.c (speculation_removed): New global var.
21660         (clone_inlined_nodes): See if speculation can be removed.
21661         (inline_call): If speculations was removed, we growths may not match.
21662         * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
21663         (speculation_useful_p): New function.
21664         (resolve_noninline_speculation): New function.
21665         (inline_small_functions): Resolve useless speculations.
21666         * ipa-inline.h (speculation_useful_p): Declare
21667         * ipa.c (can_replace_by_local_alias): Simplify.
21668         (ipa_profile): Produce speculative calls in non-lto, too;
21669         add simple cost model; produce local aliases.
21671 2013-08-13  David Malcolm  <dmalcolm@redhat.com>
21673         * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
21674         PASS_MANAGER_H.
21676 2013-08-12  Paolo Carlini  <paolo.carlini@oracle.com>
21678         * config/i386/i386.c (ix86_function_versions): Use error + inform.
21680 2013-08-12  Uros Bizjak  <ubizjak@gmail.com>
21682         * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
21683         iterator instead of X87MODEF.
21685 2013-08-12  Perez Read  <netfirewall@gmail.com>
21687         PR target/58132
21688         * config/i386/i386.md (*movabs<mode>_1):  Add <ptrsize> PTR before
21689         operand 0 for intel asm alternative.
21690         (*movabs<mode>_2): Ditto for operand 1.
21692 2013-08-12  James Greenhalgh  <james.greenhalgh@arm.com>
21694         * config/aarch64/arm_none.h
21695         (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
21697 2013-08-12  Nick Clifton  <nickc@redhat.com>
21699         * config.gcc (m32r-linux): Allow for tmake_file not being empty.
21701 2013-08-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
21703         * config/i386/i386.md (floatunssi<mode>2 expand): Add new
21704         expand for QI/HImode operand to produce more effictive code for
21705         unsigned char(short) --> float(double) conversion.
21707 2013-08-12  Alexander Monakov  <amonakov@ispras.ru>
21709         * doc/invoke.texi: Mention that -ftls-model does not force the final
21710         model.
21712 2013-08-12  Marek Polacek  <polacek@redhat.com>
21713             Marc Glisse  <marc.glisse@inria.fr>
21715         PR tree-optimization/57980
21716         * tree-tailcall.c (process_assignment): Call build_minus_one_cst
21717         when creating -1 constant.
21719 2013-08-10  Jan Hubicka  <jh@suse.cz>
21721         Workaround binutils PR14342.
21722         * tree-profile.c (init_ic_make_global_vars): Add LTO path.
21723         (gimple_init_edge_profiler): Likewise.
21724         (gimple_gen_ic_func_profiler): Likewise.
21726 2013-08-09  Jan Hubicka  <jh@suse.cz>
21728         * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
21730 2013-08-09  Xinliang David Li  <davidxl@google.com>
21732         * config/i386/stringop.def: New file.
21733         * config/i386/stringop.opt: New file.
21734         * config/i386/i386-opts.h: Include stringopt.def.
21735         * config/i386/i386.opt: Include stringopt.opt.
21736         * config/i386/i386.c (ix86_option_override_internal):
21737         Override default size based stringop inline strategies with options.
21738         * config/i386/i386.c (ix86_parse_stringop_strategy_string):
21739         New function.
21741 2013-08-09  Jan Hubicka  <jh@suse.cz>
21743         * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
21745 2013-08-09  Jan Hubicka  <jh@suse.cz>
21747         * cgraph.c (cgraph_resolve_speculation): Cut frequency to
21748         CGRAPH_FREQ_MAX.
21749         (dump_cgraph_node): Dump profile-id.
21750         * cgraph.h (cgraph_indirect_call_info): Add common_target_id
21751         and common_target_probability.
21752         * lto-cgraph.c (lto_output_edge): Stream common targets.
21753         (lto_output_node): Stream profile ids.
21754         (input_node): Stream profile ids.
21755         (input_edge): Stream common targets.
21756         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
21757         * ipa.c: Include value-prof.h
21758         (ipa_profile_generate_summary): Turn indirect call statement histograms
21759         into common targets.
21760         (ipa_profile): Turn common targets into speculative edges.
21762 2013-08-09  Jan Hubicka  <jh@suse.cz>
21764         * cgraph.h (cgraph_node): Add profile_id.
21765         * value-prof.c (cgraph_node_map): Turn into pointer_map.
21766         (init_node_map): Rewrite to handle hashes increas of incremental IDs.
21767         (del_node_map): Update.
21768         (find_func_by_funcdef_no): Replace by ...
21769         (find_func_by_profile_id): ... this one.
21770         (gimple_ic_transform): Do not remove useful histograms when
21771         speculation is not done; dump info when indirect call removal
21772         can happen at LTO.
21773         * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
21774         * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
21775         (__gcov_indirect_call_profiler_v2): .. this one.
21776         * profile.h (init_node_map): Update.
21777         * coverage.c (coverage_compute_profile_id): New function.
21778         * coverage.h (coverage_compute_profile_id): Declare.
21779         * tree-profile.c (init_ic_make_global_vars): Make
21780         __gcov_indirect_call_callee and  __gcov_indirect_call_counters global.
21781         (gimple_init_edge_profiler): Update prototype of
21782         __gcov_indirect_call_profiler.
21783         (gimple_gen_ic_func_profiler): Simplify.
21784         (tree_profiling): Use init_node_map
21786 2013-08-09  Jan Hubicka  <jh@suse.cz>
21788         * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
21789         non-speculative refs.
21790         * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
21791         (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
21792         (cgraph_set_call_stmt): Likewise.
21793         (cgraph_create_edge_1): Fix release checking compilatoin;
21794         clear lto_stmt_uid.
21795         (cgraph_free_edge): Free indirect info.
21796         (cgraph_turn_edge_to_speculative): New function.
21797         (cgraph_speculative_call_info): New function.
21798         (cgraph_make_edge_direct): Return direct edge; handle speculation.
21799         (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
21800         (dump_cgraph_node): Dump speculation.
21801         (verify_edge_count_and_frequency): Accept speculative edges.
21802         (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
21803         (verify_cgraph_node): Handle speculation.
21804         * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
21805         (cgraph_set_call_stmt): Update prototype.
21806         (cgraph_make_edge_direct): Update prototype.
21807         (cgraph_speculative_call_info): Declare.
21808         * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
21809         to change; update call of ipa_find_references.
21810         * ipa-ref.c (ipa_record_reference): Fix return value; clear
21811         lto_stmt_uid and speculative flags.
21812         (ipa_dump_references): Dump speculation.
21813         (ipa_clone_references): Clone speculative flag.
21814         (ipa_clone_referring): Likewise.
21815         (ipa_clone_ref): New function.
21816         (ipa_find_reference): Look into lto_stmt_uids
21817         (ipa_clear_stmts_in_references): Do not clear speculative calls.
21818         * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
21819         (ipa_find_reference): Update declaration.
21820         (ipa_clone_ref): Declare.
21821         * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
21822         stream speculative flag.
21823         (lto_output_ref): Stream statements uids and speculation.
21824         (input_ref): Likewise.
21825         (input_edge): Stream speuclation.
21826         * cgraphclones.c (cgraph_clone_edge): Clone speculation.
21827         (cgraph_set_call_stmt_including_clones): Handle speculation.
21828         * ipa-inline.c (heap_edge_removal_hook): New function.
21829         (inline_small_functions): Register it.
21830         * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
21831         also initialize refs.
21832         * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
21833         edge to change.
21834         (try_make_edge_direct_simple_call): Likewise.
21835         (try_make_edge_direct_simple_call): Likewise.
21836         (update_indirect_edges_after_inlining): Likewise.
21837         (remove_described_reference): Look proper lto_stmt_uid.
21838         (propagate_controlled_uses): Likewise.
21839         (propagate_controlled_uses): Liekwise.
21840         * tree-inline.c (copy_bb): Copy speculative edges.
21841         (redirect_all_calls): New function.
21842         (copy_cfg_body): Do redirection after loop info is updated.
21843         (delete_unreachable_blocks_update_callgraph): Updadte speculation.
21845 2013-08-09  Jan Hubicka  <jh@suse.cz>
21847         * lto-streamer-out.c (output_function): Renumber PHIs.
21848         * lto-streamer-in.c (input_function): Likewise.
21850 2013-08-09  James Greenhalgh  <james.greenhalgh@arm.com>
21852         * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
21853         (get_lane_unsigned): Likewise.
21854         (dup_lane_scalar): Likewise.
21855         (get_lane): enable for VALL.
21856         * config/aarch64/aarch64-simd.md
21857         (aarch64_dup_lane_scalar<mode>): Remove.
21858         (aarch64_get_lane_signed<mode>): Likewise.
21859         (aarch64_get_lane_unsigned<mode>): Likewise.
21860         (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
21861         (aarch64_get_lane_zero_extendsi<mode>): Likewise.
21862         (aarch64_get_lane<mode>): Enable for all vector modes.
21863         (aarch64_get_lanedi): Remove misleading constraints.
21864         * config/aarch64/arm_neon.h
21865         (__aarch64_vget_lane_any): Define.
21866         (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
21867         (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
21868         (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
21869         * config/aarch64/iterators.md (VDQQH): New.
21870         (VDQQHS): Likewise.
21871         (vwcore): Likewise.
21873 2013-08-09  Eric Botcazou  <ebotcazou@adacore.com>
21875         * configure.ac: Add GAS check for LEON instructions on SPARC.
21876         * configure: Regenerate.
21877         * config.in: Likewise.
21878         * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
21879         sparc*-*-* block.
21880         * config/sparc/sparc.opt (LEON, LEON3): New masks.
21881         * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
21882         for LEON or LEON3.
21883         (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
21884         (AS_LEON_FLAG): New macro.
21885         * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
21886         and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
21887         Deal with LEON and LEON3 for the memory model.
21888         * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
21889         (atomic_compare_and_swap<mode>_1): Likewise.
21890         (*atomic_compare_and_swap<mode>_1): Likewise.
21892 2013-08-09  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21894         * config/arm/neon.md (vcond): Fix floating-point vector
21895         comparisons against 0.
21897 2013-08-08  Vladimir Makarov  <vmakarov@redhat.com>
21899         * lra-constraints.c (emit_spill_move): Remove assert.
21900         (process_alt_operands): Add more debugging
21901         output.  Increase reject for spilling into memory.  Decrease
21902         reject for reloading scratch.
21903         (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
21905 2013-08-08  Steve Ellcey  <sellcey@mips.com>
21907         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
21908         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
21909         micromips incompatible.  Add nan2008.
21910         (MULTILIB_DIRNAMES): Add nan2008.
21911         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
21912         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
21913         and micromips incompatible.  Add nan2008.
21914         (MULTILIB_DIRNAMES): Add nan2008.
21915         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
21917 2013-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
21919         PR rtl-optimization/58079
21920         * combine.c (combine_simplify_rtx): Avoid using SUBST if
21921         simplify_comparison has widened a comparison with an integer.
21923 2013-08-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21925         * config/arm/neon.md (movmisalign<mode>): Disable when we
21926         don't allow unaligned accesses.
21927         (*movmisalign<mode>_neon_store): Likewise.
21928         (*movmisalign<mode>_neon_load): Likewise.
21929         (*movmisalign<mode>_neon_store): Likewise.
21930         (*movmisalign<mode>_neon_load): Likewise.
21932 2013-08-08  Jan Hubicka  <jh@suse.cz>
21934         * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
21935         (make_pass_rebuild_cgraph_edges): Also clear references.
21936         * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
21937         * ipa-inline-transform.c (inline_transform): Remove all references
21938         after inlining.
21939         * cgraphunit.c (expand_function): Remove all references after
21940         expansion.
21941         * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
21942         (ipa_find_reference): Rewrite to iterator.
21943         (remove_stmt_references): Likewise.
21944         (ipa_clear_stmts_in_references): New function.
21945         * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
21946         * cgraphclones.c (cgraph_materialize_all_clones): Remove or
21947         clear references.
21948         * ipa-split.c (split_function): Remove references in split function.
21950 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
21952         PR target/57431
21953         * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
21954         (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
21956 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
21958         PR target/56979
21959         * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
21960         suggested mode for the assignment isn't compatible with the
21961         registers required.
21963 2013-08-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21965         PR target/58065
21966         * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
21968 2013-08-07  Xinliang David Li  <davidxl@google.com>
21970         * config/i386/i386.opt: New option -mtune-ctrl=.
21971         * config/i386/x86-tune.def: New file.
21972         * config/i386/i386.h: include x86-tune.def.
21973         * config/i386/i386.c (ix86_option_override_internal):
21974         Parsing -mtune-ctrl= option and set tune features.
21976 2013-08-07  Oleg Endo  <olegendo@gcc.gnu.org>
21978         PR other/12081
21979         * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
21980         (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
21981         to gen_2arg_fn_t.
21983 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
21985         * rtl.h (update_alignments): Declare.
21986         * final.c (grow_label_align): New function extracted from...
21987         (shorten_branches): ...here.  Call it.
21988         (update_alignments): New function.
21989         * reorg.c (sibling_labels): New variable.
21990         (get_label_before): Add SIBLING parameter.  If it is non-zero, push
21991         the new label along with it onto the sibling_labels vector.
21992         (fill_simple_delay_slots): Adjust call to get_label_before.
21993         (fill_slots_from_thread): Likewise.
21994         (relax_delay_slots): Likewise.
21995         (make_return_insns): Likewise.
21996         (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
21998 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
22000         * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
22001         document its semantics.
22002         (diagnostic_report_diagnostic): Adjust accordingly.
22004 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
22006         * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
22007         (sparc_option_override): ...and port to new C++ pass API.
22008         * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
22010 2013-08-07  Peter Bergner  <bergner@vnet.ibm.com>
22012         * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
22014 2013-08-06  Caroline Tice  <cmtice@google.com>
22016         * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
22017         (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
22018         * tree-pass.h: Add pass_vtable_verify.
22019         * varasm.c (assemble_variable): Add code to properly set the comdat
22020         section and name for the .vtable_map_vars section.
22021         (assemble_vtyv_preinit_initializer): New function.
22022         (default_sectin_type_flags):  Make sure .vtable_map_vars section has
22023         LINK_ONCE flag.
22024         * output.h: Add function decl for assemble_vtv_preinit_initializer.
22025         * vtable-verify.c: New file.
22026         * vtable-verify.h: New file.
22027         * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
22028         initialiation levels.
22029         * timevar.def (TV_VTABLE_VERIFICATION): New definition.
22030         * passes.def: Insert pass_vtable_verify.
22031         * aclocal.m4: Reorder includes.
22032         * doc/invoke.texi:  Document the -fvtable-verify=, -fvtv-debug, and
22033         -fvtv-counts options.
22034         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
22035         as appropriate, if -fvtable-verify=... is used.
22036         (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
22037         -fvtable-verify=... is used.
22038         * Makefile.in (OBJS):  Add vtable-verify.o to list.
22039         (vtable-verify.o): Add new build rule.
22040         (GTFILES): Add vtable-verify.c to list.
22041         * common.opt (fvtable-verify=): New flag.
22042         (vtv_priority): Values for fvtable-verify= flag.
22043         (fvtv-counts): New flag.
22044         (fvtv-debug): New flag.
22045         * tree.h (save_vtable_map_decl): New extern function decl.
22047 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
22049         * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
22050         (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
22051         (pass_data_rl78_devirt): ...new pass_data instance and...
22052         (make_pass_rl78_devirt): ...new function.
22053         (rl78_asm_file_start): Port pass registration to new C++ API.
22055 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
22057         * coretypes.h (rtl_opt_pass): Add.
22058         (gcc::context): Add.
22059         * config/epiphany/epiphany.c (pass_mode_switch_use): New.
22060         (epiphany_init): Port to new C++ pass API.
22061         (epiphany_optimize_mode_switching): Likewise.
22062         * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
22063         (pass_manager::get_pass_mode_switching): New.
22064         (pass_manager::get_pass_peephole2): New.
22065         * mode-switching.c (pass_mode_switching): Add clone method.
22066         * recog.c (pass_peephole2): Add clone method.
22067         (pass_split_all_insns): Add clone method.
22069 2013-08-06  David Malcolm  <dmalcolm@redhat.com>
22071         * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
22072         (mips_option_override): ...here, porting to new C++ API for passes.
22074 2013-08-06  Jan Hubicka  <jh@suse.cz>
22076         * cgraph.c (cgraph_get_body): New function based on lto.c
22077         implementation.
22078         * cgraph.h (cgraph_get_body): Declare.
22079         * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
22080         LTO paths.
22081         * cgraphunit.c (expand_function): Get body prior expanding.
22082         * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
22083         * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
22084         really need.
22085         * passes.c (do_per_function_toporder): Get body.
22086         * tree-inline.c (expand_call_inline): Get body prior inlining it.
22087         * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
22089 2013-08-06  Martin Jambor  <mjambor@suse.cz>
22091         PR fortran/57987
22092         * cgraphunit.c (cgraph_finalize_function): Assert that nested function
22093         is not re-finalized.  Rename second parameter to no_collect.
22095 2013-08-06  Martin Jambor  <mjambor@suse.cz>
22097         PR middle-end/58041
22098         * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
22099         MEM_REF has proper alignment information.
22101 2013-08-05  Oleg Endo  <olegendo@gcc.gnu.org>
22103         PR other/12081
22104         * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
22105         class insn_gen_fn.
22106         * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
22107         rtx (*) (rtx, ...) with insn_gen_fn.
22108         * genoutput.c (output_insn_data): Cast gen_? function pointers to
22109         insn_gen_fn::stored_funcptr.  Add initializer braces.
22111 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
22113         Rewrite how instances of passes are cloned to remove assumptions
22114         about their sizes (thus allowing pass subclasses to have
22115         additional data fields, albeit non-GC-managed ones at this point).
22117         * passes.c (make_pass_instance): Now that passes have clone
22118         methods, rewrite this function to eliminate XNEW and memcpy
22119         calls that used hardcoded sizes.  Since this function no longer
22120         creates pass instances, rename it to...
22121         (add_pass_instance): ...this.  Document the old way that passes were
22122         numbered and flagged, and rework this function to continue using it.
22123         (next_pass_1): Add an initial_pass argument for use by
22124         add_pass_instance.
22125         (position_pass): When adding multiple instances of a pass, use
22126         the pass's clone method, rather than relying on the XNEW/memcpy
22127         within the former make_pass_instance (now add_pass_instance).
22128         (pass_manager::pass_manager): When invoking next_pass_1, also supply
22129         the initial instance of the current pass within the pass manager.
22131 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
22133         This is the automated part of the conversion of passes from C
22134         structs to C++ classes.
22136         Patch autogenerated by refactor_passes.py from
22137         https://github.com/davidmalcolm/gcc-refactoring-scripts
22138         revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
22140         * asan.c (pass_asan): Convert from a global struct to a subclass of
22141         gimple_opt_pass along with...
22142         (pass_data_asan): ...new pass_data instance and...
22143         (make_pass_asan): ...new function.
22144         (pass_asan_O0): Convert from a global struct to a subclass of
22145         gimple_opt_pass along with...
22146         (pass_data_asan_O0): ...new pass_data instance and...
22147         (make_pass_asan_O0): ...new function.
22148         * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
22149         subclass of rtl_opt_pass along with...
22150         (pass_data_inc_dec): ...new pass_data instance and...
22151         (make_pass_inc_dec): ...new function.
22152         * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
22153         a subclass of rtl_opt_pass along with...
22154         (pass_data_reorder_blocks): ...new pass_data instance and...
22155         (make_pass_reorder_blocks): ...new function.
22156         (pass_duplicate_computed_gotos): Convert from a global struct to a
22157         subclass of rtl_opt_pass along with...
22158         (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
22159         (make_pass_duplicate_computed_gotos): ...new function.
22160         (pass_partition_blocks): Convert from a global struct to a subclass of
22161         rtl_opt_pass along with...
22162         (pass_data_partition_blocks): ...new pass_data instance and...
22163         (make_pass_partition_blocks): ...new function.
22164         * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
22165         struct to a subclass of rtl_opt_pass along with...
22166         (pass_data_branch_target_load_optimize1): ...new pass_data instance
22167         and...
22168         (make_pass_branch_target_load_optimize1): ...new function.
22169         (pass_branch_target_load_optimize2): Convert from a global struct to a
22170         subclass of rtl_opt_pass along with...
22171         (pass_data_branch_target_load_optimize2): ...new pass_data instance
22172         and...
22173         (make_pass_branch_target_load_optimize2): ...new function.
22174         * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
22175         of rtl_opt_pass along with...
22176         (pass_data_jump): ...new pass_data instance and...
22177         (make_pass_jump): ...new function.
22178         (pass_jump2): Convert from a global struct to a subclass of
22179         rtl_opt_pass along with...
22180         (pass_data_jump2): ...new pass_data instance and...
22181         (make_pass_jump2): ...new function.
22182         * cfgexpand.c (pass_expand): Convert from a global struct to a
22183         subclass of rtl_opt_pass along with...
22184         (pass_data_expand): ...new pass_data instance and...
22185         (make_pass_expand): ...new function.
22186         * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
22187         of rtl_opt_pass along with...
22188         (pass_data_free_cfg): ...new pass_data instance and...
22189         (make_pass_free_cfg): ...new function.
22190         (pass_into_cfg_layout_mode): Convert from a global struct to a
22191         subclass of rtl_opt_pass along with...
22192         (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
22193         (make_pass_into_cfg_layout_mode): ...new function.
22194         (pass_outof_cfg_layout_mode): Convert from a global struct to a
22195         subclass of rtl_opt_pass along with...
22196         (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
22197         (make_pass_outof_cfg_layout_mode): ...new function.
22198         * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
22199         struct to a subclass of gimple_opt_pass along with...
22200         (pass_data_build_cgraph_edges): ...new pass_data instance and...
22201         (make_pass_build_cgraph_edges): ...new function.
22202         (pass_rebuild_cgraph_edges): Convert from a global struct to a
22203         subclass of gimple_opt_pass along with...
22204         (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
22205         (make_pass_rebuild_cgraph_edges): ...new function.
22206         (pass_remove_cgraph_callee_edges): Convert from a global struct to a
22207         subclass of gimple_opt_pass along with...
22208         (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
22209         and...
22210         (make_pass_remove_cgraph_callee_edges): ...new function.
22211         * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
22212         struct to a subclass of rtl_opt_pass along with...
22213         (pass_data_stack_adjustments): ...new pass_data instance and...
22214         (make_pass_stack_adjustments): ...new function.
22215         * combine.c (pass_combine): Convert from a global struct to a subclass
22216         of rtl_opt_pass along with...
22217         (pass_data_combine): ...new pass_data instance and...
22218         (make_pass_combine): ...new function.
22219         * compare-elim.c (pass_compare_elim_after_reload): Convert from a
22220         global struct to a subclass of rtl_opt_pass along with...
22221         (pass_data_compare_elim_after_reload): ...new pass_data instance
22222         and...
22223         (make_pass_compare_elim_after_reload): ...new function.
22224         * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
22225         of rtl_opt_pass along with...
22226         (pass_data_rtl_cprop): ...new pass_data instance and...
22227         (make_pass_rtl_cprop): ...new function.
22228         * cse.c (pass_cse): Convert from a global struct to a subclass of
22229         rtl_opt_pass along with...
22230         (pass_data_cse): ...new pass_data instance and...
22231         (make_pass_cse): ...new function.
22232         (pass_cse2): Convert from a global struct to a subclass of
22233         rtl_opt_pass along with...
22234         (pass_data_cse2): ...new pass_data instance and...
22235         (make_pass_cse2): ...new function.
22236         (pass_cse_after_global_opts): Convert from a global struct to a
22237         subclass of rtl_opt_pass along with...
22238         (pass_data_cse_after_global_opts): ...new pass_data instance and...
22239         (make_pass_cse_after_global_opts): ...new function.
22240         * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
22241         of rtl_opt_pass along with...
22242         (pass_data_ud_rtl_dce): ...new pass_data instance and...
22243         (make_pass_ud_rtl_dce): ...new function.
22244         (pass_fast_rtl_dce): Convert from a global struct to a subclass of
22245         rtl_opt_pass along with...
22246         (pass_data_fast_rtl_dce): ...new pass_data instance and...
22247         (make_pass_fast_rtl_dce): ...new function.
22248         * df-core.c (pass_df_initialize_opt): Convert from a global struct to
22249         a subclass of rtl_opt_pass along with...
22250         (pass_data_df_initialize_opt): ...new pass_data instance and...
22251         (make_pass_df_initialize_opt): ...new function.
22252         (pass_df_initialize_no_opt): Convert from a global struct to a
22253         subclass of rtl_opt_pass along with...
22254         (pass_data_df_initialize_no_opt): ...new pass_data instance and...
22255         (make_pass_df_initialize_no_opt): ...new function.
22256         (pass_df_finish): Convert from a global struct to a subclass of
22257         rtl_opt_pass along with...
22258         (pass_data_df_finish): ...new pass_data instance and...
22259         (make_pass_df_finish): ...new function.
22260         * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
22261         rtl_opt_pass along with...
22262         (pass_data_rtl_dse1): ...new pass_data instance and...
22263         (make_pass_rtl_dse1): ...new function.
22264         (pass_rtl_dse2): Convert from a global struct to a subclass of
22265         rtl_opt_pass along with...
22266         (pass_data_rtl_dse2): ...new pass_data instance and...
22267         (make_pass_rtl_dse2): ...new function.
22268         * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
22269         subclass of rtl_opt_pass along with...
22270         (pass_data_dwarf2_frame): ...new pass_data instance and...
22271         (make_pass_dwarf2_frame): ...new function.
22272         * except.c (pass_set_nothrow_function_flags): Convert from a global
22273         struct to a subclass of rtl_opt_pass along with...
22274         (pass_data_set_nothrow_function_flags): ...new pass_data instance
22275         and...
22276         (make_pass_set_nothrow_function_flags): ...new function.
22277         (pass_convert_to_eh_region_ranges): Convert from a global struct to a
22278         subclass of rtl_opt_pass along with...
22279         (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
22280         and...
22281         (make_pass_convert_to_eh_region_ranges): ...new function.
22282         * final.c (pass_compute_alignments): Convert from a global struct to a
22283         subclass of rtl_opt_pass along with...
22284         (pass_data_compute_alignments): ...new pass_data instance and...
22285         (make_pass_compute_alignments): ...new function.
22286         (pass_final): Convert from a global struct to a subclass of
22287         rtl_opt_pass along with...
22288         (pass_data_final): ...new pass_data instance and...
22289         (make_pass_final): ...new function.
22290         (pass_shorten_branches): Convert from a global struct to a subclass of
22291         rtl_opt_pass along with...
22292         (pass_data_shorten_branches): ...new pass_data instance and...
22293         (make_pass_shorten_branches): ...new function.
22294         (pass_clean_state): Convert from a global struct to a subclass of
22295         rtl_opt_pass along with...
22296         (pass_data_clean_state): ...new pass_data instance and...
22297         (make_pass_clean_state): ...new function.
22298         * function.c (pass_instantiate_virtual_regs): Convert from a global
22299         struct to a subclass of rtl_opt_pass along with...
22300         (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
22301         (make_pass_instantiate_virtual_regs): ...new function.
22302         (pass_leaf_regs): Convert from a global struct to a subclass of
22303         rtl_opt_pass along with...
22304         (pass_data_leaf_regs): ...new pass_data instance and...
22305         (make_pass_leaf_regs): ...new function.
22306         (pass_thread_prologue_and_epilogue): Convert from a global struct to a
22307         subclass of rtl_opt_pass along with...
22308         (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
22309         and...
22310         (make_pass_thread_prologue_and_epilogue): ...new function.
22311         (pass_match_asm_constraints): Convert from a global struct to a
22312         subclass of rtl_opt_pass along with...
22313         (pass_data_match_asm_constraints): ...new pass_data instance and...
22314         (make_pass_match_asm_constraints): ...new function.
22315         * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
22316         subclass of rtl_opt_pass along with...
22317         (pass_data_rtl_fwprop): ...new pass_data instance and...
22318         (make_pass_rtl_fwprop): ...new function.
22319         (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
22320         rtl_opt_pass along with...
22321         (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
22322         (make_pass_rtl_fwprop_addr): ...new function.
22323         * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
22324         rtl_opt_pass along with...
22325         (pass_data_rtl_pre): ...new pass_data instance and...
22326         (make_pass_rtl_pre): ...new function.
22327         (pass_rtl_hoist): Convert from a global struct to a subclass of
22328         rtl_opt_pass along with...
22329         (pass_data_rtl_hoist): ...new pass_data instance and...
22330         (make_pass_rtl_hoist): ...new function.
22331         * gimple-low.c (pass_lower_cf): Convert from a global struct to a
22332         subclass of gimple_opt_pass along with...
22333         (pass_data_lower_cf): ...new pass_data instance and...
22334         (make_pass_lower_cf): ...new function.
22335         * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
22336         from a global struct to a subclass of gimple_opt_pass along with...
22337         (pass_data_strength_reduction): ...new pass_data instance and...
22338         (make_pass_strength_reduction): ...new function.
22339         * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
22340         of rtl_opt_pass along with...
22341         (pass_data_rtl_ifcvt): ...new pass_data instance and...
22342         (make_pass_rtl_ifcvt): ...new function.
22343         (pass_if_after_combine): Convert from a global struct to a subclass of
22344         rtl_opt_pass along with...
22345         (pass_data_if_after_combine): ...new pass_data instance and...
22346         (make_pass_if_after_combine): ...new function.
22347         (pass_if_after_reload): Convert from a global struct to a subclass of
22348         rtl_opt_pass along with...
22349         (pass_data_if_after_reload): ...new pass_data instance and...
22350         (make_pass_if_after_reload): ...new function.
22351         * init-regs.c (pass_initialize_regs): Convert from a global struct to
22352         a subclass of rtl_opt_pass along with...
22353         (pass_data_initialize_regs): ...new pass_data instance and...
22354         (make_pass_initialize_regs): ...new function.
22355         * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
22356         of ipa_opt_pass_d along with...
22357         (pass_data_ipa_cp): ...new pass_data instance and...
22358         (make_pass_ipa_cp): ...new function.
22359         * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
22360         global struct to a subclass of gimple_opt_pass along with...
22361         (pass_data_inline_parameters): ...new pass_data instance and...
22362         (make_pass_inline_parameters): ...new function.
22363         * ipa-inline.c (pass_early_inline): Convert from a global struct to a
22364         subclass of gimple_opt_pass along with...
22365         (pass_data_early_inline): ...new pass_data instance and...
22366         (make_pass_early_inline): ...new function.
22367         (pass_ipa_inline): Convert from a global struct to a subclass of
22368         ipa_opt_pass_d along with...
22369         (pass_data_ipa_inline): ...new pass_data instance and...
22370         (make_pass_ipa_inline): ...new function.
22371         * ipa-pure-const.c (pass_local_pure_const): Convert from a global
22372         struct to a subclass of gimple_opt_pass along with...
22373         (pass_data_local_pure_const): ...new pass_data instance and...
22374         (make_pass_local_pure_const): ...new function.
22375         (pass_ipa_pure_const): Convert from a global struct to a subclass of
22376         ipa_opt_pass_d along with...
22377         (pass_data_ipa_pure_const): ...new pass_data instance and...
22378         (make_pass_ipa_pure_const): ...new function.
22379         * ipa-reference.c (pass_ipa_reference): Convert from a global struct
22380         to a subclass of ipa_opt_pass_d along with...
22381         (pass_data_ipa_reference): ...new pass_data instance and...
22382         (make_pass_ipa_reference): ...new function.
22383         * ipa-split.c (pass_split_functions): Convert from a global struct to
22384         a subclass of gimple_opt_pass along with...
22385         (pass_data_split_functions): ...new pass_data instance and...
22386         (make_pass_split_functions): ...new function.
22387         (pass_feedback_split_functions): Convert from a global struct to a
22388         subclass of gimple_opt_pass along with...
22389         (pass_data_feedback_split_functions): ...new pass_data instance and...
22390         (make_pass_feedback_split_functions): ...new function.
22391         * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
22392         global struct to a subclass of simple_ipa_opt_pass along with...
22393         (pass_data_ipa_function_and_variable_visibility): ...new pass_data
22394         instance and...
22395         (make_pass_ipa_function_and_variable_visibility): ...new function.
22396         (pass_ipa_free_inline_summary): Convert from a global struct to a
22397         subclass of simple_ipa_opt_pass along with...
22398         (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
22399         (make_pass_ipa_free_inline_summary): ...new function.
22400         (pass_ipa_whole_program_visibility): Convert from a global struct to a
22401         subclass of ipa_opt_pass_d along with...
22402         (pass_data_ipa_whole_program_visibility): ...new pass_data instance
22403         and...
22404         (make_pass_ipa_whole_program_visibility): ...new function.
22405         (pass_ipa_profile): Convert from a global struct to a subclass of
22406         ipa_opt_pass_d along with...
22407         (pass_data_ipa_profile): ...new pass_data instance and...
22408         (make_pass_ipa_profile): ...new function.
22409         (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
22410         ipa_opt_pass_d along with...
22411         (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
22412         (make_pass_ipa_cdtor_merge): ...new function.
22413         * ira.c (pass_ira): Convert from a global struct to a subclass of
22414         rtl_opt_pass along with...
22415         (pass_data_ira): ...new pass_data instance and...
22416         (make_pass_ira): ...new function.
22417         (pass_reload): Convert from a global struct to a subclass of
22418         rtl_opt_pass along with...
22419         (pass_data_reload): ...new pass_data instance and...
22420         (make_pass_reload): ...new function.
22421         * jump.c (pass_cleanup_barriers): Convert from a global struct to a
22422         subclass of rtl_opt_pass along with...
22423         (pass_data_cleanup_barriers): ...new pass_data instance and...
22424         (make_pass_cleanup_barriers): ...new function.
22425         * loop-init.c (pass_loop2): Convert from a global struct to a subclass
22426         of rtl_opt_pass along with...
22427         (pass_data_loop2): ...new pass_data instance and...
22428         (make_pass_loop2): ...new function.
22429         (pass_rtl_loop_init): Convert from a global struct to a subclass of
22430         rtl_opt_pass along with...
22431         (pass_data_rtl_loop_init): ...new pass_data instance and...
22432         (make_pass_rtl_loop_init): ...new function.
22433         (pass_rtl_loop_done): Convert from a global struct to a subclass of
22434         rtl_opt_pass along with...
22435         (pass_data_rtl_loop_done): ...new pass_data instance and...
22436         (make_pass_rtl_loop_done): ...new function.
22437         (pass_rtl_move_loop_invariants): Convert from a global struct to a
22438         subclass of rtl_opt_pass along with...
22439         (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
22440         (make_pass_rtl_move_loop_invariants): ...new function.
22441         (pass_rtl_unswitch): Convert from a global struct to a subclass of
22442         rtl_opt_pass along with...
22443         (pass_data_rtl_unswitch): ...new pass_data instance and...
22444         (make_pass_rtl_unswitch): ...new function.
22445         (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
22446         subclass of rtl_opt_pass along with...
22447         (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
22448         and...
22449         (make_pass_rtl_unroll_and_peel_loops): ...new function.
22450         (pass_rtl_doloop): Convert from a global struct to a subclass of
22451         rtl_opt_pass along with...
22452         (pass_data_rtl_doloop): ...new pass_data instance and...
22453         (make_pass_rtl_doloop): ...new function.
22454         * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
22455         a subclass of rtl_opt_pass along with...
22456         (pass_data_lower_subreg): ...new pass_data instance and...
22457         (make_pass_lower_subreg): ...new function.
22458         (pass_lower_subreg2): Convert from a global struct to a subclass of
22459         rtl_opt_pass along with...
22460         (pass_data_lower_subreg2): ...new pass_data instance and...
22461         (make_pass_lower_subreg2): ...new function.
22462         * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
22463         struct to a subclass of ipa_opt_pass_d along with...
22464         (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
22465         (make_pass_ipa_lto_gimple_out): ...new function.
22466         (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
22467         of ipa_opt_pass_d along with...
22468         (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
22469         (make_pass_ipa_lto_finish_out): ...new function.
22470         * mode-switching.c (pass_mode_switching): Convert from a global struct
22471         to a subclass of rtl_opt_pass along with...
22472         (pass_data_mode_switching): ...new pass_data instance and...
22473         (make_pass_mode_switching): ...new function.
22474         * modulo-sched.c (pass_sms): Convert from a global struct to a
22475         subclass of rtl_opt_pass along with...
22476         (pass_data_sms): ...new pass_data instance and...
22477         (make_pass_sms): ...new function.
22478         * omp-low.c (pass_expand_omp): Convert from a global struct to a
22479         subclass of gimple_opt_pass along with...
22480         (pass_data_expand_omp): ...new pass_data instance and...
22481         (make_pass_expand_omp): ...new function.
22482         (pass_lower_omp): Convert from a global struct to a subclass of
22483         gimple_opt_pass along with...
22484         (pass_data_lower_omp): ...new pass_data instance and...
22485         (make_pass_lower_omp): ...new function.
22486         (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
22487         of gimple_opt_pass along with...
22488         (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
22489         (make_pass_diagnose_omp_blocks): ...new function.
22490         * passes.c (pass_early_local_passes): Convert from a global struct to
22491         a subclass of simple_ipa_opt_pass along with...
22492         (pass_data_early_local_passes): ...new pass_data instance and...
22493         (make_pass_early_local_passes): ...new function.
22494         (pass_all_early_optimizations): Convert from a global struct to a
22495         subclass of gimple_opt_pass along with...
22496         (pass_data_all_early_optimizations): ...new pass_data instance and...
22497         (make_pass_all_early_optimizations): ...new function.
22498         (pass_all_optimizations): Convert from a global struct to a subclass
22499         of gimple_opt_pass along with...
22500         (pass_data_all_optimizations): ...new pass_data instance and...
22501         (make_pass_all_optimizations): ...new function.
22502         (pass_all_optimizations_g): Convert from a global struct to a subclass
22503         of gimple_opt_pass along with...
22504         (pass_data_all_optimizations_g): ...new pass_data instance and...
22505         (make_pass_all_optimizations_g): ...new function.
22506         (pass_rest_of_compilation): Convert from a global struct to a subclass
22507         of rtl_opt_pass along with...
22508         (pass_data_rest_of_compilation): ...new pass_data instance and...
22509         (make_pass_rest_of_compilation): ...new function.
22510         (pass_postreload): Convert from a global struct to a subclass of
22511         rtl_opt_pass along with...
22512         (pass_data_postreload): ...new pass_data instance and...
22513         (make_pass_postreload): ...new function.
22514         * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
22515         subclass of rtl_opt_pass along with...
22516         (pass_data_gcse2): ...new pass_data instance and...
22517         (make_pass_gcse2): ...new function.
22518         * postreload.c (pass_postreload_cse): Convert from a global struct to
22519         a subclass of rtl_opt_pass along with...
22520         (pass_data_postreload_cse): ...new pass_data instance and...
22521         (make_pass_postreload_cse): ...new function.
22522         * predict.c (pass_profile): Convert from a global struct to a subclass
22523         of gimple_opt_pass along with...
22524         (pass_data_profile): ...new pass_data instance and...
22525         (make_pass_profile): ...new function.
22526         (pass_strip_predict_hints): Convert from a global struct to a subclass
22527         of gimple_opt_pass along with...
22528         (pass_data_strip_predict_hints): ...new pass_data instance and...
22529         (make_pass_strip_predict_hints): ...new function.
22530         * recog.c (pass_peephole2): Convert from a global struct to a subclass
22531         of rtl_opt_pass along with...
22532         (pass_data_peephole2): ...new pass_data instance and...
22533         (make_pass_peephole2): ...new function.
22534         (pass_split_all_insns): Convert from a global struct to a subclass of
22535         rtl_opt_pass along with...
22536         (pass_data_split_all_insns): ...new pass_data instance and...
22537         (make_pass_split_all_insns): ...new function.
22538         (pass_split_after_reload): Convert from a global struct to a subclass
22539         of rtl_opt_pass along with...
22540         (pass_data_split_after_reload): ...new pass_data instance and...
22541         (make_pass_split_after_reload): ...new function.
22542         (pass_split_before_regstack): Convert from a global struct to a
22543         subclass of rtl_opt_pass along with...
22544         (pass_data_split_before_regstack): ...new pass_data instance and...
22545         (make_pass_split_before_regstack): ...new function.
22546         (pass_split_before_sched2): Convert from a global struct to a subclass
22547         of rtl_opt_pass along with...
22548         (pass_data_split_before_sched2): ...new pass_data instance and...
22549         (make_pass_split_before_sched2): ...new function.
22550         (pass_split_for_shorten_branches): Convert from a global struct to a
22551         subclass of rtl_opt_pass along with...
22552         (pass_data_split_for_shorten_branches): ...new pass_data instance
22553         and...
22554         (make_pass_split_for_shorten_branches): ...new function.
22555         * ree.c (pass_ree): Convert from a global struct to a subclass of
22556         rtl_opt_pass along with...
22557         (pass_data_ree): ...new pass_data instance and...
22558         (make_pass_ree): ...new function.
22559         * reg-stack.c (pass_stack_regs): Convert from a global struct to a
22560         subclass of rtl_opt_pass along with...
22561         (pass_data_stack_regs): ...new pass_data instance and...
22562         (make_pass_stack_regs): ...new function.
22563         (pass_stack_regs_run): Convert from a global struct to a subclass of
22564         rtl_opt_pass along with...
22565         (pass_data_stack_regs_run): ...new pass_data instance and...
22566         (make_pass_stack_regs_run): ...new function.
22567         * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
22568         subclass of rtl_opt_pass along with...
22569         (pass_data_cprop_hardreg): ...new pass_data instance and...
22570         (make_pass_cprop_hardreg): ...new function.
22571         * reginfo.c (pass_reginfo_init): Convert from a global struct to a
22572         subclass of rtl_opt_pass along with...
22573         (pass_data_reginfo_init): ...new pass_data instance and...
22574         (make_pass_reginfo_init): ...new function.
22575         * regmove.c (pass_regmove): Convert from a global struct to a subclass
22576         of rtl_opt_pass along with...
22577         (pass_data_regmove): ...new pass_data instance and...
22578         (make_pass_regmove): ...new function.
22579         * regrename.c (pass_regrename): Convert from a global struct to a
22580         subclass of rtl_opt_pass along with...
22581         (pass_data_regrename): ...new pass_data instance and...
22582         (make_pass_regrename): ...new function.
22583         * reorg.c (pass_delay_slots): Convert from a global struct to a
22584         subclass of rtl_opt_pass along with...
22585         (pass_data_delay_slots): ...new pass_data instance and...
22586         (make_pass_delay_slots): ...new function.
22587         (pass_machine_reorg): Convert from a global struct to a subclass of
22588         rtl_opt_pass along with...
22589         (pass_data_machine_reorg): ...new pass_data instance and...
22590         (make_pass_machine_reorg): ...new function.
22591         * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
22592         of rtl_opt_pass along with...
22593         (pass_data_sched): ...new pass_data instance and...
22594         (make_pass_sched): ...new function.
22595         (pass_sched2): Convert from a global struct to a subclass of
22596         rtl_opt_pass along with...
22597         (pass_data_sched2): ...new pass_data instance and...
22598         (make_pass_sched2): ...new function.
22599         * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
22600         to a subclass of rtl_opt_pass along with...
22601         (pass_data_stack_ptr_mod): ...new pass_data instance and...
22602         (make_pass_stack_ptr_mod): ...new function.
22603         * store-motion.c (pass_rtl_store_motion): Convert from a global struct
22604         to a subclass of rtl_opt_pass along with...
22605         (pass_data_rtl_store_motion): ...new pass_data instance and...
22606         (make_pass_rtl_store_motion): ...new function.
22607         * tracer.c (pass_tracer): Convert from a global struct to a subclass
22608         of gimple_opt_pass along with...
22609         (pass_data_tracer): ...new pass_data instance and...
22610         (make_pass_tracer): ...new function.
22611         * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
22612         to a subclass of gimple_opt_pass along with...
22613         (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
22614         (make_pass_diagnose_tm_blocks): ...new function.
22615         (pass_lower_tm): Convert from a global struct to a subclass of
22616         gimple_opt_pass along with...
22617         (pass_data_lower_tm): ...new pass_data instance and...
22618         (make_pass_lower_tm): ...new function.
22619         (pass_tm_init): Convert from a global struct to a subclass of
22620         gimple_opt_pass along with...
22621         (pass_data_tm_init): ...new pass_data instance and...
22622         (make_pass_tm_init): ...new function.
22623         (pass_tm_mark): Convert from a global struct to a subclass of
22624         gimple_opt_pass along with...
22625         (pass_data_tm_mark): ...new pass_data instance and...
22626         (make_pass_tm_mark): ...new function.
22627         (pass_tm_edges): Convert from a global struct to a subclass of
22628         gimple_opt_pass along with...
22629         (pass_data_tm_edges): ...new pass_data instance and...
22630         (make_pass_tm_edges): ...new function.
22631         (pass_tm_memopt): Convert from a global struct to a subclass of
22632         gimple_opt_pass along with...
22633         (pass_data_tm_memopt): ...new pass_data instance and...
22634         (make_pass_tm_memopt): ...new function.
22635         (pass_ipa_tm): Convert from a global struct to a subclass of
22636         simple_ipa_opt_pass along with...
22637         (pass_data_ipa_tm): ...new pass_data instance and...
22638         (make_pass_ipa_tm): ...new function.
22639         * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
22640         subclass of gimple_opt_pass along with...
22641         (pass_data_call_cdce): ...new pass_data instance and...
22642         (make_pass_call_cdce): ...new function.
22643         * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
22644         subclass of gimple_opt_pass along with...
22645         (pass_data_build_cfg): ...new pass_data instance and...
22646         (make_pass_build_cfg): ...new function.
22647         (pass_split_crit_edges): Convert from a global struct to a subclass of
22648         gimple_opt_pass along with...
22649         (pass_data_split_crit_edges): ...new pass_data instance and...
22650         (make_pass_split_crit_edges): ...new function.
22651         (pass_warn_function_return): Convert from a global struct to a
22652         subclass of gimple_opt_pass along with...
22653         (pass_data_warn_function_return): ...new pass_data instance and...
22654         (make_pass_warn_function_return): ...new function.
22655         (pass_warn_function_noreturn): Convert from a global struct to a
22656         subclass of gimple_opt_pass along with...
22657         (pass_data_warn_function_noreturn): ...new pass_data instance and...
22658         (make_pass_warn_function_noreturn): ...new function.
22659         (pass_warn_unused_result): Convert from a global struct to a subclass
22660         of gimple_opt_pass along with...
22661         (pass_data_warn_unused_result): ...new pass_data instance and...
22662         (make_pass_warn_unused_result): ...new function.
22663         * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
22664         a subclass of gimple_opt_pass along with...
22665         (pass_data_merge_phi): ...new pass_data instance and...
22666         (make_pass_merge_phi): ...new function.
22667         * tree-complex.c (pass_lower_complex): Convert from a global struct to
22668         a subclass of gimple_opt_pass along with...
22669         (pass_data_lower_complex): ...new pass_data instance and...
22670         (make_pass_lower_complex): ...new function.
22671         (pass_lower_complex_O0): Convert from a global struct to a subclass of
22672         gimple_opt_pass along with...
22673         (pass_data_lower_complex_O0): ...new pass_data instance and...
22674         (make_pass_lower_complex_O0): ...new function.
22675         * tree-eh.c (pass_lower_eh): Convert from a global struct to a
22676         subclass of gimple_opt_pass along with...
22677         (pass_data_lower_eh): ...new pass_data instance and...
22678         (make_pass_lower_eh): ...new function.
22679         (pass_refactor_eh): Convert from a global struct to a subclass of
22680         gimple_opt_pass along with...
22681         (pass_data_refactor_eh): ...new pass_data instance and...
22682         (make_pass_refactor_eh): ...new function.
22683         (pass_lower_resx): Convert from a global struct to a subclass of
22684         gimple_opt_pass along with...
22685         (pass_data_lower_resx): ...new pass_data instance and...
22686         (make_pass_lower_resx): ...new function.
22687         (pass_lower_eh_dispatch): Convert from a global struct to a subclass
22688         of gimple_opt_pass along with...
22689         (pass_data_lower_eh_dispatch): ...new pass_data instance and...
22690         (make_pass_lower_eh_dispatch): ...new function.
22691         (pass_cleanup_eh): Convert from a global struct to a subclass of
22692         gimple_opt_pass along with...
22693         (pass_data_cleanup_eh): ...new pass_data instance and...
22694         (make_pass_cleanup_eh): ...new function.
22695         * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
22696         to a subclass of simple_ipa_opt_pass along with...
22697         (pass_data_ipa_lower_emutls): ...new pass_data instance and...
22698         (make_pass_ipa_lower_emutls): ...new function.
22699         * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
22700         a subclass of gimple_opt_pass along with...
22701         (pass_data_if_conversion): ...new pass_data instance and...
22702         (make_pass_if_conversion): ...new function.
22703         * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
22704         subclass of gimple_opt_pass along with...
22705         (pass_data_build_ssa): ...new pass_data instance and...
22706         (make_pass_build_ssa): ...new function.
22707         * tree-loop-distribution.c (pass_loop_distribution): Convert from a
22708         global struct to a subclass of gimple_opt_pass along with...
22709         (pass_data_loop_distribution): ...new pass_data instance and...
22710         (make_pass_loop_distribution): ...new function.
22711         * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
22712         subclass of gimple_opt_pass along with...
22713         (pass_data_mudflap_1): ...new pass_data instance and...
22714         (make_pass_mudflap_1): ...new function.
22715         (pass_mudflap_2): Convert from a global struct to a subclass of
22716         gimple_opt_pass along with...
22717         (pass_data_mudflap_2): ...new pass_data instance and...
22718         (make_pass_mudflap_2): ...new function.
22719         * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
22720         subclass of gimple_opt_pass along with...
22721         (pass_data_mudflap_1): ...new pass_data instance and...
22722         (make_pass_mudflap_1): ...new function.
22723         (pass_mudflap_2): Convert from a global struct to a subclass of
22724         gimple_opt_pass along with...
22725         (pass_data_mudflap_2): ...new pass_data instance and...
22726         (make_pass_mudflap_2): ...new function.
22727         * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
22728         gimple_opt_pass along with...
22729         (pass_data_nrv): ...new pass_data instance and...
22730         (make_pass_nrv): ...new function.
22731         (pass_return_slot): Convert from a global struct to a subclass of
22732         gimple_opt_pass along with...
22733         (pass_data_return_slot): ...new pass_data instance and...
22734         (make_pass_return_slot): ...new function.
22735         * tree-object-size.c (pass_object_sizes): Convert from a global struct
22736         to a subclass of gimple_opt_pass along with...
22737         (pass_data_object_sizes): ...new pass_data instance and...
22738         (make_pass_object_sizes): ...new function.
22739         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
22740         global struct to a subclass of gimple_opt_pass along with...
22741         (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
22742         and...
22743         (make_pass_cleanup_cfg_post_optimizing): ...new function.
22744         (pass_fixup_cfg): Convert from a global struct to a subclass of
22745         gimple_opt_pass along with...
22746         (pass_data_fixup_cfg): ...new pass_data instance and...
22747         (make_pass_fixup_cfg): ...new function.
22748         * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
22749         (make_pass_mudflap_1): ...new function.
22750         (pass_mudflap_2): Replace declaration with that of...
22751         (make_pass_mudflap_2): ...new function.
22752         (pass_asan): Replace declaration with that of...
22753         (make_pass_asan): ...new function.
22754         (pass_asan_O0): Replace declaration with that of...
22755         (make_pass_asan_O0): ...new function.
22756         (pass_tsan): Replace declaration with that of...
22757         (make_pass_tsan): ...new function.
22758         (pass_tsan_O0): Replace declaration with that of...
22759         (make_pass_tsan_O0): ...new function.
22760         (pass_lower_cf): Replace declaration with that of...
22761         (make_pass_lower_cf): ...new function.
22762         (pass_refactor_eh): Replace declaration with that of...
22763         (make_pass_refactor_eh): ...new function.
22764         (pass_lower_eh): Replace declaration with that of...
22765         (make_pass_lower_eh): ...new function.
22766         (pass_lower_eh_dispatch): Replace declaration with that of...
22767         (make_pass_lower_eh_dispatch): ...new function.
22768         (pass_lower_resx): Replace declaration with that of...
22769         (make_pass_lower_resx): ...new function.
22770         (pass_build_cfg): Replace declaration with that of...
22771         (make_pass_build_cfg): ...new function.
22772         (pass_early_tree_profile): Replace declaration with that of...
22773         (make_pass_early_tree_profile): ...new function.
22774         (pass_cleanup_eh): Replace declaration with that of...
22775         (make_pass_cleanup_eh): ...new function.
22776         (pass_sra): Replace declaration with that of...
22777         (make_pass_sra): ...new function.
22778         (pass_sra_early): Replace declaration with that of...
22779         (make_pass_sra_early): ...new function.
22780         (pass_early_ipa_sra): Replace declaration with that of...
22781         (make_pass_early_ipa_sra): ...new function.
22782         (pass_tail_recursion): Replace declaration with that of...
22783         (make_pass_tail_recursion): ...new function.
22784         (pass_tail_calls): Replace declaration with that of...
22785         (make_pass_tail_calls): ...new function.
22786         (pass_tree_loop): Replace declaration with that of...
22787         (make_pass_tree_loop): ...new function.
22788         (pass_tree_loop_init): Replace declaration with that of...
22789         (make_pass_tree_loop_init): ...new function.
22790         (pass_lim): Replace declaration with that of...
22791         (make_pass_lim): ...new function.
22792         (pass_tree_unswitch): Replace declaration with that of...
22793         (make_pass_tree_unswitch): ...new function.
22794         (pass_predcom): Replace declaration with that of...
22795         (make_pass_predcom): ...new function.
22796         (pass_iv_canon): Replace declaration with that of...
22797         (make_pass_iv_canon): ...new function.
22798         (pass_scev_cprop): Replace declaration with that of...
22799         (make_pass_scev_cprop): ...new function.
22800         (pass_empty_loop): Replace declaration with that of...
22801         (make_pass_empty_loop): ...new function.
22802         (pass_record_bounds): Replace declaration with that of...
22803         (make_pass_record_bounds): ...new function.
22804         (pass_graphite): Replace declaration with that of...
22805         (make_pass_graphite): ...new function.
22806         (pass_graphite_transforms): Replace declaration with that of...
22807         (make_pass_graphite_transforms): ...new function.
22808         (pass_if_conversion): Replace declaration with that of...
22809         (make_pass_if_conversion): ...new function.
22810         (pass_loop_distribution): Replace declaration with that of...
22811         (make_pass_loop_distribution): ...new function.
22812         (pass_vectorize): Replace declaration with that of...
22813         (make_pass_vectorize): ...new function.
22814         (pass_slp_vectorize): Replace declaration with that of...
22815         (make_pass_slp_vectorize): ...new function.
22816         (pass_complete_unroll): Replace declaration with that of...
22817         (make_pass_complete_unroll): ...new function.
22818         (pass_complete_unrolli): Replace declaration with that of...
22819         (make_pass_complete_unrolli): ...new function.
22820         (pass_parallelize_loops): Replace declaration with that of...
22821         (make_pass_parallelize_loops): ...new function.
22822         (pass_loop_prefetch): Replace declaration with that of...
22823         (make_pass_loop_prefetch): ...new function.
22824         (pass_iv_optimize): Replace declaration with that of...
22825         (make_pass_iv_optimize): ...new function.
22826         (pass_tree_loop_done): Replace declaration with that of...
22827         (make_pass_tree_loop_done): ...new function.
22828         (pass_ch): Replace declaration with that of...
22829         (make_pass_ch): ...new function.
22830         (pass_ccp): Replace declaration with that of...
22831         (make_pass_ccp): ...new function.
22832         (pass_phi_only_cprop): Replace declaration with that of...
22833         (make_pass_phi_only_cprop): ...new function.
22834         (pass_build_ssa): Replace declaration with that of...
22835         (make_pass_build_ssa): ...new function.
22836         (pass_build_alias): Replace declaration with that of...
22837         (make_pass_build_alias): ...new function.
22838         (pass_build_ealias): Replace declaration with that of...
22839         (make_pass_build_ealias): ...new function.
22840         (pass_dominator): Replace declaration with that of...
22841         (make_pass_dominator): ...new function.
22842         (pass_dce): Replace declaration with that of...
22843         (make_pass_dce): ...new function.
22844         (pass_dce_loop): Replace declaration with that of...
22845         (make_pass_dce_loop): ...new function.
22846         (pass_cd_dce): Replace declaration with that of...
22847         (make_pass_cd_dce): ...new function.
22848         (pass_call_cdce): Replace declaration with that of...
22849         (make_pass_call_cdce): ...new function.
22850         (pass_merge_phi): Replace declaration with that of...
22851         (make_pass_merge_phi): ...new function.
22852         (pass_split_crit_edges): Replace declaration with that of...
22853         (make_pass_split_crit_edges): ...new function.
22854         (pass_pre): Replace declaration with that of...
22855         (make_pass_pre): ...new function.
22856         (pass_profile): Replace declaration with that of...
22857         (make_pass_profile): ...new function.
22858         (pass_strip_predict_hints): Replace declaration with that of...
22859         (make_pass_strip_predict_hints): ...new function.
22860         (pass_lower_complex_O0): Replace declaration with that of...
22861         (make_pass_lower_complex_O0): ...new function.
22862         (pass_lower_complex): Replace declaration with that of...
22863         (make_pass_lower_complex): ...new function.
22864         (pass_lower_vector): Replace declaration with that of...
22865         (make_pass_lower_vector): ...new function.
22866         (pass_lower_vector_ssa): Replace declaration with that of...
22867         (make_pass_lower_vector_ssa): ...new function.
22868         (pass_lower_omp): Replace declaration with that of...
22869         (make_pass_lower_omp): ...new function.
22870         (pass_diagnose_omp_blocks): Replace declaration with that of...
22871         (make_pass_diagnose_omp_blocks): ...new function.
22872         (pass_expand_omp): Replace declaration with that of...
22873         (make_pass_expand_omp): ...new function.
22874         (pass_expand_omp_ssa): Replace declaration with that of...
22875         (make_pass_expand_omp_ssa): ...new function.
22876         (pass_object_sizes): Replace declaration with that of...
22877         (make_pass_object_sizes): ...new function.
22878         (pass_strlen): Replace declaration with that of...
22879         (make_pass_strlen): ...new function.
22880         (pass_fold_builtins): Replace declaration with that of...
22881         (make_pass_fold_builtins): ...new function.
22882         (pass_stdarg): Replace declaration with that of...
22883         (make_pass_stdarg): ...new function.
22884         (pass_early_warn_uninitialized): Replace declaration with that of...
22885         (make_pass_early_warn_uninitialized): ...new function.
22886         (pass_late_warn_uninitialized): Replace declaration with that of...
22887         (make_pass_late_warn_uninitialized): ...new function.
22888         (pass_cse_reciprocals): Replace declaration with that of...
22889         (make_pass_cse_reciprocals): ...new function.
22890         (pass_cse_sincos): Replace declaration with that of...
22891         (make_pass_cse_sincos): ...new function.
22892         (pass_optimize_bswap): Replace declaration with that of...
22893         (make_pass_optimize_bswap): ...new function.
22894         (pass_optimize_widening_mul): Replace declaration with that of...
22895         (make_pass_optimize_widening_mul): ...new function.
22896         (pass_warn_function_return): Replace declaration with that of...
22897         (make_pass_warn_function_return): ...new function.
22898         (pass_warn_function_noreturn): Replace declaration with that of...
22899         (make_pass_warn_function_noreturn): ...new function.
22900         (pass_cselim): Replace declaration with that of...
22901         (make_pass_cselim): ...new function.
22902         (pass_phiopt): Replace declaration with that of...
22903         (make_pass_phiopt): ...new function.
22904         (pass_forwprop): Replace declaration with that of...
22905         (make_pass_forwprop): ...new function.
22906         (pass_phiprop): Replace declaration with that of...
22907         (make_pass_phiprop): ...new function.
22908         (pass_tree_ifcombine): Replace declaration with that of...
22909         (make_pass_tree_ifcombine): ...new function.
22910         (pass_dse): Replace declaration with that of...
22911         (make_pass_dse): ...new function.
22912         (pass_nrv): Replace declaration with that of...
22913         (make_pass_nrv): ...new function.
22914         (pass_rename_ssa_copies): Replace declaration with that of...
22915         (make_pass_rename_ssa_copies): ...new function.
22916         (pass_sink_code): Replace declaration with that of...
22917         (make_pass_sink_code): ...new function.
22918         (pass_fre): Replace declaration with that of...
22919         (make_pass_fre): ...new function.
22920         (pass_check_data_deps): Replace declaration with that of...
22921         (make_pass_check_data_deps): ...new function.
22922         (pass_copy_prop): Replace declaration with that of...
22923         (make_pass_copy_prop): ...new function.
22924         (pass_vrp): Replace declaration with that of...
22925         (make_pass_vrp): ...new function.
22926         (pass_uncprop): Replace declaration with that of...
22927         (make_pass_uncprop): ...new function.
22928         (pass_return_slot): Replace declaration with that of...
22929         (make_pass_return_slot): ...new function.
22930         (pass_reassoc): Replace declaration with that of...
22931         (make_pass_reassoc): ...new function.
22932         (pass_rebuild_cgraph_edges): Replace declaration with that of...
22933         (make_pass_rebuild_cgraph_edges): ...new function.
22934         (pass_remove_cgraph_callee_edges): Replace declaration with that of...
22935         (make_pass_remove_cgraph_callee_edges): ...new function.
22936         (pass_build_cgraph_edges): Replace declaration with that of...
22937         (make_pass_build_cgraph_edges): ...new function.
22938         (pass_local_pure_const): Replace declaration with that of...
22939         (make_pass_local_pure_const): ...new function.
22940         (pass_tracer): Replace declaration with that of...
22941         (make_pass_tracer): ...new function.
22942         (pass_warn_unused_result): Replace declaration with that of...
22943         (make_pass_warn_unused_result): ...new function.
22944         (pass_diagnose_tm_blocks): Replace declaration with that of...
22945         (make_pass_diagnose_tm_blocks): ...new function.
22946         (pass_lower_tm): Replace declaration with that of...
22947         (make_pass_lower_tm): ...new function.
22948         (pass_tm_init): Replace declaration with that of...
22949         (make_pass_tm_init): ...new function.
22950         (pass_tm_mark): Replace declaration with that of...
22951         (make_pass_tm_mark): ...new function.
22952         (pass_tm_memopt): Replace declaration with that of...
22953         (make_pass_tm_memopt): ...new function.
22954         (pass_tm_edges): Replace declaration with that of...
22955         (make_pass_tm_edges): ...new function.
22956         (pass_split_functions): Replace declaration with that of...
22957         (make_pass_split_functions): ...new function.
22958         (pass_feedback_split_functions): Replace declaration with that of...
22959         (make_pass_feedback_split_functions): ...new function.
22960         (pass_strength_reduction): Replace declaration with that of...
22961         (make_pass_strength_reduction): ...new function.
22962         (pass_ipa_lower_emutls): Replace declaration with that of...
22963         (make_pass_ipa_lower_emutls): ...new function.
22964         (pass_ipa_function_and_variable_visibility): Replace declaration with
22965         that of...
22966         (make_pass_ipa_function_and_variable_visibility): ...new function.
22967         (pass_ipa_tree_profile): Replace declaration with that of...
22968         (make_pass_ipa_tree_profile): ...new function.
22969         (pass_early_local_passes): Replace declaration with that of...
22970         (make_pass_early_local_passes): ...new function.
22971         (pass_ipa_whole_program_visibility): Replace declaration with that
22972         of...
22973         (make_pass_ipa_whole_program_visibility): ...new function.
22974         (pass_ipa_lto_gimple_out): Replace declaration with that of...
22975         (make_pass_ipa_lto_gimple_out): ...new function.
22976         (pass_ipa_increase_alignment): Replace declaration with that of...
22977         (make_pass_ipa_increase_alignment): ...new function.
22978         (pass_ipa_inline): Replace declaration with that of...
22979         (make_pass_ipa_inline): ...new function.
22980         (pass_ipa_free_lang_data): Replace declaration with that of...
22981         (make_pass_ipa_free_lang_data): ...new function.
22982         (pass_ipa_free_inline_summary): Replace declaration with that of...
22983         (make_pass_ipa_free_inline_summary): ...new function.
22984         (pass_ipa_cp): Replace declaration with that of...
22985         (make_pass_ipa_cp): ...new function.
22986         (pass_ipa_reference): Replace declaration with that of...
22987         (make_pass_ipa_reference): ...new function.
22988         (pass_ipa_pure_const): Replace declaration with that of...
22989         (make_pass_ipa_pure_const): ...new function.
22990         (pass_ipa_pta): Replace declaration with that of...
22991         (make_pass_ipa_pta): ...new function.
22992         (pass_ipa_lto_finish_out): Replace declaration with that of...
22993         (make_pass_ipa_lto_finish_out): ...new function.
22994         (pass_ipa_tm): Replace declaration with that of...
22995         (make_pass_ipa_tm): ...new function.
22996         (pass_ipa_profile): Replace declaration with that of...
22997         (make_pass_ipa_profile): ...new function.
22998         (pass_ipa_cdtor_merge): Replace declaration with that of...
22999         (make_pass_ipa_cdtor_merge): ...new function.
23000         (pass_cleanup_cfg_post_optimizing): Replace declaration with that
23001         of...
23002         (make_pass_cleanup_cfg_post_optimizing): ...new function.
23003         (pass_init_datastructures): Replace declaration with that of...
23004         (make_pass_init_datastructures): ...new function.
23005         (pass_fixup_cfg): Replace declaration with that of...
23006         (make_pass_fixup_cfg): ...new function.
23007         (pass_expand): Replace declaration with that of...
23008         (make_pass_expand): ...new function.
23009         (pass_instantiate_virtual_regs): Replace declaration with that of...
23010         (make_pass_instantiate_virtual_regs): ...new function.
23011         (pass_rtl_fwprop): Replace declaration with that of...
23012         (make_pass_rtl_fwprop): ...new function.
23013         (pass_rtl_fwprop_addr): Replace declaration with that of...
23014         (make_pass_rtl_fwprop_addr): ...new function.
23015         (pass_jump): Replace declaration with that of...
23016         (make_pass_jump): ...new function.
23017         (pass_jump2): Replace declaration with that of...
23018         (make_pass_jump2): ...new function.
23019         (pass_lower_subreg): Replace declaration with that of...
23020         (make_pass_lower_subreg): ...new function.
23021         (pass_cse): Replace declaration with that of...
23022         (make_pass_cse): ...new function.
23023         (pass_fast_rtl_dce): Replace declaration with that of...
23024         (make_pass_fast_rtl_dce): ...new function.
23025         (pass_ud_rtl_dce): Replace declaration with that of...
23026         (make_pass_ud_rtl_dce): ...new function.
23027         (pass_rtl_dce): Replace declaration with that of...
23028         (make_pass_rtl_dce): ...new function.
23029         (pass_rtl_dse1): Replace declaration with that of...
23030         (make_pass_rtl_dse1): ...new function.
23031         (pass_rtl_dse2): Replace declaration with that of...
23032         (make_pass_rtl_dse2): ...new function.
23033         (pass_rtl_dse3): Replace declaration with that of...
23034         (make_pass_rtl_dse3): ...new function.
23035         (pass_rtl_cprop): Replace declaration with that of...
23036         (make_pass_rtl_cprop): ...new function.
23037         (pass_rtl_pre): Replace declaration with that of...
23038         (make_pass_rtl_pre): ...new function.
23039         (pass_rtl_hoist): Replace declaration with that of...
23040         (make_pass_rtl_hoist): ...new function.
23041         (pass_rtl_store_motion): Replace declaration with that of...
23042         (make_pass_rtl_store_motion): ...new function.
23043         (pass_cse_after_global_opts): Replace declaration with that of...
23044         (make_pass_cse_after_global_opts): ...new function.
23045         (pass_rtl_ifcvt): Replace declaration with that of...
23046         (make_pass_rtl_ifcvt): ...new function.
23047         (pass_into_cfg_layout_mode): Replace declaration with that of...
23048         (make_pass_into_cfg_layout_mode): ...new function.
23049         (pass_outof_cfg_layout_mode): Replace declaration with that of...
23050         (make_pass_outof_cfg_layout_mode): ...new function.
23051         (pass_loop2): Replace declaration with that of...
23052         (make_pass_loop2): ...new function.
23053         (pass_rtl_loop_init): Replace declaration with that of...
23054         (make_pass_rtl_loop_init): ...new function.
23055         (pass_rtl_move_loop_invariants): Replace declaration with that of...
23056         (make_pass_rtl_move_loop_invariants): ...new function.
23057         (pass_rtl_unswitch): Replace declaration with that of...
23058         (make_pass_rtl_unswitch): ...new function.
23059         (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
23060         (make_pass_rtl_unroll_and_peel_loops): ...new function.
23061         (pass_rtl_doloop): Replace declaration with that of...
23062         (make_pass_rtl_doloop): ...new function.
23063         (pass_rtl_loop_done): Replace declaration with that of...
23064         (make_pass_rtl_loop_done): ...new function.
23065         (pass_web): Replace declaration with that of...
23066         (make_pass_web): ...new function.
23067         (pass_cse2): Replace declaration with that of...
23068         (make_pass_cse2): ...new function.
23069         (pass_df_initialize_opt): Replace declaration with that of...
23070         (make_pass_df_initialize_opt): ...new function.
23071         (pass_df_initialize_no_opt): Replace declaration with that of...
23072         (make_pass_df_initialize_no_opt): ...new function.
23073         (pass_reginfo_init): Replace declaration with that of...
23074         (make_pass_reginfo_init): ...new function.
23075         (pass_inc_dec): Replace declaration with that of...
23076         (make_pass_inc_dec): ...new function.
23077         (pass_stack_ptr_mod): Replace declaration with that of...
23078         (make_pass_stack_ptr_mod): ...new function.
23079         (pass_initialize_regs): Replace declaration with that of...
23080         (make_pass_initialize_regs): ...new function.
23081         (pass_combine): Replace declaration with that of...
23082         (make_pass_combine): ...new function.
23083         (pass_if_after_combine): Replace declaration with that of...
23084         (make_pass_if_after_combine): ...new function.
23085         (pass_ree): Replace declaration with that of...
23086         (make_pass_ree): ...new function.
23087         (pass_partition_blocks): Replace declaration with that of...
23088         (make_pass_partition_blocks): ...new function.
23089         (pass_match_asm_constraints): Replace declaration with that of...
23090         (make_pass_match_asm_constraints): ...new function.
23091         (pass_regmove): Replace declaration with that of...
23092         (make_pass_regmove): ...new function.
23093         (pass_split_all_insns): Replace declaration with that of...
23094         (make_pass_split_all_insns): ...new function.
23095         (pass_fast_rtl_byte_dce): Replace declaration with that of...
23096         (make_pass_fast_rtl_byte_dce): ...new function.
23097         (pass_lower_subreg2): Replace declaration with that of...
23098         (make_pass_lower_subreg2): ...new function.
23099         (pass_mode_switching): Replace declaration with that of...
23100         (make_pass_mode_switching): ...new function.
23101         (pass_sms): Replace declaration with that of...
23102         (make_pass_sms): ...new function.
23103         (pass_sched): Replace declaration with that of...
23104         (make_pass_sched): ...new function.
23105         (pass_ira): Replace declaration with that of...
23106         (make_pass_ira): ...new function.
23107         (pass_reload): Replace declaration with that of...
23108         (make_pass_reload): ...new function.
23109         (pass_clean_state): Replace declaration with that of...
23110         (make_pass_clean_state): ...new function.
23111         (pass_branch_prob): Replace declaration with that of...
23112         (make_pass_branch_prob): ...new function.
23113         (pass_value_profile_transformations): Replace declaration with that
23114         of...
23115         (make_pass_value_profile_transformations): ...new function.
23116         (pass_postreload_cse): Replace declaration with that of...
23117         (make_pass_postreload_cse): ...new function.
23118         (pass_gcse2): Replace declaration with that of...
23119         (make_pass_gcse2): ...new function.
23120         (pass_split_after_reload): Replace declaration with that of...
23121         (make_pass_split_after_reload): ...new function.
23122         (pass_branch_target_load_optimize1): Replace declaration with that
23123         of...
23124         (make_pass_branch_target_load_optimize1): ...new function.
23125         (pass_thread_prologue_and_epilogue): Replace declaration with that
23126         of...
23127         (make_pass_thread_prologue_and_epilogue): ...new function.
23128         (pass_stack_adjustments): Replace declaration with that of...
23129         (make_pass_stack_adjustments): ...new function.
23130         (pass_peephole2): Replace declaration with that of...
23131         (make_pass_peephole2): ...new function.
23132         (pass_if_after_reload): Replace declaration with that of...
23133         (make_pass_if_after_reload): ...new function.
23134         (pass_regrename): Replace declaration with that of...
23135         (make_pass_regrename): ...new function.
23136         (pass_cprop_hardreg): Replace declaration with that of...
23137         (make_pass_cprop_hardreg): ...new function.
23138         (pass_reorder_blocks): Replace declaration with that of...
23139         (make_pass_reorder_blocks): ...new function.
23140         (pass_branch_target_load_optimize2): Replace declaration with that
23141         of...
23142         (make_pass_branch_target_load_optimize2): ...new function.
23143         (pass_leaf_regs): Replace declaration with that of...
23144         (make_pass_leaf_regs): ...new function.
23145         (pass_split_before_sched2): Replace declaration with that of...
23146         (make_pass_split_before_sched2): ...new function.
23147         (pass_compare_elim_after_reload): Replace declaration with that of...
23148         (make_pass_compare_elim_after_reload): ...new function.
23149         (pass_sched2): Replace declaration with that of...
23150         (make_pass_sched2): ...new function.
23151         (pass_stack_regs): Replace declaration with that of...
23152         (make_pass_stack_regs): ...new function.
23153         (pass_stack_regs_run): Replace declaration with that of...
23154         (make_pass_stack_regs_run): ...new function.
23155         (pass_df_finish): Replace declaration with that of...
23156         (make_pass_df_finish): ...new function.
23157         (pass_compute_alignments): Replace declaration with that of...
23158         (make_pass_compute_alignments): ...new function.
23159         (pass_duplicate_computed_gotos): Replace declaration with that of...
23160         (make_pass_duplicate_computed_gotos): ...new function.
23161         (pass_variable_tracking): Replace declaration with that of...
23162         (make_pass_variable_tracking): ...new function.
23163         (pass_free_cfg): Replace declaration with that of...
23164         (make_pass_free_cfg): ...new function.
23165         (pass_machine_reorg): Replace declaration with that of...
23166         (make_pass_machine_reorg): ...new function.
23167         (pass_cleanup_barriers): Replace declaration with that of...
23168         (make_pass_cleanup_barriers): ...new function.
23169         (pass_delay_slots): Replace declaration with that of...
23170         (make_pass_delay_slots): ...new function.
23171         (pass_split_for_shorten_branches): Replace declaration with that of...
23172         (make_pass_split_for_shorten_branches): ...new function.
23173         (pass_split_before_regstack): Replace declaration with that of...
23174         (make_pass_split_before_regstack): ...new function.
23175         (pass_convert_to_eh_region_ranges): Replace declaration with that
23176         of...
23177         (make_pass_convert_to_eh_region_ranges): ...new function.
23178         (pass_shorten_branches): Replace declaration with that of...
23179         (make_pass_shorten_branches): ...new function.
23180         (pass_set_nothrow_function_flags): Replace declaration with that of...
23181         (make_pass_set_nothrow_function_flags): ...new function.
23182         (pass_dwarf2_frame): Replace declaration with that of...
23183         (make_pass_dwarf2_frame): ...new function.
23184         (pass_final): Replace declaration with that of...
23185         (make_pass_final): ...new function.
23186         (pass_rtl_seqabstr): Replace declaration with that of...
23187         (make_pass_rtl_seqabstr): ...new function.
23188         (pass_release_ssa_names): Replace declaration with that of...
23189         (make_pass_release_ssa_names): ...new function.
23190         (pass_early_inline): Replace declaration with that of...
23191         (make_pass_early_inline): ...new function.
23192         (pass_inline_parameters): Replace declaration with that of...
23193         (make_pass_inline_parameters): ...new function.
23194         (pass_update_address_taken): Replace declaration with that of...
23195         (make_pass_update_address_taken): ...new function.
23196         (pass_convert_switch): Replace declaration with that of...
23197         (make_pass_convert_switch): ...new function.
23198         * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
23199         to a subclass of simple_ipa_opt_pass along with...
23200         (pass_data_ipa_tree_profile): ...new pass_data instance and...
23201         (make_pass_ipa_tree_profile): ...new function.
23202         * tree-sra.c (pass_sra_early): Convert from a global struct to a
23203         subclass of gimple_opt_pass along with...
23204         (pass_data_sra_early): ...new pass_data instance and...
23205         (make_pass_sra_early): ...new function.
23206         (pass_sra): Convert from a global struct to a subclass of
23207         gimple_opt_pass along with...
23208         (pass_data_sra): ...new pass_data instance and...
23209         (make_pass_sra): ...new function.
23210         (pass_early_ipa_sra): Convert from a global struct to a subclass of
23211         gimple_opt_pass along with...
23212         (pass_data_early_ipa_sra): ...new pass_data instance and...
23213         (make_pass_early_ipa_sra): ...new function.
23214         * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
23215         subclass of gimple_opt_pass along with...
23216         (pass_data_ccp): ...new pass_data instance and...
23217         (make_pass_ccp): ...new function.
23218         (pass_fold_builtins): Convert from a global struct to a subclass of
23219         gimple_opt_pass along with...
23220         (pass_data_fold_builtins): ...new pass_data instance and...
23221         (make_pass_fold_builtins): ...new function.
23222         * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
23223         subclass of gimple_opt_pass along with...
23224         (pass_data_copy_prop): ...new pass_data instance and...
23225         (make_pass_copy_prop): ...new function.
23226         * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
23227         global struct to a subclass of gimple_opt_pass along with...
23228         (pass_data_rename_ssa_copies): ...new pass_data instance and...
23229         (make_pass_rename_ssa_copies): ...new function.
23230         * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
23231         subclass of gimple_opt_pass along with...
23232         (pass_data_dce): ...new pass_data instance and...
23233         (make_pass_dce): ...new function.
23234         (pass_dce_loop): Convert from a global struct to a subclass of
23235         gimple_opt_pass along with...
23236         (pass_data_dce_loop): ...new pass_data instance and...
23237         (make_pass_dce_loop): ...new function.
23238         (pass_cd_dce): Convert from a global struct to a subclass of
23239         gimple_opt_pass along with...
23240         (pass_data_cd_dce): ...new pass_data instance and...
23241         (make_pass_cd_dce): ...new function.
23242         * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
23243         subclass of gimple_opt_pass along with...
23244         (pass_data_dominator): ...new pass_data instance and...
23245         (make_pass_dominator): ...new function.
23246         (pass_phi_only_cprop): Convert from a global struct to a subclass of
23247         gimple_opt_pass along with...
23248         (pass_data_phi_only_cprop): ...new pass_data instance and...
23249         (make_pass_phi_only_cprop): ...new function.
23250         * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
23251         subclass of gimple_opt_pass along with...
23252         (pass_data_dse): ...new pass_data instance and...
23253         (make_pass_dse): ...new function.
23254         * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
23255         a subclass of gimple_opt_pass along with...
23256         (pass_data_forwprop): ...new pass_data instance and...
23257         (make_pass_forwprop): ...new function.
23258         * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
23259         struct to a subclass of gimple_opt_pass along with...
23260         (pass_data_tree_ifcombine): ...new pass_data instance and...
23261         (make_pass_tree_ifcombine): ...new function.
23262         * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
23263         subclass of gimple_opt_pass along with...
23264         (pass_data_ch): ...new pass_data instance and...
23265         (make_pass_ch): ...new function.
23266         * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
23267         subclass of gimple_opt_pass along with...
23268         (pass_data_tree_loop): ...new pass_data instance and...
23269         (make_pass_tree_loop): ...new function.
23270         (pass_tree_loop_init): Convert from a global struct to a subclass of
23271         gimple_opt_pass along with...
23272         (pass_data_tree_loop_init): ...new pass_data instance and...
23273         (make_pass_tree_loop_init): ...new function.
23274         (pass_lim): Convert from a global struct to a subclass of
23275         gimple_opt_pass along with...
23276         (pass_data_lim): ...new pass_data instance and...
23277         (make_pass_lim): ...new function.
23278         (pass_tree_unswitch): Convert from a global struct to a subclass of
23279         gimple_opt_pass along with...
23280         (pass_data_tree_unswitch): ...new pass_data instance and...
23281         (make_pass_tree_unswitch): ...new function.
23282         (pass_predcom): Convert from a global struct to a subclass of
23283         gimple_opt_pass along with...
23284         (pass_data_predcom): ...new pass_data instance and...
23285         (make_pass_predcom): ...new function.
23286         (pass_vectorize): Convert from a global struct to a subclass of
23287         gimple_opt_pass along with...
23288         (pass_data_vectorize): ...new pass_data instance and...
23289         (make_pass_vectorize): ...new function.
23290         (pass_graphite): Convert from a global struct to a subclass of
23291         gimple_opt_pass along with...
23292         (pass_data_graphite): ...new pass_data instance and...
23293         (make_pass_graphite): ...new function.
23294         (pass_graphite_transforms): Convert from a global struct to a subclass
23295         of gimple_opt_pass along with...
23296         (pass_data_graphite_transforms): ...new pass_data instance and...
23297         (make_pass_graphite_transforms): ...new function.
23298         (pass_check_data_deps): Convert from a global struct to a subclass of
23299         gimple_opt_pass along with...
23300         (pass_data_check_data_deps): ...new pass_data instance and...
23301         (make_pass_check_data_deps): ...new function.
23302         (pass_iv_canon): Convert from a global struct to a subclass of
23303         gimple_opt_pass along with...
23304         (pass_data_iv_canon): ...new pass_data instance and...
23305         (make_pass_iv_canon): ...new function.
23306         (pass_scev_cprop): Convert from a global struct to a subclass of
23307         gimple_opt_pass along with...
23308         (pass_data_scev_cprop): ...new pass_data instance and...
23309         (make_pass_scev_cprop): ...new function.
23310         (pass_record_bounds): Convert from a global struct to a subclass of
23311         gimple_opt_pass along with...
23312         (pass_data_record_bounds): ...new pass_data instance and...
23313         (make_pass_record_bounds): ...new function.
23314         (pass_complete_unroll): Convert from a global struct to a subclass of
23315         gimple_opt_pass along with...
23316         (pass_data_complete_unroll): ...new pass_data instance and...
23317         (make_pass_complete_unroll): ...new function.
23318         (pass_complete_unrolli): Convert from a global struct to a subclass of
23319         gimple_opt_pass along with...
23320         (pass_data_complete_unrolli): ...new pass_data instance and...
23321         (make_pass_complete_unrolli): ...new function.
23322         (pass_parallelize_loops): Convert from a global struct to a subclass
23323         of gimple_opt_pass along with...
23324         (pass_data_parallelize_loops): ...new pass_data instance and...
23325         (make_pass_parallelize_loops): ...new function.
23326         (pass_loop_prefetch): Convert from a global struct to a subclass of
23327         gimple_opt_pass along with...
23328         (pass_data_loop_prefetch): ...new pass_data instance and...
23329         (make_pass_loop_prefetch): ...new function.
23330         (pass_iv_optimize): Convert from a global struct to a subclass of
23331         gimple_opt_pass along with...
23332         (pass_data_iv_optimize): ...new pass_data instance and...
23333         (make_pass_iv_optimize): ...new function.
23334         (pass_tree_loop_done): Convert from a global struct to a subclass of
23335         gimple_opt_pass along with...
23336         (pass_data_tree_loop_done): ...new pass_data instance and...
23337         (make_pass_tree_loop_done): ...new function.
23338         * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
23339         struct to a subclass of gimple_opt_pass along with...
23340         (pass_data_cse_reciprocals): ...new pass_data instance and...
23341         (make_pass_cse_reciprocals): ...new function.
23342         (pass_cse_sincos): Convert from a global struct to a subclass of
23343         gimple_opt_pass along with...
23344         (pass_data_cse_sincos): ...new pass_data instance and...
23345         (make_pass_cse_sincos): ...new function.
23346         (pass_optimize_bswap): Convert from a global struct to a subclass of
23347         gimple_opt_pass along with...
23348         (pass_data_optimize_bswap): ...new pass_data instance and...
23349         (make_pass_optimize_bswap): ...new function.
23350         (pass_optimize_widening_mul): Convert from a global struct to a
23351         subclass of gimple_opt_pass along with...
23352         (pass_data_optimize_widening_mul): ...new pass_data instance and...
23353         (make_pass_optimize_widening_mul): ...new function.
23354         * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
23355         subclass of gimple_opt_pass along with...
23356         (pass_data_phiopt): ...new pass_data instance and...
23357         (make_pass_phiopt): ...new function.
23358         (pass_cselim): Convert from a global struct to a subclass of
23359         gimple_opt_pass along with...
23360         (pass_data_cselim): ...new pass_data instance and...
23361         (make_pass_cselim): ...new function.
23362         * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
23363         subclass of gimple_opt_pass along with...
23364         (pass_data_phiprop): ...new pass_data instance and...
23365         (make_pass_phiprop): ...new function.
23366         * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
23367         subclass of gimple_opt_pass along with...
23368         (pass_data_pre): ...new pass_data instance and...
23369         (make_pass_pre): ...new function.
23370         (pass_fre): Convert from a global struct to a subclass of
23371         gimple_opt_pass along with...
23372         (pass_data_fre): ...new pass_data instance and...
23373         (make_pass_fre): ...new function.
23374         * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
23375         subclass of gimple_opt_pass along with...
23376         (pass_data_reassoc): ...new pass_data instance and...
23377         (make_pass_reassoc): ...new function.
23378         * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
23379         subclass of gimple_opt_pass along with...
23380         (pass_data_sink_code): ...new pass_data instance and...
23381         (make_pass_sink_code): ...new function.
23382         * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
23383         subclass of gimple_opt_pass along with...
23384         (pass_data_strlen): ...new pass_data instance and...
23385         (make_pass_strlen): ...new function.
23386         * tree-ssa-structalias.c (pass_build_alias): Convert from a global
23387         struct to a subclass of gimple_opt_pass along with...
23388         (pass_data_build_alias): ...new pass_data instance and...
23389         (make_pass_build_alias): ...new function.
23390         (pass_build_ealias): Convert from a global struct to a subclass of
23391         gimple_opt_pass along with...
23392         (pass_data_build_ealias): ...new pass_data instance and...
23393         (make_pass_build_ealias): ...new function.
23394         (pass_ipa_pta): Convert from a global struct to a subclass of
23395         simple_ipa_opt_pass along with...
23396         (pass_data_ipa_pta): ...new pass_data instance and...
23397         (make_pass_ipa_pta): ...new function.
23398         * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
23399         subclass of gimple_opt_pass along with...
23400         (pass_data_uncprop): ...new pass_data instance and...
23401         (make_pass_uncprop): ...new function.
23402         * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
23403         global struct to a subclass of gimple_opt_pass along with...
23404         (pass_data_late_warn_uninitialized): ...new pass_data instance and...
23405         (make_pass_late_warn_uninitialized): ...new function.
23406         * tree-ssa.c (pass_init_datastructures): Convert from a global struct
23407         to a subclass of gimple_opt_pass along with...
23408         (pass_data_init_datastructures): ...new pass_data instance and...
23409         (make_pass_init_datastructures): ...new function.
23410         (pass_early_warn_uninitialized): Convert from a global struct to a
23411         subclass of gimple_opt_pass along with...
23412         (pass_data_early_warn_uninitialized): ...new pass_data instance and...
23413         (make_pass_early_warn_uninitialized): ...new function.
23414         (pass_update_address_taken): Convert from a global struct to a
23415         subclass of gimple_opt_pass along with...
23416         (pass_data_update_address_taken): ...new pass_data instance and...
23417         (make_pass_update_address_taken): ...new function.
23418         * tree-ssanames.c (pass_release_ssa_names): Convert from a global
23419         struct to a subclass of gimple_opt_pass along with...
23420         (pass_data_release_ssa_names): ...new pass_data instance and...
23421         (make_pass_release_ssa_names): ...new function.
23422         * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
23423         subclass of gimple_opt_pass along with...
23424         (pass_data_stdarg): ...new pass_data instance and...
23425         (make_pass_stdarg): ...new function.
23426         * tree-switch-conversion.c (pass_convert_switch): Convert from a
23427         global struct to a subclass of gimple_opt_pass along with...
23428         (pass_data_convert_switch): ...new pass_data instance and...
23429         (make_pass_convert_switch): ...new function.
23430         * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
23431         to a subclass of gimple_opt_pass along with...
23432         (pass_data_tail_recursion): ...new pass_data instance and...
23433         (make_pass_tail_recursion): ...new function.
23434         (pass_tail_calls): Convert from a global struct to a subclass of
23435         gimple_opt_pass along with...
23436         (pass_data_tail_calls): ...new pass_data instance and...
23437         (make_pass_tail_calls): ...new function.
23438         * tree-vect-generic.c (pass_lower_vector): Convert from a global
23439         struct to a subclass of gimple_opt_pass along with...
23440         (pass_data_lower_vector): ...new pass_data instance and...
23441         (make_pass_lower_vector): ...new function.
23442         (pass_lower_vector_ssa): Convert from a global struct to a subclass of
23443         gimple_opt_pass along with...
23444         (pass_data_lower_vector_ssa): ...new pass_data instance and...
23445         (make_pass_lower_vector_ssa): ...new function.
23446         * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
23447         to a subclass of gimple_opt_pass along with...
23448         (pass_data_slp_vectorize): ...new pass_data instance and...
23449         (make_pass_slp_vectorize): ...new function.
23450         (pass_ipa_increase_alignment): Convert from a global struct to a
23451         subclass of simple_ipa_opt_pass along with...
23452         (pass_data_ipa_increase_alignment): ...new pass_data instance and...
23453         (make_pass_ipa_increase_alignment): ...new function.
23454         * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
23455         gimple_opt_pass along with...
23456         (pass_data_vrp): ...new pass_data instance and...
23457         (make_pass_vrp): ...new function.
23458         * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
23459         subclass of simple_ipa_opt_pass along with...
23460         (pass_data_ipa_free_lang_data): ...new pass_data instance and...
23461         (make_pass_ipa_free_lang_data): ...new function.
23462         * tsan.c (pass_tsan): Convert from a global struct to a subclass of
23463         gimple_opt_pass along with...
23464         (pass_data_tsan): ...new pass_data instance and...
23465         (make_pass_tsan): ...new function.
23466         (pass_tsan_O0): Convert from a global struct to a subclass of
23467         gimple_opt_pass along with...
23468         (pass_data_tsan_O0): ...new pass_data instance and...
23469         (make_pass_tsan_O0): ...new function.
23470         * var-tracking.c (pass_variable_tracking): Convert from a global
23471         struct to a subclass of rtl_opt_pass along with...
23472         (pass_data_variable_tracking): ...new pass_data instance and...
23473         (make_pass_variable_tracking): ...new function.
23474         * web.c (pass_web): Convert from a global struct to a subclass of
23475         rtl_opt_pass along with...
23476         (pass_data_web): ...new pass_data instance and...
23477         (make_pass_web): ...new function.
23478         * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
23479         declaration with that of...
23480         (make_pass_mode_switch_use): ...new function.
23481         (pass_resolve_sw_modes): Replace declaration with that of...
23482         (make_pass_resolve_sw_modes): ...new function.
23483         * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
23484         from a global struct to a subclass of rtl_opt_pass along with...
23485         (pass_data_mode_switch_use): ...new pass_data instance and...
23486         (make_pass_mode_switch_use): ...new function.
23487         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
23488         from a global struct to a subclass of rtl_opt_pass along with...
23489         (pass_data_resolve_sw_modes): ...new pass_data instance and...
23490         (make_pass_resolve_sw_modes): ...new function.
23491         * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
23492         struct to a subclass of rtl_opt_pass along with...
23493         (pass_data_insert_vzeroupper): ...new pass_data instance and...
23494         (make_pass_insert_vzeroupper): ...new function.
23495         * config/sparc/sparc.c (pass_work_around_errata): Convert from a
23496         global struct to a subclass of rtl_opt_pass along with...
23497         (pass_data_work_around_errata): ...new pass_data instance and...
23498         (make_pass_work_around_errata): ...new function.
23499         * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
23500         struct to a subclass of rtl_opt_pass along with...
23501         (pass_data_mips_machine_reorg2): ...new pass_data instance and...
23502         (make_pass_mips_machine_reorg2): ...new function.
23504 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
23506         * passes.c (pass_manager::operator new): New.
23508 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
23510         Handwritten part of conversion of passes to C++ classes.
23512         * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
23513         (toplev.o): Add dep on PASS_MANAGER_H.
23514         * cgraphunit.c (cgraph_process_new_functions): Rework invocation
23515         of early local pases to reflect this moving from a global to a
23516         member of gcc::pass_manager.
23517         (cgraph_add_new_function): Likewise.
23518         * lto-cgraph.c (lto_output_node): Update for conversion of
23519         struct ipa_opt_pass_d to a C++ subclass of opt_pass.
23520         * passes.c (opt_pass::clone): New.
23521         (opt_pass::gate): New.
23522         (opt_pass::execute): New.
23523         (opt_pass::opt_pass): New.
23524         (pass_manager::execute_early_local_passes): New.
23525         (pass_manager::execute_pass_mode_switching): new.
23526         (finish_optimization_passes): Convert to...
23527         (pass_manager::finish_optimization_passes): ...this.
23528         (finish_optimization_passes): Update for conversion of passes to
23529         C++ classes.
23530         (register_dump_files_1): Use has_gate since we cannot portably
23531         check a vtable entry against NULL.
23532         (dump_one_pass): Likewise.
23533         (ipa_write_summaries_2): Likewise.
23534         (ipa_write_optimization_summaries_1): Likewise.
23535         (ipa_read_summaries_1): Likewise.
23536         (ipa_read_optimization_summaries_1): Likewise.
23537         (execute_ipa_stmt_fixups): Likewise.
23538         (pass_manager::pass_manager): Rewrite pass-creation, invoking
23539         pass-creation functions rather than wiring up globals, and
23540         storing the results in fields of pass_manager generated using
23541         pass-instances.def.
23542         (pass_manager::dump_profile_report): Update for conversion of
23543         passes to C++ classes.
23544         (pass_manager::execute_ipa_summary_passes): Likewise.
23545         (execute_one_ipa_transform_pass): Likewise.
23546         (execute_one_pass): Use has_gate and has_execute since we cannot
23547         portably check a vtable entry against NULL.
23548         * pass_manager.h (pass_manager::finish_optimization_passes): New.
23549         (pass_manager): Use pass-instances.def to add fields for the
23550         various pass instances.
23551         * toplev.c (finalize): Update for move of
23552         finish_optimization_passes to a method of gcc::pass_manager.
23553         * toplev.h (finish_optimization_passes): Move to method of class
23554         pass_manager.
23555         * tree-pass.h (struct pass_data): New.
23556         (opt_pass): Convert to C++ class, make it a subclass of pass_data.
23557         (opt_pass::gate): Convert to virtual function.
23558         (opt_pass::~opt_pass): New.
23559         (opt_pass::clone): New.
23560         (opt_pass::execute): Convert to virtual function.
23561         (opt_pass::opt_pass): New.
23562         (opt_pass::ctxt_): new.
23563         (gimple_opt_pass): Convert to subclass of opt_pass.
23564         (gimple_opt_pass::gimple_opt_pass): New.
23565         (rtl_opt_pass): Convert to subclass of opt_pass.
23566         (rtl_opt_pass::rtl_opt_pass): New.
23567         (ipa_opt_pass_d): Convert to subclass of opt_pass.
23568         (ipa_opt_pass_d::ipa_opt_pass_d): New.
23569         (simple_ipa_opt_pass): Convert to subclass of opt_pass.
23570         (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
23571         * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
23572         invocation of pass_mode_switching to reflect this moving from a
23573         global to a member of gcc::pass_manager.
23574         (ix86_option_override): Rework how pass_insert_vzeroupper is
23575         added to the pass_manager to reflect autogenerated changes.
23576         * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
23578 2013-08-05  Richard Earnshaw  <rearnsha@arm.com>
23580         PR rtl-optimization/57708
23581         * recog.c (peep2_find_free_register): Validate all regs in a
23582         multi-reg mode.
23584 2013-08-05  Jan Hubicka  <jh@suse.cz>
23586         PR lto/57602
23587         * cgraph.c (verify_cgraph_node): Accept local flags from other
23588         partitions.
23589         * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
23590         (function_and_variable_visibility): Likewise.
23591         * trans-mem.c (ipa_tm_create_version): TM versions are not local.
23593 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
23595         * graph.c (init_graph_slim_pretty_print): Remove.
23596         (print_graph_cfg): Do not call it.  Use local pretty printer.
23597         (start_graph_dump): Likewise.
23599 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
23601         * gimple-pretty-print.c (buffer): Remove.
23602         (initialized): Likewise.
23603         (maybe_init_pretty_print): Likewise.
23604         (print_gimple_stmt): Do not call it.  Use non-static local
23605         pretty_printer variable.
23606         (print_gimple_expr): Likewise.
23607         (print_gimple_seq): Likewise.
23608         (gimple_dump_bb): Likewise.
23610 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
23612         * asan.c (asan_pp): Remove.
23613         (asan_pp_initialized): Likewise.
23614         (asan_pp_initialize): Likewise.
23615         (asan_pp_string): Take a pretty_printer parameter.  Adjust callers.
23616         (asan_emit_stack_protection): Tidy.  Use local pretty printer.
23617         (asan_add_global): Likewise.
23619 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
23621         * pretty-print.h (pp_base): Remove.  Adjust dependent macros.
23622         * diagnostic.h (diagnostic_flush_buffer): Adjust.
23623         * pretty-print.c (pp_formatted_text_data): Likewise.
23624         (pp_indent): Rename from pp_base_indent.
23625         (pp_format): Rename from pp_base_format.
23626         (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
23627         (pp_format_verbatim): Rename from pp_base_format_verbatim.
23628         (pp_flush): Rename from pp_base_flush.
23629         (pp_set_line_maximum_length): Rename from
23630         pp_base_set_line_maximum_length.
23631         (pp_clear_output_area): Rename from pp_base_clear_output_area.
23632         (pp_set_prefix): Rename from pp_base_set_prefix.
23633         (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
23634         (pp_emit_prefix): Rename from pp_base_emit_prefix.
23635         (pp_append_text): Rename from pp_base_append_text.
23636         (pp_formatted_text): Rename from pp_base_formatted_text.
23637         (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
23638         (pp_remaining_character_count_for_line): Rename from
23639         pp_base_remaining_character_count_for_line.
23640         (pp_newline): Rename from pp_base_newline.
23641         (pp_character): Rename from pp_base_character.
23642         (pp_string): Rename from pp_base_string.
23643         (pp_maybe_space): Rename from pp_base_maybe_space.
23644         * asan.c (asan_pp_string): Adjust.
23645         (asan_emit_stack_protection): Likewise.
23646         (asan_add_global): Likewise.
23647         * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
23648         * tree-mudflap.c (mf_varname_tree): Likewise.
23649         * tree-pretty-print.c (pp_tree_identifier): Rename from
23650         pp_base_tree_identifier.
23651         * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
23652         Declare as function.
23654 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
23656         * pretty-print.h (pp_bar_bar): New.
23657         (pp_ampersand_ampersand): Likewise.
23658         (pp_less_equal): Likewise.
23659         (pp_greater_equal): Likewise.
23660         * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
23661         printer functions instead of pp_string or operators and punctuators.
23662         (dump_gimple_call): Likewise.
23663         (dump_gimple_omp_for): Likewise.
23664         (dump_gimple_transaction): Likewise.
23665         (dump_gimple_phi): Likewise.
23666         (pp_gimple_stmt_1): Likewise.
23667         * sched-vis.c (print_insn): Likewise.
23668         * tree-mudflap.c (mf_varname_tree): Likewise.
23669         * tree-pretty-print.c (dump_block_node): Likewise.
23670         (dump_generic_node): Likewise.
23672 2013-08-02  Jan Hubicka  <jh@suse.cz>
23674         * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
23675         boundaries.
23676         * lto-streamer-out.c (tree_is_indexable): Results decls and
23677         parm decls are not indexable.
23678         (DFS_write_tree_body): Do not follow args and results.
23679         (hash_tree): Likewise.
23680         (output_functions): Rearrange so struct function is needed
23681         only when real body is output; be able to also ouptut abstract
23682         functions; output DECL_ARGUMENTS and DECL_RESULT.
23683         (lto_output): When not in WPA, ale store abstract functions.
23684         (write_symbol): Do not care about RESULT_DECL.
23685         (output_symbol_p): Handle correctly sbtract decls.
23686         * lto-streamer-in.c (input_function): Rearrange so struct
23687         function can be NULL at entry; allow streaming of
23688         functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
23689         * ipa.c (symtab_remove_unreachable_nodes): Silence confused
23690         sanity check during LTO.
23691         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
23692         RESULT_DECl and DECL_ARGUMENTS.
23693         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
23694         Likewise.
23696 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
23698         * pretty-print.h (pp_underscore): New.
23699         (pp_comma): Tidy.
23700         * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
23701         printer functions instead of pp_character.
23702         (dump_binary_rhs): Likewise.
23703         (dump_ternary_rhs): Likewise.
23704         (dump_gimple_call_args): Likewise.
23705         (pp_points_to_solution): Likewise.
23706         (dump_gimple_call): Likewise.
23707         (dump_gimple_switch): Likewise.
23708         (dump_gimple_cond): Likewise.
23709         (dump_gimple_bind): Likewise.
23710         (dump_gimple_try): Likewise.
23711         (dump_gimple_omp_for): Likewise.
23712         (dump_gimple_omp_continue): Likewise.
23713         (dump_gimple_omp_single): Likewise.
23714         (dump_gimple_omp_sections): Likewise.
23715         (dump_gimple_omp_block): Likewise.
23716         (dump_gimple_omp_critical): Likewise.
23717         (dump_gimple_transaction): Likewise.
23718         (dump_gimple_asm): Likewise.
23719         (dump_gimple_phi): Likewise.
23720         (dump_gimple_omp_parallel): Likewise.
23721         (dump_gimple_omp_task): Likewise.
23722         (dump_gimple_omp_atomic_load): Likewise.
23723         (dump_gimple_omp_atomic_store): Likewise.
23724         (dump_gimple_mem_ops): Likewise.
23725         (pp_gimple_stmt_1): Likewise.
23726         (pp_cfg_jump): Likewise.
23727         (dump_implicit_edges): Likewise.
23728         (gimple_dump_bb_for_graph): Likewise.
23729         * graph.c (draw_cfg_node): Likewise.
23730         * langhooks.c (lhd_print_error_function): Likewise.
23731         * sched-vis.c (print_exp): Likewise.
23732         (print_value): Likewise.
23733         (print_pattern): Likewise.
23734         (print_insn): Likewise.
23735         (rtl_dump_bb_for_graph): Likewise.
23736         * tree-pretty-print.c (dump_function_declaration): Likewise.
23737         (dump_array_domain): Likewise.
23738         (dump_omp_clause): Likewise.
23739         (dump_location): Likewise.
23740         (dump_generic_node): Likewise.
23741         (print_struct_decl): Likewise.
23742         * diagnostic.c (diagnostic_show_locus): Use pp_space.
23744 2013-08-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
23746         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
23747         candidate table when replacing a candidate statement.
23748         (replace_rhs_if_not_dup): Likewise.
23749         (replace_one_candidate): Likewise.
23751 2013-08-02  Jan Hubicka  <jh@suse.cz>
23752             Martin Liska  <marxin.liska@gmail.com>
23754         * cgraphunit.c (add_new_function): Fix logic when adding from
23755         late IPA pass.
23756         (assemble_thunk): Rename to ...
23757         (expand_thunk); .. this one; export; get it working with
23758         general functions; make produced gimple valid.
23759         * cgraph.h (expand_thunk): Declare.
23761 2013-08-02  Jan Hubicka  <jh@suse.cz>
23763         * ipa-cp.c (gather_context_independent_values): Use
23764         ipa_get_param_move_cost.
23765         (get_replacement_map): Remove PARAM; move parameter folding
23766         into tree-inline.c
23767         (create_specialized_node): Update.
23768         * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
23769         assert that we have gimple body; update move_cost.
23770         (count_formal_params): Assert that we have gimple body.
23771         (ipa_dump_param): New function.
23772         (ipa_alloc_node_params): Break out from ...
23773         (ipa_initialize_node_params): ... here.
23774         (ipa_get_vector_of_formal_parms): ICE when used in WPA.
23775         (ipa_write_node_info): Stream move costs.
23776         (ipa_read_node_info): Read move costs.
23777         (ipa_update_after_lto_read): Do not recompute node params.
23778         * ipa-prop.h (ipa_param_descriptor): Add move_cost.
23779         (ipa_get_param): Check we are not in WPA.
23780         (ipa_get_param_move_cost): New.
23781         * tree-inline.c (tree_function_versioning): Fold replacement as needed.
23782         * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
23783         parm numbers to be present.
23785 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
23787         PR rtl-optimization/58048
23788         * lra-constraints.c (process_alt_operands): Don't check asm
23789         operand on register.
23791 2013-08-02  Eric Botcazou  <ebotcazou@adacore.com>
23793         * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
23794         the implied StoreLoad barrier for atomic operations if before.
23796 2013-08-02  Jan Hubicka  <jh@suse.cz>
23797             Martin Liska  <marxin.liska@gmail.com>
23799         * cgraph.c (cgraph_function_body_availability): Do not check
23800         cgraph flags.
23801         * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
23802         symtab_node_availability): Declare.
23803         * ipa.c (can_replace_by_local_alias): New.
23804         (function_and_variable_visibility): Use it.
23805         * symtab.c (symtab_for_node_and_aliases,
23806         symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
23808 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
23810         PR rtl-optimization/57963
23811         * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
23812         (lra_constraints): Use them.
23814 2013-08-02  Sofiane Naci  <sofiane.naci@arm.com>
23816         * config/arm/types.md (define_attr "type"): Add "load_acq"
23817         and "store_rel".
23818         * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
23819         changes.
23820         (cortex_a53_store1): Likewise.
23822 2013-08-01  Jan Hubicka  <jh@suse.cz>
23824         * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
23825         partitions are not needed.
23827 2013-08-01  Uros Bizjak  <ubizjak@gmail.com>
23829         * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
23830         * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
23831         MAYBE_NON_Q_CLASS_P where appropriate.
23833 2013-08-01  Jan Hubicka  <jh@suse.cz>
23835         * cgraph.h (release_function_body): Declare.
23836         * tree.c (free_lang_data_in_decl): Free, parameters and return values
23837         of unused delcarations.
23839 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23841         * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
23842         RTL form when subtracting a constant.
23844 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23846         * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
23847         Generate canonical plus rtx with negated immediate instead of minus
23848         where appropriate.
23849         * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
23851 2013-08-01  Jan Hubicka  <jh@suse.cz>
23853         * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
23854         (cgraph_release_function_body): Likewise.
23855         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
23856         * cgraph.h (cgrpah_node): Rename abstract_and_needed
23857         to used_as_abstract_origin.
23858         * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
23859         symbols used as abstract origins.
23860         * cgraphunit.c (analyze_functions): Update.
23861         * ipa.c (symtab_remove_unreachable_nodes): Recompute
23862         used_as_abstract_origin.
23863         * tree-inline.c (tree_function_versioning): Update
23864         used_as_abstract_origin; be ready for DECL_RESULT and
23865         DECL_ARGUMENTS to be NULL.
23867         * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
23868         for abstract functions.
23869         * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
23870         real symbols.
23872 2013-08-01  Jan Hubicka  <jh@suse.cz>
23874         * profile.c (compute_value_histograms): Fix thinko.
23876 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
23878         * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs.  Add
23879         aarch-common-protos.h to extra_headers.
23880         (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
23881         * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
23882         * config/aarch64/t-aarch64 (aarch-common.o): Define.
23884 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
23886         * config/aarch64/aarch64.md (define_attr "type"): Delete.
23887         Include "../arm/types.md".  Define "type" attribute for all patterns.
23888         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
23889         attribute changes.
23891 2013-07-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
23893         * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
23894         to support power8 load fusion.
23895         (fusion_gpr_mem_load): Likewise.
23897         * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
23899         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
23900         declarations for power8 load fusion.
23901         (emit_fusion_gpr_load): Likewise.
23903         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
23904         tuning for power8, turn on fusion mode by default.  Turn on sign
23905         extending fusion mode if normal fusion mode is on, and we are at
23906         -O2 or -O3.
23907         (fusion_gpr_load_p): New function, return true if we can fuse an
23908         addis instruction with a dependent load to a GPR.
23909         (emit_fusion_gpr_load): Emit the instructions for power8 load
23910         fusion to GPRs.
23912         * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
23913         (VSX load fusion peepholes): New peepholes to fuse together an
23914         addi instruction with a VSX load instruction.
23916         * config/rs6000/rs6000.md (GPR load fusion peepholes): New
23917         peepholes to fuse an addis instruction with a load to a GPR base
23918         register.  If we are supporting sign extending fusions, convert
23919         sign extending loads to zero extending loads and add an explicit
23920         sign extension.
23922 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
23924         * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs.  Add
23925         aarch-common-protos.h to extra_headers.
23926         (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
23927         * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
23928         (arm_early_store_addr_dep): Likewise.
23929         (arm_no_early_alu_shift_dep): Likewise.
23930         (arm_no_early_alu_shift_value_dep): Likewise.
23931         (arm_no_early_mul_dep): Likewise.
23932         (arm_no_early_store_addr_dep): Likewise.
23933         (arm_mac_accumulator_is_mul_result): Likewise.
23934         (arm_mac_accumulator_is_result): Likewise.
23935         * config/arm/aarch-common.c: ... here.  New file.
23936         * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
23937         here to ...
23938         (arm_early_store_addr_dep): Likewise.
23939         (arm_no_early_alu_shift_dep): Likewise.
23940         (arm_no_early_alu_shift_value_dep): Likewise.
23941         (arm_no_early_mul_dep): Likewise.
23942         (arm_no_early_store_addr_dep): Likewise.
23943         (arm_mac_accumulator_is_mul_result): Likewise.
23944         (arm_mac_accumulator_is_result): Likewise.
23945         * config/arm/aarch-common-protos.h: ... here.  New file.
23946         * config/arm/t-arm (aarch-common.o): Define.
23948 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
23950         * config/arm/arm.md: Include new file "types.md".
23951         (define_attr "type"): Move from here to ...
23952         (define_attr "mul32"): Likewise.
23953         (define_attr "mul64"): Likewise.
23954         * config/arm/types.md: ... here.  New file.
23956 2013-07-31  Sebastian Huber  <sebastian.huber@embedded-brains.de>
23958         * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
23959         * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
23961 2013-07-31  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
23963         * gen-pass-instances.awk: Fix offset of substr().
23965 2013-07-31  David Malcolm  <dmalcolm@redhat.com>
23967         * Makefile.in (pass-instances.def): New.
23968         (passes.o): Replace dependency on passes.def with one on
23969         pass-instances.def
23971         * gen-pass-instances.awk: New.
23973         * passes.c (pass_manager::pass_manager): Use pass-instances.def
23974         rather than passes.def, updating local definition of NEXT_PASS
23975         macro to add an extra NUM parameter (currently unused).
23977 2013-07-30  David Malcolm  <dmalcolm@redhat.com>
23979         * Makefile.in (PASS_MANAGER_H): New.
23980         (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
23981         (passes.o): Likewise.
23982         (statistics.o): Likewise.
23983         (cgraphunit.o): Likewise.
23984         (context.o): Depend on PASS_MANAGER_H.
23986         * pass_manager.h: New.
23988         * cgraphunit.c (cgraph_add_new_function): Update for moves
23989         of globals to fields of pass_manager.
23990         (analyze_function): Likewise.
23991         (expand_function): Likewise.
23992         (ipa_passes): Likewise.
23993         (compile): Likewise.
23995         * context.c (context::context): New.
23996         * context.h  (context::context): New.
23997         (context::get_passes): New.
23998         (context::passes_): New.
24000         * lto-cgraph.c (input_node): Update for moves of globals to
24001         fields of pass_manager.
24003         * passes.c (all_passes): Remove, in favor of a field of the
24004         same name within the new class pass_manager.
24005         (all_small_ipa_passes): Likewise.
24006         (all_lowering_passes): Likewise.
24007         (all_regular_ipa_passes): Likewise.
24008         (all_late_ipa_passes): Likewise.
24009         (all_lto_gen_passes): Likewise.
24010         (passes_by_id): Likewise.
24011         (passes_by_id_size): Likewise.
24012         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
24013         the new class pass_manager.
24014         (set_pass_for_id): Convert to...
24015         (pass_manager::set_pass_for_id): ...method.
24016         (get_pass_for_id): Convert to...
24017         (pass_manager::get_pass_for_id): ...method.
24018         (register_one_dump_file): Move body of implementation into...
24019         (pass_manager::register_one_dump_file): ...here.
24020         (register_dump_files_1): Convert to...
24021         (pass_manager::register_dump_files_1): ...method.
24022         (register_dump_files): Convert to...
24023         (pass_manager::register_dump_files): ...method.
24024         (create_pass_tab): Update for moves of globals to fields of
24025         pass_manager.
24026         (dump_passes): Move body of implementation into...
24027         (pass_manager::dump_passes): ...here.
24028         (register_pass): Move body of implementation into...
24029         (pass_manager::register_pass): ...here.
24030         (init_optimization_passes): Convert into...
24031         (pass_manager::pass_manager): ...constructor for new
24032         pass_manager class, and initialize the pass_lists array.
24033         (check_profile_consistency): Update for moves of globals to
24034         fields of pass_manager.
24035         (dump_profile_report): Move body of implementation into...
24036         (pass_manager::dump_profile_report): ...here.
24037         (ipa_write_summaries_1): Update for moves of pass lists from
24038         being globals to fields of pass_manager.
24039         (ipa_write_optimization_summaries): Likewise.
24040         (ipa_read_summaries):  Likewise.
24041         (ipa_read_optimization_summaries): Likewise.
24042         (execute_all_ipa_stmt_fixups): Likewise.
24044         * statistics.c (statistics_fini): Update for moves of globals to
24045         fields of pass_manager.
24047         * toplev.c (general_init): Replace call to
24048         init_optimization_passes with construction of the pass_manager
24049         instance.
24051         * tree-pass.h (all_passes): Remove, in favor of a field of the
24052         same name within the new class pass_manager.
24053         (all_small_ipa_passes): Likewise.
24054         (all_lowering_passes): Likewise.
24055         (all_regular_ipa_passes): Likewise.
24056         (all_lto_gen_passes): Likewise.
24057         (all_late_ipa_passes): Likewise.
24058         (passes_by_id): Likewise.
24059         (passes_by_id_size): Likewise.
24060         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
24061         the new class pass_manager.
24062         (get_pass_for_id): Remove.
24064 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
24066         * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
24067         configs.
24069 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
24071         * arm.md (mulhi3): New expand pattern.
24073 2013-07-30  Jan Hubicka  <jh@suse.cz>
24074             Martin Liska  <marxin.liska@gmail.com>
24076         * profile.c (compute_value_histograms): Do not ICE when
24077         there is mismatch only on some counters.
24079 2013-07-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24081         PR rtl-optimization/57637
24082         * function.c (move_insn_for_shrink_wrap): Also check the
24083         GEN set of the LIVE problem for the liveness analysis
24084         if it exists, otherwise give up.
24086 2013-07-29  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
24088         PR tree-optimization/57993
24089         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
24090         replaced statement in the candidate table.
24091         (phi_add_costs): Return infinite cost when the hidden basis does
24092         not dominate all phis on which the candidate is dependent.
24093         (replace_one_candidate): Record replaced statement in the
24094         candidate table.
24096 2013-07-29  Joern Rennecke  <joern.rennecke@embecosm.com>
24098         * config/epiphany/epiphany.md (*isub_i+2): New peephole.
24099         (ashlv2si3): New expander.
24100         (*ashlv2si3_i): New define_insn_and_split.
24101         * predicates.md (float_operation): Allow patterns with three
24102         basic sub-patterns.
24104         PR rtl-optimization/58021
24105         * mode-switching.c (create_pre_exit): Always split off preceding
24106         insns if we are not at the basic block head.
24108 2013-07-29  Maciej W. Rozycki  <macro@codesourcery.com>
24110         * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
24111         (UCLIBC_DYNAMIC_LINKER): New macro.
24112         * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
24113         `-mnan=2008'.
24114         (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
24115         (UCLIBC_DYNAMIC_LINKER32): Undefine macro first.  Handle
24116         `-mnan=2008'.
24117         (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
24118         (UCLIBC_DYNAMIC_LINKERN32): Likewise.
24119         * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
24120         for SF and DF modes.  Use ieee_quad_format for TF mode.
24121         * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
24122         * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
24123         (mips_option_override): Handle `-mnan=legacy'.
24124         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
24125         `-mabs=2008' and `-mnan=2008'.
24126         (OPTION_DEFAULT_SPECS): Add "nan" default.
24127         (ASM_SPEC): Handle `-mnan='.
24128         [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
24129         * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
24130         comment accordingly.
24131         (neg<mode>2): Likewise.
24132         * config/mips/mips.opt (mabs, mnan): New options.
24133         * doc/install.texi (Configuration): Document `--with-nan=' option.
24134         * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
24135         `-mnan=' options.
24136         (MIPS Options): Document them.
24137         * config.gcc <mips*-*-*>: Handle `--with-nan='.
24138         * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
24139         * configure: Regenerate.
24140         * config.in: Regenerate.
24142 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
24144         * config/i386/i386.md (float post-reload splitters): Do not check
24145         for subregs of SSE registers.
24147 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
24148             H.J. Lu  <hongjiu.lu@intel.com>
24150         PR target/57954
24151         PR target/57988
24152         * config/i386/i386.md (post-reload splitter
24153         to avoid partial SSE reg dependency stalls): New pattern.
24155 2013-07-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
24157         * config/s390/s390.md ("movcc"): Swap load and store instructions.
24159 2013-07-27  Joern Rennecke  <joern.rennecke@embecosm.com>
24161         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
24162         Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
24164 2013-07-26  Cary Coutant  <ccoutant@google.com>
24166         * dwarf2out.c (die_checksum_ordered): Don't include template
24167         instantiations in signature.
24168         (is_template_parameter): New function.
24169         (is_template_instantiation): New function.
24170         (generate_skeleton_bottom_up): Don't include template instantiations
24171         in type unit DIE.
24172         (generate_skeleton): Likewise.
24173         (break_out_comdat_types): Move recursive call to break out nested
24174         types earlier.
24175         (prune_unused_types_mark_generic_parms_dies): Call
24176         is_template_parameter.
24178 2013-07-26  Ian Bolton  <ian.bolton@arm.com>
24180         * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
24181         uses vector registers.
24182         * config/aarch64/iterators.md: Add attributes rtn and vas.
24184 2013-07-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24185             Richard Earnshaw  <richard.earnshaw@arm.com>
24187         * combine.c (simplify_comparison): Re-canonicalize operands
24188         where appropriate.
24189         * config/arm/arm.md (movcond_addsi): New splitter.
24191 2013-07-25  Sterling Augustine  <saugustine@google.com>
24193         * dwarf2out.c (size_of_pubnames): Move code to...
24194         (include_pubname_in_output): ...here.  New.
24195         (want_pubnames): Rearrange.
24196         (output_pubnames): Call include_pubname_in_output.  Move assertion.
24198 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
24200         * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
24202 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
24204         PR target/38836
24205         * doc/extend.texi: Remove obsolete builtins. Fix
24206         typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
24208 2013-07-25  Jan Hubicka  <jh@suse.cz>
24210         * cgraph.c (release_function_body): Break out from ...
24211         (cgraph_release_function_body): ... this one; also release DECL_RESULT
24212         and DECL_ARGUMENTS.
24213         * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
24214         old_tree in the map.
24215         (create_specialized_node): Update.
24216         * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
24217         into index.
24218         * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
24219         DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
24220         * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
24221         * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
24222         DECL_RESULT.
24224 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24226         * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
24227         addsi3_carryin_alt2_<optab>): Correct output template.
24229 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24231         * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
24232         Adjust for arm_restrict_it.
24233         Remove trailing whitespace.
24235 2013-07-25 Â Mark Kettenis Â <kettenis@openbsd.org>
24237         * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
24238         libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
24240         * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
24242 2013-07-25  Vladimir Makarov  <vmakarov@redhat.com>
24244         PR rtl-optimization/57960
24245         * lra-constraints.c (process_alt_operands): Use the right mode
24246         when checking strict_low.
24248 2013-07-25  Jan Hubicka  <jh@suse.cz>
24250         * lto-symtab.c (lto_cgraph_replace_node): Release function body.
24251         * cgraph.c (cgraph_remove_node): Do not release function body
24252         when in cgraph streaming.
24253         * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
24254         in other partitions are not considered reachable; fix handling of
24255         clones.
24257 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24259         * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
24261 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24263         PR target/19599
24264         PR target/57731
24265         PR target/57837
24266         * config/arm/arm.md ("*sibcall_insn): Replace use of
24267         Ss with US. Adjust output for v5 and v4t.
24268         (*sibcall_value_insn): Likewise and loosen predicate on operand0.
24270         * config/arm/constraints.md ("Ss"): Rename to US.
24272 2013-07-25  Terry Guo  <terry.guo@arm.com>
24274         * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
24275         shift_add/shift_sub0/shift_sub1 RTXs.
24277 2013-07-24  Bill Schmidt  <wschmidt@linux.ibm.com>
24278             Anton Blanchard  <anton@au1.ibm.com>
24280         * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
24281         (altivec_vpks<VI_char>ss): Likewise.
24282         (altivec_vpks<VI_char>us): Likewise.
24283         (altivec_vpku<VI_char>us): Likewise.
24284         (altivec_vpku<VI_char>um): Likewise.
24286 2013-07-24  David Malcolm  <dmalcolm@redhat.com>
24288         Introduce context class.
24290         * Makefile.in (CONTEXT_H): New.
24291         (OBJS): Add context.o.
24292         (toplev.o): Add CONTEXT_H to dependencies.
24293         (context.o): New.
24295         * toplev.c (general_init): Create the singleton gcc::context instance.
24297         * context.c: New.
24299         * context.h: New.
24301 2013-07-24  Joern Rennecke  <joern.rennecke@embecosm.com>
24303         PR rtl-optimization/57968
24304         * mode-switching.c (create_pre_exit): Allow instructions that
24305         don't set a return register to need a non-exit mode.
24307 2013-07-24  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
24308             Anton Blanchard  <anton@au1.ibm.com>
24310         * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
24311         operands to vperm for little endian.
24312         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
24313         of lvsl to create the control mask for a vperm for little endian.
24315 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24316             Anton Blanchard  <anton@au1.ibm.com>
24318         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
24319         two operands for little-endian.
24321 2013-07-23  Steve Ellcey  <sellcey@mips.com>
24323         * config/mips/mips.c (mips_case_values_threshold): New.
24324         (TARGET_CASE_VALUES_THRESHOLD): Define.
24326 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24327             Anton Blanchard  <anton@au1.ibm.com>
24329         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
24330         selection of field for vector splat in little endian mode.
24332 2013-07-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
24334         * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
24335         expanders to rs6000.md.
24336         (ior<mode>3): Likewise.
24337         (and<mode>3): Likewise.
24338         (one_cmpl<mode>2): Likewise.
24339         (nor<mode>3): Likewise.
24340         (andc<mode>3): Likewise.
24341         (eqv<mode>3): Likewise.
24342         (nand<mode>3): Likewise.
24343         (orc<mode>3): Likewise.
24345         * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
24346         declaration.
24348         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
24349         to split multi-word logical operations.
24350         (rs6000_split_logical_di): Likewise.
24351         (rs6000_split_logical): Likewise.
24353         * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
24354         (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
24355         and allow TImode operations in 32-bit.
24356         (vsx_and<mode>3_64bit): Likewise.
24357         (vsx_ior<mode>3_32bit): Likewise.
24358         (vsx_ior<mode>3_64bit): Likewise.
24359         (vsx_xor<mode>3_32bit): Likewise.
24360         (vsx_xor<mode>3_64bit): Likewise.
24361         (vsx_one_cmpl<mode>2_32bit): Likewise.
24362         (vsx_one_cmpl<mode>2_64bit): Likewise.
24363         (vsx_nor<mode>3_32bit): Likewise.
24364         (vsx_nor<mode>3_64bit): Likewise.
24365         (vsx_andc<mode>3_32bit): Likewise.
24366         (vsx_andc<mode>3_64bit): Likewise.
24367         (vsx_eqv<mode>3_32bit): Likewise.
24368         (vsx_eqv<mode>3_64bit): Likewise.
24369         (vsx_nand<mode>3_32bit): Likewise.
24370         (vsx_nand<mode>3_64bit): Likewise.
24371         (vsx_orc<mode>3_32bit): Likewise.
24372         (vsx_orc<mode>3_64bit): Likewise.
24374         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
24375         logical types in GPRs.
24377         * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
24378         logical insns to rs6000.md, and allow TImode operations in
24379         32-bit.
24380         (altivec_ior<mode>3): Likewise.
24381         (altivec_xor<mode>3): Likewise.
24382         (altivec_one_cmpl<mode>2): Likewise.
24383         (altivec_nor<mode>3): Likewise.
24384         (altivec_andc<mode>3): Likewise.
24386         * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
24387         attributes for moving the 128-bit logical operations into
24388         rs6000.md.
24389         (BOOL_REGS_OUTPUT): Likewise.
24390         (BOOL_REGS_OP1): Likewise.
24391         (BOOL_REGS_OP2): Likewise.
24392         (BOOL_REGS_UNARY): Likewise.
24393         (BOOL_REGS_AND_CR0): Likewise.
24394         (one_cmpl<mode>2): Add support for DI logical operations on
24395         32-bit, splitting the operations to 32-bit.
24396         (anddi3): Likewise.
24397         (iordi3): Likewise.
24398         (xordi3): Likewise.
24399         (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
24400         changes to combine the 32/64-bit code, allow logical operations on
24401         TI mode in 32-bit, and to use similar match_operator patterns like
24402         scalar mode uses.  Combine the Altivec and VSX code for logical
24403         operations, and move it here.
24404         (ior<mode>3, 128-bit types): Likewise.
24405         (xor<mode>3, 128-bit types): Likewise.
24406         (one_cmpl<mode>3, 128-bit types): Likewise.
24407         (nor<mode>3, 128-bit types): Likewise.
24408         (andc<mode>3, 128-bit types): Likewise.
24409         (eqv<mode>3, 128-bit types): Likewise.
24410         (nand<mode>3, 128-bit types): Likewise.
24411         (orc<mode>3, 128-bit types): Likewise.
24412         (and<mode>3_internal): Likewise.
24413         (bool<mode>3_internal): Likewise.
24414         (boolc<mode>3_internal1): Likewise.
24415         (boolc<mode>3_internal2): Likewise.
24416         (boolcc<mode>3_internal1): Likewise.
24417         (boolcc<mode>3_internal2): Likewise.
24418         (eqv<mode>3_internal1): Likewise.
24419         (eqv<mode>3_internal2): Likewise.
24420         (one_cmpl1<mode>3_internal): Likewise.
24422 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
24424         * config/microblaze/microblaze.c (microblaze_expand_prologue):
24425         Rename flag_stack_usage to flag_stack_usage_info.
24427 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
24429         * config/microblaze/sync.md: New file.
24430         * config/microblaze/microblaze.md: Include sync.md
24431         * config/microblaze/microblaze.c: Add print_operand 'y'.
24432         * config/microblaze/constraints.md: Add memory_contraint
24433         'Q' which is a single register.
24435 2013-07-23  Eric Botcazou  <ebotcazou@adacore.com>
24437         * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
24439 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
24441         * reload.c (find_reloads): Exit loop once we find this operand
24442         cannot be reloaded somehow for this alternative.
24444         * reload.c (find_reloads): Exit loop once we find a hard register.
24446         * rtlanal.c (computed_jump_p): Exit loop once we find label
24447         reference is used.
24449         * i386.c (ix86_pad_returns): Exit loop after setting replace.
24451         * cfgloopmanip.c (remove_path): Exit loop after setting
24452         irred_invalidated.
24454         * gensupport.c (subst_dup): Avoid loop if code is not
24455         MATCH_DUP nor MATCH_OP_DUP.
24457 2013-07-23  Nicklas Bo Jensen  <nbjensen@gmail.com>
24459         * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
24461 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
24463         * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
24464         true for SP_REGNUM if mode == ptr_mode.
24465         * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
24466         with value R0_REGNUM + 31.
24468 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
24470         * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
24471         pad pointer-typed argument downward.
24473 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
24475         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
24476         and __ILP32__ when the ILP32 model is in use.
24478 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
24480         * config/aarch64/aarch64.c (POINTER_BYTES): New define.
24481         (aarch64_load_symref_appropriately): In the case of
24482         SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
24483         to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
24484         (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
24485         change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
24486         if 'mode' doesn't equal to 'ptr_mode'.
24487         (aarch64_output_mi_thunk): Add an assertion on the alignment of
24488         'vcall_offset'; change to call aarch64_emit_move differently depending
24489         on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
24490         to calculate the upper bound of 'vcall_offset'.
24491         (aarch64_cannot_force_const_mem): Change to also return true if
24492         mode != ptr_mode.
24493         (aarch64_legitimize_reload_address): In the case of large
24494         displacements, add new local variable 'xmode' and an assertion
24495         based on it; change to use 'xmode' to generate the new rtx and
24496         reload.
24497         (aarch64_asm_trampoline_template): Change to generate the template
24498         differently depending on TARGET_ILP32 or not; change to use
24499         'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
24500         (aarch64_trampoline_size): Removed.
24501         (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
24502         and replace immediate literals with it.  Change to use 'ptr_mode'
24503         instead of 'DImode' and call convert_memory_address if the mode
24504         of 'fnaddr' doesn't equal to 'ptr_mode'.
24505         (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
24506         to output symbol.
24507         (aarch64_elf_asm_destructor): Likewise.
24508         * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
24509         on TARGET_ILP32 instead of aarch64_trampoline_size.
24510         * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
24511         of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
24512         (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
24513         (loadwb_pair<GPI:mode>_<P:mode>): ... this.  Replace PTR with P.
24514         (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
24515         (storewb_pair<GPI:mode>_<P:mode>): ... this.
24516         (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
24517         depending on the value of 'mode'.
24518         (add_losym_<mode>): New.
24519         (ldr_got_small_<mode>): New, based on ldr_got_small.
24520         (ldr_got_small): Remove.
24521         (ldr_got_small_sidi): New.
24522         * config/aarch64/iterators.md (P): New.
24523         (PTR): Change to 'ptr_mode' in the condition.
24525 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
24527         * config.gcc (aarch64*-*-*): Support --with-abi.
24528         (aarch64*-*-elf): Support --with-multilib-list.
24529         (aarch64*-*-linux*): Likewise.
24530         (supported_defaults): Add abi to aarch64*-*-*.
24531         * configure.ac: Mention AArch64 for --with-multilib-list.
24532         * configure: Re-generated.
24533         * config/aarch64/biarchilp32.h: New file.
24534         * config/aarch64/biarchlp64.h: New file.
24535         * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
24536         (ABI_SPEC): Ditto.
24537         (MULTILIB_DEFAULTS): Ditto.
24538         (DRIVER_SELF_SPECS): Ditto.
24539         (ASM_SPEC): Update to also substitute -mabi.
24540         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
24541         file whose name depends on -mabi= and -mbig-endian.
24542         * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
24543         TARGET_ILP32.
24544         (POINTER_SIZE): New define.
24545         (POINTERS_EXTEND_UNSIGNED): Ditto.
24546         (enum aarch64_abi_type): New enumeration tag.
24547         (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
24548         (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
24549         (TARGET_ILP32): New define.
24550         * config/aarch64/aarch64.opt (mabi): New.
24551         (aarch64_abi): New.
24552         (ilp32, lp64): New values for -mabi.
24553         * config/aarch64/t-aarch64 (comma): New define.
24554         (MULTILIB_OPTIONS): Ditto.
24555         (MULTILIB_DIRNAMES): Ditto.
24556         * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
24557         * doc/invoke.texi: Document -mabi for AArch64.
24559 2013-07-23  Georg-Johann Lay  <avr@gjlay.de>
24561         * config/avr/avr.md: Explain asm print modifier 'r' for REG.
24563 2013-07-22  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
24564             Anton Blanchard  <anton@au1.ibm.com>
24566         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
24567         endianness when selecting field to splat.
24569 2013-07-22  Eric Christopher  <echristo@gmail.com>
24571         * dwarf2out.c (die_odr_checksum): New function to use
24572         CHECKSUM_ macros and ULEB128 for DIE tag.
24573         (generate_type_signature): Use.
24575 2013-07-22  Eric Botcazou  <ebotcazou@adacore.com>
24577         * config.gcc (sparc*-*-*): Accept leon3 processor.
24578         (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
24579         * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
24580         * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
24581         * config/sparc/sparc.opt (enum processor_type): Add leon3.
24582         (mfix-ut699): Adjust comment.
24583         * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
24584         (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
24585         (CPP_CPU_SPEC): Likewise.
24586         (ASM_CPU_SPEC): Likewise.
24587         * config/sparc/sparc.c (leon3_cost): New constant.
24588         (sparc_option_override): Add leon3 support.
24589         (mem_ref): New function.
24590         (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
24591         (sparc_do_work_around_errata): Look into the instruction in the delay
24592         slot and adjust accordingly.  Add fix for the data cache nullify issues
24593         of the UT699.  Change insertion position for the NOP.
24594         * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
24595         (leon3_load): New reservation.
24596         (leon_store): Bump latency to 2.
24597         (grfpu): New automaton.
24598         (grfpu_alu): New unit.
24599         (grfpu_ds): Likewise.
24600         (leon_fp_alu): Adjust.
24601         (leon_fp_mult): Delete.
24602         (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
24603         (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
24604         * config/sparc/sparc.md (cpu): Add leon3.
24605         * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
24606         (swapsi): Likewise.
24607         (atomic_test_and_set): Likewise.
24608         (ldstub): Likewise.
24610 2013-07-22  Jürgen Urban  <JuergenUrban@gmx.de>
24612         * config.gcc (mips*-*-*): Add --with-fpu support.  Make single the
24613         default for R5900 targets.
24614         * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
24615         (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
24616         * config/mips/mips.c (mips_option_override): Report an error for
24617         -march=r5900 -mhard-float -mdouble-float.  Use spu_single_format
24618         for -march=r5900 -mhard-float.
24620 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
24622         * df-problems.c (can_move_insns_across): Exit loop once we
24623         find a non-fixed, non-global register.
24625         * ipa-pure-const.c (propagate_nothrow): Exit loop after
24626         setting can_throw.
24628         * omega.c (omega_eliminate_red): Break after setting red_found.
24629         (omega_problem_has_red_equations): Similarly after setting found.
24630         (omega_query_variable): Similarly after setting coupled.
24632 2013-07-22  Marek Polacek  <polacek@redhat.com>
24634         * gimplify.c: Don't include gimple.h twice.
24636 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24638         * config/arm/constraints.md (Pd): Allow TARGET_THUMB
24639         instead of TARGET_THUMB1.
24640         (Pz): New constraint.
24641         * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
24642         encodings.
24643         (compare_negsi_si): Likewise.
24644         (compare_addsi2_op0): Likewise.
24645         (compare_addsi2_op1): Likewise.
24646         (addsi3_carryin_<optab>): Likewise.
24647         (addsi3_carryin_alt2_<optab>): Likewise.
24648         (addsi3_carryin_shift_<optab>): Disable cond_exec variant
24649         for arm_restrict_it.
24650         (subsi3_carryin): Likewise.
24651         (arm_subsi3_insn): Add alternatives for 16-bit encoding.
24652         (minmax_arithsi): Disable for arm_restrict_it.
24653         (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
24654         (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
24655         (satsi_<SAT:code>_shift): Likewise.
24656         (arm_shiftsi3): Add alternative for 16-bit encoding.
24657         (arm32_movhf): Disable for arm_restrict_it.
24658         (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
24659         (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
24661 2013-07-22  Sofiane Naci  <sofiane.naci@arm.com>
24663         * config/arm/arm.md (attribute "insn"): Delete.
24664         (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
24665         "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
24666         (not_shiftsi): Update for attribute change.
24667         (not_shiftsi_compare0): Likewise.
24668         (not_shiftsi_compare0_scratch): Likewise.
24669         (arm_one_cmplsi2): Likewise.
24670         (thumb1_one_cmplsi2): Likewise.
24671         (notsi_compare0): Likewise.
24672         (notsi_compare0_scratch): Likewise.
24673         (thumb1_movdi_insn): Likewise.
24674         (arm_movsi_insn): Likewise.
24675         (movhi_insn_arch4): Likewise.
24676         (movhi_bytes): Likewise.
24677         (arm_movqi_insn): Likewise.
24678         (thumb1_movqi_insn): Likewise.
24679         (arm32_movhf): Likewise.
24680         (thumb1_movhf): Likewise.
24681         (arm_movsf_soft_insn): Likewise.
24682         (thumb1_movsf_insn): Likewise.
24683         (thumb_movdf_insn): Likewise.
24684         (movsicc_insn): Likewise.
24685         (movsfcc_soft_insn): Likewise.
24686         (and_scc): Likewise.
24687         (cond_move): Likewise.
24688         (if_move_not): Likewise.
24689         (if_not_move): Likewise.
24690         (if_shift_move): Likewise.
24691         (if_move_shift): Likewise.
24692         (if_shift_shift): Likewise.
24693         (if_not_arith): Likewise.
24694         (if_arith_not): Likewise.
24695         (cond_move_not): Likewise.
24696         * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
24697         (neon_mov<mode>): Likewise.
24698         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
24699         (thumb2_movsi_vfp): Likewise.
24700         (movsf_vfp): Likewise.
24701         (thumb2_movsf_vfp): Likewise.
24702         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
24703         change.
24704         (cortexa7_older_only): Likewise.
24705         (cortexa7_younger): Likewise.
24706         * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
24707         (1020alu_shift_op): Likewise.
24708         (1020alu_shift_reg_op): Likewise.
24709         * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
24710         (alu_shift_op): Likewise.
24711         (alu_shift_reg_op): Likewise.
24712         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
24713         (11_alu_shift_op): Likewise.
24714         (11_alu_shift_reg_op): Likewise.
24715         * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
24716         (9_alu_shift_reg_op): Likewise.
24717         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
24718         change.
24719         (cortex_a15_alu_shift): Likewise.
24720         (cortex_a15_alu_shift_reg): Likewise.
24721         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
24722         (cortex_a5_alu_shift): Likewise.
24723         * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
24724         change.
24725         (cortex_a53_alu_shift): Likewise.
24726         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
24727         change.
24728         (cortex_a7_alu_reg): Likewise.
24729         (cortex_a7_alu_shift): Likewise.
24730         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
24731         (cortex_a8_alu_shift): Likewise.
24732         (cortex_a8_alu_shift_reg): Likewise.
24733         (cortex_a8_mov): Likewise.
24734         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
24735         (cortex_a9_dp_shift): Likewise.
24736         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
24737         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
24738         (cortex_r4_mov): Likewise.
24739         (cortex_r4_alu_shift): Likewise.
24740         (cortex_r4_alu_shift_reg): Likewise.
24741         * config/arm/fa526.md (526_alu_op): Update for attribute change.
24742         (526_alu_shift_op): Likewise.
24743         * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
24744         * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
24745         (626te_alu_shift_op): Likewise.
24746         * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
24747         (726te_alu_op): Likewise.
24748         (726te_alu_shift_op): Likewise.
24749         (726te_alu_shift_reg_op): Likewise.
24750         * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
24751         (mp626_alu_shift_op): Likewise.
24752         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
24753         (pj4_alu_e1_conds): Likewise.
24754         (pj4_alu): Likewise.
24755         (pj4_alu_conds): Likewise.
24756         (pj4_shift): Likewise.
24757         (pj4_shift_conds): Likewise.
24758         (pj4_alu_shift): Likewise.
24759         (pj4_alu_shift_conds): Likewise.
24761 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24763         * config/arm/predicates.md (shiftable_operator_strict_it):
24764         New predicate.
24765         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
24766         Disable cond_exec version for arm_restrict_it.
24767         (thumb2_smaxsi3): Convert to generate cond_exec.
24768         (thumb2_sminsi3): Likewise.
24769         (thumb32_umaxsi3): Likewise.
24770         (thumb2_uminsi3): Likewise.
24771         (thumb2_abssi2): Adjust constraints for arm_restrict_it.
24772         (thumb2_neg_abssi2): Likewise.
24773         (thumb2_mov_scc): Add alternative for 16-bit encoding.
24774         (thumb2_movsicc_insn): Adjust alternatives.
24775         (thumb2_mov_negscc): Disable for arm_restrict_it.
24776         (thumb2_mov_negscc_strict_it): New pattern.
24777         (thumb2_mov_notscc_strict_it): New pattern.
24778         (thumb2_mov_notscc): Disable for arm_restrict_it.
24779         (thumb2_ior_scc): Likewise.
24780         (thumb2_ior_scc_strict_it): New pattern.
24781         (thumb2_cond_move): Adjust for arm_restrict_it.
24782         (thumb2_cond_arith): Disable for arm_restrict_it.
24783         (thumb2_cond_arith_strict_it): New pattern.
24784         (thumb2_cond_sub): Adjust for arm_restrict_it.
24785         (thumb2_movcond): Likewise.
24786         (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
24787         (thumb2_zero_extendhisi2_v6): Likewise.
24788         (thumb2_zero_extendqisi2_v6): Likewise.
24789         (orsi_notsi_si): Likewise.
24790         (orsi_not_shiftsi_si): Likewise.
24792 2013-07-22  Georg-Johann Lay  <avr@gjlay.de>
24794         * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
24795         instruction sequence is 1 byte shorter.
24797 2013-07-22  Uros Bizjak  <ubizjak@gmail.com>
24799         * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
24800         it is not needed after split.
24802 2013-07-20  Iain Sandoe  <iain@codesourcery.com>
24804         PR target/51784
24805         * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
24806         second label for nonlocal goto receivers. Don't output pic base labels
24807         unless we're producing PIC; mark that action unreachable().
24808         (ix86_save_reg): If the function contains a nonlocal label, save the
24809         PIC base reg.
24810         * config/darwin-protos.h (machopic_should_output_picbase_label): New.
24811         * config/darwin.c (emitted_pic_label_num): New GTY.
24812         (update_pic_label_number_if_needed): New.
24813         (machopic_output_function_base_name): Adjust for nonlocal receiver
24814         case.
24815         (machopic_should_output_picbase_label): New.
24816         * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
24817         (nonlocal_goto_receiver): New insn and split.
24819 2013-07-20  James Greenhalgh  <james.greenhalgh@arm.com>
24821         * config/aarch64/aarch64-builtins.c
24822         (aarch64_fold_builtin): Fold abs in all modes.
24823         * config/aarch64/aarch64-simd-builtins.def
24824         (abs): Enable for all modes.
24825         * config/aarch64/arm_neon.h
24826         (vabs<q>_s<8,16,32,64): Rewrite using builtins.
24827         (vabs_f64): Add missing intrinsic.
24829 2013-07-19  Ian Bolton  <ian.bolton@arm.com>
24831         * config/aarch64/arm_neon.h (vabs_s64): New function
24833 2013-07-19  Georg-Johann Lay  <avr@gjlay.de>
24835         PR target/57516
24836         * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
24837         * config/avr/avr.md (adjust_len): Add `round'.
24838         * config/avr/avr-protos.h (avr_out_round): New prototype.
24839         (avr_out_plus): Add `out_label' argument.
24840         * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
24841         (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
24842         Handle the case where `insn' is just a pattern.
24843         (avr_out_bitop): Handle the case where `insn' is just a pattern.
24844         (avr_out_round): New function.
24845         (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
24847 2013-07-18  David Holsgrove  <david.holsgrove@xilinx.com>
24849         * config/microblaze/microblaze.c (microblaze_expand_prologue):
24850         Add check for flag_stack_usage to handle -fstack-usage support
24852 2013-07-18  Pat Haugen  <pthaugen@us.ibm.com>
24854         * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
24855         interaction for new Power8 flags and VSX.
24857 2013-07-18  Sriraman Tallam  <tmsriram@google.com>
24859         PR middle-end/57698
24860         * tree-inline.c (expand_call_inline): Emit errors during
24861         early_inlining only if optimization is not turned on.
24863 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
24865         * passes.def: New.
24867         * passes.c (init_optimization_passes): Move the construction of
24868         the pass hierarchy into a new passes.def file.
24870         * Makefile.in (passes.o): Add dependency on passes.def.
24872 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
24874         * passes.c (init_optimization_passes): Introduce macros for
24875         constructing the tree of passes (INSERT_PASSES_AFTER,
24876         PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
24877         TERMINATE_PASS_LIST).
24879 2013-07-18  Vladimir Makarov  <vmakarov@redhat.com>
24880             Wei Mi  <wmi@google.com>
24882         PR rtl-optimization/57878
24883         * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
24884         top.
24885         (reload_pseudo_compare_func): Check nregs first for reload
24886         pseudos.
24888 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
24890         * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
24892 2013-07-18  Po-Chun Chang  <pchang9@cs.wisc.edu>
24894         * read-rtl.c (validate_const_int): Once an invalid character is
24895         seen, quit the loop.
24897         * gengtype.c (write_roots): Similarly once we find the "deletable"
24898         or "if_marked" option.
24900 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
24902         * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
24903         "xtab" and "sat".  Move value "clz" from here to ...
24904         (attriubte "type"): ... here.
24905         (satsi_<SAT:code>): Delete "insn" attribute.
24906         (satsi_<SAT:code>_shift): Likewise.
24907         (arm_zero_extendqisi2addsi): Likewise.
24908         (arm_extendqisi2addsi): Likewise.
24909         (clzsi2): Update for attribute changes.
24910         (rbitsi2): Likewise.
24911         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
24912         attribute.
24913         (arm_usatsihi): Likewise.
24914         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
24916 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
24918         * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
24919         "arlo_imm".  Rename "alu_reg" to "arlo_reg".  Rename "simple_alu_shift"
24920         to "extend".  Split "alu_shift" into "shift" and "arlo_shift".  Split
24921         "alu_shift_reg" into "shift_reg" and "arlo_shift_reg".  List types
24922         in alphabetical order.
24923         (attribute "core_cycles"): Update for attribute changes.
24924         (arm_addsi3): Likewise.
24925         (addsi3_compare0): Likewise.
24926         (addsi3_compare0_scratch): Likewise.
24927         (addsi3_compare_op1): Likewise.
24928         (addsi3_compare_op2): Likewise.
24929         (compare_addsi2_op0): Likewise.
24930         (compare_addsi2_op1): Likewise.
24931         (addsi3_carryin_shift_<optab>): Likewise.
24932         (subsi3_carryin_shift): Likewise.
24933         (rsbsi3_carryin_shift): Likewise.
24934         (arm_subsi3_insn): Likewise.
24935         (subsi3_compare0): Likewise.
24936         (subsi3_compare): Likewise.
24937         (arm_andsi3_insn): Likewise.
24938         (thumb1_andsi3_insn): Likewise.
24939         (andsi3_compare0): Likewise.
24940         (andsi3_compare0_scratch): Likewise.
24941         (zeroextractsi_compare0_scratch
24942         (andsi_not_shiftsi_si): Likewise.
24943         (iorsi3_insn): Likewise.
24944         (iorsi3_compare0): Likewise.
24945         (iorsi3_compare0_scratch): Likewise.
24946         (arm_xorsi3): Likewise.
24947         (thumb1_xorsi3_insn): Likewise.
24948         (xorsi3_compare0): Likewise.
24949         (xorsi3_compare0_scratch): Likewise.
24950         (satsi_<SAT:code>_shift): Likewise.
24951         (rrx): Likewise.
24952         (arm_shiftsi3): Likewise.
24953         (shiftsi3_compare0): Likewise.
24954         (not_shiftsi): Likewise.
24955         (not_shiftsi_compare0): Likewise.
24956         (not_shiftsi_compare0_scratch): Likewise.
24957         (arm_one_cmplsi2): Likewise.
24958         (thumb_one_complsi2): Likewise.
24959         (notsi_compare0): Likewise.
24960         (notsi_compare0_scratch): Likewise.
24961         (thumb1_zero_extendhisi2): Likewise.
24962         (arm_zero_extendhisi2): Likewise.
24963         (arm_zero_extendhisi2_v6): Likewise.
24964         (arm_zero_extendhisi2addsi): Likewise.
24965         (thumb1_zero_extendqisi2): Likewise.
24966         (thumb1_zero_extendqisi2_v6): Likewise.
24967         (arm_zero_extendqisi2): Likewise.
24968         (arm_zero_extendqisi2_v6): Likewise.
24969         (arm_zero_extendqisi2addsi): Likewise.
24970         (thumb1_extendhisi2): Likewise.
24971         (arm_extendhisi2): Likewise.
24972         (arm_extendhisi2_v6): Likewise.
24973         (arm_extendqisi): Likewise.
24974         (arm_extendqisi_v6): Likewise.
24975         (arm_extendqisi2addsi): Likewise.
24976         (thumb1_extendqisi2): Likewise.
24977         (thumb1_movdi_insn): Likewise.
24978         (arm_movsi_insn): Likewise.
24979         (movsi_compare0): Likewise.
24980         (movhi_insn_arch4): Likewise.
24981         (movhi_bytes): Likewise.
24982         (arm_movqi_insn): Likewise.
24983         (thumb1_movqi_insn): Likewise.
24984         (arm32_movhf): Likewise.
24985         (thumb1_movhf): Likewise.
24986         (arm_movsf_soft_insn): Likewise.
24987         (thumb1_movsf_insn): Likewise.
24988         (movdf_soft_insn): Likewise.
24989         (thumb_movdf_insn): Likewise.
24990         (arm_cmpsi_insn): Likewise.
24991         (cmpsi_shiftsi): Likewise.
24992         (cmpsi_shiftsi_swp): Likewise.
24993         (arm_cmpsi_negshiftsi_si): Likewise.
24994         (movsicc_insn): Likewise.
24995         (movsfcc_soft_insn): Likewise.
24996         (arith_shiftsi): Likewise.
24997         (arith_shiftsi_compare0
24998         (arith_shiftsi_compare0_scratch
24999         (sub_shiftsi): Likewise.
25000         (sub_shiftsi_compare0
25001         (sub_shiftsi_compare0_scratch
25002         (and_scc): Likewise.
25003         (cond_move): Likewise.
25004         (if_plus_move): Likewise.
25005         (if_move_plus): Likewise.
25006         (if_move_not): Likewise.
25007         (if_not_move): Likewise.
25008         (if_shift_move): Likewise.
25009         (if_move_shift): Likewise.
25010         (if_shift_shift): Likewise.
25011         (if_not_arith): Likewise.
25012         (if_arith_not): Likewise.
25013         (cond_move_not): Likewise.
25014         (thumb1_ashlsi3): Set type attribute.
25015         (thumb1_ashrsi3): Likewise.
25016         (thumb1_lshrsi3): Likewise.
25017         (thumb1_rotrsi3): Likewise.
25018         (shiftsi3_compare0_scratch): Likewise.
25019         * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
25020         (neon_mov<mode>): Likewise.
25021         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
25022         attribute changes.
25023         (thumb2_movsi_insn): Likewise.
25024         (thumb2_cmpsi_neg_shiftsi): Likewise.
25025         (thumb2_extendqisi_v6): Likewise.
25026         (thumb2_zero_extendhisi2_v6): Likewise.
25027         (thumb2_zero_extendqisi2_v6): Likewise.
25028         (thumb2_shiftsi3_short): Likewise.
25029         (thumb2_addsi3_compare0_scratch): Likewise.
25030         (orsi_not_shiftsi_si): Likewise.
25031         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
25032         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
25033         changes.
25034         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
25035         (1020alu_shift_op): Likewise.
25036         (1020alu_shift_reg_op): Likewise.
25037         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
25038         (alu_shift_op): Likewise.
25039         (alu_shift_reg_op): Likewise.
25040         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
25041         (11_alu_shift_op): Likewise.
25042         (11_alu_shift_reg_op): Likewise.
25043         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
25044         (9_alu_shift_reg_op): Likewise.
25045         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
25046         changes.
25047         (cortex_a15_alu_shift): Likewise.
25048         (cortex_a15_alu_shift_reg): Likewise.
25049         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
25050         changes.
25051         (cortex_a5_alu_shift): Likewise.
25052         * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
25053         changes.
25054         (cortex_a53_alu_shift): Likewise.
25055         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
25056         changes.
25057         (cortex_a7_alu_reg): Likewise.
25058         (cortex_a7_alu_shift): Likewise.
25059         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
25060         changes.
25061         (cortex_a8_alu_shift): Likewise.
25062         (cortex_a8_alu_shift_reg): Likewise.
25063         (cortex_a8_mov): Likewise.
25064         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
25065         (cortex_a9_dp_shift): Likewise.
25066         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
25067         changes.
25068         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
25069         changes.
25070         (cortex_r4_mov): Likewise.
25071         (cortex_r4_alu_shift): Likewise.
25072         (cortex_r4_alu_shift_reg): Likewise.
25073         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
25074         (526_alu_shift_op): Likewise.
25075         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
25076         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
25077         (626te_alu_shift_op): Likewise.
25078         * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
25079         (726te_alu_op): Likewise.
25080         (726te_alu_shift_op): Likewise.
25081         (726te_alu_shift_reg_op): Likewise.
25082         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
25083         (mp626_alu_shift_op): Likewise.
25084         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
25085         (pj4_alu_e1_conds): Likewise.
25086         (pj4_alu): Likewise.
25087         (pj4_alu_conds): Likewise.
25088         (pj4_shift): Likewise.
25089         (pj4_shift_conds): Likewise.
25090         (pj4_alu_shift): Likewise.
25091         (pj4_alu_shift_conds): Likewise.
25092         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
25093         changes.
25094         (cortexa7_older_only): Likewise.
25095         (cortexa7_younger): Likewise.
25097 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
25099         * ipa-pure-const.c (generate_summary): Rename to...
25100         (pure_const_generate_summary): ... this.
25102 2013-07-17  Iain Sandoe  <iain@codesourcery.com>
25104         * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
25106 2013-07-17  Yvan Roux  <yvan.roux@linaro.org>
25108         PR target/57909
25109         * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
25110         usage in HI mode.
25112 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25114         * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
25115         enabled without -march=zEC12.
25116         * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
25117         flags to be set.
25119 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
25121         * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
25122         (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
25123         (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
25124         terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
25125         (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
25126         * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
25127         ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
25128         ISA_HAS_FP4.
25129         <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
25130         and ISA_HAS_NMADD3_NMSUB3.
25131         * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
25132         (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
25133         (nmsub4<mode>, nmsub3<mode>): Likewise.
25134         (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
25136 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
25138         * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
25139         TARGET_MIPS5400 checking.
25141 2013-07-16  Jakub Jelinek  <jakub@redhat.com>
25142             Peter Bergner  <bergner@vnet.ibm.com>
25144         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
25145         registers in the comment.
25146         (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
25147         (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
25148         rather than FIRST_PSEUDO_REGISTERS.
25150 2013-07-16  Peter Bergner  <bergner@vnet.ibm.com>
25152         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
25153         enable extra ISA flags with TARGET_HTM.
25155 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
25157         * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
25158         Fix comment typos.
25160 2013-07-15  Cong Hou  <congh@google.com>
25162         * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
25163         in compare function for sorting.
25165 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
25167         * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
25168         * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
25169         * config/rs6000/rs6000.opt: Add -mhtm option.
25170         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
25171         (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
25172         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
25173         __HTM__ if the HTM instructions are available.
25174         * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
25175         htm_spr_reg_operand): New define_predicates.
25176         * config/rs6000/rs6000.md (define_attr "type"): Add htm.
25177         (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
25178         Include htm.md.
25179         * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
25180         BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
25181         HTM builtin functions.
25182         * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
25183         (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
25184         (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
25185         (rs6000_builtin_mask_calculate): Likewise.
25186         (rs6000_option_override_internal): Likewise.
25187         (bdesc_htm): Add new HTM builtin support.
25188         (htm_spr_num): New function.
25189         (htm_spr_regno): Likewise.
25190         (rs6000_htm_spr_icode): Likewise.
25191         (htm_expand_builtin): Likewise.
25192         (htm_init_builtins): Likewise.
25193         (rs6000_expand_builtin): Add support for HTM builtin functions.
25194         (rs6000_init_builtins): Likewise.
25195         (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
25196         option.
25197         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
25198         (TARGET_HTM, MASK_HTM): Define macros.
25199         (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
25200         (FIXED_REGISTERS): Likewise.
25201         (CALL_USED_REGISTERS): Likewise.
25202         (CALL_REALLY_USED_REGISTERS): Likewise.
25203         (REG_ALLOC_ORDER): Likewise.
25204         (enum reg_class): Likewise.
25205         (REG_CLASS_NAMES): Likewise.
25206         (REG_CLASS_CONTENTS): Likewise.
25207         (REGISTER_NAMES): Likewise.
25208         (ADDITIONAL_REGISTER_NAMES): Likewise.
25209         (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
25210         RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
25211         (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
25212         * config/rs6000/htm.md: New file.
25213         * config/rs6000/htmintrin.h: New file.
25214         * config/rs6000/htmxlintrin.h: New file.
25216 2013-07-15  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25218         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
25219         Define SYMBOL_TINY_GOT, update comment.
25220         * config/aarch64/aarch64.c
25221         (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
25222         (aarch64_expand_mov_immediate): Likewise.
25223         (aarch64_print_operand): Likewise.
25224         (aarch64_classify_symbol): Likewise.
25225         * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
25226         (ldr_got_tiny): Define.
25228 2013-07-13  Tobias Grosser  <tobias@grosser.es>
25230         PR tree-optimization/54094
25231         * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
25232           scheduling dimension for the parallelism check from the polyhedral
25233           information in the AST.
25234         * graphite-dependences.c (carries_deps): Do not assume the schedule is
25235           in 2D + 1 form.
25237 2013-07-13  Jason Merrill  <jason@redhat.com>
25239         * print-tree.c (debug_vec_tree): Use debug_raw.
25240         (debug_raw (vec<tree, va_gc> &)): New.
25241         (debug_raw (vec<tree, va_gc> *)): New.
25242         * tree.h: Declare them.
25244 2013-07-13  Bin Cheng  <bin.cheng@arm.com>
25246         * ifcvt.c (ifcvt_after_combine): New static variable.
25247         (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
25248         for size.
25249         (if_convert): New parameter after_combine.  Set ifcvt_after_combine.
25250         (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
25251         rest_of_handle_if_after_reload): Pass new argument for if_convert.
25253 2013-07-12  Maciej W. Rozycki  <macro@codesourcery.com>
25255         * config/mips/mips.c (mips_expand_call): Remove empty statement.
25257 2013-07-12  Michael Matz  <matz@suse.de>
25259         PR middle-end/55771
25260         * convert.c (convert_to_real): Reject non-float inner types.
25262 2013-07-12  Tejas Belagod  <tejas.belagod@arm.com>
25264         * config/aarch64/aarch64-protos.h
25265         (aarch64_simd_immediate_valid_for_move): Remove.
25266         * config/aarch64/aarch64.c (simd_immediate_info): New member.
25267         (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
25268         cases.
25269         (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
25271 2013-07-11  Steve Ellcey  <sellcey@mips.com>
25273         * config/mips/mips.c (mips_conditional_register_usage): Do not
25274         use t[0-7] registers in MIPS16 mode when optimizing for size.
25276 2013-07-11  Sriraman Tallam  <tmsriram@google.com>
25278         * config/i386/i386.c (dispatch_function_versions): Fix array
25279         indexing of function_version_info to match actual_versions.
25281 2013-07-11  Teresa Johnson  <tejohnson@google.com>
25283         * vec.h (struct va_gc): Move release out-of-line.
25284         (va_gc::release): Call ggc_free on released vec.
25286 2013-07-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25288         * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
25289         Require GOT register as additional operand in UNSPEC.
25290         ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
25291         ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
25292         ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
25293         ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
25294         ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
25295         ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
25296         ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
25298 2013-07-11  Georg-Johann Lay  <avr@gjlay.de>
25300         PR target/57631
25301         * config/avr/avr.c (avr_set_current_function): Sanity-check signal
25302         name seen by assembler/linker rather if available.
25304 2013-07-11  Andreas Schwab  <schwab@suse.de>
25306         * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
25308 2013-07-10  Vladimir Makarov  <vmakarov@redhat.com>
25310         * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
25312 2013-07-10  Joseph Myers  <joseph@codesourcery.com>
25314         * doc/tm.texi.in: Move hook documentation to ....
25315         * target.def: ... here.
25317         * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
25318         text on @hook line.
25319         * doc/tm.texi: Regenerate.
25321 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
25323         PR c++/57869
25324         * doc/invoke.texi: Document -Wconditionally-supported.
25326 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
25328         PR target/57844
25329         * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
25330         of my_fp.
25332 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
25334         PR target/57506
25335         * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
25336         (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
25337         (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
25338         Remove duplicate devices.
25339         * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
25340         * config/avr/t-multilib: Regenerate.
25341         * config/avr/avr-tables.opt: Regenerate.
25342         * doc/avr-mmcu.texi: Regenerate.
25344 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
25346         PR target/56987
25347         * config/avr/avr.opt (Waddr-space-convert): Fix typo.
25349 2013-07-10  Graham Stott  <graham.stott@btinternet.com>
25351         * config/mips/mips.c (mips_rtx_costs): Very slightly increase
25352         the cost of MULT when optimizing for size.
25354 2013-07-10  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
25356         * config/cr16/cr16-protos.h: Don't include target.h.
25358 2013-07-09  Joseph Myers  <joseph@codesourcery.com>
25360         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
25361         adjust register size for TDmode and TFmode for VSX registers.
25363 2013-07-08  Kai Tietz  <ktietz@redhat.com>
25365         PR target/56892
25366         * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
25367         hook_bool_const_tree_true.
25369 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25371         * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
25372         * config/s390/s390.h: Remove F*_REGNUM macro definitions.
25373         * config/s390/s390.md: Define FPR*_REGNUM constants.
25374         Fix FPR2_REGNUM constant (18 -> 17).
25375         ("*trunc<BFP:mode><DFP_ALL:mode>2")
25376         ("*trunc<DFP_ALL:mode><BFP:mode>2")
25377         ("trunc<BFP:mode><DFP_ALL:mode>2")
25378         ("trunc<DFP_ALL:mode><BFP:mode>2")
25379         ("*extend<BFP:mode><DFP_ALL:mode>2")
25380         ("*extend<DFP_ALL:mode><BFP:mode>2")
25381         ("extend<BFP:mode><DFP_ALL:mode>2")
25382         ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
25383         FPR4_REGNUM.
25385 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
25387         * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
25389 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25391         * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
25392         and cfun_fpr_bit_p to cfun_fpr_save_p.
25393         (s390_frame_area, s390_register_info, s390_frame_info)
25394         (s390_emit_prologue, s390_emit_epilogue)
25395         (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
25396         register numbers.
25397         * config/s390/s390.h: Define *_REGNUM macros for floating point
25398         register numbers.
25400 2013-07-08  Eric Botcazou  <ebotcazou@adacore.com>
25402         * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
25404 2013-07-08  Po-Chun Chang  <pchang9@cs.wisc.edu>
25406         PR rtl-optimization/57786
25407         * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
25408         and break out of the loop when it is set to false.
25410 2013-07-08  Jakub Jelinek  <jakub@redhat.com>
25412         PR target/57819
25413         * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
25414         Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
25415         (const_int 63)) 0)).
25416         * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
25417         using simplify_gen_unary instead of gen_rtx_*_EXTEND.
25418         * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
25420         PR rtl-optimization/57829
25421         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
25422         mask bits outside of mode are just sign-extension from mode to HWI.
25424 2013-07-08  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
25426         * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
25427         * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
25428         adjust_address instead of change_address to keep info about alignment.
25429         (emit_strmov): Remove.
25430         (emit_memmov): New function.
25431         (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
25432         (expand_movmem_epilogue): Likewise and return updated rtx for
25433         destination.
25434         (expand_constant_movmem_prologue): Likewise and return updated rtx for
25435         destination and source.
25436         (decide_alignment): Refactor, handle vector_loop.
25437         (ix86_expand_movmem): Likewise.
25438         (ix86_expand_setmem): Likewise.
25439         * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
25441 2013-07-07  Uros Bizjak  <ubizjak@gmail.com>
25443         * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
25444         signature_TM2_ebx, it interferes with signature_INTEL_ebx.
25446 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
25448         * config/i386/sse.md (sse_movlhps): Change alternative 3
25449         of operand 2 to "m".
25451 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
25453         PR target/57807
25454         * config/i386/sse.md (iptr): New mode attribute.
25455         (sse2_movq128): Add pointer size overrides for Intel asm dialect.
25456         (<sse>_vm<plusminus_insn><mode>3): Ditto.
25457         (<sse>_vmmul<mode>3): Ditto.
25458         (<sse>_vmdiv<mode>3): Ditto.
25459         (sse_vmrcpv4sf2): Ditto.
25460         (<sse>_vmsqrt<mode>2): Ditto.
25461         (sse_vmrsqrtv4sf2): Ditto.
25462         (<sse>_vm<code><mode>3): Ditto.
25463         (avx_vmcmp<mode>3): Ditto.
25464         (<sse>_vmmaskcmp<mode>3): Ditto.
25465         (<sse>_comi): Ditto.
25466         (<sse>_ucomi): Ditto.
25467         (*xop_vmfrcz_<mode>): Ditto.
25468         (*fmai_fmadd_<mode>): Ditto.
25469         (*fmai_fmsub_<mode>): Ditto.
25470         (*fmai_fnmadd_<mode>): Ditto.
25471         (*fmai_fnmsub_<mode>): Ditto.
25472         (*fma4i_vmfmadd_<mode>): Ditto.
25473         (*fma4i_vmfmsub_<mode>): Ditto.
25474         (*fma4i_vmfnmadd_<mode>): Ditto.
25475         (*fma4i_vmfnmsub_<mode>): Ditto.
25476         (*xop_vmfrcz_<mode>): Ditto.
25477         (sse_cvtps2pi): Ditto.
25478         (sse_cvttps2pi): Ditto.
25479         (sse_cvtss2si): Ditto.
25480         (sse_cvtss2si_2): Ditto.
25481         (sse_cvtss2siq_2): Ditto.
25482         (sse_cvttss2si): Ditto.
25483         (sse_cvttss2siq): Ditto.
25484         (sse_cvtsd2si): Ditto.
25485         (sse_cvtsd2si_2): Ditto.
25486         (sse_cvtsd2siq_2): Ditto.
25487         (sse_cvttsd2si): Ditto.
25488         (sse_cvttsd2siq): Ditto.
25489         (sse_cvtsd2ss): Ditto.
25490         (sse_cvtss2sd): Ditto.
25491         (avx2_pbroadcast<mode>): Ditto.
25492         (avx2_pbroadcast<mode>_1): Ditto.
25493         (*avx_vperm_broadcast_v4sf): Ditto.
25495         (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
25496         (sse_movlhps): Ditto.
25497         (sse_storehps): Ditto.
25498         (sse_loadhps): Ditto.
25499         (sse_storelps): Ditto.
25500         (sse_loadlps): Ditto.
25501         (*vec_concatv4sf): Ditto.
25502         (*vec_interleave_highv2df): Ditto.
25503         (*vec_interleave_lowv2df): Ditto.
25504         (*vec_extractv2df_1_sse): Ditto.
25505         (*vec_extractv2df_0_sse): Ditto.
25506         (sse2_storelpd): Ditto.
25507         (sse2_loadlpd): Ditto.
25508         (sse2_movsd): Ditto.
25509         (*vec_concatv4si): Ditto.
25510         (vec_concatv2di): Ditto.
25512         * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
25513         for Intel asm dialect.
25514         (mmx_punpcklwd): Ditto.
25515         (mmx_punpckldq): Ditto.
25517         * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
25518         for intel assembler dialect.
25520 2013-07-06  Jakub Jelinek  <jakub@redhat.com>
25522         PR target/29776
25523         * fold-const.c (tree_call_nonnegative_warnv_p): Return true
25524         for BUILT_IN_C{LZ,LRSB}*.
25525         * tree.h (CASE_INT_FN): Add FN##IMAX case.
25526         * tree-vrp.c (extract_range_basic): Handle
25527         BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*.  For
25528         BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
25529         fall thru to code calling set_value*.
25530         * builtins.c (expand_builtin): Remove *IMAX cases.
25531         (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
25532         if width is bigger than 2*HWI.
25534 2013-07-05  Vladimir Makarov  <vmakarov@redhat.com>
25536         PR rtl-optimization/55342
25537         * lra-int.h (lra_subreg_reload_pseudos): New.
25538         * lra.c: Add undoing optional reloads to the block diagram.
25539         (lra_subreg_reload_pseudos): New.
25540         (lra_optional_reload_pseudos): Change comments.
25541         (lra): Init and clear lra_subreg_reload_pseudos.  Clear
25542         lra_optional_reload_pseudos after undo transformations.
25543         * lra-assigns.c (pseudo_prefix_title): New.
25544         (lra_setup_reg_renumber): Use it.
25545         (spill_for): Ditto.  Check subreg reload pseudos too.
25546         (assign_by_spills): Consider subreg reload pseudos too.
25547         * lra-constraints.c (simplify_operand_subreg): Use
25548         lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
25549         (curr_insn_transform): Recognize and do optional reloads.
25550         (undo_optional_reloads): New.
25551         (lra_undo_inheritance): Call undo_optional_reloads.
25553 2013-07-05  Thomas Quinot  <quinot@adacore.com>
25555         * tree-complex.c (expand_complex_operations_1): Fix typo.
25557 2013-07-04  Tejas Belagod  <tejas.belagod@arm.com>
25559         * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
25560         (tune_params): New member 'const vec_costs'.
25561         * config/aarch64/aarch64.c (generic_vector_cost): New.
25562         (generic_tunings): New member 'generic_vector_cost'.
25563         (aarch64_builtin_vectorization_cost): New.
25564         (aarch64_add_stmt_cost): New.
25565         (TARGET_VECTORIZE_ADD_STMT_COST): New.
25566         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
25568 2013-07-03  Jakub Jelinek  <jakub@redhat.com>
25570         PR target/57777
25571         * config/i386/predicates.md (vsib_address_operand): Disallow
25572         SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
25574 2013-07-03  Hans-Peter Nilsson  <hp@bitrange.com>
25576         PR middle-end/55030
25577         * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
25578         expand_builtin_setjmp_receiver.
25579         (expand_label): Adjust, call expand_builtin_setjmp_receiver
25580         with NULL for the label parameter.
25581         * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
25582         the frame-pointer.  Adjust comments.
25583         [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
25584         only if LABEL is non-NULL.
25586 2013-07-03  Yufeng Zhang  <yufeng.zhang@arm.com>
25588         * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
25589         (ARM_ABI_AAPCS64): Ditto.
25590         (arm_abi): Ditto.
25591         (ARM_DEFAULT_ABI): Ditto.
25593 2013-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
25595         * config/aarch64/aarch64-builtins.c
25596         (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
25597         * config/aarch64/aarch64-simd-builtins.def (ld1): New.
25598         (st1): Likewise.
25599         * config/aarch64/aarch64-simd.md
25600         (aarch64_ld1<VALL:mode>): New.
25601         (aarch64_st1<VALL:mode>): Likewise.
25602         * config/aarch64/arm_neon.h
25603         (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
25605 2013-07-02  Sriraman Tallam  <tmsriram@google.com>
25607         * config/i386/i386.c (gate_insert_vzeroupper): Check if
25608         target ISA is AVX.
25609         (ix86_option_override_internal):Turn on all -mavx target flags by
25610         default as they are dependent on AVX anyway.
25612 2013-07-02  Cary Coutant  <ccoutant@google.com>
25614         * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
25615         deterministic hash.
25616         (loc_checksum_ordered): Likewise.
25617         (hash_loc_operands): Remove inline keyword.
25619 2013-07-02  Jakub Jelinek  <jakub@redhat.com>
25621         PR tree-optimization/57741
25622         * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
25623         non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
25624         or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
25625         Allow REAL_CST step_exprs if flag_associative_math.
25626         (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
25628 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
25630         * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
25632 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
25634         * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
25636 2013-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25638         * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
25639         encoding.
25640         (iorsi3_insn): Likewise.
25641         (arm_xorsi3): Likewise.
25643 2013-07-01  Sofiane Naci  <sofiane.naci@arm.com>
25645         * arm.md (attribute "wtype"): Delete.  Move attribute values from here
25646         to ...
25647         (attribute "type"): ... here, and prefix with "wmmx_".
25648         (attribute "core_cycles"): Update for attribute changes.
25649         * iwmmxt.md (tbcstv8qi): Update for attribute changes.
25650         (tbcstv4hi): Likewise.
25651         (tbcstv2si): Likewise.
25652         (iwmmxt_iordi3): Likewise.
25653         (iwmmxt_xordi3): Likewise.
25654         (iwmmxt_anddi3): Likewise.
25655         (iwmmxt_nanddi3): Likewise.
25656         (iwmmxt_arm_movdi): Likewise.
25657         (iwmmxt_movsi_insn): Likewise.
25658         (mov<mode>_internal): Likewise.
25659         (and<mode>3_iwmmxt): Likewise.
25660         (ior<mode>3_iwmmxt): Likewise.
25661         (xor<mode>3_iwmmxt): Likewise.
25662         (add<mode>3_iwmmxt): Likewise.
25663         (ssaddv8qi3): Likewise.
25664         (ssaddv4hi3): Likewise.
25665         (ssaddv2si3): Likewise.
25666         (usaddv8qi3): Likewise.
25667         (usaddv4hi3): Likewise.
25668         (usaddv2si3): Likewise.
25669         (sub<mode>3_iwmmxt): Likewise.
25670         (sssubv8qi3): Likewise.
25671         (sssubv4hi3): Likewise.
25672         (sssubv2si3): Likewise.
25673         (ussubv8qi3): Likewise.
25674         (ussubv4hi3): Likewise.
25675         (ussubv2si3): Likewise.
25676         (mulv4hi3_iwmmxt): Likewise.
25677         (smulv4hi3_highpart): Likewise.
25678         (umulv4hi3_highpart): Likewise.
25679         (iwmmxt_wmacs): Likewise.
25680         (iwmmxt_wmacsz): Likewise.
25681         (iwmmxt_wmacu): Likewise.
25682         (iwmmxt_wmacuz): Likewise.
25683         (iwmmxt_clrdi): Likewise.
25684         (iwmmxt_clrv8qi): Likewise.
25685         (iwmmxt_clr4hi): Likewise.
25686         (iwmmxt_clr2si): Likewise.
25687         (iwmmxt_uavgrndv8qi3): Likewise.
25688         (iwmmxt_uavgrndv4hi3): Likewise.
25689         (iwmmxt_uavgv8qi3): Likewise.
25690         (iwmmxt_uavgv4hi3): Likewise.
25691         (iwmmxt_tinsrb): Likewise.
25692         (iwmmxt_tinsrh): Likewise.
25693         (iwmmxt_tinsrw): Likewise.
25694         (iwmmxt_textrmub): Likewise.
25695         (iwmmxt_textrmsb): Likewise.
25696         (iwmmxt_textrmuh): Likewise.
25697         (iwmmxt_textrmsh): Likewise.
25698         (iwmmxt_textrmw): Likewise.
25699         (iwmxxt_wshufh): Likewise.
25700         (eqv8qi3): Likewise.
25701         (eqv4hi3): Likewise.
25702         (eqv2si3): Likewise.
25703         (gtuv8qi3): Likewise.
25704         (gtuv4hi3): Likewise.
25705         (gtuv2si3): Likewise.
25706         (gtv8qi3): Likewise.
25707         (gtv4hi3): Likewise.
25708         (gtv2si3): Likewise.
25709         (smax<mode>3_iwmmxt): Likewise.
25710         (umax<mode>3_iwmmxt): Likewise.
25711         (smin<mode>3_iwmmxt): Likewise.
25712         (umin<mode>3_iwmmxt): Likewise.
25713         (iwmmxt_wpackhss): Likewise.
25714         (iwmmxt_wpackwss): Likewise.
25715         (iwmmxt_wpackdss): Likewise.
25716         (iwmmxt_wpackhus): Likewise.
25717         (iwmmxt_wpackwus): Likewise.
25718         (iwmmxt_wpackdus): Likewise.
25719         (iwmmxt_wunpckihb): Likewise.
25720         (iwmmxt_wunpckihh): Likewise.
25721         (iwmmxt_wunpckihw): Likewise.
25722         (iwmmxt_wunpckilb): Likewise.
25723         (iwmmxt_wunpckilh): Likewise.
25724         (iwmmxt_wunpckilw): Likewise.
25725         (iwmmxt_wunpckehub): Likewise.
25726         (iwmmxt_wunpckehuh): Likewise.
25727         (iwmmxt_wunpckehuw): Likewise.
25728         (iwmmxt_wunpckehsb): Likewise.
25729         (iwmmxt_wunpckehsh): Likewise.
25730         (iwmmxt_wunpckehsw): Likewise.
25731         (iwmmxt_wunpckelub): Likewise.
25732         (iwmmxt_wunpckeluh): Likewise.
25733         (iwmmxt_wunpckeluw): Likewise.
25734         (iwmmxt_wunpckelsb): Likewise.
25735         (iwmmxt_wunpckelsh): Likewise.
25736         (iwmmxt_wunpckelsw): Likewise.
25737         (ror<mode>3): Likewise.
25738         (ashr<mode>3_iwmmxt): Likewise.
25739         (lshr<mode>3_iwmmxt): Likewise.
25740         (ashl<mode>3_iwmmxt): Likewise.
25741         (ror<mode>3_di): Likewise.
25742         (ashr<mode>3_di): Likewise.
25743         (lshr<mode>3_di): Likewise.
25744         (ashl<mode>3_di): Likewise.
25745         (iwmmxt_wmadds): Likewise.
25746         (iwmmxt_wmaddu): Likewise.
25747         (iwmmxt_tmia): Likewise.
25748         (iwmmxt_tmiaph): Likewise.
25749         (iwmmxt_tmiabb): Likewise.
25750         (iwmmxt_tmiatb): Likewise.
25751         (iwmmxt_tmiabt): Likewise.
25752         (iwmmxt_tmiatt): Likewise.
25753         (iwmmxt_tmovmskb): Likewise.
25754         (iwmmxt_tmovmskh): Likewise.
25755         (iwmmxt_tmovmskw): Likewise.
25756         (iwmmxt_waccb): Likewise.
25757         (iwmmxt_wacch): Likewise.
25758         (iwmmxt_waccw): Likewise.
25759         (iwmmxt_waligni): Likewise.
25760         (iwmmxt_walignr): Likewise.
25761         (iwmmxt_walignr0): Likewise.
25762         (iwmmxt_walignr1): Likewise.
25763         (iwmmxt_walignr2): Likewise.
25764         (iwmmxt_walignr3): Likewise.
25765         (iwmmxt_wsadb): Likewise.
25766         (iwmmxt_wsadh): Likewise.
25767         (iwmmxt_wsadbz): Likewise.
25768         (iwmmxt_wsadhz): Likewise.
25769         * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
25770         (iwmmxt_wabsdiffb): Likewise.
25771         (iwmmxt_wabsdiffh): Likewise.
25772         (iwmmxt_wabsdiffw): Likewise.
25773         (iwmmxt_waddsubhx): Likewise
25774         (iwmmxt_wsubaddhx): Likewise.
25775         (addc<mode>3): Likewise.
25776         (iwmmxt_avg4): Likewise.
25777         (iwmmxt_avg4r): Likewise.
25778         (iwmmxt_wmaddsx): Likewise.
25779         (iwmmxt_wmaddux): Likewise.
25780         (iwmmxt_wmaddsn): Likewise.
25781         (iwmmxt_wmaddun): Likewise.
25782         (iwmmxt_wmulwsm): Likewise.
25783         (iwmmxt_wmulwum): Likewise.
25784         (iwmmxt_wmulsmr): Likewise.
25785         (iwmmxt_wmulumr): Likewise.
25786         (iwmmxt_wmulwsmr): Likewise.
25787         (iwmmxt_wmulwumr): Likewise.
25788         (iwmmxt_wmulwl): Likewise.
25789         (iwmmxt_wqmulm): Likewise.
25790         (iwmmxt_wqmulwm): Likewise.
25791         (iwmmxt_wqmulmr): Likewise.
25792         (iwmmxt_wqmulwmr): Likewise.
25793         (iwmmxt_waddbhusm): Likewise.
25794         (iwmmxt_waddbhusl): Likewise.
25795         (iwmmxt_wqmiabb): Likewise.
25796         (iwmmxt_wqmiabt): Likewise.
25797         (iwmmxt_wqmiatb): Likewise.
25798         (iwmmxt_wqmiatt): Likewise.
25799         (iwmmxt_wqmiabbn): Likewise.
25800         (iwmmxt_wqmiabtn): Likewise.
25801         (iwmmxt_wqmiatbn): Likewise.
25802         (iwmmxt_wqmiattn): Likewise.
25803         (iwmmxt_wmiabb): Likewise.
25804         (iwmmxt_wmiabt): Likewise.
25805         (iwmmxt_wmiatb): Likewise.
25806         (iwmmxt_wmiatt): Likewise.
25807         (iwmmxt_wmiabbn): Likewise.
25808         (iwmmxt_wmiabtn): Likewise.
25809         (iwmmxt_wmiatbn): Likewise.
25810         (iwmmxt_wmiattn): Likewise.
25811         (iwmmxt_wmiawbb): Likewise.
25812         (iwmmxt_wmiawbt): Likewise.
25813         (iwmmxt_wmiawtb): Likewise.
25814         (iwmmxt_wmiawtt): Likewise.
25815         (iwmmxt_wmiawbbn): Likewise.
25816         (iwmmxt_wmiawbtn): Likewise.
25817         (iwmmxt_wmiawtbn): Likewise.
25818         (iwmmxt_wmiawttn): Likewise.
25819         (iwmmxt_wmerge): Likewise.
25820         (iwmmxt_tandc<mode>3): Likewise.
25821         (iwmmxt_torc<mode>3): Likewise.
25822         (iwmmxt_torvsc<mode>3): Likewise.
25823         (iwmmxt_textrc<mode>3): Likewise.
25824         * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
25825         (wmmxt_pack): Likewise.
25826         (wmmxt_mult_c1): Likewise.
25827         (wmmxt_mult_c2): Likewise.
25828         (wmmxt_alu_c1): Likewise.
25829         (wmmxt_alu_c2): Likewise.
25830         (wmmxt_alu_c3): Likewise.
25831         (wmmxt_transfer_c1): Likewise.
25832         (wmmxt_transfer_c2): Likewise.
25833         (wmmxt_transfer_c3): Likewise.
25834         (marvell_f_iwmmxt_wstr): Likewise.
25835         (marvell_f_iwmmxt_wldr): Likewise.
25837 2013-06-29  Yufeng Zhang  <yufeng.zhang@arm.com>
25839         * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
25841 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
25843         Revert:
25844         2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
25845         * lra-constraints.c (need_for_split_p): Check call used hard regs
25846         living through calls.
25848         * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
25849         call used regs for call insn.
25851 2013-06-28  Jakub Jelinek  <jakub@redhat.com>
25853         PR target/57736
25854         * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
25855         mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
25857 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
25859         * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
25861 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
25863         * lra-constraints.c (need_for_split_p): Check call used hard regs
25864         living through calls.
25866 2013-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
25868         PR target/57744
25869         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
25870         to tie with any other modes.  Eliminate Altivec vector mode tests,
25871         since these are a subset of ALTIVEC or VSX vector modes.  Simplify
25872         code, to return 0 if testing MODE2 for a condition, if we've
25873         already tested MODE1 for the same condition.
25875 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25877         * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
25878         layout.
25880 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25882         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
25883         Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
25885 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25887         * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
25888         Define.
25889         (aarch64_symbolic_constant_p): Remove.
25890         * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
25891         static.  Fix line length and white space.
25892         (aarch64_symbolic_constant_p): Remove.
25893         * config/aarch64/predicates.md (aarch64_valid_symref):
25894         Use aarch64_classify_symbol_expression.
25896 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25898         * config/arm/constraints.md (Ts): New constraint.
25899         * config/arm/arm.md (arm_movqi_insn): Add alternatives for
25900         16-bit encodings.
25901         (compare_scc): Use "Ts" constraint for operand 0.
25902         (ior_scc_scc): Likewise.
25903         (and_scc_scc): Likewise.
25904         (and_scc_scc_nodom): Likewise.
25905         (ior_scc_scc_cmp): Likewise for operand 7.
25906         (and_scc_scc_cmp): Likewise.
25907         * config/arm/thumb2.md (thumb2_movsi_insn):
25908         Add alternatives for 16-bit encodings.
25909         (thumb2_movhi_insn): Likewise.
25910         (thumb2_movsicc_insn): Likewise.
25911         (thumb2_and_scc): Take 'and' outside cond_exec.  Use "Ts" constraint.
25912         (thumb2_negscc): Use "Ts" constraint.
25913         Move mvn instruction outside cond_exec block.
25914         * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
25915         for 16-bit encodings.
25917 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25919         * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
25920         encoding.
25921         (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
25922         (mulsi3subsi): Likewise.
25923         (mulsidi3adddi): Likewise.
25924         (mulsidi3_v6): Likewise.
25925         (umulsidi3_v6): Likewise.
25926         (umulsidi3adddi_v6): Likewise.
25927         (smulsi3_highpart_v6): Likewise.
25928         (umulsi3_highpart_v6): Likewise.
25929         (mulhisi3tb): Likewise.
25930         (mulhisi3bt): Likewise.
25931         (mulhisi3tt): Likewise.
25932         (maddhisi4): Likewise.
25933         (maddhisi4tb): Likewise.
25934         (maddhisi4tt): Likewise.
25935         (maddhidi4): Likewise.
25936         (maddhidi4tb): Likewise.
25937         (maddhidi4tt): Likewise.
25938         (zeroextractsi_compare0_scratch): Likewise.
25939         (insv_zero): Likewise.
25940         (insv_t2): Likewise.
25941         (anddi_notzesidi_di): Likewise.
25942         (anddi_notsesidi_di): Likewise.
25943         (andsi_notsi_si): Likewise.
25944         (iordi_zesidi_di): Likewise.
25945         (xordi_zesidi_di): Likewise.
25946         (andsi_iorsi3_notsi): Likewise.
25947         (smax_0): Likewise.
25948         (smax_m1): Likewise.
25949         (smin_0): Likewise.
25950         (not_shiftsi): Likewise.
25951         (unaligned_loadsi): Likewise.
25952         (unaligned_loadhis): Likewise.
25953         (unaligned_loadhiu): Likewise.
25954         (unaligned_storesi): Likewise.
25955         (unaligned_storehi): Likewise.
25956         (extv_reg): Likewise.
25957         (extzv_t2): Likewise.
25958         (divsi3): Likewise.
25959         (udivsi3): Likewise.
25960         (arm_zero_extendhisi2addsi): Likewise.
25961         (arm_zero_extendqisi2addsi): Likewise.
25962         (compareqi_eq0): Likewise.
25963         (arm_extendhisi2_v6): Likewise.
25964         (arm_extendqisi2addsi): Likewise.
25965         (arm_movt): Likewise.
25966         (thumb2_ldrd): Likewise.
25967         (thumb2_ldrd_base): Likewise.
25968         (thumb2_ldrd_base_neg): Likewise.
25969         (thumb2_strd): Likewise.
25970         (thumb2_strd_base): Likewise.
25971         (thumb2_strd_base_neg): Likewise.
25972         (arm_negsi2): Add alternative for 16-bit encoding.
25973         (arm_one_cmplsi2): Likewise.
25975 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25977         * config/arm/predicates.md (arm_cond_move_operator): New predicate.
25978         * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
25979         (movdfcc): Likewise.
25980         * config/arm/vfp.md (*thumb2_movsf_vfp):
25981         Disable predication for arm_restrict_it.
25982         (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
25983         (*thumb2_movdfcc_vfp): Likewise.
25984         (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
25985         *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
25986         *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
25987         *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
25988         *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
25989         *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
25990         *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
25991         *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
25992         *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
25993         *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
25994         *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
25995         *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
25996         Disable predication for arm_restrict_it.
25998 2013-06-28  Kirill Yukhin  <kirill.yukhin@intel.com>
26000         * config/i386/bmiintrin.h (_bextr_u32): New.
26001         (_bextr_u64): Ditto.
26003 2013-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
26005         * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
26006         (mips64r5900el-*-elf*): Include mips/n32-elf.h.
26007         * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
26008         (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
26009         * config/mips/n32-elf.h: ...this new file.
26011 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
26013         PR target/57224
26014         * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
26015         IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
26017 2013-06-27  Catherine Moore  <clm@codesourcery.com>
26019         * config/mips/mips-tables.opt: Regenerate.
26020         * config/mips/mips-cpus.def: Add m14ke and m14kec.
26021         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
26022         * doc/invoke.texi: Add -m14kc.
26024 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
26026         PR target/57623
26027         * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
26028         constraints of operand 1 and 2.
26030         PR target/57623
26031         * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
26032         to match RTL canonicalization.  Swap predicates and
26033         constraints of operand 1 and 2.
26035 2013-06-27  Vladimir Makarov  <vmakarov@redhat.com>
26037         * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
26038         Process OP_INOUT regs for splitting too.
26040 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
26042         * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
26043         decl before the loop, initialize to NULL.
26044         (vectorizable_load): Initialize ptr_incr to NULL.
26046 2013-06-27  Martin Jambor  <mjambor@suse.cz>
26048         PR lto/57208
26049         * ipa-ref.h (ipa_maybe_record_reference): Declare.
26050         * ipa-ref.c (ipa_maybe_record_reference): New function.
26051         * cgraphclones.c (cgraph_create_virtual_clone): Use it.
26052         * ipa-cp.c (create_specialized_node): Record potential references from
26053         aggvals.
26054         * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
26056 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
26058         * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
26059         parameter 'mode' of type 'enum machine_mode mode'; change to pass
26060         'mode' to force_reg.
26061         (aarch64_add_offset): Update calls to aarch64_force_temporary.
26062         (aarch64_expand_mov_immediate): Likewise.
26064 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
26066         * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
26067         'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
26069 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26071         * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
26072         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
26073         (struct machine_function): Add tbegin_p.
26074         (s390_canonicalize_comparison): Fold CC mode compares to
26075         conditional jump if possible.
26076         (s390_emit_jump): Return the emitted jump.
26077         (s390_branch_condition_mask, s390_branch_condition_mnemonic):
26078         Handle CCRAWmode compares.
26079         (s390_option_override): Default to -mhtm if available.
26080         (s390_reg_clobbered_rtx): Handle floating point regs as well.
26081         (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
26082         FPRs instead of df_regs_ever_live_p.
26083         (s390_optimize_nonescaping_tx): New function.
26084         (s390_init_frame_layout): Extend clobbered_regs array to cover
26085         FPRs as well.
26086         (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
26087         (s390_expand_tbegin): New function.
26088         (enum s390_builtin): New enum definition.
26089         (code_for_builtin): New array definition.
26090         (s390_init_builtins): New function.
26091         (s390_expand_builtin): New function.
26092         (TARGET_INIT_BUILTINS): Define.
26093         (TARGET_EXPAND_BUILTIN): Define.
26094         * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
26095         * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
26096         (s390_alc_comparison): Likewise.
26097         * config/s390/s390-modes.def: Add CCRAWmode.
26098         * config/s390/s390.h (processor_flags): Add PF_TX.
26099         (TARGET_CPU_HTM): Define macro.
26100         (TARGET_HTM): Define macro.
26101         (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
26102         * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
26103         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
26104         (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
26105         (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
26106         (TBEGIN_MASK, TBEGINC_MASK): New constants.
26107         ("*cc_to_int"): Move up.
26108         ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
26109         constants other than 0.
26110         ("*ccraw_to_int"): New insn and splitter definition.
26111         ("tbegin", "tbegin_nofloat", "tbegin_retry")
26112         ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
26113         ("tx_assist"): New expander.
26114         ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
26115         ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
26116         * config/s390/s390.opt: Add -mhtm option.
26117         * config/s390/s390-protos.h (s390_emit_jump): Add return type.
26118         * config/s390/htmxlintrin.h: New file.
26119         * config/s390/htmintrin.h: New file.
26120         * config/s390/s390intrin.h: New file.
26121         * doc/extend.texi: Document htm builtins.
26122         * config.gcc: Add the new header files to extra_headers.
26124 2013-06-26  Thomas Schwinge  <thomas@codesourcery.com>
26126         * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
26127         (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
26129 2013-06-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
26130             Pat Haugen  <pthaugen@us.ibm.com>
26131             Peter Bergner  <bergner@vnet.ibm.com>
26133         * config/rs6000/power8.md: New.
26134         * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
26135         setting for power8 entry.
26136         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
26137         * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
26138         test for Power4/Power5 only.
26139         (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
26140         support.
26141         (force_new_group): Adjust comment.
26142         * config/rs6000/rs6000.md: Include power8.md.
26144 2013-06-26  Greta Yorsh  <Greta.Yorsh@arm.com>
26146         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
26147         * config/arm/arm-protos.h (arm_max_conditional_execute): New
26148         declaration.
26149         (tune_params): Update comment.
26150         * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
26151         (arm_max_conditional_execute): New function.
26152         (thumb2_final_prescan_insn): Use max_insn_skipped and
26153         MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
26155 2013-06-25  Jakub Jelinek  <jakub@redhat.com>
26157         PR tree-optimization/57705
26158         * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
26159         SSA_NAME step, provided that it is not defined inside the loop.
26160         (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
26161         (get_initial_def_for_induction): Handle SSA_NAME IV step.
26163 2013-06-25  Martin Jambor  <mjambor@suse.cz>
26165         PR middle-end/57670
26166         * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
26167         * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
26168         calls in the dump.
26169         (ipa_note_param_call): Initialize member_ptr flag.
26170         (ipa_analyze_indirect_call_uses): Set member_ptr flag.
26171         (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
26172         (ipa_write_indirect_edge_info): Stream member_ptr flag.
26173         (ipa_read_indirect_edge_info): Likewise.
26175 2013-06-25  Richard Biener  <rguenther@suse.de>
26177         PR middle-end/56977
26178         * passes.c (init_optimization_passes): Move pass_fold_builtins
26179         and pass_dce earlier with -Og.
26181 2013-06-25  Eric Botcazou  <ebotcazou@adacore.com>
26183         * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
26184         <BIT_FIELD_REF>: Remove trailing TAB.
26185         * varasm.c (output_constructor_bitfield): Fix formatting glitch and
26186         remove blank line.
26188 2013-06-24  Martin Jambor  <mjambor@suse.cz>
26190         PR tree-optimization/57358
26191         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
26192         (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
26193         (ipa_analyze_params_uses): Generate pessimistic info when true.
26195 2013-06-24  Martin Jambor  <mjambor@suse.cz>
26197         PR tree-optimization/57539
26198         * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
26199         global.inlined_to of the new node to it.  All callers changed.
26200         * ipa-inline-transform.c (clone_inlined_nodes): New variable
26201         inlining_into, pass it to cgraph_clone_node.
26202         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
26203         ipa_free_edge_args_substructures.
26204         (ipa_edge_duplication_hook): Only add edges from inlined nodes to
26205         rdesc linked list.  Do not assert rdesc edges have inlined caller.
26206         Assert we have found an rdesc in the rdesc list.
26208 2013-06-24  Richard Biener  <rguenther@suse.de>
26210         * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
26211         (pointer_set_lookup): Declare.
26212         (class pointer_map): New template class implementing a
26213         generic pointer to T map.
26214         (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
26215         pointer_map<T>::contains, pointer_map<T>::insert,
26216         pointer_map<T>::traverse): New functions.
26217         * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
26218         (pointer_set_lookup): New function.
26219         (pointer_set_contains): Use pointer_set_lookup.
26220         (pointer_set_insert): Likewise.
26221         (insert_aux): Remove.
26222         (struct pointer_map_t): Embed a pointer_set_t.
26223         (pointer_map_create): Adjust.
26224         (pointer_map_destroy): Likewise.
26225         (pointer_map_contains): Likewise.
26226         (pointer_map_insert): Likewise.
26227         (pointer_map_traverse): Likewise.
26228         * tree-streamer.h (struct streamer_tree_cache_d): Use a
26229         pointer_map<unsigned> instead of a pointer_map_t.
26230         * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
26231         (streamer_tree_cache_lookup): Likewise.
26232         (streamer_tree_cache_create): Likewise.
26233         (streamer_tree_cache_delete): Likewise.
26234         * lto-streamer.h (struct lto_tree_ref_encoder): Use a
26235         pointer_map<unsigned> instead of a pointer_map_t.
26236         (lto_init_tree_ref_encoder): Adjust.
26237         (lto_destroy_tree_ref_encoder): Likewise.
26238         * lto-section-out.c (lto_output_decl_index): Likewise.
26239         (lto_record_function_out_decl_state): Likewise.
26240         * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
26242 2013-06-24  Richard Biener  <rguenther@suse.de>
26244         PR tree-optimization/57488
26245         * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
26247 2013-06-24  Alan Modra  <amodra@gmail.com>
26249         * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
26250         (gen_easy_altivec_constant): Likewise.
26251         * config/rs6000/predicates.md (easy_vector_constant_add_self,
26252         easy_vector_constant_msb): Likewise.
26254 2013-06-23  Jakub Jelinek  <jakub@redhat.com>
26256         PR target/57688
26257         * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
26258         add missing return true.
26260 2013-06-23  Oleg Endo  <olegendo@gcc.gnu.org>
26262         PR target/52483
26263         * config/sh/predicates.md (general_extend_operand): Invoke
26264         general_movsrc_operand for memory operands.
26265         (general_movsrc_operand): Allow reg+reg addressing, do not use
26266         general_operand for memory operands.
26268 2013-06-23  Sriraman Tallam  <tmsriram@google.com>
26270         * config/i386/i386.c (ix86_pragma_target_parse):  Restore target
26271         when current target options does not apply.
26272         * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
26273         * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
26274         * config/i386/bmiintrin.h: Pass appropriate target
26275         attributes to header.
26276         * config/i386/mmintrin.h: Ditto.
26277         * config/i386/nmmintrin.h: Ditto.
26278         * config/i386/avx2intrin.h: Ditto.
26279         * config/i386/fxsrintrin.h: Ditto.
26280         * config/i386/tbmintrin.h: Ditto.
26281         * config/i386/xsaveintrin.h: Ditto.
26282         * config/i386/f16cintrin.h: Ditto.
26283         * config/i386/xtestintrin.h: Ditto.
26284         * config/i386/xsaveoptintrin.h: Ditto.
26285         * config/i386/bmi2intrin.h: Ditto.
26286         * config/i386/lzcntintrin.h: Ditto.
26287         * config/i386/smmintrin.h: Ditto.
26288         * config/i386/wmmintrin.h: Ditto.
26289         * config/i386/x86intrin.h: Remove all header include guards.
26290         * config/i386/prfchwintrin.h: Ditto.
26291         * config/i386/pmmintrin.h: Ditto.
26292         * config/i386/tmmintrin.h: Ditto.
26293         * config/i386/xmmintrin.h: Ditto.
26294         * config/i386/popcntintrin.h: Ditto.
26295         * config/i386/rdseedintrin.h: Ditto.
26296         * config/i386/ammintrin.h: Ditto.
26297         * config/i386/emmintrin.h: Ditto.
26298         * config/i386/immintrin.h: Remove all header include guards.
26299         * config/i386/fma4intrin.h: Ditto.
26300         * config/i386/lwpintrin.h: Ditto.
26301         * config/i386/xopintrin.h: Ditto.
26302         * config/i386/ia32intrin.h: Ditto.
26303         * config/i386/avxintrin.h: Ditto.
26304         * config/i386/rtmintrin.h: Ditto.
26305         * config/i386/fmaintrin.h: Ditto.
26306         * config/i386/mm3dnow.h: Ditto.
26308 2013-06-22  Sriraman Tallam  <tmsriram@google.com>
26310         * common/config/i386/i386-common.c: Handle LZCNT.
26312 2013-06-22  Andi Kleen  <ak@linux.intel.com>
26314         * doc/extend.texi: Use __atomic_store_n instead of
26315         __atomic_store in HLE example.
26317 2013-06-22  Oleg Endo  <olegendo@gcc.gnu.org>
26319         * config/sh/sh.c: Remove <cstdlib> workaround.
26321 2013-06-21  Andi Kleen  <ak@linux.intel.com>
26323         * doc/extend.texi: Dont use __atomic_clear in HLE example.  Fix typo.
26325 2013-06-21  Andi Kleen  <ak@linux.intel.com>
26327         * doc/extend.texi: Document that __atomic_clear and
26328           __atomic_test_and_set should only be used with bool.
26330 2013-06-20  Jan Hubicka  <jh@suse.cz>
26332         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
26333         types_same_for_odr.
26334         * tree.c (decls_same_for_odr): New function.
26335         (same_for_edr): New function.
26336         (types_same_for_odr): New function.
26337         (get_binfo_at_offset): Use it.
26338         * tree.h (types_same_for_odr): Declare.
26340 2013-06-20  Oleg Endo  <olegendo@gcc.gnu.org>
26341             Jason Merrill  <jason@redhat.com>
26343         * system.h: Include <cstdlib> as well as <stdlib.h>.
26345 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
26347         PR target/57655
26348         * config/i386/i386.c (construct_container): Report error if
26349         long double is used with disabled x87 float returns.
26351 2013-06-20  Jan Hubicka  <jh@suse.cz>
26353         * lto-cgraph.c (input_symtab): Do not set cgraph state.
26355 2013-06-20  Joern Rennecke  <joern.rennecke@embecosm.com>
26357         PR rtl-optimization/57425
26358         PR rtl-optimization/57569
26359         * alias.c (write_dependence_p): Remove parameters mem_mode and
26360         canon_mem_addr.  Add parameters x_mode, x_addr and x_canonicalized.
26361         Changed all callers.
26362         (canon_anti_dependence): Get comments and semantics in sync.
26363         Add parameter mem_canonicalized.  Changed all callers.
26364         * rtl.h (canon_anti_dependence): Update prototype.
26366 2013-06-20  Richard Biener  <rguenther@suse.de>
26368         * data-streamer-in.c (streamer_read_uhwi): Optimize single
26369         byte case, inline streamer_read_uchar and defer section
26370         overrun check.
26372 2013-06-20  Richard Biener  <rguenther@suse.de>
26374         PR tree-optimization/57584
26375         * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
26376         SSA names into the expanded expression that take part in
26377         abnormal coalescing.
26379 2013-06-19  Sharad Singhai  <singhai@google.com>
26381         * gcov.c (print_usage): Handle new option.
26382         (process_args): Ditto.
26383         (get_gcov_intermediate_filename): New function.
26384         (output_intermediate_file): New function.
26385         (output_gcov_file): New function
26386         (generate_results): Handle new option.
26387         (release_function): Relase demangled name.
26388         (read_graph_file): Handle demangled name.
26389         (output_lines): Ditto.
26390         * doc/gcov.texi: Document gcov intermediate format.
26392 2013-06-19  Vladimir Makarov  <vmakarov@redhat.com>
26394         PR bootstrap/57604
26395         * lra.c (emit_add3_insn, emit_add2_insn): New functions.
26396         (lra_emit_add): Use the functions.  Add comment about Y as an
26397         address segment.
26399 2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
26401         PR driver/57652
26402         * collect2.c (collect_atexit): New.
26403         (collect_exit): Delete.
26404         (main): Register collect_atexit with atexit.
26405         (collect_wait): Change collect_exit to exit.
26406         (do_wait): Same.
26407         * collect2.h (collect_exit): Delete.
26408         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
26410 2013-06-19  Wei Mi  <wmi@google.com>
26412         PR rtl-optimization/57518
26413         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
26414         if regno is used in paradoxical subreg.
26415         (update_equiv_regs): Check pdx_subregs[regno] before
26416         set a reg to be equivalent with a mem.
26418 2013-06-19  Matthias Klose  <doko@ubuntu.com>
26420         PR driver/57651
26421         * file-find.h (find_a_file): Add a mode parameter.
26422         * file-find.c (find_a_file): Likewise.
26423         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
26424         with X_OK for the executables.
26425         * collect2.c (main): Call find_a_file with X_OK.
26427 2013-06-19  Steve Ellcey  <sellcey@mips.com>
26429         PR target/56942
26430         * config/mips/mips.md (casesi_internal_mips16_<mode>):
26431         Use NEXT_INSN instead of next_real_insn.
26433 2013-06-19  Jan Hubicka  <jh@suse.cz>
26435         * cgraph.h (const_value_known_p): Replace by ...
26436         (ctor_for_folding): .. this one.
26437         * cgraphunit.c (process_function_and_variable_attributes): Use it.
26438         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
26439         * expr.c (expand_expr_real_1): Likewise.
26440         (string_constant): Likewise.
26441         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
26442         * ipa.c (process_references): Likewise.
26443         (symtab_remove_unreachable_nodes): Likewise.
26444         * ipa-inline-analysis.c (param_change_prob): Likewise.
26445         * gimple-fold.c (canonicalize_constructor_val): Likewise.
26446         (get_base_constructor): Likwise.
26447         * varpool.c (varpool_remove_node): Likewise.
26448         (varpool_remove_initializer): LIkewise.
26449         (dump_varpool_node): LIkwise.
26450         (const_value_known_p): Rewrite to ...
26451         (ctor_for_folding): ... this one.
26453 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
26455         PR driver/57651
26456         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
26457         PERSONALITY in $PATH derived prefixes.
26459 2013-06-19  Jeff Law  <law@redhat.com>
26461         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
26462         in comment.
26464         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
26465         (simplify_bitwise_binary): Use it to simpify certain binary ops on
26466         booleans.
26468 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
26470         * config/arm/vfp.md: Move VFP instruction classification documentation
26471         to ...
26472         * config/arm/arm.md: ... here.  Update instruction classification
26473         documentation.
26475 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
26477         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
26478         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
26479         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
26481 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
26483         PR target/57609
26484         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
26485         with NEXT_INSN.  Use tablejump_p to check for jump table data
26486         insns.
26488 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
26490         PR c++/56544
26491         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
26492         that now in C++ the value is correct per the C++ standards.
26494 2013-06-19  Richard Biener  <rguenther@suse.de>
26496         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
26497         for global context.
26499 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26501         Revert:
26502         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26504         PR target/57609
26505         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
26506         with next_active_insn.
26508 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
26510         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
26511         functions are inlined during failures to flag an error.
26512         * tree-inline.c (expand_call_inline): Allow the error to be flagged
26513         in early inline pass.
26515 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
26517         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
26518         in comments.
26520 2013-06-18  Julian Brown  <julian@codesourcery.com>
26522         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
26523         Permit virtual register pre-reload if !strict.
26524         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
26525         change.
26526         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
26527         prototype.
26528         * config/arm/neon.md (movmisalign<mode>): Use
26529         neon_perm_struct_or_reg_operand instead of
26530         neon_struct_or_register_operand.
26531         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
26532         neon_permissive_struct_operand instead of neon_struct_operand.
26533         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
26534         neon_vector_mem_operand.
26535         * config/arm/predicates.md (neon_struct_operand): Adjust call to
26536         neon_vector_mem_operand.
26537         (neon_permissive_struct_operand): New.
26538         (neon_struct_or_register_operand): Rename to...
26539         (neon_perm_struct_or_reg_operand): This. Adjust call to
26540         neon_vector_mem_operand.
26542 2013-06-18  Richard Biener  <rguenther@suse.de>
26544         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
26545         * lto-streamer.h: Include pointer-set.h.
26546         (struct lto_decl_slot): Remove.
26547         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
26548         Remove next_index entry.
26549         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
26550         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
26551         (lto_init_tree_ref_encoder): Adjust.
26552         (lto_destroy_tree_ref_encoder): Likewise.
26553         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
26554         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
26555         (lto_output_decl_index): Adjust.
26556         (lto_new_out_decl_state): Likewise.
26557         (lto_record_function_out_decl_state): Likewise.
26558         * lto-streamer-out.c (copy_function): Likewise.
26560 2013-06-18  Richard Biener  <rguenther@suse.de>
26562         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
26563         * cgraphunit.c: Include cfgloop.h.
26564         (init_lowered_empty_function): Initialize the loop tree.
26565         (assemble_thunk): Insert new BBs into loops.
26567 2013-06-18  Richard Biener  <rguenther@suse.de>
26569         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
26570         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
26571         the map from cache entry to cache index optional.
26572         (streamer_tree_cache_replace_tree): Adjust accordingly.
26573         (streamer_tree_cache_append): Likewise.
26574         (streamer_tree_cache_delete): Likewise.
26575         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
26576         streamer cache map from cache entry to cache index.
26577         * lto-streamer-out.c (create_output_block): Adjust.
26579 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
26581         * config/arm/arm.md (attribute "insn"): Move multiplication and
26582         division attributes to...
26583         (attribute "type"): ... here.  Remove mult.
26584         (attribute "mul32"): New attribute.
26585         (attribute "mul64"): Add umaal.
26586         (*arm_mulsi3): Update attributes.
26587         (*arm_mulsi3_v6): Likewise.
26588         (*thumb_mulsi3): Likewise.
26589         (*thumb_mulsi3_v6): Likewise.
26590         (*mulsi3_compare0): Likewise.
26591         (*mulsi3_compare0_v6): Likewise.
26592         (*mulsi_compare0_scratch): Likewise.
26593         (*mulsi_compare0_scratch_v6): Likewise.
26594         (*mulsi3addsi): Likewise.
26595         (*mulsi3addsi_v6): Likewise.
26596         (*mulsi3addsi_compare0): Likewise.
26597         (*mulsi3addsi_compare0_v6): Likewise.
26598         (*mulsi3addsi_compare0_scratch): Likewise.
26599         (*mulsi3addsi_compare0_scratch_v6): Likewise.
26600         (*mulsi3subsi): Likewise.
26601         (*mulsidi3adddi): Likewise.
26602         (*mulsi3addsi_v6): Likewise.
26603         (*mulsidi3adddi_v6): Likewise.
26604         (*mulsidi3_nov6): Likewise.
26605         (*mulsidi3_v6): Likewise.
26606         (*umulsidi3_nov6): Likewise.
26607         (*umulsidi3_v6): Likewise.
26608         (*umulsidi3adddi): Likewise.
26609         (*umulsidi3adddi_v6): Likewise.
26610         (*smulsi3_highpart_nov6): Likewise.
26611         (*smulsi3_highpart_v6): Likewise.
26612         (*umulsi3_highpart_nov6): Likewise.
26613         (*umulsi3_highpart_v6): Likewise.
26614         (mulhisi3): Likewise.
26615         (*mulhisi3tb): Likewise.
26616         (*mulhisi3bt): Likewise.
26617         (*mulhisi3tt): Likewise.
26618         (maddhisi4): Likewise.
26619         (*maddhisi4tb): Likewise.
26620         (*maddhisi4tt): Likewise.
26621         (maddhidi4): Likewise.
26622         (*maddhidi4tb): Likewise.
26623         (*maddhidi4tt): Likewise.
26624         (divsi3): Likewise.
26625         (udivsi3): Likewise.
26626         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
26627         (thumb2_mulsi_short_compare0): Likewise.
26628         (thumb2_mulsi_short_compare0_scratch): Likewise.
26629         * config/arm/arm1020e.md (1020mult1): Update attribute change.
26630         (1020mult2): Likewise.
26631         (1020mult3): Likewise.
26632         (1020mult4): Likewise.
26633         (1020mult5): Likewise.
26634         (1020mult6): Likewise.
26635         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
26636         change.
26637         (cortex_a15_mult64): Likewise.
26638         (cortex_a15_sdiv): Likewise.
26639         (cortex_a15_udiv): Likewise.
26640         * config/arm/arm1026ejs.md (mult1): Update attribute change.
26641         (mult2): Likewise.
26642         (mult3): Likewise.
26643         (mult4): Likewise.
26644         (mult5): Likewise.
26645         (mult6): Likewise.
26646         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
26647         (pj4_ir_div): Likewise.
26648         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
26649         (11_mult2): Likewise.
26650         (11_mult3): Likewise.
26651         (11_mult4): Likewise.
26652         (11_mult5): Likewise.
26653         (11_mult6): Likewise.
26654         (11_mult7): Likewise.
26655         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
26656         (cortex_a8_mla): Likewise.
26657         (cortex_a8_mull): Likewise.
26658         (cortex_a8_smulwy): Likewise.
26659         (cortex_a8_smlald): Likewise.
26660         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
26661         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
26662         (cortex_r4_mul_3): Likewise.
26663         (cortex_r4_mla_4): Likewise.
26664         (cortex_r4_mla_3): Likewise.
26665         (cortex_r4_smlald): Likewise.
26666         (cortex_r4_mull): Likewise.
26667         (cortex_r4_sdiv): Likewise.
26668         (cortex_r4_udiv): Likewise.
26669         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
26670         (cortex_a7_idiv): Likewise.
26671         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
26672         (9_mult2): Likewise.
26673         (9_mult3): Likewise.
26674         (9_mult4): Likewise.
26675         (9_mult5): Likewise.
26676         (9_mult6): Likewise.
26677         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
26678         (cortex_a53_sdiv): Likewise.
26679         (cortex_a53_udiv): Likewise.
26680         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
26681         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
26682         (mp626_mult2): Likewise.
26683         (mp626_mult3): Likewise.
26684         (mp626_mult4): Likewise.
26685         * config/arm/fa526.md (526_mult1): Update attribute change.
26686         (526_mult2): Likewise.
26687         * config/arm/arm-generic.md (mult): Update attribute change.
26688         (mult_ldsched_strongarm): Likewise.
26689         (mult_ldsched): Likewise.
26690         (multi_cycle): Likewise.
26691         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
26692         * config/arm/fa606te.md (606te_mult1): Update attribute change.
26693         (606te_mult2): Likewise.
26694         (606te_mult3): Likewise.
26695         (606te_mult4): Likewise.
26696         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
26697         (cortex_a9_mac16): Likewise.
26698         (cortex_a9_multiply): Likewise.
26699         (cortex_a9_mac): Likewise.
26700         (cortex_a9_multiply_long): Likewise.
26701         * config/arm/fa626te.md (626te_mult1): Update attribute change.
26702         (626te_mult2): Likewise.
26703         (626te_mult3): Likewise.
26704         (626te_mult4): Likewise.
26706 2013-06-18  Richard Biener  <rguenther@suse.de>
26708         PR lto/57334
26709         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
26711 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26713         PR target/57609
26714         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
26715         with next_active_insn.
26717 2013-06-18  Alan Modra  <amodra@gmail.com>
26719         * config/rs6000/rs6000.h (enum data_align): New.
26720         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
26721         (DATA_ABI_ALIGNMENT): Define.
26722         (CONSTANT_ALIGNMENT): Correct comment.
26723         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
26724         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
26726 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
26728         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
26729         ATTRIBUTE_UNUSED marking.
26731 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
26733         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
26734         alternative and update.
26735         (aarch64_dup_lanedi): Delete.
26736         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
26737         * config/aarch64/aarch64-simd-builtins.def: Update.
26739 2013-06-17  Richard Biener  <rguenther@suse.de>
26741         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
26742         (lto_input_scc): Declare.
26743         (lto_input_tree_1): Likewise.
26744         (struct lto_stats_d): Add num_tree_bodies_output and
26745         num_pickle_refs_output.
26746         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
26747         (lto_read_tree_1): Split out from ...
26748         (lto_read_tree): ... this.
26749         (lto_input_scc): New function.
26750         (lto_input_tree_1): Split out from ...
26751         (lto_input_tree): ... this.  Handle LTO_tree_scc.
26752         (lto_data_in_create): Create the streamer cache without hashes.
26753         * lto-streamer-out.c (create_output_block): Create the streamer
26754         cache with hashes when not doing WPA.
26755         (lto_write_tree_1): Split out from ...
26756         (lto_write_tree): ... this.
26757         (get_symbol_initial_value): New function.
26758         (lto_output_tree_1): Split out from ...
26759         (lto_output_tree): ... this.  Write trees as series of SCCs
26760         using a DFS walk via DFS_write_tree.
26761         (struct sccs, struct scc_entry): New types.
26762         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
26763         (DFS_write_tree_body): New function.
26764         (DFS_write_tree): Likewise.
26765         (hash_tree): Likewise.
26766         (scc_entry_compare): Likewise.
26767         (hash_scc): Likewise.
26768         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
26769         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
26770         TREE_CHAIN as regular reference.
26771         (streamer_read_integer_cst): Remove.
26772         (streamer_get_pickled_tree): Adjust.
26773         * tree-streamer-out.c (streamer_write_chain): Disable streaming
26774         of DECL_EXTERNALs in BLOCK_VARS for now.
26775         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
26776         reference.
26777         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
26778         Add hash value argument and record that if hashes are recorded
26779         in the cache.
26780         (streamer_tree_cache_insert_1): Adjust.
26781         (streamer_tree_cache_insert): Likewise.
26782         (streamer_tree_cache_insert_at): Rename to ...
26783         (streamer_tree_cache_replace_tree): ... this and adjust.
26784         (streamer_tree_cache_append): Adjust.
26785         (record_common_node): Likewise.
26786         (streamer_tree_cache_create): Add argument whether to
26787         record hash values together with trees.
26788         (streamer_tree_cache_delete): Adjust.
26789         * tree-streamer.h (struct streamer_tree_cache_d): Add
26790         vector of hashes.
26791         (streamer_read_integer_cst): Remove.
26792         (streamer_tree_cache_insert): Adjust.
26793         (streamer_tree_cache_append): Likewise.
26794         (streamer_tree_cache_insert_at): Rename to ...
26795         (streamer_tree_cache_replace_tree): ... this and adjust.
26796         (streamer_tree_cache_create): Add argument whether to record hashes.
26797         (streamer_tree_cache_get): Rename to ...
26798         (streamer_tree_cache_get_tree): ... this.
26799         (streamer_tree_cache_get_hash): New function.
26800         * tree.c (cache_integer_cst): New function.
26801         * tree.h (cache_integer_cst): Declare.
26802         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
26803         * lto-symtab.c (lto_varpool_replace_node): Only release
26804         DECL_INITIAL of non-prevailing decls.
26805         * varpool.c (varpool_remove_initializer): Do not release
26806         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
26808 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
26810         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
26811         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
26812         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
26813         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
26814         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
26815         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
26816         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
26817         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
26818         instead of TARGET_64BIT.
26819         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
26820         Require ISA_HAS_<D>DIV.
26822 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
26824         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
26825         (mips*-*-linux*): Move default with_llsc setting to where other
26826         defaults are set.
26827         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
26828         with_arch block.
26829         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
26830         Likewise.  Remove default with_tune setting.  Move default float
26831         setting to its own block.  Handle with_llsc in the same block as above.
26833 2013-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
26835         PR rtl-optimization/57425
26836         PR rtl-optimization/57569
26837         * alias.c (write_dependence_p): Add new parameters mem_mode,
26838         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
26839         Changed all callers.
26840         (canon_anti_dependence): New function.
26841         * cse.c (check_dependence): Use canon_anti_dependence.
26842         * cselib.c (cselib_invalidate_mem): Likewise.
26843         * rtl.h (canon_anti_dependence): Declare.
26845 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
26847         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
26848         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
26849         ".set mips3" for 64-bit targets.
26851 2013-06-15  Dehao Chen  <dehao@google.com>
26853         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
26854         * gimple-low.c (gimple_check_call_matching_types): Likewise.
26855         (gimple_check_call_args): Likewise.
26856         * value-prof.c (check_ic_target): Likewise.
26857         * ipa-inline.c (early_inliner): Likewise.
26858         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
26859         * cgraph.c (cgraph_create_edge_1): Likewise.
26860         (cgraph_make_edge_direct): Likewise.
26862 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
26864         PR target/57615
26865         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
26866         rs6000_output_move_128bit to handle emitting quad memory
26867         operations.  Set attribute length to 8 bytes.
26869 2013-06-14  Vidya Praveen  <vidyapraveen@arm.com>
26871         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
26872         New pattern.
26873         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
26874         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
26875         (aarch64_<su>mlsl<mode>): Likewise.
26877 2013-06-14  Mike Stump  <mikestump@comcast.net>
26879         * Makefile.in (TARGET_H): Add insn-codes.h.
26881 2013-06-14  Alan Modra  <amodra@gmail.com>
26883         PR middle-end/57134
26884         PR middle-end/57586
26885         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
26886         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
26887         bitfield expansion when EXPAND_MEMORY.
26888         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
26890 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
26892         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
26893         test for clearing quad memory on 32-bit later.
26895 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
26897         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
26898         (fold_negate_expr): Likewise.
26899         (fold_real_zero_addition_p): Handle vectors.
26900         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
26902 2013-06-14  Alan Modra  <amodra@gmail.com>
26904         * varasm.c (force_const_mem): Revert 2013-06-07 change.
26906 2013-06-13  Jan Hubicka  <jh@suse.cz>
26908         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
26909         Local comdats are not externally visible.
26910         * symtab.c (dump_symtab_base): Dump externally visible.
26911         (verify_symtab_base): Verify back links in the symtab hash.
26913 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
26915         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
26916         CONVERT_EXPR as equal nodes.
26918 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
26920         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
26922 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
26924         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
26925         Generalize to complex and vector.
26926         * tree.c (build_all_ones_cst): New function.
26927         * tree.h (build_all_ones_cst): Declare it.
26929 2013-06-13  Alan Modra  <amodra@gmail.com>
26931         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
26932         * config/rs6000/rs6000.md (signbittf2): New insn.
26933         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
26934         (abstf2_internal, cmptf_internal2): Likewise.
26935         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
26937 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
26938             Pat Haugen  <pthaugen@us.ibm.com>
26939             Peter Bergner  <bergner@vnet.ibm.com>
26941         * config/rs6000/rs6000.c (emit_load_locked): Add support for
26942         power8 byte, half-word, and quad-word atomic instructions.
26943         (emit_store_conditional): Likewise.
26944         (rs6000_expand_atomic_compare_and_swap): Likewise.
26945         (rs6000_expand_atomic_op): Likewise.
26947         * config/rs6000/sync.md (larx): Add new modes for power8.
26948         (stcx): Likewise.
26949         (AINT): New mode iterator to include TImode as well as normal
26950         integer modes on power8.
26951         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
26952         that VSX registers are not considered.  Use AINT mode iterator
26953         instead of INT1 to allow inclusion of quad word atomic operations
26954         on power8.
26955         (load_locked<mode>): Likewise.
26956         (store_conditional<mode>): Likewise.
26957         (atomic_compare_and_swap<mode>): Likewise.
26958         (atomic_exchange<mode>): Likewise.
26959         (atomic_nand<mode>): Likewise.
26960         (atomic_fetch_<fetchop_name><mode>): Likewise.
26961         (atomic_nand_fetch<mode>): Likewise.
26962         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
26963         each type.
26964         (ATOMIC): On power8, add QImode, HImode modes.
26965         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
26966         modes that promote to SImode.
26967         (load_lockedti): Convert TImode arguments to PTImode, so that we
26968         get a guaranteed even/odd register pair.
26969         (load_lockedpti): Likewise.
26970         (store_conditionalti): Likewise.
26971         (store_conditionalpti): Likewise.
26973         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
26974         atomic load/store instructions.
26975         (HSI): Likewise.
26977 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
26979         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
26980         loads.
26981         (insn_count): New attribute, with most cases extracted from...
26982         (length): ...here.  Redefine most cases in terms of insn_count.
26983         (single_insn): Delete.
26984         (can_delay): Use insn_count to check for single instructions.
26985         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
26986         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
26987         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
26988         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
26989         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
26990         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
26991         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
26992         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
26993         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
26994         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
26995         rather than "length".
26996         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
26997         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
26998         Use "insn_count" rather than "length".
26999         * config/mips/mips-dsp.md
27000         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
27001         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
27002         length attributes.
27004 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
27006         PR tree-optimization/57361
27007         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
27009 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
27011         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
27012         to split.
27013         (aarch64_simd_combine<mode>): New instruction expansion.
27014         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
27015         function prototype.
27016         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
27017         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
27019 2013-06-12  Jan Hubicka  <jh@suse.cz>
27021         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
27022         decl has when in streaming stage.
27023         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
27024         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
27026 2013-06-12  Roland Stigge  <stigge@antcom.de>
27028         PR target/57578
27029         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
27031 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
27033         PR tree-optimization/57537
27034         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
27035         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
27037 2013-06-12  Richard Biener  <rguenther@suse.de>
27039         * data-streamer.h (streamer_write_char_stream): CSE
27040         obs->current_pointer.
27041         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
27042         streamer_write_char_stream manually and optimize the resulting loop.
27043         (streamer_write_hwi_stream): Likewise.
27045 2013-06-12  Jan Hubicka  <jh@suse.cz>
27047         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
27048         * cgraph.h (varpool_create_empty_node): Declare.
27049         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
27050         duplicated nodes.
27051         * symtab.c (symtab_unregister_node): Be lax about missin entries
27052         in node hash.
27053         (symtab_get_node): Update comment.
27054         * varpool.c (varpool_create_empty_node): Break out from ...
27055         (varpool_node_for_decl): ... here.
27056         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
27058 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
27060         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
27061         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
27062         part.  Use straight-line flow at the end.
27063         <COMPONENT_REF>: Remove superfluous else.
27064         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
27066 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
27068         PR target/56564
27069         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
27070         target hook even for !TREE_PUBLIC decls.  If no resolution info
27071         is available, return false for common and external decls.
27073 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
27075         * config/rl78/constraints.md (U): New constraint.
27076         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
27077         valloc attribute.
27079 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
27081         PR target/57589
27082         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
27083         to allow returning address to AT_PLATFORM name.
27085 2013-06-11  Jan Hubicka  <jh@suse.cz>
27087         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
27088         * cgraph.h (symtab_node_base): Add weakref flag.
27089         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
27090         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
27091         (output_weakrefs): Use weakref flag.
27092         * fold-const.c (simple_operand_p): Handle WEAK.
27093         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
27094         * ipa.c (varpool_externally_visible_p): Drop weakref.
27095         (function_and_variable_visibility): Update comment; fix weakref
27096         sanity checks; do not clear DECL_WEAK on them.
27097         * lto-cgraph.c (lto_output_node): update.
27098         (lto_output_varpool_node): Update.
27099         (input_overwrite_node): Update.
27100         (input_node): Update.
27101         (input_varpool_node): Update.
27102         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
27103         (lto_symtab_merge_symbols): Add sanity check.
27104         (lto_symtab_prevailing_decl): Do not special case weakrefs.
27105         * passes.c (rest_of_decl_compilation): Set static flag, too.
27106         * symtab.c (dump_symtab_base): Dump weakref.
27107         (verify_symtab_base): Sanity check weakrefs.
27108         (symtab_make_decl_local): Remove duplicated code.
27109         (symtab_alias_ultimate_target): Simplify.
27110         * varpool.c (varpool_create_variable_alias): Set weakref flag.
27112 2013-06-11  Tom de Vries  <tom@codesourcery.com>
27114         * genautomata.c (gen_regexp_sequence): Handle els_num == -1.  Handle
27115         sequence_vect == NULL.
27117 2013-06-11  DJ Delorie  <dj@redhat.com>
27119         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
27120         (rl78_unwind_word_mode): New.
27122 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
27124         * final.c (debug_prefix_maps): Make static.
27126 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
27128         * function.c (initial_trampoline): Remove stray copy.
27130 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
27132         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
27134 2013-06-11  Martin Jambor  <mjambor@suse.cz>
27136         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
27137         within bounds at the beginning of the function.
27139 2013-06-11  Alan Modra  <amodra@gmail.com>
27141         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
27142         reporting.
27143         (get_named_section): Don't NULL !DECL_P decl.
27145 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
27147         * doc/invoke.texi (core-avx2): Document.
27148         (slm): Likewise.
27149         (atom): Updated with MOVBE.
27151 2013-06-11  Richard Biener  <rguenther@suse.de>
27153         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
27155 2013-06-11  Anton Blanchard  <anton@samba.org>
27157         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
27158         correct shift value in little-endian mode.
27160 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
27162         PR target/56564
27163         * varasm.c (get_variable_align): Move #endif to the right place.
27165 2013-06-10  Cary Coutant  <ccoutant@google.com>
27167         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
27168         for hash so that hash table traversal order is deterministic.
27170 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
27171             Pat Haugen  <pthaugen@us.ibm.com>
27172             Peter Bergner  <bergner@vnet.ibm.com>
27174         * config/rs6000/vector.md (GPR move splitter): Do not split moves
27175         of vectors in GPRS if they are direct moves or quad word load or
27176         store moves.
27178         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
27179         declaration.
27180         (direct_move_p): Likewise.
27181         (quad_load_store_p): Likewise.
27183         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
27184         classes into bins based on the physical register type.
27185         (reg_class_to_reg_type): Likewise.
27186         (IS_STD_REG_TYPE): Likewise.
27187         (IS_FP_VECT_REG_TYPE): Likewise.
27188         (reload_fpr_gpr): Arrays to determine what insn to use if we can
27189         use direct move instructions.
27190         (reload_gpr_vsx): Likewise.
27191         (reload_vsx_gpr): Likewise.
27192         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
27193         information that is a simplification of register classes.  Also
27194         precalculate direct move reload helpers.
27195         (direct_move_p): New function to return true if the operation can
27196         be done as a direct move instruciton.
27197         (quad_load_store_p): New function to return true if the operation
27198         is a quad memory operation.
27199         (rs6000_legitimize_address): If quad memory, only allow register
27200         indirect for TImode addresses.
27201         (rs6000_legitimate_address_p): Likewise.
27202         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
27203         (rs6000_reload_register_type): Likewise.
27204         (register_to_reg_type): Return register type.
27205         (rs6000_secondary_reload_simple_move): New helper function for
27206         secondary reload and secondary memory needed to identify anything
27207         that is a simple move, and does not need reloading.
27208         (rs6000_secondary_reload_direct_move): New helper function for
27209         secondary reload to identify cases that can be done with several
27210         instructions via the direct move instructions.
27211         (rs6000_secondary_reload_move): New helper function for secondary
27212         reload to identify moves between register types that can be done.
27213         (rs6000_secondary_reload): Add support for quad memory operations
27214         and for direct move.
27215         (rs6000_secondary_memory_needed): Likewise.
27216         (rs6000_debug_secondary_memory_needed): Change argument names.
27217         (rs6000_output_move_128bit): New function to return the move to
27218         use for 128-bit moves, including knowing about the various
27219         limitations of quad memory operations.
27221         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
27222         memory operations.  call rs6000_output_move_128bit for the actual
27223         instruciton(s) to generate.
27224         (vsx_movti_64bit): Likewise.
27226         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
27227         (UNSPEC_P8V_MTVSRWZ): Likewise.
27228         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
27229         (UNSPEC_P8V_MTVSRD): Likewise.
27230         (UNSPEC_P8V_XXPERMDI): Likewise.
27231         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
27232         (UNSPEC_FUSION_GPR): Likewise.
27233         (FMOVE128_GPR): New iterator for direct move.
27234         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
27235         (f32_sv): Likewise.
27236         (f32_dm): Likewise.
27237         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
27238         loads and direct move instructions.
27239         (zero_extendsidi2_lfiwzx): Likewise.
27240         (extendsidi2_lfiwax): Likewise.
27241         (extendsidi2_nocell): Likewise.
27242         (floatsi<mode>2_lfiwax): Likewise.
27243         (lfiwax): Likewise.
27244         (floatunssi<mode>2_lfiwzx): Likewise.
27245         (lfiwzx): Likewise.
27246         (fix_trunc<mode>_stfiwx): Likewise.
27247         (fixuns_trunc<mode>_stfiwx): Likewise.
27248         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
27249         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
27250         (parity<mode>2_cmpb): Set length/type attr.
27251         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
27252         for 'mr.' to fast_compare.
27253         (bpermd_<mode>): Change type attr to popcnt.
27254         (p8_fmrgow_<mode>): New insns for power8 direct move support.
27255         (p8_mtvsrwz_1): Likewise.
27256         (p8_mtvsrwz_2): Likewise.
27257         (reload_fpr_from_gpr<mode>): Likewise.
27258         (p8_mtvsrd_1): Likewise.
27259         (p8_mtvsrd_2): Likewise.
27260         (p8_xxpermdi_<mode>): Likewise.
27261         (reload_vsx_from_gpr<mode>): Likewise.
27262         (reload_vsx_from_gprsf): Likewise.
27263         (p8_mfvsrd_3_<mode>): LIkewise.
27264         (reload_gpr_from_vsx<mode>): Likewise.
27265         (reload_gpr_from_vsxsf): Likewise.
27266         (p8_mfvsrd_4_disf): Likewise.
27267         (multi-word GPR splits): Do not split direct moves or quad memory
27268         operations.
27270 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
27272         * tree-into-ssa.c (interesting_blocks): Make static.
27274 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
27276         PR target/56564
27277         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
27278         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
27279         Use DATA_ABI_ALIGNMENT for that case instead if defined.
27280         (get_variable_align): New function.
27281         (get_variable_section, emit_bss, emit_common,
27282         assemble_variable_contents, place_block_symbol): Use
27283         get_variable_align instead of DECL_ALIGN.
27284         (assemble_noswitch_variable): Add align argument, use it
27285         instead of DECL_ALIGN.
27286         (assemble_variable): Adjust caller.  Use get_variable_align
27287         instead of DECL_ALIGN.
27288         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
27289         caller.
27290         (DATA_ABI_ALIGNMENT): Define.
27291         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
27292         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
27293         opt is false, only return the psABI mandated alignment increase.
27294         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
27295         (DATA_ABI_ALIGNMENT): ... this.
27296         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
27297         (DATA_ABI_ALIGNMENT): ... this.
27298         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
27299         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
27300         (DATA_ABI_ALIGNMENT): ... this.
27301         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
27302         * doc/tm.texi: Regenerated.
27304 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
27306         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
27307         cmp_code to construct REG_EQUAL note.
27309 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
27311         PR target/57568
27312         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
27313         that operands[2] doesn't overlap with operands[0].
27315 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
27316             Jan Hubicka  <jh@suse.cz>
27318         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
27319         hack to mark symbols as used.
27321 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
27323         PR rtl-optimization/57559
27324         * lra-constraints.c (process_alt_operands): Don't discourage
27325         memory with known offset for offsetable memory constraint.
27326         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
27328 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
27330         * varasm.c (struct oc_local_state): Reorder fields.
27331         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
27332         and adjust accordingly.
27333         (output_constructor): Reorder initialization code and adjust call to
27334         output_constructor_bitfield.
27336 2013-06-07  Jan Hubicka  <jh@suse.cz>
27338         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
27340 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
27342         * tree-object-size.c (unknown): Make const.
27344 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27346         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
27347         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
27348         for last alternative in the cpu_facility attribute.
27350 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27352         PR target/56315
27353         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
27354         (xordi3): Change operand 2 constraint to arm_xordi_operand.
27355         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
27356         * config/arm/constraints.md (Dg): New constraint.
27357         * config/arm/neon.md (xordi3_neon): Remove.
27358         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
27359         * config/arm/predicates.md (arm_xordi_operand): New predicate.
27361 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27363         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
27364         Clean up alternatives.
27366 2013-06-07  Alan Modra  <amodra@gmail.com>
27368         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
27369         va_list_gpr_size.
27371 2013-06-07  Alan Modra  <amodra@gmail.com>
27373         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
27375 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27377         * config/arm/constraints.md (Df): New constraint.
27378         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
27379         Correct length attribute for last two alternatives.
27381 2013-06-07  Alan Modra  <amodra@gmail.com>
27383         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
27384         override user -mfp-in-toc.
27385         (offsettable_ok_by_alignment): Consider just the current access
27386         rather than the whole object, unless BLKmode.  Handle
27387         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
27388         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
27389         for -mcmodel=medium.
27390         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
27391         override user -mfp-in-toc or -msum-in-toc.  Default to
27392         -mno-fp-in-toc for -mcmodel=medium.
27394 2013-06-06  DJ Delorie  <dj@redhat.com>
27396         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
27397         TARGET_VALID_POINTER_MODE.
27399 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
27400             Pat Haugen  <pthaugen@us.ibm.com>
27401             Peter Bergner  <bergner@vnet.ibm.com>
27403         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27404         Document new power8 builtins.
27406         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
27407         condition code register, to allow 128-bit logical operations to be
27408         done in the VSX or GPR registers.
27409         (nor<mode>3): Use the canonical form for nor.
27410         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
27411         vclz*, and vpopcnt* vector instructions.
27412         (nand<mode>3): Likewise.
27413         (orc<mode>3): Likewise.
27414         (clz<mode>2): LIkewise.
27415         (popcount<mode>2): Likewise.
27417         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
27418         that only the GPRs are recognized.
27420         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27421         support for new power8 builtins.
27423         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
27424         builtin functions.
27425         (xscvdpspn): Likewise.
27426         (vclz): Likewise.
27427         (vclzb): Likewise.
27428         (vclzh): Likewise.
27429         (vclzw): Likewise.
27430         (vclzd): Likewise.
27431         (vpopcnt): Likewise.
27432         (vpopcntb): Likewise.
27433         (vpopcnth): Likewise.
27434         (vpopcntw): Likewise.
27435         (vpopcntd): Likewise.
27436         (vgbbd): Likewise.
27437         (vmrgew): Likewise.
27438         (vmrgow): Likewise.
27439         (eqv): Likewise.
27440         (eqv_v16qi3): Likewise.
27441         (eqv_v8hi3): Likewise.
27442         (eqv_v4si3): Likewise.
27443         (eqv_v2di3): Likewise.
27444         (eqv_v4sf3): Likewise.
27445         (eqv_v2df3): Likewise.
27446         (nand): Likewise.
27447         (nand_v16qi3): Likewise.
27448         (nand_v8hi3): Likewise.
27449         (nand_v4si3): Likewise.
27450         (nand_v2di3): Likewise.
27451         (nand_v4sf3): Likewise.
27452         (nand_v2df3): Likewise.
27453         (orc): Likewise.
27454         (orc_v16qi3): Likewise.
27455         (orc_v8hi3): Likewise.
27456         (orc_v4si3): Likewise.
27457         (orc_v2di3): Likewise.
27458         (orc_v4sf3): Likewise.
27459         (orc_v2df3): Likewise.
27461         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
27462         allow power8 quad mode in 64-bit.
27463         (rs6000_builtin_vectorized_function): Add support to vectorize
27464         ISA 2.07 count leading zeros, population count builtins.
27465         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
27466         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
27467         (builtin_function_type): Add vgbbd builtin function which takes an
27468         unsigned argument.
27469         (altivec_expand_vec_perm_const): Add support for new power8 merge
27470         instructions.
27472         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
27473         that does not include TImdoe for use with 32-bit.
27474         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
27475         instructions.
27476         (UNSPEC_VSX_CVDPSPN): Likewise.
27477         (vsx_xscvdpspn): Likewise.
27478         (vsx_xscvspdpn): Likewise.
27479         (vsx_xscvdpspn_scalar): Likewise.
27480         (vsx_xscvspdpn_directmove): Likewise.
27481         (vsx_and<mode>3): Split logical operations into 32-bit and
27482         64-bit. Add support to do logical operations on TImode as well as
27483         VSX vector types.  Allow logical operations to be done in either
27484         VSX registers or in general purpose registers in 64-bit mode.  Add
27485         splitters if GPRs were used. For AND, add clobber of CCmode to
27486         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
27487         encoding.
27488         (vsx_and<mode>3_32bit): Likewise.
27489         (vsx_and<mode>3_64bit): Likewise.
27490         (vsx_ior<mode>3): Likewise.
27491         (vsx_ior<mode>3_32bit): Likewise.
27492         (vsx_ior<mode>3_64bit): Likewise.
27493         (vsx_xor<mode>3): Likewise.
27494         (vsx_xor<mode>3_32bit): Likewise.
27495         (vsx_xor<mode>3_64bit): Likewise.
27496         (vsx_one_cmpl<mode>2): Likewise.
27497         (vsx_one_cmpl<mode>2_32bit): Likewise.
27498         (vsx_one_cmpl<mode>2_64bit): Likewise.
27499         (vsx_nor<mode>3): Likewise.
27500         (vsx_nor<mode>3_32bit): Likewise.
27501         (vsx_nor<mode>3_64bit): Likewise.
27502         (vsx_andc<mode>3): Likewise.
27503         (vsx_andc<mode>3_32bit): Likewise.
27504         (vsx_andc<mode>3_64bit): Likewise.
27505         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
27506         and xxlorc instructions.
27507         (vsx_eqv<mode>3_64bit): Likewise.
27508         (vsx_nand<mode>3_32bit): Likewise.
27509         (vsx_nand<mode>3_64bit): Likewise.
27510         (vsx_orc<mode>3_32bit): Likewise.
27511         (vsx_orc<mode>3_64bit): Likewise.
27513         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
27515         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
27516         instruction.
27517         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
27518         (p8_vmrgow): Likewise.
27519         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
27520         GPRs to be split under VSX.
27521         (p8v_clz<mode>2): Add power8 count leading zero support.
27522         (p8v_popcount<mode>2): Add power8 population count support.
27523         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
27524         support.
27526         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
27527         instruction.
27529         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
27530         builtin functions.
27531         (vec_nand): Likewise.
27532         (vec_vclz): Likewise.
27533         (vec_vclzb): Likewise.
27534         (vec_vclzd): Likewise.
27535         (vec_vclzh): Likewise.
27536         (vec_vclzw): Likewise.
27537         (vec_vgbbd): Likewise.
27538         (vec_vmrgew): Likewise.
27539         (vec_vmrgow): Likewise.
27540         (vec_vpopcnt): Likewise.
27541         (vec_vpopcntb): Likewise.
27542         (vec_vpopcntd): Likewise.
27543         (vec_vpopcnth): Likewise.
27544         (vec_vpopcntw): Likewise.
27546 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
27548         PR rtl-optimization/57468
27549         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
27550         spilled pseudos.
27552 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
27554         PR rtl-optimization/57459
27555         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
27556         type when setting live regs.
27558 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
27560         * config/s390/s390.opt (mlra): New option.
27561         * config/s390/s390.c (s390_decompose_address): Check displacement
27562         for all registers for LRA.
27563         (s390_secondary_reload): Don't used secondary reloads for LRA.
27564         (s390_lra_p): New function.
27565         (TARGET_LRA_P): Define.
27566         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
27567         of attribute cpu_facility to zarch for the last alternative.
27568         (*cmpmem_short): Ditto.
27570 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
27572         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
27573         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
27574         (arm_expand_prologue): Likewise.
27576 2013-06-06  Teresa Johnson  <tejohnson@google.com>
27578         PR c++/53743
27579         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
27580         as this is now done by redirect_edge_and_branch_force.
27581         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
27582         barriers, and fix interaction with splitting.
27583         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
27584         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
27585         reflect changes made in the routine.
27586         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
27587         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
27588         since this is called in cfglayout mode, and replace partition fixup
27589         with assert as that is now done by force_nonfallthru_and_redirect.
27590         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
27591         already be marked with region crossing note.
27592         (insert_section_boundary_note): Make non-static, gate on flag
27593         has_bb_partition, rewrite to also check for multiple partitions.
27594         (rest_of_handle_reorder_blocks): Remove call to
27595         insert_section_boundary_note, now done later during free_cfg.
27596         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
27597         * bb-reorder.h (insert_section_boundary_note): Declare.
27598         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
27599         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
27600         invoke insert_section_boundary_note.
27601         (try_redirect_by_replacing_jump): Remove unnecessary
27602         check for region crossing note.
27603         (fixup_partition_crossing): New function.
27604         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
27605         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
27606         in non-cfglayout mode.
27607         (force_nonfallthru_and_redirect): Fixup partition boundaries,
27608         remove old code that tried to do this. Emit barrier correctly
27609         when we are in cfglayout mode.
27610         (last_bb_in_partition): New function.
27611         (rtl_split_edge): Correctly fixup partition boundaries.
27612         (commit_one_edge_insertion): Remove old code that tried to
27613         fixup region crossing edge since this is now handled in
27614         split_block, and set up insertion point correctly since
27615         block may now end in a jump.
27616         (verify_hot_cold_block_grouping): Guard against checking when not in
27617         linearized RTL mode.
27618         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
27619         notes.
27620         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
27621         rtl_verify_flow_info, so not called in cfglayout mode.
27622         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
27623         (fixup_reorder_chain): Remove old code that attempted to fixup region
27624         crossing note as this is now handled in force_nonfallthru_and_redirect.
27625         (duplicate_insn_chain): Don't duplicate switch section notes.
27626         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
27627         note.
27628         * basic-block.h (emit_barrier_after_bb): Declare.
27630 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27632         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
27633         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
27634         arm_usatsihi): Adjust alternatives for arm_restrict_it.
27636 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27638         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
27639         where appropriate.
27640         * config/arm/ldmstm.md: Regenerate.
27642 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27644         * config/arm/sync.md (atomic_loaddi_1):
27645         Disable predication for arm_restrict_it.
27646         (arm_load_exclusive<mode>): Likewise.
27647         (arm_load_exclusivesi): Likewise.
27648         (arm_load_exclusivedi): Likewise.
27649         (arm_load_acquire_exclusive<mode>): Likewise.
27650         (arm_load_acquire_exclusivesi): Likewise.
27651         (arm_load_acquire_exclusivedi): Likewise.
27652         (arm_store_exclusive<mode>): Likewise.
27653         (arm_store_exclusive<mode>): Likewise.
27654         (arm_store_release_exclusivedi): Likewise.
27655         (arm_store_release_exclusive<mode>): Likewise.
27657 2013-06-06  Richard Biener  <rguenther@suse.de>
27659         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
27660         after LTO_null.
27661         (lto_tag_is_tree_code_p): Adjust.
27662         (lto_tag_is_gimple_code_p): Likewise.
27663         (lto_gimple_code_to_tag): Likewise.
27664         (lto_tag_to_gimple_code): Likewise.
27665         (lto_tree_code_to_tag): Likewise.
27666         (lto_tag_to_tree_code): Likewise.
27667         * data-streamer.h (streamer_write_hwi_in_range): Use
27668         uhwi streaming to stream the normalized range.
27669         (streamer_read_hwi_in_range): Likewise.
27671 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27673         * config/arm/arm.md (enabled_for_depr_it): New attribute.
27674         (predicable_short_it): Likewise.
27675         (predicated): Likewise.
27676         (enabled): Handle above.
27677         (define_cond_exec): Set predicated attribute to yes.
27679 2013-06-05  Mike Stump  <mikestump@comcast.net>
27681         * gdbinit.in (__FUNCTION__): Add.
27683 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
27685         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
27686         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
27688 2013-06-05  Jan Hubicka  <jh@suse.cz>
27690         * varasm.c (mark_decl_referenced): Revert the removal until targets
27691         are fixed.
27693 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
27695         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
27696         instead of mark_decl_referenced.
27698 2013-06-05  Jan Hubicka  <jh@suse.cz>
27700         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
27701         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
27702         and symtab_used_from_object_file_p.
27703         (cgraph_make_node_local_1): Clear forced_by_abi.
27704         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
27705         * cgraph.h (symtab_node_base): Add forced_by_abi.
27706         (decide_is_variable_needed): Remove.
27707         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
27708         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
27709         (decide_is_symbol_needed): ... this one; handle symbols in general;
27710         always analyze virtuals; honnor forced_by_abi.
27711         (cgraph_finalize_function): Update.
27712         (varpool_finalize_decl): Update.
27713         (symbol_defined_and_needed): Remove.
27714         (analyze_functions): Update.
27715         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
27716         output_refs, input_overwrite_node): Handle forced_by_abi.
27717         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
27718         (address_taken_from_non_vtable_p): ... this one.
27719         (comdat_can_be_unshared_p_1): New function.
27720         (cgraph_comdat_can_be_unshared_p): Rename to ...
27721         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
27722         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
27723         (function_and_variable_visibility): Clear forced_by_abi as needed.
27724         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
27725         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
27726         * symtab.c (dump_symtab_base): Dump forced_by_abi.
27727         * varpool.c (decide_is_variable_needed): Remove.
27729 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27731         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
27732         (arm_option_override): Override arm_restrict_it where appropriate.
27733         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
27734         * config/arm/arm.opt (mrestrict-it): New command-line option.
27735         * doc/invoke.texi: Document -mrestrict-it.
27737 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
27739         * tsan.c (tsan_atomic_table): Make const.
27741 2013-06-05  Richard Biener  <rguenther@suse.de>
27743         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
27744         index associated with the tree we are supposed to replace.
27745         * tree-streamer-out.c (pack_ts_base_value_fields): Output
27746         TREE_ASM_WRITTEN as zero for everything but SSA names.
27748 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
27750         * tree-ssa-structalias.c (call_stmt_vars): Make static.
27752 2013-06-04  Jan Hubicka  <jh@suse.cz>
27754         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
27755         (input_node, input_varpool_node): Handle correctly external same
27756         body aliases.
27757         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
27758         nodes at ltrans stage.
27760 2013-06-04  Jan Hubicka  <jh@suse.cz>
27762         * ipa-inline.c (update_caller_keys): Fix availability test.
27763         (update_callee_keys): Likewise.
27764         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
27765         to follow ELF standard.
27767 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
27769         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
27770         (mips64r5900el-*-elf*): New configurations.
27771         * config/mips/mips-cpus.def (r5900): New processor.
27772         * config/mips/mips-tables.opt: Regenerate.
27773         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
27774         (mips_issue_rate): Handle PROCESSOR_R5900.
27775         (mips_reorg_process_insns): Force reorder mode for the R5900.
27776         * config/mips/mips.h (TARGET_MIPS5900): Define.
27777         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
27778         TARGET_MIPS5900.
27779         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
27780         TARGET_MIPS5900.
27781         * config/mips/mips.md (processor): Add r5900.
27782         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
27784 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
27786         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
27787         into function to generate MOVI instruction.
27788         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
27789         (aarch64_preferred_simd_mode): Turn into wrapper.
27790         (aarch64_output_scalar_simd_mov_immediate): New function.
27791         * config/aarch64/aarch64-protos.h: Add prototype for above.
27793 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
27795         * config/aarch64/aarch64.c (simd_immediate_info): Remove
27796         element_char member.
27797         (sizetochar): Return signed char.
27798         (aarch64_simd_valid_immediate): Remove elchar and other
27799         unnecessary variables.
27800         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
27801         Calculate element_char as required.
27802         * config/aarch64/aarch64-protos.h: Update and move prototype
27803         for aarch64_output_simd_mov_immediate.
27804         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
27805         Update arguments.
27807 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
27809         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
27810         information completed by aarch64_simd_valid_immediate.
27811         (aarch64_legitimate_constant_p): Update arguments.
27812         (aarch64_simd_valid_immediate): Work with struct rather than many
27813         pointers.
27814         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
27815         (aarch64_simd_make_constant): Update arguments.
27816         (aarch64_output_simd_mov_immediate): Work with struct rather than
27817         many pointers.  Output immediate directly rather than as operand.
27818         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
27819         Update prototype.
27820         * config/aarch64/constraints.md (Dn): Update arguments.
27822 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
27824         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
27825         longer static.
27826         (aarch64_simd_immediate_valid_for_move): Remove.
27827         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
27828         (aarch64_simd_make_constant): Update call.
27829         (aarch64_output_simd_mov_immediate): Update call.
27830         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
27831         Add prototype.
27832         * config/aarch64/constraints.md (Dn): Update call.
27834 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
27836         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
27837         return type to bool for prototype.
27838         (aarch64_legitimate_constant_p): Check for true instead of not -1.
27839         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
27840         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
27842 2013-06-04  Catherine Moore  <clm@codesourcery.com>
27844         * config/mips/mips.opt (meva): New.
27845         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
27846         (ASM_SPEC): Handle -meva.
27847         * doc/invoke.texi (meva):  Document.
27849 2013-06-04  Alan Modra  <amodra@gmail.com>
27851         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
27852         constant output.
27854 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27856         * rtl.def: Add extra fourth optional field to define_cond_exec.
27857         * gensupport.c (process_one_cond_exec): Process attributes from
27858         define_cond_exec.
27859         * doc/md.texi: Document fourth field in define_cond_exec.
27861 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
27863         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
27864         out the processing order as in store_bit_field_1.
27866 2013-06-04  Jan Hubicka  <jh@suse.cz>
27868         PR middle-end/57500
27869         * cgraphunit.c (cgraph_process_same_body_aliases): Create
27870         non-VAR_DECL node if it does not exist yet.
27872 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
27874         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
27875         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
27876         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
27877         target_cpu_default setting.
27879 2013-06-03  Teresa Johnson  <tejohnson@google.com>
27881         * dumpfile.c (opt_info_switch_p): Change -fopt-info
27882         default to -fopt-info=optimized instead of all.
27883         * doc/invoke.texi: Ditto.
27884         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
27885         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
27886         (execute_vect_slp): Emit BB vectorization success under
27887         MSG_OPTIMIZED_LOCATIONS.
27888         * tree-vect-slp.c (vect_slp_transform_bb): Change
27889         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
27890         * tree-vect-loop.c (vect_transform_loop): Ditto.
27892 2013-06-03  Jason Merrill  <jason@redhat.com>
27894         PR c++/57415
27895         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27896         Use TARGET_EXPR for C++.
27898 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
27900         PR rtl-optimization/57268
27901         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
27902         if DEBUG_INSN_P (insn).
27904         Reapply
27905         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
27907         PR rtl-optimization/57268
27908         * sched-deps.c (sched_analyze_2): Flush dependence lists if
27909         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
27911 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
27913         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
27914         (ix86_avoid_lea_for_addr): Likewise.
27915         (exact_dependency_1): Likewise.
27916         (ix86_adjust_cost): Likewise.
27917         (swap_top_of_ready_list): Fix formatting and !reload_completed check
27918         removed.
27919         (do_reorder_for_imul): Fix typo, formatting and
27920         !reload_completed check removed.
27921         (ix86_sched_reorder): Fix typo and formatting.
27922         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
27923         list.
27925 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
27927         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
27929 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
27931         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
27932         <STRING_CST>: Likewise.
27933         <VECTOR_CST>: Likewise.
27935 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
27936             Mikael Morin  <mikael@gcc.gnu.org>
27938         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
27939         * config.in: Regenerated.
27940         * configure: Regenerated.
27942 2013-06-01  Jan Hubicka  <jh@suse.cz>
27944         PR middle-end/57366
27945         * cgraphunit.c (compile): When weakref is not supported,
27946         set up transparent aliases before final output pass.
27947         * varasm.c (assemble_alias): Do not try to do it here.
27949 2013-06-01  Jan Hubicka  <jh@suse.cz>
27951         PR middle-end/57467
27952         * passes.c (for_per_function): Skip unanalyzed functions.
27954 2013-06-01  Jan Hubicka  <jh@suse.cz>
27956         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
27957         (lto_symtab_merge_symbols_1): ... this one.
27958         (lto_symtab_merge_cgraph_nodes): Rename to ...
27959         (lto_symtab_merge_symbols): ... this one; simplify.
27960         * cgraph.c (same_body_aliases_done): Rename to ...
27961         (cpp_implicit_aliases_done): ... this one.
27962         (cgraph_create_function_alias): Update.
27963         (cgraph_same_body_alias): Update.
27964         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
27965         (verify_edge_corresponds_to_fndecl): Simplify.
27966         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
27967         (cgraph_node): Remove same_body_alias.
27968         (varpool_node): Remove alias_of and extra_name_alias.
27969         (same_body_aliases_done): Rename to ..
27970         (cpp_implicit_aliases_done): ... this one.
27971         (symtab_alias_ultimate_target): Add default parameter.
27972         (symtab_resolve_alias): New function.
27973         (fixup_same_cpp_alias_visibility): Declare.
27974         (cgraph_function_node): Add default parameter.
27975         (cgraph_node_asm_name): Likewise.
27976         (cgraph_function_or_thunk_node): Add default parameter; do
27977         not ICE when it is NULL.
27978         (varpool_variable_node): Likewise.
27979         * tree-emutls.c (create_emultls_var): Update.
27980         (ipa_lower_emutls): Update.
27981         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
27982         (cgraph_reset_node): Reset alias info.
27983         (cgraph_finalize_function): Update.
27984         (fixup_same_cpp_alias_visibility): Move to symtab.c.
27985         (analyze_function): Simplify.
27986         (cgraph_process_same_body_aliases): Simplify.
27987         (analyze_functions): Fixup same body aliases.
27988         (handle_alias_pairs): Simplify.
27989         (assemble_thunk): Update.
27990         (assemble_thunks_and_aliases): Update.
27991         (output_weakrefs): Rewrite.
27992         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
27993         (lto_output_varpool_node): Likewise.
27994         (compute_ltrans_boundary): Remve assert.
27995         (get_alias_symbol): New functoin.
27996         (input_node): Rewrite alias handling.
27997         (input_varpool_node): Likewise.
27998         * ipa-pure-const.c (propagate_pure_const): Fix formating.
27999         * ipa.c (process_references): Handle weakrefs correctly.
28000         (symtab_remove_unreachable_nodes): Likewise.
28001         * trans-mem.c (get_cg_data): Update.
28002         (ipa_tm_create_version_alias): Update.
28003         (ipa_tm_execute): Update.
28004         * symtab.c (dump_symtab_base): Dump aliases.
28005         (verify_symtab_base): Verify aliases.
28006         (symtab_node_availability): New function.
28007         (symtab_alias_ultimate_target): Simplify.
28008         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
28009         handle all the fixup cases.
28010         (symtab_resolve_alias): New function.
28011         * passes.c (ipa_write_summaries): Handle weakrefs.
28012         * varpool.c (varpool_analyze_node): Simplify.
28013         (assemble_aliases): Update.
28014         (varpool_create_variable_alias): Simplify.
28015         (varpool_extra_name_alias): Simplify.
28016         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
28017         (lto_symtab_merge_symbols): ... this one.
28019 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
28021         Revert
28022         PR rtl-optimization/57268
28023         * sched-deps.c (sched_analyze_2): Flush dependence lists if
28024         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
28026 2013-06-01  Tobias Burnus  <burnus@net-b.de>
28028         Partially reverted:
28029         2013-05-31  Tobias Burnus  <burnus@net-b.de>
28031         PR middle-end/57073
28032         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
28033         further up.
28035 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
28037         PR rtl-optimization/57268
28038         * sched-deps.c (sched_analyze_2): Flush dependence lists if
28039         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
28041 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
28043         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
28044         unordered comparison operators when -fno-trapping-math is in effect
28045         on the e500.
28046         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
28047         and implement unordered comparison operators properly on the e500.
28049 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
28051         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
28052         for constant scalar integers.
28053         (simplify_relational_operation_1): Likewise.
28055 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
28057         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
28058         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
28059         Fix comment.
28061 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
28062             Igor Zamyatin  <igor.zamyatin@intel.com>
28064         Silvermont (SLM) architecture performance tuning.
28065         * config/i386/i386.h (enum ix86_tune_indices): Add
28066         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
28067         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
28069         * config/i386/i386.c (initial_ix86_tune_features)
28070         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
28071         (ix86_lea_outperforms): Handle Silvermont tuning.
28072         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
28073         call.
28074         (ix86_use_lea_for_mov): Likewise.
28075         (ix86_avoid_lea_for_addr): Likewise.
28076         (ix86_lea_for_add_ok): Likewise.
28077         (exact_dependency_1): New function.
28078         (exact_store_load_dependency): Likewise.
28079         (ix86_adjust_cost): Handle Silvermont tuning.
28080         (do_reoder_for_imul): Likewise.
28081         (swap_top_of_ready_list): New function.
28082         (ix86_sched_reorder): Changed to handle Silvermont tuning.
28084         * config/i386/i386.md (peepholes that split memory operand in fp
28085         converts): New.
28087 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
28089         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
28090         Remove un-necessary braces.
28092 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
28094         * config/aarch64/aarch64.c (aarch64_classify_symbol):
28095         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
28097 2013-05-31  Tobias Burnus  <burnus@net-b.de>
28099         PR middle-end/57073
28100         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
28102 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28104         PR target/56315
28105         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
28106         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
28107         * config/arm/neon.md (iordi3_neon): Remove.
28108         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
28109         * config/arm/predicates.md (imm_for_neon_logic_operand):
28110         Move to earlier in the file.
28111         (neon_logic_op2): Likewise.
28112         (arm_iordi_operand_neon): New predicate.
28114 2013-05-31  Richard Biener  <rguenther@suse.de>
28116         PR tree-optimization/57478
28117         PR tree-optimization/57453
28118         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
28119         are life as well.
28121 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
28123         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
28124         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
28126 2013-05-30  Tobias Burnus  <burnus@net-b.de>
28127             Thomas Koenig  <tkoenig@gcc.gnu.org>
28129         PR middle-end/57073
28130         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
28131         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
28133 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
28135         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
28137 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
28139         * target.def (register_usage_leveling_p): New hook.
28140         * targhooks.c (default_register_usage_leveling_p): New.
28141         * targhooks.h (default_register_usage_leveling_p): New prototype.
28142         * lra-assigns.c (register_usage_leveling_p): Use the hook.
28143         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
28144         * doc/tm.texi: Update.
28145         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
28147 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
28149         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
28150         (*insv_reg<mode>): New define_insn.
28152 2013-05-30  Joern Rennecke  <joern.rennecke@embecosm.com>
28154         PR rtl-optimization/57439
28155         * postreload.c (move2add_valid_value_p): Check that we have
28156         a zero subreg_regno_offset when accessing the register in
28157         the requested mode.
28159 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
28160             Igor Zamyatin  <igor.zamyatin@intel.com>
28162         Silvermont (SLM) architecture pipeline model, tuning and
28163         insn selection.
28164         * config.gcc: Add slm config options and target.
28166         * config/i386/slm.md: New.
28168         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
28170         * config/i386/i386-c.c (ix86_target_macros_internal):  New case
28171         PROCESSOR_SLM.
28172         (ix86_target_macros_internal): Likewise.
28174         * config/i386/i386.c (slm_cost): New cost.
28175         (m_SLM): New macro flag.
28176         (initial_ix86_tune_features): Set m_SLM.
28177         (x86_accumulate_outgoing_args): Likewise.
28178         (x86_arch_always_fancy_math_387): Likewise.
28179         (processor_target_table): Add slm cost.
28180         (cpu_names): Add slm cpu name.
28181         (x86_option_override_internal): Set SLM ISA.
28182         (ix86_issue_rate): New case PROCESSOR_SLM.
28183         (ia32_multipass_dfa_lookahead): Likewise.
28184         (fold_builtin_cpu): Add slm.
28186         * config/i386/i386.h (TARGET_SLM): New target macro.
28187         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
28188         (processor_type): Add PROCESSOR_SLM.
28190         * config/i386/i386.md (cpu): Add new value "slm".
28191         (slm.md): Include slm.md.
28193 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
28194             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
28196         * config/arm/arm-protos.h: Add and update function protos.
28197         * config/arm/arm.c (use_simple_return_p): New added.
28198         (thumb2_expand_return): Check simple_return flag.
28199         * config/arm/arm.md: Add simple_return and conditional simple_return.
28200         * config/arm/iterators.md: Add iterator for return and simple_return.
28202 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
28204         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
28205         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
28206         (arm_emit_vfp_multi_reg_pop): Likewise.
28207         (thumb2_emit_ldrd_pop): Likewise.
28208         (arm_expand_epilogue): Add misc REG_CFA notes.
28209         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
28211 2013-05-29  Lawrence Crowl  <crowl@google.com>
28213         * config/arm/t-arm: Update for below.
28215         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
28216         Change type to hash_table.  Update dependent calls and types.
28218         * config/i386/t-cygming: Update for below.
28220         * config/i386/t-interix: Update for below.
28222         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
28223         Change type to hash_table.  Update dependent calls and types.
28224         (i386_find_on_wrapper_list::wrappers): Likewise.
28226         * config/ia64/t-ia64: Update for below.
28228         * config/ia64/ia64.c (bundle_state_table):
28229         Change type to hash_table.  Update dependent calls and types.
28231         * config/mips/mips.c (mips_reorg_process_insns::htab):
28232         Change type to hash_table.  Update dependent calls and types.
28234         * config/sol2.c (solaris_comdat_htab):
28235         Change type to hash_table.  Update dependent calls and types.
28237         * config/t-sol2: Update for above.
28239 2013-05-29  Teresa Johnson  <tejohnson@google.com>
28241         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
28242         functions are not yet marked as defined.
28244 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
28245             Pat Haugen  <pthaugen@us.ibm.com>
28246             Peter Bergner  <bergner@vnet.ibm.com>
28248         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
28249         instructions.
28250         (VEC_A): Likewise.
28251         (VEC_C): Likewise.
28252         (vrotl<mode>3): Likewise.
28253         (vashl<mode>3): Likewise.
28254         (vlshr<mode>3): Likewise.
28255         (vashr<mode>3): Likewise.
28257         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
28258         support for power8 V2DI builtins.
28260         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
28261         power8 V2DI builtins.
28262         (vupkhsw): Likewise.
28263         (vupklsw): Likewise.
28264         (vaddudm): Likewise.
28265         (vminsd): Likewise.
28266         (vmaxsd): Likewise.
28267         (vminud): Likewise.
28268         (vmaxud): Likewise.
28269         (vpkudum): Likewise.
28270         (vpksdss): Likewise.
28271         (vpkudus): Likewise.
28272         (vpksdus): Likewise.
28273         (vrld): Likewise.
28274         (vsld): Likewise.
28275         (vsrd): Likewise.
28276         (vsrad): Likewise.
28277         (vsubudm): Likewise.
28278         (vcmpequd): Likewise.
28279         (vcmpgtsd): Likewise.
28280         (vcmpgtud): Likewise.
28281         (vcmpequd_p): Likewise.
28282         (vcmpgtsd_p): Likewise.
28283         (vcmpgtud_p): Likewise.
28284         (vupkhsw): Likewise.
28285         (vupklsw): Likewise.
28286         (vaddudm): Likewise.
28287         (vmaxsd): Likewise.
28288         (vmaxud): Likewise.
28289         (vminsd): Likewise.
28290         (vminud): Likewise.
28291         (vpksdss): Likewise.
28292         (vpksdus): Likewise.
28293         (vpkudum): Likewise.
28294         (vpkudus): Likewise.
28295         (vrld): Likewise.
28296         (vsld): Likewise.
28297         (vsrad): Likewise.
28298         (vsrd): Likewise.
28299         (vsubudm): Likewise.
28301         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
28302         support for power8 V2DI instructions.
28304         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
28305         power8 V2DI instructions.  Combine pack and unpack insns to use an
28306         iterator for each mode.  Check whether a particular mode supports
28307         Altivec instructions instead of just checking TARGET_ALTIVEC.
28308         (UNSPEC_VPKUWUM): Likewise.
28309         (UNSPEC_VPKSHSS): Likewise.
28310         (UNSPEC_VPKSWSS): Likewise.
28311         (UNSPEC_VPKUHUS): Likewise.
28312         (UNSPEC_VPKSHUS): Likewise.
28313         (UNSPEC_VPKUWUS): Likewise.
28314         (UNSPEC_VPKSWUS): Likewise.
28315         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
28316         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
28317         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
28318         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
28319         (UNSPEC_VUPKHSB): Likewise.
28320         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
28321         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
28322         (UNSPEC_VUPKHSH): Likewise.
28323         (UNSPEC_VUPKLSB): Likewise.
28324         (UNSPEC_VUPKLSH): Likewise.
28325         (VI2): Likewise.
28326         (VI_char): Likewise.
28327         (VI_scalar): Likewise.
28328         (VI_unit): Likewise.
28329         (VP): Likewise.
28330         (VP_small): Likewise.
28331         (VP_small_lc): Likewise.
28332         (VU_char): Likewise.
28333         (add<mode>3): Likewise.
28334         (altivec_vaddcuw): Likewise.
28335         (altivec_vaddu<VI_char>s): Likewise.
28336         (altivec_vadds<VI_char>s): Likewise.
28337         (sub<mode>3): Likewise.
28338         (altivec_vsubcuw): Likewise.
28339         (altivec_vsubu<VI_char>s): Likewise.
28340         (altivec_vsubs<VI_char>s): Likewise.
28341         (altivec_vavgs<VI_char>): Likewise.
28342         (altivec_vcmpbfp): Likewise.
28343         (altivec_eq<mode>): Likewise.
28344         (altivec_gt<mode>): Likewise.
28345         (altivec_gtu<mode>): Likewise.
28346         (umax<mode>3): Likewise.
28347         (smax<mode>3): Likewise.
28348         (umin<mode>3): Likewise.
28349         (smin<mode>3): Likewise.
28350         (altivec_vpkuhum): Likewise.
28351         (altivec_vpkuwum): Likewise.
28352         (altivec_vpkshss): Likewise.
28353         (altivec_vpkswss): Likewise.
28354         (altivec_vpkuhus): Likewise.
28355         (altivec_vpkshus): Likewise.
28356         (altivec_vpkuwus): Likewise.
28357         (altivec_vpkswus): Likewise.
28358         (altivec_vpks<VI_char>ss): Likewise.
28359         (altivec_vpks<VI_char>us): Likewise.
28360         (altivec_vpku<VI_char>us): Likewise.
28361         (altivec_vpku<VI_char>um): Likewise.
28362         (altivec_vrl<VI_char>): Likewise.
28363         (altivec_vsl<VI_char>): Likewise.
28364         (altivec_vsr<VI_char>): Likewise.
28365         (altivec_vsra<VI_char>): Likewise.
28366         (altivec_vsldoi_<mode>): Likewise.
28367         (altivec_vupkhsb): Likewise.
28368         (altivec_vupkhs<VU_char>): Likewise.
28369         (altivec_vupkls<VU_char>): Likewise.
28370         (altivec_vupkhsh): Likewise.
28371         (altivec_vupklsb): Likewise.
28372         (altivec_vupklsh): Likewise.
28373         (altivec_vcmpequ<VI_char>_p): Likewise.
28374         (altivec_vcmpgts<VI_char>_p): Likewise.
28375         (altivec_vcmpgtu<VI_char>_p): Likewise.
28376         (abs<mode>2): Likewise.
28377         (vec_unpacks_hi_v16qi): Likewise.
28378         (vec_unpacks_hi_v8hi): Likewise.
28379         (vec_unpacks_lo_v16qi): Likewise.
28380         (vec_unpacks_hi_<VP_small_lc>): Likewise.
28381         (vec_unpacks_lo_v8hi): Likewise.
28382         (vec_unpacks_lo_<VP_small_lc>): Likewise.
28383         (vec_pack_trunc_v8h): Likewise.
28384         (vec_pack_trunc_v4si): Likewise.
28385         (vec_pack_trunc_<mode>): Likewise.
28387         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
28388         V2DI builtins.
28389         (vec_vmaxsd): Likewise.
28390         (vec_vmaxud): Likewise.
28391         (vec_vminsd): Likewise.
28392         (vec_vminud): Likewise.
28393         (vec_vpksdss): Likewise.
28394         (vec_vpksdus): Likewise.
28395         (vec_vpkudum): Likewise.
28396         (vec_vpkudus): Likewise.
28397         (vec_vrld): Likewise.
28398         (vec_vsld): Likewise.
28399         (vec_vsrad): Likewise.
28400         (vec_vsrd): Likewise.
28401         (vec_vsubudm): Likewise.
28402         (vec_vupkhsw): Likewise.
28403         (vec_vupklsw): Likewise.
28405 2013-05-29  Jan Hubicka  <jh@suse.cz>
28407         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
28408         flags; reorder rest of fields in more consistent way.
28409         (varpool_node): Remove analyzed, finalized and alias.
28410         (cgraph_ndoe): Likewise.
28411         (symtab_alias_ultimate_target): New function.
28412         (cgraph_function_node): Move offline.
28413         (cgraph_reset_node): Declare.
28414         (cgraph_comdat_can_be_unshared_p): Remove.
28415         (varpool_remove_initializer): Declare.
28416         (varpool_first_defined_variable, varpool_next_defined_variable
28417         cgraph_first_defined_function, cgraph_next_defined_function): Update.
28418         (cgraph_function_with_gimple_body_p): Update.
28419         (varpool_all_refs_explicit_p): Update.
28420         (symtab_alias_target): New function.
28421         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
28422         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
28423         (cgraph_function_or_thunk_node): Simplify using
28424         symtab_alias_ultimate_target.
28425         (varpool_variable_node): Likewise.
28426         * cgraph.c (cgraph_create_function_alias): Update.
28427         (cgraph_add_thunk): Update.
28428         (cgraph_remove_node): Update.
28429         (dump_cgraph_node): Do not dump removed flags.
28430         (cgraph_function_body_availability): Update.
28431         (cgraph_propagate_frequency): Update.
28432         (verify_cgraph_node): Check sanity of local flag.
28433         (cgraph_function_node): Move here from cgraph.h; revamp for
28434         cgraph_function_or_thunk_node.
28435         * lto-symtab.c (lto_varpool_replace_node): Update.
28436         (lto_symtab_resolve_can_prevail_p): Update.
28437         (lto_symtab_merge_cgraph_nodes): Update.
28438         * ipa-cp.c (determine_versionability, initialize_node_lattices,
28439         propagate_constants_accross_call, devirtualization_time_bonus,
28440         ipcp_propagate_stage): Update.
28441         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
28442         * ipa-inline-transform.c (clone_inlined_nodes,
28443         preserve_function_body_p): Update.
28444         * ipa-reference.c (propagate): Update.
28445         (write_node_summary_p): Update.
28446         * toplev.c (wrapup_global_declaration_2): Update.
28447         * cgraphunit.c (cgraph_analyze_function): Rename to ...
28448         (analyze_function) ... this one.
28449         (cgraph_process_new_functions): Update.
28450         (cgraph_reset_node): Export.
28451         (cgraph_finalize_function): Update.
28452         (cgraph_add_new_function): Update.
28453         (process_function_and_variable_attributes): Update.
28454         (varpool_finalize_decl): Update.
28455         (symbol_finalized): Remove.
28456         (symbol_finalized_and_needed): Rename to ...
28457         (symbol_defined_and_needed): ... update.
28458         (cgraph_analyze_functions): Update.
28459         (handle_alias_pairs): Update.
28460         (mark_functions_to_output): Update.
28461         (assemble_thunk): Update.
28462         (output_in_order): Update.
28463         (output_weakrefs): Update.
28464         (finalize_compilation_unit): Update.
28465         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
28466         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
28467         input_node, input_varpool_node): Update.
28468         * dbxout.c (dbxout_expand_expr): Update.
28469         * cgraphclones.c (cgraph_clone_node): Update.
28470         (cgraph_copy_node_for_versioning): Update.
28471         (cgraph_materialize_clone): Update.
28472         (cgraph_materialize_all_clones): Update.
28473         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
28474         propagate_pure_const, propagate_nothrow): Update.
28475         * lto-streamer-out.c (lto_output, write_symbol): Update.
28476         * ipa-utils.c (ipa_reverse_postorder): Update.
28477         * ipa-inline.c (can_inline_edge_p): Update.
28478         (update_caller_keys, ipa_inline): Update.
28479         * dwarf2out.c (reference_to_unused,
28480         premark_types_used_by_global_vars_helper): Update.
28481         * tree-eh.c (tree_could_trap_p): Update.
28482         * ipa-split.c (consider_split, execute_split_functions): Update.
28483         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
28484         has_addr_references_p): Update; move ahead in file for better
28485         readability.
28486         (process_references): Simplify.
28487         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
28488         bodies are removed.
28489         (cgraph_comdat_can_be_unshared_p): Make static.
28490         (cgraph_externally_visible_p): Update.
28491         (varpool_externally_visible_p): Update.
28492         (function_and_variable_visibility): Update.
28493         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
28494         ipa_tm_mark_force_output_node): Update.
28495         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
28496         estimate_edge_devirt_benefit, inline_generate_summary,
28497         inline_write_summary): Update.
28498         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
28499         * ipa-prop.c (ipa_compute_jump_functions): Update.
28500         (ipa_print_node_params, ipa_prop_read_section,
28501         ipa_update_after_lto_read, read_replacements_section): Update.
28502         * varasm.c (mark_decl_referenced): Update.
28503         (assemble_alias, dump_tm_clone_pairs): Update.
28504         * tree-inline.c (copy_bb): Update.
28505         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
28506         Update.
28507         * symtab.c (dump_symtab_base): Print new flags.
28508         (verify_symtab_base): Verify new flags.
28509         (symtab_alias_ultimate_target): New function.
28510         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
28511         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
28512         Update.
28513         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
28514         Update.
28515         * i386.c (ix86_get_function_versions_dispatcher,
28516         ix86_generate_version_dispatcher_body): Update.
28517         (fold_builtin_cpu): Use varpool_add_new_variable.
28518         * varpool.c (varpool_remove_initializer): Break out from ...
28519         (varpool_remove_node): ... this one.
28520         (dump_varpool_node, varpool_node_for_asm,
28521         cgraph_variable_initializer_availability, varpool_analyze_node,
28522         varpool_assemble_decl, varpool_remove_unreferenced_decls,
28523         varpool_finalize_named_section_flags, varpool_create_variable_alias):
28524         Update.
28526 2013-05-29  Jan Hubicka  <jh@suse.cz>
28528         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
28530 2013-05-29  Easwaran Raman  <eraman@google.com>
28532         PR tree-optimization/57442
28533         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
28534         when control exits the main loop.
28536 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
28538         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
28539         and RX600.
28540         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
28541         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
28542         * rx/t-rx: Add rx100 under multi library matches option for nofpu
28543         option.
28545 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28547         PR tree-optimization/57441
28548         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
28549         Don't limit size of incr_vec to number of candidates.
28551 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
28553         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
28554         and mips16 directories.
28555         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
28556         (MULTILIB_DIRNAMES): Ditto.
28557         (MULTILIB_EXCEPTIONS): Add new exceptions.
28558         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
28559         (MULTILIB_DIRNAMES): Ditto.
28560         (MULTILIB_EXCEPTIONS): Add new exceptions.
28562 2012-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
28563             Marcus Shawcroft  <marcus.shawcroft@arm.com>
28565         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
28566         SYMBOL_TINY_ABSOLUTE.
28567         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
28568         SYMBOL_TINY_ABSOLUTE.
28569         (aarch64_expand_mov_immediate): Likewise.
28570         (aarch64_classify_symbol): Likewise.
28571         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
28572         Permit SYMBOL_TINY_ABSOLUTE.
28573         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
28575 2013-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
28576             Marcus Shawcroft  <marcus.shawcroft@arm.com>
28578         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
28579         Refactor if/switch.  Replace gcc_assert with if.
28581 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
28583         * config/i386/i386.c (initial_ix86_tune_features): Enable
28584         FP Reassociation for AMD bdver1 and bdver2.
28586 2013-05-29  Martin Jambor  <mjambor@suse.cz>
28588         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
28589         and IMAGPART_EXPR do not occur within other handled_components.
28591 2013-05-29  Richard Biener  <rguenther@suse.de>
28593         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
28594         access on whether the use is in the BB we currently try to
28595         vectorize.
28596         (vect_bb_vectorization_profitable_p): Pass the BB we currently
28597         vectorize to vect_bb_slp_scalar_cost.
28599 2013-05-29  Richard Biener  <rguenther@suse.de>
28601         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
28602         computing scalar cost offsetted by stmts that are kept live
28603         by scalar uses.
28604         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
28605         for computation of scalar cost.
28607 2013-05-28  Steve Ellcey  <sellcey@mips.com>
28609         * config/mips/mips-cpus.def (mips32r2): Change processor type.
28611 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
28613         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
28614         array notation built-in reduction functions.
28615         * doc/passes.texi (Passes): Added documentation about changes done
28616         for Cilk Plus.
28617         * doc/invoke.texi (C Dialect Options): Added documentation about
28618         the -fcilkplus flag.
28619         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
28620         (BUILTINS_DEF): Depend on cilkplus.def.
28621         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
28622         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
28623         * cilkplus.def: New file.
28625 2013-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
28627         PR rtl-optimization/57439
28628         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
28630 2013-05-28  Easwaran Raman  <eraman@google.com>
28632         PR tree-optimization/57337
28633         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
28634         (find_insert_point): Correctly identify the insertion point
28635         when two statements with the same UID is compared.
28637 2013-05-28  Richard Biener  <rguenther@suse.de>
28639         PR tree-optimization/56787
28640         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
28641         from the list of data references.
28642         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
28643         clobbers.
28644         (vect_analyze_loop_operations): Likewise.
28645         (vect_transform_loop): Remove clobbers.
28647 2013-05-28  Martin Jambor  <mjambor@suse.cz>
28649         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
28650         and REALPART_EXPRs have scalar type.
28652 2013-05-28  Richard Biener  <rguenther@suse.de>
28654         PR tree-optimization/57411
28655         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
28656         virtual operands.
28657         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
28658         virtual operand propagation.
28660 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
28662         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
28663         destination register for bmasksi_vis.
28664         (vector_init_bshuffle): Likewise.
28665         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
28667 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
28669         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
28670         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
28671         mode if the instruction isn't available in the original mode.
28672         * config/sparc/sparc.opt (mfix-ut699): New option.
28673         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
28674         (divdf3): Turn into expander.
28675         (divdf3_nofix): New insn.
28676         (divdf3_fix): Likewise.
28677         (divsf3): Disable if -mfix-ut699.
28678         (sqrtdf2): Turn into expander.
28679         (sqrtdf2_nofix): New insn.
28680         (sqrtdf2_fix): Likewise.
28681         (sqrtsf2): Disable if -mfix-ut699.
28683 2013-05-27  Richard Biener  <rguenther@suse.de>
28685         PR middle-end/57412
28686         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
28687         block for the new loop.
28689 2013-05-27  Richard Biener  <rguenther@suse.de>
28691         PR tree-optimization/57343
28692         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
28693         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
28694         (number_of_iterations_cond): Do not build the folded tree.
28696 2013-05-27  Richard Biener  <rguenther@suse.de>
28698         Revert
28699         PR middle-end/57381
28700         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
28701         OEP_CONSTANT_ADDRESS_OF retained.
28703         PR tree-optimization/57417
28704         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
28705         for unchanged base.
28706         (set_ssa_val_to): Compare addresses using
28707         get_addr_base_and_unit_offset.
28709 2013-05-27  Joern Rennecke  <joern.rennecke@embecosm.com>
28711         PR rtl-optimization/56833
28712         * postreload.c (move2add_record_mode): New function.
28713         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
28714         (move2add_use_add2_insn): Use move2add_record_sym_value.
28715         (move2add_use_add3_insn): Likewise.
28716         (reload_cse_move2add): Use move2add_valid_value_p and
28717         move2add_record_mode.  Invalidate call-clobbered and REG_INC
28718         affected regs by setting reg_mode to VOIDmode.
28719         (move2add_note_store): Don't pretend the inside of a SUBREG is
28720         the actual destination.  Invalidate single/leading registers by
28721         setting reg_mode to VOIDmode.
28722         Use move2add_record_sym_value, move2add_valid_value_p and
28723         move2add_record_mode.
28725 2013-05-27  Richard Biener  <rguenther@suse.de>
28727         PR tree-optimization/57396
28728         * tree-affine.c (double_int_constant_multiple_p): Properly
28729         return false for val == 0 and div != 0.
28731 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
28733         * config/mips/mips.h: Use #elif in preprocessor conditions.
28735 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
28737         PR target/53916
28738         * config/mips/constraints.md (kl): New constraint.
28739         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
28740         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
28741         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
28742         from LO for MIPS16.
28743         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
28745 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
28747         PR target/55777
28748         * config/mips/mips.c (mips_can_inline_p): New function.
28749         (TARGET_CAN_INLINE_P): Define.
28751 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
28753         * sched-int.h (ds_t, dw_t): Make unsigned int.
28754         Fix documentation that describes how all the ds_t bits are used.
28755         Reserve the last bit for delayed-branch scheduling.
28756         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
28757         (BITS_PER_DEP_WEAK): Fix definition and documentation.
28758         (gen_dep_weak_1): Remove prototype.
28759         * sched-deps.c (get_dep_weak_1): Make static.
28760         * target.def (speculate_insn, needs_block_p, gen_spec_check,
28761         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
28762         * doc/tm.texi: Regenerate.
28763         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
28765 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
28767         PR debug/56950
28768         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
28770 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
28771             Sandra Loosemore  <sandra@codesourcery.com>
28773         * config.gcc (powerpc-*): Allow native for with-cpu.
28775 2013-05-24  Jeff Law  <law@redhat.com>
28777         PR tree-optimization/57124
28778         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
28779         conversion feeding a condition if the range has an overflow
28780         if -fstrict-overflow.  Add warnings for when we do make the
28781         transformation.
28783 2013-05-24  Dehao Chen  <dehao@google.com>
28785         * tree-cfg.c (locus_discrim_map): Fix the typo.
28786         (locus_discrim_hasher): Likewise.
28787         (locus_discrim_hasher::hash): Likewise.
28788         (locus_discrim_hasher::equal): Likewise.
28790 2013-05-24  Martin Jambor  <mjambor@suse.cz>
28792         PR tree-optimization/57294
28793         * cgraph.h (ipa_record_stmt_references): Declare.
28794         * cgraphbuild.c (ipa_record_stmt_references): New function.
28795         (build_cgraph_edges): Use ipa_record_stmt_references.
28796         (rebuild_cgraph_edges): Likewise.
28797         (cgraph_rebuild_references): Likewise.
28798         * ipa-prop.c (ipa_modify_call_arguments): Discard references
28799         associated with the old statement and build references from the
28800         newly built statements.
28801         * ipa-ref.c (ipa_remove_stmt_references): New function.
28802         * ipa-ref.h (ipa_remove_stmt_references): Declare.
28804 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
28806         * lra-constraints.c (emit_spill_move): Use smaller mode for
28807         mem-mem moves.
28808         (check_and_process_move): Consider mem-reg moves for secondary
28809         too.
28810         (curr_insn_transform): Don't lose insns emitted before for
28811         secondary memory moves.
28812         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
28813         reg set up in the current insn.
28815 2013-05-24  Dehao Chen  <dehao@google.com>
28817         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
28818         hash function.
28819         (locus_descrim_hasher::equal): Likewise.
28820         (build_gimple_cfg): New discriminator assignment algorithm.
28821         (make_edges): Likewise.
28822         (next_discriminator_for_locus): Likewise.
28823         (same_line_p): Likewise.
28824         (assign_discriminators): Likewise.
28825         (make_cond_expr_edges): Likewise.
28826         (make_gimple_switch_edges): Likewise.
28827         (make_goto_expr_edges): Likewise.
28828         (make_gimple_asm_edges): Likewise.
28830 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
28832         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
28833         X format specifier to only display bottom 16 bits.
28834         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
28835         immediate to match for operand 2, since it will be masked.
28837 2013-05-24  Richard Biener  <rguenther@suse.de>
28839         PR tree-optimization/57287
28840         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
28841         all SSA names that occur in abnormal PHIs.
28843 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
28845         PR tree-ssa/57385
28846         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
28847         that index is not negative.
28849 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
28851         PR rtl-optimization/55177
28852         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
28853         (simplify_byte_swapping_operation): New.
28854         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
28855         (simplify_relational_operation_1): Deal with BSWAP.
28857 2013-05-23  Richard Henderson  <rth@redhat.com>
28859         PR target/56742
28860         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
28861         (ix86_reorg): Call it.
28863 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
28865         PR target/57379
28866         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
28867         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
28868         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
28870 2013-05-23  Christian Bruel  <christian.bruel@st.com>
28872         PR debug/57351
28873         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
28875 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
28876             Marcus Shawcroft  <marcus.shawcroft@arm.com>
28878         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
28879         * config/aarch64/constraints.md (Usa): Remove.
28880         * doc/md.texi (AArch64 Usa): Remove.
28882 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
28883             Marcus Shawcroft  <marcus.shawcroft@arm.com>
28885         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
28886         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
28887         * config/aarch64/predicates.md (aarch64_const_address): Remove.
28888         (aarch64_mov_operand): Use aarch64_mov_operand_p.
28890 2013-05-23  Vidya Praveen  <vidyapraveen@arm.com>
28892         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
28893         instruction (AdvSIMD).
28894         * config/aarch64/aarch64-builtins.c
28895         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
28896         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
28898 2013-05-23  Martin Jambor  <mjambor@suse.cz>
28900         PR middle-end/57347
28901         * tree.h (contains_bitfld_component_ref_p): Declare.
28902         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
28903         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
28904         caller.
28905         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
28906         not access a bit-field.  Assert all final offsets are byte-aligned.
28908 2013-05-23  Richard Biener  <rguenther@suse.de>
28910         PR tree-optimization/57380
28911         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
28912         least one invariant or re-used load.
28913         * passes.c (init_optimization_passes): Move pass_phiprop before
28914         pass_forwprop.
28916 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
28918         * config/aarch64/aarch64-simd.md
28919         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
28921 2013-05-23  Richard Biener  <rguenther@suse.de>
28923         PR middle-end/57381
28924         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
28925         OEP_CONSTANT_ADDRESS_OF retained.
28927 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
28929         PR middle-end/57344
28930         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
28931         don't lower unit.  Handle unit not being always BITS_PER_WORD.
28933 2013-05-23  Richard Biener  <rguenther@suse.de>
28935         PR rtl-optimization/57341
28936         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
28937         instead of true_dependence.
28939 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
28941         * bb-reorder.c (branch_threshold): Make const.
28942         (exec_threshold): Ditto.
28944 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
28945             Pat Haugen  <pthaugen@us.ibm.com>
28946             Peter Bergner  <bergner@vnet.ibm.com>
28948         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
28949         documentation for the power8 crypto builtins.
28951         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
28953         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
28954         macros for defining power8 builtin functions.
28955         (BU_P8V_AV_2): Likewise.
28956         (BU_P8V_AV_P): Likewise.
28957         (BU_P8V_VSX_1): Likewise.
28958         (BU_P8V_OVERLOAD_1): Likewise.
28959         (BU_P8V_OVERLOAD_2): Likewise.
28960         (BU_CRYPTO_1): Likewise.
28961         (BU_CRYPTO_2): Likewise.
28962         (BU_CRYPTO_3): Likewise.
28963         (BU_CRYPTO_OVERLOAD_1): Likewise.
28964         (BU_CRYPTO_OVERLOAD_2): Likewise.
28965         (XSCVSPDP): Fix typo, point to the correct instruction.
28966         (VCIPHER): Add power8 crypto builtins.
28967         (VCIPHERLAST): Likewise.
28968         (VNCIPHER): Likewise.
28969         (VNCIPHERLAST): Likewise.
28970         (VPMSUMB): Likewise.
28971         (VPMSUMH): Likewise.
28972         (VPMSUMW): Likewise.
28973         (VPERMXOR_V2DI): Likewise.
28974         (VPERMXOR_V4SI: Likewise.
28975         (VPERMXOR_V8HI: Likewise.
28976         (VPERMXOR_V16QI: Likewise.
28977         (VSHASIGMAW): Likewise.
28978         (VSHASIGMAD): Likewise.
28979         (VPMSUM): Likewise.
28980         (VPERMXOR): Likewise.
28981         (VSHASIGMA): Likewise.
28983         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
28984         __CRYPTO__ if the crypto instructions are available.
28985         (altivec_overloaded_builtins): Add support for overloaded power8
28986         builtins.
28988         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
28989         support for power8 crypto builtins.
28990         (builtin_function_type): Likewise.
28991         (altivec_init_builtins): Add support for builtins that take vector
28992         long long (V2DI) arguments.
28994         * config/rs6000/crypto.md: New file, define power8 crypto
28995         instructions.
28997 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
28998             Pat Haugen  <pthaugen@us.ibm.com>
28999             Peter Bergner  <bergner@vnet.ibm.com>
29001         * doc/invoke.texi (Option Summary): Add power8 options.
29002         (RS/6000 and PowerPC Options): Likewise.
29004         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
29005         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
29006         wm, wn, wr documentation.
29008         * config/rs6000/constraints.md (wm): New constraint for VSX
29009         registers if direct move instructions are enabled.
29010         (wn): New constraint for no registers.
29011         (wq): New constraint for quad word even GPR registers.
29012         (wr): New constraint if 64-bit instructions are enabled.
29013         (wv): New constraint if power8 vector instructions are enabled.
29014         (wQ): New constraint for quad word memory locations.
29016         * config/rs6000/predicates.md (const_0_to_15_operand): New
29017         constraint for 0..15 for crypto instructions.
29018         (gpc_reg_operand): If VSX allow registers in VSX registers as well
29019         as GPR and floating point registers.
29020         (int_reg_operand): New predicate to match only GPR registers.
29021         (base_reg_operand): New predicate to match base registers.
29022         (quad_int_reg_operand): New predicate to match even GPR registers
29023         for quad memory operations.
29024         (vsx_reg_or_cint_operand): New predicate to allow vector logical
29025         operations in both GPR and VSX registers.
29026         (quad_memory_operand): New predicate for quad memory operations.
29027         (reg_or_indexed_operand): New predicate for direct move support.
29029         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
29030         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
29031         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
29032         (POWERPC_MASKS): Add power8 options.
29033         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
29034         various options.
29036         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
29037         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
29039         * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
29040         (-mpower8-fusion): New power8 options.
29041         (-mpower8-fusion-sign): Likewise.
29042         (-mpower8-vector): Likewise.
29043         (-mcrypto): Likewise.
29044         (-mdirect-move): Likewise.
29045         (-mquad-memory): Likewise.
29047         * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
29048         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
29049         registers.
29050         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
29051         (rs6000_debug_vector_unit): Add p8_vector.
29052         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
29053         definitions.  Also print fusion state.
29054         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
29055         (rs6000_builtin_mask_calculate): Add power8 builtin support.
29056         (rs6000_option_override_internal): Add support for power8.
29057         (rs6000_common_init_builtins): Add debugging for skipped builtins
29058         if -mdebug=builtin.
29059         (rs6000_adjust_cost): Add power8 support.
29060         (rs6000_issue_rate): Likewise.
29061         (insn_must_be_first_in_group): Likewise.
29062         (insn_must_be_last_in_group): Likewise.
29063         (force_new_group): Likewise.
29064         (rs6000_register_move_cost): Likewise.
29065         (rs6000_opt_masks): Likewise.
29067         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
29068         power8 capable assembler, default to power7 options.
29069         (TARGET_DIRECT_MOVE): Likewise.
29070         (TARGET_CRYPTO): Likewise.
29071         (TARGET_P8_VECTOR): Likewise.
29072         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
29073         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
29074         (VECTOR_MEM_P8_VECTOR_P): Likewise.
29075         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
29076         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
29077         (TARGET_XSCVDPSPN): Likewise.
29078         (TARGET_XSCVSPDPN): Likewsie.
29079         (TARGET_SYNC_HI_QI): Likewise.
29080         (TARGET_SYNC_TI): Likewise.
29081         (MASK_CRYPTO): Likewise.
29082         (MASK_DIRECT_MOVE): Likewise.
29083         (MASK_P8_FUSION): Likewise.
29084         (MASK_P8_VECTOR): Likewise.
29085         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
29086         temporary used by some of the direct move instructions to get two FP
29087         temporary registers does not force creation of a stack frame.
29088         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
29089         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
29090         that any VSX registers are tieable, even if they are also an
29091         Altivec vector mode.
29092         (r6000_reg_class_enum): Add wm, wr, wv constraints.
29093         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
29094         (RS6000_BTM_CRYPTO): Likewise.
29095         (RS6000_BTM_COMMON): Likewise.
29097         * config/rs6000/rs6000.md (cpu attribute): Add power8.
29098         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
29099         (enum rs6000_vector): Add power8 vector support.
29101 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29103         PR target/19599
29104         PR target/57340
29105         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
29106         (any_sibcall_could_use_r3): this and handle indirect calls.
29107         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
29109 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29111         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
29113 2013-05-22  Richard Biener  <rguenther@suse.de>
29115         PR middle-end/57349
29116         * profile.c (branch_prob): Do not split blocks that are
29117         abnormally receiving from ECF_RETURNS_TWICE functions.
29119 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
29121         * recog.c (offsettable_address_addr_space_p): Fix calculation of
29122         address mode.  Move pointer mode initialization to the same place.
29124 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
29126         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
29127         while it has any effect.
29129 2013-05-21  Easwaran Raman  <eraman@google.com>
29131         PR tree-optimization/57322
29132         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
29133         UID of the statement added to the BB to be 1.
29135 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
29137         PR tree-optimization/57331
29138         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
29139         of conversion from pointer type to integral type with integer.
29141 2013-05-21  Martin Jambor  <mjambor@suse.cz>
29143         PR lto/57289
29144         * ipa-prop.c (ipa_read_node_info): Process param_used and
29145         controlled_uses in the same order as when writing.
29147 2013-05-21  Magnus Granberg  <baldrick@free.fr>
29149         PR plugins/56754
29150         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
29152 2013-05-21  Richard Biener  <rguenther@suse.de>
29154         PR tree-optimization/57318
29155         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
29156         estimate stmts with side-effects as likely eliminated.
29158 2013-05-21  Richard Biener  <rguenther@suse.de>
29160         PR tree-optimization/57330
29161         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
29162         preserve the call stmts fntype.
29164 2013-05-21  Richard Biener  <rguenther@suse.de>
29166         PR tree-optimization/57303
29167         * tree-ssa-sink.c (statement_sink_location): Improve killing
29168         stmt detection and properly handle self-assignments.
29170 2013-05-21  Christian Bruel  <christian.bruel@st.com>
29172         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
29173         spanning registers. LEAF_REG_REMAP is supported only for contiguous
29174         registers. Set register size out of the PARALLEL loop.
29176 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
29178         PR target/56547
29179         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
29180         (*fmasf4, *fmasf4_media): New insns.
29182 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
29184         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
29185         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
29186         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
29187         (mips_idiv_insns): Update the comments to say that the returned
29188         instruction counts are in units of BASE_INSN_LENGTH.
29189         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
29190         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
29191         using 2 rather than 4 as the length of indirect MIPS16 and
29192         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
29193         length of a NOP.  Don't divide MIPS16 lengths by 2.
29194         (mips16_split_long_branches): Assume a branch is long if the
29195         length is greater than 4 rather than 8.
29196         * config/mips/mips.md (length): Give MIPS16 lengths directly,
29197         rather than multiplying them by 2.  Multiply instruction counts
29198         by BASE_INSN_LENGTH rather than 4.
29199         (*jump_mips16, tls_get_tp_mips16_<mode>)
29200         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
29202 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
29204         * config/mips/mips.md (extended_mips16): Remove branch case.
29205         (length): Remove duplicated extended_mips16 test.
29207 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
29209         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
29211 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
29213         * recog.h (Recog_data): Rename to...
29214         (recog_data_d): ...this.
29215         (recog_data): Update accordingly.
29216         * recog.c (recog_data): Likewise.
29217         * reload.c (save_recog_data): Likewise.
29218         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
29219         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
29221 2013-05-17  Julian Brown  <julian@codesourcery.com>
29223         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
29224         found in a REG_EQUAL note, invalidate it.
29226 2013-05-17  Easwaran Raman  <eraman@google.com>
29228         * tree-ssa-reassoc.c (find_insert_point): New function.
29229         (insert_stmt_after): Likewise.
29230         (get_def_stmt): Likewise.
29231         (ensure_ops_are_available): Likewise.
29232         (not_dominated_by): Likewise.
29233         (rewrite_expr_tree): Do not move statements beyond what is
29234         necessary. Remove call to swap_ops_for_binary_stmt...
29235         (reassociate_bb): ... and move it here.
29236         (build_and_add_sum): Assign UIDs for new statements.
29237         (linearize_expr): Likewise.
29238         (do_reassoc): Renumber gimple statement UIDs.
29240 2013-05-17  Jan Hubicka  <jh@suse.cz>
29242         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
29243         weakrefs.
29244         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
29245         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
29246         weakrefs.
29247         (output_weakrefs): Update.
29249 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
29250             Martin Jambor  <mjambor@suse.cz>
29252         PR middle-end/57276
29253         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
29254         value that corresponds to the given aggval is found in values vector.
29256 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
29258         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
29259         sse, sse2, sse3, ssse3 and sse4a flags to options.
29261 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
29263         * gengtype-state.c: (s_expr_writer): New class, to handle
29264         prettifying of output layout of s-expressions.
29265         (state_writer): New class, to write out gtype.state.
29266         (state_written_type_count): Move this variable into member data of
29267         state_writer.
29268         (s_expr_writer::s_expr_writer): New code: constructor for new class
29269         (state_writer::state_writer(): ditto
29270         (s_expr_writer::write_new_line): New function
29271         (s_expr_writer::write_any_indent): ditto
29272         (s_expr_writer::begin_s_expr): ditto
29273         (s_expr_writer::end_s_expr): ditto
29274         (write_state_fileloc): convert to method of state_writer...
29275         (state_writer:: write_state_fileloc): ...and use methods of
29276         s_expr_writer to write indentation into the gtype.state output file
29277         to visually represent the hierarchical structure of the list
29278         structures
29279         (write_state_fields): ditto, renaming to...
29280         (state_writer::write_state_fields)
29281         (write_state_a_string): ditto, renaming to...
29282         (state_writer::write_state_a_string)
29283         (write_state_string_option): ditto, renaming to...
29284         (state_writer::write_state_string_option)
29285         (write_state_type_option): ditto, renaming to...
29286         (state_writer::write_state_type_option)
29287         (write_state_nested_option): ditto, renaming to...
29288         (state_writer::write_state_nested_option)
29289         (write_state_option): ditto, renaming to...
29290         (state_writer::write_state_option)
29291         (write_state_options): ditto, renaming to...
29292         (state_writer::write_state_options)
29293         (write_state_lang_bitmap): ditto, renaming to...
29294         (state_writer::write_state_lang_bitmap)
29295         (write_state_version): ditto, renaming to...
29296         (state_writer::write_state_version)
29297         (write_state_scalar_type): ditto, renaming to...
29298         (state_writer::write_state_scalar_type)
29299         (write_state_string_type): ditto, renaming to...
29300         (state_writer::write_state_string_type)
29301         (write_state_undefined_type): ditto, renaming to...
29302         (state_writer::write_state_undefined_type)
29303         (write_state_struct_union_type): ditto, renaming to...
29304         (state_writer::write_state_struct_union_type)
29305         (write_state_struct_type): ditto, renaming to...
29306         (state_writer::write_state_struct_type)
29307         (write_state_user_struct_type): ditto, renaming to...
29308         (state_writer::write_state_user_struct_type)
29309         (write_state_lang_struct_type): ditto, renaming to...
29310         (state_writer::write_state_lang_struct_type)
29311         (write_state_param_struct_type): ditto, renaming to...
29312         (state_writer::write_state_param_struct_type)
29313         (write_state_pointer_type): ditto, renaming to...
29314         (state_writer::write_state_pointer_type)
29315         (write_state_array_type): ditto, renaming to...
29316         (state_writer::write_state_array_type)
29317         (write_state_gc_used): ditto, renaming to...
29318         (state_writer::write_state_gc_used)
29319         (write_state_common_type_content): ditto, renaming to...
29320         (state_writer::write_state_common_type_content)
29321         (write_state_type): ditto, renaming to...
29322         (state_writer::write_state_type)
29323         (write_state_pair_list): ditto, renaming to...
29324         (state_writer::write_state_pair_list)
29325         (write_state_pair): ditto, renaming to...
29326         (state_writer::write_state_pair)
29327         (write_state_typedefs): ditto, renaming to...
29328         (state_writer::write_state_typedefs)
29329         (write_state_structures): ditto, renaming to...
29330         (state_writer::write_state_structures)
29331         (write_state_param_structs): ditto, renaming to...
29332         (state_writer::write_state_param_structs)
29333         (write_state_variables): ditto, renaming to...
29334         (state_writer::write_state_variables)
29335         (write_state_srcdir): ditto, renaming to...
29336         (state_writer::write_state_srcdir)
29337         (write_state_files_list): ditto, renaming to...
29338         (state_writer::write_state_files_list)
29339         (write_state_languages): ditto, renaming to...
29340         (state_writer::write_state_languages)
29341         (write_state): create a state_writer instance and use it when
29342         writing out the state file
29344 2013-05-17  Mike Stump  <mikestump@comcast.net>
29346         PR rtl-optimization/57304
29347         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
29348         accessing DF_REF_REAL_LOC.
29350 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
29352         PR rtl-optimization/57281
29353         PR rtl-optimization/57300
29354         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
29355         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
29356         what the other splitter did if the registers are dead.
29358 2013-05-17  Richard Biener  <rguenther@suse.de>
29360         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
29361         MEM_REF offsets.
29363 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
29365         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
29366         linking.
29368 2013-05-17  Marek Polacek  <polacek@redhat.com>
29370         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
29371         length when doing non-zero store of storing '\0' to '\0'.
29373 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
29375         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
29376         vect_external_def oprnd1 with loop_vinfo, try to emit
29377         optional cast, negation and and stmts on the loop preheader
29378         edge instead of into the pattern def seq.
29380         PR tree-optimization/57051
29381         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
29382         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
29384 2013-05-16  Nick Clifton  <nickc@redhat.com>
29386         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
29387         (rl78_is_naked_func): New function.
29388         (rl78_expand_prologue): Skip prologue generation for naked functions.
29389         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
29390         * doc/extend.texi (naked): Add RL78 to the list of processors
29391         that supports this attribute.
29393 2013-05-16  Jeff Law  <law@redhat.com>
29395         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
29397 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
29399         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
29400         cache parameters using detect_caches_amd also for CYRIX,
29401         NSC and TM2 signatures.
29403 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
29404             Dzianis Kahanovich  <mahatma@eu.by>
29406         PR target/45359
29407         PR target/46396
29408         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
29409         VIA/Centaur processors and determine their cache parameters
29410         using detect_caches_amd.
29412 2013-05-16  Teresa Johnson  <tejohnson@google.com>
29414         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
29415         (rtl_verify_edges): New function.
29416         (rtl_verify_bb_insns): Ditto.
29417         (rtl_verify_bb_pointers): Ditto.
29418         (rtl_verify_bb_insn_chain): Ditto.
29419         (rtl_verify_fallthru): Ditto.
29420         (rtl_verify_bb_layout): Ditto.
29421         (rtl_verify_flow_info_1): Outline checks into new functions.
29422         (rtl_verify_flow_info): Ditto.
29424 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
29426         * cfghooks.c (copy_bbs): Add update_dominance argument.
29427         * cfghooks.h (copy_bbs): Update prototype.
29428         * tree-cfg.c (gimple_duplicate_sese_region):
29429         Add update_dominance argument.
29430         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
29431         * tree-ssa-loop-ch.c (copy_loop_headers): Update
29432         gimple_duplicate_sese_region call.
29433         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
29434         Update copy_bbs call.
29435         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
29436         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
29438 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
29440         * tree-vectorizer.h (NUM_PATTERNS): Increment.
29441         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
29442         vect_recog_rotate_pattern.
29443         (vect_recog_rotate_pattern): New function.
29445 2013-05-16  Jason Merrill  <jason@redhat.com>
29447         * Makefile.in (LLINKER): New variable.
29448         (mostlyclean): Remove link mutex.
29449         * configure.ac: Handle --enable-link-mutex.
29450         * lock-and-run.sh: New script.
29452 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29454         PR target/19599
29455         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
29456         for NULL decl.
29458 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29460         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
29462 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
29464         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
29465         * config/arm/arm.c (next_consecutive_mem): New function.
29466         (gen_movmem_ldrd_strd): Likewise.
29467         * config/arm/arm.md (movmemqi): Update condition and code.
29468         (unaligned_loaddi, unaligned_storedi): New patterns.
29470 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29472         * config.gcc: Obsolete *-*-solaris2.9*.
29473         * doc/install.texi (Specific, *-*-solaris2*): Document it.
29475 2013-05-16  Richard Biener  <rguenther@suse.de>
29477         * passes.c (init_optimization_passes): Move pass_parallelize_loops
29478         earlier, after GRAPHITE transforms and IV canonicalization.
29480 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
29482         * omp-low.c (extract_omp_for_data): For collapsed loops,
29483         if at least one of the loops is known at compile time to
29484         iterate zero times, set count to 0.
29485         (expand_omp_regimplify_p): New function.
29486         (expand_omp_for_generic): For collapsed loops, if at least
29487         one of the loops isn't known to iterate at least once,
29488         add runtime check with setting count to 0.
29489         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
29490         For unsigned types if it isn't known at compile time that
29491         the loop will iterate at least once, add runtime check to bypass
29492         the whole loop if initial condition isn't true.
29494 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
29496         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
29498 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
29500         PR middle-end/57286
29501         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
29502         transformations to avoid an infinite loop.
29504 2013-05-16  Marek Polacek  <polacek@redhat.com>
29506         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
29508 2013-05-15  Leif Ekblad  <leif@rdos.net>
29510         * config/i386/i386.c (ix86_decompose_address): Use
29511         DEFAULT_TLS_SEG_REG to access TLS segment register.
29512         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
29513         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
29514         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
29516 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
29518         PR target/57260
29519         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
29520         sibling calls to functions that would normally be lazily bound,
29521         unless $gp is call-clobbered.
29523 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
29525         * config/i386/i386.c (ix86_option_override_internal): Update
29526         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
29527         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
29528         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
29529         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
29530         of TARGET_3DNOW.
29531         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
29533 2013-05-15  Andreas Schwab  <schwab@suse.de>
29535         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
29536         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
29537         third operand.
29539 2013-05-15  Teresa Johnson  <tejohnson@google.com>
29541         * loop-unroll.c (report_unroll_peel): Check decision before
29542         emitting unroll/peel message.
29544 2013-05-15  Teresa Johnson  <tejohnson@google.com>
29546         * function.h (has_bb_partition): New rtl_data flag.
29547         (bb_reorder_complete): Ditto.
29548         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
29549         instead of flag_reorder_blocks_and_partition.
29550         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
29551         with some enhancements.
29552         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
29553         * bb-reorder.c (connect_traces): Check for has_bb_partition
29554         instead of flag_reorder_blocks_and_partition.
29555         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
29556         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
29557         verify_hot_cold_block_grouping.
29558         (partition_hot_cold_basic_blocks): Set has_bb_partition.
29560 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29562         PR target/19599
29563         * config/arm/predicates.md (call_insn_operand): New predicate.
29564         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
29565         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
29566         if insn is not a tail call.
29567         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
29568         registers.
29569         * config/arm/arm.h (enum reg_class): New caller save register class.
29570         (REG_CLASS_NAMES): Likewise.
29571         (REG_CLASS_CONTENTS): Likewise.
29572         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
29573         without decls.
29575 2013-05-15  Richard Biener  <rguenther@suse.de>
29577         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
29578         of MSG_OPTIMIZED_LOCATIONS.
29579         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
29580         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
29581         message.
29582         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
29583         of MSG_OPTIMIZED_LOCATIONS.
29584         (execute_vect_slp): Likewise.
29585         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
29586         (vect_create_cond_for_alias_checks): Likewise.
29587         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
29588         (vect_recog_widen_mult_pattern): Likewise.
29589         (vect_recog_widen_sum_pattern): Likewise.
29590         (vect_recog_over_widening_pattern): Likewise.
29591         (vect_recog_widen_shift_pattern): Likewise.
29592         (vect_recog_vector_vector_shift_pattern): Likewise.
29593         (vect_recog_divmod_pattern): Likewise.
29594         (vect_recog_mixed_size_cond_pattern): Likewise.
29595         (vect_recog_bool_pattern): Likewise.
29596         (vect_pattern_recog_1): Likewise.
29598 2013-05-15  Martin Jambor  <mjambor@suse.cz>
29600         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
29601         non-functions to builtin_unreachable.
29602         * ipa-inline-transform.c (inline_call): Do not assert estimates were
29603         correct when new direct edges were discovered.
29605 2013-05-15  Martin Jambor  <mjambor@suse.cz>
29607         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
29608         header, print symbol order instead of node uid, print more information
29609         about indirect edge targets.
29610         (ipa_make_edge_direct_to_target): Print symbol order instead of node
29611         uids.
29612         (ipa_make_edge_direct_to_target): Likewise.
29613         (remove_described_reference): Likewise.
29614         (propagate_controlled_uses): Likewise.
29615         (ipa_print_node_params): Also print symbol order.
29616         (ipcp_transform_function): Print symbol order instead of node uids.
29617         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
29618         (cgraph_get_create_real_symbol_node): Likewise.
29619         * ipa-cp.c (print_lattice): Likewise.
29620         (print_all_lattices): Likewise.
29621         (determine_versionability): Likewise.
29622         (initialize_node_lattices): Likewise.
29623         (estimate_local_effects): Likewise.
29624         (update_profiling_info): Likewise.
29625         (create_specialized_node): Likewise.
29626         (perhaps_add_new_callers): Likewise.
29627         (decide_about_value): Likewise.
29628         (decide_whether_version_node): Likewise.
29629         (identify_dead_nodes): Likewise.
29630         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
29631         (dump_inline_summary): Likewise.
29632         (estimate_node_size_and_time): Likewise.
29633         (inline_analyze_function): Likewise.
29634         * ipa-inline.c (report_inline_failed_reason): Likewise.
29635         (want_early_inline_function_p): Likewise.
29636         (edge_badness): Likewise.
29637         (update_edge_key): Likewise.
29638         (inline_small_functions): Likewise.  Add dumping of order to two other
29639         dumps.
29640         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
29641         instead of node uids.
29642         (propagate_pure_const): Likewise.
29643         (propagate_pure_const): Likewise.
29644         * ipa-utils.c (dump_cgraph_node_set): Likewise.
29645         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
29646         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
29647         of node uids.
29648         * tree-pretty-print.c (dump_function_header): Likewise.
29649         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
29650         Print symbol order instead of node uids.
29652 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29654         * config/s390/s390.c (s390_register_move_cost): Don't impose the
29655         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
29657 2013-05-15  Richard Biener  <rguenther@suse.de>
29659         PR tree-optimization/57275
29660         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
29661         return value for fail to do runtime alias checks for gather loads.
29663 2013-05-15  Jan Hubicka  <jh@suse.cz>
29665         PR lto/57038
29666         PR lto/47375
29667         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
29668         weakrefs are not external.
29669         (lto_symtab_merge_decls): Fix thinko when dealing with
29670         non-lto_symtab decls.
29671         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
29672         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
29673         * varpool.c (dump_varpool_node): Dump more flags.
29675 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
29677         * config/i386/i386.c (processor_alias_table): Add instruction
29678         FSGSBASE for AMD bdver3 architecture.
29680 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
29682         * tree.c (warn_deprecated_use): Print file:line using locus color.
29683         * diagnostic.c (diagnostic_report_current_module): Print file:line
29684         and file:line:column using locus color.
29686 2013-05-14  Mike Stump  <mikestump@comcast.net>
29688         * gdbinit.in: Add __null.
29690 2013-05-14  Mike Stump  <mikestump@comcast.net>
29692         * recog.h: Rename struct recog_data to Recog_data.
29693         * recog.c: Likewise.
29694         * reload.c (can_reload_into): Likewise.
29695         * config/picochip/picochip.c: Likewise.
29697 2013-05-14  Mike Stump  <mikestump@comcast.net>
29699         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
29701 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
29703         * resource.h (struct resources): Remove unch_memory member.
29704         (CLEAR_RESOURCE): Don't clear unch_memory.
29705         * resource.c (mark_referenced_resources): Don't set it.
29706         (mark_set_resources): Likewise.
29707         (mark_target_live_regs): Don't clear it.
29708         (init_resource_info): Likewise.
29709         * reorg.c (resource_conflicts_p): Don't compare it.
29710         (redundant_insn): Don't set it.
29712         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
29713         Remove prototypes.
29714         * emit-rtl.c (next_label): Remove unused function.
29715         (skip_consecutive_labels, link_cc0_insns): Move to ...
29716         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
29717         only place where these functions are used, and make them static.
29719 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
29721         * fold-const.c (fold_negate_expr): Handle vectors.
29722         (fold_truth_not_expr): Make it static.
29723         (fold_invert_truthvalue): New static function.
29724         (invert_truthvalue_loc): Handle vectors. Do not call
29725         fold_truth_not_expr directly.
29726         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
29727         <TRUTH_NOT_EXPR>: Do not cast to boolean.
29728         (fold_comparison): Handle vector constants.
29729         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
29730         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
29731         * tree.h (fold_truth_not_expr): Remove declaration.
29733 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
29735         * config/aarch64/aarch64-simd.md
29736         (aarch64_vcond_internal<mode>): Rename to...
29737         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
29738         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
29739         float modes. Clarify all iterator modes.
29740         (vcond<mode><mode>): Use new name for vcond expanders.
29741         (vcond<v_cmp_result><mode>): Likewise.
29742         (vcondu<mode><mode>: Likewise.
29743         * config/aarch64/iterators.md (VDQF_COND): New.
29745 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
29747         PR bootstrap/57266
29748         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
29749         variable for the shift amount. Check that we shift by non-negative
29750         amounts.
29752 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
29754         PR target/42017
29755         * config/arm/arm.h (EPILOGUE_USES): Only return true
29756         for LR_REGNUM after epilogue_completed.
29758 2013-05-14  Joern Rennecke  <joern.rennecke@embecosm.com>
29760         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
29761         is error_mark_node.
29763 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29765         PR target/57261
29766         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
29767         and Solaris 11+/x86 with gld.
29768         * configure: Regenerate.
29770 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
29772         * expmed.c (expand_shift_1): Canonicalize rotates by
29773         constant bitsize / 2 to bitsize - 1.
29774         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
29775         case ROTATERT>: Likewise.
29777         Revert:
29778         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
29780         * config/i386/i386.md (rotateinv): New code attr.
29781         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
29782         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
29783         roll $31, %eax, etc.
29785 2013-05-14  Richard Biener  <rguenther@suse.de>
29787         PR middle-end/57235
29788         * tree-eh.c (sink_clobbers): Give up for successors with
29789         multiple predecessors and no virtual uses.
29791 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
29793         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
29794         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
29796 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
29798         PR middle-end/57251
29799         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
29800         the case when both op0 and op1 have VOIDmode.
29802 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
29804         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
29805         in multiply-accumulate mode.
29807 2013-05-13  Guozhi Wei  <carrot@google.com>
29809         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
29811 2013-05-13  Kai Tietz  <ktietz@redhat.com>
29813         PR target/56975
29814         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
29815         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
29816         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
29817         * config/i386/i386.c (ix86_option_override_internal): Likewise.
29818         (ix86_expand_prologue): Likewise.
29819         (ix86_expand_split_stack_prologue): Likewise.
29820         (legitimate_pic_address_disp_p): Likewise.
29821         (legitimize_pic_address): Likewise.
29822         (legitimize_tls_address): Likewise.
29823         (legitimize_pe_coff_symbol): Likewise.
29824         (output_pic_addr_const): Likewise.
29825         (construct_plt_address): Likewise.
29826         (ix86_expand_call): Likewise.
29827         (x86_output_mi_thunk): Likewise.
29828         (x86_function_profiler): Likewise.
29830 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
29832         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
29833         similar switch cases.
29834         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
29835         (aarch64_simd_mov_to_<mode>low): Delete.
29836         (aarch64_simd_mov_to_<mode>high): Delete.
29837         (move_lo_quad_<mode>): Add w<-r alternative.
29838         (aarch64_simd_move_hi_quad_<mode>): Likewise.
29839         (aarch64_simd_mov_from_*): Update type attribute.
29840         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
29841         statement.
29843 2013-05-13  Jan Hubicka  <jh@suse.cz>
29845         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
29846         * config/i386/i386.c (ix86_compute_frame_layout,
29847         ix86_expand_epilogue, emit_i387_cw_initialization,
29848         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
29849         ix86_local_alignment): Fix use of size/speed predicates.
29851 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
29853         PR tree-optimization/45216
29854         PR tree-optimization/57157
29855         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
29856         the (-Y) & (B - 1) variant if OP is |.
29857         * expmed.c (expand_shift_1): For rotations by const0_rtx just
29858         return shifted.  Use (-op1) & (prec - 1) as other_amount
29859         instead of prec - op1.
29861 2013-05-13  Martin Jambor  <mjambor@suse.cz>
29863         PR middle-end/42371
29864         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
29865         (ipa_constant_data): New type.
29866         (ipa_jump_func): Use ipa_constant_data to hold information about
29867         constant jump functions.
29868         (ipa_get_jf_constant): Adjust to jump function type changes.
29869         (ipa_get_jf_constant_rdesc): New function.
29870         (ipa_param_descriptor): New field controlled_uses.
29871         (ipa_get_controlled_uses): New function.
29872         (ipa_set_controlled_uses): Likewise.
29873         * ipa-ref.h (ipa_find_reference): Declare.
29874         * ipa-prop.c (ipa_cst_ref_desc): New type.
29875         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
29876         changes.
29877         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
29878         New parameter cs.  Adjust all callers.
29879         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
29880         (remove_described_reference): New function.
29881         (jfunc_rdesc_usable): Likewise.
29882         (try_make_edge_direct_simple_call): Decrement controlled use count,
29883         attempt to remove reference if it hits zero.
29884         (combine_controlled_uses_counters): New function.
29885         (propagate_controlled_uses): Likewise.
29886         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
29887         (ipa_edge_duplication_hook): Duplicate reference descriptions.
29888         (ipa_print_node_params): Print described use counter.
29889         (ipa_write_jump_function): Adjust to jump function type changes.
29890         (ipa_read_jump_function): New parameter CS, pass it to
29891         ipa_set_jf_constant.  Adjust caller.
29892         (ipa_write_node_info): Stream controlled use count
29893         (ipa_read_node_info): Likewise.
29894         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
29895         asserting.
29896         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
29897         count.  Remove cloning-added reference if it reaches zero.
29898         * ipa-ref.c (ipa_find_reference): New function.
29900 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
29902         * config/i386/i386.c (processor_target_table): Modified default
29903         alignment values for AMD BD and BT architectures.
29905 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
29907         * tree-vect-generic.c (uniform_vector_p): Move ...
29908         * tree.c (uniform_vector_p): ... here.
29909         * tree.h (uniform_vector_p): Declare it.
29910         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
29911         into a scalar.
29913 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
29915         PR tree-optimization/57230
29916         * tree-ssa-strlen.c (handle_char_store): Record length for
29917         array store from STRING_CST.
29919         PR tree-optimization/57230
29920         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
29921         check.
29923 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
29925         * config/epiphany/epiphany.c (epiphany_init): Check size of
29926         NUM_MODES_FOR_MODE_SWITCHING.
29927         (epiphany_expand_prologue):
29928         Remove CONFIG_REGNUM initial value handling code.
29929         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
29930         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
29931         (emit_set_fp_mode, epiphany_mode_after): Likewise.
29932         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
29933         Don't return 1 for FP_MODE_NONE.
29934         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
29935         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
29936         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
29937         * config/epiphany/epiphany.md (save_config): New pattern.
29939 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
29941         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
29943 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
29945         * config/i386/i386.md (memory): Handle sseishft1.
29946         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
29947         (*vec_extractv2di_1): Ditto.
29949 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
29951         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
29952         saved registers.
29954 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
29956         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
29957         Add mthumb/march=armv7-a multilib.
29958         Add mthumb/march=armv7-r multilib.
29959         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
29961 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
29963         * config/v850/t-rtems: Add more multilibs.
29965 2013-05-10  Richard Biener  <rguenther@suse.de>
29967         PR tree-optimization/57214
29968         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
29969         not propagate from SSA names that occur in abnormal PHI nodes.
29971 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
29973         * stor-layout.c (element_precision): New function.
29974         * machmode.h (element_precision): Declare it.
29975         * tree.c (build_minus_one_cst): New function.
29976         (element_precision): Likewise.
29977         * tree.h (build_minus_one_cst): Declare new function.
29978         (element_precision): Likewise.
29979         * fold-const.c (operand_equal_p): Use element_precision.
29980         (fold_binary_loc): Handle vector types.
29981         * convert.c (convert_to_integer): Use element_precision.
29982         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
29983         separately.
29985 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
29987         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
29988         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
29989         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
29990         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
29991         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
29992         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
29993         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
29994         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
29995         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
29996         (Uuw8): New constraints.
29997         (Usb4): Move into alphabetical order.
29998         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
29999         (sd8_operand, ub8_operand, uw8_operand): New predicates.
30000         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
30001         previously unnamed patterns.
30002         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
30003         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
30004         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
30005         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
30006         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
30007         of specific lengths.
30009 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
30011         * config/i386/i386.md (rotateinv): New code attr.
30012         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
30013         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
30014         roll $31, %eax, etc.
30016         PR tree-optimization/45216
30017         PR tree-optimization/57157
30018         * tree-ssa-forwprop.c (simplify_rotate): New function.
30019         (ssa_forward_propagate_and_combine): Call it.
30021 2013-05-10  Richard Biener  <rguenther@suse.de>
30023         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
30024         disable peeling when we version for aliasing.
30025         (vector_alignment_reachable_p): Honor explicit user alignment.
30026         (vect_supportable_dr_alignment): Likewise.
30027         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
30028         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
30029         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
30030         then peeling to arrange for the cost-model check to come first.
30032 2013-05-10  Alan Modra  <amodra@gmail.com>
30034         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
30035         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
30036         * configure: Regenerate.
30038 2013-05-10  Alan Modra  <amodra@gmail.com>
30040         PR target/55033
30041         * varasm.c (default_elf_select_section): Move !DECL_P check..
30042         (get_named_section): ..to here before calling get_section_name.
30043         Adjust assertion.
30044         (default_section_type_flags): Add DECL_P check.
30045         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
30046         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
30048 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
30050         * config/epiphany/epiphany.c (epiphany_expand_prologue):
30051         When using gen_stack_adjust_str with a register offset, add a
30052         REG_FRAME_RELATED_EXPR note.
30054 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
30056         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
30057         (*vec_extractv4si_zext_mem): Ditto.
30058         (*vec_extractv2di): Add 0->x and x->x alternatives.
30059         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
30060         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
30062 2013-05-09  Jason Merrill  <jason@redhat.com>
30064         N3639 C++1y VLA support
30065         * gimplify.c (gimplify_vla_decl): Don't touch an existing
30066         DECL_VALUE_EXPR.
30068         * tree.c (build_constructor_va): New.
30069         * tree.h: Declare it.
30071 2013-05-09  Martin Jambor  <mjambor@suse.cz>
30073         PR lto/57084
30074         * gimple-fold.c (canonicalize_constructor_val): Call
30075         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
30077 2013-05-09  Jan Hubicka  <jh@suse.cz>
30078             Richard Biener  <rguenther@suse.de>
30080         PR lto/54095
30081         * symtab.c (symtab_make_decl_local): Do not add private names.
30083 2013-05-09  Jan Hubicka  <jh@suse.cz>
30085         PR lto/54095
30086         * symtab.c (insert_to_assembler_name_hash): Handle clones.
30087         (unlink_from_assembler_name_hash): Likewise.
30088         (symtab_prevail_in_asm_name_hash, symtab_register_node,
30089         symtab_unregister_node, symtab_initialize_asm_name_hash,
30090         change_decl_assembler_name): Update.
30092 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
30094         * config/aarch64/aarch64.md: New movtf split.
30095         (*movtf_aarch64): Update.
30096         (aarch64_movdi_tilow): Handle TF modes and rename to
30097         aarch64_movdi_<mode>low.
30098         (aarch64_movdi_tihigh): Handle TF modes and rename to
30099         aarch64_movdi_<mode>high
30100         (aarch64_movtihigh_di): Handle TF modes and rename to
30101         aarch64_mov<mode>high_di
30102         (aarch64_movtilow_di): Handle TF modes and rename to
30103         aarch64_mov<mode>low_di
30104         (aarch64_movtilow_tilow): Remove spurious whitespace.
30105         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
30106         splits.
30107         (aarch64_print_operand): Update.
30109 2013-05-09  Alan Modra  <amodra@gmail.com>
30111         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
30112         powerpc64le.
30113         * configure: Regenerate.
30115 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
30117         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
30118         splitter preparation statements.
30119         * config/i386/sse.md (*vec_extract* splitters): Ditto.
30120         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
30121         adjust_address_nv.
30123 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30125         * gimple-ssa-strength-reduction.c (count_candidates): Change
30126         return value to int.
30127         (analyze_candidates_and_replace): Change type of length to int.
30129 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
30131         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
30132         (*vec_extract<mode>): Use VI12_128 mode iterator.
30133         (*vec_extract<mode>_mem): Ditto.
30134         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
30135         attribute.
30137 2013-05-08  Diego Novillo  <dnovillo@google.com>
30139         PR bootstrap/54659
30141         Revert:
30142         2012-08-17  Diego Novillo  <dnovillo@google.com>
30144         PR bootstrap/54281
30145         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
30146         * config.in: Regenerate.
30147         * configure: Regenerate.
30148         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
30150 2013-05-08  Jan Hubicka  <jh@suse.cz>
30152         PR lto/54095
30153         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
30154         * cgraph.h (symtab_node_base): Add unique_name.
30155         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
30156         input_overwrite_node, input_varpool_node): Stream unique_name.
30157         * cgraphclones.c (cgraph_create_virtual_clone,
30158         cgraph_function_versioning): Set unique_name.
30159         * ipa.c (function_and_variable_visibility): Set unique_name.
30161 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30163         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
30164         (alloc_cand_and_find_basis): Restrict conditional candidate
30165         processing to CAND_MULTs.
30167 2013-05-08  Jan Hubicka  <jh@suse.cz>
30169         PR lto/54095
30170         lto-symtab.c (lto_symtab_symbol_p): New function.
30171         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
30172         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
30173         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
30174         Skip static symbols.
30176 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
30178         PR tree-optimization/57200
30179         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
30180         Only call inform if the preceding warning_at returns true.
30182 2013-05-07  Han Shen  <shenhan@google.com>
30184         * cfgexpand.c (record_or_union_type_has_array_p): New function.
30185         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
30186         * common.opt (fstack-protector-strong): New option.
30187         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
30188         * doc/invoke.texi (Optimization Options): Document
30189         "-fstack-protector-strong".
30190         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
30192 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
30194         * config/mips/mips.c (mips_machine_reorg2): Return 0.
30196 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
30198         * ira.c (update_equiv_regs): Add insn having equiv memory even if
30199         it is not lhs of the insn.
30200         (setup_reg_equiv): Remove insn having equiv memory which it is not
30201         lhs of the insn.
30202         * lra-constraints.c (process_address): Try to improve generation
30203         code for address base + disp.
30204         (lra_constraints): Make correct the code for checking insn setting
30205         up backward equivalence.  Remove insn only if it is in the init
30206         insn list.
30207         * lra-eliminations.c (update_reg_eliminate): Change return value.
30208         (lra_eliminate): Use the result.
30210 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
30212         * config/i386/sse.md (ssescalarnummask): New mode attribute.
30213         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
30214         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
30215         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
30216         register target operands.
30217         (*vec_extractv8hi_sse2): New pattern.
30218         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
30219         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
30220         (*vec_extract<mode>_mem): New insn and split pattern.
30222 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
30224         * config/arm/arm.c (arm_asan_shadow_offset): New function.
30225         (TARGET_ASAN_SHADOW_OFFSET): Define.
30226         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
30227         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
30229 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30231         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
30232         (incr_vec_index): Return -1 if increment not found.
30233         (create_add_on_incoming_edge): Assert if increment not found.
30234         (record_increment): Limit number of increments recorded.
30235         (all_phi_incrs_profitable): Return false if an increment not found.
30236         (replace_profitable_candidates): Don't process increments that were
30237         not recorded.
30238         (analyze_candidates_and_replace): Limit size of incr_vec.
30240 2013-05-07  Richard Biener  <rguenther@suse.de>
30242         * calls.c (special_function_p): setjmp-like functions are leaf.
30243         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
30244         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
30246 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
30248         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
30249         (aarch64_simd_mov<mode>): New expander.
30250         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
30251         (aarch64_simd_mov_to_<mode>high): Likewise.
30252         (aarch64_simd_mov_from_<mode>low): Likewise.
30253         (aarch64_simd_mov_from_<mode>high): Likewise.
30254         (aarch64_dup_lane<mode>): Update.
30255         (aarch64_dup_lanedi): New instruction pattern.
30256         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
30257         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
30259 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30261         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
30262         (replace_mult_candidate): Remove unnecessary argument; remove
30263         unnecessary parameter from call to introduce_cast_before_cand.
30264         (replace_unconditional_candidate): Remove unnecessary parameter
30265         from call to replace_mult_candidate.
30266         (replace_conditional_candidate): Likewise.
30267         (insert_initializers): Use make_temp_ssa_name.
30268         (introduce_cast_before_cand): Remove unnecessary argument; use
30269         make_temp_ssa_name.
30270         (replace_one_candidate): Remove unnecessary argument; remove
30271         unnecessary parameter from calls to introduce_cast_before_cand.
30272         (replace_profitable_candidates): Remove unnecessary parameters
30273         from calls to replace_one_candidate.
30275 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30277         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
30278         phi def as possibly hiding a basis for a CAND_ADD whose operands
30279         have been commuted in the analysis.
30280         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
30282 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
30284         * config/aarch64/aarch64.md
30285         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
30286         shift value between 0-4.
30288 2013-05-07  Richard Biener  <rguenther@suse.de>
30290         * double-int.h (rshift): New overload.
30291         * double-int.c (rshift): New function.
30292         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
30293         (create_reference_ops_from_ref): Remove.
30294         (vn_reference_insert): Use shared ops for constructing the
30295         reference and copy it.
30297 2013-05-07  Richard Biener  <rguenther@suse.de>
30299         PR middle-end/57190
30300         * tree-eh.c (sink_clobbers): Properly propagate
30301         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
30303 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
30305         PR tree-optimization/57149
30306         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
30307         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
30308         collect_phi_def_edges, execute_late_warn_uninitialized): Use
30309         uninit_undefined_value_p instead of ssa_undefined_value_p.
30311         PR debug/57184
30312         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
30313         for modifier == EXPAND_INITIALIZER.
30315 2013-05-07  Anton Blanchard  <anton@samba.org>
30317         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
30318         for powerpc64 little endian.
30319         * configure: Regenerate.
30321 2013-05-06  Graham Stott  <grahams@btinternet.com>
30323         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
30324         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
30325         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
30326         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
30328 2013-05-06  Graham Stott  <grahams@btinternet.com>
30330         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
30331         codes which allow non-lvalues.
30333 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
30335         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
30336         components are all 1s.
30337         (integer_minus_onep): New function.
30338         * tree.h (integer_minus_onep): Declare it.
30339         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
30340         integer_minus_onep instead of integer_all_onesp.
30342 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
30344         PR target/52933
30345         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
30346         variations of these patterns.
30348 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
30350         * config/i386/i386.md (isa): Add x64_sse4 member.
30351         (enabled): Handle x64_sse4.
30352         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
30353         instruction for 64bit SSE4_1 targets.  Update insn attributes.
30354         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
30355         instruction for SSE4_1 targets.  Update insn attributes.
30356         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
30357         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
30358         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
30359         const_1 selector.
30360         (*vec_extractv4si): Rename from *sse4_1_pextrd.
30361         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
30362         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
30364 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
30366         PR target/57108
30367         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
30369 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
30371         * final.c (do_assembler_dialects): Don't handle curly braces and
30372         vertical bar escaped by % as dialect delimiters.
30373         (output_asm_insn): Print curly braces and vertical bar if escaped
30374         by % and ASSEMBLER_DIALECT defined.
30375         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
30376         * doc/tm.texi: Regenerated.
30378 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
30380         * config/mips/mips.c: Include tree-pass.h.
30381         (mips_reorg): Split in pre- and post-dbr_schedule parts.
30382         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
30383         (pass_mips_machine_reorg2): New machine specific pass.
30384         (insert_pass_mips_machine_reorg2): New pass plugin definition.
30385         (mips_option_override): Register the new pass.
30386         * rtl.h (cleanup_barriers): Remove prototype.
30387         (dbr_schedule): Likewise.
30388         * jump.c (cleanup_barriers): Make static.
30389         * reorg.c (dbr_schedule): Likewise.
30391 2013-05-06  Richard Biener  <rguenther@suse.de>
30393         PR tree-optimization/57185
30394         * tree-parloops.c (add_field_for_reduction): Handle anonymous
30395         SSA names properly.
30397 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
30399         PR target/57106
30400         * config/i386/i386.c (add_parameter_dependencies): Add dependence
30401         between "first_arg" and "insn", not "last" and "insn".
30403 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30405         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
30406         (find_candidates_in_block): Re-enable slsr_process_phi.
30407         (create_phi_basis): Fix double counting of candidate adjustment.
30409 2013-05-06  Richard Biener  <rguenther@suse.de>
30411         PR middle-end/57147
30412         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
30413         the edge is also fallthru, preserve it and just clear the
30414         abnormal flag.
30415         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
30416         also complex, preserve that and just clear the fallthru flag.
30417         * tree-inline.c (update_ssa_across_abnormal_edges): Also
30418         update virtual operands.
30420 2013-05-06  Alan Modra  <amodra@gmail.com>
30422         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
30423         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
30424         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
30425         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
30426         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
30427         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
30429 2013-05-06  Alan Modra  <amodra@gmail.com>
30431         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
30432         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
30433         (DEFAULT_ASM_ENDIAN): Define.
30434         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
30435         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
30436         Update -K PIC clause from sysv4.h.
30437         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
30438         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
30440 2013-05-06  Alan Modra  <amodra@gmail.com>
30442         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
30443         twice for little-endian.
30444         (ashrdi3_no_power, ashrdi3): Support little-endian.
30446 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
30448         PR target/55303
30449         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
30450         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
30451         related expanders.
30452         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
30453         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
30454         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
30455         New predicates.
30457 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
30458             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30460         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
30461         * config/pa/pa.opt: Make mbig-switch a no-op.
30462         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
30463         (CASE_VECTOR_MODE): Always return SImode.
30464         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
30465         for the !TARGET_BIG_SWITCH case.
30466         * config/pa/pa-linux.h: Likewise.
30467         * config/pa/pa-openbsd.h: Likewise.
30468         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
30469         * config/pa/pa.md (short_jump): Remove define_insn.
30470         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
30471         (casesi0): Remove define_insn.
30472         (type): Remove btable_branch.
30473         (pa_combine_type): Likewise.
30474         (in_nullified_branch_delay): Likewise.
30475         (in_call_delay): Likewise.
30476         (define_delay): Likewise.
30477         (define_insn_reservation "Z3"): Likewise.
30478         (define_insn_reservation "Z4"): Likewise.
30479         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
30480         (pa_adjust_insn_length): Remove adjustment for btable branches.
30481         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
30482         and mno-big-switch
30484 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
30486         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
30487         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
30488         Add m->r,x alternatives.
30489         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
30490         splitters using SWI48x mode iterator.
30491         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
30492         TARGET_64BIT.  Add m->x alternative.
30493         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
30494         Add o->x alternative.  Enable for TARGET_SSE.
30495         (sse_storeq): Remove expander.
30496         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
30497         with memory input operand.
30498         (*vec_extractv2di_1 splitter): New.
30499         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
30500         * config/i386/i386.md (ssevecmodelower): New mode attribute.
30502 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
30504         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
30505         (INT_LOWPART): Delete.
30506         (extract_MB): Adjust.
30507         (extract_ME): Adjust.
30508         (print_operand): Adjust.
30510 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
30512         * config/rs6000/predicates.md (reg_or_add_cint_operand,
30513         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
30514         (reg_or_logical_cint_operand, easy_fp_constant,
30515         logical_const_operand): Delete "CONST_DOUBLE" case.
30516         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
30517         "HOST_BITS_PER_WIDE_INT == 64" test.
30518         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
30519         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
30520         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
30521         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
30522         test.
30523         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
30524         CONST_DOUBLE DImode/VOIDmode case.
30525         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
30526         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
30527         CONST_DOUBLE VOIDmode case.
30528         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
30529         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
30530         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
30531         Delete CONST_DOUBLE case.
30532         (splitters for mov FMOVE64 const_double): Delete
30533         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
30534         "HOST_BITS_PER_WIDE_INT >= 64" test.
30535         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
30536         case.
30537         (mov DI const_double): Delete.
30539 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
30541         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
30542         on op shows all bits zero in mode of a lowpart subreg, return zero.
30544 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
30546         PR target/57150
30547         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
30548         to save TFmode registers and DImode to save TImode registers for
30549         caller save operations.
30550         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
30551         mark being partially clobbered since they only use the first
30552         double word.
30554         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
30555         and TDmode only use the upper 64-bits of each VSX register.
30557 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30559         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
30560         (find_candidates_in_block): Disable slsr_process_phi.
30562 2013-05-03  Guozhi Wei  <carrot@google.com>
30564         * coverage.c (coverage_obj_init): Move the construction of gcov
30565         constructor to ...
30566         (build_init_ctor): ... here.
30568 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30570         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
30571         (slsr_cand_d): Redefine def_phi.
30572         (stride_status, phi_adjust_status, count_phis_status): New enums.
30573         (find_phi_def): New.
30574         (find_basis_for_base_expr): New.
30575         (find_basis_for_candidate): Handle hidden bases.
30576         (alloc_cand_and_find_basis): Handle phi candidates.
30577         (slsr_process_phi): New.
30578         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
30579         (create_mul_imm_cand): Likewise.
30580         (create_add_ssa_cand): Exclude phi base candidates.
30581         (create_add_imm_cand): Likewise.
30582         (slsr_process_cast): Likewise.
30583         (slsr_process_copy): Likewise.
30584         (find_candidates_in_block): Handle phi candidates.
30585         (dump_candidate): Likewise.
30586         (unconditional_cands): Delete.
30587         (unconditional_cands_with_known_stride_p): Delete.
30588         (phi_dependent_cand_p): New.
30589         (cand_increment): Handle phi-dependent candidates.
30590         (replace_dependent): Delete.
30591         (replace_mult_candidate): New.
30592         (replace_unconditional_candidate): New.
30593         (incr_vec_index): Move to avoid forward reference.
30594         (create_add_on_incoming_edge): New.
30595         (create_phi_basis): New.
30596         (replace_dependents): Delete.
30597         (replace_conditional_candidate): New.
30598         (phi_add_costs): New.
30599         (replace_uncond_cands_and_profitable_phis): New.
30600         (record_increment): Handle phi adjustments.
30601         (record_phi_increments): New.
30602         (record_increments): Handle phi adjustments.
30603         (phi_incr_cost): New.
30604         (lowest_cost_path): Handle phis.
30605         (total_savings): Likewise.
30606         (analyze_increments): Likewise.
30607         (ncd_with_phi): New.
30608         (ncd_of_cand_and_phis): New.
30609         (nearest_common_dominator_for_cands): Handle phi increments.
30610         (all_phi_incrs_profitable): New.
30611         (replace_profitable_candidates): Handle phi-dependent candidates.
30612         (analyze_candidates_and_replace): Likewise.
30614 2013-05-03  Teresa Johnson  <tejohnson@google.com>
30616         PR bootstrap/57154
30617         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
30618         do not exceed REG_BR_PROB_BASE.
30620 2013-05-03  Jeff Law  <law@redhat.com>
30622         PR tree-optimization/57144
30623         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
30624         operand of the condition will bit into the new type when eliminating
30625         a cast feeding a condition.
30627 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
30629         PR rtl-optimization/57130
30630         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
30631         of COMPARE as in_code to the recursive call if needed.
30633 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
30635         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
30636         (enabled): Handle new members.
30637         * config/i386/sse.md (*vec_concatv2si): Merge from
30638         *vec_concatv2si_sse2 and vec_concatv2si_sse.
30639         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
30641 2013-05-03  Joern Rennecke  <joern.rennecke@embecosm.com>
30643         PR tree-optimization/57027
30644         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
30645         for fnms opportunity, check we got the prerequisite kind
30646         of tree / gimple before using accessor functions.
30648 2013-05-03  Richard Biener  <rguenther@suse.de>
30650         * double-int.h (lshift): New overload without precision
30651         and arith argument.
30652         (operator *=, operator +=, operator -=): Move ...
30653         * double-int.c (operator *=, operator +=, operator -=): ... here
30654         and implement more efficiently.
30655         (mul_double_with_sign): Remove.
30656         (lshift_double): Adjust to take unsinged shift argument, push
30657         dispatching code to callers.
30658         (mul_double_wide_with_sign): Add early out for callers that
30659         are not interested in high parts or overflow.
30660         (lshift): New function.
30661         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
30662         dispatch code here.
30663         (lrotate, rrotate): Use logical shifts.
30664         * expr.c (get_inner_reference): Use lshift.
30665         * fixed-value.c (do_fixed_divide): Likewise.
30666         * tree-dfa.c (get_ref_base_and_extent): Likewise.
30667         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
30668         (indirect_refs_may_alias_p): Likewise.
30669         (stmt_kills_ref_p_1): Likewise.
30671 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
30673         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
30675 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
30677         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
30678         scalar form of FABD instruction.
30680 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
30682         * lra-constraints.c (process_alt_operands): Add checking alt
30683         number to choose the best alternative.
30685 2013-05-02  Richard Biener  <rguenther@suse.de>
30687         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
30688         bitmap and its handling.
30689         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
30691 2013-05-02  Richard Biener  <rguenther@suse.de>
30693         PR middle-end/57140
30694         * tree-inline.c (copy_loops): Properly handle removed loops.
30695         (copy_cfg_body): Mark destination loops for fixup if source
30696         loops needed fixup.
30698 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
30700         PR target/56732
30701         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
30702         generating simple_return for naked functions.
30704 2013-05-02  Martin Jambor  <mjambor@suse.cz>
30706         PR middle-end/56988
30707         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
30708         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
30709         flags match.
30710         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
30711         ipa_agg_replacement_value structures.
30712         (known_aggs_to_agg_replacement_list): Likewise.
30713         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
30714         (read_agg_replacement_chain): Likewise.
30715         (ipcp_transform_function): Also check that by_ref flags match.
30717 2013-05-02  Richard Biener  <rguenther@suse.de>
30719         * graphds.h (struct graph): Add obstack member.
30720         * graphds.c (new_graph): Initialize obstack and allocate
30721         vertices from it.
30722         (add_edge): Allocate edge from the obstack.
30723         (free_graph): Free the obstack instead of all edges and vertices.
30725 2013-05-02  Teresa Johnson  <tejohnson@google.com>
30727         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
30728         divides.
30729         * cfg.c (update_bb_profile_for_threading): Ditto.
30730         * tree-inline.c (copy_bb): Ditto.
30731         (copy_edges_for_bb): Ditto.
30732         (initialize_cfun): Ditto.
30733         (copy_cfg_body): Ditto.
30734         (expand_call_inline): Ditto.
30735         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
30736         (estimate_node_size_and_time): Ditto.
30737         (inline_merge_summary): Ditto.
30738         * cgraphclones.c (cgraph_clone_edge): Ditto.
30739         (cgraph_clone_node): Ditto.
30740         * sched-rgn.c (compute_dom_prob_ps): Ditto.
30741         (compute_trg_info): Ditto.
30743 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
30745         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
30746         S reg when fp attribute set.
30747         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
30749 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
30751         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
30752         New pattern.
30753         (*and_one_cmplsi3_compare0_uxtw): Likewise.
30754         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
30755         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
30757 2013-05-02  Richard Biener  <rguenther@suse.de>
30759         * tree-scalar-evolution.c (scev_info_hasher): Remove.
30760         (struct instantiate_cache_entry): New type.
30761         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
30762         (struct instantiate_cache_type): New type.
30763         (set_instantiated_value, get_instantiated_value): Remove.
30764         (get_instantiated_value_entry): New function.
30765         (instantiate_scev_name): Use the new cache and adjust.
30766         (instantiate_scev_poly): Adjust.
30767         (instantiate_scev_binary): Likewise.
30768         (instantiate_array_ref): Likewise.
30769         (instantiate_scev_convert): Likewise.
30770         (instantiate_scev_not): Likewise.
30771         (instantiate_scev_3): Likewise.
30772         (instantiate_scev_2): Likewise.
30773         (instantiate_scev_r): Likewise.
30774         (instantiate_scev): Likewise.
30775         (resolve_mixers): Likewise.
30777 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
30779         PR target/57091
30780         * lra-constraints.c (best_small_class_operands_num): Remove.
30781         (process_alt_operands): Remove small_class_operands_num.  Take
30782         small classes operands into losers and only if the operand is not
30783         matched.  Modify debugging output.
30784         (curr_insn_transform): Remove best_small_class_operands_num.
30785         Print insn name.
30787 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
30789         * config/aarch64/aarch64-builtins.c
30790         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
30791         * config/aarch64/aarch64-simd-builtins.def
30792         (reduc_splus_): Add new modes.
30793         (reduc_uplus_): New.
30794         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
30795         (reduc_uplus_v4sf): Likewise.
30796         (reduc_splus_v4sf): Likewise.
30797         (aarch64_addv<mode>): Likewise.
30798         (reduc_uplus_<mode>): Likewise.
30799         (reduc_splus_<mode>): Likewise.
30800         (aarch64_addvv2di): Likewise.
30801         (reduc_uplus_v2di): Likewise.
30802         (reduc_splus_v2di): Likewise.
30803         (aarch64_addvv2si): Likewise.
30804         (reduc_uplus_v2si): Likewise.
30805         (reduc_splus_v2si): Likewise.
30806         (reduc_<sur>plus_<mode>): New.
30807         (reduc_<sur>plus_v2di): Likewise.
30808         (reduc_<sur>plus_v2si): Likewise.
30809         (reduc_<sur>plus_v4sf): Likewise.
30810         (aarch64_addpv4sf): Likewise.
30811         * config/aarch64/arm_neon.h
30812         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
30813         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
30814         add UNSPEC_SADDV, UNSPEC_UADDV.
30815         (SUADDV): New.
30816         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
30818 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
30820         * config/aarch64/arm_neon.h
30821         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
30823 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
30825         * config/aarch64/aarch64-builtins
30826         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
30828 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
30830         * config/aarch64/aarch64-simd-builtins.def
30831         (reduc_smax_): New.
30832         (reduc_smin_): Likewise.
30833         (reduc_umax_): Likewise.
30834         (reduc_umin_): Likewise.
30835         (reduc_smax_nan_): Likewise.
30836         (reduc_smin_nan_): Likewise.
30837         (fmax): Remove.
30838         (fmin): Likewise.
30839         (smax): Update for V2SF, V4SF and V2DF modes.
30840         (smin): Likewise.
30841         (smax_nan): New.
30842         (smin_nan): Likewise.
30843         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
30844         (<su><maxmin><mode>3): ...This, refactor.
30845         (s<maxmin><mode>3): New.
30846         (<maxmin_uns><mode>3): Likewise.
30847         (reduc_<maxmin_uns>_<mode>): Refactor.
30848         (reduc_<maxmin_uns>_v4sf): Likewise.
30849         (reduc_<maxmin_uns>_v2si): Likewise.
30850         (aarch64_<fmaxmin><mode>: Remove.
30851         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
30852         new builtin names.
30853         (vmin<q>_f<32,64>): Likewise.
30854         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
30855         (FMAXMIN): New.
30856         (su): Add mappings for smax, smin, umax, umin.
30857         (maxmin): New.
30858         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
30859         (FMAXMIN): Rename as...
30860         (FMAXMIN_UNS): ...This.
30861         (maxminv): Remove.
30862         (fmaxminv): Likewise.
30863         (fmaxmin): Likewise.
30864         (maxmin_uns): New.
30865         (maxmin_uns_op): Likewise.
30867 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
30869         * config/aarch64/arm_neon.h
30870         (vac<ge, gt><sd>_f<32, 64>): Rename to...
30871         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
30872         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
30874 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
30876         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
30877         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
30879 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
30881         * config/aarch64/aarch64-simd.md
30882         (vcond<mode>_internal): Handle special cases for constant masks.
30883         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
30884         (vcondu<mode><mode>): Likewise.
30885         (vcond<v_cmp_result><mode>): New.
30887 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
30889         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
30890         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
30891         * config/aarch64/aarch64-simd-builtins.def
30892         (cmeq): Update to BUILTIN_VALLDI.
30893         (cmgt): Likewise.
30894         (cmge): Likewise.
30895         (cmle): Likewise.
30896         (cmlt): Likewise.
30897         * config/aarch64/arm_neon.h
30898         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
30899         to builtins or C as appropriate.
30901 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
30903         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
30904         (cmgeu): ...This.
30905         (cmhi): Rename to...
30906         (cmgtu): ...This.
30907         * config/aarch64/aarch64-simd.md
30908         (simd_mode): Add SF.
30909         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
30910         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
30911         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
30912         (cstore<mode>_neg): ...This.
30913         * config/aarch64/iterators.md
30914         (VALLF): new.
30915         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
30916         (COMPARISONS): New.
30917         (UCOMPARISONS): Likewise.
30918         (optab): Add missing comparisons.
30919         (n_optab): New.
30920         (cmp_1): Likewise.
30921         (cmp_2): Likewise.
30922         (CMP): Likewise.
30923         (cmp): Remove.
30924         (VCMP_S): Likewise.
30925         (VCMP_U): Likewise.
30926         (V_cmp_result): Add DF, SF modes.
30927         (v_cmp_result): Likewise.
30928         (v): Likewise.
30929         (vmtype): Likewise.
30930         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
30932 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
30934         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
30935         define_insn to define_insn_and_split.
30936         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
30937         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
30938         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
30939         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
30940         (thumb2_negscc): Likewise.
30942 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
30944         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
30946 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
30948         * config/arm/thumb2.md: Remove trailing whitespaces.
30950 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
30952         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
30953         Use gen_int_mode rather than GEN_INT.
30955 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
30957         * value-prof.c (stream_in_histogram_value): Remove the strayed
30958         debug_gimple_stmt.
30960 2013-04-30  Richard Biener  <rguenther@suse.de>
30962         PR middle-end/57122
30963         * cfghooks.c (split_edge): Properly check for the loop latch edge.
30965 2013-04-30  Richard Biener  <rguenther@suse.de>
30967         PR middle-end/57107
30968         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
30970 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
30972         PR rtl-optimization/56957
30973         PR rtl-optimization/57105
30974         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
30975         variable.  Use just INSN_UID for determining whether an insn
30976         should be only disconnected from the insn stream.
30977         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
30979 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
30981         PR tree-optimization/57104
30982         * tsan.c (instrument_expr): Don't instrument accesses to
30983         DECL_HARD_REGISTER VAR_DECLs.
30985 2013-04-30  Richard Biener  <rguenther@suse.de>
30987         * function.h (loops_for_fn): New inline function.
30988         (set_loops_for_fn): Likewise.
30989         * cfgloop.h (place_new_loop): Add struct function parameter.
30990         (get_loop): Likewise.
30991         (get_loops): Likewise.
30992         (number_of_loops): Likewise.
30993         (fel_next): Adjust.
30994         (fel_init): Likewise.
30995         * cfg.c (get_loop_copy): Adjust.
30996         * cfgloop.c (flow_loops_dump): Likewise.
30997         (record_loop_exits): Likewise.
30998         (verify_loop_structure): Likewise.
30999         * cfgloopanal.c (mark_irreducible_loops): Likewise.
31000         (estimate_reg_pressure_cost): Likewise.
31001         (mark_loop_exit_edges): Likewise.
31002         * cfgloopmanip.c (place_new_loop): Likewise.
31003         (add_loop): Likewise.
31004         (duplicate_loop): Likewise.
31005         * graph.c (draw_cfg_nodes): Likewise.
31006         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
31007         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
31008         (extract_affine_chrec): Likewise.
31009         (build_scop_iteration_domain): Likewise.
31010         * graphite.c (graphite_initialize): Likewise.
31011         * ira-build.c (create_loop_tree_nodes): Likewise.
31012         (more_one_region_p): Likewise.
31013         (rebuild_regno_allocno_maps): Likewise.
31014         (mark_loops_for_removal): Likewise.
31015         (mark_all_loops_for_removal): Likewise.
31016         (remove_unnecessary_regions): Likewise.
31017         (ira_build): Likewise.
31018         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
31019         * loop-init.c (fix_loop_structure): Likewise.
31020         (gate_rtl_move_loop_invariants): Likewise.
31021         (gate_rtl_unswitch): Likewise.
31022         (gate_rtl_unroll_and_peel_loops): Likewise.
31023         (rtl_doloop): Likewise.
31024         * lto-streamer-in.c (input_cfg): Likewise.
31025         * lto-streamer-out.c (output_cfg): Likewise.
31026         * modulo-sched.c (sms_schedule): Likewise.
31027         * predict.c (tree_estimate_probability): Likewise.
31028         (tree_estimate_probability_driver): Likewise.
31029         (estimate_loops): Likewise.
31030         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
31031         (move_sese_region_to_fn): Likewise.
31032         (debug_loop_num): Likewise.
31033         * tree-chrec.c (chrec_evaluate): Likewise.
31034         (hide_evolution_in_other_loops_than_loop): Likewise.
31035         (chrec_component_in_loop_num): Likewise.
31036         (reset_evolution_in_loop): Likewise.
31037         (evolution_function_is_invariant_rec_p): Likewise.
31038         * tree-if-conv.c (main_tree_if_conversion): Likewise.
31039         * tree-inline.c (copy_loops): Likewise.
31040         (copy_cfg_body): Likewise.
31041         (tree_function_versioning): Likewise.
31042         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
31043         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
31044         Likewise.
31045         (add_to_evolution_1): Likewise.
31046         (scev_const_prop): Likewise.
31047         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
31048         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
31049         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
31050         (tree_ssa_lim_initialize): Likewise.
31051         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
31052         (verify_loop_closed_ssa): Likewise.
31053         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
31054         (tree_ssa_loop_im): Likewise.
31055         (tree_ssa_loop_unswitch): Likewise.
31056         (tree_vectorize): Likewise.
31057         (check_data_deps): Likewise.
31058         (tree_ssa_loop_ivcanon): Likewise.
31059         (tree_ssa_loop_bounds): Likewise.
31060         (tree_complete_unroll): Likewise.
31061         (tree_complete_unroll_inner): Likewise.
31062         (tree_parallelize_loops): Likewise.
31063         (tree_ssa_loop_prefetch): Likewise.
31064         (tree_ssa_loop_ivopts): Likewise.
31065         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
31066         * tree-vectorizer.c (vectorize_loops): Likewise.
31068 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
31070         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
31071         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
31072         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
31073         with EABI_LINK_SPEC.
31075 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
31077         PR target/44578
31078         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
31079         alternative.
31081 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
31083         PR target/57097
31084         * lra-constraints.c (process_alt_operands): Discourage a bit more
31085         using memory for pseudos.  Print cost dump for alternatives.
31086         Modify cost values for conflicts with early clobbers.
31087         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
31089 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
31091         PR target/57098
31092         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
31094 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
31096         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
31097         from/to S register.
31098         (movdi_aarch64): Support LDR/STR from/to D register.
31100 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
31102         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
31103         or higher by default.
31105 2013-04-29  Richard Biener  <rguenther@suse.de>
31107         PR middle-end/57075
31108         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
31109         even if not adding abnormal edges for calls that can make
31110         abnormal gotos.
31112 2013-04-29  Richard Biener  <rguenther@suse.de>
31114         PR middle-end/57103
31115         * tree-cfg.c (move_stmt_op): Fix condition under which to update
31116         TREE_BLOCK.
31117         (move_stmt_r): Remove redundant checking.
31119 2013-04-29  Teresa Johnson  <tejohnson@google.com>
31121         PR bootstrap/57077
31122         * basic-block.h (apply_scale): New function.
31123         (apply_probability): Use apply_scale.
31124         * gimple-streamer-in.c (input_bb): Ditto.
31125         * lto-streamer-in.c (input_cfg): Ditto.
31126         * lto-cgraph.c (merge_profile_summaries): Ditto.
31127         * tree-optimize.c (execute_fixup_cfg): Ditto.
31128         * tree-inline.c (copy_bb): Update comment to use apply_scale.
31129         (copy_edges_for_bb): Ditto.
31130         (copy_cfg_body): Ditto.
31132 2013-04-29  Tom de Vries  <tom@codesourcery.com>
31134         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
31135         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
31136         (tail_merge_optimize): Handle current_loops == NULL.
31138 2013-04-26  Jeff Law  <law@redhat.com>
31140         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
31141         (simplify_cond_using_ranges): Generalize code to simplify
31142         COND_EXPRs where one argument is a constant and the other
31143         is an SSA_NAME created by an integral type conversion.
31145 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31147         * config/arm/arm.md (store_minmaxsi): Use only when
31148         optimize_insn_for_size_p.
31150 2013-04-29  Christian Bruel  <christian.bruel@st.com>
31152         PR target/57108
31153         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
31155 2013-04-29  Richard Biener  <rguenther@suse.de>
31157         PR middle-end/57089
31158         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
31159         loop tree make sure to schedule a fixup for the child as well.
31160         (expand_omp_for_generic): Properly add loops.
31161         (expand_omp_for_static_nochunk): Likewise.
31162         (expand_omp_for_static_chunk): Likewise.
31163         (expand_omp_for): For the degenerate case fixup loops.
31164         (expand_omp_sections): Fix default bb placement in loops.
31165         (expand_omp_atomic_pipeline): Properly add loops.
31167 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31169         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
31171 2013-04-29  Tom de Vries  <tom@codesourcery.com>
31173         * tree-ssa-tail-merge.c: Update header comment.
31175 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
31177         * config/aarch64/arm_neon.h
31178         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
31179         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
31180         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
31181         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
31182         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
31183         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
31184         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
31185         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
31187 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
31189         * config/aarch64/aarch64-simd.md
31190         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
31191         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
31192         fix_trunc, fixuns_trunc.
31193         (ftrunc<VDQF:mode>2): New.
31194         * config/aarch64/iterators.md (optab): Add fix, fixuns.
31195         (fix_trunc_optab): New.
31197 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
31199         * config/aarch64/aarch64-builtins.c
31200         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
31201         iceilf, lround, iroundf.
31203 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
31205         PR target/54349
31206         * config/i386/i386.h (enum ix86_tune_indices)
31207         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
31208         New, split from X86_TUNE_INTER_UNIT_MOVES.
31209         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
31210         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
31211         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
31212         (TARGET_INTER_UNIT_MOVES): Remove.
31213         * config/i386/i386.c (initial_ix86_tune_features): Update.
31214         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
31215         (ix86_expand_convert_uns_didf_sse): Use
31216         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
31217         (ix86_expand_vector_init_one_nonzero): Ditto.
31218         (ix86_expand_vector_init_interleave): Ditto.
31219         (inline_secondary_memory_needed): Return true for moves from SSE class
31220         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
31221         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
31222         * config/i386/constraints.md (Yi, Ym): Depend on
31223         TARGET_INTER_UNIT_MOVES_TO_VEC.
31224         (Yj, Yn): New constraints.
31225         * config/i386/i386.md (*movdi_internal): Change constraints of
31226         operand 1 from Yi to Yj and from Ym to Yn.
31227         (*movsi_internal): Ditto.
31228         (*movdf_internal): Ditto.
31229         (*movsf_internal): Ditto.
31230         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
31231         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
31232         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
31233         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
31234         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
31235         * config/i386/sse.md (movdi_to_sse): Ditto.
31236         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
31237         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
31238         TARGET_INTER_UNIT_MOVES.
31239         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
31240         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
31241         instead of TARGET_INTER_UNIT_MOVES.
31242         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
31243         operand 1 from Yi to Yj and from Ym to Yn.
31245 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
31247         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
31248         (float_truncate_hi_): Likewise.
31249         (float_extend_lo_): Likewise.
31250         (float_truncate_lo_): Likewise.
31251         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
31252         (aarch64_float_extend_lo_v2df): Likewise.
31253         (vec_unpacks_hi_v4sf): Likewise.
31254         (aarch64_float_truncate_lo_v2sf): Likewise.
31255         (aarch64_float_truncate_hi_v4sf): Likewise.
31256         (vec_pack_trunc_v2df): Likewise.
31257         (vec_pack_trunc_df): Likewise.
31259 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
31261         * config/aarch64/aarch64-builtins.c
31262         (aarch64_fold_builtin): Fold float conversions.
31263         * config/aarch64/aarch64-simd-builtins.def
31264         (floatv2si, floatv4si, floatv2di): New.
31265         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
31266         * config/aarch64/aarch64-simd.md
31267         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
31268         * config/aarch64/iterators.md (FLOATUORS): New.
31269         (optab): Add float, floatuns.
31270         (su_optab): Likewise.
31272 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
31274         * config/aarch64/aarch64-builtins.c
31275         (aarch64_builtin_vectorized_function): Use new names for
31276         fcvt builtins.
31277         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
31278         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
31279         (fcvtzu): Split as...
31280         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
31281         (fcvtas): Split as...
31282         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
31283         (fcvtau): Split as...
31284         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
31285         (fcvtps): Split as...
31286         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
31287         (fcvtpu): Split as...
31288         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
31289         (fcvtms): Split as...
31290         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
31291         (fcvtmu): Split as...
31292         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
31293         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
31294         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
31295         (lfrintnusf, lfrintnudf): Likewise.
31296         * config/aarch64/aarch64-simd.md
31297         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
31298         define_insn.
31299         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
31300         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
31301         (fcvt_pattern): Likewise.
31303 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
31305         * config/aarch64/aarch64-simd.md
31306         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
31307         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
31309 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
31311         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
31312         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
31313         (vrnd<a,m,n,p>_f32): Implement using builtins.
31314         (vrnd<i,x><q>_f<32, 64>): New.
31316 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
31318         * config/aarch64/aarch64-builtins.c
31319         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
31320         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
31321         (frintz): Rename to...
31322         (btrunc): ...this.
31323         (frintp): Rename to...
31324         (ceil): ...this.
31325         (frintm): Rename to...
31326         (floor): ...this.
31327         (frinti): Rename to...
31328         (nearbyint): ...this.
31329         (frintx): Rename to...
31330         (rint): ...this.
31331         (frinta): Rename to...
31332         (round): ...this.
31333         * config/aarch64/aarch64-simd.md
31334         (aarch64_frint<frint_suffix><mode>): Delete.
31335         (<frint_pattern><mode>2): Convert to insn.
31336         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
31337         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
31338         (frint_pattern): Likewise.
31339         (frint_suffix): Likewise.
31341 2013-04-29  Richard Biener  <rguenther@suse.de>
31343         PR tree-optimization/57081
31344         * loop-init.c: Include tree-flow.h.
31345         (loop_optimizer_finalize): Free number of iteration estimates.
31346         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
31348 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
31350         PR tree-optimization/57083
31351         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
31352         non-singleton shift count range, zero extend low_bound for uns case.
31354         * config/i386/predicates.md (general_vector_operand): New predicate.
31355         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
31356         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
31357         if they aren't nonimmediate operands.  If their original values
31358         satisfy const_vector_equal_evenodd_p, don't shift them.
31359         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
31360         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
31361         if not nonimmediate_operand.
31362         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
31363         instead of register_operand.
31364         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
31366 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
31368         * stor-layout.c (finalize_size_functions): Allocate a structure and
31369         reset cfun before dumping the functions.
31371 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
31373         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
31375         PR target/56866
31376         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
31377         use xop_pmacsdqh if uns_p.
31378         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
31379         the immediate rotate count.
31381 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
31383         * rtl.h (struct rtx_def): Add comment for field jump.
31384         (LRA_SUBREG_P): New macro.
31385         * recog.c (register_operand): Check LRA_SUBREG_P.
31386         * lra.c (lra): Add note at the end of RTL code. Align non-empty
31387         stack frame.
31388         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
31389         (lra_final_code_change): Skip subreg change for operators.
31390         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
31391         if there are no operand changes.
31392         * lra-constraints.c (curr_insn_set): New.
31393         (match_reload): Set LRA_SUBREG_P.
31394         (emit_spill_move): Ditto.
31395         (check_and_process_move): Use curr_insn_set. Process only single
31396         set insns.  Don't initialize sec_mem_p and change_p.
31397         (simplify_operand_subreg): Use LRA_SUBREG_P.
31398         (reg_in_class_p): New function.
31399         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
31400         of #ifdef.  Add code to remove cycling.
31401         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
31402         non-null disp.  Reload inner instead of disp when base and index
31403         are null.  Try to put lo_sum into register.
31404         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
31405         (check_and_process_move): Move code for move cost check to
31406         simple_move_p.  Remove equiv_substitution.
31407         (simple_move_p): New function.
31408         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
31409         curr_insn_set.  Call check_and_process_move only for single set
31410         insns.  Use the new function.  Move call of check_and_process_move
31411         after operand equiv substitution and address process.
31413 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
31415         PR go/57045
31416         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
31417         with nonlocal goto receivers or returns twice calls, ignore
31418         unininitialized values from abnormal edges to nl goto receiver
31419         or returns twice call.
31421 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
31423         PR tree-optimization/57051
31424         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
31425         and VEC_RSHIFT_EXPR if shift count is a multiple of element
31426         bitsize.
31428 2013-04-26  Richard Biener  <rguenther@suse.de>
31430         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
31431         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
31432         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
31433         (fixup_loop_arrays_after_move): New function.
31434         (move_sese_region_to_fn): Properly outline the loop tree parts
31435         of the SESE region.
31437 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
31439         * config/i386/i386.md (type, unit): Fix long lines.
31441 2013-04-26  Richard Biener  <rguenther@suse.de>
31443         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
31444         (lto-streamer-out.o): Likewise.
31445         * cfgloop.c (init_loops_structure): Export, add struct function
31446         argument and adjust.
31447         (flow_loops_find): Adjust.
31448         * cfgloop.h (enum loop_estimation): Add EST_LAST.
31449         (init_loops_structure): Declare.
31450         * lto-streamer-in.c: Include cfgloop.h.
31451         (input_cfg): Input the loop tree.
31452         * lto-streamer-out.c: Include cfgloop.h.
31453         (output_cfg): Output the loop tree.
31454         (output_struct_function_base): Do not drop PROP_loops.
31456 2013-03-26  Richard Biener  <rguenther@suse.de>
31458         * tree-cfg.c (execute_build_cfg): Build the loop tree.
31459         (pass_build_cfg): Provide PROP_loops.
31460         (move_sese_region_to_fn): Remove loops that are outlined into fn
31461         for now.
31462         * tree-inline.c: Include cfgloop.h.
31463         (initialize_cfun): Do not drop PROP_loops.
31464         (copy_loops): New function.
31465         (copy_cfg_body): Copy loop structure.
31466         (tree_function_versioning): Initialize destination loop tree.
31467         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
31468         (pass_parallelize_loops): Do IL verification.
31469         * loop-init.c (loop_optimizer_init): Fixup loops if required.
31470         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
31471         the CFG make sure we fixup loops as well.
31472         * tree-ssa-tail-merge.c: Include cfgloop.h.
31473         (replace_block_by): When merging loop latches mark loops for fixup.
31474         * lto-streamer-out.c (output_struct_function_base): Drop
31475         PROP_loops for now.
31476         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
31477         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
31478         * ipa-split.c: Include cfgloop.h.
31479         (split_function): Add the new return block to the loop tree root.
31480         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
31481         whether we have removed the forwarder block.
31482         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
31483         * cfgloop.h (place_new_loop): Declare.
31484         * cfgloopmanip.c (place_new_loop): Export.
31485         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
31486         (tree-switch-conversion.o): Likewise.
31487         (tree-complex.o): Likewise.
31488         (tree-inline.o): Likewise.
31489         (tree-ssa-tailmerge.o): Likewise.
31490         (ipa-split.o): Likewise.
31491         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
31492         (tree-ssa-copy.o): Likewise.
31493         * tree-switch-conversion.c: Include cfgloop.h
31494         (process_switch): If we emit a bit-test cascade, schedule loops
31495         for fixup.
31496         * tree-complex.c: Include cfgloop.h.
31497         (expand_complex_div_wide): Properly add new basic-blocks to loops.
31498         * asan.c: Include cfgloop.h.
31499         (create_cond_insert_point): Properly add new basic-blocks to
31500         loops, schedule loop fixup.
31501         * cfgloop.c (verify_loop_structure): Check that looks are not
31502         marked for fixup.
31503         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
31504         to loops.
31505         (expand_omp_for_generic): Likewise.
31506         (expand_omp_sections): Likewise.
31507         (expand_omp_atomic_pipeline): Schedule loops for fixup.
31508         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
31509         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
31510         is initialized, not when loops are present.
31511         * tree-parloops.c (parallelize_loops): Remove checking here.
31512         * passes.c (init_optimization_passes): Schedule a copy-propagation
31513         pass before complete unrolling of inner loops.
31515 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
31517         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
31518         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
31519         (colorize_init): Add argument to _WIN32 version.
31520         * toplev.c: Include diagnostic-color.h.
31521         (process_options): Default to -fdiagnostics-color=auto if
31522         GCC_COLORS env var is in the environment.
31523         * common.opt (fdiagnostics-color=): Add Var and Init.
31524         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
31525         env var is in the environment, the default is auto rather than never.
31527         * diagnostic.h (file_name_as_prefix): Add context argument.
31528         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
31529         the string as locus.
31530         * langhooks.c (lhd_print_error_function): Adjust caller.
31532 2013-04-25  Lawrence Crowl  <crowl@google.com>
31534         * var-tracking.c (shared_hash_def::htab):
31535         Change type to hash_table.  Update dependent calls and types.
31537 2013-04-25  Lawrence Crowl  <crowl@google.com>
31539         * Makefile.in: Update as needed below.
31541         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
31542         Move declaration to after the type's method definitons.
31544         * attribs.c (htab_t scoped_attributes::attribute_hash):
31545         Change type to hash_table.  Update dependent calls and types.
31547         * bitmap.c (htab_t bitmap_desc_hash):
31548         Change type to hash_table.  Update dependent calls and types.
31550         * cselib.c (htab_t cselib_hash_table):
31551         Change type to hash_table.  Update dependent calls and types.
31553         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
31554         (hash_string_slot_node): Move implementation into lto-streamer.h
31555         struct string_slot_hasher.
31556         (eq_string_slot_node): Likewise.
31558         * data-streamer-out.c: Update output_block::string_hash_table
31559         dependent calls and types.
31561         * dwarf2cfi.c (htab_t trace_index):
31562         Change type to hash_table.  Update dependent calls and types.
31564         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
31565         Change type to hash_table.  Update dependent calls and types.
31566         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
31567         (htab_t optimize_external_refs::map): Likewise.
31568         (htab_t output_comp_unit::extern_map): Likewise.
31569         (htab_t output_comdat_type_unit::extern_map): Likewise.
31570         (htab_t output_macinfo::macinfo_htab): Likewise.
31571         (htab_t optimize_location_lists::htab): Likewise.
31572         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
31574         * except.c (htab_t ehspec_hash_type):
31575         Change type to hash_table.  Update dependent calls and types.
31576         (assign_filter_values::ttypes): Likewise.
31577         (assign_filter_values::ehspec): Likewise.
31578         (sjlj_assign_call_site_values::ar_hash): Likewise.
31579         (convert_to_eh_region_ranges::ar_hash): Likewise.
31581         * gcse.c (htab_t pre_ldst_table):
31582         Change type to hash_table.  Update dependent calls and types.
31584         * ggc-common.c (htab_t saving_htab):
31585         Change type to hash_table.  Update dependent calls and types.
31586         (htab_t loc_hash): Likewise.
31587         (htab_t ptr_hash): Likewise.
31588         (call_count): Rename ggc_call_count.
31589         (call_alloc): Rename ggc_call_alloc.
31590         (loc_descriptor): Rename make_loc_descriptor.
31591         (add_statistics): Rename ggc_add_statistics.
31593         * ggc-common.c (saving_htab):
31594         Change type to hash_table.  Update dependent calls and types.
31596         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
31597         (push_gimplify_context): Likewise.
31598         (pop_gimplify_context): Likewise.
31599         (struct gimple_temp_hash_elt): Added.
31600         (struct gimplify_hasher): Likewise.
31601         (struct gimplify_ctx.temp_htab):
31602         Change type to hash_table.  Update dependent calls and types.
31604         * gimple-fold.c: Include gimplify-ctx.h.
31606         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
31607         Change type to hash_table.  Update dependent calls and types.
31608         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
31609         avoid potential global name collision.
31611         * gimplify.c: Include gimplify-ctx.h.
31612         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
31613         (htab_t gimplify_ctx::temp_htab):
31614         Update dependent calls and types for new type hash_table.
31615         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
31616         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
31618         * gimplify-ctx.h: New.
31619         (struct gimple_temp_hash_elt): Move from gimplify.c.
31620         (class gimplify_hasher): New.
31621         (struct gimplify_ctx): Move from gimple.h.
31622         (htab_t gimplify_ctx::temp_htab):
31623         Change type to hash_table.  Update dependent calls and types.
31625         * graphite-clast-to-gimple.c: Include graphite-htab.h.
31626         (htab_t ivs_params::newivs_index):
31627         Change type to hash_table.  Update dependent calls and types.
31628         (htab_t ivs_params::params_index): Likewise.
31629         (htab_t print_generated_program::params_index): Likewise.
31630         (htab_t gloog::newivs_index): Likewise.
31631         (htab_t gloog::params_index): Likewise.
31633         * graphite.c: Include graphite-htab.h.
31634         4htab_t graphite_transform_loops::bb_pbb_mapping):
31635         Change type to hash_table.  Update dependent calls and types.
31637         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
31638         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
31639         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
31641         * graphite-dependences.c: Include graphite-htab.h.
31642         (loop_is_parallel_p): Change hash table type of parameter.
31644         * graphite-htab.h: New.
31645         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
31646         (extern find_pbb_via_hash): Move from graphite-poly.h.
31647         (extern loop_is_parallel_p): Move from graphite-poly.h.
31648         (extern get_loop_body_pbbs): Move from graphite-poly.h.
31650         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
31651         (extern loop_is_parallel_p): Move to graphite-htab.h.
31652         (extern get_loop_body_pbbs): Move to graphite-htab.h.
31654         * haifa-sched.c (htab_t delay_htab):
31655         Change type to hash_table.  Update dependent calls and types.
31656         (htab_t delay_htab_i2): Likewise.
31658         * ira-color.c (htab_t allocno_hard_regs_htab):
31659         Change type to hash_table.  Update dependent calls and types.
31661         * ira-costs.c (htab_t cost_classes_htab):
31662         Change type to hash_table.  Update dependent calls and types.
31664         * loop-invariant.c (htab_t merge_identical_invariants::eq):
31665         Change type to hash_table.  Update dependent calls and types.
31667         * loop-iv.c (htab_t bivs):
31668         Change type to hash_table.  Update dependent calls and types.
31670         * loop-unroll.c (htab_t opt_info::insns_to_split):
31671         Change type to hash_table.  Update dependent calls and types.
31672         (htab_t opt_info::insns_with_var_to_expand): Likewise.
31674         * lto-streamer.h (struct string_slot): Move from data-streamer.h
31675         (struct string_slot_hasher): New.
31676         (htab_t output_block::string_hash_table):
31677         Change type to hash_table.  Update dependent calls and types.
31679         * lto-streamer-in.c (freeing_string_slot_hasher): New.
31680         (htab_t file_name_hash_table):
31681         Change type to hash_table.  Update dependent calls and types.
31683         * lto-streamer-out.c: Update output_block::string_hash_table dependent
31684         calls and types.
31686         * lto-streamer.c (htab_t tree_htab):
31687         Change type to hash_table.  Update dependent calls and types.
31689         * omp-low.c: Include gimplify-ctx.h.
31691         * passes.c (htab_t name_to_pass_map):
31692         Change type to hash_table.  Update dependent calls and types.
31693         (pass_traverse): Rename to passes_pass_traverse.
31695         * plugin.c (htab_t event_tab):
31696         Change type to hash_table.  Update dependent calls and types.
31698         * postreload-gcse.c (htab_t expr_table):
31699         Change type to hash_table.  Update dependent calls and types.
31700         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
31702         * sese.c (debug_rename_map_1): Make extern.
31703         (htab_t copy_bb_and_scalar_dependences::rename_map):
31704         Change type to hash_table.  Update dependent calls and types.
31706         * sese.h (extern debug_rename_map): Move to .c file.
31708         * store-motion.c (htab_t store_motion_mems_table):
31709         Change type to hash_table.  Update dependent calls and types.
31711         * trans-mem.c (htab_t tm_new_mem_hash):
31712         Change type to hash_table.  Update dependent calls and types.
31714         * tree-browser.c (htab_t TB_up_ht):
31715         Change type to hash_table.  Update dependent calls and types.
31717         * tree-cfg.c (htab_t discriminator_per_locus):
31718         Change type to hash_table.  Update dependent calls and types.
31720         * tree-complex.c: Include tree-hasher.h
31721         (htab_t complex_variable_components):
31722         Change type to hash_table.  Update dependent calls and types.
31724         * tree-eh.c (htab_t finally_tree):
31725         Change type to hash_table.  Update dependent calls and types.
31727         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
31728         struct int_tree_hasher.
31729         (extern int_tree_map_eq): Likewise.
31730         (uid_decl_map_hash): Removed.
31731         (extern decl_tree_map_eq): Likewise.
31733         * tree-hasher.h: New.
31734         (struct int_tree_hasher): New.
31735         (typedef int_tree_htab_type): New.
31737         * tree-inline.c: Include gimplify-ctx.h.
31739         * tree-mudflap.c: Include gimplify-ctx.h.
31741         * tree-parloops.c: Include tree-hasher.h.
31742         (htab_t eliminate_local_variables_stmt::decl_address):
31743         Change type to hash_table.  Update dependent calls and types.
31744         (htab_t separate_decls_in_region::decl_copies): Likewise.
31746         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
31747         Change type to hash_table.  Update dependent calls and types.
31749         * tree-sra.c (candidates):
31750         Change type to hash_table.  Update dependent calls and types.
31752         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
31753         in tree-flow.h.
31754         (int_tree_map_hash): Likewise.
31756         * tree-ssa-dom.c (htab_t avail_exprs):
31757         Change type to hash_table.  Update dependent calls and types.
31759         * tree-ssa-live.c (var_map_base_init::tree_to_index):
31760         Change type to hash_table.  Update dependent calls and types.
31762         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
31763         Change type to hash_table.  Update dependent calls and types.
31765         * tree-ssa-phiopt.c (seen_ssa_names):
31766         Change type to hash_table.  Update dependent calls and types.
31768         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
31769         Change type to hash_table.  Update dependent calls and types.
31771         * tree-ssa-uncprop.c (equiv):
31772         Change type to hash_table.  Update dependent calls and types.
31774 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
31776         PR rtl-optimization/57003
31777         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
31778         call note_stores with kill_clobbered_value callback again after
31779         killing regs_invalidated_by_call.
31781 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
31783         * config/aarch64/aarch64-simd.md
31784         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
31785         (aarch64_simd_bsl<mode>): Likewise.
31786         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
31788 2013-04-25  Marek Polacek  <polacek@redhat.com>
31790         PR tree-optimization/57066
31791         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
31793 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
31795         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
31797 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
31799         * config/aarch64/aarch64-builtins.c
31800         (aarch64_fold_builtin): New.
31801         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
31802         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
31803         * config/aarch64/aarch64-simd-builtins.def (abs): New.
31804         * config/aarch64/arm_neon.h
31805         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
31807 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
31808             Tejas Belagod  <tejas.belagod@arm.com>
31810         * config/aarch64/aarch64-builtins.c
31811         (aarch64_gimple_fold_builtin): New.
31812         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
31813         * config/aarch64/aarch64-simd-builtins.def (addv): New.
31814         * config/aarch64/aarch64-simd.md (addpv4sf): New.
31815         (addvv4sf): Update.
31816         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
31818 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
31820         * config/aarch64/aarch64.md
31821         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
31823 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
31825         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
31826         (*ngcsi_uxtw): New pattern.
31828 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31829             Julian Brown  <julian@codesourcery.com>
31831         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
31832         (TB_DREG): Add T_V4HF.
31833         (v4hf_UP): New macro.
31834         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31835         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31836         Handle initialisation of V4HF. Adjust initialisation of reinterpret
31837         built-ins.
31838         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31839         (arm_vector_mode_supported_p): Handle V4HF.
31840         (arm_mangle_map): Handle V4HFmode.
31841         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
31842         * config/arm/arm_neon_builtins.def: Add entries for
31843         vcvtv4hfv4sf, vcvtv4sfv4hf.
31844         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
31845         (neon_vcvtv4hfv4sf): Likewise.
31846         * config/arm/neon-gen.ml: Handle half-precision floating point
31847         features.
31848         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
31849         * config/arm/arm_neon.h: Regenerate.
31850         * config/arm/neon.ml (type elts): Add F16.
31851         (type vectype): Add T_float16x4, T_floatHF.
31852         (type vecmode): Add V4HF.
31853         (type features): Add Requires_FP_bit feature.
31854         (elt_width): Handle F16.
31855         (elt_class): Likewise.
31856         (elt_of_class_width): Likewise.
31857         (mode_of_elt): Refactor.
31858         (type_for_elt): Handle F16, fix error messages.
31859         (vectype_size): Handle T_float16x4.
31860         (vcvt_sh): New function.
31861         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
31862         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
31863         (string_of_mode): Handle V4HF.
31864         * doc/arm-neon-intrinsics.texi: Regenerate.
31866 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
31868         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
31869         format specifier in 'X' case.
31871 2013-04-25  Alan Modra  <amodra@gmail.com>
31873         PR target/57052
31874         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
31875         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
31876         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
31877         Repeat for many other rotate/shift and mask patterns using subregs.
31878         Name lshiftrt insns.
31879         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
31880         on WORDS_BIG_ENDIAN.
31882 2013-04-25  Alan Modra  <amodra@gmail.com>
31884         * config.gcc: Support little-endian powerpc-linux targets.
31885         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
31886         (LINK_OS_LINUX_SPEC): Define.
31887         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
31888         Preserve MASK_LITTLE_ENDIAN.
31889         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
31890         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
31891         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
31892         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
31893         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
31894         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
31895         Correct fp word order for little-endian.  Don't shift toc entries
31896         smaller than a word for little-endian.
31897         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
31898         (bswapdi2 splits): Correct low-part subreg for little-endian.
31899         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
31900         low/high where such is correct only for be.
31901         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
31902         little-endian for -mcall-aixdesc.
31904 2013-04-25  Alan Modra  <amodra@gmail.com>
31906         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
31907         replace_equiv_address_nv.
31909 2013-04-25  Alan Modra  <amodra@gmail.com>
31911         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
31913 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
31915         Revert:
31916         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
31917         * rtl.h (struct rtx_def): ...
31919 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
31921         PR rtl-optimizations/57046
31922         * lra-constraints (split_reg): Set up lra_risky_transformations_p
31923         for multi-reg splits.
31925 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
31927         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
31929 2013-04-24  Sterling Augustine  <saugustine@google.com>
31931         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
31932         (comp_dir_string, debug_str_dwo_section): New.
31933         (DEBUG_STR_DWO_SECTION): Rename to ...
31934         (DEBUG_DWO_STR_SECTION): ... this.
31935         (DEBUG_NORM_STR_SECTION): Delete.
31936         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
31937         (DEBUG_STR_DWO_SECTION_FLAGS): New.
31938         (find_AT_string): Move most logic to ...
31939         (find_AT_string_in_table): ... here.  New.
31940         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
31941         add_skeleton_AT_string.  Delete logic.
31942         (output_skeleton_debug_sections): Remove call to
31943         add_top_level_skeleton_die_attrs.
31944         (add_comp_dir_attribute): Move logic to comp_dir_string.
31945         (dwarf2out_init): Initialize debug_str_dwo_section.
31946         (output_indirect_string): Call find_string_form.
31947         (output_indirect_strings): Rewrite.
31948         (prune_unused_types): Empty skeleton_debug_str_hash.
31949         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
31950         (dwarf2out_finish):  Call output_indirect_strings.
31952 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
31954         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
31956 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
31958         * rtl.h (struct rtx_def): Add comment for field jump.
31959         (LRA_SUBREG_P): New macro.
31960         * recog.c (register_operand): Check LRA_SUBREG_P.
31961         * lra.c (lra): Add note at the end of RTL code. Align non-empty
31962         stack frame.
31963         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
31964         (lra_final_code_change): Skip subreg change for operators.
31965         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
31966         if there are no operand changes.
31967         * lra-constraints.c (curr_insn_set): New.
31968         (match_reload): Set LRA_SUBREG_P.
31969         (emit_spill_move): Ditto.
31970         (check_and_process_move): Use curr_insn_set. Process only single
31971         set insns.  Don't initialize sec_mem_p and change_p.
31972         (simplify_operand_subreg): Use LRA_SUBREG_P.
31973         (reg_in_class_p): New function.
31974         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
31975         of #ifdef.  Add code to remove cycling.
31976         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
31977         non-null disp.  Reload inner instead of disp when base and index
31978         are null.  Try to put lo_sum into register.
31979         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
31980         (check_and_process_move): Move code for move cost check to
31981         simple_move_p.  Remove equiv_substitution.
31982         (simple_move_p): New function.
31983         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
31984         curr_insn_set.  Call check_and_process_move only for single set
31985         insns.  Use the new function.  Move call of check_and_process_move
31986         after operand equiv substitution and address process.
31988 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
31990         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
31991         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
31992         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
31994 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
31996         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
31998 2013-04-24  Marek Polacek  <polacek@redhat.com>
32000         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
32001         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
32002         (select_loops_exit_conditions): Likewise.
32003         (number_of_iterations_for_all_loops): Likewise.
32004         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
32005         (scev_analysis): Likewise.
32007 2013-04-02  Catherine Moore  <clm@codesourcery.com>
32008             Chao-ying Fu  <fu@mips.com>
32010         * config/mips/micromips.md (jraddiusp): New pattern.
32011         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
32012         instruction if possible.
32014 2013-04-24  Alan Modra  <amodra@gmail.com>
32016         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
32018 2013-04-24  Julian Brown  <julian@codesourcery.com>
32019             Chung-Lin Tang  <cltang@codesourcery.com>
32021         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
32022         dependency behavior in enumeration type DIE generation. Add TODO note
32023         to comments about future DW_FORM_sdata/udata re-work of related code.
32025 2013-04-23  Lawrence Crowl  <crowl@google.com>
32027         * Makefile.in: Update as needed below.
32029         * hash-table.h (class hash_table):
32030         Correct many methods with parameter types compare_type to the correct
32031         value_type.  (Correct code was unlikely to notice the change.)
32032         (hash_table::elements_with_deleted) New.
32033         (class hashtable::iterator): New.
32034         (hashtable::begin()): New.
32035         (hashtable::end()): New.
32036         (FOR_EACH_HASH_TABLE_ELEMENT): New.
32038         * statistics.c (statistics_hashes):
32039         Change type to hash_table.  Update dependent calls and types.
32041         * tree-into-ssa.c (var_infos):
32042         Change type to hash_table.  Update dependent calls and types.
32044         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
32045         Change type to hash_table.  Update dependent calls and types.
32047         * tree-ssa-loop-im.c (struct mem_ref.refs):
32048         Change type to hash_table.  Update dependent calls and types.
32050         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
32051         Change type to hash_table.  Update dependent calls and types.
32053         * tree-ssa-sccvn.c (vn_tables_s::nary):
32054         Change type to hash_table.  Update dependent calls and types.
32055         (vn_tables_s::phis): Likewise.
32056         (vn_tables_s::references): Likewise.
32058         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
32059         (vn_reference_eq): Update parameter and return types.
32061         * tree-ssa-structalias.c (pointer_equiv_class_table):
32062         Change type to hash_table.  Update dependent calls and types.
32063         (location_equiv_class_table): Likewise.
32065         * tree-vect-data-refs.c: Consequential changes for making
32066         peeling a hash_table.
32068         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
32069         (destroy_loop_vec_info): Dependent hash_table update.
32071         * tree-vectorizer.h (peeling_htab):
32072         Change type to hash_table.  Update dependent calls and types.
32074 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
32076         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
32077         to check the register content is equal or not.
32078         * lra-constraints.c (match_reload): Use lra_assign_reg_val
32079         to assign register content record.
32080         * lra-eliminations.c (update_reg_eliminate): Use
32081         lra_update_reg_val_offset to update register content offset.
32082         * lra-int.h (struct lra_reg): Add offset member.
32083         (lra_reg_val_equal_p): New static inline function.
32084         (lra_update_reg_val_offset): New static inline function.
32085         (lra_assign_reg_val): New static inline function.
32086         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
32087         to assign register content record.
32088         (initialize_lra_reg_info_element): Initial offset to zero.
32090 2013-04-23  Catherine Moore  <clm@codesourcery.com>
32092         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
32093         operands.  Record compression.
32095 2013-04-23  Xinliang David Li  <davidxl@google.com>
32097         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
32099 2013-04-23  Richard Biener  <rguenther@suse.de>
32101         PR middle-end/57036
32102         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
32103         parameter, only add abnormal goto edges from the copied body
32104         if the call could perform abnormal gotos.
32105         (copy_cfg_body): Adjust.
32107 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
32109         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
32111 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
32113         * coretypes.h (gimple_stmt_iterator): Add struct to make
32114         compatible with C.
32116 2013-04-23  Richard Biener  <rguenther@suse.de>
32118         PR tree-optimization/57026
32119         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
32120         from SSA names occuring in abnormal PHI nodes.
32122 2013-04-22  Andi Kleen  <ak@linux.intel.com>
32124         * lto/lto.c (print_lto_report_1): Fix LTO report names.
32126 2013-04-22  Andi Kleen  <ak@linux.intel.com>
32128         * lto/lto.c (print_lto_report_1): Declare early.
32129         (read_cgraph_and_symbols): Call print_lto_report_1 early.
32131 2013-04-22  Andi Kleen  <ak@linux.intel.com>
32133         * common.opt (-flto-report-wpa): Add.
32134         * doc/invoke.texi (-flto-report-wpa): Add.
32135         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
32136         (lto_main): dito.
32138 2013-04-22  Xinliang David Li  <davidxl@google.com>
32140         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
32141         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
32142         * Makefile.in: New dependency
32144             David Daney <ddaney.cavm@gmail.com>
32146         * configure.ac (gcc_cv_as_micromips_support):  Use the
32147         --fatal-warnings option.
32148         * configure: Regenerate.
32150 2013-04-22  Marek Polacek  <polacek@redhat.com>
32152         PR sanitizer/56990
32153         * tsan.c (instrument_expr): Don't instrument expression
32154         in case its size is zero.
32156 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
32158         PR target/57032
32159         Revert:
32160         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
32162         * config/alpha/alpha.c (TARGET_LRA_P): New define.
32164 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
32166         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
32167         (gimple_stmt_iterator): New typedef.
32168         * gimple.h (gimple_stmt_iterator): Rename to...
32169         (gimple_stmt_iterator_d): ... This.
32170         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
32171         trees be valid for GIMPLE and GENERIC.
32172         (TARGET_GIMPLE_FOLD_BUILTIN): New.
32173         * gimple-fold.c (gimple_fold_call): Call target hook
32174         gimple_fold_builtin.
32175         * hooks.c (hook_bool_gsiptr_false): New.
32176         * hooks.h (hook_bool_gsiptr_false): New.
32177         * target.def (fold_stmt): New.
32178         * doc/tm.texi: Regenerate.
32180 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
32182         PR target/57018
32183         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
32184         a set sp if no stack realignment.
32186 2013-04-22  Nick Clifton  <nickc@redhat.com>
32188         * config.gcc (tilegx-linux): Extend extra_objs rather than
32189         overwriting it.
32190         (tilepro-linux): Likewise.
32192 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
32194         * config/aarch64/aarch64-builtins.c
32195         (CF): Remove.
32196         (CF0, CF1, CF2, CF3, CF4, CF10): New.
32197         (VAR<1-12>): Add MAP parameter.
32198         (BUILTIN_*): Likewise.
32199         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
32200         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
32201         (aarch64_ushl_n<mode>): Likewise.
32202         (aarch64_sshr_n<mode>): Likewise.
32203         (aarch64_ushr_n<mode>): Likewise.
32204         (aarch64_<maxmin><mode>): Likewise.
32205         (aarch64_sqrt<mode>): Likewise.
32206         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
32207         (vshr<q>_n_*): Likewise.
32209 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
32211         * config/aarch64/aarch64-builtins.c
32212         (aarch64_simd_builtin_type_mode): Handle SF types.
32213         (sf_UP): Define.
32214         (BUILTIN_GPF): Define.
32215         (aarch64_init_simd_builtins): Handle SF types.
32216         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
32217         (frecps): Likewise.
32218         (frecpx): Likewise.
32219         * config/aarch64/aarch64-simd.md
32220         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
32221         (aarch64_frecpe<mode>): New.
32222         (aarch64_frecps<mode>): Likewise.
32223         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
32224         (v8type): Add frecp<esx>.
32225         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
32226         (aarch64_frecps<mode>): Likewise.
32227         * config/aarch64/iterators.md (FRECP): New.
32228         (frecp_suffix): Likewise.
32229         * config/aarch64/arm_neon.h
32230         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
32232 2013-04-22  Christian Bruel  <christian.bruel@st.com>
32234         PR target/56995
32235         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
32236         (REG_CLASS_NAMES): Idem.
32237         (REG_CLASS_CONTENTS): Idem.
32238         (REGCLASS_HAS_FP_REG): Idem.
32239         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
32240         (sh_conditional_register_usage): Idem.
32242 2013-04-21  Jeff Law  <law@redhat.com>
32244         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
32245         (ssa_forward_propagate_and_combine): Use it.
32247 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
32249         * lra.c: Update the flow chart diagram.
32251 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
32253         PR rtl-optimization/56847
32254         * lra-constraints.c (process_alt_operands): Discourage alternative
32255         with non-matche doffsettable memory constraint fro memory with
32256         known offset.
32258 2013-04-19  Richard Biener  <rguenther@suse.de>
32260         PR tree-optimization/56982
32261         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
32262         function.
32263         * gimplify.c (gimplify_call_expr): Notice special calls.
32264         (gimplify_modify_expr): Likewise.
32265         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
32266         abnormal control flow receivers.
32267         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
32268         in the same way as cfun->has_nonlocal_labels.
32269         (gimple_purge_dead_abnormal_call_edges): Likewise.
32270         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
32271         receivers start a basic-block.
32273 2013-04-19  Richard Biener  <rguenther@suse.de>
32275         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
32276         member ...
32277         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
32278         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
32279         (SLP_TREE_LOAD_PERMUTATION): Add.
32280         (vect_transform_slp_perm_load): Adjust prototype.
32281         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
32282         (vect_free_slp_instance): Likewise.
32283         (vect_create_new_slp_node): Likewise.
32284         (vect_supported_slp_permutation_p): Remove.
32285         (vect_slp_rearrange_stmts): Adjust.
32286         (vect_supported_load_permutation_p): Likewise.  Inline
32287         vect_supported_slp_permutation_p here.
32288         (vect_analyze_slp_instance): Compute load permutations per
32289         slp node instead of per instance.
32290         (vect_get_slp_defs): Adjust.
32291         (vect_transform_slp_perm_load): Likewise.
32292         (vect_schedule_slp_instance): Remove redundant code.
32293         (vect_schedule_slp): Remove hack for PR56270, add it ...
32294         * tree-vect-stmts.c (vectorizable_load): ... here, do not
32295         CSE loads for SLP.  Adjust.
32297 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
32299         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
32300         spelling in two comments.
32302 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
32304         PR target/56797
32305         * config/arm/arm.c (load_multiple_sequence): Require SP
32306         as base register for loads if SP is in the register list.
32308 2013-04-19  Martin Jambor  <mjambor@suse.cz>
32310         PR tree-optimization/56718
32311         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
32312         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
32313         and made public.  Adjusted all callers.
32314         (ipa_intraprocedural_devirtualization): New function.
32315         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
32316         (ipa_intraprocedural_devirtualization): Likewise.
32317         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
32319 2013-04-19  Richard Biener  <rguenther@suse.de>
32321         PR tree-optimization/57000
32322         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
32324 2013-04-19  Terry Guo  <terry.guo@arm.com>
32326         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
32327         Replace with ...
32328         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
32329         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
32330         (cortex_m4_fmacs): Use new reservations.
32331         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
32333 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
32335         PR rtl-optimization/56999
32336         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
32337         related code.
32338         (lra_coalesce): Remove split_origin_bitmap and related code.
32339         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
32340         ranges if necessary.
32342 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
32344         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
32345         New array.
32346         (ix86_expand_call): Remove clobbered_registers array and use
32347         x86_64_ms_sysv_extra_clobbered_registers instead.
32348         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
32349         Declare here.
32350         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
32351         predicate.
32352         * config/i386/i386.md (*call_rex64_ms_sysv): Use
32353         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
32354         (*call_value_rex64_ms_sysv): Ditto.
32356 2013-04-18  Cary Coutant  <ccoutant@google.com>
32358         * dwarf2out.c (output_pubnames): Check die_perennial_p of
32359         parent instead of die_mark.
32361 2013-04-18  Diego Novillo  <dnovillo@google.com>
32363         * gimple.c (create_gimple_tmp): New.
32364         (get_expr_type): New.
32365         (build_assign): New.
32366         (build_type_cast): New.
32367         * gimple.h (enum ssa_mode): Define.
32368         (gimple_seq_set_location): New.
32369         * asan.c (build_check_stmt): Change some gimple_build_* calls
32370         to use build_assign and build_type_cast.
32372 2013-04-18  Richard Biener  <rguenther@suse.de>
32374         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
32375         handle negative step.  Remove redundant checks.
32376         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
32377         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
32378         for negative step and grouped loads fail to vectorize.
32380 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
32382         * emit-rtl.c (reset_insn_used_flags): New function.
32383         (reset_all_used_flags): Use it.
32384         (verify_insn_sharing): New function.
32385         (verify_rtl_sharing): Fix verification for SEQUENCEs.
32387 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
32389         PR tree-optimization/56984
32390         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
32391         and (x >> M) >= N don't register any assertion if N << M is the
32392         minimum value.
32394 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
32396         * lower-subreg.c (resolve_simple_move): If called self-recursive,
32397         do not delete_insn insns that have not yet been emitted, only
32398         unlink them with remove_insn.
32399         * df-scan.c (df_insn_delete): Revert r197492.
32401 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
32403         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
32404         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
32406 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
32408         * config/arm/arm.md (movsicc_insn): Convert define_insn into
32409         define_insn_and_split.
32410         (and_scc,ior_scc,negscc): Likewise.
32411         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
32413 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
32415         * config/arm/arm.c (use_return_insn): Return 0 for targets that
32416         can benefit from using a sequence of LDRD instructions in epilogue
32417         instead of a single LDM instruction.
32419 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32421         PR 45688
32422         * doc/extend.texi: Fix typo.
32424 2013-04-17  Richard Biener  <rguenther@suse.de>
32426         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
32427         (vect_build_slp_tree): ... here.
32428         (vect_build_slp_tree_1): Compute which stmts of the SLP group
32429         match.  Remove special-casing of mismatched complex loads.
32430         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
32431         re-try the match with swapped commutative operands.
32432         (vect_supported_load_permutation_p): Remove special-casing of
32433         mismatched complex loads.
32434         (vect_analyze_slp_instance): Adjust.
32436 2013-04-17  Richard Biener  <rguenther@suse.de>
32438         PR rtl-optimization/56921
32439         * cfgloop.h (struct loop): Add simple_loop_desc member.
32440         (struct niter_desc): Mark with GTY(()).
32441         (simple_loop_desc): Do not use aux field but simple_loop_desc.
32442         * loop-iv.c (get_simple_loop_desc): Likewise.
32443         (free_simple_loop_desc): Likewise.
32445         Revert
32446         2013-04-16  Richard Biener  <rguenther@suse.de>
32448         PR rtl-optimization/56921
32449         * loop-init.c (pass_rtl_move_loop_invariants): Add
32450         TODO_do_not_ggc_collect to todo_flags_finish.
32451         (pass_rtl_unswitch): Same.
32452         (pass_rtl_unroll_and_peel_loops): Same.
32453         (pass_rtl_doloop): Same.
32455 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
32457         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
32458         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
32459         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
32460         references.
32461         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
32462         * tree-streamer.c (record_common_node): Adjust reference in comment.
32464 2013-04-17  Terry Guo  <terry.guo@arm.com>
32466         * config/arm/cortex-m4.md: Add a new bypass.
32468 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
32470         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
32471         New pattern.
32472         (*subs_<optab><mode>_multp2): New pattern.
32473         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
32474         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
32476 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
32478         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
32479         (*subs_mul_imm_<mode>): New pattern.
32481 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
32483         PR target/56948
32484         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
32485         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
32486         (vsx_movti_32bit): Change j->wa to O->wa.
32488 2013-04-16  Richard Biener  <rguenther@suse.de>
32490         PR rtl-optimization/56921
32491         * loop-init.c (pass_rtl_move_loop_invariants): Add
32492         TODO_do_not_ggc_collect to todo_flags_finish.
32493         (pass_rtl_unswitch): Same.
32494         (pass_rtl_unroll_and_peel_loops): Same.
32495         (pass_rtl_doloop): Same.
32497 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
32499         * config/arm/arm.c (emit_multi_reg_push): New declaration
32500         for an existing function.
32501         (arm_emit_strd_push): New function.
32502         (arm_expand_prologue): Used here.
32503         (arm_emit_ldrd_pop): New function.
32504         (arm_expand_epilogue): Used here.
32505         (arm_get_frame_offsets): Update condition.
32506         (arm_emit_multi_reg_pop): Add a special case for load of a single
32507         register with writeback.
32509 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
32511         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
32512         description.
32514 2013-04-16  Richard Biener  <rguenther@suse.de>
32516         PR tree-optimization/56756
32517         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
32518         (first_mem_ref_loc): New.
32519         (execute_sm): Place the load temporarily before a previous
32520         access instead of in the latch edge to ensure its SSA dependencies
32521         are defined at points dominating the load.
32523 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
32525         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
32526         correct fix by moving header and footer insn to the footer of
32527         the merged basic block.  Clear BB_END of the merged-away block.
32529         PR middle-end/43631
32530         * emit-rtl.c (make_note_raw): New function.
32531         (link_insn_into_chain): New static inline function.
32532         (add_insn): Use it.
32533         (add_insn_before, add_insn_after): Factor insn chain linking code...
32534         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
32535         using link_insn_into_chain.
32536         (note_outside_basic_block_p): New helper function for emit_note_after
32537         and emit_note_before.
32538         (emit_note_after): Use nobb variant of add_insn_after if the note
32539         should not be contained in a basic block.
32540         (emit_note_before): Use nobb variant of add_insn_before if the note
32541         should not be contained in a basic block.
32542         (emit_note_copy): Use make_note_raw.
32543         (emit_note): Likewise.
32544         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
32545         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
32546         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
32547         the moved barrier the tail of the basic block it follows.
32548         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
32550 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
32552         PR tree-optimization/56962
32553         * gimple-ssa-strength-reduction.c (record_increment): Only set
32554         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
32555         either rhs1 or rhs2 is equal to c->base_expr.
32557 2013-04-15  Richard Biener  <rguenther@suse.de>
32559         PR tree-optimization/56933
32560         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
32561         member.
32562         (GROUP_READ_WRITE_DEPENDENCE): Remove.
32563         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
32564         * tree-vect-data-refs.c (vect_analyze_group_access): Move
32565         dependence check ...
32566         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
32567         ... here.
32568         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
32569         GROUP_READ_WRITE_DEPENDENCE.
32571 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32573         * emit-rtl.c (reset_all_used_flags): New function.
32574         (verify_rtl_sharing): Call reset_all_used_flags before and after
32575         performing the checks.
32577 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32579         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
32580         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
32581         * config/arm/constraints.md (De): New constraint.
32582         * config/arm/neon.md (anddi3_neon): Delete.
32583         (neon_vand<mode>): Expand to standard anddi3 pattern.
32584         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
32585         Move earlier in the file.
32586         (neon_inv_logic_op2): Likewise.
32587         (arm_anddi_operand_neon): New predicate.
32589 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32591         * configure.ac (gcc_cv_ld_as_needed): Set
32592         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
32593         Use -z ignore, -z record on *-*-solaris2*.
32594         (HAVE_LD_AS_NEEDED): Update comment.
32595         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
32596         * configure: Regenerate.
32597         * config.in: Regenerate.
32598         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
32599         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
32600         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
32601         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
32602         equivalents.  Fix markup.
32603         * doc/tm.texi: Regenerate.
32605 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
32607         * config/i386/i386.opt: New option mstack-protector-guard=.
32608         * config/i386/i386-opts.h: Add enum stack_protector_guard.
32609         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
32610         TARGET_SSP_TLS_GUARD.
32611         * config/i386/i386.c (ix86_option_override_internal): Set
32612         ix86_stack_protector_guard.
32613         * config/i386/i386.md (stack_protect_set): Enable for
32614         TARGET_SSP_TLS_GUARD only.
32615         (stack_protect_set_<mode>): Ditto.
32616         (stack_protect_test): Ditto.
32617         (stack_protect_test_<mode>): Ditto.
32618         * doc/invoke.texi (i386 Option): Document.
32620 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
32622         PR target/56890
32623         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
32624         (S_MODES): Set H_MODE bit.
32625         (SF_MODES): Set only S_MODE and SF_MODE bits.
32626         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
32627         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
32628         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
32629         <MODE_FLOAT>: Likewise.
32631 2013-04-15  Joey Ye  <joey.ye@arm.com>
32633         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
32635 2013-04-15  Joey Ye  <joey.ye@arm.com>
32637         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
32638         for real far jump.
32639         (thumb_far_jump_used_p): Count instruction size and set
32640         far_jump_used.
32642 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
32644         * reorg.c (fill_simple_delay_slots): Reindent block of code.
32645         * resource.c (mark_target_live_regs): Reformat conditional block.
32647 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
32649         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
32650         notes, they are emitted only just before final.
32651         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
32653 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
32655         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
32656         * cfgrtl.c (delete_insn): Call it here instead.
32657         * lra-spills.c (lra_final_code_change): Use delete_insn.
32658         * haifa-sched.c (sched_remove_insn): Likewise.
32659         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
32660         returning to the nop pool.
32661         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
32662         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
32664 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
32666         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
32667         * doc/tm.texi: Regenerated.
32669 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
32671         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
32672         QImode checks.
32674 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
32676         * df-core.c (df_find_def): Compare register numbers.
32677         (df_find_use): Likewise.
32679 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
32681         PR target/56903
32682         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
32683         lra_in_progress for return.
32685 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
32687         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
32688         define_insn into define_insn_and_split and emit movsicc patterns.
32690 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
32692         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
32694 2013-04-12  Richard Biener  <rguenther@suse.de>
32696         * tree-pass.h (TODO_do_not_ggc_collect): New.
32697         * passes.c (execute_one_ipa_transform_pass): Honor
32698         TODO_do_not_ggc_collect.
32699         (execute_one_pass): Likewise.
32701         Revert
32702         2013-04-10  Richard Biener  <rguenther@suse.de>
32704         * passes.c (init_optimization_passes): Remove reload pass.
32705         * ira.c (do_reload): Merge into ...
32706         (ira): ... this.
32707         (rest_of_handle_reload): Remove.
32708         (pass_reload): Likewise.
32709         * config/i386/i386.c (ix86_option_override): Refer to ira instead
32710         of reload for vzeroupper pass placement.
32712 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
32714         PR tree-optimization/56918
32715         PR tree-optimization/56920
32716         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
32717         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
32718         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
32719         use wide_mul_with_sign method.
32721 2013-04-12  Richard Biener  <rguenther@suse.de>
32723         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
32724         not be considered a gimple constant.
32726 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
32728         * fold-const.c (const_binop): Handle vector shifts by a scalar.
32729         (fold_binary_loc): Call const_binop also for mixed vector-scalar
32730         operations.
32732 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32733             Jakub Jelinek  <jakub@redhat.com>
32735         * opts.c: Include diagnostic-color.h.
32736         (common_handle_option): Handle OPT_fdiagnostics_color_.
32737         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
32738         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
32739         (diagnostic-color.o): New.
32740         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
32741         (diagnostic_color_rule): New enum.
32742         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
32743         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
32744         the location string.
32745         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
32746         either NULL, or color kind.
32747         * diagnostic-color.c: New file.
32748         * diagnostic-color.h: New file.
32749         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
32750         arguments.
32751         * doc/invoke.texi (-fdiagnostics-color): Document.
32752         * pretty-print.h (pp_show_color): Define.
32753         (struct pretty_print_info): Add show_color field.
32754         * diagnostic.c: Include diagnostic-color.h.
32755         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
32756         macros.  Colorize error:, warning: etc. strings and also the location
32757         string.
32758         (diagnostic_show_locus): Colorize the caret line.
32759         * pretty-print.c: Include diagnostic-color.h.
32760         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
32761         inside of %< %> quotes or quoted through q format modifier.
32763 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32765         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
32767 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
32769         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
32770         code in CC_NZ mode.
32771         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
32772         pattern.
32774 2013-04-11  Marek Polacek  <polacek@redhat.com>
32776         PR tree-optimization/48184
32777         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
32779 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
32781         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
32782         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
32783         (skip_simple_arithmetic): Tidy up.
32784         * tree.h (skip_simple_constant_arithmetic): Declare.
32786 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
32788         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
32790 2013-04-11  Richard Biener  <rguenther@suse.de>
32792         * tree-vect-loop.c (get_initial_def_for_induction): Properly
32793         generate vector constants.
32795 2013-04-11  Richard Biener  <rguenther@suse.de>
32797         PR tree-optimization/56878
32798         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
32799         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
32800         New function.
32801         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
32802         Prefer to align the DR with the most invariant base address.
32804 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
32806         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
32807         comment.
32809 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
32811         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
32812         floating-point vector comparisons against 0.
32814 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
32816         PR tree-optimization/56899
32817         * fold-const.c (extract_muldiv_1): Apply distributive law
32818         only if TYPE_OVERFLOW_WRAPS (ctype).
32820 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
32822         PR target/56124
32823         * ira-costs.c (scan_one_insn): Check whether the source rtx of
32824         loading has side effect.
32826 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
32828         * config/sparc/sparc.c: Include tree-pass.h.
32829         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
32830         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
32831         head of file.  Change return type.  Split off gate function.
32832         (sparc_gate_work_around_errata): New function.
32833         (pass_work_around_errata): New pass definition.
32834         (insert_pass_work_around_errata) New pass insert definition to
32835         insert pass_work_around_errata just after delayed-branch scheduling.
32836         (sparc_option_override): Insert the pass.
32837         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
32839 2013-04-10  David S. Miller  <davem@davemloft.net>
32841         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
32842         or -mcpu=hypersparc.
32844         * target.def (cstore_mode): New hook.
32845         * target.h: Include insn-codes.h
32846         * targhooks.c: Likewise.
32847         (default_cstore_mode): New function.
32848         * targhooks.h: Declare it.
32849         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
32850         * doc/tm.texi: Rebuild.
32851         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
32852         target hook, rather than inspecting the insn_data.
32853         * config/sparc/sparc.c (sparc_cstore_mode): New function.
32854         (TARGET_CSTORE_MODE): Redefine.
32855         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
32856         result patterns.
32857         * config/sparc/predicates.md (cstore_result_operand): New special
32858         predicate.
32859         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
32860         Use it for operand 0.
32861         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
32862         (*snesi_special): Likewise.
32863         (*snesi_zero): Likewise.
32864         (*seqsi_zero): Likewise.
32865         (*sltu_insn): Likewise.
32866         (*sgeu_insn): Likewise.
32867         (*seqdi_special): Make operand 0 and comparison operation be of
32868         DImode.
32869         (*snedi_special): Likewise.
32870         (*snedi_special_vis3): Likewise.
32871         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
32872         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
32873         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
32874         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
32875         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
32876         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
32877         (*sltu_extend_sp64): Likewise.
32878         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
32879         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
32880         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
32881         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
32882         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
32884 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
32886         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
32887         (aarch64_start_file): Use the new function.
32889 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
32890             Jason Merrill  <jason@redhat.com>
32892         * common.opt: Add -gdwarf.
32893         * opts.c (common_handle_option): Handle it.
32894         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
32896 2013-04-10  Richard Biener  <rguenther@suse.de>
32898         * passes.c (execute_todo): Do not call ggc_collect conditional here.
32899         (execute_one_ipa_transform_pass): But unconditionally here.
32900         (execute_one_pass): And here.
32901         (init_optimization_passes): Remove reload pass.
32902         * tree-pass.h (TODO_ggc_collect): Remove.
32903         (pass_reload): Likewise.
32904         * ira.c (do_reload): Merge into ...
32905         (ira): ... this.
32906         (rest_of_handle_reload): Remove.
32907         (pass_reload): Likewise.
32908         * config/i386/i386.c (ix86_option_override): Refer to ira instead
32909         of reload for vzeroupper pass placement.
32910         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
32911         and todo_flags_finish of all passes.
32913 2013-04-10  Richard Biener  <rguenther@suse.de>
32915         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
32916         first_const_oprnd field, rename first_def_type to first_op_type.
32917         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
32918         (vect_get_and_check_slp_defs): Always use the type of the
32919         operand.  Allow mixed vect_external_def, vect_constant_def types.
32920         (vect_get_constant_vectors): Handle mixed vect_external_def,
32921         vect_constant_def types.
32923 2013-04-10  Joern Rennecke  <joern.rennecke@embecosm.com>
32925         PR tree-optimization/55524
32926         * tree-ssa-math-opts.c
32927         (convert_mult_to_fma): Don't use an fms construct
32928         when we don't have an fms operation, but fnma, and it looks
32929         likely that we'll be able to use the latter.
32931 2013-04-10  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
32933         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
32934         function.
32935         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
32936         inline fail caused by overwritable functions.
32938 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
32940         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
32941         unnecessary bits in the constant power of two case.
32943 2013-04-10  Richard Biener  <rguenther@suse.de>
32945         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
32946         broken code swapping operands.
32947         (vect_build_slp_tree): Do not compute load permutations here.
32948         (vect_analyze_slp_instance): Compute load permutations here,
32949         after building the SLP tree.
32951 2013-04-09  Christian Bruel  <christian.bruel@st.com>
32953         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
32954         of next/prev_real_insn.
32956 2013-04-09  Jan Hubicka  <jh@suse.cz>
32958         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
32959         Drop aliased parameter.
32960         (function_and_variable_visibility): Do not handle alias pairs.
32961         * cgraph.c (varpool_externally_visible_p): Update prototype.
32962         * varpool.c (varpool_add_new_variable): Update.
32964 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32966         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
32968 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
32970         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
32972         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
32974 2013-04-09  Marek Polacek  <polacek@redhat.com>
32976         PR tree-optimization/48762
32977         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
32979 2013-04-09  Richard Biener  <rguenther@suse.de>
32981         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
32982         dealing with cost.
32983         (vect_build_slp_tree): Likewise.
32984         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
32985         calculating the cost of a SLP instance.
32986         (vect_analyze_slp_instance): Use it from here, after building
32987         the SLP tree.
32989 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
32991         PR middle-end/56883
32992         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
32993         expand_omp_for_static_chunk): Use simple_p = true in
32994         force_gimple_operand_gsi calls when assigning to addressable decls.
32996 2013-04-09  Jeff Law  <law@redhat.com>
32998         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
32999         when the boolean was created by converting a wider object which
33000         had a boolean range.
33002 2013-04-09  Richard Biener  <rguenther@suse.de>
33004         * tree-vectorizer.h (slp_void_p): Remove.
33005         (slp_tree): Typedef before _slp_tree declaration.
33006         (struct _slp_tree): Use a vector of slp_tree as children.
33007         (vect_get_place_in_interleaving_chain): Remove.
33008         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
33009         Move ...
33010         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
33011         and make static.
33012         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
33013         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
33014         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
33015         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
33016         Use slp_node instead of slp_void_p and adjust.
33018 2013-04-09  Richard Biener  <rguenther@suse.de>
33020         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
33021         work that is not necessary.
33023 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
33025         PR tree-optimization/56854
33026         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
33027         forward into clobber stmts if it would change MEM_REF lhs into
33028         non-MEM_REF.
33030 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
33032         * tree.c (type_hash_lookup, type_hash_add): Make static.
33033         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
33035 2013-04-09  Richard Biener  <rguenther@suse.de>
33037         * tree.h (unsave_expr_now): Remove.
33038         * tree-inline.c (mark_local_for_remap_r): Remove.
33039         (unsave_expr_1): Likewise.
33040         (unsave_r): Likewise.
33041         (unsave_expr_now): Likewise.
33042         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
33043         (propagate_tree_value): Likewise.
33045 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
33047         * doc/rtl.texi (sequence): Rewrite documentation to match the
33048         current use of SEQUENCE rtl objects.
33049         * rtl.def (SEQUENCE): Likewise.
33051         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
33052         Update documentation.
33053         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
33054         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
33056         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
33058 2013-04-08  Teresa Johnson  <tejohnson@google.com>
33060         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
33061         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33062         methods.
33063         (estimate_edge_size_and_time): Add comment to suggest using rounding
33064         methods.
33065         (estimate_node_size_and_time): Ditto.
33066         (remap_edge_change_prob): Use helper rounding divide methods.
33067         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
33068         (gimple_mod_pow2_value_transform): Ditto.
33069         (gimple_mod_subtract_transform): Ditto.
33070         (gimple_ic_transform): Ditto.
33071         (gimple_stringops_transform): Ditto.
33072         * stmt.c (conditional_probability): Ditto.
33073         (emit_case_dispatch_table): Ditto.
33074         * lto-cgraph.c (merge_profile_summaries): Ditto.
33075         * tree-optimize.c (execute_fixup_cfg): Ditto.
33076         * cfgcleanup.c (try_forward_edges): Ditto.
33077         * cfgloopmanip.c (scale_loop_profile): Ditto.
33078         (loopify): Ditto.
33079         (duplicate_loop_to_header_edge): Ditto.
33080         (lv_adjust_loop_entry_edge): Ditto.
33081         * tree-vect-loop.c (vect_transform_loop): Ditto.
33082         * profile.c (compute_branch_probabilities): Ditto.
33083         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
33084         * lto-streamer-in.c (input_cfg): Ditto.
33085         * gimple-streamer-in.c (input_bb): Ditto.
33086         * ipa-cp.c (update_profiling_info): Ditto.
33087         (update_specialized_profile): Ditto.
33088         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
33089         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33090         rounding methods.
33091         * sched-rgn.c (compute_dom_prob_ps): Ditto.
33092         (compute_trg_info): Ditto.
33093         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
33094         (purge_dead_edges): Ditto.
33095         * loop-unswitch.c (unswitch_loop): Ditto.
33096         * cgraphclones.c (cgraph_clone_edge): Ditto.
33097         (cgraph_clone_node): Ditto.
33098         * tree-inline.c (copy_bb): Ditto.
33099         (copy_edges_for_bb): Ditto.
33100         (initialize_cfun): Ditto.
33101         (copy_cfg_body): Ditto.
33102         (expand_call_inline): Ditto.
33104 2013-04-08  Kai Tietz  <ktietz@redhat.com>
33106         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
33107         TARGET_CYGWIN64 by TARGET_64BIT.
33109 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
33111         * config/epiphany/epiphany.md (GPR_1): New constant.
33112         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
33113         * config/epiphany/epiphany.c (gen_compare_reg):
33114         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
33115         is already in place.
33116         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
33117         Don't require being called during rtl expansion; If y operlaps r0,
33118         return 0.
33119         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
33120         (epiphany_expand_epilogue): Likewise.
33122         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
33123         Don't use CC_FPmode for ORDERED / UNORDERED.
33124         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
33126         * config/epiphany/constraints.md (CnL): New constraint.
33127         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
33128         * config/epiphany/predicates.md (add_operand): Allow 1024.
33130         * config/epiphany/epiphany.md (logical_op): New code iterator.
33131         (op_mnc): New code attribute.
33132         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
33133         (mov_f+1, mov_f+2): New peephole2 patterns.
33135         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
33136         (cstoresi4): Also allow re-use of zero result when doing a NE
33137         comparison to a non-zero operand.
33138         Use (clobber (scratch)) for first insn if the gpr output is not needed.
33140         * config/epiphany/epiphany.md (<insn_opname>v2si3):
33141         Use gen_addsi3_i / gen_subsi3_i.
33143 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
33145         PR c++/34949
33146         PR c++/50243
33147         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
33148         contain anything but clobbers, at most one __builtin_stack_restore,
33149         optionally debug stmts and final resx, and if it has at least one
33150         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
33151         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
33152         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
33153         which isn't defaut definition, remove them.
33154         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
33155         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
33156         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
33157         with MEM_REF LHS with SSA_NAME address.
33159 2013-04-08  Jeff Law  <law@redhat.com>
33161         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
33163 2013-04-08  Richard Biener  <rguenther@suse.de>
33165         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
33166         extra newline.
33167         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
33168         determined vector type.
33169         (vect_analyze_data_refs): Likewise.
33170         (vect_get_new_vect_var): Adjust.
33171         (vect_create_destination_var): Preserve SSA name versions.
33172         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
33173         not dump anything here.
33175 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
33177         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
33178         Add member lr_slot_known.
33179         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
33180         if necessary.
33181         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
33182         Remove code that sets lr_slot_offset according to what a previous
33183         version of epiphany_emit_save_restore used to do.
33184         (epiphany_emit_save_restore): When doing an lr save or restore,
33185         set/verify lr_slot_known and lr_slot_offset.
33187 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
33189         PR target/54338
33190         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
33191         in ALL_REGS.
33193 2013-04-08  Richard Biener  <rguenther@suse.de>
33195         * alias.c (find_base_term): Fix thinko in previous change.
33197 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
33199         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
33200         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
33201         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
33202         if possible to compute val.
33203         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
33204         For QImode integers don't require anything about precision.  Use
33205         const_with_all_bytes_same to find out if the constant doesn't have
33206         repeated bytes in it.
33208 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33210         * config/s390/s390.c (s390_expand_insv): Only accept insertions
33211         within mode size.
33213 2013-04-08  Marek Polacek  <polacek@redhat.com>
33215         PR rtl-optimization/48182
33216         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
33217         value to 1.
33219 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33221         PR target/55487
33222         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
33223         nuses, make sure we have a label.
33225 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33227         PR target/56843
33228         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
33229         (rs6000_emit_swdiv_low_precision): Remove.
33230         (rs6000_emit_swdiv): Rewrite to handle between one and four
33231         iterations of Newton-Raphson generally; modify required number of
33232         iterations for some cases.
33233         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
33235 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
33237         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
33238         set-but-unused variable.
33240         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
33241         basic blocks of released function bodies garbage-collectable.
33243         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
33244         (struct rtl_opt_pass): Add TODO_df_finish.
33246         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
33248 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
33250         * config/arm/constraints.md (q): New constraint.
33251         * config/arm/ldrdstrd.md: New file.
33252         * config/arm/arm.md (ldrdstrd.md) New include.
33253         (arm_movdi): Use "q" instead of "r" constraint
33254         for double-word memory access.
33255         (movdf_soft_insn): Likewise.
33256         * config/arm/vfp.md (movdi_vfp): Likewise.
33257         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33258         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
33259         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
33260         (mem_ok_for_ldrd_strd): Likewise.
33261         (output_move_double): Update assertion.
33263 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
33265         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
33267 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
33269         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
33270         define_insn_and_split.
33271         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
33273 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
33275         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
33276         define_insn_and_split.
33277         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
33278         (shiftsi3_compare): New pattern.
33279         (rrx): New pattern.
33280         * config/arm/unspecs.md (UNSPEC_RRX): New.
33282 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
33284         * config/arm/arm.md (negdi_extendsidi): New pattern.
33285         (negdi_zero_extendsidi): Likewise.
33287 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
33289         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
33290         define_insn_and_split.
33291         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
33292         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
33294 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
33296         * config/arm/arm.md (arm_subdi3): Convert define_insn into
33297         define_insn_and_split.
33298         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
33299         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
33301 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
33303         * config/arm/arm.md (subsi3_carryin): New pattern.
33304         (subsi3_carryin_const): Likewise.
33305         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
33306         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
33308 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
33310         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
33312 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
33314         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
33315         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
33317 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33319         * config/arm/arm.c (arm_expand_builtin): Change fcode
33320         type to unsigned int.
33322 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33324         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
33326 2013-04-04  Ian Lance Taylor  <iant@google.com>
33328         * doc/standards.texi (Standards): The Go frontend supports the Go 1
33329         language standard.
33331 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
33333         PR middle-end/56729
33334         * df-scan.c (df_insn_delete): Disable failing assert.
33336 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33338         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
33339         New function prototype.
33340         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
33341         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
33342         (arm_builtin_vectorized_function): New function.
33344 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33346         * config/arm/arm_neon_builtins.def: New file.
33347         * config/arm/arm.c (neon_builtin_data): Move contents to
33348         arm_neon_builtins.def.
33349         (enum arm_builtins): Include neon builtin definitions.
33350         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33351         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
33353 2013-04-04  Marek Polacek  <polacek@redhat.com>
33355         PR tree-optimization/48186
33356         * predict.c (maybe_hot_frequency_p): Return false if
33357         HOT_BB_FREQUENCY_FRACTION is 0.
33358         (cgraph_maybe_hot_edge_p): Likewise.
33360 2013-04-04  Richard Biener  <rguenther@suse.de>
33362         PR tree-optimization/56826
33363         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
33364         more accurately.
33366 2013-04-04  Richard Biener  <rguenther@suse.de>
33368         PR tree-optimization/56213
33369         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33370         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
33372 2013-04-04  Richard Biener  <rguenther@suse.de>
33374         PR tree-optimization/56837
33375         * tree-loop-distribution.c (classify_partition): For non-zero
33376         values require that the value has the same precision as its
33377         mode to be useful as memset value.
33379 2013-04-03  Nick Clifton  <nickc@redhat.com>
33381         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
33382         (fmssf4): Use fmsf.s on E3V5 architectures.
33383         (fnmasf4): Use fnmaf.s on E3V5 architectures.
33384         (fnmssf4): Use fnmsf.s on E3V5 architectures.
33386 2013-04-03  Jeff Law  <law@redhat.com>
33388         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
33389         (lra-eliminations.o): Likewise.
33391 2013-04-03  Teresa Johnson  <tejohnson@google.com>
33393         * gcov-io.c (compute_working_sets): Moved most of body of old
33394         compute_working_sets here from profile.c.
33395         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33396         (gcov_working_set_t): Moved typedef here from basic-block.h
33397         (compute_working_set): Declare.
33398         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
33399         (get_working_sets): Renamed from compute_working_set,
33400         replace most of body with call to new compute_working_sets.
33401         (get_exec_counts): Replace call to compute_working_sets
33402         to get_working_sets.
33403         * profile.h (get_working_sets): Renamed from compute_working_set.
33404         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33405         to get_working_sets.
33406         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
33407         * gcov-dump.c (dump_working_sets): New function.
33409 2013-04-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
33411         * hwint.c (sext_hwi, zext_hwi): New functions.
33412         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
33413         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
33414         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
33415         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
33416         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
33417         (sext_hwi, zext_hwi): New functions.
33419 2013-04-03  Jeff Law  <law@redhat.com>
33421         PR tree-optimization/56799
33422         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
33423         back test for widening conversion erroneously dropped in prior change.
33425 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33427         PR target/56809
33428         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
33429         instead of next_real_insn.
33431 2013-04-03  Marek Polacek  <polacek@redhat.com>
33433         PR sanitizer/55702
33434         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
33436 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33438         PR target/56809
33439         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
33440         next_real_insn.
33441         (thumb1_output_casesi): Likewise.
33442         (thumb2_output_casesi): Likewise.
33444 2013-04-03  Richard Biener  <rguenther@suse.de>
33446         PR tree-optimization/56817
33447         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
33448         Split out ...
33449         (tree_unroll_loops_completely_1): ... new function to manually
33450         walk the loop tree, properly defering outer loops of unrolled
33451         loops to later iterations.
33453 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
33455         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
33456         (vectorizable_load): Likewise.
33457         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
33458         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
33460 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
33462         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
33463         BIT_FIELD_REF.
33465 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
33467         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
33469 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
33471         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
33473 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
33475         PR tree-optimization/56790
33476         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
33477         folding.
33479 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
33481         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
33482         Handle VEC_MERGE.
33483         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
33484         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
33485         equal arguments.
33487 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
33489         PR c/19449
33490         * tree.h (force_folding_builtin_constant_p): New decl.
33491         * builtins.c (force_folding_builtin_constant_p): New variable.
33492         (fold_builtin_constant_p): Fold immediately also if
33493         force_folding_builtin_constant_p.
33495 2013-04-03  Richard Biener  <rguenther@suse.de>
33497         PR tree-optimization/56812
33498         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
33499         DRs of the same interleaving chain are independent.
33501 2013-04-02  Jason Merrill  <jason@redhat.com>
33503         * gdbinit.in (pbb): Use debug fn.
33505 2013-04-02  Lawrence Crowl  <crowl@google.com>
33507         * sese.h (struct ivtype_map_elt_s): Remove unused.
33508         (extern debug_ivtype_map): Remove unused.
33509         (extern eq_ivtype_map_elts): Remove unused.
33510         * sese.c (debug_ivtype_map): Removed unused.
33511         (debug_ivtype_map_1): Removed unused.
33512         (debug_ivtype_elt): Remove unused.
33513         (eq_ivtype_map_elts): Remove unused.
33515 2013-04-02  Kai Tietz  <ktietz@redhat.com>
33517         PR target/52790
33518         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
33519         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33520         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
33521         function.
33522         (legitimize_pe_coff_symbol): Likewise.
33523         (is_imported_p): New helper-function.
33524         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
33525         for Windows x64 targets.
33526         (ix86_expand_prologue): Optimize for pe-coff targets.
33527         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
33528         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
33529         medium/large code-model.
33530         (legitimize_pic_address): Likewise.
33531         (legitimize_tls_address): Likewise.
33532         (ix86_expand_call): Likewise.
33533         (x86_output_mi_thunk): Likewise.
33534         (get_dllimport_decl): Add new beimport argument.
33535         (construct_plt_address): Don't assert for x64 pe-coff targets.
33536         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
33537         targets.
33538         (SYMBOL_FLAG_STUBVAR): New macro.
33539         (SYMBOL_REF_STUBVAR_P): Likewise.
33540         * config/i386/winnt.c (stub_list): New structure.
33541         (stub_head): New local variable.
33542         (i386_pe_record_stub): New function.
33543         (i386_pe_file_end): Emit refptr-stubs.
33545 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
33547         PR rtl-optimization/56745
33548         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
33549         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
33551         PR c++/34949
33552         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
33553         and both of them are MEM_REFs, just compare first argument for
33554         equality and attempt to deal even with differing offsets.
33556         PR c++/34949
33557         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
33558         of gimple_clobber_p to be MEM_REF.
33559         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
33560         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
33561         after gimplification.
33562         * asan.c (get_mem_ref_of_assignment): Don't instrument
33563         gimple_clobber_p stmts.
33564         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
33565         gimple_clobber_p stmt if they have MEM_REF lhs and
33566         are dead because of another gimple_clobber_p stmt.
33567         * tree-ssa-live.c (clear_unused_block_pointer): Treat
33568         gimple_clobber_p stmts like debug stmts.
33569         (remove_unused_locals): Remove clobbers with MEM_REF lhs
33570         that refer to unused VAR_DECLs or uninitialized values.
33571         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
33572         gimple_clobber_p stmts if they refer to removed parameters.
33573         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
33574         formatting.
33576 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
33578         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
33579         using SWI48 mode attribute.
33581 2013-04-02  Wei Mi  <wmi@google.com>
33583         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
33584         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
33585         *<rotate_insn><mode>3_mask in i386.md.
33587 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
33589         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
33591 2013-04-02  Richard Biener  <rguenther@suse.de>
33593         PR tree-optimization/56778
33594         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
33595         Runtime alias tests are not supported for gather loads.
33596         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
33597         stmts referenced from SSA operands before updating SSA form.
33599 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
33600             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33602         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
33603         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
33604         * config/arm/cortex-a53.md: New file.
33605         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
33606         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
33607         * config/arm/arm.c (arm_issue_rate): Likewise.
33608         * config/arm/arm-tune.md: Regenerate
33609         * config/arm/arm-tables.opt: Regenerate.
33610         * config/arm/arm-cores.def: Add cortex-a53.
33612 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
33614         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
33615         non-static link.
33617 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
33619         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
33620         scalar load/store operations using B/H registers.
33621         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
33623 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
33625         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
33626         scalar move.
33627         * config/aarch64/aarch64.c
33628         (aarch64_simd_scalar_immediate_valid_for_move): New.
33629         * config/aarch64/aarch64-protos.h
33630         (aarch64_simd_scalar_immediate_valid_for_move): New.
33631         * config/aarch64/constraints.md (Dh, Dq): New.
33632         * config/aarch64/iterators.md (hq): New.
33634 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
33636         * reorg.c (get_branch_condition): Deal with conditional returns.
33637         (fill_simple_delay_slots): Remove dead code dealing with jumps.
33639 2013-04-01  Wei Mi  <wmi@google.com>
33641         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
33642         Truncate operand 2 using %b asm operand modifier.
33643         (*<shift_insn><mode>3_mask): Ditto.
33644         (*<rotate_insn><mode>3_mask): Ditto.
33646 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
33648         PR middle-end/56798
33649         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
33651 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
33653         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
33654         of next_real_insn.
33655         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
33657 2013-03-30  Lawrence Crowl  <crowl@google.com>
33659         * dse.c (clear_alias_sets): Remove never set.
33660         (disqualified_clear_alias_sets): Remove never set.
33661         (clear_alias_mode_pool): Remove never set.
33662         (dse_step0): Remove condition that is never true.
33663         (canon_address): Remove condition that is never true.
33664         (dse_step7): Remove condition that is never true.
33665         (rest_of_handle_dse): Remove condition that is never true.
33666         (rest_of_handle_dse::did_global): Remove never read from above.
33667         (dse_step2_spill): Remove never called from above.
33668         (dse_step5_spill): Remove never called from above.
33670 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
33672         * doc/md.texi (Standard Names) <casesi>: Update documentation for
33673         JUMP_TABLE_DATA changes.
33674         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
33675         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
33676         (Insns) <jump_table_data>: New entry.
33677         * doc/tm.texi: Regenerate.
33679         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
33681         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
33682         for table jump at the end of a basic block using tablejump_p.
33683         * targhooks.c (default_invalid_within_doloop): Likewise.
33684         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
33685         target hook implementation that is identical to the default hook.
33686         (rs6000_invalid_within_doloop): Remove.
33688         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
33689         unused variable from tablejump_p call.
33691         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
33692         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
33693         (INSN_DELETED_P): Likewise.
33694         (emit_jump_table_data): New prototype.
33695         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
33696         after 4th as unused.
33697         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
33698         * sched-vis.c (print_insn): Likewise.
33699         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
33700         insn for compatibility with back ends that use next_active_insn to
33701         identify jump table data.
33702         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
33703         (remove_insn): Likewise.
33704         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
33705         to be emitted.
33706         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
33707         (emit_jump_table_data): New function.
33709         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
33710         basic block, a JUMP_TABLE_DATA never is.
33711         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
33712         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
33713         off from code handling real insns.
33714         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
33715         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
33716         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
33717         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
33718         is not a NONDEBUG_INSN_P.
33719         * ira-costs.c (scan_one_insn): Likewise.
33720         * jump.c (mark_all_labels): Likewise.
33721         (mark_jump_label_1): Likewise.
33722         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
33723         * lra.c (get_insn_freq): Expect all insns reaching here to be in
33724         a basic block.
33725         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
33726         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
33727         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
33728         JUMP_TABLE_DATA_P insns.
33729         (calculate_elim_costs_all_insns): Likewise.
33730         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
33731         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
33732         (delete_output_reload): Code style fixups.
33733         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
33734         insn flags on this non-insn.
33735         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
33736         as scheduling barriers, for pre-change compatibility.
33737         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
33738         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
33740         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
33741         redundant JUMP_TABLE_DATA_P test.
33742         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
33743         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
33744         (frv_for_each_packet): Likewise.
33745         * config/i386/i386.c (min_insn_size): Likewise.
33746         (ix86_avoid_jump_mispredicts): Likewise.
33747         * config/m32r/m32r.c (m32r_is_insn): Likewise.
33748         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
33749         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
33750         (mips16_insn_length): Robustify.
33751         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
33752         (mips16_split_long_branches): Likewise.
33753         * config/pa/pa.c (pa_combine_instructions): Likewise.
33754         * config/rs6000/rs6000.c (get_next_active_insn): Treat
33755         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
33756         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
33757         as contributing to pool range lengths.
33758         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
33759         Remove redundant JUMP_TABLE_DATA_P test.
33760         (sh_loop_align): Likewise.
33761         (split_branches): Likewise.
33762         (sh_insn_length_adjustment): Likewise.
33763         * config/spu/spu.c (get_branch_target): Likewise.
33765 2013-03-29  Jan Hubicka  <jh@suse.cz>
33767         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
33768         gcov streaming; stream hot bb threshold to ltrans.
33769         * predict.c (get_hot_bb_threshold): Break out from ....
33770         (maybe_hot_count_p): ... here.
33771         (set_hot_bb_threshold): New function.
33772         * lto-section-in.c (lto_section_name): Add profile.
33773         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
33774         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
33775         and data-streamer.h
33776         (histogram_entry): New structure.
33777         (histogram, histogram_pool): New global vars.
33778         (histogram_hash): New structure.
33779         (histogram_hash::hash): New method.
33780         (histogram_hash::equal): Likewise.
33781         (account_time_size): New function.
33782         (cmp_counts): New function.
33783         (dump_histogram): New function.
33784         (ipa_profile_generate_summary): New function.
33785         (ipa_profile_write_summary): New function.
33786         (ipa_profile_read_summary): New function.
33787         (ipa_profile): Decide on threshold.
33788         (pass_ipa_profile): Add ipa_profile_write_summary and
33789         ipa_profile_read_summary.
33790         * Makefile.in (ipa.o): Update dependencies.
33791         * lto-streamer.h (LTO_section_ipa_profile): New section.
33793 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
33795         * tree.h (VAR_P): New.
33797 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
33799         PR lto/56777
33800         * doc/invoke.texi ([-fwhole-program]): Fix typo.
33802 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
33804         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
33805         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
33806         (control_flow_insn_p): Likewise.
33807         * cfgrtl.c (duplicate_insn_chain): Likewise.
33808         * final.c (get_attr_length_1): Likewise.
33809         (shorten_branches): Likewise.
33810         (final_scan_insn): Likewise.
33811         * function.c (instantiate_virtual_regs): Likewise.
33812         * gcse.c (insert_insn_end_basic_block): Likewise.
33813         * ira-costs.c (scan_one_insn): Likewise.
33814         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
33815         * lra.c (check_rtl): Likewise.
33816         * reload1.c (elimination_costs_in_insn): Likewise.
33817         * reorg.c (follow_jumps): Likewise.
33819         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
33820         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
33821         (thumb_far_jump_used_p): Likewise.
33822         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
33823         (workaround_speculation): Likewise.
33824         (add_sched_insns_for_speculation): Likewise.
33825         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
33826         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
33827         (frv_for_each_packet): Likewise.
33828         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
33829         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
33830         (final_emit_insn_group_barriers): Likewise.
33831         * config/m32r/m32r.c (m32r_is_insn): Likewise.
33832         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
33833         (mips16_insn_length): Likewise.
33834         * config/pa/pa.c (pa_reorg): Likewise.
33835         (pa_combine_instructions): Likewise.
33836         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
33837         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
33838         (sh_reorg): Likewise.
33839         (split_branches): Likewise.
33840         * config/spu/spu.c (get_branch_target): Likewise.
33842         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
33843         JUMP_TABLE_DATA_P.
33845 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
33847         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
33848         Fix declaration name.
33850 2013-03-28  Lawrence Crowl  <crowl@google.com>
33852         * graphds.h (struct graph.indicies): Remove unused.
33853         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
33854         (SCOP_ORIGINAL_PDDRS): Remove unused.
33855         * sese.h (extern insert_loop_close_phis): Removed unused.
33856         (extern insert_guard_phis): Removed unused.
33857         (extern ivtype_map_elt_info): Removed unused.
33858         (new_ivtype_map_elt): Removed unused.
33859         * sese.c (ivtype_map_elt_info): Removed unused.
33861 2013-03-28  Lawrence Crowl  <crowl@google.com>
33863         * Makefile.in: Add several missing include dependences.
33864         (DUMPFILE_H): New.
33865         (test-dump.o): New.  This object is not added to any executable,
33866         but is present for ad-hoc testing.
33867         * bitmap.c
33868         (debug (const bitmap_head_def &)): New.
33869         (debug (const bitmap_head_def *)): New.
33870         * bitmap.h
33871         (extern debug (const bitmap_head_def &)): New.
33872         (extern debug (const bitmap_head_def *)): New.
33873         * cfg.c
33874         (debug (edge_def &)): New.
33875         (debug (edge_def *)): New.
33876         * cfghooks.c
33877         (debug (basic_block_def &)): New.
33878         (debug (basic_block_def *)): New.
33879         * dumpfile.h
33880         (dump_node (const_tree, int, FILE *)): Correct source file.
33881         * dwarf2out.c
33882         (debug (die_struct &)): New.
33883         (debug (die_struct *)): New.
33884         * dwarf2out.h
33885         (extern debug (die_struct &)): New.
33886         (extern debug (die_struct *)): New.
33887         * gimple-pretty-print.c
33888         (debug (gimple_statement_d &)): New.
33889         (debug (gimple_statement_d *)): New.
33890         * gimple-pretty-print.h
33891         (extern debug (gimple_statement_d &)): New.
33892         (extern debug (gimple_statement_d *)): New.
33893         * ira-build.c
33894         (debug (ira_allocno_copy &)): New.
33895         (debug (ira_allocno_copy *)): New.
33896         (debug (ira_allocno &)): New.
33897         (debug (ira_allocno *)): New.
33898         * ira-int.h
33899         (extern debug (ira_allocno_copy &)): New.
33900         (extern debug (ira_allocno_copy *)): New.
33901         (extern debug (ira_allocno &)): New.
33902         (extern debug (ira_allocno *)): New.
33903         * ira-lives.c
33904         (debug (live_range &)): New.
33905         (debug (live_range *)): New.
33906         * lra-int.h
33907         (debug (lra_live_range &)): New.
33908         (debug (lra_live_range *)): New.
33909         * lra-lives.c
33910         (debug (lra_live_range &)): New.
33911         (debug (lra_live_range *)): New.
33912         * omega.c
33913         (debug (omega_pb_d &)): New.
33914         (debug (omega_pb_d *)): New.
33915         * omega.h
33916         (extern debug (omega_pb_d &)): New.
33917         (extern debug (omega_pb_d *)): New.
33918         * print-rtl.c
33919         (debug (const rtx_def &)): New.
33920         (debug (const rtx_def *)): New.
33921         * print-tree.c
33922         (debug_tree (tree): Move within file.
33923         (debug_raw (const tree_node &)): New.
33924         (debug_raw (const tree_node *)): New.
33925         (dump_tree_via_hooks (const tree_node *, int)): New.
33926         (debug (const tree_node &)): New.
33927         (debug (const tree_node *)): New.
33928         (debug_verbose (const tree_node &)): New.
33929         (debug_verbose (const tree_node *)): New.
33930         (debug_head (const tree_node &)): New.
33931         (debug_head (const tree_node *)): New.
33932         (debug_body (const tree_node &)): New.
33933         (debug_body (const tree_node *)): New.
33934         (debug_vec_tree (tree): Move and reimplement in terms of dump.
33935         (debug (vec<tree, va_gc> &)): New.
33936         (debug (vec<tree, va_gc> *)): New.
33937         * rtl.h
33938         (extern debug (const rtx_def &)): New.
33939         (extern debug (const rtx_def *)): New.
33940         * sbitmap.c
33941         (debug_raw (simple_bitmap_def &)): New.
33942         (debug_raw (simple_bitmap_def *)): New.
33943         (debug (simple_bitmap_def &)): New.
33944         (debug (simple_bitmap_def *)): New.
33945         * sbitmap.h
33946         (extern debug (simple_bitmap_def &)): New.
33947         (extern debug (simple_bitmap_def *)): New.
33948         (extern debug_raw (simple_bitmap_def &)): New.
33949         (extern debug_raw (simple_bitmap_def *)): New.
33950         * sel-sched-dump.c
33951         (debug (vinsn_def &)): New.
33952         (debug (vinsn_def *)): New.
33953         (debug_verbose (vinsn_def &)): New.
33954         (debug_verbose (vinsn_def *)): New.
33955         (debug (expr_def &)): New.
33956         (debug (expr_def *)): New.
33957         (debug_verbose (expr_def &)): New.
33958         (debug_verbose (expr_def *)): New.
33959         (debug (vec<rtx> &)): New.
33960         (debug (vec<rtx> *)): New.
33961         * sel-sched-dump.h
33962         (extern debug (vinsn_def &)): New.
33963         (extern debug (vinsn_def *)): New.
33964         (extern debug_verbose (vinsn_def &)): New.
33965         (extern debug_verbose (vinsn_def *)): New.
33966         (extern debug (expr_def &)): New.
33967         (extern debug (expr_def *)): New.
33968         (extern debug_verbose (expr_def &)): New.
33969         (extern debug_verbose (expr_def *)): New.
33970         (extern debug (vec<rtx> &)): New.
33971         (extern debug (vec<rtx> *)): New.
33972         * sel-sched-ir.h
33973         (_list_iter_cond_expr): Make inline instead of static.
33974         * sreal.c
33975         (debug (sreal &)): New.
33976         (debug (sreal *)): New.
33977         * sreal.h
33978         (extern debug (sreal &)): New.
33979         (extern debug (sreal *)): New.
33980         * tree.h
33981         (extern debug_raw (const tree_node &)): New.
33982         (extern debug_raw (const tree_node *)): New.
33983         (extern debug (const tree_node &)): New.
33984         (extern debug (const tree_node *)): New.
33985         (extern debug_verbose (const tree_node &)): New.
33986         (extern debug_verbose (const tree_node *)): New.
33987         (extern debug_head (const tree_node &)): New.
33988         (extern debug_head (const tree_node *)): New.
33989         (extern debug_body (const tree_node &)): New.
33990         (extern debug_body (const tree_node *)): New.
33991         (extern debug (vec<tree, va_gc> &)): New.
33992         (extern debug (vec<tree, va_gc> *)): New.
33993         * tree-cfg.c
33994         (debug (struct loop &)): New.
33995         (debug (struct loop *)): New.
33996         (debug_verbose (struct loop &)): New.
33997         (debug_verbose (struct loop *)): New.
33998         * tree-dump.c: Add header dependence.
33999         * tree-flow.h
34000         (extern debug (struct loop &)): New.
34001         (extern debug (struct loop *)): New.
34002         (extern debug_verbose (struct loop &)): New.
34003         (extern debug_verbose (struct loop *)): New.
34004         * tree-data-ref.c
34005         (debug (data_reference &)): New.
34006         (debug (data_reference *)): New.
34007         (debug (vec<data_reference_p> &)): New.
34008         (debug (vec<data_reference_p> *)): New.
34009         (debug (vec<ddr_p> &)): New.
34010         (debug (vec<ddr_p> *)): New.
34011         * tree-data-ref.h
34012         (extern debug (data_reference &)): New.
34013         (extern debug (data_reference *)): New.
34014         (extern debug (vec<data_reference_p> &)): New.
34015         (extern debug (vec<data_reference_p> *)): New.
34016         (extern debug (vec<ddr_p> &)): New.
34017         (extern debug (vec<ddr_p> *)): New.
34018         * tree-ssa-alias.c
34019         (debug (pt_solution &)): New.
34020         (debug (pt_solution *)): New.
34021         * tree-ssa-alias.h
34022         (extern debug (pt_solution &)): New.
34023         (extern debug (pt_solution *)): New.
34024         * tree-ssa-alias.c
34025         (debug (_var_map &)): New.
34026         (debug (_var_map *)): New.
34027         (debug (tree_live_info_d &)): New.
34028         (debug (tree_live_info_d *)): New.
34029         * tree-ssa-alias.h
34030         (extern debug (_var_map &)): New.
34031         (extern debug (_var_map *)): New.
34032         (extern debug (tree_live_info_d &)): New.
34033         (extern debug (tree_live_info_d *)): New.
34035 2013-03-28  Jan Hubicka  <jh@suse.cz>
34037         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
34039 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
34041         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
34042         record only when desired or required.
34044 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
34046         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
34047         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
34049 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
34051         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
34052         (*andsi3_compare0_uxtw): New pattern.
34053         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
34054         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
34056 2013-03-28  Jan Hubicka  <jh@suse.cz>
34058         * data-streamer-in.c (streamer_read_gcov_count): New function.
34059         * gimple-streamer-out.c: Include value-prof.h.
34060         (output_gimple_stmt): Output histogram.
34061         (output_bb): Use streamer_write_gcov_count.
34062         * value-prof.c: Include data-streamer.h
34063         (dump_histogram_value): Add HIST_TYPE_MAX.
34064         (stream_out_histogram_value): New function.
34065         (stream_in_histogram_value): New function.
34066         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
34067         (stream_out_histogram_value, stream_in_histogram_value): Declare.
34068         * data-streamer-out.c (streamer_write_gcov_count): New function.
34069         (streamer_write_gcov_count_stream): New function.
34070         * lto-cgraph.c (lto_output_edge): Update counter streaming.
34071         (lto_output_node): Likewise.
34072         (input_node, input_edge): Likewise.
34073         * lto-streamer-out.c (output_cfg): Update streaming.
34074         * lto-streamer-in.c (input_cfg): Likewise.
34075         * data-streamer.h (streamer_write_gcov_count,
34076         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
34077         * gimple-streamer-in.c: Include value-prof.h
34078         (input_gimple_stmt): Input histograms.
34079         (input_bb): Update profile streaming.
34081 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
34083         * genmodes.c (emit_max_int): New function.
34084         (emit_insn_modes_h): Added call to emit_max_function.
34085         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
34086         Added doc.
34087         * machmode.def: Fixed comment.
34089 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
34091         * combine.c (try_combine): Removed useless assert.
34092         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
34094 2013-03-28  Marek Polacek  <polacek@redhat.com>
34095             Richard Biener  <rguenther@suse.de>
34097         PR tree-optimization/56695
34098         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
34099         build signed result of a vector comparison.
34100         * tree-cfg.c (verify_gimple_comparison): Check that a result
34101         of a vector comparison has signed type.
34103 2013-03-28  Richard Biener  <rguenther@suse.de>
34105         PR tree-optimization/37021
34106         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
34107         do not restrict gaps between groups.
34108         * tree-vect-stmts.c (vectorizable_load): Properly account for
34109         a gap between groups.
34111 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
34113         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
34114         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
34115         is not enabled.
34117 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
34119         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
34120         * doc/extend.texi (Named Address Spaces): Ditto.
34121         (Variable Attributes): Ditto.
34123 2013-03-27  Kai Tietz  <ktietz@redhat.com>
34125         * config.build: Add support for cygwin x64 target.
34126         * config.gcc: Likewise.
34127         * config.host: Likewise.
34128         * configure.ac: Likewise
34129         * configure: Regenerated.
34131 2013-03-27  Kai Tietz  <ktietz@redhat.com>
34133         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
34134         * config/i386/t-cygwin-w64: New file.
34135         * config/i386/cygwin-w64.h: New file.
34136         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
34137         and add support for x64-cygwin target.
34138         (CPP_SPEC): Likewise.
34139         (CXX_WRAP_SPEC_LIST): Undefine before define.
34140         (LIBGCJ_SONAME): Use 15 as version.
34142 2013-03-27  Richard Biener  <rguenther@suse.de>
34144         PR tree-optimization/56716
34145         * tree-ssa-structalias.c (perform_var_substitution): Adjust
34146         dumping for ref nodes.
34148 2013-03-27  Martin Jambor  <mjambor@suse.cz>
34150         PR tree-optimization/55334
34151         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
34152         restricted pointers to arrays.
34154 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
34156         * Makefile.in (.SUFFIXES): Add .cc.
34157         (.c.o): Apply same recipe for implicit rule .cc.o.
34159 2013-03-27  Richard Biener  <rguenther@suse.de>
34161         PR tree-optimization/37021
34162         * tree-vect-data-refs.c (vect_check_strided_load): Allow
34163         REALPART/IMAGPART_EXPRs around the supported refs.
34164         * tree-ssa-structalias.c (find_func_aliases): Assume that
34165         floating-point values are not used to transfer pointers.
34167 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
34169         * target.def (TARGET_HAS_IFUNC_P): New target hook.
34170         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
34171         * doc/tm.texi: Regenerate.
34172         * targhooks.h (default_has_ifunc_p): New.
34173         * targhooks.c (default_has_ifunc_p): Ditto.
34174         * config/linux-protos.h: New file.
34175         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
34176         hook for linux which disables support of indirect functions in android.
34177         * config/linux-android.c: New file.
34178         * config/t-linux-android.c: Ditto.
34179         * config.gcc: Added new object file linux-android.o.
34180         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
34181         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
34182         * varasm.c (do_assemble_alias): Likewise.
34183         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
34184         doesn't support indirect functions.
34185         * configure: Regenerate.
34187 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
34189         PR target/56102
34190         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
34191         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
34192         mult-word mode.
34194 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34196         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
34198 2013-03-27  Terry Guo  <terry.guo@arm.com>
34200         * config/arm/arm-cores.def: Added core cortex-r7.
34201         * config/arm/arm-tune.md: Regenerated.
34202         * config/arm/arm-tables.opt: Regenerated.
34203         * doc/invoke.texi: Added entry for core cortex-r7.
34205 2013-03-27  Walter Lee  <walt@tilera.com>
34207         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
34208         double-decrement of next_scratch_regno.
34210 2013-03-27  Walter Lee  <walt@tilera.com>
34212         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
34213         input operands.
34214         (insn_v1mulus): Ditto.
34215         (insn_v2muls): Ditto.
34217 2013-03-27  Walter Lee  <walt@tilera.com>
34219         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
34220         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
34222 2013-03-27  Walter Lee  <walt@tilera.com>
34224         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
34225         (*sibcall_value): Ditto.
34227 2013-03-27  Walter Lee  <walt@tilera.com>
34229         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
34230         (insn_mnz_v8qi): ... this ...
34231         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
34232         vector equivalent.
34233         (insn_v<n>mnz): Replaced by ...
34234         (insn_v1mnz): ... this ...
34235         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
34236         equivalent.
34237         (insn_mz_<mode>): Replaced by ...
34238         (insn_mz_v8qi): ... this ...
34239         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
34240         vector equivalent.
34241         (insn_v<n>mz): Replaced by ...
34242         (insn_v1mz): ... this ...
34243         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
34244         equivalent.
34246 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
34248         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
34250 2013-03-26  Roland McGrath  <mcgrathr@google.com>
34252         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
34253         than fprintf with a non-constant, non-format string.
34255 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
34257         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
34258         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
34259         operand 0 predicate.
34260         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
34261         attribute.  Use general_x64nomem_operand as operand 1 predicate.
34262         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
34263         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
34264         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
34265         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
34266         (mov<mode>_insv_1): Remove expander.  Merge insn with
34267         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
34268         Use general_x64nomem_operand as operand 1 predicate.
34269         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
34270         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
34271         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
34272         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
34273         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
34274         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
34275         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
34276         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
34277         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
34278         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
34279         (general_x64nomem_operand): Ditto.
34281 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
34283         * config/rtems.opt: Add -pthread option.
34285 2013-03-26  Richard Biener  <rguenther@suse.de>
34287         * alias.c (find_base_term): Avoid redundant and not used recursion.
34288         (base_alias_check): Get the initial base term from the caller.
34289         (true_dependence_1): Compute and pass base terms to base_alias_check.
34290         (write_dependence_p): Likewise.
34291         (may_alias_p): Likewise.
34293 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
34295         * config/aarch64/aarch64.c (aarch64_classify_address): Support
34296         PC-relative load in SI modes and above only.
34298 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
34300         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
34301         * config/arm/iwmmxt.md (WCGR0): Update.
34302         (WCGR1, WCGR2, WCGR3): Likewise.
34304 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
34306         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
34307         Use x64 and nox64 isa attributes.
34309 2013-03-26  Richard Biener  <rguenther@suse.de>
34311         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
34312         alignment computations and rely on get_object_alignment_1
34313         for the !TYPE_P case.
34314         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
34316 2013-03-26  Walter Lee  <walt@tilera.com>
34318         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
34319         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
34321 2013-03-25  Jeff Law  <law@redhat.com>
34323         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
34324         check for INTEGRAL_TYPE_P that was missing due to checking in
34325         wrong version of prior patch.
34327 2013-03-25  Walter Lee  <walt@tilera.com>
34329         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
34330         TILEGX_INSN_SHUFFLEBYTES1.
34331         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
34332         shufflebytes1.
34333         (tilegx_builtins): Ditto.
34334         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
34336 2013-03-25  Walter Lee  <walt@tilera.com>
34338         * config/tilegx/tilegx.md (floatsisf2): New pattern.
34339         (floatunssisf2): New pattern.
34340         (floatsidf2): New pattern.
34341         (floatunssidf2): New pattern.
34343 2013-03-25  Walter Lee  <walt@tilera.com>
34345         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
34346         tests for constraint J, K, N, P.
34348 2013-03-25  Walter Lee  <walt@tilera.com>
34350         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
34351         Use indirect/pcrel encoding.
34352         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
34353         Ditto.
34355 2013-03-25  Steve Ellcey  <sellcey@mips.com>
34357         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
34358         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
34359         * config/mips/mips.c (mips_option_override): Set IMADD default.
34360         * config/mips/mips.h (PTF_AVOID_IMADD): New.
34361         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
34362         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
34363         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
34364         * doc/invoke.texi (-mimadd/-mno-imadd): New.
34366 2013-03-25  Jeff Law  <law@redhat.com>
34368         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
34369         slightly to avoid creating and folding useless trees.  Simplify
34370         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
34372 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
34374         * config/i386/i386.md (*zero_extendsidi2): Merge with
34375         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
34376         * config/i386/predicates.md (x86_64_zext_operand): Rename from
34377         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
34378         targets.  Clarify comment.
34380 2013-03-25  Martin Jambor  <mjambor@suse.cz>
34382         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
34383         pass-through jump functions differently.
34384         (ipa_read_jump_function): Likewise.  Also use setter functions to set
34385         up jump functions.
34387 2013-03-25  Martin Jambor  <mjambor@suse.cz>
34389         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
34390         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
34391         process it.
34392         (ipa_get_indirect_edge_target): New function.
34393         (devirtualization_time_bonus): New parameter known_aggs, pass it to
34394         ipa_get_indirect_edge_target.  Update all callers.
34395         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
34396         ipa_get_indirect_edge_target_1 instead of calling
34397         ipa_get_indirect_edge_target.
34398         (create_specialized_node): Pass aggvlas to
34399         ipcp_discover_new_direct_edges.
34401 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34403         * config/arm/arm.md (f_sels, f_seld): New types.
34404         (*cmov<mode>): New pattern.
34405         * config/arm/predicates.md (arm_vsel_comparison_operator): New
34406         predicate.
34408 2013-03-25  Kai Tietz  <ktietz@redhat.com>
34410         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
34411         POSIX-printf for mingw-hosted  builds.
34413 2013-03-25  Richard Biener  <rguenther@suse.de>
34415         PR middle-end/56694
34416         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
34417         must-not-throw stmt location.
34419 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34421         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
34422         Emit load-acquire versions when acq is true.
34423         (arm_emit_store_exclusive): Add rel parameter.
34424         Emit store-release versions when rel is true.
34425         (arm_split_compare_and_swap): Use acquire-release instructions
34426         instead.
34427         of barriers when appropriate.
34428         (arm_split_atomic_op): Likewise.
34429         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
34430         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
34431         (VUNSPEC_SLX): Likewise.
34432         (VUNSPEC_LDA): Likewise.
34433         (VUNSPEC_STL): Likewise.
34434         * config/arm/sync.md (atomic_load<mode>): New pattern.
34435         (atomic_store<mode>): Likewise.
34436         (arm_load_acquire_exclusive<mode>): Likewise.
34437         (arm_load_acquire_exclusivesi): Likewise.
34438         (arm_load_acquire_exclusivedi): Likewise.
34439         (arm_store_release_exclusive<mode>): Likewise.
34441 2013-03-25  Catherine Moore  <clm@codesourcery.com>
34443         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
34444         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
34445         * config/mip/predicates.md (lwsp_swsp_operand,
34446         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
34447         sb16_operand, db4_operand, db7_operand, ib3_operand,
34448         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
34449         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
34450         andi16_operand): New predicates.
34451         * config/mips/mips.md (compression): New attribute.
34452         (enabled): New attribute.
34453         (length): Consider compression in computing length.
34454         (shift_compression): New code attribute.
34455         (*add<mode>3): New operands. Record compression.
34456         (sub<mode>3): Likewise.
34457         (one_cmpl<mode>2): Likewise.
34458         (*and<mode>3): Likewise.
34459         (*ior<mode>3): Likewise.
34460         (unnamed pattern for xor): Likewise.
34461         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
34462         (*<optab><mode>3): Likewise.
34463         (*mov<mode>_internal: Likewise.
34464         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
34465         (mips_unsigned_immediate_p): New.
34466         (umips_lwsp_swsp_address_p): New.
34467         (m16_based_address_p): New.
34468         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
34469         (mips_unsigned_immediate_p): New prototype.
34470         (lwsp_swsp_address_p): New prototype.
34471         (m16_based_address_p): New prototype.
34472         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
34473         (mips_signed_immediate_p): New function.
34474         (m16_based_address_p): New function.
34475         (lwsp_swsp_address_p): New function.
34476         (mips_print_operand_punctuation): Recognize short delay slot insns
34477         for microMIPS.add<mode>3"
34479 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34481         PR target/56720
34482         * config/arm/iterators.md (v_cmp_result): New mode attribute.
34483         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
34485 2013-03-25  Richard Biener  <rguenther@suse.de>
34487         PR tree-optimization/56689
34488         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
34489         any edge.
34491 2013-03-25  Richard Biener  <rguenther@suse.de>
34493         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
34494         of bitmap.
34495         (memory_references): Likewise.
34496         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
34497         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
34498         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
34499         (gather_mem_refs_in_loops): Fold into ...
34500         (analyze_memory_references): ... this.  Move initialization
34501         to tree_ssa_lim_initialize.
34502         (fill_always_executed_in): Rename to ...
34503         (fill_always_executed_in_1): ... this.
34504         (fill_always_executed_in): Move contains_call computation to
34505         this new function from ...
34506         (tree_ssa_lim_initialize): ... here.
34507         (tree_ssa_lim): Call fill_always_executed_in.
34509 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
34511         * postreload.c (reload_combine): Fix code detecting returns.
34513 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
34515         * function.c (emit_use_return_register_into_block): On cc0 targets,
34516         do not emit the sequence between cc0 setter and user.
34518 2013-03-25  Kai Tietz  <ktietz@redhat.com>
34520         * config/i386/predicates.md (local_symbolic_operand): Interpret
34521         dll-imported symbols as none-local.
34523 2013-03-25  Richard Biener  <rguenther@suse.de>
34525         * tree-ssa-loop-im.c (struct depend): Remove.
34526         (struct lim_aux_data): Make depends a vec of gimples.
34527         (free_lim_aux_data): Adjust.
34528         (add_dependency): Likewise.
34529         (set_level): Likewise.
34531 2013-03-25  Richard Biener  <rguenther@suse.de>
34533         PR middle-end/56434
34534         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
34535         the pointer returned by calls with ECF_MALLOC set.
34537 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
34539         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
34541 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
34543         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
34544         using MMXMODE mode iterator.
34545         (*move<mode>_internal): Merge with *movv2sf_internal and
34546         *movv2sf_internal_rex64 using MMXMODE mode iterator.
34548 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
34550         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
34551         (record_last_mem_set_info): Likewise.
34553         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
34554         of XNEWVEC followed by memset.
34555         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
34557 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
34559         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
34560         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
34561         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
34562         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
34563         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
34564         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
34565         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
34566         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
34567         BARRIER_P instead of GET_CODE.
34569 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
34571         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
34572         inaccuracy in the probing code.
34574         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
34575         (ctrapdi4): Likewise.
34577 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
34579         * calls.c (expand_call): Add missing guard to code handling return
34580         of non-BLKmode structures in MSB.
34581         * function.c (expand_function_end): Likewise.
34583 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
34585         * combine.c (try_combine): Adjust comment.  Do not add the set of
34586         insn #0 if the destination indirectly is set or dies in insn #2.
34587         Tidy up code to distribute a new note.
34589 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
34591         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
34592         also for alternatives 16 and 17.
34594 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
34596         * config/i386/sse.md (*mov<mode>_internal): Merge with
34597         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
34598         Emit insn template depending on type attribute.  Use
34599         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
34600         movd instead of movq mnemonic for interunit moves.  Rewrite mode
34601         attribute calculation.  Remove unit attribute calculation.
34602         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
34603         Set prefix_data16 attribute for DImode ssemov types.
34604         Use Ym instead of y for SSE-MMX conversion alternatives.
34605         Reorder operand constraints.
34607 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
34609         * df.h (df_insn_delete): Adjust prototype.
34610         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
34611         and let it decide whether mark the basic block dirty.
34612         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
34613         * df-scan.c (df_insn_info_delete): New helper function, split
34614         off from df_insn_delete.
34615         (df_scan_free_bb_info): Use it.
34616         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
34617         Likewise.
34618         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
34619         that the insn is actually an insn and it has a non-NULL basic block.
34620         Do not mark basic block dirty if only deleting a DEBUG_INSN.
34622 2013-03-22  Richard Biener  <rguenther@suse.de>
34624         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
34625         dep_ref members.
34626         (mem_ref_alloc): Do not allocate them.
34627         (refs_independent_p): Do not query or maintain a cache.
34629 2013-03-22  Richard Biener  <rguenther@suse.de>
34631         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
34632         (gather_mem_refs_in_loops): Do not compute it.
34633         (analyze_memory_references): Do not allocate it.
34634         (tree_ssa_lim_finalize): Do not free it.
34635         (for_all_locs_in_loop): Do not query all_refs_in_loop.
34637 2013-03-22  Richard Biener  <rguenther@suse.de>
34639         * is-a.h (as_a): Use gcc_checking_assert.
34641 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
34643         * config/aarch64/aarch64.c (aarch64_print_operand): New
34644         format specifier for printing a constant in hex.
34645         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
34646         format specifier for printing second operand.
34648 2013-03-22  Richard Biener  <rguenther@suse.de>
34650         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
34651         bitmaps.
34652         (gather_mem_refs_in_loops): Perform store accumulation here.
34653         (create_vop_ref_mapping_loop): Remove.
34654         (create_vop_ref_mapping): Likewise.
34655         (analyze_memory_references): Initialize refs_stored_in_loop.
34656         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
34657         (record_indep_loop): Remove.
34658         (record_dep_loop): New function.
34659         (ref_indep_loop_p_1): Adjust to only walk over references
34660         in the loop, not its subloops.
34661         (ref_indep_loop_p): Rename to ...
34662         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
34663         maintaining a more fine-grained cache.
34664         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
34665         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
34667 2013-03-22  Richard Biener  <rguenther@suse.de>
34669         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
34670         (struct mem_ref): Make accesses_in_loop a vec of a vec of
34671         aggregate mem_ref_loc.
34672         (free_mem_ref_locs): Inline into ...
34673         (memref_free): ... this and adjust.
34674         (mem_ref_alloc): Adjust.
34675         (mem_ref_locs_alloc): Remove.
34676         (record_mem_ref_loc): Adjust.
34677         (get_all_locs_in_loop): Rewrite into ...
34678         (for_all_locs_in_loop): ... this iterator.
34679         (rewrite_mem_ref_loc): New functor.
34680         (rewrite_mem_refs): Use for_all_locs_in_loop.
34681         (sm_set_flag_if_changed): New functor.
34682         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
34683         (ref_always_accessed): New functor.
34684         (ref_always_accessed_p): Use for_all_locs_in_loop.
34686 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
34688         * tree-pass.h (PROP_gimple_lvec): New.
34689         * passes.c (dump_properties): Handle PROP_gimple_lvec.
34690         (init_optimization_passes): Move pass_lower_vector.
34691         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
34692         PROP_gimple_lvec.
34693         (pass_lower_vector): Provide PROP_gimple_lvec.
34694         (pass_lower_vector_ssa): Likewise.
34695         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
34697 2013-03-21  Mark Wielaard  <mjw@redhat.com>
34699         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
34701 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
34703         * config/i386/i386.md (*movdi_internal): Disparage slightly
34704         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
34705         conversion alternatives.
34707 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
34709         PR middle-end/48087
34710         * diagnostic.def (DK_WERROR): New kind.
34711         * diagnostic.h (werrorcount): Define.
34712         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
34713         promoted to DK_ERROR, increment DK_WERROR counter instead of
34714         DK_ERROR counter.
34715         * toplev.c (toplev_main): Call print_ignored_options even if
34716         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
34717         even if just werrorcount is non-zero.
34719         PR debug/55608
34720         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
34721         on failure.
34722         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
34723         (string_cst_pool_decl): New function.
34724         (optimize_one_addr_into_implicit_ptr): New function.
34725         (resolve_addr_in_expr): Optimize DWARF location expression
34726         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
34727         which doesn't live in memory, but has DW_AT_location or
34728         DW_AT_const_value, or refers to a string literal, into
34729         DW_OP_GNU_implicit_pointer.
34730         (optimize_location_into_implicit_ptr): New function.
34731         (resolve_addr): If removing DW_AT_location of a variable because
34732         it was DW_OP_addr of address of the variable, but the variable doesn't
34733         live in memory, try to emit const value attribute for the initializer.
34735 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
34737         * tree.h (VECTOR_TYPE_P): New macro.
34738         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
34739         TYPE_MODE): Use it.
34740         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
34741         VEC_COND_EXPR cannot be lvalues.
34742         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
34744 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
34746         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
34747         Restrict the transformation to equal modes.
34749 2013-03-21  Richard Biener  <rguenther@suse.de>
34751         PR tree-optimization/39326
34752         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
34753         (MEM_ANALYZABLE): Adjust.
34754         (record_mem_ref_loc): Move bitmap ops ...
34755         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
34756         unanalyzable refs, do not record locations for it.
34757         (analyze_memory_references): Allocate ref zero as shared
34758         unanalyzable ref.
34759         (refs_independent_p): Do not test for unanalyzed mems here.
34760         (ref_indep_loop_p_1): Special-case disambiguation against
34761         the unanalyzed ref.
34762         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
34764 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
34766         * config/arm/arm-protos.h (tune_params): Add
34767         prefer_neon_for_64bits field.
34768         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
34769         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
34770         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
34771         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
34772         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
34773         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
34774         (arm_option_override): Handle -mneon-for-64bits new option.
34775         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
34776         (prefer_neon_for_64bits): Declare new variable.
34777         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
34778         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
34779         (arch_enabled): Handle new arch types. Remove support for onlya8
34780         and nota8.
34781         (one_cmpldi2): Use new arch names.
34782         (zero_extend<mode>di2, extend<mode>di2): Ditto.
34783         * config/arm/arm.opt (mneon-for-64bits): Add option.
34784         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
34785         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
34786         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
34787         of onlya8.
34788         * doc/invoke.texi (-mneon-for-64bits): Document.
34790 2013-03-21  Richard Biener  <rguenther@suse.de>
34792         PR tree-optimization/39326
34793         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
34794         (sort_bbs_in_loop_postorder_cmp): New function.
34795         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
34797 2013-03-21  Richard Biener  <rguenther@suse.de>
34799         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
34800         (vect_insert_into_interleaving_chain): Likewise.
34801         (vect_drs_dependent_in_basic_block): Inline ...
34802         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
34803         split out from ...
34804         (vect_analyze_data_ref_dependence): ... here.  Simplify.
34805         (vect_check_interleaving): Simplify.
34806         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
34807         (vect_slp_analyze_data_ref_dependences): ... this new function.
34808         (dr_group_sort_cmp): New function.
34809         (vect_analyze_data_ref_accesses): Compute data-reference groups
34810         here instead of in vect_analyze_data_ref_dependence.  Use
34811         a more efficient algorithm.
34812         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
34813         vect_slp_analyze_data_ref_dependences.  Call
34814         vect_analyze_data_ref_accesses earlier.
34815         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
34816         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
34817         (vect_slp_analyze_data_ref_dependences): New prototype.
34819 2013-03-21  Richard Biener  <rguenther@suse.de>
34821         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
34822         ref is stored in the loop.
34823         (find_refs_for_sm): Walk only over all stores.
34824         (store_motion_loop): Allocate from lim_bitmap_obstack.
34825         (store_motion): Likewise.
34827 2013-03-21  Richard Biener  <rguenther@suse.de>
34829         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
34830         Update virtual SSA form.
34832 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34834         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
34835         * configure: Regenerate.
34836         * config.in: Regenerate.
34837         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
34838         if !HAVE_LD_EH_FRAME_CIEV3.
34840 2013-03-21  Richard Biener  <rguenther@suse.de>
34842         * tree-cfg.c (verify_expr_no_block): New function.
34843         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
34844         nor DECL_VALUE_EXPR have locations with associated blocks.
34845         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
34846         (clear_unused_block_pointer): Remove code dealing with
34847         blocks in DECL_DEBUG_EXPR locations.
34849 2013-03-21  Richard Biener  <rguenther@suse.de>
34851         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
34852         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
34853         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
34854         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
34855         instead of DECL_DEBUG_EXPR_IS_FROM.
34856         * gimplify.c (gimplify_modify_expr): Likewise.
34857         * tree-cfg.c (verify_expr_location_1): Likewise.
34858         * tree-complex.c (create_one_component_var): Likewise.
34859         * tree-sra.c (create_access_replacement): Likewise.
34860         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
34861         (clear_unused_block_pointer): Likewise.
34862         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
34863         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
34864         * var-tracking.c (var_debug_decl): Likewise.
34865         (track_expr_p): Likewise.
34866         * tree-inline.c (add_local_variables): Likewise.  Set
34867         DECL_HAS_DEBUG_EXPR_P after copying it.
34868         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
34869         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
34871 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
34873         PR bootstrap/56656
34874         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
34875         * configure: Regenerate.
34876         * config.in: Regenerate.
34877         * config/i386/i386.md (*movdf_internal): Use
34878         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
34879         movd instead of movq mnemonic for interunit moves.
34880         (*movdi_internal): Ditto.
34882 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
34884         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
34885         (abd<mode>_3): New pattern.
34886         (aba<mode>_3): New pattern.
34887         (fabd<mode>_3): New pattern.
34889 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
34891         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
34892         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
34893         occurrence of REGISTER_PREFIX as its empty string.
34895 2013-03-20  Jeff Law  <law@redhat.com>
34897         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
34898         addititional equivalences for equality comparisons between an SSA_NAME
34899         and a constant where the SSA_NAME was set from a widening conversion.
34901 2013-03-20  Walter Lee  <walt@tilera.com>
34903         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
34905 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
34907         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
34908         depending on type attribute.
34909         (*movti_internal): Ditto.
34910         (*movtf_internal): Ditto.
34911         (*movxf_internal): Ditto.
34912         (*movdf_internal): Ditto.
34913         (*movsf_internal): Ditto.
34915 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
34917         * config/i386/i386.md (*movti_internal): Set prefix attribute to
34918         maybe_vex for sselog1 and ssemov types.
34919         (*movdi_internal): Reorder operand constraints.
34920         (*movsi_internal): Ditto.  Set prefix attribute to
34921         maybe_vex for sselog1 and ssemov types.
34922         (*movtf_internal): Set prefix attribute to maybe_vex
34923         for sselog1 and ssemov types.
34924         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
34925         DImode ssemov types.  Reorder operand constraints.
34926         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
34927         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
34928         attribute for SImode ssemov types.  Reorder operand constraints.
34930 2013-03-20  Martin Jambor  <mjambor@suse.cz>
34932         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
34933         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
34935 2013-03-20  Pat Haugen  <pthaugen@us.ibm.com>
34937         * config/rs6000/predicates.md (indexed_address, update_address_mem
34938         update_indexed_address_mem): New predicates.
34939         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
34940         attribute for load/store instructions.
34941         * config/rs6000/dfp.md (movsd_store): Likewise.
34942         (movsd_load): Likewise.
34943         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
34944         (unnamed HI->DI extend define_insn): Likewise.
34945         (unnamed SI->DI extend define_insn): Likewise.
34946         (unnamed QI->SI extend define_insn): Likewise.
34947         (unnamed QI->HI extend define_insn): Likewise.
34948         (unnamed HI->SI extend define_insn): Likewise.
34949         (unnamed HI->SI extend define_insn): Likewise.
34950         (extendsfdf2_fpr): Likewise.
34951         (movsi_internal1): Likewise.
34952         (movsi_internal1_single): Likewise.
34953         (movhi_internal): Likewise.
34954         (movqi_internal): Likewise.
34955         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
34956         attribute for load/store instructions.
34957         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
34958         instructions.
34959         (mov<mode>_softfloat): Likewise.
34960         (mov<mode>_hardfloat32): Likewise.
34961         (mov<mode>_hardfloat64): Likewise.
34962         (mov<mode>_softfloat64): Likewise.
34963         (movdi_internal32): Likewise.
34964         (movdi_internal64): Likewise.
34965         (probe_stack_<mode>): Likewise.
34967 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
34969         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
34970         floating point, and decimal floating point to reload iterator.
34972         * config/rs6000/constraints.md (wl constraint): New constraints to
34973         return FLOAT_REGS if certain options are used to reduce the number
34974         of separate patterns that exist in the file.
34975         (wx constraint): Likewise.
34976         (wz constraint): Likewise.
34978         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
34979         -mdebug=reg, print wg, wl, wx, and wz constraints.
34980         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
34981         Initialize the reload functions for 64-bit binary/decimal floating
34982         point types.
34983         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
34984         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
34985         create the buffer on the stack to overcome not having a 32-bit
34986         load and store.
34987         (rs6000_emit_move): Likewise.
34988         (rs6000_secondary_memory_needed_rtx): Likewise.
34989         (rs6000_alloc_sdmode_stack_slot): Likewise.
34990         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
34991         via xxlxor, just like DFmode 0.0.
34993         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
34994         define as 1 if we are running on a power7 or newer.
34995         (enum r6000_reg_class_enum): Add new constraints.
34997         * config/rs6000/dfp.md (movsd): Delete, combine with binary
34998         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
34999         with other moves by using conditional constraits (wg).  Use LFIWZX
35000         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
35001         (movsd splitter): Likewise.
35002         (movsd_hardfloat): Likewise.
35003         (movsd_softfloat): Likewise.
35005         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
35006         binary and decimal floating point moves.
35007         (fmove_ok): New attributes to combine binary and decimal floating
35008         point moves, and to combine power6x (mfpgpr) moves along normal
35009         floating moves.
35010         (real_value_to_target): Likewise.
35011         (f32_lr): Likewise.
35012         (f32_lm): Likewise.
35013         (f32_li): Likewise.
35014         (f32_sr): Likewise.
35015         (f32_sm): Likewise.
35016         (f32_si): Likewise.
35017         (movsf): Combine binary and decimal floating point moves.  Combine
35018         power6x (mfpgpr) moves with other moves by using conditional
35019         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
35020         (mov<mode> for SFmode/SDmode); Likewise.
35021         (SFmode/SDmode splitters): Likewise.
35022         (movsf_hardfloat): Likewise.
35023         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
35024         (movsf_softfloat): Likewise.
35025         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
35027         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
35028         wx and wz constraints.
35030         * config/rs6000/constraints.md (wg constraint): New constraint to
35031         return FLOAT_REGS if -mmfpgpr (power6x) was used.
35033         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
35034         constraint.
35036         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
35037         -mdebug=reg, print wg, wl, wx, and wz constraints.
35038         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
35039         Initialize the reload functions for 64-bit binary/decimal floating
35040         point types.
35041         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
35042         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
35043         create the buffer on the stack to overcome not having a 32-bit
35044         load and store.
35045         (rs6000_emit_move): Likewise.
35046         (rs6000_secondary_memory_needed_rtx): Likewise.
35047         (rs6000_alloc_sdmode_stack_slot): Likewise.
35048         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
35049         via xxlxor, just like DFmode 0.0.
35051         * config/rs6000/dfp.md (movdd): Delete, combine with binary
35052         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
35053         with other moves by using conditional constraits (wg).  Use LFIWZX
35054         and STFIWX for loading SDmode on power7.
35055         (movdd splitters): Likewise.
35056         (movdd_hardfloat32): Likewise.
35057         (movdd_softfloat32): Likewise.
35058         (movdd_hardfloat64_mfpgpr): Likewise.
35059         (movdd_hardfloat64): Likewise.
35060         (movdd_softfloat64): Likewise.
35062         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
35063         64-bit binary and decimal floating point moves.
35064         (FMOVE64X): Likewise.
35065         (movdf): Combine 64-bit binary and decimal floating point moves.
35066         Combine power6x (mfpgpr) moves with other moves by using
35067         conditional constraits (wg).
35068         (mov<mode> for DFmode/DDmode): Likewise.
35069         (DFmode/DDmode splitters): Likewise.
35070         (movdf_hardfloat32): Likewise.
35071         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
35072         (movdf_softfloat32): Likewise.
35073         (movdf_hardfloat64_mfpgpr): Likewise.
35074         (movdf_hardfloat64): Likewise.
35075         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
35076         (movdf_softfloat64): Likewise.
35077         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
35078         (reload_<mode>_load): Move to later in the file so they aren't in
35079         the middle of the floating point move insns.
35080         (reload_<mode>_store): Likewise.
35082         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
35083         constraint.
35085         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
35086         constraint if -mdebug=reg.
35087         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
35088         Enable using dd reload support if needed.
35090         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
35091         binary and decimal floating point moves in rs6000.md.
35092         (movtd_internal): Likewise.
35094         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
35095         decimal floating point moves.
35096         (movtf): Likewise.
35097         (movtf_internal): Likewise.
35098         (mov<mode>_internal, TDmode/TFmode): Likewise.
35099         (movtf_softfloat): Likewise.
35100         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
35102         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
35103         movdi_internal64, using wg constraint for move direct operations.
35104         (movdi_internal64): Likewise.
35106         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
35107         MODES_TIEABLE_P for selected modes.  Print the numerical value of
35108         the various virtual registers. Use GPR/FPR first/last values,
35109         instead of hard coding the register numbers.  Print which modes
35110         have reload functions registered.
35111         (rs6000_option_override_internal): If -mdebug=reg, trace the options
35112         settings before/after setting cpu, target and subtarget settings.
35113         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
35114         and for secondary reload failures in rs6000_secondary_reload_inner.
35115         (rs6000_secondary_reload_fail): Likewise.
35116         (rs6000_secondary_reload_inner): Likewise.
35118         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
35119         macros for first/last GPR and FPR registers.
35120         (LAST_GPR_REGNO): Likewise.
35121         (FIRST_FPR_REGNO): Likewise.
35122         (LAST_FPR_REGNO): Likewise.
35124         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
35125         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
35126         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
35127         (vcond<mode><mode>): Likewise.
35128         (vcondu<mode><mode>): Likewise.
35129         (vector_gtu<mode>): Likewise.
35130         (vector_gte<mode>): Likewise.
35131         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
35132         to prevent the compiler from converting DImode operations to TImode.
35133         (ior<mode>3): Likewise.
35134         (and<mode>3): Likewise.
35135         (one_cmpl<mode>2): Likewise.
35136         (nor<mode>3): Likewise.
35137         (andc<mode>3): Likewise.
35139         * config/rs6000/constraints.md (wt constraint): New constraint
35140         that returns VSX_REGS if TImode is allowed in VSX registers.
35142         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
35143         constant under VSX.
35145         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
35146         similar to TImode, but it is restricted to being in the GPRs.
35148         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
35149         TImode to occupy a single VSX register.
35151         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
35152         -mvsx-timode for power7/power8.
35153         (power7 cpu): Likewise.
35154         (power8 cpu): Likewise.
35156         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
35157         sure that TFmode/TDmode take up two registers if they are ever
35158         allowed in the upper VSX registers.
35159         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
35160         registers.
35161         (rs6000_init_hard_regno_mode_ok): Likewise.
35162         (rs6000_debug_reg_global): Add debugging for PTImode and wt
35163         constraint.  Print if LRA is turned on.
35164         (rs6000_option_override_internal): Give an error if -mvsx-timode
35165         and VSX is not enabled.
35166         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
35167         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
35168         to reg+offset addressing.  Use PTImode when checking offset
35169         addresses for validity.
35170         (reg_offset_addressing_ok_p): Likewise.
35171         (rs6000_legitimate_offset_address_p): Likewise.
35172         (rs6000_legitimize_address): Likewise.
35173         (rs6000_legitimize_reload_address): Likewise.
35174         (rs6000_legitimate_address_p): Likewise.
35175         (rs6000_eliminate_indexed_memrefs): Likewise.
35176         (rs6000_emit_move): Likewise.
35177         (rs6000_secondary_reload): Likewise.
35178         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
35179         reloads to fpr registers to continue to use reg+offset addressing,
35180         but 64-bit reloads to altivec registers need reg+reg addressing.
35181         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
35182         it.  Treat LO_SUM like a PLUS operation.
35183         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
35184         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
35185         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
35186         registers to share a register with a smaller sized type, since VSX
35187         puts scalars in the upper 64-bits.
35188         (print_operand): Add support for PTImode.
35189         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
35190         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
35191         registers, but don't have arithmetic support.
35192         (rs6000_memory_move_cost): Add test for VSX.
35193         (rs6000_opt_masks): Add -mvsx-timode.
35195         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
35196         for TImode.
35197         (VSs): Likewise.
35198         (VSr): Use wt constraint for TImode.
35199         (VSv): Drop TImode support.
35200         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
35201         (vsx_movti_64bit): Likewise.
35202         (vsx_movti_32bit): Likewise.
35203         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
35204         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
35205         one '?' on the appropriate output constraint.  Do not allow TImode
35206         logical operations on 32-bit systems.
35207         (vsx_ior<mode>3): Likewise.
35208         (vsx_xor<mode>3): Likewise.
35209         (vsx_one_cmpl<mode>2): Likewise.
35210         (vsx_nor<mode>3): Likewise.
35211         (vsx_andc<mode>3): Likewise.
35212         (vsx_concat_<mode>): Likewise.
35213         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
35215         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
35216         OPTION_MASK_VSX_TIMODE.
35217         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
35218         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
35220         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
35221         (TI2 iterator): New iterator for TImode, PTImode.
35222         (wd mode attribute): Add values for vector types.
35223         (movti_string): Replace TI move operations with operations for TImode
35224         and PTImode.  Add support for TImode being allowed in VSX registers.
35225         (mov<mode>_string, TImode/PTImode): Likewise.
35226         (movti_ppc64): Likewise.
35227         (mov<mode>_ppc64, TImode/PTImode): Likewise.
35228         (TI mode splitters): Likewise.
35230         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
35231         constraint.
35233 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
35235         PR tree-optimization/56355
35236         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
35237         Also handle integers with undefined overflow.
35239 2013-03-20  Catherine Moore  <clm@codesourcery.com>
35240             Maciej W. Rozycki  <macro@codesourcery.com>
35241             Tom de Vries  <tom@codesourcery.com>
35242             Nathan Sidwell  <nathan@codesourcery.com>
35243             Iain Sandoe  <iain@codesourcery.com>
35244             Nathan Froyd  <froydnj@codesourcery.com>
35245             Chao-ying Fu  <fu@mips.com>
35247         * doc/extend.texi: (micromips, nomicromips, nocompression):
35248         Document new function attributes.
35249         * doc/invoke.texi (minterlink-compressed, mmicromips,
35250         m14k, m14ke, m14kec): Document new options.
35251         (minterlink-mips16): Update documentation.
35252         * doc/md.texi (ZC, ZD): Document new constraints.
35253         * configure.ac (gcc_cv_as_micromips): Check if linker
35254         supports the .set micromips directive.
35255         * configure: Regenerate.
35256         * config.in: Regenerate.
35257         * config/mips/mips-tables.opt: Regenerate.
35258         * config/mips/micromips.md: New file.
35259         * constraints.md (ZC, ZD): New constraints.
35260         * config/mips/predicates.md (movep_src_register): New predicate.
35261         (movep_src_operand): New predicate.
35262         (non_volatile_mem_operand): New predicate.
35263         * config/mips/mips.md (multimem): New type.
35264         (length): Differentiate between 17-bit and 18-bit branch offsets.
35265         (MOVEP1, MOVEP2): New mode iterator.
35266         (mov_<load>l): Use ZC constraint.
35267         (mov_<load>r): Likewise.
35268         (mov_<store>l): Likewise.
35269         (mov_<store>r): Likewise.
35270         (*branch_equality<mode>_inverted): Add microMIPS support.
35271         (*branch_equality<mode>): Likewise.
35272         (*jump_absolute): Likewise.
35273         (indirect_jump_<mode>): Likewise.
35274         (tablejump_<mode>): Likewise.
35275         (<optab>_internal): Likewise.
35276         (sibcall_internal): Likewise.
35277         (sibcall_value_internal): Likewise.
35278         (prefetch): Use constraint ZD.
35279         * config/mips/mips.opt (minterlink-compressed): New option.
35280         (minterlink-mips16): Now an alias for minterlink-compressed.
35281         (mmicromips): New option.
35282         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
35283         (compare_and_swap_12): Likewise.
35284         (sync_add<mode>): Likewise.
35285         (sync_<optab>_12): Likewise.
35286         (sync_old_<optab>_12): Likewise.
35287         (sync_new_<optab>_12): Likewise.
35288         (sync_nand_12): Likewise.
35289         (sync_old_nand_12): Likewise.
35290         (sync_new_nand_12): Likewise.
35291         (sync_sub<mode>): Likewise.
35292         (sync_old_add<mode>): Likewise.
35293         (sync_old_sub<mode>): Likewise.
35294         (sync_new_add<mode>): Likewise.
35295         (sync_new_sub<mode>): Likewise.
35296         (sync_<optab><mode>): Likewise.
35297         (sync_old_<optab><mode>): Likewise.
35298         (sync_new_<optab><mode>): Likewise.
35299         (sync_nand<mode>): Likewise.
35300         (sync_old_nand<mode>): Likewise.
35301         (sync_new_nand<mode>): Likewise.
35302         (sync_lock_test_and_set<mode>): Likewise.
35303         (test_and_set_12): Likewise.
35304         (atomic_compare_and_swap<mode>): Likewise.
35305         (atomic_exchange<mode>_llsc): Likewise.
35306         (atomic_fetch_add<mode>_llsc): Likewise.
35307         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
35308         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
35309         (umips_save_restore_pattern_p): Likewise.
35310         (umips_load_store_pair_p): Likewise.
35311         (umips_output_load_store_pair): Likewise.
35312         (umips_movep_target_p): Likewise.
35313         (umips_12bit_offset_address_p): Likewise.
35314         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
35315         (mips_base_mips16): Rename this...
35316         (mips_base_compression_flags): ...to this. Update all uses.
35317         (mips_attribute_table): Add micromips, nomicromips and nocompression.
35318         (mips_mips16_decl_p): Delete.
35319         (mips_nomips16_decl_p): Delete.
35320         (mips_get_compress_on_flags): New function.
35321         (mips_get_compress_off_flags): New function.
35322         (mips_get_compress_mode): New function.
35323         (mips_get_compress_on_name): New function.
35324         (mips_get_compress_off_name): New function.
35325         (mips_insert_attributes): Support multiple compression types.
35326         (mips_merge_decl_attributes): Likewise.
35327         (umips_12bit_offset_address_p): New function.
35328         (mips_start_function_definition): Emit .set micromips directive.
35329         (mips_call_may_need_jalx_p): New function.
35330         (mips_function_ok_for_sibcall): Add microMIPS support.
35331         (mips_print_operand_punctuation): Support short delay slots and
35332         compact jumps.
35333         (umips_swm_mask, umips_swm_encoding): New.
35334         (umips_build_save_restore): New function.
35335         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
35336         (was_mips16_p): Remove.
35337         (old_compression_mode): New.
35338         (mips_set_compression_mode): New function.
35339         (mips_set_current_function): Add microMIPS support.
35340         (mips_option_override): Likewise.
35341         (umips_save_restore_pattern_p): New function.
35342         (umips_output_save_restore): New function.
35343         (umips_load_store_pair_p_1): New function.
35344         (umips_load_store_pair_p): New function.
35345         (umips_output_load_store_pair_1): New function.
35346         (umips_output_load_store_pair): New function.
35347         (umips_movep_target_p) New function.
35348         (mips_prepare_pch_save): Add microMIPS support.
35349         * config/mips/mips.h (TARGET_COMPRESSION): New.
35350         (TARGET_CPU_CPP_BUILTINS): Update macro
35351         to use new compression flags and to support microMIPS.
35352         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
35353         (MIPS_ARCH_FLOAT_SPEC): Likewise.
35354         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
35355         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
35356         (ASM_SPEC): Support mmicromips and mno-micromips.
35357         (M16STORE_REG_P): New macro.
35358         (MIPS_CALL): Support TARGET_MICROMIPS.
35359         (MICROMIPS_J): New macro.
35360         (mips_base_mips16): Rename this...
35361         (mips_base_compression_flags): ...to this.
35362         (UMIPS_12BIT_OFFSET_P): New macro.
35363         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
35364         (MULTILIB_DIRNAMES): Likewise.
35365 2013-03-20  Richard Biener  <rguenther@suse.de>
35367         PR tree-optimization/56661
35368         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
35369         the result does not have to be distinct.
35371 2013-03-20  Richard Biener  <rguenther@suse.de>
35373         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
35374         remap_gimple_op_r.
35376 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35377             Steven Bosscher  <steven@gcc.gnu.org>
35379         PR rtl-optimization/56605
35380         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
35382 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
35384         PR bootstrap/56656
35385         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
35386         that require movd instead of movq.
35388 2013-03-20  Richard Biener  <rguenther@suse.de>
35390         * tree-ssa-structalias.c (struct variable_info): Add pointer
35391         to the first field of an aggregate with sub-vars.  Make
35392         this and the pointer to the next subfield its ID.
35393         (vi_next): New function.
35394         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
35395         storedanything_id, integer_id): Increment by one.
35396         (new_var_info, get_call_vi, lookup_call_clobber_vi,
35397         get_call_clobber_vi): Adjust.
35398         (solution_set_expand): Simplify and speedup.
35399         (solution_set_add): Inline into ...
35400         (set_union_with_increment): ... this.  Adjust accordingly.
35401         (do_sd_constraint): Likewise.
35402         (do_ds_constraint): Likewise.
35403         (do_complex_constraint): Simplify.
35404         (build_pred_graph): Adjust.
35405         (solve_graph): Likewise.  Simplify and speedup.
35406         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
35407         get_constraint_for_component_ref, get_constraint_for_1,
35408         first_vi_for_offset, first_or_preceding_vi_for_offset,
35409         create_function_info_for, create_variable_info_for_1,
35410         create_variable_info_for, intra_create_variable_infos): Adjust.
35411         (init_base_vars): Push NULL for ID zero.
35412         (compute_points_to_sets): Adjust.
35414 2013-03-20  Richard Biener  <rguenther@suse.de>
35416         * cfgloop.c (verify_loop_structure): Streamline and avoid
35417         ICEing on corrupt loop tree.
35418         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
35419         loop tree.
35421 2013-03-20  Richard Biener  <rguenther@suse.de>
35423         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
35424         check whether an SSA update is needed.
35426 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
35428         * config/mips/constraints.md (T): Rename to...
35429         (Yf): ...this.
35430         (U): Rename to...
35431         (Yd): ...this.
35432         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
35433         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
35435 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
35437         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
35438         (*subsi3_carryin_uxtw): Likewise.
35440 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
35442         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
35443         (*rorsi3_insn_uxtw): Likewise.
35445 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
35447         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
35448         (*extrsi5_insn_uxtw): Likewise.
35450 2013-03-19  Richard Biener  <rguenther@suse.de>
35452         PR tree-optimization/56273
35453         * passes.c (init_optimization_passes): Move second VRP after DOM.
35455 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
35457         * config/i386/i386.md (*movti_internal): Merge from
35458         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
35459         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
35460         nox64 isa attributes.
35462 2013-03-18  Richard Biener  <rguenther@suse.de>
35464         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
35465         (unite): Likewise.
35466         (merge_node_constraints): Likewise.
35467         (build_succ_graph): Likewise.
35468         (valid_graph_edge): Inline into single caller.
35469         (unify_nodes): Likewise.  Use bitmap_set_bit return value
35470         and cache varinfo.
35471         (scc_visit): Fix formatting and variable use.
35472         (do_sd_constraint): Use gcc_checking_assert.
35473         (do_ds_constraint): Likewise.
35474         (do_complex_constraint): Likewise.
35475         (condense_visit): Likewise.  Cleanup.
35476         (dump_pred_graph): New function.
35477         (perform_var_substitution): Dump the pred-graph before
35478         variable substitution.
35479         (find_equivalent_node): Use gcc_checking_assert.
35480         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
35482 2013-03-18  Richard Biener  <rguenther@suse.de>
35484         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
35485         Remove cond_expr_stmt_list argument and do not gimplify the
35486         built expression.
35487         (vect_loop_versioning): Adjust.
35488         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
35489         Cleanup to use less temporaries.
35490         (vect_create_data_ref_ptr): Cleanup.
35492 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
35494         PR tree-optimization/56635
35495         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
35496         require types_compatible_p types.
35498 2013-03-18  Nick Clifton  <nickc@redhat.com>
35500         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
35501         spurious backslash.
35503         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
35504         Add missing line to comment describing function.
35506 2013-03-18  Richard Biener  <rguenther@suse.de>
35508         PR tree-optimization/56210
35509         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
35510         Handle string / character search functions.
35511         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
35513 2013-03-18  Richard Biener  <rguenther@suse.de>
35515         PR middle-end/56483
35516         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
35517         and implement properly.
35518         * gimple.h (gimple_cond_single_var_p): Remove.
35520 2013-03-18  Richard Biener  <rguenther@suse.de>
35522         * tree-data-ref.h (find_data_references_in_loop): Declare.
35523         * tree-data-ref.c (get_references_in_stmt): Use a stack
35524         vector pre-allocated in the callers.
35525         (find_data_references_in_stmt): Adjust.
35526         (graphite_find_data_references_in_stmt): Likewise.
35527         (create_rdg_vertices): Likewise.
35528         (find_data_references_in_loop): Export.
35529         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
35530         Compute dependences here...
35531         (vect_analyze_data_refs): ...not here.  When we encounter
35532         a non-vectorizable data reference in basic-block vectorization
35533         truncate the data reference vector.  Do not bother to
35534         fixup data-dependence information for gather loads.
35535         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
35536         of data references, as reported.
35538 2013-03-18  Richard Biener  <rguenther@suse.de>
35540         PR tree-optimization/3713
35541         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
35542         has_constants and expr.
35543         (stmt_has_constants): Properly valueize SSA names when deciding
35544         whether the stmt has constants.
35546 2013-03-18  Richard Biener  <rguenther@suse.de>
35548         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
35549         whole function when there is nothing to do.
35550         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
35551         * tree-vectorizer.c (vectorize_loops): Update virtual and
35552         loop-closed SSA once.
35553         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
35555 2013-03-18  Richard Biener  <rguenther@suse.de>
35557         PR middle-end/56113
35558         * domwalk.c (bb_postorder): New global static.
35559         (cmp_bb_postorder): New function.
35560         (walk_dominator_tree): Replace scheme imposing an order for
35561         visiting dominator sons by one sorting them at the time they
35562         are pushed on the stack.
35564 2013-03-18  Richard Biener  <rguenther@suse.de>
35566         PR tree-optimization/39326
35567         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
35568         (struct mem_ref): Replace mem member with ao_ref typed member.
35569         (MEM_ANALYZABLE): Adjust.
35570         (memref_eq): Likewise.
35571         (mem_ref_alloc): Likewise.
35572         (gather_mem_refs_stmt): Likewise.
35573         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
35574         (execute_sm_if_changed_flag_set): Adjust.
35575         (execute_sm): Likewise.
35576         (ref_always_accessed_p): Likewise.
35577         (refs_independent_p): Likewise.
35578         (can_sm_ref_p): Likewise.
35580 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
35582         PR c/56566
35583         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
35584         return 1 even for !unsignedp.
35586 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
35588         * config/i386/i386.md (isa): Add x64 and nox64.
35589         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
35590         (*pushtf): Enable *roF alternative for x64 isa only.
35591         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
35592         mode attribute of integer alternatives to DImode for TARGET_64BIT.
35593         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
35594         (*movtf_internal): Merge from *movtf_internal_rex64 and
35595         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
35596         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
35597         nox64 isa attributes.
35598         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
35599         nox64 isa attributes.
35600         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
35602 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
35604         * config/alpha/alpha.c (TARGET_LRA_P): New define.
35606 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
35608         PR target/56640
35609         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
35610         class names.  Remove trailing comma after "ALL_REGS".
35612 2013-03-16  Jan Hubicka  <jh@suse.cz>
35614         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
35615         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
35616         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
35617         of cgraph_get_create_node.
35618         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
35620 2013-03-16  Jason Merrill  <jason@redhat.com>
35622         PR debug/49090
35623         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
35624         with DW_AT_default_value.
35626 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
35628         * BASE-VER: Set to 4.9.0.
35630 2013-03-14  Andi Kleen  <ak@linux.intel.com>
35632         PR target/56619
35633         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
35634         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
35635         Document _x* TSX intrinsics.
35637 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
35638             David Holsgrove  <david.holsgrove@xilinx.com>
35640         * configure.ac: Add MicroBlaze TLS support detection.
35641         * configure: Regenerate.
35642         * config/microblaze/microblaze-protos.h
35643         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
35644         symbol_mentioned_p, label_mentioned_p): Add prototypes.
35645         * config/microblaze/microblaze.c (microblaze_address_type): Add
35646         ADDRESS_TLS and tls_reloc address types.
35647         (microblaze_address_info): Add tls_reloc.
35648         (TARGET_HAVE_TLS): Define.
35649         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
35650          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
35651          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
35652         load_tls_operand,  microblaze_call_tls_get_addr,
35653         microblaze_legitimize_tls_address): New functions.
35654         (microblaze_classify_unspec): Handle UNSPEC_TLS.
35655         (get_base_reg): Use microblaze_tls_symbol_p.
35656         (microblaze_classify_address): Handle TLS.
35657         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
35658         label_mentioned_p and microblaze_tls_referenced_p.
35659         (microblaze_legitimize_address): Handle TLS.
35660         (microblaze_address_insns): Handle ADDRESS_TLS.
35661         (pic_address_needs_scratch): Handle TLS.
35662         (print_operand_address): Handle TLS.
35663         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
35664         (microblaze_expand_move): Handle TLS.
35665         (microblaze_legitimate_constant_p): Check
35666         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
35667         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
35668         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
35669         (PIC_OFFSET_TABLE_REGNUM): Set.
35670         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
35671         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
35672         (addsi3, movsi_internal2, movdf_internal): Update constraints
35673         * config/microblaze/predicates.md (arith_plus_operand): Define
35674         (move_operand): Redefine as move_src_operand,
35675         check microblaze_tls_referenced_p.
35677 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
35679         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
35680         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
35682 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
35684         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
35685         CC mode for AND.
35687 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
35689         PR tree-optimization/53265
35690         * common.opt (Waggressive-loop-optimizations): New option.
35691         * tree-ssa-loop-niter.c: Include tree-pass.h.
35692         (do_warn_aggressive_loop_optimizations): New function.
35693         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
35694         if number_of_latch_executions returned constant.
35695         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
35696         early.  If number_of_latch_executions returned constant, set
35697         nb_iterations_upper_bound back to it.
35698         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
35699         field.
35700         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
35701         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
35703         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
35704         (MULTILIB_OSDIRNAMES): Set.
35705         * genmultilib: If defaultosdirname doesn't start with :: , set
35706         defaultosdirname2 instead, clear it and emit two . multilib_raw
35707         entries instead of just one.
35709 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
35711         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
35712         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
35713         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
35714         (SUBTARGET_OVERRIDE_OPTIONS): New.
35716 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
35718         PR target/49880
35719         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
35720         (musermode): Convert to Var(TARGET_USERMODE).
35721         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
35722         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
35723         * config/sh/sh.c (sh_option_override): Use
35724         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
35725         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
35726         condition.
35727         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
35728         TARGET_SH4.
35729         (udivsi3_i4_single, divsi3_i4_single): Use
35730         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
35732 2013-03-13  Dave Korn  <dave.korn.cygwin@gmail.com>
35734         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
35735         default setting.
35737 2013-03-13  Richard Biener  <rguenther@suse.de>
35739         PR tree-optimization/56608
35740         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
35741         calls when vectorizing basic-blocks.
35743 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
35745         PR plugins/45078
35746         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
35747         tm_file.
35749 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
35751         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
35753 2013-03-11  Jan Hubicka  <jh@suse.cz>
35755         PR lto/56557
35756         * lto-streamer-out.c (output_symbol_p): Skip references from
35757         constructors of external variables.
35759 2013-03-11  Jan Hubicka  <jh@suse.cz>
35761         PR middle-end/56571
35762         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
35763         from pseudos.
35764         * emit-rtl.c (verify_rtx_sharing): Likewise.
35765         (copy_insn_1): Likewise.
35766         * rtl.c (copy_rtx): Likewise.
35768 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
35770         PR target/56591
35771         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
35772         output_operand_lossage message.
35774 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
35776         PR target/56470
35777         * arm.c (shift_op): Validate RTL pattern on the fly.
35778         (arm_print_operand, case 'S'): Don't use shift_operator to validate
35779         the RTL.
35781 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35783         PR target/56347
35784         * config/pa/pa.md (call_value): Check for calls to powf and direct to
35785         new call patterns that clobber %fr12.
35786         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
35787         split and postreload patterns.
35788         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
35789         registers %fr12 and %fr12R as call used.
35791 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
35793         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
35794         (canon_address, record_store, replace_read, check_mem_read_rtx,
35795         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
35796         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
35797         rest_of_handle_dse): Likewise.
35799 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
35801         PR middle-end/56524
35802         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
35803         Add base_optabs.
35804         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
35805         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
35806         (save_optabs_if_changed): Replace with...
35807         (init_tree_optimization_optabs): ...this.
35808         * optabs.c (save_optabs_if_changed): Rename to...
35809         (init_tree_optimization_optabs): ...this.  Take the optimization node
35810         as argument.  Do nothing if the base optabs are already correct.
35811         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
35812         to recompute optabs.
35813         * function.h (function): Remove optabs field.
35814         * function.c (invoke_set_current_function_hook): Call
35815         init_tree_optimization_optabs.  Use the result to initialize
35816         this_fn_optabs.
35818 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
35820         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
35821         if GTMA_HAS_NO_INSTRUMENTATION.
35822         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
35823         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
35824         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
35825         * gimple-pretty-print.c (dump_gimple_transaction): Handle
35826         GTMA_HAS_NO_INSTRUMENTATION.
35828 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
35830         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
35831         libasan_preinit.o.
35833 2013-03-08  Marek Polacek  <polacek@redhat.com>
35834             Jakub Jelinek  <jakub@redhat.com>
35836         PR tree-optimization/56478
35837         * predict.c (is_comparison_with_loop_invariant_p): Change the
35838         type of loop_step to tree.
35839         (predict_loops): Adjust.
35840         (predict_iv_comparison): Perform the computations on double_ints.
35842 2013-03-08  Richard Biener  <rguenther@suse.de>
35844         PR tree-optimization/56570
35845         * tree-cfg.c (verify_expr_location_1): Verify locations for
35846         DECL_DEBUG_EXPR.
35847         * tree-sra.c (create_access_replacement): Strip locations
35848         from DECL_DEBUG_EXPRs.
35850 2013-03-08  Richard Biener  <rguenther@suse.de>
35852         * tree-inline.c (expand_call_inline): Do not associate
35853         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
35854         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
35856 2013-03-08  Richard Biener  <rguenther@suse.de>
35858         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
35859         or block changes with -Og.  Fix for location / block encoding
35860         changes and PHI arguments with locations.
35862 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
35864         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
35865         for all counters.
35866         (struct output_info): Likewise.
35867         (register_overhead): Remove bad gcc_assert.
35868         (bitmap_find_bit): If there is only a single bitmap element, do not
35869         count a miss as a search.
35870         (print_statistics): Update for counter type changes.
35871         (dump_bitmap_statistics): Likewise.  Print headers such that they
35872         are properly lined up with the printed counters.
35874 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
35876         PR tree-optimization/56559
35877         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
35878         check that it has only a single use.
35880 2013-03-07  Richard Biener  <rguenther@suse.de>
35882         * doc/invoke.texi (fwhole-program): Discourage use in combination
35883         with -flto.
35885 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
35887         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
35889         PR tree-optimization/56539
35890         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
35891         instead of GSI_CONTINUE_LINKING as last argument to
35892         force_gimple_operand_gsi.  Adjust function comment.
35894         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
35895         aarch64-cores.def.
35897         PR middle-end/56548
35898         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
35899         promoted mode, convert the result back to the original mode.
35901 2013-03-06  Richard Biener  <rguenther@suse.de>
35903         PR middle-end/56294
35904         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
35905         (insert_updated_phi_nodes_compare_uids): New function.
35906         (update_ssa): Sort symbols_to_rename after UID before
35907         traversing it to insert PHI nodes.
35909 2013-03-06  Richard Biener  <rguenther@suse.de>
35911         PR middle-end/50494
35912         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
35913         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
35915         Revert
35916         2013-02-13  Richard Biener  <rguenther@suse.de>
35918         PR lto/50494
35919         * varasm.c (output_constant_def_1): Get the decl representing
35920         the constant as argument.
35921         (output_constant_def): Wrap output_constant_def_1.
35922         (make_decl_rtl): Use output_constant_def_1 with the decl
35923         representing the constant.
35924         (build_constant_desc): Optionally re-use a decl already
35925         representing the constant.
35926         (tree_output_constant_def): Adjust.
35928 2013-03-06  Joey Ye  <joey.ye@arm.com>
35930         PR lto/50293
35931         * gcc.c (convert_white_space): New function.
35932         (main): Handles white space in function name.
35934 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
35936         PR target/56529
35937         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
35938         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
35939         to SH_DIV_CALL_TABLE for TARGET_SH2.
35940         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
35941         list.
35942         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
35943         call-table options.
35945 2013-03-05  Sterling Augustine  <saugustine@google.com>
35946             Cary Coutant  <ccoutant@google.com>
35948         PR debug/55364
35949         * dwarf2out.c (resolve_addr): Don't call
35950         remove_loc_list_addr_table_entries a second time for the same
35951         expression.
35953 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
35955         PR debug/56510
35956         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
35957         (avoid_complex_debug_insns): New function.
35958         (expand_debug_locations): Call it.
35960         PR rtl-optimization/56484
35961         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
35962         lifetimes of hard registers on small register class machines.
35964 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
35966         * config/microblaze/microblaze-protos.h: Rename
35967         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
35968         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
35969         fast_interrupt.
35970         (microblaze_fast_interrupt_function_p): New function.
35971         (microblaze_is_interrupt_handler): Rename to
35972         microblaze_is_interrupt_variant and add fast_interrupt check.
35973         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
35974         (save_restore_insns): Likewise.
35975         (compute_frame_size): Likewise.
35976         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
35977         (microblaze_globalize_label): Likewise.
35978         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
35979         * config/microblaze/microblaze.md: Use wrapper
35980         microblaze_is_interrupt_variant.
35982 2013-03-05  Kai Tietz  <ktietz@redhat.com>
35984         * sdbout.c (sdbout_one_type): Switch to current function's section
35985         supporting cold/hot.
35987 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
35989         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
35990         -mxl-reorder.
35992 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
35994         PR middle-end/56461
35995         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
35996         if VALGRIND_GET_VBITS is defined, temporarily make object
35997         memory all defined, and restore previous valgrind addressability
35998         and definability afterwards.  Free this_object at the end.
36000         PR middle-end/56461
36001         * lra.c (lra): Call lra_clear_live_ranges if live_p,
36002         right before calling lra_create_live_ranges, also call it
36003         when clearing live_p.  Only call lra_clear_live_ranges
36004         at the end if live_p.
36006         PR middle-end/56461
36007         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
36009 2013-03-05  Richard Biener  <rguenther@suse.de>
36011         PR tree-optimization/56521
36012         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
36013         value-id.
36015 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
36017         PR c++/55135
36018         * except.h (remove_unreachable_eh_regions): New prototype.
36019         * except.c (remove_eh_handler_splicer): New function, split out
36020         of remove_eh_handler.
36021         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
36022         warning about running it on many EH regions one at a time.
36023         (remove_unreachable_eh_regions_worker): New function, walk the
36024         EH tree in depth-first order and remove non-marked regions.
36025         (remove_unreachable_eh_regions): New function.
36026         * tree-eh.c (mark_reachable_handlers): New function, split out
36027         from remove_unreachable_handlers.
36028         (remove_unreachable_handlers): Use mark_reachable_handlers and
36029         remove_unreachable_eh_regions.
36030         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
36031         and remove_unreachable_eh_regions.
36033 2013-03-05  Richard Biener  <rguenther@suse.de>
36035         PR middle-end/56525
36036         * loop-init.c (fix_loop_structure): Remove loops in two stages,
36037         not freeing them until the end.
36039 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36041         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
36043 2013-03-05  Richard Biener  <rguenther@suse.de>
36045         PR tree-optimization/56270
36046         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
36047         of loads after scheduling an SLP instance.
36049 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
36051         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
36052         tic6x.exp.
36053         (check_gcc_parallelize): Run guality.exp as a separate job from
36054         vect.exp with unsorted.exp and $(dg_target_exps) separately from
36055         struct-layout-1.exp with stackalign.exp.
36057         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
36059         PR middle-end/56461
36060         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
36061         load_index sbitmap even if some bit in it isn't set.
36063         PR middle-end/56461
36064         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
36065         (discover_iteration_bound_by_body_walk): Change queues to
36066         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
36067         spelling in comment.  Call safe_push on queues[bound_index] directly.
36068         Release queues[queue_index] in every iteration unconditionally.
36069         Release bounds vector.
36071         PR middle-end/56461
36072         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
36073         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
36074         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
36075         inner_phis vector.
36077 2013-03-05  Richard Biener  <rguenther@suse.de>
36079         PR lto/56515
36080         * tree-inline.c (remap_blocks_to_null): New function.
36081         (expand_call_inline): When expanding a call stmt without
36082         an associated block inline remap all callee blocks to NULL.
36084 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
36086         PR rtl-optimization/56494
36087         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
36088         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
36089         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
36091         PR middle-end/56461
36092         * sel-sched-ir.c (free_sched_pools): Release
36093         succs_info_pool.stack[succs_info_pool.max_top] vectors too
36094         if succs_info_pool.max_top isn't -1.
36096         PR bootstrap/56509
36097         * opts.c (opts_obstack, opts_concat): Moved to...
36098         * opts-common.c (opts_obstack, opts_concat): ... here.
36100 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
36102         PR middle-end/56461
36103         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
36105 2013-03-04  Martin Jambor  <mjambor@suse.cz>
36107         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
36108         all appropriate places.
36110 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
36112         PR tree-optimization/56424
36113         * ipa-split.c (split_function): Do not set the RSO flag if result is
36114         not by reference and its type is a register type.
36116 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
36118         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
36119         (microblaze_legitimate_pic_operand): Likewise
36120         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
36121         new function microblaze_legitimate_pic_operand
36122         * config/microblaze/microblaze-protos.h
36123         (microblaze_legitimate_pic_operand): Declare.
36125 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
36127         * config/microblaze/predicates.md (call_insn_simple_operand):
36128         New predicate for supported rtx code types.
36129         * config/microblaze/microblaze.md (call_internal1): Use
36130         call_insn_simple_operand predicate.
36132 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
36134         PR middle-end/56461
36135         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
36136         partitions.ordered_remove.
36138         PR middle-end/56461
36139         * tree-vect-stmts.c (vectorizable_conversion): Don't call
36140         vec_oprnds0.create (1) for modifier == NONE.
36142         PR middle-end/56461
36143         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
36144         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
36145         vec_oprnds1 right before pushing anything to it for
36146         scalar_shift_arg.
36148         PR middle-end/56461
36149         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
36150         set nbbs to 0 instead of having separate code path.
36151         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
36152         instead of false as last argument if returning NULL.
36154 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
36156         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
36157         the attribute is now called "target" instead of "option".
36158         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
36159         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
36160         attribute/pragma name for TARGET_OPTION_VALID_P and
36161         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
36162         * doc/tm.texi: Regenerated.
36164 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
36166         * config/microblaze/microblaze.c:
36167         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
36168         * config/microblaze/microblaze.h: Add -mxl-reorder to
36169         DRIVER_SELF_SPECS.
36170         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
36171         instructions emitted if TARGET_REORDER.
36172         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
36173         or 0 for -m/-mno case, but initialises as 2 to detect default use case
36174         separately.
36176 2013-03-01  Xinliang David Li  <davidxl@google.com>
36178         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
36179         walk length.
36181 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
36183         PR middle-end/56461
36184         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
36185         vector even when returning true.  Fix up function comment formatting.
36187         PR middle-end/56461
36188         * ira-build.c (ira_loop_nodes_count): New variable.
36189         (create_loop_tree_nodes): Initialize it.
36190         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
36192         PR middle-end/56461
36193         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
36194         method on dr_chain and result_chain.
36195         * tree-vect-stmts.c (vectorizable_store): Only call
36196         result_chain.create if j == 0.
36198         PR middle-end/56461
36199         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
36200         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
36201         before overwriting it.
36203 2013-03-01  Tobias Burnus  <burnus@net-b.de>
36205         * doc/extended.texi (C Extensions): Change order in @menu
36206         to match @node.
36207         (Other MIPS Built-in Functions): Move last MIPS entry before
36208         "picoChip Built-in Functions".
36209         (SH Built-in Functions): Move after RX Built-in Functions.
36210         * doc/gcc.texi (Introduction): Change order in @menu
36211         to match @node.
36212         * doc/md.texi (Constraints): Ditto.
36213         * gty.texi (Type Information): Ditto.
36214         (User-provided marking routines for template types): Make
36215         subsection.
36216         * doc/invoke.texi (AArch64 Options): Move before
36217         "Adapteva Epiphany Options".
36219 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
36220             Jakub Jelinek  <jakub@redhat.com>
36222         PR sanitizer/56454
36223         * asan.c (gate_asan): Lookup no_sanitize_address instead of
36224         no_address_safety_analysis attribute.
36225         * doc/extend.texi (no_address_safety_attribute): Rename to
36226         no_sanitize_address attribute, mention no_address_safety_analysis
36227         attribute as deprecated alias.
36229 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
36231         PR middle-end/56461
36232         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
36233         type to vec<vec<tree> > *.
36234         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
36235         to be vec<tree> instead of vec<tree> *, set vec_defs
36236         to vNULL and call vec_defs.create (number_of_vects), adjust other
36237         uses of vec_defs.
36238         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
36239         vectorizable_condition): Adjust vect_get_slp_defs callers.
36241 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
36243         * config/aarch64/aarch64.c
36244         (aarch64_float_const_representable): Remove unused variable.
36246 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
36248         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
36250 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
36252         * config/aarch64/aarch64-builtins.c
36253         (aarch64_init_simd_builtins): Make static.
36255 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
36257         * config/aarch64/aarch64.c
36258         (aarch64_simd_make_constant): Make static.
36260 2013-02-28  Martin Jambor  <mjambor@suse.cz>
36262         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
36263         with no initialization to the RHS of debug statements.
36265 2013-02-28  Martin Jambor  <mjambor@suse.cz>
36267         PR tree-optimization/56294
36268         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
36269         Adjust dumping.
36270         (get_access_replacement): Do not call create_access_replacement.
36271         Assert a replacement exists.
36272         (get_repl_default_def_ssa_name): Create the replacement declaration
36273         itself.
36275 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
36277         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
36278         final_end_function.
36280 2013-02-28  Marek Polacek  <polacek@redhat.com>
36282         PR rtl-optimization/56466
36283         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
36284         if we're changing a loop.
36285         (peel_loops_completely): Likewise.
36287 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
36289         PR c++/55813
36290         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
36292 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
36294         PR target/56445
36295         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
36296         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
36297         INTX_FTYPE_FX, FX_FTYPE_INTX.
36298         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
36300 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
36302         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
36303         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
36304         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
36305         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
36306         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
36307         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
36308         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
36309         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
36310         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
36311         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
36312         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
36313         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
36314         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
36315         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
36316         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
36317         (avrxmega6): Increase max flash segments from 5 to 6.
36318         * config/avr/t-multilib: Regenerate.
36319         * config/avr/avr-tables.opt: Regenerate.
36320         * doc/avr-mmcu.texi: Regenerate.
36322 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
36324         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
36325         (avr_device_to_arch): Rename to avr_device_to_ld.
36326         (avr_device_to_as): New prototype.
36327         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
36328         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
36329         * config/avr/driver-avr.c (avr_device_to_as): New.
36330         (avr_device_to_arch): Rename to avr_device_to_ld.
36332 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
36334         PR middle-end/56461
36335         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
36336         method on dr_chain and result_chain.
36338         PR middle-end/56461
36339         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
36340         pointer_set_destroy on not_executed_last_iteration.
36342         PR middle-end/56461
36343         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
36345         PR middle-end/56461
36346         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
36347         FOR_EACH_DEFINED_FUNCTION when freeing state.
36349         PR middle-end/56461
36350         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
36351         pool_free.
36352         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
36353         overwriting it.
36355         PR middle-end/56461
36356         * ipa-cp.c (decide_whether_version_node): Call vec_free on
36357         known_aggs[i].items and release known_aggs vector.
36359         PR middle-end/56461
36360         * ipa-reference.c (propagate): Free node_info even for alias nodes.
36362 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
36364         * config/microblaze/microblaze.c (microblaze_emit_compare):
36365         Use xor for EQ/NE comparisions.
36366         * config/microblaze/microblaze.md (cstoresf4): Add constraints
36367         (cbranchsf4): Adjust operator to comparison_operator.
36369 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
36371         PR middle-end/56461
36372         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
36373         vector.
36374         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
36375         vec_safe_push, always update *slot.
36376         (redirect_edge_var_map_clear): Use vec_free.
36377         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
36378         (free_var_map_entry): Use vec_free.
36379         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
36380         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
36382 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
36384         PR middle-end/45472
36385         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
36386         when the may_trap_p bit of the exprs being merged differs.
36387         Reorder tests for speculativeness in the logical and operator.
36389 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
36391         * incpath.c (add_standard_paths): Use reconcat instead of concat
36392         where appropriate and avoid leaking memory.
36394         * opts.h: Include obstack.h.
36395         (opts_concat): New prototype.
36396         (opts_obstack): New declaration.
36397         * opts.c (opts_concat): New function.
36398         (opts_obstack): New variable.
36399         (init_options_struct): Call gcc_init_obstack on opts_obstack.
36400         (finish_options): Use opts_concat instead of concat
36401         and XOBNEWVEC instead of XNEWVEC.
36402         * opts-common.c (generate_canonical_option, decode_cmdline_option,
36403         generate_option): Likewise.
36404         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
36405         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
36407         PR target/56455
36408         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
36409         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
36411 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
36413         PR middle-end/56461
36414         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
36416 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
36418         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
36419         (arm_block_move_unaligned_straight): Likewise.
36420         (arm_adjust_block_mem): Likewise.
36422 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
36424         PR target/48901
36425         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
36426         temp, cond and label.
36427         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
36429         PR target/52500
36430         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
36431         * config/c6x/c6x.h (dbx_register_map): Update declaration.
36433         PR target/52501
36434         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
36435         of prologue/epilogue functions.
36437         PR target/52550
36438         * config/tilegx/tilegx.c (tilegx_expand_prologue):
36439         Remove unused variable cfa_offset.
36440         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
36442         PR target/54639
36443         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
36444         type promotion to unsigned.
36446         PR target/54640
36447         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
36448         for HOST_WIDE_INT of 32 bit / same size as int.
36449         (arm_block_move_unaligned_straight): Likewise.
36450         (arm_adjust_block_mem): Likewise.
36452         PR target/54662
36453         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
36454         ALL_CFLAGS.
36456 2013-02-26  Marek Polacek  <polacek@redhat.com>
36458         PR tree-optimization/56426
36459         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
36461 2013-02-26  Richard Biener  <rguenther@suse.de>
36463         PR target/56444
36464         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
36465         unused variable loops.
36467 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
36469         PR tree-optimization/56448
36470         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
36471         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
36472         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
36473         later operands of the references, or even first operand for
36474         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
36476         PR tree-optimization/56443
36477         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
36478         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
36479         to type_for_mode langhook.
36481 2013-02-25  Matt Turner  <mattst88@gmail.com>
36483         * doc/invoke.texi: Document r4700.
36485 2013-02-25  Richard Biener  <rguenther@suse.de>
36487         PR tree-optimization/56175
36488         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
36489         split out from ...
36490         (simplify_bitwise_binary): ... here.  Also guard the conversion
36491         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
36493 2013-02-25  Catherine Moore  <clm@codesourcery.com>
36495         Revert:
36496         2013-02-24  Catherine Moore  <clm@codesourcery.com>
36497             Maciej W. Rozycki  <macro@codesourcery.com>
36498             Tom de Vries  <tom@codesourcery.com>
36499             Nathan Sidwell  <nathan@codesourcery.com>
36500             Iain Sandoe  <iain@codesourcery.com>
36501             Nathan Froyd  <froydnj@codesourcery.com>
36502             Chao-ying Fu  <fu@mips.com>
36504         * doc/extend.texi: (micromips, nomicromips, nocompression):
36505         Document new function attributes.
36506         * doc/invoke.texi (minterlink-compressed, mmicromips,
36507         m14k, m14ke, m14kec): Document new options.
36508         (minterlink-mips16): Update documentation.
36509         * doc/md.texi (ZC, ZD): Document new constraints.
36510         * configure.ac (gcc_cv_as_micromips): Check if linker
36511         supports the .set micromips directive.
36512         * configure: Regenerate.
36513         * config.in: Regenerate.
36514         * config/mips/mips-tables.opt: Regenerate.
36515         * config/mips/micromips.md: New file.
36516         * constraints.md (ZC, AD): New constraints.
36517         * config/mips/predicates.md (movep_src_register): New predicate.
36518         (movep_src_operand): New predicate.
36519         (non_volatile_mem_operand): New predicate.
36520         * config/mips/mips.md (multimem): New type.
36521         (length): Differentiate between 17-bit and 18-bit branch offsets.
36522         (MOVEP1, MOVEP2): New mode iterator.
36523         (mov_<load>l): Use ZC constraint.
36524         (mov_<load>r): Likewise.
36525         (mov_<store>l): Likewise.
36526         (mov_<store>r): Likewise.
36527         (*branch_equality<mode>_inverted): Add microMIPS support.
36528         (*branch_equality<mode>): Likewise.
36529         (*jump_absolute): Likewise.
36530         (indirect_jump_<mode>): Likewise.
36531         (tablejump_<mode>): Likewise.
36532         (<optab>_internal): Likewise.
36533         (sibcall_internal): Likewise.
36534         (sibcall_value_internal): Likewise.
36535         (prefetch): Use constraint ZD.
36536         * config/mips/mips.opt (minterlink-compressed): New option.
36537         (minterlink-mips16): Now an alias for minterlink-compressed.
36538         (mmicromips): New option.
36539         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
36540         (compare_and_swap_12): Likewise.
36541         (sync_add<mode>): Likewise.
36542         (sync_<optab>_12): Likewise.
36543         (sync_old_<optab>_12): Likewise.
36544         (sync_new_<optab>_12): Likewise.
36545         (sync_nand_12): Likewise.
36546         (sync_old_nand_12): Likewise.
36547         (sync_new_nand_12): Likewise.
36548         (sync_sub<mode>): Likewise.
36549         (sync_old_add<mode>): Likewise.
36550         (sync_old_sub<mode>): Likewise.
36551         (sync_new_add<mode>): Likewise.
36552         (sync_new_sub<mode>): Likewise.
36553         (sync_<optab><mode>): Likewise.
36554         (sync_old_<optab><mode>): Likewise.
36555         (sync_new_<optab><mode>): Likewise.
36556         (sync_nand<mode>): Likewise.
36557         (sync_old_nand<mode>): Likewise.
36558         (sync_new_nand<mode>): Likewise.
36559         (sync_lock_test_and_set<mode>): Likewise.
36560         (test_and_set_12): Likewise.
36561         (atomic_compare_and_swap<mode>): Likewise.
36562         (atomic_exchange<mode>_llsc): Likewise.
36563         (atomic_fetch_add<mode>_llsc): Likewise.
36564         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
36565         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
36566         (umips_save_restore_pattern_p): Likewise.
36567         (umips_load_store_pair_p): Likewise.
36568         (umips_output_load_store_pair): Likewise.
36569         (umips_movep_target_p): Likewise.
36570         (umips_12bit_offset_address_p): Likewise.
36571         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
36572         (mips_base_mips16): Rename this...
36573         (mips_base_compression_flags): ...to this. Update all uses.
36574         (mips_attribute_table): Add micromips, nomicromips and nocompression.
36575         (mips_mips16_decl_p): Delete.
36576         (mips_nomips16_decl_p): Delete.
36577         (mips_get_compress_on_flags): New function.
36578         (mips_get_compress_off_flags): New function.
36579         (mips_get_compress_mode): New function.
36580         (mips_get_compress_on_name): New function.
36581         (mips_get_compress_off_name): New function.
36582         (mips_insert_attributes): Support multiple compression types.
36583         (mips_merge_decl_attributes): Likewise.
36584         (umips_12bit_offset_address_p): New function.
36585         (mips_start_function_definition): Emit .set micromips directive.
36586         (mips_call_may_need_jalx_p): New function.
36587         (mips_function_ok_for_sibcall): Add microMIPS support.
36588         (mips_print_operand_punctuation): Support short delay slots and
36589         compact jumps.
36590         (umips_swm_mask, umips_swm_encoding): New.
36591         (umips_build_save_restore): New function.
36592         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
36593         (was_mips16_p): Remove.
36594         (old_compression_mode): New.
36595         (mips_set_compression_mode): New function.
36596         (mips_set_current_function): Add microMIPS support.
36597         (mips_option_override): Likewise.
36598         (umips_save_restore_pattern_p): New function.
36599         (umips_output_save_restore): New function.
36600         (umips_load_store_pair_p_1): New function.
36601         (umips_load_store_pair_p): New function.
36602         (umips_output_load_store_pair_1): New function.
36603         (umips_output_load_store_pair): New function.
36604         (umips_movep_target_p) New function.
36605         (mips_prepare_pch_save): Add microMIPS support.
36606         * config/mips/mips.h (TARGET_COMPRESSION): New.
36607         (TARGET_CPU_CPP_BUILTINS): Update macro
36608         to use new compression flags and to support microMIPS.
36609         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
36610         (MIPS_ARCH_FLOAT_SPEC): Likewise.
36611         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
36612         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
36613         (ASM_SPEC): Support mmicromips and mno-micromips.
36614         (M16STORE_REG_P): New macro.
36615         (MIPS_CALL): Support TARGET_MICROMIPS.
36616         (MICROMIPS_J): New macro.
36617         (mips_base_mips16): Rename this...
36618         (mips_base_compression_flags): ...to this.
36619         (UMIPS_12BIT_OFFSET_P): New macro.
36620         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
36621         (MULTILIB_DIRNAMES): Likewise.
36623 2013-02-25  Tom de Vries  <tom@codesourcery.com>
36625         PR rtl-optimization/56131
36626         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
36627         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
36628         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
36630 2013-02-25  Tobias Burnus  <burnus@net-b.de>
36632         * doc/invoke.texi (-fsanitize=): Move from optimization
36633         to debugging options.
36635 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
36637         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
36639 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
36640             Alexander Monakov  <amonakov@ispras.ru>
36642         PR middle-end/56077
36643         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
36644         flush pending lists also on non-jumps.  Adjust comment.
36646 2013-02-24  Catherine Moore  <clm@codesourcery.com>
36647             Maciej W. Rozycki  <macro@codesourcery.com>
36648             Tom de Vries  <tom@codesourcery.com>
36649             Nathan Sidwell  <nathan@codesourcery.com>
36650             Iain Sandoe  <iain@codesourcery.com>
36651             Nathan Froyd  <froydnj@codesourcery.com>
36652             Chao-ying Fu  <fu@mips.com>
36654         * doc/extend.texi: (micromips, nomicromips, nocompression):
36655         Document new function attributes.
36656         * doc/invoke.texi (minterlink-compressed, mmicromips,
36657         m14k, m14ke, m14kec): Document new options.
36658         (minterlink-mips16): Update documentation.
36659         * doc/md.texi (ZC, ZD): Document new constraints.
36660         * configure.ac (gcc_cv_as_micromips): Check if linker
36661         supports the .set micromips directive.
36662         * configure: Regenerate.
36663         * config.in: Regenerate.
36664         * config/mips/mips-tables.opt: Regenerate.
36665         * config/mips/micromips.md: New file.
36666         * constraints.md (ZC, AD): New constraints.
36667         * config/mips/predicates.md (movep_src_register): New predicate.
36668         (movep_src_operand): New predicate.
36669         (non_volatile_mem_operand): New predicate.
36670         * config/mips/mips.md (multimem): New type.
36671         (length): Differentiate between 17-bit and 18-bit branch offsets.
36672         (MOVEP1, MOVEP2): New mode iterator.
36673         (mov_<load>l): Use ZC constraint.
36674         (mov_<load>r): Likewise.
36675         (mov_<store>l): Likewise.
36676         (mov_<store>r): Likewise.
36677         (*branch_equality<mode>_inverted): Add microMIPS support.
36678         (*branch_equality<mode>): Likewise.
36679         (*jump_absolute): Likewise.
36680         (indirect_jump_<mode>): Likewise.
36681         (tablejump_<mode>): Likewise.
36682         (<optab>_internal): Likewise.
36683         (sibcall_internal): Likewise.
36684         (sibcall_value_internal): Likewise.
36685         (prefetch): Use constraint ZD.
36686         * config/mips/mips.opt (minterlink-compressed): New option.
36687         (minterlink-mips16): Now an alias for minterlink-compressed.
36688         (mmicromips): New option.
36689         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
36690         (compare_and_swap_12): Likewise.
36691         (sync_add<mode>): Likewise.
36692         (sync_<optab>_12): Likewise.
36693         (sync_old_<optab>_12): Likewise.
36694         (sync_new_<optab>_12): Likewise.
36695         (sync_nand_12): Likewise.
36696         (sync_old_nand_12): Likewise.
36697         (sync_new_nand_12): Likewise.
36698         (sync_sub<mode>): Likewise.
36699         (sync_old_add<mode>): Likewise.
36700         (sync_old_sub<mode>): Likewise.
36701         (sync_new_add<mode>): Likewise.
36702         (sync_new_sub<mode>): Likewise.
36703         (sync_<optab><mode>): Likewise.
36704         (sync_old_<optab><mode>): Likewise.
36705         (sync_new_<optab><mode>): Likewise.
36706         (sync_nand<mode>): Likewise.
36707         (sync_old_nand<mode>): Likewise.
36708         (sync_new_nand<mode>): Likewise.
36709         (sync_lock_test_and_set<mode>): Likewise.
36710         (test_and_set_12): Likewise.
36711         (atomic_compare_and_swap<mode>): Likewise.
36712         (atomic_exchange<mode>_llsc): Likewise.
36713         (atomic_fetch_add<mode>_llsc): Likewise.
36714         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
36715         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
36716         (umips_save_restore_pattern_p): Likewise.
36717         (umips_load_store_pair_p): Likewise.
36718         (umips_output_load_store_pair): Likewise.
36719         (umips_movep_target_p): Likewise.
36720         (umips_12bit_offset_address_p): Likewise.
36721         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
36722         (mips_base_mips16): Rename this...
36723         (mips_base_compression_flags): ...to this. Update all uses.
36724         (mips_attribute_table): Add micromips, nomicromips and nocompression.
36725         (mips_mips16_decl_p): Delete.
36726         (mips_nomips16_decl_p): Delete.
36727         (mips_get_compress_on_flags): New function.
36728         (mips_get_compress_off_flags): New function.
36729         (mips_get_compress_mode): New function.
36730         (mips_get_compress_on_name): New function.
36731         (mips_get_compress_off_name): New function.
36732         (mips_insert_attributes): Support multiple compression types.
36733         (mips_merge_decl_attributes): Likewise.
36734         (umips_12bit_offset_address_p): New function.
36735         (mips_start_function_definition): Emit .set micromips directive.
36736         (mips_call_may_need_jalx_p): New function.
36737         (mips_function_ok_for_sibcall): Add microMIPS support.
36738         (mips_print_operand_punctuation): Support short delay slots and
36739         compact jumps.
36740         (umips_swm_mask, umips_swm_encoding): New.
36741         (umips_build_save_restore): New function.
36742         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
36743         (was_mips16_p): Remove.
36744         (old_compression_mode): New.
36745         (mips_set_compression_mode): New function.
36746         (mips_set_current_function): Add microMIPS support.
36747         (mips_option_override): Likewise.
36748         (umips_save_restore_pattern_p): New function.
36749         (umips_output_save_restore): New function.
36750         (umips_load_store_pair_p_1): New function.
36751         (umips_load_store_pair_p): New function.
36752         (umips_output_load_store_pair_1): New function.
36753         (umips_output_load_store_pair): New function.
36754         (umips_movep_target_p) New function.
36755         (mips_prepare_pch_save): Add microMIPS support.
36756         * config/mips/mips.h (TARGET_COMPRESSION): New.
36757         (TARGET_CPU_CPP_BUILTINS): Update macro
36758         to use new compression flags and to support microMIPS.
36759         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
36760         (MIPS_ARCH_FLOAT_SPEC): Likewise.
36761         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
36762         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
36763         (ASM_SPEC): Support mmicromips and mno-micromips.
36764         (M16STORE_REG_P): New macro.
36765         (MIPS_CALL): Support TARGET_MICROMIPS.
36766         (MICROMIPS_J): New macro.
36767         (mips_base_mips16): Rename this...
36768         (mips_base_compression_flags): ...to this.
36769         (UMIPS_12BIT_OFFSET_P): New macro.
36770         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
36771         (MULTILIB_DIRNAMES): Likewise.
36773 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
36775         PR target/52555
36776         * target-globals.c (save_target_globals): For init_reg_sets and
36777         target_reinit remporarily set this_fn_optabs to this_target_optabs.
36779 2013-02-22  James Greenhalgh  <james.greenhalgh@arm.com>
36781         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
36782         * config/aarch64/t-aarch64
36783         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
36785 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
36787         PR inline-asm/56148
36788         * lra-constraints.c (process_alt_operands): Reload operand
36789         conflicting with earlier clobber only if no more other conflicting
36790         operands.
36792 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
36794         PR sanitizer/56393
36795         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
36796         if not linking a shared library.
36798 2013-02-22  Seth LaForge  <sethml@google.com>
36800         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
36802 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
36804         * config/arm/arm.md (split for extendsidi): Update condition.
36805         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
36806         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
36807         (qhs_zextenddi_cstr): Likewise.
36809 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
36811         PR middle-end/56420
36812         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
36813         avoid signed wrapping.
36814         (expand_mult): Handle properly multiplication by
36815         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
36816         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
36817         in the compiler if coeff is HOST_WIDE_INT_MIN.
36818         (expand_divmod): Don't make ext_op1 static, change it's type to
36819         uhwi.  Avoid undefined behavior in -INTVAL (op1).
36821         PR rtl-optimization/50339
36822         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
36823         field.
36824         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
36825         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
36826         into splitting_ashiftrt field.
36827         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
36828         ASHIFTRT.
36829         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
36830         choices.
36832 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
36834         PR middle-end/56108
36835         * trans-mem.c (execute_tm_mark): Do not expand transactions that
36836         are sure to go irrevocable.
36838 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
36840         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
36841         scalars are valid operands.
36843 2013-02-21  Martin Jambor  <mjambor@suse.cz>
36845         PR tree-optimization/56310
36846         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
36847         only matching indices and non-negative final offsets.
36848         (intersect_aggregates_with_edge): Pass src_idx to
36849         agg_replacements_to_vector.  Pass src_idx insstead of index to
36850         intersect_with_agg_replacements.
36852 2013-02-21  Martin Jambor  <mjambor@suse.cz>
36854         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
36855         instead of hard-wired defaults.
36857 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
36859         * doc/invoke.texi (MIPS Options): Update documentation of the
36860         floating-point multiply-accumulate instruction restrictions.
36862 2013-02-21  Kostya Serebryany  <kcc@google.com>
36864         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
36865         asan_shadow_offset on x86_64 linux.
36867 2013-02-21  Richard Biener  <rguenther@suse.de>
36869         PR tree-optimization/56415
36870         Revert
36871         2013-02-11  Richard Biener  <rguenther@suse.de>
36873         PR tree-optimization/56273
36874         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
36875         first VRP run.
36877 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
36879         PR bootstrap/56258
36880         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
36881         instead of @itemx.
36883         PR inline-asm/56405
36884         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
36885         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
36887 2013-02-20  Jan Hubicka  <jh@suse.cz>
36889         PR tree-optimization/56265
36890         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
36891         when target is referenced for first time.
36893 2013-02-20  Richard Biener  <rguenther@suse.de>
36895         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
36896         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
36897         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
36898         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
36899         not return anything.
36900         (rename_ssa_copies): Do not remove unused locals.
36901         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
36902         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
36903         * passes.c (execute_function_todo): Do not schedule unused locals
36904         removal if cleanup_tree_cfg did something.
36905         * tree-ssa-live.c (remove_unused_locals): Dump statistics
36906         about the number of removed locals.
36908 2013-02-20  Richard Biener  <rguenther@suse.de>
36910         PR tree-optimization/56398
36911         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
36913 2013-02-20  Martin Jambor  <mjambor@suse.cz>
36915         PR tree-optimization/55334
36916         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
36917         restricted pointers to arrays.
36919 2013-02-20  Richard Biener  <rguenther@suse.de>
36920             Jakub Jelinek  <jakub@redhat.com>
36922         PR tree-optimization/56396
36923         * tree-ssa-ccp.c (n_const_val): New static variable.
36924         (get_value): Return NULL for SSA names we don't have a lattice
36925         entry for.
36926         (ccp_initialize): Initialize n_const_val.
36927         * tree-ssa-copy.c (n_copy_of): New static variable.
36928         (init_copy_prop): Initialize n_copy_of.
36929         (get_value): Return NULL_TREE for SSA names we don't have a
36930         lattice entry for.
36932 2013-02-20  Martin Jambor  <mjambor@suse.cz>
36934         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
36936 2013-02-20  Richard Biener  <rguenther@suse.de>
36938         * genpreds.c (write_lookup_constraint): Do not compare first
36939         letter of the constraint again.
36941 2013-02-20  Richard Biener  <rguenther@suse.de>
36943         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
36944         and ceil_log2.
36945         (get_use_iv_cost): Terminate hashtable walk when coming across
36946         an empty entry.
36948 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
36950         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
36951         reassociation for avx2 targets.
36953 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
36955         * config/microblaze/microblaze.c: microblaze_has_clz = 0
36956         Add version check for v8.10.a to enable microblaze_has_clz
36957         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
36958         version and TARGET_PATTERN_COMPARE check
36959         * config/microblaze/microblaze.md: New clzsi2 instruction
36961 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
36963         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
36964         function before branching.
36966 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
36968         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
36969         DUMP_INSN_RTX_UID.
36970         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
36972 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
36974         PR middle-end/55889
36975         * sel-sched.c: Include ira.h.
36976         (implicit_clobber_conflict_p): New function.
36977         (moveup_expr): Use it.
36978         * Makefile.in (sel-sched.o): Depend on ira.h.
36980 2013-02-19  Richard Biener  <rguenther@suse.de>
36982         PR tree-optimization/56384
36983         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
36984         (vn_hash_type): Split out from ...
36985         (vn_hash_constant_with_type): ... here.
36986         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
36987         (vn_phi_eq): Compare types from vn_phi_s structure.
36988         (vn_phi_lookup): Populate vn_phi_s type.
36989         (vn_phi_insert): Likewise.
36991 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
36993         PR tree-optimization/56350
36994         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
36995         if haven't found reduction or nested cycle operand, rather than
36996         asserting we must find it.
36998         PR tree-optimization/56381
36999         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
37000         to fold_build3.
37002 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
37003             Jakub Jelinek  <jakub@redhat.com>
37005         PR target/52555
37006         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
37007         (swap_optab_enable): Same.
37008         (init_all_optabs): Use argument instead of global.
37009         * tree.h (struct tree_optimization_option): New field target_optabs.
37010         * expr.h (init_all_optabs): Add argument to prototype.
37011         (TREE_OPTIMIZATION_OPTABS): New.
37012         (save_optabs_if_changed): Protoize.
37013         * optabs.h: Declare this_fn_optabs.
37014         * optabs.c (save_optabs_if_changed): New.
37015         Declare this_fn_optabs.
37016         (init_optabs): Add argument to init_all_optabs() call.
37017         * function.c (invoke_set_current_function_hook): Handle per
37018         function optabs.
37019         * function.h (struct function): New field optabs.
37020         * config/mips/mips.c (mips_set_mips16_mode): Handle when
37021         optimization_current_node has changed.
37022         * target-globals.h (save_target_globals_default_opts): Protoize.
37023         * target-globals.c (save_target_globals_default_opts): New.
37025 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
37027         PR target/56347
37028         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
37029         registers %fr12 and %fr12R as call used.
37031         PR target/56214
37032         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
37033         and HImode, require all displacements to be an integer multiple of
37034         their mode size.
37035         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
37036         only allow QImode and HImode when reload is in progress and strict is
37037         true.  Likewise for symbolic addresses.  Use base14_operand to check
37038         displacements in REG+BASE addresses.
37040 2013-02-18  Richard Biener  <rguenther@suse.de>
37042         PR tree-optimization/56366
37043         * tree-vect-loop.c (get_initial_def_for_induction): Properly
37044         handle sign-conversion of outer-loop initial induction value.
37046 2013-02-18  Richard Biener  <rguenther@suse.de>
37048         PR middle-end/56349
37049         * cfghooks.c (merge_blocks): If we merge a latch into another
37050         block adjust references to it.
37051         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
37052         (verify_loop_structure): Verify that a recorded latch is in fact
37053         a latch.
37055 2013-02-18  Richard Biener  <rguenther@suse.de>
37057         PR tree-optimization/56321
37058         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
37059         order SSA name release and virtual operand unlinking.
37061 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
37063         * config/microblaze/microblaze.md (save_stack_block): Define.
37064         (restore_stack_block): Likewise.
37066 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
37068         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
37069         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
37070         * config/microblaze/microblaze.c (microblaze_option_override):
37071         Bail out early for PIC modes when target does not support PIC.
37073 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
37075         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
37076         Replace with a microblaze version.
37077         (microblaze_trampoline_init): Adapt for microblaze.
37078         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
37079         microblaze.
37081 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
37082             Dodji Seketeli  <dodji@redhat.com>
37084         PR asan/56330
37085         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
37086         (instrument_mem_region_access): Do not forget to always put
37087         instrumentation of the of 'base' and 'base + len' in a "if (len !=
37088         0) statement, even for cases where either 'base' or 'base + len'
37089         are not instrumented -- because they have been previously
37090         instrumented.  Simplify the logic by putting all the statements
37091         instrument 'base + len' inside a sequence, and then insert that
37092         sequence right before the current insertion point.  Then, to
37093         instrument 'base + len', just get an iterator on that statement.
37094         And do not forget to update the pointer to iterator the function
37095         received as argument.
37097 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
37099         PR rtl-optimization/56348
37100         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
37102 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
37104         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
37105         (clean_graph_dump_file): Pass base to start_graph_dump.
37107 2013-02-14  Richard Henderson  <rth@redhat.com>
37109         PR target/55941
37110         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
37112 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
37114         * collect2-aix.h: Define F_LOADONLY.
37116 2013-02-14  Richard Biener  <rguenther@suse.de>
37118         PR lto/50494
37119         * varasm.c (output_constant_def_1): Get the decl representing
37120         the constant as argument.
37121         (output_constant_def): Wrap output_constant_def_1.
37122         (make_decl_rtl): Use output_constant_def_1 with the decl
37123         representing the constant.
37124         (build_constant_desc): Optionally re-use a decl already
37125         representing the constant.
37126         (tree_output_constant_def): Adjust.
37128 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
37130         Fix an asan crash
37131         * asan.c (instrument_builtin_call):  Really put the length of the
37132         second source argument into src1_len.
37134 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
37136         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
37137         argument.  If it is false, don't create edge from then_bb to
37138         fallthru_bb.
37139         (insert_if_then_before_iter): Pass true to it.
37140         (build_check_stmt): Pass false to it.
37141         (transform_statements): Flush hash table only on extended basic
37142         block boundaries, rather than at the beginning of every bb.
37143         Don't flush hash table on nonfreeing_call_p calls.
37144         * tree-flow.h (nonfreeing_call_p): New prototype.
37145         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
37147 2013-02-13  David S. Miller  <davem@davemloft.net>
37149         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
37151 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
37153         PR target/56184
37154         * ira.c (max_regno_before_ira): Move from ...
37155         (ira): ... here.
37156         (fix_reg_equiv_init): Use max_regno_before_ira instead of
37157         vec_safe_length.
37159 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
37161         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
37163 2013-02-13  Richard Biener  <rguenther@suse.de>
37165         PR lto/56295
37166         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
37167         globals in MEM_REFs.
37169 2013-02-13  Richard Biener  <rguenther@suse.de>
37171         * loop-init.c (loop_optimizer_init): Clear loop state when
37172         re-initializing preserved loops.
37173         * loop-unswitch.c (unswitch_single_loop): Return whether
37174         we unswitched the loop.  Do not verify loop state here.
37175         (unswitch_loops): When we unswitched a loop discover new loops.
37177 2013-02-13  Kostya Serebryany  <kcc@google.com>
37179         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
37180         on x86_64 linux.
37181         * sanitizer.def: Rename __asan_init to __asan_init_v1.
37183 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
37185         Avoid instrumenting duplicated memory access in the same basic block
37186         * Makefile.in (asan.o): Add new dependency on hash-table.h
37187         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
37188         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
37189         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
37190         (free_mem_ref_resources, has_mem_ref_been_instrumented)
37191         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
37192         (get_mem_ref_of_assignment): New functions.
37193         (get_mem_refs_of_builtin_call): Extract from
37194         instrument_builtin_call and tweak a little bit to make it fit with
37195         the new signature.
37196         (instrument_builtin_call): Use the new
37197         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
37198         of is_gimple_builtin_call.
37199         (instrument_derefs, instrument_mem_region_access): Insert the
37200         instrumented memory reference into the hash table.
37201         (maybe_instrument_assignment): Renamed instrument_assignment into
37202         this, and change it to advance the iterator when instrumentation
37203         actually happened and return true in that case.  This makes it
37204         homogeneous with maybe_instrument_assignment, and thus give a
37205         chance to callers to be more 'regular'.
37206         (transform_statements): Clear the memory reference hash table
37207         whenever we enter a new BB, when we cross a function call, or when
37208         we are done transforming statements.  Use
37209         maybe_instrument_assignment instead of instrumentation.  No more
37210         need to special case maybe_instrument_assignment and advance the
37211         iterator after calling it; it's now handled just like
37212         maybe_instrument_call.  Update comment.
37214 2013-02-13  Richard Biener  <rguenther@suse.de>
37216         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
37217         Fix loop discovery code.
37219 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
37221         PR inline-asm/56148
37222         * lra-constraints.c (process_alt_operands): Match early clobber
37223         operand with itself.  Check conflicts with earlyclobber only if
37224         the operand is not reloaded.  Prefer to reload conflicting operand
37225         if earlyclobber and matching operands are the same.
37227 2013-02-12  Richard Biener  <rguenther@suse.de>
37229         PR lto/56297
37230         * lto-streamer-out.c (write_symbol): Do not output symbols
37231         for hard register variables.
37233 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
37235         PR target/54222
37236         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
37237         (umulsidi3_insn, mulsidi3_insn): New insns.
37239 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
37241         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
37242         (struct tune_params): Add vec_costs field.
37243         * config/arm/arm.c (arm_builtin_vectorization_cost)
37244         (arm_add_stmt_cost): New functions.
37245         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
37246         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
37247         (arm_default_vec_cost): New struct of type cpu_vec_costs.
37248         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
37249         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
37250         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
37251         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
37253 2013-02-12  Richard Biener  <rguenther@suse.de>
37255         PR lto/56295
37256         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
37257         decls again if possible.
37259 2013-02-12  Richard Biener  <rguenther@suse.de>
37261         PR middle-end/56288
37262         * tree-ssa.c (verify_ssa_name): Fix check, move
37263         SSA_NAME_IN_FREE_LIST check up.
37265 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
37266             Steven Bosscher   <steven@gcc.gnu.org>
37268         PR rtl-optimization/56151
37269         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
37270         equal to op0 or op1, and last_insn pattern is CODE operation
37271         with MEM dest and one of the operands matches that MEM.
37273 2013-02-11  Sriraman Tallam  <tmsriram@google.com>
37275         * doc/extend.texi: Document Function Multiversioning and "default"
37276         parameter string to target attribute.
37277         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
37278         target attribute parameter is "default".
37279         (ix86_compare_version_priority): Remove checks for target attribute.
37280         (ix86_mangle_function_version_assembler_name): Change error to sorry.
37281         Remove check for target attribute equal to NULL. Add assert.
37282         (ix86_generate_version_dispatcher_body): Change error to sorry.
37284 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
37285             Jack Howarth  <howarth@bromo.med.uc.edu>
37286             Patrick Marlier  <patrick.marlier@gmail.com>
37288         PR libitm/55693
37289         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
37290         define ENDFILE_SPEC as TM_DESTRUCTOR.
37291         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
37293 2013-02-11  Alexander Potapenko  <glider@google.com>
37294             Jack Howarth  <howarth@bromo.med.uc.edu>
37295             Jakub Jelinek  <jakub@redhat.com>
37297         PR sanitizer/55617
37298         * config/darwin.c (cdtor_record): Rename ctor_record.
37299         (sort_cdtor_records): Rename sort_ctor_records.
37300         (finalize_dtors): New routine to sort destructors by
37301         priority before use in assemble_integer.
37302         (machopic_asm_out_destructor): Use finalize_dtors if needed.
37304 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
37306         PR rtl-optimization/56275
37307         * simplify-rtx.c (avoid_constant_pool_reference): Check that
37308         offset is non-negative and less than cmode size before
37309         calling simplify_subreg.
37311 2013-02-11  Richard Biener  <rguenther@suse.de>
37313         PR tree-optimization/56264
37314         * cfgloop.h (fix_loop_structure): Adjust prototype.
37315         * loop-init.c (fix_loop_structure): Return the number of
37316         newly discovered loops.
37317         * tree-cfgcleanup.c (repair_loop_structures): When new loops
37318         are discovered, do a full loop-closed SSA rewrite.
37320 2013-02-11  Richard Biener  <rguenther@suse.de>
37322         PR tree-optimization/56273
37323         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
37324         first VRP run.
37325         (check_array_ref): Fix missing newline in dumps.
37326         (search_for_addr_array): Likewise.
37328 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
37330         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
37332 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
37334         PR target/56256
37335         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
37337 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
37339         PR rtl-optimization/56246
37340         * lra-constraints.c (simplify_operand_subreg): Try to reuse
37341         reload pseudo.
37342         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
37343         constraints are satisfied.
37345 2013-02-08  Jeff Law  <law@redhat.com>
37347         PR debug/53948
37348         * emit-rtl.c (reg_is_parm_p): New function.
37349         * regs.h (reg_is_parm_p): New prototype.
37350         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
37351         callee-clobbered registers.
37353 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
37355         PR target/56043
37356         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
37357         If there is no implicit builtin declaration, just return NULL.
37359 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
37361         * config/i386/sse.md (FMAMODEM): New mode iterator.
37362         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
37363         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
37365 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
37367         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
37368         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
37369         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
37371 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
37373         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
37374         (microblaze*-*-elf): Likewise.
37375         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
37376         LINK_SPEC.
37377         * config/microblaze/microblaze-c.c: Add builtin defines for
37378         _LITTLE_ENDIAN and _BIG_ENDIAN.
37379         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
37380         add to TARGET_DEFAULT flags.
37381         Expand ASM_SPEC and LINK_SPEC.
37382         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
37383         * config/microblaze/microblaze.md: Update extendsidi2 and
37384         movdi_internal instructions to use low-order / high-order reg
37385         print_operands.
37386         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
37387         options and inversemask / mask of LITTLE_ENDIAN.
37388         * config/microblaze/t-microblaze: Expand multilib options to
37389         include mlittle-endian (le) and update exceptions patterns.
37391 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
37393         PR rtl-optimization/56195
37394         * lra-constraints.c (get_reload_reg): Don't reuse regs
37395         if they have smaller mode than requested, if they have
37396         wider mode than requested, try to return a SUBREG.
37398         PR tree-optimization/56250
37399         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
37400         if type is unsigned and code isn't MULT_EXPR.
37402 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
37404         PR tree-optimization/56064
37405         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
37406         bits according to mode.
37407         * fixed-value.h (fixed_from_double_int)
37408         (const_fixed_from_double_int): Adjust comments.
37410 2013-02-08  Richard Biener  <rguenther@suse.de>
37412         PR lto/56231
37413         * lto-streamer.h (struct data_in): Remove current_file, current_line
37414         and current_col members.
37415         * lto-streamer-out.c (lto_output_location): Stream changed bits
37416         en-block for efficiency.
37417         * lto-streamer-in.c (clear_line_info): Remove.
37418         (lto_input_location): Cache current file, line and column
37419         globally via local statics.  Read changed bits en-block.
37420         (input_function): Do not call clear_line_info.
37421         (lto_read_body): Likewise.
37422         (lto_input_toplevel_asms): Likewise.
37424 2013-02-08  Michael Matz  <matz@suse.de>
37426         PR tree-optimization/52448
37427         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
37428         (nt_call_phase): New static.
37429         (add_or_mark_expr): Only mark accesses with newer phase than any
37430         call seen.
37431         (nonfreeing_call_p): New.
37432         (nt_init_block): Update nt_call_phase, mark blocks as visited.
37433         (nt_fini_block): Keep blocks marked as visited.
37434         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
37436 2013-02-08  Richard Biener  <rguenther@suse.de>
37438         * ira.c (ira): Free broken dominator information.
37440 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
37442         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
37444 2013-02-08  Marek Polacek  <polacek@redhat.com>
37446         * cfgloop.c (verify_loop_structure): Add more checking of headers.
37448 2013-02-08  Richard Biener  <rguenther@suse.de>
37450         PR middle-end/56181
37451         * cfgloop.h (flow_loops_find): Adjust.
37452         (bb_loop_header_p): Declare.
37453         * cfgloop.c (bb_loop_header_p): New function split out from ...
37454         (flow_loops_find): ... here.  Adjust function signature,
37455         support incremental loop structure update.
37456         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
37457         * cfgloopmanip.c (fix_loop_structure): Move ...
37458         * loop-init.c (fix_loop_structure): ... here.
37459         (apply_loop_flags): Split out from ...
37460         (loop_optimizer_init): ... here.
37461         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
37462         in incremental mode, only remove dead loops here.
37464 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
37466         PR target/54222
37467         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
37468         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
37469         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
37470         (*round<mode>3.libgcc): New insns for fixed-modes.
37471         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
37472         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
37473         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
37474         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
37475         implementations.  Define to __builtin_avr_absFX,
37476         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
37477         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
37478         __builtin_avr_countlsFX, respectively.
37479         * config/avr/avr-c.c (target.h): Include it.
37480         (enum avr_builtin_id): New enum.
37481         (avr_resolve_overloaded_builtin): New static function.
37482         (avr_register_target_pragmas): Use it to set
37483         targetm.resolve_overloaded_builtin.
37484         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
37485         tree nodes used by DEF_BUILTIN.
37486         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
37487         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
37488         <AVR_BUILTIN_xxBITS>: Same.
37490 2013-02-08  Richard Biener  <rguenther@suse.de>
37492         * cfgloop.c (verify_loop_structure): Properly handle
37493         a loop exiting to another loop header.
37494         * ira-int.h (ira_loops): Remove.
37495         * ira.c (ira_loops): Remove.
37496         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
37497         (do_reload): Use loop_optimizer_finalize.
37498         * ira-build.c (create_loop_tree_nodes): Use get_loops and
37499         number_of_loops to access the loop tree.
37500         (more_one_region_p): Likewise.
37501         (finish_loop_tree_nodes): Likewise.
37502         (rebuild_regno_allocno_maps): Likewise.
37503         (mark_loops_for_removal): Likewise.
37504         (mark_all_loops_for_removal): Likewise.
37505         (remove_unnecessary_regions): Likewise.
37506         (ira_build): Likewise.
37507         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
37509 2013-02-08  Richard Biener  <rguenther@suse.de>
37511         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
37512         * ipa-pure-const.c (analyze_function): Avoid calling
37513         mark_irreducible_loops twice.
37514         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
37516 2013-02-07  David S. Miller  <davem@davemloft.net>
37518         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
37519         on 'reg'.
37520         * var-tracking.c (vt_add_function_parameter): Test the presence of
37521         HAVE_window_save properly and do not remap argument registers when
37522         we have a leaf function.
37524 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
37526         PR bootstrap/56227
37527         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
37528         instead of "ll".
37529         * config/i386/i386.c (ix86_print_operand): Ditto.
37531 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
37533         * lra-constraints.c (process_alt_operands): Fix recently added comment.
37535 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
37537         PR rtl-optimization/56225
37538         * lra-constraints.c (process_alt_operands): Check that reload hard
37539         reg can hold value for strict_low_part.
37541 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
37543         PR debug/56154
37544         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
37545         dwarf2out_end_function.
37546         (in_first_function_p, maybe_at_text_label_p,
37547         first_loclabel_num_not_at_text_label): New variables.
37548         (dwarf2out_var_location): In the first function find out
37549         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
37550         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
37551         functions.
37553 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
37555         PR rtl-optimization/56178
37556         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
37557         SUBREG of a register.  Tidy up related block of code.
37558         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
37559         note if the source is a register or a SUBREG of a register.
37561 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
37563         PR target/56228
37564         * config/rs6000/rs6000.md (ptrm): New mode attr.
37565         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
37566         call_value_indirect_aix<pttrsize>,
37567         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
37568         m in constraints.
37570 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
37572         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
37573         if -bnortl. Convert to strcmp and strncmp.
37575 2013-02-07  Alan Modra  <amodra@gmail.com>
37577         PR target/54009
37578         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
37579         addresses won't wrap when offsetting.
37580         (rs6000_secondary_reload): Provide secondary reloads needed for
37581         wrapping LO_SUM addresses.
37583 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
37585         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
37586         MACH, just __MACH__.
37588 2013-02-06  Richard Biener  <rguenther@suse.de>
37590         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
37591         instead of calling fix_loop_structure.
37593 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
37595         PR middle-end/56217
37596         * omp-low.c (use_pointer_for_field): Return false if
37597         lower_send_shared_vars doesn't generate any copy-out code.
37599 2013-02-06  Tom de Vries  <tom@codesourcery.com>
37601         PR rtl-optimization/56131
37602         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
37603         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
37604         of the label is NULL.  Add comment.
37606 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
37608         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
37610         PR sanitizer/55374
37611         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
37612         (STATIC_LIBTSAN_LIBS): Likewise.
37613         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
37614         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
37615         is defined, don't add anything else beyond that.
37616         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
37617         (LINK_COMMAND_SPEC): Use them.
37619         PR tree-optimization/56205
37620         * tree-stdarg.c (check_all_va_list_escapes): Return true if
37621         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
37622         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
37624 2013-02-05  Richard Biener  <rguenther@suse.de>
37626         PR tree-optimization/53342
37627         PR tree-optimization/53185
37628         * tree-vectorizer.h (vect_check_strided_load): Remove.
37629         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
37630         not disallow peeling for vectorized strided loads.
37631         (vect_check_strided_load): Make static and simplify.
37632         (vect_analyze_data_refs): Adjust.
37633         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
37634         correctly when vectorizing strided loads.
37636 2013-02-05  Richard Biener  <rguenther@suse.de>
37638         * doc/install.texi: Refer to ISL, not PPL.
37640 2013-02-05  Jan Hubicka  <jh@suse.cz>
37642         PR tree-optimization/55789
37643         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
37645 2013-02-05  Jan Hubicka  <jh@suse.cz>
37647         PR tree-optimization/55789
37648         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
37649         the dead call anyway.
37651 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
37653         PR sanitizer/55374
37654         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
37656 2013-02-04  Alexander Potapenko  <glider@google.com>
37657             Jack Howarth  <howarth@bromo.med.uc.edu>
37658             Jakub Jelinek  <jakub@redhat.com>
37660         PR sanitizer/55617
37661         * config/darwin.c (sort_ctor_records): Stabilized qsort
37662         on constructor priority by using original position.
37663         (finalize_ctors): New routine to sort constructors by
37664         priority before use in assemble_integer.
37665         (machopic_asm_out_constructor): Use finalize_ctors if needed.
37667 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
37669         PR libstdc++/54314
37670         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
37671         about visibility on artificial decls.
37672         * config/sol2.c (solaris_assemble_visibility): Likewise.
37674 2013-02-04  Kai Tietz  <ktietz@redhat.com>
37676         PR target/56186
37677         * config/i386/i386.c (function_value_ms_64): Add additional valtype
37678         argument and improve checking of return-argument types for 16-byte
37679         modes.
37680         (ix86_function_value_1): Add additional valtype argument on call
37681         of function_value_64.
37682         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
37683         handling infunction_value_64 function.
37685 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
37687         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
37689 2013-02-04  Richard Biener  <rguenther@suse.de>
37691         PR tree-optimization/56188
37692         * tree-ssa-structalias.c (label_visit): Consider case with
37693         initially non-empty points-to set.
37694         (perform_var_substitution): Dump node mapping and clean up.
37696 2013-02-04  Richard Guenther  <rguenther@suse.de>
37698         PR lto/56168
37699         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
37700         node prevail as last resort.
37701         (lto_symtab_merge_decls): Remove guard on LTRANS here.
37702         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
37704 2013-02-04  Richard Biener  <rguenther@suse.de>
37706         PR tree-optimization/56113
37707         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
37708         Merge into ...
37709         (equiv_class_lookup_or_add): ... this.
37710         (label_visit): Adjust and fix error in previous patch.
37711         (perform_var_substitution): Adjust.
37713 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
37715         * config/sh/divtab.c: Fix formatting and comments throughout the file.
37716         * config/sh/sh4-300.md: Likewise.
37717         * config/sh/sh4a.md: Likewise.
37718         * config/sh/constraints.md: Likewise.
37719         * config/sh/sh.md: Likewise.
37720         * config/sh/netbsd-elf.h: Likewise.
37721         * config/sh/predicates.md: Likewise.
37722         * config/sh/sh-protos.h: Likewise.
37723         * config/sh/ushmedia.h: Likewise.
37724         * config/sh/linux.h: Likewise.
37725         * config/sh/sh.c: Likewise.
37726         * config/sh/superh.h: Likewise.
37727         * config/sh/elf.h: Likewise.
37728         * config/sh/sh4.md: Likewise.
37729         * config/sh/sh.h: Likewise.
37731 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
37733         * config/pa/constraints.md: Adjust unused letters.  Change "T"
37734         constraint to match_test floating_point_store_memory_operand().
37735         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
37736         (base14_operand): New.
37737         (floating_point_store_memory_operand): New.
37738         (integer_store_memory_operand): Revise to use base14_operand and
37739         reg_plus_base_memory_operand.
37740         (move_dest_operand): Allow symbolic_memory_operands.
37741         (symbolic_memory_operand): Check for LO_SOM.
37742         (symbolic_operand): Change default case to break.
37743         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
37744         CONST_DOUBLE values to be reloaded by putting them into memory when
37745         the destination is a floating point register.
37746         (movdf): Remove code to handle CONST_DOUBLE.
37747         (movsf): Likewise.
37748         (reload_indf_r1): New.
37749         (reload_insf_r1): New.
37750         Consistently use "Q" and "T" constraints with integer and floating
37751         point move instructions, respectively.
37752         (movdi): Remove FAIL.
37753         Change predicate for source operand unamed DImode move from
37754         general_operand to move_src_operand.
37755         (umulsidi3): Change predicate for destination operand to
37756         register_operand.
37757         Likewise for similar unamed patterns.
37758         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
37759         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
37760         (hppa_legitimize_address): Simplify mask calculation.
37761         (pa_emit_move_sequence): Revised handling of secondary reloads from
37762         REG+D addresses for floating point loads and stores.  Directly handle
37763         loading CONST0_RTX (mode) to a floating point register.
37764         (pa_secondary_reload): Handle reloading DF and SFmode constant values
37765         to floating point registers.  Don't restrict secondary reloads to
37766         floating point registers to integer modes.  Revise some comments and
37767         cleanup some code.
37768         (TARGET_LEGITIMATE_ADDRESS_P): Define.
37769         (pa_legitimate_address_p): New.
37770         (pa_legitimize_reload_address): New.
37771         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
37772         (STRICT_REG_OK_FOR_BASE_P): New.
37773         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
37774         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
37776 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
37777             Andrew Dixie  <andrewd@gentrack.com>
37779         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
37780         flag set.
37782 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
37784         * expmed.c (extract_bit_field_1): Pass the full width of the
37785         structure to get_best_reg_extraction_insn.
37787 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
37789         PR target/54601
37790         * configure.ac (use_cxa_atexit): Add AIX.
37791         * configure: Regenerate.
37793         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
37795 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
37797         PR debug/54793
37798         * final.c (need_profile_function): New variable.
37799         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
37800         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
37801         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
37802         notes, targetm.asm_out.function_prologue doesn't emit anything,
37803         HAVE_prologue and profiler should be emitted before prologue,
37804         set need_profile_function instead of emitting it.
37805         (final_scan_insn): If need_profile_function, emit
37806         profile_function on the first NOTE_INSN_BASIC_BLOCK or
37807         NOTE_INSN_FUNCTION_BEG note.
37809 2013-02-01  Richard Henderson  <rth@redhat.com>
37811         * config/rs6000/rs6000.md (smulditi3): New.
37812         (umulditi3): New.
37814         * config/alpha/alpha.md (umulditi3): New.
37816 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
37818         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
37819         (ASM_OUTPUT_ALIGNED_LOCAL): New.
37821 2013-02-01  Richard Biener  <rguenther@suse.de>
37823         PR tree-optimization/56113
37824         * tree-ssa-structalias.c (label_visit): Reduce work for
37825         single-predecessor nodes.
37827 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
37829         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
37830         range isn't testing for zero.
37832 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
37834         PR middle-end/56113
37835         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
37837 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
37838             Nick Clifton  <nickc@redhat.com>
37840         * config/v850/constraints.md (Q): Define as a memory constraint.
37841         * config/v850/predicates.md (label_ref_operand): New predicate.
37842         (e3v5_shift_operand): New predicate.
37843         (ior_operator): New predicate.
37844         * config/v850/t-v850: Add e3v5 multilib.
37845         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
37846         (v850_gen_movdi): Prototype.
37847         * config/v850/v850.c: Add support for e3v5 architecture.
37848         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
37849         TARGET_V850E_UP.
37850         (construct_save_jarl): Add e3v5 long JARL support.
37851         (v850_adjust_insn_length): New function.  Adjust length of call
37852         insns when using e3v5 instructions.
37853         (v850_gen_movdi): New function: Generate instructions to move a
37854         DImode value.
37855         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
37856         (CPP_SPEC): Define __v850e3v5__ as appropriate.
37857         (TARGET_USE_FPU): Enable for e3v5.
37858         (CONST_OK_FOR_W): New macro.
37859         (ADJUST_INSN_LENGTH): Define.
37860         * config/v850/v850.md (UNSPEC_LOOP): Define.
37861         (attr cpu): Add v850e3v5.
37862         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
37863         (movdi): New pattern.
37864         (movdi_internal): New pattern.
37865         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
37866         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
37867         (cstoresf4): Likewise.
37868         (cstoredf4): Likewise.
37869         (insv): New pattern.
37870         (rotlso3_a): New pattern.
37871         (rotlsi3_b): New pattern
37872         (rotlsi3_v850e3v5): New pattern.
37873         (doloop_begin): New pattern.
37874         (fix_loop_counter): New pattern.
37875         (doloop_end): New pattern.
37876         (branch_normal): Add e3v5 long branch support.
37877         (branch_invert): Likewise.
37878         (branch_z_normal): Likewise.
37879         (branch_z_invert): Likewise.
37880         (branch_nz_normal): Likewise.
37881         (branch_nz_invert): Likewise.
37882         (call_internal_short): Add e3v5 register-indirect JARL support.
37883         (call_internal_long): Likewise.
37884         (call_value_internal_short): Likewise.
37885         (call_value_internal_long): Likewise.
37886         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
37887         (mloop): New option.
37888         * config.gcc: Add support for configuring v840e3v5 target.
37889         * doc/invoke.texi: Document new v850 specific command line options.
37891 2013-01-31  Paul Koning  <ni1d@arrl.net>
37893         PR debug/55059
37894         PR debug/54508
37895         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
37896         children if parent is a class.
37897         (prune_unused_types_prune): Don't add DW_AT_declaration.
37899 2013-01-31  Richard Biener  <rguenther@suse.de>
37901         PR tree-optimization/56157
37902         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
37903         match up operand with SLP child.
37905 2013-01-31  Jason Merrill  <jason@redhat.com>
37907         PR debug/54410
37908         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
37909         parameters the first time.
37910         (gen_scheduled_generic_parms_dies): Check completeness here.
37912 2013-01-31  Richard Biener  <rguenther@suse.de>
37914         PR middle-end/53073
37915         * common.opt (faggressive-loop-optimizations): New flag,
37916         enabled by default.
37917         * doc/invoke.texi (faggressive-loop-optimizations): Document.
37918         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
37919         infer_loop_bounds_from_undefined by it.
37921 2013-01-31  Richard Biener  <rguenther@suse.de>
37923         PR tree-optimization/56150
37924         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
37925         visit virtual operands.
37926         (find_uses_to_rename_bb): Likewise.
37928 2013-01-31  Richard Biener  <rguenther@suse.de>
37930         PR tree-optimization/56150
37931         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
37932         mixed store non-store stmts.
37934 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
37936         PR sanitizer/55374
37937         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
37938         LIBASAN_EARLY_SPEC is defined.
37939         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
37940         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
37941         before %o.
37942         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
37944         PR c++/55742
37945         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
37946         invalid args instead of ICEing on it.
37947         (ix86_valid_target_attribute_tree): Return error_mark_node if
37948         ix86_valid_target_attribute_inner_p failed.
37949         (ix86_valid_target_attribute_p): Return false only if
37950         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
37951         target("default") attribute.
37952         (sorted_attr_string): Change argument from const char * to tree,
37953         merge in all target attribute arguments rather than just one.
37954         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
37955         instead of free.  Avoid using strcat.
37956         (ix86_mangle_function_version_assembler_name): Mangle
37957         target("default") as if no target attribute is present.  Adjust
37958         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
37959         instead of xmalloc and XDELETEVEC instead of free.
37960         (ix86_function_versions): Don't return true if one of the decls
37961         doesn't have target attribute.  If they don't and one of the decls
37962         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
37963         sorted_attr_string caller.  Use XDELETEVEC instead of free.
37964         (ix86_supports_function_versions): Remove.
37965         (make_name): Fix up formatting.
37966         (make_dispatcher_decl): Remove resolver_name and its initialization.
37967         Avoid leaking memory.
37968         (is_function_default_version): Return true if there is
37969         target("default") attribute rather than no target attribute at all.
37970         (make_resolver_func): Avoid leaking memory.
37971         (ix86_generate_version_dispatcher_body): Likewise.
37972         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
37973         * target.def (supports_function_versions): Remove.
37974         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
37975         * doc/tm.texi: Regenerated.
37977 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
37979         PR rtl-optimization/56144
37980         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
37981         for values with side effects.
37983 2013-01-30  Richard Biener  <rguenther@suse.de>
37985         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
37986         (sparseset_pop): Likewise.
37987         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
37988         to be able to use quick_push in the worker loop.
37990 2013-01-30  Marek Polacek  <polacek@redhat.com>
37992         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
37994 2013-01-30  Richard Biener  <rguenther@suse.de>
37996         PR lto/56147
37997         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
37999 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
38001         PR tree-optimization/56064
38002         * fixed-value.c (fixed_from_double_int): New function.
38003         * fixed-value.h (fixed_from_double_int): New prototype.
38004         (const_fixed_from_double_int): New static inline function.
38005         * fold-const.c (native_interpret_fixed): New static function.
38006         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
38007         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
38008         (native_encode_fixed): New static function.
38009         (native_encode_expr) <FIXED_CST>: Use it.
38010         (native_interpret_int): Move double_int worker code to...
38011         * double-int.c (double_int::from_buffer): ...this new static method.
38012         * double-int.h (double_int::from_buffer): Prototype it.
38014 2013-01-30  Richard Biener  <rguenther@suse.de>
38016         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
38017         New pointer-map and obstack.
38018         (init_alias_vars): Allocate pointer-map and obstack.
38019         (delete_points_to_sets): Free them.
38020         (find_what_var_points_to): Cache result.
38021         (find_what_p_points_to): Adjust for changed interface of
38022         find_what_var_points_to.
38023         (compute_points_to_sets): Likewise.
38024         (ipa_pta_execute): Likewise.
38026 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38028         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
38029         * configure: Regenerate.
38030         * config.in: Regenerate.
38031         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
38032         #nobits/#progbits if supported.
38034 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
38036         PR target/56121
38037         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
38038         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
38039         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
38041 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
38043         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
38044         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
38046 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
38048         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
38049         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
38051 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
38053         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
38054         declaration.
38055         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
38056         * config/arm/cortex-a7.md: New bypasses using
38057         arm_mac_accumulator_is_result.
38059 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
38061         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
38062         (cortex_a7_neon_mla): Likewise.
38063         (cortex_a7_fpfmad): New reservation.
38064         (cortex_a7_fpmacs): Use ffmas and update required units.
38065         (cortex_a7_fpmuld): Update required units and latency.
38066         (cortex_a7_fpmacd): Likewise.
38067         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
38068         (cortex_a7_neon). Likewise.
38069         (bypass) Update participating units.
38071 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
38073         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
38074         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
38075         from fmac to ffma.
38076         * config/arm/vfp11.md (vfp_farith): Use ffmas.
38077         (vfp_fmul): Use ffmad.
38078         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
38079         (cortex_r4_fmacd): Use ffmad.
38080         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
38081         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
38082         (cortex_a9_fmacd): Use ffmad.
38083         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
38084         (cortex_a8_vfp_macd): Use ffmad.
38085         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
38086         (cortex_a5_fpmacd): Use ffmad.
38087         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
38088         (cortex_a15_vfp_macd): Use ffmad.
38089         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
38091 2013-01-29  Jason Merrill  <jason@redhat.com>
38093         PR libstdc++/54314
38094         * varasm.c (default_assemble_visibility): Don't warn about
38095         visibility on artificial decls.
38097 2013-01-29  Richard Biener  <rguenther@suse.de>
38099         PR tree-optimization/56113
38100         * tree-ssa-structalias.c (equiv_class_lookup): Also return
38101         the bitmap leader.
38102         (label_visit): Free duplicate bitmaps and record the leader instead.
38103         (perform_var_substitution): Adjust.
38105 2013-01-29  Richard Biener  <rguenther@suse.de>
38107         PR tree-optimization/55270
38108         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
38109         the CFG, schedule loops for fixup.
38111 2013-01-29  Nick Clifton  <nickc@redhat.com>
38113         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
38114         SP_REG.
38116 2013-01-28  Leif Ekblad  <leif@rdos.net>
38118         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
38119         * config/i386/i386.h (TARGET_RDOS): New macro.
38120         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
38121         * config/i386/i386.c (ix86_option_override_internal): For 64bit
38122         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
38123         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
38124         DEFAULT_LARGE_SECTION_THRESHOLD.
38125         * config/i386/i386.md (R14_REG, R15_REG): New constants.
38126         * config/i386/rdos.h: New file.
38127         * config/i386/rdos64.h: New file.
38129 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
38131         PR other/54814
38132         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
38133         TEST_HARD_REG_BIT.
38135 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
38137         PR rtl-optimization/56117
38138         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
38139         call cselib_lookup_from_insn on the MEM before calling
38140         add_insn_mem_dependence.
38142 2013-01-28  Richard Biener  <rguenther@suse.de>
38144         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
38145         to a stmt that didn't have one.
38146         (copy_phis_for_bb): Likewise for PHI arguments.
38147         (copy_debug_stmt): Likewise for debug stmts.
38149 2013-01-28  Richard Biener  <rguenther@suse.de>
38151         PR tree-optimization/56034
38152         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
38153         (partition_builtin_p): Adjust.
38154         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
38155         it is the last partition.
38156         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
38157         up the vertex for the definition.
38158         (classify_partition): Classify whether a partition is a
38159         PKIND_REDUCTION, thus has uses outside of the loop.
38160         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
38161         Merge all PKIND_REDUCTION partitions into the last partition.
38162         (tree_loop_distribution): Seed partitions from reductions as well.
38164 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
38166         PR tree-optimization/56125
38167         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
38168         pow(x,c) into sqrt(x) * powi(x, n/2) or
38169         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
38170         optimizing for size.
38171         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
38172         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
38173         integer.
38175         PR tree-optimization/56094
38176         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
38177         to UNKNOWN_LOCATION while gimplifying expr.
38179 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
38181         PR target/56114
38182         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
38183         operand 0 in movabs insn template for -masm=intel asm alternative.
38184         (*movabs<mode>_2): Ditto for operand 1.
38186 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
38188         PR target/54663
38189         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
38190         of microblaze-c.o
38192 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
38194         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
38195         tm_file.
38197 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
38199         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
38200         Undef to avoid warning.
38202 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
38204         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
38205         * configure: Regenerate.
38207 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
38209         PR tree-optimization/56098
38210         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
38211         for stmts with volatile ops.
38212         (cond_store_replacement): Don't optimize if assign has volatile ops.
38213         (cond_if_else_store_replacement_1): Don't optimize if either
38214         then_assign or else_assign have volatile ops.
38215         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
38216         volatile ops.
38218 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
38220         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
38222 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
38224         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
38225         missing ':' in asm example.
38227 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
38229         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
38230         entries into lane and laneq entries.
38231         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
38232         Remove AdvSIMD scalar modes.
38233         (aarch64_sq<r>dmulh_laneq<mode>): New.
38234         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
38235         modes.
38236         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
38237         builtin implementations to relfect changes in RTL in aarch64-simd.md.
38238         * config/aarch64/iterators.md (VCOND): New.
38239         (VCONQ): New.
38241 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
38243         PR target/54222
38244         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
38245         Add NULL LIBNAME argument to existing definitions.
38246         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
38247         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
38248         * config/avr/avr.c (DEF_BUILTIN): Same.
38249         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
38250         (avr_expand_builtin): Expand to a vanilla call if a libgcc
38251         implementation is available (DECL_ASSEMBLER_NAME is set).
38252         (avr_fold_absfx): New static function.
38253         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
38254         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
38255         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
38256         AVR_BUILTIN_ABSLLK.
38257         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
38258         (abshk, absk, abslk, absllk): Provide as static inline functions.
38260 2013-01-25  Marek Polacek  <polacek@redhat.com>
38262         PR tree-optimization/56035
38263         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
38265 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
38267         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
38268         (*movtf_internal_rex64): Add (!o,C) alternative
38269         (*movxf_internal_rex64): Ditto.
38270         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
38272 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
38274         * doc/invoke.texi: fix typo.
38275         * doc/objc.texi: fix typo.
38277 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
38279         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
38280         for the first two alternatives.
38282 2013-01-24  Diego Novillo  <dnovillo@google.com>
38284         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
38285         (ggc-zone.o): Remove.
38286         * configure.ac: Remove option --with-gc.
38287         * configure: Re-generate.
38288         * doc/install.texi: Remove documentation for --with-gc.
38289         * gengtype.c (write_enum_defn): Remove.  Update all users.
38290         (write_Types_process_field): Remove generation of gt_e_* argument.
38291         (output_type_enum): Remove.  Update all users.
38292         (write_enum_defn): Remove.  Update all users.
38293         (enum alloc_zone): Remove.  Update all users.
38294         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
38295         * ggc-common.c (ggc_splay_alloc): Remove first argument.
38296         Update all callers.
38297         (struct ptr_data): Remove field TYPE.  Update all users.
38298         (gt_pch_note_object): Remove argument TYPE.  Update all users.
38299         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
38300         Update all users.
38301         * ggc-none.c (ggc_alloc_typed_stat): Remove.
38302         (struct alloc_zone): Remove.
38303         (ggc_internal_alloc_zone_stat): Remove.
38304         (ggc_internal_cleared_alloc_zone_stat): Remove.
38305         * ggc-page.c (ggc_alloc_typed_stat): Remove.
38306         (ggc_pch_count_object): Remove last argument.  Update all users.
38307         (ggc_pch_alloc_object): Remove last argument.  Update all users.
38308         (struct alloc_zone): Remove.
38309         * ggc-zone.c: Remove.
38310         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
38311         (struct alloc_zone): Remove.
38312         (ggc_alloc_typed_stat): Remove.
38313         (ggc_alloc_typed): Remove.
38314         (ggc_splay_alloc): Remove first argument.
38315         (rtl_zone): Remove.  Update all users.
38316         (tree_zone): Remove.  Update all users.
38317         (tree_id_zone): Remove.  Update all users.
38318         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
38319         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
38320         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
38321         * tree-ssanames.c: Remove references to zone allocator in comments.
38323 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
38325         * config/avr/avr.c (avr_out_fract): Make register numbers that
38326         might be outside of source operand signed.
38328 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
38330         * config/i386/constraints.md (Yf): New constraint.
38331         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
38332         of f constraint to conditionaly disable x87 register preferences.
38333         (*movdf_internal): Ditto.
38334         (*movsf_internal): Ditto.
38336 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
38338         PR inline-asm/55934
38339         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
38340         that have operands with impossible constraints.
38341         Add a FIXME for a speed-up opportunity.
38342         * lra-constraints.c (process_alt_operands): Verify that a class
38343         selected from constraints on asms is valid for the operand mode.
38344         (curr_insn_transform): Remove incorrect comment.
38346 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
38348         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
38349         TOC operand is a valid symbol ref in the constant pool.
38351 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
38353         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
38355 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
38357         PR target/54222
38358         * config/avr/stdfix.h: New file.
38359         * t-avr (stdfix-gcc.h): New rule to build it.
38360         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
38362 2013-01-23  Kostya Serebryany  <kcc@google.com>
38364         * config/darwin.h: remove dependency on
38365         CoreFoundation (asan on Mac OS).
38367 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
38369         PR target/49069
38370         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
38371         instead of cmpdi_operand for first comparison operand.
38372         Don't assert that comparison operands aren't both constants.
38374 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
38376         * doc/install.texi (Downloading the Source): Update references to
38377         downloading separate components.
38379 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
38381         * doc/extend.texi (__int128): Improve grammar.
38383 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
38385         PR target/56028
38386         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
38387         alternative to (o,r).
38388         (*movdi_internal_rex64): Remove (!o,n) alternative.
38389         (DImode immediate->memory splitter): Remove.
38390         (DImode immediate->memory peephole2): Remove.
38391         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
38392         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
38393         alternative to (!o,*r).
38394         (*movtf_internal_sse): New pattern.
38395         (*movxf_internal_rex64): New pattern.
38396         (*movxf_internal): Disable for TARGET_64BIT.
38397         (*movdf_internal_rex64): Remove (!o,F) alternative.
38399 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
38401         PR middle-end/56074
38402         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
38403         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
38404         * tree-vect-loop-manip.c (find_loop_location): Also ignore
38405         stmt locations where LOCATION_LOCUS of the stmt location is
38406         UNKNOWN_LOCATION or BUILTINS_LOCATION.
38408         PR target/55686
38409         * config/i386/i386.md (UNSPEC_STOS): New.
38410         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
38411         *strsetqi_1): Add UNSPEC_STOS.
38413 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
38415         PR c++/56067
38416         * doc/invoke.texi: Remove left over -Wsynth example.
38418 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
38420         PR tree-optimization/56051
38421         * fold-const.c (fold_binary_loc): Don't fold
38422         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
38423         a narrowing conversion, or widening conversion from signed
38424         to unsigned.
38426 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
38428         PR rtl-optimization/56023
38429         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
38430         dependent on debug instruction.
38432 2013-01-21  Martin Jambor  <mjambor@suse.cz>
38434         PR middle-end/56022
38435         * function.c (allocate_struct_function): Call
38436         invoke_set_current_function_hook earlier.
38438 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
38440         * reload1.c (init_reload): Only initialize reload_obstack
38441         during the first call.
38443 2013-01-21  Marek Polacek  <polacek@redhat.com>
38445         * cfgloop.c (verify_loop_structure): Fix up grammar.
38447 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
38449         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
38450         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
38452 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
38454         PR target/56058
38455         * config/arm/marvell-pj4.md: Update copyright year.
38456         Fix up use of alu to alu_reg and simple_alu_imm.
38458 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
38460         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
38462 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
38464         PR target/55433
38465         * lra-constraints.c (curr_insn_transform): Don't reuse original
38466         insn for secondary memory move when memory mode should be different.
38468 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
38470         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
38471         atomic_storedi_1): New patterns.
38473 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
38475         btver2 pipeline descriptions.
38476         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
38477         descriptions.
38478         * config/i386/i386.md (btver2_decode): New type attributes.
38479         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
38480         type attributes.
38481         * config/i386/btver2.md: New file describing btver2 pipelines.
38483 2013-01-19  Andrew Pinski  <apinski@cavium.com>
38485         PR tree-optimization/52631
38486         * tree-ssa-sccvn (visit_use): Before looking up the original
38487         statement, try looking up the simplified expression.
38489 2013-01-19  Anthony Green  <green@moxielogic.com>
38491         * config/moxie/moxie.c (moxie_expand_prologue): Set
38492         current_function_static_stack_size.
38494 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
38496         PR tree-optimization/56029
38497         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
38498         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
38500 2013-01-18  Sharad Singhai  <singhai@google.com>
38502         PR tree-optimization/55995
38503         * dumpfile.c (dump_loc): Print location only if available.
38504         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
38506 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
38508         PR target/55433
38509         * lra-constraints.c (curr_insn_transform): Reuse original insn for
38510         secondary memory move.
38511         (inherit_reload_reg): Use rclass instead of cl for
38512         check_secondary_memory_needed_p.
38514 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
38516         PR middle-end/56015
38517         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
38518         the case where writing real complex part of target modifies op1.
38520 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
38522         * config/aarch64/aarch64-simd.md
38523         (aarch64_vcond_internal<mode>): Handle unordered cases.
38524         * config/aarch64/iterators.md (v_cmp_result): New.
38526 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
38527             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
38529         * config/arm/marvell-pj4.md: New file.
38530         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
38531         * config/arm/arm.md (generic_sched): Add marvell_pj4.
38532         (generic_vfp): Likewise.
38533         * config/arm/arm-cores.def: Add marvell-pj4.
38534         * config/arm/arm-tune.md: Regenerate.
38535         * config/arm/arm-tables.opt: Regenerate.
38536         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
38537         * doc/invoke.texi: Document marvell-pj4.
38539 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
38541         * config/aarch64/arm_neon.h: Map scalar types to standard types.
38543 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
38545         PR debug/54114
38546         PR debug/54402
38547         PR debug/49888
38548         * var-tracking.c (negative_power_of_two_p): New.
38549         (global_get_addr_cache, local_get_addr_cache): New.
38550         (get_addr_from_global_cache, get_addr_from_local_cache): New.
38551         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
38552         heading comment.
38553         (vt_stack_offset_p): Remove.
38554         (vt_canon_true_dep): Always canonicalize loc's address.
38555         (clobber_overlapping_mems): Make sure we have a MEM.
38556         (local_get_addr_clear_given_value): New.
38557         (val_reset): Clear local cached entries.
38558         (compute_bb_dataflow): Create and release the local cache.
38559         Disable duplicate MEMs clobbering.
38560         (emit_notes_in_bb): Clobber MEMs likewise.
38561         (vt_emit_notes): Create and release the local cache.
38562         (vt_initialize, vt_finalize): Create and release the global
38563         cache, respectively.
38564         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
38566 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
38568         PR libmudflap/53359
38569         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
38570         not found in the symtab.
38572 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
38574         PR debug/56006
38575         PR rtl-optimization/55547
38576         PR rtl-optimization/53827
38577         PR debug/53671
38578         PR debug/49888
38579         * alias.c (offset_overlap_p): New, factored out of...
38580         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
38581         the conservative special case for symbolic constants.  Don't
38582         adjust zero sizes on alignment.
38584 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
38586         PR rtl-optimization/52573
38587         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
38588         REG_UNUSED for the same register.
38590 2013-01-17  Richard Biener  <rguenther@suse.de>
38591             Marek Polacek  <polacek@redhat.com>
38593         PR rtl-optimization/55833
38594         * loop-unswitch.c (unswitch_loops): Move loop verification...
38595         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
38596         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
38597         Set it to true when we're removing a loop from hierarchy tree in
38598         an irreducible region.
38599         (fix_bb_placements): Adjust caller.
38600         (fix_loop_placements): Likewise.
38602 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
38604         * config/avr/builtins.def (DEF_BUILTIN): Factor out
38605         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
38606         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
38607         Remove ID.  Adjust comments.
38608         * config/avr/avr-c.c (avr_builtin_name): Remove.
38609         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
38610         * config/avr/avr.c (avr_tolower): New static function.
38611         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
38612         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
38613         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
38614         default expansion.
38616 2013-01-17  Jan Hubicka  <jh@suse.cz>
38618         PR tree-optimization/55273
38619         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
38621 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
38623         PR target/55981
38624         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
38625         store through atomic_store<mode>_1.
38626         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
38628 2013-01-17  Martin Jambor  <mjambor@suse.cz>
38630         PR tree-optimizations/55264
38631         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
38632         for virtual methods.
38633         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
38634         virtual methods before inlining is over.
38635         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
38636         virtual functions.
38637         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
38638         non-virtual.
38640 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
38642         PR rtl-optimization/56005
38643         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
38644         pending reads for prefetch.
38646 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
38648         * config/aarch64/aarch64.md
38649         (*cstoresi_neg_uxtw): New pattern.
38650         (*cmovsi_insn_uxtw): New pattern.
38651         (*<optab>si3_uxtw): New pattern.
38652         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
38653         (*<optab>si3_insn_uxtw): New pattern.
38654         (*bswapsi2_uxtw): New pattern.
38656 2013-01-16  Richard Biener  <rguenther@suse.de>
38658         * tree-inline.c (tree_function_versioning): Remove set but
38659         never used variable.
38661 2013-01-16  Richard Biener  <rguenther@suse.de>
38663         PR tree-optimization/55964
38664         * tree-flow.h (rename_variables_in_loop): Remove.
38665         (rename_variables_in_bb): Likewise.
38666         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
38667         (copy_loop_before): Adjust and delete update-ssa status.
38668         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
38669         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
38670         (rename_variables_in_loop): Remove.
38671         (slpeel_update_phis_for_duplicate_loop): Likewise.
38672         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
38673         use available cfg machinery instead of duplicating it.
38674         Update PHI nodes and perform poor-mans SSA update here.
38675         (slpeel_tree_peel_loop_to_edge): Adjust.
38677 2013-01-16  Richard Biener  <rguenther@suse.de>
38679         PR tree-optimization/54767
38680         PR tree-optimization/53465
38681         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
38682         (vrp_visit_phi_node): For PHI arguments coming via backedges
38683         drop all symbolical range information.
38684         (execute_vrp): Compute backedges.
38686 2013-01-16  Richard Biener  <rguenther@suse.de>
38688         * doc/install.texi: Update CLooG and ISL requirements to
38689         0.18.0 and 0.11.1.
38691 2013-01-16  Christian Bruel  <christian.bruel@st.com>
38693         PR target/55301
38694         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
38695         (broken_move): Handle UNSPECV_SP_SWITCH_B.
38696         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
38698 2013-01-16  DJ Delorie  <dj@redhat.com>
38700         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
38701         (UNSPECV_SP_SWITCH_E): New.
38702         (sp_switch_1): Change to an unspec.
38703         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
38704         replace $r15.
38706 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
38708         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
38709         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
38710         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
38711         (expand_mem_thread_fence): Ditto.
38712         (expand_mem_signal_fence): Ditto.
38713         (expand_atomic_load): Ditto.
38714         (expand_atomic_store): Ditto.
38716 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
38718         PR rtl-optimization/55547
38719         PR rtl-optimization/53827
38720         PR debug/53671
38721         PR debug/49888
38722         * alias.c (memrefs_conflict_p): Set sizes to negative after
38723         AND adjustments.
38725 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
38727         PR target/55940
38728         * function.c (thread_prologue_and_epilogue_insns): Always
38729         add crtl->drap_reg to set_up_by_prologue.set, even if
38730         stack_realign_drap is false.
38732 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
38734         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
38735         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
38736         *call): Fix indention.
38738 2013-01-15  Tom de Vries  <tom@codesourcery.com>
38740         PR target/55876
38741         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
38742         Update comment.
38744 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
38746         PR rtl-optimization/55153
38747         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
38749 2013-01-15  Martin Jambor  <mjambor@suse.cz>
38751         PR tree-optimization/55920
38752         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
38753         accesses as grp_to_be_debug_replaced.
38755 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
38757         PR tree-optimization/55920
38758         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
38759         there is non-useless type conversion needed from debug rhs to lhs,
38760         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
38762 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
38763             Mikael Pettersson  <mikpe@it.uu.se>
38765         PR target/43961
38766         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
38767         Thumb.
38768         (ASM_OUTPUT_CASE_LABEL): Remove.
38769         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
38770         * final.c (shorten_branches): Update alignment of labels before
38771         jump tables if CASE_VECTOR_SHORTEN_MODE.
38773 2013-01-15  Richard Biener  <rguenther@suse.de>
38775         PR bootstrap/55961
38776         * system.h: Do not include gmp.h for building host tools.
38778 2013-01-15  Richard Biener  <rguenther@suse.de>
38780         PR middle-end/55882
38781         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
38782         account for bitpos when computing alignment.
38784 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
38786         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
38787         (ix86_target_macros_internal): Likewise.
38789         * config/i386/i386.c (m_CORE2I7): Removed.
38790         (m_CORE_HASWELL): New macro.
38791         (m_CORE_ALL): Likewise.
38792         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
38793         (initial_ix86_arch_features): Likewise.
38794         (processor_target_table): Initializations for Core avx2.
38795         (cpu_names): New names "core-avx2".
38796         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
38797         PROCESSOR_CORE_HASWELL.
38798         (ix86_issue_rate): New case.
38799         (ia32_multipass_dfa_lookahead): Likewise.
38800         (ix86_sched_init_global): Likewise.
38802         * config/i386/i386.h (TARGET_HASWELL): New macro.
38803         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
38804         (processor_type): New PROCESSOR_HASWELL.
38806 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
38808         PR tree-optimization/55955
38809         * tree-vect-loop.c (vectorizable_reduction): Give up early on
38810         *SHIFT_EXPR and *ROTATE_EXPR codes.
38812         PR tree-optimization/48766
38813         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
38814         -ftrapv disable -fwrapv.
38816 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
38818         PR target/55974
38819         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
38820         etc. to 1 and not to __flash.
38821         Use LL suffix for __INT24_MAX__ with -mint8.
38822         Use ULL suffix for __UINT24_MAX__ with -mint8.
38824 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
38826         * config/avr/avr-arch.h
38827         (struct base_arch_s): Use typedef avr_arch_t instead.
38828         (struct arch_info_s): Use typedef avr_arch_info_t instead.
38829         (struct mcu_type_s): Use typedef avr_mcu_t instead.
38830         * config/avr/avr.c: Same.
38831         * config/avr/avr-devices.c: Same.
38832         * config/avr/driver-avr.c: Same.
38833         * config/avr/gen-avr-mmcu-texi.c: Same.
38834         * config/avr/avr-mcus.def: Adjust comment.
38836 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
38838         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
38839         * config/aarch64/iterators.md (VALLDI): New.
38841 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
38842             Andi Kleen  <ak@linux.intel.com>
38844         PR target/55948
38845         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
38846         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
38847         memmodel flag.
38849 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
38851         * config/avr/avr-stdint.h: Remove trailing blanks.
38852         * config/avr/avr-log.h: Same.
38853         * config/avr/avr-arch.h: Same.
38854         * config/avr/avr-devices.c: Same.
38855         * config/avr/avr-dimode.md: Same.
38856         * config/avr/predicates.md: Same.
38857         * config/avr/avr-c.c: Same.  And fix typo.
38859         * config/avr/avr-protos.h: Same.  And:
38860         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
38861         (init_cumulative_args): Rename to avr_init_cumulative_args.
38862         (expand_prologue): Rename to avr_expand_prologue.
38863         (expand_epilogue): Rename to avr_expand_epilogue.
38864         (adjust_insn_length): Rename to avr_adjust_insn_length.
38865         (notice_update_cc): Rename to avr_notice_update_cc.
38866         (final_prescan_insn): Rename to avr_final_prescan_insn.
38867         * config/avr/avr.c: Same.
38868         * config/avr/avr.h: Same.
38869         * config/avr/avr.md: Remove trailing blanks.
38870         (prologue): Use avr_expand_prologue.
38871         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
38873 2013-01-14  Richard Biener  <rguenther@suse.de>
38875         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
38876         verify_location, collect_subblocks): New functions.
38877         (verify_gimple_in_cfg): Verify that locations only reference
38878         BLOCKs in the functions BLOCK tree.
38880 2013-01-14  Richard Biener  <rguenther@suse.de>
38882         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
38883         PHI argument.
38884         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
38885         unshare reference.
38886         (insert_out_of_ssa_copy_on_edge): Likewise.
38887         (rewrite_close_phi_out_of_ssa): Likewise.
38888         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
38889         debug expressions.
38890         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
38891         propagated constants.
38892         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
38893         can not be shared.
38895 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
38897         * config/avr/avr-modes.def: Add GPL copyright notice.
38899 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
38901         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
38902         MEMMODEL_MASK to determine memory model.
38903         (atomic_store<mode>): Ditto from operands[2].
38904         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
38906 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
38908         PR fortran/55935
38909         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
38910         (fold_gimple_assign): Don't call unshare_expr here.
38911         (fold_ctor_reference): Call unshare_expr.
38913 2013-01-13  Terry Guo  <terry.guo@arm.com>
38915         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
38916         * doc/fragments.texi: Document MULTILIB_REUSE.
38917         * gcc.c (multilib_reuse): New internal spec.
38918         (set_multilib_dir): Also search multilib from multilib_reuse.
38919         * genmultilib (tmpmultilib3): Refactor code.
38920         (tmpmultilib4): Ditto.
38921         (multilib_reuse): New multilib argument.
38923 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
38925         * Makefile.in: Update copyright.
38927 2013-01-12  Tom de Vries  <tom@codesourcery.com>
38929         PR middle-end/55890
38930         * calls.c (expand_call): Check if arg_nr is valid.
38932 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
38934         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
38935         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
38936         documentation.  Add missing '__' in front of
38937         __builtin_ia32_packssdw256.
38939 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38941         PR target/55719
38942         * config/s390/s390.c (s390_preferred_reload_class): Do not return
38943         NO_REGS for larl operands.
38944         (s390_reload_larl_operand): Use s390_load_address instead of
38945         emit_move_insn.
38947 2013-01-11  Richard Biener  <rguenther@suse.de>
38949         * tree-cfg.c (verify_node_sharing_1): Split out from ...
38950         (verify_node_sharing): ... here.
38951         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
38953 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
38955         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
38956         Substitute TREECHECKING.
38957         * configure: Regenerate.
38958         * Makefile.in (TREECHECKING): New.
38960 2013-01-11  Richard Guenther  <rguenther@suse.de>
38962         PR tree-optimization/44061
38963         * tree-vrp.c (extract_range_basic): Compute zero as
38964         value-range for __builtin_constant_p of function parameters.
38966 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
38968         Update copyright years.
38970 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
38972         PR rtl-optimization/55672
38973         * lra-eliminations.c (mark_not_eliminable): Permit addition with
38974         const to be eliminable.
38976 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
38978         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
38979         * configure: Regenerate.
38981 2013-01-10  Richard Biener  <rguenther@suse.de>
38983         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
38985 2013-01-10  Richard Biener  <rguenther@suse.de>
38987         PR bootstrap/55792
38988         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
38989         locations for virtual PHI arguments.
38990         (rewrite_update_phi_arguments): Likewise.
38992 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
38994         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
38995         on to assembler.
38997 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
38999         PR tree-optimization/55921
39000         * tree-complex.c (expand_complex_asm): New function.
39001         (expand_complex_operations_1): Call it for GIMPLE_ASM.
39003 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39005         PR target/55718
39006         * config/s390/s390.c (s390_symref_operand_p)
39007         (s390_loadrelative_operand_p): Merge the two functions.
39008         (s390_check_qrst_address, print_operand_address): Add parameters
39009         to s390_loadrelative_operand_p invokation.
39010         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
39011         (s390_reload_larl_operand, s390_secondary_reload): Use
39012         s390_loadrelative_operand_p instead of s390_symref_operand_p.
39013         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
39015 2013-01-09  Mike Stump  <mikestump@comcast.net>
39017         * dse.c (record_store): Remove unnecessary assert.
39019 2013-01-09  Jan Hubicka  <jh@suse.cz>
39021         PR tree-optimization/55569
39022         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
39023         * cfgloop.h (scale_loop_profile): Likewise.
39025 2013-01-09  Jan Hubicka  <jh@suse.cz>
39027         PR lto/45375
39028         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
39029         functions.
39030         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
39032 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
39034         PR middle-end/55114
39035         * expr.h (maybe_emit_group_store): Declare.
39036         * expr.c (maybe_emit_group_store): New function.
39037         * builtins.c (expand_builtin_int_roundingfn): Call it.
39038         (expand_builtin_int_roundingfn_2): Likewise.
39040 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
39042         PR rtl-optimization/55829
39043         * lra-constraints.c (match_reload): Add code for absent output.
39044         (curr_insn_transform): Add code for reloads of matched inputs
39045         without output.
39047 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
39049         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
39050         attribute of movddup insn to DF.
39051         (*vec_interleave_lowv2df): Ditto.
39052         (vec_dupv2df): Ditto.
39054 2013-01-09  Jan Hubicka  <jh@suse.cz>
39056         PR tree-optimiation/55875
39057         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
39058         EVERY_ITERATION parameter.
39059         (number_of_iterations_exit): Check if exit is executed every iteration.
39060         (idx_infer_loop_bounds): Similarly here.
39061         (n_of_executions_at_most): Simplify
39062         to only test for cases where statement is dominated by the
39063         particular bound; handle correctly the "postdominance" test.
39064         (scev_probably_wraps_p): Use max loop iterations info
39065         as a global bound first.
39067 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
39068             Nick Clifton  <nickc@redhat.com>
39070         * config/v850/v850.md (cbranchsf4): New pattern.
39071         (cstoresf4): New pattern.
39072         (cbranchdf4): New pattern.
39073         (cstoredf4): New pattern.
39074         (movsicc): Disallow floating point comparisons.
39075         (cmpsf_le_insn): Fix order of operators.
39076         (cmpsf_lt_insn): Likewise.
39077         (cmpsf_eq_insn): Likewise.
39078         (cmpdf_le_insn): Likewise.
39079         (cmpdf_lt_insn): Likewise.
39080         (cmpdf_eq_insn): Likewise.
39081         (cmpsf_ge_insn): Use LE comparison.
39082         (cmpdf_ge_insn): Likewise.
39083         (cmpsf_gt_insn): Use LT comparison.
39084         (cmpdf_gt_insn): Likewise.
39085         (cmpsf_ne_insn): Delete pattern.
39086         (cmpdf_ne_insn): Delete pattern.
39087         * config/v850/v850.c (v850_gen_float_compare): Use
39088         gen_cmpdf_eq_insn for NE comparison.
39089         (v850_float_z_comparison_operator)
39090         (v850_float_nz_comparison_operator): Move from here ...
39091         * config/v850/predicates.md: ... to here.  Move GT and GE
39092         comparisons into v850_float_z_comparison_operator.
39093         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
39094         Delete prototype.
39095         (v850_float_nz_comparison_operator): Likewise.
39097 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
39099         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
39100         with calls to gen_insvsi/gen_insvdi.
39102 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
39104         * config/i386/i386.c (initial_ix86_tune_features): Set up
39105         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
39107 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
39108             Jakub Jelinek  <jakub@redhat.com>
39110         PR tree-optimization/48189
39111         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
39112         If nitercst is 0, don't predict the exit edge.
39114 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
39116         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
39117         in asm_fprintf with reg_names.
39118         (aarch64_print_operand_address): Likewise.
39119         (aarch64_return_addr): Likewise.
39120         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
39122 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
39124         * config/pa/pa.h (VAL_U6_BITS_P): Define.
39125         (INT_U6_BITS): Likewise.
39126         * config/pa/predicates.md (uint6_operand): New predicate.
39127         (shift5_operand, shift6_operand): Likewise.
39128         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
39129         arith32_operand.
39130         (lshrdi3): Use shift6_operand.
39131         (shrpsi4, shrpdi4): New insn patterns.
39132         (extzv): Delete expander.
39133         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
39134         predicates in unamed zero extract patterns.  Tighten common constraint.
39135         (extv): Delete expander.
39136         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
39137         predicates in unamed sign extract patterns.  Tighten common constraint.
39138         (insv): Delete expander.
39139         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
39140         predicates in unamed insert patterns.  Tighten common constraint.
39141         Change uint32_operand predicate to uint6_operand predicate in unamed
39142         DImode pattern to insert constant values of type 1...1xxxx.
39144 2013-01-04  Jan Hubicka  <jh@suse.cz>
39146         PR tree-optimization/55823
39147         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
39148         issue.
39150 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
39151             Uros Bizjak  <ubizjak@gmail.com>
39153         PR rtl-optimization/55845
39154         * df-problems.c (can_move_insns_across): Stop scanning at
39155         volatile_insn_p source instruction or give up if
39156         across_from .. across_to range contains any volatile_insn_p
39157         instructions.
39159 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
39161         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
39162         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
39163         Declare.
39164         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
39165         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
39167 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
39169         PR fortran/55341
39170         * asan.c (asan_clear_shadow): New function.
39171         (asan_emit_stack_protection): Use it.
39173 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
39175         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
39176         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
39177         with tab instead of space.
39179 2013-01-08  Nick Clifton  <nickc@redhat.com>
39181         * config/rl78/rl78.c (rl78_expand_prologue): Always select
39182         register bank 0 at the start of an interrupt handler.
39183         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
39184         MDBH registers.
39186 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
39188         * config/aarch64/aarch64-simd.md
39189         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
39190         (aarch64_simd_bsl): Likewise.
39191         (aarch64_vcond_internal<mode>): Likewise.
39192         (vcond<mode><mode>): Likewise.
39193         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
39194         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
39196 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
39198         * config/aarch64/aarch64-builtins.c
39199         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
39201 2013-01-08  Martin Jambor  <mjambor@suse.cz>
39203         PR debug/55579
39204         * tree-sra.c (analyze_access_subtree): Return true also after
39205         potentially creating a debug-only replacement.
39207 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
39209         PR middle-end/55890
39210         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
39212         PR tree-optimization/54120
39213         * tree-vrp.c (range_fits_type_p): Don't allow
39214         src_precision < precision from signed vr to unsigned_p
39215         if vr->min or vr->max is negative.
39216         (simplify_float_conversion_using_ranges): Test can_float_p
39217         against CODE_FOR_nothing.
39219 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
39220             Richard Biener  <rguenther@suse.de>
39222         PR middle-end/55851
39223         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
39224         types instead of just INTEGER_TYPE types.
39226 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
39228         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
39229         TF_SIZE): Define.
39231 2013-01-07  Steve Ellcey  <sellcey@mips.com>
39233         PR target/42661
39234         * config/mips/mips.opt: Change mad to mmad to match documentation.
39236 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
39238         PR target/55897
39239         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
39240         .progmemx.data now.
39242 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
39244         PR target/55897
39245         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
39246         (avr_addrspace_t): Add .section_name field.
39247         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
39248         array size.
39249         (avr_addrspace): Same.  Initialize .section_name.  Remove last
39250         NULL entry.  Put __memx into .progmemx.data.
39251         (progmem_section_prefix): Remove.
39252         (avr_asm_init_sections): No need to initialize progmem_section.
39253         (avr_asm_named_section): Use avr_addrspace[].section_name to get
39254         section name prefix.
39255         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
39256         retrieve the progmem section.
39257         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
39258         boundary to run over avr_addrspace[].
39259         (avr_register_target_pragmas): Ditto.
39261 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
39263         * varasm.c (output_constant_def_contents): For asan_protect_global
39264         protected strings, adjust DECL_ALIGN if needed, before testing for
39265         anchored symbols.
39266         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
39267         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
39268         normal decls.
39269         (output_object_block): For asan protected decls, emit asan padding
39270         after their contents.
39271         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
39272         (asan_finish_file): Test it here instead.
39274 2013-01-07  Nick Clifton  <nickc@redhat.com>
39275             Matthias Klose  <doko@debian.org>
39276             Doug Kwan  <dougkwan@google.com>
39277             H.J. Lu  <hongjiu.lu@intel.com>
39279         PR driver/55470
39280         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
39282         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
39284         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
39286         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
39288         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
39290 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
39292         PR target/54461
39293         * doc/install.texi (Cross-Compiler-Specific Options): Document
39294         --with-avrlibc.
39296 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
39298         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
39299         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
39300         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
39301         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
39302         vqmovun_high_s64): Fix source operand number and update copyright.
39304 2013-01-07  Richard Biener  <rguenther@suse.de>
39306         PR middle-end/55890
39307         * gimple.h (gimple_call_builtin_p): New overload.
39308         * gimple.c (validate_call): New function.
39309         (gimple_call_builtin_p): Likewise.
39310         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
39311         Use gimple_call_builtin_p.
39312         (find_func_clobbers): Likewise.
39313         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
39314         (strlen_optimize_stmt): Likewise.
39316 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
39318         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
39319         (vld1q_dup_*): Likewise.
39320         (vld1_*): Likewise.
39321         (vld1q_*): Likewise.
39322         (vld1_lane_*): Likewise.
39323         (vld1q_lane_*): Likewise.
39325 2013-01-07  Richard Biener  <rguenther@suse.de>
39327         * lto-streamer.h (LTO_minor_version): Bump to 2.
39329 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
39331         * config/aarch64/aarch64-protos.h
39332         (aarch64_const_double_zero_rtx_p): Rename to...
39333         (aarch64_float_const_zero_rtx_p): ...this.
39334         (aarch64_float_const_representable_p): New.
39335         (aarch64_output_simd_mov_immediate): Likewise.
39336         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
39337         move immediate case.
39338         * config/aarch64/aarch64.c
39339         (aarch64_const_double_zero_rtx_p): Rename to...
39340         (aarch64_float_const_zero_rtx_p): ...this.
39341         (aarch64_print_operand): Allow printing of new constants.
39342         (aarch64_valid_floating_const): New.
39343         (aarch64_legitimate_constant_p): Check for valid floating-point
39344         constants.
39345         (aarch64_simd_valid_immediate): Likewise.
39346         (aarch64_vect_float_const_representable_p): New.
39347         (aarch64_float_const_representable_p): Likewise.
39348         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
39349         (aarch64_output_simd_mov_immediate): New.
39350         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
39351         (*movdf_aarch64): Likewise.
39352         * config/aarch64/constraints.md (Ufc): New.
39353         (Y): call aarch64_float_const_zero_rtx.
39354         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
39356 2013-01-07  Richard Biener  <rguenther@suse.de>
39358         PR tree-optimization/55888
39359         PR tree-optimization/55862
39360         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
39361         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
39362         not if it is contained therein.
39364 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
39366         * config/avr/t-avr: Typo.
39368 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
39370         PR55243
39371         * config/avr/t-avr: Don't automatically rebuild
39372         $(srcdir)/config/avr/t-multilib
39373         $(srcdir)/config/avr/avr-tables.opt
39374         $(srcdir)/doc/avr-mmcu.texi
39375         (avr-mcus): New phony target to build them on request.
39376         (s-avr-mlib, s-avr-mmcu-texi): Remove.
39377         * avr/avr-mcus.def: Adjust comments.
39379 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
39381         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
39383 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
39385         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
39387 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
39389         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
39391 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
39393         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
39394         to generate profiling.
39395         * config/rs6000/aix64.h (LIB_SPEC): Same.
39397 2013-01-04  Andrew Pinski  <apinski@cavium.com>
39399         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
39400         New function.
39401         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
39403 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
39405         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
39406         unconditionally.
39407         (ix86_expand_move): Ditto.
39408         (ix86_zero_extend_to_Pmode): Ditto.
39409         (ix86_expand_call): Ditto.
39410         (ix86_expand_special_args_builtin): Ditto.
39411         (ix86_expand_builtin): Ditto.
39413 2013-01-04  Richard Biener  <rguenther@suse.de>
39415         PR tree-optimization/55862
39416         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
39417         translating them through PHI nodes.
39419 2013-01-04  Martin Jambor  <mjambor@suse.cz>
39421         PR tree-optimization/55755
39422         * tree-sra.c (sra_modify_assign): Do not check that an access has no
39423         children when trying to avoid producing a VIEW_CONVERT_EXPR.
39425 2013-01-04  Marek Polacek  <polacek@redhat.com>
39427         PR middle-end/55859
39428         * opts.c (default_options_optimization): Clarify error message.
39430 2013-01-04  Richard Biener  <rguenther@suse.de>
39432         PR middle-end/55863
39433         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
39434         reassociation.
39436 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
39438         PR target/53789
39439         * config/pa/pa.md (movsi): Revert previous change.
39440         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
39441         references.
39443 2013-01-03  Richard Henderson  <rth@redhat.com>
39445         * config/i386/i386.c (ix86_expand_move): Always assign to op1
39446         after eliminating TLS symbols.
39448 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
39450         PR bootstrap/50167
39451         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
39452         * graphite-poly.c (debug_gmp_value): Likewise.
39454 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
39456         PR target/55712
39457         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
39458         selected code model, define __code_mode_small__, __code_model_medium__,
39459         __code_model_large__, __code_model_32__ or __code_model_kernel__.
39460         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
39461         xchg temporary register with %k.  Declare temporary register as
39462         early clobbered.
39463         [__x86_64__]: For medium and large code models, preserve %rbx register.
39465 2013-01-03  Richard Biener  <rguenther@suse.de>
39467         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
39468         (dump_subscript): Adjust.
39469         (finalize_ddr_dependent): Do not dump redundant info.
39470         (analyze_siv_subscript): Adjust.
39471         (subscript_dependence_tester): Likewise.
39472         (compute_affine_dependence): Likewise.
39474 2013-01-03  Richard Biener  <rguenther@suse.de>
39476         Revert
39477         2013-01-03  Richard Biener  <rguenther@suse.de>
39479         PR tree-optimization/55857
39480         * tree-vect-stmts.c (vectorizable_load): Do not setup
39481         re-alignment for invariant loads.
39483         2013-01-02  Richard Biener  <rguenther@suse.de>
39485         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
39486         invariant load do not generate a vector load from the scalar location.
39488 2013-01-03  Richard Biener  <rguenther@suse.de>
39490         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
39491         for not vectorizing.
39492         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
39493         not build INDIRECT_REFs, call get_name once only.
39494         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
39495         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
39497 2013-01-03  Richard Biener  <rguenther@suse.de>
39499         PR tree-optimization/55857
39500         * tree-vect-stmts.c (vectorizable_load): Do not setup
39501         re-alignment for invariant loads.
39503 2013-01-03  Richard Biener  <rguenther@suse.de>
39505         PR lto/55848
39506         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
39507         prefer a built-in decl.
39509 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
39511         * gcc.c (process_command): Update copyright notice dates.
39512         * gcov.c (print_version): Likewise.
39513         * gcov-dump.c (print_version): Likewise.
39515         PR rtl-optimization/55838
39516         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
39517         iv0.step, iv1.step and step.
39519 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
39520             Marc Glisse  <marc.glisse@inria.fr>
39522         PR tree-optimization/55832
39523         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
39524         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
39525         integer_{one,zero}_node.
39527 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
39529         PR debug/54402
39530         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
39531         * var-tracking.c (reverse_op): Don't add reverse ops to
39532         VALUEs that have already
39533         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
39535 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
39537         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
39539 2013-01-02  Teresa Johnson  <tejohnson@google.com>
39541         * dumpfile.c (dump_loc): Print filename with location.
39542         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
39543         new location_t parameter to emit complete unroll message with
39544         new dump framework.
39545         (canonicalize_loop_induction_variables): Compute loops location
39546         and pass to try_unroll_loop_completely.
39547         * loop-unroll.c (report_unroll_peel): New function.
39548         (peel_loops_completely): Use new dump format with location
39549         for main dumpfile message, and invoke report_unroll_peel on success.
39550         (decide_unrolling_and_peeling): Ditto.
39551         (decide_peel_once_rolling): Remove old dumpfile message subsumed
39552         by report_unroll_peel.
39553         (decide_peel_completely): Ditto.
39554         (decide_unroll_constant_iterations): Ditto.
39555         (decide_unroll_runtime_iterations): Ditto.
39556         (decide_peel_simple): Ditto.
39557         (decide_unroll_stupid): Ditto.
39558         * cfgloop.c (get_loop_location): New function.
39559         * cfgloop.h (get_loop_location): Declare.
39561 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
39563         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
39564         NULL.
39566 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
39568         PR middle-end/55198
39569         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
39570         BLKmode objects when EXPAND_MEMORY is specified.
39572 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
39574         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
39575         in loop predicate.
39576         (fold_builtin_cpu): Do not share cpu model decls across statements.
39578 2013-01-02  Jason Merrill  <jason@redhat.com>
39580         PR c++/55804
39581         * tree.c (build_array_type_1): Revert earlier change.
39583 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
39585         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
39586         "cortex-a57".
39587         * config/aarch64/aarch64-tune.md: Re-generate.
39589 2013-01-02  Richard Biener  <rguenther@suse.de>
39591         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
39592         invariant load do not generate a vector load from the scalar location.
39594 2013-01-02  Richard Biener  <rguenther@suse.de>
39596         PR bootstrap/55784
39597         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
39598         * configure: Regenerate.
39600 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
39602         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
39603         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
39604         (expand_builtin_int_roundingfn_2): Keep the original target around
39605         for the fallback case.
39607 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
39609         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
39610         to be clear for sign changes.
39612 2013-01-01  Jan Hubicka  <jh@suse.cz>
39614         * ipa-inline-analysis.c: Fix formatting.
39616 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
39618         PR tree-optimization/55831
39619         * tree-vect-loop.c (get_initial_def_for_induction): Use
39620         gsi_after_labels instead of gsi_start_bb.
39622 Copyright (C) 2013 Free Software Foundation, Inc.
39624 Copying and distribution of this file, with or without modification,
39625 are permitted in any medium without royalty provided the copyright
39626 notice and this notice are preserved.