Merge trunk version 206243 into gupc branch.
[official-gcc.git] / gcc / ChangeLog
blobb0870aa1f851552b32fb36b3a9cc35a107030ea5
1 2013-12-30  Jakub Jelinek  <jakub@redhat.com>
3         PR target/59501
4         * config/i386/i386.c (ix86_save_reg): Don't return true for drap_reg
5         if !crtl->stack_realign_needed.
6         (ix86_finalize_stack_realign_flags): If drap_reg isn't live on entry
7         and stack_realign_needed will be false, clear drap_reg and need_drap.
8         Optimize leaf functions that don't need stack frame even if
9         crtl->need_drap.
11 2013-12-30   H.J. Lu  <hongjiu.lu@intel.com>
13         PR target/59605
14         * config/i386/i386.c (ix86_expand_set_or_movmem): Create
15         jump_around_label only if it doesn't exist.
17 2013-12-28  Eric Botcazou  <ebotcazou@adacore.com>
19         * doc/invoke.texi (output file options): Document -fada-spec-parent.
21 2013-12-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
22             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
23             Sergey Lega  <sergey.s.lega@intel.com>
24             Anna Tikhonova  <anna.tikhonova@intel.com>
25             Ilya Tocar  <ilya.tocar@intel.com>
26             Andrey Turetskiy  <andrey.turetskiy@intel.com>
27             Ilya Verbin  <ilya.verbin@intel.com>
28             Kirill Yukhin  <kirill.yukhin@intel.com>
29             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
31         * config/i386/sse.md (avx512f_fixupimm<mode>_maskz): Extend to support
32         EVEX's RC.
33         (avx512f_sfixupimm<mode>_maskz): Ditto.
34         * config/i386/subst.md (round_saeonly_expand_name): New.
35         (round_saeonly_expand_nimm_predicate): Ditto.
36         (round_saeonly_expand_operand6): Ditto.
37         (round_saeonly_expand): Ditto.
39 2013-12-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
40             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
41             Sergey Lega  <sergey.s.lega@intel.com>
42             Anna Tikhonova  <anna.tikhonova@intel.com>
43             Ilya Tocar  <ilya.tocar@intel.com>
44             Andrey Turetskiy  <andrey.turetskiy@intel.com>
45             Ilya Verbin  <ilya.verbin@intel.com>
46             Kirill Yukhin  <kirill.yukhin@intel.com>
47             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
49         * config/i386/sse.md (avx512f_fmadd_<mode>_maskz): Extend to support
50         EVEX's RC.
51         (avx512f_fmaddsub_<mode>_maskz): Ditto.
52         * config/i386/subst.md (round_expand_name): New.
53         (round_expand_nimm_predicate): Ditto.
54         (round_expand_operand): Ditto.
55         (round_expand): Ditto.
57 2013-12-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
58             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
59             Sergey Lega  <sergey.s.lega@intel.com>
60             Anna Tikhonova  <anna.tikhonova@intel.com>
61             Ilya Tocar  <ilya.tocar@intel.com>
62             Andrey Turetskiy  <andrey.turetskiy@intel.com>
63             Ilya Verbin  <ilya.verbin@intel.com>
64             Kirill Yukhin  <kirill.yukhin@intel.com>
65             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
67         * config/i386/sse.md (<code><mode>3<mask_name>): Extend to support
68         EVEX's SAE mode.
69         (*<code><mode>3_finite<mask_name>): Ditto.
70         (*<code><mode>3<mask_name>): Ditto.
71         (avx512f_cmp<mode>3<mask_scalar_merge_name>): Ditto.
72         (avx512f_vmcmp<mode>3): Ditto.
73         (avx512f_vmcmp<mode>3_mask): Ditto.
74         (<sse>_comi): Ditto.
75         (<sse>_ucomi): Ditto.
76         (sse_cvttss2si): Ditto.
77         (sse_cvttss2siq): Ditto.
78         (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
79         (avx512f_vcvttss2usi): Ditto.
80         (avx512f_vcvttss2usiq): Ditto.
81         (avx512f_vcvttsd2usi): Ditto.
82         (avx512f_vcvttsd2usiq): Ditto.
83         (sse2_cvttsd2si): Ditto.
84         (sse2_cvttsd2siq): Ditto.
85         (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
86         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
87         (avx512f_getexp<mode><mask_name>): Ditto.
88         (avx512f_fixupimm<mode><sd_maskz_name>): Ditto.
89         (avx512f_fixupimm<mode>_mask): Ditto.
90         (avx512f_sfixupimm<mode><sd_maskz_name>): Ditto.
91         (avx512f_sfixupimm<mode>_mask): Ditto.
92         (avx512f_rndscale<mode><mask_name>): Ditto.
93         (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
94         (avx512f_getmant<mode><mask_name>): Ditto.
95         * config/i386/subst.md (round_saeonly_name): New.
96         (round_saeonly_mask_operand2): Ditto.
97         (round_saeonly_mask_operand3): Ditto.
98         (round_saeonly_mask_scalar_operand3): Ditto.
99         (round_saeonly_mask_scalar_operand4): Ditto.
100         (round_saeonly_mask_scalar_merge_operand4): Ditto.
101         (round_saeonly_sd_mask_operand5): Ditto.
102         (round_saeonly_op2): Ditto.
103         (round_saeonly_op4): Ditto.
104         (round_saeonly_op5): Ditto.
105         (round_saeonly_op6): Ditto.
106         (round_saeonly_mask_op2): Ditto.
107         (round_saeonly_mask_op3): Ditto.
108         (round_saeonly_mask_scalar_op3): Ditto.
109         (round_saeonly_mask_scalar_op4): Ditto.
110         (round_saeonly_mask_scalar_merge_op4): Ditto.
111         (round_saeonly_sd_mask_op5): Ditto.
112         (round_saeonly_constraint): Ditto.
113         (round_saeonly_constraint2): Ditto.
114         (round_saeonly_nimm_predicate): Ditto.
115         (round_saeonly_mode512bit_condition): Ditto.
116         (round_saeonly): Ditto.
118 2013-12-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
119             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
120             Sergey Lega  <sergey.s.lega@intel.com>
121             Anna Tikhonova  <anna.tikhonova@intel.com>
122             Ilya Tocar  <ilya.tocar@intel.com>
123             Andrey Turetskiy  <andrey.turetskiy@intel.com>
124             Ilya Verbin  <ilya.verbin@intel.com>
125             Kirill Yukhin  <kirill.yukhin@intel.com>
126             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
128         * config/i386/i386.c (ix86_print_operand): Print EVEX's RC modifiers.
129         * config/i386/i386.md (define_constants): Define EVEx's RC constants.
130         * gcc/config/i386/sse.md (<plusminus_insn><mode>3<mask_name>): Extend
131         to support EVEX's rounding control.
132         (*<plusminus_insn><mode>3<mask_name>): Ditto.
133         (mul<mode>3<mask_name>): Ditto.
134         (*mul<mode>3<mask_name>): Ditto.
135         (<sse>_div<mode>3<mask_name>): Ditto.
136         (<sse>_sqrt<mode>2<mask_name>): Ditto.
137         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>): Ditto.
138         (avx512f_fmadd_<mode>_mask): Ditto.
139         (avx512f_fmadd_<mode>_mask3): Ditto.
140         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>): Ditto.
141         (avx512f_fmsub_<mode>_mask): Ditto.
142         (avx512f_fmsub_<mode>_mask3): Ditto.
143         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>): Ditto.
144         (avx512f_fnmadd_<mode>_mask): Ditto.
145         (avx512f_fnmadd_<mode>_mask3): Ditto.
146         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>): Ditto.
147         (avx512f_fnmsub_<mode>_mask): Ditto.
148         (avx512f_fnmsub_<mode>_mask3): Ditto.
149         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name>): Ditto.
150         (avx512f_fmaddsub_<mode>_mask): Ditto.
151         (avx512f_fmaddsub_<mode>_mask3): Ditto.
152         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name>): Ditto.
153         (avx512f_fmsubadd_<mode>_mask): Ditto.
154         (avx512f_fmsubadd_<mode>_mask3): Ditto.
155         (fmai_vmfmadd_<mode>): Ditto.
156         (*fmai_fmadd_<mode>): Ditto.
157         (*fmai_fmsub_<mode>): Ditto.
158         (*fmai_fnmadd_<mode>): Ditto.
159         (*fmai_fnmsub_<mode>): Ditto.
160         (sse_cvtsi2ss): Ditto.
161         (sse_cvtsi2ssq): Ditto.
162         (sse_cvtss2si): Ditto.
163         (sse_cvtss2siq): Ditto.
164         (cvtusi2<ssescalarmodesuffix>32): Ditto.
165         (cvtusi2<ssescalarmodesuffix>64): Ditto.
166         (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
167         (ufloatv16siv16sf2<mask_name>): Ditto.
168         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
169         (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
170         (sse2_cvtsi2sdq): Ditto.
171         (avx512f_vcvtss2usi): Ditto.
172         (avx512f_vcvtss2usiq): Ditto.
173         (avx512f_vcvtsd2usi): Ditto.
174         (avx512f_vcvtsd2usiq): Ditto.
175         (sse2_cvtsd2si): Ditto.
176         (sse2_cvtsd2siq): Ditto.
177         (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
178         (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
179         (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
180         (avx512f_scalef<mode><mask_name>): Ditto.
181         (<code><mode>3<mask_name>): Ditto.
182         (*avx2_<code><mode>3<mask_name>): Ditto.
183         (avx512er_exp2<mode><mask_name): Ditto.
184         (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
185         (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
186         (avx512f_fmadd_<mode>_maskz): New.
187         * config/i386/subst.md (SUBST_A): New.
188         (round_name): Ditto.
189         (round_mask_operand2): Ditto.
190         (round_mask_operand3): Ditto.
191         (round_mask_scalar_operand3): Ditto.
192         (round_sd_mask_operand4): Ditto.
193         (round_op2): Ditto.
194         (round_op3): Ditto.
195         (round_op4): Ditto.
196         (round_op5): Ditto.
197         (round_op6): Ditto.
198         (round_mask_op2): Ditto.
199         (round_mask_op3): Ditto.
200         (round_mask_scalar_op3): Ditto.
201         (round_sd_mask_op4): Ditto.
202         (round_constraint): Ditto.
203         (round_constraint2): Ditto.
204         (round_constraint3): Ditto.
205         (round_nimm_predicate): Ditto.
206         (round_mode512bit_condition): Ditto.
207         (round_modev4sf_condition): Ditto.
208         (round_codefor): Ditto.
209         (round_opnum): Ditto.
210         (round): Ditto.
212 2013-12-26   H.J. Lu  <hongjiu.lu@intel.com>
214         PR target/59588
215         * config/i386/i386.c (ix86_option_override_internal): Don't
216         check generic tuning.  Don't change i686 tuning.
218 2013-12-26   H.J. Lu  <hongjiu.lu@intel.com>
220         PR target/59601
221         * config/i386/i386.c (get_builtin_code_for_version): Map
222         PROCESSOR_NEHALEM to "corei7".
224 2013-12-26  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
226         * config/i386/i386.c (get_builtin_code_for_version): Rename AMD 
227         CPU names M_AMD_BOBCAT to M_AMD_BTVER1 and M_AMD_JAGUAR 
228         to M_AMD_BTVER2.
229         (processor_model): Likewise.
230         (arch_names_table): Likewise.
232 2013-12-26  Uros Bizjak  <ubizjak@gmail.com>
234         * config/i386/driver-i386.c (decode_caches_intel): Add missing entries.
236 2013-12-25   H.J. Lu  <hongjiu.lu@intel.com>
238         PR target/59587
239         * config/i386/i386.c (struct ptt): Add a field for processor name.
240         (processor_target_table): Sync with processor_type.
241         Add processor names.
242         (cpu_names): Removed.
243         (ix86_option_override_internal): Default x_ix86_tune_string
244         to processor_target_table[TARGET_CPU_DEFAULT].name.
245         (ix86_function_specific_print): Assert arch and tune < PROCESSOR_max.
246         Use processor_target_table to print arch and tune names.
247         * config/i386/i386.h (TARGET_CPU_DEFAULT): Default to
248         PROCESSOR_GENERIC.
249         (target_cpu_default): Removed.
250         (processor_type): Reordered.
252 2013-12-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
253             H.J. Lu  <hongjiu.lu@intel.com>
255         PR target/59422
256         * config/i386/i386.c (get_builtin_code_for_version): Handle
257         PROCESSOR_HASWELL, PROCESSOR_SILVERMONT, PROCESSOR_BTVER1,
258         PROCESSOR_BTVER2, PROCESSOR_BDVER3 and PROCESSOR_BDVER4.
259         Change priority of PROCESSOR_BDVER1 to P_PROC_XOP.
260         (fold_builtin_cpu): Add "ivybridge", "haswell", "bonnell",
261         "silvermont", "bobcat" and "jaguar" CPU names.  Add "sse4a",
262         "fma4", "xop" and "fma" ISA names.
264 2013-12-24   H.J. Lu  <hongjiu.lu@intel.com>
266         * config/i386/i386.c (ix86_option_override_internal): Check
267         opts->x_ix86_arch_string instead of ix86_arch_string.
269 2013-12-24  Renlin Li  <Renlin.Li@arm.com>
271         * config/arm/arm-protos.h (vfp_const_double_for_bits): Declare.
272         * config/arm/constraints.md (Dp): Define new constraint.
273         * config/arm/predicates.md (const_double_vcvt_power_of_two): Define
274         new predicate.
275         * config/arm/arm.c (arm_print_operand): Add print for new fucntion.
276         (vfp3_const_double_for_bits): New function.
277         * config/arm/vfp.md (combine_vcvtf2i): Define new instruction.
279 2013-12-23  Hans-Peter Nilsson  <hp@axis.com>
281         PR target/59203
282         * config/cris/cris.c (cris_pic_symbol_type_of): Fix typo,
283         checking t1 twice instead of t1 and t2 respectively.
285         PR middle-end/59584
286         * config/cris/predicates.md (cris_nonsp_register_operand):
287         New define_predicate.
288         * config/cris/cris.md: Replace register_operand with
289         cris_nonsp_register_operand for destinations in all
290         define_splits where a register is set more than once.
292 2013-12-23  Jason Merrill  <jason@redhat.com>
294         * gdbinit.in (input_line, input_filename): Define.
296         * cgraph.h (struct cgraph_node): Add calls_comdat_local.
297         (symtab_comdat_local_p, symtab_in_same_comdat_p): New.
298         * cif-code.def: Add USES_COMDAT_LOCAL.
299         * symtab.c (verify_symtab_base): Make sure we don't refer to a
300         comdat-local symbol from outside its comdat.
301         * cgraph.c (verify_cgraph_node): Likewise.
302         * cgraphunit.c (mark_functions_to_output): Don't mark comdat-locals.
303         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
304         (function_and_variable_visibility): Handle comdat-local fns.
305         * ipa-cp.c (determine_versionability): Don't clone comdat-locals.
306         * ipa-inline-analysis.c (compute_inline_parameters): Update
307         calls_comdat_local.
308         * ipa-inline-transform.c (inline_call): Likewise.
309         (save_inline_function_body): Don't clear DECL_COMDAT_GROUP.
310         * ipa-inline.c (can_inline_edge_p): Check calls_comdat_local.
311         * lto-cgraph.c (input_overwrite_node): Read calls_comdat_local.
312         (lto_output_node): Write it.
313         * symtab.c (symtab_dissolve_same_comdat_group_list): Clear
314         DECL_COMDAT_GROUP for comdat-locals.
316 2013-12-23   H.J. Lu  <hongjiu.lu@intel.com>
318         * config/i386/i386.c (processor_target_table): Move Bonnell and
319         Silvermont entries before generic.
321 2013-12-23  Bingfeng Mei  <bmei@broadcom.com>
323         PR middle-end/59569
324         * tree-vect-stmts.c (vectorizable_store): Skip permutation for
325         consant/external operand, and add a few missing \n.
327 2013-12-23   H.J. Lu  <hongjiu.lu@intel.com>
328              Tocar Ilya  <ilya.tocar@intel.com>
330         * config/i386/core2.md: Replace corei7 with nehalem.
332         * config/i386/driver-i386.c (host_detect_local_cpu): Use nehalem,
333         westmere, sandybridge, ivybridge, haswell, bonnell, silvermont
334         for cpu names.
336         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
337         PROCESSOR_COREI7, PROCESSOR_COREI7_AVX, PROCESSOR_ATOM,
338         PROCESSOR_SLM with PROCESSOR_NEHALEM, PROCESSOR_SANDYBRIDGE,
339         PROCESSOR_BONNELL, PROCESSOR_SILVERMONT.  Define
340         __nehalem/__nehalem__, __sandybridge/__sandybridge__,
341         __haswell/__haswell__, __tune_nehalem__, __tune_sandybridge__,
342         __tune_haswell__, __bonnell/__bonnell__,
343         __silvermont/__silvermont__, __tune_bonnell__,
344         __tune_silvermont__.
346         * config/i386/i386.c (m_COREI7): Renamed to ...
347         (m_NEHALEM): This.
348         (m_COREI7_AVX): Renamed to ...
349         (m_SANDYBRIDGE): This.
350         (m_ATOM): Renamed to ...
351         (m_BONNELL): This.
352         (m_SLM): Renamed to ...
353         (m_SILVERMONT): This.
354         (m_CORE_ALL): Updated.
355         (cpu_names): Add "nehalem", "westmere", "sandybridge",
356         "ivybridge", "haswell", "broadwell", "bonnell", "silvermont".
357         (PTA_CORE2): New.
358         (PTA_NEHALEM): Likewise.
359         (PTA_WESTMERE): Likewise.
360         (PTA_SANDYBRIDGE): Likewise.
361         (PTA_IVYBRIDGE): Likewise.
362         (PTA_HASWELL): Likewise.
363         (PTA_BROADWELL): Likewise.
364         (PTA_BONNELL): Likewise.
365         (PTA_SILVERMONT): Likewise.
366         (ix86_option_override_internal): Use new PTA_XXX.  Add nehalem,
367         westmere, sandybridge, ivybridge, haswell, bonnell, silvermont.
368         (ix86_lea_outperforms): Updated.
369         (ix86_issue_rate): Likewise.
370         (ix86_adjust_cost): Likewise.
371         (ia32_multipass_dfa_lookahead): Likewise.
372         (do_reorder_for_imul): Likewise.
373         (swap_top_of_ready_list): Likewise.
374         (ix86_sched_reorder): Likewise.
375         (ix86_sched_init_global): Likewise.
376         (get_builtin_code_for_version): Likewise.
377         (processor_model): Replace M_INTEL_ATOM, M_INTEL_SLM with
378         M_INTEL_BONNELL, M_INTEL_SILVERMONT.
379         (arch_names_table): Updated.
381         * config/i386/i386.h (TARGET_COREI7): Removed.
382         (TARGET_COREI7_AVX): Likewise.
383         (TARGET_ATOM): Likewise.
384         (TARGET_SLM): Likewise.
385         (TARGET_NEHALEM): New.
386         (TARGET_SANDYBRIDGE): Likewise.
387         (TARGET_BONNELL): Likewise.
388         (TARGET_SILVERMONT): Likewise.
389         (target_cpu_default): Add TARGET_CPU_DEFAULT_core_avx2,
390         TARGET_CPU_DEFAULT_nehalem, TARGET_CPU_DEFAULT_westmere,
391         TARGET_CPU_DEFAULT_sandybridge, TARGET_CPU_DEFAULT_ivybridge,
392         TARGET_CPU_DEFAULT_broadwell, TARGET_CPU_DEFAULT_bonnell,
393         TARGET_CPU_DEFAULT_silvermont.  Move TARGET_CPU_DEFAULT_haswell
394         before TARGET_CPU_DEFAULT_broadwell.
395         (processor_type): Replace PROCESSOR_COREI7, PROCESSOR_COREI7_AVX,
396         PROCESSOR_ATOM, PROCESSOR_SLM with PROCESSOR_NEHALEM,
397         PROCESSOR_SANDYBRIDGE, PROCESSOR_BONNELL, PROCESSOR_SILVERMONT.
399         * config/i386/i386.md (cpu): Replace corei7 with nehalem.
401         * config/i386/x86-tune.def: Updated.
403         * doc/invoke.texi: Replace corei7, corei7-avx, core-avx-i,
404         core-avx2, atom, slm with nehalem, sandybridge, ivybridge,
405         haswell, bonnel, silvermont.  Add westmere.
407 2013-12-23  Andrey Belevantsev  <abel@ispras.ru>
409         PR rtl-optimization/57422
410         * sel-sched.c (fill_vec_av_set): Assert that the fence insn
411         can always be scheduled in its current form.
413 2013-12-23  Andrey Belevantsev  <abel@ispras.ru>
415         PR rtl-optimization/57422
416         * sel-sched.c (mark_unavailable_hard_regs): Fix typo when calling
417         add_to_hard_reg_set.
419 2013-12-20  Sharad Singhai  <singhai@google.com>
421         * Makefile.in: Add optinfo.texi.
422         * doc/invoke.texi: Fix typo.
423         * doc/optinfo.texi: New documentation for optimization info.
424         * doc/passes.texi: Add new node.
426 2013-12-20  Trevor saunders  <tsaunders@mozilla.com>
428         * vec.h (stack_vec): Convert to a templaate specialization of
429         auto_vec.
430         * config/i386/i386.c, df-scan.c, function.c, genautomata.c,
431         gimplify.c, graphite-clast-to-gimple.c, graphite-dependences.c,
432         graphite-scop-detection.c, graphite-sese-to-poly.c, hw-doloop.c,
433         trans-mem.c, tree-call-cdce.c, tree-data-ref.c, tree-dfa.c,
434         tree-if-conv.c, tree-inline.c, tree-loop-distribution.c,
435         tree-parloops.c, tree-predcom.c, tree-ssa-alias.c,
436         tree-ssa-loop-ivcanon.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
437         tree-ssa-uncprop.c, tree-vect-loop.c, tree-vect-patterns.c,
438         tree-vect-slp.c, tree-vect-stmts.c, var-tracking.c: Adjust.
440 2013-12-20  Eric Botcazou  <ebotcazou@adacore.com>
442         * config/arm/arm.c (arm_expand_prologue): In a nested APCS frame with
443         arguments to push onto the stack and no varargs, save ip into the last
444         stack slot if r3 isn't available on entry.
446 2013-12-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
448         * config/arm/neon.ml (crypto_intrinsics): Add vceq_64 and vtst_p64.
449         * config/arm/arm_neon.h: Regenerate.
450         * config/arm/neon-docgen.ml: Add vceq_p64 and vtst_p64.
451         * doc/arm-neon-intrinsics.texi: Regenerate.
453 2013-12-20  Vladimir Makarov  <vmakarov@redhat.com>
455         * config/arm/arm.h (THUMB_SECONDARY_OUTPUT_RELOAD_CLASS): Return
456         NO_REGS for LRA.
458 2013-12-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
460         * config/arm/arm_acle.h: Add underscores before variables.
462 2013-12-20  Bingfeng Mei  <bmei@broadcom.com>
464         PR tree-optimization/59544
465         * tree-vect-stmts.c (perm_mask_for_reverse): Move before
466         vectorizable_store.
467         (vectorizable_store): Handle negative step.
469 2013-12-20  Tocar Ilya  <ilya.tocar@intel.com>
471         * config.gcc: Support march=broadwell.
472         * config/i386/driver-i386.c (host_detect_local_cpu): Detect Broadwell.
473         * config/i386/i386.c (ix86_option_override_internal): Add broadwell.
474         * doc/invoke.texi: Document march=broadwell.
476 2013-12-20  Jakub Jelinek  <jakub@redhat.com>
478         * ubsan.c: Include tree-ssanames.h, asan.h and gimplify-me.h.
479         (ubsan_type_descriptor): Handle BOOLEAN_TYPE and ENUMERAL_TYPE
480         like INTEGER_TYPE.
481         (instrument_bool_enum_load): New function.
482         (ubsan_pass): Call it.
483         (gate_ubsan): Also enable for SANITIZE_BOOL or SANITIZE_ENUM.
484         * asan.c (create_cond_insert_point): No longer static.
485         * asan.h (create_cond_insert_point): Declare.
486         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE): New
487         built-in.
488         * opts.c (common_handle_option): Handle -fsanitize=bool and
489         -fsanitize=enum.
490         * builtins.c (fold_builtin_memory_op): When sanitizing bool
491         and enum loads, don't use enum or bool types for memcpy folding.
492         * flag-types.h (SANITIZE_BOOL, SANITIZE_ENUM): New.
493         (SANITIZE_UNDEFINED): Or these in.
495 2013-12-20  Chung-Ju Wu  <jasonwucj@gmail.com>
497         * config/nds32/nds32.h (NDS32_MODE_TYPE_ALIGN): New macro.
498         (NDS32_AVAILABLE_REGNUM_FOR_ARG): Use more accurate alignment checking
499         to determine available register number.
500         * config/nds32/nds32.c (nds32_needs_double_word_align): Use new
501         macro NDS32_MODE_TYPE_ALIGN.
502         (nds32_function_arg): Refine code layout.
504 2013-12-19  Jeff Law  <law@redhat.com>
506         * doc/invoke.texi: (dump-rtl-ree): Fix typo and clarify ree
507         handles both zero and sign extension.
509 2013-12-19  Teresa Johnson  <tejohnson@google.com>
511         PR gcov-profile/59542
512         * bb-reorder.c (duplicate_computed_gotos): Invoke fixup_partitions
513         if we have made any changes.
515 2013-12-19  Jakub Jelinek  <jakub@redhat.com>
517         PR other/59545
518         * genattrtab.c (struct attr_hash): Change hashcode type to unsigned.
519         (attr_hash_add_rtx, attr_hash_add_string): Change hashcode parameter
520         to unsigned.
521         (attr_rtx_1): Change hashcode variable to unsigned.
522         (attr_string): Likewise.  Perform first multiplication in
523         unsigned type.
524         * ifcvt.c (noce_try_store_flag_constants): Avoid signed integer
525         overflows.
526         * double-int.c (neg_double): Likewise.
527         * stor-layout.c (set_min_and_max_values_for_integral_type): Likewise.
528         * combine.c (force_to_mode): Likewise.
529         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn,
530         reload_cse_move2add, move2add_note_store): Likewise.
531         * simplify-rtx.c (simplify_const_unary_operation,
532         simplify_const_binary_operation): Likewise.
533         * ipa-split.c (find_split_points): Initialize first.can_split
534         and first.non_ssa_vars.
535         * gengtype-state.c (read_state_files_list): Fix up check.
536         * genautomata.c (reserv_sets_hash_value): Use portable rotation idiom.
538 2013-12-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
540         * config/arm/neon-docgen.ml: Add crypto intrinsics documentation.
541         * doc/arm-neon-intrinsics.texi: Regenerate.
543 2013-12-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
545         * config/arm/neon-testgen.ml (effective_target): Handle "CRYPTO".
547 2013-12-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
549         * config/arm/arm.c (enum arm_builtins): Add crypto builtins.
550         (arm_init_neon_builtins): Handle crypto builtins.
551         (bdesc_2arg): Likewise.
552         (bdesc_1arg): Likewise.
553         (bdesc_3arg): New table.
554         (arm_expand_ternop_builtin): New function.
555         (arm_expand_unop_builtin): Handle sha1h explicitly.
556         (arm_expand_builtin): Handle ternary builtins.
557         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS):
558         Define __ARM_FEATURE_CRYPTO.
559         * config/arm/arm.md: Include crypto.md.
560         (is_neon_type): Add crypto types.
561         * config/arm/arm_neon_builtins.def: Add TImode reinterprets.
562         * config/arm/crypto.def: New.
563         * config/arm/crypto.md: Likewise.
564         * config/arm/iterators.md (CRYPTO_UNARY): New int iterator.
565         (CRYPTO_BINARY): Likewise.
566         (CRYPTO_TERNARY): Likewise.
567         (CRYPTO_SELECTING): Likewise.
568         (crypto_pattern): New int attribute.
569         (crypto_size_sfx): Likewise.
570         (crypto_mode): Likewise.
571         (crypto_type): Likewise.
572         * config/arm/neon-gen.ml: Handle poly64_t and poly128_t types.
573         Handle crypto intrinsics.
574         * config/arm/neon.ml: Add support for poly64 and polt128 types
575         and intrinsics. Define crypto intrinsics.
576         * config/arm/neon.md (neon_vreinterpretti<mode>): New pattern.
577         (neon_vreinterpretv16qi<mode>): Use VQXMOV mode iterator.
578         (neon_vreinterpretv8hi<mode>): Likewise.
579         (neon_vreinterpretv4si<mode>): Likewise.
580         (neon_vreinterpretv4sf<mode>): Likewise.
581         (neon_vreinterpretv2di<mode>): Likewise.
582         * config/arm/unspecs.md (UNSPEC_AESD, UNSPEC_AESE, UNSPEC_AESIMC)
583         (UNSPEC_AESMC, UNSPEC_SHA1C, UNSPEC_SHA1M, UNSPEC_SHA1P, UNSPEC_SHA1H)
584         (UNSPEC_SHA1SU0, UNSPEC_SHA1SU1, UNSPEC_SHA256H, UNSPEC_SHA256H2)
585         (UNSPEC_SHA256SU0, UNSPEC_SHA256SU1, VMULLP64): Define.
586         * config/arm/arm_neon.h: Regenerate.
588 2013-12-19  H.J. Lu  <hongjiu.lu@intel.com>
590         PR driver/59321
591         * collect2.c (main): Check -fuse-ld=[bfd|gold] when
592         DEFAULT_LINKER is defined.
593         * common.opt (fuse-ld=bfd): Add Driver.
594         (fuse-ld=gold): Likewise.
595         * gcc.c (use_ld): New variable.
596         (driver_handle_option): Set use_ld for OPT_fuse_ld_bfd and
597         OPT_fuse_ld_gold.
598         (main): Check -fuse-ld=[bfd|gold] for -print-prog-name=ld.
600 2013-12-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
602         * Makefile.in (TEXI_GCC_FILES): Add arm-acle-intrinsics.texi.
603         * config.gcc (extra_headers): Add arm_acle.h.
604         * config/arm/arm.c (FL_CRC32): Define.
605         (arm_have_crc): Likewise.
606         (arm_option_override): Set arm_have_crc.
607         (arm_builtins): Add CRC32 builtins.
608         (bdesc_2arg): Likewise.
609         (arm_init_crc32_builtins): New function.
610         (arm_init_builtins): Initialise CRC32 builtins.
611         (arm_file_start): Handle architecture extensions.
612         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
613         __ARM_FEATURE_CRC32.  Define __ARM_32BIT_STATE.
614         (TARGET_CRC32): Define.
615         * config/arm/arm-arches.def: Add armv8-a+crc.
616         * config/arm/arm-tables.opt: Regenerate.
617         * config/arm/arm.md (type): Add crc.
618         (<crc_variant>): New insn.
619         * config/arm/arm_acle.h: New file.
620         * config/arm/iterators.md (CRC): New int iterator.
621         (crc_variant, crc_mode): New int attributes.
622         * confg/arm/unspecs.md (UNSPEC_CRC32B, UNSPEC_CRC32H, UNSPEC_CRC32W,
623         UNSPEC_CRC32CB, UNSPEC_CRC32CH, UNSPEC_CRC32CW): New unspecs.
624         * doc/invoke.texi: Document -march=armv8-a+crc option.
625         * doc/extend.texi: Document ACLE intrinsics.
627 2013-12-19  Charles Baylis  <charles.baylis@linaro.org>
629         PR target/59142
630         * config/arm/arm-ldmstm.ml: Use low_register_operand for Thumb
631         patterns.
632         * config/arm/ldmstm.md: Regenerate.
634 2013-12-19  Charles Baylis  <charles.baylis@linaro.org>
636         PR target/59142
637         * config/arm/predicates.md (arm_hard_general_register_operand):
638         New predicate.
639         (arm_hard_register_operand): Remove.
640         * config/arm/arm-ldmstm.ml: Use arm_hard_general_register_operand
641         for all patterns.
642         * config/arm/ldmstm.md: Regenerate.
644 2013-12-19  Charles Baylis  <charles.baylis@linaro.org>
646         PR target/59142
647         * config/arm/predicates.md (vfp_hard_register_operand): New predicate.
648         * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use
649         vfp_hard_register_operand.
651 2013-12-19  Tejas Belagod  <tejas.belagod@arm.com>
653         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
654         Define builtin types for poly64_t poly128_t.
655         (TYPES_BINOPP, aarch64_types_binopp_qualifiers): New.
656         * aarch64/aarch64-simd-builtins.def: Update builtins table.
657         * config/aarch64/aarch64-simd.md (aarch64_crypto_pmulldi,
658         aarch64_crypto_pmullv2di): New.
659         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Update table for
660         poly64x2_t mangler.
661         * config/aarch64/arm_neon.h (poly64x2_t, poly64_t, poly128_t): Define.
662         (vmull_p64, vmull_high_p64): New.
663         * config/aarch64/iterators.md (UNSPEC_PMULL<2>): New.
665 2013-12-19  Tejas Belagod  <tejas.belagod@arm.com>
667         * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
668         * config/aarch64/aarch64-simd.md
669         (aarch64_crypto_sha256h<sha256_op>v4si, aarch64_crypto_sha256su0v4si,
670         aarch64_crypto_sha256su1v4si): New.
671         * config/aarch64/arm_neon.h (vsha256hq_u32, vsha256h2q_u32,
672         vsha256su0q_u32, vsha256su1q_u32): New.
673         * config/aarch64/iterators.md (UNSPEC_SHA256H<2>, UNSPEC_SHA256SU<01>):
674         New.
675         (CRYPTO_SHA256): New int iterator.
676         (sha256_op): New int attribute.
678 2013-12-19  Tejas Belagod  <tejas.belagod@arm.com>
680         * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
681         * config/aarch64/aarch64-builtins.c (aarch64_types_ternopu_qualifiers,
682         TYPES_TERNOPU): New.
683         * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hsi,
684         aarch64_crypto_sha1su1v4si, aarch64_crypto_sha1<sha1_op>v4si,
685         aarch64_crypto_sha1su0v4si): New.
686         * config/aarch64/arm_neon.h (vsha1cq_u32, sha1mq_u32, vsha1pq_u32,
687         vsha1h_u32, vsha1su0q_u32, vsha1su1q_u32): New.
688         * config/aarch64/iterators.md (UNSPEC_SHA1<CPMH>, UNSPEC_SHA1SU<01>):
689         New.
690         (CRYPTO_SHA1): New int iterator.
691         (sha1_op): New int attribute.
693 2013-12-19  Tejas Belagod  <tejas.belagod@arm.com>
695         * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
696         * config/aarch64/aarch64-builtins.c (aarch64_types_binopu_qualifiers,
697         TYPES_BINOPU): New.
698         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi,
699         aarch64_crypto_aes<aesmc_op>v16qi): New.
700         * config/aarch64/arm_neon.h (vaeseq_u8, vaesdq_u8, vaesmcq_u8,
701         vaesimcq_u8): New.
702         * config/aarch64/iterators.md (UNSPEC_AESE, UNSPEC_AESD, UNSPEC_AESMC,
703         UNSPEC_AESIMC): New.
704         (CRYPTO_AES, CRYPTO_AESMC): New int iterators.
705         (aes_op, aesmc_op): New int attributes.
707 2013-12-19  Tejas Belagod  <tejas.belagod@arm.com>
709         * config/arm/types.md (neon_mul_d_long, crypto_aes, crypto_sha1_xor,
710         crypto_sha1_fast, crypto_sha1_slow, crypto_sha256_fast,
711         crypto_sha256_slow): New.
713 2013-12-19  Tejas Belagod  <tejas.belagod@arm.com>
715         * config/aarch64/aarch64.h (TARGET_CRYPTO): New.
716         (__ARM_FEATURE_CRYPTO): Define if TARGET_CRYPTO is true.
718 2013-12-19  Dominik Vogt  <vogt@linux.vnet.ibm.com>
719             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
721         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default): New
722         constant.
723         (s390_hotpatch_trampoline_halfwords_max): New constant.
724         (s390_hotpatch_trampoline_halfwords): New static variable.
725         (get_hotpatch_attribute): New function.
726         (s390_handle_hotpatch_attribute): New function.
727         (s390_attribute_table): New target specific attribute table to
728         implement the hotpatch attribute.
729         (s390_option_override): Parse hotpatch options.
730         (s390_function_num_hotpatch_trampoline_halfwords): New function.
731         (s390_can_inline_p): Implement target hook to
732         suppress hotpatching for explicitly inlined functions.
733         (s390_asm_output_function_label): Generate hotpatch prologue.
734         (TARGET_ATTRIBUTE_TABLE): Define to implement target attribute table.
735         (TARGET_CAN_INLINE_P): Define to implement target hook.
736         * config/s390/s390.opt (mhotpatch): New options -mhotpatch,
737         -mhotpatch=.
738         * config/s390/s390-protos.h (s390_asm_output_function_label): Add
739         prototype.
740         * config/s390/s390.h (ASM_OUTPUT_FUNCTION_LABEL): Target specific
741         function label generation for hotpatching.
742         (FUNCTION_BOUNDARY): Align functions to eight bytes.
743         * doc/extend.texi: Document hotpatch attribute.
744         * doc/invoke.texi: Document -mhotpatch option.
746 2013-12-19  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
748         * config/i386/i386.c: Include cfgloop.h.
749         (ix86_loop_memcount): New function.
750         (ix86_loop_unroll_adjust): New function.
751         (TARGET_LOOP_UNROLL_ADJUST): Define.
752         * config/i386/i386.h
753         (TARGET_ADJUST_UNROLL): Define.
754         * config/i386/x86-tune.def
755         (X86_TUNE_ADJUST_UNROLL): Define.
757 2013-12-19  Marek Polacek  <polacek@redhat.com>
759         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Remove
760         variable alg.  Use index variable i directly.
762 2013-12-19  Eric Botcazou  <ebotcazou@adacore.com>
764         * print-tree.c (print_node) <case tcc_type>: Print no_force_blk_flag
765         for all types.
767 2013-12-19  Monk Chiang  <sh.chiang04@gmail.com>
769         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
770         Consider TARGET_CPU_DEFAULT settings.
772 2013-12-18  James Greenhalgh  <james.greenhalgh@arm.com>
774         * config/aarch64/aarch64-cores.def: Add support for
775         -mcpu=cortex-a57.cortex-a53.
776         * config/aarch64/aarch64-tune.md: Regenerate.
777         * doc/invoke.texi: Document -mcpu=cortex-a57.cortex-a53.
779 2013-12-18  James Greenhalgh  <james.greenhalgh@arm.com>
781         * config/aarch64/aarch64-cores.def: Add new column for SCHEDULER_IDENT.
782         * config/aarch64/aarch64-opts.h (AARCH64_CORE): Handle SCHEDULER_IDENT.
783         * config/aarch64/aarch64.c (AARCH64_CORE): Handle SCHEDULER_IDENT.
784         (aarch64_parse_cpu): mcpu implies a default value for mtune.
785         * config/aarch64/aarch64.h (AARCH64_CORE): Handle SCHEDULER_IDENT.
787 2013-12-18  James Greenhalgh  <james.greenhalgh@arm.com>
789         * common/config/aarch64/aarch64-common.c
790         (aarch64_rewrite_selected_cpu): New.
791         (aarch64_rewrite_mcpu): New.
792         * config/aarch64/aarch64-protos.h
793         (aarch64_rewrite_selected_cpu): New.
794         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): New.
795         (BIG_LITTLE_SPEC_FUNCTIONS): Likewise.
796         (ASM_CPU_SPEC): Likewise.
797         (EXTRA_SPEC_FUNCTIONS): Likewise.
798         (EXTRA_SPECS): Likewise.
799         (ASM_SPEC): Likewise.
800         * config/aarch64/aarch64.c (aarch64_start_file): Rewrite target
801         CPU name.
803 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
805         * omp-low.c (simd_clone_clauses_extract): Replaced the string
806         "cilk simd elemental" with "cilk simd function."
807         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
808         Removed a carriage-return from a warning string.
810 2013-12-18  Aldy Hernandez  <aldyh@redhat.com>
812         * passes.c (execute_function_dump): Set graph_dump_initialized
813         appropriately.
814         (pass_init_dump_file): Similarly.
815         (execute_one_pass): Pass new argument to do_per_function.
816         * tree-pass.h (class opt_pass): New field graph_dump_initialized.
818 2013-12-18  Aldy Hernandez  <aldyh@redhat.com>
820         * doc/tree-ssa.texi (SSA Operands): Remove reference to
821         SSA_OP_VMAYUSE.
822         Synchronize SSA_OP* definitions with source.
823         * ssa-iterators.h: Fix comment for FOR_EACH_IMM_USE_STMT.
824         Add not to SSA_OP* macro definitions.
826 2013-12-18  Jakub Jelinek  <jakub@redhat.com>
828         PR target/59539
829         * config/i386/sse.md
830         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
831         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): New expanders,
832         prefix existing define_insn names with *.
834 2013-12-18  Eric Botcazou  <ebotcazou@adacore.com>
836         * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Fix thinko.
838 2013-12-18  James Greenhalgh  <james.greenhalgh@arm.com>
839             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
841         * config/arm/t-aprofile: Add cortex-a15.cortex-a7, cortex-a12,
842         cortex-a57, cortex-a57.cortex-a53.
844 2013-12-18  Eric Botcazou  <ebotcazou@adacore.com>
846         PR debug/59418
847         * dwarf2cfi.c (dwarf2out_frame_debug_cfa_offset): Fix comment and tidy.
848         (dwarf2out_frame_debug_cfa_restore): Handle TARGET_DWARF_REGISTER_SPAN.
849         (dwarf2out_frame_debug_expr): Tidy.
851 2013-12-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
852             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
853             Sergey Lega  <sergey.s.lega@intel.com>
854             Anna Tikhonova  <anna.tikhonova@intel.com>
855             Ilya Tocar  <ilya.tocar@intel.com>
856             Andrey Turetskiy  <andrey.turetskiy@intel.com>
857             Ilya Verbin  <ilya.verbin@intel.com>
858             Kirill Yukhin  <kirill.yukhin@intel.com>
859             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
861         * config/i386/sse.md (*fma_fmadd_<mode>): Extend to support masking.
862         (*fma_fmsub_<mode>): Ditto.
863         (*fma_fnmadd_<mode>): Ditto.
864         (*fma_fnmsub_<mode>): Ditto.
865         (*fma_fmaddsub_<mode>): Ditto.
866         (*fma_fmsubadd_<mode>): Ditto.
867         (avx512f_vternlog<mode>): Ditto.
868         (avx512f_fixupimm<mode>): Ditto.
869         (avx512f_sfixupimm<mode>): Ditto.
870         (avx512f_vpermi2var<mode>3): Ditto.
871         (avx512f_vpermt2var<mode>3): Ditto.
872         (avx512f_fmaddsub_<mode>_maskz): New.
873         (avx512f_vternlog<mode>_maskz): Ditto.
874         (avx512f_fixupimm<mode>_maskz): Ditto.
875         (avx512f_sfixupimm<mode>_maskz): Ditto.
876         (avx512f_vpermi2var<mode>3_maskz): Ditto.
877         (avx512f_vpermt2var<mode>3_maskz): Ditto.
878         (avx512f_expand<mode>_maskz): Ditto.
879         * config/i386/subst.md (sd_maskz_name): Ditto.
880         (sd_mask_op4): Ditto.
881         (sd_mask_op5): Ditto.
882         (sd_mask_codefor): Ditto.
883         (sd_mask_mode512bit_condition): Ditto.
884         (sd): Ditto.
886 2013-12-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
887             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
888             Sergey Lega  <sergey.s.lega@intel.com>
889             Anna Tikhonova  <anna.tikhonova@intel.com>
890             Ilya Tocar  <ilya.tocar@intel.com>
891             Andrey Turetskiy  <andrey.turetskiy@intel.com>
892             Ilya Verbin  <ilya.verbin@intel.com>
893             Kirill Yukhin  <kirill.yukhin@intel.com>
894             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
896         * config/i386/sse.md (avx512f_cmp<mode>3): Extend to support masking.
897         (avx512f_ucmp<mode>3): Ditto.
898         (avx512f_eq<mode>3): Ditto.
899         (avx512f_gt<mode>3): Ditto.
900         (avx512f_testm<mode>3): Ditto.
901         (avx512f_testnm<mode>3): Ditto.
902         * config/i386/subst.md (SUBST_S): New.
903         (mask_scalar_merge_name): Ditto.
904         (mask_scalar_merge_operand3): Ditto.
905         (mask_scalar_merge_operand4): Ditto.
906         (mask_scalar_merge): Ditto.
908 2013-12-17  Jan Hubicka  <hubicka@ucw.cz>
910         PR middle-end/35545
911         * gimple-fold.c (fold_gimple_assign): Attempt to devirtualize
912         OBJ_TYPE_REF.
913         (gimple_fold_stmt_to_constant_1): Bypass OBJ_TYPE_REF wrappers.
915 2013-12-17  Jan Hubicka  <hubicka@ucw.cz>
917         PR middle-end/35545
918         * tree-vrp.c (extract_range_from_unary_expr_1): Handle OBJ_TYPE_REF.
920 2013-12-17  Teresa Johnson  <tejohnson@google.com>
922         PR gcov-profile/59527
923         * cfgrtl.c (fixup_reorder_chain): Handle a region-crossing
924         branch, which can't be eliminated.
926 2013-12-18  Martin Liska  <marxin.liska@gmail.com>
927             Jan Hubicka  <jh@suse.cz>
929         * cgraphunit.c (node_cmp): New function.
930         (expand_all_functions): Function ordering added.
931         * common.opt: New profile based function reordering flag introduced.
932         * lto-partition.c: Support for time profile added.
933         * lto.c: Likewise.
934         * predict.c (handle_missing_profiles): Time profile handled in
935           missing profiles.
937 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
939         PR tree-optimization/59523
940         * tree-vectorizer.c (fold_loop_vectorized_call): Call update_stmt
941         on updated stmts.
943 2013-12-17  Aldy Hernandez  <aldyh@redhat.com>
945         * ipa-inline.c (gate_ipa_inline): Remove.
946         (const pass_data pass_data_ipa_inline): Unset has_gate.
947         (class pass_ipa_inline): Remove gate() method.
949 2013-12-17  Jan Hubicka  <hubicka@ucw.cz>
951         * ipa-devirt.c (get_polymorphic_call_info): Fix offset calculatoin
952         in contains_type_p query.
954 2013-12-17  Thomas Schwinge  <thomas@codesourcery.com>
956         * omp-low.c (tmp_ompfn_id_num): Remove leftover variable definition.
958         * tree-pass.h (make_pass_expand_omp_ssa): Remove leftover function
959         declaration.
961         * omp-low.c: Remove leftover comment.
963         * omp-low.c (check_combined_parallel): Reflect reality in comment.
965         * doc/cfg.texi (Control Flow): Refer to passes.def instead of passes.c.
966         * doc/passes.texi (Pass manager): Refer to passes.def.
968         * doc/gccint.texi (Top): Fix inclusion order.
970 2013-12-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
972         * config/arm/arm-cores.def (cortex-a12): Use cortexa15 scheduling.
973         * config/arm/arm.c (arm_issue_rate): Handle cortexa12.
974         * config/arm/arm.md (generic_vfp): Remove cortexa12.
976 2013-12-17  James Greenhalgh  <james.greenhalgh@arm.com>
978         * config/arm/arm-cores.def (cortex-a57.cortex-a53): New.
979         * doc/invoke.texi: Document -mcpu=cortex-a57.cortex-a53.
980         * config/arm/arm-tables.opt: Regenerate.
981         * config/arm/arm-tune.md: Regenerate.
982         * config/arm/bpabi.h
983         (BE8_LINK_SPEC): Handle -mcpu=cortex-a57.cortex-a53.
985 2013-12-17  James Greenhalgh  <james.greenhalgh@arm.com>
987         * config/arm/arm-cores.def (cortex-a57): New.
988         * doc/invoke.texi: Document -mcpu=cortex-a57.
989         * config/arm/arm-tables.opt: Regenerate.
990         * config/arm/arm-tune.md: Regenerate.
991         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle -mcpu=cortex-a57.
993 2013-12-17  James Greenhalgh  <james.greenhalgh@arm.com>
995         * config/arm/arm-cores.def (cortex-a15.cortex-a7): New.
996         * doc/invoke.texi: Document -mcpu=cortex-a15.cortex-a7.
997         * config/arm/arm-tables.opt: Regenerate.
998         * config/arm/arm-tune.md: Regenerate.
999         * config/arm/bpabi.h
1000         (BE8_LINK_SPEC): Handle -mcpu=cortex-a5.cortex-a7.
1002 2013-12-17  James Greenhalgh  <james.greenhalgh@arm.com>
1004         * config/arm/arm-cores.def: Add new column for TUNE_IDENT.
1005         * config/arm/genopt.sh: Improve layout.
1006         * config/arm/arm-tune.md: Regenerate.
1007         * config/arm/arm-tables.opt: Regenerate.
1008         * config/arm/arm-opts.h (ARM_CORE): Modify macro for TUNE_IDENT.
1009         * config/arm/arm.c (ARM_CORE): Modify macro for TUNE_IDENT.
1010         (arm_option_override): When a CPU is chosen, that should also
1011         form the tune target.
1012         * config/arm/arm.h (ARM_CORE): Modify macro for TUNE_IDENT.
1014 2013-12-17  James Greenhalgh  <james.greenhalgh@arm.com>
1016         * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): New.
1017         (arm_rewrite_mcpu): Likewise.
1018         * config/arm/arm-protos.h (arm_rewrite_selected_cpu): New.
1019         * config/arm/arm.h (BIG_LITTLE_SPEC): New.
1020         (BIG_LITTLE_SPEC_FUNCTIONS): Likewise.
1021         (EXTRA_SPEC_FUNCTIONS): Include BIG_LITTLE_SPEC_FUNCTIONS.
1022         (ASM_CPU_SPEC): Include BIG_LITTLE_SPEC.
1023         * config/arm/arm.c (arm_file_start): Rewrite arm_selecetd_cpu values.
1025 2013-12-17  Eric Botcazou  <ebotcazou@adacore.com>
1027         * expmed.c (lowpart_bit_field_p): Fix comment.
1028         (store_bit_field_using_insv): Fix formatting.
1029         (store_bit_field): Likewise.
1030         (store_fixed_bit_field): More declaration and remove return.
1031         (store_fixed_bit_field_1): Fix formatting.
1032         (extract_fixed_bit_field): Move declaration.
1033         (extract_fixed_bit_field_1): Simplify.
1035 2013-12-17  Jan Hubicka  <hubicka@ucw.cz>
1037         * ipa-utils.h (possible_polymorphic_call_targets): Determine
1038         context of the call.
1039         * gimple-fold.c (gimple_fold_call): Use ipa-devirt to devirtualize.
1041 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
1043         * expr.c (convert_modes): For SUBREG_PROMOTED_VAR_P use SUBREG_REG (x)
1044         instead of x as last gen_lowpart argument.
1046 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
1048         * predict.h (PROB_LIKELY): Fix the value.
1049         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Add support
1050         for overflow checking for modes without 2xwider supported mode,
1051         if the mode has 2xnarrower mode.
1053         * internal-fn.c: Include stringpool.h and tree-ssanames.h.
1054         (ubsan_expand_si_overflow_addsub_check): In the generic expansion,
1055         try to improve generated code if one of the arguments is constant
1056         or get_range_info says that one of the argument is always
1057         negative or always non-negative.
1058         * tree-vrp.c (simplify_internal_call_using_ranges): New function.
1059         (simplify_stmt_using_ranges): Call it.
1061 2013-12-16  Vladimir Makarov  <vmakarov@redhat.com>
1063         PR rtl-optimization/59466
1064         * emit-rtl.c (change_address_1): Don't validate address for LRA.
1065         * recog.c (general_operand): Accept any memory for LRA.
1066         * lra.c (lra_set_insn_recog_data): Add an assert.
1068 2013-12-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1070         * config/arm/driver-arm.c (arm_cpu_table): Add cortex-a12 entry.
1072 2013-12-14  Jan Hubicka  <jh@suse.cz>
1073             Markus Trippelsdorf  <octoploid@yandex.com>
1075         PR ipa/59265
1076         * ipa-profile.c (ipa_profile_generate_summary): Do not ICE when
1077         call is already devirtualized.
1079 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
1081         * Makefile.in (version.o): Restore dependencies on
1082         $(REVISION), $(DATESTAMP), $(BASEVER) and $(DEVPHASE).
1084 2013-12-14  Jan Hubicka  <jh@suse.cz>
1086         PR ipa/59473
1087         * ipa-devirt.c (get_class_context): Do not ICE when type is found
1088         at wrong offset.
1090 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
1092         PR libgomp/58756
1093         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_REDUCTION>: For
1094         reductions without placeholder if is_simd, but when not using
1095         GOMP_SIMD* internal calls, also perform the reduction operation
1096         on the outer var rather than simple assignment.
1098 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
1100         PR middle-end/58956
1101         PR middle-end/59470
1102         * gimple-walk.h (walk_stmt_load_store_addr_fn): New typedef.
1103         (walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Use it
1104         for callback params.
1105         * gimple-walk.c (walk_stmt_load_store_ops): Likewise.
1106         (walk_stmt_load_store_addr_ops): Likewise.  Adjust all callback
1107         calls to supply the gimple operand containing the base tree
1108         as an extra argument.
1109         * tree-ssa-ter.c: Include gimple-walk.h.
1110         (find_ssaname, find_ssaname_in_store): New helper functions.
1111         (find_replaceable_in_bb): For calls or GIMPLE_ASM, only set
1112         same_root_var if USE is used somewhere in the stores of the stmt.
1113         * ipa-prop.c (visit_ref_for_mod_analysis): Remove name of the stmt
1114         argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
1115         * ipa-pure-const.c (check_load, check_store, check_ipa_load,
1116         check_ipa_store): Likewise.
1117         * gimple.c (gimple_ior_addresses_taken_1, check_loadstore): Likewise.
1118         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Likewise.
1119         (verify_non_ssa_vars, visit_bb): Adjust their callers.
1120         * cfgexpand.c (add_scope_conflicts_1): Use
1121         walk_stmt_load_store_addr_fn type for visit variable.
1122         (visit_op, visit_conflict): Remove name of the stmt
1123         argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
1124         * tree-sra.c (asm_visit_addr): Likewise.  Remove name of the data
1125         argument and ATTRIBUTE_UNUSED.
1126         * cgraphbuild.c (mark_address, mark_load, mark_store): Add another
1127         unnamed tree argument.
1128         * gimple-ssa-isolate-paths.c (check_loadstore): Likewise.  Remove
1129         ATTRIBUTE_UNUSED from stmt parameter.
1131 2013-12-16  Chung-Lin Tang  <cltang@codesourcery.com>
1133         * opts-common.c (integral_argument): Add support for
1134         hexadecimal command option integer arguments. Update comments.
1136 2013-12-14   Jan Hubicka  <jh@suse.cz>
1138         PR ipa/59265
1139         * ipa-prop.c (ipa_analyze_call_uses): Skip already
1140         devirtualized calls.
1142 2013-12-14   Jan Hubicka  <jh@suse.cz>
1144         PR middle-end/58477
1145         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
1147 2013-12-14   Jan Hubicka  <jh@suse.cz>
1149         PR middle-end/58477
1150         * cgraphclones.c (cgraph_clone_edge): Do not resolve speculative edges.
1152 2013-12-14   H.J. Lu  <hongjiu.lu@intel.com>
1154         PR target/59492
1155         * config/i386/i386.c (ix86_function_specific_restore): Don't
1156         change -fPIC.
1158 2013-12-14  Eric Botcazou  <ebotcazou@adacore.com>
1160         * var-tracking.c (add_stores): Fix oversight in latest commit.
1162 2013-12-14  Marek Polacek  <polacek@redhat.com>
1164         PR sanitizer/59503
1165         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Call
1166         expand_binop with correct optab depending on code.
1168 2013-12-14  Tom de Vries  <tom@codesourcery.com>
1170         * calls.c (expand_call): Fix REG_PARM_STACK_SPACE comparison.
1172 2013-12-13  DJ Delorie  <dj@redhat.com>
1174         * config/rl78/rl78-expand.md (one_cmplqi2): Make constant signed.
1176         * config/msp430/msp430.md (movqi): replace general_operand with
1177         msp_general_operand and nonimmediate_operand with
1178         msp_nonimmediate_operand to allow volatile operands.
1179         (movhi): Likewise.
1180         (movpsi): Likewise.
1181         (addpsi3): Likewise.
1182         (addhi3): Likewise.
1183         (addhi3_cy): Likewise.
1184         (addchi4_cy): Likewise.
1185         (xor<mode>3): Likewise.
1186         (ome_cmpl<mode>2): Likewise.
1187         (extendqihi2): Likewise.
1188         (zero_extendqihi2): Likewise.
1189         (zero_extendhipsi2): Likewise.
1190         (truncpsihi2): Likewise.
1191         (srai_1): Likewise.
1193 2013-12-13  Vladimir Makarov  <vmakarov@redhat.com>
1195         * ira.h (struct ira_reg_equiv): Rename to ira_reg_equiv_s.
1196         * ira.c: Ditto.
1197         * lra-int.h (lra_init_equiv): New prototype.
1198         * lra-constraints.c (lra_init_equiv, update_equiv): New functions.
1199         (loc_equivalence_callback): Use the 3rd arg.
1200         (lra_constraints): Update equivalences.  Pass curr_insn to
1201         simplify_replace_fn_rtx.
1202         * lra.c (lra): Call lra_init_equiv.
1204 2013-12-13  Kenneth Zadeck  <zadeck@naturalbridge.com>
1206         * genmodes.c (emit_max_int): Fixed missing parens.
1208 2013-12-13  Aldy Hernandez  <aldyh@redhat.com>
1210         PR tree-optimization/59149
1211         * calls.c (flags_from_decl_or_type): Fail on non decl or type.
1212         * trans-mem.c (diagnose_tm_1): Do not call flags_from_decl_or_type
1213         if no type or decl.
1215 2013-12-13  Kenneth Zadeck  <zadeck@naturalbridge.com>
1217         * config/arc/arc.h (BITS_PER_UNIT): Removed.
1218         * config/bfin/bfin.h (BITS_PER_UNIT): Removed.
1219         * config/lm32/lm32.h (BITS_PER_UNIT): Removed.
1220         * config/m32c/m32c.h (BITS_PER_UNIT): Removed.
1221         * config/microblaze/microblaze.h (BITS_PER_UNIT): Removed.
1222         * config/picochip/picochip.h (BITS_PER_UNIT): Removed.
1223         * config/spu/spu.h (BITS_PER_UNIT): Removed.
1224         * defaults.h (BITS_PER_UNIT): Removed.
1225         * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): New.
1226         * doc/rtl (BITS_PER_UNIT): Moved from tm.texi.
1227         (MAX_BITSIZE_MODE_ANY_INT): Updated.
1228         * doc/tm.texi (BITS_PER_UNIT): Removed.
1229         * doc/tm.texi.in (BITS_PER_UNIT): Removed.
1230         * genmodes.c (bits_per_unit, max_bitsize_mode_any_int): New.
1231         (create_modes): Added code to set bits_per_unit and
1232         max_bitsize_mode_any_int.
1233         (emit_max_int): Changed code generation.
1234         * mkconfig.sh: Added insn-modes.h.
1236 2013-12-13  Jeff Law  <law@redhat.com>
1238         PR tree-optimization/45685
1239         * tree-ssa-phiopt.c (neg_replacement): New function.
1240         (tree_ssa_phiopt_worker): Call it.
1242 2013-12-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
1244         * config/i386/i386.c (slm_cost): Fix imul cost for HI.
1246 2013-12-13  Bin Cheng  <bin.cheng@arm.com>
1248         PR tree-optimization/58296
1249         PR tree-optimization/41488
1250         * tree-scalar-evolution.c: Include necessary header files.
1251         (simplify_peeled_chrec): New function.
1252         (analyze_evolution_in_loop): New static variable.
1253         Call simplify_peeled_chrec.
1254         * tree-ssa-loop-ivopts.c (mark_bivs): Don't mark peeled IV as biv.
1255         (add_old_iv_candidates): Don't add candidate for peeled IV.
1256         * tree-affine.h (aff_combination_zero_p): New function.
1258 2013-12-13  Nick Clifton  <nickc@redhat.com>
1260         * config/msp430/msp430.c (is_wakeup_func): New function.  Returns
1261         true if the current function has the wakeup attribute.
1262         (msp430_start_function): Note if the function has the wakeup
1263         attribute.
1264         (msp430_attribute_table): Add wakeup attribute.
1265         (msp430_expand_epilogue): Add support for wakeup functions.
1266         * config/msp430/msp430.md (disable_interrupts): Emit a NOP after
1267         the DINT instruction.
1268         * doc/extend.texi: Document the wakeup attribute.
1270 2013-12-13  Kai Tietz  <kitetz@redhat.com>
1272         PR c++/57897
1273         * config/i386/i386.c (ix86_option_override_internal): Set for
1274         x64 target flag_unwind_tables, if flag_asynchronous_unwind_tables
1275         was explicit set.
1277 2013-12-12  Jeff Law  <law@redhat.com>
1279         * i386.md (simple LEA peephole2): Add missing mode to zero_extend
1280         for zero-extended MULT simple LEA pattern.
1282 2013-12-12  Vladimir Makarov  <vmakarov@redhat.com>
1284         PR middle-end/59470
1285         * lra-coalesce.c (lra_coalesce): Invalidate inheritance pseudo
1286         values if necessary.
1288 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
1290         PR libgomp/59467
1291         * gimplify.c (omp_check_private): Add copyprivate argument, if it
1292         is true, don't check omp_privatize_by_reference.
1293         (gimplify_scan_omp_clauses): For OMP_CLAUSE_COPYPRIVATE verify
1294         decl is private in outer context.  Adjust omp_check_private caller.
1296 2013-12-11  Jeff Law  <law@redhat.com>
1298         PR rtl-optimization/59446
1299         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
1300         test for crossing a loop header.
1302 2013-12-11  Sriraman Tallam  <tmsriram@google.com>
1304         PR target/59390
1305         * config/i386/i386.c (get_builtin): New function.
1306         (ix86_builtin_vectorized_function): Replace all instances of
1307         ix86_builtins[...] with get_builtin(...).
1308         (ix86_builtin_reciprocal): Ditto.
1310 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1312         * langhooks.h (lang_hooks_for_decls): Remove lang_hooks_for_cilkplus.
1313         (lang_hooks_for_cilkplus): Remove.
1314         * langhooks.c (lhd_cilk_detect_spawn): Likewise.
1315         (lhd_install_body_with_frame_cleanup): Likewise.
1316         * langhooks-def.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
1317         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
1318         (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
1319         (LANG_HOOKS_CILKPLUS): Likewise.
1320         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_CILKPLUS.
1321         * gimplify.c (gimplify_expr): Removed CILK_SPAWN_STMT case.
1322         (gimplify_modify_expr): Removed handling of _Cilk_spawn in expr.
1323         (gimplify_call_expr): Likewise.
1325 2013-12-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1327         * expr.c (expand_assignment): Remove dependency on
1328         flag_strict_volatile_bitfields.  Always set the memory access mode.
1329         (expand_expr_real_1): Likewise.
1331 2013-12-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1333         PR middle-end/59134
1334         * expmed.c (store_bit_field): Use narrow_bit_field_mem and
1335         store_fixed_bit_field_1 for -fstrict-volatile-bitfields.
1336         (store_fixed_bit_field): Split up.  Call store_fixed_bit_field_1
1337         to do the real work.
1338         (store_fixed_bit_field_1): New function.
1339         (store_split_bit_field): Limit the unit size to the memory mode size,
1340         to prevent recursion.
1342 2013-12-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1343             Sandra Loosemore  <sandra@codesourcery.com>
1345         PR middle-end/23623
1346         PR middle-end/48784
1347         PR middle-end/56341
1348         PR middle-end/56997
1349         * expmed.c (strict_volatile_bitfield_p): Add bitregion_start
1350         and bitregion_end parameters.  Test for compliance with C++
1351         memory model.
1352         (store_bit_field): Adjust call to strict_volatile_bitfield_p.
1353         Add fallback logic for cases where -fstrict-volatile-bitfields
1354         is supposed to apply, but cannot.
1355         (extract_bit_field): Likewise. Use narrow_bit_field_mem and
1356         extract_fixed_bit_field_1 to do the extraction.
1357         (extract_fixed_bit_field): Revert to previous mode selection algorithm.
1358         Call extract_fixed_bit_field_1 to do the real work.
1359         (extract_fixed_bit_field_1): New function.
1361 2013-12-11  Sandra Loosemore  <sandra@codesourcery.com>
1363         PR middle-end/23623
1364         PR middle-end/48784
1365         PR middle-end/56341
1366         PR middle-end/56997
1367         * expmed.c (strict_volatile_bitfield_p): New function.
1368         (store_bit_field_1): Don't special-case strict volatile
1369         bitfields here.
1370         (store_bit_field): Handle strict volatile bitfields here instead.
1371         (store_fixed_bit_field): Don't special-case strict volatile
1372         bitfields here.
1373         (extract_bit_field_1): Don't special-case strict volatile
1374         bitfields here.
1375         (extract_bit_field): Handle strict volatile bitfields here instead.
1376         (extract_fixed_bit_field): Don't special-case strict volatile
1377         bitfields here.  Simplify surrounding code to resemble that in
1378         store_fixed_bit_field.
1379         * doc/invoke.texi (Code Gen Options): Update
1380         -fstrict-volatile-bitfields description.
1382 2013-12-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
1384         * configure.ac: Add check for aarch64 assembler -mabi support.
1385         * configure: Regenerate.
1386         * config.in: Regenerate.
1387         * config/aarch64/aarch64-elf.h (ASM_MABI_SPEC): New define.
1388         (ASM_SPEC): Update to substitute -mabi with ASM_MABI_SPEC.
1389         * config/aarch64/aarch64.h (aarch64_override_options): Issue error
1390         if assembler does not support -mabi and option ilp32 is selected.
1391         * doc/install.texi: Added note that building gcc 4.9 and after
1392         with pre 2.24 binutils will not support -mabi=ilp32.
1394 2013-12-11  Marek Polacek  <polacek@redhat.com>
1396         PR sanitizer/59399
1397         * expr.c (expand_expr_real_1): Remove assert dealing with
1398         internal calls and turn that into a condition instead.
1400 2013-12-11  Yvan Roux  <yvan.roux@linaro.org>
1402         * config/arm/arm.opt (mlra): Enable LRA by default.
1404 2013-12-11  Jakub Jelinek  <jakub@redhat.com>
1406         PR tree-optimization/59417
1407         * tree-ssa-copy.c (fini_copy_prop): If copy_of[i].value is defined
1408         in a different bb rhan var, only duplicate points-to info and
1409         not alignment info and don't duplicate range info.
1410         * tree-ssa-loop-niter.c (determine_value_range): Instead of
1411         assertion failure handle inconsistencies in range info by only
1412         using var's range info and not PHI result range infos.
1414         PR tree-optimization/59386
1415         * tree-inline.c (remap_gimple_stmt): If not id->do_not_unshare,
1416         unshare_expr (id->retval) before passing it to gimple_build_assign.
1418 2013-12-11  Bin Cheng  <bin.cheng@arm.com>
1420         Reverted:
1421         2013-12-10  Bin Cheng  <bin.cheng@arm.com>
1422         PR tree-optimization/41488
1423         * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
1424         for PEELED_CHREC kind IV.
1425         * tree-scalar-evolution.c: Include necessary header files.
1426         (peeled_chrec_map, simplify_peeled_chrec): New.
1427         (analyze_evolution_in_loop): New static variable.
1428         Call simplify_peeled_chrec.
1429         (scev_initialize): Initialize peeled_chrec_map.
1430         (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
1432 2013-12-10   H.J. Lu  <hongjiu.lu@intel.com>
1434         PR target/59458
1435         * config/i386/i386.md (*movsf_internal): Set mode to SI for
1436         alternative 13.
1438 2013-12-10  Eric Botcazou  <ebotcazou@adacore.com>
1440         PR rtl-optimization/58295
1441         * simplify-rtx.c (simplify_truncation): Restrict the distribution for
1442         WORD_REGISTER_OPERATIONS targets.
1444 2013-12-10  Richard Sandiford  <rdsandiford@googlemail.com>
1446         * genrecog.c (validate_pattern): Treat all messages except missing
1447         modes as errors.
1448         * config/epiphany/epiphany.md: Remove constraints from
1449         define_peephole2s.
1450         * config/h8300/h8300.md: Remove constraints from define_splits.
1451         * config/msp430/msp430.md: Likewise.
1452         * config/mcore/mcore.md (movdi_i, movsf_i, movdf_k): Use
1453         nonimmediate_operand rather than general_operand for operand 0.
1454         * config/moxie/moxie.md (*movsi, *movqi, *movhi): Likewise.
1455         * config/pdp11/predicates.md (float_operand, float_nonimm_operand):
1456         Use match_operator rather than match_test to invoke general_operand.
1457         * config/v850/v850.md (*movqi_internal, *movhi_internal)
1458         (*movsi_internal_v850e, *movsi_internal, *movsf_internal): Likewise.
1460 2013-12-10  Richard Sandiford  <rdsandiford@googlemail.com>
1462         * config/tilegx/tilegx.md (insn_ld_add<bitsuffix>): Use
1463         register_operand rather than pointer_operand.  Add modes to the
1464         operands.
1465         (insn_ldna_add<bitsuffix>): Likewise.
1466         (insn_ld<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
1467         (insn_ldnt_add<bitsuffix>): Likewise.
1468         (insn_ldnt<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
1469         (insn_ld_add_L2<bitsuffix>): Likewise.
1470         (insn_ldna_add_L2<bitsuffix>): Likewise.
1471         (insn_ld<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
1472         (insn_ldnt_add_L2<bitsuffix>): Likewise.
1473         (insn_ldnt<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
1474         (insn_ld_add_miss<bitsuffix>): Likewise.
1475         (insn_ldna_add_miss<bitsuffix>): Likewise.
1476         (insn_ld<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
1477         (insn_ldnt_add_miss<bitsuffix>): Likewise.
1478         (insn_ldnt<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
1479         (insn_st_add<bitsuffix>): Likewise.
1480         (insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1481         (*insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1482         (insn_stnt_add<bitsuffix>): Likewise.
1483         (insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1484         (*insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1485         (vec_pack_<pack_optab>_v4hi): Use register_operand rather than
1486         reg_or_0_operand for operand 0.
1487         (insn_v2<pack_insn>): Likewise.
1488         (vec_pack_hipart_v4hi): Likewise.
1489         (insn_v2packh): Likewise.
1490         (vec_pack_ssat_v2si): Likewise.
1491         (insn_v4packsc): Likewise.
1493 2013-12-10  H.J. Lu  <hongjiu.lu@intel.com>
1495         * basic-block.h (gcov_working_set_t): Put back typedef.
1496         * gcov-io.h (gcov_bucket_type): Likewise.
1497         (gcov_working_set_info, gcov_working_set_t): Likewise.
1499 2013-12-10  Oleg Endo  <olegendo@gcc.gnu.org>
1501         * cgraph.h (cgraph_node_set_iterator, varpool_node_set_iterator):
1502         Remove typedef.
1503         (cgraph_inline_failed_enum, cgraph_inline_failed_t): Remove typedef and
1504         rename to cgraph_inline_failed_t.
1505         * tree-ssa-alias.h (ao_ref_s, ao_ref): Remove typedef and rename
1506         to ao_ref.
1507         * reload.h (reg_equivs_s, reg_equivs_t): Remove typedef and rename
1508         to reg_equivs_t.
1509         * conditions.h (CC_STATUS): Remove typedef.
1510         * bitmap.h (bitmap_obstack): Remove typedef.
1511         (bitmap_element_def, bitmap_element): Remove typedef and rename to
1512         bitmap_element.
1513         (bitmap_head_def, bitmap_head): Remove typedef and rename to
1514         bitmap_head.
1515         (bitmap_iterator): Remove typedef.
1516         * target.h (cumulative_args_t, print_switch_type,
1517         secondary_reload_info): Remove typedef.
1518         * dwarf2out.h (dw_cfi_oprnd_struct, dw_cfi_oprnd): Remove
1519         dw_cfi_oprnd_struct alias.
1520         (dw_cfi_struct, dw_cfi_node): Remove typedef and rename to dw_cfi_node.
1521         (dw_fde_struct, dw_fde_node): Remove typedef and rename to dw_fde_node.
1522         (cfa_loc, dw_cfa_location): Remove typedef and rename to
1523         dw_cfa_location.
1524         (dw_vec_struct, dw_vec_const): Remove typedef and rename to
1525         dw_vec_const.
1526         (dw_val_struct, dw_val_node): Remove typedef and rename to dw_val_node.
1527         (dw_loc_descr_struct, dw_loc_descr_node): Remove typedef and rename to
1528         dw_loc_descr_node.
1529         * params.h (param_info, compiler_param): Remove typedef.
1530         * opts.h (cl_deferred_param): Remove typedef.
1531         * sreal.h (sreal): Remove typedef.
1532         * ddg.h (dep_type, dep_data_type): Remove typedef.
1533         * graphite-clast-to-gimple.h (cloog_prog_clast, bb_pbb_def): Remove
1534         typedef.
1535         * lto-streamer.h (lto_decl_stream_e_t, lto_encoder_entry,
1536         lto_symtab_encoder_iterator, res_pair): Remove typedef.
1537         * tree-affine.h (affine_tree_combination, aff_tree): Remove typedef
1538         and rename to aff_tree.
1539         * sched-int.h (region): Remove typedef.
1540         * diagnostic.h (diagnostic_info,
1541         diagnostic_classification_change_t): Remove typedef.
1542         * tree-ssa-loop.h (affine_iv_d): Remove typedef and rename to
1543         affine_iv.
1544         * sbitmap.h (sbitmap_iterator): Remove typedef.
1545         * ssa-iterators.h (immediate_use_iterator_d, imm_use_iterator):
1546         Remove typedef and rename to imm_use_iterator.
1547         (ssa_operand_iterator_d, ssa_op_iter): Remove typedef and rename to
1548         ssa_op_iter.
1549         * ggc-internal.h (ggc_statistics): Remove typedef.
1550         * cselib.h (cselib_val_struct, cselib_val): Remove typedef and
1551         rename to cselib_val.
1552         * tree-core.h (alias_pair): Remove typedef.
1553         (constructor_elt_d, constructor_elt): Remove typedef and rename to
1554         constructor_elt.
1555         (ssa_use_operand_d, ssa_use_operand_t): Remove typedef and rename to
1556         ssa_use_operand_t.
1557         * graphite-sese-to-poly.h (base_alias_pair): Remove typedef.
1558         * tree-data-ref.h (conflict_function): Remove typedef.
1559         * tree-inline.h (copy_body_data): Remove typedef.
1560         * ipa-inline.h (condition, size_time_entry, inline_param_summary_t,
1561         edge_growth_cache_entry): Remove typedef.
1562         * regrename.h (operand_rr_info, insn_rr_info): Remove typedef.
1563         * gimple-iterator.h (gimple_stmt_iterator_d, gimple_stmt_iterator):
1564         Remove typedef and rename to gimple_stmt_iterator.
1565         * basic-block.h (ce_if_block, ce_if_block_t): Remove typedef and
1566         rename to ce_if_block.
1567         (edge_iterator): Remove typedef.
1568         * ipa-prop.h (ipa_agg_jf_item, ipa_agg_jf_item_t): Remove typedef
1569         and rename to ipa_agg_jf_item.
1570         (ipa_agg_jump_function_t, ipa_param_descriptor_t, ipa_node_params_t,
1571         ipa_parm_adjustment_t): Remove typedef.
1572         (ipa_jump_func, ipa_jump_func_t): Remove typedef and rename to
1573         ipa_jump_func.
1574         (ipa_edge_args, ipa_edge_args_t): Remove typedef and rename to
1575         ipa_edge_args.
1576         * gcov-io.h (gcov_bucket_type): Remove typedef.
1577         (gcov_working_set_info, gcov_working_set_t): Remove typedef and rename
1578         to gcov_working_set_t.
1579         * ira-int.h (minmax_set_iterator, ira_allocno_iterator,
1580         ira_object_iterator, ira_allocno_object_iterator, ira_pref_iterator,
1581         ira_copy_iterator, ira_object_conflict_iterator): Remove typedef.
1582         * tree-iterator.h (tree_stmt_iterator): Remove typedef.
1583         * rtl.h (addr_diff_vec_flags, mem_attrs, reg_attrs,
1584         replace_label_data): Remove typedef.
1585         (rtunion_def, rtunion): Remove typedef and rename to rtunion.
1586         * hard-reg-set.h (hard_reg_set_iterator): Remove typedef.
1587         * sel-sched-ir.h (_list_iterator, sel_global_bb_info_def,
1588         sel_region_bb_info_def, succ_iterator): Remove typedef.
1589         (deps_where_def, deps_where_t): Remove typedef and rename to
1590         deps_where_t.
1591         * coretypes.h: Adapt forward declarations.
1592         * tree-scalar-evolution.h: Likewise.
1593         * tree-ssa-address.h: Likewise.
1594         * tree-ssa-operands.h: Likewise.
1595         * function.h: Likewise.
1596         * config/frv/frv-protos.h: Likewise.
1597         * targhooks.h: Likewise.
1598         * basic_block.h: Likewise.
1599         * rtl.def: Adapt documentation.
1600         * doc/tm.texi: Likewise.
1601         * ipa-cp.c: Adapt uses.
1602         * bitmap.c: Likewise.
1603         * dwarf2out.c: Likewise.
1604         * target.def: Likewise.
1605         * ipa-inline-analysis.c: Likewise.
1606         * dwarf2cfi.c: Likewise.
1607         * tree-ssa-loop-ivopts.c: Likewise.
1608         * lto-cgraph.c: Likewise.
1609         * config/frv/frv.c: Likewise.
1610         * ifcvt.c: Likewise.
1611         * ipa-prop.c: Likewise.
1613 2013-12-10  Kai Tietz  <ktietz@redhat.com>
1615         PR target/56807
1616         * config/i386/i386.c (ix86_expand_prologue): Address saved
1617         registers stack-relative, not via frame-pointer.
1619 2013-12-10  Richard Biener  <rguenther@suse.de>
1621         PR middle-end/38474
1622         * tree-ssa-structalias.c (solution_set_expand): Expand into
1623         a different possibly cached bitmap and return the result.
1624         (set_union_with_increment): Pass in a shared expanded bitmap
1625         and adjust.
1626         (do_sd_constraint): Likewise.
1627         (do_ds_constraint): Likewise.
1628         (do_complex_constraint): Likewise.
1629         (solve_graph): Manage the shared expanded bitmap.
1631 2013-12-10  Jakub Jelinek  <jakub@redhat.com>
1633         * tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field.
1634         (LOOP_VINFO_SCALAR_LOOP): Define.
1635         (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
1636         * config/i386/sse.md (maskload<mode>, maskstore<mode>): New expanders.
1637         * tree-data-ref.c (get_references_in_stmt): Handle MASK_LOAD and
1638         MASK_STORE.
1639         * internal-fn.def (LOOP_VECTORIZED, MASK_LOAD, MASK_STORE): New
1640         internal fns.
1641         * tree-if-conv.c: Include expr.h, optabs.h, tree-ssa-loop-ivopts.h and
1642         tree-ssa-address.h.
1643         (release_bb_predicate): New function.
1644         (free_bb_predicate): Use it.
1645         (reset_bb_predicate): Likewise.  Don't unallocate bb->aux
1646         just to immediately allocate it again.
1647         (add_to_predicate_list): Add loop argument.  If basic blocks that
1648         dominate loop->latch don't insert any predicate.
1649         (add_to_dst_predicate_list): Adjust caller.
1650         (if_convertible_phi_p): Add any_mask_load_store argument, if true,
1651         handle it like flag_tree_loop_if_convert_stores.
1652         (insert_gimplified_predicates): Likewise.
1653         (ifcvt_can_use_mask_load_store): New function.
1654         (if_convertible_gimple_assign_stmt_p): Add any_mask_load_store
1655         argument, check if some conditional loads or stores can't be
1656         converted into MASK_LOAD or MASK_STORE.
1657         (if_convertible_stmt_p): Add any_mask_load_store argument,
1658         pass it down to if_convertible_gimple_assign_stmt_p.
1659         (predicate_bbs): Don't return bool, only check if the last stmt
1660         of a basic block is GIMPLE_COND and handle that.  Adjust
1661         add_to_predicate_list caller.
1662         (if_convertible_loop_p_1): Only call predicate_bbs if
1663         flag_tree_loop_if_convert_stores and free_bb_predicate in that case
1664         afterwards, check gimple_code of stmts here.  Replace is_predicated
1665         check with dominance check.  Add any_mask_load_store argument,
1666         pass it down to if_convertible_stmt_p and if_convertible_phi_p,
1667         call if_convertible_phi_p only after all if_convertible_stmt_p calls.
1668         (if_convertible_loop_p): Add any_mask_load_store argument,
1669         pass it down to if_convertible_loop_p_1.
1670         (predicate_mem_writes): Emit MASK_LOAD and/or MASK_STORE calls.
1671         (combine_blocks): Add any_mask_load_store argument, pass
1672         it down to insert_gimplified_predicates and call predicate_mem_writes
1673         if it is set.  Call predicate_bbs.
1674         (version_loop_for_if_conversion): New function.
1675         (tree_if_conversion): Adjust if_convertible_loop_p and combine_blocks
1676         calls.  Return todo flags instead of bool, call
1677         version_loop_for_if_conversion if if-conversion should be just
1678         for the vectorized loops and nothing else.
1679         (main_tree_if_conversion): Adjust caller.  Don't call
1680         tree_if_conversion for dont_vectorize loops if if-conversion
1681         isn't explicitly enabled.
1682         * tree-vect-data-refs.c (vect_check_gather): Handle
1683         MASK_LOAD/MASK_STORE.
1684         (vect_analyze_data_refs, vect_supportable_dr_alignment): Likewise.
1685         * gimple.h (gimple_expr_type): Handle MASK_STORE.
1686         * internal-fn.c (expand_LOOP_VECTORIZED, expand_MASK_LOAD,
1687         expand_MASK_STORE): New functions.
1688         * tree-vectorizer.c: Include tree-cfg.h and gimple-fold.h.
1689         (vect_loop_vectorized_call, fold_loop_vectorized_call): New functions.
1690         (vectorize_loops): Don't try to vectorize loops with
1691         loop->dont_vectorize set.  Set LOOP_VINFO_SCALAR_LOOP for if-converted
1692         loops, fold LOOP_VECTORIZED internal call depending on if loop
1693         has been vectorized or not.
1694         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
1695         New function.
1696         (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
1697         If non-NULL, copy basic blocks from scalar_loop instead of loop, but
1698         still to loop's entry or exit edge.
1699         (slpeel_tree_peel_loop_to_edge): Add scalar_loop argument, pass it
1700         down to slpeel_tree_duplicate_loop_to_edge_cfg.
1701         (vect_do_peeling_for_loop_bound, vect_do_peeling_for_loop_alignment):
1702         Adjust callers.
1703         (vect_loop_versioning): If LOOP_VINFO_SCALAR_LOOP, perform loop
1704         versioning from that loop instead of LOOP_VINFO_LOOP, move it to the
1705         right place in the CFG afterwards.
1706         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
1707         MASK_STORE.
1708         * cfgloop.h (struct loop): Add dont_vectorize field.
1709         * tree-loop-distribution.c (copy_loop_before): Adjust
1710         slpeel_tree_duplicate_loop_to_edge_cfg caller.
1711         * optabs.def (maskload_optab, maskstore_optab): New optabs.
1712         * passes.def: Add a note that pass_vectorize must immediately follow
1713         pass_if_conversion.
1714         * tree-predcom.c (split_data_refs_to_components): Give up if
1715         DR_STMT is a call.
1716         * tree-vect-stmts.c (vect_mark_relevant): Don't crash if lhs is NULL.
1717         (exist_non_indexing_operands_for_use_p): Handle MASK_LOAD
1718         and MASK_STORE.
1719         (vectorizable_mask_load_store): New function.
1720         (vectorizable_call): Call it for MASK_LOAD or MASK_STORE.
1721         (vect_transform_stmt): Handle MASK_STORE.
1722         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Ignore
1723         DR_STMT where lhs is NULL.
1724         * optabs.h (can_vec_perm_p): Fix up comment typo.
1725         (can_vec_mask_load_store_p): New prototype.
1726         * optabs.c (can_vec_mask_load_store_p): New function.
1728 2013-12-10  Eric Botcazou  <ebotcazou@adacore.com>
1730         * expr.c (expand_expr_real_1) <normal_inner_ref>: Always return 0 for
1731         the extraction of a bit-field of null size.
1733 2013-12-10  Marek Polacek  <polacek@redhat.com>
1735         PR sanitizer/59437
1736         * vtable-verify.c (var_is_used_for_virtual_call_p): Check the
1737         return value of gimple_call_fn.  Use is_gimple_call/is_gimple_assign
1738         instead of gimple_code.
1740 2013-12-10  Maxim Kuvyrkov  <maxim@kugelworks.com>
1742         * config.gcc (mips*-mti-linux*, mips64*-*-linux*):
1743         Add android definitions.
1744         (s390x-*-linux*): Use linux-protos.h.
1746 2013-12-10  Bin Cheng  <bin.cheng@arm.com>
1748         PR tree-optimization/41488
1749         * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
1750         for PEELED_CHREC kind IV.
1751         * tree-scalar-evolution.c: Include necessary header files.
1752         (peeled_chrec_map, simplify_peeled_chrec): New.
1753         (analyze_evolution_in_loop): New static variable.
1754         Call simplify_peeled_chrec.
1755         (scev_initialize): Initialize peeled_chrec_map.
1756         (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
1758 2013-12-09  Andrew Pinski  <apinski@cavium.com>
1760         * config/aarch64/t-aarch64 (MULTILIB_OPTIONS): Fix definition so
1761         that options are conflicting ones.
1763 2013-12-09  Eric Botcazou  <ebotcazou@adacore.com>
1765         * optabs.c (gen_int_libfunc): Do not compare modes directly.
1767 2013-12-09  David Malcolm  <dmalcolm@redhat.com>
1769         * basic-block.h (FOR_ALL_BB): Eliminate macro.
1771         * cfg.c (alloc_aux_for_blocks, clear_aux_for_blocks): Replace
1772         uses of FOR_ALL_BB with FOR_ALL_BB_FN, making uses of cfun explicit.
1774         * cfganal.c (inverted_post_order_compute): Likewise.
1775         * cfgcleanup.c (try_optimize_cfg): Likewise.
1776         * cfgexpand.c (add_scope_conflicts): Likewise.
1777         * cfghooks.c (dump_flow_info, account_profile_record): Likewise.
1778         * cfgrtl.c (relink_block_chain): Likewise.
1779         * dce.c (mark_artificial_uses): Likewise.
1780         * df-core.c (df_set_blocks, df_compute_cfg_image, df_dump): Likewise.
1781         * df-problems.c (df_lr_verify_solution_start,
1782         df_lr_verify_solution_end, df_lr_verify_transfer_functions,
1783         df_live_verify_solution_start, df_live_verify_solution_end,
1784         df_live_set_all_dirty, df_live_verify_transfer_functions,
1785         df_md_local_comput): Likewise.
1786         * df-scan.c (df_scan_free_internal, df_scan_alloc)
1787         df_reorganize_refs_by_insn, df_scan_verify): Likewise.
1788         * dominance.c (compute_dom_fast_query, calculate_dominance_info,
1789         free_dominance_info): Likewise.
1790         * dse.c (dse_step1, dse_step3, dse_step4, dse_step6): Likewise.
1791         * graph.c (draw_cfg_edges): Likewise.
1792         * graphite-scop-detection.c (print_graphite_scop_statistics,
1793         dot_all_scops_1): Likewise.
1794         * graphite.c (print_global_statistics,
1795         print_graphite_scop_statistics): Likewise.
1796         * ira.c (do_reload): Likewise.
1797         * loop-init.c (loop_optimizer_finalize): Likewise.
1798         * lto-streamer-in.c (input_function): Likewise.
1799         * lto-streamer-out.c (output_function): Likewise.
1800         * mcf.c (adjust_cfg_counts): Likewise.
1801         * predict.c (estimate_loops): Likewise.
1802         * sched-rgn.c (haifa_find_rgns): Likewise.
1803         * tree-cfg.c (split_critical_edges): Likewise.
1804         * tree-dfa.c (renumber_gimple_stmt_uids): Likewise.
1805         * tree-loop-distribution.c (tree_loop_distribution): Likewise.
1806         * tree-ssa-pre.c (compute_antic, insert, init_pre): Likewise.
1807         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1808         * var-tracking.c (vt_initialize, vt_finalize): Likewise.
1809         * vtable-verify.c (vtable_verify_main): Likewise.
1810         * web.c (web_main): Likewise.
1812 2013-12-09  David Malcolm  <dmalcolm@redhat.com>
1814         * basic-block.h (FOR_EACH_BB_REVERSE): Eliminate macro.
1816         * cfghooks.c (verify_flow_info): Replace uses of FOR_EACH_BB_REVERSE
1817         with FOR_EACH_BB_REVERSE_FN, making uses of cfun explicit.
1818         * cfgrtl.c (print_rtl_with_bb, rtl_verify_edges,
1819         rtl_verify_bb_insns, rtl_verify_bb_pointers,
1820         rtl_verify_bb_insn_chain, rtl_verify_fallthru): Likewise.
1821         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1822         * config/sh/sh.c (sh_md_init_global): Likewise.
1823         * config/sh/sh_optimize_sett_clrt.cc
1824         (sh_optimize_sett_clrt::execute): Likewise.
1825         * dce.c (reset_unmarked_insns_debug_uses, delete_unmarked_insns):
1826         Likewise.
1827         * dominance.c (calc_dfs_tree): Likewise.
1828         * final.c (final): Likewise.
1829         * function.c (thread_prologue_and_epilogue_insns): Likewise.
1830         * gcse.c (compute_code_hoist_vbeinout): Likewise.
1831         * ira.c (update_equiv_regs, build_insn_chain): Likewise.
1832         * lcm.c (compute_antinout_edge): Likewise.
1833         * mode-switching.c (optimize_mode_switching): Likewise.
1834         * postreload.c (reload_combine): Likewise.
1835         * recog.c (split_all_insns, peephole2_optimize): Likewise.
1836         * tree-ssa-live.c (live_worklist): Likewise.
1838 2013-12-09  David Malcolm  <dmalcolm@redhat.com>
1840         * basic-block.h (FOR_EACH_BB): Eliminate macro.
1842         * asan.c (transform_statements, execute_sanopt): Eliminate
1843         use of FOR_EACH_BB in favor of FOR_EACH_BB_FN, to make use of cfun
1844         explicit.
1845         * auto-inc-dec.c (rest_of_handle_auto_inc_dec): Likewise.
1846         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges,
1847         set_edge_can_fallthru_flag, fix_up_fall_thru_edges,
1848         fix_crossing_unconditional_branches, add_reg_crossing_jump_notes,
1849         insert_section_boundary_note, rest_of_handle_reorder_blocks,
1850         duplicate_computed_gotos): Likewise.
1851         * cfg.c (clear_edges, compact_blocks, brief_dump_cfg): Likewise.
1852         * cfganal.c (find_unreachable_blocks, add_noreturn_fake_exit_edges,
1853         compute_dominance_frontiers_1, single_pred_before_succ_order): Likewise.
1854         * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
1855         * cfgcleanup.c (try_optimize_cfg, delete_dead_jumptables): Likewise.
1856         * cfgexpand.c (add_scope_conflicts, discover_nonconstant_array_refs):
1857         Likewise.
1858         * cfgloop.c (flow_loops_cfg_dump, get_loop_body, record_loop_exits,
1859         verify_loop_structure): Likewise.
1860         * cfgloopanal.c (mark_loop_exit_edges): Likewise.
1861         * cfgrtl.c (compute_bb_for_insn, find_partition_fixes,
1862         verify_hot_cold_block_grouping, purge_all_dead_edges,
1863         fixup_abnormal_edges, record_effective_endpoints,
1864         outof_cfg_layout_mode, fixup_reorder_chain, force_one_exit_fallthru,
1865         break_superblocks): Likewise.
1866         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges,
1867         cgraph_rebuild_references): Likewise.
1868         * combine-stack-adj.c (combine_stack_adjustments): Likewise.
1869         * combine.c (delete_noop_moves, create_log_links,
1870         combine_instructions): Likewise.
1871         * config/arm/arm.c (thumb1_reorg, thumb2_reorg): Likewise.
1872         * config/bfin/bfin.c (bfin_gen_bundles, reorder_var_tracking_notes):
1873         Likewise.
1874         * config/c6x/c6x.c (c6x_gen_bundles, conditionalize_after_sched,
1875         c6x_reorg): Likewise.
1876         * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
1877         * config/frv/frv.c (frv_optimize_membar): Likewise.
1878         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
1879         * config/ia64/ia64.c (ia64_reorg): Likewise.
1880         * config/mips/mips.c (mips_annotate_pic_calls): Likewise.
1881         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
1882         * config/rs6000/rs6000.c (rs6000_alloc_sdmode_stack_slot): Likewise.
1883         * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
1884         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Likewise.
1885         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1886         * config/tilegx/tilegx.c (tilegx_gen_bundles,
1887         reorder_var_tracking_notes): Likewise.
1888         * config/tilepro/tilepro.c (tilepro_gen_bundles,
1889         reorder_var_tracking_notes): Likewise.
1890         * coverage.c (coverage_compute_cfg_checksum): Likewise.
1891         * cprop.c (compute_hash_table_work, compute_cprop_data,
1892         local_cprop_pass, find_implicit_sets): Likewise.
1893         * cse.c (cse_condition_code_reg): Likewise.
1894         * dce.c (prescan_insns_for_dce): Likewise.
1895         * df-core.c (df_compact_blocks): Likewise.
1896         * df-problems.c (df_word_lr_alloc): Likewise.
1897         * df-scan.c (df_scan_start_dump, df_scan_blocks, df_insn_rescan_all,
1898         df_update_entry_exit_and_calls): Likewise.
1899         * dominance.c (calculate_dominance_info, verify_dominators,
1900         debug_dominance_info): Likewise.
1901         * dse.c (dse_step5_nospill): Likewise.
1902         * except.c (finish_eh_generation): Likewise.
1903         * final.c (compute_alignments): Likewise.
1904         * function.c (thread_prologue_and_epilogue_insns,
1905         rest_of_match_asm_constraints): Likewise.
1906         * gcse.c (compute_hash_table_work, prune_expressions,
1907         compute_pre_data, compute_code_hoist_vbeinout, hoist_code,
1908         calculate_bb_reg_pressure, compute_ld_motion_mems): Likewise.
1909         * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
1910         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour,
1911         find_explicit_erroneous_behaviour): Likewise.
1912         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa,
1913         rewrite_cross_bb_scalar_deps_out_of_ssa): Likewise.
1914         * haifa-sched.c (haifa_sched_init): Likewise.
1915         * hw-doloop.c (discover_loops, set_bb_indices, reorder_loops):
1916         Likewise.
1917         * ifcvt.c (if_convert): Likewise.
1918         * init-regs.c (initialize_uninitialized_regs): Likewise.
1919         * ipa-prop.c (ipcp_transform_function): Likewise.
1920         * ipa-pure-const.c (analyze_function): Likewise.
1921         * ipa-split.c (find_split_points, execute_split_functions): Likewise.
1922         * ira-build.c (form_loop_tree): Likewise.
1923         * ira-costs.c (find_costs_and_classes): Likewise.
1924         * ira-emit.c (emit_moves, add_ranges_and_copies, ira_emit): Likewise.
1925         * ira.c (decrease_live_ranges_number, compute_regs_asm_clobbered,
1926         mark_elimination, update_equiv_regs, find_moveable_pseudos,
1927         split_live_ranges_for_shrink_wrap, allocate_initial_values): Likewise.
1928         * jump.c (mark_all_labels): Likewise.
1929         * lcm.c (compute_laterin, compute_insert_delete, compute_available,
1930         compute_nearerout, compute_rev_insert_delete): Likewise.
1931         * loop-init.c (fix_loop_structure): Likewise.
1932         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
1933         * lower-subreg.c (decompose_multiword_subregs,
1934         decompose_multiword_subregs): Likewise.
1935         * lra-assigns.c (assign_by_spills): Likewise.
1936         * lra-coalesce.c (lra_coalesce): Likewise.
1937         * lra-constraints.c (lra_inheritance, remove_inheritance_pseudos):
1938         Likewise.
1939         * lra-eliminations.c (lra_init_elimination): Likewise.
1940         * lra-spills.c (assign_spill_hard_regs, spill_pseudos,
1941         lra_final_code_change): Likewise.
1942         * lra.c (remove_scratches, check_rtl, has_nonexceptional_receiver,
1943         update_inc_notes): Likewise.
1944         * mcf.c (adjust_cfg_counts): Likewise.
1945         * mode-switching.c (optimize_mode_switching): Likewise.
1946         * modulo-sched.c (rest_of_handle_sms): Likewise.
1947         * omp-low.c (optimize_omp_library_calls, expand_omp_taskreg,
1948         expand_omp_target): Likewise.
1949         * postreload-gcse.c (alloc_mem, compute_hash_table): Likewise.
1950         * postreload.c (reload_cse_regs_1): Likewise.
1951         * predict.c (strip_predict_hints, tree_bb_level_predictions,
1952         tree_estimate_probability, expensive_function_p,
1953         estimate_bb_frequencies, compute_function_frequency): Likewise.
1954         * profile.c (is_inconsistent, compute_branch_probabilities,
1955         branch_prob): Likewise.
1956         * ree.c (find_removable_extensions): Likewise.
1957         * reg-stack.c (compensate_edges, convert_regs, reg_to_stack): Likewise.
1958         * regcprop.c (copyprop_hardreg_forward): Likewise.
1959         * reginfo.c (init_subregs_of_mode): Likewise.
1960         * regrename.c (regrename_analyze): Likewise.
1961         * regstat.c (regstat_compute_ri, regstat_compute_calls_crossed):
1962         Likewise.
1963         * reload1.c (has_nonexceptional_receiver, reload,
1964         calculate_elim_costs_all_insns): Likewise.
1965         * resource.c (init_resource_info, free_resource_info): Likewise.
1966         * sched-ebb.c (schedule_ebbs): Likewise.
1967         * sched-rgn.c (is_cfg_nonregular, find_single_block_region,
1968         haifa_find_rgns, sched_rgn_local_init): Likewise.
1969         * sel-sched-dump.c (sel_dump_cfg_2): Likewise.
1970         * sel-sched-ir.c (init_lv_sets, free_lv_sets,
1971         make_regions_from_the_rest): Likewise.
1972         * sese.c (build_sese_loop_nests, sese_build_liveouts): Likewise.
1973         * stack-ptr-mod.c (notice_stack_pointer_modification): Likewise.
1974         * store-motion.c (compute_store_table, build_store_vectors,
1975         one_store_motion_pass): Likewise.
1976         * tracer.c (tail_duplicate): Likewise.
1977         * trans-mem.c (compute_transaction_bits): Likewise.
1978         * tree-call-cdce.c (tree_call_cdce): Likewise.
1979         * tree-cfg.c (replace_loop_annotate, factor_computed_gotos,
1980         fold_cond_expr_cond, make_edges, assign_discriminators,
1981         make_abnormal_goto_edges, cleanup_dead_labels, group_case_labels,
1982         dump_cfg_stats, gimple_verify_flow_info, print_loop,
1983         execute_fixup_cfg): Likewise.
1984         * tree-cfgcleanup.c (cleanup_tree_cfg_1, merge_phi_nodes): Likewise.
1985         * tree-complex.c (init_dont_simulate_again, tree_lower_complex):
1986         Likewise.
1987         * tree-dfa.c (collect_dfa_stats, dump_enumerated_decls): Likewise.
1988         * tree-eh.c (execute_lower_resx, execute_lower_eh_dispatch,
1989         mark_reachable_handlers): Likewise.
1990         * tree-emutls.c (lower_emutls_function_body): Likewise.
1991         * tree-if-conv.c (main_tree_if_conversion): Likewise.
1992         * tree-inline.c (optimize_inline_calls): Likewise.
1993         * tree-into-ssa.c (rewrite_into_ssa, update_ssa): Likewise.
1994         * tree-nrv.c (tree_nrv, execute_return_slot_opt): Likewise.
1995         * tree-object-size.c (compute_object_sizes): Likewise.
1996         * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees,
1997         insert_backedge_copies, tree_profiling): Likewise.
1998         * tree-scalar-evolution.c (scev_const_prop): Likewise.
1999         * tree-sra.c (scan_function, sra_modify_function_body,
2000         propagate_dereference_distances, ipa_sra_modify_function_body,
2001         convert_callers): Likewise.
2002         * tree-ssa-ccp.c (ccp_initialize, execute_fold_all_builtins): Likewise.
2003         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
2004         create_outofssa_var_map, coalesce_partitions): Likewise.
2005         * tree-ssa-copy.c (init_copy_prop): Likewise.
2006         * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
2007         * tree-ssa-dce.c (find_obviously_necessary_stmts,
2008         eliminate_unnecessary_stmts): Likewise.
2009         * tree-ssa-dom.c (free_all_edge_infos, tree_ssa_dominator_optimize):
2010         Likewise.
2011         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
2012         * tree-ssa-live.c (clear_unused_block_pointer, remove_unused_locals,
2013         new_tree_live_info, calculate_live_on_exit, dump_live_info,
2014         analyze_memory_references, fill_always_executed_in,
2015         tree_ssa_lim_finalize): Likewise.
2016         * tree-ssa-loop-manip.c (find_uses_to_rename, verify_loop_closed_ssa):
2017         Likewise.
2018         * tree-ssa-math-opts.c (execute_cse_reciprocals, execute_cse_sincos,
2019         execute_optimize_bswap, execute_optimize_widening_mul): Likewise.
2020         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
2021         * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
2022         * tree-ssa-tail-merge.c (find_same_succ, reset_cluster_vectors):
2023         Likewise.
2024         * tree-ssa-ter.c (find_replaceable_exprs): Likewise.
2025         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
2026         * tree-ssa-uncprop.c (associate_equivalences_with_edges,
2027         tree_ssa_uncprop): Likewise.
2028         * tree-ssa-uninit.c (warn_uninitialized_vars,
2029         execute_late_warn_uninitialized): Likewise.
2030         * tree-ssa.c (verify_ssa, execute_update_addresses_taken): Likewise.
2031         * tree-stdarg.c (check_all_va_list_escapes, execute_optimize_stdarg):
2032         Likewise.
2033         * tree-switch-conversion.c (do_switchconv): Likewise.
2034         * tree-vect-generic.c (expand_vector_operations): Likewise.
2035         * tree-vectorizer.c (adjust_simduid_builtins, note_simd_array_uses,
2036         execute_vect_slp): Likewise.
2037         * tree-vrp.c (check_all_array_refs, remove_range_assertions,
2038         vrp_initialize, identify_jump_threads, instrument_memory_accesses):
2039         Likewise.
2040         * ubsan.c (ubsan_pass): Likewise.
2041         * value-prof.c (verify_histograms,
2042         gimple_value_profile_transformations, gimple_find_values_to_profile):
2043         Likewise.
2044         * var-tracking.c (vt_find_locations, dump_dataflow_sets, vt_emit_notes,
2045         vt_initialize, delete_debug_insns, vt_finalize): Likewise.
2047 2013-12-09  David Malcolm  <dmalcolm@redhat.com>
2049         * basic-block.h (last_basic_block): Eliminate macro.
2051         * asan.c (transform_statements): Eliminate use of last_basic_block
2052         in favor of last_basic_block_for_fn, in order to make use of cfun
2053         explicit.
2054         * bb-reorder.c (copy_bb, reorder_basic_blocks): Likewise.
2055         * bt-load.c (compute_defs_uses_and_gen, compute_kill, compute_out,
2056         link_btr_uses, build_btr_def_use_webs, migrate_btr_defs): Likewise.
2057         * cfg.c (compact_blocks): Likewise.
2058         * cfganal.c (mark_dfs_back_edges,
2059         control_dependences::control_dependences, post_order_compute,
2060         pre_and_rev_post_order_compute_fn, dfs_enumerate_from, compute_idf,
2061         single_pred_before_succ_order): Likewise.
2062         * cfgbuild.c (make_edges): Likewise.
2063         * cfgexpand.c (add_scope_conflicts, gimple_expand_cfg): Likewise.
2064         * cfghooks.c (verify_flow_info): Likewise.
2065         * cfgloop.c (verify_loop_structure): Likewise.
2066         * cfgloopanal.c (just_once_each_iteration_p,
2067         mark_irreducible_loops): Likewise.
2068         * cfgloopmanip.c (fix_bb_placements, remove_path,
2069         update_dominators_in_loop): Likewise.
2070         * cfgrtl.c (create_basic_block_structure, rtl_create_basic_block,
2071         break_superblocks, rtl_flow_call_edges_add): Likewise.
2072         * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
2073         * config/frv/frv.c (frv_optimize_membar): Likewise.
2074         * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
2075         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
2076         * cprop.c (compute_local_properties, find_implicit_sets,
2077         bypass_conditional_jumps, one_cprop_pass): Likewise.
2078         * cse.c (cse_main): Likewise.
2079         * df-core.c (rest_of_handle_df_initialize, df_worklist_dataflow,
2080         df_analyze, df_grow_bb_info, df_compact_blocks): Likewise.
2081         * df-problems.c (df_lr_verify_solution_start,
2082         df_live_verify_solution_start, df_md_local_compute): Likewise.
2083         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
2084         calc_idoms): Likewise.
2085         * domwalk.c (dom_walker::walk): Likewise.
2086         * dse.c (dse_step0, dse_step3): Likewise.
2087         * function.c (epilogue_done): Likewise.
2088         * gcse.c (alloc_gcse_mem, compute_local_properties,
2089         prune_insertions_deletions, compute_pre_data,
2090         pre_expr_reaches_here_p, one_pre_gcse_pass,
2091         compute_code_hoist_vbeinout, should_hoist_expr_to_dom, hoist_code,
2092         one_code_hoisting_pass): Likewise.
2093         * graph.c (draw_cfg_nodes_no_loops): Likewise.
2094         * graphite-sese-to-poly.c (build_scop_bbs): Likewise.
2095         * haifa-sched.c (unlink_bb_notes): Likewise.
2096         * ipa-split.c (execute_split_functions): Likewise.
2097         * ira-build.c (create_loop_tree_nodes, remove_unnecessary_regions):
2098         Likewise.
2099         * ira-emit.c (ira_emit): Likewise.
2100         * ira.c (find_moveable_pseudos, ira): Likewise.
2101         * lcm.c (compute_antinout_edge, compute_laterin,
2102         compute_insert_delete, pre_edge_lcm, compute_available,
2103         compute_nearerout, compute_rev_insert_delete,
2104         pre_edge_rev_lcm): Likewise.
2105         * loop-unroll.c (opt_info_start_duplication, apply_opt_in_copies):
2106         Likewise.
2107         * lower-subreg.c (decompose_multiword_subregs): Likewise.
2108         * lra-lives.c (lra_create_live_ranges): Likewise.
2109         * lra.c (lra): Likewise.
2110         * mode-switching.c (optimize_mode_switching): Likewise.
2111         * recog.c (split_all_insns): Likewise.
2112         * regcprop.c (copyprop_hardreg_forward): Likewise.
2113         * regrename.c (regrename_analyze): Likewise.
2114         * reload1.c (reload): Likewise.
2115         * resource.c (init_resource_info): Likewise.
2116         * sched-rgn.c (haifa_find_rgns, extend_rgns, compute_trg_info,
2117         realloc_bb_state_array, schedule_region, extend_regions): Likewise.
2118         * sel-sched-ir.c (sel_extend_global_bb_info, extend_region_bb_info,
2119         recompute_rev_top_order, sel_init_pipelining,
2120         make_regions_from_the_rest): Likewise.
2121         * store-motion.c (remove_reachable_equiv_notes,build_store_vectors)
2122         Likewise.
2123         * tracer.c (tail_duplicate): Likewise.
2124         * trans-mem.c (tm_region_init, get_bb_regions_instrumented): Likewise.
2125         * tree-cfg.c (create_bb, cleanup_dead_labels, gimple_dump_cfg,
2126         gimple_flow_call_edges_add): Likewise.
2127         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls,
2128         cleanup_tree_cfg_1): Likewise.
2129         * tree-complex.c (tree_lower_complex): Likewise.
2130         * tree-inline.c (copy_cfg_body): Likewise.
2131         * tree-into-ssa.c (mark_phi_for_rewrite, rewrite_into_ssa,
2132         prepare_def_site_for, update_ssa): Likewise.
2133         * tree-ssa-dce.c (tree_dce_init, perform_tree_ssa_dce): Likewise.
2134         * tree-ssa-dom.c (record_edge_info): Likewise.
2135         * tree-ssa-live.c (new_tree_live_info, live_worklist): Likewise.
2136         * tree-ssa-loop-im.c (fill_always_executed_in_1): Likewise.
2137         * tree-ssa-loop-manip.c (copy_phi_node_args
2138         gimple_duplicate_loop_to_header_edge): Likewise.
2139         * tree-ssa-pre.c (compute_antic): Likewise.
2140         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2141         * tree-ssa-reassoc.c (init_reassoc): Likewise.
2142         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
2143         * tree-ssa-tail-merge.c (init_worklist): Likewise.
2144         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
2145         * tree-stdarg.c (reachable_at_most_once): Likewise.
2146         * tree-vrp.c (find_assert_locations): Likewise.
2147         * var-tracking.c (vt_find_locations): Likewise.
2149 2013-12-09  David Malcolm  <dmalcolm@redhat.com>
2151         * basic-block.h (profile_status): Eliminate macro.
2153         * cfgbuild.c (find_many_sub_basic_blocks): Eliminate use of
2154         profile_status macro in favor of profile_status_for_fn, making
2155         use of cfun explicit.
2156         * cfghooks.c (account_profile_record): Likewise.
2157         * cfgloopanal.c (single_likely_exit):
2158         * cfgrtl.c (rtl_verify_edges, rtl_account_profile_record): Likewise.
2159         * graphite.c (graphite_finalize):
2160         * internal-fn.c (ubsan_expand_si_overflow_addsub_check,
2161         ubsan_expand_si_overflow_neg_check,
2162         ubsan_expand_si_overflow_mul_check): Likewise.
2163         * ipa-split.c (consider_split, execute_split_functions):
2164         * loop-unroll.c (decide_peel_simple):
2165         * optabs.c (emit_cmp_and_jump_insn_1):
2166         * predict.c (maybe_hot_edge_p, probably_never_executed,
2167         predictable_edge_p, probability_reliable_p, gimple_predict_edge,
2168         tree_estimate_probability_driver, estimate_bb_frequencies,
2169         compute_function_frequency, rebuild_frequencies): Likewise.
2170         * profile.c (compute_branch_probabilities): Likewise.
2171         * tree-cfg.c (gimple_account_profile_record): Likewise.
2172         * tree-inline.c (optimize_inline_calls): Likewise.
2174 2013-12-09  David Malcolm  <dmalcolm@redhat.com>
2176         * basic-block.h (label_to_block_map): Eliminate macro.
2178         * gimple.c (gimple_set_bb): Replace uses of label_to_block_map with
2179         uses of label_to_block_map_for_fn, making uses of cfun be explicit.
2180         * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
2181         (verify_gimple_label): Likewise.
2183 2013-12-09  David Malcolm  <dmalcolm@redhat.com>
2185         * basic-block.h (basic_block_info): Eliminate macro.
2187         * cfgrtl.c (rtl_create_basic_block): Replace uses of basic_block_info
2188         with basic_block_info_for_fn, making uses of cfun be explicit.
2189         * tree-cfg.c (build_gimple_cfg, create_bb): Likewise.
2191 2013-12-09  David Malcolm  <dmalcolm@redhat.com>
2193         * basic-block.h (BASIC_BLOCK): Eliminate macro.
2195         * alias.c (init_alias_analysis): Eliminate BASIC_BLOCK macro in
2196         favor of uses of BASIC_BLOCK_FOR_FN, making uses of cfun explicit.
2197         * bt-load.c (compute_defs_uses_and_gen, compute_out, link_btr_uses,
2198         block_at_edge_of_live_range_p, migrate_btr_defs): Likewise.
2199         * caller-save.c (insert_one_insn): Likewise.
2200         * cfg.c (debug_bb, get_bb_original, get_bb_copy): Likewise.
2201         * cfgexpand.c (add_scope_conflicts): Likewise.
2202         * cfghooks.c (verify_flow_info): Likewise.
2203         * cfgloop.c (flow_loops_find): Likewise.
2204         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
2205         * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
2206         * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
2207         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
2208         * cse.c (cse_main): Likewise.
2209         * dce.c (fast_dce): Likewise.
2210         * df-core.c (df_set_blocks, df_worklist_propagate_forward,
2211         df_worklist_propagate_backward, df_worklist_dataflow_doublequeue,
2212         df_bb_replace, df_dump_region): Likewise.
2213         * df-problems.c (df_rd_bb_local_compute, df_lr_bb_local_compute,
2214         df_live_bb_local_compute, df_chain_remove_problem)
2215         df_chain_create_bb, df_word_lr_bb_local_compute, df_note_bb_compute,
2216         df_md_bb_local_compute, df_md_local_compute,
2217         df_md_transfer_function): Likewise.
2218         * df-scan.c (df_scan_blocks, df_reorganize_refs_by_reg_by_insn,
2219         df_reorganize_refs_by_insn, df_bb_refs_collect,
2220         df_record_entry_block_defs, df_update_entry_block_defs,
2221         df_record_exit_block_uses): Likewise.
2222         * dominance.c (nearest_common_dominator_for_set): Likewise.
2223         * gcse.c (hoist_code): Likewise.
2224         * graph.c (draw_cfg_nodes_no_loops): Likewise.
2225         * ipa-inline-analysis.c (param_change_prob,
2226         estimate_function_body_sizes): Likewise.
2227         * ipa-split.c (dominated_by_forbidden): Likewise.
2228         * loop-unroll.c (apply_opt_in_copies): Likewise.
2229         * lower-subreg.c (decompose_multiword_subregs): Likewise.
2230         * lra-lives.c (lra_create_live_ranges): Likewise.
2231         * predict.c (propagate_freq): Likewise.
2232         * regrename.c (regrename_analyze): Likewise.
2233         * regstat.c (regstat_bb_compute_ri, regstat_bb_compute_calls_crossed):
2234         Likewise.
2235         * resource.c (mark_target_live_regs): Likewise.
2236         * sched-ebb.c (ebb_fix_recovery_cfg): Likewise.
2237         * sched-int.h (EBB_FIRST_BB, EBB_LAST_BB): Likewise.
2238         * sched-rgn.c (debug_region, dump_region_dot, too_large,
2239         haifa_find_rgns, extend_rgns, compute_dom_prob_ps, update_live,
2240         propagate_deps, sched_is_disabled_for_current_region_p): Likewise.
2241         * sched-vis.c (debug_bb_n_slim): Likewise.
2242         * sel-sched-ir.c (sel_finish_global_and_expr, verify_backedges,
2243         purge_empty_blocks, sel_remove_loop_preheader): Likewise.
2244         * sel-sched.c (remove_insns_that_need_bookkeeping)
2245         (current_region_empty_p, sel_region_init, simplify_changed_insns):
2246         Likewise.
2247         * trans-mem.c (execute_tm_mark, execute_tm_edges,
2248         tm_memopt_compute_antic, ipa_tm_scan_irr_function): Likewise.
2249         * tree-cfg.c (make_edges, end_recording_case_labels,
2250         label_to_block_fn, gimple_debug_bb, gimple_flow_call_edges_add,
2251         remove_edge_and_dominated_blocks, remove_edge_and_dominated_blocks,
2252         gimple_purge_all_dead_eh_edges,
2253         gimple_purge_all_dead_abnormal_call_edges): Likewise.
2254         * tree-cfgcleanup.c (fixup_noreturn_call,
2255         split_bbs_on_noreturn_calls, cleanup_tree_cfg_1): Likewise.
2256         * tree-inline.c (copy_cfg_body, fold_marked_statements): Likewise.
2257         * tree-into-ssa.c (set_livein_block, prune_unused_phi_nodes,
2258         insert_phi_nodes_for, insert_updated_phi_nodes_for): Likewise.
2259         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
2260         * tree-ssa-live.c (live_worklist): Likewise.
2261         * tree-ssa-loop-manip.c (compute_live_loop_exits, add_exit_phis_var,
2262         find_uses_to_rename, copy_phi_node_args): Likewise.
2263         * tree-ssa-pre.c (compute_antic): Likewise.
2264         * tree-ssa-reassoc.c (update_range_test, optimize_range_tests):
2265         Likewise.
2266         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
2267         * tree-ssa-tail-merge.c (same_succ_hash, same_succ_def::equal,
2268         same_succ_flush_bbs, update_worklist, set_cluster,
2269         same_phi_alternatives, find_clusters_1, apply_clusters,
2270         update_debug_stmts): Likewise.
2271         * tree-ssa-threadupdate.c (mark_threaded_blocks,
2272         thread_through_all_blocks): Likewise.
2273         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
2274         * tree-vrp.c (find_assert_locations): Likewise.
2276 2013-12-09  David Malcolm  <dmalcolm@redhat.com>
2278         * basic-block.h (SET_BASIC_BLOCK): Eliminate macro.
2280         * cfg.c (compact_blocks): Replace uses of SET_BASIC_BLOCK
2281         with SET_BASIC_BLOCK_FOR_FN, making use of cfun explicit.
2282         (expunge_block): Likewise.
2283         * cfgrtl.c (create_basic_block_structure): Likewise.
2284         * df-core.c (df_compact_blocks, df_bb_replace): Likewise.
2285         * sel-sched.c (create_block_for_bookkeeping): Likewise.
2286         * tree-cfg.c (create_bb): Likewise.
2288 2013-12-09  David Malcolm  <dmalcolm@redhat.com>
2290         * basic-block.h (profile_status_for_function): Rename to...
2291         (profile_status_for_fn): ...this.
2293         * cfg.c (check_bb_profile): Update for renaming.
2294         * cgraphbuild.c (compute_call_stmt_bb_frequency): Likewise.
2295         * lto-streamer-in.c (input_cfg): Likewise.
2296         * lto-streamer-out.c (output_cfg):  Likewise.
2297         * predict.c (maybe_hot_frequency_p, maybe_hot_count_p,
2298         maybe_hot_bb_p, probably_never_executed)
2299         (handle_missing_profiles): Likewise.
2300         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2301         * tree-inline.c (copy_bb, initialize_cfun): Likewise.
2303 2013-12-09  David Malcolm  <dmalcolm@redhat.com>
2305         * basic-block.h (label_to_block_map_for_function): Rename to...
2306         (label_to_block_map_for_fn): ...this.
2308         * lto-streamer-in.c (input_cfg): Update for renaming.
2309         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2311 2013-12-09  David Malcolm  <dmalcolm@redhat.com>
2313         * basic-block.h (last_basic_block_for_function): Rename to...
2314         (last_basic_block_for_fn): ...this.
2316         * ipa-utils.c (ipa_merge_profiles): Update for renaming of
2317         last_basic_block_for_function to last_basic_block_for_fn.
2318         * lto-streamer-in.c (input_cfg): Likewise.
2319         * lto-streamer-out.c (output_cfg): Likewise.
2320         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2321         * tree-sra.c (propagate_dereference_distances, ipa_early_sra):
2322         Likewise.
2324 2013-12-09  David Malcolm  <dmalcolm@redhat.com>
2326         * basic-block.h (basic_block_info_for_function): Rename to...
2327         (basic_block_info_for_fn): ...this.
2328         (BASIC_BLOCK_FOR_FUNCTION): Rename to...
2329         (BASIC_BLOCK_FOR_FN): ...this.
2330         (SET_BASIC_BLOCK_FOR_FUNCTION): Rename to...
2331         (SET_BASIC_BLOCK_FOR_FN): ...this.
2333         * gimple-streamer-in.c (input_phi, input_bb): Update for renaming
2334         of BASIC_BLOCK_FOR_FUNCTION to BASIC_BLOCK_FOR_FN.
2335         * ipa-utils.c (ipa_merge_profiles): Likewise.
2336         * lto-streamer-in.c (make_new_block): Update for renaming of
2337         SET_BASIC_BLOCK_FOR_FUNCTION to SET_BASIC_BLOCK_FOR_FN.
2338         (input_cfg): Update for renamings.
2339         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2340         (dump_function_to_file): Update for renaming of
2341         basic_block_info_for_function to basic_block_info_for_fn.
2343 2013-12-09  Richard Biener  <rguenther@suse.de>
2345         PR middle-end/38474
2346         * tree-ssa-structalias.c (set_union_with_increment): Remove
2347         unreachable code.
2348         (do_complex_constraint): Call set_union_with_increment with
2349         the solution delta, not the full solution.
2350         (make_transitive_closure_constraints): Merge the two constraints.
2352 2013-12-09  Richard Earnshaw  <rearnsha@arm.com>
2354         * arm.c (mem_ok_for_ldrd_strd): Rename first argument as MEM.  Do
2355         more address validation checks.
2357 2013-12-09  Marek Polacek  <polacek@redhat.com>
2359         PR sanitizer/59415
2360         * vtable-verify.c (verify_bb_vtables): Check the return value
2361         of gimple_call_fn.  Use is_gimple_call instead of gimple_code.
2363 2013-12-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2365         * config/arm/arm.md (generic_sched): Add cortexa12.
2366         (generic_vfp): Likewise.
2367         * config/arm/arm.c (cortexa12_extra_costs): New cost table.
2368         (arm_cortex_a12_tune): New tuning struct.
2369         * config/arm/arm-cores.def: Add cortex-a12.
2370         * config/arm/arm-tables.opt: Regenerate.
2371         * config/arm/arm-tune.md: Likewise.
2372         * config/arm/bpabi.h: Add cortex-a12.
2373         * doc/invoke.texi: Document -mcpu=cortex-a12.
2375 2013-12-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2377         * doc/install.texi (Prerequisites): Explicitly mention C library
2378         and its headers for multilib builds.
2380 2013-12-08  Oleg Endo  <olegendo@gcc.gnu.org>
2382         PR target/52898
2383         PR target/51697
2384         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
2385         OPT_mcbranchdi entry.
2386         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Mark as undocumented and
2387         emit a warning.
2388         * config/sh/sh.c (sh_option_override): Initialize TARGET_CBRANCHDI4
2389         and TARGET_CMPEQDI_T variables.
2390         * doc/invoke.texi (SH options): Undocument -mcbranchdi and -mcmpeqdi.
2392 2013-12-07  Maxim Kuvyrkov  <maxim@kugelworks.com>
2394         * config/linux.h: Fix typo in a comment.
2396 2013-12-07  Maxim Kuvyrkov  <maxim@kugelworks.com>
2398         * config.gcc (*linux*): Split libc selection from Android support.
2399         Add libc selection to all *linux* targets.  Add Android support to
2400         architectures that support it.
2401         (arm*-*-linux-*, i[34567]86-*-linux*, x86_64-*-linux*,)
2402         (mips*-*-linux*): Add Android support.
2404 2013-12-07  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2405             Maxim Kuvyrkov  <maxim@kugelworks.com>
2407         * config/bfin/uclinux.h, config/c6x/uclinux-elf.h,
2408         * config/lm32/uclinux-elf.h, config/m68k/uclinux.h,
2409         * config/moxie/uclinux.h (TARGET_LIBC_HAS_FUNCTION): Move definitions
2410         to linux.h.
2411         * config/linux-android.h (TARGET_HAS_IFUNC_P): Move definition
2412         to linux.h.
2413         * config/linux.h (TARGET_LIBC_HAS_FUNCTION, TARGET_HAS_IFUNC_P):
2414         Define appropriately for Linux and uClinux targets.
2416 2013-12-07  Maxim Kuvyrkov  <maxim@kugelworks.com>
2418         * config/linux.c (linux_has_ifunc_p): Use correct test.
2420 2013-12-07  Maxim Kuvyrkov  <maxim@kugelworks.com>
2422         * config/linux.c (linux_android_has_ifunc_p): Rename to
2423         linux_has_ifunc_p.
2424         (linux_android_libc_has_function): Rename to linux_libc_has_function.
2425         * config/linux-protos.h (linux_android_has_ifunc_p,)
2426         (linux_android_libc_has_function): Update declarations.
2427         * config/linux.h, config/linux-android.h, config/alpha/linux.h,
2428         * config/rs6000/linux.h, config/rs6000/linux64.h: Update.
2430 2013-12-07  Maxim Kuvyrkov  <maxim@kugelworks.com>
2432         * linux-android.c: Rename to linux.c.
2433         * t-linux-android: Rename to t-linux.  Update references
2434         to linux-android.c
2435         * config.gcc: Update references to t-linux-android and linux-android.o.
2437 2013-12-07  Alan Modra  <amodra@gmail.com>
2439         * config/rs6000/rs6000.md (bswapdi2_32bit): Remove ?? from r->r
2440         alternative.
2442 2013-12-07  Ralf Corsépius  <ralf.corsepius@rtems.org>
2444         * config.gcc (microblaze*-*-rtems*): Add TARGET_BIG_ENDIAN_DEFAULT.
2446 2013-12-06  Vladimir Makarov  <vmakarov@redhat.com>
2448         * config/rs6000/rs600.md (*bswapdi2_64bit): Remove ?? from the
2449         constraint.
2451 2013-12-06  Caroline Tice  <cmtice@google.com>
2453         Submitting patch from Stephen Checkoway, s@cs.jhu.edu
2454         * vtable-verify.c (verify_bb_vtables): Replace all uses of verified
2455         vtable pointer with the results of the verification call, rather than
2456         only the uses in the next statement.
2458 2013-12-06  Andrew Pinski  <apinski@cavium.com>
2460         PR target/59092
2461         * config/aarch64/aarch64.md (trap): New pattern.
2463 2013-12-06  Jakub Jelinek  <jakub@redhat.com>
2465         PR tree-optimization/59388
2466         * tree-ssa-reassoc.c (update_range_test): If op == range->exp,
2467         gimplify tem after stmt rather than before it.
2469         * tree-data-ref.c (struct data_ref_loc_d): Replace pos field with ref.
2470         (get_references_in_stmt): Don't record operand addresses, but
2471         operands themselves.
2472         (find_data_references_in_stmt, graphite_find_data_references_in_stmt):
2473         Adjust for the pos -> ref change.
2475 2013-12-06  H.J. Lu  <hongjiu.lu@intel.com>
2477         * config.gcc: Change --with-cpu=ia to --with-cpu=intel.
2479         * config/i386/i386.c (cpu_names): Replace "ia" with "intel".
2480         (processor_alias_table): Likewise.
2481         (ix86_option_override_internal): Likewise.
2482         * config/i386/i386.h (target_cpu_default): Replace
2483         TARGET_CPU_DEFAULT_ia with TARGET_CPU_DEFAULT_intel.
2485         * doc/invoke.texi: Replace -mtune=ia with -mtune=intel.
2487 2013-12-06  Uros Bizjak  <ubizjak@gmail.com>
2489         PR target/59405
2490         * config/i386/i386.c (type_natural_mode): Properly handle
2491         size 8 for !TARGET_64BIT.
2493 2013-12-06  Trevor Saunders  <tsaunders@mozilla.com>
2495         * tree-ssa-pre.c (compute_antic_aux): Remove redundant call to
2496         vec::release.
2498 2013-12-06  Ian Bolton  <ian.bolton@arm.com>
2499             Mark Mitchell  <mark@codesourcery.com>
2501         PR target/59091
2502         * config/arm/arm.md (trap): New pattern.
2503         * config/arm/types.md: Added a type for trap.
2505 2013-12-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2507         * expr.c (expand_assignment): Update bitregion_start and bitregion_end.
2509 2013-12-06  Eric Botcazou  <ebotcazou@adacore.com>
2511         PR target/59316
2512         * config/sparc/sparc.h (SPARC_LOW_FE_EXCEPT_VALUES): Define.
2513         * config/sparc/sol2.h (SPARC_LOW_FE_EXCEPT_VALUES): Redefine.
2514         * config/sparc/sparc.c (TARGET_INIT_BUILTINS): Move around.
2515         (TARGET_BUILTIN_DECL): Define.
2516         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Likewise.
2517         (sparc32_initialize_trampoline): Adjust call to gen_flush.
2518         (enum sparc_builtins): New enumeral type.
2519         (sparc_builtins): New static array.
2520         (sparc_builtins_icode): Likewise.
2521         (def_builtin): Accept a separate icode and save the result.
2522         (def_builtin_const): Likewise.
2523         (sparc_fpu_init_builtins): New function.
2524         (sparc_vis_init_builtins): Pass the builtin code.
2525         (sparc_init_builtins): Call it if TARGET_FPU.
2526         (sparc_builtin_decl): New function.
2527         (sparc_expand_builtin): Deal with SPARC_BUILTIN_{LD,ST}FSR.
2528         (sparc_handle_vis_mul8x16): Use the builtin code.
2529         (sparc_fold_builtin): Likewise.  Deal with SPARC_BUILTIN_{LD,ST}FSR
2530         and SPARC_BUILTIN_PDISTN.
2531         (compound_expr): New helper function.
2532         (sparc_atomic_assign_expand_fenv): New function.
2533         * config/sparc/sparc.md (unspecv): Reorder values, add UNSPECV_LDFSR
2534         and UNSPECV_STFSR.
2535         (flush, flushdi): Merge into single pattern.
2536         (ldfsr): New instruction.
2537         (stfsr): Likewise.
2539 2013-12-06  Oleg Endo  <olegendo@gcc.gnu.org>
2541         * asan.c: Remove struct tags when referring to class varpool_node.
2542         * cgraph.h: Likewise.
2543         * cgraphbuild.c: Likewise.
2544         * cgraphunit.c: Likewise.
2545         * dbxout.c: Likewise.
2546         * dwarf2out.c: Likewise.
2547         * gimple-fold.c: Likewise.
2548         * ipa-devirt.c: Likewise.
2549         * ipa-ref-inline.h: Likewise.
2550         * ipa-ref.h: Likewise.
2551         * ipa-reference.c: Likewise.
2552         * ipa-utils.c: Likewise.
2553         * ipa.c: Likewise.
2554         * lto-cgraph.c: Likewise.
2555         * lto-streamer-out.c: Likewise.
2556         * lto-streamer.h: Likewise.
2557         * passes.c: Likewise.
2558         * toplev.c: Likewise.
2559         * tree-eh.c: Likewise.
2560         * tree-emutls.c: Likewise.
2561         * tree-pass.h: Likewise.
2562         * tree-ssa-structalias.c: Likewise.
2563         * tree-vectorizer.c: Likewise.
2564         * tree.c: Likewise.
2565         * varasm.c: Likewise.
2566         * varpool.c: Likewise.
2568 2013-12-06  Oleg Endo  <olegendo@gcc.gnu.org>
2570         * cgraphunit.c: Remove struct tags when referring to class
2571         ipa_opt_pass_d or class opt_pass.
2572         * function.h: Likewise.
2573         * lto-cgraph.c: Likewise.
2574         * pass_manager.h: Likewise.
2575         * passes.c: Likewise.
2576         * tree-pass.h: Likewise.
2578 2013-12-06  Richard Biener  <rguenther@suse.de>
2580         PR tree-optimization/59058
2581         * tree-vectorizer.h (struct _loop_vec_info): Add num_itersm1 member.
2582         (LOOP_VINFO_NITERSM1): New macro.
2583         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Express
2584         the vector loop entry test in terms of scalar latch executions.
2585         (vect_do_peeling_for_alignment): Update LOOP_VINFO_NITERSM1.
2586         * tree-vect-loop.c (vect_get_loop_niters): Also return the
2587         number of latch executions.
2588         (new_loop_vec_info): Initialize LOOP_VINFO_NITERSM1.
2589         (vect_analyze_loop_form): Likewise.
2590         (vect_generate_tmps_on_preheader): Compute the number of
2591         vectorized iterations differently.
2593 2013-12-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2595         * config/score/score.c (score_force_temporary): Delete function.
2596         (score_split_symbol): Ditto.
2597         * config/score/score.h (ASM_OUTPUT_ADDR_DIFF_ELT): Add extra
2598         parentheses to silence ambiguity warning and reindent.
2600 2013-12-05  Marek Polacek  <polacek@redhat.com>
2602         * doc/invoke.texi: Document -fsanitize=signed-integer-overflow.
2604 2013-12-05  H.J. Lu  <hongjiu.lu@intel.com>
2606         * config.gcc: Support --with-cpu=ia.
2608         * config/i386/i386.c (cpu_names): Add "ia".
2609         (processor_alias_table): Likewise.
2610         (ix86_option_override_internal): Disallow -march=ia.
2611         * config/i386/i386.h (target_cpu_default): Add TARGET_CPU_DEFAULT_ia.
2613         * doc/invoke.texi: Document -mtune=ia.
2615 2013-12-05  Vladimir Makarov  <vmakarov@redhat.com>
2617         PR rtl-optimization/59317
2618         * lra-constraints.c (in_class_p): Don't ignore insn with constant
2619         as a source.
2621 2013-12-05  Martin Jambor  <mjambor@suse.cz>
2623         PR ipa/58253
2624         * ipa-prop.c (ipa_modify_formal_parameters): Create decls of
2625         non-BLKmode in their naturally aligned type.
2627 2013-12-05  Marek Polacek  <polacek@redhat.com>
2629         PR sanitizer/59333
2630         PR sanitizer/59397
2631         * ubsan.c: Include rtl.h and expr.h.
2632         (ubsan_encode_value): Add new parameter.  If expanding, assign
2633         a stack slot for DECL_RTL of the temporary and call expand_assignment.
2634         Handle BOOLEAN_TYPE and ENUMERAL_TYPE.
2635         (ubsan_build_overflow_builtin): Adjust ubsan_encode_value call.
2636         * ubsan.h (ubsan_encode_value): Adjust declaration.
2637         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Move
2638         ubsan_build_overflow_builtin above expand_normal call.  Surround
2639         this call with push_temp_slots and pop_temp_slots.
2640         (ubsan_expand_si_overflow_neg_check): Likewise.
2641         (ubsan_expand_si_overflow_mul_check): Likewise.
2643 2013-12-05  Yufeng Zhang  <yufeng.zhang@arm.com>
2645         * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Guard
2646         the get_alternative_base call with flag_expensive_optimizations.
2647         (alloc_cand_and_find_basis): Likewise.
2649 2013-12-05  Tejas Belagod  <tejas.belagod@arm.com>
2651         * rtlanal.c (set_noop_p): Return nonzero in case of redundant
2652         vec_select for overlapping register lanes.
2654 2013-12-05  Kirill Yukhin  <kirill.yukhin@intel.com>
2656         * config/i386/i386.c (ix86_expand_builtin): Generate
2657         reg for readflags built-in when optimizing.
2658         * config/i386/i386.md (*pushfl<mode>): Rename to ...
2659         (pushfl<mode>2): This. Fix iterator.
2660         (*popfl<mode>): Rename to ...
2661         (*popfl<mode>1): This. Fix iterator.
2663 2013-12-05  Kirill Yukhin  <kirill.yukhin@intel.com>
2665         * config/i386/i386.c (IX86_BUILTIN_READ_FLAGS): New.
2666         (IX86_BUILTIN_WRITE_FLAGS): Ditto.
2667         (ix86_init_mmx_sse_builtins): Define
2668         __builtin_ia32_writeeflags_u32, __builtin_ia32_writeeflags_u64,
2669         __builtin_ia32_readeflags_u32, __builtin_ia32_readeflags_u64.
2670         (ix86_expand_builtin): Expand them.
2671         * config/i386/ia32intrin.h (__readeflags): New.
2672         (__writeeflags): Ditto.
2673         * config/i386/i386.md (*pushfl<mode>): Ditto.
2674         (*popfl<mode>1): Ditto.
2676 2013-12-05  Richard Biener  <rguenther@suse.de>
2678         PR tree-optimization/59374
2679         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
2680         Commonize known and unknown dependence case fixing the allowed
2681         read-write dependence case and dropping code that should not matter.
2683 2013-12-05  Kirill Yukhin  <kirill.yukhin@intel.com>
2685         * config/ia64/ia64.md (prologue_allocate_stack): Block auto-
2686         generation of predicated version.
2687         (epilogue_deallocate_stack): Ditto.
2688         (prologue_allocate_stack_pr): Add explicit predicated version.
2689         (epilogue_deallocate_stack_pr): Ditto.
2690         * config/ia64/ia64.c (ia64_single_set): Use explicit version.
2692 2013-12-05  Alan Modra  <amodra@gmail.com>
2694         * configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
2695         build != host.
2696         <recursive call for build != host>: Clear GMPINC.  Don't bother
2697         saving CFLAGS.
2699 2013-12-04  Jakub Jelinek  <jakub@redhat.com>
2700             Marek Polacek  <polacek@redhat.com>
2702         * opts.c (common_handle_option): Handle
2703         -fsanitize=signed-integer-overflow.
2704         * config/i386/i386.md (addv<mode>4, subv<mode>4, mulv<mode>4,
2705         negv<mode>3, negv<mode>3_1): Define expands.
2706         (*addv<mode>4, *subv<mode>4, *mulv<mode>4, *negv<mode>3): Define insns.
2707         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW,
2708         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW,
2709         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW,
2710         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW): Define.
2711         * ubsan.h (PROB_VERY_UNLIKELY, PROB_EVEN, PROB_VERY_LIKELY,
2712         PROB_ALWAYS): Define.
2713         (ubsan_build_overflow_builtin): Declare.
2714         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Add folding of
2715         internal functions.
2716         * ubsan.c (PROB_VERY_UNLIKELY): Don't define here.
2717         (ubsan_build_overflow_builtin): New function.
2718         (instrument_si_overflow): Likewise.
2719         (ubsan_pass): Add signed integer overflow checking.
2720         (gate_ubsan): Enable the pass also when SANITIZE_SI_OVERFLOW.
2721         * flag-types.h (enum sanitize_code): Add SANITIZE_SI_OVERFLOW.
2722         * internal-fn.c: Include ubsan.h and target.h.
2723         (ubsan_expand_si_overflow_addsub_check): New function.
2724         (ubsan_expand_si_overflow_neg_check): Likewise.
2725         (ubsan_expand_si_overflow_mul_check): Likewise.
2726         (expand_UBSAN_CHECK_ADD): Likewise.
2727         (expand_UBSAN_CHECK_SUB): Likewise.
2728         (expand_UBSAN_CHECK_MUL): Likewise.
2729         * fold-const.c (fold_binary_loc): Don't fold A + (-B) -> A - B and
2730         (-A) + B -> B - A when doing the signed integer overflow checking.
2731         * internal-fn.def (UBSAN_CHECK_ADD, UBSAN_CHECK_SUB, UBSAN_CHECK_MUL):
2732         Define.
2733         * tree-vrp.c (extract_range_basic): Handle internal calls.
2734         * optabs.def (addv4_optab, subv4_optab, mulv4_optab, negv4_optab): New
2735         optabs.
2736         * asan.c: Include predict.h.
2737         (PROB_VERY_UNLIKELY, PROB_ALWAYS): Don't define here.
2738         * predict.c: Move the PROB_* macros...
2739         * predict.h (enum br_predictor): ...here.
2740         (PROB_LIKELY, PROB_UNLIKELY): Define.
2741         * trans-mem.c: Include predict.h.
2742         (PROB_VERY_UNLIKELY, PROB_ALWAYS, PROB_VERY_LIKELY,
2743         PROB_LIKELY, PROB_UNLIKELY): Don't define here.
2745 2013-12-04  Jeff Law  <law@redhat.com>
2747         * common.opt: Split up -fisolate-erroneous-paths into
2748         -fisolate-erroneous-paths-dereference and
2749         -fisolate-erroneous-paths-attribute.
2750         * invoke.texi: Corresponding changes.
2751         * gimple.c (infer_nonnull_range):  Add and use new arguments to control
2752         what kind of statements can be used to infer a non-null range.
2753         * gimple.h (infer_nonnull_range): Update prototype.
2754         * tree-vrp.c (infer_value_range): Corresponding changes.
2755         * opts.c (default_options_table): Update due to option split.
2756         * gimple-ssa-isolate-paths.c: Fix trailing whitespace.
2757         (find_implicit_erroneous_behaviour): Pass additional arguments
2758         to infer_nonnull_range.
2759         (find_explicit_erroneous_behaviour): Similarly.
2760         (gate_isolate_erroneous_paths): Check both of the new options.
2762 2013-12-04  Jeff Law  <law@redhat.com>
2764         * expr.c (expand_assignment): Update comments.
2766 2013-12-04  Tobias Burnus  <burnus@net-b.de>
2768         PR debug/37132
2769         * lto-streamer.h (LTO_tags): Add LTO_namelist_decl_ref.
2770         * tree.def (NAMELIST_DECL): Add.
2771         * tree.h (NAMELIST_DECL_ASSOCIATED_DECL): New macro.
2772         * tree.c (initialize_tree_contains_struct): Add asserts for it.
2773         * dwarf2out.c (gen_namelist_decl): New function.
2774         (gen_decl_die, dwarf2out_decl): Call it.
2775         (dwarf2out_imported_module_or_decl_1): Handle NAMELIST_DECL.
2776         * lto-streamer-in.c (lto_input_tree_ref): Handle NAMELIST_DECL.
2777         (lto_input_tree_ref, lto_input_tree_1): Update lto_tag_check_range
2778         call.
2779         * lto-streamer-out.c (lto_output_tree_ref): Handle NAMELIST_DECL.
2781 2013-12-03  Xinliang David Li  <davidxl@google.com>
2783         * tree-ssa-structalias.c (constraint_set_union): Change return type
2784         from void to bool.
2785         (merge_node_constraints): Ditto.
2786         (unify_nodes): Update changed set when constraints set changes.
2788 2013-12-04  H.J. Lu  <hongjiu.lu@intel.com>
2790         * configure.ac: Append gdbasan.in to .gdbinit if CFLAGS contains
2791         -fsanitize=address.
2792         * configure: Regenerated.
2794         * gdbasan.in: New file.
2796 2013-12-04  Jakub Jelinek  <jakub@redhat.com>
2798         PR rtl-optimization/58726
2799         * combine.c (force_to_mode): Fix comment typo.  Don't destructively
2800         modify x for ROTATE, ROTATERT and IF_THEN_ELSE.
2802 2013-12-04  Jakub Jelinek  <jakub@redhat.com>
2803             Uros Bizjak  <ubizjak@gmail.com>
2805         PR target/59163
2806         * config/i386/i386.c (ix86_legitimate_combined_insn): If for
2807         !TARGET_AVX there is misaligned MEM operand with vector mode
2808         and get_attr_ssememalign is 0, return false.
2809         (ix86_expand_special_args_builtin): Add get_pointer_alignment
2810         computed alignment and for non-temporal loads/stores also
2811         at least GET_MODE_ALIGNMENT as MEM_ALIGN.
2812         * config/i386/sse.md
2813         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
2814         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
2815         <sse2_avx_avx512f>_loaddqu<mode><mask_name>,
2816         <sse2_avx_avx512f>_storedqu<mode>, <sse3>_lddqu<avxsizesuffix>,
2817         sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
2818         sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
2819         *vec_interleave_highv2df, *vec_interleave_lowv2df,
2820         *vec_extractv2df_1_sse, sse2_movsd, sse4_1_<code>v8qiv8hi2,
2821         sse4_1_<code>v4qiv4si2, sse4_1_<code>v4hiv4si2,
2822         sse4_1_<code>v2qiv2di2, sse4_1_<code>v2hiv2di2,
2823         sse4_1_<code>v2siv2di2, sse4_2_pcmpestr, *sse4_2_pcmpestr_unaligned,
2824         sse4_2_pcmpestri, sse4_2_pcmpestrm, sse4_2_pcmpestr_cconly,
2825         sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned, sse4_2_pcmpistri,
2826         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add ssememalign attribute.
2827         * config/i386/i386.md (ssememalign): New define_attr.
2829 2013-12-04  Jakub Jelinek  <jakub@redhat.com>
2831         PR tree-optimization/59355
2832         * ipa-devirt.c (gate_ipa_devirt): Return false if !flag_devirtualize.
2833         * opts.c (common_handle_option): Fix comment spelling.
2835 2013-12-04  Yufeng Zhang  <yufeng.zhang@arm.com>
2837         * gimple-ssa-strength-reduction.c: Include tree-affine.h.
2838         (name_expansions): New static variable.
2839         (alt_base_map): Ditto.
2840         (get_alternative_base): New function.
2841         (find_basis_for_candidate): For CAND_REF, optionally call
2842         find_basis_for_base_expr with the returned value from
2843         get_alternative_base.
2844         (record_potential_basis): Add new parameter 'base' of type 'tree';
2845         add an assertion of non-NULL base; use base to set node->base_expr.
2846         (alloc_cand_and_find_basis): Update; call record_potential_basis
2847         for CAND_REF with the returned value from get_alternative_base.
2848         (replace_refs): Dump details on the replacing.
2849         (execute_strength_reduction): Call pointer_map_create for
2850         alt_base_map; call free_affine_expand_cache with &name_expansions.
2852 2013-12-03  Wei Mi  <wmi@google.com>
2854         PR rtl-optimization/59020
2855         * sched-deps.c (try_group_insn): Move it from haifa-sched.c to here.
2856         (sched_analyze_insn): Call try_group_insn.
2857         (sched_analyze): Cleanup SCHED_GROUP_P before start the analysis.
2858         * haifa-sched.c (try_group_insn): Moved to sched-deps.c.
2859         (group_insns_for_macro_fusion): Removed.
2860         (sched_init): Remove calling group_insns_for_macro_fusion.
2862 2013-12-03  Peter Bergner  <bergner@vnet.ibm.com>
2864         * config/rs6000/htmintrin.h (_TEXASR_INSTRUCTION_FETCH_CONFLICT): Fix
2865         typo in macro name.
2866         (_TEXASRU_INSTRUCTION_FETCH_CONFLICT): Likewise.
2868 2013-12-03  Vladimir Makarov  <vmakarov@redhat.com>
2870         * config/aarch64/aarch64.c (aarch64_frame_pointer_required): Check
2871         LR_REGNUM.
2872         (aarch64_can_eliminate): Don't check elimination source when
2873         frame_pointer_required is false.
2875 2013-12-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2877         * config/avr/avr.c (avr_option_override): Warn if asked to generate
2878         position independent code.
2879         * config/avr/avr.h: Modify LINK_SPEC to reject -shared.
2881 2013-12-03   H.J. Lu  <hongjiu.lu@intel.com>
2883         PR target/59363
2884         * config/i386/i386.c (emit_memset): Adjust destination address
2885         after gen_strset.
2886         (expand_setmem_epilogue): Likewise.
2888 2013-12-03  Marek Polacek  <polacek@redhat.com>
2890         PR middle-end/56344
2891         * calls.c (expand_call): Disallow passing huge arguments by value.
2893 2013-12-03  Jakub Jelinek  <jakub@redhat.com>
2895         PR tree-optimization/59362
2896         * tree-object-size.c (object_sizes): Change into array of
2897         vec<unsigned HOST_WIDE_INT>.
2898         (compute_builtin_object_size): Check computed bitmap for
2899         non-NULL instead of object_sizes.  Call safe_grow on object_sizes
2900         vector if new SSA_NAMEs appeared.
2901         (init_object_sizes): Check computed bitmap for non-NULL.
2902         Call safe_grow on object_sizes elements instead of initializing
2903         it with XNEWVEC.
2904         (fini_object_sizes): Call release on object_sizes elements, don't
2905         set it to NULL.
2907         PR middle-end/59011
2908         * gimplify.c (nonlocal_vla_vars): New variable.
2909         (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
2910         nonlocal_vla_vars chain.
2911         (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
2912         if outer_bind has DECL_INITIAL (current_function_decl) block.
2914         PR target/58864
2915         * dojump.c (save_pending_stack_adjust, restore_pending_stack_adjust):
2916         New functions.
2917         * expr.h (struct saved_pending_stack_adjust): New type.
2918         (save_pending_stack_adjust, restore_pending_stack_adjust): New
2919         prototypes.
2920         * optabs.c (emit_conditional_move): Call save_pending_stack_adjust
2921         and get_last_insn before do_pending_stack_adjust, call
2922         restore_pending_stack_adjust after delete_insns_since.
2923         * expr.c (expand_expr_real_2): Don't call do_pending_stack_adjust
2924         before calling emit_conditional_move.
2925         * expmed.c (expand_sdiv_pow2): Likewise.
2926         * calls.c (expand_call): Use {save,restore}_pending_stack_adjust.
2928 2013-12-02  Jeff Law  <law@redhat.com>
2930         PR tree-optimization/59322
2931         * tree-ssa-threadedge.c (create_edge_and_update_destination_phis):
2932         Remove code which copied jump threading paths.
2934 2013-12-02  Sriraman Tallam  <tmsriram@google.com>
2936         PR target/58944
2937         * config/i386/i386.opt (ix86_arch_string): Mark this variable
2938         for saving in cl_target_option.
2939         (ix86_tune_string): Ditto.
2940         (ix86_cmodel): Ditto.
2941         (ix86_abi): Ditto.
2942         (ix86_asm_dialect): Ditto.
2943         (ix86_branch_cost): Ditto.
2944         (ix86_dump_tunes): Ditto.
2945         (ix86_force_align_arg_pointer): Ditto.
2946         (ix86_force_drap): Ditto.
2947         (ix86_incoming_stack_boundary_arg): Ditto.
2948         (ix86_pmode): Ditto.
2949         (ix86_preferred_stack_boundary_arg): Ditto.
2950         (ix86_recip_name): Ditto.
2951         (ix86_regparm): Ditto.
2952         (ix86_section_threshold): Ditto.
2953         (ix86_sse2avx): Ditto.
2954         (ix86_stack_protector_guard): Ditto.
2955         (ix86_stringop_alg): Ditto.
2956         (ix86_tls_dialect): Ditto.
2957         (ix86_tune_ctrl_string): Ditto.
2958         (ix86_tune_memcpy_strategy): Ditto.
2959         (ix86_tune_memset_strategy): Ditto.
2960         (ix86_tune_no_default): Ditto.
2961         (ix86_veclibabi_type): Ditto.
2962         * config/i386/i386.c (function_specific_save): Save the above
2963         variables in gcc_options to cl_target_option.
2964         (function_specific_restore): Do the reverse done in
2965         function_specific_save.
2966         (ix86_valid_target_attribute_tree): Change ix86_arch_string
2967         and ix86_tune_string to use the opts structure.
2968         (ix86_option_override_internal):Change
2969         ix86_incoming_stack_boundary_arg to
2970         opts->x_ix86_incoming_stack_boundary_arg
2972 2013-12-02  Joern Rennecke  <joern.rennecke@embecosm.com>
2974         * config/epiphany/epiphany.h: Wrap rtl_opt_pass declarations
2975         in #ifndef IN_LIBGCC2 / #endif.
2977 2013-12-02  Jakub Jelinek  <jakub@redhat.com>
2979         PR tree-optimization/59358
2980         * tree-vrp.c (union_ranges): To check for the partially overlapping
2981         ranges or adjacent ranges, also compare *vr0max with vr1max.
2983 2013-12-02  Sterling Augustine Â <saugustine@google.com>
2985         * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
2986         when there isn't a skeleton die.
2988 2013-12-02  Marek Polacek  <polacek@redhat.com>
2990         PR sanitizer/59353
2991         * doc/invoke.texi: Document -fsanitize=return.
2993 2013-12-02  Tobias Burnus  <burnus@net-b.de>
2994             Manuel López-Ibáñez  <manu@gcc.gnu.org>
2996         PR middle-end/59257
2997         * doc/invoke.texi: Add missing @opindex.
2998         (-fsanitize=): Use @gcctabopt instead of @itemize.
3000 2013-12-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3002         Fix C++0x memory model for unaligned fields in packed, aligned(4)
3003         structures with -fno-strict-volatile-bitfields on STRICT_ALIGNMENT
3004         targets like arm-none-eabi.
3005         * expr.c (expand_assignment): Handle normal fields like bit regions.
3007 2013-12-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3009         PR target/58115
3010         * function.c (invoke_set_current_function_hook): Call
3011         targetm.set_current_function after setting this_fn_optabs.
3013 2013-12-02  Richard Biener  <rguenther@suse.de>
3015         PR tree-optimization/59139
3016         * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
3017         code in get_val_for.
3018         (get_val_for): Use gcc_checking_asserts.
3020 2013-12-02  Richard Biener  <rguenther@suse.de>
3022         PR middle-end/59199
3023         * tree-ssa-operands.c (opf_implicit): Remove.
3024         (opf_address_taken): New flag.
3025         (get_expr_operands): Remove early out, pass down opf_address_taken for
3026         ADDR_EXPRs, add a use operand only for non-opf_address_taken bases.
3027         (get_indirect_ref_operands): Rename to ...
3028         (get_mem_ref_operands): ... this.
3029         (get_asm_expr_operands): Rename to ...
3030         (get_asm_stmt_operands): ... this.
3032 2013-12-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
3034         * ipa-inline.c (check_callers): Add missed pointer de-reference.
3036 2013-12-02  Eric Botcazou  <ebotcazou@adacore.com>
3038         PR tree-optimization/59356
3039         * tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the
3040         offset computation using the precision of the index type.
3042 2013-12-02  Yvan Roux  <yvan.roux@linaro.org>
3044         PR target/58785
3045         * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
3046         when rclass is GENERAL_REGS.
3048 2013-12-02  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
3050         * loop-unroll.c (decide_unroll_constant_iterations): Check macro
3051         TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
3053 2013-12-01  Eric Botcazou  <ebotcazou@adacore.com>
3055         * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
3056         identifier node.
3058 2013-12-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3060         * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
3062 2013-11-30  Paulo Matos  <pmatos@broadcom.com>
3063             Eric Botcazou  <ebotcazou@adacore.com>
3065         * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
3066         as applied to nonzero_sign_valid when last_set_mode has less precision
3067         than mode.
3069 2013-11-30  Tobias Burnus  <burnus@net-b.de>
3071         PR sanitizer/59275
3072         * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
3073         environment variable and link to a list with flags.
3074         (-fsanitize=thread): Ditto and update link.
3076 2013-11-29  Vladimir Makarov  <vmakarov@redhat.com>
3078         PR rtl-optimization/59340
3079         * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
3081         Revert
3082         2013-11-20  Robert Suchanek  <Robert.Suchanek@imgtec.com>
3084         * lra.c (lra): Set lra_in_progress before check_rtl call.
3085         * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
3086         adding clobber regs when LRA is running.
3088 2013-11-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3090         PR target/59289
3091         * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
3093 2013-11-29  Richard Biener  <rguenther@suse.de>
3095         PR middle-end/59208
3096         * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
3097         free_stmt_operands, update_stmt_operands): Add struct function
3098         argument.
3099         * tree-ssa-operands.c: Remove uses of cfun, propagate struct
3100         function argument from fini_ssa_operands, verify_ssa_operands,
3101         free_stmt_operands and update_stmt_operands everywhere.
3102         * tree-ssanames.h (release_ssa_name_fn): New.
3103         (release_ssa_name): Inline wrapper around release_ssa_name_fn.
3104         * tree-ssanames.c (release_ssa_name): Rename to ...
3105         (release_ssa_name_fn): ... this and add struct function argument.
3106         * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
3107         (update_stmt_fn): New function.
3108         * tree-cfg.c (move_block_to_fn): Adjust.
3109         * tree-if-conv.c (free_bb_predicate): Likewise.
3110         * tree-ssa.c (verify_ssa): Likewise.
3111         (delete_tree_ssa): Likewise.
3112         * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
3113         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
3114         update_stmt_fn instead of update_stmt.
3116 2013-11-29  Yvan Roux  <yvan.roux@linaro.org>
3118         * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
3119         for LRA.
3121 2013-11-29  Yvan Roux  <yvan.roux@linaro.org>
3123         * config/arm/arm.md (store_minmaxsi): Use only when
3124         optimize_function_for_size_p.
3126 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
3127             Yury Gribov  <y.gribov@samsung.com>
3129         PR sanitizer/59063
3130         * config/gnu-user.h: Removed old code for setting up sanitizer libs.
3131         * gcc.c: Using libsanitizer spec instead of explicit libs.
3133 2013-11-29  Ilya Enkovich  <ilya.enkovich@intel.com>
3135         Reverted:
3136         2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
3137         * cgraph.h (varpool_node): Add need_bounds_init field.
3138         * lto-cgraph.c (lto_output_varpool_node): Output
3139         need_bounds_init value.
3140         (input_varpool_node): Read need_bounds_init value.
3141         * varpool.c (dump_varpool_node): Dump need_bounds_init field.
3143         Reverted:
3144         2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
3145         * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
3146         * dwarf2out.c (gen_subprogram_die): Ignore bound args.
3147         (gen_type_die_with_usage): Skip pointer bounds.
3148         (dwarf2out_global_decl): Likewise.
3150         Reverted:
3151         2013-11-18  Ilya Enkovich  <ilya.enkovich@intel.com>
3152         * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
3153         * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
3154         * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
3155         * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
3156         * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
3157         (gimple_call_with_bounds_p): New.
3158         (gimple_call_set_with_bounds): New.
3159         (gimple_call_num_nobnd_args): Remove.
3160         (gimple_call_nobnd_arg): Remove.
3161         * tree.h (CALL_WITH_BOUNDS_P): New.
3162         * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
3164         Reverted:
3165         2013-11-08  Ilya Enkovich  <ilya.enkovich@intel.com>
3166         * common.opt (fcheck-pointer-bounds): Move to ...
3167         * c-family/c.opt: ... here.
3168         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
3169         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
3170         * langhooks.h (lang_hooks): Remove chkp_supported field.
3171         * toplev.c (process_options): Remove chkp_supported check.
3173         Reverted:
3174         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
3175         * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
3176         * tree.h (POINTER_BOUNDS_P): New.
3177         (BOUNDED_TYPE_P): New.
3178         (BOUNDED_P): New.
3179         (pointer_bounds_type_node): New.
3180         * tree.c (build_common_tree_nodes): Initialize
3181         pointer_bounds_type_node.
3182         * gimple.h (gimple_call_get_nobnd_arg_index): New.
3183         (gimple_call_num_nobnd_args): New.
3184         (gimple_call_nobnd_arg): New.
3185         (gimple_return_retbnd): New.
3186         (gimple_return_set_retbnd): New
3187         * gimple.c (gimple_build_return): Increase number of ops
3188         for return statement.
3189         (gimple_call_get_nobnd_arg_index): New.
3190         * gimple-pretty-print.c (dump_gimple_return): Print second op.
3192         Reverted:
3193         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
3194         * ipa.c (cgraph_build_static_cdtor_1): Support contructors
3195         with "chkp ctor" and "bnd_legacy" attributes.
3196         * gimplify.c (gimplify_init_constructor): Avoid infinite
3197         loop during gimplification of bounds initializer.
3199         Reverted:
3200         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
3201         * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
3202         (handle_bnd_legacy): New.
3203         (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
3204         * doc/extend.texi: Document bnd_variable_size and bnd_legacy
3205         attributes.
3207         Reverted:
3208         2013-10-29  Ilya Enkovich  <ilya.enkovich@intel.com>
3209         * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
3210         (BT_FN_PTR_CONST_PTR): New.
3211         (BT_FN_CONST_PTR_CONST_PTR): New.
3212         (BT_FN_PTR_CONST_PTR_SIZE): New.
3213         (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
3214         (BT_FN_VOID_PTRPTR_CONST_PTR): New.
3215         (BT_FN_VOID_CONST_PTR_SIZE): New.
3216         (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
3217         * chkp-builtins.def: New.
3218         * builtins.def: include chkp-builtins.def.
3219         (DEF_CHKP_BUILTIN): New.
3220         * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
3221         BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
3222         BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
3223         BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
3224         BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
3225         BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
3226         BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
3227         BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
3228         BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
3229         BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
3230         * common.opt (fcheck-pointer-bounds): New.
3231         * toplev.c (process_options): Check Pointer Bounds Checker is
3232         supported.
3233         * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
3235         Reverted:
3236         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
3237         * target.def (builtin_chkp_function): New.
3238         (chkp_bound_type): New.
3239         (chkp_bound_mode): New.
3240         (fn_abi_va_list_bounds_size): New.
3241         (load_bounds_for_arg): New.
3242         (store_bounds_for_arg): New.
3243         * targhooks.h (default_load_bounds_for_arg): New.
3244         (default_store_bounds_for_arg): New.
3245         (default_fn_abi_va_list_bounds_size): New.
3246         (default_chkp_bound_type): New.
3247         (default_chkp_bound_mode): New.
3248         (default_builtin_chkp_function): New.
3249         * targhooks.c (default_load_bounds_for_arg): New.
3250         (default_store_bounds_for_arg): New.
3251         (default_fn_abi_va_list_bounds_size): New.
3252         (default_chkp_bound_type): New.
3253         (default_chkp_bound_mode); New.
3254         (default_builtin_chkp_function): New.
3255         * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
3256         (TARGET_LOAD_BOUNDS_FOR_ARG): New.
3257         (TARGET_STORE_BOUNDS_FOR_ARG): New.
3258         (TARGET_BUILTIN_CHKP_FUNCTION): New.
3259         (TARGET_CHKP_BOUND_TYPE): New.
3260         (TARGET_CHKP_BOUND_MODE): New.
3261         * doc/tm.texi: Regenerated.
3262         * langhooks.h (lang_hooks): Add chkp_supported field.
3263         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
3264         (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
3266         Reverted:
3267         2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
3268         * config/i386/constraints.md (B): New.
3269         (Ti): New.
3270         (Tb): New.
3271         * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
3272         * config/i386/i386-modes.def (BND32): New.
3273         (BND64): New.
3274         * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
3275         * config/i386/i386.c (isa_opts): Add mmpx.
3276         (regclass_map): Add bound registers.
3277         (dbx_register_map): Likewise.
3278         (dbx64_register_map): Likewise.
3279         (svr4_dbx_register_map): Likewise.
3280         (PTA_MPX): New.
3281         (ix86_option_override_internal): Support MPX ISA.
3282         (ix86_conditional_register_usage): Support bound registers.
3283         (print_reg): Likewise.
3284         (ix86_code_end): Add MPX bnd prefix.
3285         (output_set_got): Likewise.
3286         (ix86_output_call_insn): Likewise.
3287         (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
3288         (ix86_print_operand_punct_valid_p): Likewise.
3289         (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
3290         UNSPEC_BNDMK_ADDR.
3291         (ix86_class_likely_spilled_p): Add bound regs support.
3292         (ix86_hard_regno_mode_ok): Likewise.
3293         (x86_order_regs_for_local_alloc): Likewise.
3294         (ix86_bnd_prefixed_insn_p): New.
3295         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
3296         (FIXED_REGISTERS): Add bound registers.
3297         (CALL_USED_REGISTERS): Likewise.
3298         (REG_ALLOC_ORDER): Likewise.
3299         (HARD_REGNO_NREGS): Likewise.
3300         (TARGET_MPX): New.
3301         (VALID_BND_REG_MODE): New.
3302         (FIRST_BND_REG): New.
3303         (LAST_BND_REG): New.
3304         (reg_class): Add BND_REGS.
3305         (REG_CLASS_NAMES): Likewise.
3306         (REG_CLASS_CONTENTS): Likewise.
3307         (BND_REGNO_P): New.
3308         (ANY_BND_REG_P): New.
3309         (BNDmode): New.
3310         (HI_REGISTER_NAMES): Add bound registers.
3311         * config/i386/i386.md (UNSPEC_BNDMK): New.
3312         (UNSPEC_BNDMK_ADDR): New.
3313         (UNSPEC_BNDSTX): New.
3314         (UNSPEC_BNDLDX): New.
3315         (UNSPEC_BNDLDX_ADDR): New.
3316         (UNSPEC_BNDCL): New.
3317         (UNSPEC_BNDCU): New.
3318         (UNSPEC_BNDCN): New.
3319         (UNSPEC_MPX_FENCE): New.
3320         (BND0_REG): New.
3321         (BND1_REG): New.
3322         (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
3323         (length_immediate): Likewise.
3324         (prefix_0f): Likewise.
3325         (memory): Likewise.
3326         (prefix_rep): Check for bnd prefix.
3327         (length_nobnd): New.
3328         (length): Use length_nobnd if specified.
3329         (BND): New.
3330         (bnd_ptr): New.
3331         (BNDCHECK): New.
3332         (bndcheck): New.
3333         (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
3334         (*jcc_2): Likewise.
3335         (jump): Likewise.
3336         (simple_return_internal): Likewise.
3337         (simple_return_pop_internal): Likewise.
3338         (*indirect_jump): Add MPX bnd prefix.
3339         (*tablejump_1): Likewise.
3340         (simple_return_internal_long): Likewise.
3341         (simple_return_indirect_internal): Likewise.
3342         (<mode>_mk): New.
3343         (*<mode>_mk): New.
3344         (mov<mode>): New.
3345         (*mov<mode>_internal_mpx): New.
3346         (<mode>_<bndcheck>): New.
3347         (*<mode>_<bndcheck>): New.
3348         (<mode>_ldx): New.
3349         (*<mode>_ldx): New.
3350         (<mode>_stx): New.
3351         (*<mode>_stx): New.
3352         * config/i386/predicates.md (lea_address_operand): Rename to...
3353         (address_no_seg_operand): ... this.
3354         (address_mpx_no_base_operand): New.
3355         (address_mpx_no_index_operand): New.
3356         (bnd_mem_operator): New.
3357         * config/i386/i386.opt (mmpx): New.
3358         * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
3359         * doc/rtl.texi Add documentation for BND32mode and BND64mode.
3361         Reverted:
3362         2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
3363         * mode-classes.def (MODE_POINTER_BOUNDS): New.
3364         * tree.def (POINTER_BOUNDS_TYPE): New.
3365         * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
3366         (POINTER_BOUNDS_MODE): New.
3367         (make_pointer_bounds_mode): New.
3368         * machmode.h (POINTER_BOUNDS_MODE_P): New.
3369         * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
3370         (layout_type): Support POINTER_BOUNDS_TYPE.
3371         * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
3372         * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
3373         (type_contains_placeholder_1): Likewise.
3374         * tree.h (POINTER_BOUNDS_TYPE_P): New.
3375         * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
3376         * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
3378 2013-11-29  Richard Biener  <rguenther@suse.de>
3380         PR middle-end/59338
3381         * tree-cfg.c (verify_expr): Restrict bounds verification of
3382         BIT_FIELD_REF arguments to non-aggregate typed base objects.
3384 2013-11-29  Richard Biener  <rguenther@suse.de>
3386         PR tree-optimization/59334
3387         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
3388         in previous commit.
3390 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
3391             Richard Biener  <rguenther@suse.de>
3393         PR lto/59326
3394         * omp-low.c (simd_clone_create): Return NULL if for definition
3395         !cgraph_function_with_gimple_body_p (old_node).  Call cgraph_get_body
3396         before calling cgraph_function_versioning.
3397         (expand_simd_clones): Look for "omp declare simd" attribute first.
3398         Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
3399         Punt if node->global.inlined_to.
3400         (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
3401         Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
3402         * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
3404 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
3406         PR lto/59326
3407         * tree-core.h (enum omp_clause_schedule_kind): Add
3408         OMP_CLAUSE_SCHEDULE_LAST.
3409         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
3410         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
3411         (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
3412         (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
3413         * lto-streamer-out.c (lto_is_streamable): Allow streaming OMP_CLAUSE.
3414         (DFS_write_tree_body): Handle OMP_CLAUSE.
3415         * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New function.
3416         (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
3417         (write_ts_omp_clause_tree_pointers): New function.
3418         (streamer_write_tree_body): Call it for OMP_CLAUSE.
3419         (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
3420         * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New function.
3421         (unpack_value_fields): Call it for OMP_CLAUSE.
3422         (streamer_alloc_tree): Handle OMP_CLAUSE.
3423         (lto_input_ts_omp_clause_tree_pointers): New function.
3424         (streamer_read_tree_body): Call it for OMP_CLAUSE.
3426 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
3428         * doc/implement-c.texi: Document C11 implementation-defined
3429         behavior.  Refer to -ffp-contract=fast for contraction behavior.
3430         * doc/invoke.texi (-std=c99, std=c11): Update description of
3431         completeness.
3432         (-std=gnu99): Don't mention as future default.
3433         (-std=gnu11): Mention as intended future default.
3434         * doc/standards.texi: Update descriptions of C99 and C11 support.
3435         Limit statement about C99 facilities for freestanding
3436         implementations to some platforms only.
3438 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
3440         PR middle-end/59327
3441         * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit HWI hosts.
3443 2013-11-28  Vladimir Makarov  <vmakarov@redhat.com>
3445         PR target/57293
3446         * ira.h (ira_setup_eliminable_regset): Remove parameter.
3447         * ira.c (ira_setup_eliminable_regset): Ditto.  Add
3448         SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
3449         Don't call lra_init_elimination.
3450         (ira): Call ira_setup_eliminable_regset without arguments.
3451         * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
3452         from ira_setup_eliminable_regset call.
3453         * gcse.c (calculate_bb_reg_pressure): Ditto.
3454         * haifa-sched.c (sched_init): Ditto.
3455         * lra.h (lra_init_elimination): Remove the prototype.
3456         * lra-int.h (lra_insn_recog_data): New member sp_offset.  Move
3457         used_insn_alternative upper.
3458         (lra_eliminate_regs_1): Add one more parameter.
3459         (lra-eliminate): Ditto.
3460         * lra.c (lra_invalidate_insn_data): Set sp_offset.
3461         (setup_sp_offset): New.
3462         (lra_process_new_insns): Call setup_sp_offset.
3463         (lra): Add argument to lra_eliminate calls.
3464         * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
3465         (get_equiv_with_elimination): New.
3466         (process_addr_reg): Call get_equiv_with_elimination instead of
3467         get_equiv_substitution.
3468         (equiv_address_substitution): Ditto.
3469         (loc_equivalence_change_p): Ditto.
3470         (loc_equivalence_callback, lra_constraints): Ditto.
3471         (curr_insn_transform): Ditto.  Print the sp offset
3472         (process_alt_operands): Prevent stack pointer reloads.
3473         (lra_constraints): Remove one argument from lra_eliminate call.
3474         Move it up.  Mark used hard regs bfore it.  Use
3475         get_equiv_with_elimination instead of get_equiv_substitution.
3476         * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
3477         assert for param values combination.  Use sp offset.  Add argument
3478         to lra_eliminate_regs_1 calls.
3479         (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
3480         (curr_sp_change): New static var.
3481         (mark_not_eliminable): Add parameter.  Update curr_sp_change.
3482         Don't prevent elimination to sp if we can calculate its change.
3483         Pass the argument to mark_not_eliminable calls.
3484         (eliminate_regs_in_insn): Add a parameter.  Use sp offset.  Add
3485         argument to lra_eliminate_regs_1 call.
3486         (update_reg_eliminate): Move calculation of hard regs for spill
3487         lower.  Switch off lra_in_progress temporarily to generate regs
3488         involved into elimination.
3489         (lra_init_elimination): Rename to init_elimination.  Make it
3490         static.  Set up insn sp offset, check the offsets at the end of BBs.
3491         (process_insn_for_elimination): Add parameter.  Pass its value to
3492         eliminate_regs_in_insn.
3493         (lra_eliminate): : Add parameter.  Pass its value to
3494         process_insn_for_elimination.  Add assert for param values
3495         combination.  Call init_elimination.  Don't update offsets in
3496         equivalence substitutions.
3497         * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
3498         for created stack slot.
3499         (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
3500         onto stack slot.
3502 2013-11-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3504         * config/arm/iterators.md (vrint_conds): New int attribute.
3505         * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
3506         (smax<mode>3): Likewise.
3507         (smin<mode>3): Likewise.
3509 2013-11-28  Richard Sandiford  <rdsandiford@googlemail.com>
3511         * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
3512         * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
3513         * tree-ssanames.h (set_range_info): Add range_type argument.
3514         (duplicate_ssa_name_range_info): Likewise.
3515         * tree-ssanames.c (set_range_info): Take the range type as argument
3516         and store it in SSA_NAME_ANTI_RANGE_P.
3517         (duplicate_ssa_name_range_info): Likewise.
3518         (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
3519         (set_nonzero_bits): Update call to set_range_info.
3520         (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
3521         * tree-ssa-copy.c (fini_copy_prop): Likewise.
3522         * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
3523         (vrp_finalize): Likewise, passing anti-ranges directly.
3525 2013-11-28  Richard Biener  <rguenther@suse.de>
3527         PR tree-optimization/59330
3528         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
3529         and fix delayed marking of free calls not necessary.
3531 2013-11-28  Andrew MacLeod  <amacleod@redhat.com>
3533         * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
3534         is_gimple_reg_type.
3535         * ipa-prop.c (determine_known_aggregate_parts): Likewise.
3537 2013-11-28  Terry Guo  <terry.guo@arm.com>
3539         * config/arm/arm.c (v7m_extra_costs): New table.
3540         (arm_v7m_tune): Use it.
3542 2013-11-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3544         * config/sol2.h (TIME_LIBRARY): Define.
3546 2013-11-28  Richard Biener  <rguenther@suse.de>
3548         PR lto/59323
3549         * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
3550         CONST_DECLs in function context are not indexable.
3552 2013-11-28  Chung-Ju Wu  <jasonwucj@gmail.com>
3554         * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
3555         not optimized for size.
3557 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
3559         * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
3560         fields.
3561         (expand_stack_vars): For -fsanitize=address, use (and set initially)
3562         data->asan_base as base for vars and update asan_alignb.
3563         (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
3564         Pass them to asan_emit_stack_protection.
3565         * asan.c (asan_detect_stack_use_after_return): New variable.
3566         (asan_emit_stack_protection): Add pbase and alignb arguments.
3567         Implement use after return sanitization.
3568         * asan.h (asan_emit_stack_protection): Adjust prototype.
3569         (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
3571 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
3573         * common.opt: Introduced a new option -fsimd-cost-model.
3574         * doc/invoke.texi: Introduced a new openmp-simd warning and
3575         a new -fsimd-cost-model option.
3576         * tree-vectorizer.h (unlimited_cost_model): Interface updated
3577         to rely on the particular loop info.
3578         * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
3579         (vect_peeling_hash_choose_best_peeling): Ditto.
3580         (vect_enhance_data_refs_alignment): Ditto.
3581         * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
3582         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
3583         plus added openmp-simd warining.
3585 2013-11-27  H.J. Lu  <hongjiu.lu@intel.com>
3587         PR rtl-optimization/59311
3588         * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
3589         * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
3591 2013-11-27  Eric Botcazou  <ebotcazou@adacore.com>
3593         * var-tracking.c (track_expr_p): Do not track declarations for parts
3594         of tracked parameters.
3595         (add_stores): Do not track values for tracked parameters passed in
3596         multiple locations.
3597         (vt_get_decl_and_offset): Handle PARALLEL.
3598         (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
3600 2013-11-27  Jeff Law  <law@redhat.com>
3602         * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
3603         clobber the loop structure thread_block was unsuccessful.  If
3604         thread_block was unsuccessful, cleanup appropriately.
3606 2013-11-27  Chen Liqin <liqin.gcc@gmail.com>
3608         * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
3609         (score_char_to_class): Likewise.
3611 2013-11-27  Kenneth Zadeck  <zadeck@naturalbridge.com>
3613         * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with
3614         the overflow bit set.
3616 2013-11-27  Richard Biener  <rguenther@suse.de>
3618         PR middle-end/58723
3619         * cgraphbuild.c (build_cgraph_edges): Do not build edges
3620         for internal calls.
3621         (rebuild_cgraph_edges): Likewise.
3622         * ipa-inline-analysis.c (estimate_function_body_sizes):
3623         Skip internal calls.
3624         * tree-inline.c (estimate_num_insns): Estimate size of internal
3625         calls as 0.
3626         (gimple_expand_calls_inline): Do not try inline-expanding
3627         internal calls.
3628         * lto-streamer-in.c (input_cfg): Stream loop safelen,
3629         force_vect and simduid.
3630         (input_struct_function_base): Stream has_force_vect_loops
3631         and has_simduid_loops.
3632         (input_function): Adjust.
3633         * lto-streamer-out.c (output_cfg): Stream loop safelen,
3634         force_vect and simduid.
3635         (output_struct_function_base): Stream has_force_vect_loops
3636         and has_simduid_loops.
3638 2013-11-27  Kai Tietz  <ktietz@redhat.com>
3640         * config/i386/winnt.c (i386_pe_section_type_flags): Use const
3641         pointer cast.
3643 2013-11-27  Kugan Vivekanandarajah  <kuganv@linaro.org>
3645         * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
3646         * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
3648 2013-11-27  Marek Polacek  <polacek@redhat.com>
3650         PR sanitizer/59306
3651         * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
3652         instead of walk_gimple_op.
3653         (ubsan_pass): Adjust.  Call instrument_null only if SANITIZE_NULL.
3655 2013-11-27  Aldy Hernandez  <aldyh@redhat.com>
3656             Jakub Jelinek  <jakub@redhat.com>
3658         * cgraph.h (enum cgraph_simd_clone_arg_type): New.
3659         (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
3660         (struct cgraph_node): Add simdclone and simd_clones fields.
3661         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
3662         ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
3663         (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
3664         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
3665         * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
3666         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
3667         * doc/tm.texi: Regenerated.
3668         * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
3669         * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
3670         attribute is present.
3671         * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
3672         (simd_clone_vector_of_formal_parm_types): New function.
3673         (simd_clone_struct_alloc, simd_clone_struct_copy,
3674         simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
3675         simd_clone_compute_base_data_type, simd_clone_mangle,
3676         simd_clone_create, simd_clone_adjust_return_type,
3677         create_tmp_simd_array, simd_clone_adjust_argument_types,
3678         simd_clone_init_simd_arrays): New functions.
3679         (struct modify_stmt_info): New type.
3680         (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
3681         simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
3682         functions.
3683         (pass_data_omp_simd_clone): New variable.
3684         (pass_omp_simd_clone): New class.
3685         (make_pass_omp_simd_clone): New function.
3686         * passes.def (pass_omp_simd_clone): New.
3687         * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
3688         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target hooks.
3689         * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
3690         * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
3691         * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
3692         * tree-pass.h (make_pass_omp_simd_clone): New prototype.
3693         * tree-vect-data-refs.c: Include cgraph.h.
3694         (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
3695         and find_data_references_in_bb, if find_data_references_in_stmt
3696         fails, still allow calls to #pragma omp declare simd functions
3697         in #pragma omp simd loops unless they contain data references among
3698         the call arguments or in lhs.
3699         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
3700         calls with no lhs.
3701         (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls
3702         without lhs.
3703         * tree-vectorizer.h (enum stmt_vec_info_type): Add
3704         call_simd_clone_vec_info_type.
3705         (struct _stmt_vec_info): Add simd_clone_fndecl field.
3706         (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
3707         * tree-vect-stmts.c: Include tree-ssa-loop.h,
3708         tree-scalar-evolution.h and cgraph.h.
3709         (vectorizable_call): Handle calls without lhs.  Assert
3710         !stmt_can_throw_internal instead of failing for it.  Don't update
3711         EH stuff.
3712         (struct simd_call_arg_info): New.
3713         (vectorizable_simd_clone_call): New function.
3714         (vect_transform_stmt): Call it.
3715         (vect_analyze_stmt): Likewise.  Allow NULL STMT_VINFO_VECTYPE for
3716         calls without lhs.
3717         * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
3718         if cgraph_function_with_gimple_body_p is true.
3720 2013-11-27  Tom de Vries  <tom@codesourcery.com>
3721             Marc Glisse  <marc.glisse@inria.fr>
3723         PR middle-end/59037
3724         * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
3725         BIT_FIELD_REF.
3726         * gimple-fold.c (gimple_fold_indirect_ref): Same.
3727         * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
3728         out-of-bounds.
3730 2013-11-27  Eric Botcazou  <ebotcazou@adacore.com>
3732         PR middle-end/59138
3733         * expr.c (emit_group_store): Don't write past the end of the structure.
3734         (store_bit_field): Fix formatting.
3736 2013-11-27  Richard Biener  <rguenther@suse.de>
3738         PR tree-optimization/59288
3739         * tree-vect-loop.c (get_initial_def_for_induction): Do not
3740         re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
3742 2013-11-27  Marek Polacek  <polacek@redhat.com>
3744         * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
3745         for a decl, recreate that decl.  Save into the hash table VAR_DECLs
3746         rather than ADDR_EXPRs.
3748 2013-11-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3750         * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
3752 2013-11-26  David Malcolm  <dmalcolm@redhat.com>
3754         * gengtype.c (struct seen_tag): New.
3755         (already_seen_tag): New.
3756         (mark_tag_as_seen): New.
3757         (walk_subclasses): Support having multiple subclasses using the
3758         same tag by tracking which tags have already been seen, and using
3759         this to avoid adding duplicate cases to the "switch" statement.
3760         The call to already_seen_tag introduces an O(N^2) when running
3761         gengtype on N, the number of tags, due to the repeated linear
3762         search, but currently max(N) is relatively small (the number of
3763         GSS codes, which is 26).
3764         (walk_type): Pass in a seen_tag for use by the walk_subclasses
3765         recursion.
3767         * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
3768         underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
3769         GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
3770         GIMPLE_OMP_RETURN happens to share the data layout of
3771         GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
3772         (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
3773         underlying GSS value from GSS_OMP_PARALLEL to
3774         GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
3775         not directly related; they merely share in-memory layout.
3776         (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
3777         for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
3779         * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
3780         Rename to...
3781         (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
3782         ...these.
3783         (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
3784         (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout): ...these.
3785         (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename to...
3786         (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
3787         ...these.
3789         * gimple.h (gimple_statement_resx): New subclass of
3790         gimple_statement_eh_ctrl, with the invariant that
3791         stmt->code == GIMPLE_RESX.
3792         (gimple_statement_eh_dispatch): New subclass of
3793         gimple_statement_eh_ctrl, with the invariant that
3794         stmt->code == GIMPLE_EH_DISPATH.
3796         (gimple_statement_omp_parallel): The existing class expressed
3797         a layout (GSS_OMP_PARALLEL), but the codes with that layout
3798         are not all related, so it makes more sense for this class to
3799         express a *code* (GIMPLE_OMP_PARALLEL).  GSS_OMP_PARALLEL has
3800         been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
3801         rename the existing gimple_statement_omp_parallel class to...
3802         (gimple_statement_omp_parallel_layout): ...this, expressing
3803         a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
3804         (gimple_statement_omp_taskreg): New subclass of
3805         gimple_statement_omp_parallel_layout, expressing the invariant
3806         that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
3807         as used by the various gimple_omp_taskreg_ accessors.
3808         (gimple_statement_omp_parallel): Reintroduce this class, this time
3809         as a subclass of gimple_statement_omp_taskreg to express the
3810         invariant stmt->code == GIMPLE_OMP_PARALLEL.
3811         (gimple_statement_omp_target) New class, subclassing
3812         gimple_statement_omp_parallel_layout, to express the invariant
3813         stmt->code == GIMPLE_OMP_TARGET.
3814         (gimple_statement_omp_task): Update to inherit from
3815         gimple_statement_omp_taskreg rather than
3816         gimple_statement_omp_parallel.
3818         (gimple_statement_omp_single): Rename to...
3819         (gimple_statement_omp_single_layout): ...this, expressing the
3820         invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
3821         (gimple_statement_omp_single): ...and reintroduce this name as
3822         a subclass of gimple_statement_omp_single_layout, expressing
3823         the invariant that code == GIMPLE_OMP_SINGLE.
3824         (gimple_statement_omp_teams): New class, subclassing
3825         gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
3827         (gimple_statement_omp_atomic_store): Rename to...
3828         (gimple_statement_omp_atomic_store_layout): ...this, expressing
3829         the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
3830         (gimple_statement_omp_atomic_store): ...and reintroduce this
3831         name as a subclass of gimple_statement_omp_atomic_store_layout
3832         with code == GIMPLE_OMP_ATOMIC_STORE.
3833         (gimple_statement_omp_return): New class, subclassing
3834         gimple_statement_omp_atomic_store_layout for the code
3835         GIMPLE_OMP_RETURN.
3837         (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
3838         (is_a_helper <gimple_statement_resx>::test): New.
3839         (is_a_helper <gimple_statement_eh_dispatch>::test): New.
3840         (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
3841         check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
3842         (is_a_helper <gimple_statement_omp_return>::test): New.
3843         (is_a_helper <gimple_statement_omp_taskreg>::test): New.
3844         (is_a_helper <gimple_statement_omp_parallel>::test): Only check
3845         for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
3846         GIMPLE_OMP_TARGET.
3847         (is_a_helper <gimple_statement_omp_target>::test): New.
3848         (is_a_helper <gimple_statement_omp_single>::test): Only check
3849         for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
3850         (is_a_helper <gimple_statement_omp_teams>::test): New.
3852         (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
3853         (is_a_helper <const gimple_statement_resx>::test): New.
3854         (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
3855         (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
3856         check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
3857         (is_a_helper <const gimple_statement_omp_return>::test): New.
3858         (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
3859         (is_a_helper <const gimple_statement_omp_parallel>::test): Only
3860         check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
3861         GIMPLE_OMP_TARGET.
3862         (is_a_helper <const gimple_statement_omp_target>::test): New.
3863         (is_a_helper <const gimple_statement_omp_single>::test): Only
3864         check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
3865         (is_a_helper <const gimple_statement_omp_teams>::test): New.
3867         (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
3868         gimple_omp_return_lhs_ptr): Replace bogus downcasts to
3869         gimple_statement_omp_atomic_store with downcasts to
3870         gimple_statement_omp_return, thus requiring that the code be
3871         GIMPLE_OMP_RETURN.
3872         (gimple_resx_region, gimple_resx_set_region): Replace bogus
3873         downcasts to gimple_statement_eh_ctrl with downcasts to
3874         gimple_statement_resx, thus requiring that the code be GIMPLE_RESX.
3875         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
3876         Replace bogus downcasts to const gimple_statement_eh_ctrl with
3877         downcasts to gimple_statement_eh_dispatch, thus requiring that
3878         the code be GIMPLE_EH_DISPATCH.
3879         (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
3880         gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
3881         gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
3882         gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
3883         gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
3884         gimple_statement_omp_parallel with downcasts to
3885         gimple_statement_omp_taskreg, thus requiring that the code be
3886         either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
3887         (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
3888         gimple_omp_target_set_clauses, gimple_omp_target_child_fn
3889         gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
3890         gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
3891         gimple_omp_target_set_data_arg): Replace bogus downcasts to
3892         gimple_statement_omp_parallel with downcasts to
3893         gimple_statement_omp_target, thus requiring that the code be
3894         GIMPLE_OMP_TARGET.
3895         (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
3896         gimple_omp_teams_set_clauses): Replace bogus downcasts to
3897         gimple_statement_omp_single with downcasts to
3898         gimple_statement_omp_teams, thus requiring that the code be
3899         GIMPLE_OMP_TEAMS.
3901         * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
3902         gimple_statement_resx.
3903         (gimple_build_eh_dispatch): Fix bogus as_a<> to use
3904         gimple_statement_eh_dispatch.
3906 2013-11-26  Jakub Jelinek  <jakub@redhat.com>
3908         PR tree-optimization/59014
3909         * tree-vrp.c (register_edge_assert_for_1): Don't look
3910         through conversions from non-integral types or through
3911         narrowing conversions.
3913         PR target/59229
3914         * config/i386/i386.c (device_alg): Fix up formatting.
3915         (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
3916         similarly to count && count < epilogue_size_needed.  Fix up
3917         comment typo.
3918         * builtins.c (determine_block_size): Fix comment typo.
3920         PR sanitizer/59258
3921         * ubsan.c (ubsan_source_location): Don't add any location
3922         to ADDR_EXPR in the ctor.  Revert 2013-11-22 change.
3923         (ubsan_create_data): Strip block info from LOC.
3925         PR middle-end/59273
3926         * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
3927         if there isn't optab handler for the corresponding vector PLUS_EXPR.
3929         PR rtl-optimization/59166
3930         * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
3931         DF_REF_LOC in validate_change call.
3932         (split_live_ranges_for_shrink_wrap): Likewise.
3934         PR middle-end/59150
3935         * omp-low.c (lower_rec_input_clause): For reduction with placeholder
3936         of references to constant size types in simd loops, defer emitting
3937         initializer for the new_var, emit it later on only if not using
3938         SIMD arrays for it.
3940         PR middle-end/59152
3941         * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
3942         for the inner loop if collapse_bb is non-NULL.
3943         (expand_omp_simd): Use cont_bb rather than e->dest as latch.
3945 2013-11-26  Yufeng Zhang  <yufeng.zhang@arm.com>
3947         * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
3948         a constant immediate before force_reg.
3950 2013-11-26  Richard Biener  <rguenther@suse.de>
3952         PR tree-optimization/59245
3953         * tree-vrp.c (set_value_range): Assert that we don't have
3954         overflowed constants (but our infinities).
3955         (set_value_range_to_value): Drop all overflow flags.
3956         (vrp_visit_phi_node): Likewise.
3957         (vrp_visit_assignment_or_call): Use set_value_range_to_value
3958         to set a constant range.
3960 2013-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3962         PR target/59290
3963         * config/arm/arm.md (*zextendsidi_negsi): New pattern.
3964         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
3965         for zero_extend case.
3967 2013-11-26  H.J. Lu  <hongjiu.lu@intel.com>
3969         PR bootstrap/55552
3970         * configure.ac (install_gold_as_default): New.  Set to yes for
3971         --disable-ld or --enable-gold=default.
3972         (gcc_cv_ld_gold_srcdir): New.
3973         (gcc_cv_ld): Also check in-tree gold if install_gold_as_default is yes.
3974         (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
3975         (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
3976         * configure: Regenerated.
3978         * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
3979         (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
3980         (original) [collect-ld && -fuse-ld=bfd]: Set to
3981         $ORIGINAL_LD_BFD_FOR_TARGET.
3982         (original) [collect-ld && -fuse-ld=gold]: Set to
3983         $ORIGINAL_LD_GOLD_FOR_TARGET.
3984         (dir) [collect-ld && ../gold/ld-new]: Set to gold.
3985         (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
3987 2013-11-26  Terry Guo  <terry.guo@arm.com>
3989         * config/arm/arm.c (require_pic_register): Handle high pic base
3990         register for thumb-1.
3991         (arm_load_pic_register): Also initialize high pic base register.
3992         * doc/invoke.texi: Update documentation for option -mpic-register.
3994 2013-11-26  Oleg Endo  <olegendo@gcc.gnu.org>
3996         PR target/58314
3997         PR target/50751
3998         * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
3999         Prefix function names with 'sh_'.  Make them non-static.
4000         * config/sh/sh-protos.h (sh_disp_addr_displacement,
4001         sh_max_mov_insn_displacement): Add declarations.
4002         * config/sh/constraints.md (Q): Reject QImode.
4003         (Sdd): Use match_code "mem".
4004         (Snd): Fix erroneous matching of non-memory operands.
4005         * config/sh/predicates.md (short_displacement_mem_operand): New
4006         predicate.
4007         (general_movsrc_operand): Disallow PC relative QImode loads.
4008         * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
4009         (*movqi, *movhi): Merge both insns into...
4010         (*mov<mode>): ... this new insn.  Replace generic 'm' constraints with
4011         'Snd' and 'Sdd' constraints.  Calculate insn length dynamically based
4012         on the operand types.
4014 2013-11-26  Joern Rennecke  <joern.rennecke@embecosm.com>
4016         * config/epiphany/epiphany.c (epiphany_expand_prologue):
4017         Remove unused variable save_config.
4018         (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
4019         assert.
4021 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
4023         * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
4024         using other intrinsics.
4025         (vtbx3_<psu>8): Likewise.
4027 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
4029         * config/aarch64/aarch64-builtins.c
4030         (aarch64_types_bsl_p_qualifiers): New.
4031         (aarch64_types_bsl_s_qualifiers): Likewise.
4032         (aarch64_types_bsl_u_qualifiers): Likewise.
4033         (TYPES_BSL_P): Likewise.
4034         (TYPES_BSL_S): Likewise.
4035         (TYPES_BSL_U): Likewise.
4036         (BUILTIN_VALLDIF): Likewise.
4037         (BUILTIN_VDQQH): Likewise.
4038         * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
4039         * config/aarch64/aarch64-simd.md
4040         (aarch64_simd_bsl<mode>_internal): Handle more modes.
4041         (aarch64_simd_bsl<mode>): Likewise.
4042         * config/aarch64/arm_neon.h
4043         (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
4044         * config/aarch64/iterators.md (VALLDIF): New.
4045         (Vbtype): Handle more modes.
4047 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
4049         * config/aarch64/aarch64-builtins.c
4050         (aarch64_type_qualifiers): Add qualifier_poly.
4051         (aarch64_build_scalar_type): Also build Poly types.
4052         (aarch64_build_vector_type): Likewise.
4053         (aarch64_build_type): Likewise.
4054         (aarch64_build_signed_type): New.
4055         (aarch64_build_unsigned_type): Likewise.
4056         (aarch64_build_poly_type): Likewise.
4057         (aarch64_init_simd_builtins): Also handle Poly types.
4059 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
4061         * config/aarch64/aarch64-builtins.c
4062         (VAR1): Use new naming scheme for aarch64_builtins.
4063         (aarch64_builtin_vectorized_function): Use new aarch64_builtins names.
4065 2013-11-26  Richard Biener  <rguenther@suse.de>
4067         PR tree-optimization/59287
4068         * tree-ssa-structalias.c (get_constraint_for_component_ref):
4069         Remove no longer necessary special-casing of union accesses.
4071 2013-11-26  Richard Biener  <rguenther@suse.de>
4073         * pretty-print.c (output_buffer::~output_buffer): Really
4074         free the obstacks.
4076 2013-11-25  Jeff Law  <law@redhat.com>
4078         * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
4079         invalidate loop information.
4081 2013-11-25  Oleg Endo  <olegendo@gcc.gnu.org>
4083         * config/sh/sh.md (doloop_end_split): Add missing SI mode.
4085 2013-11-25  Oleg Endo  <olegendo@gcc.gnu.org>
4087         PR target/53976
4088         PR target/59243
4089         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
4090         comments.
4091         (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
4092         previously visited basic blocks before recursing instead of only one
4093         basic block.
4095 2013-11-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4097         * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
4098         * config/aarch64/aarch64-cores.def (cortex-a53):
4099         Use cortexa53 tuning struct.
4101 2013-11-25  Andrew Macleod  <amacleod@redhat.com>
4103         PR bootstrap/59260
4104         * fold-const.c: Include hash-table.h.
4106 2013-11-25  Marek Polacek  <polacek@redhat.com>
4108         PR sanitizer/59258
4109         * ubsan.c (ubsan_create_data): Increase the size of the fields array.
4111 2013-11-25  Richard Biener  <rguenther@suse.de>
4113         * tree-dfa.c: Remove unused convert.h include.
4115 2013-11-25  Terry Guo  <terry.guo@arm.com>
4117         * doc/invoke.texi (-mslow-flash-data): Document new option.
4118         * config/arm/arm.opt (mslow-flash-data): New option.
4119         * config/arm/arm-protos.h (arm_max_const_double_inline_cost):
4120         Declare it.
4121         * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
4122         are disabled.
4123         (arm_disable_literal_pool): Declare it.
4124         * config/arm/arm.c (arm_disable_literal_pool): New variable.
4125         (arm_option_override): Handle new option.
4126         (thumb2_legitimate_address_p): Don't allow symbol references when
4127         literal pools are disabled.
4128         (arm_max_const_double_inline_cost): New function.
4129         * config/arm/arm.md (types.md): Include it before ...
4130         (use_literal_pool): New attribute.
4131         (enabled): Use new attribute.
4132         (split pattern): Replace symbol+offset with MOVW/MOVT.
4134 2013-11-24  Steven Bosscher  <steven@gcc.gnu.org>
4136         PR bootstrap/59279
4137         Revert previous commit.
4139 2013-11-24  Steven Bosscher  <steven@gcc.gnu.org>
4141         * jump.c (reset_insn_reg_label_operand_notes): New function,
4142         split out from ...
4143         (init_label_info): ... here.  Reset LABEL_NUSES in cfglayout mode.
4144         * cfgcleanup.c (delete_dead_jump_tables_between): New function,
4145         split out from ...
4146         (delete_dead_jumptables): ... here.  Handle cfglayout mode.
4147         (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
4148         expensive CFG cleanup is called for.
4149         * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
4150         (cfg_layout_finalize): Delete dead jump tables before re-building
4151         the insns chain.
4152         * ira.c (ira): Rebuild jump labels *after* deleting unreachable
4153         basic blocks, not before.
4154         * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
4156         * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
4157         insns chain of a scheduling extended basic block, they cannot appear
4158         there in cfglayout mode.
4160 2013-11-24  Tobias Burnus  <burnus@net-b.de>
4162         * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
4164 2013-11-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4166         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
4167         for little endian.
4169 2013-11-24  H.J. Lu  <hongjiu.lu@intel.com>
4171         * graphite-sese-to-poly.c: Don't include extra "expr.h".
4173 2013-11-23  Eric Botcazou  <ebotcazou@adacore.com>
4175         * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
4177 2013-11-23  David Edelson  <dje.gcc@gmail.com>
4178             Andrew Dixie  <andrewd@gentrack.com>
4180         PR target/33704
4181         * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
4182         (COLLECT_SHARED_FINI_FUNC): Define.
4184         * collect2.c (aix_shared_initname): Declare.
4185         (aix_shared_fininame): Declare.
4186         (symkind): Add SYM_AIXI and SYM_AIXD.
4187         (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
4188         (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
4189         (aixlazy_flag): Parse.
4190         (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
4191         (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
4193 2013-11-23  David Edelsohn  <dje.gcc@gmail.com>
4195         * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
4196         (rs6000_xcoff_select_section): Place decls with stricter alignment
4197         into named sections.
4198         (rs6000_xcoff_unique_section): Allow unique sections for
4199         uninitialized data with strict alignment.
4201 2013-11-23  Jakub Jelinek  <jakub@redhat.com>
4203         PR tree-optimization/59154
4204         * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
4205         rhs1 of a cast and new_op is invariant, fold_convert it.
4206         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
4207         simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
4209 2013-11-23  Uros Bizjak  <ubizjak@gmail.com>
4211         PR target/56788
4212         * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
4213         Declare as MULTI_ARG_1_SF instruction.
4214         <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
4215         * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
4216         from *xop_vmfrcz_<mode>.
4217         * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
4218         to merge scalar result with __A.
4219         (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
4220         result with __A.
4222 2013-11-23  Eric Botcazou  <ebotcazou@adacore.com>
4224         * gimplify.h (recalculate_side_effects): Delete.
4225         * gimplify.c (recalculate_side_effects): Make static and add comment.
4227 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
4229         * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
4230         for the destination of a define_peephole2.  Likewise register_operand
4231         rather than arith_reg_operand.  Remove constraints from
4232         define_peephole2s.
4234 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
4236         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
4237         Delete.
4238         (mn10300_store_multiple_operation_p): Declare.
4239         * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
4240         Rename to...
4241         (mn10300_store_multiple_operation_p): ...this and remove mode
4242         argument.
4243         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
4244         Define.
4246 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
4248         * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
4249         (pop_multiple_operation): Delete.
4250         (analyze_push_multiple_operation): Declare.
4251         (analyze_pop_multiple_operation): Declare.
4252         * config/bfin/bfin.c (push_multiple_operation): Rename to...
4253         (analyze_push_multiple_operation): ...this and remove mode argument.
4254         (pop_multiple_operation): Rename to...
4255         (analyze_pop_multiple_operation): ...this and remove mode argument.
4256         * config/bfin/predicates.md (push_multiple_operation): Define.
4257         (pop_multiple_operation): Likewise.
4259 2013-11-23  Alan Modra  <amodra@gmail.com>
4261         * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
4263 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
4265         PR sanitizer/59061
4266         * common.opt (static-liblsan): Add.
4267         * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
4268         Define.
4269         * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK.  Renumber
4270         SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
4271         SANITIZE_RETURN.
4272         * opts.c (common_handle_option): Handle -fsanitize=leak.
4273         * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
4274         (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
4275         (LIBUBSAN_EARLY_SPEC): Remove.
4276         (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
4277         (SANITIZER_SPEC): Add -fsanitize=leak handling.
4278         (sanitize_spec_function): Handle %sanitize(leak).
4279         * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
4281 2013-11-22  Aldy Hernandez  <aldyh@redhat.com>
4282             Jakub Jelinek  <jakub@redhat.com>
4284         * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
4285         * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
4286         (ipa_get_vector_of_formal_parm_types): ... this.  No longer static.
4287         (ipa_modify_formal_parameters): Adjust caller.  Remove
4288         synth_parm_prefix argument.  Use operator enum instead of bit fields.
4289         Add assert for properly handling vector of references.  Handle
4290         creating brand new parameters.
4291         (ipa_modify_call_arguments): Use operator enum instead of bit
4292         fields.
4293         (ipa_combine_adjustments): Same.  Assert that IPA_PARM_OP_NEW is not
4294         used.
4295         (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
4296         New functions.
4297         (ipa_dump_param_adjustments): Rename reduction to new_decl.
4298         Use operator enum instead of bit fields.
4299         * ipa-prop.h (enum ipa_parm_op): New.
4300         (struct ipa_parm_adjustment): New field op.  Rename reduction
4301         to new_decl, new_arg_prefix to arg_prefix and remove remove_param
4302         and copy_param.
4303         (ipa_modify_formal_parameters): Remove last argument.
4304         (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
4305         ipa_get_adjustment_candidate): New prototypes.
4306         * tree-sra.c (turn_representatives_into_adjustments): Use operator
4307         enum.  Set arg_prefix.
4308         (get_adjustment_for_base): Use operator enum.
4309         (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
4310         ipa-prop.c.
4311         (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
4312         (ipa_sra_modify_function_body): Same.  No longer static.
4313         (sra_ipa_reset_debug_stmts): Use operator enum.
4314         (modify_function): Do not pass prefix argument.
4316 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
4318         * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
4319         (ubsan_pass): Ignore clobber stmts.
4321         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
4322         * opts.c (common_handle_option): Add -fsanitize=return.
4323         * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
4324         or it into SANITIZE_UNDEFINED.
4326         * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
4327         BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
4328         * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
4329         Don't instrument accesses to VAR_DECLs which are known to fit
4330         into their bounds and the vars are known to have shadow bytes
4331         indicating allowed access.
4332         (asan_dynamic_init_call): New function.
4333         (asan_add_global): If vnode->dynamically_initialized,
4334         set __has_dynamic_init to 1 instead of 0.
4335         (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
4336         * asan.h (asan_dynamic_init_call): New prototype.
4337         * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
4339 2013-11-22  Martin Jambor  <mjambor@suse.cz>
4341         PR rtl-optimization/10474
4342         * ira.c (interesting_dest_for_shprep_1): New function.
4343         (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
4344         also check parallels.
4346 2013-11-22  Jeff Law  <law@redhat.com>
4348         * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
4349         NULL for RHS, which we used to invalidate equivalences.
4350         (record_temporary_equivalences_from_phis): New bitmap arguments
4351         and a boolean indicating if we have passed a backedge.  If we
4352         have passed a backedge, then set the appropriate bit in the
4353         bitmaps for the SRC & DEST of PHIs creating equivalences.
4354         (invalidate_equivalences, dummy_simplify): New functions.
4355         (cond_arg_set_in_b): Remove.
4356         (record_temporary_equivalences_from_stmts_at_dest): New bitmap
4357         arguments and a boolean indicating if we have passed a backedge.
4358         If we have passed a backedge, then perform invalidations as needed.
4359         (thread_around_empty_blocks): If we have seen a backedge, then
4360         use the dummy simplify routine.
4361         (thread_through_normal_block): Likewise.  Pass bitmaps and
4362         backedge status to children.  Do not pessimize so much when
4363         traversing backedges in the CFG.
4364         (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
4365         If we have seen a backedge, then use the dummy simplify routine.
4366         Do not pessimize so much when traversing backedges.
4368 2013-11-22  Hans-Peter Nilsson  <hp@axis.com>
4370         * config/cris/cris.c (cris_atomic_align_for_mode): New function.
4371         (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
4373 2013-11-22  Yuri Rumyantsev  <ysrumyan@gmail.com>
4375         * config/i386/i386.c (processor_alias_table): Enable PTA_AES,
4376         PTA_PCLMUL and PTA_RDRND for Silvermont.
4377         * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
4378         for Silvermont.
4380         * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
4382 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
4384         * hooks.h (hook_uint_mode_0): Add Prototype.
4385         * hooks.c (hook_uint_mode_0): New default function.
4386         * target.def (atomic_align_for_mode): New target hook.
4387         * tree.c (build_atomic_base): Add alignment override parameter.
4388         (build_common_tree_nodes): Use atomic alignment override.
4389         * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
4390         * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
4392 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
4394         * gimple.h: Remove all includes.
4395         (recalculate_side_effects): Move prototype to gimplify.h.
4396         * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
4397         * gengtype.c (open_base_files): Add gimple.h include list.
4398         * gimplify.h (recalculate_side_effects): Relocate prototype here.
4399         * gimple.c: Adjust include list.
4400         (recalculate_side_effects): Move to gimplify.c.
4401         * gimplify.c: Adjust include list.
4402         (recalculate_side_effects): Relocate from gimple.c.
4403         * alias.c: Add required include files removed from gimple.h.
4404         * asan.c: Likewise.
4405         * builtins.c: Likewise.
4406         * calls.c: Likewise.
4407         * cfgexpand.c: Likewise.
4408         * cfgloop.c: Likewise.
4409         * cfgloopmanip.c: Likewise.
4410         * cgraphbuild.c: Likewise.
4411         * cgraph.c: Likewise.
4412         * cgraphclones.c: Likewise.
4413         * cgraphunit.c: Likewise.
4414         * cilk-common.c: Likewise.
4415         * data-streamer.c: Likewise.
4416         * data-streamer-in.c: Likewise.
4417         * data-streamer-out.c: Likewise.
4418         * dse.c: Likewise.
4419         * dwarf2out.c: Likewise.
4420         * emit-rtl.c: Likewise.
4421         * except.c: Likewise.
4422         * expr.c: Likewise.
4423         * fold-const.c: Likewise.
4424         * function.c: Likewise.
4425         * gimple-builder.c: Likewise.
4426         * gimple-expr.c: Likewise.
4427         * gimple-fold.c: Likewise.
4428         * gimple-iterator.c: Likewise.
4429         * gimple-low.c: Likewise.
4430         * gimple-pretty-print.c: Likewise.
4431         * gimple-ssa-isolate-paths.c: Likewise.
4432         * gimple-ssa-strength-reduction.c: Likewise.
4433         * gimple-streamer-in.c: Likewise.
4434         * gimple-streamer-out.c: Likewise.
4435         * gimple-walk.c: Likewise.
4436         * gimplify-me.c: Likewise.
4437         * graphite-blocking.c: Likewise.
4438         * graphite.c: Likewise.
4439         * graphite-clast-to-gimple.c: Likewise.
4440         * graphite-dependences.c: Likewise.
4441         * graphite-interchange.c: Likewise.
4442         * graphite-optimize-isl.c: Likewise.
4443         * graphite-poly.c: Likewise.
4444         * graphite-scop-detection.c: Likewise.
4445         * graphite-sese-to-poly.c: Likewise.
4446         * internal-fn.c: Likewise.
4447         * ipa.c: Likewise.
4448         * ipa-cp.c: Likewise.
4449         * ipa-devirt.c: Likewise.
4450         * ipa-inline-analysis.c: Likewise.
4451         * ipa-inline.c: Likewise.
4452         * ipa-profile.c: Likewise.
4453         * ipa-prop.c: Likewise.
4454         * ipa-pure-const.c: Likewise.
4455         * ipa-reference.c: Likewise.
4456         * ipa-split.c: Likewise.
4457         * ipa-utils.c: Likewise.
4458         * langhooks.c: Likewise.
4459         * lto-cgraph.c: Likewise.
4460         * lto-compress.c: Likewise.
4461         * lto-opts.c: Likewise.
4462         * lto-section-in.c: Likewise.
4463         * lto-section-out.c: Likewise.
4464         * lto-streamer.c: Likewise.
4465         * lto-streamer-in.c: Likewise.
4466         * lto-streamer-out.c: Likewise.
4467         * omp-low.c: Likewise.
4468         * opts-global.c: Likewise.
4469         * passes.c: Likewise.
4470         * predict.c: Likewise.
4471         * profile.c: Likewise.
4472         * sese.c: Likewise.
4473         * stmt.c: Likewise.
4474         * stor-layout.c: Likewise.
4475         * symtab.c: Likewise.
4476         * targhooks.c: Likewise.
4477         * toplev.c: Likewise.
4478         * tracer.c: Likewise.
4479         * trans-mem.c: Likewise.
4480         * tree-affine.c: Likewise.
4481         * tree.c: Likewise.
4482         * tree-call-cdce.c: Likewise.
4483         * tree-cfg.c: Likewise.
4484         * tree-cfgcleanup.c: Likewise.
4485         * tree-chrec.c: Likewise.
4486         * tree-complex.c: Likewise.
4487         * tree-data-ref.c: Likewise.
4488         * tree-dfa.c: Likewise.
4489         * tree-eh.c: Likewise.
4490         * tree-emutls.c: Likewise.
4491         * tree-if-conv.c: Likewise.
4492         * tree-inline.c: Likewise.
4493         * tree-into-ssa.c: Likewise.
4494         * tree-loop-distribution.c: Likewise.
4495         * tree-nested.c: Likewise.
4496         * tree-nrv.c: Likewise.
4497         * tree-object-size.c: Likewise.
4498         * tree-outof-ssa.c: Likewise.
4499         * tree-parloops.c: Likewise.
4500         * tree-phinodes.c: Likewise.
4501         * tree-predcom.c: Likewise.
4502         * tree-pretty-print.c: Likewise.
4503         * tree-profile.c: Likewise.
4504         * tree-scalar-evolution.c: Likewise.
4505         * tree-sra.c: Likewise.
4506         * tree-ssa-address.c: Likewise.
4507         * tree-ssa-alias.c: Likewise.
4508         * tree-ssa.c: Likewise.
4509         * tree-ssa-ccp.c: Likewise.
4510         * tree-ssa-coalesce.c: Likewise.
4511         * tree-ssa-copy.c: Likewise.
4512         * tree-ssa-copyrename.c: Likewise.
4513         * tree-ssa-dce.c: Likewise.
4514         * tree-ssa-dom.c: Likewise.
4515         * tree-ssa-dse.c: Likewise.
4516         * tree-ssa-forwprop.c: Likewise.
4517         * tree-ssa-ifcombine.c: Likewise.
4518         * tree-ssa-live.c: Likewise.
4519         * tree-ssa-loop.c: Likewise.
4520         * tree-ssa-loop-ch.c: Likewise.
4521         * tree-ssa-loop-im.c: Likewise.
4522         * tree-ssa-loop-ivcanon.c: Likewise.
4523         * tree-ssa-loop-ivopts.c: Likewise.
4524         * tree-ssa-loop-manip.c: Likewise.
4525         * tree-ssa-loop-niter.c: Likewise.
4526         * tree-ssa-loop-prefetch.c: Likewise.
4527         * tree-ssa-loop-unswitch.c: Likewise.
4528         * tree-ssa-math-opts.c: Likewise.
4529         * tree-ssanames.c: Likewise.
4530         * tree-ssa-operands.c: Likewise.
4531         * tree-ssa-phiopt.c: Likewise.
4532         * tree-ssa-phiprop.c: Likewise.
4533         * tree-ssa-pre.c: Likewise.
4534         * tree-ssa-propagate.c: Likewise.
4535         * tree-ssa-reassoc.c: Likewise.
4536         * tree-ssa-sccvn.c: Likewise.
4537         * tree-ssa-sink.c: Likewise.
4538         * tree-ssa-strlen.c: Likewise.
4539         * tree-ssa-structalias.c: Likewise.
4540         * tree-ssa-tail-merge.c: Likewise.
4541         * tree-ssa-ter.c: Likewise.
4542         * tree-ssa-threadedge.c: Likewise.
4543         * tree-ssa-threadupdate.c: Likewise.
4544         * tree-ssa-uncprop.c: Likewise.
4545         * tree-ssa-uninit.c: Likewise.
4546         * tree-stdarg.c: Likewise.
4547         * tree-streamer.c: Likewise.
4548         * tree-streamer-in.c: Likewise.
4549         * tree-streamer-out.c: Likewise.
4550         * tree-switch-conversion.c: Likewise.
4551         * tree-tailcall.c: Likewise.
4552         * tree-vect-data-refs.c: Likewise.
4553         * tree-vect-generic.c: Likewise.
4554         * tree-vect-loop.c: Likewise.
4555         * tree-vect-loop-manip.c: Likewise.
4556         * tree-vectorizer.c: Likewise.
4557         * tree-vect-patterns.c: Likewise.
4558         * tree-vect-slp.c: Likewise.
4559         * tree-vect-stmts.c: Likewise.
4560         * tree-vrp.c: Likewise.
4561         * tsan.c: Likewise.
4562         * ubsan.c: Likewise.
4563         * value-prof.c: Likewise.
4564         * varpool.c: Likewise.
4565         * var-tracking.c: Likewise.
4566         * vtable-verify.c: Likewise.
4567         * config/darwin.c: Likewise.
4568         * config/aarch64/aarch64-builtins.c: Likewise.
4569         * config/aarch64/aarch64.c: Likewise.
4570         * config/alpha/alpha.c: Likewise.
4571         * config/i386/i386.c: Likewise.
4572         * config/i386/winnt.c: Likewise.
4573         * config/ia64/ia64.c: Likewise.
4574         * config/m32c/m32c.c: Likewise.
4575         * config/mep/mep.c: Likewise.
4576         * config/mips/mips.c: Likewise.
4577         * config/rs6000/rs6000.c: Likewise.
4578         * config/s390/s390.c: Likewise.
4579         * config/sh/sh.c: Likewise.
4580         * config/sparc/sparc.c: Likewise.
4581         * config/spu/spu.c: Likewise.
4582         * config/stormy16/stormy16.c: Likewise.
4583         * config/tilegx/tilegx.c: Likewise.
4584         * config/tilepro/tilepro.c: Likewise.
4585         * config/xtensa/xtensa.c: Likewise.
4587 2013-11-22  Richard Earnshaw  <rearnsha@arm.com>
4589         PR target/59216
4590         * arm.md (negdi_extendsidi): Fix invalid split.
4592 2013-11-22  Alex Velenko  <Alex.Velenko@arm.com>
4594         * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
4595         (vmov_n_f64): Likewise.
4596         (vmov_n_p8): Likewise.
4597         (vmov_n_p16): Likewise.
4598         (vmov_n_s8): Likewise.
4599         (vmov_n_s16): Likewise.
4600         (vmov_n_s32): Likewise.
4601         (vmov_n_s64): Likewise.
4602         (vmov_n_u8): Likewise.
4603         (vmov_n_u16): Likewise.
4604         (vmov_n_u32): Likewise.
4605         (vmov_n_u64): Likewise.
4606         (vmovq_n_f32): Likewise.
4607         (vmovq_n_f64): Likewise.
4608         (vmovq_n_p8): Likewise.
4609         (vmovq_n_p16): Likewise.
4610         (vmovq_n_s8): Likewise.
4611         (vmovq_n_s16): Likewise.
4612         (vmovq_n_s32): Likewise.
4613         (vmovq_n_s64): Likewise.
4614         (vmovq_n_u8): Likewise.
4615         (vmovq_n_u16): Likewise.
4616         (vmovq_n_u32): Likewise.
4617         (vmovq_n_u64): Likewise.
4619 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
4621         * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
4622         vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
4623         (reduc_<sur>plus_<mode>): Factorize V2DI into this.
4624         (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
4625         and also change to float UNSPEC.
4626         (reduc_maxmin_uns>_<mode>): Remove V2DI.
4627         * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
4628         vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
4629         result access for big-endian.
4630         (__LANE0): New macro used to fix up lane access of 'across-lanes'
4631         intrinsics for big-endian.
4632         * config/aarch64/iterators.md (VDQV): Add V2DI.
4633         (VDQV_S): New.
4634         (vp): New mode attribute.
4636 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
4638         * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
4639         vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
4640         big-endian.
4642 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
4644         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
4645         for big-endian element order.
4646         (aarch64_simd_vec_setv2di): Likewise.
4647         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
4648         *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
4649         (vec_extract): Expand using aarch64_get_lane.
4650         * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
4652 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
4654         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
4655         and stores to be ABI compliant.
4657 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
4659         * input.h (input_line): Remove.
4660         (input_filename): Likewise.
4661         (in_system_header): Likewise.
4662         * tree.h (EXPR_LOC_OR_HERE): Remove.
4663         * config/bfin/bfin.c (output_file_start): Remove use of
4664         input_filename macro.
4665         * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
4666         * gimplify.c (internal_get_tmp_var): Likewise.
4667         EXPR_LOC_OR_HERE macro.
4668         (shortcut_cond_expr): Likewise.
4669         * tree-diagnostic.c (diagnostic_report_current_function): Remove
4670         use of input_filename macro.
4671         * tree.c (get_file_function_name): Likewise.
4673 2013-11-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
4675         * store-layout.c (place-field): Fix hwi test and accessor mismatch.
4677 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
4679         * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
4680         (same sized) elements even if the type of the CONSTRUCTOR has
4681         vector mode and target is a REG.
4683 2013-11-22  Richard Biener  <rguenther@suse.de>
4685         Revert
4686         2013-11-21  Richard Biener  <rguenther@suse.de>
4688         * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
4689         nb_iterations_upper_bound by one.
4691 2013-11-22  H.J. Lu  <hongjiu.lu@intel.com>
4693         * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
4694         for Silvermont.
4696         * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
4697         core-avx-i, core-avx2 and slm.
4699 2013-11-22  Eric Botcazou  <ebotcazou@adacore.com>
4701         * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
4703 2013-11-22  Richard Sandiford  <rdsandiford@googlemail.com>
4705         * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
4706         (stzx_24_<mode>): Likewise mra_operand.
4708 2013-11-22  Jeff Law  <law@redhat.com>
4710         * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
4711         (thread_block_1): Do not cancel jump threads which go from
4712         inside a loop, through the header, then back inside the loop.
4713         (bb_ends_with_multiway_branch): New function.
4714         (thread_through_all_blocks): Handle threading cases which start
4715         in a loop through the loop header to a point in the loop.
4717         * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
4718         jump thread path properly.
4720 2013-11-22  Trevor Saunders  <tsaunders@mozilla.com>
4722         * vec.h (auto_vec): New class.
4723         * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
4724         function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
4725         ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
4726         tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
4727         tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
4728         tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
4729         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
4730         tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
4731         appropriate instead of vec for local variables.
4733 2013-11-21  Teresa Johnson  <tejohnson@google.com>
4735         PR target/59233
4736         * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
4737         not understood by old_insns_match_p.
4739 2013-11-21  Bill Schmidt  <wschmidt@vnet.ibm.com>
4741         * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
4742         little endian change.
4743         (vec_pack_sfix_trunc_v2df): Likewise.
4744         (vec_pack_ufix_trunc_v2df): Likewise.
4745         * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
4746         double checking of endianness.
4748 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
4750         * tree-vect-generic.c (optimize_vector_constructor): New function.
4751         (expand_vector_operations_1): Call it.
4753 2013-11-21  Uros Bizjak  <ubizjak@gmail.com>
4755         * config/i386/i386.c (ix86_expand_special_args_builtin): Use
4756         ix86_zero_extend_to_Pmode where appropriate.
4757         (ix86_expand_builtin): Ditto.
4759 2013-11-21  Cary Coutant  <ccoutant@google.com>
4761         * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
4762         (add_linkage_name): Don't add linkage name for -g1.
4763         (decls_for_scope): Process subblocks for -g1.
4764         (dwarf2out_source_line): Output line tables for -g1.
4765         (dwarf2out_finish): Likewise.
4766         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
4767         unused scopes for -g1.
4768         * opts.c (common_handle_option): Handle -g same as -g2.
4769         * doc/invoke.texi: Update description for -g1.
4771 2013-11-21  Peter Bergner  <bergner@vnet.ibm.com>
4773         * doc/extend.texi: Document htm builtins.
4775 2013-11-21  Jeff Law  <law@redhat.com>
4777         PR tree-optimization/59221
4778         * tree-ssa-threadedge.c (thread_across_edge): Properly manage
4779         temporary equivalences when threading through joiner blocks.
4781 2013-11-21  Joseph Myers  <joseph@codesourcery.com>
4783         PR rtl-optimization/55950
4784         * real.c (real_sqrt): Remove function.
4785         * real.h (real_sqrt): Remove prototype.
4786         * simplify-rtx.c (simplify_const_unary_operation): Do not fold
4787         SQRT using real_sqrt.
4789 2013-11-21  Richard Biener  <rguenther@suse.de>
4791         PR tree-optimization/59058
4792         * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
4793         * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
4794         * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
4795         (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
4796         (NITERS_KNOWN_P): Fold into ...
4797         (LOOP_VINFO_NITERS_KNOWN_P): ... this.
4798         (LOOP_VINFO_PEELING_FOR_NITER): Add.
4799         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
4800         Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4801         (vect_do_peeling_for_alignment): Re-use precomputed niter
4802         instead of re-emitting it.
4803         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4804         Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4805         * tree-vect-loop.c (vect_get_loop_niters): Use
4806         number_of_latch_executions.
4807         (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
4808         (vect_analyze_loop_form): Simplify.
4809         (vect_analyze_loop_operations): Move epilogue peeling code ...
4810         (vect_analyze_loop_2): ... here and adjust it to compute
4811         LOOP_VINFO_PEELING_FOR_NITER.
4812         (vect_estimate_min_profitable_iters): Use
4813         LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4814         (vect_build_loop_niters): Emit on the preheader.
4815         (vect_generate_tmps_on_preheader): Likewise.
4816         (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
4817         of recomputing it.  Adjust.
4819 2013-11-21  Richard Biener  <rguenther@suse.de>
4821         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
4822         LOC_LINE): Remove wrappers and fix all users.
4823         (struct _loop_vec_info): Remove loop_line_number member.
4824         (LOOP_VINFO_LOC): Remove.
4825         * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
4826         tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
4827         and LOC_LINE.
4829 2013-11-21  Richard Biener  <rguenther@suse.de>
4831         * tree-ssa-forwprop.c (simplify_vce): New function.
4832         (ssa_forward_propagate_and_combine): Call it.
4834 2013-11-21  Richard Biener  <rguenther@suse.de>
4836         * tree-vect-loop-manip.c (vect_build_loop_niters,
4837         vect_generate_tmps_on_preheader): Move ...
4838         * tree-vect-loop.c (vect_build_loop_niters,
4839         vect_generate_tmps_on_preheader): ... here and simplify.
4840         (vect_transform_loop): Call them here and pass down results
4841         to consumers.
4842         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
4843         Get niter variables from caller.
4844         (vect_do_peeling_for_alignment): Likewise.
4845         * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
4846         (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
4847         Adjust prototypes.
4849 2013-11-21  Richard Biener  <rguenther@suse.de>
4851         * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
4852         nb_iterations_upper_bound by one.
4854 2013-11-21  Richard Biener  <rguenther@suse.de>
4856         PR tree-optimization/59058
4857         * tree-loop-distribution.c (struct partition_s): Add plus_one member.
4858         (build_size_arg_loc): Apply niter adjustment here.
4859         (generate_memset_builtin): Adjust.
4860         (generate_memcpy_builtin): Likewise.
4861         (classify_partition): Do not use number_of_exit_cond_executions
4862         but record whether niter needs to be adjusted.
4864 2013-11-21  Eric Botcazou  <ebotcazou@adacore.com>
4866         * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
4867         could throw.
4869 2013-11-21  Oleg Endo  <olegendo@gcc.gnu.org>
4871         PR target/53976
4872         * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
4873         * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
4874         * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
4875         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
4876         sh_optimize_sett_clrt pass.o to extra_objs.
4878 2013-11-20  David Malcolm  <dmalcolm@redhat.com>
4880         * cfg.c (dump_edge_info): Remove redundant comment.
4881         * cfgcleanup.c (outgoing_edges_match): Reword reference to
4882         EXIT_BLOCK_PTR in comment.
4883         (try_optimize_cfg): Likewise.
4884         * cfgrtl.c (last_bb_in_partition): Likewise.
4885         * cgraph.c (cgraph_node_cannot_return): Likewise.
4886         * function.c (thread_prologue_and_epilogue_insns): Likewise.
4887         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
4888         * ipa-split.c (consider_split): Likewise.
4889         * profile.c (find_spanning_tree): Likewise.
4890         * sched-int.h (common_sched_info_def.add_block): Likewise.
4891         * dominance.c (calc_dfs_tree_nonrec): Reword references in
4892         comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
4893         * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
4894         in comments to now removed ENTRY_BLOCK_PTR macro.
4895         (tree_forwarder_block_p): Reword reference in comment to
4896         EXIT_BLOCK_PTR.
4897         * tree-inline.c (copy_cfg_body): Reword references in comments to
4898         now removed ENTRY_BLOCK_PTR macro.
4899         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
4900         * tree-scalar-evolution.h ( block_before_loop): Likewise.  Add
4901         a comma to the comment to clarify the meaning.
4903 2013-11-20  Andrew MacLeod  <amacleod@redhat.com>
4905         * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
4906         Move to gimplify.c.
4907         (free_gimplify_stack): Add prototype.
4908         * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
4909         (struct gimplify_ctx): Relocate here.
4910         (gimplify_ctxp): Make static.
4911         (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New.  Manage a
4912         list of struct gimplify_ctx.
4913         (push_gimplify_context): Add default parameters and allocate a struct
4914         from the pool.
4915         (pop_gimplify_context): Free a struct back to the pool.
4916         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
4917         gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
4918         use a local 'struct gimplify_ctx'.
4919         * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
4920         * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
4921         Likewise.
4922         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
4923         lower_omp_ordered, lower_omp_critical, lower_omp_for,
4924         create_task_copyfn, lower_omp_taskreg, lower_omp_target,
4925         lower_omp_teams, execute_lower_omp): Likewise.
4926         * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
4927         * tree-inline.c (optimize_inline_calls): Likewise.
4929 2013-11-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4931         * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
4932         (vsx_extract_<mode>): Likewise.
4933         (*vsx_extract_<mode>_one_le): New LE variant on
4934         *vsx_extract_<mode>_zero.
4935         (vsx_extract_v4sf): Adjust for little endian.
4937 2013-11-20  Vladimir Makarov  <vmakarov@redhat.com>
4939         PR rtl-optimization/59133
4940         * lra.c (expand_reg_data): Add new argument.  Set up ALL_REGS for
4941         new pseudos.
4942         (lra_create_new_reg_with_unique_value): Pass new argument value.
4943         (lra_emit_add, lra_emit_move): Ditto.
4944         * lra-constraints.c (in_class_p): Add check for move for a new insn.
4945         (change_class): Rename to lra_change_class.  Move to lra-int.h.
4946         (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
4947         change_class.
4948         (process_addr_reg, process_addr): Ditto.
4949         (curr_insn_transform): Ditto.  Add check on old pseudo for
4950         optional reload.
4951         * lra-int.h (lra_get_regno_hard_regno): Move below.
4952         (lra_change_class): Renamed change_class from lra.c.
4954 2013-11-20  David Malcolm  <dmalcolm@redhat.com>
4956         * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
4957         the children of a NULL pointer.
4959 2013-11-20  Robert Suchanek  <Robert.Suchanek@imgtec.com>
4961         * lra.c (lra): Set lra_in_progress before check_rtl call.
4962         * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
4963         adding clobber regs when LRA is running.
4965 2013-11-20  Maciej W. Rozycki  <macro@codesourcery.com>
4967         * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
4968         restriction for ISA_MIPS32R2.
4969         (ISA_HAS_LXC1_SXC1): New macro.
4970         (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
4971         (ISA_HAS_NMADD4_NMSUB4): Likewise.
4972         (ISA_HAS_FP_RECIP_RSQRT): Likewise.
4973         (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
4974         * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
4975         ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
4976         (*<ANYF:storex>_<P:mode>): Likewise.
4978 2013-11-20  Maciej W. Rozycki  <macro@codesourcery.com>
4980         * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
4981         * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
4982         ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
4983         * config/mips/mips.md (recip_condition): Remove mode attribute.
4984         (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
4985         <recip_condition>.
4986         (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
4988 2013-11-20  Eric Botcazou  <ebotcazou@adacore.com>
4990         PR target/59207
4991         * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
4992         Make sure neg2_ovf is set before being used.
4994 2013-11-20  Basile Starynkevitch  <basile@starynkevitch.net>
4996         * plugin.def: Add comment about register_callback and
4997         invoke_plugin_callbacks_full.
4999         * plugin.c (register_callback, invoke_plugin_callbacks_full):
5000         Handle PLUGIN_INCLUDE_FILE event.
5002 2013-11-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5004         * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
5005         allow subregs of TDmode in FPRs of smaller size in little-endian.
5006         (rs6000_split_multireg_move): When splitting an access to TDmode
5007         in FPRs, do not use simplify_gen_subreg.
5009 2013-11-20  Joseph Myers  <joseph@codesourcery.com>
5011         PR middle-end/21718
5012         * real.c: Remove comment about decimal string conversion and
5013         rounding errors.
5014         (real_from_string): Use MPFR to convert nonzero decimal constant
5015         to REAL_VALUE_TYPE.
5017 2013-11-20  Eric Botcazou  <ebotcazou@adacore.com>
5019         * config/arm/arm.c (arm_dwarf_register_span): Take into account the
5020         endianness of the D registers for the legacy encodings.
5022 2013-11-20  Richard Earnshaw  <rearnsha@arm.com>
5024         PR rtl-optimization/54300
5025         * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
5026         outputs in a single-set are killed from the value chains.
5028 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
5030         * cgraph.h (varpool_node): Add need_bounds_init field.
5031         * lto-cgraph.c (lto_output_varpool_node): Output
5032         need_bounds_init value.
5033         (input_varpool_node): Read need_bounds_init value.
5034         * varpool.c (dump_varpool_node): Dump need_bounds_init field.
5036 2013-11-20  Jan Hubicka  <jh@suse.cz>
5038         * opts.c (finish_options): Imply -ffat-lto-objects with
5039         -fno-use-linker-plugin.
5040         * common.opt (fuse-linker-plugin): Add var.
5042 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
5044         * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
5045         * dwarf2out.c (gen_subprogram_die): Ignore bound args.
5046         (gen_type_die_with_usage): Skip pointer bounds.
5047         (dwarf2out_global_decl): Likewise.
5049 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
5051         * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
5052         from all insns.
5054 2013-11-20  Yuri Rumyantsev  <ysrumyan@gmail.com>
5056         PR target/57756
5057         * config/i386/i386.c (ix86_option_override_internal): Add missed
5058         argument prefix for 'ix86_fpmath'.
5059         * config/i386/ssemath.h: Add missed definition of
5060         TARGET_FPMATH_DEFAULT_P macros.
5062 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
5063             Mike Stump  <mikestump@comcast.net>
5064             Richard Sandiford  <rdsandiford@googlemail.com>
5066         * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
5067         instead of TREE_INT_CST_LOW, in cases where there is a protecting
5068         tree_fits_shwi_p or tree_fits_uhwi_p.
5069         * builtins.c (fold_builtin_powi): Likewise.
5070         * config/epiphany/epiphany.c (epiphany_special_round_type_align):
5071         Likewise.
5072         * dbxout.c (dbxout_symbol): Likewise.
5073         * expr.c (expand_expr_real_1): Likewise.
5074         * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
5075         (fold_binary_loc): Likewise.
5076         * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
5077         * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
5078         * omp-low.c (lower_omp_for_lastprivate): Likewise.
5079         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
5080         * stor-layout.c (compute_record_mode): Likewise.
5081         * tree-cfg.c (verify_expr): Likewise.
5082         * tree-dfa.c (get_ref_base_and_extent): Likewise.
5083         * tree-pretty-print.c (dump_array_domain): Likewise.
5084         * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
5085         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
5086         * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
5087         * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
5088         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
5089         * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
5090         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
5091         (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
5092         (vn_reference_lookup_3, simplify_binary_expression): Likewise.
5093         * tree-ssa-structalias.c (bitpos_of_field): Likewise.
5094         (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
5095         (create_variable_info_for_1): Likewise.
5096         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
5097         (vect_verify_datarefs_alignment): Likewise.
5098         (vect_analyze_data_ref_accesses): Likewise.
5099         (vect_prune_runtime_alias_test_list): Likewise.
5100         * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
5102 2013-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
5104         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
5105         overflow.  Use tree_to_shwi.
5107 2013-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
5109         * fold-const.c (fold_binary_loc): Use unsigned rather than signed
5110         HOST_WIDE_INTs when folding (x >> c) << c.
5112 2013-11-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5113             Dominik Vogt  <vogt@linux.vnet.ibm.com>
5115         * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
5116         int comparisons with an out of range condition code.
5117         (s390_optimize_nonescaping_tx): Skip empty BBs.
5118         Generate the new tbegin RTX when removing the FPR clobbers (with
5119         two SETs).
5120         (s390_expand_tbegin): Fix the retry loop counter.  Copy CC to the
5121         result before doing the retry calculations.
5122         (s390_init_builtins): Make tbegin "returns_twice" and tabort
5123         "noreturn".
5124         * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
5125         the TDB setting part of an tbegin.
5126         ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
5127         ("tx_assist"): Set unused argument to an immediate zero instead of
5128         loading zero into a GPR and pass it as argument.
5129         * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
5130         Remove inline and related attributes.
5131         (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
5132         (__TM_is_illegal, __TM_is_footprint_exceeded)
5133         (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
5135 2013-11-20  Richard Biener  <rguenther@suse.de>
5137         PR lto/59035
5138         * lto-opts.c (lto_write_options): Write defaults only if
5139         they were not explicitely specified.  Also write
5140         -ffp-contract default.
5141         * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
5142         conservatively.
5143         (run_gcc): Pass through -ffp-contract.
5145 2013-11-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5147         * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
5149 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
5151         * config/aarch64/aarch64-builtins.c
5152         (aarch64_simd_itype): Remove.
5153         (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
5154         (VAR1): Use qualifiers.
5155         (aarch64_build_scalar_type): New.
5156         (aarch64_build_vector_type): Likewise.
5157         (aarch64_build_type): Likewise.
5158         (aarch64_init_simd_builtins): Refactor, remove special cases,
5159         consolidate main loop.
5160         (aarch64_simd_expand_args): Likewise.
5162 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
5164         PR c/53001
5165         * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
5167 2013-11-19  Miro Kropacek  <miro.kropacek@gmail.com>
5169         * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
5171 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
5173         * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
5174         to "vec<>" instances.
5175         (build_pretty_printer): Register the vec<>* prettyprinter.
5177 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
5179         * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
5180         (GdbSubprinter.handles_type): New.
5181         (GdbSubprinterTypeList): New subclass of GdbSubprinter.
5182         (GdbSubprinterRegex): New subclass of GdbSubprinter.
5183         (GdbPrettyPrinters.add_printer): Remove in favor of...
5184         (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
5185         (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
5186         (GdbPrettyPrinters.__call__): Update search for subprinter
5187         to use handles_type method.
5188         (build_pretty_printer): Update registration of subprinters to
5189         use the new API above, supporting multiple spelling of each type,
5190         and allowing for future regex-based subprinters.
5192 2013-11-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5194         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
5195         V16QI vector splat case for little endian.
5197 2013-11-19  Jeff Law  <law@redhat.com>
5199         * tree-ssa-threadedge.c (thread_across_edge): After threading
5200         through a joiner, allow threading a normal block requiring duplication.
5202         * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
5203         jump threading requests that would muck up the loop structures.
5205         * tree-ssa-threadupdate.c: Fix trailing whitespace.
5206         * tree-ssa-threadupdate.h: Likewise.
5208 2013-11-19  Mike Stump  <mikestump@comcast.net>
5210         * gdbinit.in: Add pmz to print out mpz values.
5212 2013-11-20  Jan Hubicka  <jh@suse.cz>
5214         * common.opt (ffat-lto-objects): Disable by default.
5215         * doc/invoke.texi (fat-lto-objects): Update documentation.
5216         * opts.c: Enable fat-lto-objects on lto plugin disable setups.
5218 2013-11-19  Martin Jambor  <mjambor@suse.cz>
5220         PR rtl-optimization/59099
5221         * ira.c (find_moveable_pseudos): Put back various analyses from ira()
5222         here.
5223         (ira): Move init_reg_equiv and call to
5224         split_live_ranges_for_shrink_wrap up, remove analyses around call
5225         to find_moveable_pseudos.
5227 2013-11-20  Alan Modra  <amodra@gmail.com>
5229         * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
5230         * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
5231         to strict alignment on older processors when little-endian.
5232         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
5233         for ELFv2.
5235 2013-11-19  Teresa Johnson  <tejohnson@google.com>
5237         * common/config/i386/i386-common.c: Enable
5238         -freorder-blocks-and-partition at -O2 and up for x86.
5239         * doc/invoke.texi: Update -freorder-blocks-and-partition default.
5240         * opts.c (finish_options): Only warn if
5241         -freorder-blocks-and-partition was set on command line.
5243 2013-11-19  Sriraman Tallam  <tmsriram@google.com>
5245         * final.c (final_scan_insn): Emit a label for the split
5246         cold function part.  Label name is formed by suffixing
5247         the original function name with "cold".
5249 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
5251         * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
5252         (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
5253         (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
5254         (EXIT_BLOCK_PTR_FOR_FN): ...this.
5255         (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
5256         cfun be explicit.
5257         (EXIT_BLOCK_PTR): Likewise.
5258         (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
5259         (FOR_ALL_BB_FN): Update for renaming of
5260         "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
5262         * cfg.c (init_flow): Likewise.
5263         (check_bb_profile): Likewise.
5264         * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
5265         * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
5266         * cfghooks.c (account_profile_record): Likewise.
5267         * cfgloop.c (init_loops_structure): Likewise.
5268         * cgraphbuild.c (record_eh_tables): Likewise.
5269         (compute_call_stmt_bb_frequency): Likewise.
5270         * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
5271         * lto-streamer-in.c (input_cfg): Likewise.
5272         * predict.c (maybe_hot_frequency_p): Likewise.
5273         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
5274         * tree-inline.c (initialize_cfun): Likewise.
5275         (copy_cfg_body): Likewise.
5276         (copy_body): Likewise.
5277         (tree_function_versioning): Likewise.
5279         * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
5280         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5281         (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
5282         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
5283         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5284         (connect_traces): Likewise.
5285         (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
5286         (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
5287         (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
5288         macro.
5289         (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
5290         EXIT_BLOCK_PTR.
5291         (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
5292         (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
5293         (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
5294         (rotate_loop): Likewise.
5295         * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
5296         * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
5297         EXIT_BLOCK_PTR.
5298         (alloc_aux_for_edges): Likewise.
5299         (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
5300         (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
5301         EXIT_BLOCK_PTR.
5302         (compact_blocks): Likewise.
5303         (clear_edges): Likewise.
5304         * cfganal.c (single_pred_before_succ_order): Remove usage of
5305         ENTRY_BLOCK_PTR macro.
5306         (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
5307         (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
5308         (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
5309         (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
5310         (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
5311         EXIT_BLOCK_PTR.
5312         (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
5313         (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
5314         EXIT_BLOCK_PTR.
5315         (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
5316         (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
5317         (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
5318         (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5319         (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
5320         (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
5321         EXIT_BLOCK_PTR.
5322         (print_edge_list): Likewise.
5323         (create_edge_list): Likewise.
5324         (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
5325         (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
5326         EXIT_BLOCK_PTR.
5327         * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
5328         macro.
5329         (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
5330         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5331         * cfgcleanup.c (delete_unreachable_blocks): Likewise.
5332         (try_optimize_cfg): Likewise.
5333         (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
5334         (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
5335         (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
5336         (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
5337         (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
5338         (try_forward_edges): Likewise.
5339         (try_simplify_condjump): Likewise.
5340         * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
5341         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5342         (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
5343         (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
5344         EXIT_BLOCK_PTR.
5345         (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
5346         (expand_gimple_tailcall): Likewise.
5347         * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
5348         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5349         (tidy_fallthru_edges): Likewise.
5350         (verify_flow_info): Likewise.
5351         * cfgloop.c (flow_bb_inside_loop_p): Likewise.
5352         (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
5353         (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
5354         (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
5355         (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
5356         (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
5357         (get_loop_body_in_dom_order): Likewise.
5358         (get_loop_body): Likewise.
5359         * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
5360         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5361         * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
5362         macro.
5363         (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
5364         (fix_bb_placement): Likewise.
5365         * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
5366         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5367         (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
5368         (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
5369         EXIT_BLOCK_PTR.
5370         (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
5371         (cfg_layout_can_merge_blocks_p): Remove uses of macros:
5372         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5373         (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
5374         macro.
5375         (fixup_fallthru_exit_predecessor): Remove uses of macros:
5376         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5377         (fixup_reorder_chain): Likewise.
5378         (relink_block_chain): Likewise.
5379         (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
5380         (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
5381         (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
5382         (force_one_exit_fallthru): Likewise.
5383         (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
5384         EXIT_BLOCK_PTR.
5385         (rtl_verify_edges): Likewise.
5386         (commit_edge_insertions): Likewise.
5387         (commit_one_edge_insertion): Likewise.
5388         (rtl_split_edge): Likewise.
5389         (force_nonfallthru_and_redirect): Likewise.
5390         (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
5391         (skip_insns_after_block): Likewise.
5392         (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
5393         EXIT_BLOCK_PTR.
5394         (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
5395         (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
5396         EXIT_BLOCK_PTR.
5397         (contains_no_active_insn_p): Likewise.
5398         (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
5399         (entry_of_function): Likewise.
5400         (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
5401         (fixup_new_cold_bb): Likewise.
5402         (patch_jump_insn): Likewise.
5403         (try_redirect_by_replacing_jump): Likewise.
5404         (block_label): Likewise.
5405         (could_fall_through): Likewise.
5406         (can_fallthru): Likewise.
5407         * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
5408         ENTRY_BLOCK_PTR macro.
5409         (rebuild_cgraph_edges): Likewise.
5410         * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
5411         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5412         (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
5413         * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
5414         (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
5415         (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
5416         (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
5417         (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
5418         macro.
5419         (reg_nonzero_bits_for_combine): Likewise.
5420         (set_nonzero_bits_and_sign_copies): Likewise.
5421         (combine_instructions): Likewise.
5422         * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
5423         EXIT_BLOCK_PTR.
5424         (bypass_conditional_jumps): Likewise.
5425         (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
5426         (find_implicit_sets): Likewise.
5427         (cprop_jump): Likewise.
5428         * cse.c (cse_cc_succs): Likewise.
5429         (cse_find_path): Likewise.
5430         * df-problems.c (df_lr_confluence_0): Likewise.
5431         * df-scan.c (df_entry_block_defs_collect): Remove usage of
5432         ENTRY_BLOCK_PTR macro.
5433         (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
5434         * dominance.c (iterate_fix_dominators): Remove usage of
5435         ENTRY_BLOCK_PTR macro.
5436         (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5437         (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
5438         (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
5439         EXIT_BLOCK_PTR.
5440         (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
5441         macro.
5442         (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
5443         EXIT_BLOCK_PTR.
5444         * domwalk.c (cmp_bb_postorder): Likewise.
5445         * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
5446         * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
5447         macro.
5448         (sjlj_emit_function_enter): Likewise.
5449         * final.c (compute_alignments): Likewise.
5450         * function.c (thread_prologue_and_epilogue_insns): Remove uses of
5451         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5452         (reposition_prologue_and_epilogue_notes): Remove usage of
5453         EXIT_BLOCK_PTR macro.
5454         (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
5455         EXIT_BLOCK_PTR.
5456         (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
5457         (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
5458         * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
5459         (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
5460         (compute_code_hoist_vbeinout): Likewise.
5461         (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
5462         (pre_expr_reaches_here_p_work): Likewise.
5463         * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
5464         (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
5465         EXIT_BLOCK_PTR.
5466         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
5467         ENTRY_BLOCK_PTR macro.
5468         * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
5469         macro.
5470         * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
5471         ENTRY_BLOCK_PTR macro.
5472         * graphite-scop-detection.c (build_scops): Likewise.
5473         (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
5474         (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
5475         * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
5476         macro.
5477         (unlink_bb_notes): Likewise.
5478         (create_check_block_twin): Likewise.
5479         (init_before_recovery): Likewise.
5480         (sched_extend_bb): Likewise.
5481         (priority): Likewise.
5482         * hw-doloop.c (reorder_loops): Likewise.
5483         (discover_loop): Likewise.
5484         * ifcvt.c (dead_or_predicable): Remove uses of macros:
5485         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5486         (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
5487         (block_has_only_trap): Likewise.
5488         (cond_exec_find_if_block): Likewise.
5489         (merge_if_block): Likewise.
5490         * ipa-inline-analysis.c (param_change_prob): Remove usage of
5491         ENTRY_BLOCK_PTR macro.
5492         (record_modified): Likewise.
5493         * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
5494         EXIT_BLOCK_PTR macro.
5495         (local_pure_const): Likewise.
5496         * ipa-split.c (split_function): Remove uses of macros:
5497         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5498         (find_split_points): Likewise.
5499         (consider_split): Likewise.
5500         (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
5501         (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
5502         * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
5503         * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
5504         * ira-emit.c (entered_from_non_parent_p): Remove usage of
5505         ENTRY_BLOCK_PTR macro.
5506         (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
5507         * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
5508         * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
5509         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5510         * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
5511         macro.
5512         (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
5513         EXIT_BLOCK_PTR.
5514         (compute_farthest): Likewise.
5515         (compute_available): Likewise.
5516         (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
5517         (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
5518         EXIT_BLOCK_PTR.
5519         (compute_earliest): Likewise.
5520         (compute_antinout_edge): Likewise.
5521         * loop-iv.c (simplify_using_initial_values): Remove usage of
5522         ENTRY_BLOCK_PTR macro.
5523         * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
5524         macro.
5525         * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
5526         macro.
5527         * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
5528         macro.
5529         * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
5530         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5531         * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
5532         macro.
5533         * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
5534         macro.
5535         * lto-streamer-out.c (output_cfg): Likewise.
5536         * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
5537         EXIT_BLOCK_PTR.
5538         (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
5539         * mode-switching.c (optimize_mode_switching): Likewise.
5540         (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
5541         * modulo-sched.c (rest_of_handle_sms): Likewise.
5542         (canon_loop): Likewise.
5543         * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
5544         * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
5545         of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5546         * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
5547         macro.
5548         (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
5549         (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
5550         (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
5551         (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
5552         (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
5553         (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
5554         (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
5555         (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
5556         (gimple_predict_edge): Likewise.
5557         (probably_never_executed): Likewise.
5558         * profile.c (find_spanning_tree): Remove uses of macros:
5559         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5560         (branch_prob): Likewise.
5561         (compute_branch_probabilities): Likewise.
5562         (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
5563         (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
5564         (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
5565         (set_bb_counts): Likewise.
5566         (correct_negative_edge_counts): Likewise.
5567         (get_exec_counts): Likewise.
5568         (instrument_values): Likewise.
5569         (instrument_edges): Likewise.
5570         * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
5571         EXIT_BLOCK_PTR.
5572         (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
5573         (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
5574         (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
5575         (reg_to_stack): Likewise.
5576         * regs.h (REG_N_SETS): Likewise.
5577         * reload.c (find_dummy_reload): Likewise.
5578         (combine_reloads): Likewise.
5579         (push_reload): Likewise.
5580         * reload1.c (has_nonexceptional_receiver): Remove usage of
5581         EXIT_BLOCK_PTR macro.
5582         * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
5583         macro.
5584         (find_basic_block): Likewise.
5585         * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
5586         (schedule_ebbs): Likewise.
5587         * sched-int.h (sel_sched_p): Likewise.
5588         * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
5589         macro.
5590         (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
5591         (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
5592         EXIT_BLOCK_PTR.
5593         (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
5594         (extend_rgns): Likewise.
5595         (find_single_block_region): Likewise.
5596         * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
5597         ENTRY_BLOCK_PTR macro.
5598         (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
5599         (sel_create_recovery_block): Likewise.
5600         (bb_ends_ebb_p): Likewise.
5601         (sel_bb_end): Likewise.
5602         (sel_bb_head): Likewise.
5603         (free_lv_sets): Likewise.
5604         (init_lv_sets): Likewise.
5605         (tidy_control_flow): Likewise.
5606         (maybe_tidy_empty_bb): Likewise.
5607         * sel-sched-ir.h (_succ_iter_cond): Likewise.
5608         (_succ_iter_start): Likewise.
5609         (sel_bb_empty_or_nop_p): Likewise.
5610         (get_loop_exit_edges_unique_dests): Likewise.
5611         (inner_loop_header_p): Likewise.
5612         * sel-sched.c (create_block_for_bookkeeping): Likewise.
5613         (find_block_for_bookkeeping): Likewise.
5614         * store-motion.c (remove_reachable_equiv_notes): Likewise.
5615         (insert_store): Likewise.
5616         * trans-mem.c (ipa_tm_transform_clone): Remove usage of
5617         ENTRY_BLOCK_PTR macro.
5618         (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
5619         (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
5620         (gate_tm_init): Likewise.
5621         (tm_region_init): Likewise.
5622         * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
5623         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5624         (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
5625         (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
5626         EXIT_BLOCK_PTR.
5627         (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
5628         (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
5629         EXIT_BLOCK_PTR.
5630         (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
5631         macro.
5632         (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
5633         EXIT_BLOCK_PTR.
5634         (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
5635         macro.
5636         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5637         (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
5638         (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
5639         (build_gimple_cfg): Likewise.
5640         (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
5641         (gimple_can_merge_blocks_p): Likewise.
5642         * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
5643         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5644         * tree-complex.c (update_parameter_components): Remove usage of
5645         ENTRY_BLOCK_PTR macro.
5646         * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
5647         EXIT_BLOCK_PTR macro.
5648         * tree-inline.c (tree_function_versioning): Remove uses of macros:
5649         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5650         (delete_unreachable_blocks_update_callgraph): Likewise.
5651         (initialize_cfun): Likewise.
5652         (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
5653         (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
5654         (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
5655         * tree-into-ssa.c (update_ssa): Likewise.
5656         (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
5657         (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
5658         (rewrite_into_ssa): Likewise.
5659         (rewrite_debug_stmt_uses): Likewise.
5660         * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
5661         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5662         * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
5663         ENTRY_BLOCK_PTR macro.
5664         * tree-scalar-evolution.h (block_before_loop): Likewise.
5665         * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
5666         (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
5667         EXIT_BLOCK_PTR.
5668         (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
5669         macro.
5670         (propagate_dereference_distances): Remove uses of macros:
5671         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5672         (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
5673         macro.
5674         * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
5675         (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
5676         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
5677         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
5678         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5679         (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
5680         (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
5681         (mark_control_dependent_edges_necessary): Remove uses of macros:
5682         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5683         * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
5684         ENTRY_BLOCK_PTR macro.
5685         (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
5686         * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
5687         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5688         (calculate_live_on_exit): Likewise.
5689         (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
5690         (loe_visit_block): Likewise.
5691         * tree-ssa-live.h (live_on_exit): Remove uses of macros:
5692         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5693         (live_on_entry): Likewise.
5694         * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
5695         EXIT_BLOCK_PTR macro.
5696         * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
5697         ENTRY_BLOCK_PTR macro.
5698         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
5699         (bound_difference): Likewise.
5700         * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
5701         of EXIT_BLOCK_PTR macro.
5702         * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
5703         of ENTRY_BLOCK_PTR macro.
5704         * tree-ssa-math-opts.c (register_division_in): Likewise.
5705         * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
5706         * tree-ssa-pre.c (compute_avail): Likewise.
5707         (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
5708         (insert): Remove usage of ENTRY_BLOCK_PTR macro.
5709         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
5710         (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
5711         (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
5712         EXIT_BLOCK_PTR.
5713         (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
5714         * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
5715         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5716         (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
5717         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
5718         (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
5719         * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
5720         (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
5721         (find_pdom): Likewise.
5722         (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
5723         * tree-stdarg.c (reachable_at_most_once): Likewise.
5724         * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
5725         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5726         (eliminate_tail_call): Likewise.
5727         * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
5728         macro.
5729         (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
5730         * var-tracking.c (vt_initialize): Remove uses of macros:
5731         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5732         (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
5733         (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
5734         (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
5735         EXIT_BLOCK_PTR.
5736         * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
5737         macro.
5738         * config/bfin/bfin.c (hwloop_optimize): Likewise.
5739         * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
5740         of EXIT_BLOCK_PTR macro.
5741         * config/arm/arm.c (require_pic_register): Remove usage of
5742         ENTRY_BLOCK_PTR macro.
5743         (arm_r3_live_at_start_p): Likewise.
5744         (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
5745         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
5746         * config/frv/frv.c (frv_optimize_membar_global): Likewise.
5747         * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
5748         ENTRY_BLOCK_PTR macro.
5749         * config/i386/i386.c (ix86_count_insn): Likewise.
5750         (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
5751         (ix86_pad_short_function): Likewise.
5752         (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
5753         (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
5754         (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
5755         (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
5756         (ix86_expand_epilogue): Likewise.
5757         * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
5758         (ia64_expand_prologue): Likewise.
5760 2013-11-19  Catherine Moore  <clm@codesourcery.com>
5762         * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
5763         * config/mips/mips.opt (mfix-rm7000): New option.
5764         * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
5765         * config/mips/mips.c (mips_reorg_process_insns): Disable
5766         noreorder for TARGET_FIX_RM7000.
5768 2013-11-19  Oleg Endo  <olegendo@gcc.gnu.org>
5770         * config/sh/sh-c.c: Fix typo in include of file attribs.h.
5772 2013-11-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5774         * config/arm/arm.c (arm_new_rtx_costs):
5775         Handle narrow mode add-shifts properly.
5776         * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
5777         * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
5778         Declare extern.
5780 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
5782         * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
5784 2013-11-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5786         * config/rs6000/vector.md ("mov<mode>"): Do not call
5787         rs6000_emit_le_vsx_move to move into or out of GPRs.
5788         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
5789         source and destination are not GPR hard regs.
5791 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
5793         * basic-block.h (n_edges_for_function): Rename macro to...
5794         (n_edges_for_fn): ...this.
5795         (n_edges): Eliminate macro as work towards making uses of
5796         cfun be explicit.
5798         * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
5799         to "n_edges_for_fn".
5801         * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
5802         (clear_edges): Likewise.
5803         (free_edge): Likewise.
5804         * cfghooks.c (dump_flow_info): Likewise.
5805         * cprop.c (is_too_expensive): Likewise.
5806         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
5807         * gcse.c (is_too_expensive): Likewise.
5808         (prune_insertions_deletions): Likewise.
5809         * mcf.c (create_fixup_graph): Likewise.
5810         * sched-rgn.c (haifa_find_rgns): Likewise.
5811         * tree-cfg.c (gimple_dump_cfg): Likewise.
5812         * var-tracking.c (variable_tracking_main_1): Likewise.
5814 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5816         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
5817         length lines.
5819 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5821         * config/aarch64/aarch64.md
5822         (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
5824 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5826         * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
5828 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
5830         * varasm.c (align_variable): Give error instead of warning for
5831         unsupported alignment.
5832         (assemble_noswitch_variable): Likewise.
5834 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
5836         * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
5837         cb_file_change.
5839 2013-11-19  Peter Bergner  <bergner@vnet.ibm.com>
5841         * loop-doloop.c (doloop_optimize_loops): Remove unused
5842         loop iterator argument from FOR_EACH_LOOP.
5844 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
5846         Convert gimple types from a union to C++ inheritance.
5847         * Makefile.in (GIMPLE_H): Add dep on is-a.h.
5848         * coretypes.h (union gimple_statement_d): Remove declaration.
5849         (gimple): Convert from being a "union gimple_statement_d *"
5850         to a "struct gimple_statement_base *".
5851         (const_gimple): Likewise (with "const").
5852         * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
5853         (ggc_alloc_cleared_gimple_statement_stat): ...this.
5854         * gimple-pretty-print.c (debug): Change parameter from a
5855         "gimple_statement_d &" to a "gimple_statement_base &".
5856         (debug): Change parameter from a "gimple_statement_d *" to
5857         a "gimple_statement_base *".
5858         * gimple-pretty-print.h (debug): Update declarations as above.
5859         * gimple.c (gimple_alloc_stat): Update for renaming of
5860         ggc_alloc_cleared_gimple_statement_d_stat to
5861         ggc_alloc_cleared_gimple_statement_stat.
5862         * gimple.h: Include "is-a.h" for use by is_a_helper
5863         specializations in followup autogenerated patch.
5864         (struct gimple statement_base): Make this type usable as a base
5865         class by adding "desc", "tag" and "variable_size" to GTY, thus
5866         using opting-in to gengtype's support for simple inheritance.
5867         (gimple_statement_with_ops_base): Convert to a subclass of
5868         gimple_statement_base, dropping initial "gsbase" field.  Note that
5869         this type is abstract, with no GSS_ value, and thus no GTY tag value.
5870         (gimple_statement_with_ops): Convert to a subclass of
5871         gimple_statement_with_ops_base, dropping initial "opbase" field.
5872         Add tag value to GTY marking.  Update marking of op field to
5873         reflect how num_ops field is accessed via inheritance.
5874         (gimple_statement_with_memory_ops_base): Convert to a subclass of
5875         gimple_statement_with_ops_base, dropping initial "opbase" field.
5876         Add tag value to GTY marking.
5877         (gimple_statement_with_memory_ops): Convert to a subclass of
5878         public gimple_statement_with_memory_ops_base, dropping initial
5879         "membase" field.  Add tag value to GTY marking.  Update marking
5880         of op field to reflect how num_ops field is accessed via inheritance.
5881         (gimple_statement_call): Analogous changes that also update the
5882         marking of the "u" union.
5883         (gimple_statement_omp): Convert to a subclass of
5884         gimple_statement_base, dropping initial "gsbase" field, adding
5885         tag value to GTY marking.
5886         (gimple_statement_bind): Likewise.
5887         (gimple_statement_catch): Likewise.
5888         (gimple_statement_eh_filter): Likewise.
5889         (gimple_statement_eh_else): Likewise.
5890         (gimple_statement_eh_mnt): Likewise.
5891         (gimple_statement_phi): Likewise.
5892         (gimple_statement_eh_ctrl): Likewise.
5893         (gimple_statement_try): Likewise.
5894         (gimple_statement_wce): Likewise.
5895         (gimple_statement_asm): Convert to a subclass of
5896         gimple_statement_with_memory_ops_base, dropping initial
5897         "membase" field, adding tag value to GTY marking, and updating
5898         marking of op field.
5899         (gimple_statement_omp_critical): Convert to a subclass of
5900         gimple_statement_omp, dropping initial "omp" field, adding tag
5901         value to GTY marking.
5902         (gimple_statement_omp_for): Likewise.
5903         (gimple_statement_omp_parallel): Likewise.
5904         (gimple_statement_omp_task): Convert to a subclass of
5905         gimple_statement_omp_parallel, dropping initial "par" field,
5906         adding tag value to GTY marking.
5907         (gimple_statement_omp_sections): Convert to a subclass of
5908         gimple_statement_omp, dropping initial "omp" field, adding
5909         tag value to GTY marking.
5910         (gimple_statement_omp_continue): Convert to a subclass of
5911         gimple_statement_base, dropping initial "gsbase" field, adding
5912         tag value to GTY marking.
5913         (gimple_statement_omp_single): Convert to a subclass of
5914         gimple_statement_omp, dropping initial "omp" field, adding
5915         tag value to GTY marking.
5916         (gimple_statement_omp_atomic_load): Convert to a subclass of
5917         gimple_statement_base, dropping initial "gsbase" field, adding
5918         tag value to GTY marking.
5919         (gimple_statement_omp_atomic_store): Convert to a subclass of
5920         gimple_statement_base, dropping initial "gsbase" field, adding
5921         tag value to GTY marking.
5922         (gimple_statement_transaction): Convert to a subclass of
5923         gimple_statement_with_memory_ops_base, dropping initial "gsbase"
5924         field, adding tag value to GTY marking.
5925         (union gimple_statement_d): Remove.
5926         * system.h (CONST_CAST_GIMPLE): Update to use
5927         "struct gimple_statement_base *" rather than
5928         "union gimple_statement_d *".
5929         * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
5930         gimple_statement_d to gimple_statement_base.
5932         * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
5933         (gimple_set_use_ops): Port from union to usage of as_a.
5934         (gimple_set_vuse): Likewise.
5935         (gimple_set_vdef): Likewise.
5936         (gimple_call_internal_fn): Port from union to a static_cast,
5937         given that the type has already been asserted.
5938         (gimple_omp_body_ptr): Port from unchecked union usage to
5939         a static_cast.
5940         (gimple_omp_set_body): Likewise.
5942         * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
5943         gimple types to a true class hierarchy.
5944         (update_call_edge_frequencies): Likewise.
5945         (gsi_insert_seq_nodes_before): Likewise.
5946         (gsi_insert_seq_nodes_after): Likewise.
5947         (gsi_split_seq_after): Likewise.
5948         (gsi_set_stmt): Likewise.
5949         (gsi_split_seq_before): Likewise.
5950         (gsi_remove): Likewise.
5951         * gimple-iterator.h (gsi_one_before_end_p): Likewise.
5952         (gsi_next): Likewise.
5953         (gsi_prev): Likewise.
5954         * gimple-pretty-print.c (dump_gimple_debug): Likewise.
5955         * gimple-ssa.h (gimple_vuse_op): Likewise.
5956         (gimple_vdef_op): Likewise.
5957         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
5958         * gimple-streamer-out.c (output_gimple_stmt): Likewise.
5959         * gimple.c (gimple_set_code): Likewise.
5960         (gimple_alloc_stat): Likewise.
5961         (gimple_set_subcode): Likewise.
5962         (gimple_build_call_internal_1): Likewise.
5963         (gimple_check_failed): Likewise.
5964         (gimple_call_flags): Likewise.
5965         (gimple_set_bb): Likewise.
5966         * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
5967         (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
5968         (is_a_helper <gimple_statement_call> (gimple)): Likewise.
5969         (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
5970         (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
5971         (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
5972         (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
5973         (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
5974         (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
5975         (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
5976         (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
5977         (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
5978         (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
5979         (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
5980         (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
5981         (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
5982         (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
5983         (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
5984         (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
5985         (is_a_helper <gimple_statement_try> (gimple)): Likewise.
5986         (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
5987         (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
5988         (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
5989         (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
5990         (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
5991         (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
5992         Likewise.
5993         (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
5994         Likewise.
5995         (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
5996         Likewise.
5997         (is_a_helper <const gimple_statement_omp_atomic_store>
5998         (const_gimple)): Likewise.
5999         (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
6000         Likewise.
6001         (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
6002         Likewise.
6003         (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
6004         Likewise.
6005         (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
6006         Likewise.
6007         (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
6008         Likewise.
6009         (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
6010         Likewise.
6011         (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
6012         Likewise.
6013         (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
6014         (is_a_helper <const gimple_statement_transaction> (const_gimple)):
6015         Likewise.
6016         (gimple_seq_last): Update for conversion of gimple types to a true
6017         class hierarchy.
6018         (gimple_seq_set_last): Likewise.
6019         (gimple_code): Likewise.
6020         (gimple_bb): Likewise.
6021         (gimple_block): Likewise.
6022         (gimple_set_block): Likewise.
6023         (gimple_location): Likewise.
6024         (gimple_location_ptr): Likewise.
6025         (gimple_set_location): Likewise.
6026         (gimple_no_warning_p): Likewise.
6027         (gimple_set_no_warning): Likewise.
6028         (gimple_set_visited): Likewise.
6029         (gimple_visited_p): Likewise.
6030         (gimple_set_plf): Likewise.
6031         (gimple_plf): Likewise.
6032         (gimple_set_uid): Likewise.
6033         (gimple_uid): Likewise.
6034         (gimple_init_singleton): Likewise.
6035         (gimple_modified_p): Likewise.
6036         (gimple_set_modified): Likewise.
6037         (gimple_expr_code): Likewise.
6038         (gimple_has_volatile_ops): Likewise.
6039         (gimple_set_has_volatile_ops): Likewise.
6040         (gimple_omp_subcode): Likewise.
6041         (gimple_omp_set_subcode): Likewise.
6042         (gimple_omp_return_set_nowait): Likewise.
6043         (gimple_omp_section_set_last): Likewise.
6044         (gimple_omp_parallel_set_combined_p): Likewise.
6045         (gimple_omp_atomic_set_need_value): Likewise.
6046         (gimple_omp_atomic_set_seq_cst): Likewise.
6047         (gimple_num_ops): Likewise.
6048         (gimple_set_num_ops): Likewise.
6049         (gimple_assign_nontemporal_move_p): Likewise.
6050         (gimple_assign_set_nontemporal_move): Likewise.
6051         (gimple_assign_rhs_code): Likewise.
6052         (gimple_assign_set_rhs_code): Likewise.
6053         (gimple_call_internal_p): Likewise.
6054         (gimple_call_with_bounds_p): Likewise.
6055         (gimple_call_set_with_bounds): Likewise.
6056         (gimple_call_set_tail): Likewise.
6057         (gimple_call_tail_p): Likewise.
6058         (gimple_call_set_return_slot_opt): Likewise.
6059         (gimple_call_return_slot_opt_p): Likewise.
6060         (gimple_call_set_from_thunk): Likewise.
6061         (gimple_call_from_thunk_p): Likewise.
6062         (gimple_call_set_va_arg_pack): Likewise.
6063         (gimple_call_va_arg_pack_p): Likewise.
6064         (gimple_call_set_nothrow): Likewise.
6065         (gimple_call_set_alloca_for_var): Likewise.
6066         (gimple_call_alloca_for_var_p): Likewise.
6067         (gimple_call_copy_flags): Likewise.
6068         (gimple_cond_code): Likewise.
6069         (gimple_cond_set_code): Likewise.
6070         (gimple_cond_make_false): Likewise.
6071         (gimple_cond_make_true): Likewise.
6072         (gimple_asm_volatile_p): Likewise.
6073         (gimple_asm_set_volatile): Likewise.
6074         (gimple_asm_set_input): Likewise.
6075         (gimple_asm_input_p): Likewise.
6076         (gimple_try_kind): Likewise.
6077         (gimple_try_set_kind): Likewise.
6078         (gimple_try_catch_is_cleanup): Likewise.
6079         (gimple_try_set_catch_is_cleanup): Likewise.
6080         (gimple_wce_cleanup_eh_only): Likewise.
6081         (gimple_wce_set_cleanup_eh_only): Likewise.
6082         (gimple_debug_bind_p): Likewise.
6083         (gimple_debug_source_bind_p): Likewise.
6084         (gimple_omp_for_set_kind): Likewise.
6085         (gimple_omp_for_set_combined_p): Likewise.
6086         (gimple_omp_for_set_combined_into_p): Likewise.
6087         (gimple_omp_target_set_kind): Likewise.
6088         (gimple_transaction_subcode): Likewise.
6089         (gimple_transaction_set_subcode): Likewise.
6090         (gimple_predict_predictor): Likewise.
6091         (gimple_predict_set_predictor): Likewise.
6092         (gimple_predict_outcome): Likewise.
6093         (gimple_predict_set_outcome): Likewise.
6094         (gimple_transaction_set_label): Likewise.
6095         (gimple_transaction_set_body): Likewise.
6096         (gimple_transaction_label_ptr): Likewise.
6097         (gimple_transaction_label): Likewise.
6098         (gimple_transaction_body_ptr): Likewise.
6099         (gimple_omp_continue_set_control_use): Likewise.
6100         (gimple_omp_continue_control_use_ptr): Likewise.
6101         (gimple_omp_continue_control_use): Likewise.
6102         (gimple_omp_continue_set_control_def): Likewise.
6103         (gimple_omp_continue_control_def_ptr): Likewise.
6104         (gimple_omp_continue_control_def): Likewise.
6105         (gimple_omp_atomic_load_rhs_ptr): Likewise.
6106         (gimple_omp_atomic_load_rhs): Likewise.
6107         (gimple_omp_atomic_load_set_rhs): Likewise.
6108         (gimple_omp_atomic_load_lhs_ptr): Likewise.
6109         (gimple_omp_atomic_load_lhs): Likewise.
6110         (gimple_omp_atomic_load_set_lhs): Likewise.
6111         (gimple_omp_atomic_store_val_ptr): Likewise.
6112         (gimple_omp_atomic_store_val): Likewise.
6113         (gimple_omp_atomic_store_set_val): Likewise.
6114         (gimple_omp_for_cond): Likewise.
6115         (gimple_omp_for_set_cond): Likewise.
6116         (gimple_omp_sections_set_control): Likewise.
6117         (gimple_omp_sections_control_ptr): Likewise.
6118         (gimple_omp_sections_control): Likewise.
6119         (gimple_omp_sections_set_clauses): Likewise.
6120         (gimple_omp_sections_clauses_ptr): Likewise.
6121         (gimple_omp_sections_clauses): Likewise.
6122         (gimple_omp_teams_set_clauses): Likewise.
6123         (gimple_omp_teams_clauses_ptr): Likewise.
6124         (gimple_omp_teams_clauses): Likewise.
6125         (gimple_omp_target_set_data_arg): Likewise.
6126         (gimple_omp_target_data_arg_ptr): Likewise.
6127         (gimple_omp_target_data_arg): Likewise.
6128         (gimple_omp_target_set_child_fn): Likewise.
6129         (gimple_omp_target_child_fn_ptr): Likewise.
6130         (gimple_omp_target_child_fn): Likewise.
6131         (gimple_omp_target_set_clauses): Likewise.
6132         (gimple_omp_target_clauses_ptr): Likewise.
6133         (gimple_omp_target_clauses): Likewise.
6134         (gimple_omp_single_set_clauses): Likewise.
6135         (gimple_omp_single_clauses_ptr): Likewise.
6136         (gimple_omp_single_clauses): Likewise.
6137         (gimple_omp_task_set_arg_align): Likewise.
6138         (gimple_omp_task_arg_align_ptr): Likewise.
6139         (gimple_omp_task_arg_align): Likewise.
6140         (gimple_omp_task_set_arg_size): Likewise.
6141         (gimple_omp_task_arg_size_ptr): Likewise.
6142         (gimple_omp_task_arg_size): Likewise.
6143         (gimple_omp_task_set_copy_fn): Likewise.
6144         (gimple_omp_task_copy_fn_ptr): Likewise.
6145         (gimple_omp_task_copy_fn): Likewise.
6146         (gimple_omp_task_set_data_arg): Likewise.
6147         (gimple_omp_task_data_arg_ptr): Likewise.
6148         (gimple_omp_task_data_arg): Likewise.
6149         (gimple_omp_task_set_child_fn): Likewise.
6150         (gimple_omp_task_child_fn_ptr): Likewise.
6151         (gimple_omp_task_child_fn): Likewise.
6152         (gimple_omp_task_set_clauses): Likewise.
6153         (gimple_omp_task_clauses_ptr): Likewise.
6154         (gimple_omp_task_clauses): Likewise.
6155         (gimple_omp_parallel_set_data_arg): Likewise.
6156         (gimple_omp_parallel_data_arg_ptr): Likewise.
6157         (gimple_omp_parallel_data_arg): Likewise.
6158         (gimple_omp_parallel_set_child_fn): Likewise.
6159         (gimple_omp_parallel_child_fn_ptr): Likewise.
6160         (gimple_omp_parallel_child_fn): Likewise.
6161         (gimple_omp_parallel_set_clauses): Likewise.
6162         (gimple_omp_parallel_clauses_ptr): Likewise.
6163         (gimple_omp_parallel_clauses): Likewise.
6164         (gimple_omp_for_set_pre_body): Likewise.
6165         (gimple_omp_for_pre_body_ptr): Likewise.
6166         (gimple_omp_for_set_incr): Likewise.
6167         (gimple_omp_for_incr_ptr): Likewise.
6168         (gimple_omp_for_incr): Likewise.
6169         (gimple_omp_for_set_final): Likewise.
6170         (gimple_omp_for_final_ptr): Likewise.
6171         (gimple_omp_for_final): Likewise.
6172         (gimple_omp_for_set_initial): Likewise.
6173         (gimple_omp_for_initial_ptr): Likewise.
6174         (gimple_omp_for_initial): Likewise.
6175         (gimple_omp_for_set_index): Likewise.
6176         (gimple_omp_for_index_ptr): Likewise.
6177         (gimple_omp_for_index): Likewise.
6178         (gimple_omp_for_collapse): Likewise.
6179         (gimple_omp_for_set_clauses): Likewise.
6180         (gimple_omp_for_clauses_ptr): Likewise.
6181         (gimple_omp_for_clauses): Likewise.
6182         (gimple_omp_critical_set_name): Likewise.
6183         (gimple_omp_critical_name_ptr): Likewise.
6184         (gimple_omp_critical_name): Likewise.
6185         (gimple_eh_dispatch_set_region): Likewise.
6186         (gimple_eh_dispatch_region): Likewise.
6187         (gimple_resx_set_region): Likewise.
6188         (gimple_resx_region): Likewise.
6189         (gimple_phi_set_arg): Likewise.
6190         (gimple_phi_arg): Likewise.
6191         (gimple_phi_set_result): Likewise.
6192         (gimple_phi_result_ptr): Likewise.
6193         (gimple_phi_result): Likewise.
6194         (gimple_phi_num_args): Likewise.
6195         (gimple_phi_capacity): Likewise.
6196         (gimple_wce_set_cleanup): Likewise.
6197         (gimple_wce_cleanup_ptr): Likewise.
6198         (gimple_try_set_cleanup): Likewise.
6199         (gimple_try_set_eval): Likewise.
6200         (gimple_try_cleanup_ptr): Likewise.
6201         (gimple_try_eval_ptr): Likewise.
6202         (gimple_eh_else_set_e_body): Likewise.
6203         (gimple_eh_else_set_n_body): Likewise.
6204         (gimple_eh_else_e_body_ptr): Likewise.
6205         (gimple_eh_else_n_body_ptr): Likewise.
6206         (gimple_eh_must_not_throw_set_fndecl): Likewise.
6207         (gimple_eh_must_not_throw_fndecl): Likewise.
6208         (gimple_eh_filter_set_failure): Likewise.
6209         (gimple_eh_filter_set_types): Likewise.
6210         (gimple_eh_filter_failure_ptr): Likewise.
6211         (gimple_eh_filter_types_ptr): Likewise.
6212         (gimple_eh_filter_types): Likewise.
6213         (gimple_catch_set_handler): Likewise.
6214         (gimple_catch_set_types): Likewise.
6215         (gimple_catch_handler_ptr): Likewise.
6216         (gimple_catch_types_ptr): Likewise.
6217         (gimple_catch_types): Likewise.
6218         (gimple_asm_string): Likewise.
6219         (gimple_asm_set_label_op): Likewise.
6220         (gimple_asm_label_op): Likewise.
6221         (gimple_asm_set_clobber_op): Likewise.
6222         (gimple_asm_clobber_op): Likewise.
6223         (gimple_asm_set_output_op): Likewise.
6224         (gimple_asm_output_op_ptr): Likewise.
6225         (gimple_asm_output_op): Likewise.
6226         (gimple_asm_set_input_op): Likewise.
6227         (gimple_asm_input_op_ptr): Likewise.
6228         (gimple_asm_input_op): Likewise.
6229         (gimple_asm_nlabels): Likewise.
6230         (gimple_asm_nclobbers): Likewise.
6231         (gimple_asm_noutputs): Likewise.
6232         (gimple_asm_ninputs): Likewise.
6233         (gimple_bind_set_block): Likewise.
6234         (gimple_bind_block): Likewise.
6235         (gimple_bind_add_seq): Likewise.
6236         (gimple_bind_add_stmt): Likewise.
6237         (gimple_bind_set_body): Likewise.
6238         (gimple_bind_body_ptr): Likewise.
6239         (gimple_bind_append_vars): Likewise.
6240         (gimple_bind_set_vars): Likewise.
6241         (gimple_bind_vars): Likewise.
6242         (gimple_call_clobber_set): Likewise.
6243         (gimple_call_use_set): Likewise.
6244         (gimple_call_set_internal_fn): Likewise.
6245         (gimple_call_set_fntype): Likewise.
6246         (gimple_call_fntype): Likewise.
6247         (gimple_omp_return_lhs_ptr): Likewise.
6248         (gimple_omp_return_lhs): Likewise.
6249         (gimple_omp_return_set_lhs): Likewise.
6250         (gimple_omp_taskreg_set_data_arg): Likewise.
6251         (gimple_omp_taskreg_data_arg_ptr): Likewise.
6252         (gimple_omp_taskreg_data_arg): Likewise.
6253         (gimple_omp_taskreg_set_child_fn): Likewise.
6254         (gimple_omp_taskreg_child_fn_ptr): Likewise.
6255         (gimple_omp_taskreg_child_fn): Likewise.
6256         (gimple_omp_taskreg_set_clauses): Likewise.
6257         (gimple_omp_taskreg_clauses_ptr): Likewise.
6258         (gimple_omp_taskreg_clauses): Likewise.
6259         (gimple_vuse): Likewise.
6260         (gimple_vdef): Likewise.
6261         (gimple_vuse_ptr): Likewise.
6262         (gimple_vdef_ptr): Likewise.
6263         * tree-inline.c (copy_debug_stmt): Likewise.
6264         * tree-phinodes.c (make_phi_node): Likewise.
6266         * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
6267         (is_a_helper <gimple_statement_with_ops>::test): New.
6268         (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
6269         (is_a_helper <gimple_statement_with_memory_ops>::test): New.
6271         * gimple-streamer-in.c (input_gimple_stmt): Port from union
6272         access to use of as_a.
6273         * gimple.c (gimple_build_asm_1): Likewise.
6274         (gimple_build_try): Likewise.  Also, return a specific subclass
6275         rather than just gimple.
6276         (gimple_build_resx): Port from union access to use of as_a.
6277         (gimple_build_eh_dispatch): Likewise.
6278         (gimple_build_omp_for): Likewise.  Also, convert allocation of iter
6279         now that gengtype no longer provides a typed allocator function.
6280         (gimple_copy): Likewise.
6281         * gimple.h (gimple_build_try): Return a specific subclass rather
6282         than just gimple.
6283         * gimplify.c (gimplify_cleanup_point_expr): Replace union access
6284         with subclass access by making use of new return type of
6285         gimple_build_try.
6286         * tree-phinodes.c: (allocate_phi_node): Return a
6287         "gimple_statement_phi *" rather than just a gimple.
6288         (resize_phi_node): Likewise.
6289         (make_phi_node): Replace union access with subclass access by
6290         making use of new return type of allocate_phi_node.
6291         (reserve_phi_args_for_new_edge): Replace union access with as_a.
6292         (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
6293         than just a gimple.
6294         (remove_phi_args): Update for change to remove_phi_arg_num.
6296         * gdbhooks.py (GimplePrinter.to_string): Update lookup of
6297         code field to reflect inheritance, rather than embedding of
6298         the base gimple type.
6300 2013-11-19  Richard Biener  <rguenther@suse.de>
6302         * cfgloop.h (struct loop_iterator): C++-ify, add constructor
6303         and destructor and make fel_next a member function.
6304         (fel_next): Transform into ...
6305         (loop_iterator::next): ... this.
6306         (fel_init): Transform into ...
6307         (loop_iterator::loop_iterator): ... this.
6308         (loop_iterator::~loop_iterator): New.
6309         (FOR_EACH_LOOP): Remove loop-iterator argument.
6310         (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
6311         * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
6312         graphite-clast-to-gimple.c, graphite-scop-detection.c,
6313         graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
6314         loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
6315         modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
6316         tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
6317         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
6318         tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
6319         tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
6320         tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
6321         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
6322         uses of FOR_EACH_LOOP and remove loop_iterator variables.  Replace
6323         FOR_EACH_LOOP_BREAK with break.
6325 2013-11-19  Richard Biener  <rguenther@suse.de>
6327         PR tree-optimization/59164
6328         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
6329         Uncomment assert.
6330         * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
6331         whether we can create an epilogue loop to reflect thecases where
6332         we create one.
6334 2013-11-19  Andrew MacLeod  <amacleod@redhat.com>
6336         * graphite-sese-to-poly.c: Include expr.h.
6338 2013-11-19  Richard Biener  <rguenther@suse.de>
6340         PR middle-end/58956
6341         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
6342         loads into stmts that may clobber it.
6344 2013-11-19  Bernd Schmidt  <bernds@codesourcery.com>
6346         * cgraphunit.c (symtab_terminator): New variable.
6347         (queued_nodes): Renamed from first.  Use symtab_terminator as
6348         initializer.
6349         (analyze_functions): Adjust accordingly.
6350         (cgraph_process_new_functions): Return void.
6351         * cgraph.h (cgraph_process_new_functions): Adjust declaration.
6353 2013-11-19  Marek Polacek  <polacek@redhat.com>
6355         * opts.c (common_handle_option): Add -fsanitize=null option.
6356         Turn off -fdelete-null-pointer-checks option when doing the
6357         NULL pointer checking.
6358         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
6359         * tree-pass.h (make_pass_ubsan): Declare.
6360         (make_pass_sanopt): Declare.
6361         * timevar.def (TV_TREE_UBSAN): New timevar.
6362         * passes.def: Add pass_sanopt and pass_ubsan.
6363         * ubsan.h (ubsan_null_ckind): New enum.
6364         (ubsan_mismatch_data): New struct.
6365         (ubsan_expand_null_ifn): Declare.
6366         (ubsan_create_data): Adjust declaration.
6367         (ubsan_type_descriptor): Likewise.
6368         * asan.c: Include "ubsan.h".
6369         (pass_data_sanopt): New pass.
6370         (execute_sanopt): New function.
6371         (gate_sanopt): Likewise.
6372         (make_pass_sanopt): Likewise.
6373         (class pass_sanopt): New class.
6374         * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
6375         gimple-iterator.h and cfgloop.h.
6376         (PROB_VERY_UNLIKELY): Define.
6377         (tree_type_map_hash): New function.
6378         (ubsan_type_descriptor): Add new parameter.
6379         Improve type name generation.
6380         (ubsan_create_data): Add new parameter.  Add pointer data into
6381         ubsan structure.
6382         (ubsan_expand_null_ifn): New function.
6383         (instrument_member_call): Likewise.
6384         (instrument_mem_ref): Likewise.
6385         (instrument_null): Likewise.
6386         (ubsan_pass): Likewise.
6387         (gate_ubsan): Likewise.
6388         (make_pass_ubsan): Likewise.
6389         (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
6390         (class pass_ubsan): New class.
6391         (pass_data_ubsan): New pass.
6392         * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
6393         * internal-fn.c (expand_UBSAN_NULL): New function.
6394         * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
6395         even when !flag_toplevel_reorder.
6396         * internal-fn.def (UBSAN_NULL): New.
6398 2013-11-19  Jan Hubicka  <jh@suse.cz>
6400         * cgraph.c (cgraph_create_indirect_edge): Use
6401         get_polymorphic_call_info.
6402         * cgraph.h (cgraph_indirect_call_info): Add outer_type,
6403         maybe_in_construction and maybe_derived_type.
6404         * ipa-utils.h (ipa_polymorphic_call_context): New structure.
6405         (ipa_dummy_polymorphic_call_context): New global var.
6406         (possible_polymorphic_call_targets): Add context paramter.
6407         (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
6408         (possible_polymorphic_call_target_p): Likewise.
6409         (get_polymorphic_call_info): New function.
6410         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
6411         (add_type_duplicate): Remove forgotten debug output.
6412         (method_class_type): Add sanity check.
6413         (maybe_record_node): Add FINALP parameter.
6414         (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
6415         by info by get_binfo_at_offset.
6416         (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
6417         parameters; pass them to record-binfo.
6418         (polymorphic_call_target_d): Add context and FINAL.
6419         (polymorphic_call_target_hasher::hash): Hash context.
6420         (polymorphic_call_target_hasher::equal): Compare context.
6421         (free_polymorphic_call_targets_hash):
6422         (get_class_context): New function.
6423         (contains_type_p): New function.
6424         (get_polymorphic_call_info): New function.
6425         (walk_bases): New function.
6426         (possible_polymorphic_call_targets): Add context parameter; honnor it.
6427         (dump_possible_polymorphic_call_targets): Dump context.
6428         (possible_polymorphic_call_target_p): Add context.
6429         (update_type_inheritance_graph): Update comment.s
6430         (ipa_set_jf_known_type): Assert that compoentn type is known.
6431         (ipa_note_param_call): Do not tamper with offsets.
6432         (ipa_analyze_indirect_call_uses): When offset is being changed; clear
6433         outer type.
6434         (update_indirect_edges_after_inlining): Likewise.
6435         (ipa_write_indirect_edge_info): Stream new fields.
6436         (ipa_read_indirect_edge_info): Stream in new fields.
6438 2013-11-19  Jan Hubicka  <jh@suse.cz>
6440         * tree-pretty-print.c (dump_generic_node): Print class type of
6441         OBJ_TYPE_REF.
6443 2013-11-19  Joey Ye  <joey.ye@arm.com>
6445         * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
6446         * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
6447         for new option.
6448         * config/arm/arm.c (arm_option_override): By default disable
6449         -marm-pic-data-is-text-relative.
6450         (legitimize_pic_address): Use arm_pic_data_is_text_relative.
6451         (arm_assemble_integer): Likewise.
6452         * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
6453         New macro to initialize -marm-pic-data-is-text-relative.
6455 2013-11-19  Bin Cheng  <bin.cheng@arm.com>
6457         * tree-ssa-loop-ivopts.c (enum ainc_type): New.
6458         (address_cost_data): New field.
6459         (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
6460         Use ainc_costs for auto-increment rtx patterns.  Cleanup TWS.
6462 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
6464         * config/aarch64/aarch64.md: Remove v8type from all insns.
6466 2013-11-19  Richard Biener  <rguenther@suse.de>
6468         PR tree-optimization/57517
6469         * tree-predcom.c (combinable_refs_p): Verify the combination
6470         is always executed when the refs are.
6472 2013-11-19  Jeff Law  <law@redhat.com>
6474         * tree-ssa-threadupdate.c: Include ssa-iterators.h
6475         (copy_phi_arg_into_existing_phi): New function.
6476         (any_remaining_duplicated_blocks): Likewise.
6477         (ssa_fix_duplicate_block_edges): Handle multiple duplicated
6478         blocks on a jump threading path.
6480         * tree-ssa-threadupdate.c (thread_through_loop_header):  Do not
6481         thread through a joiner which has the latch edge.
6483 2013-11-19  Jan Hubicka  <jh@suse.cz>
6485         * md.texi (setmem): Document new parameter.
6486         * optabs.c (maybe_gen_insn): Support 9 operands.
6487         * builtins.c (determine_block_size): Add probable_max_size;
6488         support anti-ranges.
6489         (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
6490         probable_max_size.
6491         * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
6492         emit_block_move, clear_storage_hints, set_storage_via_setmem):
6493         Likewise.
6494         * expr.h (emit_block_move_hints, clear_storage_hints,
6495         set_storage_via_setmem): Update prototype.
6496         * i386.md (setmem, movmem patterns): Add 9th operand.
6497         * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
6498         * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
6499         argument; pass it to decide_alg.
6501 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
6503         * basic-block.h (n_basic_blocks_for_function): Rename macro to...
6504         (n_basic_blocks_for_fn): ...this.
6506         (n_basic_blocks): Eliminate macro as work towards making uses of
6507         cfun be explicit.
6509         * cfgloop.c (init_loops_structure): Update for renaming of
6510         "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
6511         * graph.c (draw_cfg_nodes_no_loops): Likewise.
6512         * ipa-utils.c (ipa_merge_profiles): Likewise.
6513         * lto-streamer-in.c (make_new_block): Likewise.
6514         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
6515         (dump_function_to_file): Likewise.
6517         * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
6518         macro with "n_basic_blocks_for_fn (cfun)".
6519         * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
6520         (duplicate_computed_gotos): Likewise.
6521         (reorder_basic_blocks): Likewise.
6522         * bt-load.c (augment_live_range): Likewise.
6523         * cfg.c (expunge_block): Likewise.
6524         (compact_blocks): Likewise.
6525         * cfganal.c (single_pred_before_succ_order): Likewise.
6526         (compute_idf): Likewise.
6527         (flow_dfs_compute_reverse_init): Likewise.
6528         (pre_and_rev_post_order_compute): Likewise.
6529         (pre_and_rev_post_order_compute_fn): Likewise.
6530         (inverted_post_order_compute): Likewise.
6531         (post_order_compute): Likewise.
6532         (print_edge_list): Likewise.
6533         (find_unreachable_blocks): Likewise.
6534         (mark_dfs_back_edges): Likewise.
6535         * cfgcleanup.c (try_optimize_cfg): Likewise.
6536         (try_forward_edges): Likewise.
6537         * cfghooks.c (dump_flow_info): Likewise.
6538         * cfgloop.c (verify_loop_structure): Likewise.
6539         (get_loop_body): Likewise.
6540         (flow_loops_find): Likewise.
6541         * cfgloopmanip.c (add_loop): Likewise.
6542         (remove_path): Likewise.
6543         (find_path): Likewise.
6544         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
6545         (rtl_verify_bb_layout): Likewise.
6546         (entry_of_function): Likewise.
6547         (rtl_create_basic_block): Likewise.
6548         * coverage.c (coverage_compute_cfg_checksum): Likewise.
6549         * cprop.c (one_cprop_pass): Likewise.
6550         (is_too_expensive): Likewise.
6551         * df-core.c (df_compute_cfg_image): Likewise.
6552         (df_compact_blocks): Likewise.
6553         (df_worklist_dataflow_doublequeue): Likewise.
6554         * dominance.c (calculate_dominance_info): Likewise.
6555         (calc_dfs_tree): Likewise.
6556         (calc_dfs_tree_nonrec): Likewise.
6557         (init_dom_info): Likewise.
6558         * domwalk.c (cmp_bb_postorder): Likewise.
6559         * function.c (thread_prologue_and_epilogue_insns): Likewise.
6560         (generate_setjmp_warnings): Likewise.
6561         * fwprop.c (build_single_def_use_links): Likewise.
6562         * gcse.c (is_too_expensive): Likewise.
6563         (one_code_hoisting_pass): Likewise.
6564         (one_pre_gcse_pass): Likewise.
6565         * graphite.c (graphite_initialize): Likewise.
6566         * haifa-sched.c (haifa_sched_init): Likewise.
6567         * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
6568         * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
6569         * ira-build.c (ira_build): Likewise.
6570         * lcm.c (compute_nearerout): Likewise.
6571         (compute_available): Likewise.
6572         (compute_laterin): Likewise.
6573         (compute_antinout_edge): Likewise.
6574         * lra-lives.c (lra_create_live_ranges): Likewise.
6575         * lra.c (has_nonexceptional_receiver): Likewise.
6576         * mcf.c (create_fixup_graph): Likewise.
6577         * profile.c (branch_prob): Likewise.
6578         * reg-stack.c (convert_regs_2): Likewise.
6579         * regrename.c (regrename_analyze): Likewise.
6580         * reload1.c (has_nonexceptional_receiver): Likewise.
6581         * reorg.c (dbr_schedule): Likewise.
6582         * sched-deps.c (sched_deps_init): Likewise.
6583         * sched-ebb.c (schedule_ebbs): Likewise.
6584         * sched-rgn.c (extend_regions): Likewise.
6585         (schedule_insns): Likewise.
6586         (sched_rgn_init): Likewise.
6587         (extend_rgns): Likewise.
6588         (haifa_find_rgns): Likewise.
6589         * sel-sched-ir.c (recompute_rev_top_order): Likewise.
6590         (sel_recompute_toporder): Likewise.
6591         * sel-sched.c (run_selective_scheduling): Likewise.
6592         * store-motion.c (one_store_motion_pass): Likewise.
6593         (remove_reachable_equiv_notes): Likewise.
6594         * tracer.c (tracer): Likewise.
6595         (tail_duplicate): Likewise.
6596         * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
6597         (dump_cfg_stats): Likewise.
6598         (gimple_dump_cfg): Likewise.
6599         (create_bb): Likewise.
6600         (build_gimple_cfg): Likewise.
6601         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
6602         * tree-inline.c (optimize_inline_calls): Likewise.
6603         (fold_marked_statements): Likewise.
6604         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
6605         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
6606         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
6607         * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
6608         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
6609         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
6610         * tree-ssa-pre.c (do_pre): Likewise.
6611         (init_pre): Likewise.
6612         (compute_avail): Likewise.
6613         * tree-ssa-reassoc.c (init_reassoc): Likewise.
6614         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
6615         * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
6616         (init_worklist): Likewise.
6617         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
6618         * var-tracking.c (variable_tracking_main_1): Likewise.
6619         (vt_find_locations): Likewise.
6620         (vt_stack_adjustments): Likewise.
6621         * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
6622         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
6624 2013-11-18  Jan Hubicka  <jh@suse.cz>
6626         * profile.c (compute_branch_probabilities): Do not sanity check
6627         run_max.
6629 2013-11-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
6631         * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
6632         GET_MODE_PRECISION.
6633         * fold-const.c (fold_single_bit_test_into_sign_test)
6634         (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
6636 2013-11-18  Teresa Johnson  <tejohnson@google.com>
6638         * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
6639         cfglayout after bb reordering.
6640         * passes.def: Move compgotos before bb reordering since it goes into
6641         cfglayout.
6643 2013-11-18  Bernd Schmidt  <bernds@codesourcery.com>
6645         * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
6646         * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
6647         static.
6648         (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
6649         make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
6650         pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
6651         * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
6652         * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
6653         Remove all_lto_gen_passes.
6654         * passes.c (pass_manager::dump_passes): Remove its use.
6655         (pass_manager::register_pass): Likewise.
6656         (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
6657         (pass_manager::pass_manager): Don't initialize or use it.
6658         (write_lto): New static function.
6659         (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
6660         instead of using all_lto_gen_passes.
6661         * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
6662         pass_ipa_lto_finish_out): Delete.
6663         * tree-pass.h (make_pass_ipa_lto_gimple_out,
6664         make_pass_ipa_lto_finish_out): Don't declare.
6666 2013-11-18  Jeff Law  <law@redhat.com>
6668         * tree-ssa-threadupdate.c (redirection_data): Record two
6669         duplicated blocks instead of just one.
6670         (local_info): Explain why we don't create a template for the
6671         second duplicated block in a thread path.
6672         (create_block_for_threading): Accept argument indicating array
6673         index into redirection_data to store its result.
6674         (lookup_redirection_data): Initialize both duplicate blocks.
6675         (ssa_create_duplicates): If a jump threading path needs multiple
6676         blocks duplicated, then duplicate them.
6677         (ssa_fix_duplicate_block_edges): Corresponding changes.
6678         (ssa_fixup_template_block, thread_single_edge):  Likewise.
6680 2013-11-18  Marek Polacek  <polacek@redhat.com>
6682         * doc/invoke.texi: Extend -fsanitize=undefined documentation.
6684 2013-11-18  Andrew Pinski <apinski@cavium.com>
6685             Steve Ellcey  <sellcey@mips.com>
6687         PR target/56552
6688         * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
6689         type restriction from equality_operator on conditonal move.
6690         (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
6691         (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
6693 2013-11-18  Jeff Law  <law@redhat.com>
6695         * tree-ssa-threadupdate.c: Fix file block comment.
6696         Fix minor indention issue.
6698 2013-11-18  Uros Bizjak  <ubizjak@gmail.com>
6700         * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
6701         ix86_address_subreg_operand.  Move subreg checks to
6702         ix86_validate_address_register.  Move address override check to
6703         ix86_legitimate_address_p.
6704         (ix86_validate_address_register): New function.
6705         (ix86_legitimate_address_p): Call ix86_validate_address_register
6706         to validate base and index registers.  Add address override check
6707         from ix86_decompose_address.
6708         (ix86_decompose_address): Remove.
6710 2013-11-18  Richard Biener  <rguenther@suse.de>
6712         PR tree-optimization/59125
6713         PR tree-optimization/54570
6714         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
6715         is not complete do not treat component-references with offset zero
6716         but different fields as equal.
6717         * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
6718         (compute_object_sizes): Apply TLC.  Propagate the constant
6719         results into all uses and fold their stmts.
6720         * passes.def (pass_all_optimizations): Move pass_object_sizes
6721         after the first pass_forwprop and before pass_fre.
6723 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
6725         * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
6726         * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
6727         (tree_ctz): Remove cast to unsigned type.
6728         * builtins.c (fold_builtin_memory_op): Likewise.
6729         * dwarf2out.c (descr_info_loc): Likewise.
6730         * godump.c (go_output_typedef): Likewise.
6731         * omp-low.c (expand_omp_simd): Likewise.
6732         * stor-layout.c (excess_unit_span): Likewise.
6733         * tree-object-size.c (addr_object_size): Likewise.
6734         * tree-sra.c (analyze_all_variable_accesses): Likewise.
6735         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
6736         (simplify_rotate): Likewise.
6737         * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
6738         (handle_pointer_plus): Likewise.
6739         * tree-switch-conversion.c (check_range): Likewise.
6740         * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
6741         * tsan.c (instrument_builtin_call): Likewise.
6742         * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
6743         * trans-mem.c (tm_log_add): Likewise.
6744         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
6745         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
6746         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
6747         * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
6749 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
6751         * tree.h (host_integerp, tree_low_cst): Delete.
6752         * tree.c (host_integerp, tree_low_cst): Delete.
6754 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
6756         * expr.h: Update comments to refer to tree_to_[su]hwi rather
6757         than tree_low_cst.
6758         * fold-const.c (fold_binary_loc): Likewise.
6759         * expr.c (store_constructor): Use tree_to_uhwi rather than
6760         tree_low_cst.
6761         * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
6762         * stmt.c (emit_case_dispatch_table): Likewise.
6763         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
6765 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
6767         * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
6768         config/aarch64/aarch64.c, config/alpha/predicates.md,
6769         config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
6770         config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
6771         config/mep/mep-pragma.c, config/mips/mips.c,
6772         config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
6773         dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
6774         function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
6775         predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
6776         tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
6777         tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
6778         tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
6779         tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
6780         tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
6781         Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
6783 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
6785         * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
6786         config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
6787         config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
6788         coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
6789         fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
6790         predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
6791         tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
6792         tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
6793         tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
6794         tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
6795         Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
6797 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
6799         * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
6800         * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
6802 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
6804         * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
6805         than host_integerp.
6807 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
6809         * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
6810         config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
6811         gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
6812         tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
6813         tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
6814         tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
6815         tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
6816         config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
6817         config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
6818         config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
6819         gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
6820         tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
6821         tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
6822         tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
6823         tree_fits_uhwi_p throughout.
6825 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
6827         * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
6828         config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
6829         config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
6830         expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
6831         gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
6832         omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
6833         stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
6834         tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
6835         tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
6836         tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
6837         tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
6838         tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
6839         varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
6840         throughout.
6842 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
6844         * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
6845         * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
6847 2013-11-18  Kirill Yukhin  <kirill.yukhin@intel.com>
6849         * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
6850         flag if it kills its address, not its post-increment.
6852 2013-11-18  Ilya Enkovich  <ilya.enkovich@intel.com>
6854         * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
6855         * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
6856         * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
6857         * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
6858         * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
6859         (gimple_call_with_bounds_p): New.
6860         (gimple_call_set_with_bounds): New.
6861         (gimple_call_num_nobnd_args): Remove.
6862         (gimple_call_nobnd_arg): Remove.
6863         * tree.h (CALL_WITH_BOUNDS_P): New.
6864         * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
6866 2013-11-18  Trevor Saunders  <tsaunders@mozilla.com>
6868         * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
6869         (symtab_node_name): Rename to symtab_node::name.
6870         (cgraph_node_asm_name): Remove.
6871         (varpool_node_asm_name): Remove.
6872         * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
6873         ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
6874         ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
6875         ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
6876         tree-ssa-structalias.c value-prof.c varpool.c Adjust.
6878 2013-11-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6880         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
6881         * config/arm/arm.c (arm_cortex_a53_tune): New.
6882         * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
6884 2013-11-12  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
6886         * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
6887         (case ${target}): Add bdver4.
6888         * config/i386/bdver3.md: Add bdver4.
6889         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
6890         -march=native recognize bdver4 processors.
6891         * config/i386/i386-c.c (ix86_target_macros_internal): Add
6892         bdver4 def_and_undef
6893         * config/i386/i386.c (struct processor_costs bdver4_cost): New.
6894         (m_BDVER4): New definition.
6895         (m_AMD_MULTIPLE): Includes m_BDVER4.
6896         (processor_target_table): Add bdver4 entry.
6897         (static const char *const cpu_names): Add bdver4 entry.
6898         (software_prefetching_beneficial_p): Add bdver3.
6899         (ix86_option_override_internal): Add bdver4 instruction sets.
6900         (ix86_issue_rate): Add bdver4.
6901         (ix86_adjust_cost): Add bdver4.
6902         (ia32_multipass_dfa_lookahead): Add bdver4.
6903         (enum processor_model): Add M_AMDFAM15H_BDVER4.
6904         (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
6905         (has_dispatch): Add bdver4.
6906         * config/i386/i386.h (TARGET_BDVER4): New definition.
6907         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
6908         (enum processor_type): Add PROCESSOR_BDVER4.
6909         * config/i386/i386.md (define_attr "cpu"): Add bdver4.
6910         * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
6911         * doc/extend.texi: Add details about bdver4.
6912         * doc/invoke.texi: Add details about bdver4. Add
6913         fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
6915 2013-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6917         * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
6918         sdmode_stack_slot also in little-endian mode.
6920 2013-11-17  Jan Hubicka  <jh@suse.cz>
6922         * doc/md.texi (setmem, movstr): Update documentation.
6923         * builtins.c (determine_block_size): New function.
6924         (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
6925         (expand_builtin_memset_args): Use it and pass it to
6926         set_storage_via_setmem.
6927         * expr.c (emit_block_move_via_movmem): Add min_size/max_size
6928         parameters; update call to expander.
6929         (emit_block_move_hints): Add min_size/max_size parameters.
6930         (clear_storage_hints): Likewise.
6931         (set_storage_via_setmem): Likewise.
6932         (clear_storage): Update.
6933         * expr.h (emit_block_move_hints, clear_storage_hints,
6934         set_storage_via_setmem): Update prototypes.
6935         * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
6936         (ix86_expand_movmem, ix86_expand_setmem): Remove.
6937         (ix86_expand_movmem, ix86_expand_setmem): Remove.
6938         * i386.md (movmem, setmem): Pass parameters.
6940 2013-11-17  Uros Bizjak  <ubizjak@gmail.com>
6942         PR target/59153
6943         * config/i386/i386.c (ix86_address_subreg_operand): Do not
6944         reject non-integer subregs.
6945         (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
6946         Move check for invalid x32 constant addresses ...
6947         (ix86_legitimate_address_p): ... here.
6949 2011-11-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6951         * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
6952         parameter and use it in REG_FRAME_RELATED_EXPR note.
6953         (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
6954         parameter.
6955         (rs6000_emit_prologue): Likewise, but for little endian VSX
6956         stores, pass the source register of the store instead.
6958 2013-11-17  Andrew MacLeod  <amacleod@redhat.com>
6960         * gimple.h: Reorder prototypes to match .c declaration order, and
6961         remove protyotypes for functions not in gimple.c.
6962         (LABEL): Move to tree-into-ssa.c.
6963         * gimple.c: Remove unused prototypes.
6964         (get_base_address): Move to tree.c.
6965         * tree.c (get_base_address): Relocate from gimple.c.
6966         * builtins.h (validate_gimple_arglist): Add prototype.
6967         * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
6968         * cfgexpand.h: New File.
6969         (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
6970         * tree.h (build_addr): Move to tree-nested.h.
6971         * tree-nested.h: New File.
6972         (build_addr, lower_nested_functions, insert_field_into_struct): Add
6973         prototypes.
6974         * tree-inline.h (estimated_stack_frame_size): Remove prototype.
6975         * ipa-inline-analysis.c: Include cfgexpand.h.
6976         * cgraphunit.c: Include tree-nested.h.
6977         * omp-low.c: Likewise.
6978         * tree-parloops.c: Likewise.
6979         * gimple-low.h: Likewise.
6980         * tree-profile.h: Likewise.
6981         * expr.c: Include cfgexpand.h.
6982         * tree-affine.c: Likewise.
6983         * tree-ssa.c: Likewise.
6984         * tree-ssa-loop-im.c: Include trans-mem.h.
6985         * tree-ssa-tail-merge.c: Likewise.
6986         * value-prof.c: Include builtins.h and tree-nested.h.
6987         * tree-into-ssa.c (LABEL): Define here.
6989 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
6991         * config/arc/arc.c (arc_predicate_delay_insns): New function.
6992         (pass_data_arc_predicate_delay_insns): New pass_data instance.
6993         (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
6994         (make_pass_arc_predicate_delay_insns): New function.
6995         (arc_init): Register pass_arc_predicate_delay_insns if
6996         flag_delayed_branch is active.
6998 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
7000         * config/arc/constraints.md (Rcq): Simplify register number test.
7002 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
7004         * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
7006 2013-11-15  Kaz Kojima  <kkojima@gcc.gnu.org>
7008         * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
7009         is null.
7011 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
7013         * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
7014         * gimple-pretty-print.c (dump_omp_for): Add case for
7015         GF_OMP_FOR_KIND_CILKSIMD.
7016         * gimple.h (enum gf_mask): Restructure entries to add
7017         GF_OMP_FOR_KIND_CILKSIMD.
7018         * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
7019         (gimplify_omp_for): Handle CILK_SIMD.
7020         (gimplify_expr): Add ccase for CILK_SIMD.
7021         * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
7022         (build_outer_var_ref): Same.
7023         (check_omp_nesting_restrictions): Same.
7024         (lower_rec_input_clauses): Same.
7025         (lower_lastprivate_clauses): Same.
7026         (expand_omp_for): Same.
7027         (execute_expand_omp): Check flag_enable_cilkplus.
7028         (execute_lower_omp): Same.
7029         (diagnose_sb_0): Handle CILK_SIMD.
7030         (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
7031         (setjmp_or_longjmp_p): New.
7032         (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
7033         * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
7034         * tree.def: Add tree code for CILK_SIMD.
7036 2013-11-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7038         * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
7039         Remove.
7040         (altivec_vperm_<mode>): Revert earlier little endian change.
7041         (*altivec_vperm_<mode>_internal): Remove.
7042         (altivec_vperm_<mode>_uns): Revert earlier little endian change.
7043         (*altivec_vperm_<mode>_uns_internal): Remove.
7044         * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
7046 2013-11-15  Jeff Law  <law@redhat.com>
7048         * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
7049         has_abnormal_or_outgoing_edge.  Check for EH edges as well.
7050         * gimple-ssa-isolate-paths.c
7051         (find_implicit_erroneous_behaviour): Corresponding changes.
7052         Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
7053         (find_explicit_erroneous_behaviour): Likewise.
7055 2013-11-15  Jeff Law  <law@redhat.com>
7057         * ifcvt.c (find_cond_trap): Properly handle case where
7058         trap_bb == else_bb.
7060 2013-11-15  Andreas Schwab  <schwab@linux-m68k.org>
7062         * configure: Regenerate.
7064 2013-11-15  James Greenhalgh  <james.greenhalgh@arm.com>
7066         * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
7067         * config/aarch64/aarch64.md: Likewise, correct "type" attribute
7068         where it is incorrect or missing.
7070 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
7072         * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
7073         host_integerp test.
7074         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
7075         Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
7076         constant.
7077         * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
7078         pair with a TREE_CODE test and TREE_INT_CST_LOW.
7079         * tree-vect-generic.c (expand_vector_divmod): Likewise.
7081 2013-11-15  Richard Biener  <rguenther@suse.de>
7083         PR tree-optimization/50262
7084         * tree-ssa-alias.h (struct pt_solution): Split
7085         vars_contains_global into vars_contains_nonlocal,
7086         vars_contains_escaped and vars_contains_escaped_heap.
7087         * tree-ssa-structalias.c (label_visit): Expand comment.
7088         (handle_lhs_call): Adjust comment.
7089         (set_uids_in_ptset): Set the new flags appropriately.
7090         (pt_solution_set): Adjust.
7091         (pt_solution_set_var): Likewise.
7092         (pt_solution_ior_into): Likewise.
7093         (pt_solution_includes_global): Likewise.
7094         (pt_solutions_intersect_1): Optimize escaped handling.
7095         (compute_points_to_sets): Remove heap variable globalization.
7096         (ipa_escaped_pt): Adjust initializer.
7097         (pass_data_ipa_pta): Do not run TODO_update_ssa.
7098         * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
7099         * tree-ssa-alias.c (dump_points_to_solution): Likewise.
7101 2013-11-15  Richard Biener  <rguenther@suse.de>
7103         * tree-loop-distribution.c (tree_loop_distribution): Make sure
7104         to distribute all stores.
7106 2013-11-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7108         * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
7110 2013-11-15  Joseph Myers  <joseph@codesourcery.com>
7112         * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
7113         * configure.ac: Determine target_header_dir earlier.
7114         (--with-glibc-version): New configure option.
7115         Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
7116         gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
7117         * configure: Regenerate.
7118         * doc/install.texi (--enable-gnu-unique-object): Don't refer to
7119         native toolchains for default.
7120         (--with-glibc-version): Document.
7122 2013-11-15  Eric Botcazou  <ebotcazou@adacore.com>
7124         * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
7126 2013-11-15  Uros Bizjak  <ubizjak@gmail.com>
7128         * lto-streamer-in.c (input function): Call cgraph_create_node if
7129         cgraph_get_node failed.
7131 2013-11-14  Olivier Hainque  <hainque@adacore.com>
7133         * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
7134         defer allocation of DECL_IGNORED_P variables at toplevel unless really
7135         small.  Factorize size threshold computation from the existing one.
7136         (expand_used_vars): Refine comment.
7138 2013-11-14  Cong Hou  <congh@google.com>
7140         * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
7141         address field as it can be obtained from dr.  Rename the struct.
7142         * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
7143         steps of data references during sort.
7144         (vect_prune_runtime_alias_test_list): Adjust with the change to
7145         struct dr_with_seg_len.
7146         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
7147         Adjust with the change to struct dr_with_seg_len.
7149 2013-11-14  Jeff Law  <law@redhat.com>
7151         PR middle-end/59127
7152         * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
7153         * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
7154         * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
7155         (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
7156         edges, then ignore it.  If the statement exhibiting erroneous
7157         behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
7158         then we can not optimize.
7159         (find_explicit_erroneous_behaviour): Likewise.
7161 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
7163         * gimplify-me.h:  New file.  Add prototypes.
7164         * gimplify.h: Don't include gimple.h.
7165         (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
7166         Relocate from gimple.h.
7167         * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
7168         is_gimple_sizepos): Move to gimplify.h.
7169         (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
7170         (enum gsi_iterator_update): Move to gimple-iterator.h.
7171         * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
7172         * gimplify-me.c: New File.
7173         (force_gimple_operand_1, force_gimple_operand,
7174         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
7175         gimple_regimplify_operands): Relocate from gimplify.c.
7176         * gimplify.c (force_gimple_operand_1, force_gimple_operand,
7177         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
7178         gimple_regimplify_operands): Move to gimplify-me.c.
7179         (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
7180         from gimple.h.
7181         * Makefile.in (OBJS): Add gimplify-me.o
7182         * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
7183         required.
7184         * cfgloopmanip.c: Likewise.
7185         * cgraphunit.c: Likewise.
7186         * cilk-common.c: Likewise.
7187         * fold-const.c: Likewise.
7188         * function.c: Likewise.
7189         * gimple-expr.c: Likewise.
7190         * gimple-fold.c: Likewise.
7191         * gimple-ssa-strength-reduction.c: Likewise.
7192         * gimple.c: Likewise.
7193         * graphite-clast-to-gimple.c: Likewise.
7194         * graphite-sese-to-poly.c: Likewise.
7195         * ipa-prop.c: Likewise.
7196         * ipa-split.c: Likewise.
7197         * ipa.c: Likewise.
7198         * langhooks.c: Likewise.
7199         * omp-low.c: Likewise.
7200         * sese.c: Likewise.
7201         * stor-layout.c: Likewise.
7202         * targhooks.c: Likewise.
7203         * trans-mem.c: Likewise.
7204         * tree-affine.c: Likewise.
7205         * tree-cfg.c: Likewise.
7206         * tree-cfgcleanup.c: Likewise.
7207         * tree-complex.c: Likewise.
7208         * tree-if-conv.c: Likewise.
7209         * tree-inline.c: Likewise.
7210         * tree-loop-distribution.c: Likewise.
7211         * tree-nested.c: Likewise.
7212         * tree-parloops.c: Likewise.
7213         * tree-predcom.c: Likewise.
7214         * tree-profile.c: Likewise.
7215         * tree-scalar-evolution.c: Likewise.
7216         * tree-sra.c: Likewise.
7217         * tree-ssa-address.c: Likewise.
7218         * tree-ssa-ccp.c: Likewise.
7219         * tree-ssa-dce.c: Likewise.
7220         * tree-ssa-forwprop.c: Likewise.
7221         * tree-ssa-ifcombine.c: Likewise.
7222         * tree-ssa-loop-im.c: Likewise.
7223         * tree-ssa-loop-ivopts.c: Likewise.
7224         * tree-ssa-loop-manip.c: Likewise.
7225         * tree-ssa-loop-niter.c: Likewise.
7226         * tree-ssa-loop-prefetch.c: Likewise.
7227         * tree-ssa-loop-unswitch.c: Likewise.
7228         * tree-ssa-math-opts.c: Likewise.
7229         * tree-ssa-phiopt.c: Likewise.
7230         * tree-ssa-phiprop.c: Likewise.
7231         * tree-ssa-pre.c: Likewise.
7232         * tree-ssa-propagate.c: Likewise.
7233         * tree-ssa-reassoc.c: Likewise.
7234         * tree-ssa-sccvn.c: Likewise.
7235         * tree-ssa-strlen.c: Likewise.
7236         * tree-ssa.c: Likewise.
7237         * tree-switch-conversion.c: Likewise.
7238         * tree-tailcall.c: Likewise.
7239         * tree-vect-data-refs.c: Likewise.
7240         * tree-vect-generic.c: Likewise.
7241         * tree-vect-loop-manip.c: Likewise.
7242         * tree-vect-loop.c: Likewise.
7243         * tree-vect-patterns.c: Likewise.
7244         * tree-vect-stmts.c: Likewise.
7245         * tree.c: Likewise.
7246         * tsan.c: Likewise.
7247         * value-prof.c: Likewise.
7248         * config/aarch64/aarch64.c: Likewise.
7249         * config/alpha/alpha.c: Likewise.
7250         * config/darwin.c: Likewise.
7251         * config/i386/i386.c: Likewise.
7252         * config/ia64/ia64.c: Likewise.
7253         * config/mep/mep.c: Likewise.
7254         * config/mips/mips.c: Likewise.
7255         * config/rs6000/rs6000.c: Likewise.
7256         * config/s390/s390.c: Likewise.
7257         * config/sh/sh.c: Likewise.
7258         * config/sparc/sparc.c: Likewise.
7259         * config/spu/spu.c: Likewise.
7260         * config/stormy16/stormy16.c: Likewise.
7261         * config/tilegx/tilegx.c: Likewise.
7262         * config/tilepro/tilepro.c: Likewise.
7263         * config/xtensa/xtensa.c: Likewise.
7265 2013-11-14  Diego Novillo  <dnovillo@google.com>
7267         * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
7269 2013-11-14  Diego Novillo  <dnovillo@google.com>
7271         * tree.h: Include fold-const.h.
7272         (aggregate_value_p): Moved to function.h.
7273         (alloca_call_p): Moved to calls.h.
7274         (allocate_struct_function): Moved to function.h.
7275         (apply_tm_attr): Moved to attribs.h.
7276         (array_at_struct_end_p): Moved to expr.h.
7277         (array_ref_element_size): Moved to tree-dfa.h.
7278         (array_ref_low_bound): Moved to tree-dfa.h.
7279         (array_ref_up_bound): Moved to tree.h.
7280         (assemble_alias): Moved to cgraph.h.
7281         (bit_from_pos): Moved to stor-layout.h.
7282         (build_addr): Moved to tree-nested.h.
7283         (build_duplicate_type): Moved to tree-inline.h.
7284         (build_fold_addr_expr): Moved to fold-const.h.
7285         (build_fold_addr_expr_with_type): Moved to fold-const.h.
7286         (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
7287         (build_fold_indirect_ref): Moved to fold-const.h.
7288         (build_fold_indirect_ref_loc): Moved to fold-const.h.
7289         (build_personality_function): Moved to tree.h.
7290         (build_range_check): Moved to fold-const.h.
7291         (build_simple_mem_ref): Moved to fold-const.h.
7292         (build_simple_mem_ref_loc): Moved to fold-const.h.
7293         (build_tm_abort_call): Moved to trans-mem.h.
7294         (byte_from_pos): Moved to stor-layout.h.
7295         (call_expr_flags): Moved to calls.h.
7296         (can_move_by_pieces): Moved to expr.h.
7297         (categorize_ctor_elements): Moved to expr.h.
7298         (change_decl_assembler_name): Moved to gcc-symtab.h.
7299         (combine_comparisons): Moved to fold-const.h.
7300         (complete_ctor_at_level_p): Moved to tree.h.
7301         (component_ref_field_offset): Moved to tree-dfa.h.
7302         (compute_builtin_object_size): Moved to tree-object-size.h.
7303         (compute_record_mode): Moved to stor-layout.h.
7304         (constant_boolean_node): Moved to fold-const.h.
7305         (constructor_static_from_elts_p): Moved to varasm.h.
7306         (cxx11_attribute_p): Moved to attribs.h.
7307         (debug_body): Moved to print-tree.h.
7308         (debug_find_tree): Moved to tree-inline.h.
7309         (debug_fold_checksum): Moved to fold-const.h.
7310         (debug_head): Moved to print-tree.h.
7311         (debug_head): Moved to print-tree.h.
7312         (debug_raw): Moved to print-tree.h.
7313         (debug_tree): Moved to print-tree.h.
7314         (debug_vec_tree): Moved to print-tree.h.
7315         (debug_verbose): Moved to print-tree.h.
7316         (debug_verbose): Moved to print-tree.h.
7317         (decl_attributes): Moved to attribs.h.
7318         (decl_binds_to_current_def_p): Moved to varasm.h.
7319         (decl_default_tls_model): Moved to varasm.h.
7320         (decl_replaceable_p): Moved to varasm.h.
7321         (div_if_zero_remainder): Moved to fold-const.h.
7322         (double_int mem_ref_offset): Moved to fold-const.h.
7323         (dump_addr): Moved to print-tree.h.
7324         (element_precision): Moved to machmode.h.
7325         (expand_dummy_function_end): Moved to function.h.
7326         (expand_function_end): Moved to function.h.
7327         (expand_function_start): Moved to function.h.
7328         (expand_label): Moved to stmt.h.
7329         (expr_first): Moved to tree-iterator.h.
7330         (expr_last): Moved to tree-iterator.h.
7331         (finalize_size_functions): Moved to stor-layout.h.
7332         (finish_builtin_struct): Moved to stor-layout.h.
7333         (finish_record_layout): Moved to stor-layout.h.
7334         (fixup_signed_type): Moved to stor-layout.h.
7335         (fixup_unsigned_type): Moved to stor-layout.h.
7336         (flags_from_decl_or_type): Moved to calls.h.
7337         (fold): Moved to fold-const.h.
7338         (fold_abs_const): Moved to fold-const.h.
7339         (fold_binary): Moved to fold-const.h.
7340         (fold_binary_loc): Moved to fold-const.h.
7341         (fold_binary_to_constant): Moved to fold-const.h.
7342         (fold_build1): Moved to fold-const.h.
7343         (fold_build1_initializer_loc): Moved to fold-const.h.
7344         (fold_build1_loc): Moved to fold-const.h.
7345         (fold_build1_stat_loc): Moved to fold-const.h.
7346         (fold_build2): Moved to fold-const.h.
7347         (fold_build2_initializer_loc): Moved to fold-const.h.
7348         (fold_build2_loc): Moved to fold-const.h.
7349         (fold_build2_stat_loc): Moved to fold-const.h.
7350         (fold_build3): Moved to fold-const.h.
7351         (fold_build3_loc): Moved to fold-const.h.
7352         (fold_build3_stat_loc): Moved to fold-const.h.
7353         (fold_build_call_array): Moved to fold-const.h.
7354         (fold_build_call_array_initializer): Moved to fold-const.h.
7355         (fold_build_call_array_initializer_loc): Moved to fold-const.h.
7356         (fold_build_call_array_loc): Moved to fold-const.h.
7357         (fold_build_cleanup_point_expr): Moved to fold-const.h.
7358         (fold_convert): Moved to fold-const.h.
7359         (fold_convert_loc): Moved to fold-const.h.
7360         (fold_convertible_p): Moved to fold-const.h.
7361         (fold_defer_overflow_warnings): Moved to fold-const.h.
7362         (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
7363         (fold_fma): Moved to fold-const.h.
7364         (fold_ignored_result): Moved to fold-const.h.
7365         (fold_indirect_ref): Moved to fold-const.h.
7366         (fold_indirect_ref_1): Moved to fold-const.h.
7367         (fold_indirect_ref_loc): Moved to fold-const.h.
7368         (fold_read_from_constant_string): Moved to fold-const.h.
7369         (fold_real_zero_addition_p): Moved to fold-const.h.
7370         (fold_single_bit_test): Moved to fold-const.h.
7371         (fold_strip_sign_ops): Moved to fold-const.h.
7372         (fold_ternary): Moved to fold-const.h.
7373         (fold_ternary_loc): Moved to fold-const.h.
7374         (fold_unary): Moved to tree-data-ref.h.
7375         (fold_unary_ignore_overflow): Moved to fold-const.h.
7376         (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
7377         (fold_unary_loc): Moved to fold-const.h.
7378         (fold_unary_to_constant): Moved to fold-const.h.
7379         (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
7380         (fold_undefer_overflow_warnings): Moved to fold-const.h.
7381         (folding_initializer): Moved to fold-const.h.
7382         (free_temp_slots): Moved to function.h.
7383         (generate_setjmp_warnings): Moved to function.h.
7384         (get_attribute_name): Moved to attribs.h.
7385         (get_identifier): Moved to stringpool.h.
7386         (get_identifier_with_length): Moved to stringpool.h.
7387         (get_inner_reference): Moved to tree.h.
7388         (gimple_alloca_call_p): Moved to calls.h.
7389         (gimplify_parameters): Moved to function.h.
7390         (highest_pow2_factor): Moved to expr.h.
7391         (indent_to): Moved to print-tree.h.
7392         (init_attributes): Moved to attribs.h.
7393         (init_dummy_function_start): Moved to function.h.
7394         (init_function_start): Moved to function.h.
7395         (init_inline_once): Moved to tree-inline.h.
7396         (init_object_sizes): Moved to tree-object-size.h.
7397         (init_temp_slots): Moved to function.h.
7398         (init_tree_optimization_optabs): Moved to optabs.h.
7399         (initialize_sizetypes): Moved to stor-layout.h.
7400         (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
7401         (initializer_constant_valid_p): Moved to varasm.h.
7402         (int_const_binop): Moved to fold-const.h.
7403         (internal_reference_types): Moved to stor-layout.h.
7404         (invert_tree_comparison): Moved to fold-const.h.
7405         (invert_truthvalue): Moved to fold-const.h.
7406         (invert_truthvalue_loc): Moved to fold-const.h.
7407         (is_tm_ending_fndecl): Moved to trans-mem.h.
7408         (is_tm_may_cancel_outer): Moved to trans-mem.h.
7409         (is_tm_pure): Moved to trans-mem.h.
7410         (is_tm_safe): Moved to trans-mem.h.
7411         (layout_decl): Moved to stor-layout.h.
7412         (layout_type): Moved to stor-layout.h.
7413         (lookup_attribute_spec): Moved to attribs.h.
7414         (make_accum_type): Moved to stor-layout.h.
7415         (make_decl_one_only): Moved to varasm.h.
7416         (make_decl_rtl): Moved to tree.h.
7417         (make_decl_rtl_for_debug): Moved to varasm.h.
7418         (make_fract_type): Moved to stor-layout.h.
7419         (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
7420         (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
7421         (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
7422         (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
7423         (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
7424         (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
7425         (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
7426         (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
7427         (make_range): Moved to fold-const.h.
7428         (make_range_step): Moved to fold-const.h.
7429         (make_sat_signed_accum_type): Moved to stor-layout.h.
7430         (make_sat_signed_fract_type): Moved to stor-layout.h.
7431         (make_sat_unsigned_accum_type): Moved to stor-layout.h.
7432         (make_sat_unsigned_fract_type): Moved to stor-layout.h.
7433         (make_signed_accum_type): Moved to stor-layout.h.
7434         (make_signed_fract_type): Moved to stor-layout.h.
7435         (make_signed_type): Moved to stor-layout.h.
7436         (make_unsigned_accum_type): Moved to stor-layout.h.
7437         (make_unsigned_fract_type): Moved to stor-layout.h.
7438         (make_unsigned_type): Moved to stor-layout.h.
7439         (mark_decl_referenced): Moved to varasm.h.
7440         (mark_referenced): Moved to varasm.h.
7441         (may_negate_without_overflow_p): Moved to fold-const.h.
7442         (maybe_get_identifier): Moved to stringpool.h.
7443         (merge_ranges): Moved to fold-const.h.
7444         (merge_weak): Moved to varasm.h.
7445         (mode_for_size_tree): Moved to stor-layout.h.
7446         (multiple_of_p): Moved to fold-const.h.
7447         (must_pass_in_stack_var_size): Moved to calls.h.
7448         (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
7449         (native_encode_expr): Moved to fold-const.h.
7450         (native_interpret_expr): Moved to fold-const.h.
7451         (non_lvalue): Moved to fold-const.h.
7452         (non_lvalue_loc): Moved to fold-const.h.
7453         (normalize_offset): Moved to stor-layout.h.
7454         (normalize_rli): Moved to stor-layout.h.
7455         (notice_global_symbol): Moved to varasm.h.
7456         (omit_one_operand): Moved to fold-const.h.
7457         (omit_one_operand_loc): Moved to fold-const.h.
7458         (omit_two_operands): Moved to fold-const.h.
7459         (omit_two_operands_loc): Moved to fold-const.h.
7460         (operand_equal_p): Moved to tree-data-ref.h.
7461         (parse_input_constraint): Moved to stmt.h.
7462         (parse_output_constraint): Moved to stmt.h.
7463         (place_field): Moved to stor-layout.h.
7464         (pop_function_context): Moved to function.h.
7465         (pop_temp_slots): Moved to function.h.
7466         (pos_from_bit): Moved to stor-layout.h.
7467         (preserve_temp_slots): Moved to function.h.
7468         (print_node): Moved to print-tree.h.
7469         (print_node_brief): Moved to print-tree.h.
7470         (print_rtl): Moved to rtl.h.
7471         (process_pending_assemble_externals): Moved to varasm.h.
7472         (ptr_difference_const): Moved to fold-const.h.
7473         (push_function_context): Moved to function.h.
7474         (push_struct_function): Moved to function.h.
7475         (push_temp_slots): Moved to function.h.
7476         (record_tm_replacement): Moved to trans-mem.h.
7477         (relayout_decl): Moved to stor-layout.h.
7478         (resolve_asm_operand_names): Moved to stmt.h.
7479         (resolve_unique_section): Moved to varasm.h.
7480         (rli_size_so_far): Moved to stor-layout.h.
7481         (rli_size_unit_so_far): Moved to stor-layout.h.
7482         (round_down): Moved to fold-const.h.
7483         (round_down_loc): Moved to fold-const.h.
7484         (round_up): Moved to fold-const.h.
7485         (round_up_loc): Moved to fold-const.h.
7486         (set_decl_incoming_rtl): Moved to emit-rtl.h.
7487         (set_decl_rtl): Moved to tree.h.
7488         (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
7489         (set_user_assembler_name): Moved to varasm.h.
7490         (setjmp_call_p): Moved to calls.h.
7491         (size_binop): Moved to fold-const.h.
7492         (size_binop_loc): Moved to fold-const.h.
7493         (size_diffop): Moved to fold-const.h.
7494         (size_diffop_loc): Moved to fold-const.h.
7495         (size_int_kind): Moved to fold-const.h.
7496         (stack_protect_epilogue): Moved to function.h.
7497         (start_record_layout): Moved to stor-layout.h.
7498         (supports_one_only): Moved to varasm.h.
7499         (swap_tree_comparison): Moved to fold-const.h.
7500         (tm_malloc_replacement): Moved to trans-mem.h.
7501         (tree build_fold_addr_expr_loc): Moved to fold-const.h.
7502         (tree build_invariant_address): Moved to fold-const.h.
7503         (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
7504         (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
7505         (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
7506         (tree_expr_nonnegative_p): Moved to fold-const.h.
7507         (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
7508         (tree_output_constant_def): Moved to varasm.h.
7509         (tree_overlaps_hard_reg_set): Moved to stmt.h.
7510         (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
7511         (tree_single_nonzero_warnv_p): Moved to fold-const.h.
7512         (tree_swap_operands_p): Moved to fold-const.h.
7513         (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
7514         (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
7515         (update_alignment_for_field): Moved to stor-layout.h.
7516         (use_register_for_decl): Moved to function.h.
7517         (variable_size): Moved to rtl.h.
7518         (vector_type_mode): Moved to stor-layout.h.
7519         * cgraph.h: Corresponding changes.
7520         * emit-rtl.h: Corresponding changes.
7521         * expr.h: Corresponding changes.
7522         * function.h: Corresponding changes.
7523         * optabs.h: Corresponding changes.
7524         * trans-mem.h: Corresponding changes.
7525         Protect against multiple inclusion.
7526         * tree-inline.h: Corresponding changes.
7527         * tree-iterator.h: Corresponding changes.
7528         * tree-dfa.h: Include expr.h.
7529         * tree-ssanames.h: Include stringpool.h.
7530         * attribs.h: New file.
7531         * calls.h: New file.
7532         * fold-const.h: New file.
7533         * gcc-symtab.h: New file.
7534         * print-rtl.h: New file.
7535         * print-tree.h: New file.
7536         * stmt.h: New file.
7537         * stor-layout.h: New file.
7538         * strinpool.h: New file.
7539         * tree-nested.h: New file
7540         * tree-object-size.h: New file.
7541         * varasm.h: New file.
7543 2013-11-14  Diego Novillo  <dnovillo@google.com>
7545         * alias.c: Include varasm.h.
7546         Include expr.h.
7547         * asan.c: Include calls.h.
7548         Include stor-layout.h.
7549         Include varasm.h.
7550         * attribs.c: Include stringpool.h.
7551         Include attribs.h.
7552         Include stor-layout.h.
7553         * builtins.c: Include stringpool.h.
7554         Include stor-layout.h.
7555         Include calls.h.
7556         Include varasm.h.
7557         Include tree-object-size.h.
7558         * calls.c: Include stor-layout.h.
7559         Include varasm.h.
7560         Include stringpool.h.
7561         Include attribs.h.
7562         * cfgexpand.c: Include stringpool.h.
7563         Include varasm.h.
7564         Include stor-layout.h.
7565         Include stmt.h.
7566         Include print-tree.h.
7567         * cgraph.c: Include varasm.h.
7568         Include calls.h.
7569         Include print-tree.h.
7570         * cgraphclones.c: Include stringpool.h.
7571         Include function.h.
7572         Include emit-rtl.h.
7573         Move inclusion of rtl.h earlier in the file.
7574         * cgraphunit.c: Include varasm.h.
7575         Include stor-layout.h.
7576         Include stringpool.h.
7577         * cilk-common.c: Include stringpool.h.
7578         Include stor-layout.h.
7579         * combine.c: Include stor-layout.h.
7580         * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
7581         Include stringpool.h.
7582         Include calls.h.
7583         * config/aarch64/aarch64.c: Include stringpool.h.
7584         Include stor-layout.h.
7585         Include calls.h.
7586         Include varasm.h.
7587         * config/alpha/alpha.c: Include stor-layout.h.
7588         Include calls.h.
7589         Include varasm.h.
7590         * config/arc/arc.c: Include varasm.h.
7591         Include stor-layout.h.
7592         Include stringpool.h.
7593         Include calls.h.
7594         * config/arm/arm.c: Include stringpool.h.
7595         Include stor-layout.h.
7596         Include calls.h.
7597         Include varasm.h.
7598         * config/avr/avr-c.c: Include stor-layout.h.
7599         * config/avr/avr-log.c: Include print-tree.h.
7600         * config/avr/avr.c: Include print-tree.h.
7601         Include calls.h.
7602         Include stor-layout.h.
7603         Include stringpool.h.
7604         * config/bfin/bfin.c: Include varasm.h.
7605         Include calls.h.
7606         * config/c6x/c6x.c: Include stor-layout.h.
7607         Include varasm.h.
7608         Include calls.h.
7609         Include stringpool.h.
7610         * config/cr16/cr16.c: Include stor-layout.h.
7611         Include calls.h.
7612         * config/cris/cris.c: Include varasm.h.
7613         Include stor-layout.h.
7614         Include calls.h.
7615         Include stmt.h.
7616         * config/darwin.c: Include stringpool.h.
7617         Include varasm.h.
7618         Include stor-layout.h.
7619         * config/epiphany/epiphany.c: Include stor-layout.h.
7620         Include varasm.h.
7621         Include calls.h.
7622         Include stringpool.h.
7623         * config/fr30/fr30.c: Include stor-layout.h.
7624         Include varasm.h.
7625         * config/frv/frv.c: Include varasm.h.
7626         Include stor-layout.h.
7627         Include stringpool.h.
7628         * config/h8300/h8300.c: Include stor-layout.h.
7629         Include varasm.h.
7630         Include calls.h.
7631         Include stringpool.h.
7632         * config/i386/i386.c: Include stringpool.h.
7633         Include attribs.h.
7634         Include calls.h.
7635         Include stor-layout.h.
7636         Include varasm.h.
7637         * config/i386/winnt-cxx.c: Include stringpool.h.
7638         Include attribs.h.
7639         * config/i386/winnt.c: Include stringpool.h.
7640         Include varasm.h.
7641         * config/ia64/ia64-c.c: Include stringpool.h.
7642         * config/ia64/ia64.c: Include stringpool.h.
7643         Include stor-layout.h.
7644         Include calls.h.
7645         Include varasm.h.
7646         * config/iq2000/iq2000.c: Include stor-layout.h.
7647         Include calls.h.
7648         Include varasm.h.
7649         * config/lm32/lm32.c: Include calls.h.
7650         * config/m32c/m32c.c: Include stor-layout.h.
7651         Include varasm.h.
7652         Include calls.h.
7653         * config/m32r/m32r.c: Include stor-layout.h.
7654         Include varasm.h.
7655         Include stringpool.h.
7656         Include calls.h.
7657         * config/m68k/m68k.c: Include calls.h.
7658         Include stor-layout.h.
7659         Include varasm.h.
7660         * config/mcore/mcore.c: Include stor-layout.h.
7661         Include varasm.h.
7662         Include stringpool.h.
7663         Include calls.h.
7664         * config/mep/mep.c: Include varasm.h.
7665         Include calls.h.
7666         Include stringpool.h.
7667         Include stor-layout.h.
7668         * config/microblaze/microblaze.c: Include varasm.h.
7669         Include stor-layout.h.
7670         Include calls.h.
7671         * config/mips/mips.c: Include varasm.h.
7672         Include stringpool.h.
7673         Include stor-layout.h.
7674         Include calls.h.
7675         * config/mmix/mmix.c: Include varasm.h.
7676         Include stor-layout.h.
7677         Include calls.h.
7678         * config/mn10300/mn10300.c: Include stor-layout.h.
7679         Include varasm.h.
7680         Include calls.h.
7681         * config/moxie/moxie.c: Include stor-layout.h.
7682         Include varasm.h.
7683         Include calls.h.
7684         * config/msp430/msp430.c: Include stor-layout.h.
7685         Include calls.h.
7686         * config/nds32/nds32.c: Include stor-layout.h.
7687         Include varasm.h.
7688         Include calls.h.
7689         * config/pa/pa.c: Include stor-layout.h.
7690         Include stringpool.h.
7691         Include varasm.h.
7692         Include calls.h.
7693         * config/pdp11/pdp11.c: Include stor-layout.h.
7694         Include varasm.h.
7695         Include calls.h.
7696         * config/picochip/picochip.c: Include calls.h.
7697         Include stor-layout.h.
7698         Include stringpool.h.
7699         Include varasm.h.
7700         * config/rl78/rl78.c: Include varasm.h.
7701         Include stor-layout.h.
7702         Include calls.h.
7703         * config/rs6000/rs6000-c.c: Include stor-layout.h.
7704         Include stringpool.h.
7705         * config/rs6000/rs6000.c: Include stringpool.h.
7706         Include stor-layout.h.
7707         Include calls.h.
7708         Include print-tree.h.
7709         Include varasm.h.
7710         * config/rx/rx.c: Include varasm.h.
7711         Include stor-layout.h.
7712         Include calls.h.
7713         * config/s390/s390.c: Include print-tree.h.
7714         Include stringpool.h.
7715         Include stor-layout.h.
7716         Include varasm.h.
7717         Include calls.h.
7718         * config/score/score.c: Include stringpool.h.
7719         Include calls.h.
7720         Include varasm.h.
7721         Include stor-layout.h.
7722         * config/sh/sh-c.c: Include stringpool.h.
7723         Include attribs.h.h.
7724         * config/sh/sh.c: Include stringpool.h.
7725         Include stor-layout.h.
7726         Include calls.h.
7727         Include varasm.h.
7728         * config/sol2-c.c: Include stringpool.h.
7729         Include attribs.h.
7730         * config/sol2-cxx.c: Include stringpool.h.
7731         * config/sol2.c: Include stringpool.h.
7732         Include varasm.h.
7733         * config/sparc/sparc.c: Include stringpool.h.
7734         Include stor-layout.h.
7735         Include calls.h.
7736         Include varasm.h.
7737         * config/spu/spu-c.c: Include stringpool.h.
7738         * config/spu/spu.c: Include stringpool.h.
7739         Include stor-layout.h.
7740         Include calls.h.
7741         Include varasm.h.
7742         * config/stormy16/stormy16.c: Include stringpool.h.
7743         Include stor-layout.h.
7744         Include varasm.h.
7745         Include calls.h.
7746         * config/tilegx/tilegx.c: Include stringpool.h.
7747         Include stor-layout.h.
7748         Include varasm.h.
7749         Include calls.h.
7750         * config/tilepro/tilepro.c: Include stringpool.h.
7751         Include stor-layout.h.
7752         Include varasm.h.
7753         Include calls.h.
7754         * config/v850/v850-c.c: Include stringpool.h.
7755         Include attribs.h.
7756         * config/v850/v850.c: Include stringpool.h.
7757         Include stor-layout.h.
7758         Include varasm.h.
7759         Include calls.h.
7760         * config/vax/vax.c: Include calls.h.
7761         Include varasm.h.
7762         * config/vms/vms.c: Include stringpool.h.
7763         * config/vxworks.c: Include stringpool.h.
7764         * config/xtensa/xtensa.c: Include stringpool.h.
7765         Include stor-layout.h.
7766         Include calls.h.
7767         Include varasm.h.
7768         * convert.c: Include stor-layout.h.
7769         * coverage.c: Include stringpool.h.
7770         Include stor-layout.h.
7771         * dbxout.c: Include varasm.h.
7772         Include stor-layout.h.
7773         * dojump.c: Include stor-layout.h.
7774         * dse.c: Include stor-layout.h.
7775         * dwarf2asm.c: Include stringpool.h.
7776         Include varasm.h.
7777         * dwarf2cfi.c: Include stor-layout.h.
7778         * dwarf2out.c: Include rtl.h.
7779         Include stringpool.h.
7780         Include stor-layout.h.
7781         Include varasm.h.
7782         Include function.h.
7783         Include emit-rtl.h.
7784         Move inclusion of rtl.h earlier in the file.
7785         * emit-rtl.c: Include varasm.h.
7786         * except.c: Include stringpool.h.
7787         Include stor-layout.h.
7788         * explow.c: Include stor-layout.h.
7789         * expmed.c: Include stor-layout.h.
7790         * expr.c: Include stringpool.h.
7791         Include stor-layout.h.
7792         Include attribs.h.
7793         Include varasm.h.
7794         * final.c: Include varasm.h.
7795         * fold-const.c: Include stor-layout.h.
7796         Include calls.h.
7797         Include tree-iterator.h.
7798         * function.c: Include stor-layout.h.
7799         Include varasm.h.
7800         Include stringpool.h.
7801         * genattrtab.c (write_header): Emit includes for varasm.h,
7802         stor-layout.h and calls.h.
7803         * genautomata.c (main): Likewise.
7804         * genemit.c: Likewise.
7805         * genopinit.c: Likewise.
7806         * genoutput.c (output_prologue): Likewise.
7807         * genpeep.c: Likewise.
7808         * genpreds.c (write_insn_preds_c): Likewise.
7809         * gengtype.c (open_base_files): Add stringpool.h.
7810         * gimple-expr.c: Include stringpool.h.
7811         Include stor-layout.h.
7812         * gimple-fold.c: Include stringpool.h.
7813         Include expr.h.
7814         Include stmt.h.
7815         Include stor-layout.h.
7816         * gimple-low.c: Include tree-nested.h.
7817         Include calls.h.
7818         * gimple-pretty-print.c: Include stringpool.h.
7819         * gimple-ssa-strength-reduction.c: Include stor-layout.h.
7820         Include expr.h.
7821         * gimple-walk.c: Include stmt.h.
7822         * gimple.c: Include calls.h.
7823         Include stmt.h.
7824         Include stor-layout.h.
7825         * gimplify.c: Include stringpool.h.
7826         Include calls.h.
7827         Include varasm.h.
7828         Include stor-layout.h.
7829         Include stmt.h.
7830         Include print-tree.h.
7831         Include expr.h.
7832         * gimplify-me.c: Include stmt.h
7833         Include stor-layout.h
7834         * internal-fn.c: Include stor-layout.h.
7835         * ipa-devirt.c: Include print-tree.h.
7836         Include calls.h.
7837         * ipa-inline-analysis.c: Include stor-layout.h.
7838         Include stringpool.h.
7839         Include print-tree.h.
7840         * ipa-inline.c: Include trans-mem.h.
7841         Include calls.h.
7842         * ipa-prop.c: Include expr.h.
7843         Include stor-layout.h.
7844         Include print-tree.h.
7845         * ipa-pure-const.c: Include print-tree.h.
7846         Include calls.h.
7847         * ipa-reference.c: Include calls.h.
7848         * ipa-split.c: Include stringpool.h.
7849         Include expr.h.
7850         Include calls.h.
7851         * ipa.c: Include calls.h.
7852         Include stringpool.h.
7853         * langhooks.c: Include stringpool.h.
7854         Include attribs.h.
7855         * lto-cgraph.c: Include stringpool.h.
7856         * lto-streamer-in.c: Include stringpool.h.
7857         * lto-streamer-out.c: Include stor-layout.h.
7858         Include stringpool.h.
7859         * omp-low.c: Include stringpool.h.
7860         Include stor-layout.h.
7861         Include expr.h.
7862         * optabs.c: Include stor-layout.h.
7863         Include stringpool.h.
7864         Include varasm.h.
7865         * passes.c: Include varasm.h.
7866         * predict.c: Include calls.h.
7867         * print-rtl.c: Include print-tree.h.
7868         * print-tree.c: Include varasm.h.
7869         Include print-rtl.h.
7870         Include stor-layout.h.
7871         * realmpfr.c: Include stor-layout.h.
7872         * reg-stack.c: Include varasm.h.
7873         * sdbout.c: Include varasm.h.
7874         Include stor-layout.h.
7875         * simplify-rtx.c: Include varasm.h.
7876         * stmt.c: Include varasm.h.
7877         Include stor-layout.h.
7878         * stor-layout.c: Include stor-layout.h.
7879         Include stringpool.h.
7880         Include varasm.h.
7881         Include print-tree.h.
7882         * symtab.c: Include rtl.h.
7883         Include print-tree.h.
7884         Include varasm.h.
7885         Include function.h.
7886         Include emit-rtl.h.
7887         * targhooks.c: Include stor-layout.h.
7888         Include varasm.h.
7889         * toplev.c: Include varasm.h.
7890         Include tree-inline.h.
7891         * trans-mem.c: Include calls.h.
7892         Include function.h.
7893         Include rtl.h.
7894         Include emit-rtl.h.
7895         * tree-affine.c: Include expr.h.
7896         * tree-browser.c: Include print-tree.h.
7897         * tree-call-cdce.c: Include stor-layout.h.
7898         * tree-cfg.c: Include trans-mem.h.
7899         Include stor-layout.h.
7900         Include print-tree.h.
7901         * tree-complex.c: Include stor-layout.h.
7902         * tree-data-ref.c: Include expr.h.
7903         * tree-dfa.c: Include stor-layout.h.
7904         * tree-eh.c: Include expr.h.
7905         Include calls.h.
7906         * tree-emutls.c: Include stor-layout.h.
7907         Include varasm.h.
7908         * tree-if-conv.c: Include stor-layout.h.
7909         * tree-inline.c: Include stor-layout.h.
7910         Include calls.h.
7911         * tree-loop-distribution.c: Include stor-layout.h.
7912         * tree-nested.c: Include stringpool.h.
7913         Include stor-layout.h.
7914         * tree-object-size.c: Include tree-object-size.h.
7915         * tree-outof-ssa.c: Include stor-layout.h.
7916         * tree-parloops.c: Include stor-layout.h.
7917         Include tree-nested.h.
7918         * tree-pretty-print.c: Include stor-layout.h.
7919         Include expr.h.
7920         * tree-profile.c: Include varasm.h.
7921         Include tree-nested.h.
7922         * tree-scalar-evolution.c: Include expr.h.
7923         * tree-sra.c: Include stor-layout.h.
7924         * tree-ssa-address.c: Include stor-layout.h.
7925         * tree-ssa-ccp.c: Include stor-layout.h.
7926         * tree-ssa-dce.c: Include calls.h.
7927         * tree-ssa-dom.c: Include stor-layout.h.
7928         * tree-ssa-forwprop.c: Include stor-layout.h.
7929         * tree-ssa-ifcombine.c: Include stor-layout.h.
7930         * tree-ssa-loop-ivopts.c: Include stor-layout.h.
7931         * tree-ssa-loop-niter.c: Include calls.h.
7932         Include expr.h.
7933         * tree-ssa-loop-prefetch.c: Include stor-layout.h.
7934         * tree-ssa-math-opts.c: Include stor-layout.h.
7935         * tree-ssa-operands.c: Include stmt.h.
7936         Include print-tree.h.
7937         * tree-ssa-phiopt.c: Include stor-layout.h.
7938         * tree-ssa-reassoc.c: Include stor-layout.h.
7939         * tree-ssa-sccvn.c: Include stor-layout.h.
7940         * tree-ssa-sink.c: Include stor-layout.h.
7941         * tree-ssa-strlen.c: Include stor-layout.h.
7942         * tree-ssa-structalias.c: Include stor-layout.h.
7943         Include stmt.h.
7944         * tree-ssa-tail-merge.c: Include stor-layout.h.
7945         Include trans-mem.h.
7946         * tree-ssa-uncprop.c: Include stor-layout.h.
7947         * tree-ssa.c: Include stor-layout.h.
7948         * tree-ssanames.c: Include stor-layout.h.
7949         * tree-streamer-in.c: Include stringpool.h.
7950         * tree-streamer-out.c: Include stor-layout.h.
7951         * tree-switch-conversion.c: Include varasm.h.
7952         Include stor-layout.h.
7953         * tree-tailcall.c: Include stor-layout.h.
7954         * tree-vect-data-refs.c: Include stor-layout.h.
7955         * tree-vect-generic.c: Include stor-layout.h.
7956         * tree-vect-loop.c: Include stor-layout.h.
7957         * tree-vect-patterns.c: Include stor-layout.h.
7958         * tree-vect-slp.c: Include stor-layout.h.
7959         * tree-vect-stmts.c: Include stor-layout.h.
7960         * tree-vectorizer.c: Include stor-layout.h.
7961         * tree-vrp.c: Include stor-layout.h.
7962         Include calls.h.
7963         * tree.c: Include stor-layout.h.
7964         Include calls.h.
7965         Include attribs.h.
7966         Include varasm.h.
7967         * tsan.c: Include expr.h.
7968         * ubsan.c: Include stor-layout.h.
7969         Include stringpool.h.
7970         * value-prof.c: Include tree-nested.h.
7971         Include calls.h.
7972         * var-tracking.c: Include varasm.h.
7973         Include stor-layout.h.
7974         * varasm.c: Include stor-layout.h.
7975         Include stringpool.h.
7976         Include gcc-symtab.h.
7977         Include varasm.h.
7978         * varpool.c: Include varasm.h.
7979         * vmsdbgout.c: Include varasm.h.
7980         * xcoffout.c: Include varasm.h.
7982 2013-11-14  Joern Rennecke  <joern.rennecke@embecosm.com>
7984         * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
7985         use (.&-4) idiom.
7987 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7989         * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
7991 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7992             Alan Modra  <amodra@gmail.com>
7994         * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
7995         (RS6000_SAVE_TOC): Remove.
7996         (RS6000_TOC_SAVE_SLOT): New macro.
7997         * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
7998         (rs6000_parm_start): Use it.
7999         (rs6000_function_arg_advance_1): Likewise.
8000         (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
8001         (rs6000_emit_epilogue): Likewise.
8002         (rs6000_call_aix): Likewise.
8003         (rs6000_output_function_prologue): Do not save/restore r11
8004         around calling _mcount for ABI_ELFv2.
8006 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8007             Alan Modra  <amodra@gmail.com>
8009         * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
8010         Add prototype.
8011         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
8012         (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
8013         * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
8014         (rs6000_function_parms_need_stack): Likewise.
8015         (rs6000_reg_parm_stack_space): Likewise.
8016         (rs6000_function_arg): Do not replace BLKmode by Pmode when
8017         returning a register argument.
8019 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8020             Michael Gschwind  <mkg@us.ibm.com>
8022         * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
8023         (ALTIVEC_ARG_MAX_RETURN): Likewise.
8024         (FUNCTION_VALUE_REGNO_P): Use them.
8025         * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
8026         (rs6000_return_in_msb): New function.
8027         (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
8028         Handle aggregates of up to 16 bytes for ELFv2.
8029         (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
8031 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8032             Michael Gschwind  <mkg@us.ibm.com>
8034         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
8035         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
8036         (rs6000_discover_homogeneous_aggregate): Likewise.
8037         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
8038         (rs6000_function_arg_advance_1): Likewise.
8039         (rs6000_function_arg): Likewise.
8040         (rs6000_arg_partial_bytes): Likewise.
8041         (rs6000_psave_function_arg): Handle BLKmode arguments.
8043 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8044             Michael Gschwind  <mkg@us.ibm.com>
8046         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
8047         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
8048         (rs6000_discover_homogeneous_aggregate): Likewise.
8049         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
8050         (rs6000_function_arg_advance_1): Likewise.
8051         (rs6000_function_arg): Likewise.
8052         (rs6000_arg_partial_bytes): Likewise.
8053         (rs6000_psave_function_arg): Handle BLKmode arguments.
8055 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8057         * config/rs6000/rs6000.c (machine_function): New member
8058         r2_setup_needed.
8059         (rs6000_emit_prologue): Set r2_setup_needed if necessary.
8060         (rs6000_output_mi_thunk): Set r2_setup_needed.
8061         (rs6000_output_function_prologue): Output global entry point
8062         prologue and local entry point marker if needed for ABI_ELFv2.
8063         Output -mprofile-kernel code here.
8064         (output_function_profiler): Do not output -mprofile-kernel
8065         code here; moved to rs6000_output_function_prologue.
8066         (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
8068         (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
8069         (rs6000_output_function_entry): Likewise.
8070         (rs6000_assemble_integer): Likewise.
8071         (rs6000_elf_encode_section_info): Likewise.
8072         (rs6000_elf_declare_function_name): Do not create dot symbols
8073         or .opd section for ABI_ELFv2.
8075         (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
8076         (rs6000_trampoline_init): Likewise.
8077         (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
8079         (rs6000_call_aix): Handle ELFv2 indirect calls.  Do not check
8080         for function descriptors in ABI_ELFv2.
8082         * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
8083         on ABI_AIX only, not ABI_ELFv2.
8084         ("*call_value_indirect_aix<mode>"): Likewise.
8085         ("*call_indirect_elfv2<mode>"): New pattern.
8086         ("*call_value_indirect_elfv2<mode>"): Likewise.
8088         * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
8089         check for function descriptors in ABI_ELFv2.
8090         ("current_file_function_operand"): Likewise.
8092         * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
8093         (toc): Undefine.
8094         (FUNC_NAME): Define ELFv2 variant.
8095         (JUMP_TARGET): Likewise.
8096         (FUNC_START): Likewise.
8097         (HIDDEN_FUNC): Likewise.
8098         (FUNC_END): Likeiwse.
8100 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8102         * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
8103         and --with-abi=elfv2.
8104         * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
8105         * config/rs6000/rs6000.opt (mabi=elfv1): New option.
8106         (mabi=elfv2): Likewise.
8107         * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
8108         * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
8109         if !RS6000_BI_ARCH.
8110         (ELFv2_ABI_CHECK): New macro.
8111         (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
8112         rs6000_current_abi to ABI_AIX or ABI_ELFv2.
8113         (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
8114         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
8115         _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
8117         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
8118         (debug_stack_info): Likewise.
8119         (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
8120         (rs6000_legitimize_tls_address): Likewise.
8121         (rs6000_conditional_register_usage): Likewise.
8122         (rs6000_emit_move): Likewise.
8123         (init_cumulative_args): Likewise.
8124         (rs6000_function_arg_advance_1): Likewise.
8125         (rs6000_function_arg): Likewise.
8126         (rs6000_arg_partial_bytes): Likewise.
8127         (rs6000_output_function_entry): Likewise.
8128         (rs6000_assemble_integer): Likewise.
8129         (rs6000_savres_strategy): Likewise.
8130         (rs6000_stack_info): Likewise.
8131         (rs6000_function_ok_for_sibcall): Likewise.
8132         (rs6000_emit_load_toc_table): Likewise.
8133         (rs6000_savres_routine_name): Likewise.
8134         (ptr_regno_for_savres): Likewise.
8135         (rs6000_emit_prologue): Likewise.
8136         (rs6000_emit_epilogue): Likewise.
8137         (rs6000_output_function_epilogue): Likewise.
8138         (output_profile_hook): Likewise.
8139         (output_function_profiler): Likewise.
8140         (rs6000_trampoline_size): Likewise.
8141         (rs6000_trampoline_init): Likewise.
8142         (rs6000_elf_output_toc_section_asm_op): Likewise.
8143         (rs6000_elf_encode_section_info): Likewise.
8144         (rs6000_elf_reloc_rw_mask): Likewise.
8145         (rs6000_elf_declare_function_name): Likewise.
8146         (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
8147         except that rs6000_compat_align_parm is always assumed false.
8148         (rs6000_gimplify_va_arg): Likewise.
8149         (rs6000_call_aix): Update comment.
8150         (rs6000_sibcall_aix): Likewise.
8151         * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
8152         Treat ABI_ELFv2 the same as ABI_AIX.
8153         ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
8154         ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
8155         ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
8156         ("load_toc_aix_si"): Likewise.
8157         ("load_toc_aix_di"): Likewise.
8158         ("call"): Likewise.
8159         ("call_value"): Likewise.
8160         ("*call_local_aix<mode>"): Likewise.
8161         ("*call_value_local_aix<mode>"): Likewise.
8162         ("*call_nonlocal_aix<mode>"): Likewise.
8163         ("*call_value_nonlocal_aix<mode>"): Likewise.
8164         ("*call_indirect_aix<mode>"): Likewise.
8165         ("*call_value_indirect_aix<mode>"): Likewise.
8166         ("sibcall"): Likewise.
8167         ("sibcall_value"): Likewise.
8168         ("*sibcall_aix<mode>"): Likewise.
8169         ("*sibcall_value_aix<mode>"): Likewise.
8170         * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
8171         ("current_file_function_operand"): Likewise.
8173 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8175         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
8176         by making use of the fact that for vector / floating point arguments
8177         passed both in VRs/FPRs and in the fixed parameter area, the partial
8178         bytes mechanism is in fact not used.
8180 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8182         * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
8183         (rs6000_finish_function_arg): Likewise.
8184         (rs6000_function_arg): Use rs6000_psave_function_arg and
8185         rs6000_finish_function_arg to handle both vector and floating
8186         point arguments that are also passed in GPRs / the stack.
8188 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8190         * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
8191         (USE_ALTIVEC_FOR_ARG_P): Likewise.
8192         (rs6000_darwin64_record_arg_advance_recurse): Update uses.
8193         (rs6000_function_arg_advance_1):Likewise.
8194         (rs6000_darwin64_record_arg_recurse): Likewise.
8195         (rs6000_function_arg): Likewise.
8196         (rs6000_arg_partial_bytes): Likewise.
8198 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8200         * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
8201         "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
8202         (rs6000_savres_strategy): Likewise.
8203         (rs6000_return_addr): Likewise.
8204         (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
8205         testing for ABI_V4 (since ABI_DARWIN is impossible here).
8206         (rs6000_emit_prologue): Likewise.
8207         (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
8208         (rs6000_elf_declare_function_name): Remove duplicated test.
8209         * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
8210         for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
8211         ("load_toc_v4_PIC_1_normal"): Likewise.
8212         ("load_toc_v4_PIC_1_476"): Likewise.
8213         ("load_toc_v4_PIC_1b"): Likewise.
8214         ("load_toc_v4_PIC_1b_normal"): Likewise.
8215         ("load_toc_v4_PIC_1b_476"): Likewise.
8216         ("load_toc_v4_PIC_2"): Likewise.
8217         ("load_toc_v4_PIC_3b"): Likewise.
8218         ("load_toc_v4_PIC_3c"): Likewise.
8219         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
8220         (RS6000_SAVE_AREA): Likewise.
8221         (FP_ARG_MAX_REG): Likewise.
8222         (RETURN_ADDRESS_OFFSET): Likewise.
8223         * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
8224         of ABI_AIX.
8225         (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
8226         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
8228 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8230         * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
8231         (rs6000_call_aix): ... this.  Handle both direct and indirect calls.
8232         Create call insn directly instead of via various gen_... routines.
8233         Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
8234         (rs6000_sibcall_aix): New function.
8235         * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
8236         (TOC_SAVE_OFFSET_64BIT): Likewise.
8237         (AIX_FUNC_DESC_TOC_32BIT): Likewise.
8238         (AIX_FUNC_DESC_TOC_64BIT): Likewise.
8239         (AIX_FUNC_DESC_SC_32BIT): Likewise.
8240         (AIX_FUNC_DESC_SC_64BIT): Likewise.
8241         ("call" expander): Call rs6000_call_aix.
8242         ("call_value" expander): Likewise.
8243         ("call_indirect_aix<ptrsize>"): Replace this pattern ...
8244         ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
8245         ("*call_indirect_aix<mode>"): ... by this insn pattern.
8246         ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
8247         ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
8248         ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
8249         ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
8250         ("*call_nonlocal_aix<mode>"): ... this pattern.
8251         ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
8252         ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
8253         ("*call_local_aix<mode>"): New insn pattern.
8254         ("*call_value_local_aix<mode>"): Likewise.
8255         ("sibcall" expander): Call rs6000_sibcall_aix.
8256         ("sibcall_value" expander): Likewise.  Move earlier in file.
8257         ("*sibcall_nonlocal_aix<mode>"): Replace by ...
8258         ("*sibcall_aix<mode>"): ... this pattern.
8259         ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
8260         ("*sibcall_value_aix<mode>"): ... this pattern.
8261         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
8262         (rs6000_call_aix): Add prototype.
8263         (rs6000_sibcall_aix): Likewise.
8265 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
8267         PR sanitizer/59122
8268         * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
8269         isn't confused by the artificial decl.
8271 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8273         * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
8274         RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
8275         Instead, add USEs of all modified call-saved CR fields to the
8276         insn storing the result to the stack slot, and provide an
8277         appropriate REG_FRAME_RELATED_EXPR for that insn.
8278         * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
8279         * config/rs6000/predicates.md ("crsave_operation"): New predicate.
8281 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8282             Alan Modra  <amodra@gmail.com>
8284         * function.c (assign_parms): Use all.reg_parm_stack_space instead
8285         of re-evaluating REG_PARM_STACK_SPACE target macro.
8286         (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE.  Use it
8287         instead of evaluating target macro REG_PARM_STACK_SPACE every time.
8288         (assign_parm_find_entry_rtl): Update call.
8289         * calls.c (initialize_argument_information): Update call.
8290         (emit_library_call_value_1): Likewise.
8291         * expr.h (locate_and_pad_parm): Update prototype.
8293 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8295         * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
8296         arguments.
8298 2013-11-14  DJ Delorie  <dj@redhat.com>
8300         * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
8301         to 16 bits.
8303 2013-11-14  Jeff Law  <law@redhat.com>
8305         * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
8306         EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
8308 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
8310         * doc/invoke.texi: Update documentation for AArch64's -mcpu
8311         and -mtune options.
8313 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
8315         * config/aarch64/aarch64-cores.def (example-1): Remove.
8316         (example-2): Likewise.
8317         * config/aarch64/aarch64-tune.md: Regenerate.
8318         * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
8319         (generic_sched): Remove "large", "small".
8320         * config/aarch64/large.md: Delete.
8321         * config/aarch64/small.md: Delete.
8323 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
8325         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
8326         * config/aarch64/aarch64-tune.md: Regenerate.
8327         * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
8328         (generic_sched): "no" if we are tuning for cortexa15.
8329         * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
8330         relative path.
8332 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
8334         * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
8335         * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
8336         * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
8337         (all_cores): Use cortexa53 when tuning for "generic".
8338         (aarch64_override_options): Fix comment.
8339         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
8340         * config/aarch64/aarch64-generic.md: Delete.
8342 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
8344         * config/aarch64/aarch64.c (all_architectures): Remove "generic".
8346 2013-11-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8348         * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
8349         (generic_rtx_cost_table): Remove.
8350         (aarch64_rtx_costs): Use fields from cpu_cost_table.
8351         * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
8352         insn_extra_cost.
8353         (cpu_rtx_cost_table): Remove.
8355 2013-11-14  Julian Brown  <julian@codesourcery.com>
8356             Joey Ye  <joey.ye@arm.com>
8358         * config/arm/arm.c (arm_cortex_m_branch_cost): New.
8359         (arm_v7m_tune): New.
8360         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
8361         arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
8362         arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
8363         * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
8365 2013-11-14  Kirill Yukhin  <kirill.yukhin@intel.com>
8367         PR target/57491
8368         * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
8369         flag setting.
8371 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
8372             Uros Bizjak  <ubizjak@gmail.com>
8374         PR target/59101
8375         * config/i386/i386.md (*anddi_2): Only allow CCZmode if
8376         operands[2] satisfies_constraint_Z that might have bit 31 set.
8378 2013-11-13  Jeff Law  <law@redhat.com>
8380         PR tree-optimization/59102
8381         * gimple-ssa-isolate-paths.c
8382         (insert_trap_and_remove_trailing_statments): Ensure STMT is a
8383         gimple assignment before looking at gimple_assign_lhs.
8385 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
8387         * ira.c: Add comment about threads at the top of file.
8389 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
8391         * ira-color.c (coalesce_allocnos): Don't allocate and free
8392         sorted_copies.
8394 2013-11-14  Tom de Vries  <tom@codesourcery.com>
8396         * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
8397         equality for GIMPLE_ASSIGN.
8399 2013-11-14  Tom de Vries  <tom@codesourcery.com>
8401         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
8402         function out of ...
8403         (gimple_equal_p): ... here.
8405 2013-11-14  Tom de Vries  <tom@codesourcery.com>
8407         * trans-mem.c (is_tm_ending): New function.
8408         * gimple.h (is_tm_ending): Declare.
8409         * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
8410         BUILT_IN_TM_COMMIT.
8411         (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
8413 2013-11-14  Tom de Vries  <tom@codesourcery.com>
8415         * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
8417 2013-11-13  Andrew MacLeod  <amacleod@redhat.com>
8419         * gimple-walk.h: New File.  Relocate prototypes from gimple.h.
8420         (struct walk_stmt_info):  Relocate here from gimple.h.
8421         * gimple-iterator.h: New File.  Relocate prototypes from gimple.h.
8422         (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
8423         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
8424         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
8425         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
8426         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
8427         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
8428         * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
8429         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
8430         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
8431         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
8432         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
8433         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
8434         (struct walk_stmt_info): Move to gimple-walk.h.
8435         (gimple_seq_set_location): Move to gimple.c
8436         * gimple-walk.c: New File.
8437         (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
8438         walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
8439         walk_stmt_load_store_ops): Relocate here from gimple.c.
8440         * gimple-iterator.c: Include gimple-iterator.h.
8441         * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
8442         walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
8443         walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
8444         gimple-walk.c.
8445         (gimple_seq_set_location): Relocate from gimple.h.
8446         * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
8447         * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
8448         * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
8449         * Makefile.in (OBJS): Add gimple-walk.o
8450         * asan.c: Update Include list as required for gimple-iterator.h and
8451         gimple-walk.h.
8452         * cfgexpand.c: Likewise.
8453         * cfgloop.c: Likewise.
8454         * cfgloopmanip.c: Likewise.
8455         * cgraph.c: Likewise.
8456         * cgraphbuild.c: Likewise.
8457         * cgraphunit.c: Likewise.
8458         * gimple-fold.c: Likewise.
8459         * gimple-low.c: Likewise.
8460         * gimple-pretty-print.c: Likewise.
8461         * gimple-ssa-isolate-paths.c: Likewise.
8462         * gimple-ssa-strength-reduction.c: Likewise.
8463         * gimple-streamer-in.c: Likewise.
8464         * gimple-streamer-out.c: Likewise.
8465         * gimplify.c: Likewise.
8466         * graphite-blocking.c: Likewise.
8467         * graphite-clast-to-gimple.c: Likewise.
8468         * graphite-dependences.c: Likewise.
8469         * graphite-interchange.c: Likewise.
8470         * graphite-optimize-isl.c: Likewise.
8471         * graphite-poly.c: Likewise.
8472         * graphite-scop-detection.c: Likewise.
8473         * graphite-sese-to-poly.c: Likewise.
8474         * graphite.c: Likewise.
8475         * ipa-inline-analysis.c: Likewise.
8476         * ipa-profile.c: Likewise.
8477         * ipa-prop.c: Likewise.
8478         * ipa-pure-const.c: Likewise.
8479         * ipa-split.c: Likewise.
8480         * lto-streamer-in.c: Likewise.
8481         * lto-streamer-out.c: Likewise.
8482         * omp-low.c: Likewise.
8483         * predict.c: Likewise.
8484         * profile.c: Likewise.
8485         * sese.c: Likewise.
8486         * tracer.c: Likewise.
8487         * trans-mem.c: Likewise.
8488         * tree-call-cdce.c: Likewise.
8489         * tree-cfg.c: Likewise.
8490         * tree-cfgcleanup.c: Likewise.
8491         * tree-complex.c: Likewise.
8492         * tree-data-ref.c: Likewise.
8493         * tree-dfa.c: Likewise.
8494         * tree-eh.c: Likewise.
8495         * tree-emutls.c: Likewise.
8496         * tree-if-conv.c: Likewise.
8497         * tree-inline.c: Likewise.
8498         * tree-into-ssa.c: Likewise.
8499         * tree-loop-distribution.c: Likewise.
8500         * tree-nested.c: Likewise.
8501         * tree-nrv.c: Likewise.
8502         * tree-object-size.c: Likewise.
8503         * tree-outof-ssa.c: Likewise.
8504         * tree-parloops.c: Likewise.
8505         * tree-predcom.c: Likewise.
8506         * tree-profile.c: Likewise.
8507         * tree-scalar-evolution.c: Likewise.
8508         * tree-sra.c: Likewise.
8509         * tree-ssa-ccp.c: Likewise.
8510         * tree-ssa-coalesce.c: Likewise.
8511         * tree-ssa-copy.c: Likewise.
8512         * tree-ssa-copyrename.c: Likewise.
8513         * tree-ssa-dce.c: Likewise.
8514         * tree-ssa-dom.c: Likewise.
8515         * tree-ssa-dse.c: Likewise.
8516         * tree-ssa-forwprop.c: Likewise.
8517         * tree-ssa-ifcombine.c: Likewise.
8518         * tree-ssa-live.c: Likewise.
8519         * tree-ssa-loop-ch.c: Likewise.
8520         * tree-ssa-loop-im.c: Likewise.
8521         * tree-ssa-loop-ivcanon.c: Likewise.
8522         * tree-ssa-loop-ivopts.c: Likewise.
8523         * tree-ssa-loop-manip.c: Likewise.
8524         * tree-ssa-loop-niter.c: Likewise.
8525         * tree-ssa-loop-prefetch.c: Likewise.
8526         * tree-ssa-loop.c: Likewise.
8527         * tree-ssa-math-opts.c: Likewise.
8528         * tree-ssa-phiopt.c: Likewise.
8529         * tree-ssa-phiprop.c: Likewise.
8530         * tree-ssa-pre.c: Likewise.
8531         * tree-ssa-propagate.c: Likewise.
8532         * tree-ssa-reassoc.c: Likewise.
8533         * tree-ssa-sink.c: Likewise.
8534         * tree-ssa-strlen.c: Likewise.
8535         * tree-ssa-structalias.c: Likewise.
8536         * tree-ssa-tail-merge.c: Likewise.
8537         * tree-ssa-ter.c: Likewise.
8538         * tree-ssa-threadedge.c: Likewise.
8539         * tree-ssa-threadupdate.c: Likewise.
8540         * tree-ssa-uncprop.c: Likewise.
8541         * tree-ssa-uninit.c: Likewise.
8542         * tree-ssa.c: Likewise.
8543         * tree-stdarg.c: Likewise.
8544         * tree-switch-conversion.c: Likewise.
8545         * tree-tailcall.c: Likewise.
8546         * tree-vect-data-refs.c: Likewise.
8547         * tree-vect-generic.c: Likewise.
8548         * tree-vect-loop-manip.c: Likewise.
8549         * tree-vect-loop.c: Likewise.
8550         * tree-vect-patterns.c: Likewise.
8551         * tree-vect-slp.c: Likewise.
8552         * tree-vect-stmts.c: Likewise.
8553         * tree-vectorizer.c: Likewise.
8554         * tree-vrp.c: Likewise.
8555         * tree.c: Likewise.
8556         * tsan.c: Likewise.
8557         * value-prof.c: Likewise.
8558         * vtable-verify.c: Likewise.
8560 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
8562         * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
8563         fix.
8565 2013-11-13  Jeff Law  <law@redhat.com>
8567         * PR middle-end/59119
8568         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
8569         function, extracted from gimple_ssa_isolate_erroneous_paths.
8570         (find_explicit_erroneous_behaviour): Similarly.
8571         (insert_trap_and_remove_trailing_statements): Remove statements
8572         in reverse order.
8574 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
8576         * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
8577         Make that check explicit.  BB_HEAD cannot be NULL, remove check for it.
8578         * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
8579         looking at INSN_CODE.
8580         * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
8581         active_insn_p object, respect basic block boundaries.
8582         * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
8583         follows immediately after the jump table data label.
8584         * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
8585         * config/sh/sh.c (barrier_align): Likewise.  Rearrange code such
8586         that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
8588 2013-11-13  Teresa Johnson  <tejohnson@google.com>
8590         PR ipa/58862
8591         * predict.c (drop_profile): Error is currently too strict.
8592         (handle_missing_profiles): Pass call_count to drop_profile.
8594 2013-11-13  Teresa Johnson  <tejohnson@google.com>
8596         PR ipa/58862
8597         * ipa-inline.c (edge_badness): Fix overflow.
8599 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
8601         PR rtl-optimization/59036
8602         * ira-color.c (struct allocno_color_data): Add new members
8603         first_thread_allocno, next_thread_allocno, thread_freq.
8604         (sorted_copies): New static var.
8605         (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
8606         (allocno_thread_conflict_p, merge_threads)
8607         (form_threads_from_copies, form_threads_from_bucket)
8608         (form_threads_from_colorable_allocno, init_allocno_threads): New
8609         functions.
8610         (bucket_allocno_compare_func): Add comparison by thread frequency
8611         and threads.
8612         (add_allocno_to_ordered_bucket): Rename to
8613         add_allocno_to_ordered_colorable_bucket.  Remove parameter.
8614         (push_only_colorable): Call form_threads_from_bucket.
8615         (color_pass): Call init_allocno_threads.  Use
8616         consideration_allocno_bitmap instead of coloring_allocno_bitmap
8617         for nuillify allocno color data.
8618         (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
8619         (coalesce_allocnos): Use static sorted copies.
8621 2013-11-13  Jakub Jelinek  <jakub@redhat.com>
8623         * passes.c (execute_todo): Don't call do_per_function if
8624         flags are zero.
8625         (execute_one_ipa_transform_pass, execute_one_pass): Don't call
8626         execute_function_dump if dump_file is NULL.
8628 2013-11-13  Martin Jambor  <mjambor@suse.cz>
8630         * cgraph.c (cgraph_get_create_node): Do what
8631         cgraph_get_create_real_symbol_node used to do.
8632         (cgraph_get_create_real_symbol_node): Removed.  Changed all users to
8633         call cgraph_get_create_node.
8634         * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
8635         * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
8636         cgraph_get_create_node.  Assert we get a node.
8638 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
8640         * config/aarch64/aarch64-simd.md (vec_extract): New.
8642 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
8644         * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
8645         the constraint.
8647 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
8649         * cfgexpand.c (expand_used_vars): Allocate space for partitions based
8650         on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
8651         or if optimization is enabled.
8652         * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
8653         require that all the names based on a PARM_DECL or a RESULT_DECL that
8654         isn't ignored for debug info be coalesced.
8656 2013-11-13  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8658         * config/c6x/c6x.c: Include "gimple-expr.h".
8660 2013-11-13  Richard Biener  <rguenther@suse.de>
8662         * gimple-streamer-out.c (output_gimple_stmt): Also wrap
8663         decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
8664         * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
8665         dealing with type mismatches inside component reference chains.
8667 2013-11-13  Marc Glisse  <marc.glisse@inria.fr>
8669         PR tree-optimization/59077
8670         * ipa-pure-const.c (better_state): Update *state.
8672 2013-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
8674         * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
8675         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
8676         Update offset calculations.
8678 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
8680         PR ada/35998
8681         * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
8682         for fields.  Do not add the attribute if the size is negative.
8684 2013-11-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8686         * config/arm/arm.c: Include aarch-cost-tables.h.
8687         (generic_extra_costs): Move from here...
8688         * config/arm/aarch-cost-tables.h: ... To here.  New file.
8690 2013-11-13  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8691             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8692             Sergey Lega  <sergey.s.lega@intel.com>
8693             Anna Tikhonova  <anna.tikhonova@intel.com>
8694             Ilya Tocar  <ilya.tocar@intel.com>
8695             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8696             Ilya Verbin  <ilya.verbin@intel.com>
8697             Kirill Yukhin  <kirill.yukhin@intel.com>
8698             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8700         * config/i386/i386.c (ix86_print_operand): Support z-masking.
8701         * config/i386/predicate.md (const_0_to_4_operand): New.
8702         (const_0_to_5_operand): Ditto.
8703         * config/i386/sse.md (UNSPEC_COMPRESS): New.
8704         (UNSPEC_COMPRESS_STORE): Ditto.
8705         (UNSPEC_EXPAND): Ditto.
8706         (UNSPEC_EMBEDDED_ROUNDING): Ditto.
8707         (define_mode_attr ssescalarsize): Ditto.
8708         (avx512f_load<mode>_mask): Ditto.
8709         (avx512f_store<mode>_mask): Ditto.
8710         (avx512f_storedqu<mode>_mask): Ditto.
8711         (avx512f_vmcmp<mode>3_mask): Ditto.
8712         (avx512f_fmadd_<mode>_mask): Ditto.
8713         (avx512f_fmadd_<mode>_mask3): Ditto.
8714         (avx512f_fmsub_<mode>_mask): Ditto.
8715         (avx512f_fmsub_<mode>_mask3): Ditto.
8716         (avx512f_fnmadd_<mode>_mask): Ditto.
8717         (avx512f_fnmadd_<mode>_mask3): Ditto.
8718         (avx512f_fnmsub_<mode>_mask): Ditto.
8719         (avx512f_fnmsub_<mode>_mask3): Ditto.
8720         (avx512f_fmaddsub_<mode>_mask): Ditto.
8721         (avx512f_fmaddsub_<mode>_mask3): Ditto.
8722         (avx512f_fmsubadd_<mode>_mask): Ditto.
8723         (avx512f_fmsubadd_<mode>_mask3): Ditto.
8724         (vec_unpacku_float_lo_v16si): Ditto.
8725         (avx512f_vextract<shuffletype>32x4_mask): Ditto.
8726         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
8727         (avx512f_vextract<shuffletype>64x4_mask): Ditto.
8728         (vec_extract_lo_<mode>_maskm): Ditto.
8729         (vec_extract_hi_<mode>_maskm): Ditto.
8730         (avx512f_vternlog<mode>_mask): Ditto.
8731         (avx512f_shufps512_mask): Ditto.
8732         (avx512f_fixupimm<mode>_mask): Ditto.
8733         (avx512f_shufpd512_mask): Ditto.
8734         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
8735         (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
8736         (*avx512f_<code>v8div16qi2_store_mask): Ditto.
8737         (ashr<mode>3<mask_name>): Ditto.
8738         (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
8739         (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
8740         (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
8741         (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
8742         (avx512f_pshufdv3_mask): Ditto.
8743         (avx512f_perm<mode>_mask): Ditto.
8744         (avx512f_vpermi2var<mode>3_mask): Ditto.
8745         (avx512f_vpermt2var<mode>3_mask): Ditto.
8746         (avx512f_compress<mode>_mask): Ditto.
8747         (avx512f_compressstore<mode>_mask): Ditto.
8748         (avx512f_expand<mode>_mask): Ditto.
8749         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
8750         to support masking.
8751         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
8752         (<plusminus_insn><mode>3<mask_name>): Ditto.
8753         (*<plusminus_insn><mode>3<mask_name>): Ditto.
8754         (mul<mode>3<mask_name>): Ditto.
8755         (*mul<mode>3<mask_name>): Ditto.
8756         (<sse>_div<mode>3<mask_name>): Ditto.
8757         (<mask_codefor>rcp14<mode><mask_name>): Ditto.
8758         (<sse>_sqrt<mode>2<mask_name>): Ditto.
8759         (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
8760         (<code><mode>3<mask_name>/smaxmin): Ditto.
8761         (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
8762         (*<code><mode>3<mask_name>/smaxmin): Ditto.
8763         (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
8764         (ufloatv16siv16sf2<mask_name>): Ditto.
8765         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
8766         (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
8767         (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
8768         (float<si2dfmodelower><mode>2<mask_name>): Ditto.
8769         (ufloatv8siv8df<mask_name>): Ditto.
8770         (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
8771         (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
8772         (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
8773         (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
8774         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
8775         (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
8776         (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
8777         (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
8778         (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
8779         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
8780         (vec_extract_lo_<mode><mask_name>): Ditto.
8781         (vec_extract_hi_<mode><mask_name>): Ditto.
8782         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
8783         (avx512f_movddup512<mask_name>): Ditto.
8784         (avx512f_unpcklpd512<mask_name>): Ditto.
8785         (*avx512f_unpcklpd512<mask_name>): Ditto.
8786         (*avx512f_vmscalef<mode>): Ditto.
8787         (avx512f_scalef<mode><mask_name>): Ditto.
8788         (avx512f_getexp<mode><mask_name>): Ditto.
8789         (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
8790         (avx512f_rndscale<mode><mask_name>): Ditto.
8791         (avx512f_shufps512_1<mask_name>): Ditto.
8792         (avx512f_shufpd512_1<mask_name>): Ditto.
8793         (<plusminus_insn><mode>3<mask_name>): Ditto.
8794         (*<plusminus_insn><mode>3<mask_name>): Ditto.
8795         (vec_widen_umult_even_v16si<mask_name>): Ditto.
8796         (*vec_widen_umult_even_v16si<mask_name>): Ditto.
8797         (vec_widen_smult_even_v16si<mask_name>): Ditto.
8798         (*vec_widen_smult_even_v16si<mask_name>): Ditto.
8799         (mul<mode>3<mask_name>): Ditto.
8800         (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
8801         (<shift_insn><mode>3<mask_name>): Ditto.
8802         (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
8803         (avx512f_<rotate><mode><mask_name>): Ditto.
8804         (<code><mode>3<mask_name>/maxmin): Ditto.
8805         (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
8806         (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
8807         (*andnot<mode>3<mask_name>): Ditto.
8808         (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
8809         (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
8810         (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
8811         (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
8812         (vec_set_lo_<mode><mask_name>): Ditto.
8813         (vec_set_hi_<mode><mask_name>): Ditto.
8814         (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
8815         (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
8816         (avx512f_pshufd_1<mask_name>): Ditto.
8817         (<mask_codefor>abs<mode>2<mask_name>): Ditto.
8818         (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
8819         (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
8820         (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
8821         (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
8822         (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
8823         (avx512er_exp2<mode><mask_name>): Ditto.
8824         (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
8825         (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
8826         (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
8827         (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
8828         (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
8829         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
8830         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
8831         (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
8832         (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
8833         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
8834         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
8835         (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
8836         (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
8837         (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
8838         (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
8839         (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
8840         (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
8841         (avx512f_getmant<mode><mask_name>): Ditto.
8842         (clz<mode>2<mask_name>): Ditto.
8843         (<mask_codefor>conflict<mode><mask_name>): Ditto.
8844         (*srcp14<mode>): Remove visibility.
8845         (*rsqrt14<mode>): Ditto.
8846         (*fma_fmsub_<mode>): Ditto.
8847         (*fma_fnmadd_<mode>): Ditto.
8848         (*avx512f_rndscale<mode>): Ditto.
8849         * config/i386/subst.md: New file.
8851 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
8853         * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
8854         * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
8855         (atomic_load_explicit, atomic_exchange_explicit)
8856         (atomic_compare_exchange_strong_explicit)
8857         (atomic_compare_exchange_weak_explicit): Use __auto_type to
8858         declare variable initialized with PTR argument.
8860 2013-11-12  Jeff Law  <law@redhat.com>
8862         * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
8863         backedge_seen_p.  Set, use and pass it to children appropriately.
8864         (thread_through_normal_block): Similarly.
8865         (thread_across_edge): Similarly.
8867         * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
8868         memory references as volatile.
8869         (insert_trap_and_remove_trailing_statements): Fix comment.
8871 2013-11-12  Vladimir Makarov  <vmakarov@redhat.com>
8873         PR other/58712
8874         * ira-costs.c (record_operand_costs): Check operands number for
8875         the single set.
8877 2013-11-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
8879         PR target/59054
8880         * config/rs6000/rs6000.md (movdi_internal32): Eliminate
8881         constraints that would allow DImode into the traditional Altivec
8882         registers, but cause undesirable code generation when loading 0 as
8883         a constant.
8884         (movdi_internal64): Likewise.
8885         (cmp<mode>_fpr): Do not use %x for CR register output.
8886         (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
8887         -mallow-upper-sf debug switches are used.
8889 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
8891         * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
8892         create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
8893         Relocate prototypes from gimple.h.
8894         * gimplify.h: New File.  Relocate some prototypes from gimple.h here.
8895         (gimple_predicate, enum fallback, enum gimplify_status): Relocate
8896         from gimple.h.
8897         * gimple.h: Move some prototypes to gimplify.h.
8898         (gimple_predicate, enum fallback, enum gimplify_status): Move to
8899         gimplify.h.
8900         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
8901         Relocate from gimpify.c.
8902         * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
8903         create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
8904         is_gimple_reg_rhs) Relocate from gimplify.c.
8905         * gimplify.c (mark_addressable): Move to gimple-expr.c.
8906         (gimple_seq_add_stmt_without_update): Move to gimple.c.
8907         (remove_suffix, tmp_var_id_num, create_tmp_var_name,
8908         create_tmp_var_raw, create_tmp_var, create_tmp_reg,
8909         is_gimple_reg_rhs): Move to gimple-expr.c.
8910         (should_carry_location_p): Move to gimple.c.
8911         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
8912         to gimple.h.
8913         (annotate_one_with_location, annotate_all_with_location_after,
8914         annotate_all_with_location): Move to gimple.c.
8915         (compare_case_labels, sort_case_labels,
8916         preprocess_case_label_vec_for_gimple): Move to gimple.c.
8917         (rhs_predicate_for): Make static.
8918         (gimplify_assign): Relocate from gimple.c.
8919         * gimple.c (gimplify_assign): Move to gimplify.c.
8920         (gimple_seq_add_stmt_without_update, should_carry_location_p,
8921         annotate_one_with_location, annotate_all_with_location_after,
8922         annotate_all_with_location, compare_case_labels, sort_case_labels,
8923         preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
8924         * tree.h (unshare_expr, unshare_expr_without_location,
8925         mark_addressable): Move prototypes to gimplify.h.
8926         * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
8927         tmp_var_id_num
8928         * asan.c: Include gimplify.h rather than gimple.h.
8929         * cfgloopmanip.c: Likewise.
8930         * cgraphunit.c: Likewise.
8931         * cilk-common.c: Likewise.
8932         * dwarf2out.c: Dont include gimple.h.
8933         * fold-const.c: Include gimplify.h rather than gimple.h.
8934         * function.c: Likewise.
8935         * gimple-fold.c: Likewise.
8936         * gimple-ssa-strength-reduction.c: Likewise.
8937         * graphite-clast-to-gimple.c: Likewise.
8938         * graphite-sese-to-poly.c: Likewise.
8939         * ipa-prop.c: Likewise.
8940         * ipa-split.c: Likewise.
8941         * ipa.c: Likewise.
8942         * langhooks.c: Dont include gimple.h.
8943         * loop-init.c: Include gimplify.h rather than gimple.h.
8944         * omp-low.c: Likewise.
8945         * sese.c: Likewise.
8946         * stor-layout.c: Likewise.
8947         * targhooks.c: Likewise.
8948         * trans-mem.c: Likewise.
8949         * tree-affine.c: Likewise.
8950         * tree-cfg.c: Likewise.
8951         * tree-cfgcleanup.c: Likewise.
8952         * tree-complex.c: Likewise.
8953         * tree-if-conv.c: Likewise.
8954         * tree-inline.c: Likewise.
8955         * tree-iterator.c: Likewise.
8956         * tree-loop-distribution.c: Likewise.
8957         * tree-nested.c: Likewise.
8958         * tree-parloops.c: Likewise.
8959         * tree-predcom.c: Likewise.
8960         * tree-profile.c: Likewise.
8961         * tree-scalar-evolution.c: Likewise.
8962         * tree-sra.c: Likewise.
8963         * tree-ssa-address.c: Likewise.
8964         * tree-ssa-ccp.c: Likewise.
8965         * tree-ssa-dce.c: Likewise.
8966         * tree-ssa-forwprop.c: Likewise.
8967         * tree-ssa-ifcombine.c: Likewise.
8968         * tree-ssa-loop-im.c: Likewise.
8969         * tree-ssa-loop-ivopts.c: Likewise.
8970         * tree-ssa-loop-manip.c: Likewise.
8971         * tree-ssa-loop-niter.c: Likewise.
8972         * tree-ssa-loop-prefetch.c: Likewise.
8973         * tree-ssa-loop-unswitch.c: Likewise.
8974         * tree-ssa-math-opts.c: Likewise.
8975         * tree-ssa-phiopt.c: Likewise.
8976         * tree-ssa-phiprop.c: Likewise.
8977         * tree-ssa-pre.c: Likewise.
8978         * tree-ssa-propagate.c: Likewise.
8979         * tree-ssa-reassoc.c: Likewise.
8980         * tree-ssa-sccvn.c: Likewise.
8981         * tree-ssa-strlen.c: Likewise.
8982         * tree-ssa.c: Likewise.
8983         * tree-switch-conversio: Likewise.n.c
8984         * tree-tailcall.c: Likewise.
8985         * tree-vect-data-refs.c: Likewise.
8986         * tree-vect-generic.c: Likewise.
8987         * tree-vect-loop-manip.c: Likewise.
8988         * tree-vect-loop.c: Likewise.
8989         * tree-vect-patterns.c: Likewise.
8990         * tree-vect-stmts.c: Likewise.
8991         * tsan.c: Likewise.
8992         * value-prof.c: Likewise.
8993         * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
8994         * config/alpha/alpha.c: Likewise.
8995         * config/darwin.c: Likewise.
8996         * config/i386/i386.c: Likewise.
8997         * config/ia64/ia64.c: Likewise.
8998         * config/mep/mep.c: Likewise.
8999         * config/mips/mips.c: Likewise.
9000         * config/rs6000/rs6000.c: Likewise.
9001         * config/s390/s390.c: Likewise.
9002         * config/sh/sh.c: Likewise.
9003         * config/sparc/sparc.c: Likewise.
9004         * config/spu/spu.c: Likewise.
9005         * config/stormy16/stormy16.c: Likewise.
9006         * config/tilegx/tilegx.c: Likewise.
9007         * config/tilepro/tilepro.c: Likewise.
9008         * config/xtensa/xtensa.c: Likewise.
9010 2013-11-12  Adam Butcher  <adam@jessamine.co.uk>
9012         * tree.c (grow_tree_vec_stat): New function ...
9013         * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
9014         and macro front-end.
9016 2013-11-12  Marek Polacek  <polacek@redhat.com>
9018         * final.c (update_alignments): Initialize label to NULL_RTX.
9020 2013-11-12  Jeff Law  <law@redhat.com>
9022         * gimple-ssa-isolate-paths.c (check_loadstore): New function.
9023         (insert_trap_and_remove_trailing_statements): New argument OP which
9024         is the NULL pointer.  Emit the trap after the load/store through
9025         the NULL pointer.  Simplify the RHS of a store through a NULL pointer
9026         when trivial to do so.
9027         (isolate_path): Corresponding changes.
9028         (gimple_ssa_isolate_erroneous_path): Likewise.
9030 2013-11-12  Teresa Johnson  <tejohnson@google.com>
9031             Jan Hubicka  <jh@suse.cz>
9033         * predict.c (drop_profile): New function.
9034         (handle_missing_profiles): Ditto.
9035         (counts_to_freqs): Don't overwrite estimated frequencies
9036         when function has no profile counts.
9037         * predict.h (handle_missing_profiles): Declare.
9038         * tree-inline.c (freqs_to_counts): New function.
9039         (copy_cfg_body): Invoke freqs_to_counts as needed.
9040         * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
9042 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
9044         PR target/59088
9045         * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
9046         Set for m_HASWELL.
9047         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
9049 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
9051         PR target/59084
9052         * config/i386/i386.c (ix86_option_override_internal): Check
9053         X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
9054         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
9055         MASK_AVX256_SPLIT_UNALIGNED_LOAD and
9056         MASK_AVX256_SPLIT_UNALIGNED_STORE.
9058         * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
9059         Clear m_COREI7_AVX and update comments.
9060         (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
9062 2013-11-12  Martin Jambor  <mjambor@suse.cz>
9064         PR rtl-optimization/10474
9065         * ira.c (interesting_dest_for_shprep): New function.
9066         (split_live_ranges_for_shrink_wrap): Likewise.
9067         (find_moveable_pseudos): Move calculation of dominance info,
9068         df_analysios and the final anlyses to...
9069         (ira): ...here, call split_live_ranges_for_shrink_wrap.
9071 2013-11-12  Bin Cheng  <bin.cheng@arm.com>
9073         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
9074         Handle type conversion.
9076 2013-11-11  Martin Liska  <marxin.liska@gmail.com>
9077             Jan Hubicka  <jh@suse.cz>
9079         * cgraph.c (dump_cgraph_node): Profile dump added.
9080         * cgraph.h (struct cgraph_node): New time profile variable added.
9081         * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
9082         * gcov-io.h (gcov_type): New profiler type introduced.
9083         * ipa-profile.c (lto_output_node): Streaming for time profile added.
9084         (input_node): Time profiler is read from LTO stream.
9085         * predict.c (maybe_hot_count_p): Hot prediction changed.
9086         * profile.c (instrument_values): New case for time profiler added.
9087         (compute_value_histograms): Read of time profile.
9088         * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
9089         * tree-profile.c (init_ic_make_global_vars): Time profiler
9090         function added.
9091         (gimple_init_edge_profiler): TP function instrumentation.
9092         (gimple_gen_time_profiler): New.
9093         * value-prof.c (gimple_add_histogram_value): Support for time profiler
9094         added.
9095         (dump_histogram_value): TP type added to dumps.
9096         (visit_hist): More sensitive check that takes TP into account.
9097         (gimple_find_values_to_profile): TP instrumentation.
9098         * value-prof.h (hist_type): New histogram type added.
9099         (struct histogram_value_t): Pointer to struct function added.
9100         * libgcc/Makefile.in: New GCOV merge function for TP added.
9101         * libgcov.c: function_counter variable introduced.
9102         (_gcov_merge_time_profile): New.
9103         (_gcov_time_profiler): New.
9105 2013-11-11  Marc Glisse  <marc.glisse@inria.fr>
9106             Jeff Law  <law@redhat.com>
9108         * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
9109         ao_ref_init_from_ptr_and_size for builtins.
9111 2013-11-11  Uros Bizjak  <ubizjak@gmail.com>
9112             H.J. Lu  <hongjiu.lu@intel.com>
9114         PR target/58853
9115         * config/i386/x86-tune.def
9116         (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
9117         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
9118         * config/i386/i386.h
9119         (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
9120         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES.  Update for renamed
9121         X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
9122         * config/i386/i386.c (ix86_expand_set_or_movmem): Use
9123         TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
9124         misaligned_prologue_used.  Check that
9125         desired_aling <= epilogue_size_needed.
9127 2013-11-11  Cong Hou  <congh@google.com>
9129         PR tree-optimization/59050
9130         * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
9132 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
9134         PR middle-end/59049
9135         * expmed.c (emit_store_flag): Fail for const-const comparison.
9137 2013-11-11  Tristan Gingold  <gingold@adacore.com>
9138             Eric Botcazou  <ebotcazou@adacore.com>
9140         * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
9141         * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
9142         * tree.def (CONSTRUCTOR): Likewise.
9143         * doc/generic.texi (CONSTRUCTOR): Likewise.  Update description.
9144         * gimplify.c (gimplify_init_constructor): Do not clear the object when
9145         the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
9147 2013-11-11  Basile Starynkevitch  <basile@starynkevitch.net>
9149         * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
9150         diagnostic_finish.
9152 2013-11-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9154         * config/arm/arm.c (arm_new_rtx_costs): Return after handling
9155         comparisons.
9157 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
9159         * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
9161 2013-11-08  Jeff Law  <law@redhat.com>
9163         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
9164         threading paths first, then perform PHI node checks if applicable.
9166 2013-11-10  Karlson2k  <k2k@narod.ru>
9167             Kai Tietz  <ktietz@redhat.com>
9169         PR plugin/52872
9170         * configure.ac: Adding for exported symbols check
9171         and for rdynamic-check executable-extension.
9172         * configure: Regenerated.
9174 2013-11-10  Uros Bizjak  <ubizjak@gmail.com>
9176         * mode-switching.c (optimize_mode_switching): Mark block as
9177         nontransparent, if last_mode at block exit is different from no_mode.
9179 2013-11-09  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9181         * function.c (NAME__MAIN): Move to...
9182         * cfgexpand.c (NAME__MAIN): ...here.
9184 2013-11-09  Richard Sandiford  <rdsandiford@googlemail.com>
9186         * target.def (can_use_doloop_p): New hook.
9187         * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
9188         * doc/tm.texi: Regenerate.
9189         * doc/md.texi (doloop_begin, doloop_end): Update documentation.
9190         * hooks.h (hook_bool_dint_dint_uint_true): Declare.
9191         * hooks.c (hook_bool_dint_dint_uint_true): New function.
9192         * targhooks.h (can_use_doloop_if_innermost): Declare.
9193         * targhooks.c (can_use_doloop_if_innermost): New function.
9194         * target.h: Include double-int.h.
9195         * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
9196         Remove iteration count, maximum iteration count, loop depth and
9197         enter-at-top inputs from doloop_begin and doloop_end.
9198         * config/arc/arc.md (doloop_begin, doloop_end): Update for new
9199         interface.
9200         * config/arc/arc.c (arc_can_use_doloop_p): New function.
9201         (TARGET_CAN_USE_DOLOOP_P): Define.
9202         * config/arm/thumb2.md (doloop_end): Update for new interface.
9203         * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
9204         * config/bfin/bfin.md (doloop_end): Update for new interface.
9205         * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
9206         (TARGET_CAN_USE_DOLOOP_P): Define.
9207         * config/c6x/c6x.md (doloop_end): Update for new interface.
9208         * config/ia64/ia64.md (doloop_end): Update for new interface.
9209         * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
9210         * config/mep/mep.md (doloop_begin, doloop_end): Update for new
9211         interface.
9212         * config/mep/mep.c (mep_emit_doloop): Likewise.
9213         (TARGET_CAN_USE_DOLOOP_P): Define.
9214         * config/rs6000/rs6000.md (doloop_end): Update for new interface.
9215         * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
9216         * config/s390/s390.md (doloop_end): Update for new interface.
9217         * config/sh/sh.md (doloop_end): Likewise.
9218         * config/spu/spu.md (doloop_end): Likewise.
9219         * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
9220         * config/tilegx/tilegx.md (doloop_end): Update for new interface.
9221         * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
9222         * config/tilepro/tilepro.md (doloop_end): Update for new interface.
9223         * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
9224         * config/v850/v850.md (doloop_begin, doloop_end): Update for new
9225         interface.
9226         * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
9228 2013-11-08  H.J. Lu  <hongjiu.lu@intel.com>
9230         PR other/59055
9231         * doc/extend.texi: Move Cilk Plus Builtins node before Other
9232         Builtins node.
9234 2013-11-08  Andrew MacLeod  <amacleod@redhat.com>
9235             Joseph Myers  <joseph@codesourcery.com>
9237         * ginclude/stdatomic.h: New file.
9238         * Makefile.in (USER_H): Add stdatomic.h.
9240 2013-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9242         * config/arm/arm.c (arm_new_rtx_costs): Break after handling
9243         comparisons.
9245 2013-11-08  Jeff Law  <law@redhat.com>
9247         * tree-ssa-threadupdate.h (delete_thread_path): Declare.
9248         * tree-ssa-threadupdate.c (delete_thread_path): New function.
9249         (ssa_redirect_edges, thread_block_1): Use it.
9250         (thread_through_loop_header, mark_threaded_blocks): Likewise.
9251         (thread_through_all_blocks, register_jump_thread): Likewise.
9252         * tree-ssa-threadedge.c (thread_across_edge): Likewise.
9254 2013-11-08  James Greenhalgh  <james.greenhalgh@arm.com>
9256         * config/arm/aarch-common.c
9257         (search_term): New typedef.
9258         (shift_rtx_costs): New array.
9259         (arm_rtx_shift_left_p): New.
9260         (arm_find_sub_rtx_with_search_term): Likewise.
9261         (arm_find_sub_rtx_with_code): Likewise.
9262         (arm_early_load_addr_dep): Add sanity checking.
9263         (arm_no_early_alu_shift_dep): Likewise.
9264         (arm_no_early_alu_shift_value_dep): Likewise.
9265         (arm_no_early_mul_dep): Likewise.
9266         (arm_no_early_store_addr_dep): Likewise.
9268 2013-11-08  Richard Biener  <rguenther@suse.de>
9270         PR tree-optimization/59047
9271         * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
9273 2013-11-08  Ilya Enkovich  <ilya.enkovich@intel.com>
9275         * common.opt (fcheck-pointer-bounds): Move to ...
9276         * c-family/c.opt: ... here.
9277         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
9278         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
9279         * langhooks.h (lang_hooks): Remove chkp_supported field.
9280         * toplev.c (process_options): Remove chkp_supported check.
9282 2013-11-08  Richard Biener  <rguenther@suse.de>
9284         PR tree-optimization/59038
9285         PR tree-optimization/58955
9286         * tree-loop-distribution.c (pg_add_dependence_edges): Revert
9287         previous change.  Handle known dependences correctly.
9289 2013-11-08  Tom de Vries  <tom@codesourcery.com>
9291         * config/rs6000/t-xilinx: Remove duplicate contents.
9293 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
9294             Joseph Myers  <joseph@codesourcery.com>
9296         * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
9297         (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
9298         TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
9299         (struct tree_base): Add atomic_flag field.
9300         * tree.h (TYPE_ATOMIC): New accessor macro.
9301         (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
9302         (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
9303         (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
9304         (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
9305         * tree.c (set_type_quals): Set TYPE_ATOMIC.
9306         (find_atomic_core_type): New function.
9307         (build_qualified_type): Adjust alignment for qualified types.
9308         (build_atomic_base): New function
9309         (build_common_tree_nodes): Build atomicQI_type_node,
9310         atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
9311         atomicTI_type_node.
9312         * print-tree.c (print_node): Print atomic qualifier.
9313         * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
9314         * target.def (atomic_assign_expand_fenv): New hook.
9315         * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
9316         * doc/tm.texi: Regenerate.
9317         * targhooks.c (default_atomic_assign_expand_fenv): New function.
9318         * targhooks.h (default_atomic_assign_expand_fenv): Declare.
9319         * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
9320         * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
9321         function type.
9322         * config/i386/i386.c (enum ix86_builtins): Add
9323         IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
9324         IX86_BUILTIN_FNCLEX.
9325         (bdesc_special_args): Add __builtin_ia32_fnstenv,
9326         __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
9327         (ix86_expand_builtin): Handle the new built-in functions.
9328         (ix86_atomic_assign_expand_fenv): New function.
9329         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
9330         * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
9331         (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
9332         (fnstenv, fldenv, fnstsw, fnclex): New insns.
9334 2013-11-07  Steve Ellcey  <sellcey@mips.com>
9336         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
9337         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
9338         (MULTILIB_DIRNAMES): Add fp64 directory.
9339         (MULTILIB_EXCEPTIONS): Add new exclusions.
9341 2013-11-07  Aldy Hernandez  <aldyh@redhat.com>
9343         * gimplify.c (gimple_regimplify_operands): Do not set
9344         SSA_NAME_DEF_STMT.
9345         * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
9346         (rewrite_close_phi_out_of_ssa): Same.
9347         (rewrite_phi_out_of_ssa): Same.
9348         (rewrite_degenerate_phi): Same.
9349         (handle_scalar_deps_crossing_scop_limits): Same.
9350         * tree-if-conv.c (predicate_scalar_phi): Same.
9351         * tree-parloops.c (create_loads_for_reductions): Same.
9352         (create_final_loads_for_reduction): Same.
9353         (create_loads_and_stores_for_name): Same.
9354         (transform_to_exit_first_loop): Same.
9355         (create_parallel_loop): Same.
9356         * tree-ssa-loop-im.c
9357         (move_computations_dom_walker::before_dom_children): Same.
9358         * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
9359         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
9360         * tree-ssa-propagate.c (substitute_and_fold): Same.
9361         * tree-vect-loop.c (vect_finalize_reduction): Same.
9362         * tree-vect-stmts.c (vectorizable_call): Same.
9364 2013-11-07  Mike Stump  <mikestump@comcast.net>
9366         * config/pdp11/pdp11.c: Include dbxout.h.
9367         * config/picochip/picochip.c: Likewise.
9369 2013-11-07  Cong Hou  <congh@google.com>
9371         PR tree-optimization/56764
9372         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
9373         Combine alias checks if it is possible to amortize the runtime
9374         overhead.  Return the number of alias checks after merging.
9375         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
9376         Use the function vect_create_cond_for_alias_checks () to check
9377         the number of alias checks.
9379 2013-11-07  Jeff Law  <law@redhat.com>
9381         * varpool.c (ctor_for_folding): Fix typo in comment.
9383 2013-11-07  Joern Rennecke  <joern.rennecke@embecosm.com>
9385         * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
9386         reg_a := reg_b + reg_a  ==>  reg_a := reg_a + reg_b
9388 2013-11-07  Jeff Law  <law@redhat.com>
9390         * doc/invoke.texi (-fisolate-erroneous-paths): Document.
9392         * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
9393         No longer check if we have __builtin_trap, assume it's available.
9395 2013-11-07  Diego Novillo  <dnovillo@google.com>
9397         * attribs.c (lookup_scoped_attribute_spec): Make static.
9398         (get_attribute_namespace): Likewise.
9399         * builtins.c (more_const_call_expr_args_p): Move from tree.h.
9400         (validate_arglist): Move earlier in the file. Make static.
9401         (expand_stack_restore): Move from stmt.c
9402         (expand_stack_save): Move from stmt.c
9403         (rewrite_call_expr_array): Move earlier in the file.
9404         (rewrite_call_expr_valist): Likewise.
9405         * cfgexpand.c: Include hard-reg-set.h before tree.h
9406         Include recog.h.
9407         Include output.h.
9408         (expand_asm_loc): Move from stmt.c.
9409         (n_occurrences): Move from stmt.c.
9410         (check_operand_nalternatives): Move from stmt.c.
9411         (tree_conflicts_with_clobbers_p): Move from stmt.c.
9412         (expand_asm_operands): Move from stmt.c
9413         (expand_asm_stmt): Move from stmt.c
9414         (expand_computed_goto): Move from stmt.c
9415         (expand_goto): Move from stmt.c
9416         (expand_null_return_1): Move from stmt.c
9417         (expand_null_return): Move from stmt.c
9418         (expand_value_return): Move from stmt.c
9419         (expand_return): Move from stmt.c
9420         (expand_main_function): Move from function.c
9421         (stack_protect_prologue): Move from function.c
9422         * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
9423         (build_function_decl_skip_args): Move from tree.c.
9424         * explow.c (tree_expr_size): Move from tree.c.
9425         * expr.c (addr_expr_of_non_mem_decl_p): Remove.
9426         (fields_length): Move from tree.c.
9427         * fold-const.c (size_low_cst): Move from tree.c.
9428         (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
9429         (tree_expr_nonzero_p): Make static. Move earlier in the file.
9430         (fold_build3_initializer_loc): Remove.
9431         (tree_invalid_nonnegative_warnv_p): Make static.
9432         * function.c (expand_main_function): Move to cfgexpand.c.
9433         (stack_protect_prologue): Move to cfgexpand.c.
9434         (set_insn_locations): Move earlier in the file.
9435         * gimple-fold.c: Include langhooks.h.
9436         (truth_type_for): Move from tree.c.
9437         * print-tree.c (print_vec_tree): Remove.
9438         * stmt.c (expand_computed_goto): Move to cfgexpand.c.
9439         (expand_goto): Move to cfgexpand.c.
9440         (n_occurrences): Move to cfgexpand.c.
9441         (expand_asm_loc): Move to cfgexpand.c
9442         (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
9443         (expand_asm_operands): Move to cfgexpand.c.
9444         (expand_asm_stmt): Move to cfgexpand.c.
9445         (check_operand_nalternatives): Move to cfgexpand.c
9446         (expand_null_return): Move to cfgexpand.c.
9447         (expand_value_return): Move to cfgexpand.c.
9448         (expand_null_return_1): Move to cfgexpand.c.
9449         (expand_return): Move to cfgexpand.c.
9450         (expand_stack_save): Move to builtins.c.
9451         (expand_stack_restore): Move to builtins.c
9452         * symtab.c: Include output.h.
9453         (decl_assembler_name_hash): Move from tree.c.
9454         (decl_assembler_name_equal): Move from tree.c.
9455         * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
9456         * tree-eh.c (in_array_bounds_p): Move from tree.c.
9457         (range_in_array_bounds_p): Move from tree.c.
9458         * tree-object-size.c (fini_object_sizes): Make static.
9459         * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
9460         * tree-vrp.c (ssa_name_nonnegative_p): Remove.
9461         * tree.c (decl_assembler_name_equal): Move to symtab.c.
9462         (tree_expr_size): Move to explow.c.
9463         (decl_assembler_name_hash): Move to symtab.c.
9464         (real_twop): Remove.
9465         (tree_expr_size): Move to explow.c.
9466         (stabilize_reference_1): Move earlier in the file. Make static.
9467         (omp_remove_redundant_declare_simd_attrs): Remove.
9468         (simple_cst_list_equal): Move earlier in the file. Make static.
9469         (size_low_cst): Move to fold-const.c.
9470         (build_type_no_quals): Remove.
9471         (build_function_type_skip_args): Move to cgraphclones.c.
9472         (build_function_decl_skip_args): Move to cgraphclones.c.
9473         (in_array_bounds_p): Move to tree-eh.c.
9474         (range_in_array_bounds_p): Move to tree-eh.c.
9475         (truth_type_for): Move to gimple-fold.c.
9476         (list_equal_p): Remove.
9477         * tree.h (decl_assembler_name_equal): Remove.
9478         (decl_assembler_name_hash): Remove.
9479         (truth_type_for): Remove.
9480         (build_type_no_quals): Remove.
9481         (build_function_decl_skip_args): Remove.
9482         (in_array_bounds_p): Remove.
9483         (range_in_array_bounds_p): Remove.
9484         (size_low_cst): Remove.
9485         (omp_remove_redundant_declare_simd_attrs): Remove.
9486         (tree_expr_size): Remove.
9487         (fields_length): Remove.
9488         (stabilize_reference_1): Remove.
9489         (expand_goto): Remove.
9490         (expand_stack_save): Remove.
9491         (expand_stack_restore): Remove.
9492         (expand_return): Remove.
9493         (fold_build3_initializer_loc): Remove.
9494         (tree_expr_nonzero_p): Remove.
9495         (tree_invalid_nonnegative_warnv_p): Remove.
9496         (tree_expr_nonzero_warnv_p): Remove.
9497         (fold_builtin_snprintf_chk): Remove.
9498         (validate_arglist): Remove.
9499         (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
9500         (simple_cst_list_equal): Remove.
9501         (real_twop): Remove.
9502         (expand_main_function): Remove.
9503         (stack_protect_prologue): Remove.
9504         (print_vec_tree): Remove.
9505         (lookup_scoped_attribute_spec): Remove.
9506         (get_attribute_namespace): Remove.
9507         (expand_computed_goto): Remove.
9508         (expand_asm_stmt): Remove.
9509         (list_equal_p): Remove.
9510         (ssa_name_nonnegative_p): Remove.
9511         (fini_object_sizes): Remove.
9512         (addr_expr_of_non_mem_decl_p): Remove.
9513         (is_tm_safe_or_pure): Move to trans-mem.c.
9514         (more_const_call_expr_args_p): Remove.
9515         (save_vtable_map_decl): Remove.
9517 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
9519         * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
9520         linker plugins, too.
9522         * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
9523         link to libgomp and its dependencies.
9524         * config/ia64/hpux.h (LIB_SPEC): Likewise.
9525         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
9526         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
9527         * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
9529 2013-11-07  Jakub Jelinek  <jakub@redhat.com>
9531         * tree-ssa-loop-niter.c: Include tree-ssanames.h.
9532         (determine_value_range): Add loop argument.  Use get_range_info to
9533         improve range.
9534         (bound_difference): Adjust caller.
9536 2013-11-07  Richard Biener  <rguenther@suse.de>
9537             Jakub Jelinek  <jakub@redhat.com>
9539         * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
9540         latches from header PHI arguments from the latch edge.
9542 2013-11-07  Paolo Carlini  <paolo.carlini@oracle.com>
9544         PR c++/58176
9545         * varasm.c (output_constant): Handle NULLPTR_TYPE.
9547 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
9549         * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
9550         misaligned_prologue_used when it has been set.
9552 2013-11-07  Yury Gribov  <y.gribov@samsung.com>
9553             Jakub Jelinek  <jakub@redhat.com>
9555         PR sanitizer/59029
9556         * asan.c (get_mem_refs_of_builtin_call): Allow
9557         integer literals as addresses in instrumented builtins.
9559 2013-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9561         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
9562         Explain why plus_constant is not used.
9564 2013-11-07  Richard Biener  <rguenther@suse.de>
9566         * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
9567         (canonicalize_value): ... this.  Also handle stripping of
9568         TREE_OVERFLOW.
9569         (get_value, set_lattice_value, get_value_for_expr): Adjust.
9570         * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
9571         * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
9573 2013-11-07  Richard Biener  <rguenther@suse.de>
9575         * tree-dfa.c (get_ref_base_and_extent): Fix casting.
9577 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
9579         PR target/59034
9580         * config/i386/i386.md (push peepholer/splitter): Use Pmode
9581         with stack_pointer_rtx.
9583 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
9585         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
9586         using operand_equal_p.
9588 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
9590         * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
9591         * tree-affine.c (get_inner_reference_aff): Return base.
9592         * tree-affine.h (get_inner_reference_aff): Change prototype.
9594 2013-11-06  Tobias Burnus  <burnus@net-b.de>
9596         * doc/invoke.texi (Wdate-time): Fix typo.
9598 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
9600         * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
9601         cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
9602         fp_arith_reg_operand instead of arith_reg_operand.
9604 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
9606         * config/sh/sh.md (adddi3): Remove empty constraints.
9607         Remove can_create_pseudo_p and arith_reg_operand check.
9608         (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
9609         Split before reload.
9611 2013-11-06  Jeff Law  <law@redhat.com>
9612             Tom Tromey  <tromey@redhat.com>
9614         * gdbinit.in: Disable strict type checking.
9616 2013-11-06  Vladimir Makarov  <vmakarov@redhat.com>
9618         * tree-pass.h (make_pass_live_range_shrinkage): New external.
9619         * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
9620         * sched-rgn.c (gate_handle_live_range_shrinkage): New.
9621         (rest_of_handle_live_range_shrinkage): Ditto
9622         (class pass_live_range_shrinkage): Ditto.
9623         (pass_data_live_range_shrinkage): Ditto.
9624         (make_pass_live_range_shrinkage): Ditto.
9625         * sched-int.h (initialize_live_range_shrinkage): New prototype.
9626         (finish_live_range_shrinkage): Ditto.
9627         * sched-deps.c (create_insn_reg_set): Make void return value.
9628         * passes.def: Add pass_live_range_shrinkage.
9629         * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
9630         * haifa-sched.c (live_range_shrinkage_p): New.
9631         (initialize_live_range_shrinkage, finish_live_range_shrinkage):
9632         New functions.
9633         (rank_for_schedule): Add code for pressure relief through live
9634         range shrinkage.
9635         (schedule_insn): Print more debug info.
9636         (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
9637         through live range shrinkage.
9638         * doc/invoke.texi (-flive-range-shrinkage): New.
9639         * common.opt (flive-range-shrinkage): New.
9641 2013-11-06  Uros Bizjak  <ubizjak@gmail.com>
9643         PR target/59021
9644         * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
9645         AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
9646         (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
9647         RTXes that return in AVX256 register.
9649 2013-11-06  Richard Biener  <rguenther@suse.de>
9651         PR tree-optimization/58653
9652         * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
9653         (prepare_initializers_chain): Adjust.
9655 2013-11-06  Andrew MacLeod  <amacleod@redhat.com>
9657         * gimple.h (block_in_transaction): Move to basic-block.h and rename.
9658         (gimple_in_transaction): Use bb_in_transaction.
9659         * basic-block.h (bb_in_transaction): Relocate here and rename.
9660         * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
9662 2013-11-06  Richard Biener  <rguenther@suse.de>
9664         * tree.c (drop_tree_overflow): New function.
9665         * tree.h (drop_tree_overflow): Declare.
9666         * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
9667         * tree-vrp.c (range_int_cst_singleton_p): Use
9668         is_overflow_infinity instead of testing TREE_OVERFLOW.
9669         (extract_range_from_assert): Likewise.
9670         (zero_nonzero_bits_from_vr): Likewise.
9671         (extract_range_basic): Likewise.
9672         (register_new_assert_for): Use drop_tree_overflow.
9673         (vrp_visit_phi_node): Likewise.
9675 2013-11-06  Eric Botcazou  <ebotcazou@adacore.com>
9677         * config/i386/i386.c (ix86_expand_prologue): Optimize stack
9678         checking for leaf functions without dynamic stack allocation.
9679         * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
9680         (ia64_expand_prologue): Likewise.
9681         * config/mips/mips.c (mips_expand_prologue): Likewise.
9682         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
9683         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
9684         (sparc_flat_expand_prologue): Likewise.
9686 2013-11-06  James Greenhalgh  <james.greenhalgh@arm.com>
9688         * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
9689         (__ST3_LANE_FUNC): Likewise.
9690         (__ST4_LANE_FUNC): Likewise.
9692 2013-11-06  Nick Clifton  <nickc@redhat.com>
9694         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
9695         name returned by msp430_mcu_name.
9696         (LIB_SPEC): If a -T option has not been specified then set a
9697         default, mcu-specific, linker script.
9698         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
9699         * config/msp430/msp430.c (msp430x_names): Likewise.
9700         Alpha sort the names for ease of comparison.
9701         (msp430_mcu_name): New function:  Returns a string suitable for
9702         use as a C preprocessor symbol based upon the name of the MCU
9703         being targeted.
9704         (msp430_option_override): Accept msp430x and msp430xv2 as generic
9705         mcu names.
9706         * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
9708         * gcc.c (do_spec_1): Do not insert a space after a %* substitution
9709         unless it is the last part of a spec substring.
9710         * doc/invoke.texi (Spec Files): Document space insertion
9711         behaviour of %*.
9713 2013-11-06  Christian Bruel  <christian.bruel@st.com>
9715         * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
9716         Factorize probabilities, Use adjust_address instead of
9717         adjust_automodify_address when possible. Enable for optimize.
9718         (sh_expand_strlen): New function.
9719         * config/sh/sh-protos.h (sh_expand_strlen): Declare.
9720         * config/sh/sh.md (strlensi): New pattern.
9721         (UNSPEC_BUILTIN_STRLEN): Define.
9723 2013-11-06  Jakub Jelinek  <jakub@redhat.com>
9725         PR middle-end/58970
9726         * expr.c (get_bit_range): Handle *offset == NULL_TREE.
9727         (expand_assignment): If *bitpos is negative, set *offset
9728         and adjust *bitpos, so that it is not negative.
9730 2013-11-06  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
9732         * config/i386/bdver3.md : Added two additional decoder units
9733         to support issue rate of 4 and remodeled vector unit.
9734         * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
9735         architectures is set to 4.
9736         * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
9737         lookahead is set to 4 for BD architectures.
9739 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9741         * config/rs6000/rs6000.c (rs6000_option_override_internal):
9742         Remove restriction against use of VSX instructions when generating
9743         code for little endian mode.
9745 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9747         * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
9748         for both big and little endian.
9749         (mulv8hi3): Swap input operands for merge high and merge low
9750         instructions for little endian.
9752 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9754         * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
9755         define_insn to define_expand that uses even patterns for big
9756         endian and odd patterns for little endian.
9757         (vec_widen_smult_even_v16qi): Likewise.
9758         (vec_widen_umult_even_v8hi): Likewise.
9759         (vec_widen_smult_even_v8hi): Likewise.
9760         (vec_widen_umult_odd_v16qi): Likewise.
9761         (vec_widen_smult_odd_v16qi): Likewise.
9762         (vec_widen_umult_odd_v8hi): Likewise.
9763         (vec_widen_smult_odd_v8hi): Likewise.
9764         (altivec_vmuleub): New define_insn.
9765         (altivec_vmuloub): Likewise.
9766         (altivec_vmulesb): Likewise.
9767         (altivec_vmulosb): Likewise.
9768         (altivec_vmuleuh): Likewise.
9769         (altivec_vmulouh): Likewise.
9770         (altivec_vmulesh): Likewise.
9771         (altivec_vmulosh): Likewise.
9773 2013-11-05  Mike Stump  <mikestump@comcast.net>
9775         * Makefile.in (mostlyclean): Remove c-family objects.
9777 2013-11-05  Ian Lance Taylor  <iant@google.com>
9779         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
9780         If possible, add .cfi directives to record change to bx.
9781         * config/i386/i386.c (ix86_emit_cfi): New function.
9782         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
9784 2013-11-05  Steven Bosscher  <steven@gcc.gnu.org>
9786         * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
9787         immediately after a label for a tablejump pattern.
9789         * config/arm/arm.c (is_jump_table): Remove.
9790         (create_fix_barrier): Use tablejump_p instead.
9791         (arm_reorg): Likewise.
9792         (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
9793         (thumb2_output_casesi): Likewise.
9794         * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
9795         * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
9796         casesi_shift_media, casesi_load_media): Likewise.
9797         * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
9798         * config/microblaze/microblaze.md: Likewise.
9800 2013-11-05  Tobias Burnus  <burnus@net-b.de>
9802         * doc/invoke.texi (-Wdate-time): Document.
9804 2013-11-05  Richard Sandiford  <rdsandiford@googlemail.com>
9806         * double-int.c (lshift_double, rshift_double): Remove
9807         SHIFT_COUNT_TRUNCATED handling.
9809 2013-11-05  Jeff Law  <law@redhat.com>
9811         * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
9812         * common.opt (-fisolate-erroneous-paths): Add option and documentation.
9813         * gimple-ssa-isolate-paths.c: New file.
9814         * gimple.c (check_loadstore): New function.
9815         (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
9816         Verify OP is in the argument list and the argument corresponding
9817         to OP is a pointer type.  Use operand_equal_p rather than
9818         pointer equality when testing if OP is on the nonnull list.
9819         Use check_loadstore rather than count_ptr_derefs.  Handle
9820         GIMPLE_RETURN statements.
9821         * tree-vrp.c (infer_nonnull_range): Remove.
9822         * gimple.h (infer_nonnull_range): Declare.
9823         * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
9824         * passes.def: Add pass_isolate_erroneous_paths.
9825         * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
9826         * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
9827         * tree-ssa.c (struct count_ptr_d): Remove.
9828         (count_ptr_derefs, count_uses_and_derefs): Remove.
9829         * tree-ssa.h (count_uses_and_derefs): Remove.
9831 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
9833         PR rtl-optimization/58997
9834         * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
9835         get_iv_value to be in iv->mode rather than iv->extend_mode.
9836         (iv_extend): Likewise.  Otherwise, if iv->extend != extend,
9837         use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
9838         * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
9839         mode.
9841 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
9843         * gimple.h: Move some prototypes to gimple-expr.h and add to include
9844         list.
9845         (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
9846         Move to gimple-expr.h.
9847         * gimple-expr.h: New file.  Relocate some prototypes from gimple.h.
9848         (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
9849         is_gimple_id, virtual_operand_p, is_gimple_addressable,
9850         is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
9851         Relocate here.
9852         * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
9853         gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
9854         is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
9855         is_gimple_address, is_gimple_invariant_address,
9856         is_gimple_ip_invariant_address, is_gimple_min_invariant,
9857         is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
9858         virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
9859         is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
9860         gimple_decl_printable_name, useless_type_conversion_p,
9861         types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
9862         gimple-expr.[ch].
9863         * gimple-expr.c: New File.
9864         (useless_type_conversion_p, gimple_set_body, gimple_body,
9865         gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
9866         gimple_can_coalesce_p, extract_ops_from_tree_1,
9867         gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
9868         is_gimple_address, is_gimple_invariant_address,
9869         is_gimple_ip_invariant_address, is_gimple_min_invariant,
9870         is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
9871         is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
9872         is_gimple_mem_ref_addr): Relocate here.
9873         * Makefile.in (OBJS): Add gimple-expr.o.
9875 2013-11-05  David Malcolm  <dmalcolm@redhat.com>
9877         * gengtype-parse.c (struct_field_seq): Support empty structs.
9879 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
9881         * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
9883 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
9885         * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
9886         for !TARGET_80387.
9887         * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
9888         _SOFT_FLOAT here.
9889         (LONG_DOUBLE_TYPE_SIZE): New define.
9890         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
9892 2013-11-05  Paolo Carlini  <paolo.carlini@oracle.com>
9894         PR c++/58724
9895         * doc/extend.texi [visibility ("visibility_type")]: Add example
9896         about visibility attribute on namespace declaration.
9898 2013-11-05  Richard Biener  <rguenther@suse.de>
9900         PR ipa/58492
9901         * passes.def (all_passes): Start with pass_fixup_cfg again.
9903 2013-11-05  Richard Biener  <rguenther@suse.de>
9905         PR tree-optimization/58955
9906         * tree-loop-distribution.c (pg_add_dependence_edges): Fix
9907         edge direction.
9909 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9911         * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
9912         little endian.
9913         (vec_pack_ufix_trunc_v2df): Likewise.
9915 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
9917         PR middle-end/58981
9918         * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
9919         pattern, instead of word_mode.
9921         * expr.c (emit_block_move_via_movmem): Don't use mode wider than
9922         Pmode for size.
9923         (set_storage_via_setmem): Likewise.
9925 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
9927         * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
9928         gimple.h and the rest of the condition in eliminate_build.
9929         (eliminate_build): Call new routine.
9930         * gimple.h (phi_ssa_name_p): Delete.
9932 2013-11-05  Trevor Saunders  <tsaunders@mozilla.com>
9934         * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
9935         case of no prefix and reserving zero slots, because when that's the
9936         case we'll never get here.
9937         * vec.h (va_heap::reserve): Don't try and handle
9938         vec_prefix::calculate_allocation returning zero because that should
9939         never happen.
9941 2013-11-05  Richard Biener  <rguenther@suse.de>
9943         PR middle-end/58941
9944         * tree-dfa.c (get_ref_base_and_extent): Merge common code
9945         in MEM_REF and TARGET_MEM_REF handling.  Make sure to
9946         process trailing array detection before diving into the
9947         view-converted object (and possibly apply some extra offset).
9949 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
9951         * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
9952         New function.
9953         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
9955 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
9957         PR tree-optimization/58958
9958         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
9959         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
9961 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
9963         * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
9964         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
9966 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
9968         PR tree-optimization/58984
9969         * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
9970         set *SIZE_P if non-NULL on success.
9971         (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
9972         callers.
9973         (ipcp_transform_function): Likewise.  Punt if size of access
9974         is different from TYPE_SIZE on v->value's type.
9976 2013-11-05  Tobias Burnus  <burnus@net-b.de>
9978         * doc/invoke.texi (-fopenmp-simd): Document new option.
9979         * gimplify.c (gimplify_body): Accept -fopenmp-simd.
9980         * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
9981         * tree.c (attribute_value_equal): Ditto.
9983 2013-11-04  Wei Mi  <wmi@google.com>
9985         * sched-rgn.c (add_branch_dependences): Keep insns in
9986         a SCHED_GROUP at the end of BB to remain their location.
9988 2013-11-04  Wei Mi  <wmi@google.com>
9990         * config/i386/i386.c (memory_address_length): Extract a part
9991         of code to rip_relative_addr_p.
9992         (rip_relative_addr_p): New Function.
9993         (ix86_macro_fusion_p): Ditto.
9994         (ix86_macro_fusion_pair_p): Ditto.
9995         * config/i386/i386.h: Add new tune features about macro-fusion.
9996         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
9997         * doc/tm.texi: Generated.
9998         * doc/tm.texi.in: Ditto.
9999         * haifa-sched.c (try_group_insn): New Function.
10000         (group_insns_for_macro_fusion): Ditto.
10001         (sched_init): Call group_insns_for_macro_fusion.
10002         * target.def: Add two hooks: macro_fusion_p and
10003         macro_fusion_pair_p.
10005 2013-11-04  Kostya Serebryany  <kcc@google.com>
10007         Update to match the changed asan API.
10008         * asan.c (asan_function_start): New function.
10009         (asan_emit_stack_protection): Update the string stored in the
10010         stack red zone to match new API.  Store the PC of the current
10011         function in the red zone.
10012         (asan_global_struct): Update the __asan_global definition to match
10013         the new API.
10014         (asan_add_global): Ditto.
10015         * asan.h (asan_function_start): New prototype.
10016         * final.c (final_start_function): Call asan_function_start.
10017         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
10018         to __asan_init_v3.
10020 2013-11-04  Wei Mi  <wmi@google.com>
10022         * config/i386/i386-c.c (ix86_target_macros_internal): Separate
10023         PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
10024         * config/i386/i386.c (ix86_option_override_internal): Ditto.
10025         (ix86_issue_rate): Ditto.
10026         (ix86_adjust_cost): Ditto.
10027         (ia32_multipass_dfa_lookahead): Ditto.
10028         (ix86_sched_init_global): Ditto.
10029         (get_builtin_code_for_version): Ditto.
10030         * config/i386/i386.h (enum target_cpu_default): Ditto.
10031         (enum processor_type): Ditto.
10032         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
10034 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
10036         PR rtl-optimization/58967
10037         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
10038         !lra_in_progress for mode sizes bigger word.
10040 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10042         * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
10043         arguments to merge instruction for little endian.
10044         (vec_widen_umult_lo_v16qi): Likewise.
10045         (vec_widen_smult_hi_v16qi): Likewise.
10046         (vec_widen_smult_lo_v16qi): Likewise.
10047         (vec_widen_umult_hi_v8hi): Likewise.
10048         (vec_widen_umult_lo_v8hi): Likewise.
10049         (vec_widen_smult_hi_v8hi): Likewise.
10050         (vec_widen_smult_lo_v8hi): Likewise.
10052 2013-11-04  Ian Lance Taylor  <iant@google.com>
10054         * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
10055         * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
10056         builtins that take pointers.
10057         * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
10058         * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
10059         (run_gcc): Pass -fnon-call-exceptions.
10061 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
10063         * optabs.c (expand_vec_perm): Revert one incorrect line from
10064         2013-10-31 change.
10066         PR tree-optimization/58978
10067         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
10068         use_stmt by single_imm_use directly.  Only call single_imm_use
10069         on SSA_NAMEs.
10071 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
10073         PR rtl-optimization/58968
10074         * lra-spills.c (return_regno_p): New function.
10075         (lra_final_code_change): Use it.
10077 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
10079         * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
10080         * target.def (float_exceptions_rounding_supported_p): New hook.
10081         * targhooks.c (default_float_exceptions_rounding_supported_p): New
10082         function.
10083         * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
10084         * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
10085         New @hook.
10086         * doc/tm.texi: Regenerate.
10087         * config.gcc (powerpc*-*-linux*): Set extra_objs.
10088         * config/rs6000/rs6000-linux.c: New file.
10089         * config/rs6000/rs6000-protos.h
10090         (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
10091         * config/rs6000/linux.h
10092         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
10093         * config/rs6000/linux64.h
10094         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
10095         * config/rs6000/t-linux (rs6000-linux.o): New rule.
10096         * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
10098 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10100         * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
10101         Replace the define_insn_and_split with a define_insn and two
10102         define_splits, with the split after reload re-permuting the source
10103         register to its original value.
10104         (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
10105         (*vsx_le_perm_store_v8hi): Likewise.
10106         (*vsx_le_perm_store_v16qi): Likewise.
10108 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10110         * config/rs6000/vector.md (vec_pack_trunc_v2df):  Adjust for
10111         little endian.
10113 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
10115         PR tree-optimization/58946
10116         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
10117         bbs with bbinfo[idx].op != NULL before all blocks with
10118         bbinfo[idx].op == NULL.
10120 2013-11-04  Richard Sandiford  <rdsandiford@googlemail.com>
10122         * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
10123         (avr_dump_double_int_hex): Likewise.
10124         (avr_log_vadump): Remove %D and %X handling.
10125         * config/avr/avr.c (avr_double_int_push_digit): Delete.
10126         (avr_map_op_t): Change map from double_int to unsigned int.
10127         (avr_map_op): Update accordingly.
10128         (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
10129         (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
10130         unsigned ints rather than double_ints.
10132 2013-11-03  Marek Polacek  <polacek@redhat.com>
10134         Implement -fsanitize=vla-bound.
10135         * opts.c (common_handle_option): Handle vla-bound.
10136         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
10137         * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
10138         * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
10140 2013-11-02  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
10142         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
10143         little endian.
10145 2013-11-02  Uros Bizjak  <ubizjak@gmail.com>
10147         * config/i386/constraints.md (Ts, Tv): New address constrains.
10148         * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
10149         constraint for address_no_seg_operand.
10150         * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
10151         (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
10152         (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
10153         (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
10154         (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
10155         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
10156         (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
10157         (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
10158         constraint for vsib_address_operand.
10160 2013-11-02  Steven Bosscher  <steven@gcc.gnu.org>
10162         * gcse.c (pre_delete): Remove references to regmove from comments.
10163         * recog.c: (validate_replace_rtx_1): Likewise.
10164         * config/rl78/rl78.c: Likewise.
10165         * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
10166         * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
10167         * common/config/mmix/mmix-common.c: Likewise.
10169 2013-11-01  Trevor Saunders  <tsaunders@mozilla.com>
10171         * function.c (reorder_blocks): Convert block_stack to a stack_vec.
10172         * gimplify.c (gimplify_compound_lval): Likewise.
10173         * graphite-clast-to-gimple.c (gloog): Likewise.
10174         * graphite-dependences.c (loop_is_parallel_p): Likewise.
10175         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
10176         (limit_scop); Likewise.
10177         (build_scops): Likewise.
10178         (dot_scop): Likewise.
10179         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
10180         (build_scop_drs): Likewise.
10181         (insert_stmts): Likewise.
10182         (insert_out_of_ssa_copy): Likewise.
10183         (remove_phi): Likewise.
10184         (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
10185         * hw-doloop.c (discover_loop): Likewise.
10186         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
10187         * tree-dfa.c (dump_enumerated_decls): Likewise.
10188         * tree-if-conv.c (if_convertable_loop_p): Likewise.
10189         * tree-inline.c (tree_function_versioning): Likewise.
10190         * tree-loop-distribution.c (build_rdg): Likewise.
10191         (rdg_flag_vertex_and_dependent): Likewise.
10192         (distribute_loop): Likewise.
10193         * tree-parloops.c (loop_parallel_p): Likewise.
10194         (eliminate_local_variables): Likewise.
10195         (separate_decls_in_region): Likewise.
10196         * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
10197         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
10198         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
10199         * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
10200         * tree-vect-patterns.c (vect_pattern_recog): Likewise.
10201         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
10202         (vectorizable_condition): Likewise.
10204 2013-11-01  Uros Bizjak  <ubizjak@gmail.com>
10206         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
10207         * configure: Regenerate.
10208         * config/i386/i386.md (*movdi_internal): Change
10209         HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
10210         (*movdf_internal): Ditto.
10211         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
10212         * config/i386/sse.md (vec_concatv2di): Output interunit movq
10213         for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
10215 2013-10-31  Robert Suchanek  <Robert.Suchanek@imgtec.com>
10217         * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
10218         after comment.
10220 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
10222         Automated part of renaming of symtab_node_base to symtab_node.
10224         Patch autogenerated by rename_symtab.py from
10225         https://github.com/davidmalcolm/gcc-refactoring-scripts
10226         revision 58bb219cc090b2f4516a9297d868c245495ee622
10227         with ChangeLog entry fixed up by hand.
10229         * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
10230         symtab_node.
10231         (cgraph_node_for_asm): Likewise.
10232         * cgraph.h (symtab_node_base): Likewise.
10233         (cgraph_node): Likewise.
10234         (varpool_node): Likewise.
10235         (is_a_helper <cgraph_node>::test): Likewise.
10236         (is_a_helper <varpool_node>::test): Likewise.
10237         (symtab_nodes): Likewise.
10238         (symtab_register_node): Likewise.
10239         (symtab_unregister_node): Likewise.
10240         (symtab_remove_node): Likewise.
10241         (symtab_get_node): Likewise.
10242         (symtab_node_for_asm): Likewise.
10243         (symtab_node_asm_name): Likewise.
10244         (symtab_node_name): Likewise.
10245         (symtab_insert_node_to_hashtable): Likewise.
10246         (symtab_add_to_same_comdat_group): Likewise.
10247         (symtab_dissolve_same_comdat_group_list): Likewise.
10248         (dump_symtab_node): Likewise.
10249         (debug_symtab_node): Likewise.
10250         (dump_symtab_base): Likewise.
10251         (verify_symtab_node): Likewise.
10252         (verify_symtab_base): Likewise.
10253         (symtab_used_from_object_file_p): Likewise.
10254         (symtab_alias_ultimate_target): Likewise.
10255         (symtab_resolve_alias): Likewise.
10256         (fixup_same_cpp_alias_visibility): Likewise.
10257         (symtab_for_node_and_aliases): Likewise.
10258         (symtab_nonoverwritable_alias): Likewise.
10259         (availability symtab_node_availability): Likewise.
10260         (symtab_semantically_equivalent_p): Likewise.
10261         (fixup_same_cpp_alias_visibility): Likewise.
10262         (symtab_prevail_in_asm_name_hash): Likewise.
10263         (cgraph): Likewise.
10264         (varpool): Likewise.
10265         (varpool_first_variable): Likewise.
10266         (varpool_next_variable): Likewise.
10267         (varpool_first_static_initializer): Likewise.
10268         (varpool_next_static_initializer): Likewise.
10269         (varpool_first_defined_variable): Likewise.
10270         (varpool_next_defined_variable): Likewise.
10271         (cgraph_first_defined_function): Likewise.
10272         (cgraph_next_defined_function): Likewise.
10273         (cgraph_first_function): Likewise.
10274         (cgraph_next_function): Likewise.
10275         (cgraph_first_function_with_gimple_body): Likewise.
10276         (cgraph_next_function_with_gimple_body): Likewise.
10277         (symtab_alias_target): Likewise.
10278         (symtab_real_symbol_p): Likewise.
10279         (symtab_can_be_discarded): Likewise.
10280         * cgraphbuild.c (mark_address): Likewise.
10281         (mark_load): Likewise.
10282         (mark_store): Likewise.
10283         * cgraphunit.c (decide_is_symbol_needed): Likewise.
10284         (first): Likewise.
10285         (enqueue_node): Likewise.
10286         (referred_to_p): Likewise.
10287         (cgraph_process_same_body_aliases): Likewise.
10288         (analyze_functions): Likewise.
10289         (handle_alias_pairs): Likewise.
10290         (output_weakrefs): Likewise.
10291         (compile): Likewise.
10292         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
10293         * ipa-inline-analysis.c (inline_write_summary): Likewise.
10294         * ipa-prop.c (remove_described_reference): Likewise.
10295         (try_decrement_rdesc_refcount): Likewise.
10296         (ipa_edge_duplication_hook): Likewise.
10297         * ipa-ref.c (ipa_record_reference): Likewise.
10298         (ipa_maybe_record_reference): Likewise.
10299         (ipa_clone_ref): Likewise.
10300         (ipa_clone_references): Likewise.
10301         (ipa_clone_referring): Likewise.
10302         (ipa_find_reference): Likewise.
10303         (ipa_remove_stmt_references): Likewise.
10304         (ipa_clear_stmts_in_references): Likewise.
10305         * ipa-ref.h (symtab_node_base): Likewise.
10306         (ipa_ref): Likewise.
10307         (ipa_record_reference): Likewise.
10308         (ipa_maybe_record_reference): Likewise.
10309         (ipa_clone_references): Likewise.
10310         (ipa_clone_referring): Likewise.
10311         (ipa_clone_ref): Likewise.
10312         (ipa_find_reference): Likewise.
10313         (ipa_remove_stmt_references): Likewise.
10314         (ipa_clear_stmts_in_references): Likewise.
10315         * ipa-reference.c (ipa_reference_write_optimization_summary):
10316         Likewise.
10317         * ipa.c (enqueue_node): Likewise.
10318         (process_references): Likewise.
10319         (walk_polymorphic_call_targets): Likewise.
10320         (symtab_remove_unreachable_nodes): Likewise.
10321         (address_taken_from_non_vtable_p): Likewise.
10322         (comdat_can_be_unshared_p_1): Likewise.
10323         (comdat_can_be_unshared_p): Likewise.
10324         (can_replace_by_local_alias): Likewise.
10325         (function_and_variable_visibility): Likewise.
10326         * is-a.h: Likewise (within example in comment).
10327         * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
10328         (lto_symtab_encoder_encode): Likewise.
10329         (lto_symtab_encoder_delete_node): Likewise.
10330         (lto_symtab_encoder_in_partition_p): Likewise.
10331         (lto_set_symtab_encoder_in_partition): Likewise.
10332         (output_refs): Likewise.
10333         (compute_ltrans_boundary): Likewise.
10334         (output_symtab): Likewise.
10335         (input_node): Likewise.
10336         (input_ref): Likewise.
10337         (input_edge): Likewise.
10338         (input_cgraph_1): Likewise.
10339         (input_refs): Likewise.
10340         (output_cgraph_opt_summary): Likewise.
10341         (input_node_opt_summary): Likewise.
10342         (input_cgraph_opt_section): Likewise.
10343         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
10344         Likewise.
10345         * lto-streamer-out.c (lto_output): Likewise.
10346         (output_symbol_p): Likewise.
10347         (produce_symtab): Likewise.
10348         * lto-streamer.h (lto_encoder_entry): Likewise.
10349         (lto_free_function_in_decl_state_for_node): Likewise.
10350         (lto_symtab_encoder_encode): Likewise.
10351         (lto_symtab_encoder_delete_node): Likewise.
10352         (lto_symtab_encoder_in_partition_p): Likewise.
10353         (lto_set_symtab_encoder_in_partition): Likewise.
10354         (lto_symtab_encoder_lookup): Likewise.
10355         (lsei_node): Likewise.
10356         (lto_symtab_encoder_deref): Likewise.
10357         * symtab.c (symtab_hash): Likewise.
10358         (assembler_name_hash): Likewise.
10359         (symtab_nodes): Likewise.
10360         (hash_node): Likewise.
10361         (eq_node): Likewise.
10362         (hash_node_by_assembler_name): Likewise.
10363         (eq_assembler_name): Likewise.
10364         (insert_to_assembler_name_hash): Likewise.
10365         (unlink_from_assembler_name_hash): Likewise.
10366         (symtab_prevail_in_asm_name_hash): Likewise.
10367         (symtab_register_node): Likewise.
10368         (symtab_insert_node_to_hashtable): Likewise.
10369         (symtab_unregister_node): Likewise.
10370         (symtab_get_node): Likewise.
10371         (symtab_remove_node): Likewise.
10372         (symtab_initialize_asm_name_hash): Likewise.
10373         (symtab_node_for_asm): Likewise.
10374         (symtab_add_to_same_comdat_group): Likewise.
10375         (symtab_dissolve_same_comdat_group_list): Likewise.
10376         (symtab_node_asm_name): Likewise.
10377         (symtab_node_name): Likewise.
10378         (dump_symtab_base): Likewise.
10379         (dump_symtab_node): Likewise.
10380         (dump_symtab): Likewise.
10381         (debug_symtab_node): Likewise.
10382         (verify_symtab_base): Likewise.
10383         (verify_symtab_node): Likewise.
10384         (verify_symtab): Likewise.
10385         (symtab_used_from_object_file_p): Likewise.
10386         (symtab_node_availability): Likewise.
10387         (symtab_alias_ultimate_target): Likewise.
10388         (fixup_same_cpp_alias_visibility): Likewise.
10389         (symtab_resolve_alias): Likewise.
10390         (symtab_for_node_and_aliases): Likewise.
10391         (symtab_for_node_and_aliases): Likewise.
10392         (symtab_nonoverwritable_alias_1): Likewise.
10393         (symtab_nonoverwritable_alias): Likewise.
10394         (symtab_semantically_equivalent_p): Likewise.
10395         * value-prof.c (init_node_map): Likewise.
10396         * varasm.c (find_decl): Likewise.
10397         * varpool.c (varpool_node_for_asm): Likewise.
10398         (varpool_remove_unreferenced_decls): Likewise.
10400 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
10402         Manual part of renaming of symtab_node_base to symtab_node.
10404         * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
10405         clashes with the preferred name for the base class.
10406         (const_symtab_node): Remove redundant typedef.
10408 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
10410         * optabs.c (expand_vec_perm): Avoid vector mode punning
10411         SUBREGs in SET_DEST.
10412         * expmed.c (store_bit_field_1): Likewise.
10413         * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
10414         vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
10415         vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
10416         * config/i386/i386.c (ix86_expand_vector_move_misalign,
10417         ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
10418         ix86_expand_sse_unpack, ix86_expand_args_builtin,
10419         ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
10420         emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
10421         expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
10422         expand_vec_perm_vpshufb2_vpermq,
10423         expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
10424         expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
10425         ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
10426         (expand_vec_perm_palignr): Likewise.  Modify a copy of *d rather
10427         than *d itself.
10429 2013-10-31  Uros Bizjak  <ubizjak@gmail.com>
10431         * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
10432         Use gcc_unreachable for unhandled modes.  Do not check results of
10433         expand_simple_binop.  If not expanded to target, move the result.
10435 2013-10-31  Chung-Ju Wu  <jasonwucj@gmail.com>
10436             Shiva Chen  <shiva0217@gmail.com>
10438         * config.gcc (nds32*-*-*): Add nds32 target.
10439         * config/nds32/nds32.c: New file.
10440         * config/nds32/nds32.h: New file.
10441         * config/nds32/nds32.md: New file.
10442         * config/nds32/constants.md: New file.
10443         * config/nds32/constraints.md: New file.
10444         * config/nds32/iterators.md: New file.
10445         * config/nds32/nds32-doubleword.md: New file.
10446         * config/nds32/nds32-intrinsic.md: New file.
10447         * config/nds32/nds32_intrinsic.h: New file.
10448         * config/nds32/nds32-modes.def: New file.
10449         * config/nds32/nds32-multiple.md: New file.
10450         * config/nds32/nds32.opt: New file.
10451         * config/nds32/nds32-opts.h: New file.
10452         * config/nds32/nds32-protos.h: New file.
10453         * config/nds32/nds32-peephole2.md: New file.
10454         * config/nds32/pipelines.md: New file.
10455         * config/nds32/predicates.md: New file.
10456         * config/nds32/t-mlibs: New file.
10457         * common/config/nds32: New directory and files.
10459         * doc/invoke.texi (NDS32 options): Document nds32 specific options.
10460         * doc/md.texi (NDS32 family): Document nds32 specific constraints.
10461         * doc/install.texi (Cross-Compiler-Specific Options): Document
10462         --with-nds32-lib for nds32 target.
10463         * doc/extend.texi (Function Attributes, Target Builtins): Document
10464         nds32 specific attributes.
10466 2013-10-31  Vladimir Makarov  <vmakarov@redhat.com>
10468         * lra-constraints (process_alt_operands): Use the result
10469         elimination register for operand when matching constraints.
10471 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
10473         * tree-vrp.c (maybe_set_nonzero_bits): New function.
10474         (remove_range_assertions): Call it.
10476         * tree.c (tree_ctz): New function.
10477         * tree.h (tree_ctz): New prototype.
10478         * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
10479         first argument from tree to const_tree.
10480         * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
10481         * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
10482         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
10483         static.
10484         * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
10485         * tree-vect-loop.c (vect_analyze_loop_operations,
10486         vect_transform_loop): Don't force scalar loop for bound just because
10487         number of iterations is unknown, only do it if it is not known to be
10488         a multiple of vectorization_factor.
10489         * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
10491         * gimple-pretty-print.c (dump_ssaname_info): Print newline also
10492         in case of VR_VARYING.  Print get_nonzero_bits if not all ones.
10493         * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
10494         (set_nonzero_bits, get_nonzero_bits): New prototypes.
10495         * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
10496         a default def isn't partially constant.
10497         (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
10498         is known to be partially zero.
10499         (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
10500         to see if a default def isn't partially constant.
10501         * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
10502         creation of a range, if VR_RANGE, try to improve nonzero_bits from
10503         the range.
10504         (set_nonzero_bits, get_nonzero_bits): New functions.
10506         * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
10507         * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
10508         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
10509         (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
10510         uses but in the condition and ASSERT_EXPR and the other successor of
10511         the predecessor bb is __builtin_unreachable (), set_range_info of the
10512         ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
10514 2013-10-31  Martin Jambor  <mjambor@suse.cz>
10516         PR rtl-optimization/58934
10517         Revert:
10518         2013-10-30  Martin Jambor  <mjambor@suse.cz>
10519         PR rtl-optimization/10474
10520         * ira.c (find_moveable_pseudos): Do not calculate dominance info
10521         nor df analysis.
10522         (interesting_dest_for_shprep): New function.
10523         (split_live_ranges_for_shrink_wrap): Likewise.
10524         (ira): Calculate dominance info and df analysis. Call
10525         split_live_ranges_for_shrink_wrap.
10527 2013-10-31  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
10528             Yury Gribov  <y.gribov@samsung.com>
10530         PR sanitizer/58543
10531         * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
10532         shadow pointer to avoid clobbering the main one.
10534 2013-10-31  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
10536         * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
10538 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
10540         PR bootstrap/58933
10541         * ira-color.c (update_costs_from_copies): Add new parameter.  Use
10542         it for calling update_costs_from_allocno.
10543         (assign_hard_reg): Call restore_costs_from_copies only for
10544         !retry_p.  Pass new argument to update_costs_from_copies.
10545         (color_pass): Pass new argument to update_costs_from_copies.
10546         (ira_mark_allocation_change): Ditto.
10548 2013-10-30  Sharad Singhai  <singhai@google.com>
10550         PR middle-end/58134
10551         * opts.c (common_handle_option): Remove deprecated option
10552         -ftree-vectorizer-verbose.
10553         * doc/invoke.texi (Debugging Options): Ditto.
10554         * opts-global.c (handle_common_deferred_options): Ditto.
10555         (dump_remap_tree_vectorizer_verbose): Delete.
10556         * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
10558 2013-10-30  DJ Delorie  <dj@redhat.com>
10560         * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
10561         that take no arguments.
10563 2013-10-30  Joern Rennecke  <joern.rennecke@embecosm.com>
10565         PR other/58545
10566         * reload1.c (update_eliminables_and_spill): New function, broken
10567         out of reload.
10568         (reload): Use it.  Check for frame size change after frame size
10569         alignment, and call update_eliminables_and_spill first if continue-ing.
10571 2013-10-30  Cong Hou  <congh@google.com>
10573         PR target/58762
10574         * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
10575         * config/i386/i386.c (ix86_expand_sse2_abs): New function.
10576         * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
10578 2013-10-18  Mikael Pettersson  <mikpelinux@gmail.com>
10580         PR rtl-optimization/58369
10581         * reload1.c (compute_reload_subreg_offset): New function.
10582         (choose_reload_regs): Use it to pass endian-correct
10583         offset to subreg_regno_offset.
10585 2013-10-30  Tobias Burnus  <burnus@net-b.de>
10587         PR other/33426
10588         * tree-cfg.c (replace_loop_annotate): Replace warning by
10589         warning_at.
10591 2013-10-30  Jason Merrill  <jason@redhat.com>
10593         * configure.ac (loose_warn): Add -Wno-format if
10594         --disable-build-format-warnings.
10596 2013-10-30  David Malcolm  <dmalcolm@redhat.com>
10598         * cgraphunit.c (analyze_functions): Split symtab_node declarations
10599         onto multiple lines to make things easier for rename_symtab.py.
10601         * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
10602         (symtab_semantically_equivalent_p): Likewise.
10604 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
10606         PR target/58784
10607         * lra.c (check_rtl): Remove address check before LRA work.
10609 2013-10-30  Marc Glisse  <marc.glisse@inria.fr>
10611         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
10612         POINTER_PLUS_EXPR in the defining statement.
10614 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
10616         * regmove.c: Remove.
10617         * tree-pass.h (make_pass_regmove): Remove.
10618         * timevar.def (TV_REGMOVE): Remove.
10619         * passes.def (pass_regmove): Remove.
10620         * opts.c (default_options_table): Remove entry for regmove.
10621         * doc/passes.texi: Remove regmove pass description.
10622         * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
10623         options.
10624         (-fdump-rtl-regmove): Ditto.
10625         * common.opt (foptimize-register-move, fregmove): Ignore.
10626         * Makefile.in (OBJS): Remove regmove.o.
10627         * regmove.c: Remove.
10628         * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
10629         and type.
10630         (struct ira_allocno) New member allocno_prefs.
10631         (ALLOCNO_PREFS): New macro.
10632         (ira_prefs, ira_prefs_num): New external vars.
10633         (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
10634         (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
10635         (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
10636         Ditto.
10637         (ira_add_allocno_copy_to_list): Remove prototype.
10638         (ira_swap_allocno_copy_ends_if_necessary): Ditto.
10639         (ira_pref_iterator): New type.
10640         (ira_pref_iter_init, ira_pref_iter_cond): New functions.
10641         (FOR_EACH_PREF): New macro.
10642         * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
10643         (ira_get_dup_out_num): Ditto. Rename from get_dup_num.  Modify the
10644         code.
10645         (ira_setup_alts): New function.
10646         (decrease_live_ranges_number): New function.
10647         (ira): Call the above function.
10648         * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
10649         (ira_create_allocno): Initialize allocno prefs.
10650         (pref_pool, pref_vec): New static vars.
10651         (initiate_prefs, find_allocno_pref, ira_create_pref): New
10652         functions.
10653         (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
10654         (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
10655         (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
10656         (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
10657         (ira_add_allocno_copy_to_list): Make static.  Rename to
10658         add_allocno_copy_to_list.
10659         (ira_swap_allocno_copy_ends_if_necessary): Make static.  Rename to
10660         swap_allocno_copy_ends_if_necessary.
10661         (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
10662         ira_remove_allocno_prefs.
10663         (ira_flattening): Ditto.
10664         (ira_build): Call initiate_prefs, print_prefs.
10665         (ira_destroy): Call finish_prefs.
10666         * ira-color.c (struct update_cost_record): New.
10667         (struct allocno_color_data): Add new member update_cost_records.
10668         (update_cost_record_pool): New static var.
10669         (init_update_cost_records, get_update_cost_record): New functions.
10670         (free_update_cost_record_list, finish_update_cost_records): Ditto.
10671         (struct update_cost_queue_elem): Add member from.
10672         (initiate_cost_update): Call init_update_cost_records.
10673         (finish_cost_update): Call finish_update_cost_records.
10674         (queue_update_cost, get_next_update_cost): Add new param from.
10675         (Update_allocno_cost, update_costs_from_allocno): New functions.
10676         (update_costs_from_prefs): Ditto.
10677         (update_copy_costs): Rename to update_costs_from_copies.
10678         (restore_costs_from_copies): New function.
10679         (update_conflict_hard_regno_costs): Don't go back.
10680         (assign_hard_reg): Call restore_costs_from_copies.  Add printing
10681         more debug info.
10682         (pop_allocnos): Add priniting more debug info.
10683         (color_allocnos): Remove prefs for conflicting hard regs.
10684         Call update_costs_from_prefs.
10685         * ira-conflicts.c (commutative_constraint_p): Move to ira.c
10686         (get_dup_num): Rename, modify, and move to ira.c
10687         (process_regs_for_copy): Add prefs.
10688         (add_insn_allocno_copies): Put src as first arg of
10689         process_regs_for_copy.  Remove dead code.  Call ira_setup_alts.
10690         * ira-costs.c (record_reg_classes): Modify and move code into
10691         record_operands_costs.
10692         (find_costs_and_classes): Create prefs for the hard reg of small
10693         reg class.
10694         (process_bb_node_for_hard_reg_moves): Add prefs.
10696 2013-10-30  Richard Biener  <rguenther@suse.de>
10698         PR middle-end/57100
10699         * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
10700         * cfganal.c (pre_and_rev_post_order_compute_fn): New function
10701         as worker for ...
10702         (pre_and_rev_post_order_compute): ... which now wraps it.
10703         * graph.c (draw_cfg_nodes_no_loops): Use
10704         pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
10705         on cfun.
10707 2013-10-30  Christian Bruel  <christian.bruel@st.com>
10709         * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
10710         (sh_expand_cmpstr): Handle known align and schedule improvements.
10711         * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
10712         * config/sh/sh.md (cmpstrnsi): New pattern.
10714 2013-10-30  Martin Jambor  <mjambor@suse.cz>
10716         PR rtl-optimization/10474
10717         * ira.c (find_moveable_pseudos): Do not calculate dominance info
10718         nor df analysis.
10719         (interesting_dest_for_shprep): New function.
10720         (split_live_ranges_for_shrink_wrap): Likewise.
10721         (ira): Calculate dominance info and df analysis. Call
10722         split_live_ranges_for_shrink_wrap.
10724 2013-10-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10726         PR target/58854
10727         * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
10729 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
10731         * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
10732         * tree.h (POINTER_BOUNDS_P): New.
10733         (BOUNDED_TYPE_P): New.
10734         (BOUNDED_P): New.
10735         (pointer_bounds_type_node): New.
10736         * tree.c (build_common_tree_nodes): Initialize
10737         pointer_bounds_type_node.
10738         * gimple.h (gimple_call_get_nobnd_arg_index): New.
10739         (gimple_call_num_nobnd_args): New.
10740         (gimple_call_nobnd_arg): New.
10741         (gimple_return_retbnd): New.
10742         (gimple_return_set_retbnd): New
10743         * gimple.c (gimple_build_return): Increase number of ops
10744         for return statement.
10745         (gimple_call_get_nobnd_arg_index): New.
10746         * gimple-pretty-print.c (dump_gimple_return): Print second op.
10748 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
10750         * ipa.c (cgraph_build_static_cdtor_1): Support contructors
10751         with "chkp ctor" and "bnd_legacy" attributes.
10752         * gimplify.c (gimplify_init_constructor): Avoid infinite
10753         loop during gimplification of bounds initializer.
10755 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
10757         * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
10758         (handle_bnd_legacy): New.
10759         (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
10760         * doc/extend.texi: Document bnd_variable_size and bnd_legacy
10761         attributes.
10763 2013-10-29  Ilya Enkovich  <ilya.enkovich@intel.com>
10765         * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
10766         (BT_FN_PTR_CONST_PTR): New.
10767         (BT_FN_CONST_PTR_CONST_PTR): New.
10768         (BT_FN_PTR_CONST_PTR_SIZE): New.
10769         (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
10770         (BT_FN_VOID_PTRPTR_CONST_PTR): New.
10771         (BT_FN_VOID_CONST_PTR_SIZE): New.
10772         (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
10773         * chkp-builtins.def: New.
10774         * builtins.def: include chkp-builtins.def.
10775         (DEF_CHKP_BUILTIN): New.
10776         * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
10777         BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
10778         BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
10779         BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
10780         BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
10781         BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
10782         BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
10783         BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
10784         BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
10785         BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
10786         * common.opt (fcheck-pointer-bounds): New.
10787         * toplev.c (process_options): Check Pointer Bounds Checker is
10788         supported.
10789         * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
10791 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
10793         * target.def (builtin_chkp_function): New.
10794         (chkp_bound_type): New.
10795         (chkp_bound_mode): New.
10796         (fn_abi_va_list_bounds_size): New.
10797         (load_bounds_for_arg): New.
10798         (store_bounds_for_arg): New.
10799         * targhooks.h (default_load_bounds_for_arg): New.
10800         (default_store_bounds_for_arg): New.
10801         (default_fn_abi_va_list_bounds_size): New.
10802         (default_chkp_bound_type): New.
10803         (default_chkp_bound_mode): New.
10804         (default_builtin_chkp_function): New.
10805         * targhooks.c (default_load_bounds_for_arg): New.
10806         (default_store_bounds_for_arg): New.
10807         (default_fn_abi_va_list_bounds_size): New.
10808         (default_chkp_bound_type): New.
10809         (default_chkp_bound_mode); New.
10810         (default_builtin_chkp_function): New.
10811         * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
10812         (TARGET_LOAD_BOUNDS_FOR_ARG): New.
10813         (TARGET_STORE_BOUNDS_FOR_ARG): New.
10814         (TARGET_BUILTIN_CHKP_FUNCTION): New.
10815         (TARGET_CHKP_BOUND_TYPE): New.
10816         (TARGET_CHKP_BOUND_MODE): New.
10817         * doc/tm.texi: Regenerated.
10818         * langhooks.h (lang_hooks): Add chkp_supported field.
10819         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
10820         (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
10822 2013-10-29  Andrew Pinski <apinski@cavium.com>
10824         * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
10825         (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
10826         fails, combining the branches anyways.
10827         (tree_ssa_ifcombine): Inverse the order of the basic block walk,
10828         increases the number of combinings.
10829         * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
10831 2013-10-29  Mike Stump  <mikestump@comcast.net>
10833         * machmode.def (PARTIAL_INT_MODE): Add precision and name.
10834         * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
10835         (make_vector_mode): Increase namebuf to 16.
10836         (emit_insn_modes_h): When processing BImode, don't
10837         also match partial int modes.
10838         (emit_class_narrowest_mode): Likewise.
10840         * config/bfin/bfin-modes.def: Add precision to PDI.
10841         * config/m32c/m32c-modes.def: Add precision to PSI.
10842         * config/msp430/msp430-modes.def: Add precision to PSI.
10843         * config/rs6000/rs6000-modes.def: Add precision to PTI.
10844         * config/sh/sh-modes.def: Add precision to PSI and PDI.
10846 2013-10-29  Oleg Endo  <olegendo@gcc.gnu.org>
10848         PR target/54236
10849         * config/sh/sh.md (*addc): Rename existing variations to ...
10850         (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
10851         (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
10852         *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
10853         * config/sh/sh.c (addsubcosts): Handle some addc special cases.
10855 2013-10-29  Teresa Johnson  <tejohnson@google.com>
10857         PR ipa/58862
10858         * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
10859         insanities when updating probabilities.
10861 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
10863         * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
10864         prettyprinter for cgraph_node to reflect the conversion of the
10865         symtable types to a C++ class hierarchy: it now *is* a
10866         symtab_node_base, rather than having one (named "symbol").
10868 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
10870         * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
10871         __cilkrts_pop_frame.  If matched, then return true for built-in
10872         function name.
10873         (expand_builtin): Added BUILT_IN_CILK_DETACH and
10874         BUILT_IN_CILK_POP_FRAME case.
10875         * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
10876         (lhs_cilk_detect_spawn): Likewise.
10877         (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
10878         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
10879         (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
10880         (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
10881         (LANG_HOOKS_CILKPLUS): Likewise.
10882         * tree.h (CILK_SPAWN_FN): Likewise.
10883         * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
10884         * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
10885         (OBJS): Added cilk-common.o.
10886         (BUILTINS_DEF): Added cilk-builtins.def.
10887         * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
10888         (lhd_cilk_detect_spawn): Likewise.
10889         * langhooks.h (lang_hooks_for_cilkplus): New struct.
10890         (struct lang_hooks): Added new field called "cilkplus."
10891         * cilk-common.c: New file.
10892         * cilk.h: Likewise.
10893         * cilk-builtins.def: Likewise.
10894         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
10895         "__cilk" macro and set it to 200.
10896         * function.h (struct function::cilk_frame_decl): New field.
10897         (struct function::is_cilk_function): Likewise.
10898         (struct function::calls_cilk_spawn): Likewise.
10899         * gimplify.c (gimplify_call_expr): Added a check if the function call
10900         being gimplified is a spawn detach point.  If so, then add pop_frame
10901         and detach function calls.
10902         (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
10903         for gimplifying _Cilk_spawn and _Cilk_sync statements.
10904         (gimplify_return_expr): Added a check for _Cilk_spawn usage in
10905         function.  If so, added a _Cilk_sync and gimplified it.
10906         (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
10907         INIT_EXPRs.  If so, then call gimplify_cilk_spawn.
10908         * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
10909         spawner function.
10910         (can_inline_edge_p): Prevent inling of spawnee function.
10911         * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
10912         for functions that use Cilk keywords.
10913         * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
10914         * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
10915         CILK_SYNC_STMT cases.
10916         * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
10917         trees.
10918         * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
10919         (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
10920         * passes.texi (Cilk Keywords): New section that describes the compiler
10921         code changes for handling Cilk Keywords.
10923 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
10925         Patch autogenerated by refactor_symtab.py from
10926         https://github.com/davidmalcolm/gcc-refactoring-scripts
10927         revision 58bb219cc090b2f4516a9297d868c245495ee622
10929         * asan.c (asan_finish_file): Update for conversion of symtab types to
10930         a true class hierarchy.
10931         * cfgexpand.c (estimated_stack_frame_size): Likewise.
10932         * cgraph.c (cgraph_get_body): Likewise.
10933         (cgraph_get_create_real_symbol_node): Likewise.
10934         (verify_cgraph_node): Likewise.
10935         (verify_edge_corresponds_to_fndecl): Likewise.
10936         (verify_edge_count_and_frequency): Likewise.
10937         (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
10938         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
10939         (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
10940         (cgraph_node_cannot_return): Likewise.
10941         (cgraph_set_pure_flag_1): Likewise.
10942         (cgraph_set_const_flag_1): Likewise.
10943         (cgraph_set_nothrow_flag_1): Likewise.
10944         (cgraph_make_node_local_1): Likewise.
10945         (cgraph_for_node_and_aliases): Likewise.
10946         (cgraph_for_node_thunks_and_aliases): Likewise.
10947         (cgraph_node_can_be_local_p): Likewise.
10948         (cgraph_node_cannot_be_local_p_1): Likewise.
10949         (cgraph_function_body_availability): Likewise.
10950         (dump_cgraph_node): Likewise.
10951         (cgraph_rtl_info): Likewise.
10952         (cgraph_mark_address_taken_node): Likewise.
10953         (cgraph_remove_node): Likewise.
10954         (cgraph_release_function_body): Likewise.
10955         (cgraph_update_edges_for_call_stmt_node): Likewise.
10956         (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
10957         (cgraph_make_edge_direct): Likewise.
10958         (cgraph_resolve_speculation): Likewise.
10959         (cgraph_speculative_call_info): Likewise.
10960         (cgraph_turn_edge_to_speculative): Likewise.
10961         (cgraph_create_edge_1): Likewise.
10962         (cgraph_set_call_stmt): Likewise.
10963         (cgraph_node_for_asm): Likewise.
10964         (cgraph_add_thunk): Likewise.
10965         (cgraph_same_body_alias): Likewise.
10966         (cgraph_create_function_alias): Likewise.
10967         (cgraph_create_node): Likewise.
10968         (cgraph_create_empty_node): Likewise.
10969         (record_function_versions): Likewise.
10970         (used_from_object_file_p): Likewise.
10971         * cgraph.h (symtab_can_be_discarded): Likewise.
10972         (symtab_real_symbol_p): Likewise.
10973         (cgraph_mark_force_output_node): Likewise.
10974         (cgraph_edge_recursive_p): Likewise.
10975         (symtab_alias_target): Likewise.
10976         (varpool_all_refs_explicit_p): Likewise.
10977         (varpool_can_remove_if_no_refs): Likewise.
10978         (cgraph_only_called_directly_or_aliased_p): Likewise.
10979         (cgraph_next_function_with_gimple_body): Likewise.
10980         (cgraph_first_function_with_gimple_body): Likewise.
10981         (cgraph_function_with_gimple_body_p): Likewise.
10982         (cgraph_next_function): Likewise.
10983         (cgraph_first_function): Likewise.
10984         (cgraph_next_defined_function): Likewise.
10985         (cgraph_first_defined_function): Likewise.
10986         (varpool_next_defined_variable): Likewise.
10987         (varpool_first_defined_variable): Likewise.
10988         (varpool_next_static_initializer): Likewise.
10989         (varpool_first_static_initializer): Likewise.
10990         (varpool_next_variable): Likewise.
10991         (varpool_first_variable): Likewise.
10992         (varpool_node_name): Likewise.
10993         (varpool): Likewise.
10994         (cgraph): Likewise.
10995         (is_a_helper <varpool_node>::test): Likewise.
10996         (is_a_helper <cgraph_node>::test): Likewise.
10997         (varpool_variable_node): Likewise.
10998         (cgraph_function_or_thunk_node): Likewise.
10999         (varpool_alias_target): Likewise.
11000         (cgraph_alias_target): Likewise.
11001         (cgraph_node_name): Likewise.
11002         (varpool_node_asm_name): Likewise.
11003         (cgraph_node_asm_name): Likewise.
11004         * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
11005         (cgraph_rebuild_references): Likewise.
11006         (rebuild_cgraph_edges): Likewise.
11007         (record_eh_tables): Likewise.
11008         (build_cgraph_edges): Likewise.
11009         (mark_store): Likewise.
11010         (mark_load): Likewise.
11011         (mark_address): Likewise.
11012         (record_type_list): Likewise.
11013         (record_reference): Likewise.
11014         * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
11015         (cgraph_materialize_clone): Likewise.
11016         (cgraph_function_versioning): Likewise.
11017         (cgraph_copy_node_for_versioning): Likewise.
11018         (update_call_expr): Likewise.
11019         (cgraph_find_replacement_node): Likewise.
11020         (cgraph_create_virtual_clone): Likewise.
11021         (cgraph_clone_node): Likewise.
11022         * cgraphunit.c (compile): Likewise.
11023         (output_weakrefs): Likewise.
11024         (output_in_order): Likewise.
11025         (expand_function): Likewise.
11026         (assemble_thunks_and_aliases): Likewise.
11027         (expand_thunk): Likewise.
11028         (mark_functions_to_output): Likewise.
11029         (handle_alias_pairs): Likewise.
11030         (analyze_functions): Likewise.
11031         (walk_polymorphic_call_targets): Likewise.
11032         (varpool_finalize_decl): Likewise.
11033         (process_function_and_variable_attributes): Likewise.
11034         (cgraph_process_same_body_aliases): Likewise.
11035         (analyze_function): Likewise.
11036         (cgraph_add_new_function): Likewise.
11037         (cgraph_finalize_function): Likewise.
11038         (referred_to_p): Likewise.
11039         (cgraph_reset_node): Likewise.
11040         (cgraph_process_new_functions): Likewise.
11041         (enqueue_node): Likewise.
11042         (decide_is_symbol_needed): Likewise.
11043         * coverage.c (coverage_compute_profile_id): Likewise.
11044         * dbxout.c (dbxout_expand_expr): Likewise.
11045         * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
11046         (reference_to_unused): Likewise.
11047         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
11048         * gimplify.c (unvisit_body): Likewise.
11049         (unshare_body): Likewise.
11050         * ipa-cp.c (ipcp_generate_summary): Likewise.
11051         (ipcp_decision_stage): Likewise.
11052         (identify_dead_nodes): Likewise.
11053         (decide_whether_version_node): Likewise.
11054         (decide_about_value): Likewise.
11055         (perhaps_add_new_callers): Likewise.
11056         (create_specialized_node): Likewise.
11057         (update_profiling_info): Likewise.
11058         (ipcp_propagate_stage): Likewise.
11059         (estimate_local_effects): Likewise.
11060         (good_cloning_opportunity_p): Likewise.
11061         (devirtualization_time_bonus): Likewise.
11062         (propagate_constants_accross_call): Likewise.
11063         (initialize_node_lattices): Likewise.
11064         (ipcp_cloning_candidate_p): Likewise.
11065         (determine_versionability): Likewise.
11066         (print_all_lattices): Likewise.
11067         (print_lattice): Likewise.
11068         (ipcp_discover_new_direct_edges): Likewise.
11069         * ipa-devirt.c (ipa_devirt): Likewise.
11070         (likely_target_p): Likewise.
11071         (update_type_inheritance_graph): Likewise.
11072         (possible_polymorphic_call_target_p): Likewise.
11073         (dump_possible_polymorphic_call_targets): Likewise.
11074         (devirt_variable_node_removal_hook): Likewise.
11075         (record_binfo): Likewise.
11076         (maybe_record_node): Likewise.
11077         (build_type_inheritance_graph): Likewise.
11078         * ipa-inline-analysis.c (inline_write_summary): Likewise.
11079         (inline_generate_summary): Likewise.
11080         (inline_analyze_function): Likewise.
11081         (do_estimate_growth): Likewise.
11082         (simple_edge_hints): Likewise.
11083         (estimate_node_size_and_time): Likewise.
11084         (estimate_edge_devirt_benefit): Likewise.
11085         (compute_inline_parameters): Likewise.
11086         (estimate_function_body_sizes): Likewise.
11087         (compute_bb_predicates): Likewise.
11088         (initialize_inline_failed): Likewise.
11089         (dump_inline_summary): Likewise.
11090         (dump_inline_edge_summary): Likewise.
11091         * ipa-inline-transform.c (inline_transform): Likewise.
11092         (preserve_function_body_p): Likewise.
11093         (save_inline_function_body): Likewise.
11094         (inline_call): Likewise.
11095         (clone_inlined_nodes): Likewise.
11096         (can_remove_node_now_p): Likewise.
11097         (can_remove_node_now_p_1): Likewise.
11098         * ipa-inline.c (early_inliner): Likewise.
11099         (early_inline_small_functions): Likewise.
11100         (inline_always_inline_functions): Likewise.
11101         (ipa_inline): Likewise.
11102         (flatten_function): Likewise.
11103         (inline_small_functions): Likewise.
11104         (speculation_useful_p): Likewise.
11105         (recursive_inlining): Likewise.
11106         (update_caller_keys): Likewise.
11107         (reset_edge_caches): Likewise.
11108         (update_edge_key): Likewise.
11109         (edge_badness): Likewise.
11110         (relative_time_benefit): Likewise.
11111         (want_inline_self_recursive_call_p): Likewise.
11112         (want_inline_small_function_p): Likewise.
11113         (want_early_inline_function_p): Likewise.
11114         (num_calls): Likewise.
11115         (can_early_inline_edge_p): Likewise.
11116         (can_inline_edge_p): Likewise.
11117         (report_inline_failed_reason): Likewise.
11118         * ipa-profile.c (ipa_profile): Likewise.
11119         (ipa_propagate_frequency): Likewise.
11120         (ipa_propagate_frequency_1): Likewise.
11121         (ipa_profile_generate_summary): Likewise.
11122         * ipa-prop.c (ipcp_transform_function): Likewise.
11123         (read_replacements_section): Likewise.
11124         (ipa_prop_read_section): Likewise.
11125         (ipa_modify_call_arguments): Likewise.
11126         (ipa_print_node_params): Likewise.
11127         (propagate_controlled_uses): Likewise.
11128         (update_indirect_edges_after_inlining): Likewise.
11129         (remove_described_reference): Likewise.
11130         (ipa_make_edge_direct_to_target): Likewise.
11131         (ipa_analyze_node): Likewise.
11132         (ipa_analyze_params_uses): Likewise.
11133         (ipa_compute_jump_functions): Likewise.
11134         (ipa_get_callee_param_type): Likewise.
11135         (ipa_print_node_jump_functions): Likewise.
11136         (ipa_initialize_node_params): Likewise.
11137         (ipa_populate_param_decls): Likewise.
11138         (ipa_func_spec_opts_forbid_analysis_p): Likewise.
11139         (write_agg_replacement_chain): Likewise.
11140         (ipa_write_node_info): Likewise.
11141         (ipa_edge_duplication_hook): Likewise.
11142         (try_decrement_rdesc_refcount): Likewise.
11143         * ipa-pure-const.c (propagate_nothrow): Likewise.
11144         (propagate_pure_const): Likewise.
11145         (pure_const_read_summary): Likewise.
11146         (pure_const_write_summary): Likewise.
11147         (analyze_function): Likewise.
11148         * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
11149         (ipa_ref_referring_ref_list): Likewise.
11150         * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
11151         (ipa_remove_stmt_references): Likewise.
11152         (ipa_find_reference): Likewise.
11153         (ipa_dump_referring): Likewise.
11154         (ipa_dump_references): Likewise.
11155         (ipa_record_reference): Likewise.
11156         * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
11157         (ipa_reference_write_optimization_summary): Likewise.
11158         (write_node_summary_p): Likewise.
11159         (propagate): Likewise.
11160         (read_write_all_from_decl): Likewise.
11161         (generate_summary): Likewise.
11162         (analyze_function): Likewise.
11163         (propagate_bits): Likewise.
11164         (ipa_reference_get_not_written_global): Likewise.
11165         (ipa_reference_get_not_read_global): Likewise.
11166         * ipa-split.c (execute_split_functions): Likewise.
11167         (split_function): Likewise.
11168         * ipa-utils.c (ipa_merge_profiles): Likewise.
11169         (dump_cgraph_node_set): Likewise.
11170         (ipa_reverse_postorder): Likewise.
11171         (ipa_edge_within_scc): Likewise.
11172         (ipa_get_nodes_in_cycle): Likewise.
11173         (ipa_free_postorder_info): Likewise.
11174         (ipa_reduced_postorder): Likewise.
11175         (searchc): Likewise.
11176         (recursive_call_p): Likewise.
11177         * ipa.c (ipa_cdtor_merge): Likewise.
11178         (record_cdtor_fn): Likewise.
11179         (function_and_variable_visibility): Likewise.
11180         (varpool_externally_visible_p): Likewise.
11181         (cgraph_externally_visible_p): Likewise.
11182         (comdat_can_be_unshared_p): Likewise.
11183         (comdat_can_be_unshared_p_1): Likewise.
11184         (address_taken_from_non_vtable_p): Likewise.
11185         (ipa_discover_readonly_nonaddressable_vars): Likewise.
11186         (symtab_remove_unreachable_nodes): Likewise.
11187         (walk_polymorphic_call_targets): Likewise.
11188         (process_references): Likewise.
11189         (enqueue_node): Likewise.
11190         (has_addr_references_p): Likewise.
11191         (cgraph_non_local_node_p_1): Likewise.
11192         * is-a.h (varpool_analyze_node): Likewise.
11193         * lto-cgraph.c (input_symtab): Likewise.
11194         (merge_profile_summaries): Likewise.
11195         (input_cgraph_1): Likewise.
11196         (input_edge): Likewise.
11197         (input_varpool_node): Likewise.
11198         (input_node): Likewise.
11199         (input_overwrite_node): Likewise.
11200         (compute_ltrans_boundary): Likewise.
11201         (output_refs): Likewise.
11202         (lto_output_varpool_node): Likewise.
11203         (lto_output_node): Likewise.
11204         (reachable_from_other_partition_p): Likewise.
11205         (referenced_from_other_partition_p): Likewise.
11206         (lto_output_edge): Likewise.
11207         (output_node_opt_summary): Likewise.
11208         (add_node_to): Likewise.
11209         (reachable_from_this_partition_p): Likewise.
11210         (lto_set_symtab_encoder_in_partition): Likewise.
11211         (lto_symtab_encoder_in_partition_p): Likewise.
11212         (lto_set_symtab_encoder_encode_initializer): Likewise.
11213         (lto_symtab_encoder_encode_initializer_p): Likewise.
11214         (lto_set_symtab_encoder_encode_body): Likewise.
11215         (lto_symtab_encoder_encode_body_p): Likewise.
11216         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
11217         Likewise.
11218         * lto-streamer-in.c (lto_read_body): Likewise.
11219         (fixup_call_stmt_edges): Likewise.
11220         (fixup_call_stmt_edges_1): Likewise.
11221         * lto-streamer-out.c (produce_symtab): Likewise.
11222         (output_symbol_p): Likewise.
11223         (write_symbol): Likewise.
11224         (lto_output): Likewise.
11225         (copy_function): Likewise.
11226         (output_function): Likewise.
11227         * passes.c (function_called_by_processed_nodes_p): Likewise.
11228         (ipa_write_optimization_summaries): Likewise.
11229         (ipa_write_summaries): Likewise.
11230         (do_per_function_toporder): Likewise.
11231         (do_per_function): Likewise.
11232         (dump_passes): Likewise.
11233         * symtab.c (symtab_semantically_equivalent_p): Likewise.
11234         (symtab_nonoverwritable_alias): Likewise.
11235         (symtab_nonoverwritable_alias_1): Likewise.
11236         (symtab_for_node_and_aliases): Likewise.
11237         (symtab_resolve_alias): Likewise.
11238         (fixup_same_cpp_alias_visibility): Likewise.
11239         (symtab_alias_ultimate_target): Likewise.
11240         (symtab_used_from_object_file_p): Likewise.
11241         (verify_symtab_base): Likewise.
11242         (dump_symtab_base): Likewise.
11243         (symtab_node_name): Likewise.
11244         (symtab_node_asm_name): Likewise.
11245         (symtab_dissolve_same_comdat_group_list): Likewise.
11246         (symtab_add_to_same_comdat_group): Likewise.
11247         (symtab_unregister_node): Likewise.
11248         (symtab_insert_node_to_hashtable): Likewise.
11249         (symtab_register_node): Likewise.
11250         (unlink_from_assembler_name_hash): Likewise.
11251         (insert_to_assembler_name_hash): Likewise.
11252         (eq_assembler_name): Likewise.
11253         (hash_node_by_assembler_name): Likewise.
11254         (eq_node): Likewise.
11255         (hash_node): Likewise.
11256         * toplev.c (wrapup_global_declaration_2): Likewise.
11257         * trans-mem.c (ipa_tm_execute): Likewise.
11258         (ipa_tm_transform_clone): Likewise.
11259         (ipa_tm_transform_transaction): Likewise.
11260         (ipa_tm_transform_calls_redirect): Likewise.
11261         (ipa_tm_insert_gettmclone_call): Likewise.
11262         (ipa_tm_insert_irr_call): Likewise.
11263         (ipa_tm_create_version): Likewise.
11264         (ipa_tm_create_version_alias): Likewise.
11265         (ipa_tm_mark_forced_by_abi_node): Likewise.
11266         (ipa_tm_mark_force_output_node): Likewise.
11267         (ipa_tm_diagnose_tm_safe): Likewise.
11268         (ipa_tm_mayenterirr_function): Likewise.
11269         (ipa_tm_scan_irr_function): Likewise.
11270         (ipa_tm_note_irrevocable): Likewise.
11271         (ipa_tm_scan_calls_clone): Likewise.
11272         (get_cg_data): Likewise.
11273         * tree-eh.c (tree_could_trap_p): Likewise.
11274         * tree-emutls.c (ipa_lower_emutls): Likewise.
11275         (create_emultls_var): Likewise.
11276         (lower_emutls_function_body): Likewise.
11277         (gen_emutls_addr): Likewise.
11278         (emutls_decl): Likewise.
11279         (new_emutls_decl): Likewise.
11280         * tree-inline.c (tree_function_versioning): Likewise.
11281         (optimize_inline_calls): Likewise.
11282         (expand_call_inline): Likewise.
11283         (estimate_num_insns): Likewise.
11284         (copy_bb): Likewise.
11285         (delete_unreachable_blocks_update_callgraph): Likewise.
11286         * tree-nested.c (gimplify_all_functions): Likewise.
11287         (create_nesting_tree): Likewise.
11288         (check_for_nested_with_variably_modified): Likewise.
11289         * tree-pretty-print.c (dump_function_header): Likewise.
11290         * tree-profile.c (tree_profiling): Likewise.
11291         * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
11292         (modify_function): Likewise.
11293         (convert_callers): Likewise.
11294         (convert_callers_for_node): Likewise.
11295         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
11296         (associate_varinfo_to_alias): Likewise.
11297         (create_variable_info_for): Likewise.
11298         (get_constraint_for_ssa_var): Likewise.
11299         * tree-vectorizer.c (increase_alignment): Likewise.
11300         * tree.c (find_decls_types_in_var): Likewise.
11301         (find_decls_types_in_node): Likewise.
11302         (free_lang_data_in_decl): Likewise.
11303         * value-prof.c (gimple_ic_transform): Likewise.
11304         (gimple_ic): Likewise.
11305         (check_ic_target): Likewise.
11306         (init_node_map): Likewise.
11307         * varasm.c (decl_binds_to_current_def_p): Likewise.
11308         (default_binds_local_p_1): Likewise.
11309         (dump_tm_clone_pairs): Likewise.
11310         (assemble_alias): Likewise.
11311         (find_decl): Likewise.
11312         (mark_decl_referenced): Likewise.
11313         * varpool.c (varpool_for_node_and_aliases): Likewise.
11314         (varpool_extra_name_alias): Likewise.
11315         (varpool_create_variable_alias): Likewise.
11316         (add_new_static_var): Likewise.
11317         (varpool_finalize_named_section_flags): Likewise.
11318         (varpool_remove_unreferenced_decls): Likewise.
11319         (enqueue_node): Likewise.
11320         (varpool_assemble_decl): Likewise.
11321         (assemble_aliases): Likewise.
11322         (varpool_analyze_node): Likewise.
11323         (cgraph_variable_initializer_availability): Likewise.
11324         (varpool_add_new_variable): Likewise.
11325         (ctor_for_folding): Likewise.
11326         (dump_varpool_node): Likewise.
11327         (varpool_remove_initializer): Likewise.
11328         (varpool_remove_node): Likewise.
11329         (varpool_node_for_decl): Likewise.
11330         (varpool_create_empty_node): Likewise.
11331         * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
11332         (ix86_get_function_versions_dispatcher): Likewise.
11334 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
11336         * cgraph.h (symtab_node_base): Convert to a class;
11337         add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
11338         chain_next/prev from symtab_node_def.
11339         (cgraph_node): Inherit from symtab_node; add GTY option
11340         tag ("SYMTAB_FUNCTION").
11341         (varpool_node): Inherit from symtab_node; add GTY option
11342         tag ("SYMTAB_VARIABLE").
11343         (symtab_node_def): Remove.
11344         (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
11345         (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
11346         (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
11347         (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
11349         * ipa-ref.h (symtab_node_def): Drop.
11350         (symtab_node): Change underlying type from symtab_node_def to
11351         symtab_node_base.
11352         (const_symtab_node): Likwise.
11354         * is-a.h: Update examples in comment.
11356         * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
11357         (assembler_name_hash): Likewise.
11359 2013-10-29  Martin Liska  <marxin.liska@gmail.com>
11361         * doc/tree-ssa.texi (gimple_phi_result): Document.
11362         (gimple_phi_num_args, gimple_phi_arg): Likewise.
11363         (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
11364         (PHI_RESULT, PHI_NUM_ARGS): Remove.
11365         (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
11367 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
11369         * expr.h: Revert change and include tree-core.h.
11370         * rtl.h: Revert change and don't include tree-core.h.
11372 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
11374         * config/darwin.c: Include gimple.h.
11375         * config/i386/winnt.c: Likewise.
11377 2013-10-29  Marc Glisse  <marc.glisse@inria.fr>
11379         PR tree-optimization/19831
11380         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
11382 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
11384         * tree-outof-ssa.h: Remove include files.
11385         * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
11386         * expr.c: Likewise.
11387         * tree-ssa-coalesce.c: Likewise.
11388         * cfgexpand.c: Likewise.
11389         * tree-ssa-ter.c: Likewise.
11390         * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
11391         * lto-streamer.h: Likewise.
11392         * cgraphbuild.c: Add gimple.h to include list.
11393         * data-streamer-in.c: Likewise.
11394         * ipa-cp.c: Likewise.
11395         * tree-streamer.c: Likewise.
11396         * lto-compress.c: Likewise.
11397         * ipa-reference.c: Likewise.
11398         * data-streamer-out.c: Likewise.
11399         * lto-cgraph.c: Likewise.
11400         * cgraphclones.c: Likewise.
11401         * ipa-utils.c: Likewise.
11402         * data-streamer.c: Likewise.
11403         * ipa-split.c: Likewise.
11404         * lto-section-in.c: Likewise.
11405         * tree-streamer-out.c: Likewise.
11406         * ipa-prop.c: Likewise.
11407         * tree-streamer-in.c: Likewise.
11408         * symtab.c: Likewise.
11409         * opts-global.c: Likewise.
11410         * lto-opts.c: Likewise.
11411         * lto-section-out.c: Likewise.
11412         * lto-streamer.c: Likewise.
11413         * rtl.h: Add tree-core.h to include list.
11414         * expr.h: Remove tree-core.h from include list.
11415         * gimple.h: Likewise.
11416         * ipa-utils.h: Likewise.
11417         * streamer-hooks.h: Likewise.
11418         * streamer-hooks.c: Include input.h.
11420 2013-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11422         * config/arm/arm.c (cortexa7_extra_costs): New table.
11423         (arm_cortex_a7_tune): New.
11424         * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
11426 2013-10-29  Eric Botcazou  <ebotcazou@adacore.com>
11428         * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
11430 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
11432         * doc/gty.texi ("Inheritance and GTY"): Make it clear that
11433         to use autogenerated markers for a class-hierarchy, every class
11434         must have a GTY marker.
11435         * gengtype.h (struct type): Add linked list of subclasses to
11436         the "s" member of the union.
11437         (add_subclass): New decl.
11438         * gengtype-state.c (read_state_struct_type): Set up subclass
11439         linked list.
11440         * gengtype.c (get_ultimate_base_class): New.
11441         (add_subclass): New.
11442         (new_structure): Set up subclass linked list.
11443         (set_gc_used_type): Propagate usage information to subclasses.
11444         (output_mangled_typename): Use get_ultimate_base_class.
11445         (walk_subclasses): Use the subclass linked list, avoiding an
11446         O(N^2) when writing out all types.
11447         (walk_type): Issue an error if the base class is missing a tag,
11448         rather than generating bogus C code.  Add a gcc_unreachable
11449         default case, in case people omit tags from concrete subclasses,
11450         or get the values wrong.
11451         (write_func_for_structure): Issue an error for subclasses for
11452         which the base doesn't have a "desc", since otherwise the
11453         autogenerated routines for the base would silently fail to visit
11454         any subclass fields.
11455         (write_root): Use get_ultimate_base_class, tweaking constness of
11456         tp to match that function's signature.
11458 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
11460         * doc/gty.texi (GTY Options): Add note about inheritance to
11461         description of desc and tag.
11462         (Inheritance and GTY): New.
11464 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
11466         * gengtype-parse.c (opts_have): Drop "static" so that
11467         we can use this from gengtype.c.
11468         * gengtype.c (set_gc_used_type): Mark any base class as used;
11469         update field traversal to visit inherited fields.
11470         (output_mangled_typename):  Convert references to classes within
11471         an inheritance hierarchy to reference the ultimate base class,
11472         since only it will have gt_ functions.
11473         (get_string_option): New.
11474         (walk_subclasses): New.
11475         (walk_type): Treat GTY structs that have a "desc" as being the
11476         root of an inheritance hierarchy.  Generate a switch on it
11477         within the marking function which walks all subclasses, adding
11478         cases for them via walk_subclasses.  For subclasses, visit all
11479         fields of the type (including inherited ones).
11480         (write_func_for_structure): Don't write fns for subclasses, only
11481         for the ultimate base class within an inheritance hierarchy.
11482         Subclasses-marking will be handled by the base class marking functions.
11483         (write_types): Likewise.
11484         (write_local_func_for_structure): Likewise.
11485         (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
11486         a "tag" option (and are thus concrete subclasses).
11487         (write_root): Use the marker function for the ultimate base class.
11488         * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
11489         (opts_have): Add declaration.
11491 2013-10-28  Vladimir Makarov  <vmakarov@redhat.com>
11493         * lra-spills.c (lra_final_code_change): Remove useless move insns
11494         originated from moves of pseudos.
11496 2013-10-28  Jeff Law  <law@redhat.com>
11498         * lower-subreg.c (resolve_simple_move): Fix comment typo.
11500 2013-10-28  Trevor Saunders  <tsaunders@mozilla.com>
11502         * df-scan.c (df_collection_rec): Adjust.
11503         (copy_defs): New constant.
11504         (copy_uses): Likewise.
11505         (copy_eq_uses): Likewise.
11506         (copy_mw): Likewise.
11507         (copy_all): Likewise.
11508         (df_insn_rescan): Adjust.
11509         (df_notes_rescan): Likewise.
11510         (df_swap_refs): Likewise.
11511         (df_sort_and_compress_refs): Likewise.
11512         (df_sort_and_compress_mws): Likewise.
11513         (df_install_refs): Likewise.
11514         (df_install_mws): Likewise.
11515         (df_refs_add_to_chains): Add flags parameter controlling which vectors
11516         are coppied.
11517         (df_bb_refs_record): Adjust.
11518         (df_record_entry_block_defs): Likewise.
11519         (df_record_exit_block_defs): Likewise.
11520         (df_refs_verify): Likewise.
11521         (df_mws_verify): Likewise.
11522         (df_insn_refs_verify): Likewise.
11523         (df_bb_verify): Likewise.
11524         * ipa-pure-const.c (finish_state): Remove.
11525         (propagate): Adjust.
11526         * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
11527         tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
11528         var-tracking.c: Adjust.
11529         * vec.c (stack_vecs): Remove.
11530         (register_stack_vec): Likewise.
11531         (stack_vec_register_index): Likewise.
11532         (unregister_stack_vec): Likewise.
11533         * vec.h (struct va_stack): Remove.
11534         (struct vec<T, A, vl_ptr>): Specialize as
11535         struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
11536         allocation strategy compatable with the vl_ptr layout.
11537         (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
11538         specialization anyway.
11539         (class stack_vec): New class.
11540         (vec_stack_alloc): Remove.
11541         (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
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 (prefetch): Allow TARGET_AVX512PF.
11554         (*prefetch_avx512pf_<mode>): New.
11555         * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
11556         (avx512f_maskcmp<mode>3): Ditto.
11557         (vashrv16si3): Ditto.
11559 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11560             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11561             Sergey Lega  <sergey.s.lega@intel.com>
11562             Anna Tikhonova  <anna.tikhonova@intel.com>
11563             Ilya Tocar  <ilya.tocar@intel.com>
11564             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11565             Ilya Verbin  <ilya.verbin@intel.com>
11566             Kirill Yukhin  <kirill.yukhin@intel.com>
11567             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11569         * config/i386/i386.md (any_truncate): New.
11570         (trunsuffix): Ditto.
11571         * config/i386/predicates.md (const_8_to_9_operand): New.
11572         (const_10_to_11_operand): Ditto.
11573         (const_12_to_13_operand): Ditto.
11574         (const_14_to_15_operand): Ditto.
11575         (const_16_to_19_operand): Ditto.
11576         (const_20_to_23_operand): Ditto.
11577         (const_24_to_27_operand): Ditto.
11578         (const_28_to_31_operand): Ditto.
11579         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
11580         (cvtusi2<ssescalarmodesuffix>32): New.
11581         (cvtusi2<ssescalarmodesuffix>64): Ditto.
11582         (ufloatv16siv16sf2): Ditto.
11583         (avx512f_fix_notruncv16sfv16si): Ditto.
11584         (avx512f_ufix_notruncv16sfv16si): Ditto.
11585         (avx512f_vcvtss2usi): Ditto.
11586         (avx512f_vcvtss2usiq): Ditto.
11587         (avx512f_vcvttss2usi): Ditto.
11588         (avx512f_vcvttss2usiq): Ditto.
11589         (avx512f_vcvtsd2usi): Ditto.
11590         (avx512f_vcvtsd2usiq): Ditto.
11591         (avx512f_vcvttsd2usi): Ditto.
11592         (avx512f_vcvttsd2usiq): Ditto.
11593         (ufloatv8siv8df): Ditto.
11594         (avx512f_cvtdq2pd512_2): Ditto.
11595         (avx512f_cvtpd2dq512): Ditto.
11596         (avx512f_ufix_notruncv8dfv8si): Ditto.
11597         (avx512f_cvtpd2ps512): Ditto.
11598         (vec_unpacks_lo_v16sf): Ditto.
11599         (vec_unpacks_hi_v16sf): Ditto.
11600         (vec_unpacks_float_hi_v16si): Ditto.
11601         (vec_unpacks_float_lo_v16si): Ditto.
11602         (avx512f_unpckhps512): Ditto.
11603         (avx512f_unpcklps512): Ditto.
11604         (avx512f_movshdup512): Ditto.
11605         (avx512f_movsldup512): Ditto.
11606         (vec_extract_lo_v32hi): Ditto.
11607         (vec_extract_hi_v32hi): Ditto.
11608         (vec_extract_lo_v64qi): Ditto.
11609         (vec_extract_hi_v64qi): Ditto.
11610         (avx512f_unpckhpd512): Ditto.
11611         (avx512f_movddup512): Ditto.
11612         (avx512f_unpcklpd512): Ditto.
11613         (*avx512f_unpcklpd512): Ditto.
11614         (avx512f_shufps512_1): Ditto.
11615         (avx512f_shufpd512_1): Ditto.
11616         (avx512f_interleave_highv8di): Ditto.
11617         (avx512f_interleave_lowv8di): Ditto.
11618         (PMOV_DST_MODE): Ditto.
11619         (pmov_src_mode): Ditto.
11620         (pmov_src_lower): Ditto.
11621         (pmov_suff): Ditto.
11622         (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
11623         (*avx512f_<code>v8div16qi2): Ditto.
11624         (*avx512f_<code>v8div16qi2_store): Ditto.
11625         (vec_widen_umult_even_v16si): Ditto.
11626         (*vec_widen_umult_even_v16si): Ditto.
11627         (vec_widen_smult_even_v16si): Ditto.
11628         (*vec_widen_smult_even_v16si): Ditto.
11629         (avx512f_interleave_highv16si): Ditto.
11630         (avx512f_interleave_lowv16si): Ditto.
11631         (avx512f_<code>v16qiv16si2): Ditto.
11632         (avx512f_<code>v16hiv16si2): Ditto.
11633         (avx512f_<code>v8qiv8di2): Ditto.
11634         (avx512f_<code>v8hiv8di2): Ditto.
11635         (avx512f_<code>v8siv8di2): Ditto.
11636         (avx512cd_maskb_vec_dupv8di): Ditto.
11637         (avx512cd_maskw_vec_dupv16si): Ditto.
11638         (avx512f_vcvtph2ps512): Ditto.
11639         (avx512f_vcvtps2ph512): Ditto.
11640         (VEC_EXTRACT_MODE): Extened with wider modes.
11641         (VEC_PERM_AVX2): Ditto.
11642         (VEC_PERM_CONST): Ditto.
11644 2013-10-28  Joern Rennecke  <joern.rennecke@embecosm.com>
11646         * config/arc/arc.c (arc_ccfsm_post_advance):
11647         Add comment about TYPE_RETURN.
11649 2013-10-28  Bin Cheng  <bin.cheng@arm.com>
11651         * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
11652         Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
11653         (strip_offset): Convert offset to unsigned number.
11655 2013-10-27  Tom de Vries  <tom@codesourcery.com>
11657         * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
11658         Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
11660 2013-10-27  Oleg Endo  <olegendo@gcc.gnu.org>
11662         * config/sh/sh.c (MSW, LSW): Move and rename macros to...
11663         * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
11664         (TARGET_BIG_ENDIAN): New macro.
11665         * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
11666         Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
11667         * config/sh/sh.c: Likewise.
11668         * config/sh/sh.h: Likewise.
11670 2013-10-27  Hans-Peter Nilsson  <hp@axis.com>
11672         * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
11673         removed PRED_MUDFLAP with PRED_NORETURN.  Correct file-path in comment.
11675 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
11677         * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
11678         Fix formatting.
11679         (cmpstr_t, cmpstrsi): Fix formatting.
11681 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
11683         PR target/52483
11684         * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
11685         addressing, do not use general_operand for memory operands.
11687 2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
11689         Revert:
11690         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
11691         * lra-spills.c (lra_final_code_change): Remove useless move insns.
11693 2013-10-26  Jeff Law  <law@redhat.com>
11695         * predict.c (PRED_MUDFLAP): Remove.
11696         * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
11698         * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
11699         (OBJS): Remove tree-nomudflap.o
11700         (GTFILES): Remove tree-mudflap.c
11701         * builtins.c (expand_builtin_alloc): Remove mudflap support.
11702         * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
11703         (mfwrap_spec, mflib_spec): Likewise.
11704         (cpp_unique_options, cc1_options, static_specs): Likewise.
11705         * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
11706         * passes.def: Likewise.
11707         * toplev.c (compile_file, process_options): Likewise.
11708         * tree-inline.c (copy_tree_r): Likewise.
11709         * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
11710         * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
11711         (build_constant_desc, output_constant_def_contents): Likewise.
11712         (categorize_decl_for_section): Likewise.
11713         * tree-mudflap.c: Removed.
11714         * tree-mudflap.h: Removed.
11715         * tree-nomudflap.c: Removed.
11716         * bfin/uclinux.h (MFWRAP_SPEC): Remove.
11717         * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
11718         * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
11719         * config/sol2.h (MFLIB_SPEC): Likewise.
11720         * doc/install.texi: Remove mudflap references.
11721         * doc/passes.texi: Similarly.
11722         * doc/sourcebuild.texi: Similarly.
11723         * doc/invoke.texi: Remove mudlfap related options.
11725 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
11727         PR rtl-optimization/58759
11728         * lra-constraints.c (lra_constraints): Remove wrong condition to
11729         remove insn setting up an equivalent pseudo.
11731 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
11733         * config/rs6000/rs6000-protos.h
11734         (rs6000_secondary_memory_needed_mode): New prototype.
11735         * config/rs6000/rs6000.c: Include ira.h.
11736         (TARGET_LRA_P): Redefine.
11737         (rs6000_legitimate_offset_address_p): Call
11738         legitimate_constant_pool_address_p in strict mode for LRA.
11739         (rs6000_legitimate_address_p): Ditto.
11740         (legitimate_lo_sum_address_p): Add code for LRA.  Use lra_in_progress.
11741         (rs6000_emit_move): Add LRA version of code to generate load/store
11742         of SDmode values.
11743         (rs6000_secondary_memory_needed_mode): New.
11744         (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
11745         (rs6000_secondary_reload_class): Return NO_REGS for LRA for
11746         constants, memory, and FP registers.
11747         (rs6000_lra_p): New.
11748         * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
11749         * config/rs6000/rs6000.opt (mlra): New option.
11750         * lra-spills.c (lra_final_code_change): Remove useless move insns.
11752 2013-10-25  Yufeng Zhang  <yufeng.zhang@arm.com>
11754         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
11755         has_single_use () and not do the conversion if has_single_use ()
11756         returns false for the multiplication result.
11758 2013-10-25  David Malcolm  <dmalcolm@redhat.com>
11760         * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
11761         to "NODE", since this works on a "tree", not an
11762         "enum tree_code".
11763         (CONSTANT_CLASS_P): Likewise.
11764         (TYPE_P): Likewise.
11765         (DECL_P): Likewise.
11766         (INDIRECT_REF_P): Likewise.
11767         (REFERENCE_CLASS_P): Likewise.
11768         (COMPARISON_CLASS_P): Likewise.
11769         (UNARY_CLASS_P): Likewise.
11770         (BINARY_CLASS_P): Likewise.
11771         (STATEMENT_CLASS_P): Likewise.
11772         (VL_EXP_CLASS_P): Likewise.
11773         (EXPRESSION_CLASS_P): Likewise.
11774         (IS_TYPE_OR_DECL_P): Likewise.
11776 2013-10-25  Marc Glisse  <marc.glisse@inria.fr>
11778         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
11779         ADDR_EXPR in the defining statement.
11781 2013-10-25  Richard Biener  <rguenther@suse.de>
11783         PR tree-optimization/58626
11784         * tree-loop-distribution.c (enum rdg_dep_type): Remove
11785         anti_dd, output_dd and input_dd.
11786         (struct rdg_edge): Remove level and relation members.
11787         (RDGE_LEVEL, RDGE_RELATION): Remove.
11788         (dot_rdg_1): Adjust.
11789         (create_rdg_edge_for_ddr): Remove.
11790         (create_rdg_edges_for_scalar): Adjust.
11791         (create_edge_for_control_dependence): Likewise.
11792         (create_rdg_edges): Split into ...
11793         (create_rdg_flow_edges): ... this
11794         (create_rdg_cd_edges): ... and this.
11795         (free_rdg): Adjust.
11796         (build_rdg): Likewise, do not compute data dependences or
11797         add edges for them.
11798         (pg_add_dependence_edges): New function.
11799         (pgcmp): Likewise.
11800         (distribute_loop): First apply all non-dependence based
11801         partition mergings.  Then compute dependences between partitions
11802         and merge and order partitions according to them.
11804 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
11806         PR rtl-optimization/58831
11807         * alias.c (init_alias_analysis): At the beginning of each iteration,
11808         set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
11810 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
11812         * recog.c (search_ofs): New static variable moved from...
11813         (peep2_find_free_register): ...here.
11814         (peephole2_optimize): Initialize it.
11816 2013-10-25  Tobias Burnus  <burnus@net-b.de>
11818         * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
11820 2013-10-25  Uros Bizjak  <ubizjak@gmail.com>
11822         * config/i386/i386.h (TARGET_MPX): New define.
11823         (TARGET_MPX_P): Ditto.
11825 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
11827         * config/i386/constraints.md (B): New.
11828         (Ti): New.
11829         (Tb): New.
11830         * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
11831         * config/i386/i386-modes.def (BND32): New.
11832         (BND64): New.
11833         * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
11834         * config/i386/i386.c (isa_opts): Add mmpx.
11835         (regclass_map): Add bound registers.
11836         (dbx_register_map): Likewise.
11837         (dbx64_register_map): Likewise.
11838         (svr4_dbx_register_map): Likewise.
11839         (PTA_MPX): New.
11840         (ix86_option_override_internal): Support MPX ISA.
11841         (ix86_conditional_register_usage): Support bound registers.
11842         (print_reg): Likewise.
11843         (ix86_code_end): Add MPX bnd prefix.
11844         (output_set_got): Likewise.
11845         (ix86_output_call_insn): Likewise.
11846         (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
11847         (ix86_print_operand_punct_valid_p): Likewise.
11848         (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
11849         UNSPEC_BNDMK_ADDR.
11850         (ix86_class_likely_spilled_p): Add bound regs support.
11851         (ix86_hard_regno_mode_ok): Likewise.
11852         (x86_order_regs_for_local_alloc): Likewise.
11853         (ix86_bnd_prefixed_insn_p): New.
11854         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
11855         (FIXED_REGISTERS): Add bound registers.
11856         (CALL_USED_REGISTERS): Likewise.
11857         (REG_ALLOC_ORDER): Likewise.
11858         (HARD_REGNO_NREGS): Likewise.
11859         (TARGET_MPX): New.
11860         (VALID_BND_REG_MODE): New.
11861         (FIRST_BND_REG): New.
11862         (LAST_BND_REG): New.
11863         (reg_class): Add BND_REGS.
11864         (REG_CLASS_NAMES): Likewise.
11865         (REG_CLASS_CONTENTS): Likewise.
11866         (BND_REGNO_P): New.
11867         (ANY_BND_REG_P): New.
11868         (BNDmode): New.
11869         (HI_REGISTER_NAMES): Add bound registers.
11870         * config/i386/i386.md (UNSPEC_BNDMK): New.
11871         (UNSPEC_BNDMK_ADDR): New.
11872         (UNSPEC_BNDSTX): New.
11873         (UNSPEC_BNDLDX): New.
11874         (UNSPEC_BNDLDX_ADDR): New.
11875         (UNSPEC_BNDCL): New.
11876         (UNSPEC_BNDCU): New.
11877         (UNSPEC_BNDCN): New.
11878         (UNSPEC_MPX_FENCE): New.
11879         (BND0_REG): New.
11880         (BND1_REG): New.
11881         (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
11882         (length_immediate): Likewise.
11883         (prefix_0f): Likewise.
11884         (memory): Likewise.
11885         (prefix_rep): Check for bnd prefix.
11886         (length_nobnd): New.
11887         (length): Use length_nobnd if specified.
11888         (BND): New.
11889         (bnd_ptr): New.
11890         (BNDCHECK): New.
11891         (bndcheck): New.
11892         (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
11893         (*jcc_2): Likewise.
11894         (jump): Likewise.
11895         (simple_return_internal): Likewise.
11896         (simple_return_pop_internal): Likewise.
11897         (*indirect_jump): Add MPX bnd prefix.
11898         (*tablejump_1): Likewise.
11899         (simple_return_internal_long): Likewise.
11900         (simple_return_indirect_internal): Likewise.
11901         (<mode>_mk): New.
11902         (*<mode>_mk): New.
11903         (mov<mode>): New.
11904         (*mov<mode>_internal_mpx): New.
11905         (<mode>_<bndcheck>): New.
11906         (*<mode>_<bndcheck>): New.
11907         (<mode>_ldx): New.
11908         (*<mode>_ldx): New.
11909         (<mode>_stx): New.
11910         (*<mode>_stx): New.
11911         * config/i386/predicates.md (lea_address_operand): Rename to...
11912         (address_no_seg_operand): ... this.
11913         (address_mpx_no_base_operand): New.
11914         (address_mpx_no_index_operand): New.
11915         (bnd_mem_operator): New.
11916         * config/i386/i386.opt (mmpx): New.
11917         * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
11918         * doc/rtl.texi Add documentation for BND32mode and BND64mode.
11920 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
11922         * mode-classes.def (MODE_POINTER_BOUNDS): New.
11923         * tree.def (POINTER_BOUNDS_TYPE): New.
11924         * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
11925         (POINTER_BOUNDS_MODE): New.
11926         (make_pointer_bounds_mode): New.
11927         * machmode.h (POINTER_BOUNDS_MODE_P): New.
11928         * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
11929         (layout_type): Support POINTER_BOUNDS_TYPE.
11930         * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
11931         * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
11932         (type_contains_placeholder_1): Likewise.
11933         * tree.h (POINTER_BOUNDS_TYPE_P): New.
11934         * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
11935         * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
11937 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
11939         * expr.c (expand_expr_real_1): Use mode of memory reference rather than
11940         mode of address computation when calling memory_address_addr_space.
11942 2013-08-24  Richard Henderson  <rth@twiddle.net>
11944         PR rtl/58542
11945         * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
11946         instead of create_convert_operand_to.
11947         (maybe_emit_sync_lock_test_and_set): Likewise.
11948         (expand_atomic_compare_and_swap): Likewise.
11949         (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
11951 2013-08-24  Sriraman Tallam  <tmsriram@google.com>
11953         * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
11954         Change param_is to use the struct and not the pointer to the struct.
11956 2013-10-24  Andrew MacLeod  <amacleod@redhat.com>
11958         * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
11959         * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
11960         Move to targhooks.c.
11961         (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
11962         * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
11963         Relocate from gimplify.c.
11964         * targhooks.h: Add 2 prototypes.
11965         * tree.h: Delete 2 prototypes.
11967 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
11969         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
11970         [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
11972 2013-10-24  Cong Hou  <congh@google.com>
11974         * convert.c (convert_to_real): Guard those unsafe math function
11975         convertions with flag_unsafe_math_optimizations.  Handle sqrt()
11976         specially.
11978 2013-10-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
11980         PR ipa/58712
11981         * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
11982         as argument.
11983         (cgraph_create_edge): Use the new argument.
11984         (cgraph_create_indirect_edge): Likewise.
11986 2013-10-24  Joern Rennecke  <joern.rennecke@embecosm.com>
11988         * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
11989         TYPE_UNCOND_BRANCH.
11990         (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
11991         changes statep->state.
11993 2013-10-24  Tobias Burnus  <burnus@net-b.de>
11995         PR other/33426
11996         * tree-cfg.c (replace_loop_annotate): New function.
11997         (execute_build_cfg): Call it.
11998         * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
11999         * internal-fn.c (expand_ANNOTATE): New function.
12000         * internal-fn.def (ANNOTATE): Define as new internal function.
12001         * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
12002         * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
12003         * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
12004         * doc/extend.texi (Pragmas): Document #pragma ivdep.
12005         * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
12007 2013-10-17  Ian Bolton  <ian.bolton@arm.com>
12008             Marcus Shawcroft  <marcus.shawcroft@arm.com>
12010         * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
12011         Special case reload SP+C into none GENERAL_REGS.
12013 2013-10-24  Michael Matz  <matz@suse.de>
12015         * gengtype.c (is_file_equal): Check that files will be same length.
12017 2013-10-25  Christian Bruel  <christian.bruel@st.com>
12019         * config.gcc (sh-*): Add sh-mem.o to extra_obj.
12020         * config/sh/t-sh (sh-mem.o): New rule.
12021         * config/sh/sh-mem.cc (expand_block_move): Moved here.
12022         (sh_expand_cmpstr): New function.
12023         * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
12024         * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
12025         * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
12026         (rotlhi3_8): Rename.
12028 2013-10-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12030         * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
12031         * Makefile.in (CXXDEPMODE): Assign and change users.
12032         (CCDEPMODE): Delete.
12033         * configure: Regenerate.
12035 2013-10-23  David Malcolm  <dmalcolm@redhat.com>
12037         * gengtype-parse.c (require_without_advance): New.
12038         (type): For GTY-marked types that are not GTY((user)), parse any
12039         base classes, requiring them to be single-inheritance, and not
12040         be templates.  For non-GTY-marked types and GTY((user)),
12041         continue to skip over any C++ inheritance specification.
12042         * gengtype-state.c (state_writer::write_state_struct_type):
12043         Write base class of type (if any).
12044         (read_state_struct_type): Read base class of type (if any).
12045         * gengtype.c (new_structure): Add a "base_class" parameter.
12046         (create_optional_field_): Update for new parameter to new_structure.
12047         (adjust_field_rtx_def): Likewise.
12048         (adjust_field_tree_exp): Likewise.
12049         * gengtype.h (struct type): Add "base_class" field to the s
12050         union field.
12051         (new_structure): Add "base" parameter.
12053 2013-10-23  Sriraman Tallam  <tmsriram@google.com>
12055         PR target/57756
12056         * config/i386/i386.c (ix86_option_override_internal):
12057         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
12058         (ix86_valid_target_attribute_tree):
12059         Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
12060         Change TARGET_SSE to TARGET_SSE_P (opts->...)
12062 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
12064         * tree-ssa-loop.h: Remove include files.
12065         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
12066         * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
12067         * graphite-clast-to-gimple.c: Likewise.
12068         * graphite-scop-detection.c: Likewise.
12069         * graphite-sese-to-poly.c: Likewise.
12070         * ipa-inline-analysis.c: Likewise.
12071         * ipa-pure-const.c: Likewise.
12072         * loop-init.c: Likewise.
12073         * passes.c: Likewise.
12074         * predict.c: Likewise.
12075         * tree-cfg.c: Likewise.
12076         * tree-cfgcleanup.c: Likewise.
12077         * tree-chrec.c: Likewise.
12078         * tree-data-ref.c: Likewise.
12079         * tree-loop-distribution.c: Likewise.
12080         * tree-parloops.c: Likewise.
12081         * tree-predcom.c: Likewise.
12082         * tree-scalar-evolution.c: Likewise.
12083         * tree-ssa-address.c: Likewise.
12084         * tree-ssa.c: Likewise.
12085         * tree-ssa-dce.c: Likewise.
12086         * tree-ssa-loop.c: Likewise.
12087         * tree-ssa-loop-im.c: Likewise.
12088         * tree-ssa-loop-ivcanon.c: Likewise.
12089         * tree-ssa-loop-ivopts.c: Likewise.
12090         * tree-ssa-loop-manip.c: Likewise.
12091         * tree-ssa-loop-niter.c: Likewise.
12092         * tree-ssa-loop-prefetch.c: Likewise.
12093         * tree-ssa-loop-unswitch.c: Likewise.
12094         * tree-ssa-reassoc.c: Likewise.
12095         * tree-vect-data-refs.c: Likewise.
12096         * tree-vect-loop.c: Likewise.
12097         * tree-vect-loop-manip.c: Likewise.
12098         * tree-vectorizer.c: Likewise.
12099         * tree-vect-stmts.c: Likewise.
12100         * tree-vrp.c: Likewise.
12102 2013-10-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12104         * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
12106 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
12108         PR tree-optimization/58775
12109         PR tree-optimization/58791
12110         * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
12111         (insert_stmt_after): Rewritten, don't move the stmt, but really
12112         insert it.
12113         (get_stmt_uid_with_default): Remove.
12114         (build_and_add_sum): Use insert_stmt_after and
12115         reassoc_stmt_dominates_stmt_p.  Fix up uid if bb contains only labels.
12116         (update_range_test): Set uid on stmts added by
12117         force_gimple_operand_gsi.  Don't immediately modify statements
12118         in inter-bb optimization, just update oe->op values.
12119         (optimize_range_tests): Return bool whether any changed have been made.
12120         (update_ops): New function.
12121         (struct inter_bb_range_test_entry): New type.
12122         (maybe_optimize_range_tests): Perform statement changes here.
12123         (not_dominated_by, appears_later_in_bb, get_def_stmt,
12124         ensure_ops_are_available): Remove.
12125         (find_insert_point): Rewritten.
12126         (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
12127         return LHS of the (new resp. old) stmt.  Don't call
12128         ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
12129         instead of last, move new stmt at the right place.
12130         (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
12131         (negate_value): Likewise.  Set uids.
12132         (break_up_subtract_bb): Initialize uids.
12133         (reassociate_bb): Adjust rewrite_expr_tree caller.
12134         (do_reassoc): Don't call renumber_gimple_stmt_uids.
12136 2013-10-23  David Edelsohn  <dje.gcc@gmail.com>
12138         PR target/58838
12139         * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
12140         TARGET_32BIT final condition.
12141         (mulsi3_internal2 and splitter): Same.
12143 2013-10-23  Jeff Law  <law@redhat.com>
12145         * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
12146         through joiner blocks with abnormal outgoing edges.
12148         * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
12149         Add parameter JOINERS, to allow/disallow threading through joiner
12150         blocks.
12151         (thread_block): New.  Call thread_block_1.
12152         (mark_threaded_blocks): Remove code to filter out certain cases
12153         of threading through joiner blocks.
12154         (thread_through_all_blocks): Document how we can have a dangling
12155         edge AUX field and clear it.
12157 2013-10-23  Ian Lance Taylor  <iant@google.com>
12159         * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
12160         (C++ Dialect Options): Likewise.
12161         (Optimize Options): Likewise.
12163 2013-10-23  Tom de Vries  <tom@codesourcery.com>
12165         PR tree-optimization/58805
12166         * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
12168 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
12170         * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
12171         sequence based on get_range_info returned range.
12173 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
12175         * tree-ssa.h: Remove all #include's
12176         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
12177         * alias.c: Move required includes from tree-ssa.h.
12178         * asan.c: Likewise.
12179         * builtins.c: Likewise.
12180         * calls.c: Likewise.
12181         * cfgexpand.c: Likewise.
12182         * cfghooks.c: Likewise.
12183         * cfgloop.c: Likewise.
12184         * cfgloopmanip.c: Likewise.
12185         * cgraph.c: Likewise.
12186         * cgraphbuild.c: Likewise.
12187         * cgraphclones.c: Likewise.
12188         * cgraphunit.c: Likewise.
12189         * dse.c: Likewise.
12190         * except.c: Likewise.
12191         * expr.c: Likewise.
12192         * final.c: Likewise.
12193         * fold-const.c: Likewise.
12194         * ggc-page.c: Likewise.
12195         * gimple-builder.c: Likewise.
12196         * gimple-fold.c: Likewise.
12197         * gimple-iterator.c: Likewise.
12198         * gimple-low.c: Likewise.
12199         * gimple-pretty-print.c: Likewise.
12200         * gimple-ssa-strength-reduction.c: Likewise.
12201         * gimple-streamer-in.c: Likewise.
12202         * gimple-streamer-out.c: Likewise.
12203         * gimplify.c: Likewise.
12204         * graphite-blocking.c: Likewise.
12205         * graphite-clast-to-gimple.c: Likewise.
12206         * graphite-dependences.c: Likewise.
12207         * graphite-interchange.c: Likewise.
12208         * graphite-optimize-isl.c: Likewise.
12209         * graphite-poly.c: Likewise.
12210         * graphite-scop-detection.c: Likewise.
12211         * graphite-sese-to-poly.c: Likewise.
12212         * graphite.c: Likewise.
12213         * ipa-cp.c: Likewise.
12214         * ipa-inline-analysis.c: Likewise.
12215         * ipa-inline-transform.c: Likewise.
12216         * ipa-inline.c: Likewise.
12217         * ipa-prop.c: Likewise.
12218         * ipa-pure-const.c: Likewise.
12219         * ipa-reference.c: Likewise.
12220         * ipa-split.c: Likewise.
12221         * ipa-utils.c: Likewise.
12222         * loop-init.c: Likewise.
12223         * lto-cgraph.c: Likewise.
12224         * lto-section-in.c: Likewise.
12225         * lto-section-out.c: Likewise.
12226         * lto-streamer-in.c: Likewise.
12227         * lto-streamer-out.c: Likewise.
12228         * lto-streamer.c: Likewise.
12229         * omp-low.c: Likewise.
12230         * passes.c: Likewise.
12231         * predict.c: Likewise.
12232         * print-tree.c: Likewise.
12233         * profile.c: Likewise.
12234         * sese.c: Likewise.
12235         * targhooks.c: Likewise.
12236         * tracer.c: Likewise.
12237         * trans-mem.c: Likewise.
12238         * tree-call-cdce.c: Likewise.
12239         * tree-cfg.c: Likewise.
12240         * tree-cfgcleanup.c: Likewise.
12241         * tree-chrec.c: Likewise.
12242         * tree-complex.c: Likewise.
12243         * tree-data-ref.c: Likewise.
12244         * tree-dfa.c: Likewise.
12245         * tree-eh.c: Likewise.
12246         * tree-emutls.c: Likewise.
12247         * tree-if-conv.c: Likewise.
12248         * tree-inline.c: Likewise.
12249         * tree-into-ssa.c: Likewise.
12250         * tree-loop-distribution.c: Likewise.
12251         * tree-mudflap.c: Likewise.
12252         * tree-nested.c: Likewise.
12253         * tree-nrv.c: Likewise.
12254         * tree-object-size.c: Likewise.
12255         * tree-outof-ssa.c: Likewise.
12256         * tree-parloops.c: Likewise.
12257         * tree-phinodes.c: Likewise.
12258         * tree-predcom.c: Likewise.
12259         * tree-pretty-print.c: Likewise.
12260         * tree-profile.c: Likewise.
12261         * tree-scalar-evolution.c: Likewise.
12262         * tree-sra.c: Likewise.
12263         * tree-ssa-address.c: Likewise.
12264         * tree-ssa-alias.c: Likewise.
12265         * tree-ssa-ccp.c: Likewise.
12266         * tree-ssa-coalesce.c: Likewise.
12267         * tree-ssa-copy.c: Likewise.
12268         * tree-ssa-copyrename.c: Likewise.
12269         * tree-ssa-dce.c: Likewise.
12270         * tree-ssa-dom.c: Likewise.
12271         * tree-ssa-dse.c: Likewise.
12272         * tree-ssa-forwprop.c: Likewise.
12273         * tree-ssa-ifcombine.c: Likewise.
12274         * tree-ssa-live.c: Likewise.
12275         * tree-ssa-loop-ch.c: Likewise.
12276         * tree-ssa-loop-im.c: Likewise.
12277         * tree-ssa-loop-ivcanon.c: Likewise.
12278         * tree-ssa-loop-ivopts.c: Likewise.
12279         * tree-ssa-loop-manip.c: Likewise.
12280         * tree-ssa-loop-niter.c: Likewise.
12281         * tree-ssa-loop-prefetch.c: Likewise.
12282         * tree-ssa-loop-unswitch.c: Likewise.
12283         * tree-ssa-loop.c: Likewise.
12284         * tree-ssa-math-opts.c: Likewise.
12285         * tree-ssa-operands.c: Likewise.
12286         * tree-ssa-phiopt.c: Likewise.
12287         * tree-ssa-phiprop.c: Likewise.
12288         * tree-ssa-pre.c: Likewise.
12289         * tree-ssa-propagate.c: Likewise.
12290         * tree-ssa-reassoc.c: Likewise.
12291         * tree-ssa-sccvn.c: Likewise.
12292         * tree-ssa-sink.c: Likewise.
12293         * tree-ssa-strlen.c: Likewise.
12294         * tree-ssa-structalias.c: Likewise.
12295         * tree-ssa-tail-merge.c: Likewise.
12296         * tree-ssa-ter.c: Likewise.
12297         * tree-ssa-threadedge.c: Likewise.
12298         * tree-ssa-threadupdate.c: Likewise.
12299         * tree-ssa-uncprop.c: Likewise.
12300         * tree-ssa-uninit.c: Likewise.
12301         * tree-ssa.c: Likewise.
12302         * tree-ssanames.c: Likewise.
12303         * tree-stdarg.c: Likewise.
12304         * tree-streamer-in.c: Likewise.
12305         * tree-switch-conversion.c: Likewise.
12306         * tree-tailcall.c: Likewise.
12307         * tree-vect-data-refs.c: Likewise.
12308         * tree-vect-generic.c: Likewise.
12309         * tree-vect-loop-manip.c: Likewise.
12310         * tree-vect-loop.c: Likewise.
12311         * tree-vect-patterns.c: Likewise.
12312         * tree-vect-slp.c: Likewise.
12313         * tree-vect-stmts.c: Likewise.
12314         * tree-vectorizer.c: Likewise.
12315         * tree-vrp.c: Likewise.
12316         * tree.c: Likewise.
12317         * tsan.c: Likewise.
12318         * value-prof.c: Likewise.
12319         * var-tracking.c: Likewise.
12320         * varpool.c: Likewise.
12321         * vtable-verify.c: Likewise.
12323 2013-10-23  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12325         * config/tilegx/tilegx.c: Include "tree.h".
12327 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
12329         * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
12330         the info, not after it.
12331         (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
12332         dump_ssaname_info call.
12333         (pp_gimple_stmt_1): Adjust caller.
12334         (dump_phi_nodes): Likewise.  Don't print "# " here.
12336 2013-10-22  Jan Hubicka  <jh@suse.cz>
12338         * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
12339         tuning flag.
12340         * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
12341         * i386.c (expand_small_movmem_or_setmem): New function.
12342         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
12343         function.
12344         (alg_usable_p): Add support for value ranges; cleanup.
12345         (ix86_expand_set_or_movmem): Add support for misaligned moves.
12347 2013-10-22  Sterling Augustine  <saugustine@google.com>
12349         * doc/invoke.texi: Document -ggnu-pubnames.
12350         * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
12351         logic.
12352         * dwarf2out.c: Include gdb/gdb-index.h.
12353         (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
12354         debug_generate_pub_sections.
12355         (is_java, output_pubtables, output_pubname): New functions.
12356         (include_pubname_in_output): Handle debug_generate_pub_sections at
12357         level 2.
12358         (size_of_pubnames): Use new local space_for_flags based on
12359         debug_generate_pub_sections.
12360         (output_pubnames): Unify pubnames and pubtypes output logic.
12361         Genericize comments.  Call output_pubname.
12362         (dwarf2out_finish): Move logic to output_pubnames and call it.
12364 2013-10-22  Uros Bizjak  <ubizjak@gmail.com>
12366         PR target/58779
12367         * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
12368         Remove CCCmode handling.
12369         <case LTU>: Return 'c' suffix for CCCmode.
12370         <case GEU>: Return 'nc' suffix for CCCmode.
12371         (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
12372         * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
12373         (*sub<mode>3_cc_overflow): Ditto.
12374         (*subsi3_zext_cc_overflow): Ditto.
12376 2013-10-22  Steve Ellcey  <sellcey@mips.com>
12378         * config/mips/mips.c (mips_rtx_costs):  Fix cost estimate for nor
12379         (AND (NOT OP1) (NOT OP2)).
12381 2013-10-22  Bill Schmidt  <wschmidt@vnet.ibm.com>
12383         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
12384         meaning of merge-high and merge-low masks for little endian; avoid
12385         use of vector-pack masks for little endian for mismatched modes.
12387 2013-10-22  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12389         * config/tilepro/tilepro.c: Include "tree.h".
12391 2013-10-22  Andreas Schwab  <schwab@suse.de>
12393         * config/m68k/m68k.c (notice_update_cc): Handle register conflict
12394         with PRE_DEC.
12396 2013-10-22  Paolo Carlini  <paolo.carlini@oracle.com>
12398         * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
12399         [Ed Smith-Rowland]): New entries.
12400         ([Stephen M. Webb]): Update.
12402 2013-10-22  Andrew MacLeod  <amacleod@redhat.com>
12404         * tree-ssa-ter.h: Remove duplicate copy of file contents.
12406 2013-10-21  Marek Polacek  <polacek@redhat.com>
12408         PR middle-end/58809
12409         * fold-const.c (fold_range_test): Return 0 if the type is not
12410         an integral type.
12412 2013-10-21  Richard Sandiford  <rdsandiford@googlemail.com>
12414         * system.h: Move hwint.h include further down.
12415         * hwint.h (sext_hwi, zext_hwi): Define unconditionally.  Add
12416         gcc_checking_asserts.
12417         * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
12419 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12421         Fix volatile issues in optimize_bit_field_compare.
12422         * fold-const.c (optimize_bit_field_compare): Bail out if
12423         lvolatilep or rvolatilep.
12425 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12427         Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
12428         and get_inner_reference returning different pmode for non-volatile
12429         bit-field members dependent on flag_strict_volatile_bitfields.
12430         * stor-layout.c (layout_decl): Remove special handling of
12431         flag_strict_volatile_bitfields.
12432         * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
12433         if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
12435 2013-10-21  Paulo Matos  <pmatos@broadcom.com>
12437         * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
12438         calculations.
12440 2013-10-21  Jeff Law  <law@redhat.com>
12442         * tree-ssa-threadedge.c (thread_through_normal_block): New
12443         argument VISITED.  Remove VISISTED as a local variable.  When we
12444         have a threadable jump, verify the destination of the jump has not
12445         been visised.
12446         (thread_across_edge): Allocate VISITED bitmap once at function
12447         scope and use it throughout.  Make sure to set appropriate bits in
12448         VISITED for E (start of jump thread path).
12449         * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
12450         through a joiner if any edge on the path has a recorded jump thread.
12452 2013-10-21  Ian Lance Taylor  <iant@google.com>
12454         * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
12455         don't imply that attributes can solve all problems.
12456         (Directory Options): Fix typo.
12458 2013-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12460         * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
12461         extend and extend_add.
12463 2013-10-21  Richard Biener  <rguenther@suse.de>
12465         PR tree-optimization/58794
12466         * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
12467         of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
12469 2013-10-21  Richard Biener  <rguenther@suse.de>
12471         PR middle-end/58742
12472         * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
12473         to (T) X for sign-changing conversions (or no conversion).
12475 2013-10-20  Uros Bizjak  <ubizjak@gmail.com>
12477         * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
12479 2013-10-20  Jan Hubicka  <jh@suse.cz>
12481         * config/i386/i386-tune.def: Add comment; organize into categories
12483 2013-10-21  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
12485         * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
12486         argument.  Update function comment.
12487         (expand_set_or_movmem_via_rep): New function combining
12488         expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
12489         (expand_movmem_via_rep_mov): Remove.
12490         expand_setmem_via_rep_stos): Remove.
12491         (expand_movmem_epilogue): Update calls correspondingly.
12492         (expand_setmem_epilogue_via_loop): Likewise.
12493         (emit_memset): New.
12494         (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
12495         (expand_set_or_movmem_prologue): New function combining
12496         expand_movmem_prologue and expand_setmem_prologue.
12497         (expand_movmem_prologue): Remove.
12498         (expand_setmem_prologue): Remove.
12499         (expand_set_or_movmem_constant_prologue): New function combining
12500         expand_constant_movmem_prologue and expand_constant_setmem_prologue.
12501         (expand_constant_movmem_prologue): Remove.
12502         (expand_constant_setmem_prologue): Remove.
12503         (promote_duplicated_reg): Allow vector-const0 value.
12504         (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
12505         and ix86_expand_setmem.
12506         (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
12507         (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
12509 2013-10-21  Diego Novillo  <dnovillo@google.com>
12511         * asan.c: Include tree.h
12512         * bb-reorder.c: Likewise.
12513         * cfgcleanup.c: Likewise.
12514         * cfgloopmanip.c: Likewise.
12515         * data-streamer-in.c: Likewise.
12516         * data-streamer-out.c: Likewise.
12517         * data-streamer.c: Likewise.
12518         * dwarf2cfi.c: Likewise.
12519         * graphite-blocking.c: Likewise.
12520         * graphite-clast-to-gimple.c: Likewise.
12521         * graphite-dependences.c: Likewise.
12522         * graphite-interchange.c: Likewise.
12523         * graphite-optimize-isl.c: Likewise.
12524         * graphite-poly.c: Likewise.
12525         * graphite-scop-detection.c: Likewise.
12526         * graphite-sese-to-poly.c: Likewise.
12527         * graphite.c: Likewise.
12528         * ipa-devirt.c: Likewise.
12529         * ipa-profile.c: Likewise.
12530         * ipa.c: Likewise.
12531         * ira.c: Likewise.
12532         * loop-init.c: Likewise.
12533         * loop-unroll.c: Likewise.
12534         * lower-subreg.c: Likewise.
12535         * lto/lto-object.c: Likewise.
12536         * recog.c: Likewise.
12537         * reginfo.c: Likewise.
12538         * tree-loop-distribution.c: Likewise.
12539         * tree-parloops.c: Likewise.
12540         * tree-ssa-strlen.c: Likewise.
12541         * tree-streamer.c: Likewise.
12542         * value-prof.c: Likewise.
12543         * target-globals.c: Likewise.
12544         * expr.h: Include tree-core.h instead of tree.h.
12545         * gimple.h: Likewise.
12546         * ipa-prop.h: Likewise.
12547         * ipa-utils.h: Likewise.
12548         * lto-streamer.h: Likewise.
12549         * streamer-hooks.h: Likewise.
12550         * ipa-reference.h: Include cgraph.h instead of tree.h.
12551         * cgraph.h: Include basic-block.h instead of tree.h.
12552         * tree-streamer.h: Do not include tree.h.
12553         * genattrtab.c (write_header): Generate inclusion of tree.h.
12554         * genautomata.c (main): Likewise.
12555         * genemit.c: Likewise.
12556         * genopinit.c: Likewise.
12557         * genoutput.c (output_prologue): Likewise.
12558         * genpeep.c: Likewise.
12560 2013-10-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12562         * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
12563         little endian.
12564         (vec_unpacku_hi_v8hi): Likewise.
12565         (vec_unpacku_lo_v16qi): Likewise.
12566         (vec_unpacku_lo_v8hi): Likewise.
12568 2013-10-20  Jan Hubicka  <jh@suse.cz>
12570         * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
12571         X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
12572         (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
12574 2013-10-20  Richard Sandiford  <rdsandiford@googlemail.com>
12576         * config/mips/mips.h (ISA_HAS_WSBH): Define.
12577         * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
12578         constants.
12579         (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
12581 2013-10-19  John David Anglin  <danglin@gcc.gnu.org>
12583         PR target/58603
12584         * system.h: Undef m_slot.
12586 2013-10-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12588         * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
12589         all elements for both endian flavors.
12591 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
12593         PR target/58792
12594         * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
12595         ST1_REG and XMM1_REG for 32bit and 64bit targets.  Also add DI_REG
12596         and SI_REG for 64bit SYSV ABI targets.
12598 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
12600         * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
12601         to multi_reg_return.  Clarify that we are skipping USEs of multiple
12602         return registers.  Use bool type where appropriate.
12604 2013-10-18  Jan Hubicka  <jh@suse.cz>
12606         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
12607         for cold functions.
12608         * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
12609         (X86_TUNE_PUSH_MEMORY): Likewise.
12610         (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
12611         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
12612         (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
12613         New.
12614         * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
12615         x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
12616         Remove.
12617         (ix86_option_override_internal): Update to use tune features instead
12618         of variables.
12620 2013-10-18  Cong Hou  <congh@google.com>
12622         PR tree-optimization/58508
12623         * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
12624         statement that contains data refs with zero-step.
12626 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
12628         * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
12629         sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
12630         * gimple-low.c (gimple_check_call_arg,
12631         gimple_check_call_matching_types): Move to cgraph.c.
12632         * gimple-low.h: Remove prototype.
12633         * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
12634         Relocate from gimple-low.c.
12635         * cgraph.h: Add prototype.  Don't include basic-block.h.
12636         * gimplify.c: Add gimple-low to include list.
12637         * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
12638         * tree-eh.c: Add gimple-low to include list.
12639         * tree-nested.c: Likewise.
12640         * cfgexpand.c: Add tree-ssa-address.h to include list.
12641         * expr.c: Likewise.
12642         * gimple-fold.c: Likewise.
12643         * gimple-ssa-strength-reduction.c: Likewise.
12644         * trans-mem.c: Likewise.
12645         * tree-mudflap.c: Likewise.
12646         * tree-ssa-loop-ivopts.c: Likewise.
12647         * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
12648         (degenerate_phi_result): Move to tree-phinodes.c.
12649         * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
12650         * tree-ssa-threadedge.c: Likewise.
12651         * tree-vrp.c: Likewise.
12652         * tree-phinodes.c (degenerate_phi_result): Relocate here.
12653         * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
12654         * tree-phinodes.h (degenerate_phi_result): Add prototype.
12655         * tree-ssa-copy.c: Include tree-ssa-dom.h.
12656         * tree-ssa-forwprop.c: Likewise.
12657         * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
12658         pass_data_cleanup_cfg_post_optimizing,
12659         make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
12660         * tree-optimize.c: Delete File.
12661         * graphite.c: Include tree-cfgcleanup.h.
12662         * passes.c: Likewise.
12663         * tree-cfg.c: Likewise.
12664         * tree-profile.c: Likewise.
12665         * tree-ssa-dse.c: Likewise.
12666         * tree-ssa-loop-ivcanon.c: Likewise.
12667         * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
12668         * tree-outof-ssa.c: Include sbitmap.h.
12669         * tree-ssa-live.c: Likewise.
12670         * tree-ssa-propagate.c: Likewise.
12671         * tree-ssa-structalias.c: Likewise.
12672         * tree-stdarg.c: Likewise.
12673         * Makefile.in (OBJS): Delete tree-optimize.o.
12674         * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
12675         * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
12676         * varasm.c: Include basic-block.h.
12677         * cfgloop.h: Include function.h instead of basic-block.h
12678         (bb_loop_depth): Move to cfgloop.c.
12679         * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
12681 2013-10-18  Teresa Johnson  <tejohnson@google.com>
12683         * predict.c (probably_never_executed): Compare frequency-based
12684         count to number of training runs.
12685         * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
12687 2013-10-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12689         * config/arm/arm.c (cortexa9_extra_costs): New table.
12690         (arm_cortex_a9_tune): Use cortexa9_extra_costs.
12692 2013-10-18  Jeff Law  <law@redhat.com>
12694         * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
12696         * tree-ssa-threadupdate.c: Include "dbgcnt.h".
12697         (register_jump_thread): Add "registered_jump_thread" debug
12698         counter support.
12699         * dbgcnt.def (registered_jump_thread): New debug counter.
12701 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
12703         * config/rs6000/rs6000.c: Include cgraph.h.
12705 2013-10-18  Teresa Johnson  <tejohnson@google.com>
12707         * tree-ssa-tail-merge.c (replace_block_by): Update edge
12708         weights during merging.
12710 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
12712         * tree-cfg.h: Rename from tree-flow.h.  Remove #includes.
12713         * tree-ssa.h: Relocate required #includes from tree-cfg.h.
12714         * tree-ssa-operands.h: Remove prototype.
12715         * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
12716         * gimple.c (virtual_operand_p): Relocate from gimple.c.
12717         * gimple.h: Add prototype.
12718         * gimple-ssa.h: Include tree-ssa-operands.h.
12719         * tree-dump.c: Add tree-cfg.h to include list.
12720         * tree-ssa-alias.c: Add ipa-reference.h to include list.
12721         * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
12722         * config/i386/i386.c: Don't include tree-flow.h.
12723         * config/rs6000/rs6000.c: Likewise.
12725 2013-10-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12727         * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
12729 2013-10-18  Richard Biener  <rguenther@suse.de>
12731         * stor-layout.c (layout_type): Do not change TYPE_PRECISION
12732         or TYPE_UNSIGNED of integral types.
12733         (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
12734         NULL_TREE for zero-precision integral types.
12736 2013-10-18  James Greenhalgh  <james.greenhalgh@arm.com>
12738         * config/aarch64/arm_neon.h
12739         (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
12741 2013-10-17  Sriraman Tallam  <tmsriram@google.com>
12743         PR target/57756
12744         * opth-gen.awk: Define target_flags_explicit.
12746 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
12748         * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
12749         fields to the reg_addr array that describes the valid addressing
12750         mode for any register, general purpose registers, floating point
12751         registers, and Altivec registers.
12752         (FIRST_RELOAD_REG_CLASS): Likewise.
12753         (LAST_RELOAD_REG_CLASS): Likewise.
12754         (struct reload_reg_map_type): Likewise.
12755         (reload_reg_map_type): Likewise.
12756         (RELOAD_REG_VALID): Likewise.
12757         (RELOAD_REG_MULTIPLE): Likewise.
12758         (RELOAD_REG_INDEXED): Likewise.
12759         (RELOAD_REG_OFFSET): Likewise.
12760         (RELOAD_REG_PRE_INCDEC): Likewise.
12761         (RELOAD_REG_PRE_MODIFY): Likewise.
12762         (reg_addr): Likewise.
12763         (mode_supports_pre_incdec_p): New helper functions to say whether
12764         a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
12765         (mode_supports_pre_modify_p): Likewise.
12766         (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
12767         print the valid address mode bits for each mode.
12768         (rs6000_debug_print_mode): Likewise.
12769         (rs6000_debug_reg_global): Likewise.
12770         (rs6000_setup_reg_addr_masks): New function to set up the address
12771         mask bits for each type.
12772         (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
12773         Call rs6000_setup_reg_addr_masks to set up the address mask bits.
12774         (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
12775         mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
12776         PRE_MODIFY are supported.
12777         (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
12778         registers, instead of {src,dest}_av_p.
12779         (rs6000_print_options_internal): Tweak the debug output slightly.
12781 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
12783         * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
12784         isa attribute.
12786 2013-10-17  Andrew MacLeod  <amacleod@redhat.com>
12788         * tree-flow.h (struct omp_region): Move to omp-low.c.
12789         Remove omp_ prototypes and variables.
12790         * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
12791         (copy_var_decl): Relocate prototype from tree-flow.h.
12792         * gimple.c (copy_var_decl): Relocate from omp-low.c.
12793         * tree.h: Move prototype to omp-low.h.
12794         * omp-low.h: New File.  Relocate prototypes here.
12795         * omp-low.c (struct omp_region): Make local here.
12796         (root_omp_region): Make static.
12797         (copy_var_decl) Move to gimple.c.
12798         (new_omp_region): Make static.
12799         (make_gimple_omp_edges): New.  Refactored from tree-cfg.c make_edges.
12800         * tree-cfg.c: Include omp-low.h.
12801         (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
12802         * gimplify.c: Include omp-low.h.
12803         * tree-parloops.c: Likewise.
12805 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
12807         * config/i386/i386.c (ix86_fixup_binary_operands): When both source
12808         operands are in memory, prefer to force non-matched operand 1 to
12809         the register.
12811 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
12813         PR target/58673
12814         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
12815         restrict TImode addresses to single indirect registers if both
12816         -mquad-memory and -mvsx-timode are used.
12817         (rs6000_output_move_128bit): Use quad_load_store_p to determine if
12818         we should emit load/store quad.  Remove using %y for quad memory
12819         addresses.
12821         * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
12822         constraints to allow load/store quad on machines where TImode is
12823         not allowed in VSX registers.  Use 'n' instead of 'F' constraint
12824         for TImode to load integer constants.
12826 2013-10-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12828         * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
12830 2013-10-17  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12832         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
12833         handling of STACK_REG.
12835 2013-10-17  Richard Biener  <rguenther@suse.de>
12837         PR tree-optimization/58143
12838         * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
12839         New function.
12840         (rewrite_to_defined_overflow): Likewise.
12841         (move_computations_dom_walker::before_dom): Rewrite stmts
12842         with undefined signed overflow that are not always executed
12843         into unsigned arithmetic.
12845 2013-10-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
12847         PR target/57756
12848         * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
12849         explicit isa flag to be an options variable, instead of using
12850         global_options_set.  Remove define from rs6000.h.
12851         * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
12853         * config/rs6000/rs6000.c (rs6000_option_override_internal):
12854         Initialize rs6000_isa_flags_explicit.
12855         (rs6000_function_specific_save): Add gcc_options* parameter, so
12856         that the powerpc builds after the 2013-10-15 changes.
12857         (rs6000_function_specific_restore): Likewise.
12859 2013-10-16  DJ Delorie  <dj@redhat.com>
12861         * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
12862         op is a REG before checking REGNO.
12863         (rl78_alloc_physical_registers): Verify pattern is a SET before
12864         checking SET_SRC.
12866 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12868         * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
12869         endianness.
12870         (vec_unpacks_lo_v4sf): Likewise.
12871         (vec_unpacks_float_hi_v4si): Likewise.
12872         (vec_unpacks_float_lo_v4si): Likewise.
12873         (vec_unpacku_float_hi_v4si): Likewise.
12874         (vec_unpacku_float_lo_v4si): Likewise.
12876 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12878         * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
12879         (vsx_concat_v2sf): Likewise.
12881 2013-10-16  James Greenhalgh  <james.greenhalgh@arm.com>
12883         * config/aarch64/aarch64.md
12884         (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
12886 2013-10-16  Andrew MacLeod  <amacleod@redhat.com>
12888         PR tree-optimization/58697
12889         * cfgloop.c (get_estimated_loop_iterations_int): Rename from
12890         estimated_loop_iterations_int.
12891         (max_stmt_executions_int): Call get_max_loop_iterations_int.
12892         (get_max_loop_iterations_int): New.  HWINT version of
12893         get_max_loop_iterations.
12894         * cfgloop.h: Add prototypes.
12895         * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
12896         * loop-unroll.c (decide_peel_once_rolling): Call
12897         get_estimated_loop_iterations_int.
12898         * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
12899         * tree-ssa-loop-niter.h: Tweak prototypes.
12901 2013-10-16  David Malcolm  <dmalcolm@redhat.com>
12903         * gengtype-parse.c (struct_field_seq): Ignore access-control
12904         keywords ("public:" etc).
12906 2013-10-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12908         * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
12909         FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
12911 2013-10-16  Yvan Roux  <yvan.roux@linaro.org>
12913         * config/arm/arm.opt (mlra): New option.
12914         * config/arm/arm.c (arm_lra_p): New function.
12915         (TARGET_LRA_P): Define.
12917 2013-10-16  Paulo Matos  <pmatos@broadcom.com>
12919         * tree-core.h (tree_code_name): Remove.
12920         * tree.h (get_tree_code_name): New prototype.
12921         * tree.c (tree_code_name): Make static.
12922         (get_tree_code_name): New function.
12923         (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
12924         tree_class_check_failed, tree_range_check_failed,
12925         tree_not_class_check_failed, omp_clause_check_failed,
12926         tree_contains_struct_check_failed, tree_operand_check_failed): Use new
12927         wrapper get_tree_code_name instead of calling tree_code_name directly.
12928         * tree-vrp.c (dump_asserts_for): Likewise.
12929         * tree-dump.c (dequeue_and_dump): Likewise.
12930         * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
12931         * tree-pretty-print.h (pp_unsupported_tree): Likewise.
12932         * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
12933         * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
12934         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
12935         dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
12936         dump_gimple_omp_for): Likewise.
12937         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
12938         * tree-ssa-pre.c (print_pre_expr): Likewise.
12939         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
12940         * print-tree.c (print_node_brief, print_node): Likewise.
12941         * gimple.c (gimple_check_failed): Likewise.
12942         * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
12943         * config/frv/frv.c (frv_init_cumulative_args): Likewise.
12944         * config/mep/mep.c (mep_validate_vliw): Likewise.
12945         * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
12946         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
12948 2013-10-16  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
12950         * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
12951         for AMD bdver3.
12953 2013-10-16  Hans-Peter Nilsson  <hp@axis.com>
12955         * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
12956         (MULTILIB_MATCHES): Add multilib for -march=v8.
12958 2013-10-15  Sriraman Tallam  <tmsriram@google.com>
12960         PR target/57756
12961         * optc-save-gen.awk: Add extra parameter to the save and restore
12962         target calls.
12963         * opth-gen.awk: Generate new TARGET_* macros  to accept a parameter.
12964         * tree.c (build_optimization_node): New parameter.  Add extra parameter
12965         to call to cl_optimization_save.
12966         (build_target_option_node): New parameter. Add extra parameter
12967         to call to cl_target_option_save.
12968         * tree.h (build_optimization_node): New parameter.
12969         (build_target_option_node): New parameter.
12970         * c-family/c-common.c (handle_optimize_attribute): Fix calls to
12971         build_optimization_node and build_target_option_node.
12972         * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
12973         (handle_pragma_push_options): Ditto.
12974         * toplev.c (process_options): Ditto.
12975         * opts.c (init_options_struct): Check for opts_set non-null.
12976         * target.def (target_option.save): New parameter.
12977         (target_option.restore): New parameter.
12978         * tm.texi: Generate.
12979         * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
12980         (ix86_pragma_target_parse): Ditto.
12981         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
12982         parameters.
12983         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
12984         to  build_optimization_node and build_target_option_node.
12985         (rs6000_valid_attribute_p): Ditto.
12986         (rs6000_pragma_target_parse): Ditto.
12987         * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
12988         data.
12989         * config/i386/i386.h:
12990         TARGET_64BIT_P: New Macro
12991         TARGET_MMX_P: New Macro.
12992         TARGET_3DNOW_P: New Macro.
12993         TARGET_3DNOW_A_P: New Macro.
12994         TARGET_SSE_P: New Macro.
12995         TARGET_SSE2_P: New Macro.
12996         TARGET_SSE3_P: New Macro.
12997         TARGET_SSSE3_P: New Macro.
12998         TARGET_SSE4_1_P: New Macro.
12999         TARGET_SSE4_2_P: New Macro.
13000         TARGET_AVX_P: New Macro.
13001         TARGET_AVX2_P: New Macro.
13002         TARGET_AVX512F_P: New Macro.
13003         TARGET_AVX512PF_P: New Macro.
13004         TARGET_AVX512ER_P: New Macro.
13005         TARGET_AVX512CD_P: New Macro.
13006         TARGET_FMA_P: New Macro.
13007         TARGET_SSE4A_P: New Macro.
13008         TARGET_FMA4_P: New Macro.
13009         TARGET_XOP_P: New Macro.
13010         TARGET_LWP_P: New Macro.
13011         TARGET_ABM_P: New Macro.
13012         TARGET_BMI_P: New Macro.
13013         TARGET_BMI2_P: New Macro.
13014         TARGET_LZCNT_P: New Macro.
13015         TARGET_TBM_P: New Macro.
13016         TARGET_POPCNT_P: New Macro.
13017         TARGET_SAHF_P: New Macro.
13018         TARGET_MOVBE_P: New Macro.
13019         TARGET_CRC32_P: New Macro.
13020         TARGET_AES_P: New Macro.
13021         TARGET_PCLMUL_P: New Macro.
13022         TARGET_CMPXCHG16B_P: New Macro.
13023         TARGET_FSGSBASE_P: New Macro.
13024         TARGET_RDRND_P: New Macro.
13025         TARGET_F16C_P: New Macro.
13026         TARGET_RTM_P: New Macro.
13027         TARGET_HLE_P: New Macro.
13028         TARGET_RDSEED_P: New Macro.
13029         TARGET_PRFCHW_P: New Macro.
13030         TARGET_ADX_P: New Macro.
13031         TARGET_FXSR_P: New Macro.
13032         TARGET_XSAVE_P: New Macro.
13033         TARGET_XSAVEOPT_P: New Macro.
13034         TARGET_LP64_P: New Macro.
13035         TARGET_X32_P: New Macro.
13036         TARGET_FPMATH_DEFAULT_P: New Macro.
13037         TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
13038         * config/i386/i386.c (ix86_option_override_internal): New parameters.
13039         opts and opts_set.
13040         Change ix86_tune_string to access opts->x_ix86_tune_string.
13041         Change ix86_isa_flags to access opts->x_ix86_isa_flags.
13042         Change ix86_arch_string to access opts->x_ix86_arch_string.
13043         Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
13044         Change ix86_pmode to access opts->x_ix86_pmode.
13045         Change ix86_abi to access opts->x_ix86_abi.
13046         Change ix86_cmodel to access opts->x_ix86_cmodel.
13047         Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
13048         Change ix86_isa_flags_explicit to access
13049         opts->x_ix86_isa_flags_explicit.
13050         Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
13051         Change ix86_regparm to access opts->x_ix86_regparm.
13052         Change ix86_branch_cost to access opts->x_ix86_branch_cost.
13053         Change ix86_preferred_stack_boundary_arg to access
13054         opts->x_ix86_preferred_stack_boundary_arg.
13055         Change ix86_force_align_arg_pointer to access
13056         opts->x_ix86_force_align_arg_pointer.
13057         Change ix86_incoming_stack_boundar_arg to access
13058         opts->x_ix86_incoming_stack_boundar_arg.
13059         Change ix86_fpmath to access opts->x_ix86_fpmath.
13060         Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
13061         Change ix86_recip_name to access opts->x_ix86_recip_name.
13062         Change ix86_stack_protector_guard to access
13063         opts->x_ix86_stack_protector_guard.
13064         Change ix86_tune_memcpy_strategy to access
13065         opts->x_ix86_tune_memcpy_strategy.
13066         Change ix86_tune_memset_strategy to access
13067         opts->x_ix86_tune_memset_strategy.
13068         Change global_options to access opts.
13069         Change global_options_set to access opts_set.
13070         Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
13071         Change TARGET_MMX to TARGET_MMX_P (opts->...).
13072         Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
13073         Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
13074         Change TARGET_SSE to TARGET_SSE_P (opts->...).
13075         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
13076         Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
13077         Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
13078         Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
13079         Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
13080         Change TARGET_AVX to TARGET_AVX_P (opts->...).
13081         Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
13082         Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
13083         Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
13084         Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
13085         Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
13086         Change TARGET_FMA to TARGET_FMA_P (opts->...).
13087         Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
13088         Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
13089         Change TARGET_XOP to TARGET_XOP_P (opts->...).
13090         Change TARGET_LWP to TARGET_LWP_P (opts->...).
13091         Change TARGET_ABM to TARGET_ABM_P (opts->...).
13092         Change TARGET_BMI to TARGET_BMI_P (opts->...).
13093         Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
13094         Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
13095         Change TARGET_TBM to TARGET_TBM_P (opts->...).
13096         Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
13097         Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
13098         Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
13099         Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
13100         Change TARGET_AES to TARGET_AES_P (opts->...).
13101         Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
13102         Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
13103         Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
13104         Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
13105         Change TARGET_F16C to TARGET_F16C_P (opts->...).
13106         Change TARGET_RTM to TARGET_RTM_P (opts->...).
13107         Change TARGET_HLE to TARGET_HLE_P (opts->...).
13108         Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
13109         Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
13110         Change TARGET_ADX to TARGET_ADX_P (opts->...).
13111         Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
13112         Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
13113         Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
13114         Change TARGET_LP64 to TARGET_LP64_P (opts->...).
13115         Change TARGET_X32 to TARGET_X32_P (opts->...).
13116         Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
13117         Change TARGET_FLOAT_RETURNS_IN_80387 to
13118         TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
13119         (ix86_function_specific_save): New parameter. Use opts-> fields
13120         to replace global fields.
13121         (ix86_function_specific_restore): Ditto.
13122         (ix86_valid_target_attribute_inner_p): New parameters.
13123         Fix recursive call.
13124         Fix call to ix86_handle_option and set_option.
13125         (ix86_valid_target_attribute_tree): New parameters.
13126         Change global_options to access opts.
13127         Change global_options_set to access opts_set.
13128         Fix call to ix86_valid_target_attribute_inner_p.
13129         Change ix86_tune_string to access opts->x_ix86_tune_string.
13130         Change ix86_arch_string to access opts->x_ix86_arch_string.
13131         Change ix86_fpmath to access opts->x_ix86_fpmath
13132         Fix call to ix86_option_override_internal.
13133         Fix call to ix86_add_new_builtins.
13134         Fix calls to build_optimization_node and build_target_option_node.
13135         (ix86_valid_target_attribute_p): Remove access to global_options.
13136         Use new gcc_options structure func_options.
13137         Fix call to ix86_valid_target_attribute_tree.
13138         Fix call to  build_optimization_node.
13139         (get_builtin_code_for_version): Fix call to
13140         ix86_valid_target_attribute_tree.
13142 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
13144         * Makefile.in (PICFLAG): New.
13145         (enable_host_shared): New.
13146         (INTERNAL_CFLAGS): Use PICFLAG.
13147         (LIBIBERTY): Use pic build of libiberty.a if configured with
13148         --enable-host-shared.
13149         * configure.ac: Add --enable-host-shared, setting up new
13150         PICFLAG variable.
13151         * configure: Regenerate.
13152         * doc/install.texi (--enable-shared): Add note contrasting it with ...
13153         (--enable-host-shared): New option.
13155 2013-10-15  Richard Biener  <rguenther@suse.de>
13157         * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
13158         for built-in functions.
13160 2013-10-15  Zhenqiang Chen  <zhenqiang.chen@arm.com>
13162         * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
13163         (optimize_range_tests_1): New function,
13164         extracted from optimize_range_tests.
13165         (optimize_range_tests_xor): Similarly.
13166         (optimize_range_tests_diff): New function.
13167         (optimize_range_tests): Use optimize_range_tests_1.
13169 2013-10-15  Cong Hou  <congh@google.com>
13171         * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
13172         requirement of the reduction pattern so that one operand of the
13173         reduction operation can come from outside of the loop.
13175 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
13177         * config/arm/neon-schedgen.ml: Remove.
13178         * config/arm/cortex-a9-neon.md: Remove comment regarding
13179         neon-schedgen.ml.
13181 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
13183         * config/arm/types: Remove old neon types.
13185 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
13187         * config/arm/cortex-a7.md
13188         (cortex_a7_neon_type): New.
13189         (cortex_a7_neon_mul): Update for new types.
13190         (cortex_a7_neon_mla): Likewise.
13191         (cortex_a7_neon): Likewise.
13193 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
13195         * config/arm/cortex-a15-neon.md
13196         (cortex_a15_neon_type): New,
13198         (cortex_a15_neon_int_1): Remove.
13199         (cortex_a15_neon_int_2): Likewise.
13200         (cortex_a15_neon_int_3): Likewise.
13201         (cortex_a15_neon_int_4): Likewise.
13202         (cortex_a15_neon_int_5): Likewise.
13203         (cortex_a15_neon_vqneg_vqabs): Likewise.
13204         (cortex_a15_neon_vmov): Likewise.
13205         (cortex_a15_neon_vaba): Likewise.
13206         (cortex_a15_neon_vaba_qqq): Likewise.
13207         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13208         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13209         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
13210         Likewise.
13211         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13212         (cortex_a15_neon_mla_qqq_8_16): Likewise.
13213         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
13214         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13215         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13216         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
13217         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13218         (cortex_a15_neon_shift_1): Likewise.
13219         (cortex_a15_neon_shift_2): Likewise.
13220         (cortex_a15_neon_shift_3): Likewise.
13221         (cortex_a15_neon_vshl_ddd): Likewise.
13222         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13223         (cortex_a15_neon_vsra_vrsra): Likewise.
13224         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
13225         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
13226         (cortex_a15_neon_bp_3cycle): Likewise.
13227         (cortex_a15_neon_ldm_2): Likewise.
13228         (cortex_a15_neon_stm_2): Likewise.
13229         (cortex_a15_neon_mcr): Likewise.
13230         (cortex_a15_neon_mrc): Likewise.
13231         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
13232         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
13233         (cortex_a15_neon_fp_vmul_ddd): Likewise.
13234         (cortex_a15_neon_fp_vmul_qqd): Likewise.
13235         (cortex_a15_neon_fp_vmla_ddd): Likewise.
13236         (cortex_a15_neon_fp_vmla_qqq): Likewise.
13237         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
13238         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
13239         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
13240         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
13241         (cortex_a15_neon_bp_simple): Likewise.
13242         (cortex_a15_neon_bp_2cycle): Likewise.
13243         (cortex_a15_neon_bp_3cycle): Likewise.
13244         (cortex_a15_neon_vld1_1_2_regs): Likewise.
13245         (cortex_a15_neon_vld1_3_4_regs): Likewise.
13246         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
13247         (cortex_a15_neon_vld2_4_regs): Likewise.
13248         (cortex_a15_neon_vld3_vld4): Likewise.
13249         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
13250         (cortex_a15_neon_vst1_3_4_regs): Likewise.
13251         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
13252         (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
13253         (cortex_a15_neon_vst3_vst4): Rename to...
13254         (cortex_a15_neon_vst4): This, update for new attributes.
13255         (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
13256         (cortex_a15_neon_vld3_vld4_lane): Likewise.
13257         (cortex_a15_neon_vst1_vst2_lane): Likewise.
13258         (cortex_a15_neon_vst3_vst4_lane): Likewise.
13259         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
13260         (cortex_a15_neon_ldm_2): Likewise.
13261         (cortex_a15_neon_stm_2): Likewise.
13262         (cortex_a15_neon_mcr): Likewise.
13263         (cortex_a15_neon_mcr_2_mcrr): Likewise.
13264         (cortex_a15_neon_mrc): Likewise.
13265         (cortex_a15_neon_mrrc): Likewise.
13267         (cortex_a15_neon_abd): New.
13268         (cortex_a15_neon_abd_q): Likewise.
13269         (cortex_a15_neon_aba): Likewise.
13270         (cortex_a15_neon_aba_q): Likewise.
13271         (cortex_a15_neon_acc): Likewise.
13272         (cortex_a15_neon_acc_q): Likewise.
13273         (cortex_a15_neon_arith_basic): Likewise.
13274         (cortex_a15_neon_arith_complex): Likewise.
13275         (cortex_a15_neon_multiply): Likewise.
13276         (cortex_a15_neon_multiply_q): Likewise.
13277         (cortex_a15_neon_mla): Likewise.
13278         (cortex_a15_neon_mla_q): Likewise.
13279         (cortex_a15_neon_sat_mla_long): Likewise.
13280         (cortex_a15_neon_shift_acc): Likewise.
13281         (cortex_a15_neon_shift_imm_basic): Likewise.
13282         (cortex_a15_neon_shift_imm_complex): Likewise.
13283         (cortex_a15_neon_shift_reg_basic): Likewise.
13284         (cortex_a15_neon_shift_reg_basic_q): Likewise.
13285         (cortex_a15_neon_shift_reg_complex): Likewise.
13286         (cortex_a15_neon_shift_reg_complex_q): Likewise.
13287         (cortex_a15_neon_fp_negabs): Likewise
13288         (cortex_a15_neon_fp_arith): Likewise
13289         (cortex_a15_neon_fp_arith_q): Likewise
13290         (cortex_a15_neon_fp_cvt_int): Likewise
13291         (cortex_a15_neon_fp_cvt_int_q): Likewise
13292         (cortex_a15_neon_fp_cvt_16): Likewise
13293         (cortex_a15_neon_fp_mul): Likewise
13294         (cortex_a15_neon_fp_mul_q): Likewise
13295         (cortex_a15_neon_fp_mla): Likewise
13296         (cortex_a15_neon_fp_mla_q): Likewise
13297         (cortex_a15_neon_fp_recps_rsqrte): Likewise.
13298         (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
13299         (cortex_a15_neon_bitops): Likewise.
13300         (cortex_a15_neon_bitops_q): Likewise.
13301         (cortex_a15_neon_from_gp): Likewise.
13302         (cortex_a15_neon_from_gp_q): Likewise.
13303         (cortex_a15_neon_tbl3_tbl4): Likewise.
13304         (cortex_a15_neon_zip_q): Likewise.
13305         (cortex_a15_neon_to_gp): Likewise.
13306         (cortex_a15_neon_load_a): Likewise.
13307         (cortex_a15_neon_load_b): Likewise.
13308         (cortex_a15_neon_load_c): Likewise.
13309         (cortex_a15_neon_load_d): Likewise.
13310         (cortex_a15_neon_load_e): Likewise.
13311         (cortex_a15_neon_load_f): Likewise.
13312         (cortex_a15_neon_store_a): Likewise.
13313         (cortex_a15_neon_store_b): Likewise.
13314         (cortex_a15_neon_store_c): Likewise.
13315         (cortex_a15_neon_store_d): Likewise.
13316         (cortex_a15_neon_store_e): Likewise.
13317         (cortex_a15_neon_store_f): Likewise.
13318         (cortex_a15_neon_store_g): Likewise.
13319         (cortex_a15_neon_store_h): Likewise.
13320         (cortex_a15_vfp_to_from_gp): Likewise.
13322 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
13324         * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
13326         (cortex_a9_neon_vshl_ddd): Remove.
13327         (cortex_a9_neon_vst3_vst4): Likewise.
13328         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
13330         (cortex_a9_neon_bit_ops_q): New.
13332         (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
13333         (cortex_a9_neon_int_2): Likewise.
13334         (cortex_a9_neon_int_3): Likewise.
13335         (cortex_a9_neon_int_4): Likewise.
13336         (cortex_a9_neon_int_5): Likewise.
13337         (cortex_a9_neon_vqneg_vqabs): Likewise.
13338         (cortex_a9_neon_vmov): Likewise.
13339         (cortex_a9_neon_vaba): Likewise.
13340         (cortex_a9_neon_vaba_qqq): Likewise.
13341         (cortex_a9_neon_shift_1): Likewise.
13342         (cortex_a9_neon_shift_2): Likewise.
13343         (cortex_a9_neon_shift_3): Likewise.
13344         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13345         (cortex_a9_neon_vsra_vrsra): Likewise.
13346         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13347         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13348         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
13349         Likewise.
13350         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13351         (cortex_a9_neon_mla_qqq_8_16): Likewise.
13352         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
13353         Likewise.
13354         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13355         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13356         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
13357         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13358         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
13359         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
13360         (cortex_a9_neon_fp_vsum): Likewise.
13361         (cortex_a9_neon_fp_vmul_ddd): Likewise.
13362         (cortex_a9_neon_fp_vmul_qqd): Likewise.
13363         (cortex_a9_neon_fp_vmla_ddd): Likewise.
13364         (cortex_a9_neon_fp_vmla_qqq): Likewise.
13365         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
13366         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
13367         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
13368         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
13369         (cortex_a9_neon_bp_simple): Likewise.
13370         (cortex_a9_neon_bp_2cycle): Likewise.
13371         (cortex_a9_neon_bp_3cycle): Likewise.
13372         (cortex_a9_neon_ldr): Likewise.
13373         (cortex_a9_neon_str): Likewise.
13374         (cortex_a9_neon_vld1_1_2_regs): Likewise.
13375         (cortex_a9_neon_vld1_3_4_regs): Likewise.
13376         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
13377         (cortex_a9_neon_vld2_4_regs): Likewise.
13378         (cortex_a9_neon_vld3_vld4): Likewise.
13379         (cortex_a9_neon_vld1_vld2_lane): Likewise.
13380         (cortex_a9_neon_vld3_vld4_lane): Likewise.
13381         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
13382         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
13383         (cortex_a9_neon_vst1_3_4_regs): Likewise.
13384         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
13385         (cortex_a9_neon_vst1_vst2_lane): Likewise.
13386         (cortex_a9_neon_vst3_vst4_lane): Likewise.
13387         (cortex_a9_neon_mcr): Likewise.
13388         (cortex_a9_neon_mcr_2_mcrr): Likewise.
13389         (cortex_a9_neon_mrc): Likewise.
13390         (cortex_a9_neon_mrrc): Likewise.
13392 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
13394         * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
13396         (cortex_a8_neon_vshl_ddd): Remove.
13397         (cortex_a8_neon_vst3_vst4): Likewise.
13398         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
13400         (cortex_a8_neon_bit_ops_q): New.
13402         (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
13403         (cortex_a8_neon_int_2): Likewise..
13404         (cortex_a8_neon_int_3): Likewise.
13405         (cortex_a8_neon_int_5): Likewise.
13406         (cortex_a8_neon_vqneg_vqabs): Likewise.
13407         (cortex_a8_neon_int_4): Likewise.
13408         (cortex_a8_neon_vaba): Likewise.
13409         (cortex_a8_neon_vaba_qqq): Likewise.
13410         (cortex_a8_neon_shift_1): Likewise.
13411         (cortex_a8_neon_shift_2): Likewise.
13412         (cortex_a8_neon_shift_3): Likewise.
13413         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13414         (cortex_a8_neon_vsra_vrsra): Likewise.
13415         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13416         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13417         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
13418         Likewise.
13419         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13420         (cortex_a8_neon_mla_qqq_8_16): Likewise.
13421         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
13422         Likewise.
13423         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13424         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13425         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
13426         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13427         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
13428         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
13429         (cortex_a8_neon_fp_vsum): Likewise.
13430         (cortex_a8_neon_fp_vmul_ddd): Likewise.
13431         (cortex_a8_neon_fp_vmul_qqd): Likewise.
13432         (cortex_a8_neon_fp_vmla_ddd): Likewise.
13433         (cortex_a8_neon_fp_vmla_qqq): Likewise.
13434         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
13435         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
13436         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
13437         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
13438         (cortex_a8_neon_bp_simple): Likewise.
13439         (cortex_a8_neon_bp_2cycle): Likewise.
13440         (cortex_a8_neon_bp_3cycle): Likewise.
13441         (cortex_a8_neon_ldr): Likewise.
13442         (cortex_a8_neon_str): Likewise.
13443         (cortex_a8_neon_vld1_1_2_regs): Likewise.
13444         (cortex_a8_neon_vld1_3_4_regs): Likewise.
13445         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
13446         (cortex_a8_neon_vld2_4_regs): Likewise.
13447         (cortex_a8_neon_vld3_vld4): Likewise.
13448         (cortex_a8_neon_vld1_vld2_lane): Likewise.
13449         (cortex_a8_neon_vld3_vld4_lane): Likewise.
13450         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
13451         (cortex_a8_neon_vst1_3_4_regs): Likewise.
13452         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
13453         (cortex_a8_neon_vst1_vst2_lane): Likewise.
13454         (cortex_a8_neon_vst3_vst4_lane): Likewise.
13455         (cortex_a8_neon_mcr): Likewise.
13456         (cortex_a8_neon_mcr_2_mcrr): Likewise.
13457         (cortex_a8_neon_mrc): Likewise.
13458         (cortex_a8_neon_mrrc): Likewise.
13460 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
13462         * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
13463         (fp): New.
13464         * config/aarch64/aarch64-simd.md (neon_type): Remove.
13465         (aarch64_simd_dup<mode>): Add "type" attribute.
13466         (aarch64_dup_lane<mode>): Likewise.
13467         (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
13468         (*aarch64_simd_mov<mode>): Likewise.
13469         (aarch64_simd_mov_from_<mode>low): Likewise.
13470         (aarch64_simd_mov_from_<mode>high): Likewise.
13471         (orn<mode>3): Likewise.
13472         (bic<mode>3): Likewise.
13473         (add<mode>3): Likewise.
13474         (sub<mode>3): Likewise.
13475         (mul<mode>3): Likewise.
13476         (*aarch64_mul3_elt<mode>): Likewise.
13477         (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
13478         (*aarch64_mul3_elt_to_128df): Likewise.
13479         (*aarch64_mul3_elt_to_64v2df): Likewise.
13480         (neg<mode>2): Likewise.
13481         (abs<mode>2): Likewise.
13482         (abd<mode>_3): Likewise.
13483         (aba<mode>_3): Likewise.
13484         (fabd<mode>_3): Likewise.
13485         (*fabd_scalar<mode>3): Likewise.
13486         (and<mode>3): Likewise.
13487         (ior<mode>3): Likewise.
13488         (xor<mode>3): Likewise.
13489         (one_cmpl<mode>2): Likewise.
13490         (aarch64_simd_vec_set<mode>): Likewise.
13491         (aarch64_simd_lshr<mode>): Likewise.
13492         (aarch64_simd_ashr<mode>): Likewise.
13493         (aarch64_simd_imm_shl<mode>): Likewise.
13494         (aarch64_simd_reg_sshl<mode): Likewise.
13495         (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
13496         (aarch64_simd_reg_shl<mode>_signed): Likewise.
13497         (aarch64_simd_vec_setv2di): Likewise.
13498         (aarch64_simd_vec_set<mode>): Likewise.
13499         (aarch64_mla<mode>): Likewise.
13500         (*aarch64_mla_elt<mode>): Likewise.
13501         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
13502         (aarch64_mls<mode>): Likewise.
13503         (*aarch64_mls_elt<mode>): Likewise.
13504         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
13505         (<su><maxmin><mode>3): Likewise.
13506         (move_lo_quad_<mode>): Likewise.
13507         (aarch64_simd_move_hi_quad_<mode>): Likewise.
13508         (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
13509         (vec_pack_trunc_<mode>): Likewise.
13510         (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
13511         (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
13512         (*aarch64_<su>mlal_lo<mode>): Likewise.
13513         (*aarch64_<su>mlal_hi<mode>): Likewise.
13514         (*aarch64_<su>mlsl_lo<mode>): Likewise.
13515         (*aarch64_<su>mlsl_hi<mode>): Likewise.
13516         (*aarch64_<su>mlal<mode>): Likewise.
13517         (*aarch64_<su>mlsl<mode>): Likewise.
13518         (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
13519         (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
13520         (add<mode>3): Likewise.
13521         (sub<mode>3): Likewise.
13522         (mul<mode>3): Likewise.
13523         (div<mode>3): Likewise.
13524         (neg<mode>2): Likewise.
13525         (abs<mode>2): Likewise.
13526         (fma<mode>4): Likewise.
13527         (*aarch64_fma4_elt<mode>): Likewise.
13528         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
13529         (*aarch64_fma4_elt_to_128df): Likewise.
13530         (*aarch64_fma4_elt_to_64v2df): Likewise.
13531         (fnma<mode>4): Likewise.
13532         (*aarch64_fnma4_elt<mode>): Likewise.
13533         (*aarch64_fnma4_elt_<vswap_width_name><mode>
13534         (*aarch64_fnma4_elt_to_128df): Likewise.
13535         (*aarch64_fnma4_elt_to_64v2df): Likewise.
13536         (<frint_pattern><mode>2): Likewise.
13537         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
13538         (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
13539         (vec_unpacks_lo_v4sf): Likewise.
13540         (aarch64_float_extend_lo_v2df): Likewise.
13541         (vec_unpacks_hi_v4sf): Likewise.
13542         (aarch64_float_truncate_lo_v2sf): Likewise.
13543         (aarch64_float_truncate_hi_v4sf): Likewise.
13544         (aarch64_vmls<mode>): Likewise.
13545         (<su><maxmin><mode>3): Likewise.
13546         (<maxmin_uns><mode>3): Likewise.
13547         (reduc_<sur>plus_<mode>): Likewise.
13548         (reduc_<sur>plus_v2di): Likewise.
13549         (reduc_<sur>plus_v2si): Likewise.
13550         (reduc_<sur>plus_<mode>): Likewise.
13551         (aarch64_addpv4sf): Likewise.
13552         (clz<mode>2): Likewise.
13553         (reduc_<maxmin_uns>_<mode>): Likewise.
13554         (reduc_<maxmin_uns>_v2di): Likewise.
13555         (reduc_<maxmin_uns>_v2si): Likewise.
13556         (reduc_<maxmin_uns>_<mode>): Likewise.
13557         (reduc_<maxmin_uns>_v4sf): Likewise.
13558         (aarch64_simd_bsl<mode>_internal): Likewise.
13559         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
13560         (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
13561         (aarch64_get_lane<mode>): Likewise.
13562         (*aarch64_combinez<mode>): Likewise.
13563         (aarch64_combine<mode>): Likewise.
13564         (aarch64_simd_combine<mode>): Likewise.
13565         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
13566         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
13567         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
13568         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
13569         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
13570         (aarch64_<sur>h<addsub><mode>): Likewise.
13571         (aarch64_<sur><addsub>hn<mode>): Likewise.
13572         (aarch64_<sur><addsub>hn2<mode>): Likewise.
13573         (aarch64_pmul<mode>): Likewise.
13574         (aarch64_<su_optab><optab><mode>): Likewise.
13575         (aarch64_<sur>qadd<mode>): Likewise.
13576         (aarch64_sqmovun<mode>): Likewise.
13577         (aarch64_<sur>qmovn<mode>): Likewise.
13578         (aarch64_s<optab><mode>): Likewise.
13579         (aarch64_sq<r>dmulh<mode>): Likewise.
13580         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
13581         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
13582         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
13583         (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
13584         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
13585         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
13586         (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
13587         (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
13588         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
13589         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
13590         (aarch64_sqdmull<mode>): Likewise.
13591         (aarch64_sqdmull_lane<mode>_internal): Likewise.
13592         (aarch64_sqdmull_n<mode>): Likewise.
13593         (aarch64_sqdmull2<mode>_internal): Likewise.
13594         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
13595         (aarch64_sqdmull2_n<mode>_internal): Likewise.
13596         (aarch64_<sur>shl<mode>): Likewise.
13597         (aarch64_<sur>q<r>shl<mode>
13598         (aarch64_<sur>shll_n<mode>): Likewise.
13599         (aarch64_<sur>shll2_n<mode>): Likewise.
13600         (aarch64_<sur>shr_n<mode>): Likewise.
13601         (aarch64_<sur>sra_n<mode>): Likewise.
13602         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
13603         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
13604         (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
13605         (aarch64_cm<optab><mode>): Likewise.
13606         (aarch64_cm<optab>di): Likewise.
13607         (aarch64_cm<optab><mode>): Likewise.
13608         (aarch64_cm<optab>di): Likewise.
13609         (aarch64_cmtst<mode>): Likewise.
13610         (aarch64_cmtstdi): Likewise.
13611         (aarch64_cm<optab><mode>): Likewise.
13612         (*aarch64_fac<optab><mode>): Likewise.
13613         (aarch64_addp<mode>): Likewise.
13614         (aarch64_addpdi): Likewise.
13615         (sqrt<mode>2): Likewise.
13616         (vec_load_lanesoi<mode>): Likewise.
13617         (vec_store_lanesoi<mode>): Likewise.
13618         (vec_load_lanesci<mode>): Likewise.
13619         (vec_store_lanesci<mode>): Likewise.
13620         (vec_load_lanesxi<mode>): Likewise.
13621         (vec_store_lanesxi<mode>): Likewise.
13622         (*aarch64_mov<mode>): Likewise.
13623         (aarch64_ld2<mode>_dreg): Likewise.
13624         (aarch64_ld2<mode>_dreg): Likewise.
13625         (aarch64_ld3<mode>_dreg): Likewise.
13626         (aarch64_ld3<mode>_dreg): Likewise.
13627         (aarch64_ld4<mode>_dreg): Likewise.
13628         (aarch64_ld4<mode>_dreg): Likewise.
13629         (aarch64_tbl1<mode>): Likewise.
13630         (aarch64_tbl2v16qi): Likewise.
13631         (aarch64_combinev16qi): Likewise.
13632         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
13633         (aarch64_st2<mode>_dreg): Likewise.
13634         (aarch64_st2<mode>_dreg): Likewise.
13635         (aarch64_st3<mode>_dreg): Likewise.
13636         (aarch64_st3<mode>_dreg): Likewise.
13637         (aarch64_st4<mode>_dreg): Likewise.
13638         (aarch64_st4<mode>_dreg): Likewise.
13639         (*aarch64_simd_ld1r<mode>): Likewise.
13640         (aarch64_frecpe<mode>): Likewise.
13641         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
13642         (aarch64_frecps<mode>): Likewise.
13644 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
13646         * config/arm/iterators.md (V_elem_ch): New.
13647         (q): Likewise.
13648         (VQH_type): Likewise.
13649         * config/arm/arm.md (is_neon_type): New.
13650         (conds): Use is_neon_type.
13651         (anddi3_insn): Update type attribute.
13652         (xordi3_insn): Likewise.
13653         (one_cmpldi2): Likewise.
13654         * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
13655         * config/arm/neon.md (neon_mov): Update type attribute.
13656         (*movmisalign<mode>_neon_store): Likewise.
13657         (*movmisalign<mode>_neon_load): Likewise.
13658         (vec_set<mode>_internal): Likewise.
13659         (vec_set<mode>_internal): Likewise.
13660         (vec_setv2di_internal): Likewise.
13661         (vec_extract<mode>): Likewise.
13662         (vec_extract<mode>): Likewise.
13663         (vec_extractv2di): Likewise.
13664         (*add<mode>3_neon): Likewise.
13665         (adddi3_neon): Likewise.
13666         (*sub<mode>3_neon): Likewise.
13667         (subdi3_neon): Likewise.
13668         (fma<VCVTF:mode>4): Likewise.
13669         (fma<VCVTF:mode>4_intrinsic): Likewise.
13670         (*fmsub<VCVTF:mode>4): Likewise.
13671         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
13672         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
13673         (ior<mode>3): Likewise.
13674         (and<mode>3): Likewise.
13675         (orn<mode>3_neon): Likewise.
13676         (orndi3_neon): Likewise.
13677         (bic<mode>3_neon): Likewise.
13678         (bicdi3_neon): Likewise.
13679         (xor<mode>3): Likewise.
13680         (one_cmpl<mode>2): Likewise.
13681         (abs<mode>2): Likewise.
13682         (neg<mode>2): Likewise.
13683         (negdi2_neon): Likewise.
13684         (*umin<mode>3_neon): Likewise.
13685         (*umax<mode>3_neon): Likewise.
13686         (*smin<mode>3_neon): Likewise.
13687         (*smax<mode>3_neon): Likewise.
13688         (vashl<mode>3): Likewise.
13689         (vashr<mode>3_imm): Likewise.
13690         (vlshr<mode>3_imm): Likewise.
13691         (ashl<mode>3_signed): Likewise.
13692         (ashl<mode>3_unsigned): Likewise.
13693         (neon_load_count): Likewise.
13694         (ashldi3_neon_noclobber): Likewise.
13695         (ashldi3_neon): Likewise.
13696         (signed_shift_di3_neon): Likewise.
13697         (unsigned_shift_di3_neon): Likewise.
13698         (ashrdi3_neon_imm_noclobber): Likewise.
13699         (lshrdi3_neon_imm_noclobber): Likewise.
13700         (<shift>di3_neon): Likewise.
13701         (widen_ssum<mode>3): Likewise.
13702         (widen_usum<mode>3): Likewise.
13703         (quad_halves_<code>v4si): Likewise.
13704         (quad_halves_<code>v4sf): Likewise.
13705         (quad_halves_<code>v8hi): Likewise.
13706         (quad_halves_<code>v16qi): Likewise.
13707         (reduc_splus_v2di): Likewise.
13708         (neon_vpadd_internal<mode>): Likewise.
13709         (neon_vpsmin<mode>): Likewise.
13710         (neon_vpsmax<mode>): Likewise.
13711         (neon_vpumin<mode>): Likewise.
13712         (neon_vpumax<mode>): Likewise.
13713         (*ss_add<mode>_neon): Likewise.
13714         (*us_add<mode>_neon): Likewise.
13715         (*ss_sub<mode>_neon): Likewise.
13716         (*us_sub<mode>_neon): Likewise.
13717         (neon_vadd<mode>_unspec): Likewise.
13718         (neon_vaddl<mode>): Likewise.
13719         (neon_vaddw<mode>): Likewise.
13720         (neon_vhadd<mode>): Likewise.
13721         (neon_vqadd<mode>): Likewise.
13722         (neon_vaddhn<mode>): Likewise.
13723         (neon_vmul<mode>): Likewise.
13724         (neon_vfms<VCVTF:mode>): Likewise.
13725         (neon_vmlal<mode>): Likewise.
13726         (neon_vmls<mode>): Likewise.
13727         (neon_vmlsl<mode>): Likewise.
13728         (neon_vqdmulh<mode>): Likewise.
13729         (neon_vqdmlal<mode>): Likewise.
13730         (neon_vqdmlsl<mode>): Likewise.
13731         (neon_vmull<mode>): Likewise.
13732         (neon_vqdmull<mode>): Likewise.
13733         (neon_vsub<mode>_unspec): Likewise.
13734         (neon_vsubl<mode>): Likewise.
13735         (neon_vsubw<mode>): Likewise.
13736         (neon_vqsub<mode>): Likewise.
13737         (neon_vhsub<mode>): Likewise.
13738         (neon_vsubhn<mode>): Likewise.
13739         (neon_vceq<mode>): Likewise.
13740         (neon_vcge<mode>): Likewise.
13741         (neon_vcgeu<mode>): Likewise.
13742         (neon_vcgt<mode>): Likewise.
13743         (neon_vcgtu<mode>): Likewise.
13744         (neon_vcle<mode>): Likewise.
13745         (neon_vclt<mode>): Likewise.
13746         (neon_vcage<mode>): Likewise.
13747         (neon_vcagt<mode>): Likewise.
13748         (neon_vtst<mode>): Likewise.
13749         (neon_vabd<mode>): Likewise.
13750         (neon_vabdl<mode>): Likewise.
13751         (neon_vaba<mode>): Likewise.
13752         (neon_vabal<mode>): Likewise.
13753         (neon_vmax<mode>): Likewise.
13754         (neon_vmin<mode>): Likewise.
13755         (neon_vpaddl<mode>): Likewise.
13756         (neon_vpadal<mode>): Likewise.
13757         (neon_vpmax<mode>): Likewise.
13758         (neon_vpmin<mode>): Likewise.
13759         (neon_vrecps<mode>): Likewise.
13760         (neon_vrsqrts<mode>): Likewise.
13761         (neon_vqabs<mode>): Likewise.
13762         (neon_vqneg<mode>): Likewise.
13763         (neon_vcls<mode>): Likewise.
13764         (clz<mode>2): Likewise.
13765         (popcount<mode>2): Likewise.
13766         (neon_vrecpe<mode>): Likewise.
13767         (neon_vrsqrte<mode>): Likewise.
13768         (neon_vget_lane<mode>_sext_internal): Likewise.
13769         (neon_vget_lane<mode>_zext_internal): Likewise.
13770         (neon_vdup_n<mode>): Likewise.
13771         (neon_vdup_n<mode>): Likewise.
13772         (neon_vdup_nv2di): Likewise.
13773         (neon_vdup_lane<mode>_interal): Likewise.
13774         (*neon_vswp<mode>): Likewise.
13775         (neon_vcombine<mode>): Likewise.
13776         (float<mode><V_cvtto>2): Likewise.
13777         (floatuns<mode><V_cvtto>2): Likewise.
13778         (fix_trunc<mode><V_cvtto>2): Likewise.
13779         (fixuns_trunc<mode><V_cvtto>2
13780         (neon_vcvt<mode>): Likewise.
13781         (neon_vcvt<mode>): Likewise.
13782         (neon_vcvtv4sfv4hf): Likewise.
13783         (neon_vcvtv4hfv4sf): Likewise.
13784         (neon_vcvt_n<mode>): Likewise.
13785         (neon_vcvt_n<mode>): Likewise.
13786         (neon_vmovn<mode>): Likewise.
13787         (neon_vqmovn<mode>): Likewise.
13788         (neon_vqmovun<mode>): Likewise.
13789         (neon_vmovl<mode>): Likewise.
13790         (neon_vmul_lane<mode>): Likewise.
13791         (neon_vmul_lane<mode>): Likewise.
13792         (neon_vmull_lane<mode>): Likewise.
13793         (neon_vqdmull_lane<mode>): Likewise.
13794         (neon_vqdmulh_lane<mode>): Likewise.
13795         (neon_vqdmulh_lane<mode>): Likewise.
13796         (neon_vmla_lane<mode>): Likewise.
13797         (neon_vmla_lane<mode>): Likewise.
13798         (neon_vmlal_lane<mode>): Likewise.
13799         (neon_vqdmlal_lane<mode>): Likewise.
13800         (neon_vmls_lane<mode>): Likewise.
13801         (neon_vmls_lane<mode>): Likewise.
13802         (neon_vmlsl_lane<mode>): Likewise.
13803         (neon_vqdmlsl_lane<mode>): Likewise.
13804         (neon_vext<mode>): Likewise.
13805         (neon_vrev64<mode>): Likewise.
13806         (neon_vrev32<mode>): Likewise.
13807         (neon_vrev16<mode>): Likewise.
13808         (neon_vbsl<mode>_internal): Likewise.
13809         (neon_vshl<mode>): Likewise.
13810         (neon_vqshl<mode>): Likewise.
13811         (neon_vshr_n<mode>): Likewise.
13812         (neon_vshrn_n<mode>): Likewise.
13813         (neon_vqshrn_n<mode>): Likewise.
13814         (neon_vqshrun_n<mode>): Likewise.
13815         (neon_vshl_n<mode>): Likewise.
13816         (neon_vqshl_n<mode>): Likewise.
13817         (neon_vqshlu_n<mode>): Likewise.
13818         (neon_vshll_n<mode>): Likewise.
13819         (neon_vsra_n<mode>): Likewise.
13820         (neon_vsri_n<mode>): Likewise.
13821         (neon_vsli_n<mode>): Likewise.
13822         (neon_vtbl1v8qi): Likewise.
13823         (neon_vtbl2v8qi): Likewise.
13824         (neon_vtbl3v8qi): Likewise.
13825         (neon_vtbl4v8qi): Likewise.
13826         (neon_vtbl1v16qi): Likewise.
13827         (neon_vtbl2v16qi): Likewise.
13828         (neon_vcombinev16qi): Likewise.
13829         (neon_vtbx1v8qi): Likewise.
13830         (neon_vtbx2v8qi): Likewise.
13831         (neon_vtbx3v8qi): Likewise.
13832         (neon_vtbx4v8qi): Likewise.
13833         (*neon_vtrn<mode>_insn): Likewise.
13834         (*neon_vzip<mode>_insn): Likewise.
13835         (*neon_vuzp<mode>_insn): Likewise.
13836         (neon_vld1<mode>): Likewise.
13837         (neon_vld1_lane<mode>): Likewise.
13838         (neon_vld1_lane<mode>): Likewise.
13839         (neon_vld1_dup<mode>): Likewise.
13840         (neon_vld1_dup<mode>): Likewise.
13841         (neon_vld1_dupv2di): Likewise.
13842         (neon_vst1<mode>): Likewise.
13843         (neon_vst1_lane<mode>): Likewise.
13844         (neon_vst1_lane<mode>): Likewise.
13845         (neon_vld2<mode>): Likewise.
13846         (neon_vld2<mode>): Likewise.
13847         (neon_vld2_lane<mode>): Likewise.
13848         (neon_vld2_lane<mode>): Likewise.
13849         (neon_vld2_dup<mode>): Likewise.
13850         (neon_vst2<mode>): Likewise.
13851         (neon_vst2<mode>): Likewise.
13852         (neon_vst2_lane<mode>): Likewise.
13853         (neon_vst2_lane<mode>): Likewise.
13854         (neon_vld3<mode>): Likewise.
13855         (neon_vld3qa<mode>): Likewise.
13856         (neon_vld3qb<mode>): Likewise.
13857         (neon_vld3_lane<mode>): Likewise.
13858         (neon_vld3_lane<mode>): Likewise.
13859         (neon_vld3_dup<mode>): Likewise.
13860         (neon_vst3<mode>): Likewise.
13861         (neon_vst3qa<mode>): Likewise.
13862         (neon_vst3qb<mode>): Likewise.
13863         (neon_vst3_lane<mode>): Likewise.
13864         (neon_vst3_lane<mode>): Likewise.
13865         (neon_vld4<mode>): Likewise.
13866         (neon_vld4qa<mode>): Likewise.
13867         (neon_vld4qb<mode>): Likewise.
13868         (neon_vld4_lane<mode>): Likewise.
13869         (neon_vld4_lane<mode>): Likewise.
13870         (neon_vld4_dup<mode>): Likewise.
13871         (neon_vst4<mode>): Likewise.
13872         (neon_vst4qa<mode>): Likewise.
13873         (neon_vst4qb<mode>): Likewise.
13874         (neon_vst4_lane<mode>): Likewise.
13875         (neon_vst4_lane<mode>): Likewise.
13876         (neon_vec_unpack<US>_lo_<mode>): Likewise.
13877         (neon_vec_unpack<US>_hi_<mode>): Likewise.
13878         (neon_vec_<US>mult_lo_<mode>): Likewise.
13879         (neon_vec_<US>mult_hi_<mode>): Likewise.
13880         (neon_vec_<US>shiftl_<mode>): Likewise.
13881         (neon_unpack<US>_<mode>): Likewise.
13882         (neon_vec_<US>mult_<mode>): Likewise.
13883         (vec_pack_trunc_<mode>): Likewise.
13884         (neon_vec_pack_trunc_<mode>): Likewise.
13885         (neon_vabd<mode>_2): Likewise.
13886         (neon_vabd<mode>_3): Likewise.
13888 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
13890         * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
13891         (load_pair): Update type attribute.
13892         (store_pair): Update type attribute.
13893         * config/aarch64/iterators.md (q): New.
13895 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
13897         * config/arm/types.md: Add new types for Neon insns.
13899 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13900             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13901             Sergey Lega  <sergey.s.lega@intel.com>
13902             Anna Tikhonova  <anna.tikhonova@intel.com>
13903             Ilya Tocar  <ilya.tocar@intel.com>
13904             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13905             Ilya Verbin  <ilya.verbin@intel.com>
13906             Kirill Yukhin  <kirill.yukhin@intel.com>
13907             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13909         * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
13910         UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
13911         UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
13912         (rcp14<mode>): New.
13913         (srcp14<mode>): Ditto.
13914         (rsqrt14<mode>): Ditto.
13915         (rsqrt14<mode>): Ditto.
13916         (avx512f_vmscalef<mode>): Ditto.
13917         (avx512f_scalef<mode>): Ditto.
13918         (avx512f_getexp<mode>): Ditto.
13919         (avx512f_sgetexp<mode>): Ditto.
13920         (avx512f_fixupimm<mode>): Ditto.
13921         (avx512f_sfixupimm<mode>): Ditto.
13922         (avx512f_rndscale<mode>): Ditto.
13923         (*avx512er_exp2<mode>): Ditto.
13924         (*avx512er_rcp28<mode>): Ditto.
13925         (avx512er_rsqrt28<mode>): Ditto.
13926         (avx512f_getmant<mode>): Ditto.
13927         (avx512f_getmant<mode>): Ditto.
13928         (avx512f_rndscale<mode>): Fix formatting.
13930 2013-10-15  Martin Jambor  <mjambor@suse.cz>
13932         * ipa-utils.h (ipa_edge_within_scc): Declare.
13933         * ipa-cp.c (edge_within_scc): Moved...
13934         * ipa-utils.c (ipa_edge_within_scc): ...here.  Updated all callers.
13936 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13937             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13938             Sergey Lega  <sergey.s.lega@intel.com>
13939             Anna Tikhonova  <anna.tikhonova@intel.com>
13940             Ilya Tocar  <ilya.tocar@intel.com>
13941             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13942             Ilya Verbin  <ilya.verbin@intel.com>
13943             Kirill Yukhin  <kirill.yukhin@intel.com>
13944             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13946         * config/i386/predicates.md (const_8_to_15_operand): New.
13947         (const_16_to_31_operand): Ditto.
13948         * config/i386/sse.md (V8FI): New.
13949         (V16FI): Ditto.
13950         (reduc_splus_v8df): Ditto.
13951         (reduc_splus_v16sf): Ditto.
13952         (avx512f_vextract<shuffletype>32x4_1): Ditto.
13953         (vec_extract_hi_<mode>): Ditto.
13954         (avx512f_vinsert<shuffletype>32x4_1): Ditto.
13955         (vec_set_lo_<mode>): Ditto.
13956         (vec_set_hi_<mode>): Ditto.
13957         (avx512f_shuf_<shuffletype>64x2_1): Ditto.
13958         (avx512f_shuf_<shuffletype>32x4_1): Ditto.
13959         (avx512f_pshufd_1): Ditto.
13960         (avx512f_broadcast<mode>): Ditto.
13961         (avx512f_broadcast<mode>): Ditto.
13962         (define_split): Split vec_extract_lo into move.
13963         (ssequartermode): Ditto.
13964         (ssedoublemode): Extened with wider modes.
13965         (vec_extract_lo_<mode>): Ditto.
13967 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13968             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13969             Sergey Lega  <sergey.s.lega@intel.com>
13970             Anna Tikhonova  <anna.tikhonova@intel.com>
13971             Ilya Tocar  <ilya.tocar@intel.com>
13972             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13973             Ilya Verbin  <ilya.verbin@intel.com>
13974             Kirill Yukhin  <kirill.yukhin@intel.com>
13975             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13977         * config/i386/predicates.md (register_or_constm1_operand): New.
13978         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
13979         UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
13980         UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
13981         UNSPEC_SCATTER_PREFETCH
13982         (VI48_512): New.
13983         (avx512f_ucmp<mode>3): Ditto.
13984         (avx512f_vternlog<mode>): Ditto.
13985         (avx512f_align<mode>): Ditto.
13986         (<shift_insn><mode>3): Ditto.
13987         (avx512f_<rotate>v<mode>): Ditto.
13988         (avx512f_<rotate><mode>): Ditto.
13989         (avx512f_eq<mode>3): Ditto.
13990         (avx512f_eq<mode>3_1): Ditto.
13991         (avx512f_gt<mode>3): Ditto.
13992         (avx512f_testm<mode>3): Ditto.
13993         (avx512f_testnm<mode>3): Ditto.
13994         (avx512pf_gatherpf<mode>): Ditto.
13995         (*avx512pf_gatherpf<mode>_mask): Ditto.
13996         (*avx512pf_gatherpf<mode>): Ditto.
13997         (avx512pf_scatterpf<mode>): Ditto.
13998         (*avx512pf_scatterpf<mode>_mask): Ditto.
13999         (*avx512pf_scatterpf<mode>): Ditto.
14000         (avx512f_vec_dup_gpr<mode>): Ditto.
14001         (clz<mode>2): Ditto.
14002         (conflict<mode>): Ditto.
14003         (REDUC_SMINMAX_MODE): Extened with wider modes.
14004         (reduc_<code>_<mode>): Ditto.
14005         (vlshr<mode>3): Ditto.
14006         (vashl<mode>3): Ditto.
14008 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14009             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14010             Sergey Lega  <sergey.s.lega@intel.com>
14011             Anna Tikhonova  <anna.tikhonova@intel.com>
14012             Ilya Tocar  <ilya.tocar@intel.com>
14013             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14014             Ilya Verbin  <ilya.verbin@intel.com>
14015             Kirill Yukhin  <kirill.yukhin@intel.com>
14016             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14018         * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
14019         UNSPEC_SCATTER.
14020         (VI48F_512): New.
14021         (avx512fmaskmode): Ditto.
14022         (bcstscalarsuff): Ditto.
14023         (avx512f_blendm<mode>): Ditto.
14024         (cmp_imm_predicate): Ditto.
14025         (avx512f_cmp<mode>3): Ditto.
14026         (avx512f_vec_dup<mode>): Ditto.
14027         (avx512f_vec_dup_mem<mode>): Ditto.
14028         (avx512f_vpermi2var<mode>3): Ditto.
14029         (avx512f_vpermt2var<mode>3): Ditto.
14030         (vec_init<mode>): Ditto.
14031         (avx512f_gathersi<mode>): Ditto.
14032         (*avx512f_gathersi<mode>): Ditto.
14033         (*avx512f_gathersi<mode>_2): Ditto.
14034         (avx512f_gatherdi<mode>): Ditto.
14035         (*avx512f_gatherdi<mode>): Ditto.
14036         (*avx512f_gatherdi<mode>_2): Ditto.
14037         (avx512f_scattersi<mode>): Ditto.
14038         (*avx512f_scattersi<mode>): Ditto.
14039         (avx512f_scatterdi<mode>): Ditto.
14040         (*avx512f_scatterdi<mode>): Ditto.
14041         (sseintprefix): Extened with wider modes.
14042         (VEC_GATHER_IDXSI): Ditto.
14043         (VEC_GATHER_IDXDI): Ditto.
14044         (VEC_GATHER_SRCDI): Ditto.
14046 2013-10-15  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
14047             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14049         * config/arm/t-aprofile: New file.
14050         * config.gcc: Handle --with-multilib-list option.
14052 2013-10-15  Bernd Schmidt  <bernds@codesourcery.com>
14054         * reload1.c (reloads_unique_chain_p): Ensure that r1 is
14055         the input for r2.
14057 2013-10-15  Richard Biener  <rguenther@suse.de>
14059         * tree-loop-distribution.c (build_empty_rdg): Inline into
14060         single user.
14061         (rdg_flag_vertex): Inline into single user.
14062         (rdg_flag_vertex_and_dependent): Likewise.
14063         (build_rdg_partition_for_vertex): Remove processed bitmap.
14064         (rdg_build_partitions): Simplify.
14066 2013-10-15  Richard Biener  <rguenther@suse.de>
14068         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
14069         Restructure forwarding through conversions and copies to
14070         avoid performing copy-propagation the wrong way.  Adjust
14071         recursion invocations.
14072         (forward_propagate_addr_expr): Add argument stating if we
14073         are recursing from a single-use.
14074         (ssa_forward_propagate_and_combine): Adjust.
14076 2013-10-14  David Malcolm  <dmalcolm@redhat.com>
14078         * dumpfile.h (gcc::dump_manager): New class, to hold state
14079         relating to dumpfile management.
14080         (get_dump_file_name): Remove in favor of method of dump_manager.
14081         (dump_initialized_p): Likewise.
14082         (dump_start): Likewise.
14083         (dump_finish): Likewise.
14084         (dump_switch_p): Likewise.
14085         (dump_register): Likewise.
14086         (get_dump_file_info): Likewise.
14087         * context.c (gcc::context::context): Construct the dump_manager
14088         instance.
14089         * context.h (gcc::context::get_dumps): New.
14090         (gcc::context::m_dumps): New.
14091         * coverage.c (coverage_init): Port to dump_manager API.
14092         * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
14093         (extra_dump_files_in_use): Likewise.
14094         (extra_dump_files_alloced): Likewise.
14095         (gcc::dump_manager::dump_manager): New.
14096         (dump_register): Convert to...
14097         (gcc::dump_manager::dump_register): ...method, replacing
14098         function-static next_dump with m_next_dump field.
14099         (get_dump_file_info): Convert to...
14100         (gcc::dump_manager::get_dump_file_info): ...method.
14101         (get_dump_file_name): Convert to...
14102         (gcc::dump_manager::get_dump_file_name): ...method.
14103         (dump_start): Convert to...
14104         (gcc::dump_manager::dump_start): ...method.
14105         (dump_finish): Convert to...
14106         (gcc::dump_manager::dump_finish): ...method.
14107         (dump_begin): Replace body with...
14108         (gcc::dump_manager::dump_begin): ...new method.
14109         (dump_phase_enabled_p): Convert to...
14110         (gcc::dump_manager::dump_phase_enabled_p): ...method.
14111         (dump_phase_enabled_p): Convert to...
14112         (gcc::dump_manager::dump_phase_enabled_p): ...method.
14113         (dump_initialized_p):  Convert to...
14114         (gcc::dump_manager::dump_initialized_p): ...method.
14115         (dump_flag_name): Replace body with...
14116         (gcc::dump_manager::dump_flag_name): ...new method.
14117         (dump_enable_all): Convert to...
14118         (gcc::dump_manager::dump_enable_all): ...new method.
14119         (opt_info_enable_passes): Convert to...
14120         (gcc::dump_manager::opt_info_enable_passes): ...new method.
14121         (dump_switch_p_1): Convert to...
14122         (gcc::dump_manager::dump_switch_p_1): ...new method.
14123         (dump_switch_p):  Convert to...
14124         (gcc::dump_manager::dump_switch_p): ...new method.
14125         (opt_info_switch_p): Port to dump_manager API.
14126         (enable_rtl_dump_file): Likewise.
14127         * opts-global.c (handle_common_deferred_options): Port to new
14128         dump_manager API.
14129         * passes.c (pass_manager::finish_optimization_passes): Likewise.
14130         (pass_manager::register_one_dump_file): Likewise.
14131         (pass_manager::register_pass): Likewise.
14132         (pass_init_dump_file): Likewise.
14133         (pass_fini_dump_file): Likewise.
14134         * statistics.c (statistics_early_init): Likewise.
14136 2013-10-14  Richard Biener  <rguenther@suse.de>
14138         * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
14139         iterative_hash_canonical_type, gimple_canonical_type_hash,
14140         gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
14141         gimple_register_canonical_type, print_gimple_types_stats,
14142         free_gimple_type_tables): Move to lto/lto.c
14143         (gt-gimple.h): Do not include.
14144         * gimple.h (gimple_register_canonical_type,
14145         print_gimple_types_stats, free_gimple_type_tables): Remove.
14146         * Makefile.in (GTFILES): Remove gimple.c.
14148 2013-10-14  Travis Snoozy  <quandary@remstate.com>
14150         PR target/58716
14151         * config/msp430/msp430.c (msp430_option_override): Correct thinko
14152         scanning for msp430x targets.
14154 2013-10-14  Eric Botcazou  <ebotcazou@adacore.com>
14156         PR bootstrap/58509
14157         * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
14158         (registers_ok_for_ldd_peep): Move around.
14159         * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
14160         * config/sparc/sparc.md (widening peepholes): Use it.
14162 2013-10-14  Richard Biener  <rguenther@suse.de>
14164         PR middle-end/58712
14165         PR middle-end/55358
14166         * gimple.c (iterative_hash_canonical_type): Make sure to
14167         record the hash into the correct hashtable slot.
14169 2013-10-13  Eric Botcazou  <ebotcazou@adacore.com>
14171         PR rtl-optimization/58662
14172         * combine.c (try_combine): Take into account death nodes on I2 when
14173         splitting a PARALLEL of two independent SETs.  Fix dump message.
14175 2013-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
14177         PR target/51244
14178         * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
14179         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
14180         extra_objs.
14181         * config/sh/t-sh (sh_treg_combine.o): New entry.
14182         * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
14183         implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
14184         (register_sh_passes): New function.  Register sh_treg_combine pass.
14185         (sh_option_override): Invoke it.
14186         (sh_canonicalize_comparison): Handle op0_preserve_value.
14187         * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
14188         opportunities.  Canonicalize branch condition.
14189         (nott): Allow only if pseudos can be created for non-SH2A.
14191 2013-10-12  H.J. Lu  <hongjiu.lu@intel.com>
14193         PR target/58690
14194         * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
14195         (ix86_expand_movmem): Replace copy_addr_to_reg with
14196         ix86_copy_addr_to_reg.
14197         (ix86_expand_setmem): Likewise.
14199 2013-10-12  Alexander Monakov  <amonakov@ispras.ru>
14201         * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
14202         provided by ix86_fp_compare_mode instead of CCFPUmode.
14204 2013-10-12  James Greenhalgh  <james.greenhalgh@arm.com>
14206         * config/aarch64/arm_neon.h
14207         (vtbx<1,3>_<psu>8): Fix register constriants.
14209 2013-10-11  Jeff Law  <law@redhat.com>
14211         PR tree-optimization/58640
14212         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
14213         threading paths that cross over two loop entry points.
14215 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14217         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
14218         handle vector float as well.
14219         (*vsx_le_perm_load_v4si): Likewise.
14220         (*vsx_le_perm_store_v2di): Likewise.
14221         (*vsx_le_perm_store_v4si): Likewise.
14223 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14225         * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
14226         directly to circumvent subtract from splat{31} workaround.
14227         * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
14228         prototype.
14229         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
14230         * config/rs6000/altivec.md (define_c_enum "unspec"): Add
14231         UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
14232         (altivec_vperm_<mode>): Convert to define_insn_and_split to
14233         separate big and little endian logic.
14234         (*altivec_vperm_<mode>_internal): New define_insn.
14235         (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
14236         separate big and little endian logic.
14237         (*altivec_vperm_<mode>_uns_internal): New define_insn.
14238         (vec_permv16qi): Add little endian logic.
14240 2013-10-11  Marc Glisse  <marc.glisse@inria.fr>
14242         * doc/extend.texi (returns_nonnull): Remove arguments.
14244 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14245             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14246             Sergey Lega  <sergey.s.lega@intel.com>
14247             Anna Tikhonova  <anna.tikhonova@intel.com>
14248             Ilya Tocar  <ilya.tocar@intel.com>
14249             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14250             Ilya Verbin  <ilya.verbin@intel.com>
14251             Kirill Yukhin  <kirill.yukhin@intel.com>
14252             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14254         * config/i386/sse.md (VI48F_256_512): New.
14255         (avx2_permvar<mode>): Change to ...
14256         (<avx2_avx512f>_permvar<mode>): This.
14258 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14259             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14260             Sergey Lega  <sergey.s.lega@intel.com>
14261             Anna Tikhonova  <anna.tikhonova@intel.com>
14262             Ilya Tocar  <ilya.tocar@intel.com>
14263             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14264             Ilya Verbin  <ilya.verbin@intel.com>
14265             Kirill Yukhin  <kirill.yukhin@intel.com>
14266             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14268         * config/i386/i386.c (bdesc_args): Change corresponding pattern for
14269         __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
14270         * config/i386/sse.md (VI4_AVX): New.
14271         (sf2simodelower): Ditto.
14272         (sse2_cvtps2dq): Change to ...
14273         (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
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/sse.md (V_512): New.
14286         (VI_512): Ditto.
14287         (vcond<V_512:mode><VF_512:mode>): Ditto.
14288         (vcond<V_512:mode><VI_512:mode>): Ditto.
14289         (vcondu<V_512:mode><VI_512:mode>): Ditto.
14291 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14292             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14293             Sergey Lega  <sergey.s.lega@intel.com>
14294             Anna Tikhonova  <anna.tikhonova@intel.com>
14295             Ilya Tocar  <ilya.tocar@intel.com>
14296             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14297             Ilya Verbin  <ilya.verbin@intel.com>
14298             Kirill Yukhin  <kirill.yukhin@intel.com>
14299             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14301         * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
14302         * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
14303         (FMAMODE): Ditto.
14304         (fma<mode>4): Removed condition.
14305         (fms<mode>4): Ditto.
14306         (fnma<mode>4): Ditto.
14307         (fnms<mode>4): Ditto.
14308         (fma4i_fmadd_<mode>): Ditto.
14309         (*fma_fmadd_<mode>): Ditto.
14310         (*fma_fmsub_<mode>): Ditto.
14311         (*fma_fnmadd_<mode>): Ditto.
14312         (*fma_fnmsub_<mode>): Ditto.
14313         (fmaddsub_<mode>): Allow for TARGET_AVX512F.
14314         (*fma_fmaddsub_<mode>): Ditto.
14315         (*fma_fmsubadd_<mode>): Ditto.
14316         (*fmai_fmadd_<mode>): Ditto.
14317         (*fmai_fmsub_<mode>): Ditto.
14318         (*fmai_fnmadd_<mode>): Ditto.
14319         (*fmai_fnmsub_<mode>): Ditto.
14321 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14322             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14323             Sergey Lega  <sergey.s.lega@intel.com>
14324             Anna Tikhonova  <anna.tikhonova@intel.com>
14325             Ilya Tocar  <ilya.tocar@intel.com>
14326             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14327             Ilya Verbin  <ilya.verbin@intel.com>
14328             Kirill Yukhin  <kirill.yukhin@intel.com>
14329             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14331         * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
14332         (VI124_256): Changed to ...
14333         (VI124_256_48_512): This.
14334         (ssepackmode): Extended with wider modes.
14335         (<code><mode>3): Changed iterator.
14336         (*avx2_<code><mode>3): Ditto.
14337         (vec_pack_trunc_<mode>): Ditto.
14339 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14340             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14341             Sergey Lega  <sergey.s.lega@intel.com>
14342             Anna Tikhonova  <anna.tikhonova@intel.com>
14343             Ilya Tocar  <ilya.tocar@intel.com>
14344             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14345             Ilya Verbin  <ilya.verbin@intel.com>
14346             Kirill Yukhin  <kirill.yukhin@intel.com>
14347             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14349         * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
14350         (VI8F_256_512): Ditto.
14351         (abs<mode>2): Changed iterator.
14352         (avx2_perm<mode>): Changed to ...
14353         (<avx2_avx512f>_perm<mode>): This.
14354         (avx2_perm<mode>_1): Changed to ...
14355         (<avx2_avx512f>_perm<mode>_1): This.
14357 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14358             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14359             Sergey Lega  <sergey.s.lega@intel.com>
14360             Anna Tikhonova  <anna.tikhonova@intel.com>
14361             Ilya Tocar  <ilya.tocar@intel.com>
14362             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14363             Ilya Verbin  <ilya.verbin@intel.com>
14364             Kirill Yukhin  <kirill.yukhin@intel.com>
14365             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14367         * config/i386/sse.md (VI48_AVX512F): New.
14368         (VI48_AVX2): Changed to ...
14369         (VI48_AVX2_48_AVX512F): This.
14370         (avx2_ashrv<mode>): Changed to ...
14371         (<avx2_avx512f>_ashrv<mode>): This.
14372         (avx2_<shift_insn>v<mode>): Changed to ...
14373         (<avx2_avx512f>_<shift_insn>v<mode>): This.
14375 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14376             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14377             Sergey Lega  <sergey.s.lega@intel.com>
14378             Anna Tikhonova  <anna.tikhonova@intel.com>
14379             Ilya Tocar  <ilya.tocar@intel.com>
14380             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14381             Ilya Verbin  <ilya.verbin@intel.com>
14382             Kirill Yukhin  <kirill.yukhin@intel.com>
14383             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14385         * config/i386/sse.md (VI4_AVX512F): New.
14386         (VI8_AVX2_AVX512F): Ditto.
14387         (mul<mode>3): Extended with wider modes.
14388         (*<sse4_1_avx2>_mul<mode>3): Ditto.
14389         (mul<mode>3): Ditto.
14390         (vec_widen_<s>mult_odd_<mode>): Ditto.
14392 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14393             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14394             Sergey Lega  <sergey.s.lega@intel.com>
14395             Anna Tikhonova  <anna.tikhonova@intel.com>
14396             Ilya Tocar  <ilya.tocar@intel.com>
14397             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14398             Ilya Verbin  <ilya.verbin@intel.com>
14399             Kirill Yukhin  <kirill.yukhin@intel.com>
14400             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14402         * config/i386/sse.md (VI2_AVX512F): New.
14403         (VI124_AVX512F): Ditto.
14404         (sseunpackmode): Extended with wider modes.
14405         (sseunpackfltmode): Ditto.
14406         (vec_unpacks_float_hi_<mode>): Ditto.
14407         (vec_unpacks_float_lo_<mode>): Ditto.
14408         (vec_unpacku_float_hi_<mode>): Ditto.
14409         (vec_unpacku_float_lo_<mode>): Ditto.
14410         (vec_unpacks_lo_<mode>): Ditto.
14411         (vec_unpacks_hi_<mode>): Ditto.
14412         (vec_unpacku_lo_<mode>): Ditto.
14413         (vec_unpacku_hi_<mode>): Ditto.
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/i386.md (multdiv): New.
14426         (multdiv_mnemonic): Ditto.
14427         * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
14428         (<sse>_vm<multdiv_mnemonic><mode>3): This.
14429         (<sse>_vmdiv<mode>3): Removed.
14431 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14432             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14433             Sergey Lega  <sergey.s.lega@intel.com>
14434             Anna Tikhonova  <anna.tikhonova@intel.com>
14435             Ilya Tocar  <ilya.tocar@intel.com>
14436             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14437             Ilya Verbin  <ilya.verbin@intel.com>
14438             Kirill Yukhin  <kirill.yukhin@intel.com>
14439             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14441         * config/i386/sse.md (V): Extended with wider modes.
14442         (VF2): Ditto.
14443         (ssehalfvecmode): Ditto.
14444         (i128): Ditto.
14445         (ssepackfltmode): Ditto.
14446         (avx_vec_concat<mode>): Ditto.
14447         (V_256_512): New iterator.
14448         (VF2_512_256): Ditto.
14449         (si2dfmode): New attribute.
14450         (si2dfmodelower): Ditto.
14451         (sf2dfmode): Ditto.
14452         (concat_tg_mode): Ditto.
14453         (floatv4siv4df2): Changed to ...
14454         (float<si2dfmodelower><mode>2): This.
14455         (avx_cvtps2pd256): Changed to ...
14456         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
14457         (vec_pack_trunc_v4df): Changed to ...
14458         (vec_pack_trunc_<mode>): This.
14459         (avx_vpermil<mode>): Changed to ...
14460         (<sse2_avx_avx512f>_vpermil<mode>): This.
14461         (<fixsuffix>fix_truncv8dfv8si2): New.
14462         (vec_pack_sfix_trunc_v8df): Ditto.
14463         (avx512f_rndscale<mode>): Ditto.
14464         (avx512f_roundpd512): Ditto.
14465         (vec_pack_ufix_trunc_<mode>): Updated iterator.
14467 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14468             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14469             Sergey Lega  <sergey.s.lega@intel.com>
14470             Anna Tikhonova  <anna.tikhonova@intel.com>
14471             Ilya Tocar  <ilya.tocar@intel.com>
14472             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14473             Ilya Verbin  <ilya.verbin@intel.com>
14474             Kirill Yukhin  <kirill.yukhin@intel.com>
14475             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14477         * config/i386/i386.md (any_fix): New iterator.
14478         (fixsuffix): New attribute.
14479         * config/i386/sse.md (VF1): Extened with wider modes.
14480         (VI): Ditto.
14481         (VI_AVX2): Ditto.
14482         (VI8): Ditto.
14483         (sseintvecmodelower): Ditto.
14484         (ssescalarmode): Ditto.
14485         (ssescalarnum): Ditto.
14486         (VF1_128_256): New.
14487         (ssexmmmode): Ditto.
14488         (<fixsuffix>fix_truncv16sfv16si2): Ditto.
14489         (<sse>_rcp<mode>2): Change iterator.
14490         (rsqrt<mode>2): Ditto.
14491         (<sse>_rsqrt<mode>2): Ditto.
14492         (avx2_vec_dup<mode>): Ditto.
14493         (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
14494         (round<mode>2_sfix): Ditto.
14495         (avx2_pbroadcast<mode>): Ditto.
14496         (*andnot<mode>3): Handle XI mode.
14497         (*<code><mode>3): Ditto.
14498         (AVXTOSSEMODE): Removed.
14499         (avx_vpermil<mode>): Changed to ...
14500         (<sse2_avx_avx512f>_vpermil<mode>): This.
14502 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14503             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14504             Sergey Lega  <sergey.s.lega@intel.com>
14505             Anna Tikhonova  <anna.tikhonova@intel.com>
14506             Ilya Tocar  <ilya.tocar@intel.com>
14507             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14508             Ilya Verbin  <ilya.verbin@intel.com>
14509             Kirill Yukhin  <kirill.yukhin@intel.com>
14510             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14512         * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
14513         (<sse>_comi): Ditto.
14514         (<sse>_ucomi): Ditto.
14515         (sse_cvtss2siq_2): Ditto.
14516         (sse2_cvtsd2si): Ditto.
14517         (sse2_cvtsd2siq): Ditto.
14518         (sse2_cvttsd2si): Ditto.
14519         (sse2_cvttsd2siq): Ditto.
14520         (<shift_insn><mode>3): Ditto.
14521         (sse2_cvtsi2sdq): Update constraint and prefix.
14522         (sse_cvtsi2ss): Update prefix.
14523         (sse_cvtsi2ssq): Ditto.
14525 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
14527         * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
14528         ignore internal calls.
14530 2013-10-11  Richard Biener  <rguenther@suse.de>
14532         * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
14533         and (ab) for SSA_NAMEs.  Mark INTEGER_CSTs with (OVF) if
14534         TREE_OVERFLOW is set.
14536 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
14538         * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
14540         * gimple.c: GIMPLE statements have subcodes, not sub-codes.
14541         * gimple.h: Likewise.
14543         * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
14545         * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
14546         macros.
14548         * doc/gimple.texi (is_gimple_omp): Move into the correct section.
14550         * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
14551         * configure: Regenerate.
14553 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
14555         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
14556         and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
14557         formatting fixes, use pp_colon instead of pp_character (..., ':'),
14558         similarly pp_right_paren.
14559         (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
14560         OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
14561         allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
14562         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
14563         clauses.
14564         (omp_declare_simd_clauses_equal,
14565         omp_remove_redundant_declare_simd_attrs): New functions.
14566         (attribute_value_equal): Use omp_declare_simd_clauses_equal.
14567         (walk_tree_1): Handle new OpenMP 4.0 clauses.
14568         * tree.h (OMP_LOOP_CHECK): Define.
14569         (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
14570         OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
14571         (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
14572         OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
14573         OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
14574         OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
14575         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
14576         OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
14577         OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
14578         OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
14579         OMP_CLAUSE_SIMDLEN_EXPR): Define.
14580         (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
14581         (omp_remove_redundant_declare_simd_attrs): New prototype.
14582         * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
14583         GIMPLE_OMP_TEAMS): New codes.
14584         (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
14585         * omp-low.c (struct omp_context): Add cancel_label and cancellable
14586         fields.
14587         (target_nesting_level): New variable.
14588         (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
14589         OMP_CLAUSE_DIST_SCHEDULE.  Don't fallback to library implementation
14590         for collapse > 1 static schedule unless ordered.
14591         (get_ws_args_for): Add par_stmt argument.  Handle combined loops.
14592         (determine_parallel_type): Adjust get_ws_args_for caller.
14593         (install_var_field): Handle mask & 4 for double indirection.
14594         (scan_sharing_clauses): Ignore shared clause on teams construct.
14595         Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
14596         (create_omp_child_function): If inside target or declare target
14597         constructs, set "omp declare target" attribute on the child function.
14598         (find_combined_for): New function.
14599         (scan_omp_parallel): Handle combined loops.
14600         (scan_omp_target, scan_omp_teams): New functions.
14601         (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
14602         restrictions and set ctx->cancellable for cancellable constructs.
14603         (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
14604         selected builtin calls.  Handle GIMPLE_OMP_TASKGROUP,
14605         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
14606         (build_omp_barrier): Add lhs argument, return gimple rather than tree.
14607         (omp_clause_aligned_alignment): New function.
14608         (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
14609         (lower_rec_input_clauses): Add FD argument.  Ignore shared clauses
14610         on teams constructs.  Handle user defined reductions and new
14611         OpenMP 4.0 clauses.
14612         (lower_reduction_clauses): Don't set placeholder to address of ref
14613         if it has already the right type.
14614         (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
14615         (expand_parallel_call): Use the new non-_start suffixed builtins,
14616         handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
14617         and GOMP_parallel_end after the call.
14618         (expand_task_call): Handle OMP_CLAUSE_DEPEND.
14619         (expand_omp_for_init_counts): Handle combined loops.
14620         (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
14621         loops.
14622         (expand_omp_for_generic): Likewise.  Use GOMP_loop_end_cancel at the
14623         end of cancellable loops.
14624         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
14625         Likewise.  Handle collapse > 1 loops.
14626         (expand_omp_simd): Handle combined loops.
14627         (expand_omp_for): Add inner_stmt argument, adjust callers of
14628         expand_omp_for* functions, use expand_omp_for_static*chunk even
14629         for collapse > 1 unless ordered.
14630         (expand_omp_sections): Use GOMP_sections_end_cancel at the end
14631         of cancellable sections.
14632         (expand_omp_single): Remove need_barrier variable, just rely on
14633         gimple_omp_return_nowait_p.  Adjust build_omp_barrier caller.
14634         (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
14635         (expand_omp_atomic_load, expand_omp_atomic_store,
14636         expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
14637         (expand_omp_target): New function.
14638         (expand_omp): Handle combined loops.  Handle GIMPLE_OMP_TASKGROUP,
14639         GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
14640         (build_omp_regions_1): Immediately close region for
14641         GF_OMP_TARGET_KIND_UPDATE.
14642         (maybe_add_implicit_barrier_cancel): New function.
14643         (lower_omp_sections): Adjust lower_rec_input_clauses caller.  Handle
14644         cancellation.
14645         (lower_omp_single): Likewise.  Add clobber after the barrier.
14646         (lower_omp_taskgroup): New function.
14647         (lower_omp_for): Handle combined loops.  Adjust
14648         lower_rec_input_clauses caller.  Handle cancellation.
14649         (lower_depend_clauses): New function.
14650         (lower_omp_taskreg): Lower depend clauses.  Adjust
14651         lower_rec_input_clauses caller.  Add clobber after the call.  Handle
14652         cancellation.
14653         (lower_omp_target, lower_omp_teams): New functions.
14654         (lower_omp_1): Handle cancellation.  Handle GIMPLE_OMP_TASKGROUP,
14655         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
14656         and GOMP_cancellation_point calls.
14657         (lower_omp): Fold stmts inside of target region.
14658         (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
14659         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
14660         * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
14661         (BT_FN_VOID_OMPFN_PTR_UINT,
14662         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
14663         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
14664         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
14665         (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
14666         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
14667         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
14668         BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
14669         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
14670         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
14671         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
14672         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
14673         call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
14674         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
14675         BUILT_IN_GOMP_SECTIONS_END_CANCEL.  Don't handle
14676         BUILT_IN_GOMP_PARALLEL_END.
14677         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
14678         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
14679         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
14680         GF_OMP_FOR_KIND_DISTRIBUTE.
14681         (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
14682         (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
14683         (dump_gimple_omp_return): Print lhs if it has any.
14684         (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
14685         gimple_omp_atomic_seq_cst_p.
14686         (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
14687         and GIMPLE_OMP_TEAMS.
14688         * langhooks.c (lhd_omp_mappable_type): New function.
14689         * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
14690         * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
14691         hook.
14692         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
14693         GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
14694         (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
14695         (struct gimplify_omp_ctx): Add combined_loop field.
14696         (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
14697         on stmts inside of target region.
14698         (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
14699         (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
14700         ORT_TARGET and ORT_TARGET_DATA.
14701         (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
14702         Handle GOVD_MAP.
14703         (omp_notice_threadprivate_variable): Complain about threadprivate
14704         variables in target region.
14705         (omp_notice_variable): Complain about vars with non-mappable type
14706         in target region.  Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
14707         (omp_check_private): Ignore ORT_TARGET* regions.
14708         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
14709         gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
14710         (find_combined_omp_for): New function.
14711         (gimplify_omp_for): Handle gimplification of combined loops.
14712         (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
14713         OMP_TEAMS.
14714         (gimplify_omp_target_update): New function.
14715         (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
14716         (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
14717         OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
14718         (gimplify_body): If fndecl has "omp declare target" attribute, add
14719         implicit ORT_TARGET context around it.
14720         * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
14721         OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
14722         * tree-nested.c (convert_nonlocal_reference_stmt,
14723         convert_local_reference_stmt, convert_gimple_call): Handle
14724         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14725         * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
14726         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
14727         instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
14728         (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
14729         BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
14730         BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
14731         BUILT_IN_GOMP_LOOP_END_CANCEL,
14732         BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
14733         BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
14734         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
14735         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
14736         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
14737         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
14738         BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
14739         BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
14740         (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
14741         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
14742         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
14743         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
14744         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
14745         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
14746         * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
14747         Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14748         * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
14749         gimple_build_omp_teams): New functions.
14750         (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
14751         GIMPLE_OMP_TASKGROUP.  Walk optional lhs on GIMPLE_OMP_RETURN.
14752         (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
14753         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14754         * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
14755         GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
14756         GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
14757         GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
14758         GF_OMP_ATOMIC_SEQ_CST): New.
14759         (gimple_build_omp_taskgroup, gimple_build_omp_target,
14760         gimple_build_omp_teams): New prototypes.
14761         (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
14762         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14763         (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
14764         GIMPLE_OMP_SINGLE as end of range.
14765         (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
14766         gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
14767         gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
14768         gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
14769         gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
14770         gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
14771         gimple_omp_target_kind, gimple_omp_target_set_kind,
14772         gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
14773         gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
14774         gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
14775         gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
14776         gimple_omp_teams_set_clauses): New inlines.
14777         (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
14778         and GIMPLE_OMP_TASKGROUP.
14779         * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
14780         (enum omp_clause_depend_kind, enum omp_clause_map_kind,
14781         enum omp_clause_proc_bind_kind): New.
14782         (union omp_clause_subcode): Add depend_kind, map_kind and
14783         proc_bind_kind fields.
14784         * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
14785         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14786         * langhooks-def.h (lhd_omp_mappable_type): New prototype.
14787         (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
14788         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
14790 2013-10-10  Teresa Johnson  <tejohnson@google.com>
14792         * predict.c (tree_estimate_probability): Add new parameter
14793         for estimate_bb_frequencies.
14794         (estimate_bb_frequencies): Add new parameter to force estimation.
14795         (rebuild_frequencies): When max frequency in function is small,
14796         recompute counts from frequencies.
14797         * predict.h (estimate_bb_frequencies): New parameter.
14799 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
14801         * ipa-inline.c (ipa_inline): Fix leak of "order" when
14802         optimizations are disabled.
14804 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
14806         * coverage.c (coverage_finish): Fix leak of da_file_name.
14808 2013-10-10  Jan Hubicka  <jh@suse.cz>
14810         * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
14811         for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
14812         Bobcat and generic.
14814 2013-10-10  Jakub Jelinek  <jakub@redhat.com>
14816         PR middle-end/58670
14817         * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
14818         if any labels are in FALLTHRU_BB, use a special label emitted
14819         immediately after the asm goto insn rather than label_rtx
14820         of the LABEL_DECL.
14821         (expand_asm_stmt): Adjust caller.
14822         * cfgrtl.c (commit_one_edge_insertion): Force splitting of
14823         edge if the last insn in predecessor is a jump with single successor,
14824         but it isn't simplejump_p.
14826 2013-10-10  Richard Biener  <rguenther@suse.de>
14828         PR tree-optimization/58656
14829         * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
14831 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
14833         * gimplify.c: Include expr.h and tm_p.h for targets with special
14834         va-arg padding requirements.
14836 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
14838         * tree-flow.h: Move some prototypes to gimple.h.
14839         (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
14840         * gimple.h: Relocate some prototypes from tree-flow.h
14841         * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
14842         Move to gimplify.c.
14843         * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
14844         (build_va_arg_indirect_ref): Relocate and make static.
14845         (std_gimplify_va_arg_expr): Relocate here.
14846         * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
14847         * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
14849 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14851         * doc/md.texi: Document the mnemonic attribute.
14853 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14855         PR target/57377
14856         * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
14857         (set_attr_alternative x ...) when searching for user defined
14858         mnemonic attribute.
14860 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
14862         * config/alpha/alpha.c: Add gimple-ssa.h to include list.
14864 2013-10-09  Easwaran Raman <eraman@google.com>
14866         * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
14867         * cfgexpand.c (defer_stack_allocation): ...use here
14868         * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
14870 2013-10-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
14872         * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
14873         (operand_equal_for_value_replacement): New function, extracted from
14874         value_replacement and enhanced to catch more cases.
14875         (value_replacement): Use operand_equal_for_value_replacement.
14877 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
14879         * loop-doloop.c (doloop_modify, doloop_optimize): Use
14880         get_max_loop_iterations.
14882 2013-10-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14884         * config/arm/aarch-common.c (arm_early_load_addr_dep):
14885         Place comment above function.
14887 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
14889         * tree-flow.h: Remove all remaining prototypes, enums and structs that
14890         are not related to tree-cfg.c.
14891         * tree-ssa-address.h: New file.  Relocate prototypes.
14892         * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
14893         (addr_for_mem_ref): New.  Combine call to get_address_description and
14894         return addr_for_mem_ref.
14895         * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
14896         * tree-ssa-live.h: Adjust prototypes.
14897         * passes.c: Include tree-ssa-live.h.
14898         * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
14899         * graphite.c (graphite_transform_loops): Make static.
14900         (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
14901         make_pass_graphite, pass_data_graphite_transforms,
14902         make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
14903         * ipa-pure-const.c (warn_function_noreturn): Make static.
14904         (execute_warn_function_noreturn, gate_warn_function_noreturn,
14905         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
14906         Relocate from tree-cfg.c
14907         * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
14908         static.
14909         (execute_warn_function_noreturn, gate_warn_function_noreturn,
14910         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
14911         Move to ipa-pure-const.c.
14912         (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
14913         Relocate from tree-optimize.c.
14914         * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
14915         make_pass_fixup_cfg): Move to tree-cfg.c.
14916         * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
14917         Relocate some prototypes.
14918         * tree-data-ref.h (tree_check_data_deps) Add prototype.
14919         * tree-dump.c (dump_function_to_file): Remove prototype.
14920         Add tree-flow.h to the include file.
14921         * tree-dump.h: Remove prototype.
14922         * tree-parloops.h: New File.  Add prototypes.
14923         * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
14924         pass_data_parallelize_loops,  make_pass_parallelize_loops): Relocate
14925         from tree-ssa-loop.c.
14926         * tree-predcom.c (run_tree_predictive_commoning,
14927         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
14928         Relocate here from tree-ssa-loop.c.
14929         * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
14930         ssa_name_values.release ().
14931         * tree-ssa-threadedge.h: New File.  Relocate prototypes here.
14932         (ssa_name_values): Relocate from tree-flow.h.
14933         * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
14934         * tree-ssa-loop.c (run_tree_predictive_commoning,
14935         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
14936         graphite_transforms, gate_graphite_transforms, pass_data_graphite,
14937         make_pass_graphite, pass_data_graphite_transforms,
14938         make_pass_graphite_transforms, gate_tree_parallelize_loops,
14939         tree_parallelize_loops, pass_data_parallelize_loops,
14940         make_pass_parallelize_loops): Move to other files.
14941         * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
14942         moved here.
14943         * tree.h: Remove prototypes from tree-address.c.
14945 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
14947         * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
14948         (struct int_tree_map): Move to tree-hasher.h
14949         (SCALE, LABEL, PERCENT): Move to gimple.h
14950         * tree-flow-inline.h: Delete.  Move functions to other files.
14951         (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
14952         * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
14953         (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
14954         * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
14955         inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
14956         (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
14957         * tree-hasher.h: Don't include tree-flow.h.
14958         (struct int_tree_map): Relocate from tree-flow.h.
14959         * tree-sra.c (contains_view_convert_expr_p): Relocate from
14960         tree-flow-inline.h and make static.
14961         * tree-ssa-alias.h (ranges_overlap_p): Relocate from
14962         tree-flow-inline.h.
14963         * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
14964         tree-flow-inline.h and make static.
14965         * tree.h (is_global_var, may_be_aliased): Relocate from
14966         tree-flow-inline.h.
14967         * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
14968         * value-prof.c: No longer include tree-flow-inline.h.
14969         * tree-switch-conversion.c: No longer include tree-flow-inline.h.
14971 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
14973         * tree-flow.h: Move some protoypes.  Include new tree-ssa-loop.h.
14974         (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
14975         (enum move_pos): Move to tree-ssa-loop-im.h
14976         * cfgloop.h: Move some prototypes.
14977         (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
14978         * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
14979         * tree-ssa-loop.h: New File.  Include other tree-ssa-loop-*.h files.
14980         (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
14981         (loop_containing_stmt): Relocate from tree-flow-inline.h.
14982         * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
14983         * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
14984         (enum move_pos): Relocate here.
14985         (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
14986         tree-ssa-loop.c.
14987         (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
14988         (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
14989         make_pass_lim): Relocate here from tree-ssa-loop.c.
14990         * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
14991         tree-ssa-loop.c.
14992         (loop_edge_to_cancel, unloop_loops): Make static.
14993         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
14994         make_pass_iv_canon): Relocate from tree-ssa-loop.c.
14995         (tree_complete_unroll, gate_tree_complete_unroll,
14996         pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
14997         (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
14998         pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
14999         * tree-ssa-loop-ivopts.c: Remove local prototypes.
15000         (stmt_invariant_in_loop_p): Remove unused function.
15001         * tree-ssa-loop-ivopts.h: New file.  Add prototypes.
15002         * tree-ssa-loop-manip.h: New file.  Add prototypes.
15003         * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
15004         (gcov_type_to_double_int): Move to cfgloop.h.
15005         (double_int_cmp, bound_index,
15006         estimate_numbers_of_iterations_loop): Make static.
15007         (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
15008         (max_loop_iterations): Factor out get_max_loop_iterations.
15009         (estimated_loop_iterations_int, max_stmt_executions_int): Move to
15010         cfgloop.c.
15011         * tree-ssa-loop-niter.h: New file.  Add prototypes.
15012         * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
15013         gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
15014         make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
15015         * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
15016         gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
15017         make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
15018         * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
15019         pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
15020         (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
15021         pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
15022         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
15023         make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
15024         pass_data_complete_unroll, make_pass_complete_unroll,
15025         tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
15026         pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
15027         tree-ssa-loop-ivcanon.c.
15028         (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
15029         pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
15030         tree-ssa-loop-prefetch.c.
15031         (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
15032         tree-ssa-loop-im.c.
15033         (get_lsm_tmp_name): Relocate and add suffix parameter.
15034         (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
15035         * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
15036         * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
15037         max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
15038         (get_estimated_loop_iterations): Factor out accessor from
15039         estimated_loop_iterations in tree-ssa-loop-niter.c.
15040         (get_max_loop_iterations): Factor out accessor from
15041         _max_loop_iterations in tree-ssa-niter.c.
15042         * loop-unroll.c (decide_unroll_constant_iterations,
15043         decide_unroll_runtime_iterations, decide_peel_simple,
15044         decide_unroll_stupid): Use new get_* accessors.
15046 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
15048         PR tree-optimization/20318
15049         * doc/extend.texi (returns_nonnull): New function attribute.
15050         * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
15051         attribute.
15052         * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
15053         (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
15055 2013-10-09  Eric Botcazou  <ebotcazou@adacore.com>
15057         PR middle-end/58570
15058         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
15059         false if both components are bitfields.
15061 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
15063         * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
15064         (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
15065         (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
15066         * config/aarch64/aarch64.h
15067         (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
15068         * config/aarch64/aarch64-simd-builtins.def
15069         (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
15071 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
15073         * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
15075 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
15077         * config/aarch64/arm_neon.h (vdiv_f64): Added.
15079 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
15081         * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
15082         (vneg_f64): New intrinsic.
15083         (vneg_s8): Asm replaced with C.
15084         (vneg_s16): Likewise.
15085         (vneg_s32): Likewise.
15086         (vneg_s64): New intrinsic.
15087         (vnegq_f32): Asm replaced with C.
15088         (vnegq_f64): Likewise.
15089         (vnegq_s8): Likewise.
15090         (vnegq_s16): Likewise.
15091         (vnegq_s32): Likewise.
15092         (vnegq_s64): Likewise.
15094 2013-10-09  Renlin Li  <Renlin.Li@arm.com>
15096         * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
15098 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15100         * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
15101         packed stack special handling.
15102         (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
15103         back to fixed stack slots for FPRs saved due to stdarg.
15105 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15107         * config/s390/s390.c (s390_frame_info): Restructure function.
15109 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15111         * config/s390/s390.c (struct s390_frame_layout): New field
15112         gpr_save_slots.
15113         (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
15114         (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
15115         regs_ever_clobbered to char*.
15116         (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
15117         of cfun->has_nonlocal_label.  Ignore frame related restore INSNs.
15118         (s390_register_info): Enable FPR save slots.  Move/Copy some
15119         functionality into ...
15120         (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
15121         (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
15122         function.
15123         (s390_frame_info): Do gpr slot allocation here now.  stdarg does
15124         not imply a stack frame.
15125         (s390_init_frame_layout): Remove variable clobbered_regs.
15126         (s390_update_register_info): Remove function.
15127         (s390_hard_regno_rename_ok): Call-saved regs without a save slot
15128         cannot be used for register renaming.
15129         (s390_hard_regno_scratch_ok): New function.
15130         (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
15131         (s390_initial_elimination_offset): Change offset calculation of
15132         the return address pointer.
15133         (save_gprs): Deal with only r6 being saved from the call-saved regs.
15134         (restore_gprs): Set frame related flag.
15135         (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
15136         (s390_emit_prologue): Call s390_register_info instead of
15137         s390_update_frame_layout.  Call s390_save_gprs_to_fprs.
15138         (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
15139         (s390_optimize_prologue): Call s390_optimize_register_info.
15140         Try to remove also FPR slot save/restore INSNs.  Remove frame
15141         related flags from restore INSNs.
15143 2013-10-08  DJ Delorie  <dj@redhat.com>
15145         * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
15146         (movhi): Likewise.
15148         * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
15149         avoid conflict with the MI use of %c.
15150         * config/rl78/rl78-real.md: change %c to %C throughout.
15151         * config/rl78/rl78-virt.md: Likewise.
15153 2013-10-08  Jan Hubicka  <jh@suse.cz>
15155         * config/i386/i386.c (ix86_option_override_internal): Switch
15156         to SSE math for -ffast-math when target ISA supports SSE2.
15158 2013-10-08  Andrew MacLeod  <amacleod@redhat.com>
15160         * tree-flow.h: Remove some prototypes.
15161         * tree.h: Remove some protypes, add a couple.
15162         * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
15163         using_eh_for_cleanups_p): Add interface routines for front ends.
15164         * tree-eh.h: New file.  Add protoptyes.
15165         * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
15166         (add_stmt_to_eh_lp_fn): Make static.
15167         (lower_try_finally): Use new using_eh_for_cleanups_p.
15168         * emit-rtl.c: Include tree-eh.h.
15169         * gimple.h: Include tree-eh.h.
15171 2013-10-08  Marc Glisse  <marc.glisse@inria.fr>
15173         PR tree-optimization/58480
15174         * tree-vrp.c (infer_nonnull_range): New function.
15175         (infer_value_range): Call infer_nonnull_range.
15177 2013-10-08  Dehao Chen  <dehao@google.com>
15179         PR tree-optimization/58619
15180         * tree-inline.c (copy_phis_for_bb): Combine location data
15181         only if non-null.
15183 2013-10-08  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
15185         PR target/58423
15186         * config/arm/arm.c (arm_emit_ldrd_pop): Attach
15187         RTX_FRAME_RELATED_P on INSN.
15189 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15191         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
15192         (altivec_expand_vec_perm_const): Call it.
15194 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15196         * config/rs6000/vector.md (mov<mode>): Emit permuted move
15197         sequences for LE VSX loads and stores at expand time.
15198         * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
15199         prototype.
15200         * config/rs6000/rs6000.c (rs6000_const_vec): New.
15201         (rs6000_gen_le_vsx_permute): New.
15202         (rs6000_gen_le_vsx_load): New.
15203         (rs6000_gen_le_vsx_store): New.
15204         (rs6000_gen_le_vsx_move): New.
15205         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
15206         (*vsx_le_perm_load_v4si): New.
15207         (*vsx_le_perm_load_v8hi): New.
15208         (*vsx_le_perm_load_v16qi): New.
15209         (*vsx_le_perm_store_v2di): New.
15210         (*vsx_le_perm_store_v4si): New.
15211         (*vsx_le_perm_store_v8hi): New.
15212         (*vsx_le_perm_store_v16qi): New.
15213         (*vsx_xxpermdi2_le_<mode>): New.
15214         (*vsx_xxpermdi4_le_<mode>): New.
15215         (*vsx_xxpermdi8_le_V8HI): New.
15216         (*vsx_xxpermdi16_le_V16QI): New.
15217         (*vsx_lxvd2x2_le_<mode>): New.
15218         (*vsx_lxvd2x4_le_<mode>): New.
15219         (*vsx_lxvd2x8_le_V8HI): New.
15220         (*vsx_lxvd2x16_le_V16QI): New.
15221         (*vsx_stxvd2x2_le_<mode>): New.
15222         (*vsx_stxvd2x4_le_<mode>): New.
15223         (*vsx_stxvd2x8_le_V8HI): New.
15224         (*vsx_stxvd2x16_le_V16QI): New.
15226 2013-10-07  Renlin Li  <Renlin.Li@arm.com>
15228         * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
15230 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15232         * config/s390/s390.c (s390_register_info): Make the call-saved FPR
15233         loop to work also for 31bit ABI.
15234         Save the stack pointer for frame_size > 0.
15236 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15238         * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
15239         ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
15240         constraint letters from expanders.
15241         ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
15242         retry count to general_operand.
15243         ("tabort"): Give operand 0 a mode.
15244         ("tabort_1"): Add mode and constraint letter for operand 0.
15245         * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
15247 2013-10-04  Jeff Law  <law@redhat.com>
15249         * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
15251         * tree-ssa-threadedge.c (thread_through_normal_block): Broken
15252         out of ...
15253         (thread_across_edge): Here.  Call it.
15255 2013-10-04  Cary Coutant  <ccoutant@google.com>
15257         * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
15258         discarding a location list expression (or a piece of one).
15260 2013-10-03  Jan Hubicka  <jh@suse.cz>
15262         * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
15263         rate of 2.  Core2, Corei7 and Haswell has issue rate of 4.
15264         (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
15266 2013-10-03  Jan Hubicka  <jh@suse.cz>
15268         * config/i386/i386.c (ix86_option_override_internal): Do not enable
15269         accumulate-outgoing-args when producing unwind info.
15271 2013-10-03  Wei Mi  <wmi@google.com>
15273         * lra-constraints.c (insert_move_for_subreg): New function
15274         extracted from simplify_operand_subreg.
15275         (simplify_operand_subreg): Add reload for paradoxical subreg.
15277 2013-10-03  Rong Xu  <xur@google.com>
15279         * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
15280         the candidate of builtin_expect such that we should fix the
15281         size/time estimation.
15282         (estimate_function_body_sizes): Do the acutally size/time fix-up
15283         for builtin_expect.
15285 2013-10-03  Rong Xu  <xur@google.com>
15287         * predict.c (tree_predict_by_opcode): Get the probability
15288         for builtin_expect from param builtin_expect_probability.
15289         * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
15290         * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
15291         * doc/invoke.texi: Add documentation for builtin-expect-probability.
15293 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
15295         PR c++/19476
15296         * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
15297         * calls.c (alloca_call_p): Use get_callee_fndecl.
15298         * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
15299         * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
15300         Likewise.
15301         (vrp_visit_stmt): Remove duplicated code.
15303 2013-10-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
15305         * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
15306         ceildf2, btruncdf2, instead of vsx_* name.
15308         * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
15309         iterators to only do V2DF and V4SF here.  Move the DF code to
15310         rs6000.md where it is combined with SF mode.  Replace <VSv> with
15311         just 'v' since only vector operations are handled with these insns
15312         after moving the DF support to rs6000.md.
15313         (vsx_sub<mode>3): Likewise.
15314         (vsx_mul<mode>3): Likewise.
15315         (vsx_div<mode>3): Likewise.
15316         (vsx_fre<mode>2): Likewise.
15317         (vsx_neg<mode>2): Likewise.
15318         (vsx_abs<mode>2): Likewise.
15319         (vsx_nabs<mode>2): Likewise.
15320         (vsx_smax<mode>3): Likewise.
15321         (vsx_smin<mode>3): Likewise.
15322         (vsx_sqrt<mode>2): Likewise.
15323         (vsx_rsqrte<mode>2): Likewise.
15324         (vsx_fms<mode>4): Likewise.
15325         (vsx_nfma<mode>4): Likewise.
15326         (vsx_copysign<mode>3): Likewise.
15327         (vsx_btrunc<mode>2): Likewise.
15328         (vsx_floor<mode>2): Likewise.
15329         (vsx_ceil<mode>2): Likewise.
15330         (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
15331         (vsx_sminsf3): Likewise.
15332         (vsx_fmadf4): Likewise.
15333         (vsx_fmsdf4): Likewise.
15334         (vsx_nfmadf4): Likewise.
15335         (vsx_nfmsdf4): Likewise.
15336         (vsx_cmpdf_internal1): Likewise.
15338         * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
15339         simpler to select whether a target has SPE or traditional floating
15340         point support in iterators.
15341         (TARGET_DF_SPE): Likewise.
15342         (TARGET_SF_FPR): Likewise.
15343         (TARGET_DF_FPR): Likewise.
15344         (TARGET_SF_INSN): Macros to say whether floating point support
15345         exists for a given operation for expanders.
15346         (TARGET_DF_INSN): Likewise.
15348         * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
15349         combining of SF/DF mode operations, using both traditional and VSX
15350         registers.
15351         (Fvsx): Likewise.
15352         (Ff): Likewise.
15353         (Fv): Likewise.
15354         (Fs): Likewise.
15355         (Ffre): Likewise.
15356         (FFRE): Likewise.
15357         (abs<mode>2): Combine SF/DF modes using traditional floating point
15358         instructions.  Add support for using the upper DF registers with
15359         VSX support, and SF registers with power8-vector support.  Update
15360         expanders for operations supported by both the SPE and traditional
15361         floating point units.
15362         (abs<mode>2_fpr): Likewise.
15363         (nabs<mode>2): Likewise.
15364         (nabs<mode>2_fpr): Likewise.
15365         (neg<mode>2): Likewise.
15366         (neg<mode>2_fpr): Likewise.
15367         (add<mode>3): Likewise.
15368         (add<mode>3_fpr): Likewise.
15369         (sub<mode>3): Likewise.
15370         (sub<mode>3_fpr): Likewise.
15371         (mul<mode>3): Likewise.
15372         (mul<mode>3_fpr): Likewise.
15373         (div<mode>3): Likewise.
15374         (div<mode>3_fpr): Likewise.
15375         (sqrt<mode>3): Likewise.
15376         (sqrt<mode>3_fpr): Likewise.
15377         (fre<Fs>): Likewise.
15378         (rsqrt<mode>2): Likewise.
15379         (cmp<mode>_fpr): Likewise.
15380         (smax<mode>3): Likewise.
15381         (smin<mode>3): Likewise.
15382         (smax<mode>3_vsx): Likewise.
15383         (smin<mode>3_vsx): Likewise.
15384         (negsf2): Delete SF operations that are merged with DF.
15385         (abssf2): Likewise.
15386         (addsf3): Likewise.
15387         (subsf3): Likewise.
15388         (mulsf3): Likewise.
15389         (divsf3): Likewise.
15390         (fres): Likewise.
15391         (fmasf4_fpr): Likewise.
15392         (fmssf4_fpr): Likewise.
15393         (nfmasf4_fpr): Likewise.
15394         (nfmssf4_fpr): Likewise.
15395         (sqrtsf2): Likewise.
15396         (rsqrtsf_internal1): Likewise.
15397         (smaxsf3): Likewise.
15398         (sminsf3): Likewise.
15399         (cmpsf_internal1): Likewise.
15400         (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
15401         (negdf2): Delete DF operations that are merged with SF.
15402         (absdf2): Likewise.
15403         (nabsdf2): Likewise.
15404         (adddf3): Likewise.
15405         (subdf3): Likewise.
15406         (muldf3): Likewise.
15407         (divdf3): Likewise.
15408         (fred): Likewise.
15409         (rsqrtdf_internal1): Likewise.
15410         (fmadf4_fpr): Likewise.
15411         (fmsdf4_fpr): Likewise.
15412         (nfmadf4_fpr): Likewise.
15413         (nfmsdf4_fpr): Likewise.
15414         (sqrtdf2): Likewise.
15415         (smaxdf3): Likewise.
15416         (smindf3): Likewise.
15417         (cmpdf_internal1): Likewise.
15418         (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
15419         (btrunc<mode>2): Delete separate expander, and combine with the
15420         insn and add VSX instruction support.  Use TARGET_<MODE>_FPR.
15421         (btrunc<mode>2_fpr): Likewise.
15422         (ceil<mode>2): Likewise.
15423         (ceil<mode>2_fpr): Likewise.
15424         (floor<mode>2): Likewise.
15425         (floor<mode>2_fpr): Likewise.
15426         (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
15427         Add support for using the upper registers with VSX and
15428         power8-vector.  Move insns to be closer to the define_expands. On
15429         VSX systems, prefer the traditional form of FMA over the VSX
15430         version, since the traditional form allows the target not to
15431         overlap with the inputs.
15432         (fms<mode>4_fpr): Likewise.
15433         (nfma<mode>4_fpr): Likewise.
15434         (nfms<mode>4_fpr): Likewise.
15436 2013-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15437             Richard Earnshaw  <richard.earnshaw@arm.com>
15439         * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
15440         (struct mult_cost_table): Likewise.
15441         (struct mem_cost_table): Likewise.
15442         (struct fp_cost_table): Likewise.
15443         (struct vector_cost_table): Likewise.
15444         (cpu_cost_table): Likewise.
15445         * config/arm/arm.opt (mold-rts-costs): New option.
15446         (mnew-generic-costs): Likewise.
15447         * config/arm/arm.c (generic_extra_costs): New table.
15448         (cortexa15_extra_costs): Likewise.
15449         (arm_slowmul_tune): Use NULL as new costs.
15450         (arm_fastmul_tune): Likewise.
15451         (arm_strongarm_tune): Likewise.
15452         (arm_xscale_tune): Likewise.
15453         (arm_9e_tune): Likewise.
15454         (arm_v6t2_tune): Likewise.
15455         (arm_cortex_a5_tune): Likewise.
15456         (arm_cortex_a9_tune): Likewise.
15457         (arm_v6m_tune): Likewise.
15458         (arm_fa726te_tune): Likewise.
15459         (arm_cortex_a15_tune): Use cortex15_extra_costs.
15460         (arm_cortex_tune): Use generict_extra_costs.
15461         (shifter_op_p): New function.
15462         (arm_unspec_cost): Likewise.
15463         (LIBCALL_COST): Define.
15464         (arm_new_rtx_costs): New function.
15465         (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
15466         table is available. Use old costs otherwise unless mnew-generic-costs
15467         is specified.
15468         * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
15469         (cpu_cost_table): Declare.
15471 2013-10-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15473         PR target/58460
15474         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
15475         (*subs_mul_imm_<mode>)
15476         (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
15477         (*sub_<shift>_<mode>)
15478         (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
15479         Remove k constraint.
15481 2013-10-03  Ian Bolton  <ian.bolton@arm.com>
15483         * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
15484         code.
15485         * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
15487 2013-10-02  Teresa Johnson  <tejohnson@google.com>
15489         * predict.c (probably_never_executed): New function.
15490         (probably_never_executed_bb_p): Invoke probably_never_executed.
15491         (probably_never_executed_edge_p): Ditto.
15492         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
15493         Treat profile insanities conservatively.
15495 2013-10-02  John David Anglin  <danglin@gcc.gnu.org>
15497         * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
15499 2013-10-02  Vladimir Makarov  <vmakarov@redhat.com>
15501         * lra-constraints.c (process_alt_operand): Calculate scratch_p and
15502         use it.  Use smaller increase for scratch.  Don't increase reject
15503         for early clobber scratch.
15504         * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
15505         setting eliminated regs except setting fp from hfp.
15506         (lra_eliminate): Check lra_insn_recog_data on NULL.
15508 2013-10-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
15510         PR target/58587
15511         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
15512         setting -mvsx-timode by default until the underlying problem is fixed.
15513         (RS6000_CPU, power7 defaults): Likewise.
15515 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
15517         * config/x-linux (host-linux.o): Remove header dependencies.
15518         Use $(COMPILE) and $(POSTCOMPILE).
15519         * config/t-linux-android (linux-android.o): Ditto.
15521 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
15523         * Makefile.in (expmed.o-warn): Remove.
15525 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
15527         * graphite-scop-detection.c: Include tree-ssa-propagate,h.
15528         * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
15530 2013-10-02  Teresa Johnson  <tejohnson@google.com>
15532         * dojump.c (do_jump_1): Divide probability between
15533         both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
15535 2013-10-02  Tom Tromey  <tromey@redhat.com>
15537         * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
15539 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
15541         * tree-flow.h: Remove some prototypes.
15542         * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
15543         mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
15544         * tree-into-ssa.c (mark_virtual_operand_for_renaming,
15545         mark_virtual_phi_result_for_renaming): Relocate here.
15546         * tree-into-ssa.h: Add prototypes.
15547         * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
15548         single_pred_before_succ_order.
15549         (blocks_in_phiopt_order): Rename and move to cfganal.c.
15550         (nonfreeing_call_p) Move to gimple.c.
15551         * cfganal.c (single_pred_before_succ_order): Move and renamed from
15552         tree-ssa-phiopt.c.
15553         * basic-block.h (single_pred_before_succ_order): Add prototype.
15554         * gimple.c (nonfreeing_call_p): Relocate here.
15555         * gimple.h: Add prototype.
15556         * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
15557         * tree-ssa-dom.h: New file.  Relocate prototypes here.
15558         * tree-ssa.h: Include tree-ssa-dom.h.
15560 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
15562         * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
15563         Use $(COMPILE) and $(POSTCOMPILE).
15565         * config/alpha/x-alpha (driver-alpha.o): Ditto.
15567 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
15569         * tree-flow.h: Remove some prototypes.
15570         * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
15571         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
15572         * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
15573         propagate_tree_value*): Move from here to...
15574         * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
15575         propagate_tree_value*): Relocate here.
15576         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
15577         * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
15578         * gimple-fold.c: Remove gimple-fold.h from include list.
15579         * tree-vrp.c: Remove gimple-fold.h from include list.
15580         * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
15581         * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
15582         * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
15583         * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
15584         * sese.c: Add tree-ssa-propagate.h to include list.
15586 2013-10-02  Richard Biener  <rguenther@suse.de>
15588         * tree-loop-distribution.c: Include tree-vectorizer.h for
15589         find_loop_location.
15590         (enum partition_kind): Remove PKIND_REDUCTION.
15591         (struct partition_s): Remove has_writes member, add reduction_p member.
15592         (partition_alloc): Adjust.
15593         (partition_builtin_p): Likewise.
15594         (partition_has_writes): Remove.
15595         (partition_reduction_p): New function.
15596         (partition_merge_into): Likewise.
15597         (generate_code_for_partition): Commonize builtin partition
15598         handling tail.
15599         (rdg_cannot_recompute_vertex_p): Remove.
15600         (already_processed_vertex_p): Likewise.
15601         (rdg_flag_vertex): Do not set has_writes.
15602         (classify_partition): Adjust.
15603         (rdg_build_partitions): Do not set has_writes, treat all
15604         partitions as useful.
15605         (distribute_loop): Record number of library calls generated.  Adjust.
15606         (tree_loop_distribution): Report number of loops and library
15607         calls generated as opt-info.
15609 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
15611         * tree-flow.h: Include new .h files.  Move prototypes.
15612         * tree-cfgcleanup.h: New file.  Add prototypes from tree-flow.h.
15613         * tree-dfa.h: New File.  Add prototypes from tree-flow.h.
15614         (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
15615         * tree-pretty-print.h: Add prototypes from tree-flow.h.
15616         * tree-into-ssa.h: New File.  Add prototypes from tree-flow.h.
15617         ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
15618         * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
15619         * tree.h (get_ref_base_and_extent): Move prototype out.
15620         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
15621         tree-dfa.h.
15622         * gimple-low.h: New File.  Add prototypes from tree-flow.h.
15623         * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
15624         * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
15625         * tree-scalar-evolution.c: Include tree.h.
15626         * sese.c: Include tree.h.
15627         * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
15628         * dwarf2out.c: Include tree-dfa.h.
15629         * tree-chrec.c: Include tree.h.
15630         * tree-data-ref.c: Include tree.h.
15632 2013-10-02  Yufeng Zhang  <yufeng.zhang@arm.com>
15634         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
15635         Fix whitespace.
15637 2013-10-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15639         * config/t-sol2 (sol2-c.o): Remove header dependencies.
15640         Use $(COMPILE) and $(POSTCOMPILE).
15641         (sol2-cxx.o): Likewise.
15642         (sol2-stubs.o): Likewise.
15643         (sol2.o): Likewise.
15644         * config/x-solaris (host-solaris.o): Likewise.
15646         * config/sparc/t-sparc (sparc.o): Remove.
15647         (sparc-c.o): Remove header dependencies.
15648         Use $(COMPILE) and $(POSTCOMPILE).
15649         * config/sparc/x-sparc: Likewise.
15651 2013-10-02  Joern Rennecke  <joern.rennecke@embecosm.com>
15653         * config/arc/arc-opts.h: Add 2013 to Copyright years.
15654         * config/arc/arc700.md: Likewise.
15655         * config/arc/arc-modes.def: Likewise.
15656         * config/arc/arc-simd.h: Likewise.
15657         * config/arc/t-arc-uClibc: Likewise.
15658         * config/arc/t-arc-newlib: Likewise.
15660 2013-10-02  Renlin Li  <renlin.li@arm.com>
15662         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
15663         plus_constant.
15664         (aarch64_expand_epilogue): Likewise.
15666 2013-10-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15667             Yufeng Zhang  <yufeng.zhang@arm.com>
15669         * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
15670         declaration.
15671         (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
15672         'base_in' represent a conversion and legal_cast_p_1 holds; set
15673         'base_in' with the returned value from get_unwidened.
15675 2013-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15677         * config/arm/arm.c (arm_legitimize_reload_address): Explain why
15678         plus_constant is not used.
15680 2013-10-01  Wei Mi  <wmi@google.com>
15682         * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
15683         * config/i386/i386.md: Add define_peephole2 to
15684         break partial reg stall for cvtss2sd/cvtsd2ss.
15686 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
15688         * config/arc/arc.c (pass_arc_ifcvt::clone):
15689         Update for ctxt_ -> m_ctxt change.
15691 2013-10-01  Jeff Law  <law@redhat.com>
15693         * tree-ssa-threadupdate.c (struct redirection_data): Delete
15694         outgoing_edge and intermediate_edge fields.  Instead store the path.
15695         (redirection_data::hash): Hash on the last edge's destination index.
15696         (redirection_data::equal): Check the entire thread path.
15697         (lookup_redirectio_data): Corresponding changes.
15698         (create_edge_and_update_destination_phis): Likewise.
15699         (thread_single_edge): Likewise.
15701 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
15702             Diego Novillo <dnovillo@google.com>
15704         * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
15705         (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
15706         (vld32wh_insn, vld32wl_insn): Delete commented-out old
15707         versions of these patterns.
15709         * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
15710         (__builtin_arc_aligned): Likewise.
15712         * config/arc/arc.md: Expand adc_0 comment stating the intended
15713         purpose and why it isn't ready.
15714         Replace commented out call_value_via_label_mixed with a
15715         plain comment about bl_s.
15717         * config/arc/arc.c (stdio.h): Don't include directly.
15718         (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
15719         Remove if (1) condition.
15720         (arc_encode_section_info): Fix comment.
15722 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
15724         * config/arc/arc.c (arc_conditional_register_usage):
15725         Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
15726         Also set reg_alloc_order for DMA config regs.
15728 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
15729             Jeremy Bennett  <jeremy.bennett@embecosm.com>
15731         * doc/install.texi (--with-cpu): Mention ARC.
15732         (arc-*-elf32): New paragraph.
15733         (arc-linux-uclibc): Likewise.
15734         * doc/md.texi (Machine Constraints): Add ARC part.
15735         * doc/invoke.texi: (menu): Add ARC Options.
15736         (Machine Dependent Options) <ARC Options>: Add synopsis.
15737         (node ARC Options): Add.
15738         * doc/extend.texi (long_call / short_call attribute): Add ARC.
15739         (ARC Built-in Functions): New section defining
15740         generic ARC built-in functions.
15741         (ARC SIMD Built-in Functions): New section defining SIMD specific
15742         built-in functions.
15743         (Declaring Attributes of Functions): Extended
15744         description of short_call and long_call attributes for ARC and
15745         added index entries.
15747 2013-10-01  Saurabh Verma  <saurabh.verma@codito.com>
15748             Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
15749             Joern Rennecke  <joern.rennecke@embecosm.com>
15750             Muhammad Khurram Riaz  <khurram.riaz@arc.com>
15751             Brendan Kehoe  <brendan@zen.org>
15752             Michael Eager  <eager@eagercon.com>
15753             Simon Cook  <simon.cook@embecosm.com>
15754             Jeremy Bennett  <jeremy.bennett@embecosm.com>
15756         * config/arc, common/config/arc: New directories.
15758 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
15759             Brendan Kehoe  <brendan@zen.org>
15760             Simon Cook  <simon.cook@embecosm.com>
15762         * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
15764 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
15766         * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
15767         * tree-ssa-coalesce.h: New. Move prototype to here.
15768         * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
15769         * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
15770         (gimple_can_coalesce_p): Move to...
15771         * gimple.c (gimple_can_coalesce_p): Here.
15773 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
15775         * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
15776         (dump_decl_set): Move to gimple.c.
15777         * gimple.h: Don't include tree-ssa-operands.h.
15778         (dump_decl_set): Add prototype.
15779         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
15780         Move to gimple-ssa.h.
15781         (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
15782         gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
15783         gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
15784         gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
15785         * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
15786         than PHI_ARG_DEF.
15787         (dump_decl_set): Relocate here.
15788         * gimple-ssa.h: New file.
15789         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
15790         Relocate from gimple.h.
15791         * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
15792         * tree-ssa-operands.c (swap_ssa_operands): Rename from
15793         swap_tree_operands and remove non-ssa path.
15794         (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
15795         * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
15796         swap_ssa_operands.
15797         * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
15798         vect_is_simple_reduction_1): Use swap_ssa_operands.
15799         * tree-flow.h: Move various prototypes to tree-phinodes.h.
15800         (enum need_phi_state): Move to tree-into-ssa.c.
15801         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
15802         BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
15803         (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
15804         * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
15805         link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
15806         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
15807         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
15808         num_imm_uses): Move to ssa-iterators.h.
15809         (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
15810         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
15811         tree-phinodes.h.
15812         (op_iter_done, op_iter_next_def, op_iter_next_tree,
15813         clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
15814         op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
15815         single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
15816         num_ssa_operands, delink_stmt_imm_use, single_phi_def,
15817         op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
15818         end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
15819         first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
15820         end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
15821         (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
15822         gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
15823         gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
15824         phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
15825         (set_phi_nodes): Move to tree-phinodes.h.
15826         * tree-ssa-operands.h (enum ssa_op_iter_type,
15827         struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
15828         ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
15829         (dump_decl_set): Remove prototype.
15830         (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
15831         * tree-phinodes.h: New file.  Move some prototypes from tree-flow.h.
15832         (set_phi_nodes): Relocate from tree-flow-inline.h.
15833         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
15834         tree-flow-inline.h
15835         * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
15836         include list.  Temporarily add gimple.h to include list.
15837         * ssa-iterators.h: New file.
15838         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
15839         BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
15840         (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
15841         FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
15842         Relocate from tree-ssa-operands.h.
15843         (delink_imm_use, link_imm_use_to_list, link_imm_use,
15844         set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
15845         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
15846         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
15847         num_imm_uses, get_use_from_ptr, get_def_from_ptr,
15848         phi_arg_index_from_use, op_iter_done, op_iter_next_def,
15849         op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
15850         op_iter_init_use, op_iter_init_def, op_iter_init_tree,
15851         single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
15852         zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
15853         single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
15854         end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
15855         link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
15856         first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
15857         Relocate from tree-flow-inline.h.
15858         * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
15860 2013-10-01  Vidya Praveen  <vidyapraveen@arm.com>
15862         * aarch64-simd.md
15863         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
15864         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
15865         Insert '\t' to output template.
15866         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
15867         (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
15868         gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
15869         (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
15871 2013-10-01  Uros Bizjak  <ubizjak@gmail.com>
15873         * doc/install.texi (Host/target specific installation notes for GCC):
15874         Put @anchor before @heading.
15875         * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
15876         Use @email for email addresses.
15878 2013-10-01  Jeff Law  <law@redhat.com>
15880         * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
15881         a vec.  Only delete the path if we create one without successfully
15882         registering a jump thread.
15883         * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
15884         as a pointer.
15885         * tree-ssa-threadupdate.c (threaded_edges): Remove.  No longer used
15886         (paths): New vector of jump threading paths.
15887         (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
15888         (THREAD_PATH): New accessor macro for the entire thread path.
15889         (lookup_redirection_data): Get intermediate and final outgoing edge
15890         from the thread path.
15891         (create_edge_and_update_destination_phis): Copy the threading path.
15892         (ssa_fix_duplicate_block_edges): Get edges and block types from the
15893         jump threading path.
15894         (ssa_redirect_edges): Get edges and block types from the jump threading
15895         path.  Free the path vector.
15896         (thread_block): Get edges from the jump threading path.  Look at the
15897         entire path to see if we thread to a loop exit.  If we cancel a jump
15898         thread request, then free the path vector.
15899         (thread_single_edge): Get edges and block types from the jump threading
15900         path.  Free the path vector.
15901         (thread_through_loop_header): Get edges and block types from the jump
15902         threading path.  Free the path vector.
15903         (mark_threaded_blocks): Iterate over the vector of paths and store
15904         the path on the appropriate edge.  Get edges and block types from the
15905         jump threading path.
15906         (mark_threaded_blocks): Get edges and block types from the jump
15907         threading path.  Free the path vector.
15908         (thread_through_all_blocks): Use the vector of paths rather than
15909         a vector of 3-edge sets.
15910         (register_jump_thread): Accept pointer to a path vector rather
15911         than the path vector itself.  Store the path vector for later use.
15912         Simplify.
15914 2013-10-01  Jakub Jelinek  <jakub@redhat.com>
15915             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15917         PR target/58574
15918         * config/s390/s390.c (s390_split_branches): Modify check for table
15919         jump insns.
15920         (s390_chunkify_start): Rearrange table jump insn check in order to
15921         deal with compare and branch insns correctly.
15923 2013-10-01  Kugan Vivekanandarajah  <kuganv@linaro.org>
15925         PR target/58578
15926         Revert
15927         2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
15928         * config/arm/arm.md (arm_ashldi3_1bit):  define_insn into
15929         define_insn_and_split.
15930         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
15931         (shiftsi3_compare): New pattern.
15932         (rrx): New pattern.
15933         * config/arm/unspecs.md (UNSPEC_RRX): New.
15935 2013-10-01  Alan Modra  <amodra@gmail.com>
15937         * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
15938         casing inout operands.
15940 2013-10-01  Richard Biener  <rguenther@suse.de>
15942         PR tree-optimization/58553
15943         * tree-loop-distribution.c (struct partition_s): Add niter member.
15944         (classify_partition): Populate niter member for the partition
15945         and properly identify whether the relevant store happens before
15946         or after the loop exit.
15947         (generate_memset_builtin): Use niter member from the partition.
15948         (generate_memcpy_builtin): Likewise.
15950 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
15952         * vec.h (vec_prefix, vec): Prefix member names with "m_".
15953         * vec.c (vec_prefix::calculate_allocation): Update accordingly.
15955 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
15957         * basic-block.h (edge_list): Prefix member names with "m_".
15958         * context.h (context): Likewise.
15959         * domwalk.h (dom_walker): Likewise.
15960         * gengtype-state.c (s_expr_writer, state_writer): Likewise.
15961         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
15962         * hash-table.h (hash_table): Likewise.
15963         * machmode.h (bit_field_mode_iterator): Likewise.
15964         * pass_manager.h (pass_list): Likewise.
15965         * tree-into-ssa.c (mark_def_dom_walker): Likewise.
15966         * tree-pass.h (pass_data): Likewise.
15967         * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
15968         * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
15969         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
15970         * asan.c (pass_data_asan): Update accordingly.
15971         * cfganal.c (control_dependences::find_control_dependence): Likewise.
15972         (control_dependences::control_dependences): Likewise.
15973         (control_dependences::~control_dependences): Likewise.
15974         (control_dependences::~control_dependences): Likewise.
15975         (control_dependences::get_edges_dependent_on): Likewise.
15976         * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
15977         (pass_data_remove_cgraph_callee_edges::clone): Likewise.
15978         * context.c (gcc::context::context): Likewise.
15979         * cprop.c (pass_rtl_cprop::clone): Likewise.
15980         * domwalk.c (dom_walker::walk): Likewise.
15981         * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
15982         * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
15983         * mode-switching.c (pass_mode_switching::clone): Likewise.
15984         * passes.c (opt_pass::opt_pass): Likewise.
15985         (pass_manager::pass_manager): Likewise.
15986         * predict.c (pass_strip_predict_hints::clone): Likewise.
15987         * recog.c (pass_data pass_data_peephole2::clone): Likewise.
15988         (pass_split_all_insns::clone): Likewise.
15989         * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
15990         Likewise.
15991         (bit_field_mode_iterator::next_mode): Likewise.
15992         (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
15993         * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
15994         * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
15995         * tree-complex.c (pass_lower_complex::clone): Likewise.
15996         * tree-eh.c (pass_cleanup_eh::clone): Likewise.
15997         * tree-object-size.c (pass_object_sizes::clone): Likewise.
15998         * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
15999         * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
16000         (pass_fold_builtins::clone): Likewise.
16001         * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
16002         * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
16003         * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
16004         (pass_cd_dce::clone): Likewise.
16005         * tree-ssa-dom.c (pass_dominator::clone): Likewise.
16006         (pass_phi_only_cprop::clone): Likewise.
16007         * tree-ssa-dse.c (pass_dse::clone): Likewise.
16008         * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
16009         * tree-ssa-loop.c (pass_lim::clone): Likewise.
16010         * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
16011         * tree-ssa-pre.c (pass_fre::clone): Likewise.
16012         * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
16013         * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
16014         * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
16015         * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
16016         * tree-vrp.c (pass_vrp::clone): Likewise.
16017         * tsan.c (pass_tsan::clone): Likewise.
16019 2013-09-30  Jakub Jelinek  <jakub@redhat.com>
16021         PR middle-end/58564
16022         * fold-const.c (tree_unary_nonnegative_warnv_p): Use
16023         INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
16025         PR middle-end/58564
16026         * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
16027         optimization, punt if sign_bit_p looked through any zero extension.
16029 2013-09-30  Teresa Johnson  <tejohnson@google.com>
16031         * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
16032         Update redirected out edge count in joiner case.
16033         (ssa_redirect_edges): Common the joiner and non-joiner cases
16034         so that joiner case gets profile updates.
16036 2013-09-30  Richard Biener  <rguenther@suse.de>
16038         PR tree-optimization/58554
16039         * tree-loop-distribution.c (classify_partition): Require
16040         unconditionally executed stores for memcpy and memset recognition.
16041         (tree_loop_distribution): Calculate dominance info.
16043 2013-09-30  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
16045         * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
16046         (NO_PROFILE_COUNTERS): Likewise.
16047         (PROFILE_HOOK): Likewise.
16048         (FUNCTION_PROFILER): Likewise.
16049         * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
16051 2013-09-30  Iain Sandoe  <iain@codesourcery.com>
16053         * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
16054         calls and defines in TARGET_MACHO conditional.
16055         (load_macho_picbase_di): Likewise.
16056         (reload_macho_picbase): Likewise.
16057         (reload_macho_picbase_si): Likewise.
16058         (reload_macho_picbase_di): Likewise.
16059         (nonlocal_goto_receiver): Likewise.
16061 2013-09-30  Nick Clifton  <nickc@redhat.com>
16063         * config/msp430/msp430.c (msp430x_names): New array.  Lists MCUs
16064         that use the MSP430X ISA.
16065         (msp430_option_override): Scan -mmcu command line option for any
16066         MCU name that supports the MSP430X ISA.
16067         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
16068         -mmcu options which enable the MSP430X ISA.
16070 2013-09-30  Richard Biener  <rguenther@suse.de>
16072         PR middle-end/58532
16073         * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
16074         before looking for setjmp-like calls.
16076 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
16078         PR target/10901
16079         * config/darwin-protos.h (machopic_get_function_picbase): New.
16080         * config/darwin.c (machopic_get_function_picbase): New.
16081         * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
16082         label for a new func.  (load_macho_picbase_di): Likewise.
16083         (reload_macho_picbase): New expand.
16084         (reload_macho_picbase_si): New insn.
16085         (reload_macho_picbase_di): New insn.
16086         (nonlocal_goto_receiver): New define and split.
16087         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
16088         (unspecv enum): Add UNSPECV_NLGR.
16090 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
16092         * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
16093         that altivec registers are correctly sized on Darwin.
16095 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
16097         * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
16098         darwin-driver.o): Use COMPILE and POSTCOMPILE.
16099         * config/x-darwin (host-darwin.o): Likewise.
16100         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
16101         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
16102         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
16104 2013-09-29  Uros Bizjak  <ubizjak@gmail.com>
16106         * doc/invoke.texi: Fix usage of @tie{} command.
16108 2013-09-29  Eric Botcazou  <ebotcazou@adacore.com>
16110         * config/sparc/sync.md: Add peephole for consecutive memory barriers.
16112 2013-09-28  Jan Hubicka  <jh@suse.cz>
16114         * config/i386/x86-tune.def: Add documentation for each of the options;
16115         add whitespace.
16117 2013-09-28  Jan Hubicka  <jh@suse.cz>
16119         * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
16120         generic.
16121         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
16122         (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
16123         (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
16124         (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
16125         (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
16127 2013-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
16129         * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
16130         bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
16131         cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
16132         cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
16133         combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
16134         cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
16135         df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
16136         dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
16137         errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
16138         fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
16139         gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
16140         genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
16141         genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
16142         genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
16143         gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
16144         gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
16145         gimple.h, godump.c, graphite-clast-to-gimple.c,
16146         graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
16147         graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
16148         hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
16149         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
16150         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
16151         ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
16152         loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
16153         lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
16154         mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
16155         pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
16156         predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
16157         profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
16158         regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
16159         reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
16160         sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
16161         statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
16162         system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
16163         tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
16164         tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
16165         tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
16166         tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
16167         tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
16168         tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
16169         tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
16170         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
16171         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16172         tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
16173         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
16174         tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
16175         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
16176         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
16177         tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
16178         tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
16179         tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
16180         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
16181         tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
16182         tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
16183         varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
16184         whitespace before "(".
16186 2013-09-28  Sandra Loosemore  <sandra@codesourcery.com>
16188         * expr.h (extract_bit_field): Remove packedp parameter.
16189         * expmed.c (extract_fixed_bit_field): Remove packedp parameter
16190         from forward declaration.
16191         (store_split_bit_field): Remove packedp arg from calls to
16192         extract_fixed_bit_field.
16193         (extract_bit_field_1): Remove packedp parameter and packedp
16194         argument from recursive calls and calls to extract_fixed_bit_field.
16195         (extract_bit_field): Remove packedp parameter and corresponding
16196         arg to extract_bit_field_1.
16197         (extract_fixed_bit_field): Remove packedp parameter.  Remove code
16198         to issue warnings.
16199         (extract_split_bit_field): Remove packedp arg from call to
16200         extract_fixed_bit_field.
16201         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
16202         (copy_blkmode_from_reg): Likewise.
16203         (copy_blkmode_to_reg): Likewise.
16204         (read_complex_part): Likewise.
16205         (store_field): Likewise.
16206         (expand_expr_real_1): Likewise.
16207         * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
16208         to extract_bit_field.
16209         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
16210         call to extract_bit_field.
16211         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
16212         call to extract_bit_field.
16213         * doc/invoke.texi (Code Gen Options): Remove mention of warnings
16214         and special packedp behavior from -fstrict-volatile-bitfields
16215         documentation.
16217 2013-09-27  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
16219         * lra-eliminations.c (init_elim_table): Guard value_p.
16221 2013-09-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
16223         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
16224         DFmode, DImode, and SFmode in the upper VSX registers based on the
16225         -mupper-regs-{df,sf} flags.  Fix wu constraint to be ALTIVEC_REGS
16226         if -mpower8-vector.  Combine -mvsx-timode handling with the rest
16227         of the VSX register handling.
16229         * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
16230         (f32_sv): Likewise.
16231         (zero_extendsidi2_lfiwzx): Add support for loading into the
16232         Altivec registers with -mpower8-vector.  Use wu/wv constraints to
16233         only do VSX memory options on Altivec registers.
16234         (extendsidi2_lfiwax): Likewise.
16235         (extendsfdf2_fpr): Likewise.
16236         (mov<mode>_hardfloat, SF/SD modes): Likewise.
16237         (mov<mode>_hardfloat32, DF/DD modes): Likewise.
16238         (mov<mode>_hardfloat64, DF/DD modes): Likewise.
16239         (movdi_internal64): Likewise.
16241 2013-09-27  Xinliang David Li  <davidxl@google.com>
16243         * opts.c (finish_options): Adjust parameters
16244         according to vect cost model.
16245         (common_handle_option): Set dynamic vect cost
16246         model for FDO.
16247         targhooks.c (default_add_stmt_cost): Compute stmt cost
16248         unconditionally.
16249         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
16250         Use helper function.
16251         * tree-vectorizer.h (unlimited_cost_model): New function.
16252         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
16253         * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
16254         function.
16255         (vect_enhance_data_refs_alignment): Ditto.
16256         * flag-types.h: New enum.
16257         * common/config/i386/i386-common.c (ix86_option_init_struct):
16258         No need to initialize vect_cost_model flag.
16259         * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
16260         unconditionally.
16262 2013-09-27  Diego Novillo  <dnovillo@google.com>
16264         * gimple.h (enum ssa_mode): Remove.
16266 2013-09-27  Paulo Matos  <pmatos@broadcom.com>
16268         * cfgloop.h (number_of_loops): Fix typo in check for null.
16270 2013-09-27  Jakub Jelinek  <jakub@redhat.com>
16272         PR middle-end/58551
16273         * tree-cfg.c (move_sese_region_to_fn): Also move loops that
16274         are children of outermost saved_cfun's loop, and set it up to
16275         be moved to dest_cfun's outermost loop.  Fix up num_nodes adjustments
16276         if loop != loop0 and SESE region contains bbs that belong to loop0.
16278 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
16280         * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
16281         (binary_scale_code_p, get_base_term, get_index_term): New functions.
16282         (set_address_segment, set_address_base, set_address_index)
16283         (set_address_disp): Accept the argument unconditionally.
16284         (baseness): Remove must_be_base_p and must_be_index_p checks.
16285         (decompose_normal_address): Classify as much as possible in the
16286         main loop.
16288 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
16290         * cse.c (count_reg_usage): Handle INT_LIST.
16291         * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
16292         * reginfo.c (reg_scan_mark_refs): Likewise.
16293         * reload1.c (eliminate_regs_1): Likewise.
16295 2013-09-27  Iain Sandoe  <iain@codesourcery.com>
16297         PR middle-end/58547
16298         * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
16299         signed.
16301 2013-09-27  Richard Biener  <rguenther@suse.de>
16303         PR tree-optimization/58459
16304         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
16305         restriction not propagating into loops.
16307 2013-09-26  Florian Weimer  <fw@deneb.enyo.de>
16309         * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
16310         * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
16311         * doc/tree-ssa.texi (Walking use-def chains): Delete.
16313 2013-09-26  Richard Biener  <rguenther@suse.de>
16315         * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
16317 2013-09-26  Richard Biener  <rguenther@suse.de>
16319         * alias.h (component_uses_parent_alias_set): Rename to ...
16320         (component_uses_parent_alias_set_from): ... this.
16321         * alias.c (component_uses_parent_alias_set): Rename to ...
16322         (component_uses_parent_alias_set_from): ... this and return
16323         the desired parent.
16324         (reference_alias_ptr_type_1): Use the result from
16325         component_uses_parent_alias_set_from instead of stripping
16326         components one at a time.
16327         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
16329 2013-09-26  Andrew MacLeod  <amacleod@redhat.com>
16331         * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
16332         Move prototypes to...
16333         * tree-ssa-ter.h: New File.  Move prototypes here.
16334         * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
16335         * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
16336         * tree-outof-ssa.c (ssa_is_replaceable_p): New.  Refactor common bits
16337         from is_replaceable_p.
16338         * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
16339         (ter_is_replaceable_p): New.  Use new refactored ssa_is_replaceable_p.
16340         (process_replaceable): Use ter_is_replaceable_p.
16341         (find_replaceable_in_bb): Use ter_is_replaceable_p.
16342         * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c.  Use
16343         newly refactored ssa_is_replaceable_p.
16344         * cfgexpand.c: Include tree-outof-ssa.h.
16345         * ssaexpand.h: Delete.
16347 2013-09-26  Andrew MacLeod <amacleod@redhat.com>
16349         * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
16350         (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
16351         tree-ssa.c
16352         (create_gimple_tmp): Delete.
16353         (get_expr_type, build_assign, build_type_cast): Move to...
16354         * gimple-builder.c: New File.
16355         (get_expr_type): Relocate from gimple.c.
16356         (build_assign, build_type_cast): Change to only create ssanames.
16357         * gimple.h: Move prototypes to...
16358         * gimple-builder.h: New File. Here.
16359         * tree-ssa.h: And here.
16360         * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
16361         count_uses_and_derefs): Relocate from gimple.c.
16362         (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
16363         * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
16364         * tree-ssa-math-opts (execute_cse_reciprocals): Use
16365         gimple_replace_ssa_lhs.
16366         * asan.c: Include gimple-builder.h.
16367         * Makefile.in: Add gimple-builder.o.
16369 2013-09-26  Richard Biener  <rguenther@suse.de>
16371         * tree-ssa-live.c (var_map_base_init): Handle SSA names with
16372         DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
16373         (loe_visit_block): Use gcc_checking_assert.
16374         * tree-ssa-coalesce.c (create_outofssa_var_map): Use
16375         gimple_assign_ssa_name_copy_p.
16376         (gimple_can_coalesce_p): Adjust according to the var_map_base_init
16377         change.
16379 2013-09-26  David Edelsohn  <dje.gcc@gmail.com>
16381         * config/rs6000/t-rs6000 (rs6000.o): Remove.
16382         (rs6000-c.o): Use COMPILE and POSTCOMPILE.
16384 2013-09-26  Richard Biener  <rguenther@suse.de>
16386         PR tree-optimization/58539
16387         * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
16388         the fact that debug statements are not taking part in loop-closed
16389         SSA construction.
16391 2013-09-26  Nick Clifton  <nickc@redhat.com>
16393         * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
16394         time warning message.
16395         (msp430_print_operand_raw): Delete unused letter parameter.
16396         (TARGET_PRINT_OPERAND_ADDRESS): Define.
16397         (msp430_print_operand_address): New function.
16398         (msp430_print_operand): Move address printing code from here to
16399         new function.
16400         * config/msp430/msp430.md (movsipsi2): Add comment in generated
16401         assembler.
16402         (zero_extendpsisi2): Likewise.
16403         (extendpsisi2): New pattern.
16404         (andneghi3): New pattern.
16406 2013-09-26  Yvan Roux  <yvan.roux@linaro.org>
16408         * config/aarch64/aarch64.opt (mlra): New option.
16409         * config/aarch64/aarch64.c (aarch64_lra_p): New function.
16410         (TARGET_LRA_P): Define.
16412 2013-09-26  Eric Botcazou  <ebotcazou@adacore.com>
16414         * expr.c (expand_assignment): Remove obsolete comment.
16416 2013-09-25  Jeff Law  <law@redhat.com>
16418         * tree-flow.h (thread_through_all_blocks): Prototype moved into
16419         tree-ssa-threadupdate.h.
16420         (register_jump_thread): Similarly.
16421         * tree-ssa-threadupdate.h: New header file.
16422         * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
16423         * tree-vrp.c: Likewise.
16424         * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
16425         (thread_around_empty_blocks): Change type of path vector argument to
16426         an edge,type pair from just an edge.  Initialize both elements when
16427         appending to a jump threading path.  Tweak references to elements
16428         appropriately.
16429         (thread_across_edge): Similarly.  Release memory for the elements
16430         as needed.
16431         * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
16432         (dump_jump_thread_path): New function broken out from
16433         register_jump_thread.
16434         (register_jump_thread): Use dump_jump_thread_path.  Change type of
16435         path vector entries.  Search the path for NULL edges and dump
16436         the path if one is found.  Tweak the conversion of path to 3-edge
16437         form to use the block copy type information embedded in the path.
16439 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
16441         * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
16443 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
16444             Vladimir Makarov  <vmakarov@redhat.com>
16446         * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
16447         from the least significant bit.
16448         (strip_address_mutations): Add bitfield operations handling.
16449         (must_be_index_p): Add shifting and rotate operations handling.
16450         (set_address_base): Use must_be_base_p predicate.
16451         (set_address_index): Use must_be_index_p predicate.
16453 2013-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16454             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16455             Sergey Lega  <sergey.s.lega@intel.com>
16456             Anna Tikhonova  <anna.tikhonova@intel.com>
16457             Ilya Tocar  <ilya.tocar@intel.com>
16458             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16459             Ilya Verbin  <ilya.verbin@intel.com>
16460             Kirill Yukhin  <kirill.yukhin@intel.com>
16461             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16463         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
16464         Use new names.
16465         (ix86_expand_vector_move_misalign): Support new unaligned load and
16466         stores and use new names.
16467         (CODE_FOR_sse2_storedqu): Rename to ...
16468         (CODE_FOR_sse2_storedquv16qi): ... this.
16469         (CODE_FOR_sse2_loaddqu): Rename to ...
16470         (CODE_FOR_sse2_loaddquv16qi): ... this.
16471         (CODE_FOR_avx_loaddqu256): Rename to ...
16472         (CODE_FOR_avx_loaddquv32qi): ... this.
16473         (CODE_FOR_avx_storedqu256): Rename to ...
16474         (CODE_FOR_avx_storedquv32qi): ... this.
16475         * config/i386/i386.md (fpint_logic): New.
16476         * config/i386/sse.md (VMOVE): Extend for AVX512.
16477         (VF): Ditto.
16478         (VF_128_256): New.
16479         (VF_512): Ditto.
16480         (VI_UNALIGNED_LOADSTORE): Ditto.
16481         (sse2_avx_avx512f): Ditto.
16482         (sse2_avx2): Extend for AVX512.
16483         (sse4_1_avx2): Ditto.
16484         (avx2_avx512f): New.
16485         (sse): Extend for AVX512.
16486         (sse2): Ditto.
16487         (sse4_1): Ditto.
16488         (avxsizesuffix): Ditto.
16489         (sseintvecmode): Ditto.
16490         (ssePSmode): Ditto.
16491         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
16492         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
16493         (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
16494         (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
16495         (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
16496         (<sse2_avx_avx512f>_storedqu<mode): ... this.
16497         (<sse>_movnt<mode>): Replace constraint "x" with "v".
16498         (STORENT_MODE): Extend for AVX512.
16499         (*absneg<mode>2): Replace constraint "x" with "v".
16500         (*mul<mode>3): Ditto.
16501         (*ieee_smin<mode>3): Ditto.
16502         (*ieee_smax<mode>3): Ditto.
16503         (avx_cmp<mode>3): Replace VF with VF_128_256.
16504         (*<sse>_maskcmp<mode>3_comm): Ditto.
16505         (<sse>_maskcmp<mode>3): Ditto.
16506         (<sse>_andnot<mode>3): Extend for AVX512.
16507         (<code><mode>3, anylogic): Replace VF with VF_128_256.
16508         (<code><mode>3, fpint_logic): New.
16509         (*<code><mode>3): Extend for AVX512.
16510         (avx512flogicsuff): New.
16511         (avx512f_<logic><mode>): Ditto.
16512         (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
16513         VF_128_256.
16514         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
16515         (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
16516         (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
16517         (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
16518         (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
16519         (xop_vpermil2<mode>3): Ditto.
16520         (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
16521         (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
16522         (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
16523         (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
16525 2013-09-25  Tom Tromey  <tromey@redhat.com>
16527         * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
16528         (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
16529         (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
16530         (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
16531         (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
16532         (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
16533         (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
16534         (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
16535         (GRAPHITE_HTAB_H): Remove.
16537 2013-09-25  Tom Tromey  <tromey@redhat.com>
16539         * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
16541 2013-09-25  Tom Tromey  <tromey@redhat.com>
16543         * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
16545 2013-09-25  Tom Tromey  <tromey@redhat.com>
16547         * config/i386/t-i386 (i386.o): Remove.
16548         (i386-c.o): Use COMPILE and POSTCOMPILE.
16550 2013-09-25  Tom Tromey  <tromey@redhat.com>
16552         * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
16554 2013-09-25  Tom Tromey  <tromey@redhat.com>
16556         * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
16557         (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
16558         (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
16559         (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
16560         (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
16561         (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
16562         (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
16563         (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
16564         (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
16565         (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
16566         (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
16567         (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
16568         (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
16569         (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
16570         (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
16571         (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
16572         (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
16573         (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
16574         (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
16575         (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
16576         (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
16577         (tree-ssa-pre.o, tree-ssa-sccvn.o)
16578         (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
16579         (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
16580         (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
16581         (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
16582         (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
16583         (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
16584         (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
16585         (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
16586         (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
16587         (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
16588         (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
16589         (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
16590         (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
16591         (graphite-clast-to-gimple.o, graphite-dependences.o)
16592         (graphite-interchange.o, graphite-poly.o)
16593         (graphite-scop-detection.o, graphite-sese-to-poly.o)
16594         (graphite-optimize-isl.o, tree-vect-loop.o)
16595         (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
16596         (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
16597         (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
16598         (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
16599         (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
16600         (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
16601         (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
16602         (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
16603         (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
16604         (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
16605         (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
16606         (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
16607         (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
16608         (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
16609         (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
16610         (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
16611         (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
16612         (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
16613         (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
16614         (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
16615         (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
16616         (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
16617         (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
16618         (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
16619         (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
16620         (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
16621         (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
16622         (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
16623         (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
16624         (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
16625         (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
16626         (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
16627         (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
16628         (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
16629         (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
16630         (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
16631         (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
16632         (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
16633         (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
16634         (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
16635         (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
16636         (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
16637         (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
16638         (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
16639         (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
16640         (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
16641         (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
16642         (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
16643         (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
16644         (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
16645         (gcov-dump.o): Remove.
16646         (default-c.o): Use COMPILE and POSTCOMPILE.
16647         (CFLAGS-gcc.o): New variable.
16648         ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
16650 2013-09-25  Tom Tromey  <tromey@redhat.com>
16652         * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
16653         (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
16654         (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
16655         (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
16656         (c-family/c-pragma.o, c-family/c-pretty-print.o)
16657         (c-family/c-semantics.o, c-family/c-ada-spec.o)
16658         (c-family/array-notation-common.o, c-family/stub-objc.o)
16659         (c-family/c-ubsan.o): Remove.
16661 2013-09-25  Tom Tromey  <tromey@redhat.com>
16663         * Makefile.in (C_TREE_H): Reference c/c-tree.h.
16665 2013-09-25  Tom Tromey  <tromey@redhat.com>
16667         * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
16668         to add -DENABLE_SHARED_LIBGCC.
16669         (gcc.o): Don't use subshell.
16671 2013-09-25  Tom Tromey  <tromey@redhat.com>
16673         * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
16674         * configure.ac: Don't invoke AM_PROG_CC_C_O.
16675         (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
16676         * configure, config.in: Rebuild.
16678 2013-09-25  Tom Tromey  <tromey@redhat.com>
16680         * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
16681         (COMPILE, POSTCOMPILE): New variables.
16682         (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
16683         (DEPFILES): New variable.
16684         Include ".Po" files.
16685         * configure.ac: Add checks for dependency checking.
16686         * configure, aclocal.m4: Regenerate.
16688 2013-09-25  Tom Tromey  <tromey@redhat.com>
16690         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
16691         ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
16693 2013-09-25  Tom Tromey  <tromey@redhat.com>
16695         * Makefile.in (generated_files): Add options.h,
16696         target-hooks-def.h, insn-opinit.h,
16697         common/common-target-hooks-def.h, pass-instances.def,
16698         c-family/c-target-hooks-def.h.
16700 2013-09-25  Jeff Law  <law@redhat.com>
16702         * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
16703         than foo[foo.length () - 1] to access last member in a vec.
16704         * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
16706 2013-09-25  Richard Biener  <rguenther@suse.de>
16708         PR middle-end/58521
16709         * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
16711 2013-09-25  Jan Hubicka  <jh@suse.cz>
16713         * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
16714         test.
16716 2013-09-25  Marek Polacek  <polacek@redhat.com>
16718         PR sanitizer/58420
16719         * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
16720         when determining the type name.
16722 2013-09-24  Oleg Endo  <olegendo@gcc.gnu.org>
16724         * config/sh/sh.md: Fix formatting.
16726 2013-09-24  Xinliang David Li  <davidxl@google.com>
16728         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
16729         max peel iterations parameter.
16730         * param.def: New parameter.
16731         * doc/invoke.texi: Document New parameter.
16733 2013-09-24  Christophe Lyon  <christophe.lyon@linaro.org>
16735         * gimple-pretty-print.c: Various whitespace tweaks.
16736         * tree-core.h: Likewise.
16737         * tree-pretty-print.c: Likewise.
16738         * tree-ssa-alias.c: Likewise.
16739         * tree-ssa-copy.c: Likewise.
16740         * tree-ssanames.c: Likewise.
16741         * tree-ssanames.h: Likewise.
16742         * tree-vrp.c: Likewise.
16744 2013-09-24  Alan Modra  <amodra@gmail.com>
16746         PR middle-end/57134
16747         PR middle-end/57586
16748         * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
16749         for output operands that disallow regs.  Don't use EXPAND_WRITE on
16750         inout operands.
16752 2013-09-24  Richard Biener  <rguenther@suse.de>
16754         PR middle-end/58513
16755         * tree.c (reference_alias_ptr_type): Move ...
16756         * alias.c (reference_alias_ptr_type): ... here and implement
16757         in terms of the new reference_alias_ptr_type_1.
16758         (ref_all_alias_ptr_type_p): New helper.
16759         (get_deref_alias_set_1): Drop flag_strict_aliasing here,
16760         use ref_all_alias_ptr_type_p.
16761         (get_deref_alias_set): Add flag_strict_aliasing check here.
16762         (reference_alias_ptr_type_1): New function, split out from ...
16763         (get_alias_set): ... here.
16764         (alias_ptr_types_compatible_p): New function.
16765         * alias.h (reference_alias_ptr_type): Declare.
16766         (alias_ptr_types_compatible_p): Likewise.
16767         * tree.h (reference_alias_ptr_type): Remove.
16768         * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
16769         to compare MEM_REF alias types.
16771 2013-09-24  Richard Biener  <rguenther@suse.de>
16773         * tree-vrp.c (vrp_finalize): Check for SSA name presence.
16775 2013-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
16777         * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
16778         reload helper function arrays into a single array reg_addr.
16779         (reload_fpr_gpr): Likewise.
16780         (reload_gpr_vsx): Likewise.
16781         (reload_vsx_gpr): Likewise.
16782         (struct rs6000_reg_addr): Likewise.
16783         (reg_addr): Likewise.
16784         (rs6000_debug_reg_global): Change rs6000_vector_reload,
16785         reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
16786         (rs6000_init_hard_regno_mode_ok): Likewise.
16787         (rs6000_secondary_reload_direct_move): Likewise.
16788         (rs6000_secondary_reload): Likewise.
16790         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
16791         constraints: wu, ww, and wy.  Repurpose wv constraint added during
16792         power8 changes.  Put wg constraint in alphabetical order.
16794         * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
16795         for future work to add ISA 2.07 VSX single precision support.
16796         (-mvsx-scalar-double): Change default from -1 to 1, update
16797         documentation comment.
16798         (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
16799         (-mupper-regs-df): New debug switch to control whether DF values
16800         can go in the traditional Altivec registers.
16801         (-mupper-regs-sf): New debug switch to control whether SF values
16802         can go in the traditional Altivec registers.
16804         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
16805         and wy constraints.
16806         (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
16807         loop variables.  Rename -mvsx-scalar-memory to -mupper-regs-df.
16808         Add new constraints, wu/ww/wy.  Repurpose wv constraint.
16809         (rs6000_debug_legitimate_address_p): Print if we are running
16810         before, during, or after reload.
16811         (rs6000_secondary_reload): Add a comment.
16812         (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
16814         * config/rs6000/constraints.md (wa constraint): Sort w<x>
16815         constraints.  Update documentation string.
16816         (wd constraint): Likewise.
16817         (wf constraint): Likewise.
16818         (wg constraint): Likewise.
16819         (wn constraint): Likewise.
16820         (ws constraint): Likewise.
16821         (wt constraint): Likewise.
16822         (wx constraint): Likewise.
16823         (wz constraint): Likewise.
16824         (wu constraint): New constraint for ISA 2.07 SFmode scalar
16825         instructions.
16826         (ww constraint): Likewise.
16827         (wy constraint): Likewise.
16828         (wv constraint): Repurpose ISA 2.07 constraint that we did not use
16829         in the previous submissions.
16830         * doc/md.texi (PowerPC and IBM RS6000): Likewise.
16832 2013-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
16834         * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
16835         (REG_BR_PROB): Say that the probability is stored in an int_list.
16836         * reg-notes.def: Update commentary to mention INT_LIST.
16837         * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
16838         (INT_LIST): New rtx.
16839         * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
16840         * rtlanal.c (int_reg_note_p): New function.
16841         (alloc_reg_note): Assert that the note does not have an int argument.
16842         (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
16843         * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
16844         * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
16845         rather than an INSN_LIST.  Handle INT_LIST.
16846         * ifcvt.c (cond_exec_process_insns): Take the probability as an int
16847         rather than an rtx.  Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
16848         (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
16849         Manipulate them as ints rather than rtxes.
16850         * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
16851         * regmove.c (copy_src_to_dest): Likewise.
16852         * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
16854         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
16855         into the cases that need it.
16856         * config/arm/arm.c (arm_unwind_emit): Likewise.
16858         * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
16859         * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
16860         * loop-doloop.c (add_test, doloop_modify): Likewise.
16861         * loop-unswitch.c (compare_and_jump_seq): Likewise.
16862         * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
16863         * predict.c (combine_predictions_for_insn): Likewise.
16864         * print-rtl.c (print_rtx): Handle INT_LIST.
16865         * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
16866         * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
16867         * config/arm/arm.c (emit_unlikely_jump): Likewise.
16868         * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
16869         (ix86_split_fp_branch, predict_jump): Likewise.
16870         * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
16871         * config/sh/sh.c (expand_cbranchsi4): Likewise.
16872         * config/spu/spu.c (ea_load_store_inline): Likewise.
16874         * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
16875         value of a REG_BR_PROB note.
16876         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
16877         (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
16878         * emit-rtl.c (try_split): Likewise.
16879         * predict.c (br_prob_note_reliable_p): Likewise.
16880         (invert_br_probabilities, combine_predictions_for_insn): Likewise.
16881         * reorg.c (mostly_true_jump): Likewise.
16882         * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
16883         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
16884         * config/i386/i386.c (ix86_print_operand): Likewise.
16885         * config/ia64/ia64.c (ia64_print_operand): Likewise.
16886         * config/mmix/mmix.c (mmix_print_operand): Likewise.
16887         * config/rs6000/rs6000.c (output_cbranch): Likewise.
16888         * config/s390/s390.c (s390_expand_tbegin): Likewise.
16889         * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
16890         * config/sparc/sparc.c (output_cbranch): Likewise.
16891         * config/spu/spu.c (get_branch_target): Likewise.
16892         * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
16893         * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
16895 2013-09-23  Jan Hubicka  <jh@suse.cz>
16897         * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
16898         for ipa-devirt.
16899         * ipa-utils.h (possible_polymorphic_call_target_p): New function.
16900         * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
16901         of external calls
16902         * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
16903         (gimple_fold_call): Dump inconsistent devirtualizations; add
16904         sanity check for type based devirtualizations.
16905         * ipa-prop.c: Include ipa-utils.h
16906         (ipa_intraprocedural_devirtualization): Add sanity check.
16907         (try_make_edge_direct_virtual_call): Likewise.
16909 2013-09-23  Eric Botcazou  <ebotcazou@adacore.com>
16911         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
16912         assignment statements.
16914 2013-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
16916         * gimple-pretty-print.c (dump_ssaname_info): New function.
16917         (dump_gimple_phi): Call it.
16918         (pp_gimple_stmt_1): Likewise.
16919         * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
16920         (range_info_def): Declare.
16921         * tree-pretty-print.c (pp_double_int): New function.
16922         (dump_generic_node): Call it.
16923         * tree-pretty-print.h (pp_double_int): Declare.
16924         * tree-ssa-alias.c (dump_alias_info): Check pointer type.
16925         * tree-ssanames.h (range_info_def): New structure.
16926         (value_range_type): Move definition here.
16927         (set_range_info, value_range_type, duplicate_ssa_name_range_info):
16928         Declare.
16929         * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
16930         initialization.
16931         (set_range_info): New function.
16932         (get_range_info): Likewise.
16933         (duplicate_ssa_name_range_info): Likewise.
16934         (duplicate_ssa_name_fn): Check pointer type and call
16935         duplicate_ssa_name_range_info.
16936         * tree-ssa-copy.c (fini_copy_prop): Likewise.
16937         * tree-vrp.c (value_range_type): Remove definition, now in
16938         tree-ssanames.h.
16939         (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
16940         * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
16941         (SSA_NAME_RANGE_INFO): New macro.
16943 2013-09-23  Richard Biener  <rguenther@suse.de>
16945         PR tree-optimization/58464
16946         * tree-ssa-pre.c (phi_trans_lookup): Remove.
16947         (phi_trans_add): Change to add conditionally on being not present.
16948         (phi_translate_1): Remove recursion detection here.
16949         (phi_translate): Pre-seed the cache with NULL to catch
16950         recursion here in a more generic way.
16951         (bitmap_find_leader): Adjust comment.
16952         (get_representative_for): Dump value-numbers.
16953         (create_expression_by_pieces): Likewise.
16954         (insert_into_preds_of_block): Likewise.
16956 2013-09-23  Christian Bruel  <christian.bruel@st.com>
16958         PR target/58475
16959         * config/sh/sh.md (movsf_ie): Allow fpul_operand.
16960         * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
16962 2013-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
16964         Revert r202780:
16965         2013-09-20  Renlin Li  <renlin.li@arm.com>
16967         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
16968         plus_constant.
16969         (aarch64_expand_epilogue): Likewise.
16970         (aarch64_legitimize_reload_address): Likewise.
16972 2013-09-22  Eric Botcazou  <ebotcazou@adacore.com>
16974         * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
16975         NULL_TREE before pushing them onto the vector.  Likewise for labels.
16977 2013-09-21  Eric Botcazou  <ebotcazou@adacore.com>
16979         * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
16980         comparison operators when -fno-trapping-math is in effect.
16981         * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
16982         comparison operators in TFmode and assert that unsupported operators
16983         cannot reach here.
16984         (ia64_print_operand): Likewise.
16986 2013-09-21  Jan Hubicka  <jh@suse.cz>
16988         * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
16989         (sse_typeless_stores): Enable for core
16990         (sse_load0_by_pxor): Likewise.
16991         (four_jump_limit): Disable for core.
16992         (pad_returns): Likewise.
16993         (avoid_vector_decode): Likewise.
16994         (fuse_cmp_and_branch): Enable for cores.
16995         * i386.c (x86_accumulate_outgoing_args): Disable for cores.
16997 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
16999         PR middle-end/56791
17000         * config/pa/pa.c (pa_option_override): Disable auto increment and
17001         decrement instructions until reload is completed.
17003         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
17004         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
17005         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
17007 2013-09-20  DJ Delorie  <dj@redhat.com>
17008             Nick Clifton  <nickc@redhat.com>
17010         * config/rl78/rl78.c: Various whitespace and comment tweaks.
17011         (need_to_save): Save bank 0 on interrupts.
17012         (characterize_address): Strip far address wrappers.
17013         (rl78_as_legitimate_address): Likewise.
17014         (transcode_memory_rtx): Likewise.
17015         (rl78_peep_movhi_p): Disable this peephole after devirt.
17016         (rl78_propogate_register_origins): Forget all origins when a
17017         CLOBBER is seen.
17018         * config/rl78/rl78-virt.md: Various whitespace tweaks.
17019         * config/rl78/rl78-real.md: Various whitespace tweaks.  Additional
17020         peephole2's.
17021         * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
17022         * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
17023         * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
17024         relocating.
17025         * config/rl78/constraints.md: Various whitespace and paren tweaks.
17027 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
17029         * config/pa/pa.md: In "scc" insn patterns, change output template to
17030         handle const0_rtx in reg_or_0_operand operands.
17032 2013-09-20  Martin Husemann  <martin@NetBSD.org>
17034         PR target/56875
17035         * config/vax/vax.c (vax_output_int_move): Use D format specifier.
17036         * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
17038 2013-09-20  Richard Biener  <rguenther@suse.de>
17040         PR middle-end/58484
17041         * tree-scalar-evolution.c (struct scev_info_str): Shrink by
17042         remembering SSA name version and block index.
17043         (new_scev_info_str): Adjust.
17044         (hash_scev_info): Likewise.  Also hash the block index.
17045         (eq_scev_info): Adjust.
17046         (find_var_scev_info): Likewise.
17047         (struct instantiate_cache_entry): Remove.
17048         (struct instantiate_cache_type): Use a htab to map name, block
17049         to chrec.
17050         (instantiate_cache_type::~instantiate_cache_type): Adjust.
17051         (get_instantiated_value_entry): Likewise.
17052         (hash_idx_scev_info, eq_idx_scev_info): New functions.
17053         (instantiate_scev_name): Adjust.
17055 2013-09-20  Jeff Law  <law@redhat.com>
17057         * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
17059 2013-09-20  Yufeng Zhang  <yufeng.zhang@arm.com>
17061         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
17062         Call aarch64_simd_expand_args to update op[argc].
17064 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
17066         * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
17067         plugin argument.
17069 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
17071         * gengtype.c (file_rules): Added rule for *.cc files.
17072         (get_output_file_with_visibility): Give fatal message when no
17073         rules found.
17075 2013-09-20  Renlin Li  <renlin.li@arm.com>
17077         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
17078         (aarch64_expand_epilogue): Likewise.
17079         (aarch64_legitimize_reload_address): Likewise.
17081 2013-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17083         PR middle-end/57748
17084         * expr.c (expand_assignment): Remove misalignp code path.
17086 2013-09-20  Marek Polacek  <polacek@redhat.com>
17088         PR sanitizer/58413
17089         * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
17090         TYPE_PRECISION.  Add asserts.
17092 2013-09-20  Richard Biener  <rguenther@suse.de>
17094         PR tree-optimization/58453
17095         * tree-loop-distribution.c (distribute_loop): Apply the cost
17096         model for -ftree-loop-distribute-patterns, too.
17098 2013-09-20  Richard Biener  <rguenther@suse.de>
17100         PR middle-end/58473
17101         * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
17102         make type comparison less strict.
17104 2013-09-20  Alan Modra  <amodra@gmail.com>
17106         * configure: Regenerate.
17107         * aclocal.m4: Regenerate.
17109 2013-09-20  Marek Polacek  <polacek@redhat.com>
17111         PR other/58467
17112         * doc/extend.texi: Document that attribute used is meant to be used
17113         on variables with static storage duration.
17115 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
17117         PR tree-optimization/58472
17118         * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
17119         simd_lane_access set inv_p = false.
17120         * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
17121         the simduid magic VAR_DECL.
17123 2013-09-19  Jan Hubicka  <jh@suse.cz>
17125         * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
17127 2013-09-17  Jeff Law  <law@redhat.com>
17129         * tree-ssa-dom.c (record_temporary_equivalences): New function
17130         split out of dom_opt_dom_walker::after_dom_children.
17131         (dom_opt_dom_walker::thread_across_edge): Move common code
17132         in here from dom_opt_dom_walker::after_dom_children.
17133         (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
17135 2013-09-19  Jan Hubicka  <jh@suse.cz>
17137         * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
17138         (TARGET_GENERIC): Use PROCESOR_GENERIC
17139         (enum processor_type): Unify generic32 and 64.
17140         * i386.md (cpu): Likewise.
17141         * x86-tune.def (use_leave): Enable for generic32.
17142         (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
17143         * athlon.md: Change generic64 to generic in all occurences.
17144         * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
17145         (ix86_target_macros_internal): Likewise.
17146         * driver-i386.c (host_detect_local_cpu): Likewise.
17147         * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
17148         to ..
17149         (generic_memcpy, generic_memset, generic_cost): This one.
17150         (generic32_memcpy, generic32_memset, generic32_cost): Remove.
17151         (m_GENERIC32, m_GENERIC64): Remove.
17152         (m_GENERIC): Turn into one flag.
17153         (processor_target): Unify generic tunnings.
17154         (ix86_option_override_internal): Replace generic32/64 by generic.
17155         (ix86_issue_rate): Likewise.
17156         (ix86_adjust_cost): Likewise.
17158 2013-09-19  Jan Hubicka  <jh@suse.cz>
17160         * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
17161         of speculative flag.
17163 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
17165         * omp-low.c (expand_omp_sections): Always pass len - 1 to
17166         GOMP_sections_start, even if !exit_reachable.
17168 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
17170         * lra-constraints.c (need_for_all_save_p): Use macro
17171         HARD_REGNO_CALL_PART_CLOBBERED.
17172         * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
17173         set up pseudo conflict hard regs.
17175 2013-09-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
17177         PR target/58452
17178         * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
17179         operands.
17181 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
17183         PR rtl-optimization/58438
17184         * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
17185         * lra-constraints.c (undo_optional_reloads): Keep optional reloads
17186         from previous subpasses.
17188 2013-09-18  Richard Earnshaw  <rearnsha@arm.com>
17190         * arm.c (arm_get_frame_offsets): Validate architecture supports
17191         LDRD/STRD before accepting the tuning preference.
17192         (arm_expand_prologue): Likewise.
17193         (arm_expand_epilogue): Likewise.
17195 2013-09-18  Richard Biener  <rguenther@suse.de>
17197         PR tree-optimization/58417
17198         * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
17199         have chrecs with symbols defined in the loop as operands.
17200         (chrec_fold_multiply): Likewise.
17201         * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
17202         parameters before folding binary operations.
17203         (struct instantiate_cache_entry_hasher): Remove.
17204         (struct instantiate_cache_type): Use a pointer-map.
17205         (instantiate_cache_type::instantiate_cache_type): New function.
17206         (instantiate_cache_type::get): Likewise.
17207         (instantiate_cache_type::set): Likewise.
17208         (instantiate_cache_type::~instantiate_cache_type): Adjust.
17209         (get_instantiated_value_entry): Likewise.
17210         (global_cache): New global.
17211         (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
17212         instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
17213         instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
17214         (instantiate_scev_name): Adjust.
17215         (instantiate_scev): Construct global instead of local cache.
17216         (resolve_mixers): Likewise.
17218 2013-09-18  Daniel Morris  <danielm@ecoscentric.com>
17219             Paolo Carlini  <paolo.carlini@oracle.com>
17221         PR c++/58458
17222         * doc/implement-cxx.texi: Fix references to the C++ standards.
17224 2013-09-18  Jakub Jelinek  <jakub@redhat.com>
17226         * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
17227         * tree-vect-data-refs.c (vect_analyze_data_refs): For
17228         simd_lane_access drs, update also DR_ALIGNED_TO.
17230 2013-09-18  Marek Polacek  <polacek@redhat.com>
17232         PR sanitizer/58411
17233         * doc/extend.texi: Document no_sanitize_undefined attribute.
17234         * builtins.c (fold_builtin_0): Don't sanitize function if it has the
17235         no_sanitize_undefined attribute.
17237 2013-09-18  Nick Clifton  <nickc@redhat.com>
17239         * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
17240         (ASM_DECLARE_FUNCTION_NAME): Define.
17242 2013-09-17  Trevor Saunders  <tsaunders@mozilla.com>
17244         * compare-elim.c (find_comparison_dom_walker): New class
17245         (find_comparisons_in_bb): Rename to
17246         find_comparison_dom_walker::before_dom_children
17247         (find_comparisons): Adjust
17248         * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
17249         adjust.
17250         (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
17251         * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
17252         (init_walk_dominator_tree): Remove declaration.
17253         (fini_walk_dominator_tree): Remove declaration.
17254         * fwprop.c (single_def_use_dom_walker): New class
17255         (single_def_use_enter_block): Convert to
17256         single_def_use_dom_walker::before_dom_children.
17257         (single_def_use_leave_block): Convert to
17258         single_def_use_dom_walker::after_dom_children.
17259         (build_single_def_use_links): Adjust.
17260         * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
17261         class.
17262         (find_candidates_in_block): Convert to
17263         find_candidates_dom_walker::before_dom_children.
17264         (execute_strength_reduction): Adjust.
17265         * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
17266         (sese_dom_walker): New class.
17267         (sese_dom_walker::sese_dom_walker): New constructor.
17268         (sese_dom_walker::~sese_dom_walker): New destructor.
17269         (build_sese_conditions_before): Convert to
17270         sese_dom_walker::before_dom_children.
17271         (build_sese_conditions_after): Convert to
17272         sese_dom_walker::after_dom_children.
17273         (build_poly_scop): Adjust
17274         * tree-into-ssa.c (rewrite_dom_walker): New class
17275         (rewrite_enter_block): Convert to
17276         rewrite_dom_walker::before_dom_children.
17277         (rewrite_leave_block): Convert to
17278         rewrite_dom_walker::after_dom_children.
17279         (rewrite_update_dom_walker): New class.
17280         (rewrite_update_enter_block): Convert to
17281         rewrite_update_dom_walker::before_dom_children.
17282         (rewrite_update_leave_block): Convert to
17283         rewrite_update_dom_walker::after_dom_children.
17284         (rewrite_blocks, rewrite_into_ssa): Adjust.
17285         (mark_def_dom_walker): New class.
17286         (mark_def_dom_walker::mark_def_dom_walker): New constructor.
17287         (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
17288         (mark_def_sites_blocks): Convert to
17289         mark_def_dom_walker::before_dom_children.
17290         (mark_def_site_blocks): Remove.
17291         * tree-ssa-dom.c (dom_opt_dom_walker): New class.
17292         (tree_ssa_dominator_optimize): Adjust.
17293         (dom_thread_across_edge): Convert to method
17294         dom_opt_dom_walker::thread_across_edge.
17295         (dom_opt_enter_block): Convert to member function
17296         dom_opt_dom_walker::before_dom_children.
17297         (dom_opt_leave_block): Convert to member function
17298         dom_opt_dom_walker::after_dom_children.
17299         * tree-ssa-dse.c (dse_dom_walker): New class.
17300         (dse_enter_block): Convert to member function
17301         dse_dom_walker::before_dom_children.
17302         (tree_ssa_dse): Adjust.
17303         * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
17304         (determine_invariantness_stmt): Convert to method
17305         invariantness_dom_walker::before_dom_children.
17306         (determine_invariantness): Remove
17307         (move_computations_dom_walker): New class.
17308         (move_computations_stmt): Convert to method
17309         move_computations_dom_walker::before_dom_children.
17310         (move_computations, tree_ssa_lim): Adjust.
17311         * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
17312         (nt_init_block): Convert to method
17313         notrappping_dom_walker::before_dom_children.
17314         (nt_fini_block): Convert to method
17315         method nontrapping_dom_walker::after_dom_children.
17316         (get_non_trapping): Adjust.
17317         * tree-ssa-pre.c (eliminate_dom_walker): New class.
17318         (eliminate_bb): Convert to method
17319         eliminate_dom_walker::before_dom_children.
17320         (eliminate_leave_block): Convert to method
17321         eliminate_dom_walker::after_dom_children.
17322         (eliminate): Adjust.
17323         * tree-ssa-strlen.c (strlen_dom_walker): New class.
17324         (strlen_enter_block): Convert to method
17325         strlen_dom_walker::before_dom_children.
17326         (strlen_leave_block): Convert to method
17327         method strlen_dom_walker::after_dom_children.
17328         (tree_ssa_strlen): Adjust.
17329         * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
17330         (tree_ssa_uncprop): Adjust.
17331         (uncprop_leave_block): Convert to method
17332         uncprop_dom_walker::after_dom_children.
17333         (uncprop_leave_block): Convert to method
17334         uncprop_dom_walker::before_dom_children.
17336 2013-09-18  Bin Cheng  <bin.cheng@arm.com>
17338         * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
17339         branch in same basic block.  Check both src and dest of the move insn.
17341 2013-09-17  Nick Clifton  <nickc@redhat.com>
17343         * config/rl78/rl78-real.md (bf): New pattern.
17344         (bt): New pattern.
17345         * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
17346         (rl78_print_operand): Do not put a # before a %B.
17347         * config/rl78/rl78.opt: Tweak doc strings.
17349 2013-09-17  DJ Delorie  <dj@redhat.com>
17351         * config/rl78/constraints.md (Wcv): Allow up to $r31.
17352         * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
17353         (rl78_option_override): Likewise, if -mallregs.
17354         (is_virtual_register): Likewise.
17355         * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
17356         (REGNO_OK_FOR_BASE_P): Likewise.
17357         * config/rl78/rl78.opt (-mallregs): New.
17359 2013-09-17  Nick Clifton  <nickc@redhat.com>
17361         * config/rl78/rl78.c (need_to_save): Change return type to bool.
17362         For interrupt functions: save all call clobbered registers if the
17363         interrupt handler is not a leaf function.
17364         (rl78_expand_prologue): Always recompute the frame information.
17365         For interrupt functions: only select bank 0 if one of the bank 0
17366         registers is going to be psuhed.
17368 2013-09-17  DJ Delorie  <dj@redhat.com>
17370         * config/rl78/constraints.md: For each W* constraint, rename to C*
17371         and create a W* constraint that checks for an optional ES: prefix
17372         pattern also.
17373         * config/rl78/rl78.md (UNS_ES_ADDR): New.
17374         (es_addr): New.  Used to wrap far addresses.
17375         * config/rl78/rl78-protos.h (rl78_es_addr): New.
17376         (rl78_es_base): New.
17377         * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
17378         wrapped far addresses.
17379         (rl78_print_operand_1): Unwrap far addresses before processing.
17380         (rl78_lo16): Wrap far addresses in unspecs.
17381         (rl78_es_addr): New.
17382         (rl78_es_base): New.
17383         (insn_ok_now): Check for not-yet-wrapped far addresses.
17384         (transcode_memory_rtx): Properly re-wrap far addresses.
17386 2013-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17388         * config/sparc/t-rtems: Add leon3 multilibs.
17390 2013-09-17  Cong Hou  <congh@google.com>
17392         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
17393         when checking the dot production pattern. The type of rhs operand
17394         of multiply is now checked correctly.
17396 2013-09-17  Jeff Law  <law@redhat.com>
17398         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
17399         edge implied equivalences into successor phis.
17400         * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
17401         here from tree-ssa-threadedge.c.
17402         (mark_threaded_blocks): When threading through a joiner, if both
17403         successors of the joiner's clone reach the same block, verify the
17404         PHI arguments are equal.  If not, cancel the jump threading request.
17405         * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
17406         tree-ssa-threadupdate.c
17407         (thread_across_edge): Don't check PHI argument equality when
17408         threading through joiner block here.
17410 2013-09-17  Andrew MacLeod <amacleod@redhat.com>
17412         * tree-flow.h (ssa_undefined_value_p): Remove prototype.
17413         * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
17414         (warn_uninit, warn_uninitialized_vars,
17415         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
17416         Move to tree-ssa-uninit.c.
17417         * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
17418         (has_undefined_value_p): New.  Pass dependant parts of
17419         ssa_undefined_value_p.
17420         (uninit_undefined_value_p): Use has_undefined_value_p.
17421         (warn_uninit, warn_uninitialized_vars,
17422         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
17423         Move from tree-ssa.c.
17424         * tree-ssa.h: Adjust prototypes.
17426 2013-09-17  Jan Hubicka  <jh@suse.cz>
17428         PR middle-end/58332
17429         * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
17430         * ipa-inline.c (can_inline_edge_p): Do not downgrade
17431         FUNCTION_NOT_OPTIMIZED.
17432         * ipa-inline-analysis.c (compute_inline_parameters): Function
17433         not optimized is not inlinable unless it is alwaysinline.
17434         (inline_analyze_function): Force calls in not optimized
17435         function not inlinable.
17437 2013-09-17  Jan Hubicka  <jh@suse.cz>
17439         PR middle-end/58329
17440         * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
17441         to return NULL.
17442         * ipa.c (function_and_variable_visibility): Likewise.
17443         * ipa-profile.c (ipa_profile): Likewise.
17445 2013-09-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17447         PR ipa/58398
17448         * cgraph.c (cgraph_function_body_availability): Check for ifunc
17449         attribute, and don't inline the resolver in this case.
17451 2013-09-17  Teresa Johnson  <tejohnson@google.com>
17453         * coverage.c (get_coverage_counts): Add missing newline.
17455 2013-09-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17457         PR tree-optimization/58088
17458         * fold-const.c (mask_with_trailing_zeros): New function.
17459         (fold_binary_loc): Make sure we don't recurse infinitely
17460         when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
17461         Use mask_with_trailing_zeros where appropriate.
17463 2013-09-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
17465         * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
17466         of 'prev' var to get better distance estimation.
17468 2013-09-17  Eric Botcazou  <ebotcazou@adacore.com>
17470         * tree-inline.h (struct copy_body_data): Add transform_parameter.
17471         * tree-inline.c (is_parameter_of): New predicate.
17472         (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
17473         a parameter has been remapped.
17474         (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
17475         (optimize_inline_calls): Initialize transform_parameter.
17476         (copy_gimple_seq_and_replace_locals): Likewise.
17477         (tree_function_versioning): Likewise.
17478         (maybe_inline_call_in_expr): Likewise.
17480 2013-09-17  Nick Clifton  <nickc@redhat.com>
17482         * config/msp430/msp430-protos.h: Add prototypes for new functions.
17483         * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
17484         interrupt handlers.
17485         (is_attr_func): New function.
17486         (msp430_is_interrupt_func): New function.
17487         (is_naked_func): New function.
17488         (is_reentrant_func): New function.
17489         (is_critical_func): New function.
17490         (msp430_start_function): Add annotations for function attributes.
17491         (msp430_attr): New function.
17492         (msp430_attribute_table): New.
17493         (msp430_function_section): New function.
17494         (TARGET_ASM_FUNCTION_SECTION): Define.
17495         (msp430_builtin): New enum.
17496         (msp430_init_builtins): New function.
17497         (msp430_builtin_devl): New function.
17498         (msp430_expand_builtin): New function.
17499         (TARGET_INIT_BUILTINS): Define.
17500         (TARGET_EXPAND_BUILTINS): Define.
17501         (TARGET_BUILTIN_DECL): Define.
17502         (msp430_expand_prologue): Add support for naked, interrupt,
17503         critical and reentrant functions.
17504         (msp430_expand_epilogue): Likewise.
17505         (msp430_print_operand): Handle 'O' character.
17506         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
17507         NO_TRAMPOLINES.
17508         * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
17509         UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
17510         (pushm): Use a 'n' rather than an 'i' constraint.
17511         (msp_return): Add generation of the interrupt return instruction.
17512         (disable_interrupts): New pattern.
17513         (enable_interrupts): New pattern.
17514         (push_intr_state): New pattern.
17515         (pop_intr_state): New pattern.
17516         (bic_SR): New pattern.
17517         (bis_SR): New pattern.
17518         * doc/extend.texi: Document MSP430 function attributes and builtin
17519         functions.
17521 2013-09-17  Richard Biener  <rguenther@suse.de>
17523         PR tree-optimization/58432
17524         * tree-loop-distribution.c (tree_loop_distribution): Also
17525         scan PHIs for outside loop uses and seed a partition from them.
17527 2013-09-17  Bin Cheng  <bin.cheng@arm.com>
17529         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
17530         (restructure_reference): Call backtrace_base_for_ref.
17532 2013-09-17  Alan Modra  <amodra@gmail.com>
17534         PR target/57589
17535         * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
17536         patch.
17538 2013-09-16  DJ Delorie  <dj@redhat.com>
17540         * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
17541         vregs location for RL78/G10.
17542         (rl78_expand_prologue): Avoid SEL on G10.
17543         (rl78_expand_epilogue): Likewise.
17544         (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
17545         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
17546         __RL78_G10__ when appropriate.
17547         (ASM_SPEC): Pass -mg10 along to the assembler.
17548         * config/rl78/rl78.md (sel_rb): Disable for G10.
17549         * config/rl78/rl78.opt: Add -mg10 option.
17550         * config/rl78/t-rl78: Add -mg10 multilib.
17552 2013-09-16  Xinliang David Li  <davidxl@google.com>
17554         * tree-if-conv.c (main_tree_if_conversion): Check new flag.
17555         * omp-low.c (omp_max_vf): Ditto.
17556         (expand_omp_simd): Ditto.
17557         * tree-vectorizer.c (vectorize_loops): Ditto.
17558         (gate_vect_slp): Ditto.
17559         (gate_increase_alignment): Ditto.
17560         * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
17561         * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
17562         (gate_tree_vectorize): Name change.
17563         (tree_vectorize): Ditto.
17564         (pass_vectorize::gate): Call new function.
17565         (pass_vectorize::execute): Ditto.
17566         * opts.c: O3 default setting change.
17567         (finish_options): Check new flag.
17568         * doc/invoke.texi: Document new flags.
17569         * common.opt: New flags.
17571 2013-09-16  Andreas Schwab  <schwab@linux-m68k.org>
17573         * doc/tm.texi.in (Cond Exec Macros): Remove node.
17574         (Condition Code): Don't reference it.
17575         * doc/tm.texi: Regenerate.
17577 2013-09-16  Vladimir Makarov  <vmakarov@redhat.com>
17579         PR middle-end/58418
17580         * lra-constraints.c (undo_optional_reloads): Consider all optional
17581         reload even if it did not get a hard reg.
17583 2013-09-16  Teresa Johnson  <tejohnson@google.com>
17585         * dumpfile.c (dump_loc): Remove newline emission.
17586         * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
17587         emission to dump_printf_loc calls where missing.
17588         (vect_mark_for_runtime_alias_test): Ditto.
17589         (vect_analyze_data_ref_dependence): Ditto.
17590         (vect_analyze_data_ref_dependences): Ditto.
17591         (vect_slp_analyze_data_ref_dependence): Ditto.
17592         (vect_slp_analyze_data_ref_dependences): Ditto.
17593         (vect_compute_data_ref_alignment): Ditto.
17594         (vect_update_misalignment_for_peel): Ditto.
17595         (vect_verify_datarefs_alignment): Ditto.
17596         (vector_alignment_reachable_p): Ditto.
17597         (vect_get_data_access_cost): Ditto.
17598         (vect_enhance_data_refs_alignment): Ditto.
17599         (vect_find_same_alignment_drs): Ditto.
17600         (vect_analyze_data_refs_alignment): Ditto.
17601         (vect_analyze_group_access): Ditto.
17602         (vect_analyze_data_ref_access): Ditto.
17603         (vect_analyze_data_ref_accesses): Ditto.
17604         (vect_prune_runtime_alias_test_list): Ditto.
17605         (vect_analyze_data_refs): Ditto.
17606         (vect_create_addr_base_for_vector_ref): Ditto.
17607         (vect_create_data_ref_ptr): Ditto.
17608         (vect_grouped_store_supported): Ditto.
17609         (vect_grouped_load_supported): Ditto.
17610         * value-prof.c (check_counter): Ditto.
17611         (check_ic_target): Ditto.
17612         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
17613         (vect_recog_widen_mult_pattern): Ditto.
17614         (vect_recog_widen_sum_pattern): Ditto.
17615         (vect_recog_over_widening_pattern): Ditto.
17616         (vect_recog_widen_shift_pattern): Ditto.
17617         (vect_recog_rotate_pattern): Ditto.
17618         (vect_recog_vector_vector_shift_pattern): Ditto.
17619         (vect_recog_divmod_pattern): Ditto.
17620         (vect_recog_mixed_size_cond_pattern): Ditto.
17621         (vect_recog_bool_pattern): Ditto.
17622         (vect_pattern_recog_1): Ditto.
17623         (vect_pattern_recog): Ditto.
17624         * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
17625         (vect_is_simple_iv_evolution): Ditto.
17626         (vect_analyze_scalar_cycles_1): Ditto.
17627         (vect_get_loop_niters): Ditto.
17628         (vect_analyze_loop_1): Ditto.
17629         (vect_analyze_loop_form): Ditto.
17630         (vect_analyze_loop_operations): Ditto.
17631         (vect_analyze_loop_2): Ditto.
17632         (vect_analyze_loop): Ditto.
17633         (report_vect_op): Ditto.
17634         (vect_is_slp_reduction): Ditto.
17635         (vect_is_simple_reduction_1): Ditto.
17636         (vect_get_known_peeling_cost): Ditto.
17637         (vect_estimate_min_profitable_iters): Ditto.
17638         (vect_model_reduction_cost): Ditto.
17639         (vect_model_induction_cost): Ditto.
17640         (get_initial_def_for_induction): Ditto.
17641         (vect_create_epilog_for_reduction): Ditto.
17642         (vectorizable_reduction): Ditto.
17643         (vectorizable_induction): Ditto.
17644         (vectorizable_live_operation): Ditto.
17645         (vect_loop_kill_debug_uses): Ditto.
17646         (vect_transform_loop): Ditto.
17647         * tree-vect-stmts.c (vect_mark_relevant): Ditto.
17648         (vect_stmt_relevant_p): Ditto.
17649         (process_use): Ditto.
17650         (vect_mark_stmts_to_be_vectorized): Ditto.
17651         (vect_model_simple_cost): Ditto.
17652         (vect_model_promotion_demotion_cost): Ditto.
17653         (vect_model_store_cost): Ditto.
17654         (vect_get_store_cost): Ditto.
17655         (vect_model_load_cost): Ditto.
17656         (vect_get_load_cost): Ditto.
17657         (vect_init_vector_1): Ditto.
17658         (vect_get_vec_def_for_operand): Ditto.
17659         (vect_finish_stmt_generation): Ditto.
17660         (vectorizable_call): Ditto.
17661         (vectorizable_conversion): Ditto.
17662         (vectorizable_assignment): Ditto.
17663         (vectorizable_shift): Ditto.
17664         (vectorizable_operation): Ditto.
17665         (vectorizable_store): Ditto.
17666         (vectorizable_load): Ditto.
17667         (vectorizable_condition): Ditto.
17668         (vect_analyze_stmt): Ditto.
17669         (vect_transform_stmt): Ditto.
17670         (vect_is_simple_use): Ditto.
17671         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
17672         (vect_can_advance_ivs_p): Ditto.
17673         (vect_update_ivs_after_vectorizer): Ditto.
17674         (vect_do_peeling_for_loop_bound): Ditto.
17675         (vect_gen_niters_for_prolog_loop): Ditto.
17676         (vect_update_inits_of_drs): Ditto.
17677         (vect_create_cond_for_alias_checks): Ditto.
17678         * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
17679         (vect_build_slp_tree_1): Ditto.
17680         (vect_supported_load_permutation_p): Ditto.
17681         (vect_analyze_slp_instance): Ditto.
17682         (vect_analyze_slp): Ditto.
17683         (vect_make_slp_decision): Ditto.
17684         (vect_detect_hybrid_slp): Ditto.
17685         (vect_bb_vectorization_profitable_p): Ditto.
17686         (vect_slp_analyze_bb_1): Ditto.
17687         (vect_update_slp_costs_according_to_vf): Ditto.
17688         (vect_get_mask_element): Ditto.
17689         (vect_transform_slp_perm_load): Ditto.
17690         (vect_schedule_slp_instance): Ditto.
17691         (vect_schedule_slp): Ditto.
17692         (vect_slp_transform_bb): Ditto.
17693         * profile.c (read_profile_edge_counts): Ditto.
17694         (compute_branch_probabilities): Ditto.
17695         * coverage.c (get_coverage_counts): Ditto.
17697 2013-09-16  Diego Novillo  <dnovillo@google.com>
17699         * tree-core.h: Add missing comment lines from refactoring of tree.h.
17701 2013-09-16  Jan Hubicka  <jh@suse.cz>
17703         * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
17704         abstract functions; for static functions check the presence of body.
17706 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
17708         * config/aarch64/aarch64-simd-builtins.def (fma): New.
17709         * config/aarch64/aarch64-simd.md
17710         (aarch64_mla_elt<mode>): New.
17711         (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
17712         (aarch64_mls_elt<mode>): Likewise.
17713         (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
17714         (aarch64_fma4_elt<mode>): Likewise.
17715         (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
17716         (aarch64_fma4_elt_to_128v2df): Likewise.
17717         (aarch64_fma4_elt_to_64df): Likewise.
17718         (fnma<mode>4): Likewise.
17719         (aarch64_fnma4_elt<mode>): Likewise.
17720         (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
17721         (aarch64_fnma4_elt_to_128v2df): Likewise.
17722         (aarch64_fnma4_elt_to_64df): Likewise.
17723         * config/aarch64/iterators.md (VDQSF): New.
17724         * config/aarch64/arm_neon.h
17725         (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
17726         (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
17728 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
17730         * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
17731         (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
17732         (aarch64_mul3_elt_to_128df): Likewise.
17733         (aarch64_mul3_elt_to_64v2df): Likewise.
17734         * config/aarch64/iterators.md (VEL): Also handle DFmode.
17735         (VMUL): New.
17736         (VMUL_CHANGE_NLANES) Likewise.
17737         (h_con): Likewise.
17738         (f): Likewise.
17739         * config/aarch64/arm_neon.h
17740         (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
17742 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
17744         * config/aarch64/arm_neon.h
17745         (vcvtx_high_f32_f64): Fix parameters.
17747 2013-09-16  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
17748             Uros Bizjak  <ubizjak@gmail.com>
17750         * config/alpha.c: Include tree-ssanames.h.
17752 2013-09-16  Richard Biener  <rguenther@suse.de>
17754         * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
17755         (dot_rdg_1): Handle control_dd.
17756         (create_edge_for_control_dependence): New function.
17757         (create_rdg_edges): Add control dependences if asked for.
17758         (build_rdg): Likewise.
17759         (generate_loops_for_partition): If there are not necessary
17760         control stmts remove all their dependencies.
17761         (collect_condition_stmts, rdg_flag_loop_exits): Remove.
17762         (distribute_loop): Pass on control dependences.
17763         (tree_loop_distribution): Compute control dependences and remove
17764         restriction on number of loop nodes.
17766 2013-09-16  Jakub Jelinek  <jakub@redhat.com>
17768         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
17769         for internal calls.
17771 2013-09-16  Richard Sandiford  <rdsandiford@googlemail.com>
17773         * cse.c (try_const_anchors): Punt on CC modes.
17775 2013-09-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
17777         * config/vax/constraints.md (T): Add missing CONSTANT_P check.
17779 2013-09-14  John David Anglin  <danglin@gcc.gnu.org>
17781         PR target/58382
17782         * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
17783         calls to word_mode.
17785 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
17787         PR target/48094
17788         * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
17789         seen.
17790         (darwin_objc1_section): Likewise.
17791         (darwin_file_end): Emit Image Info section when required.
17793 2013-09-14  Jan Hubicka  <jh@suse.cz>
17795         * tree-into-ssa.c (gate_into_ssa): New.
17796         (pass_data_build_ssa): Use it.
17797         * cgraph.h (expand_thunk): Update prototype.
17798         * cgraphunit.c (analyze_function): Expand thunks early.
17799         (expand_thunk): Fix DECL_CONTEXT of reust_decl;
17800         build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
17801         set lowered flag; do not add new function.
17802         (assemble_thunks_and_aliases): Update.
17803         * tree-ssa.c (gate_init_datastructures): New gate.
17804         (pass_data_init_datastructures): Use it.
17806 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
17808         PR target/58269
17809         * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
17810         xmm register set described in the psABI.
17812 2013-09-13  Evgeny Gavrin <e.gavrin@samsung.com>
17814         * dwarf2out.c (should_emit_struct_debug): Add check
17815         for type_decl variable is not NULL.
17817 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
17819         * config.gcc: Use new winnt-c.c target hooks
17820         * config/t-winnt: New file
17821         * config/winnt-c.c: New file
17822         * doc/tm.texi.in: Document new hook
17823         * doc/tm.texi: Regenerated
17825 2013-09-13  Jan Hubicka  <jh@suse.cz>
17827         PR middle-end/58094
17828         * ipa-inline.c (check_callers): New function.
17829         (check_caller_edge): Remove.
17830         (want_inline_function_to_all_callers_p): Also permit alises that are
17831         called dirrectly.
17832         (inline_to_all_callers): Terminate the walk when devirtualization
17833         introduce new calls.
17835 2013-09-13  Jan Hubicka  <jh@suse.cz>
17837         * ipa-inline-analysis.c (struct growth_data): Add node.
17838         (do_estimate_growth_1): Fix detection of recursion.
17840 2013-09-13  Jakub Jelinek  <jakub@redhat.com>
17842         PR tree-optimization/58392
17843         * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
17844         to avoid shadowing of outer loop variable.  If
17845         saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
17846         replace_by_duplicate_decl simduid of loops that have it set and
17847         set dest_cfun->has_simduid_loops and/or
17848         dest_cfun->has_force_vect_loops.
17849         * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
17850         instead of maybe_lookup_decl.
17851         * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
17852         Use id->blocks_to_copy instead of blocks_to_copy.  Adjust recursive
17853         call.  Copy over force_vect and copy and remap simduid.  Set
17854         cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
17855         (copy_cfg_body): Remove blocks_to_copy argument.  Use
17856         id->blocks_to_copy instead of blocks_to_copy.  Adjust copy_loops
17857         caller.  Don't set cfun->has_simduid_loops and/or
17858         cfun->has_force_vect_loops here.
17859         (copy_body): Remove blocks_to_copy argument.  Adjust copy_cfg_body
17860         caller.
17861         (expand_call_inline, tree_function_versioning): Adjust copy_body
17862         callers.
17864 2013-09-13  Martin Jambor  <mjambor@suse.cz>
17866         PR bootstrap/58388
17867         * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
17868         the assert if the edge was a speculative one.
17870 2013-09-13  Richard Biener  <rguenther@suse.de>
17872         * tree-data-ref.h (known_dependences_p): Move here ...
17873         * tree-loop-distribution.c (known_dependences_p): ... from here.
17874         (dump_rdg_component, debug_rdg_component): Remove.
17875         (dump_rdg): Adjust.
17876         (generate_loops_for_partition): Use gimple_uid instead of
17877         relying on matching stmt visit order.
17878         (rdg_build_partitions): Take starting stmt vector.
17879         (ldist_gen): Merge into ...
17880         (distribute_loop): ... this function.  Do not compute starting
17881         vertices vector.
17882         * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
17884 2013-09-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17886         * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
17887         Set type attribute correctly. Set predicable_short_it attribute.
17888         (cmpsi_shiftsi): Remove %? from output template.
17890 2013-09-13  Richard Biener  <rguenther@suse.de>
17892         * tree-loop-distribution.c (struct rdg_component,
17893         rdg_defs_used_in_other_loops_p, free_rdg_components,
17894         rdg_build_components): Remove.
17895         (stmts_from_loop): Do not record virtual PHIs.
17896         (generate_loops_for_partition): Skip virtual PHIs.
17897         (build_rdg_partition_for_component): Rename to ...
17898         (build_rdg_partition_for_vertex): ... this and adjust.
17899         (rdg_build_partitions): Take a vector of starting vertices
17900         instead of components.  Remove unnecessary leftover handling.
17901         (ldist_gen): Do not build components or record other stores.
17902         (distribute_loop): Do not distribute loops containing stmts
17903         with side-effects.
17905 2013-09-13  Christian Bruel  <christian.bruel@st.com>
17907         PR target/58314
17908         * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
17910 2013-09-13  Kai Tietz  <ktietz@redhat.com>
17912         * config.gcc: Separate cases for mingw and cygwin targets,
17913         and add 64-bit cygwin target case.
17915         * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
17916         dll-export inline-functions.
17917         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
17919 2013-09-13  Jeff Law  <law@redhat.com>
17921         PR middle-end/58387
17922         Revert:
17923         2013-09-06  Jeff Law  <law@redhat.com>
17925         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
17926         edge implied equivalences into successor phis.
17928 2013-09-12  DJ Delorie  <dj@redhat.com>
17930         * config/rl78/rl78-virt.md: Change from | to \; for asm line
17931         separators.
17933 2013-09-12  Brooks Moses  <bmoses@google.com>
17935         PR driver/42955
17936         * Makefile.in: Do not install driver binaries in $(target)/bin.
17938 2013-09-12  DJ Delorie  <dj@redhat.com>
17940         * config/rl78/rl78.opt (mrelax): New.
17941         * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
17942         * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
17944         * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
17945         between SP and FP.
17946         (rl78_expand_epilogue): Likewise.
17948 2013-09-12  Vladimir Makarov  <vmakarov@redhat.com>
17950         PR middle-end/58335
17951         * lra-eliminations.c (remove_reg_equal_offset_note): New.
17952         (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
17953         pointer elimination with using remove_reg_equal_offset_note.
17955 2013-09-12  DJ Delorie  <dj@redhat.com>
17957         * config/msp430/: New port.
17958         * config.gcc (msp430): Added.
17959         * doc/invoke.texi: Document MSP430 options.
17960         * doc/install.texi: Document msp430-elf
17961         * doc/md.texi: Document msp430-elf
17962         * doc/contrib.texi: Document msp430-elf
17964         * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
17965         PSImode.
17967 2013-09-12  Martin Jambor  <mjambor@suse.cz>
17969         PR ipa/58389
17970         * ipa-prop.c (remove_described_reference): Give up if the edge in the
17971         reference descriptor is NULL.
17972         (ipa_edge_removal_hook): If owning a reference descriptor, set its
17973         edge to NULL.
17975 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
17977         * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
17978         (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
17979         num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
17980         * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
17981         make_temp_ssa_name): move to tree-ssanames.h
17982         * tree-ssa-alias.h: Move prototype.
17983         * tree-ssa.h: Include tree-ssanames.h.
17984         * tree-ssanames.c (FREE_SSANAMES): Move to here.
17985         * tree-ssanames.h: New.  Move items from tree-flow*.h
17986         * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
17988 2013-09-12  Richard Biener  <rguenther@suse.de>
17990         PR tree-optimization/58404
17991         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
17992         propagate non-invariant addresses into dereferences wrapped
17993         in component references.
17995 2013-09-12  Richard Biener  <rguenther@suse.de>
17997         PR tree-optimization/58402
17998         * passes.def: Move pass_late_warn_uninitialized later.
18000 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
18002         * tree-ssa.h: New.  Move content from tree-flow.h and
18003         tree-flow-inline.h.
18004         * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
18005         Move prototypes belonging to tree-ssa.c.
18006         * tree-flow-inline.h (redirect_edge_var_map_def,
18007         redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
18008         tree-ssa.h.
18009         * gimple.h: Adjust prototypes.
18010         * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
18011         to...
18012         * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
18013         * tree.h: Move prototype to tree-ssa.h.
18014         * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
18015         * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
18016         * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
18017         cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
18018         cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
18019         ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
18020         gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
18021         gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
18022         graphite-blocking.c, graphite-clast-to-gimple.c,
18023         graphite-dependences.c, graphite-interchange.c,
18024         graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
18025         graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
18026         ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
18027         ipa-reference.c, ipa-split.c, ipa-utils.c,
18028         loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
18029         lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
18030         passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
18031         tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
18032         tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
18033         tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
18034         tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
18035         tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
18036         tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
18037         tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
18038         tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
18039         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
18040         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
18041         tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
18042         value-prof.c, var-tracking.c,
18043         varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
18045 2013-09-12  Richard Biener  <rguenther@suse.de>
18047         PR tree-optimization/58396
18048         * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
18049         (build_rdg): Take a loop-nest parameter, fix memleaks.
18050         (distribute_loop): Compute loop-nest here and pass it to build_rdg.
18052 2013-09-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
18054         * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
18055         for SLM.
18057 2013-09-12  Cameron McInally  <cameron.mcinally@nyu.edu>
18059         * doc/extend.texi: Fix errors in x86 FMA builtin naming.
18060         The FMA instruction names should have a 'v' prefix.
18062 2013-09-12  Richard Biener  <rguenther@suse.de>
18064         * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
18065         (dot_rdg): Use popen instead of system in optional code.
18066         (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
18067         (already_processed_vertex_p): Adjust.
18068         (has_anti_or_output_dependence, predecessor_has_mem_write,
18069         mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
18070         rdg_flag_uses): Remove.
18071         (rdg_flag_vertex): Simplify.
18072         (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
18073         remove recursion.
18074         (build_rdg_partition_for_component): Process the first vertex
18075         of a component only.
18076         (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
18078 2013-09-12  Alan Modra  <amodra@gmail.com>
18080         * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
18082 2013-09-11  DJ Delorie  <dj@redhat.com>
18083             Nick Clifton  <nickc@redhat.com>
18085         * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
18086         (rl78_stack_based_mem): New.
18087         * config/rl78/constraints.md (Iv08): New.
18088         (Iv16): New.
18089         (Iv24): New.
18090         (Is09): New.
18091         (Is17): New.
18092         (Is25): New.
18093         (ISsi): New.
18094         (IShi): New.
18095         (ISqi): New.
18096         * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
18097         (movhi): Likewise.
18098         (movsi): Change from expand to insn-and-split.
18099         (ashrsi3): Clobber AX.
18100         (lshrsi3): New.
18101         (ashlsi3): New.
18102         (cbranchsi4): New.
18103         * config/rl78/rl78.md (CC_REG): Fix.
18104         (addsi3): Allow memory and immediate operands.
18105         (addsi3_internal): Split into...
18106         (addsi3_internal_virt): ...new, and ...
18107         (addsi3_internal_real): ...new.
18108         (subsi): New.
18109         (subsi3_internal_virt): New.
18110         (subsi3_internal_real): New.
18111         (mulsi3): Add memory operand.
18112         (mulsi3_rl78): Likewise.
18113         (mulsi3_g13): Likewise.
18114         * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
18115         (cbranchqi4_real): Add more constraint options.
18116         (cbranchhi4_real): Expand pattern.
18117         (cbranchhi4_real_signed): New.
18118         (cbranchhi4_real_inverted): New.
18119         (cbranchsi4_real_lt): New.
18120         (cbranchsi4_real_ge): New.
18121         (cbranchsi4_real_signed): New.
18122         (cbranchsi4_real): New.
18123         (peephole2): New.
18124         * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
18125         constant shifts.
18126         (lshrsi3_virt): Likewise.
18127         (ashlsi3_virt): Likewise.
18128         (cbranchqi4_virt_signed): New.
18129         (cbranchhi4_virt_signed): New.
18130         (cbranchsi4_virt): New.
18131         * config/rl78/rl78.c: Whitespace fixes throughout.
18132         (move_elim_pass): New.
18133         (pass_data_rl78_move_elim): New.
18134         (pass_rl78_move_elim): New.
18135         (make_pass_rl78_move_elim): New.
18136         (rl78_devirt_info): Run devirt earlier.
18137         (rl78_move_elim_info): New.
18138         (rl78_asm_file_start): Register it.
18139         (rl78_split_movsi): New.
18140         (rl78_as_legitimate_address): Allow virtual base registers when
18141         appropriate.
18142         (rl78_addr_space_convert): Remove spurious debug stuff.
18143         (rl78_print_operand_1): Add z,s,S,r,E modifiers.
18144         (rl78_print_operand): More cases for not printing '#'.
18145         (rl78_expand_compare): Remove most of the logic.
18146         (content_memory): New.
18147         (clear_content_memory): New.
18148         (get_content_index): New.
18149         (get_content_name): New.
18150         (display_content_memory): New.
18151         (update_content): New.
18152         (record_content): New.
18153         (already_contains): New.
18154         (insn_ok_now): Re-recog insns with virtual registers.
18155         (add_postponed_content_update): New.
18156         (process_postponed_content_update): New.
18157         (gen_and_emit_move): New.
18158         (transcode_memory_rtx): Record new location content.
18159         Use gen_and_emit_move.
18160         (force_into_acc): New.
18161         (move_to_acc): Use gen_and_emit_move.
18162         (move_from_acc): Likewise.
18163         (move_acc_to_reg): Likewise.
18164         (move_to_x): Likewise.
18165         (move_to_hl): Likewise.
18166         (move_to_de): Likewise.
18167         (rl78_alloc_physical_registers_op1): Record location content.
18168         (has_constraint): New.
18169         (rl78_alloc_physical_registers_op2): Record location content.
18170         Optimize use of HL.
18171         (rl78_alloc_physical_registers_ro1): Likewise.
18172         (rl78_alloc_physical_registers_cmp): Likewise.
18173         (rl78_alloc_physical_registers_umul): Likewise.
18174         (rl78_alloc_address_registers_macax): New.
18175         (rl78_alloc_physical_registers): Initialize and set location
18176         content memory as needed.
18177         (rl78_reorg): Make sure split2 is called.
18178         (rl78_rtx_costs): New.
18180 2013-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
18182         * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
18183         for (not (neg ...)) and (neg (not ...)) cases.
18185 2013-09-11  Richard Biener  <rguenther@suse.de>
18187         PR middle-end/58377
18188         * passes.def: Split critical edges before late uninit warning passes.
18189         * tree-cfg.c (pass_split_crit_edges): Implement clone method.
18191 2013-09-11  Jakub Jelinek  <jakub@redhat.com>
18193         PR tree-optimization/58385
18194         * fold-const.c (build_range_check): If both low and high are NULL,
18195         use omit_one_operand_loc to preserve exp side-effects.
18197 2013-09-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18199         * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
18201 2013-09-11  Richard Biener  <rguenther@suse.de>
18203         * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
18204         dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
18205         dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
18206         create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
18207         stmts_from_loop, known_dependences_p, build_empty_rdg,
18208         build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
18209         * tree-loop-distribution.c: ... here.
18210         * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
18211         RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
18212         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
18213         struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
18214         * tree-loop-distribution.c: ... here.
18215         * tree-loop-distribution.c: Include gimple-pretty-print.h.
18216         (struct partition_s): Add loops member.
18217         (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
18218         rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
18219         build_rdg_partition_for_component, rdg_build_partitions): Adjust.
18221 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18222             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
18223             Sergey Lega  <sergey.s.lega@intel.com>
18224             Anna Tikhonova  <anna.tikhonova@intel.com>
18225             Ilya Tocar  <ilya.tocar@intel.com>
18226             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18227             Ilya Verbin  <ilya.verbin@intel.com>
18228             Kirill Yukhin  <kirill.yukhin@intel.com>
18229             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
18231         * config/i386/constraints.md (k): New.
18232         (Yk): Ditto.
18233         * config/i386/i386.c (const regclass_map): Add new mask registers.
18234         (dbx_register_map): Ditto.
18235         (dbx64_register_map): Ditto.
18236         (svr4_dbx_register_map): Ditto.
18237         (ix86_conditional_register_usage): Squash mask registers if AVX512F is
18238         disabled.
18239         (ix86_preferred_reload_class): Disable constants for mask registers.
18240         (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
18241         (ix86_hard_regno_mode_ok): Support new mask registers.
18242         (x86_order_regs_for_local_alloc): Ditto.
18243         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
18244         (FIXED_REGISTERS): Add new mask registers.
18245         (CALL_USED_REGISTERS): Ditto.
18246         (REG_ALLOC_ORDER): Ditto.
18247         (VALID_MASK_REG_MODE): New.
18248         (FIRST_MASK_REG): Ditto.
18249         (LAST_MASK_REG): Ditto.
18250         (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
18251         (MAYBE_MASK_CLASS_P): New.
18252         (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
18253         (REG_CLASS_CONTENTS): Ditto.
18254         (MASK_REGNO_P): New.
18255         (ANY_MASK_REG_P): Ditto.
18256         (HI_REGISTER_NAMES): Add new mask registers.
18257         * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
18258         MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
18259         mask registers.
18260         (attribute "type"): Add mskmov, msklog.
18261         (attribute "length_immediate"): Support them.
18262         (attribute "memory"): Ditto.
18263         (attribute "prefix_0f"): Ditto.
18264         (*movhi_internal): Support new mask registers.
18265         (*movqi_internal): Ditto.
18266         (define_split): Split out clobber pattern is a logic
18267         insn on mask registers.
18268         (*k<logic><mode>): New.
18269         (*andhi_1): Extend to support mask regs.
18270         (*andqi_1): Extend to support mask regs.
18271         (kandn<mode>): New.
18272         (define_split): Split and-not to and and not if operands
18273         are not mask regs.
18274         (*<code><mode>_1): Separate HI mode to new pattern...
18275         (*<code>hi_1): This.
18276         (*<code>qi_1): Extend to support mask regs.
18277         (kxnor<mode>): New.
18278         (kortestzhi): Ditto.
18279         (kortestchi): Ditto.
18280         (kunpckhi): Ditto.
18281         (*one_cmpl<mode>2_1): Remove HImode and handle it...
18282         (*one_cmplhi2_1): ...Here, now with mask registers support.
18283         (*one_cmplqi2_1): Support new mask registers.
18284         (HI/QImode arithmetics splitter): Don't split if mask registers
18285         are used.
18286         (HI/QImode not splitter): Ditto.
18287         * config/i386/predicated.md (mask_reg_operand): New.
18288         (general_reg_operand): Ditto.
18290 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18292         * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
18293         * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
18295 2013-09-10  Jeff Law  <law@redhat.com>
18297         PR tree-optimization/58380
18298         * tree-ssa-threadupdate.c (thread_block): Recognize another case
18299         of threading through a buried loop header.
18301         * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
18302         return value for single successor case.
18304 2013-09-10  Jan Hubicka  <jh@suse.cz>
18306         * ipa-devirt.c (ipa_devirt): Enable with LTO.
18308 2013-09-10  Richard Earnshaw  <rearnsha@arm.com>
18310         PR target/58361
18311         * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
18312         support conditional execution.
18313         (combine_vcvt_f64_<FCVTI32typename>): Likewise.
18315 2013-09-10  Vladimir Makarov  <vmakarov@redhat.com>
18317         * lra.c (lra): Clear lra_optional_reload_pseudos before every
18318         constraint pass.
18319         * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
18320         Check destination too to check move insn.
18321         (undo_optional_reloads): Add check that the original peudo did not
18322         changed its allocation and the optional reload was inherited on last
18323         inheritance pass.  Break loop after deciding to keep optional reload.
18324         (lra_undo_inheritance): Add check that inherited pseudo still in
18325         memory.
18327 2013-09-10  James Greenhalgh  <james.greenhalgh@arm.com>
18329         * config/aarch64/aarch64.md (generic_sched): New.
18330         * config/aarch64/aarch64-generic.md (load): Make conditional
18331         on generic_sched attribute.
18332         (nonload): Likewise.
18334 2013-09-10  Jan Hubicka  <jh@suse.cz>
18336         * lto-cgraph.c: Include ipa-utils.h.
18337         (compute_ltrans_boundary): Also add possible targets into the boundary.
18339 2013-09-10  Jan Hubicka  <jh@suse.cz>
18341         * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
18342         VAR_DECL of vtable rather than full expression.
18344 2013-09-10  Jan Hubicka  <jh@suse.cz>
18345             Paolo Carlini  <paolo.carlini@oracle.com>
18347         * cgraphunit.c (analyze_functions): Save input_location, set it
18348         to UNKNOWN_LOCATION and restore it at the end.
18350 2013-09-10  Martin Jambor  <mjambor@suse.cz>
18352         * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
18353         represented by a thunk.
18355 2013-09-10  Jeff Law  <law@redhat.com>
18357         PR tree-optimization/58343
18358         * tree-ssa-threadupdate.c (thread_block): Identify and disable
18359         jump threading requests through loop headers buried in the middle
18360         of a jump threading path.
18362         * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
18363         in return value/type.
18365 2013-09-10  Jakub Jelinek  <jakub@redhat.com>
18367         PR rtl-optimization/58365
18368         * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
18369         resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
18370         it differs.
18372 2013-09-10  Richard Biener  <rguenther@suse.de>
18374         * tree-data-ref.h (build_rdg): Drop all parameters but loop.
18375         * tree-data-ref.c (create_rdg_vertices): Collect all data
18376         references, signal failure to the caller, use data-ref API.
18377         (build_rdg): Compute data references only once.  Maintain lifetime
18378         of data references and data dependences from within RDG.
18379         (free_rdg): Free dependence relations.
18380         * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
18381         inventing extra dependences.
18382         (distribute_loop): Update for RDG API changes.
18384 2013-09-10  Kai Tietz  <ktietz@redhat.com>
18386         * doc/invoke.texi (fms-extensions): Document changed
18387         behavior for ms-abi targets.
18388         * config/i386/i386.c (ix86_option_override_internal):
18389         Set default value of option -fms-extension for ms-abi targets.
18391 2013-09-10  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
18393         * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
18395 2013-09-10  Alan Modra  <amodra@gmail.com>
18397         PR target/58330
18398         * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
18400 2013-09-10  Alan Modra  <amodra@gmail.com>
18402         * config/rs6000/predicates.md (add_cint_operand): New.
18403         (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
18404         * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
18405         using add_cint_operand.
18406         (largetoc_high_plus_aix): Likewise.
18408 2013-09-09  Jakub Jelinek  <jakub@redhat.com>
18410         PR tree-optimization/58364
18411         * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
18412         BOOLEAN_TYPE, only invert in_p and continue with arg0 if
18413         the current range can't be an unconditional true or false.
18415 2013-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
18417         * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
18419 2013-09-09  Uros Bizjak  <ubizjak@gmail.com>
18421         * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
18423 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
18425         PR c++/43452
18426         * doc/invoke.texi (-Wdelete-incomplete): Document it.
18428 2013-09-09  Ian Bolton  <ian.bolton@arm.com>
18430         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
18431         NO_REGS for immediate that can't be moved directly into FP_REGS.
18433 2013-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18435         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
18436         comparison with negated operand.
18437         * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
18438         RTL form.
18440 2013-09-09  Richard Biener  <rguenther@suse.de>
18442         PR middle-end/58326
18443         * cfgloopmanip.c (fix_bb_placements): When fixing the placement
18444         of a subloop record all its block as affecting loop-closed SSA form.
18446 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
18448         * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
18449         of an rtx/bitpos pair.
18450         (store_fixed_bit_field): Update accordingly.
18452 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
18454         * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
18455         GEN_INT.
18456         * builtins.c (expand_errno_check): Likewise.
18457         * dwarf2cfi.c (init_return_column_size): Likewise.
18458         * except.c (sjlj_mark_call_sites): Likewise.
18459         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
18460         * lra-constraints.c (emit_inc): Likewise.
18461         * ree.c (combine_set_extension): Likewise.
18462         * regmove.c (fixup_match_2): Likewise.
18463         * reload1.c (inc_for_reload): Likewise.
18465 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
18467         * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
18468         (force_to_mode, simplify_shift_const_1, simplify_comparison):
18469         Use gen_int_mode with the mode of the associated simplify_* call.
18470         * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
18471         * expmed.c (expand_shift_1): Likewise.
18472         * function.c (instantiate_virtual_regs_in_insn): Likewise.
18473         * loop-iv.c (iv_number_of_iterations): Likewise.
18474         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
18475         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
18477 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
18479         * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
18480         of the associated expand_* call.
18481         (asan_emit_stack_protection): Likewise.
18482         * builtins.c (round_trampoline_addr): Likewise.
18483         * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
18484         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
18485         (emit_store_flag): Likewise.
18486         * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
18487         (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
18488         Likewise.
18489         * function.c (instantiate_virtual_regs_in_insn): Likewise.
18490         * ifcvt.c (noce_try_store_flag_constants): Likewise.
18491         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
18492         * modulo-sched.c (generate_prolog_epilog): Likewise.
18493         * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
18494         (expand_ctz, expand_ffs, expand_unop): Likewise.
18496 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
18498         * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
18499         of the associated gen_rtx_* call.
18500         * caller-save.c (init_caller_save): Likewise.
18501         * combine.c (find_split_point, make_extraction): Likewise.
18502         (make_compound_operation): Likewise.
18503         * dwarf2out.c (mem_loc_descriptor): Likewise.
18504         * explow.c (plus_constant, probe_stack_range): Likewise.
18505         * expmed.c (expand_mult_const): Likewise.
18506         * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
18507         * reload1.c (init_reload): Likewise.
18508         * valtrack.c (cleanup_auto_inc_dec): Likewise.
18509         * var-tracking.c (adjust_mems): Likewise.
18510         * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
18511         rather than gen_rtx_fmt_ee.
18513 2013-09-09  Jan Hubicka  <jh@suse.cz>
18515         PR middle-end/58294
18516         * value-prof.c (gimple_ic): Copy also abnormal edges.
18518 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
18520         * asan.c (asan_shadow_cst): Use gen_int_mode.
18522 2013-09-08  Jan Hubicka  <jh@suse.cz>
18524         * ipa-profile.c: Add toplevel comment.
18525         (ipa_propagate_frequency_1): Be more conservative when profile is read.
18526         (contains_hot_call_p): New function.
18527         (ipa_propagate_frequency): Set frequencies based on counts when
18528         profile is read.
18529         * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
18530         profile; do not tamper with profile after inlining if it is read.
18532 2013-09-08  Jan Hubicka  <jh@suse.cz>
18534         * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
18535         speculative edges.
18537 2013-09-08  Jan Hubicka  <jh@suse.cz>
18539         * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
18540         summary generation.
18542 2013-09-08  Jeff Law  <law@redhat.com>
18544         PR bootstrap/58340
18545         * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
18546         of 'found'.
18548 2013-09-08  Andi Kleen  <ak@linux.intel.com>
18550         * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
18552 2013-09-08  Jan Hubicka  <jh@suse.cz>
18554         * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
18556 2013-09-08  Richard Sandiford  <rdsandiford@googlemail.com>
18558         * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
18559         for non-debug insns.
18560         * lra.c (new_insn_reg): Take the containing insn as a parameter.
18561         Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
18562         (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
18563         accordingly.
18565 2013-09-08  Jan Hubicka  <jh@suse.cz>
18567         * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
18568         targets and devirtualize to BUILT_IN_UNREACHABLE.
18569         * timevar.def (TV_IPA_UNREACHABLE): New timevar.
18570         * ipa.c (walk_polymorphic_call_targets): New function.
18571         (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
18572         functions; use the new timevar.
18573         * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
18574         was removed from the program.
18575         (record_binfo): If BINFO corresponds to an anonymous namespace, we may
18576         not consider it in the walk when its vtable is dead.
18577         (possible_polymorphic_call_targets_1): Pass anonymous flag to
18578         record_binfo.
18579         (devirt_variable_node_removal_hook): New function.
18580         (possible_polymorphic_call_targets): Also register
18581         devirt_variable_node_removal_hook.
18582         (ipa_devirt): Do not do non-speculative devirtualization.
18583         (gate_ipa_devirt): One execute if devirtualizing speculatively.
18585 2013-09-08  Jan Hubicka  <jh@suse.cz>
18587         * cgraph.h (varpool_node_hook, varpool_node_hook_list,
18588         varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
18589         varpool_remove_variable_insertion_hook): Declare.
18590         * varpool.c (varpool_node_hook_list): New structure.
18591         (first_varpool_node_removal_hook,
18592         first_varpool_variable_insertion_hook): New variables.
18593         (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
18594         varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
18595         varpool_remove_variable_insertion_hook,
18596         varpool_call_variable_insertion_hooks): New functions.
18597         (varpool_remove_node): Use it.
18599 2013-09-08  Paolo Carlini  <paolo.carlini@oracle.com>
18601         PR c++/54941
18602         * diagnostic.c (diagnostic_build_prefix): When s.file is
18603         "<built-in>" don't output line and column numbers.
18605 2013-09-06  Jan Hubicka  <jh@suse.cz>
18607         * cgraphunit.c (expand_thunk): Get body before touching arguments.
18608         * lto-streamer-out.c: Stream thunks, too.
18609         * lto-streamer-in.c (input_function): Pop cfun here
18610         (lto_read_body): Instead of here.
18612 2013-09-06  Caroline Tice  <cmtice@google.com>
18614         * doc/install.texi: Add documentation for the --enable-vtable-verify
18615         and the --disable-libvtv configure options.
18617 2013-09-06  Jeff Law  <law@redhat.com>
18619         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
18620         edge implied equivalences into successor phis.
18622 2013-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
18624         * resource.c (mark_referenced_resources): Handle COND_EXEC.
18626 2013-09-06  Claudiu Zissulescu  <claziss@synopsys.com>
18628         * resource.c (mark_target_live_regs): Compute resources taking
18629         into account if a call is predicated or not.
18631 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
18633         * toplev.c (output_stack_usage): Be prepared for suffixes created by
18634         the compiler in the function names.
18636 2013-09-06  Jan Hubicka  <jh@suse.cz>
18638         PR middle-end/58094
18639         * ipa-inline.c (has_caller_p): New function.
18640         (want_inline_function_to_all_callers_p): Use it.
18641         (sum_callers, inline_to_all_callers): Break out from ...
18642         (ipa_inline): ... here.
18644 2013-09-06  Jan Hubicka  <jh@suse.cz>
18646         * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
18647         only when AVX is enabled.
18649 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
18651         * config/aarch64/aarch64.md
18652         (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
18653         is fpsimd_<load/store>2.
18654         (load_pair<mode>): Likewise.
18655         (store_pair<mode>): Likewise.
18657 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
18659         * config/arm/types.md (type): Add "mrs" type.
18660         * config/aarch64/aarch64.md
18661         (aarch64_load_tp_hard): Make type "mrs".
18662         * config/arm/arm.md
18663         (load_tp_hard): Make type "mrs".
18664         * config/arm/cortex-a15.md: Update with new attributes.
18665         * config/arm/cortex-a5.md: Update with new attributes.
18666         * config/arm/cortex-a53.md: Update with new attributes.
18667         * config/arm/cortex-a7.md: Update with new attributes.
18668         * config/arm/cortex-a8.md: Update with new attributes.
18669         * config/arm/cortex-a9.md: Update with new attributes.
18670         * config/arm/cortex-m4.md: Update with new attributes.
18671         * config/arm/cortex-r4.md: Update with new attributes.
18672         * config/arm/fa526.md: Update with new attributes.
18673         * config/arm/fa606te.md: Update with new attributes.
18674         * config/arm/fa626te.md: Update with new attributes.
18675         * config/arm/fa726te.md: Update with new attributes.
18677 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
18679         * config/aarch64/aarch64.md
18680         (*movti_aarch64): Use "multiple" for type where v8type is "move2".
18681         (*movtf_aarch64): Likewise.
18682         * config/arm/arm.md
18683         (thumb1_movdi_insn): Use "multiple" for type where more than one
18684         instruction is used for a move.
18685         (*arm32_movhf): Likewise.
18686         (*thumb_movdf_insn): Likewise.
18688 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
18690         * config/arm/types.md (type): Rename fcpys to fmov.
18691         * config/arm/vfp.md
18692         (*arm_movsi_vfp): Rename type fcpys as fmov.
18693         (*thumb2_movsi_vfp): Likewise
18694         (*movhf_vfp_neon): Likewise
18695         (*movhf_vfp): Likewise
18696         (*movsf_vfp): Likewise
18697         (*thumb2_movsf_vfp): Likewise
18698         (*movsfcc_vfp): Likewise
18699         (*thumb2_movsfcc_vfp): Likewise
18700         * config/aarch64/aarch64-simd.md
18701         (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
18702         * config/aarch64/aarch64.md
18703         (*movsi_aarch64): Replace type mov_reg with fmovs.
18704         (*movdi_aarch64): Likewise
18705         (*movsf_aarch64): Likewise
18706         (*movdf_aarch64): Likewise
18707         * config/arm/arm.c
18708         (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
18709         * config/arm/iwmmxt.md
18710         (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
18711         * config/arm/arm1020e.md: Update with new attributes.
18712         * config/arm/cortex-a15-neon.md: Update with new attributes.
18713         * config/arm/cortex-a5.md: Update with new attributes.
18714         * config/arm/cortex-a53.md: Update with new attributes.
18715         * config/arm/cortex-a7.md: Update with new attributes.
18716         * config/arm/cortex-a8-neon.md: Update with new attributes.
18717         * config/arm/cortex-a9.md: Update with new attributes.
18718         * config/arm/cortex-m4-fpu.md: Update with new attributes.
18719         * config/arm/cortex-r4f.md: Update with new attributes.
18720         * config/arm/marvell-pj4.md: Update with new attributes.
18721         * config/arm/vfp11.md: Update with new attributes.
18723 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
18725         * config/aarch64/aarch64.md
18726         (*madd<mode>): Fix type attribute.
18727         (*maddsi_uxtw): Likewise.
18728         (*msub<mode>): Likewise.
18729         (*msubsi_uxtw): Likewise.
18730         (<su_optab>maddsidi4): Likewise.
18731         (<su_optab>msubsidi4): Likewise.
18733 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
18735         * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
18736         * config/arm/arm.md (core_cycles): Remove fdiv.
18737         * config/arm/vfp.md:
18738         (*sqrtsf2_vfp): Update for attribute changes.
18739         (*sqrtdf2_vfp): Likewise.
18740         * config/aarch64/aarch64.md:
18741         (sqrt<mode>2): Update for attribute changes.
18742         * config/arm/arm1020e.md: Update with new attributes.
18743         * config/arm/cortex-a15-neon.md: Update with new attributes.
18744         * config/arm/cortex-a5.md: Update with new attributes.
18745         * config/arm/cortex-a53.md: Update with new attributes.
18746         * config/arm/cortex-a7.md: Update with new attributes.
18747         * config/arm/cortex-a8-neon.md: Update with new attributes.
18748         * config/arm/cortex-a9.md: Update with new attributes.
18749         * config/arm/cortex-m4-fpu.md: Update with new attributes.
18750         * config/arm/cortex-r4f.md: Update with new attributes.
18751         * config/arm/marvell-pj4.md: Update with new attributes.
18752         * config/arm/vfp11.md: Update with new attributes.
18754 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
18756         * config/arm/types.md
18757         (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
18758         * config/aarch64/aarch64.md
18759         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
18760         new attributes.
18761         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
18762         (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
18763         (float<GPI:mode><GPF:mode>2): Likewise.
18764         * config/arm/vfp.md
18765         (*truncsisf2_vfp): Update with new attributes.
18766         (*truncsidf2_vfp): Likewise.
18767         (fixuns_truncsfsi2): Likewise.
18768         (fixuns_truncdfsi2): Likewise.
18769         (*floatsisf2_vfp): Likewise.
18770         (*floatsidf2_vfp): Likewise.
18771         (floatunssisf2): Likewise.
18772         (floatunssidf2): Likewise.
18773         (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
18774         (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
18775         * config/arm/arm1020e.md: Update with new attributes.
18776         * config/arm/cortex-a15-neon.md: Update with new attributes.
18777         * config/arm/cortex-a5.md: Update with new attributes.
18778         * config/arm/cortex-a53.md: Update with new attributes.
18779         * config/arm/cortex-a7.md: Update with new attributes.
18780         * config/arm/cortex-a8-neon.md: Update with new attributes.
18781         * config/arm/cortex-a9.md: Update with new attributes.
18782         * config/arm/cortex-m4-fpu.md: Update with new attributes.
18783         * config/arm/cortex-r4f.md: Update with new attributes.
18784         * config/arm/marvell-pj4.md: Update with new attributes.
18785         * config/arm/vfp11.md: Update with new attributes.
18787 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
18789         * config/aarch64/arm_neon.h
18790         (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
18791         (vqtbx<1,2,3,4><q>_s8): Likewise.
18793 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
18795         * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
18796         * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
18797         (add<mode>3): Add type attribute.
18798         (add<mode>3): Likewise.
18799         (usadd<mode>3): Likewise.
18800         (ssadd<mode>3): Likewise.
18801         (sub<mode>3): Likewise.
18802         (sub<mode>3): Likewise.
18803         (ussub<mode>3): Likewise.
18804         (sssub<mode>3): Likewise.
18805         (ssmulsa3): Likewise.
18806         (usmulusa3): Likewise.
18807         (arm_usatsihi): Likewise.
18808         * config/arm/vfp.md
18809         (*movdi_vfp): Add types for all instructions.
18810         (*movdi_vfp_cortexa8): Likewise.
18811         (*movhf_vfp_neon): Likewise.
18812         (*movhf_vfp): Likewise.
18813         (*movdf_vfp): Likewise.
18814         (*thumb2_movdf_vfp): Likewise.
18815         (*thumb2_movdfcc_vfp): Likewise.
18816         * config/arm/arm.md: Add type attribute to all insn patterns.
18817         (*thumb1_adddi3): Add type attribute.
18818         (*arm_adddi3): Likewise.
18819         (*adddi_sesidi_di): Likewise.
18820         (*adddi_zesidi_di): Likewise.
18821         (*thumb1_addsi3): Likewise.
18822         (addsi3_compare0): Likewise.
18823         (*addsi3_compare0_scratch): Likewise.
18824         (*compare_negsi_si): Likewise.
18825         (cmpsi2_addneg): Likewise.
18826         (*addsi3_carryin_<optab>): Likewise.
18827         (*addsi3_carryin_alt2_<optab>): Likewise.
18828         (*addsi3_carryin_clobercc_<optab>): Likewise.
18829         (*subsi3_carryin): Likewise.
18830         (*subsi3_carryin_const): Likewise.
18831         (*subsi3_carryin_compare): Likewise.
18832         (*subsi3_carryin_compare_const): Likewise.
18833         (*arm_subdi3): Likewise.
18834         (*thumb_subdi3): Likewise.
18835         (*subdi_di_zesidi): Likewise.
18836         (*subdi_di_sesidi): Likewise.
18837         (*subdi_zesidi_di): Likewise.
18838         (*subdi_sesidi_di): Likewise.
18839         (*subdi_zesidi_ze): Likewise.
18840         (thumb1_subsi3_insn): Likewise.
18841         (*arm_subsi3_insn): Likewise.
18842         (*anddi3_insn): Likewise.
18843         (*anddi_zesidi_di): Likewise.
18844         (*anddi_sesdi_di): Likewise.
18845         (*ne_zeroextracts): Likewise.
18846         (*ne_zeroextracts): Likewise.
18847         (*ite_ne_zeroextr): Likewise.
18848         (*ite_ne_zeroextr): Likewise.
18849         (*anddi_notdi_di): Likewise.
18850         (*anddi_notzesidi): Likewise.
18851         (*anddi_notsesidi): Likewise.
18852         (andsi_notsi_si): Likewise.
18853         (thumb1_bicsi3): Likewise.
18854         (*iordi3_insn): Likewise.
18855         (*iordi_zesidi_di): Likewise.
18856         (*iordi_sesidi_di): Likewise.
18857         (*thumb1_iorsi3_insn): Likewise.
18858         (*xordi3_insn): Likewise.
18859         (*xordi_zesidi_di): Likewise.
18860         (*xordi_sesidi_di): Likewise.
18861         (*arm_xorsi3): Likewise.
18862         (*andsi_iorsi3_no): Likewise.
18863         (*smax_0): Likewise.
18864         (*smax_m1): Likewise.
18865         (*arm_smax_insn): Likewise.
18866         (*smin_0): Likewise.
18867         (*arm_smin_insn): Likewise.
18868         (*arm_umaxsi3): Likewise.
18869         (*arm_uminsi3): Likewise.
18870         (*minmax_arithsi): Likewise.
18871         (*minmax_arithsi_): Likewise.
18872         (*satsi_<SAT:code>): Likewise.
18873         (arm_ashldi3_1bit): Likewise.
18874         (arm_ashrdi3_1bit): Likewise.
18875         (arm_lshrdi3_1bit): Likewise.
18876         (*arm_negdi2): Likewise.
18877         (*thumb1_negdi2): Likewise.
18878         (*arm_negsi2): Likewise.
18879         (*thumb1_negsi2): Likewise.
18880         (*negdi_extendsid): Likewise.
18881         (*negdi_zero_extend): Likewise.
18882         (*arm_abssi2): Likewise.
18883         (*thumb1_abssi2): Likewise.
18884         (*arm_neg_abssi2): Likewise.
18885         (*thumb1_neg_abss): Likewise.
18886         (one_cmpldi2): Likewise.
18887         (extend<mode>di2): Likewise.
18888         (*compareqi_eq0): Likewise.
18889         (*arm_extendhisi2addsi): Likewise.
18890         (*arm_movdi): Likewise.
18891         (*thumb1_movdi_insn): Likewise.
18892         (*arm_movt): Likewise.
18893         (*thumb1_movsi_insn): Likewise.
18894         (pic_add_dot_plus_four): Likewise.
18895         (pic_add_dot_plus_eight): Likewise.
18896         (tls_load_dot_plus_eight): Likewise.
18897         (*thumb1_movhi_insn): Likewise.
18898         (*thumb1_movsf_insn): Likewise.
18899         (*movdf_soft_insn): Likewise.
18900         (*thumb_movdf_insn): Likewise.
18901         (cbranchsi4_insn): Likewise.
18902         (cbranchsi4_scratch): Likewise.
18903         (*negated_cbranchsi4): Likewise.
18904         (*tbit_cbranch): Likewise.
18905         (*tlobits_cbranch): Likewise.
18906         (*tstsi3_cbranch): Likewise.
18907         (*cbranchne_decr1): Likewise.
18908         (*addsi3_cbranch): Likewise.
18909         (*addsi3_cbranch_scratch): Likewise.
18910         (*arm_cmpdi_insn): Likewise.
18911         (*arm_cmpdi_unsig): Likewise.
18912         (*arm_cmpdi_zero): Likewise.
18913         (*thumb_cmpdi_zero): Likewise.
18914         (*deleted_compare): Likewise.
18915         (*mov_scc): Likewise.
18916         (*mov_negscc): Likewise.
18917         (*mov_notscc): Likewise.
18918         (*cstoresi_eq0_thumb1_insn): Likewise.
18919         (cstoresi_nltu_thumb1): Likewise.
18920         (cstoresi_ltu_thu): Likewise.
18921         (thumb1_addsi3_addgeu): Likewise.
18922         (*arm_jump): Likewise.
18923         (*thumb_jump): Likewise.
18924         (*check_arch2): Likewise.
18925         (arm_casesi_internal): Likewise.
18926         (thumb1_casesi_dispatch): Likewise.
18927         (*arm_indirect_jump): Likewise.
18928         (*thumb1_indirect_jump): Likewise.
18929         (nop): Likewise.
18930         (*and_scc): Likewise.
18931         (*ior_scc): Likewise.
18932         (*compare_scc): Likewise.
18933         (*cond_move): Likewise.
18934         (*cond_arith): Likewise.
18935         (*cond_sub): Likewise.
18936         (*cmp_ite0): Likewise.
18937         (*cmp_ite1): Likewise.
18938         (*cmp_and): Likewise.
18939         (*cmp_ior): Likewise.
18940         (*ior_scc_scc): Likewise.
18941         (*ior_scc_scc_cmp): Likewise.
18942         (*and_scc_scc): Likewise.
18943         (*and_scc_scc_cmp): Likewise.
18944         (*and_scc_scc_nod): Likewise.
18945         (*negscc): Likewise.
18946         (movcond_addsi): Likewise.
18947         (movcond): Likewise.
18948         (*ifcompare_plus_move): Likewise.
18949         (*if_plus_move): Likewise.
18950         (*ifcompare_move_plus): Likewise.
18951         (*if_move_plus): Likewise.
18952         (*ifcompare_arith_arith): Likewise.
18953         (*if_arith_arith): Likewise.
18954         (*ifcompare_arith_move): Likewise.
18955         (*if_arith_move): Likewise.
18956         (*ifcompare_move_arith): Likewise.
18957         (*if_move_arith): Likewise.
18958         (*ifcompare_move_not): Likewise.
18959         (*if_move_not): Likewise.
18960         (*ifcompare_not_move): Likewise.
18961         (*if_not_move): Likewise.
18962         (*ifcompare_shift_move): Likewise.
18963         (*if_shift_move): Likewise.
18964         (*ifcompare_move_shift): Likewise.
18965         (*if_move_shift): Likewise.
18966         (*ifcompare_shift_shift): Likewise.
18967         (*ifcompare_not_arith): Likewise.
18968         (*ifcompare_arith_not): Likewise.
18969         (*if_arith_not): Likewise.
18970         (*ifcompare_neg_move): Likewise.
18971         (*if_neg_move): Likewise.
18972         (*ifcompare_move_neg): Likewise.
18973         (*if_move_neg): Likewise.
18974         (prologue_thumb1_interwork): Likewise.
18975         (*cond_move_not): Likewise.
18976         (*sign_extract_onebit): Likewise.
18977         (*not_signextract_onebit): Likewise.
18978         (stack_tie): Likewise.
18979         (align_4): Likewise.
18980         (align_8): Likewise.
18981         (consttable_end): Likewise.
18982         (consttable_1): Likewise.
18983         (consttable_2): Likewise.
18984         (consttable_4): Likewise.
18985         (consttable_8): Likewise.
18986         (consttable_16): Likewise.
18987         (*thumb1_tablejump): Likewise.
18988         (prefetch): Likewise.
18989         (force_register_use): Likewise.
18990         (thumb_eh_return): Likewise.
18991         (load_tp_hard): Likewise.
18992         (load_tp_soft): Likewise.
18993         (tlscall): Likewise.
18994         (*arm_movtas_ze): Likewise.
18995         (*arm_rev): Likewise.
18996         (*arm_revsh): Likewise.
18997         (*arm_rev16): Likewise.
18998         * config/arm/thumb2.md
18999         (*thumb2_smaxsi3): Likewise.
19000         (*thumb2_sminsi3): Likewise.
19001         (*thumb32_umaxsi3): Likewise.
19002         (*thumb2_uminsi3): Likewise.
19003         (*thumb2_negdi2): Likewise.
19004         (*thumb2_abssi2): Likewise.
19005         (*thumb2_neg_abss): Likewise.
19006         (*thumb2_movsi_insn): Likewise.
19007         (tls_load_dot_plus_four): Likewise.
19008         (*thumb2_movhi_insn): Likewise.
19009         (*thumb2_mov_scc): Likewise.
19010         (*thumb2_mov_negs): Likewise.
19011         (*thumb2_mov_negs): Likewise.
19012         (*thumb2_mov_nots): Likewise.
19013         (*thumb2_mov_nots): Likewise.
19014         (*thumb2_movsicc_): Likewise.
19015         (*thumb2_movsfcc_soft_insn): Likewise.
19016         (*thumb2_indirect_jump): Likewise.
19017         (*thumb2_and_scc): Likewise.
19018         (*thumb2_ior_scc): Likewise.
19019         (*thumb2_ior_scc_strict_it): Likewise.
19020         (*thumb2_cond_move): Likewise.
19021         (*thumb2_cond_arith): Likewise.
19022         (*thumb2_cond_ari): Likewise.
19023         (*thumb2_cond_sub): Likewise.
19024         (*thumb2_negscc): Likewise.
19025         (*thumb2_movcond): Likewise.
19026         (thumb2_casesi_internal): Likewise.
19027         (thumb2_casesi_internal_pic): Likewise.
19028         (*thumb2_alusi3_short): Likewise.
19029         (*thumb2_mov<mode>_shortim): Likewise.
19030         (*thumb2_addsi_short): Likewise.
19031         (*thumb2_subsi_short): Likewise.
19032         (thumb2_addsi3_compare0): Likewise.
19033         (*thumb2_cbz): Likewise.
19034         (*thumb2_cbnz): Likewise.
19035         (*thumb2_one_cmplsi2_short): Likewise.
19036         (*thumb2_negsi2_short): Likewise.
19037         (*orsi_notsi_si): Likewise.
19038         * config/arm/arm1020e.md: Update with new attributes.
19039         * config/arm/arm1026ejs.md: Update with new attributes.
19040         * config/arm/arm1136jfs.md: Update with new attributes.
19041         * config/arm/arm926ejs.md: Update with new attributes.
19042         * config/arm/cortex-a15.md: Update with new attributes.
19043         * config/arm/cortex-a5.md: Update with new attributes.
19044         * config/arm/cortex-a53.md: Update with new attributes.
19045         * config/arm/cortex-a7.md: Update with new attributes.
19046         * config/arm/cortex-a8.md: Update with new attributes.
19047         * config/arm/cortex-a9.md: Update with new attributes.
19048         * config/arm/cortex-m4.md: Update with new attributes.
19049         * config/arm/cortex-r4.md: Update with new attributes.
19050         * config/arm/fa526.md: Update with new attributes.
19051         * config/arm/fa606te.md: Update with new attributes.
19052         * config/arm/fa626te.md: Update with new attributes.
19053         * config/arm/fa726te.md: Update with new attributes.
19055 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
19057         * config/aarch64/aarch64-simd.md
19058         (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
19059         <vwx> iterator to ensure correct register choice.
19060         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
19061         (aarch64_sqdmull_n<mode>): Likewise.
19062         (aarch64_sqdmull2_n<mode>_internal): Likewise.
19063         * config/aarch64/arm_neon.h
19064         (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
19065         (vml<as><q>_n_<su>16): Likewise.
19066         (vml<as>l_high_lane<q>_<su>16): Likewise.
19067         (vml<as>l_high_n_<su>16): Likewise.
19068         (vml<as>l_lane<q>_<su>16): Likewise.
19069         (vml<as>l_n_<su>16): Likewise.
19070         (vmul<q>_lane<q>_<su>16): Likewise.
19071         (vmul<q>_n_<su>16): Likewise.
19072         (vmull_lane<q>_<su>16): Likewise.
19073         (vmull_n_<su>16): Likewise.
19074         (vmull_high_lane<q>_<su>16): Likewise.
19075         (vmull_high_n_<su>16): Likewise.
19076         (vqrdmulh<q>_n_s16): Likewise.
19078 2013-09-06  Tejas Belagod  <tejas.belagod@arm.com>
19080         * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
19081         have the correct lane parameter.
19083 2013-09-06  Richard Biener <rguenther@suse.de>
19085         * cfganal.c (control_dependences::~control_dependences):
19086         Properly free all of the vector.
19088 2013-09-06  Kirill Yukhin  <kirill.yukhin@intel.com>
19090         PR target/58269
19091         * config/i386/i386.c (ix86_conditional_register_usage):
19092         Proper initialize extended SSE registers.
19094 2013-09-06  Jan Hubicka  <jh@suse.cz>
19096         PR tree-optimization/58311
19097         * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
19099 2013-09-06  Jan Hubicka  <jh@suse.cz>
19101         * Makefile.in (tree-sra.o): Update dependencies.
19102         * tree-sra.c: Include ipa-utils.h
19103         (scan_function): Use recursive_call_p.
19104         (has_caller_p): New function.
19105         (cgraph_for_node_and_aliases): Count also callers of aliases.
19107 2013-09-06  Jan Hubicka  <jh@suse.cz>
19109         PR middle-end/58094
19110         * cgraph.h (symtab_semantically_equivalent_p): Declare.
19111         * tree-tailcall.c: Include ipa-utils.h.
19112         (find_tail_calls): Use it.
19113         * ipa-pure-const.c (check_call): Likewise.
19114         * ipa-utils.c (recursive_call_p): New function.
19115         * ipa-utils.h (recursive_call_p): Dclare.
19116         * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
19117         (symtab_semantically_equivalent_p): New function.
19118         * Makefile.in (tree-tailcall.o): Update dependencies.
19120 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
19122         * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
19123         non-inlinable part.
19125 2013-09-06  Richard Biener  <rguenther@suse.de>
19127         * lto-streamer.h (lto_global_var_decls): Remove.
19128         * Makefile.in (OBJS): Remove lto-symtab.o.
19129         (lto-symtab.o): Remove.
19130         (GTFILES): Remove lto-symtab.c
19131         * lto-symtab.c: Move to lto/
19133 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19135         * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
19136         (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
19137         (UNSPEC_FPINT_RINT): New constant definitions.
19138         (FPINT, fpint_name, fpint_roundingmode): New integer iterator
19139         definition with 2 attributes.
19140         ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
19141         ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
19142         definitions.
19144 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19146         * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
19147         ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
19148         Set the mnemonic attribute to "bcr_flush".  Set the "z196prop"
19149         attribute to "z196_alone".
19150         * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
19151         "zEC12_simple".
19153 2013-09-06  Richard Biener  <rguenther@suse.de>
19155         * basic-block.h (class control_dependences): New.
19156         * tree-ssa-dce.c (control_dependence_map): Remove.
19157         (cd): New global.
19158         (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
19159         (set_control_dependence_map_bit, clear_control_dependence_bitmap,
19160         find_pdom, find_control_dependence, find_all_control_dependences):
19161         Move to cfganal.c.
19162         (mark_control_dependent_edges_necessary,
19163         find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
19164         tree_dce_done, perform_tree_ssa_dce): Adjust.
19165         * cfganal.c (set_control_dependence_map_bit,
19166         clear_control_dependence_bitmap, find_pdom, find_control_dependence,
19167         find_all_control_dependences): Move from tree-ssa-dce.c and
19168         implement as methods of control_dependences class.
19169         (control_dependences::control_dependences): New.
19170         (control_dependences::~control_dependences): Likewise.
19171         (control_dependences::get_edges_dependent_on): Likewise.
19172         (control_dependences::get_edge): Likewise.
19174 2013-09-04  Jan Hubicka  <jh@suse.cz>
19176         * tree.c (types_same_for_odr): Drop overactive check.
19177         * ipa-devirt.c (hash_type_name): Likewise.
19179 2013-09-04  Jan Hubicka  <jh@suse.cz>
19181         * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
19182         (analyze_functions): ... here.
19184 2013-09-04  Jan Hubicka  <jh@suse.cz>
19186         PR middle-end/58201
19187         * cgraphunit.c (analyze_functions): Clear AUX fields
19188         after processing; initialize assembler name has.
19190 2013-09-05  Jeff Law  <law@redhat.com>
19192         * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
19193         from thread_around_empty_block.  Record threading path into PATH.
19194         Recurse if threading through the initial block is successful.
19195         (thread_across_edge): Corresponding changes to slightly simplify.
19197 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
19199         * config/aarch64/aarch64.md
19200         (type): Remove frecpe, frecps, frecpx.
19201         (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
19202         fix to be a TARGET_SIMD instruction.
19203         (aarch64_frecps): Remove.
19204         * config/aarch64/aarch64-simd.md
19205         (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
19206         (aarch64_frecps<mode>): Handle all float/vector of float modes.
19208 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
19209             Sofiane Naci  <sofiane.naci@arm.com>
19211         * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
19212         into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
19213         Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
19214         "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
19215         "logic_reg", "logics_reg", "rev".  Expand "arlo_shift" into
19216         "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
19217         "logics_shift_imm".  Expand "arlo_shift_reg" into "alu_shift_reg",
19218         "alus_shift_reg", "logic_shift_reg", "logics_shift_reg".  Expand "clz"
19219         into "clz, "rbit".  Rename "shift" to "shift_imm".
19220         * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
19221         changes.  Update for attribute changes all occurrences of arlo_* and
19222         shift* types.
19223         * config/arm/arm-fixed.md: Update for attribute changes
19224         all occurrences of arlo_* types.
19225         * config/arm/thumb2.md: Update for attribute changes all occurrences
19226         of arlo_* types.
19227         * config/arm/arm.c (xscale_sched_adjust_cost):  (rtx insn, rtx
19228         (cortexa7_older_only): Likewise.
19229         (cortexa7_younger):  Likewise.
19230         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
19231         (1020alu_shift_op): Likewise.
19232         (1020alu_shift_reg_op): Likewise.
19233         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
19234         (alu_shift_op): Likewise.
19235         (alu_shift_reg_op): Likewise.
19236         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
19237         (11_alu_shift_op): Likewise.
19238         (11_alu_shift_reg_op): Likewise.
19239         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
19240         (9_alu_shift_reg_op): Likewise.
19241         * config/arm/cortex-a15.md (cortex_a15_alu): Update for
19242         attribute changes.
19243         (cortex_a15_alu_shift): Likewise.
19244         (cortex_a15_alu_shift_reg): Likewise.
19245         * config/arm/cortex-a5.md (cortex_a5_alu): Update for
19246         attribute changes.
19247         (cortex_a5_alu_shift): Likewise.
19248         * config/arm/cortex-a53.md (cortex_a53_alu): Update for
19249         attribute changes.
19250         (cortex_a53_alu_shift): Likewise.
19251         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
19252         attribute changes.
19253         (cortex_a7_alu_reg): Likewise.
19254         (cortex_a7_alu_shift): Likewise.
19255         * config/arm/cortex-a8.md (cortex_a8_alu): Update for
19256         attribute changes.
19257         (cortex_a8_alu_shift): Likewise.
19258         (cortex_a8_alu_shift_reg): Likewise.
19259         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
19260         (cortex_a9_dp_shift): Likewise.
19261         * config/arm/cortex-m4.md (cortex_m4_alu): Update for
19262         attribute changes.
19263         * config/arm/cortex-r4.md
19264         (cortex_r4_alu): Update for attribute changes.
19265         (cortex_r4_mov): Likewise.
19266         (cortex_r4_alu_shift_reg): Likewise.
19267         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
19268         (526_alu_shift_op): Likewise.
19269         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
19270         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
19271         (626te_alu_shift_op): Likewise.
19272         * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
19273         (726te_alu_shift_op): Likewise.
19274         (726te_alu_shift_reg_op): Likewise.
19275         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
19276         (mp626_alu_shift_op): Likewise.
19277         * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
19278         (pj4_alu_conds): Likewise.
19279         (pj4_shift): Likewise.
19280         (pj4_shift_conds): Likewise.
19281         (pj4_alu_shift): Likewise.
19282         (pj4_alu_shift_conds): Likewise.
19283         * config/aarch64/aarch64.md: Update for attribute change
19284         all occurrences of arlo_* and shift* types.
19286 2013-09-05  Mike Stump  <mikestump@comcast.net>
19288         * tree.h: Move documentation for tree_function_decl to tree-core.h
19289         with the declaration.
19291 2013-09-05  Peter Bergner  <bergner@vnet.ibm.com>
19293         PR target/58139
19294         * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
19295         looking for widest mode.
19297 2013-09-05  Eric Botcazou  <ebotcazou@adacore.com>
19299         * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
19301 2013-09-05  Richard Biener  <rguenther@suse.de>
19303         PR tree-optimization/58137
19304         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
19305         Do not create vectors of pointers.
19306         * tree-vect-loop.c (get_initial_def_for_induction): Use proper
19307         types for the components of the vector initializer.
19308         * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
19309         allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
19311 2013-09-05  Martin Jambor  <mjambor@suse.cz>
19313         * ipa-prop.c (remove_described_reference): Accept missing references,
19314         return false if that hppens, otherwise return true.
19315         (cgraph_node_for_jfunc): New function.
19316         (try_decrement_rdesc_refcount): Likewise.
19317         (try_make_edge_direct_simple_call): Use them.
19318         (ipa_edge_removal_hook): Remove references from rdescs.
19319         (ipa_edge_duplication_hook): Clone rdescs and their references
19320         when the new edge has the same caller as the old one.
19321         * cgraph.c (cgraph_resolve_speculation): Remove speculative
19322         reference before removing any edges.
19324 2013-09-05  Richard Earnshaw  <rearnsha@arm.com>
19326         * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
19327         initial store.
19328         * thumb2.md (thumb2_storewb_parisi): New pattern.
19330 2013-09-05  Yufeng Zhang  <yufeng.zhang@arm.com>
19332         * config/aarch64/aarch64-option-extensions.def: Add
19333         AARCH64_OPT_EXTENSION of 'crc'.
19334         * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
19335         (AARCH64_ISA_CRC): Ditto.
19336         * doc/invoke.texi (-march and -mcpu feature modifiers): Add
19337         description of the CRC extension.
19339 2013-09-05  Alexander Ivchenko  <alexander.ivchenko@intel.com>
19341         * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
19342         * config/rs6000/linux.h: Ditto.
19343         * alpha/linux.h: Ditto.
19344         * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
19345         no_c99_libc_has_function.
19346         * config/c6x/uclinux-elf.h: Ditto.
19347         * config/lm32/uclinux-elf.h: Ditto.
19348         * config/m68k/uclinux.h: Ditto.
19349         * config/moxie/uclinux.h: Ditto.
19350         * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
19351         (crisv32-*-linux*, cris-*-linux*): Ditto.
19352         * config/bfin/bfin.c: Include "tm_p.h".
19354 2013-09-05  Richard Biener  <rguenther@suse.de>
19356         * tree-vect-loop.c (vect_analyze_loop_operations): Properly
19357         check for a definition without a basic-block.
19359 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
19360             Sofiane Naci <sofiane.naci@arm.com>
19362         * config/aarch64/aarch64.md
19363         (*movti_aarch64): Rename r_2_f and f_2_r.
19364         (*movsf_aarch64): Likewise.
19365         (*movdf_aarch64): Likewise.
19366         (*movtf_aarch64): Likewise.
19367         (aarch64_movdi_<mode>low): Likewise.
19368         (aarch64_movdi_<mode>high): Likewise.
19369         (aarch64_mov<mode>high_di): Likewise.
19370         (aarch64_mov<mode>low_di): Likewise.
19371         (aarch64_movtilow_tilow): Likewise.
19372         * config/arm/arm.md (attribute "neon_type"): Delete.  Move attribute
19373         values to config/arm/types.md
19374         (attribute "conds"): Update for attribute change.
19375         (anddi3_insn): Likewise.
19376         (iordi3_insn): Likewise.
19377         (xordi3_insn): Likewise.
19378         (one_cmpldi2): Likewise.
19379         * config/arm/types.md (type): Add Neon types.
19380         * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
19381         use "type" attribute.
19382         (movmisalign<mode>_neon_store): Likewise.
19383         (movmisalign<mode>_neon_load): Likewise.
19384         (vec_set<mode>_internal): Likewise.
19385         (vec_setv2di_internal): Likewise.
19386         (vec_extract<mode>): Likewise.
19387         (vec_extractv2di): Likewise.
19388         (add<mode>3_neon): Likewise.
19389         (adddi3_neon): Likewise.
19390         (sub<mode>3_neon): Likewise.
19391         (subdi3_neon): Likewise.
19392         (mul<mode>3_neon): Likewise.
19393         (mul<mode>3add<mode>_neon): Likewise.
19394         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
19395         (fma<VCVTF:mode>4)): Likewise.
19396         (fma<VCVTF:mode>4_intrinsic): Likewise.
19397         (fmsub<VCVTF:mode>4)): Likewise.
19398         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
19399         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
19400         (ior<mode>3): Likewise.
19401         (and<mode>3): Likewise.
19402         (anddi3_neon): Likewise.
19403         (orn<mode>3_neon): Likewise.
19404         (orndi3_neon): Likewise.
19405         (bic<mode>3_neon): Likewise.
19406         (bicdi3_neon): Likewise.
19407         (xor<mode>3): Likewise.
19408         (one_cmpl<mode>2): Likewise.
19409         (abs<mode>2): Likewise.
19410         (neg<mode>2): Likewise.
19411         (umin<mode>3_neon): Likewise.
19412         (umax<mode>3_neon): Likewise.
19413         (smin<mode>3_neon): Likewise.
19414         (smax<mode>3_neon): Likewise.
19415         (vashl<mode>3): Likewise.
19416         (vashr<mode>3_imm): Likewise.
19417         (vlshr<mode>3_imm): Likewise.
19418         (ashl<mode>3_signed): Likewise.
19419         (ashl<mode>3_unsigned): Likewise.
19420         (neon_load_count): Likewise.
19421         (ashldi3_neon_noclobber): Likewise.
19422         (signed_shift_di3_neon): Likewise.
19423         (unsigned_shift_di3_neon): Likewise.
19424         (ashrdi3_neon_imm_noclobber): Likewise.
19425         (lshrdi3_neon_imm_noclobber): Likewise.
19426         (widen_ssum<mode>3): Likewise.
19427         (widen_usum<mode>3): Likewise.
19428         (quad_halves_<code>v4si): Likewise.
19429         (quad_halves_<code>v4sf): Likewise.
19430         (quad_halves_<code>v8hi): Likewise.
19431         (quad_halves_<code>v16qi): Likewise.
19432         (reduc_splus_v2di): Likewise.
19433         (neon_vpadd_internal<mode>): Likewise.
19434         (neon_vpsmin<mode>): Likewise.
19435         (neon_vpsmax<mode>): Likewise.
19436         (neon_vpumin<mode>): Likewise.
19437         (neon_vpumax<mode>): Likewise.
19438         (ss_add<mode>_neon): Likewise.
19439         (us_add<mode>_neon): Likewise.
19440         (ss_sub<mode>_neon): Likewise.
19441         (us_sub<mode>_neon): Likewise.
19442         (neon_vadd<mode>_unspec): Likewise.
19443         (neon_vaddl<mode>): Likewise.
19444         (neon_vaddw<mode>): Likewise.
19445         (neon_vhadd<mode>): Likewise.
19446         (neon_vqadd<mode>): Likewise.
19447         (neon_vaddhn<mode>): Likewise.
19448         (neon_vmul<mode>): Likewise.
19449         (neon_vmla<mode>): Likewise.
19450         (neon_vmlal<mode>): Likewise.
19451         (neon_vmls<mode>): Likewise.
19452         (neon_vmlsl<mode>): Likewise.
19453         (neon_vqdmulh<mode>): Likewise.
19454         (neon_vqdmlal<mode>): Likewise.
19455         (neon_vqdmlsl<mode>): Likewise.
19456         (neon_vmull<mode>): Likewise.
19457         (neon_vqdmull<mode>): Likewise.
19458         (neon_vsub<mode>_unspec): Likewise.
19459         (neon_vsubl<mode>): Likewise.
19460         (neon_vsubw<mode>): Likewise.
19461         (neon_vqsub<mode>): Likewise.
19462         (neon_vhsub<mode>): Likewise.
19463         (neon_vsubhn<mode>): Likewise.
19464         (neon_vceq<mode>): Likewise.
19465         (neon_vcge<mode>): Likewise.
19466         (neon_vcgeu<mode>): Likewise.
19467         (neon_vcgt<mode>): Likewise.
19468         (neon_vcgtu<mode>): Likewise.
19469         (neon_vcle<mode>): Likewise.
19470         (neon_vclt<mode>): Likewise.
19471         (neon_vcage<mode>): Likewise.
19472         (neon_vcagt<mode>): Likewise.
19473         (neon_vtst<mode>): Likewise.
19474         (neon_vabd<mode>): Likewise.
19475         (neon_vabdl<mode>): Likewise.
19476         (neon_vaba<mode>): Likewise.
19477         (neon_vabal<mode>): Likewise.
19478         (neon_vmax<mode>): Likewise.
19479         (neon_vmin<mode>): Likewise.
19480         (neon_vpaddl<mode>): Likewise.
19481         (neon_vpadal<mode>): Likewise.
19482         (neon_vpmax<mode>): Likewise.
19483         (neon_vpmin<mode>): Likewise.
19484         (neon_vrecps<mode>): Likewise.
19485         (neon_vrsqrts<mode>): Likewise.
19486         (neon_vqabs<mode>): Likewise.
19487         (neon_vqneg<mode>): Likewise.
19488         (neon_vcls<mode>): Likewise.
19489         (clz<mode>2): Likewise.
19490         (popcount<mode>2): Likewise.
19491         (neon_vrecpe): Likewise.
19492         (neon_vrsqrte): Likewise.
19493         (neon_vget_lane<mode>_sext_internal): Likewise.
19494         (neon_vget_lane<mode>_zext_internal): Likewise.
19495         (neon_vdup_n<mode>): Likewise.
19496         (neon_vdup_nv2di): Likewise.
19497         (neon_vdpu_lane<mode>_internal): Likewise.
19498         (neon_vswp<mode>): Likewise.
19499         (float<mode><V_cvtto>2): Likewise.
19500         (floatuns<mode><V_cvtto>2): Likewise.
19501         (fix_trunc<mode><V_cvtto>)2): Likewise
19502         (fixuns_trunc<mode><V_cvtto)2): Likewise.
19503         (neon_vcvt<mode>): Likewise.
19504         (neon_vcvtv4sfv4hf): Likewise.
19505         (neon_vcvtv4hfv4sf): Likewise.
19506         (neon_vcvt_n<mode>): Likewise.
19507         (neon_vmovn<mode>): Likewise.
19508         (neon_vqmovn<mode>): Likewise.
19509         (neon_vqmovun<mode>): Likewise.
19510         (neon_vmovl<mode>): Likewise.
19511         (neon_vmul_lane<mode>): Likewise.
19512         (neon_vmull_lane<mode>): Likewise.
19513         (neon_vqdmull_lane<mode>): Likewise.
19514         (neon_vqdmulh_lane<mode>): Likewise.
19515         (neon_vmla_lane<mode>): Likewise.
19516         (neon_vmlal_lane<mode>): Likewise.
19517         (neon_vqdmlal_lane<mode>): Likewise.
19518         (neon_vmls_lane<mode>): Likewise.
19519         (neon_vmlsl_lane<mode>): Likewise.
19520         (neon_vqdmlsl_lane<mode>): Likewise.
19521         (neon_vext<mode>): Likewise.
19522         (neon_vrev64<mode>): Likewise.
19523         (neon_vrev32<mode>): Likewise.
19524         (neon_vrev16<mode>): Likewise.
19525         (neon_vbsl<mode>_internal): Likewise.
19526         (neon_vshl<mode>): Likewise.
19527         (neon_vqshl<mode>): Likewise.
19528         (neon_vshr_n<mode>): Likewise.
19529         (neon_vshrn_n<mode>): Likewise.
19530         (neon_vqshrn_n<mode>): Likewise.
19531         (neon_vqshrun_n<mode>): Likewise.
19532         (neon_vshl_n<mode>): Likewise.
19533         (neon_vqshl_n<mode>): Likewise.
19534         (neon_vqshlu_n<mode>): Likewise.
19535         (neon_vshll_n<mode>): Likewise.
19536         (neon_vsra_n<mode>): Likewise.
19537         (neon_vsri_n<mode>): Likewise.
19538         (neon_vsli_n<mode>): Likewise.
19539         (neon_vtbl1v8qi): Likewise.
19540         (neon_vtbl2v8qi): Likewise.
19541         (neon_vtbl3v8qi): Likewise.
19542         (neon_vtbl4v8qi): Likewise.
19543         (neon_vtbx1v8qi): Likewise.
19544         (neon_vtbx2v8qi): Likewise.
19545         (neon_vtbx3v8qi): Likewise.
19546         (neon_vtbx4v8qi): Likewise.
19547         (neon_vtrn<mode>_internal): Likewise.
19548         (neon_vzip<mode>_internal): Likewise.
19549         (neon_vuzp<mode>_internal): Likewise.
19550         (neon_vld1<mode>): Likewise.
19551         (neon_vld1_lane<mode>): Likewise.
19552         (neon_vld1_dup<mode>): Likewise.
19553         (neon_vld1_dupv2di): Likewise.
19554         (neon_vst1<mode>): Likewise.
19555         (neon_vst1_lane<mode>): Likewise.
19556         (neon_vld2<mode>): Likewise.
19557         (neon_vld2_lane<mode>): Likewise.
19558         (neon_vld2_dup<mode>): Likewise.
19559         (neon_vst2<mode>): Likewise.
19560         (neon_vst2_lane<mode>): Likewise.
19561         (neon_vld3<mode>): Likewise.
19562         (neon_vld3qa<mode>): Likewise.
19563         (neon_vld3qb<mode>): Likewise.
19564         (neon_vld3_lane<mode>): Likewise.
19565         (neon_vld3_dup<mode>): Likewise.
19566         (neon_vst3<mode>): Likewise.
19567         (neon_vst3qa<mode>): Likewise.
19568         (neon_vst3qb<mode>): Likewise.
19569         (neon_vst3_lane<mode>): Likewise.
19570         (neon_vld4<mode>): Likewise.
19571         (neon_vld4qa<mode>): Likewise.
19572         (neon_vld4qb<mode>): Likewise.
19573         (neon_vld4_lane<mode>): Likewise.
19574         (neon_vld4_dup<mode>): Likewise.
19575         (neon_vst4<mode>): Likewise.
19576         (neon_vst4qa<mode>): Likewise.
19577         (neon_vst4qb<mode>): Likewise.
19578         (neon_vst4_lane<mode>): Likewise.
19579         (neon_vec_unpack<US>_lo_<mode>): Likewise.
19580         (neon_vec_unpack<US>_hi_<mode>): Likewise.
19581         (neon_vec_<US>mult_lo_<mode>): Likewise.
19582         (neon_vec_<US>mult_hi_<mode>): Likewise.
19583         (neon_vec_<US>shiftl_<mode>): Likewise.
19584         (neon_unpack<US>_<mode>): Likewise.
19585         (neon_vec_<US>mult_<mode>): Likewise.
19586         (vec_pack_trunc_<mode>): Likewise.
19587         (neon_vec_pack_trunk_<mode>): Likewise.
19588         (neon_vabd<mode>_2): Likewise.
19589         (neon_vabd<mode>_3): Likewise.
19590         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
19591         (thumb2_movsi_vfp): Likewise.
19592         (movdi_vfp): Likewise.
19593         (movdi_vfp_cortexa8): Likewise.
19594         (movhf_vfp_neon): Likewise.
19595         (movhf_vfp): Likewiwse.
19596         (movsf_vfp): Likewiwse.
19597         (thumb2_movsf_vfp): Likewiwse.
19598         (movdf_vfp): Likewise.
19599         (thumb2_movdf_vfp): Likewise.
19600         (movsfcc_vfp): Likewise.
19601         (thumb2_movsfcc_vfp): Likewise.
19602         (movdfcc_vfp): Likewise.
19603         (thumb2_movdfcc_vfp): Likewise.
19604         * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
19605         * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
19606         (v10_v2c): Likewise.
19607         * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
19608         attribute change.
19609         (cortex_a15_neon_int_2): Likewise.
19610         (cortex_a15_neon_int_3): Likewise.
19611         (cortex_a15_neon_int_4): Likewise.
19612         (cortex_a15_neon_int_5): Likewise.
19613         (cortex_a15_neon_vqneg_vqabs): Likewise.
19614         (cortex_a15_neon_vmov): Likewise.
19615         (cortex_a15_neon_vaba): Likewise.
19616         (cortex_a15_neon_vaba_qqq): Likewise.
19617         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19618         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
19619         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
19620         scalar_64_32_long_scalar): Likewise.
19621         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19622         (cortex_a15_neon_mla_qqq_8_16): Likewise.
19623         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
19624         lotype_qdd_64_32_long): Likewise.
19625         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
19626         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
19627         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
19628         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
19629         (cortex_a15_neon_shift_1): Likewise.
19630         (cortex_a15_neon_shift_2): Likewise.
19631         (cortex_a15_neon_shift_3): Likewise.
19632         (cortex_a15_neon_vshl_ddd): Likewise.
19633         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
19634         (cortex_a15_neon_vsra_vrsra): Likewise.
19635         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
19636         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
19637         (cortex_a15_neon_fp_vmul_ddd): Likewise.
19638         (cortex_a15_neon_fp_vmul_qqd): Likewise.
19639         (cortex_a15_neon_fp_vmla_ddd): Likewise.
19640         (cortex_a15_neon_fp_vmla_qqq): Likewise.
19641         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
19642         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
19643         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
19644         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
19645         (cortex_a15_neon_bp_simple): Likewise.
19646         (cortex_a15_neon_bp_2cycle): Likewise.
19647         (cortex_a15_neon_bp_3cycle): Likewise.
19648         (cortex_a15_neon_vld1_1_2_regs): Likewise.
19649         (cortex_a15_neon_vld1_3_4_regs): Likewise.
19650         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19651         (cortex_a15_neon_vld2_4_regs): Likewise.
19652         (cortex_a15_neon_vld3_vld4): Likewise.
19653         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19654         (cortex_a15_neon_vst1_3_4_regs): Likewise.
19655         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
19656         (cortex_a15_neon_vst3_vst4): Likewise.
19657         (cortex_a15_neon_vld1_vld2_lane): Likewise.
19658         (cortex_a15_neon_vld3_vld4_lane" 10
19659         (cortex_a15_neon_vst1_vst2_lane): Likewise.
19660         (cortex_a15_neon_vst3_vst4_lane): Likewise.
19661         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
19662         (cortex_a15_neon_ldm_2): Likewise.0
19663         (cortex_a15_neon_stm_2): Likewise.
19664         (cortex_a15_neon_mcr): Likewise.
19665         (cortex_a15_neon_mcr_2_mcrr): Likewise.
19666         (cortex_a15_neon_mrc): Likewise.
19667         (cortex_a15_neon_mrrc): Likewise.
19668         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
19669         change.
19670         (cortex_a15_alu_shift): Likewise.
19671         (cortex_a15_alu_shift_reg): Likewise.
19672         (cortex_a15_mult32): Likewise.
19673         (cortex_a15_mult64): Likewise.
19674         (cortex_a15_block): Likewise.
19675         (cortex_a15_branch): Likewise.
19676         (cortex_a15_load1): Likewise.
19677         (cortex_a15_load3): Likewise.
19678         (cortex_a15_store1): Likewise.
19679         (cortex_a15_store3): Likewise.
19680         (cortex_a15_call): Likewise.
19681         * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
19682         (cortex_a5_f2r): Likewise.
19683         * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
19684         change.
19685         (cortex_a53_f2r): Likewise.
19686         * config/arm/cortex-a7.md
19687         (cortex_a7_branch): Update for attribute change.
19688         (cortex_a7_call): Likewise.
19689         (cortex_a7_alu_imm): Likewise.
19690         (cortex_a7_alu_reg): Likewise.
19691         (cortex_a7_alu_shift): Likewise.
19692         (cortex_a7_mul): Likewise.
19693         (cortex_a7_load1): Likewise.
19694         (cortex_a7_store1): Likewise.
19695         (cortex_a7_load2): Likewise.
19696         (cortex_a7_store2): Likewise.
19697         (cortex_a7_load3): Likewise.
19698         (cortex_a7_store3): Likewise.
19699         (cortex_a7_load4): Likewise.
19700         (cortex_a7_store4): Likewise.
19701         (cortex_a7_fpalu): Likewise.
19702         (cortex_a7_fconst): Likewise.
19703         (cortex_a7_fpmuls): Likewise.
19704         (cortex_a7_neon_mul): Likewise.
19705         (cortex_a7_fpmacs): Likewise.
19706         (cortex_a7_neon_mla: Likewise.
19707         (cortex_a7_fpmuld: Likewise.
19708         (cortex_a7_fpmacd: Likewise.
19709         (cortex_a7_fpfmad: Likewise.
19710         (cortex_a7_fdivs: Likewise.
19711         (cortex_a7_fdivd: Likewise.
19712         (cortex_a7_r2f: Likewise.
19713         (cortex_a7_f2r: Likewise.
19714         (cortex_a7_f_flags: Likewise.
19715         (cortex_a7_f_loads: Likewise.
19716         (cortex_a7_f_loadd: Likewise.
19717         (cortex_a7_f_stores: Likewise.
19718         (cortex_a7_f_stored: Likewise.
19719         (cortex_a7_neon): Likewise.
19720         * config/arm/cortex-a8-neon.md
19721         (cortex_a8_neon_mrc): Update for attribute change.
19722         (cortex_a8_neon_mrrc): Likewise.
19723         (cortex_a8_neon_int_1): Likewise.
19724         (cortex_a8_neon_int_2): Likewise.
19725         (cortex_a8_neon_int_3): Likewise.
19726         (cortex_a8_neon_int_4): Likewise.
19727         (cortex_a8_neon_int_5): Likewise.
19728         (cortex_a8_neon_vqneg_vqabs): Likewise.
19729         (cortex_a8_neon_vmov): Likewise.
19730         (cortex_a8_neon_vaba): Likewise.
19731         (cortex_a8_neon_vaba_qqq): Likewise.
19732         (cortex_a8_neon_vsma): Likewise.
19733         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19734         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
19735         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
19736         long_scalar): Likewise.
19737         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19738         (cortex_a8_neon_mla_qqq_8_16): Likewise.
19739         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
19740         long_scalar_qdd_64_32_long): Likewise.
19741         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
19742         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
19743         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
19744         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
19745         (cortex_a8_neon_shift_1): Likewise.
19746         (cortex_a8_neon_shift_2): Likewise.
19747         (cortex_a8_neon_shift_3): Likewise.
19748         (cortex_a8_neon_vshl_ddd): Likewise.
19749         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
19750         (cortex_a8_neon_vsra_vrsra): Likewise.
19751         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
19752         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
19753         (cortex_a8_neon_fp_vsum): Likewise.
19754         (cortex_a8_neon_fp_vmul_ddd): Likewise.
19755         (cortex_a8_neon_fp_vmul_qqd): Likewise.
19756         (cortex_a8_neon_fp_vmla_ddd): Likewise.
19757         (cortex_a8_neon_fp_vmla_qqq): Likewise.
19758         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
19759         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
19760         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
19761         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
19762         (cortex_a8_neon_bp_simple): Likewise.
19763         (cortex_a8_neon_bp_2cycle): Likewise.
19764         (cortex_a8_neon_bp_3cycle): Likewise.
19765         (cortex_a8_neon_ldr): Likewise.
19766         (cortex_a8_neon_str): Likewise.
19767         (cortex_a8_neon_vld1_1_2_regs): Likewise.
19768         (cortex_a8_neon_vld1_3_4_regs): Likewise.
19769         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19770         (cortex_a8_neon_vld2_4_regs): Likewise.
19771         (cortex_a8_neon_vld3_vld4): Likewise.
19772         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19773         (cortex_a8_neon_vst1_3_4_regs): Likewise.
19774         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
19775         (cortex_a8_neon_vst3_vst4): Likewise.
19776         (cortex_a8_neon_vld1_vld2_lane): Likewise.
19777         (cortex_a8_neon_vld3_vld4_lane): Likewise.
19778         (cortex_a8_neon_vst1_vst2_lane): Likewise.
19779         (cortex_a8_neon_vst3_vst4_lane): Likewise.
19780         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
19781         (cortex_a8_neon_mcr): Likewise.
19782         (cortex_a8_neon_mcr_2_mcrr): Likewise.
19783         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
19784         * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
19785         change.
19786         (ca9_neon_mrrc): Likewise.
19787         (cortex_a9_neon_int_1): Likewise.
19788         (cortex_a9_neon_int_2): Likewise.
19789         (cortex_a9_neon_int_3): Likewise.
19790         (cortex_a9_neon_int_4): Likewise.
19791         (cortex_a9_neon_int_5): Likewise.
19792         (cortex_a9_neon_vqneg_vqabs): Likewise.
19793         (cortex_a9_neon_vmov): Likewise.
19794         (cortex_a9_neon_vaba): Likewise.
19795         (cortex_a9_neon_vaba_qqq): Likewise.
19796         (cortex_a9_neon_vsma): Likewise.
19797         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19798         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
19799         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
19800         long_scalar): Likewise.
19801         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19802         (cortex_a9_neon_mla_qqq_8_16): Likewise.
19803         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
19804         long_scalar_qdd_64_32_long): Likewise.
19805         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
19806         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
19807         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
19808         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
19809         (cortex_a9_neon_shift_1): Likewise.
19810         (cortex_a9_neon_shift_2): Likewise.
19811         (cortex_a9_neon_shift_3): Likewise.
19812         (cortex_a9_neon_vshl_ddd): Likewise.
19813         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
19814         (cortex_a9_neon_vsra_vrsra): Likewise.
19815         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
19816         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
19817         (cortex_a9_neon_fp_vsum): Likewise.
19818         (cortex_a9_neon_fp_vmul_ddd): Likewise.
19819         (cortex_a9_neon_fp_vmul_qqd): Likewise.
19820         (cortex_a9_neon_fp_vmla_ddd): Likewise.
19821         (cortex_a9_neon_fp_vmla_qqq): Likewise.
19822         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
19823         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
19824         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
19825         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
19826         (cortex_a9_neon_bp_simple): Likewise.
19827         (cortex_a9_neon_bp_2cycle): Likewise.
19828         (cortex_a9_neon_bp_3cycle): Likewise.
19829         (cortex_a9_neon_ldr): Likewise.
19830         (cortex_a9_neon_str): Likewise.
19831         (cortex_a9_neon_vld1_1_2_regs): Likewise.
19832         (cortex_a9_neon_vld1_3_4_regs): Likewise.
19833         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19834         (cortex_a9_neon_vld2_4_regs): Likewise.
19835         (cortex_a9_neon_vld3_vld4): Likewise.
19836         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19837         (cortex_a9_neon_vst1_3_4_regs): Likewise.
19838         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
19839         (cortex_a9_neon_vst3_vst4): Likewise.
19840         (cortex_a9_neon_vld1_vld2_lane): Likewise.
19841         (cortex_a9_neon_vld3_vld4_lane): Likewise.
19842         (cortex_a9_neon_vst1_vst2_lane): Likewise.
19843         (cortex_a9_neon_vst3_vst4_lane): Likewise.
19844         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
19845         (cortex_a9_neon_mcr): Likewise.
19846         (cortex_a9_neon_mcr_2_mcrr): Likewise.
19847         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
19848         (cortex_a9_fps): Likewise.
19849         * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
19850         change.
19851         (cortex_m4_fmuls): Likewise.
19852         * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
19853         change.
19854         (cortex_r4_mrc): Likewise.
19855         * config/arm/iterators.md: Update comment referring to neon_type.
19856         * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
19857         (iwmmxt_movsi_insn): Likewise.
19858         * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
19859         attribute change.
19860         (pj4_core_to_vfp): Likewise.
19861         * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
19862         attribute change.
19863         * config/arm/vfp11.md (vfp_fload): Update for attribute change.
19864         (vfp_fstore): Likewise.
19865         * doc/md.texi: Change references to neon_type to refer to type.
19867 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
19869         * tree.h (DECL_BUILT_IN): Fix typo in comment.
19871 2013-09-04  David Edelsohn  <dje.gcc@gmail.com>
19873         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
19874         lglobl if not weak.
19876 2013-09-04  Easwaran Raman  <eraman@google.com>
19878         PR middle-end/57370
19879         * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
19880         (build_and_add_sum): Use it.
19881         (appears_later_in_bb): Simplify code.
19883 2013-09-04  Teresa Johnson  <tejohnson@google.com>
19885         * dumpfile.c (dump_finish): Don't close stderr/stdout.
19887 2013-09-04  James Greenhalgh  <james.greenhalgh@arm.com>
19889         * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
19891 2013-09-04  Jan Hubicka  <jh@suse.cz>
19893         * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
19894         * ipa-devirt.c: Include diganostic.h
19895         (odr_type_d): Add types and types_set.
19896         (hash_type_name): Work for types with vtables during LTO.
19897         (odr_hasher::remove): Fix comment; destroy types_set.
19898         (add_type_duplicate): New function,
19899         (get_odr_type): Use it.
19900         (dump_type_inheritance_graph): Dump type duplicates.
19901         * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
19902         graph.
19903         * tree.c (types_same_for_odr): Give exact answers on types with
19904         virtual tables.
19906 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
19908         * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
19909         explaining their differences.
19911 2013-09-04  Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
19913         * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
19915 2013-09-03  Jeff Law  <law@redhat.com>
19917         * tree-ssa-threadedge.c (thread_across_edge): Record entire path
19918         when not threading through a joiner block.  Pass joiner/no joiner
19919         state to register_jump_thread.
19920         * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
19921         state from argument rather than implying on path length.
19922         Dump the entire jump thread path into debugging dump.
19923         * tree-flow.h (register_jump_thread): Update prototype.
19925 2013-08-29  Xinliang David Li  <davidxl@google.com>
19927         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19928         Remove a trivial gcc_assert.
19930 2013-08-29  Xinliang David Li  <davidxl@google.com>
19932         * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
19933         * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
19934         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19935         Delay base decl alignment adjustment.
19936         * tree-vectorizer.c (vect_destroy_datarefs): New function.
19937         * tree-vectorizer.h: New data structure.
19938         (set_dr_misalignment): New function.
19939         (dr_misalignment): Ditto.
19940         * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
19941         (vectorizable_load): Ditto.
19942         (ensure_base_align): New function.
19943         (vectorize_loops): Add dbg_cnt support.
19944         (execute_vect_slp): Ditto.
19945         * dbgcnt.def: New debug counter.
19946         * Makefile: New dependency.
19948 2013-09-03  Meador Inge  <meadori@codesourcery.com>
19950         Revert:
19952         2013-08-30  Meador Inge  <meadori@codesourcery.com>
19954         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
19956 2013-09-03  David Edelsohn  <dje.gcc@gmail.com>
19958         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
19959         function descriptor.
19961 2013-09-03  Richard Biener  <rguenther@suse.de>
19963         * tree-affine.c (add_elt_to_tree): Fix association issue,
19964         avoid useless converts and make sure to always return a
19965         properly typed result.
19967 2013-09-03  Richard Biener  <rguenther@suse.de>
19969         PR middle-end/57656
19970         * fold-const.c (negate_expr_p): Fix division case.
19971         (negate_expr): Likewise.
19973 2013-09-03  Richard Biener  <rguenther@suse.de>
19975         PR lto/58285
19976         * tree-streamer-out.c: Include tm.h.
19977         * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
19979 2013-09-03  Jan Hubicka  <jh@suse.cz>
19981         * tree-profile.c (tree_profiling): Cleanup CFG when done.
19983 2013-09-03  Alan Modra  <amodra@gmail.com>
19985         * config.gcc (powerpc*-*-linux*): Add support for little-endian
19986         multilibs to big-endian target and vice versa.
19987         * config/rs6000/t-linux64: Use := assignment on all vars.
19988         (MULTILIB_EXTRA_OPTS): Remove fPIC.
19989         (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
19990         * config/rs6000/t-linux64le: New file.
19991         * config/rs6000/t-linux64bele: New file.
19992         * config/rs6000/t-linux64lebe: New file.
19994 2013-09-02  Jan Hubicka  <jh@suse.cz>
19996         * ipa-inline-transform.c (inline_transform): Do not
19997         optimize_inline_calls when not optimizing.
19999 2013-09-02  Jan Hubicka  <jh@suse.cz>
20001         * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
20002         duplicated nodes for assembler names.
20003         * symtab.c (symtab_unregister_node): Do not attempt to unlink
20004         hard registers from assembler name hash.
20006 2013-09-02  Jan Hubicka  <jh@suse.cz>
20008         * ipa-split.c (execute_split_functions): Split externally visible
20009         functions called once.
20011 2013-09-02  Martin Jambor  <mjambor@suse.cz>
20013         PR ipa/58106
20014         * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
20015         linked list.  When finding the correct duplicate, also consider also
20016         the caller in additon to its inlined_to node.
20018 2013-09-02  James Greenhalgh  <james.greenhalgh@arm.com>
20020         * config/aarch64/aarch64-simd-builtins.def
20021         (dup_lane_scalar): Remove.
20022         * config/aarch64/aarch64-simd.md
20023         (aarch64_simd_dup): Add 'w->w' alternative.
20024         (aarch64_dup_lane<mode>): Allow for VALL.
20025         (aarch64_dup_lane_scalar<mode>): Remove.
20026         (aarch64_dup_lane_<vswap_width_name><mode>): New.
20027         (aarch64_get_lane_signed<mode>): Add w->w altenative.
20028         (aarch64_get_lane_unsigned<mode>): Likewise.
20029         (aarch64_get_lane<mode>): Likewise.
20030         * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
20031         (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
20032         * config/aarch64/iterators.md (VSWAP_WIDTH): New.
20033         (VCON): Change container of V2SF.
20034         (vswap_width_name): Likewise.
20035         * config/aarch64/arm_neon.h
20036         (__aarch64_vdup_lane_any): New.
20037         (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
20038         (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
20039         (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
20041 2013-09-02  Eric Botcazou  <ebotcazou@adacore.com>
20043         PR middle-end/56382
20044         * expr.c (emit_move_complex): Do not move complex FP values as parts if
20045         the source or the destination is a single hard register.
20047 2013-09-02  Richard Biener  <rguenther@suse.de>
20049         PR middle-end/57511
20050         * tree-scalar-evolution.c (instantiate_scev_name): Allow
20051         non-linear SCEVs.
20053 2013-09-02  Richard Biener  <rguenther@suse.de>
20055         * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
20056         arithmetic to sizetype.
20058 2013-09-02  Bin Cheng  <bin.cheng@arm.com>
20060         * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
20061         Find auto-increment use both before and after candidate.
20063 2013-09-02  Marek Polacek  <polacek@redhat.com>
20065         * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
20067 2013-09-01  Jan Hubicka  <jh@suse.cz>
20069         * Makefile.in: Add ipa-profile.o
20070         (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
20071         * cgraph.c (struct cgraph_propagate_frequency_data,
20072         cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
20073         ipa-profile.c; replace cgraph_ by ipa_ prefix.
20074         * cgraph.h (cgraph_propagate_frequency): Remove.
20075         * ipa-inline-analysis.c: Include ipa-utils.h;
20076         drop duplicated cfgloop.h.
20077         (inline_update_callee_summaries): Update.
20078         * ipa-profile.c: New file.
20079         * ipa-utils.h (ipa_propagate_frequency): Declare.
20080         * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
20081         data-streamer.h, value-prof.h.
20082         (symtab_remove_unreachable_nodes): Update profile.
20083         (struct histogram_entry, histogram, histogram_pool, histogram_hash,
20084         account_time_size, cmp_counts, dump_histogram,
20085         ipa_profile_generate_summary, ipa_profile_write_summary,
20086         ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
20087         pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
20088         Move to ipa-profile.c.
20090 2013-09-01  John David Anglin  <danglin@gcc.gnu.org>
20092         * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
20094 2013-09-01  Jan Hubicka  <jh@suse.cz>
20096         * common.opt (fdevirtualize-speculatively): New function.
20097         * invoke.texi (fdevirtualize-speculatively): Document.
20098         * ipa-devirt.c: Include ipa-inline.h
20099         (likely_target_p): New function.
20100         (ipa_devirt): New function.
20101         (gate_ipa_devirt): New function.
20102         (pass_data_ipa_devirt): New static var.
20103         (pass_ipa_devirt): Likewise.
20104         (make_pass_ipa_devirt): New function.
20105         * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
20106         (common_handle_option): Disable devirtualization when
20107         value range profiling is available.
20108         * passes.def (pass_ipa_devirt): Add.
20109         * timever.def (TV_IPA_DEVIRT): New timevar.
20110         * tree-pass.h (make_pass_ipa_devirt):
20112 2013-09-01  Iain Sandoe  <iain@codesourcery.com>
20114         * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
20115         include sanitize(undefined).
20117 2013-08-31  Diego Novillo  <dnovillo@google.com>
20119         * Makefile.in (TREE_CORE_H): Define.
20120         (TREE_H): Use.
20121         (GTFILES): Add tree-core.h.
20122         * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
20123         size the array.
20124         * tree-core.h: New file.
20125         Move all data structures, enum, typedefs, global
20126         declarations and constants from ...
20127         * tree.h: ... here.
20129 2013-08-31  Jan Hubicka  <jh@suse.cz>
20131         * bulitins.c (expand_builtin): Do not early exit for gcov
20132         instrumented functions.
20134 2013-08-31  Marek Polacek  <polacek@redhat.com>
20136         * ubsan.c: Include tm_p.h.
20138 2013-08-31  Jan Hubicka  <jh@suse.cz>
20140         * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
20141         warning.
20143         * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
20144         * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
20145         * tree-cfg.c (verify_gimple_label): ... here.
20146         * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
20147         (ipa_merge_profiles): New function.
20148         * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
20149         (lto_input_function_body): Likewise.
20150         * ipa-utils.h (ipa_merge_profiles): Declare.
20151         * lto-streamer.h (lto_input_function_body): Update prototype.
20152         (emit_label_in_global_context_p): Remove.
20153         * lto-symtab.c: Include ipa-utils.h
20154         (lto_cgraph_replace_node): Use ipa_merge_profiles.
20156 2013-08-31  Jan Hubicka  <jh@suse.cz>
20158         * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
20160 2013-08-31  Jan Hubicka  <jh@suse.cz>
20162         * basic-block.h (apply_scale): Make scale parmeter gcov_type.
20164 2013-08-31  Uros Bizjak  <ubizjak@gmail.com>
20166         * config/alpha/alpha.c (alpha_emit_conditional_move): Update
20167         "cmp" RTX before signed_comparison_operator check to account
20168         for "code" changes.
20170 2013-08-30  Jan Hubicka  <jh@suse.cz>
20172         * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
20173         (detect_type_change_1): Rename to ...
20174         (detect_type_change): ... this one; early return on non-polymorphic
20175         types.
20176         (detect_type_change_ssa): Add comp_type parameter; update
20177         use of detect_type_change.
20178         (compute_complex_assign_jump_func): Add param_type parameter;
20179         update use of detect_type_change_ssa.
20180         (compute_complex_ancestor_jump_func): Likewise.
20181         (ipa_get_callee_param_type): New function.
20182         (ipa_compute_jump_functions_for_edge): Compute parameter type;
20183         update calls to the jump function computation functions.
20185 2013-08-30  Teresa Johnson  <tejohnson@google.com>
20186             Steven Bosscher  <steven@gcc.gnu.org>
20188         * cfgrtl.c (fixup_new_cold_bb): New routine.
20189         (commit_edge_insertions): Invoke fixup_partitions.
20190         (find_partition_fixes): New routine.
20191         (fixup_partitions): Ditto.
20192         (verify_hot_cold_block_grouping): Update comments.
20193         (rtl_verify_edges): Invoke find_partition_fixes.
20194         (rtl_verify_bb_pointers): Update comments.
20195         (rtl_verify_bb_layout): Ditto.
20196         * basic-block.h (probably_never_executed_edge_p): Declare.
20197         (fixup_partitions): Ditto.
20198         * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
20199         * bb-reorder.c (sanitize_hot_paths): New function.
20200         (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
20201         sanitize_hot_paths.
20202         * predict.c (probably_never_executed_edge_p): New routine.
20203         * cfg.c (check_bb_profile): Add partition insanity warnings.
20205 2013-08-30  Meador Inge  <meadori@codesourcery.com>
20207         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
20209 2013-08-30  Marek Polacek  <polacek@redhat.com>
20211         * Makefile.in (ubsan.o): Add.
20212         (c-family/c-ubsan.o): Add.
20213         (builtins.o): Add ubsan.h dependency.
20214         * ubsan.h: New file.
20215         * ubsan.c: New file.
20216         * common.opt: Add -fsanitize=undefined option.
20217         (flag_sanitize): Add variable.
20218         (fsanitize=): Add option.  Add Driver.
20219         (fsanitize=thread): Remove option.
20220         (fsanitize=address): Likewise.
20221         (static-libubsan): New option.
20222         * doc/invoke.texi: Document the new flag and -static-libubsan.
20223         * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
20224         (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
20225         * builtin-attrs.def (ATTR_COLD): Define.
20226         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
20227         * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
20228         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
20229         * flag-types.h (sanitize_code): New enum.
20230         * opts.c (common_handle_option): Parse command line arguments
20231         of -fsanitize=.  Add -fsanitize=unreachable option.
20232         * varasm.c (get_variable_section): Adjust.
20233         (assemble_noswitch_variable): Likewise.
20234         (assemble_variable): Likewise.
20235         (output_constant_def_contents): Likewise.
20236         (categorize_decl_for_section): Likewise.
20237         (place_block_symbol): Likewise.
20238         (output_object_block): Likewise.
20239         * builtins.def: Likewise.
20240         * toplev.c (compile_file): Likewise.
20241         (process_options): Likewise.
20242         * cppbuiltin.c: Likewise.
20243         * tsan.c (tsan_pass): Likewise.
20244         (tsan_gate): Likewise.
20245         (tsan_gate_O0): Likewise.
20246         * cfgexpand.c (partition_stack_vars): Likewise.
20247         (expand_stack_vars): Likewise.
20248         (defer_stack_allocation): Likewise.
20249         (expand_used_vars): Likewise.
20250         * cfgcleanup.c (old_insns_match_p): Likewise.
20251         * asan.c (asan_finish_file): Likewise.
20252         (asan_instrument): Likewise.
20253         (gate_asan): Likewise.
20254         (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
20255         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
20256         (asan_global_struct): Use pointer_sized_int_node instead
20257         calling build_nonstandard_integer_type.
20258         (initialize_sanitizer_builtins): Likewise.
20259         (asan_finish_file): Likewise.
20260         * gcc.c: Document %{%:function(args):X}.
20261         (static_spec_functions): Add sanitize.
20262         (handle_spec_function): Add retval_nonnull argument and if non-NULL,
20263         store funcval != NULL there.
20264         (do_spec_1): Adjust handle_spec_function caller.
20265         (handle_braces): Allow %:function(args) as condition.
20266         (sanitize_spec_function): New function.
20267         (ADD_STATIC_LIBUBSAN_LIBS): Define.
20268         (LIBUBSAN_SPEC): Likewise.
20269         (LIBUBSAN_EARLY_SPEC): Likewise.
20270         (SANITIZER_SPEC): Handle libubsan.
20271         (SANITIZER_EARLY_SPEC): Likewise.
20272         * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
20273         instead of fsanitize=address.
20274         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
20275         instead of fsanitize=address*.
20276         * builtins.c: Include ubsan.h.
20277         (fold_builtin_0): Instrument __builtin_unreachable.
20278         * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
20279         instead of flag_asan.
20280         * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
20281         (pointer_sized_int_node): Define.
20282         * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
20284 2013-08-30  Mike Stump  <mikestump@comcast.net>
20286         * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
20287         with RE patterns.
20289 2013-08-29  Jan Hubicka  <jh@suse.cz>
20291         * cgraph.c (cgraph_function_body_availability): Handle weakref
20292         correctly.
20293         * passes.def: Remove pass_fixup_cfg.
20294         * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
20295         track when we need to remove functions.
20296         (gate_ipa_inline): Execute inlining always; add comment why.
20297         (pass_data_ipa_inline): Remove TODO_remove_functions.
20298         * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
20299         do not produce summaries.
20300         * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
20301         (symtab_nonoverwritable_alias): Assert we are not called on weakref.
20302         * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
20303         constant pool and vtable.
20305 2013-08-30  Tejas Belagod  <tejas.belagod@arm.com>
20307         * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
20308         New arm_neon.h's internal macros to specify 64-bit constants.
20309         Avoid using stdint.h's macros.
20311 2013-08-30  Joern Rennecke  <joern.rennecke@embecosm.com>
20313         * recog.c (verify_changes): Verify that changes[i].old is non-zero
20314         before applying REG_P.
20316 2013-08-30  Jakub Jelinek  <jakub@redhat.com>
20318         PR tree-optimization/58277
20319         * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
20320         after seeing too many stmts with vdef in between dombb and current
20321         bb, invalidate everything.
20323 2013-08-30  Richard Biener  <rguenther@suse.de>
20325         * fold-const.c (fold_single_bit_test): Fix overflow test.
20327 2013-08-30  Eric Botcazou  <ebotcazou@adacore.com>
20329         * function.c (assign_parm_setup_reg): For a parameter passed by pointer
20330         and which can live in a register, always retrieve the value on entry.
20331         * var-tracking.c (add_stores): Treat the copy on entry for a parameter
20332         passed by invisible reference specially.
20333         (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
20334         (vt_add_function_parameter): Correctly deal with a parameter passed by
20335         invisible reference.
20337 2013-08-30  Jan Hubicka  <jh@suse.cz>
20339         * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
20341 2013-08-30  Richard Biener  <rguenther@suse.de>
20343         PR tree-optimization/58228
20344         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
20345         allow invariant loads in nested loop vectorization.
20347 2013-08-30  Richard Biener  <rguenther@suse.de>
20349         PR tree-optimization/58223
20350         * tree-loop-distribution.c (has_anti_dependence): Rename to ...
20351         (has_anti_or_output_dependence): ... this and adjust to also
20352         look for output dependences.
20353         (mark_nodes_having_upstream_mem_writes): Adjust.
20354         (rdg_flag_uses): Likewise.
20356 2013-08-30  Richard Biener  <rguenther@suse.de>
20358         PR tree-optimization/58010
20359         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
20360         assert that we have a loop-closed PHI.
20362 2013-08-29  Jan Hubicka  <jh@suse.cz>
20364         * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
20365         * cgraph.c (cgraph_release_function_body): Free decl_in_state.
20366         * lto-section-in.c (lto_free_function_in_decl_state): New function.
20367         (lto_free_function_in_decl_state_for_node): New function.
20369 2013-08-29  Xinliang David Li  <davidxl@google.com>
20371         * loop-unroll.c (report_unroll_peel): Minor message change.
20372         * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
20373         Emit alignment peeling message with default -fopt-info.
20374         (vect_loop_versioning): Emit loop version info message.
20375         * tree-vectorizer.c (vectorize_loops): Minor message change.
20376         (execute_vect_slp): Ditto.
20378 2013-08-29  Eric Botcazou  <ebotcazou@adacore.com>
20380         * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
20381         of the clone from the DECL_NAME of the original function.
20383 2013-08-29  Oleg Endo  <olegendo@gcc.gnu.org>
20385         * passes.c (register_pass): Add overload.
20386         * tree-pass.h (register_pass): Forward declare it.  Add comment.
20388 2013-08-29  Jan Hubicka  <jh@suse.cz>
20390         * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
20391         DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
20392         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
20393         DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
20394         (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
20395         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
20396         Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
20397         (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
20399 2013-08-29  Teresa Johnson  <tejohnson@google.com>
20401         * dumpfile.c (dump_loc): Output column number.
20402         * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
20403         * doc/invoke.texi: Document optall -fopt-info flag.
20404         * profile.c (read_profile_edge_counts): Use new dump framework.
20405         (compute_branch_probabilities): Ditto.
20406         * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
20407         when pass not in any opt group.
20408         * pass_manager.h (pass_manager::get_pass_profile): New method.
20409         * value-prof.c (check_counter): Use new dump framework.
20410         (check_ic_target): Ditto.
20411         * coverage.c (get_coverage_counts): Ditto.
20412         (coverage_init): Setup new dump framework.
20414 2013-08-29  Richard Biener  <rguenther@suse.de>
20416         PR tree-optimization/58246
20417         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
20418         handle the dominance check inside a basic-block.
20420 2013-08-29  Richard Biener  <rguenther@suse.de>
20422         PR middle-end/57287
20423         * tree-ssa-copy.c (may_propagate_copy): Allow propagating
20424         of default defs that appear in abnormal PHI nodes.
20426 2013-08-29  Richard Biener  <rguenther@suse.de>
20428         PR tree-optimization/57685
20429         * tree-vrp.c (register_edge_assert_for_1): Recurse only for
20430         single-use operands to avoid exponential complexity.
20432 2013-08-28  Dehao Chen  <dehao@google.com>
20434         * ipa-inline.c (edge_badness): Fix integer underflow.
20436 2013-08-28  Uros Bizjak  <ubizjak@gmail.com>
20438         * gtm-builtins.def (_ITM_free): Declare leaf.
20440 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
20442         PR target/58067
20443         * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
20444         (*tls_local_dynamic_base_64_largepic): Likewise.
20445         (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
20446         Remove predicate from call operand.
20447         * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
20448         return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
20450 2013-08-28  Jeff Law  <law@redhat.com>
20452         * tree-ssa-threadedge.c (thread_around_empty_block): Remove
20453         checks for the number of predecessors and successors allowed.
20454         * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
20455         which require copying a joiner block if there is a request which
20456         is a subpath that requires no joiner block copying.
20458 2013-08-28  Jan Hubicka  <jh@suse.cz>
20460         * lto-streamer-out.c (DFS_write_tree_body): Drop
20461         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
20462         (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
20463         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
20464         * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
20465         Do not read DECL_ERROR_ISSUED.
20466         (unpack_ts_decl_with_vis_value_fields): Do not read
20467         DECL_DEFER_OUTPUT.
20468         (lto_input_ts_binfo_tree_pointers): Do not read
20469         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
20470         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
20471         write DECL_ERROR_ISSUED..
20472         (pack_ts_decl_with_vis_value_fields): Do not write
20473         DECL_DEFER_OUTPUT.
20474         (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
20475         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
20476         * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
20477         * tree.h (tree_decl_common): Update comment.
20478         (DECL_ERROR_ISSUED): Remove.
20480 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
20482         PR middle-end/58257
20483         * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
20485 2013-08-28  Jan Hubicka  <jh@suse.cz>
20487         * builtins.def (free): Declare leaf.
20489 2013-08-27  David Malcolm  <dmalcolm@redhat.com>
20491         * gdbhooks.py: New.
20492         * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
20493         * configure: Regenerate.
20495 2013-08-27  Martin Jambor  <mjambor@suse.cz>
20497         * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
20498         (ipa_ancestor_jf_data): Likewise.
20499         (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
20500         (ipa_get_jf_pass_through_type_preserved): New function.
20501         (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
20502         (ipa_get_jf_ancestor_type_preserved): New function.
20503         * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
20504         (ipa_get_jf_ancestor_result): Likewise.
20505         (propagate_vals_accross_pass_through): Use
20506         ipa_get_jf_pass_through_result to do all the value mappings.
20507         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
20508         type_preserved flag.
20509         (ipa_set_jf_cst_copy): New function.
20510         (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
20511         (ipa_set_jf_arith_pass_through): Likewise.
20512         (ipa_set_ancestor_jf): Likewise.
20513         (compute_complex_assign_jump_func): Set type_preserved instead of
20514         punting.
20515         (ipa_compute_jump_functions_for_edge): Likewise.
20516         (combine_known_type_and_ancestor_jfs): Honor type_preserved.
20517         (update_jump_functions_after_inlining): Update type_preserved.
20518         Explicitely create jump functions when combining one with pass_through.
20519         (ipa_write_jump_function): Stream the type_preserved flags.
20520         (ipa_read_jump_function): Likewise.
20522 2013-08-27  Jakub Jelinek  <jakub@redhat.com>
20523             Aldy Hernandez  <aldyh@redhat.com>
20525         * Makefile.in (omp-low.o): Depend on $(TARGET_H).
20526         * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
20527         * function.h (struct function): Add has_force_vect_loops and
20528         has_simduid_loops.
20529         * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
20530         * gimple.c (gimple_build_omp_critical): Add KIND argument and
20531         handle it.
20532         * gimple.def: Update CLAUSES comments.
20533         * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
20534         (gimple_build_omp_for): Add argument to prototype.
20535         (gimple_omp_for_kind): New.
20536         (gimple_omp_for_set_kind): New.
20537         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
20538         GOVD_DATA_SHARE_CLASS.
20539         (enum omp_region_type): Add ORT_SIMD.
20540         (gimple_add_tmp_var): Handle ORT_SIMD.
20541         (gimplify_var_or_parm_decl): Same.
20542         (is_gimple_stmt): Same.
20543         (omp_firstprivatize_variable): Same.
20544         (omp_add_variable): Only use splay_tree_insert if lookup failed.
20545         (omp_notice_variable): Handle ORT_SIMD.
20546         (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
20547         (omp_check_private): Handle ORT_SIMD.
20548         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
20549         OMP_CLAUSE_SAFELEN.
20550         (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
20551         Handle OMP_CLAUSE_LASTPRIVATE.
20552         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
20553         OMP_CLAUSE_SAFELEN.
20554         (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
20555         (gimplify_expr): Handle OMP_SIMD.
20556         * internal-fn.c (expand_GOMP_SIMD_LANE): New.
20557         (expand_GOMP_SIMD_VF): New.
20558         (expand_GOMP_SIMD_LAST_LANE): New.
20559         * internal-fn.def (GOMP_SIMD_LANE): New.
20560         (GOMP_SIMD_VF): New.
20561         (GOMP_SIMD_LAST_LANE): New.
20562         * omp-low.c: Include target.h.
20563         (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
20564         OMP_CLAUSE_SAFELEN.
20565         (check_omp_nesting_restrictions): Same.
20566         (omp_max_vf): New.
20567         (lower_rec_simd_input_clauses): New.
20568         (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
20569         OMP_CLAUSE_LINEAR.
20570         (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
20571         GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
20572         (expand_omp_build_assign): New.
20573         (expand_omp_for_init_counts): New.
20574         (expand_omp_for_init_vars): New.
20575         (extract_omp_for_update_vars): New.
20576         (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
20577         and rewrite accordingly.
20578         (expand_omp_simd): New.
20579         (expand_omp_for): Use expand_omp_simd.
20580         (lower_omp_for_lastprivate): Unshare vinit when appropriate.
20581         (lower_omp_for): Do not lower the body.
20582         * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
20583         in their own loops.
20584         * tree-flow.h (find_omp_clause): Remove prototype.
20585         * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
20586         forcing vectorization of the loop, or if flag_tree_vectorize.
20587         (gate_tree_if_conversion): Similarly.
20588         * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
20589         gimple_build_omp_for.
20590         (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
20591         * tree-parloops (create_parallel_loop): Pass kind argument to
20592         gimple_build_omp_for.
20593         * tree-pretty-print.c (dump_omp_clause): Add cases for
20594         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
20595         OMP_CLAUSE__SIMDUID_.
20596         (dump_generic_node): Handle OMP_SIMD.
20597         * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
20598         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
20599         unroll OMP_SIMD loops here.
20600         * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
20601         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
20602         loop->safelen.
20603         (vect_analyze_data_refs): Handle simd loops.
20604         * tree-vect-loop.c (vectorizable_live_operation): Handle
20605         IFN_GOMP_SIMD*.
20606         * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
20607         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
20608         (vectorizable_load): Same.
20609         * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
20610         (struct simduid_to_vf): New.
20611         (simduid_to_vf::hash): New.
20612         (simduid_to-vf::equal): New.
20613         (struct simd_array_to_simduid): New.
20614         (simd_array_to_simduid::hash): New.
20615         (simd_array_to_simduid::equal): New.
20616         (adjust_simduid_builtins): New.
20617         (struct note_simd_array_uses_struct): New.
20618         (note_simd_array_uses_cb): New.
20619         (note_simd_array_uses): New.
20620         (vectorize_loops): Handle simd hints and adjust simd builtins
20621         accordingly.
20622         * tree-vectorizer.h (struct _stmt_vec_info): Add
20623         simd_lane_access_p field.
20624         (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
20625         * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
20626         OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
20627         (omp_clause_code_name): Same.
20628         (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
20629         OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
20630         * tree.def (OMP_SIMD): New entry.
20631         * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
20632         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
20633         (OMP_CLAUSE_DECL): Adjust range for new clauses.
20634         (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
20635         (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
20636         (OMP_CLAUSE_LINEAR_STEP): New.
20637         (OMP_CLAUSE_SAFELEN_EXPR): New.
20638         (OMP_CLAUSE__SIMDUID__DECL): New.
20639         (find_omp_clause): New prototype.
20641 2013-08-27  H.J. Lu  <hongjiu.lu@intel.com>
20643         * config/i386/driver-i386.c (host_detect_local_cpu): Update
20644         Haswell processor detection.
20646 2013-08-27  Christian Widmer  <shadow@umbrox.de>
20648         PR target/57927
20649         * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
20650         of Ivy Bridge and Haswell processors.  Assume core-avx2 for unknown
20651         AVX2 capable processors.
20653 2013-08-27  Tejas Belagod  <tejas.belagod@arm.com>
20655         * config/aarch64/arm_neon.h: Replace all inline asm implementations
20656         of vget_low_* with implementations in terms of other intrinsics.
20658 2013-08-27  Marc Glisse  <marc.glisse@inria.fr>
20660         PR middle-end/57219
20661         * doc/extend.texi (__builtin_isinf_sign): Restrict the return
20662         values to -1, 0 and 1.
20664 2013-08-27  Vidya Praveen  <vidyapraveen@arm.com>
20666         * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
20667         UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
20668         (<optab><mode>3_insn): Remove.
20669         (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
20670         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
20671         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
20672         (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
20673         (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
20674         (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
20675         (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
20676         (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
20677         (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
20678         (ror<mode>3_insn): Likewise.
20679         * config/aarch64/predicates.md (aarch64_simd_register): New.
20681 2013-08-27  Richard Biener  <rguenther@suse.de>
20683         PR tree-optimization/57521
20684         * tree-if-conv.c (if_convertible_bb_p): Verify that at least
20685         one edge is non-critical.
20686         (find_phi_replacement_condition): Make sure to use a non-critical
20687         edge.  Cleanup and remove old bug workarounds.
20688         (bb_postdominates_preds): Remove.
20689         (if_convertible_loop_p_1): Do not compute post-dominators.
20690         (combine_blocks): Do not free post-dominators.
20691         (main_tree_if_conversion): Likewise.
20692         (pass_data_if_conversion): Add TODO_verify_ssa.
20694 2013-08-27  DJ Delorie  <dj@redhat.com>
20696         * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
20698 2013-08-27  Yufeng Zhang  <yufeng.zhang@arm.com>
20700         * function.c (assign_parm_find_data_types): Set passed_mode and
20701         nominal_mode to the TYPE_MODE of nominal_type for the built
20702         pointer type in case of the struct-pass-by-reference.
20704 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
20706         * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
20707         (UINT16_TYPE): Change default to "unsigned int".
20709         * config/avr/avr.opt (mfract-convert-truncate): New option.
20710         * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
20711         is set, round negative fractional integers according to n1169
20712         when converting to integer types.
20714 2013-08-26  Jan Hubicka  <jh@suse.cz>
20716         * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
20717         methods can not be called indirectly when their address is not taken.
20719 2013-08-26  Jan Hubicka  <jh@suse.cz>
20721         * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
20722         ctor_for_folding.
20724 2013-08-26  Jan Hubicka  <jh@suse.cz>
20726         * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
20727         can be unshared.
20729 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
20731         * reload.c (find_valid_class): Allow classes that do not include
20732         FIRST_PSEUDO_REGISTER - 1.
20734 2013-08-26  Jan Hubicka  <jh@suse.cz>
20736         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
20737         fix edge count/frequency when speculation failed; fix type check
20738         for the direct call.
20740 2013-08-26  Jan Hubicka  <jh@suse.cz>
20742         * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
20744 2013-08-26  Jan Hubicka  <jh@suse.cz>
20746         * ipa-inline-transform.c (inline_transform): Be ready for basic block
20747         to be changed by edge redirection.
20749 2013-08-26  Jan Hubicka  <jh@suse.cz>
20751         * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
20752         formating; add sanity check.
20753         (cgraph_resolve_speculation): Add FIXME about scaling profiles.
20754         (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
20755         * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
20756         (resolve_noninline_speculation): Update callee keys, too.
20758 2013-08-26  Jan Hubicka  <jh@suse.cz>
20760         * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
20761         (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
20763 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
20765         * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
20766         into proper place.
20768 2013-08-26  Uros Bizjak  <ubizjak@gmail.com>
20770         * config/i386/i386.c (ix86_debug_options): Remove prototype.
20771         (x86_64_elf_select_section): Ditto.
20772         (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
20773         arguments.
20774         (ix86_pass_by_reference): Ditto.
20775         (output_set_got): Ditto.
20776         (ix86_unary_operator_ok): Ditto.
20777         (ix86_expand_builtin): Ditto.
20779 2013-08-23  Jan Hubicka  <jh@suse.cz>
20781         * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
20783 2013-08-23  Jan Hubicka  <jh@suse.cz>
20785         * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
20786         (tree_decl_with_vis): Add FINAL field.
20788 2013-08-23  Jeff Law  <law@redhat.com>
20790         * tree-ssa-pre.c (do_regular_insertion): Include the expression in
20791         the debugging dump when the expression is fully redundant.
20793 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20795         * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
20796         * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
20797         * pretty-print.c (pp_formatted_text_data): Likewise.
20798         (pp_write_text_to_stream): Likewise.
20799         (pp_write_text_as_dot_label_to_stream): Likewise.
20800         (pp_append_r): Likewise.
20801         (pp_format): Likewise.
20802         (pp_flush): Likewise.
20803         (pp_clear_output_area): Likewise.
20804         (pp_append_text): Likewise.
20805         (pp_formatted_text): Likewise.
20806         (pp_remaining_character_count_for_line): Likewise.
20807         (pp_newline): Likewise.
20808         (pp_character): Likewise.
20809         (output_buffer::~output_buffer): Define.
20810         (pretty_printer::~pretty_printer): Destruct output buffer.
20811         * pretty-print.h (output_buffer::~output_buffer): Declare.
20812         (pretty_printer::~pretty_printer): Declare virtual.
20814 2013-08-24  Marc Glisse  <marc.glisse@inria.fr>
20816         PR other/57324
20817         * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
20818         HOST_WIDE_INT_M1U): New macros.
20819         * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
20820         fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
20821         unsigned -1 for lshift.
20822         * cse.c (cse_insn): Likewise.
20823         * double-int.c (rshift_double, lshift_double): Likewise.
20824         * builtins.c (fold_builtin_bitop): Likewise.
20825         * combine.c (force_to_mode): Likewise.
20826         * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
20827         * simplify-rtx.c (simplify_const_unary_operation,
20828         simplify_const_binary_operation): Likewise.
20829         * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
20830         check_va_list_escapes): Likewise.
20831         * rtlanal.c (nonzero_bits1): Likewise.
20832         * expmed.c (expand_smod_pow2): Likewise.
20833         * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
20835 2013-08-23  Jan Hubicka  <jh@suse.cz>
20837         * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
20838         as having address taken.
20840 2013-08-23  Jan Hubicka  <jh@suse.cz>
20842         * ipa-utils.h (method_class_type): Declare.
20843         * ipa-devirt.c (method_class_type): Export.
20845         * cgraphunit.c (analyze_functions): Do basic devirtualization;
20846         do not walk base classes of anonymous types.
20848 2013-08-23  Kaz Kojima  <kkojima@gcc.gnu.org>
20850         PR rtl-optimization/58220
20851         PR regression/58221
20852         * final.c (reemit_insn_block_notes): Use NEXT_INSN to
20853         handle SEQUENCE insns properly.
20855 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20857         * pretty-print.h (pp_newline_and_flush): Declare.  Remove macro
20858         definition.
20859         (pp_newline_and_indent): Likewise.
20860         (pp_separate_with): Likewise.
20861         * pretty-print.c (pp_newline_and_flush): Define.
20862         (pp_newline_and_indent): Likewise.
20863         (pp_separate_with): Likewise.
20865 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
20867         PR target/58218
20868         * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
20869         * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
20871 2013-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
20873         * config/i386/predicates.md (ext_sse_reg_operand): New.
20874         * config/i386/i386.md (*movti_internal): Use
20875         predicate to determine if EVEX is needed.
20876         (*movsi_internal): Ditto.
20877         (*movdf_internal): Ditto.
20878         (*movsf_internal): Ditto.
20879         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
20881 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
20883         PR tree-optimization/58209
20884         * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
20885         (find_tail_calls): Give up for pointer result types if m is non-NULL.
20886         (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
20887         emit POINTER_PLUS_EXPR.
20888         (create_tailcall_accumulator): For pointer result type accumulate in
20889         sizetype type.
20891 2013-08-22  Paolo Carlini  <paolo.carlini@oracle.com>
20893         * configure.ac: Add backslashes missing from the last change.
20894         * configure: Regenerate.
20896 2013-08-22  Jan Hubicka  <jh@susue.cz>
20898         * ipa.c (function_and_variable_visibility): First remember function
20899         was global and then make it local.
20901 2013-08-22  Julian Brown  <julian@codesourcery.com>
20903         * configure.ac: Add aarch64 to list of arches which use "nop" in
20904         debug_line test.
20905         * configure: Regenerate.
20907 2013-08-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20909         * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
20910         gnu_libc_has_function.
20911         * config/s390/tpf.h: Likewise.
20913 2013-08-22  Jan Hubicka  <jh@susue.cz>
20915         * timevar.c (validate_phases): Add cast.
20917 2013-08-22  Jan Hubicka  <jh@susue.cz>
20919         * timevar.c (validate_phases): Use size_t for memory.
20920         * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
20922 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20924         * pretty-print.h (output_buffer::output_buffer): Declare.
20925         (pretty_printer::pretty_printer): Likewise.
20926         (pp_construct): Remove.
20927         * pretty-print.c (output_buffer::output_buffer): Define.
20928         (pretty_printer::pretty_printer): Rename from pp_construct.  Simplify.
20929         * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
20930         (print_gimple_expr): Likewise.
20931         (print_gimple_seq): Likewise.
20932         (gimple_dump_bb): Likewise.
20933         * sched-vis.c (dump_value_slim): Likewise.
20934         (dump_insn_slim): Likewise.
20935         (dump_rtl_slim): Likewise.
20936         (str_pattern_slim): Likewise.
20937         * tree-mudflap.c (mf_varname_tree): Likewise.
20938         * graph.c (print_graph_cfg): Likewise.
20939         (start_graph_dump): Likewise.
20940         * tree-pretty-print.c (maybe_init_pretty_print): Likewise.  Use
20941         placement-new.
20942         * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
20943         pretty printer initialization.
20944         * coretypes.h (diagnostic_context): Remove superflous type alias
20945         declaration.
20946         (pretty_printer): Likewise.  Declare directly as a class.
20947         (pretty_print_info): Remove declaration as class.
20948         * asan.c (asan_emit_stack_protection): Remove call to pp_construct
20949         and pp_clear_output_area.
20950         (asan_add_global): Likewise.
20952 2013-08-22  Jan Hubicka  <jh@suse.cz>
20954         * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
20955         * ipa-utils.h (update_type_inheritance_graph): Declare.
20956         (possible_polymorphic_call_target_p): Declare.
20957         (possible_polymorphic_call_target_p): New.
20958         * ipa-devirt.c: Update toplevel comments.
20959         (cached_polymorphic_call_targets): Move up.
20960         (odr_type_d): Move ID down.
20961         (polymorphic_type_binfo_p): Update comment.
20962         (odr_hasher::remove): Likewise;
20963         (get_odr_type): Set anonymous_namespace.
20964         (dump_odr_type): Dump it.
20965         (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
20966         (maybe_record_node): Record node in cached_polymorphic_call_targets.
20967         (record_binfo): Add comment.
20968         (free_polymorphic_call_targets_hash): Do not ICE when cache is not
20969         built.
20970         (devirt_node_removal_hook): Do not iCE when cache is freed.
20971         (possible_polymorphic_call_target_p): New predicate.
20972         (update_type_inheritance_graph): New function.
20974 2013-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
20975             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
20976             Sergey Lega  <sergey.s.lega@intel.com>
20977             Anna Tikhonova  <anna.tikhonova@intel.com>
20978             Ilya Tocar  <ilya.tocar@intel.com>
20979             Andrey Turetskiy  <andrey.turetskiy@intel.com>
20980             Ilya Verbin  <ilya.verbin@intel.com>
20981             Kirill Yukhin  <kirill.yukhin@intel.com>
20982             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
20984         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
20985         (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
20986         (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
20987         (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
20988         (OPTION_MASK_ISA_AVX2_UNSET): Update.
20989         (OPTION_MASK_ISA_AVX512F_UNSET): New.
20990         (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
20991         (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
20992         (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
20993         (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
20994         OPT_mavx512pf, OPT_mavx512er cases.
20995         * config/i386/constraints.md (v): New constraint.
20996         (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
20997         * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
20998         (bit_AVX512CD): New.
20999         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
21000         AVX512F, AVX512ER, AVX512PF, AVX512CD features.
21001         * config/i386/i386-c.c (ix86_target_macros_internal):
21002         Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
21003         __AVX512PF__.
21004         * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
21005         (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
21006         * config/i386/i386.c (regclass_map, dbx_register_map)
21007         (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
21008         (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
21009         (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
21010         -mavx512pf options.
21011         (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
21012         PTA_AVX512PF, PTA_AVX512CD.  Handle -mavx512f, -mavx512er, -mavx512cd,
21013         -mavx512pf options.  Fix formatting.
21014         (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
21015         targets.  Squash EVEX_SSE_REGS if AVX512F is disabled.
21016         (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
21017         -mavx512cd, -mavx512pf options.
21018         (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
21019         (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
21020         (ix86_preferred_output_reload_class): Replace SSE_REGS with
21021         ALL_SSE_REGS.
21022         (ix86_hard_regno_mode_ok): Support 512-bit registers.
21023         (ix86_set_reg_reg_cost): Ditto.
21024         (x86_order_regs_for_local_alloc): Ditto.
21025         (MAX_VECT_LEN): Extend to 64-byte.
21026         (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
21027         * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
21028         (TARGET_AVX512ER, TARGET_AVX512CD): New.
21029         (BIGGEST_ALIGNMENT): Extend to 512-bits.
21030         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
21031         (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
21032         (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
21033         (SSE_REG_MODE_P): Support new modes.
21034         (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
21035         (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
21036         (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
21037         (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
21038         (REG_CLASS_CONTENTS): Add new registers.
21039         (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
21040         (EXT_REX_SSE_REGNO_P): New.
21041         (HI_REGISTER_NAMES): Add new registers.
21042         * config/i386/i386.md: Define constants for new registers.
21043         (mode): Add new 512-bit modes.
21044         (prefix): Support evex prefix.
21045         (isa): Support avx512f, noavx512f, fma_avx512f.
21046         (ssemodesuffix): Add new 512-bit modes.
21047         (movxi): New.
21048         (*movxi_internal_avx512f): Ditto.
21049         (*movdi_internal): Replace constraint "x" with the new constraint "v".
21050         Support MODE_XI.
21051         (*movsi_internal): Likewise.
21052         (*movdf_internal): Likewise.
21053         (*movsf_internal): Likewise.
21054         (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
21055         (<code><mode>3): Likewise.
21056         * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
21057         New.
21058         * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
21059         with the new constraint "v".
21060         * config/i386/sse.md (*mov<mode>_internal): Support new registers and
21061         modes.
21062         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
21063         with the new constraint "v".
21064         (<sse2>_loaddqu<avxsizesuffix>): Likewise.
21065         (<sse2>_storedqu<avxsizesuffix>): Likewise.
21066         (*<plusminus_insn><mode>3): Likewise.
21067         (<sse>_vm<plusminus_insn><mode>3): Likewise.
21068         (*mul<mode>3): Likewise.
21069         (<sse>_vmmul<mode>3): Likewise.
21070         (<sse>_div<mode>3): Likewise.
21071         (<sse>_vmdiv<mode>3): Likewise.
21072         (<sse>_sqrt<mode>2): Likewise.
21073         (<sse>_vmsqrt<mode>2): Likewise.
21074         (*<code><mode>3_finite): Likewise.
21075         (*<code><mode>3) <smaxmin>: Likewise.
21076         (<sse>_vm<code><mode>3): Likewise.
21077         (*<code><mode>3) <any_logic>: Likewise.
21078         (*fma_fmadd_<mode>): Likewise.
21079         (*fma_fmsub_<mode>): Likewise.
21080         (*fma_fnmadd_<mode>): Likewise.
21081         (*fma_fnmsub_<mode>): Likewise.
21082         (*fma_fmaddsub_<mode>): Likewise.
21083         (*fma_fmsubadd_<mode>): Likewise.
21084         (*fmai_fmadd_<mode>): Likewise.
21085         (*fmai_fmsub_<mode>): Likewise.
21086         (*fmai_fnmadd_<mode>): Likewise.
21087         (*fmai_fnmsub_<mode>): Likewise.
21088         (sse_cvtsi2ss): Likewise.
21089         (sse_cvtsi2ssq): Likewise.
21090         (sse_cvtss2si): Likewise.
21091         (sse_cvtss2si_2): Likewise.
21092         (sse_cvtss2siq): Likewise.
21093         (sse_cvtss2siq_2): Likewise.
21094         (sse_cvttss2si): Likewise.
21095         (sse_cvtss2siq_2): Likewise.
21096         (float<sseintvecmodelower><mode>2): Likewise.
21097         (sse2_cvtsd2si_2): Likewise.
21098         (sse2_cvtsd2siq_2): Likewise.
21099         (*<plusminus_insn><mode>3): Likewise.
21100         (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
21101         (*<sse4_1_avx2>_mul<mode>3): Likewise.
21102         (ashr<mode>3): Likewise.
21103         (<shift_insn><mode>3): Likewise.
21104         (avx2_<code><mode>3): Likewise.
21105         (*avx2_<code><mode>3): Likewise.
21106         (*andnot<mode>3): Likewise.
21107         (*<code><mode>3) <any_logic>: Likewise.
21108         (abs<mode>2): Likewise.
21109         (avx2_permvar<mode>): Likewise.
21110         (avx2_perm<mode>_1): Likewise.
21111         (*avx_vpermilp<mode>): Likewise.
21112         (avx_vpermilvar<mode>3): Likewise.
21113         (avx2_ashrv<mode>): Likewise.
21114         (avx2_<shift_insn>v<mode>): Likewise.
21115         * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
21116         -mavx512cd.
21117         * doc/rtl.texi: Document XImode.
21119 2013-08-21  Jeff Law  <law@redhat.com>
21121         * tree-flow.h (register_jump_thread): Pass vector of edges
21122         instead of each important edge.
21123         * tree-ssa-threadedge.c (thread_across_edge): Build the jump
21124         thread path into a vector and pass that to register_jump_thread.
21125         * tree-ssa-threadupdate.c (register_jump_thread): Conver the
21126         passed in edge vector to the current 3-edge form.
21128         Revert:
21129         2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
21131         * dce.c (fini_dce): Call df_analyze again just in case
21132         delete_unmarked_insns removed anything.
21134 2013-08-21  Joern Rennecke  <joern.rennecke@embecosm.com>
21136         * reload.h (struct reg_equivs): Rename to ..
21137         (struct reg_equivs_s): .. this.
21139 2013-08-20  Martin Liska  <marxin.liska@gmail.com>
21141         * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
21143 2013-08-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21145         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
21147 2013-08-21  Jeff Law  <law@redhat.com>
21149         * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
21150         simplify assignments too.  If the RHS collapses to a singleton
21151         range, then return the value for the range.
21153 2013-08-21  Kirill Yukhin  <kirill.yukhin@intel.com>
21155         * config/i386/sse.md (V16): Rename to...
21156         (VMOVE): this.
21157         (mov<mode>): Update iterator name.
21158         (*mov<mode>_internal): Ditto.
21159         (push<mode>1): Ditto.
21160         (movmisalign<mode>): Ditto.
21162 2013-08-20  Jan Hubicka  <jh@suse.cz>
21164         PR bootstrap/58186
21165         * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
21166         entry for direct edges.
21167         (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
21169 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
21171         Revert my last two changes, r201865 and r201864:
21173         Revert r201865:
21174         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
21176         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
21177         instances can own GC refs.
21179         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
21180         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
21181         (gcc::context::gt_pch_nx): Likewise.
21182         (gcc::context::gt_pch_nx):  Likewise.
21183         * ggc.h (gt_ggc_mx <T>): New.
21184         (gt_pch_nx_with_op <T>): New.
21185         (gt_pch_nx <T>): New.
21186         * passes.c (opt_pass::gt_ggc_mx): New.
21187         (opt_pass::gt_pch_nx): New.
21188         (opt_pass::gt_pch_nx_with_op): New.
21189         (pass_manager::gt_ggc_mx): New.
21190         (pass_manager::gt_pch_nx): New.
21191         (pass_manager::gt_pch_nx_with_op): New.
21192         (pass_manager::operator new): Use
21193         ggc_internal_cleared_alloc_stat rather than xcalloc.
21194         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
21195         (pass_manager::gt_ggc_mx): New.
21196         (pass_manager::gt_pch_nx): New.
21197         (pass_manager::gt_pch_nx_with_op): New.
21198         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
21199         (opt_pass::operator new): New.
21200         (opt_pass::gt_ggc_mx): New.
21201         (opt_pass::gt_pch_nx): New.
21202         (opt_pass::gt_pch_nx_with_op): New.
21204         Revert r201864:
21205         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
21207         * Makefile.in (GTFILES): Add context.h.
21208         * context.c (gcc::context::operator new): New.
21209         (gcc::context::gt_ggc_mx): New.
21210         (gcc::context::gt_pch_nx): New.
21211         (gcc::context::gt_pch_nx): New.
21212         * context.h (gcc::context): Add GTY((user)) marking.
21213         (gcc::context::operator new): New.
21214         (gcc::context::gt_ggc_mx): New.
21215         (gcc::context::gt_pch_nx): New.
21216         (gcc::context::gt_pch_nx): New.
21217         (g): Add GTY marking.
21218         (gt_ggc_mx (gcc::context *)): New.
21219         (gt_pch_nx (gcc::context *)): New.
21220         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
21221         void *cookie)): New.
21222         * gengtype.c (open_base_files) <ifiles>: Add context.h.
21224 2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
21226         * dce.c (fini_dce): Call df_analyze again just in case
21227         delete_unmarked_insns removed anything.
21229 2013-08-20  Teresa Johnson  <tejohnson@google.com>
21231         PR rtl-optimizations/57451
21232         * final.c (reemit_insn_block_notes): Prevent lexical blocks
21233         from crossing split section boundaries.
21235 2013-08-20  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
21237         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
21238         * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
21239         with MULTLIB_DEFAULTS.
21241 2013-08-20  Nick Clifton  <nickc@redhat.com>
21243         * target.def (narrow_volatile_bitfield): Note that the default
21244         value is false, not !TARGET_STRICT_ALIGN.
21245         * doc/tm.texi: Regenerate.
21247 2013-08-20  Pavel Chupin  <pavel.v.chupin@intel.com>
21249         Fix LIB_SPEC for systems without libpthread.
21251         * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
21252         * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
21253         for Android.
21254         * config/i386/linux-common.h: Likewise.
21255         * config/mips/linux-common.h: Likewise.
21257 2013-08-20  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
21259         * tree-ssa-ccp.c (get_default_value): Remove redundant condition
21260         checks.
21262 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
21264         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
21265         instances can own GC refs.
21267         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
21268         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
21269         (gcc::context::gt_pch_nx): Likewise.
21270         (gcc::context::gt_pch_nx):  Likewise.
21271         * ggc.h (gt_ggc_mx <T>): New.
21272         (gt_pch_nx_with_op <T>): New.
21273         (gt_pch_nx <T>): New.
21274         * passes.c (opt_pass::gt_ggc_mx): New.
21275         (opt_pass::gt_pch_nx): New.
21276         (opt_pass::gt_pch_nx_with_op): New.
21277         (pass_manager::gt_ggc_mx): New.
21278         (pass_manager::gt_pch_nx): New.
21279         (pass_manager::gt_pch_nx_with_op): New.
21280         (pass_manager::operator new): Use
21281         ggc_internal_cleared_alloc_stat rather than xcalloc.
21282         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
21283         (pass_manager::gt_ggc_mx): New.
21284         (pass_manager::gt_pch_nx): New.
21285         (pass_manager::gt_pch_nx_with_op): New.
21286         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
21287         (opt_pass::operator new): New.
21288         (opt_pass::gt_ggc_mx): New.
21289         (opt_pass::gt_pch_nx): New.
21290         (opt_pass::gt_pch_nx_with_op): New.
21292 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
21294         * Makefile.in (GTFILES): Add context.h.
21295         * context.c (gcc::context::operator new): New.
21296         (gcc::context::gt_ggc_mx): New.
21297         (gcc::context::gt_pch_nx): New.
21298         (gcc::context::gt_pch_nx): New.
21299         * context.h (gcc::context): Add GTY((user)) marking.
21300         (gcc::context::operator new): New.
21301         (gcc::context::gt_ggc_mx): New.
21302         (gcc::context::gt_pch_nx): New.
21303         (gcc::context::gt_pch_nx): New.
21304         (g): Add GTY marking.
21305         (gt_ggc_mx (gcc::context *)): New.
21306         (gt_pch_nx (gcc::context *)): New.
21307         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
21308         void *cookie)): New.
21309         * gengtype.c (open_base_files) <ifiles>: Add context.h.
21311 2013-08-20  Alan Modra  <amodra@gmail.com>
21313         PR target/57865
21314         * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
21315         (rs6000_emit_epilogue): Likewise.
21317 2013-08-19  Dehao Chen  <dehao@google.com>
21319         * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
21321 2013-08-19  Peter Bergner  <bergner@vnet.ibm.com>
21322             Jakub Jelinek  <jakub@redhat.com>
21324         * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
21325         (BUILT_IN_FABSD64): Likewise.
21326         (BUILT_IN_FABSD128): Likewise.
21327         * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
21328         (fold_builtin_1): Likewise.
21329         * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
21330         destination and source operands.
21331         (*abstd2_fpr): Likewise.
21332         (*nabstd2_fpr): Likewise.
21334 2013-08-19  Richard Sandiford  <rdsandiford@googlemail.com>
21336         * config/mips/mips.c (mips_adjust_insn_length): Add checks for
21337         JUMP_P and INSN_P.
21339 2013-08-19  Aldy Hernandez  <aldyh@redhat.com>
21341         * doc/invoke.texi (-fcilkplus): Clarify that implementation is
21342         incomplete.
21344 2013-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
21346         * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
21347         * builtins.c (default_libc_has_function): New.
21348         (gnu_libc_has_function): Ditto.
21349         (no_c99_libc_has_function): Ditto.
21350         (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
21351         instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
21352         (fold_builtin_sincos): Likewise.
21353         (fold_builtin_cexp): Likewise.
21354         * builtins.def (DEF_C94_BUILTIN): Likewise.
21355         (DEF_C99_BUILTIN): Likewise.
21356         (DEF_C99_C90RES_BUILTIN): Likewise.
21357         (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
21358         definitions to using this define.
21359         * config/darwin-protos.h (darwin_libc_has_function): New.
21360         * config/darwin.c (darwin_libc_has_function): Ditto.
21361         * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
21362         TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
21363         * config/darwin.h: Ditto.
21364         * config/elfos.h: Ditto.
21365         * config/freebsd.h: Ditto.
21366         * config/i386/cygming.h: Ditto.
21367         * config/i386/djgpp.h: Ditto.
21368         * config/i386/i386-interix.h: Ditto.
21369         * config/microblaze/microblaze.h: Ditto.
21370         * config/mmix/mmix.h: Ditto.
21371         * config/gnu-user.h: Ditto.
21372         * config/ia64/hpux.h: Ditto.
21373         * config/pa/pa-hpux.h: Ditto.
21374         * config/pdp11/pdp11.h: Ditto.
21375         * config/picochip/picochip.h: Ditto.
21376         * config/linux.h: Ditto.
21377         * config/netbsd.h: Ditto.
21378         * config/openbsd.h: Ditto.
21379         * config/rs6000/aix43.h: Ditto.
21380         * config/rs6000/aix51.h: Ditto.
21381         * config/rs6000/aix52.h: Ditto.
21382         * config/rs6000/aix53.h: Ditto.
21383         * config/rs6000/aix61.h: Ditto.
21384         * config/rs6000/darwin.h: Ditto.
21385         * config/rs6000/linux.h: Ditto.
21386         * config/rs6000/linux64.h: Ditto.
21387         * config/s390/tpf.h: Ditto.
21388         * config/sol2-10.h: Ditto.
21389         * config/sol2.h: Ditto.
21390         * config/vms/vms.h: Ditto.
21391         * config/vxworks.h: Ditto.
21392         * config/linux-android.c (linux_android_libc_has_function):
21393         New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
21394         * config/linux-protos.h (linux_android_libc_has_function):
21395         New declaration.
21396         * config/i386/i386.c (ix86_libc_has_function): New.
21397         * config/i386/i386-protos.h
21398         (ix86_libc_has_function): New declaration.
21399         * config/i386/i386.md
21400         ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
21401         ("isinf<mode>2): Likewise.
21402         * convert.c (convert_to_integer): Using new target hook
21403         TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
21404         TARGET_C99_FUNCTIONS.
21405         * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
21406         * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
21407         * coretypes.h (function_class): New enum for different
21408         classes of functions.
21409         * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
21410         * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
21411         (TARGET_HAS_SINCOS): Likewise.
21412         (TARGET_LIBC_HAS_FUNCTION): New.
21413         * doc/tm.texi: Regenerated.
21414         * targhooks.h (default_libc_has_function): New declaration.
21415         (no_c99_libc_has_function): Ditto.
21416         (gnu_libc_has_function): Ditto.
21417         * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
21418         and TARGET_HAS_SINCOS.
21420 2013-08-18  Jan Hubicka  <jh@suse.cz>
21422         * Makeifle-in (ipa-devirt.o): New.
21423         (GTFILES): Add ipa-utils.h and ipa-devirt.c
21424         * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
21425         (analyze_functions): Look into possible targets of polymorphic call.
21426         * dumpfile.c (dump_files): Add type-inheritance dump.
21427         * dumpfile.h (TDI_inheritance): New.
21428         * ipa-devirt.c: New file.
21429         * ipa-utils.h (odr_type_d): Forward declare.
21430         (odr_type): New type.
21431         (build_type_inheritance_graph): Declare.
21432         (possible_polymorphic_call_targets): Declare and introduce inline
21433         variant when only edge is pased.
21434         (dump_possible_polymorphic_call_targets): Likewise.
21435         * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
21436         * tree.c (type_in_anonymous_namespace_p): Break out from ...
21437         (types_same_for_odr): ... here.
21438         * tree.h (type_in_anonymous_namespace_p): Declare.
21440 2013-08-18  Jakub Jelinek  <jakub@redhat.com>
21442         PR tree-optimization/58006
21443         * tree-parloops.c (take_address_of): Don't ICE if get_name
21444         returns NULL.
21445         (eliminate_local_variables_stmt): Remove clobber stmts.
21447 2013-08-18  Eric Botcazou  <ebotcazou@adacore.com>
21449         * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
21450         error message is issued for an alias to undefined symbol.
21452 2013-08-18  Jan Hubicka  <jh@suse.cz>
21454         * cgraph.c (cgraph_create_indirect_edge): Discover
21455         polymorphic calls and record basic info into indirect_info.
21456         * gimple-fold.c (gimple_fold_call): When doing BINFO based
21457         devirtualization, ignore objc function calls.
21458         * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
21459         call with no parm index info.
21460         * ipa-prop.c (ipa_analyze_call_uses): Likewise.
21461         * tree.c (virtual_method_call_p): New function.
21462         * tree.h (virtual_method_call_p): Declare.
21464 2013-08-16  Jan Hubicka  <jh@suse.cz>
21466         PR middle-end/58179
21467         * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
21469 2013-08-16  David Edelsohn  <dje.gcc@gmail.com>
21471         * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
21472         attribute.
21474 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
21476         * gengtype.c (type_for_name): Add special-case support for
21477         locating types within the "gcc::" namespace.
21478         (open_base_files): Emit a "using namespace gcc" directive.
21480 2013-08-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
21482         PR target/58160
21483         * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
21484         memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
21486         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
21487         array instead of each individual operand as a separate argument.
21488         (emit_fusion_gpr_load): Likewise.
21489         (expand_fusion_gpr_load): Add new function declaration.
21491         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
21492         signature to have the operands passed as an array, instead of as
21493         separate arguments.  Allow ZERO_EXTEND to be in the memory
21494         address, and also SIGN_EXTEND if -mpower8-fusion-sign.  Do not
21495         depend on the register live/dead flags when peepholes are run.
21496         (expand_fusion_gpr_load): New function to be called from the
21497         peephole2 pass, to change the register that addis sets to be the
21498         target register.
21499         (emit_fusion_gpr_load): Change the calling signature to have the
21500         operands passed as an array, instead of as separate arguments.
21501         Allow ZERO_EXTEND to be in the memory address, and also
21502         SIGN_EXTEND if -mpower8-fusion-sign.
21504         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
21505         unspec enumeration.
21506         (power8 fusion peephole/peephole2): Rework the fusion peepholes to
21507         adjust the register addis loads up in the peephole2 pass.  Do not
21508         depend on the register live/dead state when the peephole pass is done.
21510 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
21512         * gengtype.c (create_user_defined_type): Ensure that the kind
21513         is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
21514         declaration is seen before the GTY((user)) marking.
21516 2013-08-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21518         PR target/58105
21519         * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
21521 2013-08-16  Jan Hubicka  <jh@suse.cz>
21523         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
21524         arugment expected_type.
21525         (gimple_fold_call): Use it.
21526         * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
21527         * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
21528         * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
21529         (try_make_edge_direct_virtual_call): Likewise.
21530         * tree.c (obj_type_ref_class): New.
21531         * tree.h (obj_type_ref_class): Use it.
21533 2013-08-16  Gabriel Dos Reis  <gdr@integrable-solutions.net>
21535         * sched-vis.c (rtl_slim_pp_initialized): Remove.
21536         (rtl_slim_pp): Likewise.
21537         (init_rtl_slim_pretty_print): Likewise.
21538         (dump_value_slim):  Don't call it.  Use local pretty printer.
21539         (dump_insn_slim): Likewise.
21540         (dump_rtl_slim): Likewise.
21541         (str_pattern_slim): Likewise.
21542         * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
21543         Simplify.
21545 2013-08-16  Jakub Jelinek  <jakub@redhat.com>
21547         PR tree-optimization/58164
21548         * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
21549         walk gimple_goto_dest of GIMPLE_GOTO.
21551         PR tree-optimization/58165
21552         * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
21553         bi_call must be the last stmt in a bb, don't split_block, instead
21554         use fallthru edge from it and give up if there is none.
21555         Release conds vector when returning early.
21557 2013-08-14  Xinliang David Li  <davidxl@google.com>
21559         * config/i386/i386.c (ix86_option_override_internal):
21560         Remove unused variable and field.
21562 2013-08-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21564         PR target/57949
21565         * doc/invoke.texi: Add documentation of mcompat-align-parm option.
21566         * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
21567         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
21568         and Linux, correct BLKmode alignment when 128-bit alignment is
21569         required and compatibility flag is not set.
21570         (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
21571         for zero-size arguments when compatibility flag is not set.
21573 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
21575         PR tree-optimization/58145
21576         * tree-sra.c (build_ref_for_offset): If prev_base has
21577         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
21579 2013-08-14  Xinliang David Li  <davidxl@google.com>
21581         * config/i386/i386.c (ix86_option_override_internal):
21582         Fix uninitialized variable error.
21584 2013-08-14  Xinliang David Li  <davidxl@google.com>
21586         * config/i386/i386.opt: Define two new options.
21587         * config/i386/x86-tune.def: Add arch selector field in macros.
21588         * config/i386/i386.h: Adjust macro definition.
21589         * config/i386/i386.c (ix86_option_override_internal):
21590         Refactor the code.
21591         (parse_mtune_ctrl_str): New function.
21592         (set_ix86_tune_features): New function.
21593         (ix86_function_specific_restore): Call the new helper function.
21595 2013-08-14  Andrey Belevantsev  <abel@ispras.ru>
21597         PR rtl-optimization/57662
21598         * sel-sched.c (code_motion_process_successors): When the current insn
21599         is removed after the recursive traversal, break from the loop.
21600         Add comments and debug printouts.
21602 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
21603             Alexandre Oliva  <aoliva@redhat.com>
21605         PR target/58067
21606         * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
21607         and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
21608         there also UNSPEC_PLTOFF.
21610 2013-08-14  Marek Polacek  <polacek@redhat.com>
21612         * ipa-inline-analysis.c (add_clause): Avoid shifting integer
21613         NUM_CONDITIONS bit positions.
21615 2013-08-13  Cary Coutant  <ccoutant@google.com>
21617         * dwarf2out.c (CHECKSUM_BLOCK): New macro.
21618         (attr_checksum): Hash vector contents instead of pointer.
21619         (attr_checksum_ordered): Likewise.
21621 2013-08-13  Uros Bizjak  <ubizjak@gmail.com>
21623         * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
21624         when Pmode != word_mode.  Add length_address attribute.
21625         (sse3_monitor_<mode>): Merge from sse3_monitor and
21626         sse3_monitor64_<mode> insn patterns.  Emit addr32 prefix when
21627         Pmode != word_mode.  Update insn length attribute.
21628         * config/i386/i386.c (ix86_option_override_internal): Update
21629         ix86_gen_monitor selection for merged sse3_monitor insn.
21631 2013-08-13  Julian Brown  <julian@codesourcery.com>
21633         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
21634         perform invalid legitimization on greater-than-word-size modes for
21635         TARGET_E500_DOUBLE.
21637 2013-08-13  Vladimir Makarov  <vmakarov@redhat.com>
21639         * ira.c (setup_class_translate_array): Use aclass instead of cl
21640         for classes not fully covered by allocno classes.
21642 2013-08-13  Jakub Jelinek  <jakub@redhat.com>
21644         PR tree-optimization/57661
21645         * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
21646         * tree-inline.c (tree_function_versioning): Initialize it.
21647         (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
21648         if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
21649         that is not being copied.
21651         PR sanitizer/56417
21652         * asan.c (instrument_strlen_call): Fix typo in comment.
21653         Use char * type even for the lhs of POINTER_PLUS_EXPR.
21655 2013-08-13  Steve Ellcey  <sellcey@mips.com>
21657         * config/mips/mips.md (prefetch): Use lw instead of ld on
21658         loongson in 32bit mode.
21660 2013-08-13  Nick Clifton  <nickc@redhat.com>
21662         * config.gcc: (avr-linux): Allow for tmake_file not being empty.
21664 2013-08-13  Jan Hubicka  <jh@suse.cz>
21666         * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
21667         introduced edge; fix typo in sanity check.
21668         (cgraph_resolve_speculation): Export; improve diagnostic.
21669         (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
21670         speculation at type mismatch.
21671         * cgraph.h (cgraph_turn_edge_to_speculative): Update.
21672         (cgraph_resolve_speculation): Declare.
21673         (symtab_can_be_discarded): New function.
21674         * value-prof.c (gimple_ic_transform): Remove actual transform code.
21675         * ipa-inline-transform.c (speculation_removed): New global var.
21676         (clone_inlined_nodes): See if speculation can be removed.
21677         (inline_call): If speculations was removed, we growths may not match.
21678         * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
21679         (speculation_useful_p): New function.
21680         (resolve_noninline_speculation): New function.
21681         (inline_small_functions): Resolve useless speculations.
21682         * ipa-inline.h (speculation_useful_p): Declare
21683         * ipa.c (can_replace_by_local_alias): Simplify.
21684         (ipa_profile): Produce speculative calls in non-lto, too;
21685         add simple cost model; produce local aliases.
21687 2013-08-13  David Malcolm  <dmalcolm@redhat.com>
21689         * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
21690         PASS_MANAGER_H.
21692 2013-08-12  Paolo Carlini  <paolo.carlini@oracle.com>
21694         * config/i386/i386.c (ix86_function_versions): Use error + inform.
21696 2013-08-12  Uros Bizjak  <ubizjak@gmail.com>
21698         * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
21699         iterator instead of X87MODEF.
21701 2013-08-12  Perez Read  <netfirewall@gmail.com>
21703         PR target/58132
21704         * config/i386/i386.md (*movabs<mode>_1):  Add <ptrsize> PTR before
21705         operand 0 for intel asm alternative.
21706         (*movabs<mode>_2): Ditto for operand 1.
21708 2013-08-12  James Greenhalgh  <james.greenhalgh@arm.com>
21710         * config/aarch64/arm_none.h
21711         (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
21713 2013-08-12  Nick Clifton  <nickc@redhat.com>
21715         * config.gcc (m32r-linux): Allow for tmake_file not being empty.
21717 2013-08-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
21719         * config/i386/i386.md (floatunssi<mode>2 expand): Add new
21720         expand for QI/HImode operand to produce more effictive code for
21721         unsigned char(short) --> float(double) conversion.
21723 2013-08-12  Alexander Monakov  <amonakov@ispras.ru>
21725         * doc/invoke.texi: Mention that -ftls-model does not force the final
21726         model.
21728 2013-08-12  Marek Polacek  <polacek@redhat.com>
21729             Marc Glisse  <marc.glisse@inria.fr>
21731         PR tree-optimization/57980
21732         * tree-tailcall.c (process_assignment): Call build_minus_one_cst
21733         when creating -1 constant.
21735 2013-08-10  Jan Hubicka  <jh@suse.cz>
21737         Workaround binutils PR14342.
21738         * tree-profile.c (init_ic_make_global_vars): Add LTO path.
21739         (gimple_init_edge_profiler): Likewise.
21740         (gimple_gen_ic_func_profiler): Likewise.
21742 2013-08-09  Jan Hubicka  <jh@suse.cz>
21744         * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
21746 2013-08-09  Xinliang David Li  <davidxl@google.com>
21748         * config/i386/stringop.def: New file.
21749         * config/i386/stringop.opt: New file.
21750         * config/i386/i386-opts.h: Include stringopt.def.
21751         * config/i386/i386.opt: Include stringopt.opt.
21752         * config/i386/i386.c (ix86_option_override_internal):
21753         Override default size based stringop inline strategies with options.
21754         * config/i386/i386.c (ix86_parse_stringop_strategy_string):
21755         New function.
21757 2013-08-09  Jan Hubicka  <jh@suse.cz>
21759         * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
21761 2013-08-09  Jan Hubicka  <jh@suse.cz>
21763         * cgraph.c (cgraph_resolve_speculation): Cut frequency to
21764         CGRAPH_FREQ_MAX.
21765         (dump_cgraph_node): Dump profile-id.
21766         * cgraph.h (cgraph_indirect_call_info): Add common_target_id
21767         and common_target_probability.
21768         * lto-cgraph.c (lto_output_edge): Stream common targets.
21769         (lto_output_node): Stream profile ids.
21770         (input_node): Stream profile ids.
21771         (input_edge): Stream common targets.
21772         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
21773         * ipa.c: Include value-prof.h
21774         (ipa_profile_generate_summary): Turn indirect call statement histograms
21775         into common targets.
21776         (ipa_profile): Turn common targets into speculative edges.
21778 2013-08-09  Jan Hubicka  <jh@suse.cz>
21780         * cgraph.h (cgraph_node): Add profile_id.
21781         * value-prof.c (cgraph_node_map): Turn into pointer_map.
21782         (init_node_map): Rewrite to handle hashes increas of incremental IDs.
21783         (del_node_map): Update.
21784         (find_func_by_funcdef_no): Replace by ...
21785         (find_func_by_profile_id): ... this one.
21786         (gimple_ic_transform): Do not remove useful histograms when
21787         speculation is not done; dump info when indirect call removal
21788         can happen at LTO.
21789         * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
21790         * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
21791         (__gcov_indirect_call_profiler_v2): .. this one.
21792         * profile.h (init_node_map): Update.
21793         * coverage.c (coverage_compute_profile_id): New function.
21794         * coverage.h (coverage_compute_profile_id): Declare.
21795         * tree-profile.c (init_ic_make_global_vars): Make
21796         __gcov_indirect_call_callee and  __gcov_indirect_call_counters global.
21797         (gimple_init_edge_profiler): Update prototype of
21798         __gcov_indirect_call_profiler.
21799         (gimple_gen_ic_func_profiler): Simplify.
21800         (tree_profiling): Use init_node_map
21802 2013-08-09  Jan Hubicka  <jh@suse.cz>
21804         * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
21805         non-speculative refs.
21806         * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
21807         (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
21808         (cgraph_set_call_stmt): Likewise.
21809         (cgraph_create_edge_1): Fix release checking compilatoin;
21810         clear lto_stmt_uid.
21811         (cgraph_free_edge): Free indirect info.
21812         (cgraph_turn_edge_to_speculative): New function.
21813         (cgraph_speculative_call_info): New function.
21814         (cgraph_make_edge_direct): Return direct edge; handle speculation.
21815         (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
21816         (dump_cgraph_node): Dump speculation.
21817         (verify_edge_count_and_frequency): Accept speculative edges.
21818         (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
21819         (verify_cgraph_node): Handle speculation.
21820         * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
21821         (cgraph_set_call_stmt): Update prototype.
21822         (cgraph_make_edge_direct): Update prototype.
21823         (cgraph_speculative_call_info): Declare.
21824         * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
21825         to change; update call of ipa_find_references.
21826         * ipa-ref.c (ipa_record_reference): Fix return value; clear
21827         lto_stmt_uid and speculative flags.
21828         (ipa_dump_references): Dump speculation.
21829         (ipa_clone_references): Clone speculative flag.
21830         (ipa_clone_referring): Likewise.
21831         (ipa_clone_ref): New function.
21832         (ipa_find_reference): Look into lto_stmt_uids
21833         (ipa_clear_stmts_in_references): Do not clear speculative calls.
21834         * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
21835         (ipa_find_reference): Update declaration.
21836         (ipa_clone_ref): Declare.
21837         * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
21838         stream speculative flag.
21839         (lto_output_ref): Stream statements uids and speculation.
21840         (input_ref): Likewise.
21841         (input_edge): Stream speuclation.
21842         * cgraphclones.c (cgraph_clone_edge): Clone speculation.
21843         (cgraph_set_call_stmt_including_clones): Handle speculation.
21844         * ipa-inline.c (heap_edge_removal_hook): New function.
21845         (inline_small_functions): Register it.
21846         * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
21847         also initialize refs.
21848         * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
21849         edge to change.
21850         (try_make_edge_direct_simple_call): Likewise.
21851         (try_make_edge_direct_simple_call): Likewise.
21852         (update_indirect_edges_after_inlining): Likewise.
21853         (remove_described_reference): Look proper lto_stmt_uid.
21854         (propagate_controlled_uses): Likewise.
21855         (propagate_controlled_uses): Liekwise.
21856         * tree-inline.c (copy_bb): Copy speculative edges.
21857         (redirect_all_calls): New function.
21858         (copy_cfg_body): Do redirection after loop info is updated.
21859         (delete_unreachable_blocks_update_callgraph): Updadte speculation.
21861 2013-08-09  Jan Hubicka  <jh@suse.cz>
21863         * lto-streamer-out.c (output_function): Renumber PHIs.
21864         * lto-streamer-in.c (input_function): Likewise.
21866 2013-08-09  James Greenhalgh  <james.greenhalgh@arm.com>
21868         * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
21869         (get_lane_unsigned): Likewise.
21870         (dup_lane_scalar): Likewise.
21871         (get_lane): enable for VALL.
21872         * config/aarch64/aarch64-simd.md
21873         (aarch64_dup_lane_scalar<mode>): Remove.
21874         (aarch64_get_lane_signed<mode>): Likewise.
21875         (aarch64_get_lane_unsigned<mode>): Likewise.
21876         (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
21877         (aarch64_get_lane_zero_extendsi<mode>): Likewise.
21878         (aarch64_get_lane<mode>): Enable for all vector modes.
21879         (aarch64_get_lanedi): Remove misleading constraints.
21880         * config/aarch64/arm_neon.h
21881         (__aarch64_vget_lane_any): Define.
21882         (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
21883         (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
21884         (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
21885         * config/aarch64/iterators.md (VDQQH): New.
21886         (VDQQHS): Likewise.
21887         (vwcore): Likewise.
21889 2013-08-09  Eric Botcazou  <ebotcazou@adacore.com>
21891         * configure.ac: Add GAS check for LEON instructions on SPARC.
21892         * configure: Regenerate.
21893         * config.in: Likewise.
21894         * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
21895         sparc*-*-* block.
21896         * config/sparc/sparc.opt (LEON, LEON3): New masks.
21897         * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
21898         for LEON or LEON3.
21899         (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
21900         (AS_LEON_FLAG): New macro.
21901         * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
21902         and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
21903         Deal with LEON and LEON3 for the memory model.
21904         * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
21905         (atomic_compare_and_swap<mode>_1): Likewise.
21906         (*atomic_compare_and_swap<mode>_1): Likewise.
21908 2013-08-09  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21910         * config/arm/neon.md (vcond): Fix floating-point vector
21911         comparisons against 0.
21913 2013-08-08  Vladimir Makarov  <vmakarov@redhat.com>
21915         * lra-constraints.c (emit_spill_move): Remove assert.
21916         (process_alt_operands): Add more debugging
21917         output.  Increase reject for spilling into memory.  Decrease
21918         reject for reloading scratch.
21919         (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
21921 2013-08-08  Steve Ellcey  <sellcey@mips.com>
21923         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
21924         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
21925         micromips incompatible.  Add nan2008.
21926         (MULTILIB_DIRNAMES): Add nan2008.
21927         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
21928         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
21929         and micromips incompatible.  Add nan2008.
21930         (MULTILIB_DIRNAMES): Add nan2008.
21931         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
21933 2013-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
21935         PR rtl-optimization/58079
21936         * combine.c (combine_simplify_rtx): Avoid using SUBST if
21937         simplify_comparison has widened a comparison with an integer.
21939 2013-08-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21941         * config/arm/neon.md (movmisalign<mode>): Disable when we
21942         don't allow unaligned accesses.
21943         (*movmisalign<mode>_neon_store): Likewise.
21944         (*movmisalign<mode>_neon_load): Likewise.
21945         (*movmisalign<mode>_neon_store): Likewise.
21946         (*movmisalign<mode>_neon_load): Likewise.
21948 2013-08-08  Jan Hubicka  <jh@suse.cz>
21950         * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
21951         (make_pass_rebuild_cgraph_edges): Also clear references.
21952         * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
21953         * ipa-inline-transform.c (inline_transform): Remove all references
21954         after inlining.
21955         * cgraphunit.c (expand_function): Remove all references after
21956         expansion.
21957         * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
21958         (ipa_find_reference): Rewrite to iterator.
21959         (remove_stmt_references): Likewise.
21960         (ipa_clear_stmts_in_references): New function.
21961         * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
21962         * cgraphclones.c (cgraph_materialize_all_clones): Remove or
21963         clear references.
21964         * ipa-split.c (split_function): Remove references in split function.
21966 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
21968         PR target/57431
21969         * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
21970         (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
21972 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
21974         PR target/56979
21975         * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
21976         suggested mode for the assignment isn't compatible with the
21977         registers required.
21979 2013-08-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21981         PR target/58065
21982         * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
21984 2013-08-07  Xinliang David Li  <davidxl@google.com>
21986         * config/i386/i386.opt: New option -mtune-ctrl=.
21987         * config/i386/x86-tune.def: New file.
21988         * config/i386/i386.h: include x86-tune.def.
21989         * config/i386/i386.c (ix86_option_override_internal):
21990         Parsing -mtune-ctrl= option and set tune features.
21992 2013-08-07  Oleg Endo  <olegendo@gcc.gnu.org>
21994         PR other/12081
21995         * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
21996         (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
21997         to gen_2arg_fn_t.
21999 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
22001         * rtl.h (update_alignments): Declare.
22002         * final.c (grow_label_align): New function extracted from...
22003         (shorten_branches): ...here.  Call it.
22004         (update_alignments): New function.
22005         * reorg.c (sibling_labels): New variable.
22006         (get_label_before): Add SIBLING parameter.  If it is non-zero, push
22007         the new label along with it onto the sibling_labels vector.
22008         (fill_simple_delay_slots): Adjust call to get_label_before.
22009         (fill_slots_from_thread): Likewise.
22010         (relax_delay_slots): Likewise.
22011         (make_return_insns): Likewise.
22012         (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
22014 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
22016         * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
22017         document its semantics.
22018         (diagnostic_report_diagnostic): Adjust accordingly.
22020 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
22022         * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
22023         (sparc_option_override): ...and port to new C++ pass API.
22024         * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
22026 2013-08-07  Peter Bergner  <bergner@vnet.ibm.com>
22028         * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
22030 2013-08-06  Caroline Tice  <cmtice@google.com>
22032         * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
22033         (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
22034         * tree-pass.h: Add pass_vtable_verify.
22035         * varasm.c (assemble_variable): Add code to properly set the comdat
22036         section and name for the .vtable_map_vars section.
22037         (assemble_vtyv_preinit_initializer): New function.
22038         (default_sectin_type_flags):  Make sure .vtable_map_vars section has
22039         LINK_ONCE flag.
22040         * output.h: Add function decl for assemble_vtv_preinit_initializer.
22041         * vtable-verify.c: New file.
22042         * vtable-verify.h: New file.
22043         * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
22044         initialiation levels.
22045         * timevar.def (TV_VTABLE_VERIFICATION): New definition.
22046         * passes.def: Insert pass_vtable_verify.
22047         * aclocal.m4: Reorder includes.
22048         * doc/invoke.texi:  Document the -fvtable-verify=, -fvtv-debug, and
22049         -fvtv-counts options.
22050         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
22051         as appropriate, if -fvtable-verify=... is used.
22052         (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
22053         -fvtable-verify=... is used.
22054         * Makefile.in (OBJS):  Add vtable-verify.o to list.
22055         (vtable-verify.o): Add new build rule.
22056         (GTFILES): Add vtable-verify.c to list.
22057         * common.opt (fvtable-verify=): New flag.
22058         (vtv_priority): Values for fvtable-verify= flag.
22059         (fvtv-counts): New flag.
22060         (fvtv-debug): New flag.
22061         * tree.h (save_vtable_map_decl): New extern function decl.
22063 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
22065         * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
22066         (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
22067         (pass_data_rl78_devirt): ...new pass_data instance and...
22068         (make_pass_rl78_devirt): ...new function.
22069         (rl78_asm_file_start): Port pass registration to new C++ API.
22071 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
22073         * coretypes.h (rtl_opt_pass): Add.
22074         (gcc::context): Add.
22075         * config/epiphany/epiphany.c (pass_mode_switch_use): New.
22076         (epiphany_init): Port to new C++ pass API.
22077         (epiphany_optimize_mode_switching): Likewise.
22078         * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
22079         (pass_manager::get_pass_mode_switching): New.
22080         (pass_manager::get_pass_peephole2): New.
22081         * mode-switching.c (pass_mode_switching): Add clone method.
22082         * recog.c (pass_peephole2): Add clone method.
22083         (pass_split_all_insns): Add clone method.
22085 2013-08-06  David Malcolm  <dmalcolm@redhat.com>
22087         * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
22088         (mips_option_override): ...here, porting to new C++ API for passes.
22090 2013-08-06  Jan Hubicka  <jh@suse.cz>
22092         * cgraph.c (cgraph_get_body): New function based on lto.c
22093         implementation.
22094         * cgraph.h (cgraph_get_body): Declare.
22095         * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
22096         LTO paths.
22097         * cgraphunit.c (expand_function): Get body prior expanding.
22098         * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
22099         * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
22100         really need.
22101         * passes.c (do_per_function_toporder): Get body.
22102         * tree-inline.c (expand_call_inline): Get body prior inlining it.
22103         * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
22105 2013-08-06  Martin Jambor  <mjambor@suse.cz>
22107         PR fortran/57987
22108         * cgraphunit.c (cgraph_finalize_function): Assert that nested function
22109         is not re-finalized.  Rename second parameter to no_collect.
22111 2013-08-06  Martin Jambor  <mjambor@suse.cz>
22113         PR middle-end/58041
22114         * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
22115         MEM_REF has proper alignment information.
22117 2013-08-05  Oleg Endo  <olegendo@gcc.gnu.org>
22119         PR other/12081
22120         * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
22121         class insn_gen_fn.
22122         * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
22123         rtx (*) (rtx, ...) with insn_gen_fn.
22124         * genoutput.c (output_insn_data): Cast gen_? function pointers to
22125         insn_gen_fn::stored_funcptr.  Add initializer braces.
22127 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
22129         Rewrite how instances of passes are cloned to remove assumptions
22130         about their sizes (thus allowing pass subclasses to have
22131         additional data fields, albeit non-GC-managed ones at this point).
22133         * passes.c (make_pass_instance): Now that passes have clone
22134         methods, rewrite this function to eliminate XNEW and memcpy
22135         calls that used hardcoded sizes.  Since this function no longer
22136         creates pass instances, rename it to...
22137         (add_pass_instance): ...this.  Document the old way that passes were
22138         numbered and flagged, and rework this function to continue using it.
22139         (next_pass_1): Add an initial_pass argument for use by
22140         add_pass_instance.
22141         (position_pass): When adding multiple instances of a pass, use
22142         the pass's clone method, rather than relying on the XNEW/memcpy
22143         within the former make_pass_instance (now add_pass_instance).
22144         (pass_manager::pass_manager): When invoking next_pass_1, also supply
22145         the initial instance of the current pass within the pass manager.
22147 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
22149         This is the automated part of the conversion of passes from C
22150         structs to C++ classes.
22152         Patch autogenerated by refactor_passes.py from
22153         https://github.com/davidmalcolm/gcc-refactoring-scripts
22154         revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
22156         * asan.c (pass_asan): Convert from a global struct to a subclass of
22157         gimple_opt_pass along with...
22158         (pass_data_asan): ...new pass_data instance and...
22159         (make_pass_asan): ...new function.
22160         (pass_asan_O0): Convert from a global struct to a subclass of
22161         gimple_opt_pass along with...
22162         (pass_data_asan_O0): ...new pass_data instance and...
22163         (make_pass_asan_O0): ...new function.
22164         * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
22165         subclass of rtl_opt_pass along with...
22166         (pass_data_inc_dec): ...new pass_data instance and...
22167         (make_pass_inc_dec): ...new function.
22168         * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
22169         a subclass of rtl_opt_pass along with...
22170         (pass_data_reorder_blocks): ...new pass_data instance and...
22171         (make_pass_reorder_blocks): ...new function.
22172         (pass_duplicate_computed_gotos): Convert from a global struct to a
22173         subclass of rtl_opt_pass along with...
22174         (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
22175         (make_pass_duplicate_computed_gotos): ...new function.
22176         (pass_partition_blocks): Convert from a global struct to a subclass of
22177         rtl_opt_pass along with...
22178         (pass_data_partition_blocks): ...new pass_data instance and...
22179         (make_pass_partition_blocks): ...new function.
22180         * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
22181         struct to a subclass of rtl_opt_pass along with...
22182         (pass_data_branch_target_load_optimize1): ...new pass_data instance
22183         and...
22184         (make_pass_branch_target_load_optimize1): ...new function.
22185         (pass_branch_target_load_optimize2): Convert from a global struct to a
22186         subclass of rtl_opt_pass along with...
22187         (pass_data_branch_target_load_optimize2): ...new pass_data instance
22188         and...
22189         (make_pass_branch_target_load_optimize2): ...new function.
22190         * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
22191         of rtl_opt_pass along with...
22192         (pass_data_jump): ...new pass_data instance and...
22193         (make_pass_jump): ...new function.
22194         (pass_jump2): Convert from a global struct to a subclass of
22195         rtl_opt_pass along with...
22196         (pass_data_jump2): ...new pass_data instance and...
22197         (make_pass_jump2): ...new function.
22198         * cfgexpand.c (pass_expand): Convert from a global struct to a
22199         subclass of rtl_opt_pass along with...
22200         (pass_data_expand): ...new pass_data instance and...
22201         (make_pass_expand): ...new function.
22202         * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
22203         of rtl_opt_pass along with...
22204         (pass_data_free_cfg): ...new pass_data instance and...
22205         (make_pass_free_cfg): ...new function.
22206         (pass_into_cfg_layout_mode): Convert from a global struct to a
22207         subclass of rtl_opt_pass along with...
22208         (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
22209         (make_pass_into_cfg_layout_mode): ...new function.
22210         (pass_outof_cfg_layout_mode): Convert from a global struct to a
22211         subclass of rtl_opt_pass along with...
22212         (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
22213         (make_pass_outof_cfg_layout_mode): ...new function.
22214         * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
22215         struct to a subclass of gimple_opt_pass along with...
22216         (pass_data_build_cgraph_edges): ...new pass_data instance and...
22217         (make_pass_build_cgraph_edges): ...new function.
22218         (pass_rebuild_cgraph_edges): Convert from a global struct to a
22219         subclass of gimple_opt_pass along with...
22220         (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
22221         (make_pass_rebuild_cgraph_edges): ...new function.
22222         (pass_remove_cgraph_callee_edges): Convert from a global struct to a
22223         subclass of gimple_opt_pass along with...
22224         (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
22225         and...
22226         (make_pass_remove_cgraph_callee_edges): ...new function.
22227         * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
22228         struct to a subclass of rtl_opt_pass along with...
22229         (pass_data_stack_adjustments): ...new pass_data instance and...
22230         (make_pass_stack_adjustments): ...new function.
22231         * combine.c (pass_combine): Convert from a global struct to a subclass
22232         of rtl_opt_pass along with...
22233         (pass_data_combine): ...new pass_data instance and...
22234         (make_pass_combine): ...new function.
22235         * compare-elim.c (pass_compare_elim_after_reload): Convert from a
22236         global struct to a subclass of rtl_opt_pass along with...
22237         (pass_data_compare_elim_after_reload): ...new pass_data instance
22238         and...
22239         (make_pass_compare_elim_after_reload): ...new function.
22240         * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
22241         of rtl_opt_pass along with...
22242         (pass_data_rtl_cprop): ...new pass_data instance and...
22243         (make_pass_rtl_cprop): ...new function.
22244         * cse.c (pass_cse): Convert from a global struct to a subclass of
22245         rtl_opt_pass along with...
22246         (pass_data_cse): ...new pass_data instance and...
22247         (make_pass_cse): ...new function.
22248         (pass_cse2): Convert from a global struct to a subclass of
22249         rtl_opt_pass along with...
22250         (pass_data_cse2): ...new pass_data instance and...
22251         (make_pass_cse2): ...new function.
22252         (pass_cse_after_global_opts): Convert from a global struct to a
22253         subclass of rtl_opt_pass along with...
22254         (pass_data_cse_after_global_opts): ...new pass_data instance and...
22255         (make_pass_cse_after_global_opts): ...new function.
22256         * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
22257         of rtl_opt_pass along with...
22258         (pass_data_ud_rtl_dce): ...new pass_data instance and...
22259         (make_pass_ud_rtl_dce): ...new function.
22260         (pass_fast_rtl_dce): Convert from a global struct to a subclass of
22261         rtl_opt_pass along with...
22262         (pass_data_fast_rtl_dce): ...new pass_data instance and...
22263         (make_pass_fast_rtl_dce): ...new function.
22264         * df-core.c (pass_df_initialize_opt): Convert from a global struct to
22265         a subclass of rtl_opt_pass along with...
22266         (pass_data_df_initialize_opt): ...new pass_data instance and...
22267         (make_pass_df_initialize_opt): ...new function.
22268         (pass_df_initialize_no_opt): Convert from a global struct to a
22269         subclass of rtl_opt_pass along with...
22270         (pass_data_df_initialize_no_opt): ...new pass_data instance and...
22271         (make_pass_df_initialize_no_opt): ...new function.
22272         (pass_df_finish): Convert from a global struct to a subclass of
22273         rtl_opt_pass along with...
22274         (pass_data_df_finish): ...new pass_data instance and...
22275         (make_pass_df_finish): ...new function.
22276         * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
22277         rtl_opt_pass along with...
22278         (pass_data_rtl_dse1): ...new pass_data instance and...
22279         (make_pass_rtl_dse1): ...new function.
22280         (pass_rtl_dse2): Convert from a global struct to a subclass of
22281         rtl_opt_pass along with...
22282         (pass_data_rtl_dse2): ...new pass_data instance and...
22283         (make_pass_rtl_dse2): ...new function.
22284         * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
22285         subclass of rtl_opt_pass along with...
22286         (pass_data_dwarf2_frame): ...new pass_data instance and...
22287         (make_pass_dwarf2_frame): ...new function.
22288         * except.c (pass_set_nothrow_function_flags): Convert from a global
22289         struct to a subclass of rtl_opt_pass along with...
22290         (pass_data_set_nothrow_function_flags): ...new pass_data instance
22291         and...
22292         (make_pass_set_nothrow_function_flags): ...new function.
22293         (pass_convert_to_eh_region_ranges): Convert from a global struct to a
22294         subclass of rtl_opt_pass along with...
22295         (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
22296         and...
22297         (make_pass_convert_to_eh_region_ranges): ...new function.
22298         * final.c (pass_compute_alignments): Convert from a global struct to a
22299         subclass of rtl_opt_pass along with...
22300         (pass_data_compute_alignments): ...new pass_data instance and...
22301         (make_pass_compute_alignments): ...new function.
22302         (pass_final): Convert from a global struct to a subclass of
22303         rtl_opt_pass along with...
22304         (pass_data_final): ...new pass_data instance and...
22305         (make_pass_final): ...new function.
22306         (pass_shorten_branches): Convert from a global struct to a subclass of
22307         rtl_opt_pass along with...
22308         (pass_data_shorten_branches): ...new pass_data instance and...
22309         (make_pass_shorten_branches): ...new function.
22310         (pass_clean_state): Convert from a global struct to a subclass of
22311         rtl_opt_pass along with...
22312         (pass_data_clean_state): ...new pass_data instance and...
22313         (make_pass_clean_state): ...new function.
22314         * function.c (pass_instantiate_virtual_regs): Convert from a global
22315         struct to a subclass of rtl_opt_pass along with...
22316         (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
22317         (make_pass_instantiate_virtual_regs): ...new function.
22318         (pass_leaf_regs): Convert from a global struct to a subclass of
22319         rtl_opt_pass along with...
22320         (pass_data_leaf_regs): ...new pass_data instance and...
22321         (make_pass_leaf_regs): ...new function.
22322         (pass_thread_prologue_and_epilogue): Convert from a global struct to a
22323         subclass of rtl_opt_pass along with...
22324         (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
22325         and...
22326         (make_pass_thread_prologue_and_epilogue): ...new function.
22327         (pass_match_asm_constraints): Convert from a global struct to a
22328         subclass of rtl_opt_pass along with...
22329         (pass_data_match_asm_constraints): ...new pass_data instance and...
22330         (make_pass_match_asm_constraints): ...new function.
22331         * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
22332         subclass of rtl_opt_pass along with...
22333         (pass_data_rtl_fwprop): ...new pass_data instance and...
22334         (make_pass_rtl_fwprop): ...new function.
22335         (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
22336         rtl_opt_pass along with...
22337         (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
22338         (make_pass_rtl_fwprop_addr): ...new function.
22339         * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
22340         rtl_opt_pass along with...
22341         (pass_data_rtl_pre): ...new pass_data instance and...
22342         (make_pass_rtl_pre): ...new function.
22343         (pass_rtl_hoist): Convert from a global struct to a subclass of
22344         rtl_opt_pass along with...
22345         (pass_data_rtl_hoist): ...new pass_data instance and...
22346         (make_pass_rtl_hoist): ...new function.
22347         * gimple-low.c (pass_lower_cf): Convert from a global struct to a
22348         subclass of gimple_opt_pass along with...
22349         (pass_data_lower_cf): ...new pass_data instance and...
22350         (make_pass_lower_cf): ...new function.
22351         * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
22352         from a global struct to a subclass of gimple_opt_pass along with...
22353         (pass_data_strength_reduction): ...new pass_data instance and...
22354         (make_pass_strength_reduction): ...new function.
22355         * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
22356         of rtl_opt_pass along with...
22357         (pass_data_rtl_ifcvt): ...new pass_data instance and...
22358         (make_pass_rtl_ifcvt): ...new function.
22359         (pass_if_after_combine): Convert from a global struct to a subclass of
22360         rtl_opt_pass along with...
22361         (pass_data_if_after_combine): ...new pass_data instance and...
22362         (make_pass_if_after_combine): ...new function.
22363         (pass_if_after_reload): Convert from a global struct to a subclass of
22364         rtl_opt_pass along with...
22365         (pass_data_if_after_reload): ...new pass_data instance and...
22366         (make_pass_if_after_reload): ...new function.
22367         * init-regs.c (pass_initialize_regs): Convert from a global struct to
22368         a subclass of rtl_opt_pass along with...
22369         (pass_data_initialize_regs): ...new pass_data instance and...
22370         (make_pass_initialize_regs): ...new function.
22371         * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
22372         of ipa_opt_pass_d along with...
22373         (pass_data_ipa_cp): ...new pass_data instance and...
22374         (make_pass_ipa_cp): ...new function.
22375         * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
22376         global struct to a subclass of gimple_opt_pass along with...
22377         (pass_data_inline_parameters): ...new pass_data instance and...
22378         (make_pass_inline_parameters): ...new function.
22379         * ipa-inline.c (pass_early_inline): Convert from a global struct to a
22380         subclass of gimple_opt_pass along with...
22381         (pass_data_early_inline): ...new pass_data instance and...
22382         (make_pass_early_inline): ...new function.
22383         (pass_ipa_inline): Convert from a global struct to a subclass of
22384         ipa_opt_pass_d along with...
22385         (pass_data_ipa_inline): ...new pass_data instance and...
22386         (make_pass_ipa_inline): ...new function.
22387         * ipa-pure-const.c (pass_local_pure_const): Convert from a global
22388         struct to a subclass of gimple_opt_pass along with...
22389         (pass_data_local_pure_const): ...new pass_data instance and...
22390         (make_pass_local_pure_const): ...new function.
22391         (pass_ipa_pure_const): Convert from a global struct to a subclass of
22392         ipa_opt_pass_d along with...
22393         (pass_data_ipa_pure_const): ...new pass_data instance and...
22394         (make_pass_ipa_pure_const): ...new function.
22395         * ipa-reference.c (pass_ipa_reference): Convert from a global struct
22396         to a subclass of ipa_opt_pass_d along with...
22397         (pass_data_ipa_reference): ...new pass_data instance and...
22398         (make_pass_ipa_reference): ...new function.
22399         * ipa-split.c (pass_split_functions): Convert from a global struct to
22400         a subclass of gimple_opt_pass along with...
22401         (pass_data_split_functions): ...new pass_data instance and...
22402         (make_pass_split_functions): ...new function.
22403         (pass_feedback_split_functions): Convert from a global struct to a
22404         subclass of gimple_opt_pass along with...
22405         (pass_data_feedback_split_functions): ...new pass_data instance and...
22406         (make_pass_feedback_split_functions): ...new function.
22407         * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
22408         global struct to a subclass of simple_ipa_opt_pass along with...
22409         (pass_data_ipa_function_and_variable_visibility): ...new pass_data
22410         instance and...
22411         (make_pass_ipa_function_and_variable_visibility): ...new function.
22412         (pass_ipa_free_inline_summary): Convert from a global struct to a
22413         subclass of simple_ipa_opt_pass along with...
22414         (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
22415         (make_pass_ipa_free_inline_summary): ...new function.
22416         (pass_ipa_whole_program_visibility): Convert from a global struct to a
22417         subclass of ipa_opt_pass_d along with...
22418         (pass_data_ipa_whole_program_visibility): ...new pass_data instance
22419         and...
22420         (make_pass_ipa_whole_program_visibility): ...new function.
22421         (pass_ipa_profile): Convert from a global struct to a subclass of
22422         ipa_opt_pass_d along with...
22423         (pass_data_ipa_profile): ...new pass_data instance and...
22424         (make_pass_ipa_profile): ...new function.
22425         (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
22426         ipa_opt_pass_d along with...
22427         (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
22428         (make_pass_ipa_cdtor_merge): ...new function.
22429         * ira.c (pass_ira): Convert from a global struct to a subclass of
22430         rtl_opt_pass along with...
22431         (pass_data_ira): ...new pass_data instance and...
22432         (make_pass_ira): ...new function.
22433         (pass_reload): Convert from a global struct to a subclass of
22434         rtl_opt_pass along with...
22435         (pass_data_reload): ...new pass_data instance and...
22436         (make_pass_reload): ...new function.
22437         * jump.c (pass_cleanup_barriers): Convert from a global struct to a
22438         subclass of rtl_opt_pass along with...
22439         (pass_data_cleanup_barriers): ...new pass_data instance and...
22440         (make_pass_cleanup_barriers): ...new function.
22441         * loop-init.c (pass_loop2): Convert from a global struct to a subclass
22442         of rtl_opt_pass along with...
22443         (pass_data_loop2): ...new pass_data instance and...
22444         (make_pass_loop2): ...new function.
22445         (pass_rtl_loop_init): Convert from a global struct to a subclass of
22446         rtl_opt_pass along with...
22447         (pass_data_rtl_loop_init): ...new pass_data instance and...
22448         (make_pass_rtl_loop_init): ...new function.
22449         (pass_rtl_loop_done): Convert from a global struct to a subclass of
22450         rtl_opt_pass along with...
22451         (pass_data_rtl_loop_done): ...new pass_data instance and...
22452         (make_pass_rtl_loop_done): ...new function.
22453         (pass_rtl_move_loop_invariants): Convert from a global struct to a
22454         subclass of rtl_opt_pass along with...
22455         (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
22456         (make_pass_rtl_move_loop_invariants): ...new function.
22457         (pass_rtl_unswitch): Convert from a global struct to a subclass of
22458         rtl_opt_pass along with...
22459         (pass_data_rtl_unswitch): ...new pass_data instance and...
22460         (make_pass_rtl_unswitch): ...new function.
22461         (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
22462         subclass of rtl_opt_pass along with...
22463         (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
22464         and...
22465         (make_pass_rtl_unroll_and_peel_loops): ...new function.
22466         (pass_rtl_doloop): Convert from a global struct to a subclass of
22467         rtl_opt_pass along with...
22468         (pass_data_rtl_doloop): ...new pass_data instance and...
22469         (make_pass_rtl_doloop): ...new function.
22470         * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
22471         a subclass of rtl_opt_pass along with...
22472         (pass_data_lower_subreg): ...new pass_data instance and...
22473         (make_pass_lower_subreg): ...new function.
22474         (pass_lower_subreg2): Convert from a global struct to a subclass of
22475         rtl_opt_pass along with...
22476         (pass_data_lower_subreg2): ...new pass_data instance and...
22477         (make_pass_lower_subreg2): ...new function.
22478         * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
22479         struct to a subclass of ipa_opt_pass_d along with...
22480         (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
22481         (make_pass_ipa_lto_gimple_out): ...new function.
22482         (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
22483         of ipa_opt_pass_d along with...
22484         (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
22485         (make_pass_ipa_lto_finish_out): ...new function.
22486         * mode-switching.c (pass_mode_switching): Convert from a global struct
22487         to a subclass of rtl_opt_pass along with...
22488         (pass_data_mode_switching): ...new pass_data instance and...
22489         (make_pass_mode_switching): ...new function.
22490         * modulo-sched.c (pass_sms): Convert from a global struct to a
22491         subclass of rtl_opt_pass along with...
22492         (pass_data_sms): ...new pass_data instance and...
22493         (make_pass_sms): ...new function.
22494         * omp-low.c (pass_expand_omp): Convert from a global struct to a
22495         subclass of gimple_opt_pass along with...
22496         (pass_data_expand_omp): ...new pass_data instance and...
22497         (make_pass_expand_omp): ...new function.
22498         (pass_lower_omp): Convert from a global struct to a subclass of
22499         gimple_opt_pass along with...
22500         (pass_data_lower_omp): ...new pass_data instance and...
22501         (make_pass_lower_omp): ...new function.
22502         (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
22503         of gimple_opt_pass along with...
22504         (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
22505         (make_pass_diagnose_omp_blocks): ...new function.
22506         * passes.c (pass_early_local_passes): Convert from a global struct to
22507         a subclass of simple_ipa_opt_pass along with...
22508         (pass_data_early_local_passes): ...new pass_data instance and...
22509         (make_pass_early_local_passes): ...new function.
22510         (pass_all_early_optimizations): Convert from a global struct to a
22511         subclass of gimple_opt_pass along with...
22512         (pass_data_all_early_optimizations): ...new pass_data instance and...
22513         (make_pass_all_early_optimizations): ...new function.
22514         (pass_all_optimizations): Convert from a global struct to a subclass
22515         of gimple_opt_pass along with...
22516         (pass_data_all_optimizations): ...new pass_data instance and...
22517         (make_pass_all_optimizations): ...new function.
22518         (pass_all_optimizations_g): Convert from a global struct to a subclass
22519         of gimple_opt_pass along with...
22520         (pass_data_all_optimizations_g): ...new pass_data instance and...
22521         (make_pass_all_optimizations_g): ...new function.
22522         (pass_rest_of_compilation): Convert from a global struct to a subclass
22523         of rtl_opt_pass along with...
22524         (pass_data_rest_of_compilation): ...new pass_data instance and...
22525         (make_pass_rest_of_compilation): ...new function.
22526         (pass_postreload): Convert from a global struct to a subclass of
22527         rtl_opt_pass along with...
22528         (pass_data_postreload): ...new pass_data instance and...
22529         (make_pass_postreload): ...new function.
22530         * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
22531         subclass of rtl_opt_pass along with...
22532         (pass_data_gcse2): ...new pass_data instance and...
22533         (make_pass_gcse2): ...new function.
22534         * postreload.c (pass_postreload_cse): Convert from a global struct to
22535         a subclass of rtl_opt_pass along with...
22536         (pass_data_postreload_cse): ...new pass_data instance and...
22537         (make_pass_postreload_cse): ...new function.
22538         * predict.c (pass_profile): Convert from a global struct to a subclass
22539         of gimple_opt_pass along with...
22540         (pass_data_profile): ...new pass_data instance and...
22541         (make_pass_profile): ...new function.
22542         (pass_strip_predict_hints): Convert from a global struct to a subclass
22543         of gimple_opt_pass along with...
22544         (pass_data_strip_predict_hints): ...new pass_data instance and...
22545         (make_pass_strip_predict_hints): ...new function.
22546         * recog.c (pass_peephole2): Convert from a global struct to a subclass
22547         of rtl_opt_pass along with...
22548         (pass_data_peephole2): ...new pass_data instance and...
22549         (make_pass_peephole2): ...new function.
22550         (pass_split_all_insns): Convert from a global struct to a subclass of
22551         rtl_opt_pass along with...
22552         (pass_data_split_all_insns): ...new pass_data instance and...
22553         (make_pass_split_all_insns): ...new function.
22554         (pass_split_after_reload): Convert from a global struct to a subclass
22555         of rtl_opt_pass along with...
22556         (pass_data_split_after_reload): ...new pass_data instance and...
22557         (make_pass_split_after_reload): ...new function.
22558         (pass_split_before_regstack): Convert from a global struct to a
22559         subclass of rtl_opt_pass along with...
22560         (pass_data_split_before_regstack): ...new pass_data instance and...
22561         (make_pass_split_before_regstack): ...new function.
22562         (pass_split_before_sched2): Convert from a global struct to a subclass
22563         of rtl_opt_pass along with...
22564         (pass_data_split_before_sched2): ...new pass_data instance and...
22565         (make_pass_split_before_sched2): ...new function.
22566         (pass_split_for_shorten_branches): Convert from a global struct to a
22567         subclass of rtl_opt_pass along with...
22568         (pass_data_split_for_shorten_branches): ...new pass_data instance
22569         and...
22570         (make_pass_split_for_shorten_branches): ...new function.
22571         * ree.c (pass_ree): Convert from a global struct to a subclass of
22572         rtl_opt_pass along with...
22573         (pass_data_ree): ...new pass_data instance and...
22574         (make_pass_ree): ...new function.
22575         * reg-stack.c (pass_stack_regs): Convert from a global struct to a
22576         subclass of rtl_opt_pass along with...
22577         (pass_data_stack_regs): ...new pass_data instance and...
22578         (make_pass_stack_regs): ...new function.
22579         (pass_stack_regs_run): Convert from a global struct to a subclass of
22580         rtl_opt_pass along with...
22581         (pass_data_stack_regs_run): ...new pass_data instance and...
22582         (make_pass_stack_regs_run): ...new function.
22583         * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
22584         subclass of rtl_opt_pass along with...
22585         (pass_data_cprop_hardreg): ...new pass_data instance and...
22586         (make_pass_cprop_hardreg): ...new function.
22587         * reginfo.c (pass_reginfo_init): Convert from a global struct to a
22588         subclass of rtl_opt_pass along with...
22589         (pass_data_reginfo_init): ...new pass_data instance and...
22590         (make_pass_reginfo_init): ...new function.
22591         * regmove.c (pass_regmove): Convert from a global struct to a subclass
22592         of rtl_opt_pass along with...
22593         (pass_data_regmove): ...new pass_data instance and...
22594         (make_pass_regmove): ...new function.
22595         * regrename.c (pass_regrename): Convert from a global struct to a
22596         subclass of rtl_opt_pass along with...
22597         (pass_data_regrename): ...new pass_data instance and...
22598         (make_pass_regrename): ...new function.
22599         * reorg.c (pass_delay_slots): Convert from a global struct to a
22600         subclass of rtl_opt_pass along with...
22601         (pass_data_delay_slots): ...new pass_data instance and...
22602         (make_pass_delay_slots): ...new function.
22603         (pass_machine_reorg): Convert from a global struct to a subclass of
22604         rtl_opt_pass along with...
22605         (pass_data_machine_reorg): ...new pass_data instance and...
22606         (make_pass_machine_reorg): ...new function.
22607         * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
22608         of rtl_opt_pass along with...
22609         (pass_data_sched): ...new pass_data instance and...
22610         (make_pass_sched): ...new function.
22611         (pass_sched2): Convert from a global struct to a subclass of
22612         rtl_opt_pass along with...
22613         (pass_data_sched2): ...new pass_data instance and...
22614         (make_pass_sched2): ...new function.
22615         * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
22616         to a subclass of rtl_opt_pass along with...
22617         (pass_data_stack_ptr_mod): ...new pass_data instance and...
22618         (make_pass_stack_ptr_mod): ...new function.
22619         * store-motion.c (pass_rtl_store_motion): Convert from a global struct
22620         to a subclass of rtl_opt_pass along with...
22621         (pass_data_rtl_store_motion): ...new pass_data instance and...
22622         (make_pass_rtl_store_motion): ...new function.
22623         * tracer.c (pass_tracer): Convert from a global struct to a subclass
22624         of gimple_opt_pass along with...
22625         (pass_data_tracer): ...new pass_data instance and...
22626         (make_pass_tracer): ...new function.
22627         * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
22628         to a subclass of gimple_opt_pass along with...
22629         (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
22630         (make_pass_diagnose_tm_blocks): ...new function.
22631         (pass_lower_tm): Convert from a global struct to a subclass of
22632         gimple_opt_pass along with...
22633         (pass_data_lower_tm): ...new pass_data instance and...
22634         (make_pass_lower_tm): ...new function.
22635         (pass_tm_init): Convert from a global struct to a subclass of
22636         gimple_opt_pass along with...
22637         (pass_data_tm_init): ...new pass_data instance and...
22638         (make_pass_tm_init): ...new function.
22639         (pass_tm_mark): Convert from a global struct to a subclass of
22640         gimple_opt_pass along with...
22641         (pass_data_tm_mark): ...new pass_data instance and...
22642         (make_pass_tm_mark): ...new function.
22643         (pass_tm_edges): Convert from a global struct to a subclass of
22644         gimple_opt_pass along with...
22645         (pass_data_tm_edges): ...new pass_data instance and...
22646         (make_pass_tm_edges): ...new function.
22647         (pass_tm_memopt): Convert from a global struct to a subclass of
22648         gimple_opt_pass along with...
22649         (pass_data_tm_memopt): ...new pass_data instance and...
22650         (make_pass_tm_memopt): ...new function.
22651         (pass_ipa_tm): Convert from a global struct to a subclass of
22652         simple_ipa_opt_pass along with...
22653         (pass_data_ipa_tm): ...new pass_data instance and...
22654         (make_pass_ipa_tm): ...new function.
22655         * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
22656         subclass of gimple_opt_pass along with...
22657         (pass_data_call_cdce): ...new pass_data instance and...
22658         (make_pass_call_cdce): ...new function.
22659         * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
22660         subclass of gimple_opt_pass along with...
22661         (pass_data_build_cfg): ...new pass_data instance and...
22662         (make_pass_build_cfg): ...new function.
22663         (pass_split_crit_edges): Convert from a global struct to a subclass of
22664         gimple_opt_pass along with...
22665         (pass_data_split_crit_edges): ...new pass_data instance and...
22666         (make_pass_split_crit_edges): ...new function.
22667         (pass_warn_function_return): Convert from a global struct to a
22668         subclass of gimple_opt_pass along with...
22669         (pass_data_warn_function_return): ...new pass_data instance and...
22670         (make_pass_warn_function_return): ...new function.
22671         (pass_warn_function_noreturn): Convert from a global struct to a
22672         subclass of gimple_opt_pass along with...
22673         (pass_data_warn_function_noreturn): ...new pass_data instance and...
22674         (make_pass_warn_function_noreturn): ...new function.
22675         (pass_warn_unused_result): Convert from a global struct to a subclass
22676         of gimple_opt_pass along with...
22677         (pass_data_warn_unused_result): ...new pass_data instance and...
22678         (make_pass_warn_unused_result): ...new function.
22679         * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
22680         a subclass of gimple_opt_pass along with...
22681         (pass_data_merge_phi): ...new pass_data instance and...
22682         (make_pass_merge_phi): ...new function.
22683         * tree-complex.c (pass_lower_complex): Convert from a global struct to
22684         a subclass of gimple_opt_pass along with...
22685         (pass_data_lower_complex): ...new pass_data instance and...
22686         (make_pass_lower_complex): ...new function.
22687         (pass_lower_complex_O0): Convert from a global struct to a subclass of
22688         gimple_opt_pass along with...
22689         (pass_data_lower_complex_O0): ...new pass_data instance and...
22690         (make_pass_lower_complex_O0): ...new function.
22691         * tree-eh.c (pass_lower_eh): Convert from a global struct to a
22692         subclass of gimple_opt_pass along with...
22693         (pass_data_lower_eh): ...new pass_data instance and...
22694         (make_pass_lower_eh): ...new function.
22695         (pass_refactor_eh): Convert from a global struct to a subclass of
22696         gimple_opt_pass along with...
22697         (pass_data_refactor_eh): ...new pass_data instance and...
22698         (make_pass_refactor_eh): ...new function.
22699         (pass_lower_resx): Convert from a global struct to a subclass of
22700         gimple_opt_pass along with...
22701         (pass_data_lower_resx): ...new pass_data instance and...
22702         (make_pass_lower_resx): ...new function.
22703         (pass_lower_eh_dispatch): Convert from a global struct to a subclass
22704         of gimple_opt_pass along with...
22705         (pass_data_lower_eh_dispatch): ...new pass_data instance and...
22706         (make_pass_lower_eh_dispatch): ...new function.
22707         (pass_cleanup_eh): Convert from a global struct to a subclass of
22708         gimple_opt_pass along with...
22709         (pass_data_cleanup_eh): ...new pass_data instance and...
22710         (make_pass_cleanup_eh): ...new function.
22711         * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
22712         to a subclass of simple_ipa_opt_pass along with...
22713         (pass_data_ipa_lower_emutls): ...new pass_data instance and...
22714         (make_pass_ipa_lower_emutls): ...new function.
22715         * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
22716         a subclass of gimple_opt_pass along with...
22717         (pass_data_if_conversion): ...new pass_data instance and...
22718         (make_pass_if_conversion): ...new function.
22719         * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
22720         subclass of gimple_opt_pass along with...
22721         (pass_data_build_ssa): ...new pass_data instance and...
22722         (make_pass_build_ssa): ...new function.
22723         * tree-loop-distribution.c (pass_loop_distribution): Convert from a
22724         global struct to a subclass of gimple_opt_pass along with...
22725         (pass_data_loop_distribution): ...new pass_data instance and...
22726         (make_pass_loop_distribution): ...new function.
22727         * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
22728         subclass of gimple_opt_pass along with...
22729         (pass_data_mudflap_1): ...new pass_data instance and...
22730         (make_pass_mudflap_1): ...new function.
22731         (pass_mudflap_2): Convert from a global struct to a subclass of
22732         gimple_opt_pass along with...
22733         (pass_data_mudflap_2): ...new pass_data instance and...
22734         (make_pass_mudflap_2): ...new function.
22735         * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
22736         subclass of gimple_opt_pass along with...
22737         (pass_data_mudflap_1): ...new pass_data instance and...
22738         (make_pass_mudflap_1): ...new function.
22739         (pass_mudflap_2): Convert from a global struct to a subclass of
22740         gimple_opt_pass along with...
22741         (pass_data_mudflap_2): ...new pass_data instance and...
22742         (make_pass_mudflap_2): ...new function.
22743         * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
22744         gimple_opt_pass along with...
22745         (pass_data_nrv): ...new pass_data instance and...
22746         (make_pass_nrv): ...new function.
22747         (pass_return_slot): Convert from a global struct to a subclass of
22748         gimple_opt_pass along with...
22749         (pass_data_return_slot): ...new pass_data instance and...
22750         (make_pass_return_slot): ...new function.
22751         * tree-object-size.c (pass_object_sizes): Convert from a global struct
22752         to a subclass of gimple_opt_pass along with...
22753         (pass_data_object_sizes): ...new pass_data instance and...
22754         (make_pass_object_sizes): ...new function.
22755         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
22756         global struct to a subclass of gimple_opt_pass along with...
22757         (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
22758         and...
22759         (make_pass_cleanup_cfg_post_optimizing): ...new function.
22760         (pass_fixup_cfg): Convert from a global struct to a subclass of
22761         gimple_opt_pass along with...
22762         (pass_data_fixup_cfg): ...new pass_data instance and...
22763         (make_pass_fixup_cfg): ...new function.
22764         * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
22765         (make_pass_mudflap_1): ...new function.
22766         (pass_mudflap_2): Replace declaration with that of...
22767         (make_pass_mudflap_2): ...new function.
22768         (pass_asan): Replace declaration with that of...
22769         (make_pass_asan): ...new function.
22770         (pass_asan_O0): Replace declaration with that of...
22771         (make_pass_asan_O0): ...new function.
22772         (pass_tsan): Replace declaration with that of...
22773         (make_pass_tsan): ...new function.
22774         (pass_tsan_O0): Replace declaration with that of...
22775         (make_pass_tsan_O0): ...new function.
22776         (pass_lower_cf): Replace declaration with that of...
22777         (make_pass_lower_cf): ...new function.
22778         (pass_refactor_eh): Replace declaration with that of...
22779         (make_pass_refactor_eh): ...new function.
22780         (pass_lower_eh): Replace declaration with that of...
22781         (make_pass_lower_eh): ...new function.
22782         (pass_lower_eh_dispatch): Replace declaration with that of...
22783         (make_pass_lower_eh_dispatch): ...new function.
22784         (pass_lower_resx): Replace declaration with that of...
22785         (make_pass_lower_resx): ...new function.
22786         (pass_build_cfg): Replace declaration with that of...
22787         (make_pass_build_cfg): ...new function.
22788         (pass_early_tree_profile): Replace declaration with that of...
22789         (make_pass_early_tree_profile): ...new function.
22790         (pass_cleanup_eh): Replace declaration with that of...
22791         (make_pass_cleanup_eh): ...new function.
22792         (pass_sra): Replace declaration with that of...
22793         (make_pass_sra): ...new function.
22794         (pass_sra_early): Replace declaration with that of...
22795         (make_pass_sra_early): ...new function.
22796         (pass_early_ipa_sra): Replace declaration with that of...
22797         (make_pass_early_ipa_sra): ...new function.
22798         (pass_tail_recursion): Replace declaration with that of...
22799         (make_pass_tail_recursion): ...new function.
22800         (pass_tail_calls): Replace declaration with that of...
22801         (make_pass_tail_calls): ...new function.
22802         (pass_tree_loop): Replace declaration with that of...
22803         (make_pass_tree_loop): ...new function.
22804         (pass_tree_loop_init): Replace declaration with that of...
22805         (make_pass_tree_loop_init): ...new function.
22806         (pass_lim): Replace declaration with that of...
22807         (make_pass_lim): ...new function.
22808         (pass_tree_unswitch): Replace declaration with that of...
22809         (make_pass_tree_unswitch): ...new function.
22810         (pass_predcom): Replace declaration with that of...
22811         (make_pass_predcom): ...new function.
22812         (pass_iv_canon): Replace declaration with that of...
22813         (make_pass_iv_canon): ...new function.
22814         (pass_scev_cprop): Replace declaration with that of...
22815         (make_pass_scev_cprop): ...new function.
22816         (pass_empty_loop): Replace declaration with that of...
22817         (make_pass_empty_loop): ...new function.
22818         (pass_record_bounds): Replace declaration with that of...
22819         (make_pass_record_bounds): ...new function.
22820         (pass_graphite): Replace declaration with that of...
22821         (make_pass_graphite): ...new function.
22822         (pass_graphite_transforms): Replace declaration with that of...
22823         (make_pass_graphite_transforms): ...new function.
22824         (pass_if_conversion): Replace declaration with that of...
22825         (make_pass_if_conversion): ...new function.
22826         (pass_loop_distribution): Replace declaration with that of...
22827         (make_pass_loop_distribution): ...new function.
22828         (pass_vectorize): Replace declaration with that of...
22829         (make_pass_vectorize): ...new function.
22830         (pass_slp_vectorize): Replace declaration with that of...
22831         (make_pass_slp_vectorize): ...new function.
22832         (pass_complete_unroll): Replace declaration with that of...
22833         (make_pass_complete_unroll): ...new function.
22834         (pass_complete_unrolli): Replace declaration with that of...
22835         (make_pass_complete_unrolli): ...new function.
22836         (pass_parallelize_loops): Replace declaration with that of...
22837         (make_pass_parallelize_loops): ...new function.
22838         (pass_loop_prefetch): Replace declaration with that of...
22839         (make_pass_loop_prefetch): ...new function.
22840         (pass_iv_optimize): Replace declaration with that of...
22841         (make_pass_iv_optimize): ...new function.
22842         (pass_tree_loop_done): Replace declaration with that of...
22843         (make_pass_tree_loop_done): ...new function.
22844         (pass_ch): Replace declaration with that of...
22845         (make_pass_ch): ...new function.
22846         (pass_ccp): Replace declaration with that of...
22847         (make_pass_ccp): ...new function.
22848         (pass_phi_only_cprop): Replace declaration with that of...
22849         (make_pass_phi_only_cprop): ...new function.
22850         (pass_build_ssa): Replace declaration with that of...
22851         (make_pass_build_ssa): ...new function.
22852         (pass_build_alias): Replace declaration with that of...
22853         (make_pass_build_alias): ...new function.
22854         (pass_build_ealias): Replace declaration with that of...
22855         (make_pass_build_ealias): ...new function.
22856         (pass_dominator): Replace declaration with that of...
22857         (make_pass_dominator): ...new function.
22858         (pass_dce): Replace declaration with that of...
22859         (make_pass_dce): ...new function.
22860         (pass_dce_loop): Replace declaration with that of...
22861         (make_pass_dce_loop): ...new function.
22862         (pass_cd_dce): Replace declaration with that of...
22863         (make_pass_cd_dce): ...new function.
22864         (pass_call_cdce): Replace declaration with that of...
22865         (make_pass_call_cdce): ...new function.
22866         (pass_merge_phi): Replace declaration with that of...
22867         (make_pass_merge_phi): ...new function.
22868         (pass_split_crit_edges): Replace declaration with that of...
22869         (make_pass_split_crit_edges): ...new function.
22870         (pass_pre): Replace declaration with that of...
22871         (make_pass_pre): ...new function.
22872         (pass_profile): Replace declaration with that of...
22873         (make_pass_profile): ...new function.
22874         (pass_strip_predict_hints): Replace declaration with that of...
22875         (make_pass_strip_predict_hints): ...new function.
22876         (pass_lower_complex_O0): Replace declaration with that of...
22877         (make_pass_lower_complex_O0): ...new function.
22878         (pass_lower_complex): Replace declaration with that of...
22879         (make_pass_lower_complex): ...new function.
22880         (pass_lower_vector): Replace declaration with that of...
22881         (make_pass_lower_vector): ...new function.
22882         (pass_lower_vector_ssa): Replace declaration with that of...
22883         (make_pass_lower_vector_ssa): ...new function.
22884         (pass_lower_omp): Replace declaration with that of...
22885         (make_pass_lower_omp): ...new function.
22886         (pass_diagnose_omp_blocks): Replace declaration with that of...
22887         (make_pass_diagnose_omp_blocks): ...new function.
22888         (pass_expand_omp): Replace declaration with that of...
22889         (make_pass_expand_omp): ...new function.
22890         (pass_expand_omp_ssa): Replace declaration with that of...
22891         (make_pass_expand_omp_ssa): ...new function.
22892         (pass_object_sizes): Replace declaration with that of...
22893         (make_pass_object_sizes): ...new function.
22894         (pass_strlen): Replace declaration with that of...
22895         (make_pass_strlen): ...new function.
22896         (pass_fold_builtins): Replace declaration with that of...
22897         (make_pass_fold_builtins): ...new function.
22898         (pass_stdarg): Replace declaration with that of...
22899         (make_pass_stdarg): ...new function.
22900         (pass_early_warn_uninitialized): Replace declaration with that of...
22901         (make_pass_early_warn_uninitialized): ...new function.
22902         (pass_late_warn_uninitialized): Replace declaration with that of...
22903         (make_pass_late_warn_uninitialized): ...new function.
22904         (pass_cse_reciprocals): Replace declaration with that of...
22905         (make_pass_cse_reciprocals): ...new function.
22906         (pass_cse_sincos): Replace declaration with that of...
22907         (make_pass_cse_sincos): ...new function.
22908         (pass_optimize_bswap): Replace declaration with that of...
22909         (make_pass_optimize_bswap): ...new function.
22910         (pass_optimize_widening_mul): Replace declaration with that of...
22911         (make_pass_optimize_widening_mul): ...new function.
22912         (pass_warn_function_return): Replace declaration with that of...
22913         (make_pass_warn_function_return): ...new function.
22914         (pass_warn_function_noreturn): Replace declaration with that of...
22915         (make_pass_warn_function_noreturn): ...new function.
22916         (pass_cselim): Replace declaration with that of...
22917         (make_pass_cselim): ...new function.
22918         (pass_phiopt): Replace declaration with that of...
22919         (make_pass_phiopt): ...new function.
22920         (pass_forwprop): Replace declaration with that of...
22921         (make_pass_forwprop): ...new function.
22922         (pass_phiprop): Replace declaration with that of...
22923         (make_pass_phiprop): ...new function.
22924         (pass_tree_ifcombine): Replace declaration with that of...
22925         (make_pass_tree_ifcombine): ...new function.
22926         (pass_dse): Replace declaration with that of...
22927         (make_pass_dse): ...new function.
22928         (pass_nrv): Replace declaration with that of...
22929         (make_pass_nrv): ...new function.
22930         (pass_rename_ssa_copies): Replace declaration with that of...
22931         (make_pass_rename_ssa_copies): ...new function.
22932         (pass_sink_code): Replace declaration with that of...
22933         (make_pass_sink_code): ...new function.
22934         (pass_fre): Replace declaration with that of...
22935         (make_pass_fre): ...new function.
22936         (pass_check_data_deps): Replace declaration with that of...
22937         (make_pass_check_data_deps): ...new function.
22938         (pass_copy_prop): Replace declaration with that of...
22939         (make_pass_copy_prop): ...new function.
22940         (pass_vrp): Replace declaration with that of...
22941         (make_pass_vrp): ...new function.
22942         (pass_uncprop): Replace declaration with that of...
22943         (make_pass_uncprop): ...new function.
22944         (pass_return_slot): Replace declaration with that of...
22945         (make_pass_return_slot): ...new function.
22946         (pass_reassoc): Replace declaration with that of...
22947         (make_pass_reassoc): ...new function.
22948         (pass_rebuild_cgraph_edges): Replace declaration with that of...
22949         (make_pass_rebuild_cgraph_edges): ...new function.
22950         (pass_remove_cgraph_callee_edges): Replace declaration with that of...
22951         (make_pass_remove_cgraph_callee_edges): ...new function.
22952         (pass_build_cgraph_edges): Replace declaration with that of...
22953         (make_pass_build_cgraph_edges): ...new function.
22954         (pass_local_pure_const): Replace declaration with that of...
22955         (make_pass_local_pure_const): ...new function.
22956         (pass_tracer): Replace declaration with that of...
22957         (make_pass_tracer): ...new function.
22958         (pass_warn_unused_result): Replace declaration with that of...
22959         (make_pass_warn_unused_result): ...new function.
22960         (pass_diagnose_tm_blocks): Replace declaration with that of...
22961         (make_pass_diagnose_tm_blocks): ...new function.
22962         (pass_lower_tm): Replace declaration with that of...
22963         (make_pass_lower_tm): ...new function.
22964         (pass_tm_init): Replace declaration with that of...
22965         (make_pass_tm_init): ...new function.
22966         (pass_tm_mark): Replace declaration with that of...
22967         (make_pass_tm_mark): ...new function.
22968         (pass_tm_memopt): Replace declaration with that of...
22969         (make_pass_tm_memopt): ...new function.
22970         (pass_tm_edges): Replace declaration with that of...
22971         (make_pass_tm_edges): ...new function.
22972         (pass_split_functions): Replace declaration with that of...
22973         (make_pass_split_functions): ...new function.
22974         (pass_feedback_split_functions): Replace declaration with that of...
22975         (make_pass_feedback_split_functions): ...new function.
22976         (pass_strength_reduction): Replace declaration with that of...
22977         (make_pass_strength_reduction): ...new function.
22978         (pass_ipa_lower_emutls): Replace declaration with that of...
22979         (make_pass_ipa_lower_emutls): ...new function.
22980         (pass_ipa_function_and_variable_visibility): Replace declaration with
22981         that of...
22982         (make_pass_ipa_function_and_variable_visibility): ...new function.
22983         (pass_ipa_tree_profile): Replace declaration with that of...
22984         (make_pass_ipa_tree_profile): ...new function.
22985         (pass_early_local_passes): Replace declaration with that of...
22986         (make_pass_early_local_passes): ...new function.
22987         (pass_ipa_whole_program_visibility): Replace declaration with that
22988         of...
22989         (make_pass_ipa_whole_program_visibility): ...new function.
22990         (pass_ipa_lto_gimple_out): Replace declaration with that of...
22991         (make_pass_ipa_lto_gimple_out): ...new function.
22992         (pass_ipa_increase_alignment): Replace declaration with that of...
22993         (make_pass_ipa_increase_alignment): ...new function.
22994         (pass_ipa_inline): Replace declaration with that of...
22995         (make_pass_ipa_inline): ...new function.
22996         (pass_ipa_free_lang_data): Replace declaration with that of...
22997         (make_pass_ipa_free_lang_data): ...new function.
22998         (pass_ipa_free_inline_summary): Replace declaration with that of...
22999         (make_pass_ipa_free_inline_summary): ...new function.
23000         (pass_ipa_cp): Replace declaration with that of...
23001         (make_pass_ipa_cp): ...new function.
23002         (pass_ipa_reference): Replace declaration with that of...
23003         (make_pass_ipa_reference): ...new function.
23004         (pass_ipa_pure_const): Replace declaration with that of...
23005         (make_pass_ipa_pure_const): ...new function.
23006         (pass_ipa_pta): Replace declaration with that of...
23007         (make_pass_ipa_pta): ...new function.
23008         (pass_ipa_lto_finish_out): Replace declaration with that of...
23009         (make_pass_ipa_lto_finish_out): ...new function.
23010         (pass_ipa_tm): Replace declaration with that of...
23011         (make_pass_ipa_tm): ...new function.
23012         (pass_ipa_profile): Replace declaration with that of...
23013         (make_pass_ipa_profile): ...new function.
23014         (pass_ipa_cdtor_merge): Replace declaration with that of...
23015         (make_pass_ipa_cdtor_merge): ...new function.
23016         (pass_cleanup_cfg_post_optimizing): Replace declaration with that
23017         of...
23018         (make_pass_cleanup_cfg_post_optimizing): ...new function.
23019         (pass_init_datastructures): Replace declaration with that of...
23020         (make_pass_init_datastructures): ...new function.
23021         (pass_fixup_cfg): Replace declaration with that of...
23022         (make_pass_fixup_cfg): ...new function.
23023         (pass_expand): Replace declaration with that of...
23024         (make_pass_expand): ...new function.
23025         (pass_instantiate_virtual_regs): Replace declaration with that of...
23026         (make_pass_instantiate_virtual_regs): ...new function.
23027         (pass_rtl_fwprop): Replace declaration with that of...
23028         (make_pass_rtl_fwprop): ...new function.
23029         (pass_rtl_fwprop_addr): Replace declaration with that of...
23030         (make_pass_rtl_fwprop_addr): ...new function.
23031         (pass_jump): Replace declaration with that of...
23032         (make_pass_jump): ...new function.
23033         (pass_jump2): Replace declaration with that of...
23034         (make_pass_jump2): ...new function.
23035         (pass_lower_subreg): Replace declaration with that of...
23036         (make_pass_lower_subreg): ...new function.
23037         (pass_cse): Replace declaration with that of...
23038         (make_pass_cse): ...new function.
23039         (pass_fast_rtl_dce): Replace declaration with that of...
23040         (make_pass_fast_rtl_dce): ...new function.
23041         (pass_ud_rtl_dce): Replace declaration with that of...
23042         (make_pass_ud_rtl_dce): ...new function.
23043         (pass_rtl_dce): Replace declaration with that of...
23044         (make_pass_rtl_dce): ...new function.
23045         (pass_rtl_dse1): Replace declaration with that of...
23046         (make_pass_rtl_dse1): ...new function.
23047         (pass_rtl_dse2): Replace declaration with that of...
23048         (make_pass_rtl_dse2): ...new function.
23049         (pass_rtl_dse3): Replace declaration with that of...
23050         (make_pass_rtl_dse3): ...new function.
23051         (pass_rtl_cprop): Replace declaration with that of...
23052         (make_pass_rtl_cprop): ...new function.
23053         (pass_rtl_pre): Replace declaration with that of...
23054         (make_pass_rtl_pre): ...new function.
23055         (pass_rtl_hoist): Replace declaration with that of...
23056         (make_pass_rtl_hoist): ...new function.
23057         (pass_rtl_store_motion): Replace declaration with that of...
23058         (make_pass_rtl_store_motion): ...new function.
23059         (pass_cse_after_global_opts): Replace declaration with that of...
23060         (make_pass_cse_after_global_opts): ...new function.
23061         (pass_rtl_ifcvt): Replace declaration with that of...
23062         (make_pass_rtl_ifcvt): ...new function.
23063         (pass_into_cfg_layout_mode): Replace declaration with that of...
23064         (make_pass_into_cfg_layout_mode): ...new function.
23065         (pass_outof_cfg_layout_mode): Replace declaration with that of...
23066         (make_pass_outof_cfg_layout_mode): ...new function.
23067         (pass_loop2): Replace declaration with that of...
23068         (make_pass_loop2): ...new function.
23069         (pass_rtl_loop_init): Replace declaration with that of...
23070         (make_pass_rtl_loop_init): ...new function.
23071         (pass_rtl_move_loop_invariants): Replace declaration with that of...
23072         (make_pass_rtl_move_loop_invariants): ...new function.
23073         (pass_rtl_unswitch): Replace declaration with that of...
23074         (make_pass_rtl_unswitch): ...new function.
23075         (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
23076         (make_pass_rtl_unroll_and_peel_loops): ...new function.
23077         (pass_rtl_doloop): Replace declaration with that of...
23078         (make_pass_rtl_doloop): ...new function.
23079         (pass_rtl_loop_done): Replace declaration with that of...
23080         (make_pass_rtl_loop_done): ...new function.
23081         (pass_web): Replace declaration with that of...
23082         (make_pass_web): ...new function.
23083         (pass_cse2): Replace declaration with that of...
23084         (make_pass_cse2): ...new function.
23085         (pass_df_initialize_opt): Replace declaration with that of...
23086         (make_pass_df_initialize_opt): ...new function.
23087         (pass_df_initialize_no_opt): Replace declaration with that of...
23088         (make_pass_df_initialize_no_opt): ...new function.
23089         (pass_reginfo_init): Replace declaration with that of...
23090         (make_pass_reginfo_init): ...new function.
23091         (pass_inc_dec): Replace declaration with that of...
23092         (make_pass_inc_dec): ...new function.
23093         (pass_stack_ptr_mod): Replace declaration with that of...
23094         (make_pass_stack_ptr_mod): ...new function.
23095         (pass_initialize_regs): Replace declaration with that of...
23096         (make_pass_initialize_regs): ...new function.
23097         (pass_combine): Replace declaration with that of...
23098         (make_pass_combine): ...new function.
23099         (pass_if_after_combine): Replace declaration with that of...
23100         (make_pass_if_after_combine): ...new function.
23101         (pass_ree): Replace declaration with that of...
23102         (make_pass_ree): ...new function.
23103         (pass_partition_blocks): Replace declaration with that of...
23104         (make_pass_partition_blocks): ...new function.
23105         (pass_match_asm_constraints): Replace declaration with that of...
23106         (make_pass_match_asm_constraints): ...new function.
23107         (pass_regmove): Replace declaration with that of...
23108         (make_pass_regmove): ...new function.
23109         (pass_split_all_insns): Replace declaration with that of...
23110         (make_pass_split_all_insns): ...new function.
23111         (pass_fast_rtl_byte_dce): Replace declaration with that of...
23112         (make_pass_fast_rtl_byte_dce): ...new function.
23113         (pass_lower_subreg2): Replace declaration with that of...
23114         (make_pass_lower_subreg2): ...new function.
23115         (pass_mode_switching): Replace declaration with that of...
23116         (make_pass_mode_switching): ...new function.
23117         (pass_sms): Replace declaration with that of...
23118         (make_pass_sms): ...new function.
23119         (pass_sched): Replace declaration with that of...
23120         (make_pass_sched): ...new function.
23121         (pass_ira): Replace declaration with that of...
23122         (make_pass_ira): ...new function.
23123         (pass_reload): Replace declaration with that of...
23124         (make_pass_reload): ...new function.
23125         (pass_clean_state): Replace declaration with that of...
23126         (make_pass_clean_state): ...new function.
23127         (pass_branch_prob): Replace declaration with that of...
23128         (make_pass_branch_prob): ...new function.
23129         (pass_value_profile_transformations): Replace declaration with that
23130         of...
23131         (make_pass_value_profile_transformations): ...new function.
23132         (pass_postreload_cse): Replace declaration with that of...
23133         (make_pass_postreload_cse): ...new function.
23134         (pass_gcse2): Replace declaration with that of...
23135         (make_pass_gcse2): ...new function.
23136         (pass_split_after_reload): Replace declaration with that of...
23137         (make_pass_split_after_reload): ...new function.
23138         (pass_branch_target_load_optimize1): Replace declaration with that
23139         of...
23140         (make_pass_branch_target_load_optimize1): ...new function.
23141         (pass_thread_prologue_and_epilogue): Replace declaration with that
23142         of...
23143         (make_pass_thread_prologue_and_epilogue): ...new function.
23144         (pass_stack_adjustments): Replace declaration with that of...
23145         (make_pass_stack_adjustments): ...new function.
23146         (pass_peephole2): Replace declaration with that of...
23147         (make_pass_peephole2): ...new function.
23148         (pass_if_after_reload): Replace declaration with that of...
23149         (make_pass_if_after_reload): ...new function.
23150         (pass_regrename): Replace declaration with that of...
23151         (make_pass_regrename): ...new function.
23152         (pass_cprop_hardreg): Replace declaration with that of...
23153         (make_pass_cprop_hardreg): ...new function.
23154         (pass_reorder_blocks): Replace declaration with that of...
23155         (make_pass_reorder_blocks): ...new function.
23156         (pass_branch_target_load_optimize2): Replace declaration with that
23157         of...
23158         (make_pass_branch_target_load_optimize2): ...new function.
23159         (pass_leaf_regs): Replace declaration with that of...
23160         (make_pass_leaf_regs): ...new function.
23161         (pass_split_before_sched2): Replace declaration with that of...
23162         (make_pass_split_before_sched2): ...new function.
23163         (pass_compare_elim_after_reload): Replace declaration with that of...
23164         (make_pass_compare_elim_after_reload): ...new function.
23165         (pass_sched2): Replace declaration with that of...
23166         (make_pass_sched2): ...new function.
23167         (pass_stack_regs): Replace declaration with that of...
23168         (make_pass_stack_regs): ...new function.
23169         (pass_stack_regs_run): Replace declaration with that of...
23170         (make_pass_stack_regs_run): ...new function.
23171         (pass_df_finish): Replace declaration with that of...
23172         (make_pass_df_finish): ...new function.
23173         (pass_compute_alignments): Replace declaration with that of...
23174         (make_pass_compute_alignments): ...new function.
23175         (pass_duplicate_computed_gotos): Replace declaration with that of...
23176         (make_pass_duplicate_computed_gotos): ...new function.
23177         (pass_variable_tracking): Replace declaration with that of...
23178         (make_pass_variable_tracking): ...new function.
23179         (pass_free_cfg): Replace declaration with that of...
23180         (make_pass_free_cfg): ...new function.
23181         (pass_machine_reorg): Replace declaration with that of...
23182         (make_pass_machine_reorg): ...new function.
23183         (pass_cleanup_barriers): Replace declaration with that of...
23184         (make_pass_cleanup_barriers): ...new function.
23185         (pass_delay_slots): Replace declaration with that of...
23186         (make_pass_delay_slots): ...new function.
23187         (pass_split_for_shorten_branches): Replace declaration with that of...
23188         (make_pass_split_for_shorten_branches): ...new function.
23189         (pass_split_before_regstack): Replace declaration with that of...
23190         (make_pass_split_before_regstack): ...new function.
23191         (pass_convert_to_eh_region_ranges): Replace declaration with that
23192         of...
23193         (make_pass_convert_to_eh_region_ranges): ...new function.
23194         (pass_shorten_branches): Replace declaration with that of...
23195         (make_pass_shorten_branches): ...new function.
23196         (pass_set_nothrow_function_flags): Replace declaration with that of...
23197         (make_pass_set_nothrow_function_flags): ...new function.
23198         (pass_dwarf2_frame): Replace declaration with that of...
23199         (make_pass_dwarf2_frame): ...new function.
23200         (pass_final): Replace declaration with that of...
23201         (make_pass_final): ...new function.
23202         (pass_rtl_seqabstr): Replace declaration with that of...
23203         (make_pass_rtl_seqabstr): ...new function.
23204         (pass_release_ssa_names): Replace declaration with that of...
23205         (make_pass_release_ssa_names): ...new function.
23206         (pass_early_inline): Replace declaration with that of...
23207         (make_pass_early_inline): ...new function.
23208         (pass_inline_parameters): Replace declaration with that of...
23209         (make_pass_inline_parameters): ...new function.
23210         (pass_update_address_taken): Replace declaration with that of...
23211         (make_pass_update_address_taken): ...new function.
23212         (pass_convert_switch): Replace declaration with that of...
23213         (make_pass_convert_switch): ...new function.
23214         * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
23215         to a subclass of simple_ipa_opt_pass along with...
23216         (pass_data_ipa_tree_profile): ...new pass_data instance and...
23217         (make_pass_ipa_tree_profile): ...new function.
23218         * tree-sra.c (pass_sra_early): Convert from a global struct to a
23219         subclass of gimple_opt_pass along with...
23220         (pass_data_sra_early): ...new pass_data instance and...
23221         (make_pass_sra_early): ...new function.
23222         (pass_sra): Convert from a global struct to a subclass of
23223         gimple_opt_pass along with...
23224         (pass_data_sra): ...new pass_data instance and...
23225         (make_pass_sra): ...new function.
23226         (pass_early_ipa_sra): Convert from a global struct to a subclass of
23227         gimple_opt_pass along with...
23228         (pass_data_early_ipa_sra): ...new pass_data instance and...
23229         (make_pass_early_ipa_sra): ...new function.
23230         * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
23231         subclass of gimple_opt_pass along with...
23232         (pass_data_ccp): ...new pass_data instance and...
23233         (make_pass_ccp): ...new function.
23234         (pass_fold_builtins): Convert from a global struct to a subclass of
23235         gimple_opt_pass along with...
23236         (pass_data_fold_builtins): ...new pass_data instance and...
23237         (make_pass_fold_builtins): ...new function.
23238         * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
23239         subclass of gimple_opt_pass along with...
23240         (pass_data_copy_prop): ...new pass_data instance and...
23241         (make_pass_copy_prop): ...new function.
23242         * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
23243         global struct to a subclass of gimple_opt_pass along with...
23244         (pass_data_rename_ssa_copies): ...new pass_data instance and...
23245         (make_pass_rename_ssa_copies): ...new function.
23246         * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
23247         subclass of gimple_opt_pass along with...
23248         (pass_data_dce): ...new pass_data instance and...
23249         (make_pass_dce): ...new function.
23250         (pass_dce_loop): Convert from a global struct to a subclass of
23251         gimple_opt_pass along with...
23252         (pass_data_dce_loop): ...new pass_data instance and...
23253         (make_pass_dce_loop): ...new function.
23254         (pass_cd_dce): Convert from a global struct to a subclass of
23255         gimple_opt_pass along with...
23256         (pass_data_cd_dce): ...new pass_data instance and...
23257         (make_pass_cd_dce): ...new function.
23258         * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
23259         subclass of gimple_opt_pass along with...
23260         (pass_data_dominator): ...new pass_data instance and...
23261         (make_pass_dominator): ...new function.
23262         (pass_phi_only_cprop): Convert from a global struct to a subclass of
23263         gimple_opt_pass along with...
23264         (pass_data_phi_only_cprop): ...new pass_data instance and...
23265         (make_pass_phi_only_cprop): ...new function.
23266         * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
23267         subclass of gimple_opt_pass along with...
23268         (pass_data_dse): ...new pass_data instance and...
23269         (make_pass_dse): ...new function.
23270         * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
23271         a subclass of gimple_opt_pass along with...
23272         (pass_data_forwprop): ...new pass_data instance and...
23273         (make_pass_forwprop): ...new function.
23274         * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
23275         struct to a subclass of gimple_opt_pass along with...
23276         (pass_data_tree_ifcombine): ...new pass_data instance and...
23277         (make_pass_tree_ifcombine): ...new function.
23278         * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
23279         subclass of gimple_opt_pass along with...
23280         (pass_data_ch): ...new pass_data instance and...
23281         (make_pass_ch): ...new function.
23282         * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
23283         subclass of gimple_opt_pass along with...
23284         (pass_data_tree_loop): ...new pass_data instance and...
23285         (make_pass_tree_loop): ...new function.
23286         (pass_tree_loop_init): Convert from a global struct to a subclass of
23287         gimple_opt_pass along with...
23288         (pass_data_tree_loop_init): ...new pass_data instance and...
23289         (make_pass_tree_loop_init): ...new function.
23290         (pass_lim): Convert from a global struct to a subclass of
23291         gimple_opt_pass along with...
23292         (pass_data_lim): ...new pass_data instance and...
23293         (make_pass_lim): ...new function.
23294         (pass_tree_unswitch): Convert from a global struct to a subclass of
23295         gimple_opt_pass along with...
23296         (pass_data_tree_unswitch): ...new pass_data instance and...
23297         (make_pass_tree_unswitch): ...new function.
23298         (pass_predcom): Convert from a global struct to a subclass of
23299         gimple_opt_pass along with...
23300         (pass_data_predcom): ...new pass_data instance and...
23301         (make_pass_predcom): ...new function.
23302         (pass_vectorize): Convert from a global struct to a subclass of
23303         gimple_opt_pass along with...
23304         (pass_data_vectorize): ...new pass_data instance and...
23305         (make_pass_vectorize): ...new function.
23306         (pass_graphite): Convert from a global struct to a subclass of
23307         gimple_opt_pass along with...
23308         (pass_data_graphite): ...new pass_data instance and...
23309         (make_pass_graphite): ...new function.
23310         (pass_graphite_transforms): Convert from a global struct to a subclass
23311         of gimple_opt_pass along with...
23312         (pass_data_graphite_transforms): ...new pass_data instance and...
23313         (make_pass_graphite_transforms): ...new function.
23314         (pass_check_data_deps): Convert from a global struct to a subclass of
23315         gimple_opt_pass along with...
23316         (pass_data_check_data_deps): ...new pass_data instance and...
23317         (make_pass_check_data_deps): ...new function.
23318         (pass_iv_canon): Convert from a global struct to a subclass of
23319         gimple_opt_pass along with...
23320         (pass_data_iv_canon): ...new pass_data instance and...
23321         (make_pass_iv_canon): ...new function.
23322         (pass_scev_cprop): Convert from a global struct to a subclass of
23323         gimple_opt_pass along with...
23324         (pass_data_scev_cprop): ...new pass_data instance and...
23325         (make_pass_scev_cprop): ...new function.
23326         (pass_record_bounds): Convert from a global struct to a subclass of
23327         gimple_opt_pass along with...
23328         (pass_data_record_bounds): ...new pass_data instance and...
23329         (make_pass_record_bounds): ...new function.
23330         (pass_complete_unroll): Convert from a global struct to a subclass of
23331         gimple_opt_pass along with...
23332         (pass_data_complete_unroll): ...new pass_data instance and...
23333         (make_pass_complete_unroll): ...new function.
23334         (pass_complete_unrolli): Convert from a global struct to a subclass of
23335         gimple_opt_pass along with...
23336         (pass_data_complete_unrolli): ...new pass_data instance and...
23337         (make_pass_complete_unrolli): ...new function.
23338         (pass_parallelize_loops): Convert from a global struct to a subclass
23339         of gimple_opt_pass along with...
23340         (pass_data_parallelize_loops): ...new pass_data instance and...
23341         (make_pass_parallelize_loops): ...new function.
23342         (pass_loop_prefetch): Convert from a global struct to a subclass of
23343         gimple_opt_pass along with...
23344         (pass_data_loop_prefetch): ...new pass_data instance and...
23345         (make_pass_loop_prefetch): ...new function.
23346         (pass_iv_optimize): Convert from a global struct to a subclass of
23347         gimple_opt_pass along with...
23348         (pass_data_iv_optimize): ...new pass_data instance and...
23349         (make_pass_iv_optimize): ...new function.
23350         (pass_tree_loop_done): Convert from a global struct to a subclass of
23351         gimple_opt_pass along with...
23352         (pass_data_tree_loop_done): ...new pass_data instance and...
23353         (make_pass_tree_loop_done): ...new function.
23354         * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
23355         struct to a subclass of gimple_opt_pass along with...
23356         (pass_data_cse_reciprocals): ...new pass_data instance and...
23357         (make_pass_cse_reciprocals): ...new function.
23358         (pass_cse_sincos): Convert from a global struct to a subclass of
23359         gimple_opt_pass along with...
23360         (pass_data_cse_sincos): ...new pass_data instance and...
23361         (make_pass_cse_sincos): ...new function.
23362         (pass_optimize_bswap): Convert from a global struct to a subclass of
23363         gimple_opt_pass along with...
23364         (pass_data_optimize_bswap): ...new pass_data instance and...
23365         (make_pass_optimize_bswap): ...new function.
23366         (pass_optimize_widening_mul): Convert from a global struct to a
23367         subclass of gimple_opt_pass along with...
23368         (pass_data_optimize_widening_mul): ...new pass_data instance and...
23369         (make_pass_optimize_widening_mul): ...new function.
23370         * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
23371         subclass of gimple_opt_pass along with...
23372         (pass_data_phiopt): ...new pass_data instance and...
23373         (make_pass_phiopt): ...new function.
23374         (pass_cselim): Convert from a global struct to a subclass of
23375         gimple_opt_pass along with...
23376         (pass_data_cselim): ...new pass_data instance and...
23377         (make_pass_cselim): ...new function.
23378         * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
23379         subclass of gimple_opt_pass along with...
23380         (pass_data_phiprop): ...new pass_data instance and...
23381         (make_pass_phiprop): ...new function.
23382         * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
23383         subclass of gimple_opt_pass along with...
23384         (pass_data_pre): ...new pass_data instance and...
23385         (make_pass_pre): ...new function.
23386         (pass_fre): Convert from a global struct to a subclass of
23387         gimple_opt_pass along with...
23388         (pass_data_fre): ...new pass_data instance and...
23389         (make_pass_fre): ...new function.
23390         * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
23391         subclass of gimple_opt_pass along with...
23392         (pass_data_reassoc): ...new pass_data instance and...
23393         (make_pass_reassoc): ...new function.
23394         * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
23395         subclass of gimple_opt_pass along with...
23396         (pass_data_sink_code): ...new pass_data instance and...
23397         (make_pass_sink_code): ...new function.
23398         * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
23399         subclass of gimple_opt_pass along with...
23400         (pass_data_strlen): ...new pass_data instance and...
23401         (make_pass_strlen): ...new function.
23402         * tree-ssa-structalias.c (pass_build_alias): Convert from a global
23403         struct to a subclass of gimple_opt_pass along with...
23404         (pass_data_build_alias): ...new pass_data instance and...
23405         (make_pass_build_alias): ...new function.
23406         (pass_build_ealias): Convert from a global struct to a subclass of
23407         gimple_opt_pass along with...
23408         (pass_data_build_ealias): ...new pass_data instance and...
23409         (make_pass_build_ealias): ...new function.
23410         (pass_ipa_pta): Convert from a global struct to a subclass of
23411         simple_ipa_opt_pass along with...
23412         (pass_data_ipa_pta): ...new pass_data instance and...
23413         (make_pass_ipa_pta): ...new function.
23414         * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
23415         subclass of gimple_opt_pass along with...
23416         (pass_data_uncprop): ...new pass_data instance and...
23417         (make_pass_uncprop): ...new function.
23418         * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
23419         global struct to a subclass of gimple_opt_pass along with...
23420         (pass_data_late_warn_uninitialized): ...new pass_data instance and...
23421         (make_pass_late_warn_uninitialized): ...new function.
23422         * tree-ssa.c (pass_init_datastructures): Convert from a global struct
23423         to a subclass of gimple_opt_pass along with...
23424         (pass_data_init_datastructures): ...new pass_data instance and...
23425         (make_pass_init_datastructures): ...new function.
23426         (pass_early_warn_uninitialized): Convert from a global struct to a
23427         subclass of gimple_opt_pass along with...
23428         (pass_data_early_warn_uninitialized): ...new pass_data instance and...
23429         (make_pass_early_warn_uninitialized): ...new function.
23430         (pass_update_address_taken): Convert from a global struct to a
23431         subclass of gimple_opt_pass along with...
23432         (pass_data_update_address_taken): ...new pass_data instance and...
23433         (make_pass_update_address_taken): ...new function.
23434         * tree-ssanames.c (pass_release_ssa_names): Convert from a global
23435         struct to a subclass of gimple_opt_pass along with...
23436         (pass_data_release_ssa_names): ...new pass_data instance and...
23437         (make_pass_release_ssa_names): ...new function.
23438         * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
23439         subclass of gimple_opt_pass along with...
23440         (pass_data_stdarg): ...new pass_data instance and...
23441         (make_pass_stdarg): ...new function.
23442         * tree-switch-conversion.c (pass_convert_switch): Convert from a
23443         global struct to a subclass of gimple_opt_pass along with...
23444         (pass_data_convert_switch): ...new pass_data instance and...
23445         (make_pass_convert_switch): ...new function.
23446         * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
23447         to a subclass of gimple_opt_pass along with...
23448         (pass_data_tail_recursion): ...new pass_data instance and...
23449         (make_pass_tail_recursion): ...new function.
23450         (pass_tail_calls): Convert from a global struct to a subclass of
23451         gimple_opt_pass along with...
23452         (pass_data_tail_calls): ...new pass_data instance and...
23453         (make_pass_tail_calls): ...new function.
23454         * tree-vect-generic.c (pass_lower_vector): Convert from a global
23455         struct to a subclass of gimple_opt_pass along with...
23456         (pass_data_lower_vector): ...new pass_data instance and...
23457         (make_pass_lower_vector): ...new function.
23458         (pass_lower_vector_ssa): Convert from a global struct to a subclass of
23459         gimple_opt_pass along with...
23460         (pass_data_lower_vector_ssa): ...new pass_data instance and...
23461         (make_pass_lower_vector_ssa): ...new function.
23462         * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
23463         to a subclass of gimple_opt_pass along with...
23464         (pass_data_slp_vectorize): ...new pass_data instance and...
23465         (make_pass_slp_vectorize): ...new function.
23466         (pass_ipa_increase_alignment): Convert from a global struct to a
23467         subclass of simple_ipa_opt_pass along with...
23468         (pass_data_ipa_increase_alignment): ...new pass_data instance and...
23469         (make_pass_ipa_increase_alignment): ...new function.
23470         * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
23471         gimple_opt_pass along with...
23472         (pass_data_vrp): ...new pass_data instance and...
23473         (make_pass_vrp): ...new function.
23474         * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
23475         subclass of simple_ipa_opt_pass along with...
23476         (pass_data_ipa_free_lang_data): ...new pass_data instance and...
23477         (make_pass_ipa_free_lang_data): ...new function.
23478         * tsan.c (pass_tsan): Convert from a global struct to a subclass of
23479         gimple_opt_pass along with...
23480         (pass_data_tsan): ...new pass_data instance and...
23481         (make_pass_tsan): ...new function.
23482         (pass_tsan_O0): Convert from a global struct to a subclass of
23483         gimple_opt_pass along with...
23484         (pass_data_tsan_O0): ...new pass_data instance and...
23485         (make_pass_tsan_O0): ...new function.
23486         * var-tracking.c (pass_variable_tracking): Convert from a global
23487         struct to a subclass of rtl_opt_pass along with...
23488         (pass_data_variable_tracking): ...new pass_data instance and...
23489         (make_pass_variable_tracking): ...new function.
23490         * web.c (pass_web): Convert from a global struct to a subclass of
23491         rtl_opt_pass along with...
23492         (pass_data_web): ...new pass_data instance and...
23493         (make_pass_web): ...new function.
23494         * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
23495         declaration with that of...
23496         (make_pass_mode_switch_use): ...new function.
23497         (pass_resolve_sw_modes): Replace declaration with that of...
23498         (make_pass_resolve_sw_modes): ...new function.
23499         * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
23500         from a global struct to a subclass of rtl_opt_pass along with...
23501         (pass_data_mode_switch_use): ...new pass_data instance and...
23502         (make_pass_mode_switch_use): ...new function.
23503         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
23504         from a global struct to a subclass of rtl_opt_pass along with...
23505         (pass_data_resolve_sw_modes): ...new pass_data instance and...
23506         (make_pass_resolve_sw_modes): ...new function.
23507         * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
23508         struct to a subclass of rtl_opt_pass along with...
23509         (pass_data_insert_vzeroupper): ...new pass_data instance and...
23510         (make_pass_insert_vzeroupper): ...new function.
23511         * config/sparc/sparc.c (pass_work_around_errata): Convert from a
23512         global struct to a subclass of rtl_opt_pass along with...
23513         (pass_data_work_around_errata): ...new pass_data instance and...
23514         (make_pass_work_around_errata): ...new function.
23515         * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
23516         struct to a subclass of rtl_opt_pass along with...
23517         (pass_data_mips_machine_reorg2): ...new pass_data instance and...
23518         (make_pass_mips_machine_reorg2): ...new function.
23520 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
23522         * passes.c (pass_manager::operator new): New.
23524 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
23526         Handwritten part of conversion of passes to C++ classes.
23528         * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
23529         (toplev.o): Add dep on PASS_MANAGER_H.
23530         * cgraphunit.c (cgraph_process_new_functions): Rework invocation
23531         of early local pases to reflect this moving from a global to a
23532         member of gcc::pass_manager.
23533         (cgraph_add_new_function): Likewise.
23534         * lto-cgraph.c (lto_output_node): Update for conversion of
23535         struct ipa_opt_pass_d to a C++ subclass of opt_pass.
23536         * passes.c (opt_pass::clone): New.
23537         (opt_pass::gate): New.
23538         (opt_pass::execute): New.
23539         (opt_pass::opt_pass): New.
23540         (pass_manager::execute_early_local_passes): New.
23541         (pass_manager::execute_pass_mode_switching): new.
23542         (finish_optimization_passes): Convert to...
23543         (pass_manager::finish_optimization_passes): ...this.
23544         (finish_optimization_passes): Update for conversion of passes to
23545         C++ classes.
23546         (register_dump_files_1): Use has_gate since we cannot portably
23547         check a vtable entry against NULL.
23548         (dump_one_pass): Likewise.
23549         (ipa_write_summaries_2): Likewise.
23550         (ipa_write_optimization_summaries_1): Likewise.
23551         (ipa_read_summaries_1): Likewise.
23552         (ipa_read_optimization_summaries_1): Likewise.
23553         (execute_ipa_stmt_fixups): Likewise.
23554         (pass_manager::pass_manager): Rewrite pass-creation, invoking
23555         pass-creation functions rather than wiring up globals, and
23556         storing the results in fields of pass_manager generated using
23557         pass-instances.def.
23558         (pass_manager::dump_profile_report): Update for conversion of
23559         passes to C++ classes.
23560         (pass_manager::execute_ipa_summary_passes): Likewise.
23561         (execute_one_ipa_transform_pass): Likewise.
23562         (execute_one_pass): Use has_gate and has_execute since we cannot
23563         portably check a vtable entry against NULL.
23564         * pass_manager.h (pass_manager::finish_optimization_passes): New.
23565         (pass_manager): Use pass-instances.def to add fields for the
23566         various pass instances.
23567         * toplev.c (finalize): Update for move of
23568         finish_optimization_passes to a method of gcc::pass_manager.
23569         * toplev.h (finish_optimization_passes): Move to method of class
23570         pass_manager.
23571         * tree-pass.h (struct pass_data): New.
23572         (opt_pass): Convert to C++ class, make it a subclass of pass_data.
23573         (opt_pass::gate): Convert to virtual function.
23574         (opt_pass::~opt_pass): New.
23575         (opt_pass::clone): New.
23576         (opt_pass::execute): Convert to virtual function.
23577         (opt_pass::opt_pass): New.
23578         (opt_pass::ctxt_): new.
23579         (gimple_opt_pass): Convert to subclass of opt_pass.
23580         (gimple_opt_pass::gimple_opt_pass): New.
23581         (rtl_opt_pass): Convert to subclass of opt_pass.
23582         (rtl_opt_pass::rtl_opt_pass): New.
23583         (ipa_opt_pass_d): Convert to subclass of opt_pass.
23584         (ipa_opt_pass_d::ipa_opt_pass_d): New.
23585         (simple_ipa_opt_pass): Convert to subclass of opt_pass.
23586         (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
23587         * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
23588         invocation of pass_mode_switching to reflect this moving from a
23589         global to a member of gcc::pass_manager.
23590         (ix86_option_override): Rework how pass_insert_vzeroupper is
23591         added to the pass_manager to reflect autogenerated changes.
23592         * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
23594 2013-08-05  Richard Earnshaw  <rearnsha@arm.com>
23596         PR rtl-optimization/57708
23597         * recog.c (peep2_find_free_register): Validate all regs in a
23598         multi-reg mode.
23600 2013-08-05  Jan Hubicka  <jh@suse.cz>
23602         PR lto/57602
23603         * cgraph.c (verify_cgraph_node): Accept local flags from other
23604         partitions.
23605         * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
23606         (function_and_variable_visibility): Likewise.
23607         * trans-mem.c (ipa_tm_create_version): TM versions are not local.
23609 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
23611         * graph.c (init_graph_slim_pretty_print): Remove.
23612         (print_graph_cfg): Do not call it.  Use local pretty printer.
23613         (start_graph_dump): Likewise.
23615 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
23617         * gimple-pretty-print.c (buffer): Remove.
23618         (initialized): Likewise.
23619         (maybe_init_pretty_print): Likewise.
23620         (print_gimple_stmt): Do not call it.  Use non-static local
23621         pretty_printer variable.
23622         (print_gimple_expr): Likewise.
23623         (print_gimple_seq): Likewise.
23624         (gimple_dump_bb): Likewise.
23626 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
23628         * asan.c (asan_pp): Remove.
23629         (asan_pp_initialized): Likewise.
23630         (asan_pp_initialize): Likewise.
23631         (asan_pp_string): Take a pretty_printer parameter.  Adjust callers.
23632         (asan_emit_stack_protection): Tidy.  Use local pretty printer.
23633         (asan_add_global): Likewise.
23635 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
23637         * pretty-print.h (pp_base): Remove.  Adjust dependent macros.
23638         * diagnostic.h (diagnostic_flush_buffer): Adjust.
23639         * pretty-print.c (pp_formatted_text_data): Likewise.
23640         (pp_indent): Rename from pp_base_indent.
23641         (pp_format): Rename from pp_base_format.
23642         (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
23643         (pp_format_verbatim): Rename from pp_base_format_verbatim.
23644         (pp_flush): Rename from pp_base_flush.
23645         (pp_set_line_maximum_length): Rename from
23646         pp_base_set_line_maximum_length.
23647         (pp_clear_output_area): Rename from pp_base_clear_output_area.
23648         (pp_set_prefix): Rename from pp_base_set_prefix.
23649         (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
23650         (pp_emit_prefix): Rename from pp_base_emit_prefix.
23651         (pp_append_text): Rename from pp_base_append_text.
23652         (pp_formatted_text): Rename from pp_base_formatted_text.
23653         (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
23654         (pp_remaining_character_count_for_line): Rename from
23655         pp_base_remaining_character_count_for_line.
23656         (pp_newline): Rename from pp_base_newline.
23657         (pp_character): Rename from pp_base_character.
23658         (pp_string): Rename from pp_base_string.
23659         (pp_maybe_space): Rename from pp_base_maybe_space.
23660         * asan.c (asan_pp_string): Adjust.
23661         (asan_emit_stack_protection): Likewise.
23662         (asan_add_global): Likewise.
23663         * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
23664         * tree-mudflap.c (mf_varname_tree): Likewise.
23665         * tree-pretty-print.c (pp_tree_identifier): Rename from
23666         pp_base_tree_identifier.
23667         * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
23668         Declare as function.
23670 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
23672         * pretty-print.h (pp_bar_bar): New.
23673         (pp_ampersand_ampersand): Likewise.
23674         (pp_less_equal): Likewise.
23675         (pp_greater_equal): Likewise.
23676         * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
23677         printer functions instead of pp_string or operators and punctuators.
23678         (dump_gimple_call): Likewise.
23679         (dump_gimple_omp_for): Likewise.
23680         (dump_gimple_transaction): Likewise.
23681         (dump_gimple_phi): Likewise.
23682         (pp_gimple_stmt_1): Likewise.
23683         * sched-vis.c (print_insn): Likewise.
23684         * tree-mudflap.c (mf_varname_tree): Likewise.
23685         * tree-pretty-print.c (dump_block_node): Likewise.
23686         (dump_generic_node): Likewise.
23688 2013-08-02  Jan Hubicka  <jh@suse.cz>
23690         * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
23691         boundaries.
23692         * lto-streamer-out.c (tree_is_indexable): Results decls and
23693         parm decls are not indexable.
23694         (DFS_write_tree_body): Do not follow args and results.
23695         (hash_tree): Likewise.
23696         (output_functions): Rearrange so struct function is needed
23697         only when real body is output; be able to also ouptut abstract
23698         functions; output DECL_ARGUMENTS and DECL_RESULT.
23699         (lto_output): When not in WPA, ale store abstract functions.
23700         (write_symbol): Do not care about RESULT_DECL.
23701         (output_symbol_p): Handle correctly sbtract decls.
23702         * lto-streamer-in.c (input_function): Rearrange so struct
23703         function can be NULL at entry; allow streaming of
23704         functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
23705         * ipa.c (symtab_remove_unreachable_nodes): Silence confused
23706         sanity check during LTO.
23707         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
23708         RESULT_DECl and DECL_ARGUMENTS.
23709         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
23710         Likewise.
23712 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
23714         * pretty-print.h (pp_underscore): New.
23715         (pp_comma): Tidy.
23716         * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
23717         printer functions instead of pp_character.
23718         (dump_binary_rhs): Likewise.
23719         (dump_ternary_rhs): Likewise.
23720         (dump_gimple_call_args): Likewise.
23721         (pp_points_to_solution): Likewise.
23722         (dump_gimple_call): Likewise.
23723         (dump_gimple_switch): Likewise.
23724         (dump_gimple_cond): Likewise.
23725         (dump_gimple_bind): Likewise.
23726         (dump_gimple_try): Likewise.
23727         (dump_gimple_omp_for): Likewise.
23728         (dump_gimple_omp_continue): Likewise.
23729         (dump_gimple_omp_single): Likewise.
23730         (dump_gimple_omp_sections): Likewise.
23731         (dump_gimple_omp_block): Likewise.
23732         (dump_gimple_omp_critical): Likewise.
23733         (dump_gimple_transaction): Likewise.
23734         (dump_gimple_asm): Likewise.
23735         (dump_gimple_phi): Likewise.
23736         (dump_gimple_omp_parallel): Likewise.
23737         (dump_gimple_omp_task): Likewise.
23738         (dump_gimple_omp_atomic_load): Likewise.
23739         (dump_gimple_omp_atomic_store): Likewise.
23740         (dump_gimple_mem_ops): Likewise.
23741         (pp_gimple_stmt_1): Likewise.
23742         (pp_cfg_jump): Likewise.
23743         (dump_implicit_edges): Likewise.
23744         (gimple_dump_bb_for_graph): Likewise.
23745         * graph.c (draw_cfg_node): Likewise.
23746         * langhooks.c (lhd_print_error_function): Likewise.
23747         * sched-vis.c (print_exp): Likewise.
23748         (print_value): Likewise.
23749         (print_pattern): Likewise.
23750         (print_insn): Likewise.
23751         (rtl_dump_bb_for_graph): Likewise.
23752         * tree-pretty-print.c (dump_function_declaration): Likewise.
23753         (dump_array_domain): Likewise.
23754         (dump_omp_clause): Likewise.
23755         (dump_location): Likewise.
23756         (dump_generic_node): Likewise.
23757         (print_struct_decl): Likewise.
23758         * diagnostic.c (diagnostic_show_locus): Use pp_space.
23760 2013-08-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
23762         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
23763         candidate table when replacing a candidate statement.
23764         (replace_rhs_if_not_dup): Likewise.
23765         (replace_one_candidate): Likewise.
23767 2013-08-02  Jan Hubicka  <jh@suse.cz>
23768             Martin Liska  <marxin.liska@gmail.com>
23770         * cgraphunit.c (add_new_function): Fix logic when adding from
23771         late IPA pass.
23772         (assemble_thunk): Rename to ...
23773         (expand_thunk); .. this one; export; get it working with
23774         general functions; make produced gimple valid.
23775         * cgraph.h (expand_thunk): Declare.
23777 2013-08-02  Jan Hubicka  <jh@suse.cz>
23779         * ipa-cp.c (gather_context_independent_values): Use
23780         ipa_get_param_move_cost.
23781         (get_replacement_map): Remove PARAM; move parameter folding
23782         into tree-inline.c
23783         (create_specialized_node): Update.
23784         * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
23785         assert that we have gimple body; update move_cost.
23786         (count_formal_params): Assert that we have gimple body.
23787         (ipa_dump_param): New function.
23788         (ipa_alloc_node_params): Break out from ...
23789         (ipa_initialize_node_params): ... here.
23790         (ipa_get_vector_of_formal_parms): ICE when used in WPA.
23791         (ipa_write_node_info): Stream move costs.
23792         (ipa_read_node_info): Read move costs.
23793         (ipa_update_after_lto_read): Do not recompute node params.
23794         * ipa-prop.h (ipa_param_descriptor): Add move_cost.
23795         (ipa_get_param): Check we are not in WPA.
23796         (ipa_get_param_move_cost): New.
23797         * tree-inline.c (tree_function_versioning): Fold replacement as needed.
23798         * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
23799         parm numbers to be present.
23801 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
23803         PR rtl-optimization/58048
23804         * lra-constraints.c (process_alt_operands): Don't check asm
23805         operand on register.
23807 2013-08-02  Eric Botcazou  <ebotcazou@adacore.com>
23809         * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
23810         the implied StoreLoad barrier for atomic operations if before.
23812 2013-08-02  Jan Hubicka  <jh@suse.cz>
23813             Martin Liska  <marxin.liska@gmail.com>
23815         * cgraph.c (cgraph_function_body_availability): Do not check
23816         cgraph flags.
23817         * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
23818         symtab_node_availability): Declare.
23819         * ipa.c (can_replace_by_local_alias): New.
23820         (function_and_variable_visibility): Use it.
23821         * symtab.c (symtab_for_node_and_aliases,
23822         symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
23824 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
23826         PR rtl-optimization/57963
23827         * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
23828         (lra_constraints): Use them.
23830 2013-08-02  Sofiane Naci  <sofiane.naci@arm.com>
23832         * config/arm/types.md (define_attr "type"): Add "load_acq"
23833         and "store_rel".
23834         * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
23835         changes.
23836         (cortex_a53_store1): Likewise.
23838 2013-08-01  Jan Hubicka  <jh@suse.cz>
23840         * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
23841         partitions are not needed.
23843 2013-08-01  Uros Bizjak  <ubizjak@gmail.com>
23845         * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
23846         * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
23847         MAYBE_NON_Q_CLASS_P where appropriate.
23849 2013-08-01  Jan Hubicka  <jh@suse.cz>
23851         * cgraph.h (release_function_body): Declare.
23852         * tree.c (free_lang_data_in_decl): Free, parameters and return values
23853         of unused delcarations.
23855 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23857         * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
23858         RTL form when subtracting a constant.
23860 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23862         * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
23863         Generate canonical plus rtx with negated immediate instead of minus
23864         where appropriate.
23865         * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
23867 2013-08-01  Jan Hubicka  <jh@suse.cz>
23869         * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
23870         (cgraph_release_function_body): Likewise.
23871         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
23872         * cgraph.h (cgrpah_node): Rename abstract_and_needed
23873         to used_as_abstract_origin.
23874         * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
23875         symbols used as abstract origins.
23876         * cgraphunit.c (analyze_functions): Update.
23877         * ipa.c (symtab_remove_unreachable_nodes): Recompute
23878         used_as_abstract_origin.
23879         * tree-inline.c (tree_function_versioning): Update
23880         used_as_abstract_origin; be ready for DECL_RESULT and
23881         DECL_ARGUMENTS to be NULL.
23883         * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
23884         for abstract functions.
23885         * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
23886         real symbols.
23888 2013-08-01  Jan Hubicka  <jh@suse.cz>
23890         * profile.c (compute_value_histograms): Fix thinko.
23892 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
23894         * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs.  Add
23895         aarch-common-protos.h to extra_headers.
23896         (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
23897         * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
23898         * config/aarch64/t-aarch64 (aarch-common.o): Define.
23900 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
23902         * config/aarch64/aarch64.md (define_attr "type"): Delete.
23903         Include "../arm/types.md".  Define "type" attribute for all patterns.
23904         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
23905         attribute changes.
23907 2013-07-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
23909         * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
23910         to support power8 load fusion.
23911         (fusion_gpr_mem_load): Likewise.
23913         * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
23915         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
23916         declarations for power8 load fusion.
23917         (emit_fusion_gpr_load): Likewise.
23919         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
23920         tuning for power8, turn on fusion mode by default.  Turn on sign
23921         extending fusion mode if normal fusion mode is on, and we are at
23922         -O2 or -O3.
23923         (fusion_gpr_load_p): New function, return true if we can fuse an
23924         addis instruction with a dependent load to a GPR.
23925         (emit_fusion_gpr_load): Emit the instructions for power8 load
23926         fusion to GPRs.
23928         * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
23929         (VSX load fusion peepholes): New peepholes to fuse together an
23930         addi instruction with a VSX load instruction.
23932         * config/rs6000/rs6000.md (GPR load fusion peepholes): New
23933         peepholes to fuse an addis instruction with a load to a GPR base
23934         register.  If we are supporting sign extending fusions, convert
23935         sign extending loads to zero extending loads and add an explicit
23936         sign extension.
23938 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
23940         * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs.  Add
23941         aarch-common-protos.h to extra_headers.
23942         (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
23943         * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
23944         (arm_early_store_addr_dep): Likewise.
23945         (arm_no_early_alu_shift_dep): Likewise.
23946         (arm_no_early_alu_shift_value_dep): Likewise.
23947         (arm_no_early_mul_dep): Likewise.
23948         (arm_no_early_store_addr_dep): Likewise.
23949         (arm_mac_accumulator_is_mul_result): Likewise.
23950         (arm_mac_accumulator_is_result): Likewise.
23951         * config/arm/aarch-common.c: ... here.  New file.
23952         * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
23953         here to ...
23954         (arm_early_store_addr_dep): Likewise.
23955         (arm_no_early_alu_shift_dep): Likewise.
23956         (arm_no_early_alu_shift_value_dep): Likewise.
23957         (arm_no_early_mul_dep): Likewise.
23958         (arm_no_early_store_addr_dep): Likewise.
23959         (arm_mac_accumulator_is_mul_result): Likewise.
23960         (arm_mac_accumulator_is_result): Likewise.
23961         * config/arm/aarch-common-protos.h: ... here.  New file.
23962         * config/arm/t-arm (aarch-common.o): Define.
23964 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
23966         * config/arm/arm.md: Include new file "types.md".
23967         (define_attr "type"): Move from here to ...
23968         (define_attr "mul32"): Likewise.
23969         (define_attr "mul64"): Likewise.
23970         * config/arm/types.md: ... here.  New file.
23972 2013-07-31  Sebastian Huber  <sebastian.huber@embedded-brains.de>
23974         * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
23975         * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
23977 2013-07-31  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
23979         * gen-pass-instances.awk: Fix offset of substr().
23981 2013-07-31  David Malcolm  <dmalcolm@redhat.com>
23983         * Makefile.in (pass-instances.def): New.
23984         (passes.o): Replace dependency on passes.def with one on
23985         pass-instances.def
23987         * gen-pass-instances.awk: New.
23989         * passes.c (pass_manager::pass_manager): Use pass-instances.def
23990         rather than passes.def, updating local definition of NEXT_PASS
23991         macro to add an extra NUM parameter (currently unused).
23993 2013-07-30  David Malcolm  <dmalcolm@redhat.com>
23995         * Makefile.in (PASS_MANAGER_H): New.
23996         (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
23997         (passes.o): Likewise.
23998         (statistics.o): Likewise.
23999         (cgraphunit.o): Likewise.
24000         (context.o): Depend on PASS_MANAGER_H.
24002         * pass_manager.h: New.
24004         * cgraphunit.c (cgraph_add_new_function): Update for moves
24005         of globals to fields of pass_manager.
24006         (analyze_function): Likewise.
24007         (expand_function): Likewise.
24008         (ipa_passes): Likewise.
24009         (compile): Likewise.
24011         * context.c (context::context): New.
24012         * context.h  (context::context): New.
24013         (context::get_passes): New.
24014         (context::passes_): New.
24016         * lto-cgraph.c (input_node): Update for moves of globals to
24017         fields of pass_manager.
24019         * passes.c (all_passes): Remove, in favor of a field of the
24020         same name within the new class pass_manager.
24021         (all_small_ipa_passes): Likewise.
24022         (all_lowering_passes): Likewise.
24023         (all_regular_ipa_passes): Likewise.
24024         (all_late_ipa_passes): Likewise.
24025         (all_lto_gen_passes): Likewise.
24026         (passes_by_id): Likewise.
24027         (passes_by_id_size): Likewise.
24028         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
24029         the new class pass_manager.
24030         (set_pass_for_id): Convert to...
24031         (pass_manager::set_pass_for_id): ...method.
24032         (get_pass_for_id): Convert to...
24033         (pass_manager::get_pass_for_id): ...method.
24034         (register_one_dump_file): Move body of implementation into...
24035         (pass_manager::register_one_dump_file): ...here.
24036         (register_dump_files_1): Convert to...
24037         (pass_manager::register_dump_files_1): ...method.
24038         (register_dump_files): Convert to...
24039         (pass_manager::register_dump_files): ...method.
24040         (create_pass_tab): Update for moves of globals to fields of
24041         pass_manager.
24042         (dump_passes): Move body of implementation into...
24043         (pass_manager::dump_passes): ...here.
24044         (register_pass): Move body of implementation into...
24045         (pass_manager::register_pass): ...here.
24046         (init_optimization_passes): Convert into...
24047         (pass_manager::pass_manager): ...constructor for new
24048         pass_manager class, and initialize the pass_lists array.
24049         (check_profile_consistency): Update for moves of globals to
24050         fields of pass_manager.
24051         (dump_profile_report): Move body of implementation into...
24052         (pass_manager::dump_profile_report): ...here.
24053         (ipa_write_summaries_1): Update for moves of pass lists from
24054         being globals to fields of pass_manager.
24055         (ipa_write_optimization_summaries): Likewise.
24056         (ipa_read_summaries):  Likewise.
24057         (ipa_read_optimization_summaries): Likewise.
24058         (execute_all_ipa_stmt_fixups): Likewise.
24060         * statistics.c (statistics_fini): Update for moves of globals to
24061         fields of pass_manager.
24063         * toplev.c (general_init): Replace call to
24064         init_optimization_passes with construction of the pass_manager
24065         instance.
24067         * tree-pass.h (all_passes): Remove, in favor of a field of the
24068         same name within the new class pass_manager.
24069         (all_small_ipa_passes): Likewise.
24070         (all_lowering_passes): Likewise.
24071         (all_regular_ipa_passes): Likewise.
24072         (all_lto_gen_passes): Likewise.
24073         (all_late_ipa_passes): Likewise.
24074         (passes_by_id): Likewise.
24075         (passes_by_id_size): Likewise.
24076         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
24077         the new class pass_manager.
24078         (get_pass_for_id): Remove.
24080 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
24082         * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
24083         configs.
24085 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
24087         * arm.md (mulhi3): New expand pattern.
24089 2013-07-30  Jan Hubicka  <jh@suse.cz>
24090             Martin Liska  <marxin.liska@gmail.com>
24092         * profile.c (compute_value_histograms): Do not ICE when
24093         there is mismatch only on some counters.
24095 2013-07-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24097         PR rtl-optimization/57637
24098         * function.c (move_insn_for_shrink_wrap): Also check the
24099         GEN set of the LIVE problem for the liveness analysis
24100         if it exists, otherwise give up.
24102 2013-07-29  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
24104         PR tree-optimization/57993
24105         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
24106         replaced statement in the candidate table.
24107         (phi_add_costs): Return infinite cost when the hidden basis does
24108         not dominate all phis on which the candidate is dependent.
24109         (replace_one_candidate): Record replaced statement in the
24110         candidate table.
24112 2013-07-29  Joern Rennecke  <joern.rennecke@embecosm.com>
24114         * config/epiphany/epiphany.md (*isub_i+2): New peephole.
24115         (ashlv2si3): New expander.
24116         (*ashlv2si3_i): New define_insn_and_split.
24117         * predicates.md (float_operation): Allow patterns with three
24118         basic sub-patterns.
24120         PR rtl-optimization/58021
24121         * mode-switching.c (create_pre_exit): Always split off preceding
24122         insns if we are not at the basic block head.
24124 2013-07-29  Maciej W. Rozycki  <macro@codesourcery.com>
24126         * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
24127         (UCLIBC_DYNAMIC_LINKER): New macro.
24128         * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
24129         `-mnan=2008'.
24130         (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
24131         (UCLIBC_DYNAMIC_LINKER32): Undefine macro first.  Handle
24132         `-mnan=2008'.
24133         (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
24134         (UCLIBC_DYNAMIC_LINKERN32): Likewise.
24135         * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
24136         for SF and DF modes.  Use ieee_quad_format for TF mode.
24137         * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
24138         * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
24139         (mips_option_override): Handle `-mnan=legacy'.
24140         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
24141         `-mabs=2008' and `-mnan=2008'.
24142         (OPTION_DEFAULT_SPECS): Add "nan" default.
24143         (ASM_SPEC): Handle `-mnan='.
24144         [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
24145         * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
24146         comment accordingly.
24147         (neg<mode>2): Likewise.
24148         * config/mips/mips.opt (mabs, mnan): New options.
24149         * doc/install.texi (Configuration): Document `--with-nan=' option.
24150         * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
24151         `-mnan=' options.
24152         (MIPS Options): Document them.
24153         * config.gcc <mips*-*-*>: Handle `--with-nan='.
24154         * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
24155         * configure: Regenerate.
24156         * config.in: Regenerate.
24158 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
24160         * config/i386/i386.md (float post-reload splitters): Do not check
24161         for subregs of SSE registers.
24163 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
24164             H.J. Lu  <hongjiu.lu@intel.com>
24166         PR target/57954
24167         PR target/57988
24168         * config/i386/i386.md (post-reload splitter
24169         to avoid partial SSE reg dependency stalls): New pattern.
24171 2013-07-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
24173         * config/s390/s390.md ("movcc"): Swap load and store instructions.
24175 2013-07-27  Joern Rennecke  <joern.rennecke@embecosm.com>
24177         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
24178         Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
24180 2013-07-26  Cary Coutant  <ccoutant@google.com>
24182         * dwarf2out.c (die_checksum_ordered): Don't include template
24183         instantiations in signature.
24184         (is_template_parameter): New function.
24185         (is_template_instantiation): New function.
24186         (generate_skeleton_bottom_up): Don't include template instantiations
24187         in type unit DIE.
24188         (generate_skeleton): Likewise.
24189         (break_out_comdat_types): Move recursive call to break out nested
24190         types earlier.
24191         (prune_unused_types_mark_generic_parms_dies): Call
24192         is_template_parameter.
24194 2013-07-26  Ian Bolton  <ian.bolton@arm.com>
24196         * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
24197         uses vector registers.
24198         * config/aarch64/iterators.md: Add attributes rtn and vas.
24200 2013-07-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24201             Richard Earnshaw  <richard.earnshaw@arm.com>
24203         * combine.c (simplify_comparison): Re-canonicalize operands
24204         where appropriate.
24205         * config/arm/arm.md (movcond_addsi): New splitter.
24207 2013-07-25  Sterling Augustine  <saugustine@google.com>
24209         * dwarf2out.c (size_of_pubnames): Move code to...
24210         (include_pubname_in_output): ...here.  New.
24211         (want_pubnames): Rearrange.
24212         (output_pubnames): Call include_pubname_in_output.  Move assertion.
24214 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
24216         * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
24218 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
24220         PR target/38836
24221         * doc/extend.texi: Remove obsolete builtins. Fix
24222         typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
24224 2013-07-25  Jan Hubicka  <jh@suse.cz>
24226         * cgraph.c (release_function_body): Break out from ...
24227         (cgraph_release_function_body): ... this one; also release DECL_RESULT
24228         and DECL_ARGUMENTS.
24229         * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
24230         old_tree in the map.
24231         (create_specialized_node): Update.
24232         * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
24233         into index.
24234         * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
24235         DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
24236         * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
24237         * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
24238         DECL_RESULT.
24240 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24242         * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
24243         addsi3_carryin_alt2_<optab>): Correct output template.
24245 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24247         * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
24248         Adjust for arm_restrict_it.
24249         Remove trailing whitespace.
24251 2013-07-25 Â Mark Kettenis Â <kettenis@openbsd.org>
24253         * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
24254         libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
24256         * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
24258 2013-07-25  Vladimir Makarov  <vmakarov@redhat.com>
24260         PR rtl-optimization/57960
24261         * lra-constraints.c (process_alt_operands): Use the right mode
24262         when checking strict_low.
24264 2013-07-25  Jan Hubicka  <jh@suse.cz>
24266         * lto-symtab.c (lto_cgraph_replace_node): Release function body.
24267         * cgraph.c (cgraph_remove_node): Do not release function body
24268         when in cgraph streaming.
24269         * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
24270         in other partitions are not considered reachable; fix handling of
24271         clones.
24273 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24275         * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
24277 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24279         PR target/19599
24280         PR target/57731
24281         PR target/57837
24282         * config/arm/arm.md ("*sibcall_insn): Replace use of
24283         Ss with US. Adjust output for v5 and v4t.
24284         (*sibcall_value_insn): Likewise and loosen predicate on operand0.
24286         * config/arm/constraints.md ("Ss"): Rename to US.
24288 2013-07-25  Terry Guo  <terry.guo@arm.com>
24290         * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
24291         shift_add/shift_sub0/shift_sub1 RTXs.
24293 2013-07-24  Bill Schmidt  <wschmidt@linux.ibm.com>
24294             Anton Blanchard  <anton@au1.ibm.com>
24296         * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
24297         (altivec_vpks<VI_char>ss): Likewise.
24298         (altivec_vpks<VI_char>us): Likewise.
24299         (altivec_vpku<VI_char>us): Likewise.
24300         (altivec_vpku<VI_char>um): Likewise.
24302 2013-07-24  David Malcolm  <dmalcolm@redhat.com>
24304         Introduce context class.
24306         * Makefile.in (CONTEXT_H): New.
24307         (OBJS): Add context.o.
24308         (toplev.o): Add CONTEXT_H to dependencies.
24309         (context.o): New.
24311         * toplev.c (general_init): Create the singleton gcc::context instance.
24313         * context.c: New.
24315         * context.h: New.
24317 2013-07-24  Joern Rennecke  <joern.rennecke@embecosm.com>
24319         PR rtl-optimization/57968
24320         * mode-switching.c (create_pre_exit): Allow instructions that
24321         don't set a return register to need a non-exit mode.
24323 2013-07-24  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
24324             Anton Blanchard  <anton@au1.ibm.com>
24326         * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
24327         operands to vperm for little endian.
24328         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
24329         of lvsl to create the control mask for a vperm for little endian.
24331 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24332             Anton Blanchard  <anton@au1.ibm.com>
24334         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
24335         two operands for little-endian.
24337 2013-07-23  Steve Ellcey  <sellcey@mips.com>
24339         * config/mips/mips.c (mips_case_values_threshold): New.
24340         (TARGET_CASE_VALUES_THRESHOLD): Define.
24342 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24343             Anton Blanchard  <anton@au1.ibm.com>
24345         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
24346         selection of field for vector splat in little endian mode.
24348 2013-07-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
24350         * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
24351         expanders to rs6000.md.
24352         (ior<mode>3): Likewise.
24353         (and<mode>3): Likewise.
24354         (one_cmpl<mode>2): Likewise.
24355         (nor<mode>3): Likewise.
24356         (andc<mode>3): Likewise.
24357         (eqv<mode>3): Likewise.
24358         (nand<mode>3): Likewise.
24359         (orc<mode>3): Likewise.
24361         * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
24362         declaration.
24364         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
24365         to split multi-word logical operations.
24366         (rs6000_split_logical_di): Likewise.
24367         (rs6000_split_logical): Likewise.
24369         * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
24370         (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
24371         and allow TImode operations in 32-bit.
24372         (vsx_and<mode>3_64bit): Likewise.
24373         (vsx_ior<mode>3_32bit): Likewise.
24374         (vsx_ior<mode>3_64bit): Likewise.
24375         (vsx_xor<mode>3_32bit): Likewise.
24376         (vsx_xor<mode>3_64bit): Likewise.
24377         (vsx_one_cmpl<mode>2_32bit): Likewise.
24378         (vsx_one_cmpl<mode>2_64bit): Likewise.
24379         (vsx_nor<mode>3_32bit): Likewise.
24380         (vsx_nor<mode>3_64bit): Likewise.
24381         (vsx_andc<mode>3_32bit): Likewise.
24382         (vsx_andc<mode>3_64bit): Likewise.
24383         (vsx_eqv<mode>3_32bit): Likewise.
24384         (vsx_eqv<mode>3_64bit): Likewise.
24385         (vsx_nand<mode>3_32bit): Likewise.
24386         (vsx_nand<mode>3_64bit): Likewise.
24387         (vsx_orc<mode>3_32bit): Likewise.
24388         (vsx_orc<mode>3_64bit): Likewise.
24390         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
24391         logical types in GPRs.
24393         * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
24394         logical insns to rs6000.md, and allow TImode operations in
24395         32-bit.
24396         (altivec_ior<mode>3): Likewise.
24397         (altivec_xor<mode>3): Likewise.
24398         (altivec_one_cmpl<mode>2): Likewise.
24399         (altivec_nor<mode>3): Likewise.
24400         (altivec_andc<mode>3): Likewise.
24402         * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
24403         attributes for moving the 128-bit logical operations into
24404         rs6000.md.
24405         (BOOL_REGS_OUTPUT): Likewise.
24406         (BOOL_REGS_OP1): Likewise.
24407         (BOOL_REGS_OP2): Likewise.
24408         (BOOL_REGS_UNARY): Likewise.
24409         (BOOL_REGS_AND_CR0): Likewise.
24410         (one_cmpl<mode>2): Add support for DI logical operations on
24411         32-bit, splitting the operations to 32-bit.
24412         (anddi3): Likewise.
24413         (iordi3): Likewise.
24414         (xordi3): Likewise.
24415         (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
24416         changes to combine the 32/64-bit code, allow logical operations on
24417         TI mode in 32-bit, and to use similar match_operator patterns like
24418         scalar mode uses.  Combine the Altivec and VSX code for logical
24419         operations, and move it here.
24420         (ior<mode>3, 128-bit types): Likewise.
24421         (xor<mode>3, 128-bit types): Likewise.
24422         (one_cmpl<mode>3, 128-bit types): Likewise.
24423         (nor<mode>3, 128-bit types): Likewise.
24424         (andc<mode>3, 128-bit types): Likewise.
24425         (eqv<mode>3, 128-bit types): Likewise.
24426         (nand<mode>3, 128-bit types): Likewise.
24427         (orc<mode>3, 128-bit types): Likewise.
24428         (and<mode>3_internal): Likewise.
24429         (bool<mode>3_internal): Likewise.
24430         (boolc<mode>3_internal1): Likewise.
24431         (boolc<mode>3_internal2): Likewise.
24432         (boolcc<mode>3_internal1): Likewise.
24433         (boolcc<mode>3_internal2): Likewise.
24434         (eqv<mode>3_internal1): Likewise.
24435         (eqv<mode>3_internal2): Likewise.
24436         (one_cmpl1<mode>3_internal): Likewise.
24438 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
24440         * config/microblaze/microblaze.c (microblaze_expand_prologue):
24441         Rename flag_stack_usage to flag_stack_usage_info.
24443 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
24445         * config/microblaze/sync.md: New file.
24446         * config/microblaze/microblaze.md: Include sync.md
24447         * config/microblaze/microblaze.c: Add print_operand 'y'.
24448         * config/microblaze/constraints.md: Add memory_contraint
24449         'Q' which is a single register.
24451 2013-07-23  Eric Botcazou  <ebotcazou@adacore.com>
24453         * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
24455 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
24457         * reload.c (find_reloads): Exit loop once we find this operand
24458         cannot be reloaded somehow for this alternative.
24460         * reload.c (find_reloads): Exit loop once we find a hard register.
24462         * rtlanal.c (computed_jump_p): Exit loop once we find label
24463         reference is used.
24465         * i386.c (ix86_pad_returns): Exit loop after setting replace.
24467         * cfgloopmanip.c (remove_path): Exit loop after setting
24468         irred_invalidated.
24470         * gensupport.c (subst_dup): Avoid loop if code is not
24471         MATCH_DUP nor MATCH_OP_DUP.
24473 2013-07-23  Nicklas Bo Jensen  <nbjensen@gmail.com>
24475         * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
24477 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
24479         * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
24480         true for SP_REGNUM if mode == ptr_mode.
24481         * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
24482         with value R0_REGNUM + 31.
24484 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
24486         * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
24487         pad pointer-typed argument downward.
24489 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
24491         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
24492         and __ILP32__ when the ILP32 model is in use.
24494 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
24496         * config/aarch64/aarch64.c (POINTER_BYTES): New define.
24497         (aarch64_load_symref_appropriately): In the case of
24498         SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
24499         to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
24500         (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
24501         change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
24502         if 'mode' doesn't equal to 'ptr_mode'.
24503         (aarch64_output_mi_thunk): Add an assertion on the alignment of
24504         'vcall_offset'; change to call aarch64_emit_move differently depending
24505         on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
24506         to calculate the upper bound of 'vcall_offset'.
24507         (aarch64_cannot_force_const_mem): Change to also return true if
24508         mode != ptr_mode.
24509         (aarch64_legitimize_reload_address): In the case of large
24510         displacements, add new local variable 'xmode' and an assertion
24511         based on it; change to use 'xmode' to generate the new rtx and
24512         reload.
24513         (aarch64_asm_trampoline_template): Change to generate the template
24514         differently depending on TARGET_ILP32 or not; change to use
24515         'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
24516         (aarch64_trampoline_size): Removed.
24517         (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
24518         and replace immediate literals with it.  Change to use 'ptr_mode'
24519         instead of 'DImode' and call convert_memory_address if the mode
24520         of 'fnaddr' doesn't equal to 'ptr_mode'.
24521         (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
24522         to output symbol.
24523         (aarch64_elf_asm_destructor): Likewise.
24524         * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
24525         on TARGET_ILP32 instead of aarch64_trampoline_size.
24526         * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
24527         of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
24528         (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
24529         (loadwb_pair<GPI:mode>_<P:mode>): ... this.  Replace PTR with P.
24530         (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
24531         (storewb_pair<GPI:mode>_<P:mode>): ... this.
24532         (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
24533         depending on the value of 'mode'.
24534         (add_losym_<mode>): New.
24535         (ldr_got_small_<mode>): New, based on ldr_got_small.
24536         (ldr_got_small): Remove.
24537         (ldr_got_small_sidi): New.
24538         * config/aarch64/iterators.md (P): New.
24539         (PTR): Change to 'ptr_mode' in the condition.
24541 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
24543         * config.gcc (aarch64*-*-*): Support --with-abi.
24544         (aarch64*-*-elf): Support --with-multilib-list.
24545         (aarch64*-*-linux*): Likewise.
24546         (supported_defaults): Add abi to aarch64*-*-*.
24547         * configure.ac: Mention AArch64 for --with-multilib-list.
24548         * configure: Re-generated.
24549         * config/aarch64/biarchilp32.h: New file.
24550         * config/aarch64/biarchlp64.h: New file.
24551         * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
24552         (ABI_SPEC): Ditto.
24553         (MULTILIB_DEFAULTS): Ditto.
24554         (DRIVER_SELF_SPECS): Ditto.
24555         (ASM_SPEC): Update to also substitute -mabi.
24556         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
24557         file whose name depends on -mabi= and -mbig-endian.
24558         * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
24559         TARGET_ILP32.
24560         (POINTER_SIZE): New define.
24561         (POINTERS_EXTEND_UNSIGNED): Ditto.
24562         (enum aarch64_abi_type): New enumeration tag.
24563         (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
24564         (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
24565         (TARGET_ILP32): New define.
24566         * config/aarch64/aarch64.opt (mabi): New.
24567         (aarch64_abi): New.
24568         (ilp32, lp64): New values for -mabi.
24569         * config/aarch64/t-aarch64 (comma): New define.
24570         (MULTILIB_OPTIONS): Ditto.
24571         (MULTILIB_DIRNAMES): Ditto.
24572         * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
24573         * doc/invoke.texi: Document -mabi for AArch64.
24575 2013-07-23  Georg-Johann Lay  <avr@gjlay.de>
24577         * config/avr/avr.md: Explain asm print modifier 'r' for REG.
24579 2013-07-22  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
24580             Anton Blanchard  <anton@au1.ibm.com>
24582         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
24583         endianness when selecting field to splat.
24585 2013-07-22  Eric Christopher  <echristo@gmail.com>
24587         * dwarf2out.c (die_odr_checksum): New function to use
24588         CHECKSUM_ macros and ULEB128 for DIE tag.
24589         (generate_type_signature): Use.
24591 2013-07-22  Eric Botcazou  <ebotcazou@adacore.com>
24593         * config.gcc (sparc*-*-*): Accept leon3 processor.
24594         (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
24595         * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
24596         * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
24597         * config/sparc/sparc.opt (enum processor_type): Add leon3.
24598         (mfix-ut699): Adjust comment.
24599         * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
24600         (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
24601         (CPP_CPU_SPEC): Likewise.
24602         (ASM_CPU_SPEC): Likewise.
24603         * config/sparc/sparc.c (leon3_cost): New constant.
24604         (sparc_option_override): Add leon3 support.
24605         (mem_ref): New function.
24606         (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
24607         (sparc_do_work_around_errata): Look into the instruction in the delay
24608         slot and adjust accordingly.  Add fix for the data cache nullify issues
24609         of the UT699.  Change insertion position for the NOP.
24610         * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
24611         (leon3_load): New reservation.
24612         (leon_store): Bump latency to 2.
24613         (grfpu): New automaton.
24614         (grfpu_alu): New unit.
24615         (grfpu_ds): Likewise.
24616         (leon_fp_alu): Adjust.
24617         (leon_fp_mult): Delete.
24618         (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
24619         (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
24620         * config/sparc/sparc.md (cpu): Add leon3.
24621         * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
24622         (swapsi): Likewise.
24623         (atomic_test_and_set): Likewise.
24624         (ldstub): Likewise.
24626 2013-07-22  Jürgen Urban  <JuergenUrban@gmx.de>
24628         * config.gcc (mips*-*-*): Add --with-fpu support.  Make single the
24629         default for R5900 targets.
24630         * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
24631         (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
24632         * config/mips/mips.c (mips_option_override): Report an error for
24633         -march=r5900 -mhard-float -mdouble-float.  Use spu_single_format
24634         for -march=r5900 -mhard-float.
24636 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
24638         * df-problems.c (can_move_insns_across): Exit loop once we
24639         find a non-fixed, non-global register.
24641         * ipa-pure-const.c (propagate_nothrow): Exit loop after
24642         setting can_throw.
24644         * omega.c (omega_eliminate_red): Break after setting red_found.
24645         (omega_problem_has_red_equations): Similarly after setting found.
24646         (omega_query_variable): Similarly after setting coupled.
24648 2013-07-22  Marek Polacek  <polacek@redhat.com>
24650         * gimplify.c: Don't include gimple.h twice.
24652 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24654         * config/arm/constraints.md (Pd): Allow TARGET_THUMB
24655         instead of TARGET_THUMB1.
24656         (Pz): New constraint.
24657         * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
24658         encodings.
24659         (compare_negsi_si): Likewise.
24660         (compare_addsi2_op0): Likewise.
24661         (compare_addsi2_op1): Likewise.
24662         (addsi3_carryin_<optab>): Likewise.
24663         (addsi3_carryin_alt2_<optab>): Likewise.
24664         (addsi3_carryin_shift_<optab>): Disable cond_exec variant
24665         for arm_restrict_it.
24666         (subsi3_carryin): Likewise.
24667         (arm_subsi3_insn): Add alternatives for 16-bit encoding.
24668         (minmax_arithsi): Disable for arm_restrict_it.
24669         (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
24670         (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
24671         (satsi_<SAT:code>_shift): Likewise.
24672         (arm_shiftsi3): Add alternative for 16-bit encoding.
24673         (arm32_movhf): Disable for arm_restrict_it.
24674         (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
24675         (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
24677 2013-07-22  Sofiane Naci  <sofiane.naci@arm.com>
24679         * config/arm/arm.md (attribute "insn"): Delete.
24680         (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
24681         "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
24682         (not_shiftsi): Update for attribute change.
24683         (not_shiftsi_compare0): Likewise.
24684         (not_shiftsi_compare0_scratch): Likewise.
24685         (arm_one_cmplsi2): Likewise.
24686         (thumb1_one_cmplsi2): Likewise.
24687         (notsi_compare0): Likewise.
24688         (notsi_compare0_scratch): Likewise.
24689         (thumb1_movdi_insn): Likewise.
24690         (arm_movsi_insn): Likewise.
24691         (movhi_insn_arch4): Likewise.
24692         (movhi_bytes): Likewise.
24693         (arm_movqi_insn): Likewise.
24694         (thumb1_movqi_insn): Likewise.
24695         (arm32_movhf): Likewise.
24696         (thumb1_movhf): Likewise.
24697         (arm_movsf_soft_insn): Likewise.
24698         (thumb1_movsf_insn): Likewise.
24699         (thumb_movdf_insn): Likewise.
24700         (movsicc_insn): Likewise.
24701         (movsfcc_soft_insn): Likewise.
24702         (and_scc): Likewise.
24703         (cond_move): Likewise.
24704         (if_move_not): Likewise.
24705         (if_not_move): Likewise.
24706         (if_shift_move): Likewise.
24707         (if_move_shift): Likewise.
24708         (if_shift_shift): Likewise.
24709         (if_not_arith): Likewise.
24710         (if_arith_not): Likewise.
24711         (cond_move_not): Likewise.
24712         * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
24713         (neon_mov<mode>): Likewise.
24714         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
24715         (thumb2_movsi_vfp): Likewise.
24716         (movsf_vfp): Likewise.
24717         (thumb2_movsf_vfp): Likewise.
24718         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
24719         change.
24720         (cortexa7_older_only): Likewise.
24721         (cortexa7_younger): Likewise.
24722         * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
24723         (1020alu_shift_op): Likewise.
24724         (1020alu_shift_reg_op): Likewise.
24725         * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
24726         (alu_shift_op): Likewise.
24727         (alu_shift_reg_op): Likewise.
24728         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
24729         (11_alu_shift_op): Likewise.
24730         (11_alu_shift_reg_op): Likewise.
24731         * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
24732         (9_alu_shift_reg_op): Likewise.
24733         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
24734         change.
24735         (cortex_a15_alu_shift): Likewise.
24736         (cortex_a15_alu_shift_reg): Likewise.
24737         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
24738         (cortex_a5_alu_shift): Likewise.
24739         * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
24740         change.
24741         (cortex_a53_alu_shift): Likewise.
24742         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
24743         change.
24744         (cortex_a7_alu_reg): Likewise.
24745         (cortex_a7_alu_shift): Likewise.
24746         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
24747         (cortex_a8_alu_shift): Likewise.
24748         (cortex_a8_alu_shift_reg): Likewise.
24749         (cortex_a8_mov): Likewise.
24750         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
24751         (cortex_a9_dp_shift): Likewise.
24752         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
24753         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
24754         (cortex_r4_mov): Likewise.
24755         (cortex_r4_alu_shift): Likewise.
24756         (cortex_r4_alu_shift_reg): Likewise.
24757         * config/arm/fa526.md (526_alu_op): Update for attribute change.
24758         (526_alu_shift_op): Likewise.
24759         * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
24760         * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
24761         (626te_alu_shift_op): Likewise.
24762         * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
24763         (726te_alu_op): Likewise.
24764         (726te_alu_shift_op): Likewise.
24765         (726te_alu_shift_reg_op): Likewise.
24766         * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
24767         (mp626_alu_shift_op): Likewise.
24768         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
24769         (pj4_alu_e1_conds): Likewise.
24770         (pj4_alu): Likewise.
24771         (pj4_alu_conds): Likewise.
24772         (pj4_shift): Likewise.
24773         (pj4_shift_conds): Likewise.
24774         (pj4_alu_shift): Likewise.
24775         (pj4_alu_shift_conds): Likewise.
24777 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24779         * config/arm/predicates.md (shiftable_operator_strict_it):
24780         New predicate.
24781         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
24782         Disable cond_exec version for arm_restrict_it.
24783         (thumb2_smaxsi3): Convert to generate cond_exec.
24784         (thumb2_sminsi3): Likewise.
24785         (thumb32_umaxsi3): Likewise.
24786         (thumb2_uminsi3): Likewise.
24787         (thumb2_abssi2): Adjust constraints for arm_restrict_it.
24788         (thumb2_neg_abssi2): Likewise.
24789         (thumb2_mov_scc): Add alternative for 16-bit encoding.
24790         (thumb2_movsicc_insn): Adjust alternatives.
24791         (thumb2_mov_negscc): Disable for arm_restrict_it.
24792         (thumb2_mov_negscc_strict_it): New pattern.
24793         (thumb2_mov_notscc_strict_it): New pattern.
24794         (thumb2_mov_notscc): Disable for arm_restrict_it.
24795         (thumb2_ior_scc): Likewise.
24796         (thumb2_ior_scc_strict_it): New pattern.
24797         (thumb2_cond_move): Adjust for arm_restrict_it.
24798         (thumb2_cond_arith): Disable for arm_restrict_it.
24799         (thumb2_cond_arith_strict_it): New pattern.
24800         (thumb2_cond_sub): Adjust for arm_restrict_it.
24801         (thumb2_movcond): Likewise.
24802         (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
24803         (thumb2_zero_extendhisi2_v6): Likewise.
24804         (thumb2_zero_extendqisi2_v6): Likewise.
24805         (orsi_notsi_si): Likewise.
24806         (orsi_not_shiftsi_si): Likewise.
24808 2013-07-22  Georg-Johann Lay  <avr@gjlay.de>
24810         * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
24811         instruction sequence is 1 byte shorter.
24813 2013-07-22  Uros Bizjak  <ubizjak@gmail.com>
24815         * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
24816         it is not needed after split.
24818 2013-07-20  Iain Sandoe  <iain@codesourcery.com>
24820         PR target/51784
24821         * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
24822         second label for nonlocal goto receivers. Don't output pic base labels
24823         unless we're producing PIC; mark that action unreachable().
24824         (ix86_save_reg): If the function contains a nonlocal label, save the
24825         PIC base reg.
24826         * config/darwin-protos.h (machopic_should_output_picbase_label): New.
24827         * config/darwin.c (emitted_pic_label_num): New GTY.
24828         (update_pic_label_number_if_needed): New.
24829         (machopic_output_function_base_name): Adjust for nonlocal receiver
24830         case.
24831         (machopic_should_output_picbase_label): New.
24832         * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
24833         (nonlocal_goto_receiver): New insn and split.
24835 2013-07-20  James Greenhalgh  <james.greenhalgh@arm.com>
24837         * config/aarch64/aarch64-builtins.c
24838         (aarch64_fold_builtin): Fold abs in all modes.
24839         * config/aarch64/aarch64-simd-builtins.def
24840         (abs): Enable for all modes.
24841         * config/aarch64/arm_neon.h
24842         (vabs<q>_s<8,16,32,64): Rewrite using builtins.
24843         (vabs_f64): Add missing intrinsic.
24845 2013-07-19  Ian Bolton  <ian.bolton@arm.com>
24847         * config/aarch64/arm_neon.h (vabs_s64): New function
24849 2013-07-19  Georg-Johann Lay  <avr@gjlay.de>
24851         PR target/57516
24852         * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
24853         * config/avr/avr.md (adjust_len): Add `round'.
24854         * config/avr/avr-protos.h (avr_out_round): New prototype.
24855         (avr_out_plus): Add `out_label' argument.
24856         * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
24857         (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
24858         Handle the case where `insn' is just a pattern.
24859         (avr_out_bitop): Handle the case where `insn' is just a pattern.
24860         (avr_out_round): New function.
24861         (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
24863 2013-07-18  David Holsgrove  <david.holsgrove@xilinx.com>
24865         * config/microblaze/microblaze.c (microblaze_expand_prologue):
24866         Add check for flag_stack_usage to handle -fstack-usage support
24868 2013-07-18  Pat Haugen  <pthaugen@us.ibm.com>
24870         * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
24871         interaction for new Power8 flags and VSX.
24873 2013-07-18  Sriraman Tallam  <tmsriram@google.com>
24875         PR middle-end/57698
24876         * tree-inline.c (expand_call_inline): Emit errors during
24877         early_inlining only if optimization is not turned on.
24879 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
24881         * passes.def: New.
24883         * passes.c (init_optimization_passes): Move the construction of
24884         the pass hierarchy into a new passes.def file.
24886         * Makefile.in (passes.o): Add dependency on passes.def.
24888 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
24890         * passes.c (init_optimization_passes): Introduce macros for
24891         constructing the tree of passes (INSERT_PASSES_AFTER,
24892         PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
24893         TERMINATE_PASS_LIST).
24895 2013-07-18  Vladimir Makarov  <vmakarov@redhat.com>
24896             Wei Mi  <wmi@google.com>
24898         PR rtl-optimization/57878
24899         * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
24900         top.
24901         (reload_pseudo_compare_func): Check nregs first for reload
24902         pseudos.
24904 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
24906         * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
24908 2013-07-18  Po-Chun Chang  <pchang9@cs.wisc.edu>
24910         * read-rtl.c (validate_const_int): Once an invalid character is
24911         seen, quit the loop.
24913         * gengtype.c (write_roots): Similarly once we find the "deletable"
24914         or "if_marked" option.
24916 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
24918         * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
24919         "xtab" and "sat".  Move value "clz" from here to ...
24920         (attriubte "type"): ... here.
24921         (satsi_<SAT:code>): Delete "insn" attribute.
24922         (satsi_<SAT:code>_shift): Likewise.
24923         (arm_zero_extendqisi2addsi): Likewise.
24924         (arm_extendqisi2addsi): Likewise.
24925         (clzsi2): Update for attribute changes.
24926         (rbitsi2): Likewise.
24927         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
24928         attribute.
24929         (arm_usatsihi): Likewise.
24930         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
24932 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
24934         * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
24935         "arlo_imm".  Rename "alu_reg" to "arlo_reg".  Rename "simple_alu_shift"
24936         to "extend".  Split "alu_shift" into "shift" and "arlo_shift".  Split
24937         "alu_shift_reg" into "shift_reg" and "arlo_shift_reg".  List types
24938         in alphabetical order.
24939         (attribute "core_cycles"): Update for attribute changes.
24940         (arm_addsi3): Likewise.
24941         (addsi3_compare0): Likewise.
24942         (addsi3_compare0_scratch): Likewise.
24943         (addsi3_compare_op1): Likewise.
24944         (addsi3_compare_op2): Likewise.
24945         (compare_addsi2_op0): Likewise.
24946         (compare_addsi2_op1): Likewise.
24947         (addsi3_carryin_shift_<optab>): Likewise.
24948         (subsi3_carryin_shift): Likewise.
24949         (rsbsi3_carryin_shift): Likewise.
24950         (arm_subsi3_insn): Likewise.
24951         (subsi3_compare0): Likewise.
24952         (subsi3_compare): Likewise.
24953         (arm_andsi3_insn): Likewise.
24954         (thumb1_andsi3_insn): Likewise.
24955         (andsi3_compare0): Likewise.
24956         (andsi3_compare0_scratch): Likewise.
24957         (zeroextractsi_compare0_scratch
24958         (andsi_not_shiftsi_si): Likewise.
24959         (iorsi3_insn): Likewise.
24960         (iorsi3_compare0): Likewise.
24961         (iorsi3_compare0_scratch): Likewise.
24962         (arm_xorsi3): Likewise.
24963         (thumb1_xorsi3_insn): Likewise.
24964         (xorsi3_compare0): Likewise.
24965         (xorsi3_compare0_scratch): Likewise.
24966         (satsi_<SAT:code>_shift): Likewise.
24967         (rrx): Likewise.
24968         (arm_shiftsi3): Likewise.
24969         (shiftsi3_compare0): Likewise.
24970         (not_shiftsi): Likewise.
24971         (not_shiftsi_compare0): Likewise.
24972         (not_shiftsi_compare0_scratch): Likewise.
24973         (arm_one_cmplsi2): Likewise.
24974         (thumb_one_complsi2): Likewise.
24975         (notsi_compare0): Likewise.
24976         (notsi_compare0_scratch): Likewise.
24977         (thumb1_zero_extendhisi2): Likewise.
24978         (arm_zero_extendhisi2): Likewise.
24979         (arm_zero_extendhisi2_v6): Likewise.
24980         (arm_zero_extendhisi2addsi): Likewise.
24981         (thumb1_zero_extendqisi2): Likewise.
24982         (thumb1_zero_extendqisi2_v6): Likewise.
24983         (arm_zero_extendqisi2): Likewise.
24984         (arm_zero_extendqisi2_v6): Likewise.
24985         (arm_zero_extendqisi2addsi): Likewise.
24986         (thumb1_extendhisi2): Likewise.
24987         (arm_extendhisi2): Likewise.
24988         (arm_extendhisi2_v6): Likewise.
24989         (arm_extendqisi): Likewise.
24990         (arm_extendqisi_v6): Likewise.
24991         (arm_extendqisi2addsi): Likewise.
24992         (thumb1_extendqisi2): Likewise.
24993         (thumb1_movdi_insn): Likewise.
24994         (arm_movsi_insn): Likewise.
24995         (movsi_compare0): Likewise.
24996         (movhi_insn_arch4): Likewise.
24997         (movhi_bytes): Likewise.
24998         (arm_movqi_insn): Likewise.
24999         (thumb1_movqi_insn): Likewise.
25000         (arm32_movhf): Likewise.
25001         (thumb1_movhf): Likewise.
25002         (arm_movsf_soft_insn): Likewise.
25003         (thumb1_movsf_insn): Likewise.
25004         (movdf_soft_insn): Likewise.
25005         (thumb_movdf_insn): Likewise.
25006         (arm_cmpsi_insn): Likewise.
25007         (cmpsi_shiftsi): Likewise.
25008         (cmpsi_shiftsi_swp): Likewise.
25009         (arm_cmpsi_negshiftsi_si): Likewise.
25010         (movsicc_insn): Likewise.
25011         (movsfcc_soft_insn): Likewise.
25012         (arith_shiftsi): Likewise.
25013         (arith_shiftsi_compare0
25014         (arith_shiftsi_compare0_scratch
25015         (sub_shiftsi): Likewise.
25016         (sub_shiftsi_compare0
25017         (sub_shiftsi_compare0_scratch
25018         (and_scc): Likewise.
25019         (cond_move): Likewise.
25020         (if_plus_move): Likewise.
25021         (if_move_plus): Likewise.
25022         (if_move_not): Likewise.
25023         (if_not_move): Likewise.
25024         (if_shift_move): Likewise.
25025         (if_move_shift): Likewise.
25026         (if_shift_shift): Likewise.
25027         (if_not_arith): Likewise.
25028         (if_arith_not): Likewise.
25029         (cond_move_not): Likewise.
25030         (thumb1_ashlsi3): Set type attribute.
25031         (thumb1_ashrsi3): Likewise.
25032         (thumb1_lshrsi3): Likewise.
25033         (thumb1_rotrsi3): Likewise.
25034         (shiftsi3_compare0_scratch): Likewise.
25035         * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
25036         (neon_mov<mode>): Likewise.
25037         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
25038         attribute changes.
25039         (thumb2_movsi_insn): Likewise.
25040         (thumb2_cmpsi_neg_shiftsi): Likewise.
25041         (thumb2_extendqisi_v6): Likewise.
25042         (thumb2_zero_extendhisi2_v6): Likewise.
25043         (thumb2_zero_extendqisi2_v6): Likewise.
25044         (thumb2_shiftsi3_short): Likewise.
25045         (thumb2_addsi3_compare0_scratch): Likewise.
25046         (orsi_not_shiftsi_si): Likewise.
25047         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
25048         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
25049         changes.
25050         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
25051         (1020alu_shift_op): Likewise.
25052         (1020alu_shift_reg_op): Likewise.
25053         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
25054         (alu_shift_op): Likewise.
25055         (alu_shift_reg_op): Likewise.
25056         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
25057         (11_alu_shift_op): Likewise.
25058         (11_alu_shift_reg_op): Likewise.
25059         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
25060         (9_alu_shift_reg_op): Likewise.
25061         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
25062         changes.
25063         (cortex_a15_alu_shift): Likewise.
25064         (cortex_a15_alu_shift_reg): Likewise.
25065         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
25066         changes.
25067         (cortex_a5_alu_shift): Likewise.
25068         * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
25069         changes.
25070         (cortex_a53_alu_shift): Likewise.
25071         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
25072         changes.
25073         (cortex_a7_alu_reg): Likewise.
25074         (cortex_a7_alu_shift): Likewise.
25075         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
25076         changes.
25077         (cortex_a8_alu_shift): Likewise.
25078         (cortex_a8_alu_shift_reg): Likewise.
25079         (cortex_a8_mov): Likewise.
25080         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
25081         (cortex_a9_dp_shift): Likewise.
25082         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
25083         changes.
25084         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
25085         changes.
25086         (cortex_r4_mov): Likewise.
25087         (cortex_r4_alu_shift): Likewise.
25088         (cortex_r4_alu_shift_reg): Likewise.
25089         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
25090         (526_alu_shift_op): Likewise.
25091         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
25092         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
25093         (626te_alu_shift_op): Likewise.
25094         * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
25095         (726te_alu_op): Likewise.
25096         (726te_alu_shift_op): Likewise.
25097         (726te_alu_shift_reg_op): Likewise.
25098         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
25099         (mp626_alu_shift_op): Likewise.
25100         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
25101         (pj4_alu_e1_conds): Likewise.
25102         (pj4_alu): Likewise.
25103         (pj4_alu_conds): Likewise.
25104         (pj4_shift): Likewise.
25105         (pj4_shift_conds): Likewise.
25106         (pj4_alu_shift): Likewise.
25107         (pj4_alu_shift_conds): Likewise.
25108         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
25109         changes.
25110         (cortexa7_older_only): Likewise.
25111         (cortexa7_younger): Likewise.
25113 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
25115         * ipa-pure-const.c (generate_summary): Rename to...
25116         (pure_const_generate_summary): ... this.
25118 2013-07-17  Iain Sandoe  <iain@codesourcery.com>
25120         * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
25122 2013-07-17  Yvan Roux  <yvan.roux@linaro.org>
25124         PR target/57909
25125         * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
25126         usage in HI mode.
25128 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25130         * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
25131         enabled without -march=zEC12.
25132         * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
25133         flags to be set.
25135 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
25137         * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
25138         (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
25139         (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
25140         terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
25141         (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
25142         * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
25143         ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
25144         ISA_HAS_FP4.
25145         <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
25146         and ISA_HAS_NMADD3_NMSUB3.
25147         * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
25148         (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
25149         (nmsub4<mode>, nmsub3<mode>): Likewise.
25150         (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
25152 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
25154         * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
25155         TARGET_MIPS5400 checking.
25157 2013-07-16  Jakub Jelinek  <jakub@redhat.com>
25158             Peter Bergner  <bergner@vnet.ibm.com>
25160         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
25161         registers in the comment.
25162         (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
25163         (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
25164         rather than FIRST_PSEUDO_REGISTERS.
25166 2013-07-16  Peter Bergner  <bergner@vnet.ibm.com>
25168         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
25169         enable extra ISA flags with TARGET_HTM.
25171 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
25173         * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
25174         Fix comment typos.
25176 2013-07-15  Cong Hou  <congh@google.com>
25178         * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
25179         in compare function for sorting.
25181 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
25183         * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
25184         * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
25185         * config/rs6000/rs6000.opt: Add -mhtm option.
25186         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
25187         (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
25188         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
25189         __HTM__ if the HTM instructions are available.
25190         * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
25191         htm_spr_reg_operand): New define_predicates.
25192         * config/rs6000/rs6000.md (define_attr "type"): Add htm.
25193         (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
25194         Include htm.md.
25195         * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
25196         BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
25197         HTM builtin functions.
25198         * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
25199         (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
25200         (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
25201         (rs6000_builtin_mask_calculate): Likewise.
25202         (rs6000_option_override_internal): Likewise.
25203         (bdesc_htm): Add new HTM builtin support.
25204         (htm_spr_num): New function.
25205         (htm_spr_regno): Likewise.
25206         (rs6000_htm_spr_icode): Likewise.
25207         (htm_expand_builtin): Likewise.
25208         (htm_init_builtins): Likewise.
25209         (rs6000_expand_builtin): Add support for HTM builtin functions.
25210         (rs6000_init_builtins): Likewise.
25211         (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
25212         option.
25213         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
25214         (TARGET_HTM, MASK_HTM): Define macros.
25215         (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
25216         (FIXED_REGISTERS): Likewise.
25217         (CALL_USED_REGISTERS): Likewise.
25218         (CALL_REALLY_USED_REGISTERS): Likewise.
25219         (REG_ALLOC_ORDER): Likewise.
25220         (enum reg_class): Likewise.
25221         (REG_CLASS_NAMES): Likewise.
25222         (REG_CLASS_CONTENTS): Likewise.
25223         (REGISTER_NAMES): Likewise.
25224         (ADDITIONAL_REGISTER_NAMES): Likewise.
25225         (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
25226         RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
25227         (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
25228         * config/rs6000/htm.md: New file.
25229         * config/rs6000/htmintrin.h: New file.
25230         * config/rs6000/htmxlintrin.h: New file.
25232 2013-07-15  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25234         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
25235         Define SYMBOL_TINY_GOT, update comment.
25236         * config/aarch64/aarch64.c
25237         (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
25238         (aarch64_expand_mov_immediate): Likewise.
25239         (aarch64_print_operand): Likewise.
25240         (aarch64_classify_symbol): Likewise.
25241         * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
25242         (ldr_got_tiny): Define.
25244 2013-07-13  Tobias Grosser  <tobias@grosser.es>
25246         PR tree-optimization/54094
25247         * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
25248           scheduling dimension for the parallelism check from the polyhedral
25249           information in the AST.
25250         * graphite-dependences.c (carries_deps): Do not assume the schedule is
25251           in 2D + 1 form.
25253 2013-07-13  Jason Merrill  <jason@redhat.com>
25255         * print-tree.c (debug_vec_tree): Use debug_raw.
25256         (debug_raw (vec<tree, va_gc> &)): New.
25257         (debug_raw (vec<tree, va_gc> *)): New.
25258         * tree.h: Declare them.
25260 2013-07-13  Bin Cheng  <bin.cheng@arm.com>
25262         * ifcvt.c (ifcvt_after_combine): New static variable.
25263         (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
25264         for size.
25265         (if_convert): New parameter after_combine.  Set ifcvt_after_combine.
25266         (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
25267         rest_of_handle_if_after_reload): Pass new argument for if_convert.
25269 2013-07-12  Maciej W. Rozycki  <macro@codesourcery.com>
25271         * config/mips/mips.c (mips_expand_call): Remove empty statement.
25273 2013-07-12  Michael Matz  <matz@suse.de>
25275         PR middle-end/55771
25276         * convert.c (convert_to_real): Reject non-float inner types.
25278 2013-07-12  Tejas Belagod  <tejas.belagod@arm.com>
25280         * config/aarch64/aarch64-protos.h
25281         (aarch64_simd_immediate_valid_for_move): Remove.
25282         * config/aarch64/aarch64.c (simd_immediate_info): New member.
25283         (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
25284         cases.
25285         (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
25287 2013-07-11  Steve Ellcey  <sellcey@mips.com>
25289         * config/mips/mips.c (mips_conditional_register_usage): Do not
25290         use t[0-7] registers in MIPS16 mode when optimizing for size.
25292 2013-07-11  Sriraman Tallam  <tmsriram@google.com>
25294         * config/i386/i386.c (dispatch_function_versions): Fix array
25295         indexing of function_version_info to match actual_versions.
25297 2013-07-11  Teresa Johnson  <tejohnson@google.com>
25299         * vec.h (struct va_gc): Move release out-of-line.
25300         (va_gc::release): Call ggc_free on released vec.
25302 2013-07-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25304         * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
25305         Require GOT register as additional operand in UNSPEC.
25306         ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
25307         ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
25308         ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
25309         ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
25310         ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
25311         ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
25312         ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
25314 2013-07-11  Georg-Johann Lay  <avr@gjlay.de>
25316         PR target/57631
25317         * config/avr/avr.c (avr_set_current_function): Sanity-check signal
25318         name seen by assembler/linker rather if available.
25320 2013-07-11  Andreas Schwab  <schwab@suse.de>
25322         * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
25324 2013-07-10  Vladimir Makarov  <vmakarov@redhat.com>
25326         * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
25328 2013-07-10  Joseph Myers  <joseph@codesourcery.com>
25330         * doc/tm.texi.in: Move hook documentation to ....
25331         * target.def: ... here.
25333         * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
25334         text on @hook line.
25335         * doc/tm.texi: Regenerate.
25337 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
25339         PR c++/57869
25340         * doc/invoke.texi: Document -Wconditionally-supported.
25342 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
25344         PR target/57844
25345         * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
25346         of my_fp.
25348 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
25350         PR target/57506
25351         * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
25352         (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
25353         (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
25354         Remove duplicate devices.
25355         * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
25356         * config/avr/t-multilib: Regenerate.
25357         * config/avr/avr-tables.opt: Regenerate.
25358         * doc/avr-mmcu.texi: Regenerate.
25360 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
25362         PR target/56987
25363         * config/avr/avr.opt (Waddr-space-convert): Fix typo.
25365 2013-07-10  Graham Stott  <graham.stott@btinternet.com>
25367         * config/mips/mips.c (mips_rtx_costs): Very slightly increase
25368         the cost of MULT when optimizing for size.
25370 2013-07-10  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
25372         * config/cr16/cr16-protos.h: Don't include target.h.
25374 2013-07-09  Joseph Myers  <joseph@codesourcery.com>
25376         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
25377         adjust register size for TDmode and TFmode for VSX registers.
25379 2013-07-08  Kai Tietz  <ktietz@redhat.com>
25381         PR target/56892
25382         * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
25383         hook_bool_const_tree_true.
25385 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25387         * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
25388         * config/s390/s390.h: Remove F*_REGNUM macro definitions.
25389         * config/s390/s390.md: Define FPR*_REGNUM constants.
25390         Fix FPR2_REGNUM constant (18 -> 17).
25391         ("*trunc<BFP:mode><DFP_ALL:mode>2")
25392         ("*trunc<DFP_ALL:mode><BFP:mode>2")
25393         ("trunc<BFP:mode><DFP_ALL:mode>2")
25394         ("trunc<DFP_ALL:mode><BFP:mode>2")
25395         ("*extend<BFP:mode><DFP_ALL:mode>2")
25396         ("*extend<DFP_ALL:mode><BFP:mode>2")
25397         ("extend<BFP:mode><DFP_ALL:mode>2")
25398         ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
25399         FPR4_REGNUM.
25401 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
25403         * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
25405 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25407         * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
25408         and cfun_fpr_bit_p to cfun_fpr_save_p.
25409         (s390_frame_area, s390_register_info, s390_frame_info)
25410         (s390_emit_prologue, s390_emit_epilogue)
25411         (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
25412         register numbers.
25413         * config/s390/s390.h: Define *_REGNUM macros for floating point
25414         register numbers.
25416 2013-07-08  Eric Botcazou  <ebotcazou@adacore.com>
25418         * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
25420 2013-07-08  Po-Chun Chang  <pchang9@cs.wisc.edu>
25422         PR rtl-optimization/57786
25423         * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
25424         and break out of the loop when it is set to false.
25426 2013-07-08  Jakub Jelinek  <jakub@redhat.com>
25428         PR target/57819
25429         * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
25430         Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
25431         (const_int 63)) 0)).
25432         * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
25433         using simplify_gen_unary instead of gen_rtx_*_EXTEND.
25434         * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
25436         PR rtl-optimization/57829
25437         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
25438         mask bits outside of mode are just sign-extension from mode to HWI.
25440 2013-07-08  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
25442         * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
25443         * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
25444         adjust_address instead of change_address to keep info about alignment.
25445         (emit_strmov): Remove.
25446         (emit_memmov): New function.
25447         (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
25448         (expand_movmem_epilogue): Likewise and return updated rtx for
25449         destination.
25450         (expand_constant_movmem_prologue): Likewise and return updated rtx for
25451         destination and source.
25452         (decide_alignment): Refactor, handle vector_loop.
25453         (ix86_expand_movmem): Likewise.
25454         (ix86_expand_setmem): Likewise.
25455         * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
25457 2013-07-07  Uros Bizjak  <ubizjak@gmail.com>
25459         * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
25460         signature_TM2_ebx, it interferes with signature_INTEL_ebx.
25462 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
25464         * config/i386/sse.md (sse_movlhps): Change alternative 3
25465         of operand 2 to "m".
25467 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
25469         PR target/57807
25470         * config/i386/sse.md (iptr): New mode attribute.
25471         (sse2_movq128): Add pointer size overrides for Intel asm dialect.
25472         (<sse>_vm<plusminus_insn><mode>3): Ditto.
25473         (<sse>_vmmul<mode>3): Ditto.
25474         (<sse>_vmdiv<mode>3): Ditto.
25475         (sse_vmrcpv4sf2): Ditto.
25476         (<sse>_vmsqrt<mode>2): Ditto.
25477         (sse_vmrsqrtv4sf2): Ditto.
25478         (<sse>_vm<code><mode>3): Ditto.
25479         (avx_vmcmp<mode>3): Ditto.
25480         (<sse>_vmmaskcmp<mode>3): Ditto.
25481         (<sse>_comi): Ditto.
25482         (<sse>_ucomi): Ditto.
25483         (*xop_vmfrcz_<mode>): Ditto.
25484         (*fmai_fmadd_<mode>): Ditto.
25485         (*fmai_fmsub_<mode>): Ditto.
25486         (*fmai_fnmadd_<mode>): Ditto.
25487         (*fmai_fnmsub_<mode>): Ditto.
25488         (*fma4i_vmfmadd_<mode>): Ditto.
25489         (*fma4i_vmfmsub_<mode>): Ditto.
25490         (*fma4i_vmfnmadd_<mode>): Ditto.
25491         (*fma4i_vmfnmsub_<mode>): Ditto.
25492         (*xop_vmfrcz_<mode>): Ditto.
25493         (sse_cvtps2pi): Ditto.
25494         (sse_cvttps2pi): Ditto.
25495         (sse_cvtss2si): Ditto.
25496         (sse_cvtss2si_2): Ditto.
25497         (sse_cvtss2siq_2): Ditto.
25498         (sse_cvttss2si): Ditto.
25499         (sse_cvttss2siq): Ditto.
25500         (sse_cvtsd2si): Ditto.
25501         (sse_cvtsd2si_2): Ditto.
25502         (sse_cvtsd2siq_2): Ditto.
25503         (sse_cvttsd2si): Ditto.
25504         (sse_cvttsd2siq): Ditto.
25505         (sse_cvtsd2ss): Ditto.
25506         (sse_cvtss2sd): Ditto.
25507         (avx2_pbroadcast<mode>): Ditto.
25508         (avx2_pbroadcast<mode>_1): Ditto.
25509         (*avx_vperm_broadcast_v4sf): Ditto.
25511         (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
25512         (sse_movlhps): Ditto.
25513         (sse_storehps): Ditto.
25514         (sse_loadhps): Ditto.
25515         (sse_storelps): Ditto.
25516         (sse_loadlps): Ditto.
25517         (*vec_concatv4sf): Ditto.
25518         (*vec_interleave_highv2df): Ditto.
25519         (*vec_interleave_lowv2df): Ditto.
25520         (*vec_extractv2df_1_sse): Ditto.
25521         (*vec_extractv2df_0_sse): Ditto.
25522         (sse2_storelpd): Ditto.
25523         (sse2_loadlpd): Ditto.
25524         (sse2_movsd): Ditto.
25525         (*vec_concatv4si): Ditto.
25526         (vec_concatv2di): Ditto.
25528         * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
25529         for Intel asm dialect.
25530         (mmx_punpcklwd): Ditto.
25531         (mmx_punpckldq): Ditto.
25533         * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
25534         for intel assembler dialect.
25536 2013-07-06  Jakub Jelinek  <jakub@redhat.com>
25538         PR target/29776
25539         * fold-const.c (tree_call_nonnegative_warnv_p): Return true
25540         for BUILT_IN_C{LZ,LRSB}*.
25541         * tree.h (CASE_INT_FN): Add FN##IMAX case.
25542         * tree-vrp.c (extract_range_basic): Handle
25543         BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*.  For
25544         BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
25545         fall thru to code calling set_value*.
25546         * builtins.c (expand_builtin): Remove *IMAX cases.
25547         (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
25548         if width is bigger than 2*HWI.
25550 2013-07-05  Vladimir Makarov  <vmakarov@redhat.com>
25552         PR rtl-optimization/55342
25553         * lra-int.h (lra_subreg_reload_pseudos): New.
25554         * lra.c: Add undoing optional reloads to the block diagram.
25555         (lra_subreg_reload_pseudos): New.
25556         (lra_optional_reload_pseudos): Change comments.
25557         (lra): Init and clear lra_subreg_reload_pseudos.  Clear
25558         lra_optional_reload_pseudos after undo transformations.
25559         * lra-assigns.c (pseudo_prefix_title): New.
25560         (lra_setup_reg_renumber): Use it.
25561         (spill_for): Ditto.  Check subreg reload pseudos too.
25562         (assign_by_spills): Consider subreg reload pseudos too.
25563         * lra-constraints.c (simplify_operand_subreg): Use
25564         lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
25565         (curr_insn_transform): Recognize and do optional reloads.
25566         (undo_optional_reloads): New.
25567         (lra_undo_inheritance): Call undo_optional_reloads.
25569 2013-07-05  Thomas Quinot  <quinot@adacore.com>
25571         * tree-complex.c (expand_complex_operations_1): Fix typo.
25573 2013-07-04  Tejas Belagod  <tejas.belagod@arm.com>
25575         * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
25576         (tune_params): New member 'const vec_costs'.
25577         * config/aarch64/aarch64.c (generic_vector_cost): New.
25578         (generic_tunings): New member 'generic_vector_cost'.
25579         (aarch64_builtin_vectorization_cost): New.
25580         (aarch64_add_stmt_cost): New.
25581         (TARGET_VECTORIZE_ADD_STMT_COST): New.
25582         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
25584 2013-07-03  Jakub Jelinek  <jakub@redhat.com>
25586         PR target/57777
25587         * config/i386/predicates.md (vsib_address_operand): Disallow
25588         SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
25590 2013-07-03  Hans-Peter Nilsson  <hp@bitrange.com>
25592         PR middle-end/55030
25593         * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
25594         expand_builtin_setjmp_receiver.
25595         (expand_label): Adjust, call expand_builtin_setjmp_receiver
25596         with NULL for the label parameter.
25597         * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
25598         the frame-pointer.  Adjust comments.
25599         [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
25600         only if LABEL is non-NULL.
25602 2013-07-03  Yufeng Zhang  <yufeng.zhang@arm.com>
25604         * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
25605         (ARM_ABI_AAPCS64): Ditto.
25606         (arm_abi): Ditto.
25607         (ARM_DEFAULT_ABI): Ditto.
25609 2013-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
25611         * config/aarch64/aarch64-builtins.c
25612         (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
25613         * config/aarch64/aarch64-simd-builtins.def (ld1): New.
25614         (st1): Likewise.
25615         * config/aarch64/aarch64-simd.md
25616         (aarch64_ld1<VALL:mode>): New.
25617         (aarch64_st1<VALL:mode>): Likewise.
25618         * config/aarch64/arm_neon.h
25619         (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
25621 2013-07-02  Sriraman Tallam  <tmsriram@google.com>
25623         * config/i386/i386.c (gate_insert_vzeroupper): Check if
25624         target ISA is AVX.
25625         (ix86_option_override_internal):Turn on all -mavx target flags by
25626         default as they are dependent on AVX anyway.
25628 2013-07-02  Cary Coutant  <ccoutant@google.com>
25630         * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
25631         deterministic hash.
25632         (loc_checksum_ordered): Likewise.
25633         (hash_loc_operands): Remove inline keyword.
25635 2013-07-02  Jakub Jelinek  <jakub@redhat.com>
25637         PR tree-optimization/57741
25638         * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
25639         non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
25640         or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
25641         Allow REAL_CST step_exprs if flag_associative_math.
25642         (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
25644 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
25646         * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
25648 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
25650         * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
25652 2013-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25654         * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
25655         encoding.
25656         (iorsi3_insn): Likewise.
25657         (arm_xorsi3): Likewise.
25659 2013-07-01  Sofiane Naci  <sofiane.naci@arm.com>
25661         * arm.md (attribute "wtype"): Delete.  Move attribute values from here
25662         to ...
25663         (attribute "type"): ... here, and prefix with "wmmx_".
25664         (attribute "core_cycles"): Update for attribute changes.
25665         * iwmmxt.md (tbcstv8qi): Update for attribute changes.
25666         (tbcstv4hi): Likewise.
25667         (tbcstv2si): Likewise.
25668         (iwmmxt_iordi3): Likewise.
25669         (iwmmxt_xordi3): Likewise.
25670         (iwmmxt_anddi3): Likewise.
25671         (iwmmxt_nanddi3): Likewise.
25672         (iwmmxt_arm_movdi): Likewise.
25673         (iwmmxt_movsi_insn): Likewise.
25674         (mov<mode>_internal): Likewise.
25675         (and<mode>3_iwmmxt): Likewise.
25676         (ior<mode>3_iwmmxt): Likewise.
25677         (xor<mode>3_iwmmxt): Likewise.
25678         (add<mode>3_iwmmxt): Likewise.
25679         (ssaddv8qi3): Likewise.
25680         (ssaddv4hi3): Likewise.
25681         (ssaddv2si3): Likewise.
25682         (usaddv8qi3): Likewise.
25683         (usaddv4hi3): Likewise.
25684         (usaddv2si3): Likewise.
25685         (sub<mode>3_iwmmxt): Likewise.
25686         (sssubv8qi3): Likewise.
25687         (sssubv4hi3): Likewise.
25688         (sssubv2si3): Likewise.
25689         (ussubv8qi3): Likewise.
25690         (ussubv4hi3): Likewise.
25691         (ussubv2si3): Likewise.
25692         (mulv4hi3_iwmmxt): Likewise.
25693         (smulv4hi3_highpart): Likewise.
25694         (umulv4hi3_highpart): Likewise.
25695         (iwmmxt_wmacs): Likewise.
25696         (iwmmxt_wmacsz): Likewise.
25697         (iwmmxt_wmacu): Likewise.
25698         (iwmmxt_wmacuz): Likewise.
25699         (iwmmxt_clrdi): Likewise.
25700         (iwmmxt_clrv8qi): Likewise.
25701         (iwmmxt_clr4hi): Likewise.
25702         (iwmmxt_clr2si): Likewise.
25703         (iwmmxt_uavgrndv8qi3): Likewise.
25704         (iwmmxt_uavgrndv4hi3): Likewise.
25705         (iwmmxt_uavgv8qi3): Likewise.
25706         (iwmmxt_uavgv4hi3): Likewise.
25707         (iwmmxt_tinsrb): Likewise.
25708         (iwmmxt_tinsrh): Likewise.
25709         (iwmmxt_tinsrw): Likewise.
25710         (iwmmxt_textrmub): Likewise.
25711         (iwmmxt_textrmsb): Likewise.
25712         (iwmmxt_textrmuh): Likewise.
25713         (iwmmxt_textrmsh): Likewise.
25714         (iwmmxt_textrmw): Likewise.
25715         (iwmxxt_wshufh): Likewise.
25716         (eqv8qi3): Likewise.
25717         (eqv4hi3): Likewise.
25718         (eqv2si3): Likewise.
25719         (gtuv8qi3): Likewise.
25720         (gtuv4hi3): Likewise.
25721         (gtuv2si3): Likewise.
25722         (gtv8qi3): Likewise.
25723         (gtv4hi3): Likewise.
25724         (gtv2si3): Likewise.
25725         (smax<mode>3_iwmmxt): Likewise.
25726         (umax<mode>3_iwmmxt): Likewise.
25727         (smin<mode>3_iwmmxt): Likewise.
25728         (umin<mode>3_iwmmxt): Likewise.
25729         (iwmmxt_wpackhss): Likewise.
25730         (iwmmxt_wpackwss): Likewise.
25731         (iwmmxt_wpackdss): Likewise.
25732         (iwmmxt_wpackhus): Likewise.
25733         (iwmmxt_wpackwus): Likewise.
25734         (iwmmxt_wpackdus): Likewise.
25735         (iwmmxt_wunpckihb): Likewise.
25736         (iwmmxt_wunpckihh): Likewise.
25737         (iwmmxt_wunpckihw): Likewise.
25738         (iwmmxt_wunpckilb): Likewise.
25739         (iwmmxt_wunpckilh): Likewise.
25740         (iwmmxt_wunpckilw): Likewise.
25741         (iwmmxt_wunpckehub): Likewise.
25742         (iwmmxt_wunpckehuh): Likewise.
25743         (iwmmxt_wunpckehuw): Likewise.
25744         (iwmmxt_wunpckehsb): Likewise.
25745         (iwmmxt_wunpckehsh): Likewise.
25746         (iwmmxt_wunpckehsw): Likewise.
25747         (iwmmxt_wunpckelub): Likewise.
25748         (iwmmxt_wunpckeluh): Likewise.
25749         (iwmmxt_wunpckeluw): Likewise.
25750         (iwmmxt_wunpckelsb): Likewise.
25751         (iwmmxt_wunpckelsh): Likewise.
25752         (iwmmxt_wunpckelsw): Likewise.
25753         (ror<mode>3): Likewise.
25754         (ashr<mode>3_iwmmxt): Likewise.
25755         (lshr<mode>3_iwmmxt): Likewise.
25756         (ashl<mode>3_iwmmxt): Likewise.
25757         (ror<mode>3_di): Likewise.
25758         (ashr<mode>3_di): Likewise.
25759         (lshr<mode>3_di): Likewise.
25760         (ashl<mode>3_di): Likewise.
25761         (iwmmxt_wmadds): Likewise.
25762         (iwmmxt_wmaddu): Likewise.
25763         (iwmmxt_tmia): Likewise.
25764         (iwmmxt_tmiaph): Likewise.
25765         (iwmmxt_tmiabb): Likewise.
25766         (iwmmxt_tmiatb): Likewise.
25767         (iwmmxt_tmiabt): Likewise.
25768         (iwmmxt_tmiatt): Likewise.
25769         (iwmmxt_tmovmskb): Likewise.
25770         (iwmmxt_tmovmskh): Likewise.
25771         (iwmmxt_tmovmskw): Likewise.
25772         (iwmmxt_waccb): Likewise.
25773         (iwmmxt_wacch): Likewise.
25774         (iwmmxt_waccw): Likewise.
25775         (iwmmxt_waligni): Likewise.
25776         (iwmmxt_walignr): Likewise.
25777         (iwmmxt_walignr0): Likewise.
25778         (iwmmxt_walignr1): Likewise.
25779         (iwmmxt_walignr2): Likewise.
25780         (iwmmxt_walignr3): Likewise.
25781         (iwmmxt_wsadb): Likewise.
25782         (iwmmxt_wsadh): Likewise.
25783         (iwmmxt_wsadbz): Likewise.
25784         (iwmmxt_wsadhz): Likewise.
25785         * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
25786         (iwmmxt_wabsdiffb): Likewise.
25787         (iwmmxt_wabsdiffh): Likewise.
25788         (iwmmxt_wabsdiffw): Likewise.
25789         (iwmmxt_waddsubhx): Likewise
25790         (iwmmxt_wsubaddhx): Likewise.
25791         (addc<mode>3): Likewise.
25792         (iwmmxt_avg4): Likewise.
25793         (iwmmxt_avg4r): Likewise.
25794         (iwmmxt_wmaddsx): Likewise.
25795         (iwmmxt_wmaddux): Likewise.
25796         (iwmmxt_wmaddsn): Likewise.
25797         (iwmmxt_wmaddun): Likewise.
25798         (iwmmxt_wmulwsm): Likewise.
25799         (iwmmxt_wmulwum): Likewise.
25800         (iwmmxt_wmulsmr): Likewise.
25801         (iwmmxt_wmulumr): Likewise.
25802         (iwmmxt_wmulwsmr): Likewise.
25803         (iwmmxt_wmulwumr): Likewise.
25804         (iwmmxt_wmulwl): Likewise.
25805         (iwmmxt_wqmulm): Likewise.
25806         (iwmmxt_wqmulwm): Likewise.
25807         (iwmmxt_wqmulmr): Likewise.
25808         (iwmmxt_wqmulwmr): Likewise.
25809         (iwmmxt_waddbhusm): Likewise.
25810         (iwmmxt_waddbhusl): Likewise.
25811         (iwmmxt_wqmiabb): Likewise.
25812         (iwmmxt_wqmiabt): Likewise.
25813         (iwmmxt_wqmiatb): Likewise.
25814         (iwmmxt_wqmiatt): Likewise.
25815         (iwmmxt_wqmiabbn): Likewise.
25816         (iwmmxt_wqmiabtn): Likewise.
25817         (iwmmxt_wqmiatbn): Likewise.
25818         (iwmmxt_wqmiattn): Likewise.
25819         (iwmmxt_wmiabb): Likewise.
25820         (iwmmxt_wmiabt): Likewise.
25821         (iwmmxt_wmiatb): Likewise.
25822         (iwmmxt_wmiatt): Likewise.
25823         (iwmmxt_wmiabbn): Likewise.
25824         (iwmmxt_wmiabtn): Likewise.
25825         (iwmmxt_wmiatbn): Likewise.
25826         (iwmmxt_wmiattn): Likewise.
25827         (iwmmxt_wmiawbb): Likewise.
25828         (iwmmxt_wmiawbt): Likewise.
25829         (iwmmxt_wmiawtb): Likewise.
25830         (iwmmxt_wmiawtt): Likewise.
25831         (iwmmxt_wmiawbbn): Likewise.
25832         (iwmmxt_wmiawbtn): Likewise.
25833         (iwmmxt_wmiawtbn): Likewise.
25834         (iwmmxt_wmiawttn): Likewise.
25835         (iwmmxt_wmerge): Likewise.
25836         (iwmmxt_tandc<mode>3): Likewise.
25837         (iwmmxt_torc<mode>3): Likewise.
25838         (iwmmxt_torvsc<mode>3): Likewise.
25839         (iwmmxt_textrc<mode>3): Likewise.
25840         * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
25841         (wmmxt_pack): Likewise.
25842         (wmmxt_mult_c1): Likewise.
25843         (wmmxt_mult_c2): Likewise.
25844         (wmmxt_alu_c1): Likewise.
25845         (wmmxt_alu_c2): Likewise.
25846         (wmmxt_alu_c3): Likewise.
25847         (wmmxt_transfer_c1): Likewise.
25848         (wmmxt_transfer_c2): Likewise.
25849         (wmmxt_transfer_c3): Likewise.
25850         (marvell_f_iwmmxt_wstr): Likewise.
25851         (marvell_f_iwmmxt_wldr): Likewise.
25853 2013-06-29  Yufeng Zhang  <yufeng.zhang@arm.com>
25855         * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
25857 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
25859         Revert:
25860         2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
25861         * lra-constraints.c (need_for_split_p): Check call used hard regs
25862         living through calls.
25864         * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
25865         call used regs for call insn.
25867 2013-06-28  Jakub Jelinek  <jakub@redhat.com>
25869         PR target/57736
25870         * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
25871         mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
25873 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
25875         * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
25877 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
25879         * lra-constraints.c (need_for_split_p): Check call used hard regs
25880         living through calls.
25882 2013-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
25884         PR target/57744
25885         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
25886         to tie with any other modes.  Eliminate Altivec vector mode tests,
25887         since these are a subset of ALTIVEC or VSX vector modes.  Simplify
25888         code, to return 0 if testing MODE2 for a condition, if we've
25889         already tested MODE1 for the same condition.
25891 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25893         * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
25894         layout.
25896 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25898         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
25899         Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
25901 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25903         * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
25904         Define.
25905         (aarch64_symbolic_constant_p): Remove.
25906         * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
25907         static.  Fix line length and white space.
25908         (aarch64_symbolic_constant_p): Remove.
25909         * config/aarch64/predicates.md (aarch64_valid_symref):
25910         Use aarch64_classify_symbol_expression.
25912 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25914         * config/arm/constraints.md (Ts): New constraint.
25915         * config/arm/arm.md (arm_movqi_insn): Add alternatives for
25916         16-bit encodings.
25917         (compare_scc): Use "Ts" constraint for operand 0.
25918         (ior_scc_scc): Likewise.
25919         (and_scc_scc): Likewise.
25920         (and_scc_scc_nodom): Likewise.
25921         (ior_scc_scc_cmp): Likewise for operand 7.
25922         (and_scc_scc_cmp): Likewise.
25923         * config/arm/thumb2.md (thumb2_movsi_insn):
25924         Add alternatives for 16-bit encodings.
25925         (thumb2_movhi_insn): Likewise.
25926         (thumb2_movsicc_insn): Likewise.
25927         (thumb2_and_scc): Take 'and' outside cond_exec.  Use "Ts" constraint.
25928         (thumb2_negscc): Use "Ts" constraint.
25929         Move mvn instruction outside cond_exec block.
25930         * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
25931         for 16-bit encodings.
25933 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25935         * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
25936         encoding.
25937         (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
25938         (mulsi3subsi): Likewise.
25939         (mulsidi3adddi): Likewise.
25940         (mulsidi3_v6): Likewise.
25941         (umulsidi3_v6): Likewise.
25942         (umulsidi3adddi_v6): Likewise.
25943         (smulsi3_highpart_v6): Likewise.
25944         (umulsi3_highpart_v6): Likewise.
25945         (mulhisi3tb): Likewise.
25946         (mulhisi3bt): Likewise.
25947         (mulhisi3tt): Likewise.
25948         (maddhisi4): Likewise.
25949         (maddhisi4tb): Likewise.
25950         (maddhisi4tt): Likewise.
25951         (maddhidi4): Likewise.
25952         (maddhidi4tb): Likewise.
25953         (maddhidi4tt): Likewise.
25954         (zeroextractsi_compare0_scratch): Likewise.
25955         (insv_zero): Likewise.
25956         (insv_t2): Likewise.
25957         (anddi_notzesidi_di): Likewise.
25958         (anddi_notsesidi_di): Likewise.
25959         (andsi_notsi_si): Likewise.
25960         (iordi_zesidi_di): Likewise.
25961         (xordi_zesidi_di): Likewise.
25962         (andsi_iorsi3_notsi): Likewise.
25963         (smax_0): Likewise.
25964         (smax_m1): Likewise.
25965         (smin_0): Likewise.
25966         (not_shiftsi): Likewise.
25967         (unaligned_loadsi): Likewise.
25968         (unaligned_loadhis): Likewise.
25969         (unaligned_loadhiu): Likewise.
25970         (unaligned_storesi): Likewise.
25971         (unaligned_storehi): Likewise.
25972         (extv_reg): Likewise.
25973         (extzv_t2): Likewise.
25974         (divsi3): Likewise.
25975         (udivsi3): Likewise.
25976         (arm_zero_extendhisi2addsi): Likewise.
25977         (arm_zero_extendqisi2addsi): Likewise.
25978         (compareqi_eq0): Likewise.
25979         (arm_extendhisi2_v6): Likewise.
25980         (arm_extendqisi2addsi): Likewise.
25981         (arm_movt): Likewise.
25982         (thumb2_ldrd): Likewise.
25983         (thumb2_ldrd_base): Likewise.
25984         (thumb2_ldrd_base_neg): Likewise.
25985         (thumb2_strd): Likewise.
25986         (thumb2_strd_base): Likewise.
25987         (thumb2_strd_base_neg): Likewise.
25988         (arm_negsi2): Add alternative for 16-bit encoding.
25989         (arm_one_cmplsi2): Likewise.
25991 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25993         * config/arm/predicates.md (arm_cond_move_operator): New predicate.
25994         * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
25995         (movdfcc): Likewise.
25996         * config/arm/vfp.md (*thumb2_movsf_vfp):
25997         Disable predication for arm_restrict_it.
25998         (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
25999         (*thumb2_movdfcc_vfp): Likewise.
26000         (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
26001         *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
26002         *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
26003         *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
26004         *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
26005         *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
26006         *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
26007         *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
26008         *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
26009         *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
26010         *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
26011         *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
26012         Disable predication for arm_restrict_it.
26014 2013-06-28  Kirill Yukhin  <kirill.yukhin@intel.com>
26016         * config/i386/bmiintrin.h (_bextr_u32): New.
26017         (_bextr_u64): Ditto.
26019 2013-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
26021         * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
26022         (mips64r5900el-*-elf*): Include mips/n32-elf.h.
26023         * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
26024         (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
26025         * config/mips/n32-elf.h: ...this new file.
26027 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
26029         PR target/57224
26030         * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
26031         IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
26033 2013-06-27  Catherine Moore  <clm@codesourcery.com>
26035         * config/mips/mips-tables.opt: Regenerate.
26036         * config/mips/mips-cpus.def: Add m14ke and m14kec.
26037         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
26038         * doc/invoke.texi: Add -m14kc.
26040 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
26042         PR target/57623
26043         * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
26044         constraints of operand 1 and 2.
26046         PR target/57623
26047         * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
26048         to match RTL canonicalization.  Swap predicates and
26049         constraints of operand 1 and 2.
26051 2013-06-27  Vladimir Makarov  <vmakarov@redhat.com>
26053         * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
26054         Process OP_INOUT regs for splitting too.
26056 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
26058         * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
26059         decl before the loop, initialize to NULL.
26060         (vectorizable_load): Initialize ptr_incr to NULL.
26062 2013-06-27  Martin Jambor  <mjambor@suse.cz>
26064         PR lto/57208
26065         * ipa-ref.h (ipa_maybe_record_reference): Declare.
26066         * ipa-ref.c (ipa_maybe_record_reference): New function.
26067         * cgraphclones.c (cgraph_create_virtual_clone): Use it.
26068         * ipa-cp.c (create_specialized_node): Record potential references from
26069         aggvals.
26070         * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
26072 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
26074         * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
26075         parameter 'mode' of type 'enum machine_mode mode'; change to pass
26076         'mode' to force_reg.
26077         (aarch64_add_offset): Update calls to aarch64_force_temporary.
26078         (aarch64_expand_mov_immediate): Likewise.
26080 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
26082         * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
26083         'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
26085 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26087         * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
26088         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
26089         (struct machine_function): Add tbegin_p.
26090         (s390_canonicalize_comparison): Fold CC mode compares to
26091         conditional jump if possible.
26092         (s390_emit_jump): Return the emitted jump.
26093         (s390_branch_condition_mask, s390_branch_condition_mnemonic):
26094         Handle CCRAWmode compares.
26095         (s390_option_override): Default to -mhtm if available.
26096         (s390_reg_clobbered_rtx): Handle floating point regs as well.
26097         (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
26098         FPRs instead of df_regs_ever_live_p.
26099         (s390_optimize_nonescaping_tx): New function.
26100         (s390_init_frame_layout): Extend clobbered_regs array to cover
26101         FPRs as well.
26102         (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
26103         (s390_expand_tbegin): New function.
26104         (enum s390_builtin): New enum definition.
26105         (code_for_builtin): New array definition.
26106         (s390_init_builtins): New function.
26107         (s390_expand_builtin): New function.
26108         (TARGET_INIT_BUILTINS): Define.
26109         (TARGET_EXPAND_BUILTIN): Define.
26110         * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
26111         * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
26112         (s390_alc_comparison): Likewise.
26113         * config/s390/s390-modes.def: Add CCRAWmode.
26114         * config/s390/s390.h (processor_flags): Add PF_TX.
26115         (TARGET_CPU_HTM): Define macro.
26116         (TARGET_HTM): Define macro.
26117         (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
26118         * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
26119         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
26120         (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
26121         (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
26122         (TBEGIN_MASK, TBEGINC_MASK): New constants.
26123         ("*cc_to_int"): Move up.
26124         ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
26125         constants other than 0.
26126         ("*ccraw_to_int"): New insn and splitter definition.
26127         ("tbegin", "tbegin_nofloat", "tbegin_retry")
26128         ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
26129         ("tx_assist"): New expander.
26130         ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
26131         ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
26132         * config/s390/s390.opt: Add -mhtm option.
26133         * config/s390/s390-protos.h (s390_emit_jump): Add return type.
26134         * config/s390/htmxlintrin.h: New file.
26135         * config/s390/htmintrin.h: New file.
26136         * config/s390/s390intrin.h: New file.
26137         * doc/extend.texi: Document htm builtins.
26138         * config.gcc: Add the new header files to extra_headers.
26140 2013-06-26  Thomas Schwinge  <thomas@codesourcery.com>
26142         * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
26143         (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
26145 2013-06-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
26146             Pat Haugen  <pthaugen@us.ibm.com>
26147             Peter Bergner  <bergner@vnet.ibm.com>
26149         * config/rs6000/power8.md: New.
26150         * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
26151         setting for power8 entry.
26152         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
26153         * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
26154         test for Power4/Power5 only.
26155         (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
26156         support.
26157         (force_new_group): Adjust comment.
26158         * config/rs6000/rs6000.md: Include power8.md.
26160 2013-06-26  Greta Yorsh  <Greta.Yorsh@arm.com>
26162         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
26163         * config/arm/arm-protos.h (arm_max_conditional_execute): New
26164         declaration.
26165         (tune_params): Update comment.
26166         * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
26167         (arm_max_conditional_execute): New function.
26168         (thumb2_final_prescan_insn): Use max_insn_skipped and
26169         MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
26171 2013-06-25  Jakub Jelinek  <jakub@redhat.com>
26173         PR tree-optimization/57705
26174         * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
26175         SSA_NAME step, provided that it is not defined inside the loop.
26176         (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
26177         (get_initial_def_for_induction): Handle SSA_NAME IV step.
26179 2013-06-25  Martin Jambor  <mjambor@suse.cz>
26181         PR middle-end/57670
26182         * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
26183         * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
26184         calls in the dump.
26185         (ipa_note_param_call): Initialize member_ptr flag.
26186         (ipa_analyze_indirect_call_uses): Set member_ptr flag.
26187         (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
26188         (ipa_write_indirect_edge_info): Stream member_ptr flag.
26189         (ipa_read_indirect_edge_info): Likewise.
26191 2013-06-25  Richard Biener  <rguenther@suse.de>
26193         PR middle-end/56977
26194         * passes.c (init_optimization_passes): Move pass_fold_builtins
26195         and pass_dce earlier with -Og.
26197 2013-06-25  Eric Botcazou  <ebotcazou@adacore.com>
26199         * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
26200         <BIT_FIELD_REF>: Remove trailing TAB.
26201         * varasm.c (output_constructor_bitfield): Fix formatting glitch and
26202         remove blank line.
26204 2013-06-24  Martin Jambor  <mjambor@suse.cz>
26206         PR tree-optimization/57358
26207         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
26208         (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
26209         (ipa_analyze_params_uses): Generate pessimistic info when true.
26211 2013-06-24  Martin Jambor  <mjambor@suse.cz>
26213         PR tree-optimization/57539
26214         * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
26215         global.inlined_to of the new node to it.  All callers changed.
26216         * ipa-inline-transform.c (clone_inlined_nodes): New variable
26217         inlining_into, pass it to cgraph_clone_node.
26218         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
26219         ipa_free_edge_args_substructures.
26220         (ipa_edge_duplication_hook): Only add edges from inlined nodes to
26221         rdesc linked list.  Do not assert rdesc edges have inlined caller.
26222         Assert we have found an rdesc in the rdesc list.
26224 2013-06-24  Richard Biener  <rguenther@suse.de>
26226         * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
26227         (pointer_set_lookup): Declare.
26228         (class pointer_map): New template class implementing a
26229         generic pointer to T map.
26230         (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
26231         pointer_map<T>::contains, pointer_map<T>::insert,
26232         pointer_map<T>::traverse): New functions.
26233         * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
26234         (pointer_set_lookup): New function.
26235         (pointer_set_contains): Use pointer_set_lookup.
26236         (pointer_set_insert): Likewise.
26237         (insert_aux): Remove.
26238         (struct pointer_map_t): Embed a pointer_set_t.
26239         (pointer_map_create): Adjust.
26240         (pointer_map_destroy): Likewise.
26241         (pointer_map_contains): Likewise.
26242         (pointer_map_insert): Likewise.
26243         (pointer_map_traverse): Likewise.
26244         * tree-streamer.h (struct streamer_tree_cache_d): Use a
26245         pointer_map<unsigned> instead of a pointer_map_t.
26246         * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
26247         (streamer_tree_cache_lookup): Likewise.
26248         (streamer_tree_cache_create): Likewise.
26249         (streamer_tree_cache_delete): Likewise.
26250         * lto-streamer.h (struct lto_tree_ref_encoder): Use a
26251         pointer_map<unsigned> instead of a pointer_map_t.
26252         (lto_init_tree_ref_encoder): Adjust.
26253         (lto_destroy_tree_ref_encoder): Likewise.
26254         * lto-section-out.c (lto_output_decl_index): Likewise.
26255         (lto_record_function_out_decl_state): Likewise.
26256         * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
26258 2013-06-24  Richard Biener  <rguenther@suse.de>
26260         PR tree-optimization/57488
26261         * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
26263 2013-06-24  Alan Modra  <amodra@gmail.com>
26265         * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
26266         (gen_easy_altivec_constant): Likewise.
26267         * config/rs6000/predicates.md (easy_vector_constant_add_self,
26268         easy_vector_constant_msb): Likewise.
26270 2013-06-23  Jakub Jelinek  <jakub@redhat.com>
26272         PR target/57688
26273         * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
26274         add missing return true.
26276 2013-06-23  Oleg Endo  <olegendo@gcc.gnu.org>
26278         PR target/52483
26279         * config/sh/predicates.md (general_extend_operand): Invoke
26280         general_movsrc_operand for memory operands.
26281         (general_movsrc_operand): Allow reg+reg addressing, do not use
26282         general_operand for memory operands.
26284 2013-06-23  Sriraman Tallam  <tmsriram@google.com>
26286         * config/i386/i386.c (ix86_pragma_target_parse):  Restore target
26287         when current target options does not apply.
26288         * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
26289         * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
26290         * config/i386/bmiintrin.h: Pass appropriate target
26291         attributes to header.
26292         * config/i386/mmintrin.h: Ditto.
26293         * config/i386/nmmintrin.h: Ditto.
26294         * config/i386/avx2intrin.h: Ditto.
26295         * config/i386/fxsrintrin.h: Ditto.
26296         * config/i386/tbmintrin.h: Ditto.
26297         * config/i386/xsaveintrin.h: Ditto.
26298         * config/i386/f16cintrin.h: Ditto.
26299         * config/i386/xtestintrin.h: Ditto.
26300         * config/i386/xsaveoptintrin.h: Ditto.
26301         * config/i386/bmi2intrin.h: Ditto.
26302         * config/i386/lzcntintrin.h: Ditto.
26303         * config/i386/smmintrin.h: Ditto.
26304         * config/i386/wmmintrin.h: Ditto.
26305         * config/i386/x86intrin.h: Remove all header include guards.
26306         * config/i386/prfchwintrin.h: Ditto.
26307         * config/i386/pmmintrin.h: Ditto.
26308         * config/i386/tmmintrin.h: Ditto.
26309         * config/i386/xmmintrin.h: Ditto.
26310         * config/i386/popcntintrin.h: Ditto.
26311         * config/i386/rdseedintrin.h: Ditto.
26312         * config/i386/ammintrin.h: Ditto.
26313         * config/i386/emmintrin.h: Ditto.
26314         * config/i386/immintrin.h: Remove all header include guards.
26315         * config/i386/fma4intrin.h: Ditto.
26316         * config/i386/lwpintrin.h: Ditto.
26317         * config/i386/xopintrin.h: Ditto.
26318         * config/i386/ia32intrin.h: Ditto.
26319         * config/i386/avxintrin.h: Ditto.
26320         * config/i386/rtmintrin.h: Ditto.
26321         * config/i386/fmaintrin.h: Ditto.
26322         * config/i386/mm3dnow.h: Ditto.
26324 2013-06-22  Sriraman Tallam  <tmsriram@google.com>
26326         * common/config/i386/i386-common.c: Handle LZCNT.
26328 2013-06-22  Andi Kleen  <ak@linux.intel.com>
26330         * doc/extend.texi: Use __atomic_store_n instead of
26331         __atomic_store in HLE example.
26333 2013-06-22  Oleg Endo  <olegendo@gcc.gnu.org>
26335         * config/sh/sh.c: Remove <cstdlib> workaround.
26337 2013-06-21  Andi Kleen  <ak@linux.intel.com>
26339         * doc/extend.texi: Dont use __atomic_clear in HLE example.  Fix typo.
26341 2013-06-21  Andi Kleen  <ak@linux.intel.com>
26343         * doc/extend.texi: Document that __atomic_clear and
26344           __atomic_test_and_set should only be used with bool.
26346 2013-06-20  Jan Hubicka  <jh@suse.cz>
26348         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
26349         types_same_for_odr.
26350         * tree.c (decls_same_for_odr): New function.
26351         (same_for_edr): New function.
26352         (types_same_for_odr): New function.
26353         (get_binfo_at_offset): Use it.
26354         * tree.h (types_same_for_odr): Declare.
26356 2013-06-20  Oleg Endo  <olegendo@gcc.gnu.org>
26357             Jason Merrill  <jason@redhat.com>
26359         * system.h: Include <cstdlib> as well as <stdlib.h>.
26361 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
26363         PR target/57655
26364         * config/i386/i386.c (construct_container): Report error if
26365         long double is used with disabled x87 float returns.
26367 2013-06-20  Jan Hubicka  <jh@suse.cz>
26369         * lto-cgraph.c (input_symtab): Do not set cgraph state.
26371 2013-06-20  Joern Rennecke  <joern.rennecke@embecosm.com>
26373         PR rtl-optimization/57425
26374         PR rtl-optimization/57569
26375         * alias.c (write_dependence_p): Remove parameters mem_mode and
26376         canon_mem_addr.  Add parameters x_mode, x_addr and x_canonicalized.
26377         Changed all callers.
26378         (canon_anti_dependence): Get comments and semantics in sync.
26379         Add parameter mem_canonicalized.  Changed all callers.
26380         * rtl.h (canon_anti_dependence): Update prototype.
26382 2013-06-20  Richard Biener  <rguenther@suse.de>
26384         * data-streamer-in.c (streamer_read_uhwi): Optimize single
26385         byte case, inline streamer_read_uchar and defer section
26386         overrun check.
26388 2013-06-20  Richard Biener  <rguenther@suse.de>
26390         PR tree-optimization/57584
26391         * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
26392         SSA names into the expanded expression that take part in
26393         abnormal coalescing.
26395 2013-06-19  Sharad Singhai  <singhai@google.com>
26397         * gcov.c (print_usage): Handle new option.
26398         (process_args): Ditto.
26399         (get_gcov_intermediate_filename): New function.
26400         (output_intermediate_file): New function.
26401         (output_gcov_file): New function
26402         (generate_results): Handle new option.
26403         (release_function): Relase demangled name.
26404         (read_graph_file): Handle demangled name.
26405         (output_lines): Ditto.
26406         * doc/gcov.texi: Document gcov intermediate format.
26408 2013-06-19  Vladimir Makarov  <vmakarov@redhat.com>
26410         PR bootstrap/57604
26411         * lra.c (emit_add3_insn, emit_add2_insn): New functions.
26412         (lra_emit_add): Use the functions.  Add comment about Y as an
26413         address segment.
26415 2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
26417         PR driver/57652
26418         * collect2.c (collect_atexit): New.
26419         (collect_exit): Delete.
26420         (main): Register collect_atexit with atexit.
26421         (collect_wait): Change collect_exit to exit.
26422         (do_wait): Same.
26423         * collect2.h (collect_exit): Delete.
26424         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
26426 2013-06-19  Wei Mi  <wmi@google.com>
26428         PR rtl-optimization/57518
26429         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
26430         if regno is used in paradoxical subreg.
26431         (update_equiv_regs): Check pdx_subregs[regno] before
26432         set a reg to be equivalent with a mem.
26434 2013-06-19  Matthias Klose  <doko@ubuntu.com>
26436         PR driver/57651
26437         * file-find.h (find_a_file): Add a mode parameter.
26438         * file-find.c (find_a_file): Likewise.
26439         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
26440         with X_OK for the executables.
26441         * collect2.c (main): Call find_a_file with X_OK.
26443 2013-06-19  Steve Ellcey  <sellcey@mips.com>
26445         PR target/56942
26446         * config/mips/mips.md (casesi_internal_mips16_<mode>):
26447         Use NEXT_INSN instead of next_real_insn.
26449 2013-06-19  Jan Hubicka  <jh@suse.cz>
26451         * cgraph.h (const_value_known_p): Replace by ...
26452         (ctor_for_folding): .. this one.
26453         * cgraphunit.c (process_function_and_variable_attributes): Use it.
26454         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
26455         * expr.c (expand_expr_real_1): Likewise.
26456         (string_constant): Likewise.
26457         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
26458         * ipa.c (process_references): Likewise.
26459         (symtab_remove_unreachable_nodes): Likewise.
26460         * ipa-inline-analysis.c (param_change_prob): Likewise.
26461         * gimple-fold.c (canonicalize_constructor_val): Likewise.
26462         (get_base_constructor): Likwise.
26463         * varpool.c (varpool_remove_node): Likewise.
26464         (varpool_remove_initializer): LIkewise.
26465         (dump_varpool_node): LIkwise.
26466         (const_value_known_p): Rewrite to ...
26467         (ctor_for_folding): ... this one.
26469 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
26471         PR driver/57651
26472         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
26473         PERSONALITY in $PATH derived prefixes.
26475 2013-06-19  Jeff Law  <law@redhat.com>
26477         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
26478         in comment.
26480         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
26481         (simplify_bitwise_binary): Use it to simpify certain binary ops on
26482         booleans.
26484 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
26486         * config/arm/vfp.md: Move VFP instruction classification documentation
26487         to ...
26488         * config/arm/arm.md: ... here.  Update instruction classification
26489         documentation.
26491 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
26493         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
26494         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
26495         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
26497 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
26499         PR target/57609
26500         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
26501         with NEXT_INSN.  Use tablejump_p to check for jump table data
26502         insns.
26504 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
26506         PR c++/56544
26507         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
26508         that now in C++ the value is correct per the C++ standards.
26510 2013-06-19  Richard Biener  <rguenther@suse.de>
26512         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
26513         for global context.
26515 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26517         Revert:
26518         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26520         PR target/57609
26521         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
26522         with next_active_insn.
26524 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
26526         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
26527         functions are inlined during failures to flag an error.
26528         * tree-inline.c (expand_call_inline): Allow the error to be flagged
26529         in early inline pass.
26531 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
26533         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
26534         in comments.
26536 2013-06-18  Julian Brown  <julian@codesourcery.com>
26538         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
26539         Permit virtual register pre-reload if !strict.
26540         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
26541         change.
26542         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
26543         prototype.
26544         * config/arm/neon.md (movmisalign<mode>): Use
26545         neon_perm_struct_or_reg_operand instead of
26546         neon_struct_or_register_operand.
26547         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
26548         neon_permissive_struct_operand instead of neon_struct_operand.
26549         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
26550         neon_vector_mem_operand.
26551         * config/arm/predicates.md (neon_struct_operand): Adjust call to
26552         neon_vector_mem_operand.
26553         (neon_permissive_struct_operand): New.
26554         (neon_struct_or_register_operand): Rename to...
26555         (neon_perm_struct_or_reg_operand): This. Adjust call to
26556         neon_vector_mem_operand.
26558 2013-06-18  Richard Biener  <rguenther@suse.de>
26560         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
26561         * lto-streamer.h: Include pointer-set.h.
26562         (struct lto_decl_slot): Remove.
26563         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
26564         Remove next_index entry.
26565         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
26566         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
26567         (lto_init_tree_ref_encoder): Adjust.
26568         (lto_destroy_tree_ref_encoder): Likewise.
26569         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
26570         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
26571         (lto_output_decl_index): Adjust.
26572         (lto_new_out_decl_state): Likewise.
26573         (lto_record_function_out_decl_state): Likewise.
26574         * lto-streamer-out.c (copy_function): Likewise.
26576 2013-06-18  Richard Biener  <rguenther@suse.de>
26578         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
26579         * cgraphunit.c: Include cfgloop.h.
26580         (init_lowered_empty_function): Initialize the loop tree.
26581         (assemble_thunk): Insert new BBs into loops.
26583 2013-06-18  Richard Biener  <rguenther@suse.de>
26585         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
26586         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
26587         the map from cache entry to cache index optional.
26588         (streamer_tree_cache_replace_tree): Adjust accordingly.
26589         (streamer_tree_cache_append): Likewise.
26590         (streamer_tree_cache_delete): Likewise.
26591         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
26592         streamer cache map from cache entry to cache index.
26593         * lto-streamer-out.c (create_output_block): Adjust.
26595 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
26597         * config/arm/arm.md (attribute "insn"): Move multiplication and
26598         division attributes to...
26599         (attribute "type"): ... here.  Remove mult.
26600         (attribute "mul32"): New attribute.
26601         (attribute "mul64"): Add umaal.
26602         (*arm_mulsi3): Update attributes.
26603         (*arm_mulsi3_v6): Likewise.
26604         (*thumb_mulsi3): Likewise.
26605         (*thumb_mulsi3_v6): Likewise.
26606         (*mulsi3_compare0): Likewise.
26607         (*mulsi3_compare0_v6): Likewise.
26608         (*mulsi_compare0_scratch): Likewise.
26609         (*mulsi_compare0_scratch_v6): Likewise.
26610         (*mulsi3addsi): Likewise.
26611         (*mulsi3addsi_v6): Likewise.
26612         (*mulsi3addsi_compare0): Likewise.
26613         (*mulsi3addsi_compare0_v6): Likewise.
26614         (*mulsi3addsi_compare0_scratch): Likewise.
26615         (*mulsi3addsi_compare0_scratch_v6): Likewise.
26616         (*mulsi3subsi): Likewise.
26617         (*mulsidi3adddi): Likewise.
26618         (*mulsi3addsi_v6): Likewise.
26619         (*mulsidi3adddi_v6): Likewise.
26620         (*mulsidi3_nov6): Likewise.
26621         (*mulsidi3_v6): Likewise.
26622         (*umulsidi3_nov6): Likewise.
26623         (*umulsidi3_v6): Likewise.
26624         (*umulsidi3adddi): Likewise.
26625         (*umulsidi3adddi_v6): Likewise.
26626         (*smulsi3_highpart_nov6): Likewise.
26627         (*smulsi3_highpart_v6): Likewise.
26628         (*umulsi3_highpart_nov6): Likewise.
26629         (*umulsi3_highpart_v6): Likewise.
26630         (mulhisi3): Likewise.
26631         (*mulhisi3tb): Likewise.
26632         (*mulhisi3bt): Likewise.
26633         (*mulhisi3tt): Likewise.
26634         (maddhisi4): Likewise.
26635         (*maddhisi4tb): Likewise.
26636         (*maddhisi4tt): Likewise.
26637         (maddhidi4): Likewise.
26638         (*maddhidi4tb): Likewise.
26639         (*maddhidi4tt): Likewise.
26640         (divsi3): Likewise.
26641         (udivsi3): Likewise.
26642         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
26643         (thumb2_mulsi_short_compare0): Likewise.
26644         (thumb2_mulsi_short_compare0_scratch): Likewise.
26645         * config/arm/arm1020e.md (1020mult1): Update attribute change.
26646         (1020mult2): Likewise.
26647         (1020mult3): Likewise.
26648         (1020mult4): Likewise.
26649         (1020mult5): Likewise.
26650         (1020mult6): Likewise.
26651         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
26652         change.
26653         (cortex_a15_mult64): Likewise.
26654         (cortex_a15_sdiv): Likewise.
26655         (cortex_a15_udiv): Likewise.
26656         * config/arm/arm1026ejs.md (mult1): Update attribute change.
26657         (mult2): Likewise.
26658         (mult3): Likewise.
26659         (mult4): Likewise.
26660         (mult5): Likewise.
26661         (mult6): Likewise.
26662         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
26663         (pj4_ir_div): Likewise.
26664         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
26665         (11_mult2): Likewise.
26666         (11_mult3): Likewise.
26667         (11_mult4): Likewise.
26668         (11_mult5): Likewise.
26669         (11_mult6): Likewise.
26670         (11_mult7): Likewise.
26671         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
26672         (cortex_a8_mla): Likewise.
26673         (cortex_a8_mull): Likewise.
26674         (cortex_a8_smulwy): Likewise.
26675         (cortex_a8_smlald): Likewise.
26676         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
26677         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
26678         (cortex_r4_mul_3): Likewise.
26679         (cortex_r4_mla_4): Likewise.
26680         (cortex_r4_mla_3): Likewise.
26681         (cortex_r4_smlald): Likewise.
26682         (cortex_r4_mull): Likewise.
26683         (cortex_r4_sdiv): Likewise.
26684         (cortex_r4_udiv): Likewise.
26685         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
26686         (cortex_a7_idiv): Likewise.
26687         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
26688         (9_mult2): Likewise.
26689         (9_mult3): Likewise.
26690         (9_mult4): Likewise.
26691         (9_mult5): Likewise.
26692         (9_mult6): Likewise.
26693         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
26694         (cortex_a53_sdiv): Likewise.
26695         (cortex_a53_udiv): Likewise.
26696         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
26697         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
26698         (mp626_mult2): Likewise.
26699         (mp626_mult3): Likewise.
26700         (mp626_mult4): Likewise.
26701         * config/arm/fa526.md (526_mult1): Update attribute change.
26702         (526_mult2): Likewise.
26703         * config/arm/arm-generic.md (mult): Update attribute change.
26704         (mult_ldsched_strongarm): Likewise.
26705         (mult_ldsched): Likewise.
26706         (multi_cycle): Likewise.
26707         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
26708         * config/arm/fa606te.md (606te_mult1): Update attribute change.
26709         (606te_mult2): Likewise.
26710         (606te_mult3): Likewise.
26711         (606te_mult4): Likewise.
26712         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
26713         (cortex_a9_mac16): Likewise.
26714         (cortex_a9_multiply): Likewise.
26715         (cortex_a9_mac): Likewise.
26716         (cortex_a9_multiply_long): Likewise.
26717         * config/arm/fa626te.md (626te_mult1): Update attribute change.
26718         (626te_mult2): Likewise.
26719         (626te_mult3): Likewise.
26720         (626te_mult4): Likewise.
26722 2013-06-18  Richard Biener  <rguenther@suse.de>
26724         PR lto/57334
26725         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
26727 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26729         PR target/57609
26730         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
26731         with next_active_insn.
26733 2013-06-18  Alan Modra  <amodra@gmail.com>
26735         * config/rs6000/rs6000.h (enum data_align): New.
26736         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
26737         (DATA_ABI_ALIGNMENT): Define.
26738         (CONSTANT_ALIGNMENT): Correct comment.
26739         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
26740         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
26742 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
26744         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
26745         ATTRIBUTE_UNUSED marking.
26747 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
26749         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
26750         alternative and update.
26751         (aarch64_dup_lanedi): Delete.
26752         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
26753         * config/aarch64/aarch64-simd-builtins.def: Update.
26755 2013-06-17  Richard Biener  <rguenther@suse.de>
26757         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
26758         (lto_input_scc): Declare.
26759         (lto_input_tree_1): Likewise.
26760         (struct lto_stats_d): Add num_tree_bodies_output and
26761         num_pickle_refs_output.
26762         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
26763         (lto_read_tree_1): Split out from ...
26764         (lto_read_tree): ... this.
26765         (lto_input_scc): New function.
26766         (lto_input_tree_1): Split out from ...
26767         (lto_input_tree): ... this.  Handle LTO_tree_scc.
26768         (lto_data_in_create): Create the streamer cache without hashes.
26769         * lto-streamer-out.c (create_output_block): Create the streamer
26770         cache with hashes when not doing WPA.
26771         (lto_write_tree_1): Split out from ...
26772         (lto_write_tree): ... this.
26773         (get_symbol_initial_value): New function.
26774         (lto_output_tree_1): Split out from ...
26775         (lto_output_tree): ... this.  Write trees as series of SCCs
26776         using a DFS walk via DFS_write_tree.
26777         (struct sccs, struct scc_entry): New types.
26778         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
26779         (DFS_write_tree_body): New function.
26780         (DFS_write_tree): Likewise.
26781         (hash_tree): Likewise.
26782         (scc_entry_compare): Likewise.
26783         (hash_scc): Likewise.
26784         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
26785         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
26786         TREE_CHAIN as regular reference.
26787         (streamer_read_integer_cst): Remove.
26788         (streamer_get_pickled_tree): Adjust.
26789         * tree-streamer-out.c (streamer_write_chain): Disable streaming
26790         of DECL_EXTERNALs in BLOCK_VARS for now.
26791         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
26792         reference.
26793         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
26794         Add hash value argument and record that if hashes are recorded
26795         in the cache.
26796         (streamer_tree_cache_insert_1): Adjust.
26797         (streamer_tree_cache_insert): Likewise.
26798         (streamer_tree_cache_insert_at): Rename to ...
26799         (streamer_tree_cache_replace_tree): ... this and adjust.
26800         (streamer_tree_cache_append): Adjust.
26801         (record_common_node): Likewise.
26802         (streamer_tree_cache_create): Add argument whether to
26803         record hash values together with trees.
26804         (streamer_tree_cache_delete): Adjust.
26805         * tree-streamer.h (struct streamer_tree_cache_d): Add
26806         vector of hashes.
26807         (streamer_read_integer_cst): Remove.
26808         (streamer_tree_cache_insert): Adjust.
26809         (streamer_tree_cache_append): Likewise.
26810         (streamer_tree_cache_insert_at): Rename to ...
26811         (streamer_tree_cache_replace_tree): ... this and adjust.
26812         (streamer_tree_cache_create): Add argument whether to record hashes.
26813         (streamer_tree_cache_get): Rename to ...
26814         (streamer_tree_cache_get_tree): ... this.
26815         (streamer_tree_cache_get_hash): New function.
26816         * tree.c (cache_integer_cst): New function.
26817         * tree.h (cache_integer_cst): Declare.
26818         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
26819         * lto-symtab.c (lto_varpool_replace_node): Only release
26820         DECL_INITIAL of non-prevailing decls.
26821         * varpool.c (varpool_remove_initializer): Do not release
26822         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
26824 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
26826         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
26827         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
26828         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
26829         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
26830         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
26831         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
26832         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
26833         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
26834         instead of TARGET_64BIT.
26835         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
26836         Require ISA_HAS_<D>DIV.
26838 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
26840         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
26841         (mips*-*-linux*): Move default with_llsc setting to where other
26842         defaults are set.
26843         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
26844         with_arch block.
26845         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
26846         Likewise.  Remove default with_tune setting.  Move default float
26847         setting to its own block.  Handle with_llsc in the same block as above.
26849 2013-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
26851         PR rtl-optimization/57425
26852         PR rtl-optimization/57569
26853         * alias.c (write_dependence_p): Add new parameters mem_mode,
26854         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
26855         Changed all callers.
26856         (canon_anti_dependence): New function.
26857         * cse.c (check_dependence): Use canon_anti_dependence.
26858         * cselib.c (cselib_invalidate_mem): Likewise.
26859         * rtl.h (canon_anti_dependence): Declare.
26861 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
26863         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
26864         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
26865         ".set mips3" for 64-bit targets.
26867 2013-06-15  Dehao Chen  <dehao@google.com>
26869         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
26870         * gimple-low.c (gimple_check_call_matching_types): Likewise.
26871         (gimple_check_call_args): Likewise.
26872         * value-prof.c (check_ic_target): Likewise.
26873         * ipa-inline.c (early_inliner): Likewise.
26874         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
26875         * cgraph.c (cgraph_create_edge_1): Likewise.
26876         (cgraph_make_edge_direct): Likewise.
26878 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
26880         PR target/57615
26881         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
26882         rs6000_output_move_128bit to handle emitting quad memory
26883         operations.  Set attribute length to 8 bytes.
26885 2013-06-14  Vidya Praveen  <vidyapraveen@arm.com>
26887         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
26888         New pattern.
26889         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
26890         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
26891         (aarch64_<su>mlsl<mode>): Likewise.
26893 2013-06-14  Mike Stump  <mikestump@comcast.net>
26895         * Makefile.in (TARGET_H): Add insn-codes.h.
26897 2013-06-14  Alan Modra  <amodra@gmail.com>
26899         PR middle-end/57134
26900         PR middle-end/57586
26901         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
26902         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
26903         bitfield expansion when EXPAND_MEMORY.
26904         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
26906 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
26908         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
26909         test for clearing quad memory on 32-bit later.
26911 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
26913         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
26914         (fold_negate_expr): Likewise.
26915         (fold_real_zero_addition_p): Handle vectors.
26916         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
26918 2013-06-14  Alan Modra  <amodra@gmail.com>
26920         * varasm.c (force_const_mem): Revert 2013-06-07 change.
26922 2013-06-13  Jan Hubicka  <jh@suse.cz>
26924         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
26925         Local comdats are not externally visible.
26926         * symtab.c (dump_symtab_base): Dump externally visible.
26927         (verify_symtab_base): Verify back links in the symtab hash.
26929 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
26931         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
26932         CONVERT_EXPR as equal nodes.
26934 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
26936         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
26938 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
26940         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
26941         Generalize to complex and vector.
26942         * tree.c (build_all_ones_cst): New function.
26943         * tree.h (build_all_ones_cst): Declare it.
26945 2013-06-13  Alan Modra  <amodra@gmail.com>
26947         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
26948         * config/rs6000/rs6000.md (signbittf2): New insn.
26949         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
26950         (abstf2_internal, cmptf_internal2): Likewise.
26951         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
26953 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
26954             Pat Haugen  <pthaugen@us.ibm.com>
26955             Peter Bergner  <bergner@vnet.ibm.com>
26957         * config/rs6000/rs6000.c (emit_load_locked): Add support for
26958         power8 byte, half-word, and quad-word atomic instructions.
26959         (emit_store_conditional): Likewise.
26960         (rs6000_expand_atomic_compare_and_swap): Likewise.
26961         (rs6000_expand_atomic_op): Likewise.
26963         * config/rs6000/sync.md (larx): Add new modes for power8.
26964         (stcx): Likewise.
26965         (AINT): New mode iterator to include TImode as well as normal
26966         integer modes on power8.
26967         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
26968         that VSX registers are not considered.  Use AINT mode iterator
26969         instead of INT1 to allow inclusion of quad word atomic operations
26970         on power8.
26971         (load_locked<mode>): Likewise.
26972         (store_conditional<mode>): Likewise.
26973         (atomic_compare_and_swap<mode>): Likewise.
26974         (atomic_exchange<mode>): Likewise.
26975         (atomic_nand<mode>): Likewise.
26976         (atomic_fetch_<fetchop_name><mode>): Likewise.
26977         (atomic_nand_fetch<mode>): Likewise.
26978         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
26979         each type.
26980         (ATOMIC): On power8, add QImode, HImode modes.
26981         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
26982         modes that promote to SImode.
26983         (load_lockedti): Convert TImode arguments to PTImode, so that we
26984         get a guaranteed even/odd register pair.
26985         (load_lockedpti): Likewise.
26986         (store_conditionalti): Likewise.
26987         (store_conditionalpti): Likewise.
26989         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
26990         atomic load/store instructions.
26991         (HSI): Likewise.
26993 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
26995         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
26996         loads.
26997         (insn_count): New attribute, with most cases extracted from...
26998         (length): ...here.  Redefine most cases in terms of insn_count.
26999         (single_insn): Delete.
27000         (can_delay): Use insn_count to check for single instructions.
27001         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
27002         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
27003         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
27004         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
27005         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
27006         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
27007         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
27008         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
27009         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
27010         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
27011         rather than "length".
27012         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
27013         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
27014         Use "insn_count" rather than "length".
27015         * config/mips/mips-dsp.md
27016         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
27017         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
27018         length attributes.
27020 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
27022         PR tree-optimization/57361
27023         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
27025 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
27027         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
27028         to split.
27029         (aarch64_simd_combine<mode>): New instruction expansion.
27030         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
27031         function prototype.
27032         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
27033         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
27035 2013-06-12  Jan Hubicka  <jh@suse.cz>
27037         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
27038         decl has when in streaming stage.
27039         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
27040         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
27042 2013-06-12  Roland Stigge  <stigge@antcom.de>
27044         PR target/57578
27045         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
27047 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
27049         PR tree-optimization/57537
27050         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
27051         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
27053 2013-06-12  Richard Biener  <rguenther@suse.de>
27055         * data-streamer.h (streamer_write_char_stream): CSE
27056         obs->current_pointer.
27057         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
27058         streamer_write_char_stream manually and optimize the resulting loop.
27059         (streamer_write_hwi_stream): Likewise.
27061 2013-06-12  Jan Hubicka  <jh@suse.cz>
27063         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
27064         * cgraph.h (varpool_create_empty_node): Declare.
27065         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
27066         duplicated nodes.
27067         * symtab.c (symtab_unregister_node): Be lax about missin entries
27068         in node hash.
27069         (symtab_get_node): Update comment.
27070         * varpool.c (varpool_create_empty_node): Break out from ...
27071         (varpool_node_for_decl): ... here.
27072         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
27074 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
27076         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
27077         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
27078         part.  Use straight-line flow at the end.
27079         <COMPONENT_REF>: Remove superfluous else.
27080         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
27082 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
27084         PR target/56564
27085         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
27086         target hook even for !TREE_PUBLIC decls.  If no resolution info
27087         is available, return false for common and external decls.
27089 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
27091         * config/rl78/constraints.md (U): New constraint.
27092         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
27093         valloc attribute.
27095 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
27097         PR target/57589
27098         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
27099         to allow returning address to AT_PLATFORM name.
27101 2013-06-11  Jan Hubicka  <jh@suse.cz>
27103         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
27104         * cgraph.h (symtab_node_base): Add weakref flag.
27105         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
27106         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
27107         (output_weakrefs): Use weakref flag.
27108         * fold-const.c (simple_operand_p): Handle WEAK.
27109         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
27110         * ipa.c (varpool_externally_visible_p): Drop weakref.
27111         (function_and_variable_visibility): Update comment; fix weakref
27112         sanity checks; do not clear DECL_WEAK on them.
27113         * lto-cgraph.c (lto_output_node): update.
27114         (lto_output_varpool_node): Update.
27115         (input_overwrite_node): Update.
27116         (input_node): Update.
27117         (input_varpool_node): Update.
27118         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
27119         (lto_symtab_merge_symbols): Add sanity check.
27120         (lto_symtab_prevailing_decl): Do not special case weakrefs.
27121         * passes.c (rest_of_decl_compilation): Set static flag, too.
27122         * symtab.c (dump_symtab_base): Dump weakref.
27123         (verify_symtab_base): Sanity check weakrefs.
27124         (symtab_make_decl_local): Remove duplicated code.
27125         (symtab_alias_ultimate_target): Simplify.
27126         * varpool.c (varpool_create_variable_alias): Set weakref flag.
27128 2013-06-11  Tom de Vries  <tom@codesourcery.com>
27130         * genautomata.c (gen_regexp_sequence): Handle els_num == -1.  Handle
27131         sequence_vect == NULL.
27133 2013-06-11  DJ Delorie  <dj@redhat.com>
27135         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
27136         (rl78_unwind_word_mode): New.
27138 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
27140         * final.c (debug_prefix_maps): Make static.
27142 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
27144         * function.c (initial_trampoline): Remove stray copy.
27146 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
27148         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
27150 2013-06-11  Martin Jambor  <mjambor@suse.cz>
27152         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
27153         within bounds at the beginning of the function.
27155 2013-06-11  Alan Modra  <amodra@gmail.com>
27157         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
27158         reporting.
27159         (get_named_section): Don't NULL !DECL_P decl.
27161 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
27163         * doc/invoke.texi (core-avx2): Document.
27164         (slm): Likewise.
27165         (atom): Updated with MOVBE.
27167 2013-06-11  Richard Biener  <rguenther@suse.de>
27169         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
27171 2013-06-11  Anton Blanchard  <anton@samba.org>
27173         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
27174         correct shift value in little-endian mode.
27176 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
27178         PR target/56564
27179         * varasm.c (get_variable_align): Move #endif to the right place.
27181 2013-06-10  Cary Coutant  <ccoutant@google.com>
27183         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
27184         for hash so that hash table traversal order is deterministic.
27186 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
27187             Pat Haugen  <pthaugen@us.ibm.com>
27188             Peter Bergner  <bergner@vnet.ibm.com>
27190         * config/rs6000/vector.md (GPR move splitter): Do not split moves
27191         of vectors in GPRS if they are direct moves or quad word load or
27192         store moves.
27194         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
27195         declaration.
27196         (direct_move_p): Likewise.
27197         (quad_load_store_p): Likewise.
27199         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
27200         classes into bins based on the physical register type.
27201         (reg_class_to_reg_type): Likewise.
27202         (IS_STD_REG_TYPE): Likewise.
27203         (IS_FP_VECT_REG_TYPE): Likewise.
27204         (reload_fpr_gpr): Arrays to determine what insn to use if we can
27205         use direct move instructions.
27206         (reload_gpr_vsx): Likewise.
27207         (reload_vsx_gpr): Likewise.
27208         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
27209         information that is a simplification of register classes.  Also
27210         precalculate direct move reload helpers.
27211         (direct_move_p): New function to return true if the operation can
27212         be done as a direct move instruciton.
27213         (quad_load_store_p): New function to return true if the operation
27214         is a quad memory operation.
27215         (rs6000_legitimize_address): If quad memory, only allow register
27216         indirect for TImode addresses.
27217         (rs6000_legitimate_address_p): Likewise.
27218         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
27219         (rs6000_reload_register_type): Likewise.
27220         (register_to_reg_type): Return register type.
27221         (rs6000_secondary_reload_simple_move): New helper function for
27222         secondary reload and secondary memory needed to identify anything
27223         that is a simple move, and does not need reloading.
27224         (rs6000_secondary_reload_direct_move): New helper function for
27225         secondary reload to identify cases that can be done with several
27226         instructions via the direct move instructions.
27227         (rs6000_secondary_reload_move): New helper function for secondary
27228         reload to identify moves between register types that can be done.
27229         (rs6000_secondary_reload): Add support for quad memory operations
27230         and for direct move.
27231         (rs6000_secondary_memory_needed): Likewise.
27232         (rs6000_debug_secondary_memory_needed): Change argument names.
27233         (rs6000_output_move_128bit): New function to return the move to
27234         use for 128-bit moves, including knowing about the various
27235         limitations of quad memory operations.
27237         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
27238         memory operations.  call rs6000_output_move_128bit for the actual
27239         instruciton(s) to generate.
27240         (vsx_movti_64bit): Likewise.
27242         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
27243         (UNSPEC_P8V_MTVSRWZ): Likewise.
27244         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
27245         (UNSPEC_P8V_MTVSRD): Likewise.
27246         (UNSPEC_P8V_XXPERMDI): Likewise.
27247         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
27248         (UNSPEC_FUSION_GPR): Likewise.
27249         (FMOVE128_GPR): New iterator for direct move.
27250         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
27251         (f32_sv): Likewise.
27252         (f32_dm): Likewise.
27253         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
27254         loads and direct move instructions.
27255         (zero_extendsidi2_lfiwzx): Likewise.
27256         (extendsidi2_lfiwax): Likewise.
27257         (extendsidi2_nocell): Likewise.
27258         (floatsi<mode>2_lfiwax): Likewise.
27259         (lfiwax): Likewise.
27260         (floatunssi<mode>2_lfiwzx): Likewise.
27261         (lfiwzx): Likewise.
27262         (fix_trunc<mode>_stfiwx): Likewise.
27263         (fixuns_trunc<mode>_stfiwx): Likewise.
27264         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
27265         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
27266         (parity<mode>2_cmpb): Set length/type attr.
27267         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
27268         for 'mr.' to fast_compare.
27269         (bpermd_<mode>): Change type attr to popcnt.
27270         (p8_fmrgow_<mode>): New insns for power8 direct move support.
27271         (p8_mtvsrwz_1): Likewise.
27272         (p8_mtvsrwz_2): Likewise.
27273         (reload_fpr_from_gpr<mode>): Likewise.
27274         (p8_mtvsrd_1): Likewise.
27275         (p8_mtvsrd_2): Likewise.
27276         (p8_xxpermdi_<mode>): Likewise.
27277         (reload_vsx_from_gpr<mode>): Likewise.
27278         (reload_vsx_from_gprsf): Likewise.
27279         (p8_mfvsrd_3_<mode>): LIkewise.
27280         (reload_gpr_from_vsx<mode>): Likewise.
27281         (reload_gpr_from_vsxsf): Likewise.
27282         (p8_mfvsrd_4_disf): Likewise.
27283         (multi-word GPR splits): Do not split direct moves or quad memory
27284         operations.
27286 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
27288         * tree-into-ssa.c (interesting_blocks): Make static.
27290 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
27292         PR target/56564
27293         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
27294         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
27295         Use DATA_ABI_ALIGNMENT for that case instead if defined.
27296         (get_variable_align): New function.
27297         (get_variable_section, emit_bss, emit_common,
27298         assemble_variable_contents, place_block_symbol): Use
27299         get_variable_align instead of DECL_ALIGN.
27300         (assemble_noswitch_variable): Add align argument, use it
27301         instead of DECL_ALIGN.
27302         (assemble_variable): Adjust caller.  Use get_variable_align
27303         instead of DECL_ALIGN.
27304         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
27305         caller.
27306         (DATA_ABI_ALIGNMENT): Define.
27307         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
27308         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
27309         opt is false, only return the psABI mandated alignment increase.
27310         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
27311         (DATA_ABI_ALIGNMENT): ... this.
27312         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
27313         (DATA_ABI_ALIGNMENT): ... this.
27314         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
27315         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
27316         (DATA_ABI_ALIGNMENT): ... this.
27317         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
27318         * doc/tm.texi: Regenerated.
27320 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
27322         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
27323         cmp_code to construct REG_EQUAL note.
27325 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
27327         PR target/57568
27328         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
27329         that operands[2] doesn't overlap with operands[0].
27331 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
27332             Jan Hubicka  <jh@suse.cz>
27334         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
27335         hack to mark symbols as used.
27337 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
27339         PR rtl-optimization/57559
27340         * lra-constraints.c (process_alt_operands): Don't discourage
27341         memory with known offset for offsetable memory constraint.
27342         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
27344 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
27346         * varasm.c (struct oc_local_state): Reorder fields.
27347         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
27348         and adjust accordingly.
27349         (output_constructor): Reorder initialization code and adjust call to
27350         output_constructor_bitfield.
27352 2013-06-07  Jan Hubicka  <jh@suse.cz>
27354         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
27356 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
27358         * tree-object-size.c (unknown): Make const.
27360 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27362         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
27363         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
27364         for last alternative in the cpu_facility attribute.
27366 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27368         PR target/56315
27369         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
27370         (xordi3): Change operand 2 constraint to arm_xordi_operand.
27371         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
27372         * config/arm/constraints.md (Dg): New constraint.
27373         * config/arm/neon.md (xordi3_neon): Remove.
27374         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
27375         * config/arm/predicates.md (arm_xordi_operand): New predicate.
27377 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27379         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
27380         Clean up alternatives.
27382 2013-06-07  Alan Modra  <amodra@gmail.com>
27384         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
27385         va_list_gpr_size.
27387 2013-06-07  Alan Modra  <amodra@gmail.com>
27389         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
27391 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27393         * config/arm/constraints.md (Df): New constraint.
27394         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
27395         Correct length attribute for last two alternatives.
27397 2013-06-07  Alan Modra  <amodra@gmail.com>
27399         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
27400         override user -mfp-in-toc.
27401         (offsettable_ok_by_alignment): Consider just the current access
27402         rather than the whole object, unless BLKmode.  Handle
27403         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
27404         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
27405         for -mcmodel=medium.
27406         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
27407         override user -mfp-in-toc or -msum-in-toc.  Default to
27408         -mno-fp-in-toc for -mcmodel=medium.
27410 2013-06-06  DJ Delorie  <dj@redhat.com>
27412         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
27413         TARGET_VALID_POINTER_MODE.
27415 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
27416             Pat Haugen  <pthaugen@us.ibm.com>
27417             Peter Bergner  <bergner@vnet.ibm.com>
27419         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27420         Document new power8 builtins.
27422         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
27423         condition code register, to allow 128-bit logical operations to be
27424         done in the VSX or GPR registers.
27425         (nor<mode>3): Use the canonical form for nor.
27426         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
27427         vclz*, and vpopcnt* vector instructions.
27428         (nand<mode>3): Likewise.
27429         (orc<mode>3): Likewise.
27430         (clz<mode>2): LIkewise.
27431         (popcount<mode>2): Likewise.
27433         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
27434         that only the GPRs are recognized.
27436         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27437         support for new power8 builtins.
27439         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
27440         builtin functions.
27441         (xscvdpspn): Likewise.
27442         (vclz): Likewise.
27443         (vclzb): Likewise.
27444         (vclzh): Likewise.
27445         (vclzw): Likewise.
27446         (vclzd): Likewise.
27447         (vpopcnt): Likewise.
27448         (vpopcntb): Likewise.
27449         (vpopcnth): Likewise.
27450         (vpopcntw): Likewise.
27451         (vpopcntd): Likewise.
27452         (vgbbd): Likewise.
27453         (vmrgew): Likewise.
27454         (vmrgow): Likewise.
27455         (eqv): Likewise.
27456         (eqv_v16qi3): Likewise.
27457         (eqv_v8hi3): Likewise.
27458         (eqv_v4si3): Likewise.
27459         (eqv_v2di3): Likewise.
27460         (eqv_v4sf3): Likewise.
27461         (eqv_v2df3): Likewise.
27462         (nand): Likewise.
27463         (nand_v16qi3): Likewise.
27464         (nand_v8hi3): Likewise.
27465         (nand_v4si3): Likewise.
27466         (nand_v2di3): Likewise.
27467         (nand_v4sf3): Likewise.
27468         (nand_v2df3): Likewise.
27469         (orc): Likewise.
27470         (orc_v16qi3): Likewise.
27471         (orc_v8hi3): Likewise.
27472         (orc_v4si3): Likewise.
27473         (orc_v2di3): Likewise.
27474         (orc_v4sf3): Likewise.
27475         (orc_v2df3): Likewise.
27477         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
27478         allow power8 quad mode in 64-bit.
27479         (rs6000_builtin_vectorized_function): Add support to vectorize
27480         ISA 2.07 count leading zeros, population count builtins.
27481         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
27482         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
27483         (builtin_function_type): Add vgbbd builtin function which takes an
27484         unsigned argument.
27485         (altivec_expand_vec_perm_const): Add support for new power8 merge
27486         instructions.
27488         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
27489         that does not include TImdoe for use with 32-bit.
27490         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
27491         instructions.
27492         (UNSPEC_VSX_CVDPSPN): Likewise.
27493         (vsx_xscvdpspn): Likewise.
27494         (vsx_xscvspdpn): Likewise.
27495         (vsx_xscvdpspn_scalar): Likewise.
27496         (vsx_xscvspdpn_directmove): Likewise.
27497         (vsx_and<mode>3): Split logical operations into 32-bit and
27498         64-bit. Add support to do logical operations on TImode as well as
27499         VSX vector types.  Allow logical operations to be done in either
27500         VSX registers or in general purpose registers in 64-bit mode.  Add
27501         splitters if GPRs were used. For AND, add clobber of CCmode to
27502         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
27503         encoding.
27504         (vsx_and<mode>3_32bit): Likewise.
27505         (vsx_and<mode>3_64bit): Likewise.
27506         (vsx_ior<mode>3): Likewise.
27507         (vsx_ior<mode>3_32bit): Likewise.
27508         (vsx_ior<mode>3_64bit): Likewise.
27509         (vsx_xor<mode>3): Likewise.
27510         (vsx_xor<mode>3_32bit): Likewise.
27511         (vsx_xor<mode>3_64bit): Likewise.
27512         (vsx_one_cmpl<mode>2): Likewise.
27513         (vsx_one_cmpl<mode>2_32bit): Likewise.
27514         (vsx_one_cmpl<mode>2_64bit): Likewise.
27515         (vsx_nor<mode>3): Likewise.
27516         (vsx_nor<mode>3_32bit): Likewise.
27517         (vsx_nor<mode>3_64bit): Likewise.
27518         (vsx_andc<mode>3): Likewise.
27519         (vsx_andc<mode>3_32bit): Likewise.
27520         (vsx_andc<mode>3_64bit): Likewise.
27521         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
27522         and xxlorc instructions.
27523         (vsx_eqv<mode>3_64bit): Likewise.
27524         (vsx_nand<mode>3_32bit): Likewise.
27525         (vsx_nand<mode>3_64bit): Likewise.
27526         (vsx_orc<mode>3_32bit): Likewise.
27527         (vsx_orc<mode>3_64bit): Likewise.
27529         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
27531         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
27532         instruction.
27533         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
27534         (p8_vmrgow): Likewise.
27535         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
27536         GPRs to be split under VSX.
27537         (p8v_clz<mode>2): Add power8 count leading zero support.
27538         (p8v_popcount<mode>2): Add power8 population count support.
27539         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
27540         support.
27542         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
27543         instruction.
27545         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
27546         builtin functions.
27547         (vec_nand): Likewise.
27548         (vec_vclz): Likewise.
27549         (vec_vclzb): Likewise.
27550         (vec_vclzd): Likewise.
27551         (vec_vclzh): Likewise.
27552         (vec_vclzw): Likewise.
27553         (vec_vgbbd): Likewise.
27554         (vec_vmrgew): Likewise.
27555         (vec_vmrgow): Likewise.
27556         (vec_vpopcnt): Likewise.
27557         (vec_vpopcntb): Likewise.
27558         (vec_vpopcntd): Likewise.
27559         (vec_vpopcnth): Likewise.
27560         (vec_vpopcntw): Likewise.
27562 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
27564         PR rtl-optimization/57468
27565         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
27566         spilled pseudos.
27568 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
27570         PR rtl-optimization/57459
27571         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
27572         type when setting live regs.
27574 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
27576         * config/s390/s390.opt (mlra): New option.
27577         * config/s390/s390.c (s390_decompose_address): Check displacement
27578         for all registers for LRA.
27579         (s390_secondary_reload): Don't used secondary reloads for LRA.
27580         (s390_lra_p): New function.
27581         (TARGET_LRA_P): Define.
27582         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
27583         of attribute cpu_facility to zarch for the last alternative.
27584         (*cmpmem_short): Ditto.
27586 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
27588         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
27589         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
27590         (arm_expand_prologue): Likewise.
27592 2013-06-06  Teresa Johnson  <tejohnson@google.com>
27594         PR c++/53743
27595         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
27596         as this is now done by redirect_edge_and_branch_force.
27597         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
27598         barriers, and fix interaction with splitting.
27599         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
27600         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
27601         reflect changes made in the routine.
27602         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
27603         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
27604         since this is called in cfglayout mode, and replace partition fixup
27605         with assert as that is now done by force_nonfallthru_and_redirect.
27606         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
27607         already be marked with region crossing note.
27608         (insert_section_boundary_note): Make non-static, gate on flag
27609         has_bb_partition, rewrite to also check for multiple partitions.
27610         (rest_of_handle_reorder_blocks): Remove call to
27611         insert_section_boundary_note, now done later during free_cfg.
27612         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
27613         * bb-reorder.h (insert_section_boundary_note): Declare.
27614         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
27615         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
27616         invoke insert_section_boundary_note.
27617         (try_redirect_by_replacing_jump): Remove unnecessary
27618         check for region crossing note.
27619         (fixup_partition_crossing): New function.
27620         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
27621         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
27622         in non-cfglayout mode.
27623         (force_nonfallthru_and_redirect): Fixup partition boundaries,
27624         remove old code that tried to do this. Emit barrier correctly
27625         when we are in cfglayout mode.
27626         (last_bb_in_partition): New function.
27627         (rtl_split_edge): Correctly fixup partition boundaries.
27628         (commit_one_edge_insertion): Remove old code that tried to
27629         fixup region crossing edge since this is now handled in
27630         split_block, and set up insertion point correctly since
27631         block may now end in a jump.
27632         (verify_hot_cold_block_grouping): Guard against checking when not in
27633         linearized RTL mode.
27634         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
27635         notes.
27636         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
27637         rtl_verify_flow_info, so not called in cfglayout mode.
27638         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
27639         (fixup_reorder_chain): Remove old code that attempted to fixup region
27640         crossing note as this is now handled in force_nonfallthru_and_redirect.
27641         (duplicate_insn_chain): Don't duplicate switch section notes.
27642         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
27643         note.
27644         * basic-block.h (emit_barrier_after_bb): Declare.
27646 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27648         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
27649         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
27650         arm_usatsihi): Adjust alternatives for arm_restrict_it.
27652 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27654         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
27655         where appropriate.
27656         * config/arm/ldmstm.md: Regenerate.
27658 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27660         * config/arm/sync.md (atomic_loaddi_1):
27661         Disable predication for arm_restrict_it.
27662         (arm_load_exclusive<mode>): Likewise.
27663         (arm_load_exclusivesi): Likewise.
27664         (arm_load_exclusivedi): Likewise.
27665         (arm_load_acquire_exclusive<mode>): Likewise.
27666         (arm_load_acquire_exclusivesi): Likewise.
27667         (arm_load_acquire_exclusivedi): Likewise.
27668         (arm_store_exclusive<mode>): Likewise.
27669         (arm_store_exclusive<mode>): Likewise.
27670         (arm_store_release_exclusivedi): Likewise.
27671         (arm_store_release_exclusive<mode>): Likewise.
27673 2013-06-06  Richard Biener  <rguenther@suse.de>
27675         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
27676         after LTO_null.
27677         (lto_tag_is_tree_code_p): Adjust.
27678         (lto_tag_is_gimple_code_p): Likewise.
27679         (lto_gimple_code_to_tag): Likewise.
27680         (lto_tag_to_gimple_code): Likewise.
27681         (lto_tree_code_to_tag): Likewise.
27682         (lto_tag_to_tree_code): Likewise.
27683         * data-streamer.h (streamer_write_hwi_in_range): Use
27684         uhwi streaming to stream the normalized range.
27685         (streamer_read_hwi_in_range): Likewise.
27687 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27689         * config/arm/arm.md (enabled_for_depr_it): New attribute.
27690         (predicable_short_it): Likewise.
27691         (predicated): Likewise.
27692         (enabled): Handle above.
27693         (define_cond_exec): Set predicated attribute to yes.
27695 2013-06-05  Mike Stump  <mikestump@comcast.net>
27697         * gdbinit.in (__FUNCTION__): Add.
27699 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
27701         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
27702         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
27704 2013-06-05  Jan Hubicka  <jh@suse.cz>
27706         * varasm.c (mark_decl_referenced): Revert the removal until targets
27707         are fixed.
27709 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
27711         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
27712         instead of mark_decl_referenced.
27714 2013-06-05  Jan Hubicka  <jh@suse.cz>
27716         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
27717         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
27718         and symtab_used_from_object_file_p.
27719         (cgraph_make_node_local_1): Clear forced_by_abi.
27720         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
27721         * cgraph.h (symtab_node_base): Add forced_by_abi.
27722         (decide_is_variable_needed): Remove.
27723         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
27724         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
27725         (decide_is_symbol_needed): ... this one; handle symbols in general;
27726         always analyze virtuals; honnor forced_by_abi.
27727         (cgraph_finalize_function): Update.
27728         (varpool_finalize_decl): Update.
27729         (symbol_defined_and_needed): Remove.
27730         (analyze_functions): Update.
27731         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
27732         output_refs, input_overwrite_node): Handle forced_by_abi.
27733         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
27734         (address_taken_from_non_vtable_p): ... this one.
27735         (comdat_can_be_unshared_p_1): New function.
27736         (cgraph_comdat_can_be_unshared_p): Rename to ...
27737         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
27738         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
27739         (function_and_variable_visibility): Clear forced_by_abi as needed.
27740         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
27741         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
27742         * symtab.c (dump_symtab_base): Dump forced_by_abi.
27743         * varpool.c (decide_is_variable_needed): Remove.
27745 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27747         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
27748         (arm_option_override): Override arm_restrict_it where appropriate.
27749         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
27750         * config/arm/arm.opt (mrestrict-it): New command-line option.
27751         * doc/invoke.texi: Document -mrestrict-it.
27753 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
27755         * tsan.c (tsan_atomic_table): Make const.
27757 2013-06-05  Richard Biener  <rguenther@suse.de>
27759         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
27760         index associated with the tree we are supposed to replace.
27761         * tree-streamer-out.c (pack_ts_base_value_fields): Output
27762         TREE_ASM_WRITTEN as zero for everything but SSA names.
27764 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
27766         * tree-ssa-structalias.c (call_stmt_vars): Make static.
27768 2013-06-04  Jan Hubicka  <jh@suse.cz>
27770         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
27771         (input_node, input_varpool_node): Handle correctly external same
27772         body aliases.
27773         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
27774         nodes at ltrans stage.
27776 2013-06-04  Jan Hubicka  <jh@suse.cz>
27778         * ipa-inline.c (update_caller_keys): Fix availability test.
27779         (update_callee_keys): Likewise.
27780         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
27781         to follow ELF standard.
27783 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
27785         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
27786         (mips64r5900el-*-elf*): New configurations.
27787         * config/mips/mips-cpus.def (r5900): New processor.
27788         * config/mips/mips-tables.opt: Regenerate.
27789         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
27790         (mips_issue_rate): Handle PROCESSOR_R5900.
27791         (mips_reorg_process_insns): Force reorder mode for the R5900.
27792         * config/mips/mips.h (TARGET_MIPS5900): Define.
27793         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
27794         TARGET_MIPS5900.
27795         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
27796         TARGET_MIPS5900.
27797         * config/mips/mips.md (processor): Add r5900.
27798         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
27800 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
27802         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
27803         into function to generate MOVI instruction.
27804         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
27805         (aarch64_preferred_simd_mode): Turn into wrapper.
27806         (aarch64_output_scalar_simd_mov_immediate): New function.
27807         * config/aarch64/aarch64-protos.h: Add prototype for above.
27809 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
27811         * config/aarch64/aarch64.c (simd_immediate_info): Remove
27812         element_char member.
27813         (sizetochar): Return signed char.
27814         (aarch64_simd_valid_immediate): Remove elchar and other
27815         unnecessary variables.
27816         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
27817         Calculate element_char as required.
27818         * config/aarch64/aarch64-protos.h: Update and move prototype
27819         for aarch64_output_simd_mov_immediate.
27820         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
27821         Update arguments.
27823 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
27825         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
27826         information completed by aarch64_simd_valid_immediate.
27827         (aarch64_legitimate_constant_p): Update arguments.
27828         (aarch64_simd_valid_immediate): Work with struct rather than many
27829         pointers.
27830         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
27831         (aarch64_simd_make_constant): Update arguments.
27832         (aarch64_output_simd_mov_immediate): Work with struct rather than
27833         many pointers.  Output immediate directly rather than as operand.
27834         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
27835         Update prototype.
27836         * config/aarch64/constraints.md (Dn): Update arguments.
27838 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
27840         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
27841         longer static.
27842         (aarch64_simd_immediate_valid_for_move): Remove.
27843         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
27844         (aarch64_simd_make_constant): Update call.
27845         (aarch64_output_simd_mov_immediate): Update call.
27846         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
27847         Add prototype.
27848         * config/aarch64/constraints.md (Dn): Update call.
27850 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
27852         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
27853         return type to bool for prototype.
27854         (aarch64_legitimate_constant_p): Check for true instead of not -1.
27855         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
27856         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
27858 2013-06-04  Catherine Moore  <clm@codesourcery.com>
27860         * config/mips/mips.opt (meva): New.
27861         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
27862         (ASM_SPEC): Handle -meva.
27863         * doc/invoke.texi (meva):  Document.
27865 2013-06-04  Alan Modra  <amodra@gmail.com>
27867         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
27868         constant output.
27870 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27872         * rtl.def: Add extra fourth optional field to define_cond_exec.
27873         * gensupport.c (process_one_cond_exec): Process attributes from
27874         define_cond_exec.
27875         * doc/md.texi: Document fourth field in define_cond_exec.
27877 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
27879         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
27880         out the processing order as in store_bit_field_1.
27882 2013-06-04  Jan Hubicka  <jh@suse.cz>
27884         PR middle-end/57500
27885         * cgraphunit.c (cgraph_process_same_body_aliases): Create
27886         non-VAR_DECL node if it does not exist yet.
27888 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
27890         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
27891         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
27892         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
27893         target_cpu_default setting.
27895 2013-06-03  Teresa Johnson  <tejohnson@google.com>
27897         * dumpfile.c (opt_info_switch_p): Change -fopt-info
27898         default to -fopt-info=optimized instead of all.
27899         * doc/invoke.texi: Ditto.
27900         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
27901         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
27902         (execute_vect_slp): Emit BB vectorization success under
27903         MSG_OPTIMIZED_LOCATIONS.
27904         * tree-vect-slp.c (vect_slp_transform_bb): Change
27905         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
27906         * tree-vect-loop.c (vect_transform_loop): Ditto.
27908 2013-06-03  Jason Merrill  <jason@redhat.com>
27910         PR c++/57415
27911         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27912         Use TARGET_EXPR for C++.
27914 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
27916         PR rtl-optimization/57268
27917         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
27918         if DEBUG_INSN_P (insn).
27920         Reapply
27921         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
27923         PR rtl-optimization/57268
27924         * sched-deps.c (sched_analyze_2): Flush dependence lists if
27925         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
27927 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
27929         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
27930         (ix86_avoid_lea_for_addr): Likewise.
27931         (exact_dependency_1): Likewise.
27932         (ix86_adjust_cost): Likewise.
27933         (swap_top_of_ready_list): Fix formatting and !reload_completed check
27934         removed.
27935         (do_reorder_for_imul): Fix typo, formatting and
27936         !reload_completed check removed.
27937         (ix86_sched_reorder): Fix typo and formatting.
27938         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
27939         list.
27941 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
27943         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
27945 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
27947         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
27948         <STRING_CST>: Likewise.
27949         <VECTOR_CST>: Likewise.
27951 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
27952             Mikael Morin  <mikael@gcc.gnu.org>
27954         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
27955         * config.in: Regenerated.
27956         * configure: Regenerated.
27958 2013-06-01  Jan Hubicka  <jh@suse.cz>
27960         PR middle-end/57366
27961         * cgraphunit.c (compile): When weakref is not supported,
27962         set up transparent aliases before final output pass.
27963         * varasm.c (assemble_alias): Do not try to do it here.
27965 2013-06-01  Jan Hubicka  <jh@suse.cz>
27967         PR middle-end/57467
27968         * passes.c (for_per_function): Skip unanalyzed functions.
27970 2013-06-01  Jan Hubicka  <jh@suse.cz>
27972         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
27973         (lto_symtab_merge_symbols_1): ... this one.
27974         (lto_symtab_merge_cgraph_nodes): Rename to ...
27975         (lto_symtab_merge_symbols): ... this one; simplify.
27976         * cgraph.c (same_body_aliases_done): Rename to ...
27977         (cpp_implicit_aliases_done): ... this one.
27978         (cgraph_create_function_alias): Update.
27979         (cgraph_same_body_alias): Update.
27980         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
27981         (verify_edge_corresponds_to_fndecl): Simplify.
27982         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
27983         (cgraph_node): Remove same_body_alias.
27984         (varpool_node): Remove alias_of and extra_name_alias.
27985         (same_body_aliases_done): Rename to ..
27986         (cpp_implicit_aliases_done): ... this one.
27987         (symtab_alias_ultimate_target): Add default parameter.
27988         (symtab_resolve_alias): New function.
27989         (fixup_same_cpp_alias_visibility): Declare.
27990         (cgraph_function_node): Add default parameter.
27991         (cgraph_node_asm_name): Likewise.
27992         (cgraph_function_or_thunk_node): Add default parameter; do
27993         not ICE when it is NULL.
27994         (varpool_variable_node): Likewise.
27995         * tree-emutls.c (create_emultls_var): Update.
27996         (ipa_lower_emutls): Update.
27997         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
27998         (cgraph_reset_node): Reset alias info.
27999         (cgraph_finalize_function): Update.
28000         (fixup_same_cpp_alias_visibility): Move to symtab.c.
28001         (analyze_function): Simplify.
28002         (cgraph_process_same_body_aliases): Simplify.
28003         (analyze_functions): Fixup same body aliases.
28004         (handle_alias_pairs): Simplify.
28005         (assemble_thunk): Update.
28006         (assemble_thunks_and_aliases): Update.
28007         (output_weakrefs): Rewrite.
28008         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
28009         (lto_output_varpool_node): Likewise.
28010         (compute_ltrans_boundary): Remve assert.
28011         (get_alias_symbol): New functoin.
28012         (input_node): Rewrite alias handling.
28013         (input_varpool_node): Likewise.
28014         * ipa-pure-const.c (propagate_pure_const): Fix formating.
28015         * ipa.c (process_references): Handle weakrefs correctly.
28016         (symtab_remove_unreachable_nodes): Likewise.
28017         * trans-mem.c (get_cg_data): Update.
28018         (ipa_tm_create_version_alias): Update.
28019         (ipa_tm_execute): Update.
28020         * symtab.c (dump_symtab_base): Dump aliases.
28021         (verify_symtab_base): Verify aliases.
28022         (symtab_node_availability): New function.
28023         (symtab_alias_ultimate_target): Simplify.
28024         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
28025         handle all the fixup cases.
28026         (symtab_resolve_alias): New function.
28027         * passes.c (ipa_write_summaries): Handle weakrefs.
28028         * varpool.c (varpool_analyze_node): Simplify.
28029         (assemble_aliases): Update.
28030         (varpool_create_variable_alias): Simplify.
28031         (varpool_extra_name_alias): Simplify.
28032         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
28033         (lto_symtab_merge_symbols): ... this one.
28035 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
28037         Revert
28038         PR rtl-optimization/57268
28039         * sched-deps.c (sched_analyze_2): Flush dependence lists if
28040         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
28042 2013-06-01  Tobias Burnus  <burnus@net-b.de>
28044         Partially reverted:
28045         2013-05-31  Tobias Burnus  <burnus@net-b.de>
28047         PR middle-end/57073
28048         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
28049         further up.
28051 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
28053         PR rtl-optimization/57268
28054         * sched-deps.c (sched_analyze_2): Flush dependence lists if
28055         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
28057 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
28059         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
28060         unordered comparison operators when -fno-trapping-math is in effect
28061         on the e500.
28062         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
28063         and implement unordered comparison operators properly on the e500.
28065 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
28067         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
28068         for constant scalar integers.
28069         (simplify_relational_operation_1): Likewise.
28071 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
28073         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
28074         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
28075         Fix comment.
28077 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
28078             Igor Zamyatin  <igor.zamyatin@intel.com>
28080         Silvermont (SLM) architecture performance tuning.
28081         * config/i386/i386.h (enum ix86_tune_indices): Add
28082         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
28083         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
28085         * config/i386/i386.c (initial_ix86_tune_features)
28086         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
28087         (ix86_lea_outperforms): Handle Silvermont tuning.
28088         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
28089         call.
28090         (ix86_use_lea_for_mov): Likewise.
28091         (ix86_avoid_lea_for_addr): Likewise.
28092         (ix86_lea_for_add_ok): Likewise.
28093         (exact_dependency_1): New function.
28094         (exact_store_load_dependency): Likewise.
28095         (ix86_adjust_cost): Handle Silvermont tuning.
28096         (do_reoder_for_imul): Likewise.
28097         (swap_top_of_ready_list): New function.
28098         (ix86_sched_reorder): Changed to handle Silvermont tuning.
28100         * config/i386/i386.md (peepholes that split memory operand in fp
28101         converts): New.
28103 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
28105         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
28106         Remove un-necessary braces.
28108 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
28110         * config/aarch64/aarch64.c (aarch64_classify_symbol):
28111         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
28113 2013-05-31  Tobias Burnus  <burnus@net-b.de>
28115         PR middle-end/57073
28116         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
28118 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28120         PR target/56315
28121         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
28122         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
28123         * config/arm/neon.md (iordi3_neon): Remove.
28124         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
28125         * config/arm/predicates.md (imm_for_neon_logic_operand):
28126         Move to earlier in the file.
28127         (neon_logic_op2): Likewise.
28128         (arm_iordi_operand_neon): New predicate.
28130 2013-05-31  Richard Biener  <rguenther@suse.de>
28132         PR tree-optimization/57478
28133         PR tree-optimization/57453
28134         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
28135         are life as well.
28137 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
28139         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
28140         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
28142 2013-05-30  Tobias Burnus  <burnus@net-b.de>
28143             Thomas Koenig  <tkoenig@gcc.gnu.org>
28145         PR middle-end/57073
28146         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
28147         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
28149 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
28151         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
28153 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
28155         * target.def (register_usage_leveling_p): New hook.
28156         * targhooks.c (default_register_usage_leveling_p): New.
28157         * targhooks.h (default_register_usage_leveling_p): New prototype.
28158         * lra-assigns.c (register_usage_leveling_p): Use the hook.
28159         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
28160         * doc/tm.texi: Update.
28161         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
28163 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
28165         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
28166         (*insv_reg<mode>): New define_insn.
28168 2013-05-30  Joern Rennecke  <joern.rennecke@embecosm.com>
28170         PR rtl-optimization/57439
28171         * postreload.c (move2add_valid_value_p): Check that we have
28172         a zero subreg_regno_offset when accessing the register in
28173         the requested mode.
28175 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
28176             Igor Zamyatin  <igor.zamyatin@intel.com>
28178         Silvermont (SLM) architecture pipeline model, tuning and
28179         insn selection.
28180         * config.gcc: Add slm config options and target.
28182         * config/i386/slm.md: New.
28184         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
28186         * config/i386/i386-c.c (ix86_target_macros_internal):  New case
28187         PROCESSOR_SLM.
28188         (ix86_target_macros_internal): Likewise.
28190         * config/i386/i386.c (slm_cost): New cost.
28191         (m_SLM): New macro flag.
28192         (initial_ix86_tune_features): Set m_SLM.
28193         (x86_accumulate_outgoing_args): Likewise.
28194         (x86_arch_always_fancy_math_387): Likewise.
28195         (processor_target_table): Add slm cost.
28196         (cpu_names): Add slm cpu name.
28197         (x86_option_override_internal): Set SLM ISA.
28198         (ix86_issue_rate): New case PROCESSOR_SLM.
28199         (ia32_multipass_dfa_lookahead): Likewise.
28200         (fold_builtin_cpu): Add slm.
28202         * config/i386/i386.h (TARGET_SLM): New target macro.
28203         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
28204         (processor_type): Add PROCESSOR_SLM.
28206         * config/i386/i386.md (cpu): Add new value "slm".
28207         (slm.md): Include slm.md.
28209 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
28210             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
28212         * config/arm/arm-protos.h: Add and update function protos.
28213         * config/arm/arm.c (use_simple_return_p): New added.
28214         (thumb2_expand_return): Check simple_return flag.
28215         * config/arm/arm.md: Add simple_return and conditional simple_return.
28216         * config/arm/iterators.md: Add iterator for return and simple_return.
28218 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
28220         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
28221         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
28222         (arm_emit_vfp_multi_reg_pop): Likewise.
28223         (thumb2_emit_ldrd_pop): Likewise.
28224         (arm_expand_epilogue): Add misc REG_CFA notes.
28225         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
28227 2013-05-29  Lawrence Crowl  <crowl@google.com>
28229         * config/arm/t-arm: Update for below.
28231         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
28232         Change type to hash_table.  Update dependent calls and types.
28234         * config/i386/t-cygming: Update for below.
28236         * config/i386/t-interix: Update for below.
28238         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
28239         Change type to hash_table.  Update dependent calls and types.
28240         (i386_find_on_wrapper_list::wrappers): Likewise.
28242         * config/ia64/t-ia64: Update for below.
28244         * config/ia64/ia64.c (bundle_state_table):
28245         Change type to hash_table.  Update dependent calls and types.
28247         * config/mips/mips.c (mips_reorg_process_insns::htab):
28248         Change type to hash_table.  Update dependent calls and types.
28250         * config/sol2.c (solaris_comdat_htab):
28251         Change type to hash_table.  Update dependent calls and types.
28253         * config/t-sol2: Update for above.
28255 2013-05-29  Teresa Johnson  <tejohnson@google.com>
28257         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
28258         functions are not yet marked as defined.
28260 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
28261             Pat Haugen  <pthaugen@us.ibm.com>
28262             Peter Bergner  <bergner@vnet.ibm.com>
28264         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
28265         instructions.
28266         (VEC_A): Likewise.
28267         (VEC_C): Likewise.
28268         (vrotl<mode>3): Likewise.
28269         (vashl<mode>3): Likewise.
28270         (vlshr<mode>3): Likewise.
28271         (vashr<mode>3): Likewise.
28273         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
28274         support for power8 V2DI builtins.
28276         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
28277         power8 V2DI builtins.
28278         (vupkhsw): Likewise.
28279         (vupklsw): Likewise.
28280         (vaddudm): Likewise.
28281         (vminsd): Likewise.
28282         (vmaxsd): Likewise.
28283         (vminud): Likewise.
28284         (vmaxud): Likewise.
28285         (vpkudum): Likewise.
28286         (vpksdss): Likewise.
28287         (vpkudus): Likewise.
28288         (vpksdus): Likewise.
28289         (vrld): Likewise.
28290         (vsld): Likewise.
28291         (vsrd): Likewise.
28292         (vsrad): Likewise.
28293         (vsubudm): Likewise.
28294         (vcmpequd): Likewise.
28295         (vcmpgtsd): Likewise.
28296         (vcmpgtud): Likewise.
28297         (vcmpequd_p): Likewise.
28298         (vcmpgtsd_p): Likewise.
28299         (vcmpgtud_p): Likewise.
28300         (vupkhsw): Likewise.
28301         (vupklsw): Likewise.
28302         (vaddudm): Likewise.
28303         (vmaxsd): Likewise.
28304         (vmaxud): Likewise.
28305         (vminsd): Likewise.
28306         (vminud): Likewise.
28307         (vpksdss): Likewise.
28308         (vpksdus): Likewise.
28309         (vpkudum): Likewise.
28310         (vpkudus): Likewise.
28311         (vrld): Likewise.
28312         (vsld): Likewise.
28313         (vsrad): Likewise.
28314         (vsrd): Likewise.
28315         (vsubudm): Likewise.
28317         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
28318         support for power8 V2DI instructions.
28320         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
28321         power8 V2DI instructions.  Combine pack and unpack insns to use an
28322         iterator for each mode.  Check whether a particular mode supports
28323         Altivec instructions instead of just checking TARGET_ALTIVEC.
28324         (UNSPEC_VPKUWUM): Likewise.
28325         (UNSPEC_VPKSHSS): Likewise.
28326         (UNSPEC_VPKSWSS): Likewise.
28327         (UNSPEC_VPKUHUS): Likewise.
28328         (UNSPEC_VPKSHUS): Likewise.
28329         (UNSPEC_VPKUWUS): Likewise.
28330         (UNSPEC_VPKSWUS): Likewise.
28331         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
28332         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
28333         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
28334         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
28335         (UNSPEC_VUPKHSB): Likewise.
28336         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
28337         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
28338         (UNSPEC_VUPKHSH): Likewise.
28339         (UNSPEC_VUPKLSB): Likewise.
28340         (UNSPEC_VUPKLSH): Likewise.
28341         (VI2): Likewise.
28342         (VI_char): Likewise.
28343         (VI_scalar): Likewise.
28344         (VI_unit): Likewise.
28345         (VP): Likewise.
28346         (VP_small): Likewise.
28347         (VP_small_lc): Likewise.
28348         (VU_char): Likewise.
28349         (add<mode>3): Likewise.
28350         (altivec_vaddcuw): Likewise.
28351         (altivec_vaddu<VI_char>s): Likewise.
28352         (altivec_vadds<VI_char>s): Likewise.
28353         (sub<mode>3): Likewise.
28354         (altivec_vsubcuw): Likewise.
28355         (altivec_vsubu<VI_char>s): Likewise.
28356         (altivec_vsubs<VI_char>s): Likewise.
28357         (altivec_vavgs<VI_char>): Likewise.
28358         (altivec_vcmpbfp): Likewise.
28359         (altivec_eq<mode>): Likewise.
28360         (altivec_gt<mode>): Likewise.
28361         (altivec_gtu<mode>): Likewise.
28362         (umax<mode>3): Likewise.
28363         (smax<mode>3): Likewise.
28364         (umin<mode>3): Likewise.
28365         (smin<mode>3): Likewise.
28366         (altivec_vpkuhum): Likewise.
28367         (altivec_vpkuwum): Likewise.
28368         (altivec_vpkshss): Likewise.
28369         (altivec_vpkswss): Likewise.
28370         (altivec_vpkuhus): Likewise.
28371         (altivec_vpkshus): Likewise.
28372         (altivec_vpkuwus): Likewise.
28373         (altivec_vpkswus): Likewise.
28374         (altivec_vpks<VI_char>ss): Likewise.
28375         (altivec_vpks<VI_char>us): Likewise.
28376         (altivec_vpku<VI_char>us): Likewise.
28377         (altivec_vpku<VI_char>um): Likewise.
28378         (altivec_vrl<VI_char>): Likewise.
28379         (altivec_vsl<VI_char>): Likewise.
28380         (altivec_vsr<VI_char>): Likewise.
28381         (altivec_vsra<VI_char>): Likewise.
28382         (altivec_vsldoi_<mode>): Likewise.
28383         (altivec_vupkhsb): Likewise.
28384         (altivec_vupkhs<VU_char>): Likewise.
28385         (altivec_vupkls<VU_char>): Likewise.
28386         (altivec_vupkhsh): Likewise.
28387         (altivec_vupklsb): Likewise.
28388         (altivec_vupklsh): Likewise.
28389         (altivec_vcmpequ<VI_char>_p): Likewise.
28390         (altivec_vcmpgts<VI_char>_p): Likewise.
28391         (altivec_vcmpgtu<VI_char>_p): Likewise.
28392         (abs<mode>2): Likewise.
28393         (vec_unpacks_hi_v16qi): Likewise.
28394         (vec_unpacks_hi_v8hi): Likewise.
28395         (vec_unpacks_lo_v16qi): Likewise.
28396         (vec_unpacks_hi_<VP_small_lc>): Likewise.
28397         (vec_unpacks_lo_v8hi): Likewise.
28398         (vec_unpacks_lo_<VP_small_lc>): Likewise.
28399         (vec_pack_trunc_v8h): Likewise.
28400         (vec_pack_trunc_v4si): Likewise.
28401         (vec_pack_trunc_<mode>): Likewise.
28403         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
28404         V2DI builtins.
28405         (vec_vmaxsd): Likewise.
28406         (vec_vmaxud): Likewise.
28407         (vec_vminsd): Likewise.
28408         (vec_vminud): Likewise.
28409         (vec_vpksdss): Likewise.
28410         (vec_vpksdus): Likewise.
28411         (vec_vpkudum): Likewise.
28412         (vec_vpkudus): Likewise.
28413         (vec_vrld): Likewise.
28414         (vec_vsld): Likewise.
28415         (vec_vsrad): Likewise.
28416         (vec_vsrd): Likewise.
28417         (vec_vsubudm): Likewise.
28418         (vec_vupkhsw): Likewise.
28419         (vec_vupklsw): Likewise.
28421 2013-05-29  Jan Hubicka  <jh@suse.cz>
28423         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
28424         flags; reorder rest of fields in more consistent way.
28425         (varpool_node): Remove analyzed, finalized and alias.
28426         (cgraph_ndoe): Likewise.
28427         (symtab_alias_ultimate_target): New function.
28428         (cgraph_function_node): Move offline.
28429         (cgraph_reset_node): Declare.
28430         (cgraph_comdat_can_be_unshared_p): Remove.
28431         (varpool_remove_initializer): Declare.
28432         (varpool_first_defined_variable, varpool_next_defined_variable
28433         cgraph_first_defined_function, cgraph_next_defined_function): Update.
28434         (cgraph_function_with_gimple_body_p): Update.
28435         (varpool_all_refs_explicit_p): Update.
28436         (symtab_alias_target): New function.
28437         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
28438         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
28439         (cgraph_function_or_thunk_node): Simplify using
28440         symtab_alias_ultimate_target.
28441         (varpool_variable_node): Likewise.
28442         * cgraph.c (cgraph_create_function_alias): Update.
28443         (cgraph_add_thunk): Update.
28444         (cgraph_remove_node): Update.
28445         (dump_cgraph_node): Do not dump removed flags.
28446         (cgraph_function_body_availability): Update.
28447         (cgraph_propagate_frequency): Update.
28448         (verify_cgraph_node): Check sanity of local flag.
28449         (cgraph_function_node): Move here from cgraph.h; revamp for
28450         cgraph_function_or_thunk_node.
28451         * lto-symtab.c (lto_varpool_replace_node): Update.
28452         (lto_symtab_resolve_can_prevail_p): Update.
28453         (lto_symtab_merge_cgraph_nodes): Update.
28454         * ipa-cp.c (determine_versionability, initialize_node_lattices,
28455         propagate_constants_accross_call, devirtualization_time_bonus,
28456         ipcp_propagate_stage): Update.
28457         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
28458         * ipa-inline-transform.c (clone_inlined_nodes,
28459         preserve_function_body_p): Update.
28460         * ipa-reference.c (propagate): Update.
28461         (write_node_summary_p): Update.
28462         * toplev.c (wrapup_global_declaration_2): Update.
28463         * cgraphunit.c (cgraph_analyze_function): Rename to ...
28464         (analyze_function) ... this one.
28465         (cgraph_process_new_functions): Update.
28466         (cgraph_reset_node): Export.
28467         (cgraph_finalize_function): Update.
28468         (cgraph_add_new_function): Update.
28469         (process_function_and_variable_attributes): Update.
28470         (varpool_finalize_decl): Update.
28471         (symbol_finalized): Remove.
28472         (symbol_finalized_and_needed): Rename to ...
28473         (symbol_defined_and_needed): ... update.
28474         (cgraph_analyze_functions): Update.
28475         (handle_alias_pairs): Update.
28476         (mark_functions_to_output): Update.
28477         (assemble_thunk): Update.
28478         (output_in_order): Update.
28479         (output_weakrefs): Update.
28480         (finalize_compilation_unit): Update.
28481         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
28482         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
28483         input_node, input_varpool_node): Update.
28484         * dbxout.c (dbxout_expand_expr): Update.
28485         * cgraphclones.c (cgraph_clone_node): Update.
28486         (cgraph_copy_node_for_versioning): Update.
28487         (cgraph_materialize_clone): Update.
28488         (cgraph_materialize_all_clones): Update.
28489         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
28490         propagate_pure_const, propagate_nothrow): Update.
28491         * lto-streamer-out.c (lto_output, write_symbol): Update.
28492         * ipa-utils.c (ipa_reverse_postorder): Update.
28493         * ipa-inline.c (can_inline_edge_p): Update.
28494         (update_caller_keys, ipa_inline): Update.
28495         * dwarf2out.c (reference_to_unused,
28496         premark_types_used_by_global_vars_helper): Update.
28497         * tree-eh.c (tree_could_trap_p): Update.
28498         * ipa-split.c (consider_split, execute_split_functions): Update.
28499         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
28500         has_addr_references_p): Update; move ahead in file for better
28501         readability.
28502         (process_references): Simplify.
28503         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
28504         bodies are removed.
28505         (cgraph_comdat_can_be_unshared_p): Make static.
28506         (cgraph_externally_visible_p): Update.
28507         (varpool_externally_visible_p): Update.
28508         (function_and_variable_visibility): Update.
28509         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
28510         ipa_tm_mark_force_output_node): Update.
28511         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
28512         estimate_edge_devirt_benefit, inline_generate_summary,
28513         inline_write_summary): Update.
28514         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
28515         * ipa-prop.c (ipa_compute_jump_functions): Update.
28516         (ipa_print_node_params, ipa_prop_read_section,
28517         ipa_update_after_lto_read, read_replacements_section): Update.
28518         * varasm.c (mark_decl_referenced): Update.
28519         (assemble_alias, dump_tm_clone_pairs): Update.
28520         * tree-inline.c (copy_bb): Update.
28521         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
28522         Update.
28523         * symtab.c (dump_symtab_base): Print new flags.
28524         (verify_symtab_base): Verify new flags.
28525         (symtab_alias_ultimate_target): New function.
28526         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
28527         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
28528         Update.
28529         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
28530         Update.
28531         * i386.c (ix86_get_function_versions_dispatcher,
28532         ix86_generate_version_dispatcher_body): Update.
28533         (fold_builtin_cpu): Use varpool_add_new_variable.
28534         * varpool.c (varpool_remove_initializer): Break out from ...
28535         (varpool_remove_node): ... this one.
28536         (dump_varpool_node, varpool_node_for_asm,
28537         cgraph_variable_initializer_availability, varpool_analyze_node,
28538         varpool_assemble_decl, varpool_remove_unreferenced_decls,
28539         varpool_finalize_named_section_flags, varpool_create_variable_alias):
28540         Update.
28542 2013-05-29  Jan Hubicka  <jh@suse.cz>
28544         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
28546 2013-05-29  Easwaran Raman  <eraman@google.com>
28548         PR tree-optimization/57442
28549         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
28550         when control exits the main loop.
28552 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
28554         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
28555         and RX600.
28556         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
28557         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
28558         * rx/t-rx: Add rx100 under multi library matches option for nofpu
28559         option.
28561 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28563         PR tree-optimization/57441
28564         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
28565         Don't limit size of incr_vec to number of candidates.
28567 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
28569         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
28570         and mips16 directories.
28571         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
28572         (MULTILIB_DIRNAMES): Ditto.
28573         (MULTILIB_EXCEPTIONS): Add new exceptions.
28574         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
28575         (MULTILIB_DIRNAMES): Ditto.
28576         (MULTILIB_EXCEPTIONS): Add new exceptions.
28578 2012-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
28579             Marcus Shawcroft  <marcus.shawcroft@arm.com>
28581         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
28582         SYMBOL_TINY_ABSOLUTE.
28583         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
28584         SYMBOL_TINY_ABSOLUTE.
28585         (aarch64_expand_mov_immediate): Likewise.
28586         (aarch64_classify_symbol): Likewise.
28587         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
28588         Permit SYMBOL_TINY_ABSOLUTE.
28589         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
28591 2013-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
28592             Marcus Shawcroft  <marcus.shawcroft@arm.com>
28594         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
28595         Refactor if/switch.  Replace gcc_assert with if.
28597 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
28599         * config/i386/i386.c (initial_ix86_tune_features): Enable
28600         FP Reassociation for AMD bdver1 and bdver2.
28602 2013-05-29  Martin Jambor  <mjambor@suse.cz>
28604         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
28605         and IMAGPART_EXPR do not occur within other handled_components.
28607 2013-05-29  Richard Biener  <rguenther@suse.de>
28609         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
28610         access on whether the use is in the BB we currently try to
28611         vectorize.
28612         (vect_bb_vectorization_profitable_p): Pass the BB we currently
28613         vectorize to vect_bb_slp_scalar_cost.
28615 2013-05-29  Richard Biener  <rguenther@suse.de>
28617         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
28618         computing scalar cost offsetted by stmts that are kept live
28619         by scalar uses.
28620         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
28621         for computation of scalar cost.
28623 2013-05-28  Steve Ellcey  <sellcey@mips.com>
28625         * config/mips/mips-cpus.def (mips32r2): Change processor type.
28627 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
28629         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
28630         array notation built-in reduction functions.
28631         * doc/passes.texi (Passes): Added documentation about changes done
28632         for Cilk Plus.
28633         * doc/invoke.texi (C Dialect Options): Added documentation about
28634         the -fcilkplus flag.
28635         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
28636         (BUILTINS_DEF): Depend on cilkplus.def.
28637         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
28638         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
28639         * cilkplus.def: New file.
28641 2013-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
28643         PR rtl-optimization/57439
28644         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
28646 2013-05-28  Easwaran Raman  <eraman@google.com>
28648         PR tree-optimization/57337
28649         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
28650         (find_insert_point): Correctly identify the insertion point
28651         when two statements with the same UID is compared.
28653 2013-05-28  Richard Biener  <rguenther@suse.de>
28655         PR tree-optimization/56787
28656         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
28657         from the list of data references.
28658         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
28659         clobbers.
28660         (vect_analyze_loop_operations): Likewise.
28661         (vect_transform_loop): Remove clobbers.
28663 2013-05-28  Martin Jambor  <mjambor@suse.cz>
28665         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
28666         and REALPART_EXPRs have scalar type.
28668 2013-05-28  Richard Biener  <rguenther@suse.de>
28670         PR tree-optimization/57411
28671         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
28672         virtual operands.
28673         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
28674         virtual operand propagation.
28676 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
28678         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
28679         destination register for bmasksi_vis.
28680         (vector_init_bshuffle): Likewise.
28681         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
28683 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
28685         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
28686         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
28687         mode if the instruction isn't available in the original mode.
28688         * config/sparc/sparc.opt (mfix-ut699): New option.
28689         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
28690         (divdf3): Turn into expander.
28691         (divdf3_nofix): New insn.
28692         (divdf3_fix): Likewise.
28693         (divsf3): Disable if -mfix-ut699.
28694         (sqrtdf2): Turn into expander.
28695         (sqrtdf2_nofix): New insn.
28696         (sqrtdf2_fix): Likewise.
28697         (sqrtsf2): Disable if -mfix-ut699.
28699 2013-05-27  Richard Biener  <rguenther@suse.de>
28701         PR middle-end/57412
28702         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
28703         block for the new loop.
28705 2013-05-27  Richard Biener  <rguenther@suse.de>
28707         PR tree-optimization/57343
28708         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
28709         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
28710         (number_of_iterations_cond): Do not build the folded tree.
28712 2013-05-27  Richard Biener  <rguenther@suse.de>
28714         Revert
28715         PR middle-end/57381
28716         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
28717         OEP_CONSTANT_ADDRESS_OF retained.
28719         PR tree-optimization/57417
28720         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
28721         for unchanged base.
28722         (set_ssa_val_to): Compare addresses using
28723         get_addr_base_and_unit_offset.
28725 2013-05-27  Joern Rennecke  <joern.rennecke@embecosm.com>
28727         PR rtl-optimization/56833
28728         * postreload.c (move2add_record_mode): New function.
28729         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
28730         (move2add_use_add2_insn): Use move2add_record_sym_value.
28731         (move2add_use_add3_insn): Likewise.
28732         (reload_cse_move2add): Use move2add_valid_value_p and
28733         move2add_record_mode.  Invalidate call-clobbered and REG_INC
28734         affected regs by setting reg_mode to VOIDmode.
28735         (move2add_note_store): Don't pretend the inside of a SUBREG is
28736         the actual destination.  Invalidate single/leading registers by
28737         setting reg_mode to VOIDmode.
28738         Use move2add_record_sym_value, move2add_valid_value_p and
28739         move2add_record_mode.
28741 2013-05-27  Richard Biener  <rguenther@suse.de>
28743         PR tree-optimization/57396
28744         * tree-affine.c (double_int_constant_multiple_p): Properly
28745         return false for val == 0 and div != 0.
28747 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
28749         * config/mips/mips.h: Use #elif in preprocessor conditions.
28751 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
28753         PR target/53916
28754         * config/mips/constraints.md (kl): New constraint.
28755         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
28756         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
28757         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
28758         from LO for MIPS16.
28759         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
28761 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
28763         PR target/55777
28764         * config/mips/mips.c (mips_can_inline_p): New function.
28765         (TARGET_CAN_INLINE_P): Define.
28767 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
28769         * sched-int.h (ds_t, dw_t): Make unsigned int.
28770         Fix documentation that describes how all the ds_t bits are used.
28771         Reserve the last bit for delayed-branch scheduling.
28772         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
28773         (BITS_PER_DEP_WEAK): Fix definition and documentation.
28774         (gen_dep_weak_1): Remove prototype.
28775         * sched-deps.c (get_dep_weak_1): Make static.
28776         * target.def (speculate_insn, needs_block_p, gen_spec_check,
28777         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
28778         * doc/tm.texi: Regenerate.
28779         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
28781 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
28783         PR debug/56950
28784         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
28786 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
28787             Sandra Loosemore  <sandra@codesourcery.com>
28789         * config.gcc (powerpc-*): Allow native for with-cpu.
28791 2013-05-24  Jeff Law  <law@redhat.com>
28793         PR tree-optimization/57124
28794         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
28795         conversion feeding a condition if the range has an overflow
28796         if -fstrict-overflow.  Add warnings for when we do make the
28797         transformation.
28799 2013-05-24  Dehao Chen  <dehao@google.com>
28801         * tree-cfg.c (locus_discrim_map): Fix the typo.
28802         (locus_discrim_hasher): Likewise.
28803         (locus_discrim_hasher::hash): Likewise.
28804         (locus_discrim_hasher::equal): Likewise.
28806 2013-05-24  Martin Jambor  <mjambor@suse.cz>
28808         PR tree-optimization/57294
28809         * cgraph.h (ipa_record_stmt_references): Declare.
28810         * cgraphbuild.c (ipa_record_stmt_references): New function.
28811         (build_cgraph_edges): Use ipa_record_stmt_references.
28812         (rebuild_cgraph_edges): Likewise.
28813         (cgraph_rebuild_references): Likewise.
28814         * ipa-prop.c (ipa_modify_call_arguments): Discard references
28815         associated with the old statement and build references from the
28816         newly built statements.
28817         * ipa-ref.c (ipa_remove_stmt_references): New function.
28818         * ipa-ref.h (ipa_remove_stmt_references): Declare.
28820 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
28822         * lra-constraints.c (emit_spill_move): Use smaller mode for
28823         mem-mem moves.
28824         (check_and_process_move): Consider mem-reg moves for secondary
28825         too.
28826         (curr_insn_transform): Don't lose insns emitted before for
28827         secondary memory moves.
28828         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
28829         reg set up in the current insn.
28831 2013-05-24  Dehao Chen  <dehao@google.com>
28833         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
28834         hash function.
28835         (locus_descrim_hasher::equal): Likewise.
28836         (build_gimple_cfg): New discriminator assignment algorithm.
28837         (make_edges): Likewise.
28838         (next_discriminator_for_locus): Likewise.
28839         (same_line_p): Likewise.
28840         (assign_discriminators): Likewise.
28841         (make_cond_expr_edges): Likewise.
28842         (make_gimple_switch_edges): Likewise.
28843         (make_goto_expr_edges): Likewise.
28844         (make_gimple_asm_edges): Likewise.
28846 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
28848         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
28849         X format specifier to only display bottom 16 bits.
28850         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
28851         immediate to match for operand 2, since it will be masked.
28853 2013-05-24  Richard Biener  <rguenther@suse.de>
28855         PR tree-optimization/57287
28856         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
28857         all SSA names that occur in abnormal PHIs.
28859 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
28861         PR tree-ssa/57385
28862         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
28863         that index is not negative.
28865 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
28867         PR rtl-optimization/55177
28868         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
28869         (simplify_byte_swapping_operation): New.
28870         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
28871         (simplify_relational_operation_1): Deal with BSWAP.
28873 2013-05-23  Richard Henderson  <rth@redhat.com>
28875         PR target/56742
28876         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
28877         (ix86_reorg): Call it.
28879 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
28881         PR target/57379
28882         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
28883         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
28884         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
28886 2013-05-23  Christian Bruel  <christian.bruel@st.com>
28888         PR debug/57351
28889         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
28891 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
28892             Marcus Shawcroft  <marcus.shawcroft@arm.com>
28894         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
28895         * config/aarch64/constraints.md (Usa): Remove.
28896         * doc/md.texi (AArch64 Usa): Remove.
28898 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
28899             Marcus Shawcroft  <marcus.shawcroft@arm.com>
28901         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
28902         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
28903         * config/aarch64/predicates.md (aarch64_const_address): Remove.
28904         (aarch64_mov_operand): Use aarch64_mov_operand_p.
28906 2013-05-23  Vidya Praveen  <vidyapraveen@arm.com>
28908         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
28909         instruction (AdvSIMD).
28910         * config/aarch64/aarch64-builtins.c
28911         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
28912         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
28914 2013-05-23  Martin Jambor  <mjambor@suse.cz>
28916         PR middle-end/57347
28917         * tree.h (contains_bitfld_component_ref_p): Declare.
28918         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
28919         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
28920         caller.
28921         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
28922         not access a bit-field.  Assert all final offsets are byte-aligned.
28924 2013-05-23  Richard Biener  <rguenther@suse.de>
28926         PR tree-optimization/57380
28927         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
28928         least one invariant or re-used load.
28929         * passes.c (init_optimization_passes): Move pass_phiprop before
28930         pass_forwprop.
28932 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
28934         * config/aarch64/aarch64-simd.md
28935         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
28937 2013-05-23  Richard Biener  <rguenther@suse.de>
28939         PR middle-end/57381
28940         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
28941         OEP_CONSTANT_ADDRESS_OF retained.
28943 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
28945         PR middle-end/57344
28946         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
28947         don't lower unit.  Handle unit not being always BITS_PER_WORD.
28949 2013-05-23  Richard Biener  <rguenther@suse.de>
28951         PR rtl-optimization/57341
28952         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
28953         instead of true_dependence.
28955 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
28957         * bb-reorder.c (branch_threshold): Make const.
28958         (exec_threshold): Ditto.
28960 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
28961             Pat Haugen  <pthaugen@us.ibm.com>
28962             Peter Bergner  <bergner@vnet.ibm.com>
28964         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
28965         documentation for the power8 crypto builtins.
28967         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
28969         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
28970         macros for defining power8 builtin functions.
28971         (BU_P8V_AV_2): Likewise.
28972         (BU_P8V_AV_P): Likewise.
28973         (BU_P8V_VSX_1): Likewise.
28974         (BU_P8V_OVERLOAD_1): Likewise.
28975         (BU_P8V_OVERLOAD_2): Likewise.
28976         (BU_CRYPTO_1): Likewise.
28977         (BU_CRYPTO_2): Likewise.
28978         (BU_CRYPTO_3): Likewise.
28979         (BU_CRYPTO_OVERLOAD_1): Likewise.
28980         (BU_CRYPTO_OVERLOAD_2): Likewise.
28981         (XSCVSPDP): Fix typo, point to the correct instruction.
28982         (VCIPHER): Add power8 crypto builtins.
28983         (VCIPHERLAST): Likewise.
28984         (VNCIPHER): Likewise.
28985         (VNCIPHERLAST): Likewise.
28986         (VPMSUMB): Likewise.
28987         (VPMSUMH): Likewise.
28988         (VPMSUMW): Likewise.
28989         (VPERMXOR_V2DI): Likewise.
28990         (VPERMXOR_V4SI: Likewise.
28991         (VPERMXOR_V8HI: Likewise.
28992         (VPERMXOR_V16QI: Likewise.
28993         (VSHASIGMAW): Likewise.
28994         (VSHASIGMAD): Likewise.
28995         (VPMSUM): Likewise.
28996         (VPERMXOR): Likewise.
28997         (VSHASIGMA): Likewise.
28999         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
29000         __CRYPTO__ if the crypto instructions are available.
29001         (altivec_overloaded_builtins): Add support for overloaded power8
29002         builtins.
29004         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
29005         support for power8 crypto builtins.
29006         (builtin_function_type): Likewise.
29007         (altivec_init_builtins): Add support for builtins that take vector
29008         long long (V2DI) arguments.
29010         * config/rs6000/crypto.md: New file, define power8 crypto
29011         instructions.
29013 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
29014             Pat Haugen  <pthaugen@us.ibm.com>
29015             Peter Bergner  <bergner@vnet.ibm.com>
29017         * doc/invoke.texi (Option Summary): Add power8 options.
29018         (RS/6000 and PowerPC Options): Likewise.
29020         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
29021         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
29022         wm, wn, wr documentation.
29024         * config/rs6000/constraints.md (wm): New constraint for VSX
29025         registers if direct move instructions are enabled.
29026         (wn): New constraint for no registers.
29027         (wq): New constraint for quad word even GPR registers.
29028         (wr): New constraint if 64-bit instructions are enabled.
29029         (wv): New constraint if power8 vector instructions are enabled.
29030         (wQ): New constraint for quad word memory locations.
29032         * config/rs6000/predicates.md (const_0_to_15_operand): New
29033         constraint for 0..15 for crypto instructions.
29034         (gpc_reg_operand): If VSX allow registers in VSX registers as well
29035         as GPR and floating point registers.
29036         (int_reg_operand): New predicate to match only GPR registers.
29037         (base_reg_operand): New predicate to match base registers.
29038         (quad_int_reg_operand): New predicate to match even GPR registers
29039         for quad memory operations.
29040         (vsx_reg_or_cint_operand): New predicate to allow vector logical
29041         operations in both GPR and VSX registers.
29042         (quad_memory_operand): New predicate for quad memory operations.
29043         (reg_or_indexed_operand): New predicate for direct move support.
29045         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
29046         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
29047         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
29048         (POWERPC_MASKS): Add power8 options.
29049         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
29050         various options.
29052         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
29053         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
29055         * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
29056         (-mpower8-fusion): New power8 options.
29057         (-mpower8-fusion-sign): Likewise.
29058         (-mpower8-vector): Likewise.
29059         (-mcrypto): Likewise.
29060         (-mdirect-move): Likewise.
29061         (-mquad-memory): Likewise.
29063         * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
29064         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
29065         registers.
29066         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
29067         (rs6000_debug_vector_unit): Add p8_vector.
29068         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
29069         definitions.  Also print fusion state.
29070         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
29071         (rs6000_builtin_mask_calculate): Add power8 builtin support.
29072         (rs6000_option_override_internal): Add support for power8.
29073         (rs6000_common_init_builtins): Add debugging for skipped builtins
29074         if -mdebug=builtin.
29075         (rs6000_adjust_cost): Add power8 support.
29076         (rs6000_issue_rate): Likewise.
29077         (insn_must_be_first_in_group): Likewise.
29078         (insn_must_be_last_in_group): Likewise.
29079         (force_new_group): Likewise.
29080         (rs6000_register_move_cost): Likewise.
29081         (rs6000_opt_masks): Likewise.
29083         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
29084         power8 capable assembler, default to power7 options.
29085         (TARGET_DIRECT_MOVE): Likewise.
29086         (TARGET_CRYPTO): Likewise.
29087         (TARGET_P8_VECTOR): Likewise.
29088         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
29089         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
29090         (VECTOR_MEM_P8_VECTOR_P): Likewise.
29091         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
29092         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
29093         (TARGET_XSCVDPSPN): Likewise.
29094         (TARGET_XSCVSPDPN): Likewsie.
29095         (TARGET_SYNC_HI_QI): Likewise.
29096         (TARGET_SYNC_TI): Likewise.
29097         (MASK_CRYPTO): Likewise.
29098         (MASK_DIRECT_MOVE): Likewise.
29099         (MASK_P8_FUSION): Likewise.
29100         (MASK_P8_VECTOR): Likewise.
29101         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
29102         temporary used by some of the direct move instructions to get two FP
29103         temporary registers does not force creation of a stack frame.
29104         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
29105         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
29106         that any VSX registers are tieable, even if they are also an
29107         Altivec vector mode.
29108         (r6000_reg_class_enum): Add wm, wr, wv constraints.
29109         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
29110         (RS6000_BTM_CRYPTO): Likewise.
29111         (RS6000_BTM_COMMON): Likewise.
29113         * config/rs6000/rs6000.md (cpu attribute): Add power8.
29114         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
29115         (enum rs6000_vector): Add power8 vector support.
29117 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29119         PR target/19599
29120         PR target/57340
29121         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
29122         (any_sibcall_could_use_r3): this and handle indirect calls.
29123         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
29125 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29127         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
29129 2013-05-22  Richard Biener  <rguenther@suse.de>
29131         PR middle-end/57349
29132         * profile.c (branch_prob): Do not split blocks that are
29133         abnormally receiving from ECF_RETURNS_TWICE functions.
29135 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
29137         * recog.c (offsettable_address_addr_space_p): Fix calculation of
29138         address mode.  Move pointer mode initialization to the same place.
29140 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
29142         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
29143         while it has any effect.
29145 2013-05-21  Easwaran Raman  <eraman@google.com>
29147         PR tree-optimization/57322
29148         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
29149         UID of the statement added to the BB to be 1.
29151 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
29153         PR tree-optimization/57331
29154         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
29155         of conversion from pointer type to integral type with integer.
29157 2013-05-21  Martin Jambor  <mjambor@suse.cz>
29159         PR lto/57289
29160         * ipa-prop.c (ipa_read_node_info): Process param_used and
29161         controlled_uses in the same order as when writing.
29163 2013-05-21  Magnus Granberg  <baldrick@free.fr>
29165         PR plugins/56754
29166         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
29168 2013-05-21  Richard Biener  <rguenther@suse.de>
29170         PR tree-optimization/57318
29171         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
29172         estimate stmts with side-effects as likely eliminated.
29174 2013-05-21  Richard Biener  <rguenther@suse.de>
29176         PR tree-optimization/57330
29177         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
29178         preserve the call stmts fntype.
29180 2013-05-21  Richard Biener  <rguenther@suse.de>
29182         PR tree-optimization/57303
29183         * tree-ssa-sink.c (statement_sink_location): Improve killing
29184         stmt detection and properly handle self-assignments.
29186 2013-05-21  Christian Bruel  <christian.bruel@st.com>
29188         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
29189         spanning registers. LEAF_REG_REMAP is supported only for contiguous
29190         registers. Set register size out of the PARALLEL loop.
29192 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
29194         PR target/56547
29195         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
29196         (*fmasf4, *fmasf4_media): New insns.
29198 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
29200         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
29201         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
29202         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
29203         (mips_idiv_insns): Update the comments to say that the returned
29204         instruction counts are in units of BASE_INSN_LENGTH.
29205         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
29206         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
29207         using 2 rather than 4 as the length of indirect MIPS16 and
29208         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
29209         length of a NOP.  Don't divide MIPS16 lengths by 2.
29210         (mips16_split_long_branches): Assume a branch is long if the
29211         length is greater than 4 rather than 8.
29212         * config/mips/mips.md (length): Give MIPS16 lengths directly,
29213         rather than multiplying them by 2.  Multiply instruction counts
29214         by BASE_INSN_LENGTH rather than 4.
29215         (*jump_mips16, tls_get_tp_mips16_<mode>)
29216         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
29218 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
29220         * config/mips/mips.md (extended_mips16): Remove branch case.
29221         (length): Remove duplicated extended_mips16 test.
29223 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
29225         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
29227 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
29229         * recog.h (Recog_data): Rename to...
29230         (recog_data_d): ...this.
29231         (recog_data): Update accordingly.
29232         * recog.c (recog_data): Likewise.
29233         * reload.c (save_recog_data): Likewise.
29234         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
29235         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
29237 2013-05-17  Julian Brown  <julian@codesourcery.com>
29239         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
29240         found in a REG_EQUAL note, invalidate it.
29242 2013-05-17  Easwaran Raman  <eraman@google.com>
29244         * tree-ssa-reassoc.c (find_insert_point): New function.
29245         (insert_stmt_after): Likewise.
29246         (get_def_stmt): Likewise.
29247         (ensure_ops_are_available): Likewise.
29248         (not_dominated_by): Likewise.
29249         (rewrite_expr_tree): Do not move statements beyond what is
29250         necessary. Remove call to swap_ops_for_binary_stmt...
29251         (reassociate_bb): ... and move it here.
29252         (build_and_add_sum): Assign UIDs for new statements.
29253         (linearize_expr): Likewise.
29254         (do_reassoc): Renumber gimple statement UIDs.
29256 2013-05-17  Jan Hubicka  <jh@suse.cz>
29258         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
29259         weakrefs.
29260         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
29261         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
29262         weakrefs.
29263         (output_weakrefs): Update.
29265 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
29266             Martin Jambor  <mjambor@suse.cz>
29268         PR middle-end/57276
29269         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
29270         value that corresponds to the given aggval is found in values vector.
29272 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
29274         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
29275         sse, sse2, sse3, ssse3 and sse4a flags to options.
29277 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
29279         * gengtype-state.c: (s_expr_writer): New class, to handle
29280         prettifying of output layout of s-expressions.
29281         (state_writer): New class, to write out gtype.state.
29282         (state_written_type_count): Move this variable into member data of
29283         state_writer.
29284         (s_expr_writer::s_expr_writer): New code: constructor for new class
29285         (state_writer::state_writer(): ditto
29286         (s_expr_writer::write_new_line): New function
29287         (s_expr_writer::write_any_indent): ditto
29288         (s_expr_writer::begin_s_expr): ditto
29289         (s_expr_writer::end_s_expr): ditto
29290         (write_state_fileloc): convert to method of state_writer...
29291         (state_writer:: write_state_fileloc): ...and use methods of
29292         s_expr_writer to write indentation into the gtype.state output file
29293         to visually represent the hierarchical structure of the list
29294         structures
29295         (write_state_fields): ditto, renaming to...
29296         (state_writer::write_state_fields)
29297         (write_state_a_string): ditto, renaming to...
29298         (state_writer::write_state_a_string)
29299         (write_state_string_option): ditto, renaming to...
29300         (state_writer::write_state_string_option)
29301         (write_state_type_option): ditto, renaming to...
29302         (state_writer::write_state_type_option)
29303         (write_state_nested_option): ditto, renaming to...
29304         (state_writer::write_state_nested_option)
29305         (write_state_option): ditto, renaming to...
29306         (state_writer::write_state_option)
29307         (write_state_options): ditto, renaming to...
29308         (state_writer::write_state_options)
29309         (write_state_lang_bitmap): ditto, renaming to...
29310         (state_writer::write_state_lang_bitmap)
29311         (write_state_version): ditto, renaming to...
29312         (state_writer::write_state_version)
29313         (write_state_scalar_type): ditto, renaming to...
29314         (state_writer::write_state_scalar_type)
29315         (write_state_string_type): ditto, renaming to...
29316         (state_writer::write_state_string_type)
29317         (write_state_undefined_type): ditto, renaming to...
29318         (state_writer::write_state_undefined_type)
29319         (write_state_struct_union_type): ditto, renaming to...
29320         (state_writer::write_state_struct_union_type)
29321         (write_state_struct_type): ditto, renaming to...
29322         (state_writer::write_state_struct_type)
29323         (write_state_user_struct_type): ditto, renaming to...
29324         (state_writer::write_state_user_struct_type)
29325         (write_state_lang_struct_type): ditto, renaming to...
29326         (state_writer::write_state_lang_struct_type)
29327         (write_state_param_struct_type): ditto, renaming to...
29328         (state_writer::write_state_param_struct_type)
29329         (write_state_pointer_type): ditto, renaming to...
29330         (state_writer::write_state_pointer_type)
29331         (write_state_array_type): ditto, renaming to...
29332         (state_writer::write_state_array_type)
29333         (write_state_gc_used): ditto, renaming to...
29334         (state_writer::write_state_gc_used)
29335         (write_state_common_type_content): ditto, renaming to...
29336         (state_writer::write_state_common_type_content)
29337         (write_state_type): ditto, renaming to...
29338         (state_writer::write_state_type)
29339         (write_state_pair_list): ditto, renaming to...
29340         (state_writer::write_state_pair_list)
29341         (write_state_pair): ditto, renaming to...
29342         (state_writer::write_state_pair)
29343         (write_state_typedefs): ditto, renaming to...
29344         (state_writer::write_state_typedefs)
29345         (write_state_structures): ditto, renaming to...
29346         (state_writer::write_state_structures)
29347         (write_state_param_structs): ditto, renaming to...
29348         (state_writer::write_state_param_structs)
29349         (write_state_variables): ditto, renaming to...
29350         (state_writer::write_state_variables)
29351         (write_state_srcdir): ditto, renaming to...
29352         (state_writer::write_state_srcdir)
29353         (write_state_files_list): ditto, renaming to...
29354         (state_writer::write_state_files_list)
29355         (write_state_languages): ditto, renaming to...
29356         (state_writer::write_state_languages)
29357         (write_state): create a state_writer instance and use it when
29358         writing out the state file
29360 2013-05-17  Mike Stump  <mikestump@comcast.net>
29362         PR rtl-optimization/57304
29363         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
29364         accessing DF_REF_REAL_LOC.
29366 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
29368         PR rtl-optimization/57281
29369         PR rtl-optimization/57300
29370         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
29371         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
29372         what the other splitter did if the registers are dead.
29374 2013-05-17  Richard Biener  <rguenther@suse.de>
29376         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
29377         MEM_REF offsets.
29379 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
29381         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
29382         linking.
29384 2013-05-17  Marek Polacek  <polacek@redhat.com>
29386         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
29387         length when doing non-zero store of storing '\0' to '\0'.
29389 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
29391         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
29392         vect_external_def oprnd1 with loop_vinfo, try to emit
29393         optional cast, negation and and stmts on the loop preheader
29394         edge instead of into the pattern def seq.
29396         PR tree-optimization/57051
29397         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
29398         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
29400 2013-05-16  Nick Clifton  <nickc@redhat.com>
29402         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
29403         (rl78_is_naked_func): New function.
29404         (rl78_expand_prologue): Skip prologue generation for naked functions.
29405         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
29406         * doc/extend.texi (naked): Add RL78 to the list of processors
29407         that supports this attribute.
29409 2013-05-16  Jeff Law  <law@redhat.com>
29411         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
29413 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
29415         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
29416         cache parameters using detect_caches_amd also for CYRIX,
29417         NSC and TM2 signatures.
29419 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
29420             Dzianis Kahanovich  <mahatma@eu.by>
29422         PR target/45359
29423         PR target/46396
29424         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
29425         VIA/Centaur processors and determine their cache parameters
29426         using detect_caches_amd.
29428 2013-05-16  Teresa Johnson  <tejohnson@google.com>
29430         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
29431         (rtl_verify_edges): New function.
29432         (rtl_verify_bb_insns): Ditto.
29433         (rtl_verify_bb_pointers): Ditto.
29434         (rtl_verify_bb_insn_chain): Ditto.
29435         (rtl_verify_fallthru): Ditto.
29436         (rtl_verify_bb_layout): Ditto.
29437         (rtl_verify_flow_info_1): Outline checks into new functions.
29438         (rtl_verify_flow_info): Ditto.
29440 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
29442         * cfghooks.c (copy_bbs): Add update_dominance argument.
29443         * cfghooks.h (copy_bbs): Update prototype.
29444         * tree-cfg.c (gimple_duplicate_sese_region):
29445         Add update_dominance argument.
29446         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
29447         * tree-ssa-loop-ch.c (copy_loop_headers): Update
29448         gimple_duplicate_sese_region call.
29449         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
29450         Update copy_bbs call.
29451         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
29452         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
29454 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
29456         * tree-vectorizer.h (NUM_PATTERNS): Increment.
29457         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
29458         vect_recog_rotate_pattern.
29459         (vect_recog_rotate_pattern): New function.
29461 2013-05-16  Jason Merrill  <jason@redhat.com>
29463         * Makefile.in (LLINKER): New variable.
29464         (mostlyclean): Remove link mutex.
29465         * configure.ac: Handle --enable-link-mutex.
29466         * lock-and-run.sh: New script.
29468 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29470         PR target/19599
29471         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
29472         for NULL decl.
29474 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29476         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
29478 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
29480         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
29481         * config/arm/arm.c (next_consecutive_mem): New function.
29482         (gen_movmem_ldrd_strd): Likewise.
29483         * config/arm/arm.md (movmemqi): Update condition and code.
29484         (unaligned_loaddi, unaligned_storedi): New patterns.
29486 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29488         * config.gcc: Obsolete *-*-solaris2.9*.
29489         * doc/install.texi (Specific, *-*-solaris2*): Document it.
29491 2013-05-16  Richard Biener  <rguenther@suse.de>
29493         * passes.c (init_optimization_passes): Move pass_parallelize_loops
29494         earlier, after GRAPHITE transforms and IV canonicalization.
29496 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
29498         * omp-low.c (extract_omp_for_data): For collapsed loops,
29499         if at least one of the loops is known at compile time to
29500         iterate zero times, set count to 0.
29501         (expand_omp_regimplify_p): New function.
29502         (expand_omp_for_generic): For collapsed loops, if at least
29503         one of the loops isn't known to iterate at least once,
29504         add runtime check with setting count to 0.
29505         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
29506         For unsigned types if it isn't known at compile time that
29507         the loop will iterate at least once, add runtime check to bypass
29508         the whole loop if initial condition isn't true.
29510 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
29512         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
29514 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
29516         PR middle-end/57286
29517         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
29518         transformations to avoid an infinite loop.
29520 2013-05-16  Marek Polacek  <polacek@redhat.com>
29522         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
29524 2013-05-15  Leif Ekblad  <leif@rdos.net>
29526         * config/i386/i386.c (ix86_decompose_address): Use
29527         DEFAULT_TLS_SEG_REG to access TLS segment register.
29528         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
29529         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
29530         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
29532 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
29534         PR target/57260
29535         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
29536         sibling calls to functions that would normally be lazily bound,
29537         unless $gp is call-clobbered.
29539 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
29541         * config/i386/i386.c (ix86_option_override_internal): Update
29542         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
29543         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
29544         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
29545         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
29546         of TARGET_3DNOW.
29547         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
29549 2013-05-15  Andreas Schwab  <schwab@suse.de>
29551         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
29552         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
29553         third operand.
29555 2013-05-15  Teresa Johnson  <tejohnson@google.com>
29557         * loop-unroll.c (report_unroll_peel): Check decision before
29558         emitting unroll/peel message.
29560 2013-05-15  Teresa Johnson  <tejohnson@google.com>
29562         * function.h (has_bb_partition): New rtl_data flag.
29563         (bb_reorder_complete): Ditto.
29564         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
29565         instead of flag_reorder_blocks_and_partition.
29566         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
29567         with some enhancements.
29568         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
29569         * bb-reorder.c (connect_traces): Check for has_bb_partition
29570         instead of flag_reorder_blocks_and_partition.
29571         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
29572         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
29573         verify_hot_cold_block_grouping.
29574         (partition_hot_cold_basic_blocks): Set has_bb_partition.
29576 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29578         PR target/19599
29579         * config/arm/predicates.md (call_insn_operand): New predicate.
29580         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
29581         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
29582         if insn is not a tail call.
29583         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
29584         registers.
29585         * config/arm/arm.h (enum reg_class): New caller save register class.
29586         (REG_CLASS_NAMES): Likewise.
29587         (REG_CLASS_CONTENTS): Likewise.
29588         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
29589         without decls.
29591 2013-05-15  Richard Biener  <rguenther@suse.de>
29593         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
29594         of MSG_OPTIMIZED_LOCATIONS.
29595         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
29596         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
29597         message.
29598         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
29599         of MSG_OPTIMIZED_LOCATIONS.
29600         (execute_vect_slp): Likewise.
29601         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
29602         (vect_create_cond_for_alias_checks): Likewise.
29603         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
29604         (vect_recog_widen_mult_pattern): Likewise.
29605         (vect_recog_widen_sum_pattern): Likewise.
29606         (vect_recog_over_widening_pattern): Likewise.
29607         (vect_recog_widen_shift_pattern): Likewise.
29608         (vect_recog_vector_vector_shift_pattern): Likewise.
29609         (vect_recog_divmod_pattern): Likewise.
29610         (vect_recog_mixed_size_cond_pattern): Likewise.
29611         (vect_recog_bool_pattern): Likewise.
29612         (vect_pattern_recog_1): Likewise.
29614 2013-05-15  Martin Jambor  <mjambor@suse.cz>
29616         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
29617         non-functions to builtin_unreachable.
29618         * ipa-inline-transform.c (inline_call): Do not assert estimates were
29619         correct when new direct edges were discovered.
29621 2013-05-15  Martin Jambor  <mjambor@suse.cz>
29623         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
29624         header, print symbol order instead of node uid, print more information
29625         about indirect edge targets.
29626         (ipa_make_edge_direct_to_target): Print symbol order instead of node
29627         uids.
29628         (ipa_make_edge_direct_to_target): Likewise.
29629         (remove_described_reference): Likewise.
29630         (propagate_controlled_uses): Likewise.
29631         (ipa_print_node_params): Also print symbol order.
29632         (ipcp_transform_function): Print symbol order instead of node uids.
29633         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
29634         (cgraph_get_create_real_symbol_node): Likewise.
29635         * ipa-cp.c (print_lattice): Likewise.
29636         (print_all_lattices): Likewise.
29637         (determine_versionability): Likewise.
29638         (initialize_node_lattices): Likewise.
29639         (estimate_local_effects): Likewise.
29640         (update_profiling_info): Likewise.
29641         (create_specialized_node): Likewise.
29642         (perhaps_add_new_callers): Likewise.
29643         (decide_about_value): Likewise.
29644         (decide_whether_version_node): Likewise.
29645         (identify_dead_nodes): Likewise.
29646         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
29647         (dump_inline_summary): Likewise.
29648         (estimate_node_size_and_time): Likewise.
29649         (inline_analyze_function): Likewise.
29650         * ipa-inline.c (report_inline_failed_reason): Likewise.
29651         (want_early_inline_function_p): Likewise.
29652         (edge_badness): Likewise.
29653         (update_edge_key): Likewise.
29654         (inline_small_functions): Likewise.  Add dumping of order to two other
29655         dumps.
29656         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
29657         instead of node uids.
29658         (propagate_pure_const): Likewise.
29659         (propagate_pure_const): Likewise.
29660         * ipa-utils.c (dump_cgraph_node_set): Likewise.
29661         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
29662         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
29663         of node uids.
29664         * tree-pretty-print.c (dump_function_header): Likewise.
29665         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
29666         Print symbol order instead of node uids.
29668 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29670         * config/s390/s390.c (s390_register_move_cost): Don't impose the
29671         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
29673 2013-05-15  Richard Biener  <rguenther@suse.de>
29675         PR tree-optimization/57275
29676         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
29677         return value for fail to do runtime alias checks for gather loads.
29679 2013-05-15  Jan Hubicka  <jh@suse.cz>
29681         PR lto/57038
29682         PR lto/47375
29683         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
29684         weakrefs are not external.
29685         (lto_symtab_merge_decls): Fix thinko when dealing with
29686         non-lto_symtab decls.
29687         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
29688         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
29689         * varpool.c (dump_varpool_node): Dump more flags.
29691 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
29693         * config/i386/i386.c (processor_alias_table): Add instruction
29694         FSGSBASE for AMD bdver3 architecture.
29696 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
29698         * tree.c (warn_deprecated_use): Print file:line using locus color.
29699         * diagnostic.c (diagnostic_report_current_module): Print file:line
29700         and file:line:column using locus color.
29702 2013-05-14  Mike Stump  <mikestump@comcast.net>
29704         * gdbinit.in: Add __null.
29706 2013-05-14  Mike Stump  <mikestump@comcast.net>
29708         * recog.h: Rename struct recog_data to Recog_data.
29709         * recog.c: Likewise.
29710         * reload.c (can_reload_into): Likewise.
29711         * config/picochip/picochip.c: Likewise.
29713 2013-05-14  Mike Stump  <mikestump@comcast.net>
29715         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
29717 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
29719         * resource.h (struct resources): Remove unch_memory member.
29720         (CLEAR_RESOURCE): Don't clear unch_memory.
29721         * resource.c (mark_referenced_resources): Don't set it.
29722         (mark_set_resources): Likewise.
29723         (mark_target_live_regs): Don't clear it.
29724         (init_resource_info): Likewise.
29725         * reorg.c (resource_conflicts_p): Don't compare it.
29726         (redundant_insn): Don't set it.
29728         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
29729         Remove prototypes.
29730         * emit-rtl.c (next_label): Remove unused function.
29731         (skip_consecutive_labels, link_cc0_insns): Move to ...
29732         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
29733         only place where these functions are used, and make them static.
29735 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
29737         * fold-const.c (fold_negate_expr): Handle vectors.
29738         (fold_truth_not_expr): Make it static.
29739         (fold_invert_truthvalue): New static function.
29740         (invert_truthvalue_loc): Handle vectors. Do not call
29741         fold_truth_not_expr directly.
29742         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
29743         <TRUTH_NOT_EXPR>: Do not cast to boolean.
29744         (fold_comparison): Handle vector constants.
29745         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
29746         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
29747         * tree.h (fold_truth_not_expr): Remove declaration.
29749 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
29751         * config/aarch64/aarch64-simd.md
29752         (aarch64_vcond_internal<mode>): Rename to...
29753         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
29754         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
29755         float modes. Clarify all iterator modes.
29756         (vcond<mode><mode>): Use new name for vcond expanders.
29757         (vcond<v_cmp_result><mode>): Likewise.
29758         (vcondu<mode><mode>: Likewise.
29759         * config/aarch64/iterators.md (VDQF_COND): New.
29761 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
29763         PR bootstrap/57266
29764         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
29765         variable for the shift amount. Check that we shift by non-negative
29766         amounts.
29768 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
29770         PR target/42017
29771         * config/arm/arm.h (EPILOGUE_USES): Only return true
29772         for LR_REGNUM after epilogue_completed.
29774 2013-05-14  Joern Rennecke  <joern.rennecke@embecosm.com>
29776         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
29777         is error_mark_node.
29779 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29781         PR target/57261
29782         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
29783         and Solaris 11+/x86 with gld.
29784         * configure: Regenerate.
29786 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
29788         * expmed.c (expand_shift_1): Canonicalize rotates by
29789         constant bitsize / 2 to bitsize - 1.
29790         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
29791         case ROTATERT>: Likewise.
29793         Revert:
29794         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
29796         * config/i386/i386.md (rotateinv): New code attr.
29797         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
29798         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
29799         roll $31, %eax, etc.
29801 2013-05-14  Richard Biener  <rguenther@suse.de>
29803         PR middle-end/57235
29804         * tree-eh.c (sink_clobbers): Give up for successors with
29805         multiple predecessors and no virtual uses.
29807 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
29809         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
29810         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
29812 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
29814         PR middle-end/57251
29815         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
29816         the case when both op0 and op1 have VOIDmode.
29818 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
29820         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
29821         in multiply-accumulate mode.
29823 2013-05-13  Guozhi Wei  <carrot@google.com>
29825         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
29827 2013-05-13  Kai Tietz  <ktietz@redhat.com>
29829         PR target/56975
29830         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
29831         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
29832         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
29833         * config/i386/i386.c (ix86_option_override_internal): Likewise.
29834         (ix86_expand_prologue): Likewise.
29835         (ix86_expand_split_stack_prologue): Likewise.
29836         (legitimate_pic_address_disp_p): Likewise.
29837         (legitimize_pic_address): Likewise.
29838         (legitimize_tls_address): Likewise.
29839         (legitimize_pe_coff_symbol): Likewise.
29840         (output_pic_addr_const): Likewise.
29841         (construct_plt_address): Likewise.
29842         (ix86_expand_call): Likewise.
29843         (x86_output_mi_thunk): Likewise.
29844         (x86_function_profiler): Likewise.
29846 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
29848         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
29849         similar switch cases.
29850         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
29851         (aarch64_simd_mov_to_<mode>low): Delete.
29852         (aarch64_simd_mov_to_<mode>high): Delete.
29853         (move_lo_quad_<mode>): Add w<-r alternative.
29854         (aarch64_simd_move_hi_quad_<mode>): Likewise.
29855         (aarch64_simd_mov_from_*): Update type attribute.
29856         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
29857         statement.
29859 2013-05-13  Jan Hubicka  <jh@suse.cz>
29861         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
29862         * config/i386/i386.c (ix86_compute_frame_layout,
29863         ix86_expand_epilogue, emit_i387_cw_initialization,
29864         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
29865         ix86_local_alignment): Fix use of size/speed predicates.
29867 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
29869         PR tree-optimization/45216
29870         PR tree-optimization/57157
29871         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
29872         the (-Y) & (B - 1) variant if OP is |.
29873         * expmed.c (expand_shift_1): For rotations by const0_rtx just
29874         return shifted.  Use (-op1) & (prec - 1) as other_amount
29875         instead of prec - op1.
29877 2013-05-13  Martin Jambor  <mjambor@suse.cz>
29879         PR middle-end/42371
29880         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
29881         (ipa_constant_data): New type.
29882         (ipa_jump_func): Use ipa_constant_data to hold information about
29883         constant jump functions.
29884         (ipa_get_jf_constant): Adjust to jump function type changes.
29885         (ipa_get_jf_constant_rdesc): New function.
29886         (ipa_param_descriptor): New field controlled_uses.
29887         (ipa_get_controlled_uses): New function.
29888         (ipa_set_controlled_uses): Likewise.
29889         * ipa-ref.h (ipa_find_reference): Declare.
29890         * ipa-prop.c (ipa_cst_ref_desc): New type.
29891         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
29892         changes.
29893         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
29894         New parameter cs.  Adjust all callers.
29895         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
29896         (remove_described_reference): New function.
29897         (jfunc_rdesc_usable): Likewise.
29898         (try_make_edge_direct_simple_call): Decrement controlled use count,
29899         attempt to remove reference if it hits zero.
29900         (combine_controlled_uses_counters): New function.
29901         (propagate_controlled_uses): Likewise.
29902         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
29903         (ipa_edge_duplication_hook): Duplicate reference descriptions.
29904         (ipa_print_node_params): Print described use counter.
29905         (ipa_write_jump_function): Adjust to jump function type changes.
29906         (ipa_read_jump_function): New parameter CS, pass it to
29907         ipa_set_jf_constant.  Adjust caller.
29908         (ipa_write_node_info): Stream controlled use count
29909         (ipa_read_node_info): Likewise.
29910         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
29911         asserting.
29912         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
29913         count.  Remove cloning-added reference if it reaches zero.
29914         * ipa-ref.c (ipa_find_reference): New function.
29916 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
29918         * config/i386/i386.c (processor_target_table): Modified default
29919         alignment values for AMD BD and BT architectures.
29921 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
29923         * tree-vect-generic.c (uniform_vector_p): Move ...
29924         * tree.c (uniform_vector_p): ... here.
29925         * tree.h (uniform_vector_p): Declare it.
29926         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
29927         into a scalar.
29929 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
29931         PR tree-optimization/57230
29932         * tree-ssa-strlen.c (handle_char_store): Record length for
29933         array store from STRING_CST.
29935         PR tree-optimization/57230
29936         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
29937         check.
29939 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
29941         * config/epiphany/epiphany.c (epiphany_init): Check size of
29942         NUM_MODES_FOR_MODE_SWITCHING.
29943         (epiphany_expand_prologue):
29944         Remove CONFIG_REGNUM initial value handling code.
29945         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
29946         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
29947         (emit_set_fp_mode, epiphany_mode_after): Likewise.
29948         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
29949         Don't return 1 for FP_MODE_NONE.
29950         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
29951         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
29952         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
29953         * config/epiphany/epiphany.md (save_config): New pattern.
29955 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
29957         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
29959 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
29961         * config/i386/i386.md (memory): Handle sseishft1.
29962         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
29963         (*vec_extractv2di_1): Ditto.
29965 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
29967         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
29968         saved registers.
29970 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
29972         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
29973         Add mthumb/march=armv7-a multilib.
29974         Add mthumb/march=armv7-r multilib.
29975         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
29977 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
29979         * config/v850/t-rtems: Add more multilibs.
29981 2013-05-10  Richard Biener  <rguenther@suse.de>
29983         PR tree-optimization/57214
29984         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
29985         not propagate from SSA names that occur in abnormal PHI nodes.
29987 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
29989         * stor-layout.c (element_precision): New function.
29990         * machmode.h (element_precision): Declare it.
29991         * tree.c (build_minus_one_cst): New function.
29992         (element_precision): Likewise.
29993         * tree.h (build_minus_one_cst): Declare new function.
29994         (element_precision): Likewise.
29995         * fold-const.c (operand_equal_p): Use element_precision.
29996         (fold_binary_loc): Handle vector types.
29997         * convert.c (convert_to_integer): Use element_precision.
29998         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
29999         separately.
30001 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
30003         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
30004         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
30005         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
30006         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
30007         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
30008         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
30009         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
30010         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
30011         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
30012         (Uuw8): New constraints.
30013         (Usb4): Move into alphabetical order.
30014         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
30015         (sd8_operand, ub8_operand, uw8_operand): New predicates.
30016         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
30017         previously unnamed patterns.
30018         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
30019         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
30020         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
30021         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
30022         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
30023         of specific lengths.
30025 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
30027         * config/i386/i386.md (rotateinv): New code attr.
30028         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
30029         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
30030         roll $31, %eax, etc.
30032         PR tree-optimization/45216
30033         PR tree-optimization/57157
30034         * tree-ssa-forwprop.c (simplify_rotate): New function.
30035         (ssa_forward_propagate_and_combine): Call it.
30037 2013-05-10  Richard Biener  <rguenther@suse.de>
30039         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
30040         disable peeling when we version for aliasing.
30041         (vector_alignment_reachable_p): Honor explicit user alignment.
30042         (vect_supportable_dr_alignment): Likewise.
30043         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
30044         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
30045         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
30046         then peeling to arrange for the cost-model check to come first.
30048 2013-05-10  Alan Modra  <amodra@gmail.com>
30050         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
30051         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
30052         * configure: Regenerate.
30054 2013-05-10  Alan Modra  <amodra@gmail.com>
30056         PR target/55033
30057         * varasm.c (default_elf_select_section): Move !DECL_P check..
30058         (get_named_section): ..to here before calling get_section_name.
30059         Adjust assertion.
30060         (default_section_type_flags): Add DECL_P check.
30061         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
30062         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
30064 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
30066         * config/epiphany/epiphany.c (epiphany_expand_prologue):
30067         When using gen_stack_adjust_str with a register offset, add a
30068         REG_FRAME_RELATED_EXPR note.
30070 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
30072         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
30073         (*vec_extractv4si_zext_mem): Ditto.
30074         (*vec_extractv2di): Add 0->x and x->x alternatives.
30075         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
30076         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
30078 2013-05-09  Jason Merrill  <jason@redhat.com>
30080         N3639 C++1y VLA support
30081         * gimplify.c (gimplify_vla_decl): Don't touch an existing
30082         DECL_VALUE_EXPR.
30084         * tree.c (build_constructor_va): New.
30085         * tree.h: Declare it.
30087 2013-05-09  Martin Jambor  <mjambor@suse.cz>
30089         PR lto/57084
30090         * gimple-fold.c (canonicalize_constructor_val): Call
30091         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
30093 2013-05-09  Jan Hubicka  <jh@suse.cz>
30094             Richard Biener  <rguenther@suse.de>
30096         PR lto/54095
30097         * symtab.c (symtab_make_decl_local): Do not add private names.
30099 2013-05-09  Jan Hubicka  <jh@suse.cz>
30101         PR lto/54095
30102         * symtab.c (insert_to_assembler_name_hash): Handle clones.
30103         (unlink_from_assembler_name_hash): Likewise.
30104         (symtab_prevail_in_asm_name_hash, symtab_register_node,
30105         symtab_unregister_node, symtab_initialize_asm_name_hash,
30106         change_decl_assembler_name): Update.
30108 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
30110         * config/aarch64/aarch64.md: New movtf split.
30111         (*movtf_aarch64): Update.
30112         (aarch64_movdi_tilow): Handle TF modes and rename to
30113         aarch64_movdi_<mode>low.
30114         (aarch64_movdi_tihigh): Handle TF modes and rename to
30115         aarch64_movdi_<mode>high
30116         (aarch64_movtihigh_di): Handle TF modes and rename to
30117         aarch64_mov<mode>high_di
30118         (aarch64_movtilow_di): Handle TF modes and rename to
30119         aarch64_mov<mode>low_di
30120         (aarch64_movtilow_tilow): Remove spurious whitespace.
30121         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
30122         splits.
30123         (aarch64_print_operand): Update.
30125 2013-05-09  Alan Modra  <amodra@gmail.com>
30127         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
30128         powerpc64le.
30129         * configure: Regenerate.
30131 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
30133         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
30134         splitter preparation statements.
30135         * config/i386/sse.md (*vec_extract* splitters): Ditto.
30136         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
30137         adjust_address_nv.
30139 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30141         * gimple-ssa-strength-reduction.c (count_candidates): Change
30142         return value to int.
30143         (analyze_candidates_and_replace): Change type of length to int.
30145 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
30147         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
30148         (*vec_extract<mode>): Use VI12_128 mode iterator.
30149         (*vec_extract<mode>_mem): Ditto.
30150         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
30151         attribute.
30153 2013-05-08  Diego Novillo  <dnovillo@google.com>
30155         PR bootstrap/54659
30157         Revert:
30158         2012-08-17  Diego Novillo  <dnovillo@google.com>
30160         PR bootstrap/54281
30161         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
30162         * config.in: Regenerate.
30163         * configure: Regenerate.
30164         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
30166 2013-05-08  Jan Hubicka  <jh@suse.cz>
30168         PR lto/54095
30169         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
30170         * cgraph.h (symtab_node_base): Add unique_name.
30171         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
30172         input_overwrite_node, input_varpool_node): Stream unique_name.
30173         * cgraphclones.c (cgraph_create_virtual_clone,
30174         cgraph_function_versioning): Set unique_name.
30175         * ipa.c (function_and_variable_visibility): Set unique_name.
30177 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30179         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
30180         (alloc_cand_and_find_basis): Restrict conditional candidate
30181         processing to CAND_MULTs.
30183 2013-05-08  Jan Hubicka  <jh@suse.cz>
30185         PR lto/54095
30186         lto-symtab.c (lto_symtab_symbol_p): New function.
30187         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
30188         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
30189         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
30190         Skip static symbols.
30192 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
30194         PR tree-optimization/57200
30195         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
30196         Only call inform if the preceding warning_at returns true.
30198 2013-05-07  Han Shen  <shenhan@google.com>
30200         * cfgexpand.c (record_or_union_type_has_array_p): New function.
30201         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
30202         * common.opt (fstack-protector-strong): New option.
30203         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
30204         * doc/invoke.texi (Optimization Options): Document
30205         "-fstack-protector-strong".
30206         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
30208 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
30210         * config/mips/mips.c (mips_machine_reorg2): Return 0.
30212 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
30214         * ira.c (update_equiv_regs): Add insn having equiv memory even if
30215         it is not lhs of the insn.
30216         (setup_reg_equiv): Remove insn having equiv memory which it is not
30217         lhs of the insn.
30218         * lra-constraints.c (process_address): Try to improve generation
30219         code for address base + disp.
30220         (lra_constraints): Make correct the code for checking insn setting
30221         up backward equivalence.  Remove insn only if it is in the init
30222         insn list.
30223         * lra-eliminations.c (update_reg_eliminate): Change return value.
30224         (lra_eliminate): Use the result.
30226 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
30228         * config/i386/sse.md (ssescalarnummask): New mode attribute.
30229         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
30230         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
30231         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
30232         register target operands.
30233         (*vec_extractv8hi_sse2): New pattern.
30234         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
30235         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
30236         (*vec_extract<mode>_mem): New insn and split pattern.
30238 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
30240         * config/arm/arm.c (arm_asan_shadow_offset): New function.
30241         (TARGET_ASAN_SHADOW_OFFSET): Define.
30242         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
30243         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
30245 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30247         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
30248         (incr_vec_index): Return -1 if increment not found.
30249         (create_add_on_incoming_edge): Assert if increment not found.
30250         (record_increment): Limit number of increments recorded.
30251         (all_phi_incrs_profitable): Return false if an increment not found.
30252         (replace_profitable_candidates): Don't process increments that were
30253         not recorded.
30254         (analyze_candidates_and_replace): Limit size of incr_vec.
30256 2013-05-07  Richard Biener  <rguenther@suse.de>
30258         * calls.c (special_function_p): setjmp-like functions are leaf.
30259         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
30260         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
30262 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
30264         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
30265         (aarch64_simd_mov<mode>): New expander.
30266         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
30267         (aarch64_simd_mov_to_<mode>high): Likewise.
30268         (aarch64_simd_mov_from_<mode>low): Likewise.
30269         (aarch64_simd_mov_from_<mode>high): Likewise.
30270         (aarch64_dup_lane<mode>): Update.
30271         (aarch64_dup_lanedi): New instruction pattern.
30272         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
30273         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
30275 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30277         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
30278         (replace_mult_candidate): Remove unnecessary argument; remove
30279         unnecessary parameter from call to introduce_cast_before_cand.
30280         (replace_unconditional_candidate): Remove unnecessary parameter
30281         from call to replace_mult_candidate.
30282         (replace_conditional_candidate): Likewise.
30283         (insert_initializers): Use make_temp_ssa_name.
30284         (introduce_cast_before_cand): Remove unnecessary argument; use
30285         make_temp_ssa_name.
30286         (replace_one_candidate): Remove unnecessary argument; remove
30287         unnecessary parameter from calls to introduce_cast_before_cand.
30288         (replace_profitable_candidates): Remove unnecessary parameters
30289         from calls to replace_one_candidate.
30291 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30293         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
30294         phi def as possibly hiding a basis for a CAND_ADD whose operands
30295         have been commuted in the analysis.
30296         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
30298 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
30300         * config/aarch64/aarch64.md
30301         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
30302         shift value between 0-4.
30304 2013-05-07  Richard Biener  <rguenther@suse.de>
30306         * double-int.h (rshift): New overload.
30307         * double-int.c (rshift): New function.
30308         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
30309         (create_reference_ops_from_ref): Remove.
30310         (vn_reference_insert): Use shared ops for constructing the
30311         reference and copy it.
30313 2013-05-07  Richard Biener  <rguenther@suse.de>
30315         PR middle-end/57190
30316         * tree-eh.c (sink_clobbers): Properly propagate
30317         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
30319 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
30321         PR tree-optimization/57149
30322         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
30323         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
30324         collect_phi_def_edges, execute_late_warn_uninitialized): Use
30325         uninit_undefined_value_p instead of ssa_undefined_value_p.
30327         PR debug/57184
30328         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
30329         for modifier == EXPAND_INITIALIZER.
30331 2013-05-07  Anton Blanchard  <anton@samba.org>
30333         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
30334         for powerpc64 little endian.
30335         * configure: Regenerate.
30337 2013-05-06  Graham Stott  <grahams@btinternet.com>
30339         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
30340         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
30341         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
30342         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
30344 2013-05-06  Graham Stott  <grahams@btinternet.com>
30346         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
30347         codes which allow non-lvalues.
30349 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
30351         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
30352         components are all 1s.
30353         (integer_minus_onep): New function.
30354         * tree.h (integer_minus_onep): Declare it.
30355         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
30356         integer_minus_onep instead of integer_all_onesp.
30358 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
30360         PR target/52933
30361         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
30362         variations of these patterns.
30364 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
30366         * config/i386/i386.md (isa): Add x64_sse4 member.
30367         (enabled): Handle x64_sse4.
30368         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
30369         instruction for 64bit SSE4_1 targets.  Update insn attributes.
30370         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
30371         instruction for SSE4_1 targets.  Update insn attributes.
30372         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
30373         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
30374         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
30375         const_1 selector.
30376         (*vec_extractv4si): Rename from *sse4_1_pextrd.
30377         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
30378         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
30380 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
30382         PR target/57108
30383         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
30385 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
30387         * final.c (do_assembler_dialects): Don't handle curly braces and
30388         vertical bar escaped by % as dialect delimiters.
30389         (output_asm_insn): Print curly braces and vertical bar if escaped
30390         by % and ASSEMBLER_DIALECT defined.
30391         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
30392         * doc/tm.texi: Regenerated.
30394 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
30396         * config/mips/mips.c: Include tree-pass.h.
30397         (mips_reorg): Split in pre- and post-dbr_schedule parts.
30398         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
30399         (pass_mips_machine_reorg2): New machine specific pass.
30400         (insert_pass_mips_machine_reorg2): New pass plugin definition.
30401         (mips_option_override): Register the new pass.
30402         * rtl.h (cleanup_barriers): Remove prototype.
30403         (dbr_schedule): Likewise.
30404         * jump.c (cleanup_barriers): Make static.
30405         * reorg.c (dbr_schedule): Likewise.
30407 2013-05-06  Richard Biener  <rguenther@suse.de>
30409         PR tree-optimization/57185
30410         * tree-parloops.c (add_field_for_reduction): Handle anonymous
30411         SSA names properly.
30413 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
30415         PR target/57106
30416         * config/i386/i386.c (add_parameter_dependencies): Add dependence
30417         between "first_arg" and "insn", not "last" and "insn".
30419 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30421         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
30422         (find_candidates_in_block): Re-enable slsr_process_phi.
30423         (create_phi_basis): Fix double counting of candidate adjustment.
30425 2013-05-06  Richard Biener  <rguenther@suse.de>
30427         PR middle-end/57147
30428         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
30429         the edge is also fallthru, preserve it and just clear the
30430         abnormal flag.
30431         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
30432         also complex, preserve that and just clear the fallthru flag.
30433         * tree-inline.c (update_ssa_across_abnormal_edges): Also
30434         update virtual operands.
30436 2013-05-06  Alan Modra  <amodra@gmail.com>
30438         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
30439         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
30440         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
30441         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
30442         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
30443         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
30445 2013-05-06  Alan Modra  <amodra@gmail.com>
30447         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
30448         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
30449         (DEFAULT_ASM_ENDIAN): Define.
30450         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
30451         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
30452         Update -K PIC clause from sysv4.h.
30453         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
30454         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
30456 2013-05-06  Alan Modra  <amodra@gmail.com>
30458         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
30459         twice for little-endian.
30460         (ashrdi3_no_power, ashrdi3): Support little-endian.
30462 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
30464         PR target/55303
30465         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
30466         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
30467         related expanders.
30468         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
30469         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
30470         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
30471         New predicates.
30473 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
30474             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30476         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
30477         * config/pa/pa.opt: Make mbig-switch a no-op.
30478         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
30479         (CASE_VECTOR_MODE): Always return SImode.
30480         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
30481         for the !TARGET_BIG_SWITCH case.
30482         * config/pa/pa-linux.h: Likewise.
30483         * config/pa/pa-openbsd.h: Likewise.
30484         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
30485         * config/pa/pa.md (short_jump): Remove define_insn.
30486         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
30487         (casesi0): Remove define_insn.
30488         (type): Remove btable_branch.
30489         (pa_combine_type): Likewise.
30490         (in_nullified_branch_delay): Likewise.
30491         (in_call_delay): Likewise.
30492         (define_delay): Likewise.
30493         (define_insn_reservation "Z3"): Likewise.
30494         (define_insn_reservation "Z4"): Likewise.
30495         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
30496         (pa_adjust_insn_length): Remove adjustment for btable branches.
30497         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
30498         and mno-big-switch
30500 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
30502         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
30503         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
30504         Add m->r,x alternatives.
30505         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
30506         splitters using SWI48x mode iterator.
30507         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
30508         TARGET_64BIT.  Add m->x alternative.
30509         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
30510         Add o->x alternative.  Enable for TARGET_SSE.
30511         (sse_storeq): Remove expander.
30512         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
30513         with memory input operand.
30514         (*vec_extractv2di_1 splitter): New.
30515         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
30516         * config/i386/i386.md (ssevecmodelower): New mode attribute.
30518 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
30520         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
30521         (INT_LOWPART): Delete.
30522         (extract_MB): Adjust.
30523         (extract_ME): Adjust.
30524         (print_operand): Adjust.
30526 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
30528         * config/rs6000/predicates.md (reg_or_add_cint_operand,
30529         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
30530         (reg_or_logical_cint_operand, easy_fp_constant,
30531         logical_const_operand): Delete "CONST_DOUBLE" case.
30532         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
30533         "HOST_BITS_PER_WIDE_INT == 64" test.
30534         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
30535         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
30536         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
30537         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
30538         test.
30539         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
30540         CONST_DOUBLE DImode/VOIDmode case.
30541         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
30542         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
30543         CONST_DOUBLE VOIDmode case.
30544         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
30545         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
30546         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
30547         Delete CONST_DOUBLE case.
30548         (splitters for mov FMOVE64 const_double): Delete
30549         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
30550         "HOST_BITS_PER_WIDE_INT >= 64" test.
30551         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
30552         case.
30553         (mov DI const_double): Delete.
30555 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
30557         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
30558         on op shows all bits zero in mode of a lowpart subreg, return zero.
30560 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
30562         PR target/57150
30563         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
30564         to save TFmode registers and DImode to save TImode registers for
30565         caller save operations.
30566         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
30567         mark being partially clobbered since they only use the first
30568         double word.
30570         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
30571         and TDmode only use the upper 64-bits of each VSX register.
30573 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30575         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
30576         (find_candidates_in_block): Disable slsr_process_phi.
30578 2013-05-03  Guozhi Wei  <carrot@google.com>
30580         * coverage.c (coverage_obj_init): Move the construction of gcov
30581         constructor to ...
30582         (build_init_ctor): ... here.
30584 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30586         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
30587         (slsr_cand_d): Redefine def_phi.
30588         (stride_status, phi_adjust_status, count_phis_status): New enums.
30589         (find_phi_def): New.
30590         (find_basis_for_base_expr): New.
30591         (find_basis_for_candidate): Handle hidden bases.
30592         (alloc_cand_and_find_basis): Handle phi candidates.
30593         (slsr_process_phi): New.
30594         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
30595         (create_mul_imm_cand): Likewise.
30596         (create_add_ssa_cand): Exclude phi base candidates.
30597         (create_add_imm_cand): Likewise.
30598         (slsr_process_cast): Likewise.
30599         (slsr_process_copy): Likewise.
30600         (find_candidates_in_block): Handle phi candidates.
30601         (dump_candidate): Likewise.
30602         (unconditional_cands): Delete.
30603         (unconditional_cands_with_known_stride_p): Delete.
30604         (phi_dependent_cand_p): New.
30605         (cand_increment): Handle phi-dependent candidates.
30606         (replace_dependent): Delete.
30607         (replace_mult_candidate): New.
30608         (replace_unconditional_candidate): New.
30609         (incr_vec_index): Move to avoid forward reference.
30610         (create_add_on_incoming_edge): New.
30611         (create_phi_basis): New.
30612         (replace_dependents): Delete.
30613         (replace_conditional_candidate): New.
30614         (phi_add_costs): New.
30615         (replace_uncond_cands_and_profitable_phis): New.
30616         (record_increment): Handle phi adjustments.
30617         (record_phi_increments): New.
30618         (record_increments): Handle phi adjustments.
30619         (phi_incr_cost): New.
30620         (lowest_cost_path): Handle phis.
30621         (total_savings): Likewise.
30622         (analyze_increments): Likewise.
30623         (ncd_with_phi): New.
30624         (ncd_of_cand_and_phis): New.
30625         (nearest_common_dominator_for_cands): Handle phi increments.
30626         (all_phi_incrs_profitable): New.
30627         (replace_profitable_candidates): Handle phi-dependent candidates.
30628         (analyze_candidates_and_replace): Likewise.
30630 2013-05-03  Teresa Johnson  <tejohnson@google.com>
30632         PR bootstrap/57154
30633         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
30634         do not exceed REG_BR_PROB_BASE.
30636 2013-05-03  Jeff Law  <law@redhat.com>
30638         PR tree-optimization/57144
30639         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
30640         operand of the condition will bit into the new type when eliminating
30641         a cast feeding a condition.
30643 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
30645         PR rtl-optimization/57130
30646         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
30647         of COMPARE as in_code to the recursive call if needed.
30649 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
30651         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
30652         (enabled): Handle new members.
30653         * config/i386/sse.md (*vec_concatv2si): Merge from
30654         *vec_concatv2si_sse2 and vec_concatv2si_sse.
30655         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
30657 2013-05-03  Joern Rennecke  <joern.rennecke@embecosm.com>
30659         PR tree-optimization/57027
30660         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
30661         for fnms opportunity, check we got the prerequisite kind
30662         of tree / gimple before using accessor functions.
30664 2013-05-03  Richard Biener  <rguenther@suse.de>
30666         * double-int.h (lshift): New overload without precision
30667         and arith argument.
30668         (operator *=, operator +=, operator -=): Move ...
30669         * double-int.c (operator *=, operator +=, operator -=): ... here
30670         and implement more efficiently.
30671         (mul_double_with_sign): Remove.
30672         (lshift_double): Adjust to take unsinged shift argument, push
30673         dispatching code to callers.
30674         (mul_double_wide_with_sign): Add early out for callers that
30675         are not interested in high parts or overflow.
30676         (lshift): New function.
30677         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
30678         dispatch code here.
30679         (lrotate, rrotate): Use logical shifts.
30680         * expr.c (get_inner_reference): Use lshift.
30681         * fixed-value.c (do_fixed_divide): Likewise.
30682         * tree-dfa.c (get_ref_base_and_extent): Likewise.
30683         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
30684         (indirect_refs_may_alias_p): Likewise.
30685         (stmt_kills_ref_p_1): Likewise.
30687 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
30689         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
30691 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
30693         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
30694         scalar form of FABD instruction.
30696 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
30698         * lra-constraints.c (process_alt_operands): Add checking alt
30699         number to choose the best alternative.
30701 2013-05-02  Richard Biener  <rguenther@suse.de>
30703         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
30704         bitmap and its handling.
30705         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
30707 2013-05-02  Richard Biener  <rguenther@suse.de>
30709         PR middle-end/57140
30710         * tree-inline.c (copy_loops): Properly handle removed loops.
30711         (copy_cfg_body): Mark destination loops for fixup if source
30712         loops needed fixup.
30714 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
30716         PR target/56732
30717         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
30718         generating simple_return for naked functions.
30720 2013-05-02  Martin Jambor  <mjambor@suse.cz>
30722         PR middle-end/56988
30723         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
30724         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
30725         flags match.
30726         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
30727         ipa_agg_replacement_value structures.
30728         (known_aggs_to_agg_replacement_list): Likewise.
30729         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
30730         (read_agg_replacement_chain): Likewise.
30731         (ipcp_transform_function): Also check that by_ref flags match.
30733 2013-05-02  Richard Biener  <rguenther@suse.de>
30735         * graphds.h (struct graph): Add obstack member.
30736         * graphds.c (new_graph): Initialize obstack and allocate
30737         vertices from it.
30738         (add_edge): Allocate edge from the obstack.
30739         (free_graph): Free the obstack instead of all edges and vertices.
30741 2013-05-02  Teresa Johnson  <tejohnson@google.com>
30743         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
30744         divides.
30745         * cfg.c (update_bb_profile_for_threading): Ditto.
30746         * tree-inline.c (copy_bb): Ditto.
30747         (copy_edges_for_bb): Ditto.
30748         (initialize_cfun): Ditto.
30749         (copy_cfg_body): Ditto.
30750         (expand_call_inline): Ditto.
30751         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
30752         (estimate_node_size_and_time): Ditto.
30753         (inline_merge_summary): Ditto.
30754         * cgraphclones.c (cgraph_clone_edge): Ditto.
30755         (cgraph_clone_node): Ditto.
30756         * sched-rgn.c (compute_dom_prob_ps): Ditto.
30757         (compute_trg_info): Ditto.
30759 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
30761         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
30762         S reg when fp attribute set.
30763         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
30765 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
30767         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
30768         New pattern.
30769         (*and_one_cmplsi3_compare0_uxtw): Likewise.
30770         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
30771         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
30773 2013-05-02  Richard Biener  <rguenther@suse.de>
30775         * tree-scalar-evolution.c (scev_info_hasher): Remove.
30776         (struct instantiate_cache_entry): New type.
30777         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
30778         (struct instantiate_cache_type): New type.
30779         (set_instantiated_value, get_instantiated_value): Remove.
30780         (get_instantiated_value_entry): New function.
30781         (instantiate_scev_name): Use the new cache and adjust.
30782         (instantiate_scev_poly): Adjust.
30783         (instantiate_scev_binary): Likewise.
30784         (instantiate_array_ref): Likewise.
30785         (instantiate_scev_convert): Likewise.
30786         (instantiate_scev_not): Likewise.
30787         (instantiate_scev_3): Likewise.
30788         (instantiate_scev_2): Likewise.
30789         (instantiate_scev_r): Likewise.
30790         (instantiate_scev): Likewise.
30791         (resolve_mixers): Likewise.
30793 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
30795         PR target/57091
30796         * lra-constraints.c (best_small_class_operands_num): Remove.
30797         (process_alt_operands): Remove small_class_operands_num.  Take
30798         small classes operands into losers and only if the operand is not
30799         matched.  Modify debugging output.
30800         (curr_insn_transform): Remove best_small_class_operands_num.
30801         Print insn name.
30803 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
30805         * config/aarch64/aarch64-builtins.c
30806         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
30807         * config/aarch64/aarch64-simd-builtins.def
30808         (reduc_splus_): Add new modes.
30809         (reduc_uplus_): New.
30810         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
30811         (reduc_uplus_v4sf): Likewise.
30812         (reduc_splus_v4sf): Likewise.
30813         (aarch64_addv<mode>): Likewise.
30814         (reduc_uplus_<mode>): Likewise.
30815         (reduc_splus_<mode>): Likewise.
30816         (aarch64_addvv2di): Likewise.
30817         (reduc_uplus_v2di): Likewise.
30818         (reduc_splus_v2di): Likewise.
30819         (aarch64_addvv2si): Likewise.
30820         (reduc_uplus_v2si): Likewise.
30821         (reduc_splus_v2si): Likewise.
30822         (reduc_<sur>plus_<mode>): New.
30823         (reduc_<sur>plus_v2di): Likewise.
30824         (reduc_<sur>plus_v2si): Likewise.
30825         (reduc_<sur>plus_v4sf): Likewise.
30826         (aarch64_addpv4sf): Likewise.
30827         * config/aarch64/arm_neon.h
30828         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
30829         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
30830         add UNSPEC_SADDV, UNSPEC_UADDV.
30831         (SUADDV): New.
30832         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
30834 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
30836         * config/aarch64/arm_neon.h
30837         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
30839 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
30841         * config/aarch64/aarch64-builtins
30842         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
30844 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
30846         * config/aarch64/aarch64-simd-builtins.def
30847         (reduc_smax_): New.
30848         (reduc_smin_): Likewise.
30849         (reduc_umax_): Likewise.
30850         (reduc_umin_): Likewise.
30851         (reduc_smax_nan_): Likewise.
30852         (reduc_smin_nan_): Likewise.
30853         (fmax): Remove.
30854         (fmin): Likewise.
30855         (smax): Update for V2SF, V4SF and V2DF modes.
30856         (smin): Likewise.
30857         (smax_nan): New.
30858         (smin_nan): Likewise.
30859         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
30860         (<su><maxmin><mode>3): ...This, refactor.
30861         (s<maxmin><mode>3): New.
30862         (<maxmin_uns><mode>3): Likewise.
30863         (reduc_<maxmin_uns>_<mode>): Refactor.
30864         (reduc_<maxmin_uns>_v4sf): Likewise.
30865         (reduc_<maxmin_uns>_v2si): Likewise.
30866         (aarch64_<fmaxmin><mode>: Remove.
30867         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
30868         new builtin names.
30869         (vmin<q>_f<32,64>): Likewise.
30870         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
30871         (FMAXMIN): New.
30872         (su): Add mappings for smax, smin, umax, umin.
30873         (maxmin): New.
30874         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
30875         (FMAXMIN): Rename as...
30876         (FMAXMIN_UNS): ...This.
30877         (maxminv): Remove.
30878         (fmaxminv): Likewise.
30879         (fmaxmin): Likewise.
30880         (maxmin_uns): New.
30881         (maxmin_uns_op): Likewise.
30883 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
30885         * config/aarch64/arm_neon.h
30886         (vac<ge, gt><sd>_f<32, 64>): Rename to...
30887         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
30888         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
30890 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
30892         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
30893         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
30895 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
30897         * config/aarch64/aarch64-simd.md
30898         (vcond<mode>_internal): Handle special cases for constant masks.
30899         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
30900         (vcondu<mode><mode>): Likewise.
30901         (vcond<v_cmp_result><mode>): New.
30903 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
30905         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
30906         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
30907         * config/aarch64/aarch64-simd-builtins.def
30908         (cmeq): Update to BUILTIN_VALLDI.
30909         (cmgt): Likewise.
30910         (cmge): Likewise.
30911         (cmle): Likewise.
30912         (cmlt): Likewise.
30913         * config/aarch64/arm_neon.h
30914         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
30915         to builtins or C as appropriate.
30917 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
30919         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
30920         (cmgeu): ...This.
30921         (cmhi): Rename to...
30922         (cmgtu): ...This.
30923         * config/aarch64/aarch64-simd.md
30924         (simd_mode): Add SF.
30925         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
30926         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
30927         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
30928         (cstore<mode>_neg): ...This.
30929         * config/aarch64/iterators.md
30930         (VALLF): new.
30931         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
30932         (COMPARISONS): New.
30933         (UCOMPARISONS): Likewise.
30934         (optab): Add missing comparisons.
30935         (n_optab): New.
30936         (cmp_1): Likewise.
30937         (cmp_2): Likewise.
30938         (CMP): Likewise.
30939         (cmp): Remove.
30940         (VCMP_S): Likewise.
30941         (VCMP_U): Likewise.
30942         (V_cmp_result): Add DF, SF modes.
30943         (v_cmp_result): Likewise.
30944         (v): Likewise.
30945         (vmtype): Likewise.
30946         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
30948 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
30950         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
30951         define_insn to define_insn_and_split.
30952         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
30953         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
30954         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
30955         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
30956         (thumb2_negscc): Likewise.
30958 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
30960         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
30962 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
30964         * config/arm/thumb2.md: Remove trailing whitespaces.
30966 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
30968         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
30969         Use gen_int_mode rather than GEN_INT.
30971 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
30973         * value-prof.c (stream_in_histogram_value): Remove the strayed
30974         debug_gimple_stmt.
30976 2013-04-30  Richard Biener  <rguenther@suse.de>
30978         PR middle-end/57122
30979         * cfghooks.c (split_edge): Properly check for the loop latch edge.
30981 2013-04-30  Richard Biener  <rguenther@suse.de>
30983         PR middle-end/57107
30984         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
30986 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
30988         PR rtl-optimization/56957
30989         PR rtl-optimization/57105
30990         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
30991         variable.  Use just INSN_UID for determining whether an insn
30992         should be only disconnected from the insn stream.
30993         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
30995 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
30997         PR tree-optimization/57104
30998         * tsan.c (instrument_expr): Don't instrument accesses to
30999         DECL_HARD_REGISTER VAR_DECLs.
31001 2013-04-30  Richard Biener  <rguenther@suse.de>
31003         * function.h (loops_for_fn): New inline function.
31004         (set_loops_for_fn): Likewise.
31005         * cfgloop.h (place_new_loop): Add struct function parameter.
31006         (get_loop): Likewise.
31007         (get_loops): Likewise.
31008         (number_of_loops): Likewise.
31009         (fel_next): Adjust.
31010         (fel_init): Likewise.
31011         * cfg.c (get_loop_copy): Adjust.
31012         * cfgloop.c (flow_loops_dump): Likewise.
31013         (record_loop_exits): Likewise.
31014         (verify_loop_structure): Likewise.
31015         * cfgloopanal.c (mark_irreducible_loops): Likewise.
31016         (estimate_reg_pressure_cost): Likewise.
31017         (mark_loop_exit_edges): Likewise.
31018         * cfgloopmanip.c (place_new_loop): Likewise.
31019         (add_loop): Likewise.
31020         (duplicate_loop): Likewise.
31021         * graph.c (draw_cfg_nodes): Likewise.
31022         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
31023         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
31024         (extract_affine_chrec): Likewise.
31025         (build_scop_iteration_domain): Likewise.
31026         * graphite.c (graphite_initialize): Likewise.
31027         * ira-build.c (create_loop_tree_nodes): Likewise.
31028         (more_one_region_p): Likewise.
31029         (rebuild_regno_allocno_maps): Likewise.
31030         (mark_loops_for_removal): Likewise.
31031         (mark_all_loops_for_removal): Likewise.
31032         (remove_unnecessary_regions): Likewise.
31033         (ira_build): Likewise.
31034         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
31035         * loop-init.c (fix_loop_structure): Likewise.
31036         (gate_rtl_move_loop_invariants): Likewise.
31037         (gate_rtl_unswitch): Likewise.
31038         (gate_rtl_unroll_and_peel_loops): Likewise.
31039         (rtl_doloop): Likewise.
31040         * lto-streamer-in.c (input_cfg): Likewise.
31041         * lto-streamer-out.c (output_cfg): Likewise.
31042         * modulo-sched.c (sms_schedule): Likewise.
31043         * predict.c (tree_estimate_probability): Likewise.
31044         (tree_estimate_probability_driver): Likewise.
31045         (estimate_loops): Likewise.
31046         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
31047         (move_sese_region_to_fn): Likewise.
31048         (debug_loop_num): Likewise.
31049         * tree-chrec.c (chrec_evaluate): Likewise.
31050         (hide_evolution_in_other_loops_than_loop): Likewise.
31051         (chrec_component_in_loop_num): Likewise.
31052         (reset_evolution_in_loop): Likewise.
31053         (evolution_function_is_invariant_rec_p): Likewise.
31054         * tree-if-conv.c (main_tree_if_conversion): Likewise.
31055         * tree-inline.c (copy_loops): Likewise.
31056         (copy_cfg_body): Likewise.
31057         (tree_function_versioning): Likewise.
31058         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
31059         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
31060         Likewise.
31061         (add_to_evolution_1): Likewise.
31062         (scev_const_prop): Likewise.
31063         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
31064         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
31065         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
31066         (tree_ssa_lim_initialize): Likewise.
31067         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
31068         (verify_loop_closed_ssa): Likewise.
31069         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
31070         (tree_ssa_loop_im): Likewise.
31071         (tree_ssa_loop_unswitch): Likewise.
31072         (tree_vectorize): Likewise.
31073         (check_data_deps): Likewise.
31074         (tree_ssa_loop_ivcanon): Likewise.
31075         (tree_ssa_loop_bounds): Likewise.
31076         (tree_complete_unroll): Likewise.
31077         (tree_complete_unroll_inner): Likewise.
31078         (tree_parallelize_loops): Likewise.
31079         (tree_ssa_loop_prefetch): Likewise.
31080         (tree_ssa_loop_ivopts): Likewise.
31081         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
31082         * tree-vectorizer.c (vectorize_loops): Likewise.
31084 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
31086         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
31087         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
31088         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
31089         with EABI_LINK_SPEC.
31091 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
31093         PR target/44578
31094         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
31095         alternative.
31097 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
31099         PR target/57097
31100         * lra-constraints.c (process_alt_operands): Discourage a bit more
31101         using memory for pseudos.  Print cost dump for alternatives.
31102         Modify cost values for conflicts with early clobbers.
31103         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
31105 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
31107         PR target/57098
31108         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
31110 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
31112         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
31113         from/to S register.
31114         (movdi_aarch64): Support LDR/STR from/to D register.
31116 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
31118         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
31119         or higher by default.
31121 2013-04-29  Richard Biener  <rguenther@suse.de>
31123         PR middle-end/57075
31124         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
31125         even if not adding abnormal edges for calls that can make
31126         abnormal gotos.
31128 2013-04-29  Richard Biener  <rguenther@suse.de>
31130         PR middle-end/57103
31131         * tree-cfg.c (move_stmt_op): Fix condition under which to update
31132         TREE_BLOCK.
31133         (move_stmt_r): Remove redundant checking.
31135 2013-04-29  Teresa Johnson  <tejohnson@google.com>
31137         PR bootstrap/57077
31138         * basic-block.h (apply_scale): New function.
31139         (apply_probability): Use apply_scale.
31140         * gimple-streamer-in.c (input_bb): Ditto.
31141         * lto-streamer-in.c (input_cfg): Ditto.
31142         * lto-cgraph.c (merge_profile_summaries): Ditto.
31143         * tree-optimize.c (execute_fixup_cfg): Ditto.
31144         * tree-inline.c (copy_bb): Update comment to use apply_scale.
31145         (copy_edges_for_bb): Ditto.
31146         (copy_cfg_body): Ditto.
31148 2013-04-29  Tom de Vries  <tom@codesourcery.com>
31150         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
31151         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
31152         (tail_merge_optimize): Handle current_loops == NULL.
31154 2013-04-26  Jeff Law  <law@redhat.com>
31156         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
31157         (simplify_cond_using_ranges): Generalize code to simplify
31158         COND_EXPRs where one argument is a constant and the other
31159         is an SSA_NAME created by an integral type conversion.
31161 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31163         * config/arm/arm.md (store_minmaxsi): Use only when
31164         optimize_insn_for_size_p.
31166 2013-04-29  Christian Bruel  <christian.bruel@st.com>
31168         PR target/57108
31169         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
31171 2013-04-29  Richard Biener  <rguenther@suse.de>
31173         PR middle-end/57089
31174         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
31175         loop tree make sure to schedule a fixup for the child as well.
31176         (expand_omp_for_generic): Properly add loops.
31177         (expand_omp_for_static_nochunk): Likewise.
31178         (expand_omp_for_static_chunk): Likewise.
31179         (expand_omp_for): For the degenerate case fixup loops.
31180         (expand_omp_sections): Fix default bb placement in loops.
31181         (expand_omp_atomic_pipeline): Properly add loops.
31183 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31185         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
31187 2013-04-29  Tom de Vries  <tom@codesourcery.com>
31189         * tree-ssa-tail-merge.c: Update header comment.
31191 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
31193         * config/aarch64/arm_neon.h
31194         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
31195         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
31196         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
31197         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
31198         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
31199         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
31200         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
31201         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
31203 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
31205         * config/aarch64/aarch64-simd.md
31206         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
31207         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
31208         fix_trunc, fixuns_trunc.
31209         (ftrunc<VDQF:mode>2): New.
31210         * config/aarch64/iterators.md (optab): Add fix, fixuns.
31211         (fix_trunc_optab): New.
31213 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
31215         * config/aarch64/aarch64-builtins.c
31216         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
31217         iceilf, lround, iroundf.
31219 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
31221         PR target/54349
31222         * config/i386/i386.h (enum ix86_tune_indices)
31223         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
31224         New, split from X86_TUNE_INTER_UNIT_MOVES.
31225         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
31226         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
31227         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
31228         (TARGET_INTER_UNIT_MOVES): Remove.
31229         * config/i386/i386.c (initial_ix86_tune_features): Update.
31230         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
31231         (ix86_expand_convert_uns_didf_sse): Use
31232         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
31233         (ix86_expand_vector_init_one_nonzero): Ditto.
31234         (ix86_expand_vector_init_interleave): Ditto.
31235         (inline_secondary_memory_needed): Return true for moves from SSE class
31236         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
31237         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
31238         * config/i386/constraints.md (Yi, Ym): Depend on
31239         TARGET_INTER_UNIT_MOVES_TO_VEC.
31240         (Yj, Yn): New constraints.
31241         * config/i386/i386.md (*movdi_internal): Change constraints of
31242         operand 1 from Yi to Yj and from Ym to Yn.
31243         (*movsi_internal): Ditto.
31244         (*movdf_internal): Ditto.
31245         (*movsf_internal): Ditto.
31246         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
31247         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
31248         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
31249         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
31250         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
31251         * config/i386/sse.md (movdi_to_sse): Ditto.
31252         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
31253         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
31254         TARGET_INTER_UNIT_MOVES.
31255         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
31256         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
31257         instead of TARGET_INTER_UNIT_MOVES.
31258         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
31259         operand 1 from Yi to Yj and from Ym to Yn.
31261 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
31263         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
31264         (float_truncate_hi_): Likewise.
31265         (float_extend_lo_): Likewise.
31266         (float_truncate_lo_): Likewise.
31267         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
31268         (aarch64_float_extend_lo_v2df): Likewise.
31269         (vec_unpacks_hi_v4sf): Likewise.
31270         (aarch64_float_truncate_lo_v2sf): Likewise.
31271         (aarch64_float_truncate_hi_v4sf): Likewise.
31272         (vec_pack_trunc_v2df): Likewise.
31273         (vec_pack_trunc_df): Likewise.
31275 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
31277         * config/aarch64/aarch64-builtins.c
31278         (aarch64_fold_builtin): Fold float conversions.
31279         * config/aarch64/aarch64-simd-builtins.def
31280         (floatv2si, floatv4si, floatv2di): New.
31281         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
31282         * config/aarch64/aarch64-simd.md
31283         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
31284         * config/aarch64/iterators.md (FLOATUORS): New.
31285         (optab): Add float, floatuns.
31286         (su_optab): Likewise.
31288 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
31290         * config/aarch64/aarch64-builtins.c
31291         (aarch64_builtin_vectorized_function): Use new names for
31292         fcvt builtins.
31293         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
31294         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
31295         (fcvtzu): Split as...
31296         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
31297         (fcvtas): Split as...
31298         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
31299         (fcvtau): Split as...
31300         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
31301         (fcvtps): Split as...
31302         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
31303         (fcvtpu): Split as...
31304         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
31305         (fcvtms): Split as...
31306         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
31307         (fcvtmu): Split as...
31308         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
31309         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
31310         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
31311         (lfrintnusf, lfrintnudf): Likewise.
31312         * config/aarch64/aarch64-simd.md
31313         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
31314         define_insn.
31315         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
31316         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
31317         (fcvt_pattern): Likewise.
31319 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
31321         * config/aarch64/aarch64-simd.md
31322         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
31323         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
31325 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
31327         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
31328         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
31329         (vrnd<a,m,n,p>_f32): Implement using builtins.
31330         (vrnd<i,x><q>_f<32, 64>): New.
31332 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
31334         * config/aarch64/aarch64-builtins.c
31335         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
31336         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
31337         (frintz): Rename to...
31338         (btrunc): ...this.
31339         (frintp): Rename to...
31340         (ceil): ...this.
31341         (frintm): Rename to...
31342         (floor): ...this.
31343         (frinti): Rename to...
31344         (nearbyint): ...this.
31345         (frintx): Rename to...
31346         (rint): ...this.
31347         (frinta): Rename to...
31348         (round): ...this.
31349         * config/aarch64/aarch64-simd.md
31350         (aarch64_frint<frint_suffix><mode>): Delete.
31351         (<frint_pattern><mode>2): Convert to insn.
31352         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
31353         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
31354         (frint_pattern): Likewise.
31355         (frint_suffix): Likewise.
31357 2013-04-29  Richard Biener  <rguenther@suse.de>
31359         PR tree-optimization/57081
31360         * loop-init.c: Include tree-flow.h.
31361         (loop_optimizer_finalize): Free number of iteration estimates.
31362         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
31364 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
31366         PR tree-optimization/57083
31367         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
31368         non-singleton shift count range, zero extend low_bound for uns case.
31370         * config/i386/predicates.md (general_vector_operand): New predicate.
31371         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
31372         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
31373         if they aren't nonimmediate operands.  If their original values
31374         satisfy const_vector_equal_evenodd_p, don't shift them.
31375         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
31376         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
31377         if not nonimmediate_operand.
31378         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
31379         instead of register_operand.
31380         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
31382 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
31384         * stor-layout.c (finalize_size_functions): Allocate a structure and
31385         reset cfun before dumping the functions.
31387 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
31389         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
31391         PR target/56866
31392         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
31393         use xop_pmacsdqh if uns_p.
31394         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
31395         the immediate rotate count.
31397 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
31399         * rtl.h (struct rtx_def): Add comment for field jump.
31400         (LRA_SUBREG_P): New macro.
31401         * recog.c (register_operand): Check LRA_SUBREG_P.
31402         * lra.c (lra): Add note at the end of RTL code. Align non-empty
31403         stack frame.
31404         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
31405         (lra_final_code_change): Skip subreg change for operators.
31406         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
31407         if there are no operand changes.
31408         * lra-constraints.c (curr_insn_set): New.
31409         (match_reload): Set LRA_SUBREG_P.
31410         (emit_spill_move): Ditto.
31411         (check_and_process_move): Use curr_insn_set. Process only single
31412         set insns.  Don't initialize sec_mem_p and change_p.
31413         (simplify_operand_subreg): Use LRA_SUBREG_P.
31414         (reg_in_class_p): New function.
31415         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
31416         of #ifdef.  Add code to remove cycling.
31417         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
31418         non-null disp.  Reload inner instead of disp when base and index
31419         are null.  Try to put lo_sum into register.
31420         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
31421         (check_and_process_move): Move code for move cost check to
31422         simple_move_p.  Remove equiv_substitution.
31423         (simple_move_p): New function.
31424         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
31425         curr_insn_set.  Call check_and_process_move only for single set
31426         insns.  Use the new function.  Move call of check_and_process_move
31427         after operand equiv substitution and address process.
31429 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
31431         PR go/57045
31432         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
31433         with nonlocal goto receivers or returns twice calls, ignore
31434         unininitialized values from abnormal edges to nl goto receiver
31435         or returns twice call.
31437 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
31439         PR tree-optimization/57051
31440         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
31441         and VEC_RSHIFT_EXPR if shift count is a multiple of element
31442         bitsize.
31444 2013-04-26  Richard Biener  <rguenther@suse.de>
31446         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
31447         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
31448         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
31449         (fixup_loop_arrays_after_move): New function.
31450         (move_sese_region_to_fn): Properly outline the loop tree parts
31451         of the SESE region.
31453 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
31455         * config/i386/i386.md (type, unit): Fix long lines.
31457 2013-04-26  Richard Biener  <rguenther@suse.de>
31459         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
31460         (lto-streamer-out.o): Likewise.
31461         * cfgloop.c (init_loops_structure): Export, add struct function
31462         argument and adjust.
31463         (flow_loops_find): Adjust.
31464         * cfgloop.h (enum loop_estimation): Add EST_LAST.
31465         (init_loops_structure): Declare.
31466         * lto-streamer-in.c: Include cfgloop.h.
31467         (input_cfg): Input the loop tree.
31468         * lto-streamer-out.c: Include cfgloop.h.
31469         (output_cfg): Output the loop tree.
31470         (output_struct_function_base): Do not drop PROP_loops.
31472 2013-03-26  Richard Biener  <rguenther@suse.de>
31474         * tree-cfg.c (execute_build_cfg): Build the loop tree.
31475         (pass_build_cfg): Provide PROP_loops.
31476         (move_sese_region_to_fn): Remove loops that are outlined into fn
31477         for now.
31478         * tree-inline.c: Include cfgloop.h.
31479         (initialize_cfun): Do not drop PROP_loops.
31480         (copy_loops): New function.
31481         (copy_cfg_body): Copy loop structure.
31482         (tree_function_versioning): Initialize destination loop tree.
31483         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
31484         (pass_parallelize_loops): Do IL verification.
31485         * loop-init.c (loop_optimizer_init): Fixup loops if required.
31486         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
31487         the CFG make sure we fixup loops as well.
31488         * tree-ssa-tail-merge.c: Include cfgloop.h.
31489         (replace_block_by): When merging loop latches mark loops for fixup.
31490         * lto-streamer-out.c (output_struct_function_base): Drop
31491         PROP_loops for now.
31492         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
31493         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
31494         * ipa-split.c: Include cfgloop.h.
31495         (split_function): Add the new return block to the loop tree root.
31496         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
31497         whether we have removed the forwarder block.
31498         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
31499         * cfgloop.h (place_new_loop): Declare.
31500         * cfgloopmanip.c (place_new_loop): Export.
31501         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
31502         (tree-switch-conversion.o): Likewise.
31503         (tree-complex.o): Likewise.
31504         (tree-inline.o): Likewise.
31505         (tree-ssa-tailmerge.o): Likewise.
31506         (ipa-split.o): Likewise.
31507         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
31508         (tree-ssa-copy.o): Likewise.
31509         * tree-switch-conversion.c: Include cfgloop.h
31510         (process_switch): If we emit a bit-test cascade, schedule loops
31511         for fixup.
31512         * tree-complex.c: Include cfgloop.h.
31513         (expand_complex_div_wide): Properly add new basic-blocks to loops.
31514         * asan.c: Include cfgloop.h.
31515         (create_cond_insert_point): Properly add new basic-blocks to
31516         loops, schedule loop fixup.
31517         * cfgloop.c (verify_loop_structure): Check that looks are not
31518         marked for fixup.
31519         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
31520         to loops.
31521         (expand_omp_for_generic): Likewise.
31522         (expand_omp_sections): Likewise.
31523         (expand_omp_atomic_pipeline): Schedule loops for fixup.
31524         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
31525         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
31526         is initialized, not when loops are present.
31527         * tree-parloops.c (parallelize_loops): Remove checking here.
31528         * passes.c (init_optimization_passes): Schedule a copy-propagation
31529         pass before complete unrolling of inner loops.
31531 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
31533         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
31534         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
31535         (colorize_init): Add argument to _WIN32 version.
31536         * toplev.c: Include diagnostic-color.h.
31537         (process_options): Default to -fdiagnostics-color=auto if
31538         GCC_COLORS env var is in the environment.
31539         * common.opt (fdiagnostics-color=): Add Var and Init.
31540         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
31541         env var is in the environment, the default is auto rather than never.
31543         * diagnostic.h (file_name_as_prefix): Add context argument.
31544         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
31545         the string as locus.
31546         * langhooks.c (lhd_print_error_function): Adjust caller.
31548 2013-04-25  Lawrence Crowl  <crowl@google.com>
31550         * var-tracking.c (shared_hash_def::htab):
31551         Change type to hash_table.  Update dependent calls and types.
31553 2013-04-25  Lawrence Crowl  <crowl@google.com>
31555         * Makefile.in: Update as needed below.
31557         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
31558         Move declaration to after the type's method definitons.
31560         * attribs.c (htab_t scoped_attributes::attribute_hash):
31561         Change type to hash_table.  Update dependent calls and types.
31563         * bitmap.c (htab_t bitmap_desc_hash):
31564         Change type to hash_table.  Update dependent calls and types.
31566         * cselib.c (htab_t cselib_hash_table):
31567         Change type to hash_table.  Update dependent calls and types.
31569         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
31570         (hash_string_slot_node): Move implementation into lto-streamer.h
31571         struct string_slot_hasher.
31572         (eq_string_slot_node): Likewise.
31574         * data-streamer-out.c: Update output_block::string_hash_table
31575         dependent calls and types.
31577         * dwarf2cfi.c (htab_t trace_index):
31578         Change type to hash_table.  Update dependent calls and types.
31580         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
31581         Change type to hash_table.  Update dependent calls and types.
31582         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
31583         (htab_t optimize_external_refs::map): Likewise.
31584         (htab_t output_comp_unit::extern_map): Likewise.
31585         (htab_t output_comdat_type_unit::extern_map): Likewise.
31586         (htab_t output_macinfo::macinfo_htab): Likewise.
31587         (htab_t optimize_location_lists::htab): Likewise.
31588         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
31590         * except.c (htab_t ehspec_hash_type):
31591         Change type to hash_table.  Update dependent calls and types.
31592         (assign_filter_values::ttypes): Likewise.
31593         (assign_filter_values::ehspec): Likewise.
31594         (sjlj_assign_call_site_values::ar_hash): Likewise.
31595         (convert_to_eh_region_ranges::ar_hash): Likewise.
31597         * gcse.c (htab_t pre_ldst_table):
31598         Change type to hash_table.  Update dependent calls and types.
31600         * ggc-common.c (htab_t saving_htab):
31601         Change type to hash_table.  Update dependent calls and types.
31602         (htab_t loc_hash): Likewise.
31603         (htab_t ptr_hash): Likewise.
31604         (call_count): Rename ggc_call_count.
31605         (call_alloc): Rename ggc_call_alloc.
31606         (loc_descriptor): Rename make_loc_descriptor.
31607         (add_statistics): Rename ggc_add_statistics.
31609         * ggc-common.c (saving_htab):
31610         Change type to hash_table.  Update dependent calls and types.
31612         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
31613         (push_gimplify_context): Likewise.
31614         (pop_gimplify_context): Likewise.
31615         (struct gimple_temp_hash_elt): Added.
31616         (struct gimplify_hasher): Likewise.
31617         (struct gimplify_ctx.temp_htab):
31618         Change type to hash_table.  Update dependent calls and types.
31620         * gimple-fold.c: Include gimplify-ctx.h.
31622         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
31623         Change type to hash_table.  Update dependent calls and types.
31624         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
31625         avoid potential global name collision.
31627         * gimplify.c: Include gimplify-ctx.h.
31628         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
31629         (htab_t gimplify_ctx::temp_htab):
31630         Update dependent calls and types for new type hash_table.
31631         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
31632         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
31634         * gimplify-ctx.h: New.
31635         (struct gimple_temp_hash_elt): Move from gimplify.c.
31636         (class gimplify_hasher): New.
31637         (struct gimplify_ctx): Move from gimple.h.
31638         (htab_t gimplify_ctx::temp_htab):
31639         Change type to hash_table.  Update dependent calls and types.
31641         * graphite-clast-to-gimple.c: Include graphite-htab.h.
31642         (htab_t ivs_params::newivs_index):
31643         Change type to hash_table.  Update dependent calls and types.
31644         (htab_t ivs_params::params_index): Likewise.
31645         (htab_t print_generated_program::params_index): Likewise.
31646         (htab_t gloog::newivs_index): Likewise.
31647         (htab_t gloog::params_index): Likewise.
31649         * graphite.c: Include graphite-htab.h.
31650         4htab_t graphite_transform_loops::bb_pbb_mapping):
31651         Change type to hash_table.  Update dependent calls and types.
31653         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
31654         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
31655         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
31657         * graphite-dependences.c: Include graphite-htab.h.
31658         (loop_is_parallel_p): Change hash table type of parameter.
31660         * graphite-htab.h: New.
31661         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
31662         (extern find_pbb_via_hash): Move from graphite-poly.h.
31663         (extern loop_is_parallel_p): Move from graphite-poly.h.
31664         (extern get_loop_body_pbbs): Move from graphite-poly.h.
31666         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
31667         (extern loop_is_parallel_p): Move to graphite-htab.h.
31668         (extern get_loop_body_pbbs): Move to graphite-htab.h.
31670         * haifa-sched.c (htab_t delay_htab):
31671         Change type to hash_table.  Update dependent calls and types.
31672         (htab_t delay_htab_i2): Likewise.
31674         * ira-color.c (htab_t allocno_hard_regs_htab):
31675         Change type to hash_table.  Update dependent calls and types.
31677         * ira-costs.c (htab_t cost_classes_htab):
31678         Change type to hash_table.  Update dependent calls and types.
31680         * loop-invariant.c (htab_t merge_identical_invariants::eq):
31681         Change type to hash_table.  Update dependent calls and types.
31683         * loop-iv.c (htab_t bivs):
31684         Change type to hash_table.  Update dependent calls and types.
31686         * loop-unroll.c (htab_t opt_info::insns_to_split):
31687         Change type to hash_table.  Update dependent calls and types.
31688         (htab_t opt_info::insns_with_var_to_expand): Likewise.
31690         * lto-streamer.h (struct string_slot): Move from data-streamer.h
31691         (struct string_slot_hasher): New.
31692         (htab_t output_block::string_hash_table):
31693         Change type to hash_table.  Update dependent calls and types.
31695         * lto-streamer-in.c (freeing_string_slot_hasher): New.
31696         (htab_t file_name_hash_table):
31697         Change type to hash_table.  Update dependent calls and types.
31699         * lto-streamer-out.c: Update output_block::string_hash_table dependent
31700         calls and types.
31702         * lto-streamer.c (htab_t tree_htab):
31703         Change type to hash_table.  Update dependent calls and types.
31705         * omp-low.c: Include gimplify-ctx.h.
31707         * passes.c (htab_t name_to_pass_map):
31708         Change type to hash_table.  Update dependent calls and types.
31709         (pass_traverse): Rename to passes_pass_traverse.
31711         * plugin.c (htab_t event_tab):
31712         Change type to hash_table.  Update dependent calls and types.
31714         * postreload-gcse.c (htab_t expr_table):
31715         Change type to hash_table.  Update dependent calls and types.
31716         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
31718         * sese.c (debug_rename_map_1): Make extern.
31719         (htab_t copy_bb_and_scalar_dependences::rename_map):
31720         Change type to hash_table.  Update dependent calls and types.
31722         * sese.h (extern debug_rename_map): Move to .c file.
31724         * store-motion.c (htab_t store_motion_mems_table):
31725         Change type to hash_table.  Update dependent calls and types.
31727         * trans-mem.c (htab_t tm_new_mem_hash):
31728         Change type to hash_table.  Update dependent calls and types.
31730         * tree-browser.c (htab_t TB_up_ht):
31731         Change type to hash_table.  Update dependent calls and types.
31733         * tree-cfg.c (htab_t discriminator_per_locus):
31734         Change type to hash_table.  Update dependent calls and types.
31736         * tree-complex.c: Include tree-hasher.h
31737         (htab_t complex_variable_components):
31738         Change type to hash_table.  Update dependent calls and types.
31740         * tree-eh.c (htab_t finally_tree):
31741         Change type to hash_table.  Update dependent calls and types.
31743         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
31744         struct int_tree_hasher.
31745         (extern int_tree_map_eq): Likewise.
31746         (uid_decl_map_hash): Removed.
31747         (extern decl_tree_map_eq): Likewise.
31749         * tree-hasher.h: New.
31750         (struct int_tree_hasher): New.
31751         (typedef int_tree_htab_type): New.
31753         * tree-inline.c: Include gimplify-ctx.h.
31755         * tree-mudflap.c: Include gimplify-ctx.h.
31757         * tree-parloops.c: Include tree-hasher.h.
31758         (htab_t eliminate_local_variables_stmt::decl_address):
31759         Change type to hash_table.  Update dependent calls and types.
31760         (htab_t separate_decls_in_region::decl_copies): Likewise.
31762         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
31763         Change type to hash_table.  Update dependent calls and types.
31765         * tree-sra.c (candidates):
31766         Change type to hash_table.  Update dependent calls and types.
31768         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
31769         in tree-flow.h.
31770         (int_tree_map_hash): Likewise.
31772         * tree-ssa-dom.c (htab_t avail_exprs):
31773         Change type to hash_table.  Update dependent calls and types.
31775         * tree-ssa-live.c (var_map_base_init::tree_to_index):
31776         Change type to hash_table.  Update dependent calls and types.
31778         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
31779         Change type to hash_table.  Update dependent calls and types.
31781         * tree-ssa-phiopt.c (seen_ssa_names):
31782         Change type to hash_table.  Update dependent calls and types.
31784         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
31785         Change type to hash_table.  Update dependent calls and types.
31787         * tree-ssa-uncprop.c (equiv):
31788         Change type to hash_table.  Update dependent calls and types.
31790 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
31792         PR rtl-optimization/57003
31793         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
31794         call note_stores with kill_clobbered_value callback again after
31795         killing regs_invalidated_by_call.
31797 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
31799         * config/aarch64/aarch64-simd.md
31800         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
31801         (aarch64_simd_bsl<mode>): Likewise.
31802         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
31804 2013-04-25  Marek Polacek  <polacek@redhat.com>
31806         PR tree-optimization/57066
31807         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
31809 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
31811         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
31813 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
31815         * config/aarch64/aarch64-builtins.c
31816         (aarch64_fold_builtin): New.
31817         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
31818         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
31819         * config/aarch64/aarch64-simd-builtins.def (abs): New.
31820         * config/aarch64/arm_neon.h
31821         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
31823 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
31824             Tejas Belagod  <tejas.belagod@arm.com>
31826         * config/aarch64/aarch64-builtins.c
31827         (aarch64_gimple_fold_builtin): New.
31828         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
31829         * config/aarch64/aarch64-simd-builtins.def (addv): New.
31830         * config/aarch64/aarch64-simd.md (addpv4sf): New.
31831         (addvv4sf): Update.
31832         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
31834 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
31836         * config/aarch64/aarch64.md
31837         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
31839 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
31841         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
31842         (*ngcsi_uxtw): New pattern.
31844 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31845             Julian Brown  <julian@codesourcery.com>
31847         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
31848         (TB_DREG): Add T_V4HF.
31849         (v4hf_UP): New macro.
31850         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31851         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31852         Handle initialisation of V4HF. Adjust initialisation of reinterpret
31853         built-ins.
31854         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31855         (arm_vector_mode_supported_p): Handle V4HF.
31856         (arm_mangle_map): Handle V4HFmode.
31857         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
31858         * config/arm/arm_neon_builtins.def: Add entries for
31859         vcvtv4hfv4sf, vcvtv4sfv4hf.
31860         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
31861         (neon_vcvtv4hfv4sf): Likewise.
31862         * config/arm/neon-gen.ml: Handle half-precision floating point
31863         features.
31864         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
31865         * config/arm/arm_neon.h: Regenerate.
31866         * config/arm/neon.ml (type elts): Add F16.
31867         (type vectype): Add T_float16x4, T_floatHF.
31868         (type vecmode): Add V4HF.
31869         (type features): Add Requires_FP_bit feature.
31870         (elt_width): Handle F16.
31871         (elt_class): Likewise.
31872         (elt_of_class_width): Likewise.
31873         (mode_of_elt): Refactor.
31874         (type_for_elt): Handle F16, fix error messages.
31875         (vectype_size): Handle T_float16x4.
31876         (vcvt_sh): New function.
31877         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
31878         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
31879         (string_of_mode): Handle V4HF.
31880         * doc/arm-neon-intrinsics.texi: Regenerate.
31882 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
31884         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
31885         format specifier in 'X' case.
31887 2013-04-25  Alan Modra  <amodra@gmail.com>
31889         PR target/57052
31890         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
31891         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
31892         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
31893         Repeat for many other rotate/shift and mask patterns using subregs.
31894         Name lshiftrt insns.
31895         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
31896         on WORDS_BIG_ENDIAN.
31898 2013-04-25  Alan Modra  <amodra@gmail.com>
31900         * config.gcc: Support little-endian powerpc-linux targets.
31901         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
31902         (LINK_OS_LINUX_SPEC): Define.
31903         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
31904         Preserve MASK_LITTLE_ENDIAN.
31905         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
31906         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
31907         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
31908         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
31909         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
31910         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
31911         Correct fp word order for little-endian.  Don't shift toc entries
31912         smaller than a word for little-endian.
31913         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
31914         (bswapdi2 splits): Correct low-part subreg for little-endian.
31915         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
31916         low/high where such is correct only for be.
31917         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
31918         little-endian for -mcall-aixdesc.
31920 2013-04-25  Alan Modra  <amodra@gmail.com>
31922         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
31923         replace_equiv_address_nv.
31925 2013-04-25  Alan Modra  <amodra@gmail.com>
31927         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
31929 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
31931         Revert:
31932         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
31933         * rtl.h (struct rtx_def): ...
31935 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
31937         PR rtl-optimizations/57046
31938         * lra-constraints (split_reg): Set up lra_risky_transformations_p
31939         for multi-reg splits.
31941 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
31943         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
31945 2013-04-24  Sterling Augustine  <saugustine@google.com>
31947         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
31948         (comp_dir_string, debug_str_dwo_section): New.
31949         (DEBUG_STR_DWO_SECTION): Rename to ...
31950         (DEBUG_DWO_STR_SECTION): ... this.
31951         (DEBUG_NORM_STR_SECTION): Delete.
31952         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
31953         (DEBUG_STR_DWO_SECTION_FLAGS): New.
31954         (find_AT_string): Move most logic to ...
31955         (find_AT_string_in_table): ... here.  New.
31956         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
31957         add_skeleton_AT_string.  Delete logic.
31958         (output_skeleton_debug_sections): Remove call to
31959         add_top_level_skeleton_die_attrs.
31960         (add_comp_dir_attribute): Move logic to comp_dir_string.
31961         (dwarf2out_init): Initialize debug_str_dwo_section.
31962         (output_indirect_string): Call find_string_form.
31963         (output_indirect_strings): Rewrite.
31964         (prune_unused_types): Empty skeleton_debug_str_hash.
31965         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
31966         (dwarf2out_finish):  Call output_indirect_strings.
31968 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
31970         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
31972 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
31974         * rtl.h (struct rtx_def): Add comment for field jump.
31975         (LRA_SUBREG_P): New macro.
31976         * recog.c (register_operand): Check LRA_SUBREG_P.
31977         * lra.c (lra): Add note at the end of RTL code. Align non-empty
31978         stack frame.
31979         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
31980         (lra_final_code_change): Skip subreg change for operators.
31981         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
31982         if there are no operand changes.
31983         * lra-constraints.c (curr_insn_set): New.
31984         (match_reload): Set LRA_SUBREG_P.
31985         (emit_spill_move): Ditto.
31986         (check_and_process_move): Use curr_insn_set. Process only single
31987         set insns.  Don't initialize sec_mem_p and change_p.
31988         (simplify_operand_subreg): Use LRA_SUBREG_P.
31989         (reg_in_class_p): New function.
31990         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
31991         of #ifdef.  Add code to remove cycling.
31992         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
31993         non-null disp.  Reload inner instead of disp when base and index
31994         are null.  Try to put lo_sum into register.
31995         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
31996         (check_and_process_move): Move code for move cost check to
31997         simple_move_p.  Remove equiv_substitution.
31998         (simple_move_p): New function.
31999         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
32000         curr_insn_set.  Call check_and_process_move only for single set
32001         insns.  Use the new function.  Move call of check_and_process_move
32002         after operand equiv substitution and address process.
32004 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
32006         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
32007         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
32008         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
32010 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
32012         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
32014 2013-04-24  Marek Polacek  <polacek@redhat.com>
32016         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
32017         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
32018         (select_loops_exit_conditions): Likewise.
32019         (number_of_iterations_for_all_loops): Likewise.
32020         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
32021         (scev_analysis): Likewise.
32023 2013-04-02  Catherine Moore  <clm@codesourcery.com>
32024             Chao-ying Fu  <fu@mips.com>
32026         * config/mips/micromips.md (jraddiusp): New pattern.
32027         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
32028         instruction if possible.
32030 2013-04-24  Alan Modra  <amodra@gmail.com>
32032         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
32034 2013-04-24  Julian Brown  <julian@codesourcery.com>
32035             Chung-Lin Tang  <cltang@codesourcery.com>
32037         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
32038         dependency behavior in enumeration type DIE generation. Add TODO note
32039         to comments about future DW_FORM_sdata/udata re-work of related code.
32041 2013-04-23  Lawrence Crowl  <crowl@google.com>
32043         * Makefile.in: Update as needed below.
32045         * hash-table.h (class hash_table):
32046         Correct many methods with parameter types compare_type to the correct
32047         value_type.  (Correct code was unlikely to notice the change.)
32048         (hash_table::elements_with_deleted) New.
32049         (class hashtable::iterator): New.
32050         (hashtable::begin()): New.
32051         (hashtable::end()): New.
32052         (FOR_EACH_HASH_TABLE_ELEMENT): New.
32054         * statistics.c (statistics_hashes):
32055         Change type to hash_table.  Update dependent calls and types.
32057         * tree-into-ssa.c (var_infos):
32058         Change type to hash_table.  Update dependent calls and types.
32060         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
32061         Change type to hash_table.  Update dependent calls and types.
32063         * tree-ssa-loop-im.c (struct mem_ref.refs):
32064         Change type to hash_table.  Update dependent calls and types.
32066         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
32067         Change type to hash_table.  Update dependent calls and types.
32069         * tree-ssa-sccvn.c (vn_tables_s::nary):
32070         Change type to hash_table.  Update dependent calls and types.
32071         (vn_tables_s::phis): Likewise.
32072         (vn_tables_s::references): Likewise.
32074         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
32075         (vn_reference_eq): Update parameter and return types.
32077         * tree-ssa-structalias.c (pointer_equiv_class_table):
32078         Change type to hash_table.  Update dependent calls and types.
32079         (location_equiv_class_table): Likewise.
32081         * tree-vect-data-refs.c: Consequential changes for making
32082         peeling a hash_table.
32084         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
32085         (destroy_loop_vec_info): Dependent hash_table update.
32087         * tree-vectorizer.h (peeling_htab):
32088         Change type to hash_table.  Update dependent calls and types.
32090 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
32092         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
32093         to check the register content is equal or not.
32094         * lra-constraints.c (match_reload): Use lra_assign_reg_val
32095         to assign register content record.
32096         * lra-eliminations.c (update_reg_eliminate): Use
32097         lra_update_reg_val_offset to update register content offset.
32098         * lra-int.h (struct lra_reg): Add offset member.
32099         (lra_reg_val_equal_p): New static inline function.
32100         (lra_update_reg_val_offset): New static inline function.
32101         (lra_assign_reg_val): New static inline function.
32102         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
32103         to assign register content record.
32104         (initialize_lra_reg_info_element): Initial offset to zero.
32106 2013-04-23  Catherine Moore  <clm@codesourcery.com>
32108         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
32109         operands.  Record compression.
32111 2013-04-23  Xinliang David Li  <davidxl@google.com>
32113         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
32115 2013-04-23  Richard Biener  <rguenther@suse.de>
32117         PR middle-end/57036
32118         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
32119         parameter, only add abnormal goto edges from the copied body
32120         if the call could perform abnormal gotos.
32121         (copy_cfg_body): Adjust.
32123 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
32125         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
32127 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
32129         * coretypes.h (gimple_stmt_iterator): Add struct to make
32130         compatible with C.
32132 2013-04-23  Richard Biener  <rguenther@suse.de>
32134         PR tree-optimization/57026
32135         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
32136         from SSA names occuring in abnormal PHI nodes.
32138 2013-04-22  Andi Kleen  <ak@linux.intel.com>
32140         * lto/lto.c (print_lto_report_1): Fix LTO report names.
32142 2013-04-22  Andi Kleen  <ak@linux.intel.com>
32144         * lto/lto.c (print_lto_report_1): Declare early.
32145         (read_cgraph_and_symbols): Call print_lto_report_1 early.
32147 2013-04-22  Andi Kleen  <ak@linux.intel.com>
32149         * common.opt (-flto-report-wpa): Add.
32150         * doc/invoke.texi (-flto-report-wpa): Add.
32151         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
32152         (lto_main): dito.
32154 2013-04-22  Xinliang David Li  <davidxl@google.com>
32156         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
32157         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
32158         * Makefile.in: New dependency
32160             David Daney <ddaney.cavm@gmail.com>
32162         * configure.ac (gcc_cv_as_micromips_support):  Use the
32163         --fatal-warnings option.
32164         * configure: Regenerate.
32166 2013-04-22  Marek Polacek  <polacek@redhat.com>
32168         PR sanitizer/56990
32169         * tsan.c (instrument_expr): Don't instrument expression
32170         in case its size is zero.
32172 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
32174         PR target/57032
32175         Revert:
32176         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
32178         * config/alpha/alpha.c (TARGET_LRA_P): New define.
32180 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
32182         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
32183         (gimple_stmt_iterator): New typedef.
32184         * gimple.h (gimple_stmt_iterator): Rename to...
32185         (gimple_stmt_iterator_d): ... This.
32186         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
32187         trees be valid for GIMPLE and GENERIC.
32188         (TARGET_GIMPLE_FOLD_BUILTIN): New.
32189         * gimple-fold.c (gimple_fold_call): Call target hook
32190         gimple_fold_builtin.
32191         * hooks.c (hook_bool_gsiptr_false): New.
32192         * hooks.h (hook_bool_gsiptr_false): New.
32193         * target.def (fold_stmt): New.
32194         * doc/tm.texi: Regenerate.
32196 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
32198         PR target/57018
32199         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
32200         a set sp if no stack realignment.
32202 2013-04-22  Nick Clifton  <nickc@redhat.com>
32204         * config.gcc (tilegx-linux): Extend extra_objs rather than
32205         overwriting it.
32206         (tilepro-linux): Likewise.
32208 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
32210         * config/aarch64/aarch64-builtins.c
32211         (CF): Remove.
32212         (CF0, CF1, CF2, CF3, CF4, CF10): New.
32213         (VAR<1-12>): Add MAP parameter.
32214         (BUILTIN_*): Likewise.
32215         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
32216         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
32217         (aarch64_ushl_n<mode>): Likewise.
32218         (aarch64_sshr_n<mode>): Likewise.
32219         (aarch64_ushr_n<mode>): Likewise.
32220         (aarch64_<maxmin><mode>): Likewise.
32221         (aarch64_sqrt<mode>): Likewise.
32222         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
32223         (vshr<q>_n_*): Likewise.
32225 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
32227         * config/aarch64/aarch64-builtins.c
32228         (aarch64_simd_builtin_type_mode): Handle SF types.
32229         (sf_UP): Define.
32230         (BUILTIN_GPF): Define.
32231         (aarch64_init_simd_builtins): Handle SF types.
32232         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
32233         (frecps): Likewise.
32234         (frecpx): Likewise.
32235         * config/aarch64/aarch64-simd.md
32236         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
32237         (aarch64_frecpe<mode>): New.
32238         (aarch64_frecps<mode>): Likewise.
32239         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
32240         (v8type): Add frecp<esx>.
32241         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
32242         (aarch64_frecps<mode>): Likewise.
32243         * config/aarch64/iterators.md (FRECP): New.
32244         (frecp_suffix): Likewise.
32245         * config/aarch64/arm_neon.h
32246         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
32248 2013-04-22  Christian Bruel  <christian.bruel@st.com>
32250         PR target/56995
32251         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
32252         (REG_CLASS_NAMES): Idem.
32253         (REG_CLASS_CONTENTS): Idem.
32254         (REGCLASS_HAS_FP_REG): Idem.
32255         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
32256         (sh_conditional_register_usage): Idem.
32258 2013-04-21  Jeff Law  <law@redhat.com>
32260         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
32261         (ssa_forward_propagate_and_combine): Use it.
32263 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
32265         * lra.c: Update the flow chart diagram.
32267 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
32269         PR rtl-optimization/56847
32270         * lra-constraints.c (process_alt_operands): Discourage alternative
32271         with non-matche doffsettable memory constraint fro memory with
32272         known offset.
32274 2013-04-19  Richard Biener  <rguenther@suse.de>
32276         PR tree-optimization/56982
32277         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
32278         function.
32279         * gimplify.c (gimplify_call_expr): Notice special calls.
32280         (gimplify_modify_expr): Likewise.
32281         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
32282         abnormal control flow receivers.
32283         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
32284         in the same way as cfun->has_nonlocal_labels.
32285         (gimple_purge_dead_abnormal_call_edges): Likewise.
32286         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
32287         receivers start a basic-block.
32289 2013-04-19  Richard Biener  <rguenther@suse.de>
32291         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
32292         member ...
32293         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
32294         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
32295         (SLP_TREE_LOAD_PERMUTATION): Add.
32296         (vect_transform_slp_perm_load): Adjust prototype.
32297         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
32298         (vect_free_slp_instance): Likewise.
32299         (vect_create_new_slp_node): Likewise.
32300         (vect_supported_slp_permutation_p): Remove.
32301         (vect_slp_rearrange_stmts): Adjust.
32302         (vect_supported_load_permutation_p): Likewise.  Inline
32303         vect_supported_slp_permutation_p here.
32304         (vect_analyze_slp_instance): Compute load permutations per
32305         slp node instead of per instance.
32306         (vect_get_slp_defs): Adjust.
32307         (vect_transform_slp_perm_load): Likewise.
32308         (vect_schedule_slp_instance): Remove redundant code.
32309         (vect_schedule_slp): Remove hack for PR56270, add it ...
32310         * tree-vect-stmts.c (vectorizable_load): ... here, do not
32311         CSE loads for SLP.  Adjust.
32313 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
32315         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
32316         spelling in two comments.
32318 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
32320         PR target/56797
32321         * config/arm/arm.c (load_multiple_sequence): Require SP
32322         as base register for loads if SP is in the register list.
32324 2013-04-19  Martin Jambor  <mjambor@suse.cz>
32326         PR tree-optimization/56718
32327         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
32328         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
32329         and made public.  Adjusted all callers.
32330         (ipa_intraprocedural_devirtualization): New function.
32331         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
32332         (ipa_intraprocedural_devirtualization): Likewise.
32333         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
32335 2013-04-19  Richard Biener  <rguenther@suse.de>
32337         PR tree-optimization/57000
32338         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
32340 2013-04-19  Terry Guo  <terry.guo@arm.com>
32342         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
32343         Replace with ...
32344         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
32345         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
32346         (cortex_m4_fmacs): Use new reservations.
32347         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
32349 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
32351         PR rtl-optimization/56999
32352         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
32353         related code.
32354         (lra_coalesce): Remove split_origin_bitmap and related code.
32355         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
32356         ranges if necessary.
32358 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
32360         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
32361         New array.
32362         (ix86_expand_call): Remove clobbered_registers array and use
32363         x86_64_ms_sysv_extra_clobbered_registers instead.
32364         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
32365         Declare here.
32366         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
32367         predicate.
32368         * config/i386/i386.md (*call_rex64_ms_sysv): Use
32369         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
32370         (*call_value_rex64_ms_sysv): Ditto.
32372 2013-04-18  Cary Coutant  <ccoutant@google.com>
32374         * dwarf2out.c (output_pubnames): Check die_perennial_p of
32375         parent instead of die_mark.
32377 2013-04-18  Diego Novillo  <dnovillo@google.com>
32379         * gimple.c (create_gimple_tmp): New.
32380         (get_expr_type): New.
32381         (build_assign): New.
32382         (build_type_cast): New.
32383         * gimple.h (enum ssa_mode): Define.
32384         (gimple_seq_set_location): New.
32385         * asan.c (build_check_stmt): Change some gimple_build_* calls
32386         to use build_assign and build_type_cast.
32388 2013-04-18  Richard Biener  <rguenther@suse.de>
32390         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
32391         handle negative step.  Remove redundant checks.
32392         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
32393         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
32394         for negative step and grouped loads fail to vectorize.
32396 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
32398         * emit-rtl.c (reset_insn_used_flags): New function.
32399         (reset_all_used_flags): Use it.
32400         (verify_insn_sharing): New function.
32401         (verify_rtl_sharing): Fix verification for SEQUENCEs.
32403 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
32405         PR tree-optimization/56984
32406         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
32407         and (x >> M) >= N don't register any assertion if N << M is the
32408         minimum value.
32410 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
32412         * lower-subreg.c (resolve_simple_move): If called self-recursive,
32413         do not delete_insn insns that have not yet been emitted, only
32414         unlink them with remove_insn.
32415         * df-scan.c (df_insn_delete): Revert r197492.
32417 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
32419         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
32420         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
32422 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
32424         * config/arm/arm.md (movsicc_insn): Convert define_insn into
32425         define_insn_and_split.
32426         (and_scc,ior_scc,negscc): Likewise.
32427         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
32429 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
32431         * config/arm/arm.c (use_return_insn): Return 0 for targets that
32432         can benefit from using a sequence of LDRD instructions in epilogue
32433         instead of a single LDM instruction.
32435 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32437         PR 45688
32438         * doc/extend.texi: Fix typo.
32440 2013-04-17  Richard Biener  <rguenther@suse.de>
32442         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
32443         (vect_build_slp_tree): ... here.
32444         (vect_build_slp_tree_1): Compute which stmts of the SLP group
32445         match.  Remove special-casing of mismatched complex loads.
32446         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
32447         re-try the match with swapped commutative operands.
32448         (vect_supported_load_permutation_p): Remove special-casing of
32449         mismatched complex loads.
32450         (vect_analyze_slp_instance): Adjust.
32452 2013-04-17  Richard Biener  <rguenther@suse.de>
32454         PR rtl-optimization/56921
32455         * cfgloop.h (struct loop): Add simple_loop_desc member.
32456         (struct niter_desc): Mark with GTY(()).
32457         (simple_loop_desc): Do not use aux field but simple_loop_desc.
32458         * loop-iv.c (get_simple_loop_desc): Likewise.
32459         (free_simple_loop_desc): Likewise.
32461         Revert
32462         2013-04-16  Richard Biener  <rguenther@suse.de>
32464         PR rtl-optimization/56921
32465         * loop-init.c (pass_rtl_move_loop_invariants): Add
32466         TODO_do_not_ggc_collect to todo_flags_finish.
32467         (pass_rtl_unswitch): Same.
32468         (pass_rtl_unroll_and_peel_loops): Same.
32469         (pass_rtl_doloop): Same.
32471 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
32473         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
32474         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
32475         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
32476         references.
32477         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
32478         * tree-streamer.c (record_common_node): Adjust reference in comment.
32480 2013-04-17  Terry Guo  <terry.guo@arm.com>
32482         * config/arm/cortex-m4.md: Add a new bypass.
32484 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
32486         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
32487         New pattern.
32488         (*subs_<optab><mode>_multp2): New pattern.
32489         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
32490         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
32492 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
32494         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
32495         (*subs_mul_imm_<mode>): New pattern.
32497 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
32499         PR target/56948
32500         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
32501         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
32502         (vsx_movti_32bit): Change j->wa to O->wa.
32504 2013-04-16  Richard Biener  <rguenther@suse.de>
32506         PR rtl-optimization/56921
32507         * loop-init.c (pass_rtl_move_loop_invariants): Add
32508         TODO_do_not_ggc_collect to todo_flags_finish.
32509         (pass_rtl_unswitch): Same.
32510         (pass_rtl_unroll_and_peel_loops): Same.
32511         (pass_rtl_doloop): Same.
32513 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
32515         * config/arm/arm.c (emit_multi_reg_push): New declaration
32516         for an existing function.
32517         (arm_emit_strd_push): New function.
32518         (arm_expand_prologue): Used here.
32519         (arm_emit_ldrd_pop): New function.
32520         (arm_expand_epilogue): Used here.
32521         (arm_get_frame_offsets): Update condition.
32522         (arm_emit_multi_reg_pop): Add a special case for load of a single
32523         register with writeback.
32525 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
32527         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
32528         description.
32530 2013-04-16  Richard Biener  <rguenther@suse.de>
32532         PR tree-optimization/56756
32533         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
32534         (first_mem_ref_loc): New.
32535         (execute_sm): Place the load temporarily before a previous
32536         access instead of in the latch edge to ensure its SSA dependencies
32537         are defined at points dominating the load.
32539 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
32541         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
32542         correct fix by moving header and footer insn to the footer of
32543         the merged basic block.  Clear BB_END of the merged-away block.
32545         PR middle-end/43631
32546         * emit-rtl.c (make_note_raw): New function.
32547         (link_insn_into_chain): New static inline function.
32548         (add_insn): Use it.
32549         (add_insn_before, add_insn_after): Factor insn chain linking code...
32550         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
32551         using link_insn_into_chain.
32552         (note_outside_basic_block_p): New helper function for emit_note_after
32553         and emit_note_before.
32554         (emit_note_after): Use nobb variant of add_insn_after if the note
32555         should not be contained in a basic block.
32556         (emit_note_before): Use nobb variant of add_insn_before if the note
32557         should not be contained in a basic block.
32558         (emit_note_copy): Use make_note_raw.
32559         (emit_note): Likewise.
32560         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
32561         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
32562         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
32563         the moved barrier the tail of the basic block it follows.
32564         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
32566 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
32568         PR tree-optimization/56962
32569         * gimple-ssa-strength-reduction.c (record_increment): Only set
32570         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
32571         either rhs1 or rhs2 is equal to c->base_expr.
32573 2013-04-15  Richard Biener  <rguenther@suse.de>
32575         PR tree-optimization/56933
32576         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
32577         member.
32578         (GROUP_READ_WRITE_DEPENDENCE): Remove.
32579         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
32580         * tree-vect-data-refs.c (vect_analyze_group_access): Move
32581         dependence check ...
32582         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
32583         ... here.
32584         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
32585         GROUP_READ_WRITE_DEPENDENCE.
32587 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32589         * emit-rtl.c (reset_all_used_flags): New function.
32590         (verify_rtl_sharing): Call reset_all_used_flags before and after
32591         performing the checks.
32593 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32595         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
32596         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
32597         * config/arm/constraints.md (De): New constraint.
32598         * config/arm/neon.md (anddi3_neon): Delete.
32599         (neon_vand<mode>): Expand to standard anddi3 pattern.
32600         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
32601         Move earlier in the file.
32602         (neon_inv_logic_op2): Likewise.
32603         (arm_anddi_operand_neon): New predicate.
32605 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32607         * configure.ac (gcc_cv_ld_as_needed): Set
32608         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
32609         Use -z ignore, -z record on *-*-solaris2*.
32610         (HAVE_LD_AS_NEEDED): Update comment.
32611         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
32612         * configure: Regenerate.
32613         * config.in: Regenerate.
32614         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
32615         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
32616         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
32617         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
32618         equivalents.  Fix markup.
32619         * doc/tm.texi: Regenerate.
32621 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
32623         * config/i386/i386.opt: New option mstack-protector-guard=.
32624         * config/i386/i386-opts.h: Add enum stack_protector_guard.
32625         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
32626         TARGET_SSP_TLS_GUARD.
32627         * config/i386/i386.c (ix86_option_override_internal): Set
32628         ix86_stack_protector_guard.
32629         * config/i386/i386.md (stack_protect_set): Enable for
32630         TARGET_SSP_TLS_GUARD only.
32631         (stack_protect_set_<mode>): Ditto.
32632         (stack_protect_test): Ditto.
32633         (stack_protect_test_<mode>): Ditto.
32634         * doc/invoke.texi (i386 Option): Document.
32636 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
32638         PR target/56890
32639         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
32640         (S_MODES): Set H_MODE bit.
32641         (SF_MODES): Set only S_MODE and SF_MODE bits.
32642         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
32643         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
32644         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
32645         <MODE_FLOAT>: Likewise.
32647 2013-04-15  Joey Ye  <joey.ye@arm.com>
32649         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
32651 2013-04-15  Joey Ye  <joey.ye@arm.com>
32653         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
32654         for real far jump.
32655         (thumb_far_jump_used_p): Count instruction size and set
32656         far_jump_used.
32658 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
32660         * reorg.c (fill_simple_delay_slots): Reindent block of code.
32661         * resource.c (mark_target_live_regs): Reformat conditional block.
32663 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
32665         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
32666         notes, they are emitted only just before final.
32667         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
32669 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
32671         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
32672         * cfgrtl.c (delete_insn): Call it here instead.
32673         * lra-spills.c (lra_final_code_change): Use delete_insn.
32674         * haifa-sched.c (sched_remove_insn): Likewise.
32675         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
32676         returning to the nop pool.
32677         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
32678         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
32680 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
32682         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
32683         * doc/tm.texi: Regenerated.
32685 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
32687         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
32688         QImode checks.
32690 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
32692         * df-core.c (df_find_def): Compare register numbers.
32693         (df_find_use): Likewise.
32695 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
32697         PR target/56903
32698         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
32699         lra_in_progress for return.
32701 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
32703         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
32704         define_insn into define_insn_and_split and emit movsicc patterns.
32706 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
32708         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
32710 2013-04-12  Richard Biener  <rguenther@suse.de>
32712         * tree-pass.h (TODO_do_not_ggc_collect): New.
32713         * passes.c (execute_one_ipa_transform_pass): Honor
32714         TODO_do_not_ggc_collect.
32715         (execute_one_pass): Likewise.
32717         Revert
32718         2013-04-10  Richard Biener  <rguenther@suse.de>
32720         * passes.c (init_optimization_passes): Remove reload pass.
32721         * ira.c (do_reload): Merge into ...
32722         (ira): ... this.
32723         (rest_of_handle_reload): Remove.
32724         (pass_reload): Likewise.
32725         * config/i386/i386.c (ix86_option_override): Refer to ira instead
32726         of reload for vzeroupper pass placement.
32728 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
32730         PR tree-optimization/56918
32731         PR tree-optimization/56920
32732         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
32733         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
32734         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
32735         use wide_mul_with_sign method.
32737 2013-04-12  Richard Biener  <rguenther@suse.de>
32739         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
32740         not be considered a gimple constant.
32742 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
32744         * fold-const.c (const_binop): Handle vector shifts by a scalar.
32745         (fold_binary_loc): Call const_binop also for mixed vector-scalar
32746         operations.
32748 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32749             Jakub Jelinek  <jakub@redhat.com>
32751         * opts.c: Include diagnostic-color.h.
32752         (common_handle_option): Handle OPT_fdiagnostics_color_.
32753         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
32754         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
32755         (diagnostic-color.o): New.
32756         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
32757         (diagnostic_color_rule): New enum.
32758         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
32759         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
32760         the location string.
32761         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
32762         either NULL, or color kind.
32763         * diagnostic-color.c: New file.
32764         * diagnostic-color.h: New file.
32765         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
32766         arguments.
32767         * doc/invoke.texi (-fdiagnostics-color): Document.
32768         * pretty-print.h (pp_show_color): Define.
32769         (struct pretty_print_info): Add show_color field.
32770         * diagnostic.c: Include diagnostic-color.h.
32771         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
32772         macros.  Colorize error:, warning: etc. strings and also the location
32773         string.
32774         (diagnostic_show_locus): Colorize the caret line.
32775         * pretty-print.c: Include diagnostic-color.h.
32776         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
32777         inside of %< %> quotes or quoted through q format modifier.
32779 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32781         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
32783 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
32785         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
32786         code in CC_NZ mode.
32787         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
32788         pattern.
32790 2013-04-11  Marek Polacek  <polacek@redhat.com>
32792         PR tree-optimization/48184
32793         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
32795 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
32797         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
32798         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
32799         (skip_simple_arithmetic): Tidy up.
32800         * tree.h (skip_simple_constant_arithmetic): Declare.
32802 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
32804         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
32806 2013-04-11  Richard Biener  <rguenther@suse.de>
32808         * tree-vect-loop.c (get_initial_def_for_induction): Properly
32809         generate vector constants.
32811 2013-04-11  Richard Biener  <rguenther@suse.de>
32813         PR tree-optimization/56878
32814         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
32815         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
32816         New function.
32817         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
32818         Prefer to align the DR with the most invariant base address.
32820 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
32822         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
32823         comment.
32825 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
32827         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
32828         floating-point vector comparisons against 0.
32830 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
32832         PR tree-optimization/56899
32833         * fold-const.c (extract_muldiv_1): Apply distributive law
32834         only if TYPE_OVERFLOW_WRAPS (ctype).
32836 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
32838         PR target/56124
32839         * ira-costs.c (scan_one_insn): Check whether the source rtx of
32840         loading has side effect.
32842 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
32844         * config/sparc/sparc.c: Include tree-pass.h.
32845         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
32846         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
32847         head of file.  Change return type.  Split off gate function.
32848         (sparc_gate_work_around_errata): New function.
32849         (pass_work_around_errata): New pass definition.
32850         (insert_pass_work_around_errata) New pass insert definition to
32851         insert pass_work_around_errata just after delayed-branch scheduling.
32852         (sparc_option_override): Insert the pass.
32853         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
32855 2013-04-10  David S. Miller  <davem@davemloft.net>
32857         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
32858         or -mcpu=hypersparc.
32860         * target.def (cstore_mode): New hook.
32861         * target.h: Include insn-codes.h
32862         * targhooks.c: Likewise.
32863         (default_cstore_mode): New function.
32864         * targhooks.h: Declare it.
32865         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
32866         * doc/tm.texi: Rebuild.
32867         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
32868         target hook, rather than inspecting the insn_data.
32869         * config/sparc/sparc.c (sparc_cstore_mode): New function.
32870         (TARGET_CSTORE_MODE): Redefine.
32871         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
32872         result patterns.
32873         * config/sparc/predicates.md (cstore_result_operand): New special
32874         predicate.
32875         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
32876         Use it for operand 0.
32877         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
32878         (*snesi_special): Likewise.
32879         (*snesi_zero): Likewise.
32880         (*seqsi_zero): Likewise.
32881         (*sltu_insn): Likewise.
32882         (*sgeu_insn): Likewise.
32883         (*seqdi_special): Make operand 0 and comparison operation be of
32884         DImode.
32885         (*snedi_special): Likewise.
32886         (*snedi_special_vis3): Likewise.
32887         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
32888         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
32889         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
32890         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
32891         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
32892         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
32893         (*sltu_extend_sp64): Likewise.
32894         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
32895         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
32896         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
32897         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
32898         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
32900 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
32902         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
32903         (aarch64_start_file): Use the new function.
32905 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
32906             Jason Merrill  <jason@redhat.com>
32908         * common.opt: Add -gdwarf.
32909         * opts.c (common_handle_option): Handle it.
32910         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
32912 2013-04-10  Richard Biener  <rguenther@suse.de>
32914         * passes.c (execute_todo): Do not call ggc_collect conditional here.
32915         (execute_one_ipa_transform_pass): But unconditionally here.
32916         (execute_one_pass): And here.
32917         (init_optimization_passes): Remove reload pass.
32918         * tree-pass.h (TODO_ggc_collect): Remove.
32919         (pass_reload): Likewise.
32920         * ira.c (do_reload): Merge into ...
32921         (ira): ... this.
32922         (rest_of_handle_reload): Remove.
32923         (pass_reload): Likewise.
32924         * config/i386/i386.c (ix86_option_override): Refer to ira instead
32925         of reload for vzeroupper pass placement.
32926         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
32927         and todo_flags_finish of all passes.
32929 2013-04-10  Richard Biener  <rguenther@suse.de>
32931         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
32932         first_const_oprnd field, rename first_def_type to first_op_type.
32933         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
32934         (vect_get_and_check_slp_defs): Always use the type of the
32935         operand.  Allow mixed vect_external_def, vect_constant_def types.
32936         (vect_get_constant_vectors): Handle mixed vect_external_def,
32937         vect_constant_def types.
32939 2013-04-10  Joern Rennecke  <joern.rennecke@embecosm.com>
32941         PR tree-optimization/55524
32942         * tree-ssa-math-opts.c
32943         (convert_mult_to_fma): Don't use an fms construct
32944         when we don't have an fms operation, but fnma, and it looks
32945         likely that we'll be able to use the latter.
32947 2013-04-10  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
32949         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
32950         function.
32951         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
32952         inline fail caused by overwritable functions.
32954 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
32956         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
32957         unnecessary bits in the constant power of two case.
32959 2013-04-10  Richard Biener  <rguenther@suse.de>
32961         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
32962         broken code swapping operands.
32963         (vect_build_slp_tree): Do not compute load permutations here.
32964         (vect_analyze_slp_instance): Compute load permutations here,
32965         after building the SLP tree.
32967 2013-04-09  Christian Bruel  <christian.bruel@st.com>
32969         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
32970         of next/prev_real_insn.
32972 2013-04-09  Jan Hubicka  <jh@suse.cz>
32974         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
32975         Drop aliased parameter.
32976         (function_and_variable_visibility): Do not handle alias pairs.
32977         * cgraph.c (varpool_externally_visible_p): Update prototype.
32978         * varpool.c (varpool_add_new_variable): Update.
32980 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32982         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
32984 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
32986         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
32988         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
32990 2013-04-09  Marek Polacek  <polacek@redhat.com>
32992         PR tree-optimization/48762
32993         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
32995 2013-04-09  Richard Biener  <rguenther@suse.de>
32997         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
32998         dealing with cost.
32999         (vect_build_slp_tree): Likewise.
33000         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
33001         calculating the cost of a SLP instance.
33002         (vect_analyze_slp_instance): Use it from here, after building
33003         the SLP tree.
33005 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
33007         PR middle-end/56883
33008         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
33009         expand_omp_for_static_chunk): Use simple_p = true in
33010         force_gimple_operand_gsi calls when assigning to addressable decls.
33012 2013-04-09  Jeff Law  <law@redhat.com>
33014         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
33015         when the boolean was created by converting a wider object which
33016         had a boolean range.
33018 2013-04-09  Richard Biener  <rguenther@suse.de>
33020         * tree-vectorizer.h (slp_void_p): Remove.
33021         (slp_tree): Typedef before _slp_tree declaration.
33022         (struct _slp_tree): Use a vector of slp_tree as children.
33023         (vect_get_place_in_interleaving_chain): Remove.
33024         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
33025         Move ...
33026         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
33027         and make static.
33028         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
33029         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
33030         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
33031         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
33032         Use slp_node instead of slp_void_p and adjust.
33034 2013-04-09  Richard Biener  <rguenther@suse.de>
33036         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
33037         work that is not necessary.
33039 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
33041         PR tree-optimization/56854
33042         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
33043         forward into clobber stmts if it would change MEM_REF lhs into
33044         non-MEM_REF.
33046 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
33048         * tree.c (type_hash_lookup, type_hash_add): Make static.
33049         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
33051 2013-04-09  Richard Biener  <rguenther@suse.de>
33053         * tree.h (unsave_expr_now): Remove.
33054         * tree-inline.c (mark_local_for_remap_r): Remove.
33055         (unsave_expr_1): Likewise.
33056         (unsave_r): Likewise.
33057         (unsave_expr_now): Likewise.
33058         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
33059         (propagate_tree_value): Likewise.
33061 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
33063         * doc/rtl.texi (sequence): Rewrite documentation to match the
33064         current use of SEQUENCE rtl objects.
33065         * rtl.def (SEQUENCE): Likewise.
33067         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
33068         Update documentation.
33069         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
33070         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
33072         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
33074 2013-04-08  Teresa Johnson  <tejohnson@google.com>
33076         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
33077         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33078         methods.
33079         (estimate_edge_size_and_time): Add comment to suggest using rounding
33080         methods.
33081         (estimate_node_size_and_time): Ditto.
33082         (remap_edge_change_prob): Use helper rounding divide methods.
33083         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
33084         (gimple_mod_pow2_value_transform): Ditto.
33085         (gimple_mod_subtract_transform): Ditto.
33086         (gimple_ic_transform): Ditto.
33087         (gimple_stringops_transform): Ditto.
33088         * stmt.c (conditional_probability): Ditto.
33089         (emit_case_dispatch_table): Ditto.
33090         * lto-cgraph.c (merge_profile_summaries): Ditto.
33091         * tree-optimize.c (execute_fixup_cfg): Ditto.
33092         * cfgcleanup.c (try_forward_edges): Ditto.
33093         * cfgloopmanip.c (scale_loop_profile): Ditto.
33094         (loopify): Ditto.
33095         (duplicate_loop_to_header_edge): Ditto.
33096         (lv_adjust_loop_entry_edge): Ditto.
33097         * tree-vect-loop.c (vect_transform_loop): Ditto.
33098         * profile.c (compute_branch_probabilities): Ditto.
33099         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
33100         * lto-streamer-in.c (input_cfg): Ditto.
33101         * gimple-streamer-in.c (input_bb): Ditto.
33102         * ipa-cp.c (update_profiling_info): Ditto.
33103         (update_specialized_profile): Ditto.
33104         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
33105         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33106         rounding methods.
33107         * sched-rgn.c (compute_dom_prob_ps): Ditto.
33108         (compute_trg_info): Ditto.
33109         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
33110         (purge_dead_edges): Ditto.
33111         * loop-unswitch.c (unswitch_loop): Ditto.
33112         * cgraphclones.c (cgraph_clone_edge): Ditto.
33113         (cgraph_clone_node): Ditto.
33114         * tree-inline.c (copy_bb): Ditto.
33115         (copy_edges_for_bb): Ditto.
33116         (initialize_cfun): Ditto.
33117         (copy_cfg_body): Ditto.
33118         (expand_call_inline): Ditto.
33120 2013-04-08  Kai Tietz  <ktietz@redhat.com>
33122         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
33123         TARGET_CYGWIN64 by TARGET_64BIT.
33125 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
33127         * config/epiphany/epiphany.md (GPR_1): New constant.
33128         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
33129         * config/epiphany/epiphany.c (gen_compare_reg):
33130         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
33131         is already in place.
33132         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
33133         Don't require being called during rtl expansion; If y operlaps r0,
33134         return 0.
33135         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
33136         (epiphany_expand_epilogue): Likewise.
33138         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
33139         Don't use CC_FPmode for ORDERED / UNORDERED.
33140         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
33142         * config/epiphany/constraints.md (CnL): New constraint.
33143         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
33144         * config/epiphany/predicates.md (add_operand): Allow 1024.
33146         * config/epiphany/epiphany.md (logical_op): New code iterator.
33147         (op_mnc): New code attribute.
33148         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
33149         (mov_f+1, mov_f+2): New peephole2 patterns.
33151         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
33152         (cstoresi4): Also allow re-use of zero result when doing a NE
33153         comparison to a non-zero operand.
33154         Use (clobber (scratch)) for first insn if the gpr output is not needed.
33156         * config/epiphany/epiphany.md (<insn_opname>v2si3):
33157         Use gen_addsi3_i / gen_subsi3_i.
33159 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
33161         PR c++/34949
33162         PR c++/50243
33163         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
33164         contain anything but clobbers, at most one __builtin_stack_restore,
33165         optionally debug stmts and final resx, and if it has at least one
33166         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
33167         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
33168         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
33169         which isn't defaut definition, remove them.
33170         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
33171         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
33172         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
33173         with MEM_REF LHS with SSA_NAME address.
33175 2013-04-08  Jeff Law  <law@redhat.com>
33177         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
33179 2013-04-08  Richard Biener  <rguenther@suse.de>
33181         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
33182         extra newline.
33183         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
33184         determined vector type.
33185         (vect_analyze_data_refs): Likewise.
33186         (vect_get_new_vect_var): Adjust.
33187         (vect_create_destination_var): Preserve SSA name versions.
33188         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
33189         not dump anything here.
33191 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
33193         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
33194         Add member lr_slot_known.
33195         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
33196         if necessary.
33197         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
33198         Remove code that sets lr_slot_offset according to what a previous
33199         version of epiphany_emit_save_restore used to do.
33200         (epiphany_emit_save_restore): When doing an lr save or restore,
33201         set/verify lr_slot_known and lr_slot_offset.
33203 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
33205         PR target/54338
33206         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
33207         in ALL_REGS.
33209 2013-04-08  Richard Biener  <rguenther@suse.de>
33211         * alias.c (find_base_term): Fix thinko in previous change.
33213 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
33215         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
33216         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
33217         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
33218         if possible to compute val.
33219         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
33220         For QImode integers don't require anything about precision.  Use
33221         const_with_all_bytes_same to find out if the constant doesn't have
33222         repeated bytes in it.
33224 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33226         * config/s390/s390.c (s390_expand_insv): Only accept insertions
33227         within mode size.
33229 2013-04-08  Marek Polacek  <polacek@redhat.com>
33231         PR rtl-optimization/48182
33232         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
33233         value to 1.
33235 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33237         PR target/55487
33238         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
33239         nuses, make sure we have a label.
33241 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33243         PR target/56843
33244         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
33245         (rs6000_emit_swdiv_low_precision): Remove.
33246         (rs6000_emit_swdiv): Rewrite to handle between one and four
33247         iterations of Newton-Raphson generally; modify required number of
33248         iterations for some cases.
33249         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
33251 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
33253         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
33254         set-but-unused variable.
33256         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
33257         basic blocks of released function bodies garbage-collectable.
33259         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
33260         (struct rtl_opt_pass): Add TODO_df_finish.
33262         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
33264 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
33266         * config/arm/constraints.md (q): New constraint.
33267         * config/arm/ldrdstrd.md: New file.
33268         * config/arm/arm.md (ldrdstrd.md) New include.
33269         (arm_movdi): Use "q" instead of "r" constraint
33270         for double-word memory access.
33271         (movdf_soft_insn): Likewise.
33272         * config/arm/vfp.md (movdi_vfp): Likewise.
33273         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33274         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
33275         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
33276         (mem_ok_for_ldrd_strd): Likewise.
33277         (output_move_double): Update assertion.
33279 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
33281         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
33283 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
33285         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
33286         define_insn_and_split.
33287         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
33289 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
33291         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
33292         define_insn_and_split.
33293         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
33294         (shiftsi3_compare): New pattern.
33295         (rrx): New pattern.
33296         * config/arm/unspecs.md (UNSPEC_RRX): New.
33298 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
33300         * config/arm/arm.md (negdi_extendsidi): New pattern.
33301         (negdi_zero_extendsidi): Likewise.
33303 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
33305         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
33306         define_insn_and_split.
33307         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
33308         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
33310 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
33312         * config/arm/arm.md (arm_subdi3): Convert define_insn into
33313         define_insn_and_split.
33314         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
33315         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
33317 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
33319         * config/arm/arm.md (subsi3_carryin): New pattern.
33320         (subsi3_carryin_const): Likewise.
33321         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
33322         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
33324 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
33326         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
33328 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
33330         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
33331         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
33333 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33335         * config/arm/arm.c (arm_expand_builtin): Change fcode
33336         type to unsigned int.
33338 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33340         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
33342 2013-04-04  Ian Lance Taylor  <iant@google.com>
33344         * doc/standards.texi (Standards): The Go frontend supports the Go 1
33345         language standard.
33347 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
33349         PR middle-end/56729
33350         * df-scan.c (df_insn_delete): Disable failing assert.
33352 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33354         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
33355         New function prototype.
33356         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
33357         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
33358         (arm_builtin_vectorized_function): New function.
33360 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33362         * config/arm/arm_neon_builtins.def: New file.
33363         * config/arm/arm.c (neon_builtin_data): Move contents to
33364         arm_neon_builtins.def.
33365         (enum arm_builtins): Include neon builtin definitions.
33366         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33367         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
33369 2013-04-04  Marek Polacek  <polacek@redhat.com>
33371         PR tree-optimization/48186
33372         * predict.c (maybe_hot_frequency_p): Return false if
33373         HOT_BB_FREQUENCY_FRACTION is 0.
33374         (cgraph_maybe_hot_edge_p): Likewise.
33376 2013-04-04  Richard Biener  <rguenther@suse.de>
33378         PR tree-optimization/56826
33379         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
33380         more accurately.
33382 2013-04-04  Richard Biener  <rguenther@suse.de>
33384         PR tree-optimization/56213
33385         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33386         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
33388 2013-04-04  Richard Biener  <rguenther@suse.de>
33390         PR tree-optimization/56837
33391         * tree-loop-distribution.c (classify_partition): For non-zero
33392         values require that the value has the same precision as its
33393         mode to be useful as memset value.
33395 2013-04-03  Nick Clifton  <nickc@redhat.com>
33397         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
33398         (fmssf4): Use fmsf.s on E3V5 architectures.
33399         (fnmasf4): Use fnmaf.s on E3V5 architectures.
33400         (fnmssf4): Use fnmsf.s on E3V5 architectures.
33402 2013-04-03  Jeff Law  <law@redhat.com>
33404         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
33405         (lra-eliminations.o): Likewise.
33407 2013-04-03  Teresa Johnson  <tejohnson@google.com>
33409         * gcov-io.c (compute_working_sets): Moved most of body of old
33410         compute_working_sets here from profile.c.
33411         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33412         (gcov_working_set_t): Moved typedef here from basic-block.h
33413         (compute_working_set): Declare.
33414         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
33415         (get_working_sets): Renamed from compute_working_set,
33416         replace most of body with call to new compute_working_sets.
33417         (get_exec_counts): Replace call to compute_working_sets
33418         to get_working_sets.
33419         * profile.h (get_working_sets): Renamed from compute_working_set.
33420         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33421         to get_working_sets.
33422         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
33423         * gcov-dump.c (dump_working_sets): New function.
33425 2013-04-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
33427         * hwint.c (sext_hwi, zext_hwi): New functions.
33428         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
33429         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
33430         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
33431         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
33432         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
33433         (sext_hwi, zext_hwi): New functions.
33435 2013-04-03  Jeff Law  <law@redhat.com>
33437         PR tree-optimization/56799
33438         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
33439         back test for widening conversion erroneously dropped in prior change.
33441 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33443         PR target/56809
33444         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
33445         instead of next_real_insn.
33447 2013-04-03  Marek Polacek  <polacek@redhat.com>
33449         PR sanitizer/55702
33450         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
33452 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33454         PR target/56809
33455         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
33456         next_real_insn.
33457         (thumb1_output_casesi): Likewise.
33458         (thumb2_output_casesi): Likewise.
33460 2013-04-03  Richard Biener  <rguenther@suse.de>
33462         PR tree-optimization/56817
33463         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
33464         Split out ...
33465         (tree_unroll_loops_completely_1): ... new function to manually
33466         walk the loop tree, properly defering outer loops of unrolled
33467         loops to later iterations.
33469 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
33471         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
33472         (vectorizable_load): Likewise.
33473         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
33474         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
33476 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
33478         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
33479         BIT_FIELD_REF.
33481 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
33483         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
33485 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
33487         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
33489 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
33491         PR tree-optimization/56790
33492         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
33493         folding.
33495 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
33497         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
33498         Handle VEC_MERGE.
33499         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
33500         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
33501         equal arguments.
33503 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
33505         PR c/19449
33506         * tree.h (force_folding_builtin_constant_p): New decl.
33507         * builtins.c (force_folding_builtin_constant_p): New variable.
33508         (fold_builtin_constant_p): Fold immediately also if
33509         force_folding_builtin_constant_p.
33511 2013-04-03  Richard Biener  <rguenther@suse.de>
33513         PR tree-optimization/56812
33514         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
33515         DRs of the same interleaving chain are independent.
33517 2013-04-02  Jason Merrill  <jason@redhat.com>
33519         * gdbinit.in (pbb): Use debug fn.
33521 2013-04-02  Lawrence Crowl  <crowl@google.com>
33523         * sese.h (struct ivtype_map_elt_s): Remove unused.
33524         (extern debug_ivtype_map): Remove unused.
33525         (extern eq_ivtype_map_elts): Remove unused.
33526         * sese.c (debug_ivtype_map): Removed unused.
33527         (debug_ivtype_map_1): Removed unused.
33528         (debug_ivtype_elt): Remove unused.
33529         (eq_ivtype_map_elts): Remove unused.
33531 2013-04-02  Kai Tietz  <ktietz@redhat.com>
33533         PR target/52790
33534         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
33535         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33536         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
33537         function.
33538         (legitimize_pe_coff_symbol): Likewise.
33539         (is_imported_p): New helper-function.
33540         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
33541         for Windows x64 targets.
33542         (ix86_expand_prologue): Optimize for pe-coff targets.
33543         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
33544         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
33545         medium/large code-model.
33546         (legitimize_pic_address): Likewise.
33547         (legitimize_tls_address): Likewise.
33548         (ix86_expand_call): Likewise.
33549         (x86_output_mi_thunk): Likewise.
33550         (get_dllimport_decl): Add new beimport argument.
33551         (construct_plt_address): Don't assert for x64 pe-coff targets.
33552         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
33553         targets.
33554         (SYMBOL_FLAG_STUBVAR): New macro.
33555         (SYMBOL_REF_STUBVAR_P): Likewise.
33556         * config/i386/winnt.c (stub_list): New structure.
33557         (stub_head): New local variable.
33558         (i386_pe_record_stub): New function.
33559         (i386_pe_file_end): Emit refptr-stubs.
33561 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
33563         PR rtl-optimization/56745
33564         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
33565         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
33567         PR c++/34949
33568         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
33569         and both of them are MEM_REFs, just compare first argument for
33570         equality and attempt to deal even with differing offsets.
33572         PR c++/34949
33573         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
33574         of gimple_clobber_p to be MEM_REF.
33575         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
33576         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
33577         after gimplification.
33578         * asan.c (get_mem_ref_of_assignment): Don't instrument
33579         gimple_clobber_p stmts.
33580         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
33581         gimple_clobber_p stmt if they have MEM_REF lhs and
33582         are dead because of another gimple_clobber_p stmt.
33583         * tree-ssa-live.c (clear_unused_block_pointer): Treat
33584         gimple_clobber_p stmts like debug stmts.
33585         (remove_unused_locals): Remove clobbers with MEM_REF lhs
33586         that refer to unused VAR_DECLs or uninitialized values.
33587         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
33588         gimple_clobber_p stmts if they refer to removed parameters.
33589         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
33590         formatting.
33592 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
33594         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
33595         using SWI48 mode attribute.
33597 2013-04-02  Wei Mi  <wmi@google.com>
33599         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
33600         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
33601         *<rotate_insn><mode>3_mask in i386.md.
33603 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
33605         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
33607 2013-04-02  Richard Biener  <rguenther@suse.de>
33609         PR tree-optimization/56778
33610         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
33611         Runtime alias tests are not supported for gather loads.
33612         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
33613         stmts referenced from SSA operands before updating SSA form.
33615 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
33616             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33618         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
33619         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
33620         * config/arm/cortex-a53.md: New file.
33621         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
33622         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
33623         * config/arm/arm.c (arm_issue_rate): Likewise.
33624         * config/arm/arm-tune.md: Regenerate
33625         * config/arm/arm-tables.opt: Regenerate.
33626         * config/arm/arm-cores.def: Add cortex-a53.
33628 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
33630         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
33631         non-static link.
33633 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
33635         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
33636         scalar load/store operations using B/H registers.
33637         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
33639 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
33641         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
33642         scalar move.
33643         * config/aarch64/aarch64.c
33644         (aarch64_simd_scalar_immediate_valid_for_move): New.
33645         * config/aarch64/aarch64-protos.h
33646         (aarch64_simd_scalar_immediate_valid_for_move): New.
33647         * config/aarch64/constraints.md (Dh, Dq): New.
33648         * config/aarch64/iterators.md (hq): New.
33650 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
33652         * reorg.c (get_branch_condition): Deal with conditional returns.
33653         (fill_simple_delay_slots): Remove dead code dealing with jumps.
33655 2013-04-01  Wei Mi  <wmi@google.com>
33657         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
33658         Truncate operand 2 using %b asm operand modifier.
33659         (*<shift_insn><mode>3_mask): Ditto.
33660         (*<rotate_insn><mode>3_mask): Ditto.
33662 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
33664         PR middle-end/56798
33665         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
33667 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
33669         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
33670         of next_real_insn.
33671         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
33673 2013-03-30  Lawrence Crowl  <crowl@google.com>
33675         * dse.c (clear_alias_sets): Remove never set.
33676         (disqualified_clear_alias_sets): Remove never set.
33677         (clear_alias_mode_pool): Remove never set.
33678         (dse_step0): Remove condition that is never true.
33679         (canon_address): Remove condition that is never true.
33680         (dse_step7): Remove condition that is never true.
33681         (rest_of_handle_dse): Remove condition that is never true.
33682         (rest_of_handle_dse::did_global): Remove never read from above.
33683         (dse_step2_spill): Remove never called from above.
33684         (dse_step5_spill): Remove never called from above.
33686 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
33688         * doc/md.texi (Standard Names) <casesi>: Update documentation for
33689         JUMP_TABLE_DATA changes.
33690         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
33691         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
33692         (Insns) <jump_table_data>: New entry.
33693         * doc/tm.texi: Regenerate.
33695         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
33697         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
33698         for table jump at the end of a basic block using tablejump_p.
33699         * targhooks.c (default_invalid_within_doloop): Likewise.
33700         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
33701         target hook implementation that is identical to the default hook.
33702         (rs6000_invalid_within_doloop): Remove.
33704         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
33705         unused variable from tablejump_p call.
33707         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
33708         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
33709         (INSN_DELETED_P): Likewise.
33710         (emit_jump_table_data): New prototype.
33711         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
33712         after 4th as unused.
33713         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
33714         * sched-vis.c (print_insn): Likewise.
33715         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
33716         insn for compatibility with back ends that use next_active_insn to
33717         identify jump table data.
33718         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
33719         (remove_insn): Likewise.
33720         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
33721         to be emitted.
33722         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
33723         (emit_jump_table_data): New function.
33725         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
33726         basic block, a JUMP_TABLE_DATA never is.
33727         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
33728         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
33729         off from code handling real insns.
33730         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
33731         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
33732         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
33733         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
33734         is not a NONDEBUG_INSN_P.
33735         * ira-costs.c (scan_one_insn): Likewise.
33736         * jump.c (mark_all_labels): Likewise.
33737         (mark_jump_label_1): Likewise.
33738         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
33739         * lra.c (get_insn_freq): Expect all insns reaching here to be in
33740         a basic block.
33741         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
33742         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
33743         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
33744         JUMP_TABLE_DATA_P insns.
33745         (calculate_elim_costs_all_insns): Likewise.
33746         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
33747         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
33748         (delete_output_reload): Code style fixups.
33749         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
33750         insn flags on this non-insn.
33751         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
33752         as scheduling barriers, for pre-change compatibility.
33753         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
33754         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
33756         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
33757         redundant JUMP_TABLE_DATA_P test.
33758         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
33759         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
33760         (frv_for_each_packet): Likewise.
33761         * config/i386/i386.c (min_insn_size): Likewise.
33762         (ix86_avoid_jump_mispredicts): Likewise.
33763         * config/m32r/m32r.c (m32r_is_insn): Likewise.
33764         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
33765         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
33766         (mips16_insn_length): Robustify.
33767         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
33768         (mips16_split_long_branches): Likewise.
33769         * config/pa/pa.c (pa_combine_instructions): Likewise.
33770         * config/rs6000/rs6000.c (get_next_active_insn): Treat
33771         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
33772         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
33773         as contributing to pool range lengths.
33774         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
33775         Remove redundant JUMP_TABLE_DATA_P test.
33776         (sh_loop_align): Likewise.
33777         (split_branches): Likewise.
33778         (sh_insn_length_adjustment): Likewise.
33779         * config/spu/spu.c (get_branch_target): Likewise.
33781 2013-03-29  Jan Hubicka  <jh@suse.cz>
33783         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
33784         gcov streaming; stream hot bb threshold to ltrans.
33785         * predict.c (get_hot_bb_threshold): Break out from ....
33786         (maybe_hot_count_p): ... here.
33787         (set_hot_bb_threshold): New function.
33788         * lto-section-in.c (lto_section_name): Add profile.
33789         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
33790         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
33791         and data-streamer.h
33792         (histogram_entry): New structure.
33793         (histogram, histogram_pool): New global vars.
33794         (histogram_hash): New structure.
33795         (histogram_hash::hash): New method.
33796         (histogram_hash::equal): Likewise.
33797         (account_time_size): New function.
33798         (cmp_counts): New function.
33799         (dump_histogram): New function.
33800         (ipa_profile_generate_summary): New function.
33801         (ipa_profile_write_summary): New function.
33802         (ipa_profile_read_summary): New function.
33803         (ipa_profile): Decide on threshold.
33804         (pass_ipa_profile): Add ipa_profile_write_summary and
33805         ipa_profile_read_summary.
33806         * Makefile.in (ipa.o): Update dependencies.
33807         * lto-streamer.h (LTO_section_ipa_profile): New section.
33809 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
33811         * tree.h (VAR_P): New.
33813 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
33815         PR lto/56777
33816         * doc/invoke.texi ([-fwhole-program]): Fix typo.
33818 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
33820         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
33821         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
33822         (control_flow_insn_p): Likewise.
33823         * cfgrtl.c (duplicate_insn_chain): Likewise.
33824         * final.c (get_attr_length_1): Likewise.
33825         (shorten_branches): Likewise.
33826         (final_scan_insn): Likewise.
33827         * function.c (instantiate_virtual_regs): Likewise.
33828         * gcse.c (insert_insn_end_basic_block): Likewise.
33829         * ira-costs.c (scan_one_insn): Likewise.
33830         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
33831         * lra.c (check_rtl): Likewise.
33832         * reload1.c (elimination_costs_in_insn): Likewise.
33833         * reorg.c (follow_jumps): Likewise.
33835         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
33836         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
33837         (thumb_far_jump_used_p): Likewise.
33838         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
33839         (workaround_speculation): Likewise.
33840         (add_sched_insns_for_speculation): Likewise.
33841         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
33842         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
33843         (frv_for_each_packet): Likewise.
33844         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
33845         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
33846         (final_emit_insn_group_barriers): Likewise.
33847         * config/m32r/m32r.c (m32r_is_insn): Likewise.
33848         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
33849         (mips16_insn_length): Likewise.
33850         * config/pa/pa.c (pa_reorg): Likewise.
33851         (pa_combine_instructions): Likewise.
33852         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
33853         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
33854         (sh_reorg): Likewise.
33855         (split_branches): Likewise.
33856         * config/spu/spu.c (get_branch_target): Likewise.
33858         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
33859         JUMP_TABLE_DATA_P.
33861 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
33863         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
33864         Fix declaration name.
33866 2013-03-28  Lawrence Crowl  <crowl@google.com>
33868         * graphds.h (struct graph.indicies): Remove unused.
33869         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
33870         (SCOP_ORIGINAL_PDDRS): Remove unused.
33871         * sese.h (extern insert_loop_close_phis): Removed unused.
33872         (extern insert_guard_phis): Removed unused.
33873         (extern ivtype_map_elt_info): Removed unused.
33874         (new_ivtype_map_elt): Removed unused.
33875         * sese.c (ivtype_map_elt_info): Removed unused.
33877 2013-03-28  Lawrence Crowl  <crowl@google.com>
33879         * Makefile.in: Add several missing include dependences.
33880         (DUMPFILE_H): New.
33881         (test-dump.o): New.  This object is not added to any executable,
33882         but is present for ad-hoc testing.
33883         * bitmap.c
33884         (debug (const bitmap_head_def &)): New.
33885         (debug (const bitmap_head_def *)): New.
33886         * bitmap.h
33887         (extern debug (const bitmap_head_def &)): New.
33888         (extern debug (const bitmap_head_def *)): New.
33889         * cfg.c
33890         (debug (edge_def &)): New.
33891         (debug (edge_def *)): New.
33892         * cfghooks.c
33893         (debug (basic_block_def &)): New.
33894         (debug (basic_block_def *)): New.
33895         * dumpfile.h
33896         (dump_node (const_tree, int, FILE *)): Correct source file.
33897         * dwarf2out.c
33898         (debug (die_struct &)): New.
33899         (debug (die_struct *)): New.
33900         * dwarf2out.h
33901         (extern debug (die_struct &)): New.
33902         (extern debug (die_struct *)): New.
33903         * gimple-pretty-print.c
33904         (debug (gimple_statement_d &)): New.
33905         (debug (gimple_statement_d *)): New.
33906         * gimple-pretty-print.h
33907         (extern debug (gimple_statement_d &)): New.
33908         (extern debug (gimple_statement_d *)): New.
33909         * ira-build.c
33910         (debug (ira_allocno_copy &)): New.
33911         (debug (ira_allocno_copy *)): New.
33912         (debug (ira_allocno &)): New.
33913         (debug (ira_allocno *)): New.
33914         * ira-int.h
33915         (extern debug (ira_allocno_copy &)): New.
33916         (extern debug (ira_allocno_copy *)): New.
33917         (extern debug (ira_allocno &)): New.
33918         (extern debug (ira_allocno *)): New.
33919         * ira-lives.c
33920         (debug (live_range &)): New.
33921         (debug (live_range *)): New.
33922         * lra-int.h
33923         (debug (lra_live_range &)): New.
33924         (debug (lra_live_range *)): New.
33925         * lra-lives.c
33926         (debug (lra_live_range &)): New.
33927         (debug (lra_live_range *)): New.
33928         * omega.c
33929         (debug (omega_pb_d &)): New.
33930         (debug (omega_pb_d *)): New.
33931         * omega.h
33932         (extern debug (omega_pb_d &)): New.
33933         (extern debug (omega_pb_d *)): New.
33934         * print-rtl.c
33935         (debug (const rtx_def &)): New.
33936         (debug (const rtx_def *)): New.
33937         * print-tree.c
33938         (debug_tree (tree): Move within file.
33939         (debug_raw (const tree_node &)): New.
33940         (debug_raw (const tree_node *)): New.
33941         (dump_tree_via_hooks (const tree_node *, int)): New.
33942         (debug (const tree_node &)): New.
33943         (debug (const tree_node *)): New.
33944         (debug_verbose (const tree_node &)): New.
33945         (debug_verbose (const tree_node *)): New.
33946         (debug_head (const tree_node &)): New.
33947         (debug_head (const tree_node *)): New.
33948         (debug_body (const tree_node &)): New.
33949         (debug_body (const tree_node *)): New.
33950         (debug_vec_tree (tree): Move and reimplement in terms of dump.
33951         (debug (vec<tree, va_gc> &)): New.
33952         (debug (vec<tree, va_gc> *)): New.
33953         * rtl.h
33954         (extern debug (const rtx_def &)): New.
33955         (extern debug (const rtx_def *)): New.
33956         * sbitmap.c
33957         (debug_raw (simple_bitmap_def &)): New.
33958         (debug_raw (simple_bitmap_def *)): New.
33959         (debug (simple_bitmap_def &)): New.
33960         (debug (simple_bitmap_def *)): New.
33961         * sbitmap.h
33962         (extern debug (simple_bitmap_def &)): New.
33963         (extern debug (simple_bitmap_def *)): New.
33964         (extern debug_raw (simple_bitmap_def &)): New.
33965         (extern debug_raw (simple_bitmap_def *)): New.
33966         * sel-sched-dump.c
33967         (debug (vinsn_def &)): New.
33968         (debug (vinsn_def *)): New.
33969         (debug_verbose (vinsn_def &)): New.
33970         (debug_verbose (vinsn_def *)): New.
33971         (debug (expr_def &)): New.
33972         (debug (expr_def *)): New.
33973         (debug_verbose (expr_def &)): New.
33974         (debug_verbose (expr_def *)): New.
33975         (debug (vec<rtx> &)): New.
33976         (debug (vec<rtx> *)): New.
33977         * sel-sched-dump.h
33978         (extern debug (vinsn_def &)): New.
33979         (extern debug (vinsn_def *)): New.
33980         (extern debug_verbose (vinsn_def &)): New.
33981         (extern debug_verbose (vinsn_def *)): New.
33982         (extern debug (expr_def &)): New.
33983         (extern debug (expr_def *)): New.
33984         (extern debug_verbose (expr_def &)): New.
33985         (extern debug_verbose (expr_def *)): New.
33986         (extern debug (vec<rtx> &)): New.
33987         (extern debug (vec<rtx> *)): New.
33988         * sel-sched-ir.h
33989         (_list_iter_cond_expr): Make inline instead of static.
33990         * sreal.c
33991         (debug (sreal &)): New.
33992         (debug (sreal *)): New.
33993         * sreal.h
33994         (extern debug (sreal &)): New.
33995         (extern debug (sreal *)): New.
33996         * tree.h
33997         (extern debug_raw (const tree_node &)): New.
33998         (extern debug_raw (const tree_node *)): New.
33999         (extern debug (const tree_node &)): New.
34000         (extern debug (const tree_node *)): New.
34001         (extern debug_verbose (const tree_node &)): New.
34002         (extern debug_verbose (const tree_node *)): New.
34003         (extern debug_head (const tree_node &)): New.
34004         (extern debug_head (const tree_node *)): New.
34005         (extern debug_body (const tree_node &)): New.
34006         (extern debug_body (const tree_node *)): New.
34007         (extern debug (vec<tree, va_gc> &)): New.
34008         (extern debug (vec<tree, va_gc> *)): New.
34009         * tree-cfg.c
34010         (debug (struct loop &)): New.
34011         (debug (struct loop *)): New.
34012         (debug_verbose (struct loop &)): New.
34013         (debug_verbose (struct loop *)): New.
34014         * tree-dump.c: Add header dependence.
34015         * tree-flow.h
34016         (extern debug (struct loop &)): New.
34017         (extern debug (struct loop *)): New.
34018         (extern debug_verbose (struct loop &)): New.
34019         (extern debug_verbose (struct loop *)): New.
34020         * tree-data-ref.c
34021         (debug (data_reference &)): New.
34022         (debug (data_reference *)): New.
34023         (debug (vec<data_reference_p> &)): New.
34024         (debug (vec<data_reference_p> *)): New.
34025         (debug (vec<ddr_p> &)): New.
34026         (debug (vec<ddr_p> *)): New.
34027         * tree-data-ref.h
34028         (extern debug (data_reference &)): New.
34029         (extern debug (data_reference *)): New.
34030         (extern debug (vec<data_reference_p> &)): New.
34031         (extern debug (vec<data_reference_p> *)): New.
34032         (extern debug (vec<ddr_p> &)): New.
34033         (extern debug (vec<ddr_p> *)): New.
34034         * tree-ssa-alias.c
34035         (debug (pt_solution &)): New.
34036         (debug (pt_solution *)): New.
34037         * tree-ssa-alias.h
34038         (extern debug (pt_solution &)): New.
34039         (extern debug (pt_solution *)): New.
34040         * tree-ssa-alias.c
34041         (debug (_var_map &)): New.
34042         (debug (_var_map *)): New.
34043         (debug (tree_live_info_d &)): New.
34044         (debug (tree_live_info_d *)): New.
34045         * tree-ssa-alias.h
34046         (extern debug (_var_map &)): New.
34047         (extern debug (_var_map *)): New.
34048         (extern debug (tree_live_info_d &)): New.
34049         (extern debug (tree_live_info_d *)): New.
34051 2013-03-28  Jan Hubicka  <jh@suse.cz>
34053         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
34055 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
34057         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
34058         record only when desired or required.
34060 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
34062         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
34063         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
34065 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
34067         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
34068         (*andsi3_compare0_uxtw): New pattern.
34069         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
34070         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
34072 2013-03-28  Jan Hubicka  <jh@suse.cz>
34074         * data-streamer-in.c (streamer_read_gcov_count): New function.
34075         * gimple-streamer-out.c: Include value-prof.h.
34076         (output_gimple_stmt): Output histogram.
34077         (output_bb): Use streamer_write_gcov_count.
34078         * value-prof.c: Include data-streamer.h
34079         (dump_histogram_value): Add HIST_TYPE_MAX.
34080         (stream_out_histogram_value): New function.
34081         (stream_in_histogram_value): New function.
34082         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
34083         (stream_out_histogram_value, stream_in_histogram_value): Declare.
34084         * data-streamer-out.c (streamer_write_gcov_count): New function.
34085         (streamer_write_gcov_count_stream): New function.
34086         * lto-cgraph.c (lto_output_edge): Update counter streaming.
34087         (lto_output_node): Likewise.
34088         (input_node, input_edge): Likewise.
34089         * lto-streamer-out.c (output_cfg): Update streaming.
34090         * lto-streamer-in.c (input_cfg): Likewise.
34091         * data-streamer.h (streamer_write_gcov_count,
34092         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
34093         * gimple-streamer-in.c: Include value-prof.h
34094         (input_gimple_stmt): Input histograms.
34095         (input_bb): Update profile streaming.
34097 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
34099         * genmodes.c (emit_max_int): New function.
34100         (emit_insn_modes_h): Added call to emit_max_function.
34101         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
34102         Added doc.
34103         * machmode.def: Fixed comment.
34105 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
34107         * combine.c (try_combine): Removed useless assert.
34108         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
34110 2013-03-28  Marek Polacek  <polacek@redhat.com>
34111             Richard Biener  <rguenther@suse.de>
34113         PR tree-optimization/56695
34114         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
34115         build signed result of a vector comparison.
34116         * tree-cfg.c (verify_gimple_comparison): Check that a result
34117         of a vector comparison has signed type.
34119 2013-03-28  Richard Biener  <rguenther@suse.de>
34121         PR tree-optimization/37021
34122         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
34123         do not restrict gaps between groups.
34124         * tree-vect-stmts.c (vectorizable_load): Properly account for
34125         a gap between groups.
34127 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
34129         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
34130         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
34131         is not enabled.
34133 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
34135         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
34136         * doc/extend.texi (Named Address Spaces): Ditto.
34137         (Variable Attributes): Ditto.
34139 2013-03-27  Kai Tietz  <ktietz@redhat.com>
34141         * config.build: Add support for cygwin x64 target.
34142         * config.gcc: Likewise.
34143         * config.host: Likewise.
34144         * configure.ac: Likewise
34145         * configure: Regenerated.
34147 2013-03-27  Kai Tietz  <ktietz@redhat.com>
34149         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
34150         * config/i386/t-cygwin-w64: New file.
34151         * config/i386/cygwin-w64.h: New file.
34152         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
34153         and add support for x64-cygwin target.
34154         (CPP_SPEC): Likewise.
34155         (CXX_WRAP_SPEC_LIST): Undefine before define.
34156         (LIBGCJ_SONAME): Use 15 as version.
34158 2013-03-27  Richard Biener  <rguenther@suse.de>
34160         PR tree-optimization/56716
34161         * tree-ssa-structalias.c (perform_var_substitution): Adjust
34162         dumping for ref nodes.
34164 2013-03-27  Martin Jambor  <mjambor@suse.cz>
34166         PR tree-optimization/55334
34167         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
34168         restricted pointers to arrays.
34170 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
34172         * Makefile.in (.SUFFIXES): Add .cc.
34173         (.c.o): Apply same recipe for implicit rule .cc.o.
34175 2013-03-27  Richard Biener  <rguenther@suse.de>
34177         PR tree-optimization/37021
34178         * tree-vect-data-refs.c (vect_check_strided_load): Allow
34179         REALPART/IMAGPART_EXPRs around the supported refs.
34180         * tree-ssa-structalias.c (find_func_aliases): Assume that
34181         floating-point values are not used to transfer pointers.
34183 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
34185         * target.def (TARGET_HAS_IFUNC_P): New target hook.
34186         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
34187         * doc/tm.texi: Regenerate.
34188         * targhooks.h (default_has_ifunc_p): New.
34189         * targhooks.c (default_has_ifunc_p): Ditto.
34190         * config/linux-protos.h: New file.
34191         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
34192         hook for linux which disables support of indirect functions in android.
34193         * config/linux-android.c: New file.
34194         * config/t-linux-android.c: Ditto.
34195         * config.gcc: Added new object file linux-android.o.
34196         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
34197         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
34198         * varasm.c (do_assemble_alias): Likewise.
34199         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
34200         doesn't support indirect functions.
34201         * configure: Regenerate.
34203 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
34205         PR target/56102
34206         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
34207         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
34208         mult-word mode.
34210 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34212         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
34214 2013-03-27  Terry Guo  <terry.guo@arm.com>
34216         * config/arm/arm-cores.def: Added core cortex-r7.
34217         * config/arm/arm-tune.md: Regenerated.
34218         * config/arm/arm-tables.opt: Regenerated.
34219         * doc/invoke.texi: Added entry for core cortex-r7.
34221 2013-03-27  Walter Lee  <walt@tilera.com>
34223         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
34224         double-decrement of next_scratch_regno.
34226 2013-03-27  Walter Lee  <walt@tilera.com>
34228         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
34229         input operands.
34230         (insn_v1mulus): Ditto.
34231         (insn_v2muls): Ditto.
34233 2013-03-27  Walter Lee  <walt@tilera.com>
34235         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
34236         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
34238 2013-03-27  Walter Lee  <walt@tilera.com>
34240         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
34241         (*sibcall_value): Ditto.
34243 2013-03-27  Walter Lee  <walt@tilera.com>
34245         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
34246         (insn_mnz_v8qi): ... this ...
34247         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
34248         vector equivalent.
34249         (insn_v<n>mnz): Replaced by ...
34250         (insn_v1mnz): ... this ...
34251         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
34252         equivalent.
34253         (insn_mz_<mode>): Replaced by ...
34254         (insn_mz_v8qi): ... this ...
34255         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
34256         vector equivalent.
34257         (insn_v<n>mz): Replaced by ...
34258         (insn_v1mz): ... this ...
34259         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
34260         equivalent.
34262 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
34264         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
34266 2013-03-26  Roland McGrath  <mcgrathr@google.com>
34268         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
34269         than fprintf with a non-constant, non-format string.
34271 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
34273         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
34274         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
34275         operand 0 predicate.
34276         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
34277         attribute.  Use general_x64nomem_operand as operand 1 predicate.
34278         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
34279         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
34280         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
34281         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
34282         (mov<mode>_insv_1): Remove expander.  Merge insn with
34283         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
34284         Use general_x64nomem_operand as operand 1 predicate.
34285         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
34286         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
34287         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
34288         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
34289         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
34290         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
34291         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
34292         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
34293         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
34294         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
34295         (general_x64nomem_operand): Ditto.
34297 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
34299         * config/rtems.opt: Add -pthread option.
34301 2013-03-26  Richard Biener  <rguenther@suse.de>
34303         * alias.c (find_base_term): Avoid redundant and not used recursion.
34304         (base_alias_check): Get the initial base term from the caller.
34305         (true_dependence_1): Compute and pass base terms to base_alias_check.
34306         (write_dependence_p): Likewise.
34307         (may_alias_p): Likewise.
34309 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
34311         * config/aarch64/aarch64.c (aarch64_classify_address): Support
34312         PC-relative load in SI modes and above only.
34314 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
34316         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
34317         * config/arm/iwmmxt.md (WCGR0): Update.
34318         (WCGR1, WCGR2, WCGR3): Likewise.
34320 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
34322         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
34323         Use x64 and nox64 isa attributes.
34325 2013-03-26  Richard Biener  <rguenther@suse.de>
34327         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
34328         alignment computations and rely on get_object_alignment_1
34329         for the !TYPE_P case.
34330         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
34332 2013-03-26  Walter Lee  <walt@tilera.com>
34334         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
34335         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
34337 2013-03-25  Jeff Law  <law@redhat.com>
34339         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
34340         check for INTEGRAL_TYPE_P that was missing due to checking in
34341         wrong version of prior patch.
34343 2013-03-25  Walter Lee  <walt@tilera.com>
34345         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
34346         TILEGX_INSN_SHUFFLEBYTES1.
34347         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
34348         shufflebytes1.
34349         (tilegx_builtins): Ditto.
34350         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
34352 2013-03-25  Walter Lee  <walt@tilera.com>
34354         * config/tilegx/tilegx.md (floatsisf2): New pattern.
34355         (floatunssisf2): New pattern.
34356         (floatsidf2): New pattern.
34357         (floatunssidf2): New pattern.
34359 2013-03-25  Walter Lee  <walt@tilera.com>
34361         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
34362         tests for constraint J, K, N, P.
34364 2013-03-25  Walter Lee  <walt@tilera.com>
34366         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
34367         Use indirect/pcrel encoding.
34368         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
34369         Ditto.
34371 2013-03-25  Steve Ellcey  <sellcey@mips.com>
34373         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
34374         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
34375         * config/mips/mips.c (mips_option_override): Set IMADD default.
34376         * config/mips/mips.h (PTF_AVOID_IMADD): New.
34377         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
34378         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
34379         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
34380         * doc/invoke.texi (-mimadd/-mno-imadd): New.
34382 2013-03-25  Jeff Law  <law@redhat.com>
34384         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
34385         slightly to avoid creating and folding useless trees.  Simplify
34386         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
34388 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
34390         * config/i386/i386.md (*zero_extendsidi2): Merge with
34391         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
34392         * config/i386/predicates.md (x86_64_zext_operand): Rename from
34393         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
34394         targets.  Clarify comment.
34396 2013-03-25  Martin Jambor  <mjambor@suse.cz>
34398         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
34399         pass-through jump functions differently.
34400         (ipa_read_jump_function): Likewise.  Also use setter functions to set
34401         up jump functions.
34403 2013-03-25  Martin Jambor  <mjambor@suse.cz>
34405         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
34406         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
34407         process it.
34408         (ipa_get_indirect_edge_target): New function.
34409         (devirtualization_time_bonus): New parameter known_aggs, pass it to
34410         ipa_get_indirect_edge_target.  Update all callers.
34411         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
34412         ipa_get_indirect_edge_target_1 instead of calling
34413         ipa_get_indirect_edge_target.
34414         (create_specialized_node): Pass aggvlas to
34415         ipcp_discover_new_direct_edges.
34417 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34419         * config/arm/arm.md (f_sels, f_seld): New types.
34420         (*cmov<mode>): New pattern.
34421         * config/arm/predicates.md (arm_vsel_comparison_operator): New
34422         predicate.
34424 2013-03-25  Kai Tietz  <ktietz@redhat.com>
34426         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
34427         POSIX-printf for mingw-hosted  builds.
34429 2013-03-25  Richard Biener  <rguenther@suse.de>
34431         PR middle-end/56694
34432         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
34433         must-not-throw stmt location.
34435 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34437         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
34438         Emit load-acquire versions when acq is true.
34439         (arm_emit_store_exclusive): Add rel parameter.
34440         Emit store-release versions when rel is true.
34441         (arm_split_compare_and_swap): Use acquire-release instructions
34442         instead.
34443         of barriers when appropriate.
34444         (arm_split_atomic_op): Likewise.
34445         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
34446         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
34447         (VUNSPEC_SLX): Likewise.
34448         (VUNSPEC_LDA): Likewise.
34449         (VUNSPEC_STL): Likewise.
34450         * config/arm/sync.md (atomic_load<mode>): New pattern.
34451         (atomic_store<mode>): Likewise.
34452         (arm_load_acquire_exclusive<mode>): Likewise.
34453         (arm_load_acquire_exclusivesi): Likewise.
34454         (arm_load_acquire_exclusivedi): Likewise.
34455         (arm_store_release_exclusive<mode>): Likewise.
34457 2013-03-25  Catherine Moore  <clm@codesourcery.com>
34459         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
34460         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
34461         * config/mip/predicates.md (lwsp_swsp_operand,
34462         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
34463         sb16_operand, db4_operand, db7_operand, ib3_operand,
34464         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
34465         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
34466         andi16_operand): New predicates.
34467         * config/mips/mips.md (compression): New attribute.
34468         (enabled): New attribute.
34469         (length): Consider compression in computing length.
34470         (shift_compression): New code attribute.
34471         (*add<mode>3): New operands. Record compression.
34472         (sub<mode>3): Likewise.
34473         (one_cmpl<mode>2): Likewise.
34474         (*and<mode>3): Likewise.
34475         (*ior<mode>3): Likewise.
34476         (unnamed pattern for xor): Likewise.
34477         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
34478         (*<optab><mode>3): Likewise.
34479         (*mov<mode>_internal: Likewise.
34480         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
34481         (mips_unsigned_immediate_p): New.
34482         (umips_lwsp_swsp_address_p): New.
34483         (m16_based_address_p): New.
34484         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
34485         (mips_unsigned_immediate_p): New prototype.
34486         (lwsp_swsp_address_p): New prototype.
34487         (m16_based_address_p): New prototype.
34488         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
34489         (mips_signed_immediate_p): New function.
34490         (m16_based_address_p): New function.
34491         (lwsp_swsp_address_p): New function.
34492         (mips_print_operand_punctuation): Recognize short delay slot insns
34493         for microMIPS.add<mode>3"
34495 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34497         PR target/56720
34498         * config/arm/iterators.md (v_cmp_result): New mode attribute.
34499         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
34501 2013-03-25  Richard Biener  <rguenther@suse.de>
34503         PR tree-optimization/56689
34504         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
34505         any edge.
34507 2013-03-25  Richard Biener  <rguenther@suse.de>
34509         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
34510         of bitmap.
34511         (memory_references): Likewise.
34512         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
34513         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
34514         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
34515         (gather_mem_refs_in_loops): Fold into ...
34516         (analyze_memory_references): ... this.  Move initialization
34517         to tree_ssa_lim_initialize.
34518         (fill_always_executed_in): Rename to ...
34519         (fill_always_executed_in_1): ... this.
34520         (fill_always_executed_in): Move contains_call computation to
34521         this new function from ...
34522         (tree_ssa_lim_initialize): ... here.
34523         (tree_ssa_lim): Call fill_always_executed_in.
34525 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
34527         * postreload.c (reload_combine): Fix code detecting returns.
34529 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
34531         * function.c (emit_use_return_register_into_block): On cc0 targets,
34532         do not emit the sequence between cc0 setter and user.
34534 2013-03-25  Kai Tietz  <ktietz@redhat.com>
34536         * config/i386/predicates.md (local_symbolic_operand): Interpret
34537         dll-imported symbols as none-local.
34539 2013-03-25  Richard Biener  <rguenther@suse.de>
34541         * tree-ssa-loop-im.c (struct depend): Remove.
34542         (struct lim_aux_data): Make depends a vec of gimples.
34543         (free_lim_aux_data): Adjust.
34544         (add_dependency): Likewise.
34545         (set_level): Likewise.
34547 2013-03-25  Richard Biener  <rguenther@suse.de>
34549         PR middle-end/56434
34550         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
34551         the pointer returned by calls with ECF_MALLOC set.
34553 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
34555         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
34557 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
34559         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
34560         using MMXMODE mode iterator.
34561         (*move<mode>_internal): Merge with *movv2sf_internal and
34562         *movv2sf_internal_rex64 using MMXMODE mode iterator.
34564 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
34566         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
34567         (record_last_mem_set_info): Likewise.
34569         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
34570         of XNEWVEC followed by memset.
34571         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
34573 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
34575         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
34576         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
34577         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
34578         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
34579         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
34580         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
34581         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
34582         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
34583         BARRIER_P instead of GET_CODE.
34585 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
34587         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
34588         inaccuracy in the probing code.
34590         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
34591         (ctrapdi4): Likewise.
34593 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
34595         * calls.c (expand_call): Add missing guard to code handling return
34596         of non-BLKmode structures in MSB.
34597         * function.c (expand_function_end): Likewise.
34599 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
34601         * combine.c (try_combine): Adjust comment.  Do not add the set of
34602         insn #0 if the destination indirectly is set or dies in insn #2.
34603         Tidy up code to distribute a new note.
34605 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
34607         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
34608         also for alternatives 16 and 17.
34610 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
34612         * config/i386/sse.md (*mov<mode>_internal): Merge with
34613         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
34614         Emit insn template depending on type attribute.  Use
34615         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
34616         movd instead of movq mnemonic for interunit moves.  Rewrite mode
34617         attribute calculation.  Remove unit attribute calculation.
34618         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
34619         Set prefix_data16 attribute for DImode ssemov types.
34620         Use Ym instead of y for SSE-MMX conversion alternatives.
34621         Reorder operand constraints.
34623 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
34625         * df.h (df_insn_delete): Adjust prototype.
34626         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
34627         and let it decide whether mark the basic block dirty.
34628         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
34629         * df-scan.c (df_insn_info_delete): New helper function, split
34630         off from df_insn_delete.
34631         (df_scan_free_bb_info): Use it.
34632         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
34633         Likewise.
34634         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
34635         that the insn is actually an insn and it has a non-NULL basic block.
34636         Do not mark basic block dirty if only deleting a DEBUG_INSN.
34638 2013-03-22  Richard Biener  <rguenther@suse.de>
34640         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
34641         dep_ref members.
34642         (mem_ref_alloc): Do not allocate them.
34643         (refs_independent_p): Do not query or maintain a cache.
34645 2013-03-22  Richard Biener  <rguenther@suse.de>
34647         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
34648         (gather_mem_refs_in_loops): Do not compute it.
34649         (analyze_memory_references): Do not allocate it.
34650         (tree_ssa_lim_finalize): Do not free it.
34651         (for_all_locs_in_loop): Do not query all_refs_in_loop.
34653 2013-03-22  Richard Biener  <rguenther@suse.de>
34655         * is-a.h (as_a): Use gcc_checking_assert.
34657 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
34659         * config/aarch64/aarch64.c (aarch64_print_operand): New
34660         format specifier for printing a constant in hex.
34661         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
34662         format specifier for printing second operand.
34664 2013-03-22  Richard Biener  <rguenther@suse.de>
34666         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
34667         bitmaps.
34668         (gather_mem_refs_in_loops): Perform store accumulation here.
34669         (create_vop_ref_mapping_loop): Remove.
34670         (create_vop_ref_mapping): Likewise.
34671         (analyze_memory_references): Initialize refs_stored_in_loop.
34672         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
34673         (record_indep_loop): Remove.
34674         (record_dep_loop): New function.
34675         (ref_indep_loop_p_1): Adjust to only walk over references
34676         in the loop, not its subloops.
34677         (ref_indep_loop_p): Rename to ...
34678         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
34679         maintaining a more fine-grained cache.
34680         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
34681         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
34683 2013-03-22  Richard Biener  <rguenther@suse.de>
34685         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
34686         (struct mem_ref): Make accesses_in_loop a vec of a vec of
34687         aggregate mem_ref_loc.
34688         (free_mem_ref_locs): Inline into ...
34689         (memref_free): ... this and adjust.
34690         (mem_ref_alloc): Adjust.
34691         (mem_ref_locs_alloc): Remove.
34692         (record_mem_ref_loc): Adjust.
34693         (get_all_locs_in_loop): Rewrite into ...
34694         (for_all_locs_in_loop): ... this iterator.
34695         (rewrite_mem_ref_loc): New functor.
34696         (rewrite_mem_refs): Use for_all_locs_in_loop.
34697         (sm_set_flag_if_changed): New functor.
34698         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
34699         (ref_always_accessed): New functor.
34700         (ref_always_accessed_p): Use for_all_locs_in_loop.
34702 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
34704         * tree-pass.h (PROP_gimple_lvec): New.
34705         * passes.c (dump_properties): Handle PROP_gimple_lvec.
34706         (init_optimization_passes): Move pass_lower_vector.
34707         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
34708         PROP_gimple_lvec.
34709         (pass_lower_vector): Provide PROP_gimple_lvec.
34710         (pass_lower_vector_ssa): Likewise.
34711         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
34713 2013-03-21  Mark Wielaard  <mjw@redhat.com>
34715         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
34717 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
34719         * config/i386/i386.md (*movdi_internal): Disparage slightly
34720         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
34721         conversion alternatives.
34723 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
34725         PR middle-end/48087
34726         * diagnostic.def (DK_WERROR): New kind.
34727         * diagnostic.h (werrorcount): Define.
34728         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
34729         promoted to DK_ERROR, increment DK_WERROR counter instead of
34730         DK_ERROR counter.
34731         * toplev.c (toplev_main): Call print_ignored_options even if
34732         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
34733         even if just werrorcount is non-zero.
34735         PR debug/55608
34736         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
34737         on failure.
34738         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
34739         (string_cst_pool_decl): New function.
34740         (optimize_one_addr_into_implicit_ptr): New function.
34741         (resolve_addr_in_expr): Optimize DWARF location expression
34742         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
34743         which doesn't live in memory, but has DW_AT_location or
34744         DW_AT_const_value, or refers to a string literal, into
34745         DW_OP_GNU_implicit_pointer.
34746         (optimize_location_into_implicit_ptr): New function.
34747         (resolve_addr): If removing DW_AT_location of a variable because
34748         it was DW_OP_addr of address of the variable, but the variable doesn't
34749         live in memory, try to emit const value attribute for the initializer.
34751 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
34753         * tree.h (VECTOR_TYPE_P): New macro.
34754         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
34755         TYPE_MODE): Use it.
34756         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
34757         VEC_COND_EXPR cannot be lvalues.
34758         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
34760 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
34762         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
34763         Restrict the transformation to equal modes.
34765 2013-03-21  Richard Biener  <rguenther@suse.de>
34767         PR tree-optimization/39326
34768         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
34769         (MEM_ANALYZABLE): Adjust.
34770         (record_mem_ref_loc): Move bitmap ops ...
34771         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
34772         unanalyzable refs, do not record locations for it.
34773         (analyze_memory_references): Allocate ref zero as shared
34774         unanalyzable ref.
34775         (refs_independent_p): Do not test for unanalyzed mems here.
34776         (ref_indep_loop_p_1): Special-case disambiguation against
34777         the unanalyzed ref.
34778         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
34780 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
34782         * config/arm/arm-protos.h (tune_params): Add
34783         prefer_neon_for_64bits field.
34784         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
34785         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
34786         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
34787         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
34788         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
34789         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
34790         (arm_option_override): Handle -mneon-for-64bits new option.
34791         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
34792         (prefer_neon_for_64bits): Declare new variable.
34793         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
34794         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
34795         (arch_enabled): Handle new arch types. Remove support for onlya8
34796         and nota8.
34797         (one_cmpldi2): Use new arch names.
34798         (zero_extend<mode>di2, extend<mode>di2): Ditto.
34799         * config/arm/arm.opt (mneon-for-64bits): Add option.
34800         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
34801         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
34802         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
34803         of onlya8.
34804         * doc/invoke.texi (-mneon-for-64bits): Document.
34806 2013-03-21  Richard Biener  <rguenther@suse.de>
34808         PR tree-optimization/39326
34809         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
34810         (sort_bbs_in_loop_postorder_cmp): New function.
34811         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
34813 2013-03-21  Richard Biener  <rguenther@suse.de>
34815         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
34816         (vect_insert_into_interleaving_chain): Likewise.
34817         (vect_drs_dependent_in_basic_block): Inline ...
34818         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
34819         split out from ...
34820         (vect_analyze_data_ref_dependence): ... here.  Simplify.
34821         (vect_check_interleaving): Simplify.
34822         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
34823         (vect_slp_analyze_data_ref_dependences): ... this new function.
34824         (dr_group_sort_cmp): New function.
34825         (vect_analyze_data_ref_accesses): Compute data-reference groups
34826         here instead of in vect_analyze_data_ref_dependence.  Use
34827         a more efficient algorithm.
34828         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
34829         vect_slp_analyze_data_ref_dependences.  Call
34830         vect_analyze_data_ref_accesses earlier.
34831         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
34832         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
34833         (vect_slp_analyze_data_ref_dependences): New prototype.
34835 2013-03-21  Richard Biener  <rguenther@suse.de>
34837         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
34838         ref is stored in the loop.
34839         (find_refs_for_sm): Walk only over all stores.
34840         (store_motion_loop): Allocate from lim_bitmap_obstack.
34841         (store_motion): Likewise.
34843 2013-03-21  Richard Biener  <rguenther@suse.de>
34845         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
34846         Update virtual SSA form.
34848 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34850         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
34851         * configure: Regenerate.
34852         * config.in: Regenerate.
34853         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
34854         if !HAVE_LD_EH_FRAME_CIEV3.
34856 2013-03-21  Richard Biener  <rguenther@suse.de>
34858         * tree-cfg.c (verify_expr_no_block): New function.
34859         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
34860         nor DECL_VALUE_EXPR have locations with associated blocks.
34861         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
34862         (clear_unused_block_pointer): Remove code dealing with
34863         blocks in DECL_DEBUG_EXPR locations.
34865 2013-03-21  Richard Biener  <rguenther@suse.de>
34867         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
34868         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
34869         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
34870         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
34871         instead of DECL_DEBUG_EXPR_IS_FROM.
34872         * gimplify.c (gimplify_modify_expr): Likewise.
34873         * tree-cfg.c (verify_expr_location_1): Likewise.
34874         * tree-complex.c (create_one_component_var): Likewise.
34875         * tree-sra.c (create_access_replacement): Likewise.
34876         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
34877         (clear_unused_block_pointer): Likewise.
34878         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
34879         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
34880         * var-tracking.c (var_debug_decl): Likewise.
34881         (track_expr_p): Likewise.
34882         * tree-inline.c (add_local_variables): Likewise.  Set
34883         DECL_HAS_DEBUG_EXPR_P after copying it.
34884         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
34885         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
34887 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
34889         PR bootstrap/56656
34890         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
34891         * configure: Regenerate.
34892         * config.in: Regenerate.
34893         * config/i386/i386.md (*movdf_internal): Use
34894         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
34895         movd instead of movq mnemonic for interunit moves.
34896         (*movdi_internal): Ditto.
34898 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
34900         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
34901         (abd<mode>_3): New pattern.
34902         (aba<mode>_3): New pattern.
34903         (fabd<mode>_3): New pattern.
34905 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
34907         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
34908         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
34909         occurrence of REGISTER_PREFIX as its empty string.
34911 2013-03-20  Jeff Law  <law@redhat.com>
34913         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
34914         addititional equivalences for equality comparisons between an SSA_NAME
34915         and a constant where the SSA_NAME was set from a widening conversion.
34917 2013-03-20  Walter Lee  <walt@tilera.com>
34919         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
34921 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
34923         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
34924         depending on type attribute.
34925         (*movti_internal): Ditto.
34926         (*movtf_internal): Ditto.
34927         (*movxf_internal): Ditto.
34928         (*movdf_internal): Ditto.
34929         (*movsf_internal): Ditto.
34931 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
34933         * config/i386/i386.md (*movti_internal): Set prefix attribute to
34934         maybe_vex for sselog1 and ssemov types.
34935         (*movdi_internal): Reorder operand constraints.
34936         (*movsi_internal): Ditto.  Set prefix attribute to
34937         maybe_vex for sselog1 and ssemov types.
34938         (*movtf_internal): Set prefix attribute to maybe_vex
34939         for sselog1 and ssemov types.
34940         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
34941         DImode ssemov types.  Reorder operand constraints.
34942         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
34943         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
34944         attribute for SImode ssemov types.  Reorder operand constraints.
34946 2013-03-20  Martin Jambor  <mjambor@suse.cz>
34948         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
34949         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
34951 2013-03-20  Pat Haugen  <pthaugen@us.ibm.com>
34953         * config/rs6000/predicates.md (indexed_address, update_address_mem
34954         update_indexed_address_mem): New predicates.
34955         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
34956         attribute for load/store instructions.
34957         * config/rs6000/dfp.md (movsd_store): Likewise.
34958         (movsd_load): Likewise.
34959         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
34960         (unnamed HI->DI extend define_insn): Likewise.
34961         (unnamed SI->DI extend define_insn): Likewise.
34962         (unnamed QI->SI extend define_insn): Likewise.
34963         (unnamed QI->HI extend define_insn): Likewise.
34964         (unnamed HI->SI extend define_insn): Likewise.
34965         (unnamed HI->SI extend define_insn): Likewise.
34966         (extendsfdf2_fpr): Likewise.
34967         (movsi_internal1): Likewise.
34968         (movsi_internal1_single): Likewise.
34969         (movhi_internal): Likewise.
34970         (movqi_internal): Likewise.
34971         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
34972         attribute for load/store instructions.
34973         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
34974         instructions.
34975         (mov<mode>_softfloat): Likewise.
34976         (mov<mode>_hardfloat32): Likewise.
34977         (mov<mode>_hardfloat64): Likewise.
34978         (mov<mode>_softfloat64): Likewise.
34979         (movdi_internal32): Likewise.
34980         (movdi_internal64): Likewise.
34981         (probe_stack_<mode>): Likewise.
34983 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
34985         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
34986         floating point, and decimal floating point to reload iterator.
34988         * config/rs6000/constraints.md (wl constraint): New constraints to
34989         return FLOAT_REGS if certain options are used to reduce the number
34990         of separate patterns that exist in the file.
34991         (wx constraint): Likewise.
34992         (wz constraint): Likewise.
34994         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
34995         -mdebug=reg, print wg, wl, wx, and wz constraints.
34996         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
34997         Initialize the reload functions for 64-bit binary/decimal floating
34998         point types.
34999         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
35000         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
35001         create the buffer on the stack to overcome not having a 32-bit
35002         load and store.
35003         (rs6000_emit_move): Likewise.
35004         (rs6000_secondary_memory_needed_rtx): Likewise.
35005         (rs6000_alloc_sdmode_stack_slot): Likewise.
35006         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
35007         via xxlxor, just like DFmode 0.0.
35009         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
35010         define as 1 if we are running on a power7 or newer.
35011         (enum r6000_reg_class_enum): Add new constraints.
35013         * config/rs6000/dfp.md (movsd): Delete, combine with binary
35014         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
35015         with other moves by using conditional constraits (wg).  Use LFIWZX
35016         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
35017         (movsd splitter): Likewise.
35018         (movsd_hardfloat): Likewise.
35019         (movsd_softfloat): Likewise.
35021         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
35022         binary and decimal floating point moves.
35023         (fmove_ok): New attributes to combine binary and decimal floating
35024         point moves, and to combine power6x (mfpgpr) moves along normal
35025         floating moves.
35026         (real_value_to_target): Likewise.
35027         (f32_lr): Likewise.
35028         (f32_lm): Likewise.
35029         (f32_li): Likewise.
35030         (f32_sr): Likewise.
35031         (f32_sm): Likewise.
35032         (f32_si): Likewise.
35033         (movsf): Combine binary and decimal floating point moves.  Combine
35034         power6x (mfpgpr) moves with other moves by using conditional
35035         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
35036         (mov<mode> for SFmode/SDmode); Likewise.
35037         (SFmode/SDmode splitters): Likewise.
35038         (movsf_hardfloat): Likewise.
35039         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
35040         (movsf_softfloat): Likewise.
35041         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
35043         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
35044         wx and wz constraints.
35046         * config/rs6000/constraints.md (wg constraint): New constraint to
35047         return FLOAT_REGS if -mmfpgpr (power6x) was used.
35049         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
35050         constraint.
35052         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
35053         -mdebug=reg, print wg, wl, wx, and wz constraints.
35054         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
35055         Initialize the reload functions for 64-bit binary/decimal floating
35056         point types.
35057         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
35058         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
35059         create the buffer on the stack to overcome not having a 32-bit
35060         load and store.
35061         (rs6000_emit_move): Likewise.
35062         (rs6000_secondary_memory_needed_rtx): Likewise.
35063         (rs6000_alloc_sdmode_stack_slot): Likewise.
35064         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
35065         via xxlxor, just like DFmode 0.0.
35067         * config/rs6000/dfp.md (movdd): Delete, combine with binary
35068         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
35069         with other moves by using conditional constraits (wg).  Use LFIWZX
35070         and STFIWX for loading SDmode on power7.
35071         (movdd splitters): Likewise.
35072         (movdd_hardfloat32): Likewise.
35073         (movdd_softfloat32): Likewise.
35074         (movdd_hardfloat64_mfpgpr): Likewise.
35075         (movdd_hardfloat64): Likewise.
35076         (movdd_softfloat64): Likewise.
35078         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
35079         64-bit binary and decimal floating point moves.
35080         (FMOVE64X): Likewise.
35081         (movdf): Combine 64-bit binary and decimal floating point moves.
35082         Combine power6x (mfpgpr) moves with other moves by using
35083         conditional constraits (wg).
35084         (mov<mode> for DFmode/DDmode): Likewise.
35085         (DFmode/DDmode splitters): Likewise.
35086         (movdf_hardfloat32): Likewise.
35087         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
35088         (movdf_softfloat32): Likewise.
35089         (movdf_hardfloat64_mfpgpr): Likewise.
35090         (movdf_hardfloat64): Likewise.
35091         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
35092         (movdf_softfloat64): Likewise.
35093         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
35094         (reload_<mode>_load): Move to later in the file so they aren't in
35095         the middle of the floating point move insns.
35096         (reload_<mode>_store): Likewise.
35098         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
35099         constraint.
35101         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
35102         constraint if -mdebug=reg.
35103         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
35104         Enable using dd reload support if needed.
35106         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
35107         binary and decimal floating point moves in rs6000.md.
35108         (movtd_internal): Likewise.
35110         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
35111         decimal floating point moves.
35112         (movtf): Likewise.
35113         (movtf_internal): Likewise.
35114         (mov<mode>_internal, TDmode/TFmode): Likewise.
35115         (movtf_softfloat): Likewise.
35116         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
35118         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
35119         movdi_internal64, using wg constraint for move direct operations.
35120         (movdi_internal64): Likewise.
35122         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
35123         MODES_TIEABLE_P for selected modes.  Print the numerical value of
35124         the various virtual registers. Use GPR/FPR first/last values,
35125         instead of hard coding the register numbers.  Print which modes
35126         have reload functions registered.
35127         (rs6000_option_override_internal): If -mdebug=reg, trace the options
35128         settings before/after setting cpu, target and subtarget settings.
35129         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
35130         and for secondary reload failures in rs6000_secondary_reload_inner.
35131         (rs6000_secondary_reload_fail): Likewise.
35132         (rs6000_secondary_reload_inner): Likewise.
35134         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
35135         macros for first/last GPR and FPR registers.
35136         (LAST_GPR_REGNO): Likewise.
35137         (FIRST_FPR_REGNO): Likewise.
35138         (LAST_FPR_REGNO): Likewise.
35140         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
35141         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
35142         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
35143         (vcond<mode><mode>): Likewise.
35144         (vcondu<mode><mode>): Likewise.
35145         (vector_gtu<mode>): Likewise.
35146         (vector_gte<mode>): Likewise.
35147         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
35148         to prevent the compiler from converting DImode operations to TImode.
35149         (ior<mode>3): Likewise.
35150         (and<mode>3): Likewise.
35151         (one_cmpl<mode>2): Likewise.
35152         (nor<mode>3): Likewise.
35153         (andc<mode>3): Likewise.
35155         * config/rs6000/constraints.md (wt constraint): New constraint
35156         that returns VSX_REGS if TImode is allowed in VSX registers.
35158         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
35159         constant under VSX.
35161         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
35162         similar to TImode, but it is restricted to being in the GPRs.
35164         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
35165         TImode to occupy a single VSX register.
35167         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
35168         -mvsx-timode for power7/power8.
35169         (power7 cpu): Likewise.
35170         (power8 cpu): Likewise.
35172         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
35173         sure that TFmode/TDmode take up two registers if they are ever
35174         allowed in the upper VSX registers.
35175         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
35176         registers.
35177         (rs6000_init_hard_regno_mode_ok): Likewise.
35178         (rs6000_debug_reg_global): Add debugging for PTImode and wt
35179         constraint.  Print if LRA is turned on.
35180         (rs6000_option_override_internal): Give an error if -mvsx-timode
35181         and VSX is not enabled.
35182         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
35183         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
35184         to reg+offset addressing.  Use PTImode when checking offset
35185         addresses for validity.
35186         (reg_offset_addressing_ok_p): Likewise.
35187         (rs6000_legitimate_offset_address_p): Likewise.
35188         (rs6000_legitimize_address): Likewise.
35189         (rs6000_legitimize_reload_address): Likewise.
35190         (rs6000_legitimate_address_p): Likewise.
35191         (rs6000_eliminate_indexed_memrefs): Likewise.
35192         (rs6000_emit_move): Likewise.
35193         (rs6000_secondary_reload): Likewise.
35194         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
35195         reloads to fpr registers to continue to use reg+offset addressing,
35196         but 64-bit reloads to altivec registers need reg+reg addressing.
35197         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
35198         it.  Treat LO_SUM like a PLUS operation.
35199         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
35200         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
35201         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
35202         registers to share a register with a smaller sized type, since VSX
35203         puts scalars in the upper 64-bits.
35204         (print_operand): Add support for PTImode.
35205         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
35206         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
35207         registers, but don't have arithmetic support.
35208         (rs6000_memory_move_cost): Add test for VSX.
35209         (rs6000_opt_masks): Add -mvsx-timode.
35211         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
35212         for TImode.
35213         (VSs): Likewise.
35214         (VSr): Use wt constraint for TImode.
35215         (VSv): Drop TImode support.
35216         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
35217         (vsx_movti_64bit): Likewise.
35218         (vsx_movti_32bit): Likewise.
35219         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
35220         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
35221         one '?' on the appropriate output constraint.  Do not allow TImode
35222         logical operations on 32-bit systems.
35223         (vsx_ior<mode>3): Likewise.
35224         (vsx_xor<mode>3): Likewise.
35225         (vsx_one_cmpl<mode>2): Likewise.
35226         (vsx_nor<mode>3): Likewise.
35227         (vsx_andc<mode>3): Likewise.
35228         (vsx_concat_<mode>): Likewise.
35229         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
35231         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
35232         OPTION_MASK_VSX_TIMODE.
35233         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
35234         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
35236         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
35237         (TI2 iterator): New iterator for TImode, PTImode.
35238         (wd mode attribute): Add values for vector types.
35239         (movti_string): Replace TI move operations with operations for TImode
35240         and PTImode.  Add support for TImode being allowed in VSX registers.
35241         (mov<mode>_string, TImode/PTImode): Likewise.
35242         (movti_ppc64): Likewise.
35243         (mov<mode>_ppc64, TImode/PTImode): Likewise.
35244         (TI mode splitters): Likewise.
35246         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
35247         constraint.
35249 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
35251         PR tree-optimization/56355
35252         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
35253         Also handle integers with undefined overflow.
35255 2013-03-20  Catherine Moore  <clm@codesourcery.com>
35256             Maciej W. Rozycki  <macro@codesourcery.com>
35257             Tom de Vries  <tom@codesourcery.com>
35258             Nathan Sidwell  <nathan@codesourcery.com>
35259             Iain Sandoe  <iain@codesourcery.com>
35260             Nathan Froyd  <froydnj@codesourcery.com>
35261             Chao-ying Fu  <fu@mips.com>
35263         * doc/extend.texi: (micromips, nomicromips, nocompression):
35264         Document new function attributes.
35265         * doc/invoke.texi (minterlink-compressed, mmicromips,
35266         m14k, m14ke, m14kec): Document new options.
35267         (minterlink-mips16): Update documentation.
35268         * doc/md.texi (ZC, ZD): Document new constraints.
35269         * configure.ac (gcc_cv_as_micromips): Check if linker
35270         supports the .set micromips directive.
35271         * configure: Regenerate.
35272         * config.in: Regenerate.
35273         * config/mips/mips-tables.opt: Regenerate.
35274         * config/mips/micromips.md: New file.
35275         * constraints.md (ZC, ZD): New constraints.
35276         * config/mips/predicates.md (movep_src_register): New predicate.
35277         (movep_src_operand): New predicate.
35278         (non_volatile_mem_operand): New predicate.
35279         * config/mips/mips.md (multimem): New type.
35280         (length): Differentiate between 17-bit and 18-bit branch offsets.
35281         (MOVEP1, MOVEP2): New mode iterator.
35282         (mov_<load>l): Use ZC constraint.
35283         (mov_<load>r): Likewise.
35284         (mov_<store>l): Likewise.
35285         (mov_<store>r): Likewise.
35286         (*branch_equality<mode>_inverted): Add microMIPS support.
35287         (*branch_equality<mode>): Likewise.
35288         (*jump_absolute): Likewise.
35289         (indirect_jump_<mode>): Likewise.
35290         (tablejump_<mode>): Likewise.
35291         (<optab>_internal): Likewise.
35292         (sibcall_internal): Likewise.
35293         (sibcall_value_internal): Likewise.
35294         (prefetch): Use constraint ZD.
35295         * config/mips/mips.opt (minterlink-compressed): New option.
35296         (minterlink-mips16): Now an alias for minterlink-compressed.
35297         (mmicromips): New option.
35298         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
35299         (compare_and_swap_12): Likewise.
35300         (sync_add<mode>): Likewise.
35301         (sync_<optab>_12): Likewise.
35302         (sync_old_<optab>_12): Likewise.
35303         (sync_new_<optab>_12): Likewise.
35304         (sync_nand_12): Likewise.
35305         (sync_old_nand_12): Likewise.
35306         (sync_new_nand_12): Likewise.
35307         (sync_sub<mode>): Likewise.
35308         (sync_old_add<mode>): Likewise.
35309         (sync_old_sub<mode>): Likewise.
35310         (sync_new_add<mode>): Likewise.
35311         (sync_new_sub<mode>): Likewise.
35312         (sync_<optab><mode>): Likewise.
35313         (sync_old_<optab><mode>): Likewise.
35314         (sync_new_<optab><mode>): Likewise.
35315         (sync_nand<mode>): Likewise.
35316         (sync_old_nand<mode>): Likewise.
35317         (sync_new_nand<mode>): Likewise.
35318         (sync_lock_test_and_set<mode>): Likewise.
35319         (test_and_set_12): Likewise.
35320         (atomic_compare_and_swap<mode>): Likewise.
35321         (atomic_exchange<mode>_llsc): Likewise.
35322         (atomic_fetch_add<mode>_llsc): Likewise.
35323         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
35324         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
35325         (umips_save_restore_pattern_p): Likewise.
35326         (umips_load_store_pair_p): Likewise.
35327         (umips_output_load_store_pair): Likewise.
35328         (umips_movep_target_p): Likewise.
35329         (umips_12bit_offset_address_p): Likewise.
35330         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
35331         (mips_base_mips16): Rename this...
35332         (mips_base_compression_flags): ...to this. Update all uses.
35333         (mips_attribute_table): Add micromips, nomicromips and nocompression.
35334         (mips_mips16_decl_p): Delete.
35335         (mips_nomips16_decl_p): Delete.
35336         (mips_get_compress_on_flags): New function.
35337         (mips_get_compress_off_flags): New function.
35338         (mips_get_compress_mode): New function.
35339         (mips_get_compress_on_name): New function.
35340         (mips_get_compress_off_name): New function.
35341         (mips_insert_attributes): Support multiple compression types.
35342         (mips_merge_decl_attributes): Likewise.
35343         (umips_12bit_offset_address_p): New function.
35344         (mips_start_function_definition): Emit .set micromips directive.
35345         (mips_call_may_need_jalx_p): New function.
35346         (mips_function_ok_for_sibcall): Add microMIPS support.
35347         (mips_print_operand_punctuation): Support short delay slots and
35348         compact jumps.
35349         (umips_swm_mask, umips_swm_encoding): New.
35350         (umips_build_save_restore): New function.
35351         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
35352         (was_mips16_p): Remove.
35353         (old_compression_mode): New.
35354         (mips_set_compression_mode): New function.
35355         (mips_set_current_function): Add microMIPS support.
35356         (mips_option_override): Likewise.
35357         (umips_save_restore_pattern_p): New function.
35358         (umips_output_save_restore): New function.
35359         (umips_load_store_pair_p_1): New function.
35360         (umips_load_store_pair_p): New function.
35361         (umips_output_load_store_pair_1): New function.
35362         (umips_output_load_store_pair): New function.
35363         (umips_movep_target_p) New function.
35364         (mips_prepare_pch_save): Add microMIPS support.
35365         * config/mips/mips.h (TARGET_COMPRESSION): New.
35366         (TARGET_CPU_CPP_BUILTINS): Update macro
35367         to use new compression flags and to support microMIPS.
35368         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
35369         (MIPS_ARCH_FLOAT_SPEC): Likewise.
35370         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
35371         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
35372         (ASM_SPEC): Support mmicromips and mno-micromips.
35373         (M16STORE_REG_P): New macro.
35374         (MIPS_CALL): Support TARGET_MICROMIPS.
35375         (MICROMIPS_J): New macro.
35376         (mips_base_mips16): Rename this...
35377         (mips_base_compression_flags): ...to this.
35378         (UMIPS_12BIT_OFFSET_P): New macro.
35379         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
35380         (MULTILIB_DIRNAMES): Likewise.
35381 2013-03-20  Richard Biener  <rguenther@suse.de>
35383         PR tree-optimization/56661
35384         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
35385         the result does not have to be distinct.
35387 2013-03-20  Richard Biener  <rguenther@suse.de>
35389         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
35390         remap_gimple_op_r.
35392 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35393             Steven Bosscher  <steven@gcc.gnu.org>
35395         PR rtl-optimization/56605
35396         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
35398 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
35400         PR bootstrap/56656
35401         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
35402         that require movd instead of movq.
35404 2013-03-20  Richard Biener  <rguenther@suse.de>
35406         * tree-ssa-structalias.c (struct variable_info): Add pointer
35407         to the first field of an aggregate with sub-vars.  Make
35408         this and the pointer to the next subfield its ID.
35409         (vi_next): New function.
35410         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
35411         storedanything_id, integer_id): Increment by one.
35412         (new_var_info, get_call_vi, lookup_call_clobber_vi,
35413         get_call_clobber_vi): Adjust.
35414         (solution_set_expand): Simplify and speedup.
35415         (solution_set_add): Inline into ...
35416         (set_union_with_increment): ... this.  Adjust accordingly.
35417         (do_sd_constraint): Likewise.
35418         (do_ds_constraint): Likewise.
35419         (do_complex_constraint): Simplify.
35420         (build_pred_graph): Adjust.
35421         (solve_graph): Likewise.  Simplify and speedup.
35422         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
35423         get_constraint_for_component_ref, get_constraint_for_1,
35424         first_vi_for_offset, first_or_preceding_vi_for_offset,
35425         create_function_info_for, create_variable_info_for_1,
35426         create_variable_info_for, intra_create_variable_infos): Adjust.
35427         (init_base_vars): Push NULL for ID zero.
35428         (compute_points_to_sets): Adjust.
35430 2013-03-20  Richard Biener  <rguenther@suse.de>
35432         * cfgloop.c (verify_loop_structure): Streamline and avoid
35433         ICEing on corrupt loop tree.
35434         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
35435         loop tree.
35437 2013-03-20  Richard Biener  <rguenther@suse.de>
35439         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
35440         check whether an SSA update is needed.
35442 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
35444         * config/mips/constraints.md (T): Rename to...
35445         (Yf): ...this.
35446         (U): Rename to...
35447         (Yd): ...this.
35448         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
35449         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
35451 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
35453         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
35454         (*subsi3_carryin_uxtw): Likewise.
35456 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
35458         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
35459         (*rorsi3_insn_uxtw): Likewise.
35461 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
35463         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
35464         (*extrsi5_insn_uxtw): Likewise.
35466 2013-03-19  Richard Biener  <rguenther@suse.de>
35468         PR tree-optimization/56273
35469         * passes.c (init_optimization_passes): Move second VRP after DOM.
35471 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
35473         * config/i386/i386.md (*movti_internal): Merge from
35474         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
35475         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
35476         nox64 isa attributes.
35478 2013-03-18  Richard Biener  <rguenther@suse.de>
35480         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
35481         (unite): Likewise.
35482         (merge_node_constraints): Likewise.
35483         (build_succ_graph): Likewise.
35484         (valid_graph_edge): Inline into single caller.
35485         (unify_nodes): Likewise.  Use bitmap_set_bit return value
35486         and cache varinfo.
35487         (scc_visit): Fix formatting and variable use.
35488         (do_sd_constraint): Use gcc_checking_assert.
35489         (do_ds_constraint): Likewise.
35490         (do_complex_constraint): Likewise.
35491         (condense_visit): Likewise.  Cleanup.
35492         (dump_pred_graph): New function.
35493         (perform_var_substitution): Dump the pred-graph before
35494         variable substitution.
35495         (find_equivalent_node): Use gcc_checking_assert.
35496         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
35498 2013-03-18  Richard Biener  <rguenther@suse.de>
35500         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
35501         Remove cond_expr_stmt_list argument and do not gimplify the
35502         built expression.
35503         (vect_loop_versioning): Adjust.
35504         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
35505         Cleanup to use less temporaries.
35506         (vect_create_data_ref_ptr): Cleanup.
35508 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
35510         PR tree-optimization/56635
35511         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
35512         require types_compatible_p types.
35514 2013-03-18  Nick Clifton  <nickc@redhat.com>
35516         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
35517         spurious backslash.
35519         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
35520         Add missing line to comment describing function.
35522 2013-03-18  Richard Biener  <rguenther@suse.de>
35524         PR tree-optimization/56210
35525         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
35526         Handle string / character search functions.
35527         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
35529 2013-03-18  Richard Biener  <rguenther@suse.de>
35531         PR middle-end/56483
35532         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
35533         and implement properly.
35534         * gimple.h (gimple_cond_single_var_p): Remove.
35536 2013-03-18  Richard Biener  <rguenther@suse.de>
35538         * tree-data-ref.h (find_data_references_in_loop): Declare.
35539         * tree-data-ref.c (get_references_in_stmt): Use a stack
35540         vector pre-allocated in the callers.
35541         (find_data_references_in_stmt): Adjust.
35542         (graphite_find_data_references_in_stmt): Likewise.
35543         (create_rdg_vertices): Likewise.
35544         (find_data_references_in_loop): Export.
35545         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
35546         Compute dependences here...
35547         (vect_analyze_data_refs): ...not here.  When we encounter
35548         a non-vectorizable data reference in basic-block vectorization
35549         truncate the data reference vector.  Do not bother to
35550         fixup data-dependence information for gather loads.
35551         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
35552         of data references, as reported.
35554 2013-03-18  Richard Biener  <rguenther@suse.de>
35556         PR tree-optimization/3713
35557         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
35558         has_constants and expr.
35559         (stmt_has_constants): Properly valueize SSA names when deciding
35560         whether the stmt has constants.
35562 2013-03-18  Richard Biener  <rguenther@suse.de>
35564         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
35565         whole function when there is nothing to do.
35566         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
35567         * tree-vectorizer.c (vectorize_loops): Update virtual and
35568         loop-closed SSA once.
35569         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
35571 2013-03-18  Richard Biener  <rguenther@suse.de>
35573         PR middle-end/56113
35574         * domwalk.c (bb_postorder): New global static.
35575         (cmp_bb_postorder): New function.
35576         (walk_dominator_tree): Replace scheme imposing an order for
35577         visiting dominator sons by one sorting them at the time they
35578         are pushed on the stack.
35580 2013-03-18  Richard Biener  <rguenther@suse.de>
35582         PR tree-optimization/39326
35583         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
35584         (struct mem_ref): Replace mem member with ao_ref typed member.
35585         (MEM_ANALYZABLE): Adjust.
35586         (memref_eq): Likewise.
35587         (mem_ref_alloc): Likewise.
35588         (gather_mem_refs_stmt): Likewise.
35589         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
35590         (execute_sm_if_changed_flag_set): Adjust.
35591         (execute_sm): Likewise.
35592         (ref_always_accessed_p): Likewise.
35593         (refs_independent_p): Likewise.
35594         (can_sm_ref_p): Likewise.
35596 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
35598         PR c/56566
35599         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
35600         return 1 even for !unsignedp.
35602 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
35604         * config/i386/i386.md (isa): Add x64 and nox64.
35605         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
35606         (*pushtf): Enable *roF alternative for x64 isa only.
35607         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
35608         mode attribute of integer alternatives to DImode for TARGET_64BIT.
35609         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
35610         (*movtf_internal): Merge from *movtf_internal_rex64 and
35611         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
35612         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
35613         nox64 isa attributes.
35614         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
35615         nox64 isa attributes.
35616         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
35618 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
35620         * config/alpha/alpha.c (TARGET_LRA_P): New define.
35622 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
35624         PR target/56640
35625         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
35626         class names.  Remove trailing comma after "ALL_REGS".
35628 2013-03-16  Jan Hubicka  <jh@suse.cz>
35630         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
35631         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
35632         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
35633         of cgraph_get_create_node.
35634         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
35636 2013-03-16  Jason Merrill  <jason@redhat.com>
35638         PR debug/49090
35639         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
35640         with DW_AT_default_value.
35642 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
35644         * BASE-VER: Set to 4.9.0.
35646 2013-03-14  Andi Kleen  <ak@linux.intel.com>
35648         PR target/56619
35649         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
35650         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
35651         Document _x* TSX intrinsics.
35653 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
35654             David Holsgrove  <david.holsgrove@xilinx.com>
35656         * configure.ac: Add MicroBlaze TLS support detection.
35657         * configure: Regenerate.
35658         * config/microblaze/microblaze-protos.h
35659         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
35660         symbol_mentioned_p, label_mentioned_p): Add prototypes.
35661         * config/microblaze/microblaze.c (microblaze_address_type): Add
35662         ADDRESS_TLS and tls_reloc address types.
35663         (microblaze_address_info): Add tls_reloc.
35664         (TARGET_HAVE_TLS): Define.
35665         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
35666          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
35667          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
35668         load_tls_operand,  microblaze_call_tls_get_addr,
35669         microblaze_legitimize_tls_address): New functions.
35670         (microblaze_classify_unspec): Handle UNSPEC_TLS.
35671         (get_base_reg): Use microblaze_tls_symbol_p.
35672         (microblaze_classify_address): Handle TLS.
35673         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
35674         label_mentioned_p and microblaze_tls_referenced_p.
35675         (microblaze_legitimize_address): Handle TLS.
35676         (microblaze_address_insns): Handle ADDRESS_TLS.
35677         (pic_address_needs_scratch): Handle TLS.
35678         (print_operand_address): Handle TLS.
35679         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
35680         (microblaze_expand_move): Handle TLS.
35681         (microblaze_legitimate_constant_p): Check
35682         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
35683         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
35684         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
35685         (PIC_OFFSET_TABLE_REGNUM): Set.
35686         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
35687         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
35688         (addsi3, movsi_internal2, movdf_internal): Update constraints
35689         * config/microblaze/predicates.md (arith_plus_operand): Define
35690         (move_operand): Redefine as move_src_operand,
35691         check microblaze_tls_referenced_p.
35693 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
35695         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
35696         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
35698 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
35700         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
35701         CC mode for AND.
35703 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
35705         PR tree-optimization/53265
35706         * common.opt (Waggressive-loop-optimizations): New option.
35707         * tree-ssa-loop-niter.c: Include tree-pass.h.
35708         (do_warn_aggressive_loop_optimizations): New function.
35709         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
35710         if number_of_latch_executions returned constant.
35711         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
35712         early.  If number_of_latch_executions returned constant, set
35713         nb_iterations_upper_bound back to it.
35714         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
35715         field.
35716         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
35717         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
35719         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
35720         (MULTILIB_OSDIRNAMES): Set.
35721         * genmultilib: If defaultosdirname doesn't start with :: , set
35722         defaultosdirname2 instead, clear it and emit two . multilib_raw
35723         entries instead of just one.
35725 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
35727         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
35728         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
35729         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
35730         (SUBTARGET_OVERRIDE_OPTIONS): New.
35732 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
35734         PR target/49880
35735         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
35736         (musermode): Convert to Var(TARGET_USERMODE).
35737         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
35738         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
35739         * config/sh/sh.c (sh_option_override): Use
35740         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
35741         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
35742         condition.
35743         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
35744         TARGET_SH4.
35745         (udivsi3_i4_single, divsi3_i4_single): Use
35746         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
35748 2013-03-13  Dave Korn  <dave.korn.cygwin@gmail.com>
35750         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
35751         default setting.
35753 2013-03-13  Richard Biener  <rguenther@suse.de>
35755         PR tree-optimization/56608
35756         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
35757         calls when vectorizing basic-blocks.
35759 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
35761         PR plugins/45078
35762         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
35763         tm_file.
35765 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
35767         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
35769 2013-03-11  Jan Hubicka  <jh@suse.cz>
35771         PR lto/56557
35772         * lto-streamer-out.c (output_symbol_p): Skip references from
35773         constructors of external variables.
35775 2013-03-11  Jan Hubicka  <jh@suse.cz>
35777         PR middle-end/56571
35778         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
35779         from pseudos.
35780         * emit-rtl.c (verify_rtx_sharing): Likewise.
35781         (copy_insn_1): Likewise.
35782         * rtl.c (copy_rtx): Likewise.
35784 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
35786         PR target/56591
35787         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
35788         output_operand_lossage message.
35790 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
35792         PR target/56470
35793         * arm.c (shift_op): Validate RTL pattern on the fly.
35794         (arm_print_operand, case 'S'): Don't use shift_operator to validate
35795         the RTL.
35797 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35799         PR target/56347
35800         * config/pa/pa.md (call_value): Check for calls to powf and direct to
35801         new call patterns that clobber %fr12.
35802         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
35803         split and postreload patterns.
35804         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
35805         registers %fr12 and %fr12R as call used.
35807 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
35809         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
35810         (canon_address, record_store, replace_read, check_mem_read_rtx,
35811         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
35812         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
35813         rest_of_handle_dse): Likewise.
35815 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
35817         PR middle-end/56524
35818         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
35819         Add base_optabs.
35820         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
35821         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
35822         (save_optabs_if_changed): Replace with...
35823         (init_tree_optimization_optabs): ...this.
35824         * optabs.c (save_optabs_if_changed): Rename to...
35825         (init_tree_optimization_optabs): ...this.  Take the optimization node
35826         as argument.  Do nothing if the base optabs are already correct.
35827         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
35828         to recompute optabs.
35829         * function.h (function): Remove optabs field.
35830         * function.c (invoke_set_current_function_hook): Call
35831         init_tree_optimization_optabs.  Use the result to initialize
35832         this_fn_optabs.
35834 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
35836         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
35837         if GTMA_HAS_NO_INSTRUMENTATION.
35838         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
35839         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
35840         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
35841         * gimple-pretty-print.c (dump_gimple_transaction): Handle
35842         GTMA_HAS_NO_INSTRUMENTATION.
35844 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
35846         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
35847         libasan_preinit.o.
35849 2013-03-08  Marek Polacek  <polacek@redhat.com>
35850             Jakub Jelinek  <jakub@redhat.com>
35852         PR tree-optimization/56478
35853         * predict.c (is_comparison_with_loop_invariant_p): Change the
35854         type of loop_step to tree.
35855         (predict_loops): Adjust.
35856         (predict_iv_comparison): Perform the computations on double_ints.
35858 2013-03-08  Richard Biener  <rguenther@suse.de>
35860         PR tree-optimization/56570
35861         * tree-cfg.c (verify_expr_location_1): Verify locations for
35862         DECL_DEBUG_EXPR.
35863         * tree-sra.c (create_access_replacement): Strip locations
35864         from DECL_DEBUG_EXPRs.
35866 2013-03-08  Richard Biener  <rguenther@suse.de>
35868         * tree-inline.c (expand_call_inline): Do not associate
35869         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
35870         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
35872 2013-03-08  Richard Biener  <rguenther@suse.de>
35874         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
35875         or block changes with -Og.  Fix for location / block encoding
35876         changes and PHI arguments with locations.
35878 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
35880         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
35881         for all counters.
35882         (struct output_info): Likewise.
35883         (register_overhead): Remove bad gcc_assert.
35884         (bitmap_find_bit): If there is only a single bitmap element, do not
35885         count a miss as a search.
35886         (print_statistics): Update for counter type changes.
35887         (dump_bitmap_statistics): Likewise.  Print headers such that they
35888         are properly lined up with the printed counters.
35890 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
35892         PR tree-optimization/56559
35893         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
35894         check that it has only a single use.
35896 2013-03-07  Richard Biener  <rguenther@suse.de>
35898         * doc/invoke.texi (fwhole-program): Discourage use in combination
35899         with -flto.
35901 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
35903         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
35905         PR tree-optimization/56539
35906         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
35907         instead of GSI_CONTINUE_LINKING as last argument to
35908         force_gimple_operand_gsi.  Adjust function comment.
35910         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
35911         aarch64-cores.def.
35913         PR middle-end/56548
35914         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
35915         promoted mode, convert the result back to the original mode.
35917 2013-03-06  Richard Biener  <rguenther@suse.de>
35919         PR middle-end/56294
35920         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
35921         (insert_updated_phi_nodes_compare_uids): New function.
35922         (update_ssa): Sort symbols_to_rename after UID before
35923         traversing it to insert PHI nodes.
35925 2013-03-06  Richard Biener  <rguenther@suse.de>
35927         PR middle-end/50494
35928         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
35929         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
35931         Revert
35932         2013-02-13  Richard Biener  <rguenther@suse.de>
35934         PR lto/50494
35935         * varasm.c (output_constant_def_1): Get the decl representing
35936         the constant as argument.
35937         (output_constant_def): Wrap output_constant_def_1.
35938         (make_decl_rtl): Use output_constant_def_1 with the decl
35939         representing the constant.
35940         (build_constant_desc): Optionally re-use a decl already
35941         representing the constant.
35942         (tree_output_constant_def): Adjust.
35944 2013-03-06  Joey Ye  <joey.ye@arm.com>
35946         PR lto/50293
35947         * gcc.c (convert_white_space): New function.
35948         (main): Handles white space in function name.
35950 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
35952         PR target/56529
35953         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
35954         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
35955         to SH_DIV_CALL_TABLE for TARGET_SH2.
35956         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
35957         list.
35958         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
35959         call-table options.
35961 2013-03-05  Sterling Augustine  <saugustine@google.com>
35962             Cary Coutant  <ccoutant@google.com>
35964         PR debug/55364
35965         * dwarf2out.c (resolve_addr): Don't call
35966         remove_loc_list_addr_table_entries a second time for the same
35967         expression.
35969 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
35971         PR debug/56510
35972         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
35973         (avoid_complex_debug_insns): New function.
35974         (expand_debug_locations): Call it.
35976         PR rtl-optimization/56484
35977         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
35978         lifetimes of hard registers on small register class machines.
35980 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
35982         * config/microblaze/microblaze-protos.h: Rename
35983         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
35984         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
35985         fast_interrupt.
35986         (microblaze_fast_interrupt_function_p): New function.
35987         (microblaze_is_interrupt_handler): Rename to
35988         microblaze_is_interrupt_variant and add fast_interrupt check.
35989         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
35990         (save_restore_insns): Likewise.
35991         (compute_frame_size): Likewise.
35992         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
35993         (microblaze_globalize_label): Likewise.
35994         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
35995         * config/microblaze/microblaze.md: Use wrapper
35996         microblaze_is_interrupt_variant.
35998 2013-03-05  Kai Tietz  <ktietz@redhat.com>
36000         * sdbout.c (sdbout_one_type): Switch to current function's section
36001         supporting cold/hot.
36003 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
36005         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
36006         -mxl-reorder.
36008 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
36010         PR middle-end/56461
36011         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
36012         if VALGRIND_GET_VBITS is defined, temporarily make object
36013         memory all defined, and restore previous valgrind addressability
36014         and definability afterwards.  Free this_object at the end.
36016         PR middle-end/56461
36017         * lra.c (lra): Call lra_clear_live_ranges if live_p,
36018         right before calling lra_create_live_ranges, also call it
36019         when clearing live_p.  Only call lra_clear_live_ranges
36020         at the end if live_p.
36022         PR middle-end/56461
36023         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
36025 2013-03-05  Richard Biener  <rguenther@suse.de>
36027         PR tree-optimization/56521
36028         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
36029         value-id.
36031 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
36033         PR c++/55135
36034         * except.h (remove_unreachable_eh_regions): New prototype.
36035         * except.c (remove_eh_handler_splicer): New function, split out
36036         of remove_eh_handler.
36037         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
36038         warning about running it on many EH regions one at a time.
36039         (remove_unreachable_eh_regions_worker): New function, walk the
36040         EH tree in depth-first order and remove non-marked regions.
36041         (remove_unreachable_eh_regions): New function.
36042         * tree-eh.c (mark_reachable_handlers): New function, split out
36043         from remove_unreachable_handlers.
36044         (remove_unreachable_handlers): Use mark_reachable_handlers and
36045         remove_unreachable_eh_regions.
36046         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
36047         and remove_unreachable_eh_regions.
36049 2013-03-05  Richard Biener  <rguenther@suse.de>
36051         PR middle-end/56525
36052         * loop-init.c (fix_loop_structure): Remove loops in two stages,
36053         not freeing them until the end.
36055 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36057         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
36059 2013-03-05  Richard Biener  <rguenther@suse.de>
36061         PR tree-optimization/56270
36062         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
36063         of loads after scheduling an SLP instance.
36065 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
36067         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
36068         tic6x.exp.
36069         (check_gcc_parallelize): Run guality.exp as a separate job from
36070         vect.exp with unsorted.exp and $(dg_target_exps) separately from
36071         struct-layout-1.exp with stackalign.exp.
36073         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
36075         PR middle-end/56461
36076         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
36077         load_index sbitmap even if some bit in it isn't set.
36079         PR middle-end/56461
36080         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
36081         (discover_iteration_bound_by_body_walk): Change queues to
36082         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
36083         spelling in comment.  Call safe_push on queues[bound_index] directly.
36084         Release queues[queue_index] in every iteration unconditionally.
36085         Release bounds vector.
36087         PR middle-end/56461
36088         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
36089         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
36090         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
36091         inner_phis vector.
36093 2013-03-05  Richard Biener  <rguenther@suse.de>
36095         PR lto/56515
36096         * tree-inline.c (remap_blocks_to_null): New function.
36097         (expand_call_inline): When expanding a call stmt without
36098         an associated block inline remap all callee blocks to NULL.
36100 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
36102         PR rtl-optimization/56494
36103         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
36104         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
36105         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
36107         PR middle-end/56461
36108         * sel-sched-ir.c (free_sched_pools): Release
36109         succs_info_pool.stack[succs_info_pool.max_top] vectors too
36110         if succs_info_pool.max_top isn't -1.
36112         PR bootstrap/56509
36113         * opts.c (opts_obstack, opts_concat): Moved to...
36114         * opts-common.c (opts_obstack, opts_concat): ... here.
36116 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
36118         PR middle-end/56461
36119         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
36121 2013-03-04  Martin Jambor  <mjambor@suse.cz>
36123         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
36124         all appropriate places.
36126 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
36128         PR tree-optimization/56424
36129         * ipa-split.c (split_function): Do not set the RSO flag if result is
36130         not by reference and its type is a register type.
36132 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
36134         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
36135         (microblaze_legitimate_pic_operand): Likewise
36136         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
36137         new function microblaze_legitimate_pic_operand
36138         * config/microblaze/microblaze-protos.h
36139         (microblaze_legitimate_pic_operand): Declare.
36141 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
36143         * config/microblaze/predicates.md (call_insn_simple_operand):
36144         New predicate for supported rtx code types.
36145         * config/microblaze/microblaze.md (call_internal1): Use
36146         call_insn_simple_operand predicate.
36148 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
36150         PR middle-end/56461
36151         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
36152         partitions.ordered_remove.
36154         PR middle-end/56461
36155         * tree-vect-stmts.c (vectorizable_conversion): Don't call
36156         vec_oprnds0.create (1) for modifier == NONE.
36158         PR middle-end/56461
36159         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
36160         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
36161         vec_oprnds1 right before pushing anything to it for
36162         scalar_shift_arg.
36164         PR middle-end/56461
36165         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
36166         set nbbs to 0 instead of having separate code path.
36167         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
36168         instead of false as last argument if returning NULL.
36170 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
36172         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
36173         the attribute is now called "target" instead of "option".
36174         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
36175         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
36176         attribute/pragma name for TARGET_OPTION_VALID_P and
36177         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
36178         * doc/tm.texi: Regenerated.
36180 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
36182         * config/microblaze/microblaze.c:
36183         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
36184         * config/microblaze/microblaze.h: Add -mxl-reorder to
36185         DRIVER_SELF_SPECS.
36186         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
36187         instructions emitted if TARGET_REORDER.
36188         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
36189         or 0 for -m/-mno case, but initialises as 2 to detect default use case
36190         separately.
36192 2013-03-01  Xinliang David Li  <davidxl@google.com>
36194         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
36195         walk length.
36197 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
36199         PR middle-end/56461
36200         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
36201         vector even when returning true.  Fix up function comment formatting.
36203         PR middle-end/56461
36204         * ira-build.c (ira_loop_nodes_count): New variable.
36205         (create_loop_tree_nodes): Initialize it.
36206         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
36208         PR middle-end/56461
36209         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
36210         method on dr_chain and result_chain.
36211         * tree-vect-stmts.c (vectorizable_store): Only call
36212         result_chain.create if j == 0.
36214         PR middle-end/56461
36215         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
36216         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
36217         before overwriting it.
36219 2013-03-01  Tobias Burnus  <burnus@net-b.de>
36221         * doc/extended.texi (C Extensions): Change order in @menu
36222         to match @node.
36223         (Other MIPS Built-in Functions): Move last MIPS entry before
36224         "picoChip Built-in Functions".
36225         (SH Built-in Functions): Move after RX Built-in Functions.
36226         * doc/gcc.texi (Introduction): Change order in @menu
36227         to match @node.
36228         * doc/md.texi (Constraints): Ditto.
36229         * gty.texi (Type Information): Ditto.
36230         (User-provided marking routines for template types): Make
36231         subsection.
36232         * doc/invoke.texi (AArch64 Options): Move before
36233         "Adapteva Epiphany Options".
36235 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
36236             Jakub Jelinek  <jakub@redhat.com>
36238         PR sanitizer/56454
36239         * asan.c (gate_asan): Lookup no_sanitize_address instead of
36240         no_address_safety_analysis attribute.
36241         * doc/extend.texi (no_address_safety_attribute): Rename to
36242         no_sanitize_address attribute, mention no_address_safety_analysis
36243         attribute as deprecated alias.
36245 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
36247         PR middle-end/56461
36248         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
36249         type to vec<vec<tree> > *.
36250         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
36251         to be vec<tree> instead of vec<tree> *, set vec_defs
36252         to vNULL and call vec_defs.create (number_of_vects), adjust other
36253         uses of vec_defs.
36254         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
36255         vectorizable_condition): Adjust vect_get_slp_defs callers.
36257 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
36259         * config/aarch64/aarch64.c
36260         (aarch64_float_const_representable): Remove unused variable.
36262 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
36264         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
36266 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
36268         * config/aarch64/aarch64-builtins.c
36269         (aarch64_init_simd_builtins): Make static.
36271 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
36273         * config/aarch64/aarch64.c
36274         (aarch64_simd_make_constant): Make static.
36276 2013-02-28  Martin Jambor  <mjambor@suse.cz>
36278         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
36279         with no initialization to the RHS of debug statements.
36281 2013-02-28  Martin Jambor  <mjambor@suse.cz>
36283         PR tree-optimization/56294
36284         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
36285         Adjust dumping.
36286         (get_access_replacement): Do not call create_access_replacement.
36287         Assert a replacement exists.
36288         (get_repl_default_def_ssa_name): Create the replacement declaration
36289         itself.
36291 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
36293         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
36294         final_end_function.
36296 2013-02-28  Marek Polacek  <polacek@redhat.com>
36298         PR rtl-optimization/56466
36299         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
36300         if we're changing a loop.
36301         (peel_loops_completely): Likewise.
36303 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
36305         PR c++/55813
36306         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
36308 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
36310         PR target/56445
36311         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
36312         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
36313         INTX_FTYPE_FX, FX_FTYPE_INTX.
36314         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
36316 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
36318         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
36319         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
36320         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
36321         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
36322         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
36323         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
36324         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
36325         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
36326         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
36327         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
36328         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
36329         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
36330         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
36331         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
36332         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
36333         (avrxmega6): Increase max flash segments from 5 to 6.
36334         * config/avr/t-multilib: Regenerate.
36335         * config/avr/avr-tables.opt: Regenerate.
36336         * doc/avr-mmcu.texi: Regenerate.
36338 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
36340         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
36341         (avr_device_to_arch): Rename to avr_device_to_ld.
36342         (avr_device_to_as): New prototype.
36343         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
36344         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
36345         * config/avr/driver-avr.c (avr_device_to_as): New.
36346         (avr_device_to_arch): Rename to avr_device_to_ld.
36348 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
36350         PR middle-end/56461
36351         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
36352         method on dr_chain and result_chain.
36354         PR middle-end/56461
36355         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
36356         pointer_set_destroy on not_executed_last_iteration.
36358         PR middle-end/56461
36359         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
36361         PR middle-end/56461
36362         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
36363         FOR_EACH_DEFINED_FUNCTION when freeing state.
36365         PR middle-end/56461
36366         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
36367         pool_free.
36368         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
36369         overwriting it.
36371         PR middle-end/56461
36372         * ipa-cp.c (decide_whether_version_node): Call vec_free on
36373         known_aggs[i].items and release known_aggs vector.
36375         PR middle-end/56461
36376         * ipa-reference.c (propagate): Free node_info even for alias nodes.
36378 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
36380         * config/microblaze/microblaze.c (microblaze_emit_compare):
36381         Use xor for EQ/NE comparisions.
36382         * config/microblaze/microblaze.md (cstoresf4): Add constraints
36383         (cbranchsf4): Adjust operator to comparison_operator.
36385 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
36387         PR middle-end/56461
36388         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
36389         vector.
36390         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
36391         vec_safe_push, always update *slot.
36392         (redirect_edge_var_map_clear): Use vec_free.
36393         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
36394         (free_var_map_entry): Use vec_free.
36395         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
36396         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
36398 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
36400         PR middle-end/45472
36401         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
36402         when the may_trap_p bit of the exprs being merged differs.
36403         Reorder tests for speculativeness in the logical and operator.
36405 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
36407         * incpath.c (add_standard_paths): Use reconcat instead of concat
36408         where appropriate and avoid leaking memory.
36410         * opts.h: Include obstack.h.
36411         (opts_concat): New prototype.
36412         (opts_obstack): New declaration.
36413         * opts.c (opts_concat): New function.
36414         (opts_obstack): New variable.
36415         (init_options_struct): Call gcc_init_obstack on opts_obstack.
36416         (finish_options): Use opts_concat instead of concat
36417         and XOBNEWVEC instead of XNEWVEC.
36418         * opts-common.c (generate_canonical_option, decode_cmdline_option,
36419         generate_option): Likewise.
36420         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
36421         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
36423         PR target/56455
36424         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
36425         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
36427 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
36429         PR middle-end/56461
36430         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
36432 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
36434         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
36435         (arm_block_move_unaligned_straight): Likewise.
36436         (arm_adjust_block_mem): Likewise.
36438 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
36440         PR target/48901
36441         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
36442         temp, cond and label.
36443         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
36445         PR target/52500
36446         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
36447         * config/c6x/c6x.h (dbx_register_map): Update declaration.
36449         PR target/52501
36450         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
36451         of prologue/epilogue functions.
36453         PR target/52550
36454         * config/tilegx/tilegx.c (tilegx_expand_prologue):
36455         Remove unused variable cfa_offset.
36456         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
36458         PR target/54639
36459         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
36460         type promotion to unsigned.
36462         PR target/54640
36463         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
36464         for HOST_WIDE_INT of 32 bit / same size as int.
36465         (arm_block_move_unaligned_straight): Likewise.
36466         (arm_adjust_block_mem): Likewise.
36468         PR target/54662
36469         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
36470         ALL_CFLAGS.
36472 2013-02-26  Marek Polacek  <polacek@redhat.com>
36474         PR tree-optimization/56426
36475         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
36477 2013-02-26  Richard Biener  <rguenther@suse.de>
36479         PR target/56444
36480         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
36481         unused variable loops.
36483 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
36485         PR tree-optimization/56448
36486         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
36487         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
36488         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
36489         later operands of the references, or even first operand for
36490         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
36492         PR tree-optimization/56443
36493         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
36494         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
36495         to type_for_mode langhook.
36497 2013-02-25  Matt Turner  <mattst88@gmail.com>
36499         * doc/invoke.texi: Document r4700.
36501 2013-02-25  Richard Biener  <rguenther@suse.de>
36503         PR tree-optimization/56175
36504         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
36505         split out from ...
36506         (simplify_bitwise_binary): ... here.  Also guard the conversion
36507         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
36509 2013-02-25  Catherine Moore  <clm@codesourcery.com>
36511         Revert:
36512         2013-02-24  Catherine Moore  <clm@codesourcery.com>
36513             Maciej W. Rozycki  <macro@codesourcery.com>
36514             Tom de Vries  <tom@codesourcery.com>
36515             Nathan Sidwell  <nathan@codesourcery.com>
36516             Iain Sandoe  <iain@codesourcery.com>
36517             Nathan Froyd  <froydnj@codesourcery.com>
36518             Chao-ying Fu  <fu@mips.com>
36520         * doc/extend.texi: (micromips, nomicromips, nocompression):
36521         Document new function attributes.
36522         * doc/invoke.texi (minterlink-compressed, mmicromips,
36523         m14k, m14ke, m14kec): Document new options.
36524         (minterlink-mips16): Update documentation.
36525         * doc/md.texi (ZC, ZD): Document new constraints.
36526         * configure.ac (gcc_cv_as_micromips): Check if linker
36527         supports the .set micromips directive.
36528         * configure: Regenerate.
36529         * config.in: Regenerate.
36530         * config/mips/mips-tables.opt: Regenerate.
36531         * config/mips/micromips.md: New file.
36532         * constraints.md (ZC, AD): New constraints.
36533         * config/mips/predicates.md (movep_src_register): New predicate.
36534         (movep_src_operand): New predicate.
36535         (non_volatile_mem_operand): New predicate.
36536         * config/mips/mips.md (multimem): New type.
36537         (length): Differentiate between 17-bit and 18-bit branch offsets.
36538         (MOVEP1, MOVEP2): New mode iterator.
36539         (mov_<load>l): Use ZC constraint.
36540         (mov_<load>r): Likewise.
36541         (mov_<store>l): Likewise.
36542         (mov_<store>r): Likewise.
36543         (*branch_equality<mode>_inverted): Add microMIPS support.
36544         (*branch_equality<mode>): Likewise.
36545         (*jump_absolute): Likewise.
36546         (indirect_jump_<mode>): Likewise.
36547         (tablejump_<mode>): Likewise.
36548         (<optab>_internal): Likewise.
36549         (sibcall_internal): Likewise.
36550         (sibcall_value_internal): Likewise.
36551         (prefetch): Use constraint ZD.
36552         * config/mips/mips.opt (minterlink-compressed): New option.
36553         (minterlink-mips16): Now an alias for minterlink-compressed.
36554         (mmicromips): New option.
36555         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
36556         (compare_and_swap_12): Likewise.
36557         (sync_add<mode>): Likewise.
36558         (sync_<optab>_12): Likewise.
36559         (sync_old_<optab>_12): Likewise.
36560         (sync_new_<optab>_12): Likewise.
36561         (sync_nand_12): Likewise.
36562         (sync_old_nand_12): Likewise.
36563         (sync_new_nand_12): Likewise.
36564         (sync_sub<mode>): Likewise.
36565         (sync_old_add<mode>): Likewise.
36566         (sync_old_sub<mode>): Likewise.
36567         (sync_new_add<mode>): Likewise.
36568         (sync_new_sub<mode>): Likewise.
36569         (sync_<optab><mode>): Likewise.
36570         (sync_old_<optab><mode>): Likewise.
36571         (sync_new_<optab><mode>): Likewise.
36572         (sync_nand<mode>): Likewise.
36573         (sync_old_nand<mode>): Likewise.
36574         (sync_new_nand<mode>): Likewise.
36575         (sync_lock_test_and_set<mode>): Likewise.
36576         (test_and_set_12): Likewise.
36577         (atomic_compare_and_swap<mode>): Likewise.
36578         (atomic_exchange<mode>_llsc): Likewise.
36579         (atomic_fetch_add<mode>_llsc): Likewise.
36580         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
36581         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
36582         (umips_save_restore_pattern_p): Likewise.
36583         (umips_load_store_pair_p): Likewise.
36584         (umips_output_load_store_pair): Likewise.
36585         (umips_movep_target_p): Likewise.
36586         (umips_12bit_offset_address_p): Likewise.
36587         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
36588         (mips_base_mips16): Rename this...
36589         (mips_base_compression_flags): ...to this. Update all uses.
36590         (mips_attribute_table): Add micromips, nomicromips and nocompression.
36591         (mips_mips16_decl_p): Delete.
36592         (mips_nomips16_decl_p): Delete.
36593         (mips_get_compress_on_flags): New function.
36594         (mips_get_compress_off_flags): New function.
36595         (mips_get_compress_mode): New function.
36596         (mips_get_compress_on_name): New function.
36597         (mips_get_compress_off_name): New function.
36598         (mips_insert_attributes): Support multiple compression types.
36599         (mips_merge_decl_attributes): Likewise.
36600         (umips_12bit_offset_address_p): New function.
36601         (mips_start_function_definition): Emit .set micromips directive.
36602         (mips_call_may_need_jalx_p): New function.
36603         (mips_function_ok_for_sibcall): Add microMIPS support.
36604         (mips_print_operand_punctuation): Support short delay slots and
36605         compact jumps.
36606         (umips_swm_mask, umips_swm_encoding): New.
36607         (umips_build_save_restore): New function.
36608         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
36609         (was_mips16_p): Remove.
36610         (old_compression_mode): New.
36611         (mips_set_compression_mode): New function.
36612         (mips_set_current_function): Add microMIPS support.
36613         (mips_option_override): Likewise.
36614         (umips_save_restore_pattern_p): New function.
36615         (umips_output_save_restore): New function.
36616         (umips_load_store_pair_p_1): New function.
36617         (umips_load_store_pair_p): New function.
36618         (umips_output_load_store_pair_1): New function.
36619         (umips_output_load_store_pair): New function.
36620         (umips_movep_target_p) New function.
36621         (mips_prepare_pch_save): Add microMIPS support.
36622         * config/mips/mips.h (TARGET_COMPRESSION): New.
36623         (TARGET_CPU_CPP_BUILTINS): Update macro
36624         to use new compression flags and to support microMIPS.
36625         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
36626         (MIPS_ARCH_FLOAT_SPEC): Likewise.
36627         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
36628         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
36629         (ASM_SPEC): Support mmicromips and mno-micromips.
36630         (M16STORE_REG_P): New macro.
36631         (MIPS_CALL): Support TARGET_MICROMIPS.
36632         (MICROMIPS_J): New macro.
36633         (mips_base_mips16): Rename this...
36634         (mips_base_compression_flags): ...to this.
36635         (UMIPS_12BIT_OFFSET_P): New macro.
36636         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
36637         (MULTILIB_DIRNAMES): Likewise.
36639 2013-02-25  Tom de Vries  <tom@codesourcery.com>
36641         PR rtl-optimization/56131
36642         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
36643         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
36644         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
36646 2013-02-25  Tobias Burnus  <burnus@net-b.de>
36648         * doc/invoke.texi (-fsanitize=): Move from optimization
36649         to debugging options.
36651 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
36653         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
36655 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
36656             Alexander Monakov  <amonakov@ispras.ru>
36658         PR middle-end/56077
36659         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
36660         flush pending lists also on non-jumps.  Adjust comment.
36662 2013-02-24  Catherine Moore  <clm@codesourcery.com>
36663             Maciej W. Rozycki  <macro@codesourcery.com>
36664             Tom de Vries  <tom@codesourcery.com>
36665             Nathan Sidwell  <nathan@codesourcery.com>
36666             Iain Sandoe  <iain@codesourcery.com>
36667             Nathan Froyd  <froydnj@codesourcery.com>
36668             Chao-ying Fu  <fu@mips.com>
36670         * doc/extend.texi: (micromips, nomicromips, nocompression):
36671         Document new function attributes.
36672         * doc/invoke.texi (minterlink-compressed, mmicromips,
36673         m14k, m14ke, m14kec): Document new options.
36674         (minterlink-mips16): Update documentation.
36675         * doc/md.texi (ZC, ZD): Document new constraints.
36676         * configure.ac (gcc_cv_as_micromips): Check if linker
36677         supports the .set micromips directive.
36678         * configure: Regenerate.
36679         * config.in: Regenerate.
36680         * config/mips/mips-tables.opt: Regenerate.
36681         * config/mips/micromips.md: New file.
36682         * constraints.md (ZC, AD): New constraints.
36683         * config/mips/predicates.md (movep_src_register): New predicate.
36684         (movep_src_operand): New predicate.
36685         (non_volatile_mem_operand): New predicate.
36686         * config/mips/mips.md (multimem): New type.
36687         (length): Differentiate between 17-bit and 18-bit branch offsets.
36688         (MOVEP1, MOVEP2): New mode iterator.
36689         (mov_<load>l): Use ZC constraint.
36690         (mov_<load>r): Likewise.
36691         (mov_<store>l): Likewise.
36692         (mov_<store>r): Likewise.
36693         (*branch_equality<mode>_inverted): Add microMIPS support.
36694         (*branch_equality<mode>): Likewise.
36695         (*jump_absolute): Likewise.
36696         (indirect_jump_<mode>): Likewise.
36697         (tablejump_<mode>): Likewise.
36698         (<optab>_internal): Likewise.
36699         (sibcall_internal): Likewise.
36700         (sibcall_value_internal): Likewise.
36701         (prefetch): Use constraint ZD.
36702         * config/mips/mips.opt (minterlink-compressed): New option.
36703         (minterlink-mips16): Now an alias for minterlink-compressed.
36704         (mmicromips): New option.
36705         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
36706         (compare_and_swap_12): Likewise.
36707         (sync_add<mode>): Likewise.
36708         (sync_<optab>_12): Likewise.
36709         (sync_old_<optab>_12): Likewise.
36710         (sync_new_<optab>_12): Likewise.
36711         (sync_nand_12): Likewise.
36712         (sync_old_nand_12): Likewise.
36713         (sync_new_nand_12): Likewise.
36714         (sync_sub<mode>): Likewise.
36715         (sync_old_add<mode>): Likewise.
36716         (sync_old_sub<mode>): Likewise.
36717         (sync_new_add<mode>): Likewise.
36718         (sync_new_sub<mode>): Likewise.
36719         (sync_<optab><mode>): Likewise.
36720         (sync_old_<optab><mode>): Likewise.
36721         (sync_new_<optab><mode>): Likewise.
36722         (sync_nand<mode>): Likewise.
36723         (sync_old_nand<mode>): Likewise.
36724         (sync_new_nand<mode>): Likewise.
36725         (sync_lock_test_and_set<mode>): Likewise.
36726         (test_and_set_12): Likewise.
36727         (atomic_compare_and_swap<mode>): Likewise.
36728         (atomic_exchange<mode>_llsc): Likewise.
36729         (atomic_fetch_add<mode>_llsc): Likewise.
36730         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
36731         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
36732         (umips_save_restore_pattern_p): Likewise.
36733         (umips_load_store_pair_p): Likewise.
36734         (umips_output_load_store_pair): Likewise.
36735         (umips_movep_target_p): Likewise.
36736         (umips_12bit_offset_address_p): Likewise.
36737         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
36738         (mips_base_mips16): Rename this...
36739         (mips_base_compression_flags): ...to this. Update all uses.
36740         (mips_attribute_table): Add micromips, nomicromips and nocompression.
36741         (mips_mips16_decl_p): Delete.
36742         (mips_nomips16_decl_p): Delete.
36743         (mips_get_compress_on_flags): New function.
36744         (mips_get_compress_off_flags): New function.
36745         (mips_get_compress_mode): New function.
36746         (mips_get_compress_on_name): New function.
36747         (mips_get_compress_off_name): New function.
36748         (mips_insert_attributes): Support multiple compression types.
36749         (mips_merge_decl_attributes): Likewise.
36750         (umips_12bit_offset_address_p): New function.
36751         (mips_start_function_definition): Emit .set micromips directive.
36752         (mips_call_may_need_jalx_p): New function.
36753         (mips_function_ok_for_sibcall): Add microMIPS support.
36754         (mips_print_operand_punctuation): Support short delay slots and
36755         compact jumps.
36756         (umips_swm_mask, umips_swm_encoding): New.
36757         (umips_build_save_restore): New function.
36758         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
36759         (was_mips16_p): Remove.
36760         (old_compression_mode): New.
36761         (mips_set_compression_mode): New function.
36762         (mips_set_current_function): Add microMIPS support.
36763         (mips_option_override): Likewise.
36764         (umips_save_restore_pattern_p): New function.
36765         (umips_output_save_restore): New function.
36766         (umips_load_store_pair_p_1): New function.
36767         (umips_load_store_pair_p): New function.
36768         (umips_output_load_store_pair_1): New function.
36769         (umips_output_load_store_pair): New function.
36770         (umips_movep_target_p) New function.
36771         (mips_prepare_pch_save): Add microMIPS support.
36772         * config/mips/mips.h (TARGET_COMPRESSION): New.
36773         (TARGET_CPU_CPP_BUILTINS): Update macro
36774         to use new compression flags and to support microMIPS.
36775         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
36776         (MIPS_ARCH_FLOAT_SPEC): Likewise.
36777         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
36778         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
36779         (ASM_SPEC): Support mmicromips and mno-micromips.
36780         (M16STORE_REG_P): New macro.
36781         (MIPS_CALL): Support TARGET_MICROMIPS.
36782         (MICROMIPS_J): New macro.
36783         (mips_base_mips16): Rename this...
36784         (mips_base_compression_flags): ...to this.
36785         (UMIPS_12BIT_OFFSET_P): New macro.
36786         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
36787         (MULTILIB_DIRNAMES): Likewise.
36789 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
36791         PR target/52555
36792         * target-globals.c (save_target_globals): For init_reg_sets and
36793         target_reinit remporarily set this_fn_optabs to this_target_optabs.
36795 2013-02-22  James Greenhalgh  <james.greenhalgh@arm.com>
36797         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
36798         * config/aarch64/t-aarch64
36799         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
36801 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
36803         PR inline-asm/56148
36804         * lra-constraints.c (process_alt_operands): Reload operand
36805         conflicting with earlier clobber only if no more other conflicting
36806         operands.
36808 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
36810         PR sanitizer/56393
36811         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
36812         if not linking a shared library.
36814 2013-02-22  Seth LaForge  <sethml@google.com>
36816         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
36818 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
36820         * config/arm/arm.md (split for extendsidi): Update condition.
36821         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
36822         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
36823         (qhs_zextenddi_cstr): Likewise.
36825 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
36827         PR middle-end/56420
36828         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
36829         avoid signed wrapping.
36830         (expand_mult): Handle properly multiplication by
36831         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
36832         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
36833         in the compiler if coeff is HOST_WIDE_INT_MIN.
36834         (expand_divmod): Don't make ext_op1 static, change it's type to
36835         uhwi.  Avoid undefined behavior in -INTVAL (op1).
36837         PR rtl-optimization/50339
36838         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
36839         field.
36840         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
36841         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
36842         into splitting_ashiftrt field.
36843         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
36844         ASHIFTRT.
36845         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
36846         choices.
36848 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
36850         PR middle-end/56108
36851         * trans-mem.c (execute_tm_mark): Do not expand transactions that
36852         are sure to go irrevocable.
36854 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
36856         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
36857         scalars are valid operands.
36859 2013-02-21  Martin Jambor  <mjambor@suse.cz>
36861         PR tree-optimization/56310
36862         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
36863         only matching indices and non-negative final offsets.
36864         (intersect_aggregates_with_edge): Pass src_idx to
36865         agg_replacements_to_vector.  Pass src_idx insstead of index to
36866         intersect_with_agg_replacements.
36868 2013-02-21  Martin Jambor  <mjambor@suse.cz>
36870         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
36871         instead of hard-wired defaults.
36873 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
36875         * doc/invoke.texi (MIPS Options): Update documentation of the
36876         floating-point multiply-accumulate instruction restrictions.
36878 2013-02-21  Kostya Serebryany  <kcc@google.com>
36880         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
36881         asan_shadow_offset on x86_64 linux.
36883 2013-02-21  Richard Biener  <rguenther@suse.de>
36885         PR tree-optimization/56415
36886         Revert
36887         2013-02-11  Richard Biener  <rguenther@suse.de>
36889         PR tree-optimization/56273
36890         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
36891         first VRP run.
36893 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
36895         PR bootstrap/56258
36896         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
36897         instead of @itemx.
36899         PR inline-asm/56405
36900         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
36901         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
36903 2013-02-20  Jan Hubicka  <jh@suse.cz>
36905         PR tree-optimization/56265
36906         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
36907         when target is referenced for first time.
36909 2013-02-20  Richard Biener  <rguenther@suse.de>
36911         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
36912         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
36913         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
36914         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
36915         not return anything.
36916         (rename_ssa_copies): Do not remove unused locals.
36917         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
36918         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
36919         * passes.c (execute_function_todo): Do not schedule unused locals
36920         removal if cleanup_tree_cfg did something.
36921         * tree-ssa-live.c (remove_unused_locals): Dump statistics
36922         about the number of removed locals.
36924 2013-02-20  Richard Biener  <rguenther@suse.de>
36926         PR tree-optimization/56398
36927         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
36929 2013-02-20  Martin Jambor  <mjambor@suse.cz>
36931         PR tree-optimization/55334
36932         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
36933         restricted pointers to arrays.
36935 2013-02-20  Richard Biener  <rguenther@suse.de>
36936             Jakub Jelinek  <jakub@redhat.com>
36938         PR tree-optimization/56396
36939         * tree-ssa-ccp.c (n_const_val): New static variable.
36940         (get_value): Return NULL for SSA names we don't have a lattice
36941         entry for.
36942         (ccp_initialize): Initialize n_const_val.
36943         * tree-ssa-copy.c (n_copy_of): New static variable.
36944         (init_copy_prop): Initialize n_copy_of.
36945         (get_value): Return NULL_TREE for SSA names we don't have a
36946         lattice entry for.
36948 2013-02-20  Martin Jambor  <mjambor@suse.cz>
36950         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
36952 2013-02-20  Richard Biener  <rguenther@suse.de>
36954         * genpreds.c (write_lookup_constraint): Do not compare first
36955         letter of the constraint again.
36957 2013-02-20  Richard Biener  <rguenther@suse.de>
36959         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
36960         and ceil_log2.
36961         (get_use_iv_cost): Terminate hashtable walk when coming across
36962         an empty entry.
36964 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
36966         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
36967         reassociation for avx2 targets.
36969 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
36971         * config/microblaze/microblaze.c: microblaze_has_clz = 0
36972         Add version check for v8.10.a to enable microblaze_has_clz
36973         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
36974         version and TARGET_PATTERN_COMPARE check
36975         * config/microblaze/microblaze.md: New clzsi2 instruction
36977 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
36979         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
36980         function before branching.
36982 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
36984         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
36985         DUMP_INSN_RTX_UID.
36986         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
36988 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
36990         PR middle-end/55889
36991         * sel-sched.c: Include ira.h.
36992         (implicit_clobber_conflict_p): New function.
36993         (moveup_expr): Use it.
36994         * Makefile.in (sel-sched.o): Depend on ira.h.
36996 2013-02-19  Richard Biener  <rguenther@suse.de>
36998         PR tree-optimization/56384
36999         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
37000         (vn_hash_type): Split out from ...
37001         (vn_hash_constant_with_type): ... here.
37002         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
37003         (vn_phi_eq): Compare types from vn_phi_s structure.
37004         (vn_phi_lookup): Populate vn_phi_s type.
37005         (vn_phi_insert): Likewise.
37007 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
37009         PR tree-optimization/56350
37010         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
37011         if haven't found reduction or nested cycle operand, rather than
37012         asserting we must find it.
37014         PR tree-optimization/56381
37015         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
37016         to fold_build3.
37018 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
37019             Jakub Jelinek  <jakub@redhat.com>
37021         PR target/52555
37022         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
37023         (swap_optab_enable): Same.
37024         (init_all_optabs): Use argument instead of global.
37025         * tree.h (struct tree_optimization_option): New field target_optabs.
37026         * expr.h (init_all_optabs): Add argument to prototype.
37027         (TREE_OPTIMIZATION_OPTABS): New.
37028         (save_optabs_if_changed): Protoize.
37029         * optabs.h: Declare this_fn_optabs.
37030         * optabs.c (save_optabs_if_changed): New.
37031         Declare this_fn_optabs.
37032         (init_optabs): Add argument to init_all_optabs() call.
37033         * function.c (invoke_set_current_function_hook): Handle per
37034         function optabs.
37035         * function.h (struct function): New field optabs.
37036         * config/mips/mips.c (mips_set_mips16_mode): Handle when
37037         optimization_current_node has changed.
37038         * target-globals.h (save_target_globals_default_opts): Protoize.
37039         * target-globals.c (save_target_globals_default_opts): New.
37041 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
37043         PR target/56347
37044         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
37045         registers %fr12 and %fr12R as call used.
37047         PR target/56214
37048         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
37049         and HImode, require all displacements to be an integer multiple of
37050         their mode size.
37051         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
37052         only allow QImode and HImode when reload is in progress and strict is
37053         true.  Likewise for symbolic addresses.  Use base14_operand to check
37054         displacements in REG+BASE addresses.
37056 2013-02-18  Richard Biener  <rguenther@suse.de>
37058         PR tree-optimization/56366
37059         * tree-vect-loop.c (get_initial_def_for_induction): Properly
37060         handle sign-conversion of outer-loop initial induction value.
37062 2013-02-18  Richard Biener  <rguenther@suse.de>
37064         PR middle-end/56349
37065         * cfghooks.c (merge_blocks): If we merge a latch into another
37066         block adjust references to it.
37067         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
37068         (verify_loop_structure): Verify that a recorded latch is in fact
37069         a latch.
37071 2013-02-18  Richard Biener  <rguenther@suse.de>
37073         PR tree-optimization/56321
37074         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
37075         order SSA name release and virtual operand unlinking.
37077 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
37079         * config/microblaze/microblaze.md (save_stack_block): Define.
37080         (restore_stack_block): Likewise.
37082 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
37084         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
37085         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
37086         * config/microblaze/microblaze.c (microblaze_option_override):
37087         Bail out early for PIC modes when target does not support PIC.
37089 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
37091         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
37092         Replace with a microblaze version.
37093         (microblaze_trampoline_init): Adapt for microblaze.
37094         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
37095         microblaze.
37097 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
37098             Dodji Seketeli  <dodji@redhat.com>
37100         PR asan/56330
37101         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
37102         (instrument_mem_region_access): Do not forget to always put
37103         instrumentation of the of 'base' and 'base + len' in a "if (len !=
37104         0) statement, even for cases where either 'base' or 'base + len'
37105         are not instrumented -- because they have been previously
37106         instrumented.  Simplify the logic by putting all the statements
37107         instrument 'base + len' inside a sequence, and then insert that
37108         sequence right before the current insertion point.  Then, to
37109         instrument 'base + len', just get an iterator on that statement.
37110         And do not forget to update the pointer to iterator the function
37111         received as argument.
37113 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
37115         PR rtl-optimization/56348
37116         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
37118 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
37120         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
37121         (clean_graph_dump_file): Pass base to start_graph_dump.
37123 2013-02-14  Richard Henderson  <rth@redhat.com>
37125         PR target/55941
37126         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
37128 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
37130         * collect2-aix.h: Define F_LOADONLY.
37132 2013-02-14  Richard Biener  <rguenther@suse.de>
37134         PR lto/50494
37135         * varasm.c (output_constant_def_1): Get the decl representing
37136         the constant as argument.
37137         (output_constant_def): Wrap output_constant_def_1.
37138         (make_decl_rtl): Use output_constant_def_1 with the decl
37139         representing the constant.
37140         (build_constant_desc): Optionally re-use a decl already
37141         representing the constant.
37142         (tree_output_constant_def): Adjust.
37144 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
37146         Fix an asan crash
37147         * asan.c (instrument_builtin_call):  Really put the length of the
37148         second source argument into src1_len.
37150 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
37152         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
37153         argument.  If it is false, don't create edge from then_bb to
37154         fallthru_bb.
37155         (insert_if_then_before_iter): Pass true to it.
37156         (build_check_stmt): Pass false to it.
37157         (transform_statements): Flush hash table only on extended basic
37158         block boundaries, rather than at the beginning of every bb.
37159         Don't flush hash table on nonfreeing_call_p calls.
37160         * tree-flow.h (nonfreeing_call_p): New prototype.
37161         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
37163 2013-02-13  David S. Miller  <davem@davemloft.net>
37165         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
37167 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
37169         PR target/56184
37170         * ira.c (max_regno_before_ira): Move from ...
37171         (ira): ... here.
37172         (fix_reg_equiv_init): Use max_regno_before_ira instead of
37173         vec_safe_length.
37175 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
37177         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
37179 2013-02-13  Richard Biener  <rguenther@suse.de>
37181         PR lto/56295
37182         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
37183         globals in MEM_REFs.
37185 2013-02-13  Richard Biener  <rguenther@suse.de>
37187         * loop-init.c (loop_optimizer_init): Clear loop state when
37188         re-initializing preserved loops.
37189         * loop-unswitch.c (unswitch_single_loop): Return whether
37190         we unswitched the loop.  Do not verify loop state here.
37191         (unswitch_loops): When we unswitched a loop discover new loops.
37193 2013-02-13  Kostya Serebryany  <kcc@google.com>
37195         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
37196         on x86_64 linux.
37197         * sanitizer.def: Rename __asan_init to __asan_init_v1.
37199 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
37201         Avoid instrumenting duplicated memory access in the same basic block
37202         * Makefile.in (asan.o): Add new dependency on hash-table.h
37203         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
37204         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
37205         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
37206         (free_mem_ref_resources, has_mem_ref_been_instrumented)
37207         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
37208         (get_mem_ref_of_assignment): New functions.
37209         (get_mem_refs_of_builtin_call): Extract from
37210         instrument_builtin_call and tweak a little bit to make it fit with
37211         the new signature.
37212         (instrument_builtin_call): Use the new
37213         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
37214         of is_gimple_builtin_call.
37215         (instrument_derefs, instrument_mem_region_access): Insert the
37216         instrumented memory reference into the hash table.
37217         (maybe_instrument_assignment): Renamed instrument_assignment into
37218         this, and change it to advance the iterator when instrumentation
37219         actually happened and return true in that case.  This makes it
37220         homogeneous with maybe_instrument_assignment, and thus give a
37221         chance to callers to be more 'regular'.
37222         (transform_statements): Clear the memory reference hash table
37223         whenever we enter a new BB, when we cross a function call, or when
37224         we are done transforming statements.  Use
37225         maybe_instrument_assignment instead of instrumentation.  No more
37226         need to special case maybe_instrument_assignment and advance the
37227         iterator after calling it; it's now handled just like
37228         maybe_instrument_call.  Update comment.
37230 2013-02-13  Richard Biener  <rguenther@suse.de>
37232         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
37233         Fix loop discovery code.
37235 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
37237         PR inline-asm/56148
37238         * lra-constraints.c (process_alt_operands): Match early clobber
37239         operand with itself.  Check conflicts with earlyclobber only if
37240         the operand is not reloaded.  Prefer to reload conflicting operand
37241         if earlyclobber and matching operands are the same.
37243 2013-02-12  Richard Biener  <rguenther@suse.de>
37245         PR lto/56297
37246         * lto-streamer-out.c (write_symbol): Do not output symbols
37247         for hard register variables.
37249 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
37251         PR target/54222
37252         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
37253         (umulsidi3_insn, mulsidi3_insn): New insns.
37255 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
37257         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
37258         (struct tune_params): Add vec_costs field.
37259         * config/arm/arm.c (arm_builtin_vectorization_cost)
37260         (arm_add_stmt_cost): New functions.
37261         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
37262         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
37263         (arm_default_vec_cost): New struct of type cpu_vec_costs.
37264         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
37265         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
37266         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
37267         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
37269 2013-02-12  Richard Biener  <rguenther@suse.de>
37271         PR lto/56295
37272         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
37273         decls again if possible.
37275 2013-02-12  Richard Biener  <rguenther@suse.de>
37277         PR middle-end/56288
37278         * tree-ssa.c (verify_ssa_name): Fix check, move
37279         SSA_NAME_IN_FREE_LIST check up.
37281 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
37282             Steven Bosscher   <steven@gcc.gnu.org>
37284         PR rtl-optimization/56151
37285         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
37286         equal to op0 or op1, and last_insn pattern is CODE operation
37287         with MEM dest and one of the operands matches that MEM.
37289 2013-02-11  Sriraman Tallam  <tmsriram@google.com>
37291         * doc/extend.texi: Document Function Multiversioning and "default"
37292         parameter string to target attribute.
37293         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
37294         target attribute parameter is "default".
37295         (ix86_compare_version_priority): Remove checks for target attribute.
37296         (ix86_mangle_function_version_assembler_name): Change error to sorry.
37297         Remove check for target attribute equal to NULL. Add assert.
37298         (ix86_generate_version_dispatcher_body): Change error to sorry.
37300 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
37301             Jack Howarth  <howarth@bromo.med.uc.edu>
37302             Patrick Marlier  <patrick.marlier@gmail.com>
37304         PR libitm/55693
37305         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
37306         define ENDFILE_SPEC as TM_DESTRUCTOR.
37307         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
37309 2013-02-11  Alexander Potapenko  <glider@google.com>
37310             Jack Howarth  <howarth@bromo.med.uc.edu>
37311             Jakub Jelinek  <jakub@redhat.com>
37313         PR sanitizer/55617
37314         * config/darwin.c (cdtor_record): Rename ctor_record.
37315         (sort_cdtor_records): Rename sort_ctor_records.
37316         (finalize_dtors): New routine to sort destructors by
37317         priority before use in assemble_integer.
37318         (machopic_asm_out_destructor): Use finalize_dtors if needed.
37320 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
37322         PR rtl-optimization/56275
37323         * simplify-rtx.c (avoid_constant_pool_reference): Check that
37324         offset is non-negative and less than cmode size before
37325         calling simplify_subreg.
37327 2013-02-11  Richard Biener  <rguenther@suse.de>
37329         PR tree-optimization/56264
37330         * cfgloop.h (fix_loop_structure): Adjust prototype.
37331         * loop-init.c (fix_loop_structure): Return the number of
37332         newly discovered loops.
37333         * tree-cfgcleanup.c (repair_loop_structures): When new loops
37334         are discovered, do a full loop-closed SSA rewrite.
37336 2013-02-11  Richard Biener  <rguenther@suse.de>
37338         PR tree-optimization/56273
37339         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
37340         first VRP run.
37341         (check_array_ref): Fix missing newline in dumps.
37342         (search_for_addr_array): Likewise.
37344 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
37346         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
37348 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
37350         PR target/56256
37351         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
37353 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
37355         PR rtl-optimization/56246
37356         * lra-constraints.c (simplify_operand_subreg): Try to reuse
37357         reload pseudo.
37358         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
37359         constraints are satisfied.
37361 2013-02-08  Jeff Law  <law@redhat.com>
37363         PR debug/53948
37364         * emit-rtl.c (reg_is_parm_p): New function.
37365         * regs.h (reg_is_parm_p): New prototype.
37366         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
37367         callee-clobbered registers.
37369 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
37371         PR target/56043
37372         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
37373         If there is no implicit builtin declaration, just return NULL.
37375 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
37377         * config/i386/sse.md (FMAMODEM): New mode iterator.
37378         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
37379         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
37381 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
37383         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
37384         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
37385         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
37387 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
37389         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
37390         (microblaze*-*-elf): Likewise.
37391         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
37392         LINK_SPEC.
37393         * config/microblaze/microblaze-c.c: Add builtin defines for
37394         _LITTLE_ENDIAN and _BIG_ENDIAN.
37395         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
37396         add to TARGET_DEFAULT flags.
37397         Expand ASM_SPEC and LINK_SPEC.
37398         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
37399         * config/microblaze/microblaze.md: Update extendsidi2 and
37400         movdi_internal instructions to use low-order / high-order reg
37401         print_operands.
37402         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
37403         options and inversemask / mask of LITTLE_ENDIAN.
37404         * config/microblaze/t-microblaze: Expand multilib options to
37405         include mlittle-endian (le) and update exceptions patterns.
37407 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
37409         PR rtl-optimization/56195
37410         * lra-constraints.c (get_reload_reg): Don't reuse regs
37411         if they have smaller mode than requested, if they have
37412         wider mode than requested, try to return a SUBREG.
37414         PR tree-optimization/56250
37415         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
37416         if type is unsigned and code isn't MULT_EXPR.
37418 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
37420         PR tree-optimization/56064
37421         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
37422         bits according to mode.
37423         * fixed-value.h (fixed_from_double_int)
37424         (const_fixed_from_double_int): Adjust comments.
37426 2013-02-08  Richard Biener  <rguenther@suse.de>
37428         PR lto/56231
37429         * lto-streamer.h (struct data_in): Remove current_file, current_line
37430         and current_col members.
37431         * lto-streamer-out.c (lto_output_location): Stream changed bits
37432         en-block for efficiency.
37433         * lto-streamer-in.c (clear_line_info): Remove.
37434         (lto_input_location): Cache current file, line and column
37435         globally via local statics.  Read changed bits en-block.
37436         (input_function): Do not call clear_line_info.
37437         (lto_read_body): Likewise.
37438         (lto_input_toplevel_asms): Likewise.
37440 2013-02-08  Michael Matz  <matz@suse.de>
37442         PR tree-optimization/52448
37443         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
37444         (nt_call_phase): New static.
37445         (add_or_mark_expr): Only mark accesses with newer phase than any
37446         call seen.
37447         (nonfreeing_call_p): New.
37448         (nt_init_block): Update nt_call_phase, mark blocks as visited.
37449         (nt_fini_block): Keep blocks marked as visited.
37450         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
37452 2013-02-08  Richard Biener  <rguenther@suse.de>
37454         * ira.c (ira): Free broken dominator information.
37456 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
37458         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
37460 2013-02-08  Marek Polacek  <polacek@redhat.com>
37462         * cfgloop.c (verify_loop_structure): Add more checking of headers.
37464 2013-02-08  Richard Biener  <rguenther@suse.de>
37466         PR middle-end/56181
37467         * cfgloop.h (flow_loops_find): Adjust.
37468         (bb_loop_header_p): Declare.
37469         * cfgloop.c (bb_loop_header_p): New function split out from ...
37470         (flow_loops_find): ... here.  Adjust function signature,
37471         support incremental loop structure update.
37472         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
37473         * cfgloopmanip.c (fix_loop_structure): Move ...
37474         * loop-init.c (fix_loop_structure): ... here.
37475         (apply_loop_flags): Split out from ...
37476         (loop_optimizer_init): ... here.
37477         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
37478         in incremental mode, only remove dead loops here.
37480 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
37482         PR target/54222
37483         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
37484         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
37485         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
37486         (*round<mode>3.libgcc): New insns for fixed-modes.
37487         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
37488         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
37489         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
37490         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
37491         implementations.  Define to __builtin_avr_absFX,
37492         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
37493         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
37494         __builtin_avr_countlsFX, respectively.
37495         * config/avr/avr-c.c (target.h): Include it.
37496         (enum avr_builtin_id): New enum.
37497         (avr_resolve_overloaded_builtin): New static function.
37498         (avr_register_target_pragmas): Use it to set
37499         targetm.resolve_overloaded_builtin.
37500         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
37501         tree nodes used by DEF_BUILTIN.
37502         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
37503         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
37504         <AVR_BUILTIN_xxBITS>: Same.
37506 2013-02-08  Richard Biener  <rguenther@suse.de>
37508         * cfgloop.c (verify_loop_structure): Properly handle
37509         a loop exiting to another loop header.
37510         * ira-int.h (ira_loops): Remove.
37511         * ira.c (ira_loops): Remove.
37512         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
37513         (do_reload): Use loop_optimizer_finalize.
37514         * ira-build.c (create_loop_tree_nodes): Use get_loops and
37515         number_of_loops to access the loop tree.
37516         (more_one_region_p): Likewise.
37517         (finish_loop_tree_nodes): Likewise.
37518         (rebuild_regno_allocno_maps): Likewise.
37519         (mark_loops_for_removal): Likewise.
37520         (mark_all_loops_for_removal): Likewise.
37521         (remove_unnecessary_regions): Likewise.
37522         (ira_build): Likewise.
37523         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
37525 2013-02-08  Richard Biener  <rguenther@suse.de>
37527         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
37528         * ipa-pure-const.c (analyze_function): Avoid calling
37529         mark_irreducible_loops twice.
37530         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
37532 2013-02-07  David S. Miller  <davem@davemloft.net>
37534         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
37535         on 'reg'.
37536         * var-tracking.c (vt_add_function_parameter): Test the presence of
37537         HAVE_window_save properly and do not remap argument registers when
37538         we have a leaf function.
37540 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
37542         PR bootstrap/56227
37543         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
37544         instead of "ll".
37545         * config/i386/i386.c (ix86_print_operand): Ditto.
37547 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
37549         * lra-constraints.c (process_alt_operands): Fix recently added comment.
37551 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
37553         PR rtl-optimization/56225
37554         * lra-constraints.c (process_alt_operands): Check that reload hard
37555         reg can hold value for strict_low_part.
37557 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
37559         PR debug/56154
37560         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
37561         dwarf2out_end_function.
37562         (in_first_function_p, maybe_at_text_label_p,
37563         first_loclabel_num_not_at_text_label): New variables.
37564         (dwarf2out_var_location): In the first function find out
37565         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
37566         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
37567         functions.
37569 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
37571         PR rtl-optimization/56178
37572         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
37573         SUBREG of a register.  Tidy up related block of code.
37574         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
37575         note if the source is a register or a SUBREG of a register.
37577 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
37579         PR target/56228
37580         * config/rs6000/rs6000.md (ptrm): New mode attr.
37581         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
37582         call_value_indirect_aix<pttrsize>,
37583         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
37584         m in constraints.
37586 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
37588         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
37589         if -bnortl. Convert to strcmp and strncmp.
37591 2013-02-07  Alan Modra  <amodra@gmail.com>
37593         PR target/54009
37594         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
37595         addresses won't wrap when offsetting.
37596         (rs6000_secondary_reload): Provide secondary reloads needed for
37597         wrapping LO_SUM addresses.
37599 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
37601         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
37602         MACH, just __MACH__.
37604 2013-02-06  Richard Biener  <rguenther@suse.de>
37606         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
37607         instead of calling fix_loop_structure.
37609 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
37611         PR middle-end/56217
37612         * omp-low.c (use_pointer_for_field): Return false if
37613         lower_send_shared_vars doesn't generate any copy-out code.
37615 2013-02-06  Tom de Vries  <tom@codesourcery.com>
37617         PR rtl-optimization/56131
37618         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
37619         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
37620         of the label is NULL.  Add comment.
37622 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
37624         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
37626         PR sanitizer/55374
37627         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
37628         (STATIC_LIBTSAN_LIBS): Likewise.
37629         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
37630         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
37631         is defined, don't add anything else beyond that.
37632         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
37633         (LINK_COMMAND_SPEC): Use them.
37635         PR tree-optimization/56205
37636         * tree-stdarg.c (check_all_va_list_escapes): Return true if
37637         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
37638         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
37640 2013-02-05  Richard Biener  <rguenther@suse.de>
37642         PR tree-optimization/53342
37643         PR tree-optimization/53185
37644         * tree-vectorizer.h (vect_check_strided_load): Remove.
37645         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
37646         not disallow peeling for vectorized strided loads.
37647         (vect_check_strided_load): Make static and simplify.
37648         (vect_analyze_data_refs): Adjust.
37649         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
37650         correctly when vectorizing strided loads.
37652 2013-02-05  Richard Biener  <rguenther@suse.de>
37654         * doc/install.texi: Refer to ISL, not PPL.
37656 2013-02-05  Jan Hubicka  <jh@suse.cz>
37658         PR tree-optimization/55789
37659         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
37661 2013-02-05  Jan Hubicka  <jh@suse.cz>
37663         PR tree-optimization/55789
37664         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
37665         the dead call anyway.
37667 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
37669         PR sanitizer/55374
37670         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
37672 2013-02-04  Alexander Potapenko  <glider@google.com>
37673             Jack Howarth  <howarth@bromo.med.uc.edu>
37674             Jakub Jelinek  <jakub@redhat.com>
37676         PR sanitizer/55617
37677         * config/darwin.c (sort_ctor_records): Stabilized qsort
37678         on constructor priority by using original position.
37679         (finalize_ctors): New routine to sort constructors by
37680         priority before use in assemble_integer.
37681         (machopic_asm_out_constructor): Use finalize_ctors if needed.
37683 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
37685         PR libstdc++/54314
37686         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
37687         about visibility on artificial decls.
37688         * config/sol2.c (solaris_assemble_visibility): Likewise.
37690 2013-02-04  Kai Tietz  <ktietz@redhat.com>
37692         PR target/56186
37693         * config/i386/i386.c (function_value_ms_64): Add additional valtype
37694         argument and improve checking of return-argument types for 16-byte
37695         modes.
37696         (ix86_function_value_1): Add additional valtype argument on call
37697         of function_value_64.
37698         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
37699         handling infunction_value_64 function.
37701 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
37703         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
37705 2013-02-04  Richard Biener  <rguenther@suse.de>
37707         PR tree-optimization/56188
37708         * tree-ssa-structalias.c (label_visit): Consider case with
37709         initially non-empty points-to set.
37710         (perform_var_substitution): Dump node mapping and clean up.
37712 2013-02-04  Richard Guenther  <rguenther@suse.de>
37714         PR lto/56168
37715         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
37716         node prevail as last resort.
37717         (lto_symtab_merge_decls): Remove guard on LTRANS here.
37718         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
37720 2013-02-04  Richard Biener  <rguenther@suse.de>
37722         PR tree-optimization/56113
37723         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
37724         Merge into ...
37725         (equiv_class_lookup_or_add): ... this.
37726         (label_visit): Adjust and fix error in previous patch.
37727         (perform_var_substitution): Adjust.
37729 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
37731         * config/sh/divtab.c: Fix formatting and comments throughout the file.
37732         * config/sh/sh4-300.md: Likewise.
37733         * config/sh/sh4a.md: Likewise.
37734         * config/sh/constraints.md: Likewise.
37735         * config/sh/sh.md: Likewise.
37736         * config/sh/netbsd-elf.h: Likewise.
37737         * config/sh/predicates.md: Likewise.
37738         * config/sh/sh-protos.h: Likewise.
37739         * config/sh/ushmedia.h: Likewise.
37740         * config/sh/linux.h: Likewise.
37741         * config/sh/sh.c: Likewise.
37742         * config/sh/superh.h: Likewise.
37743         * config/sh/elf.h: Likewise.
37744         * config/sh/sh4.md: Likewise.
37745         * config/sh/sh.h: Likewise.
37747 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
37749         * config/pa/constraints.md: Adjust unused letters.  Change "T"
37750         constraint to match_test floating_point_store_memory_operand().
37751         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
37752         (base14_operand): New.
37753         (floating_point_store_memory_operand): New.
37754         (integer_store_memory_operand): Revise to use base14_operand and
37755         reg_plus_base_memory_operand.
37756         (move_dest_operand): Allow symbolic_memory_operands.
37757         (symbolic_memory_operand): Check for LO_SOM.
37758         (symbolic_operand): Change default case to break.
37759         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
37760         CONST_DOUBLE values to be reloaded by putting them into memory when
37761         the destination is a floating point register.
37762         (movdf): Remove code to handle CONST_DOUBLE.
37763         (movsf): Likewise.
37764         (reload_indf_r1): New.
37765         (reload_insf_r1): New.
37766         Consistently use "Q" and "T" constraints with integer and floating
37767         point move instructions, respectively.
37768         (movdi): Remove FAIL.
37769         Change predicate for source operand unamed DImode move from
37770         general_operand to move_src_operand.
37771         (umulsidi3): Change predicate for destination operand to
37772         register_operand.
37773         Likewise for similar unamed patterns.
37774         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
37775         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
37776         (hppa_legitimize_address): Simplify mask calculation.
37777         (pa_emit_move_sequence): Revised handling of secondary reloads from
37778         REG+D addresses for floating point loads and stores.  Directly handle
37779         loading CONST0_RTX (mode) to a floating point register.
37780         (pa_secondary_reload): Handle reloading DF and SFmode constant values
37781         to floating point registers.  Don't restrict secondary reloads to
37782         floating point registers to integer modes.  Revise some comments and
37783         cleanup some code.
37784         (TARGET_LEGITIMATE_ADDRESS_P): Define.
37785         (pa_legitimate_address_p): New.
37786         (pa_legitimize_reload_address): New.
37787         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
37788         (STRICT_REG_OK_FOR_BASE_P): New.
37789         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
37790         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
37792 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
37793             Andrew Dixie  <andrewd@gentrack.com>
37795         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
37796         flag set.
37798 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
37800         * expmed.c (extract_bit_field_1): Pass the full width of the
37801         structure to get_best_reg_extraction_insn.
37803 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
37805         PR target/54601
37806         * configure.ac (use_cxa_atexit): Add AIX.
37807         * configure: Regenerate.
37809         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
37811 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
37813         PR debug/54793
37814         * final.c (need_profile_function): New variable.
37815         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
37816         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
37817         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
37818         notes, targetm.asm_out.function_prologue doesn't emit anything,
37819         HAVE_prologue and profiler should be emitted before prologue,
37820         set need_profile_function instead of emitting it.
37821         (final_scan_insn): If need_profile_function, emit
37822         profile_function on the first NOTE_INSN_BASIC_BLOCK or
37823         NOTE_INSN_FUNCTION_BEG note.
37825 2013-02-01  Richard Henderson  <rth@redhat.com>
37827         * config/rs6000/rs6000.md (smulditi3): New.
37828         (umulditi3): New.
37830         * config/alpha/alpha.md (umulditi3): New.
37832 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
37834         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
37835         (ASM_OUTPUT_ALIGNED_LOCAL): New.
37837 2013-02-01  Richard Biener  <rguenther@suse.de>
37839         PR tree-optimization/56113
37840         * tree-ssa-structalias.c (label_visit): Reduce work for
37841         single-predecessor nodes.
37843 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
37845         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
37846         range isn't testing for zero.
37848 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
37850         PR middle-end/56113
37851         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
37853 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
37854             Nick Clifton  <nickc@redhat.com>
37856         * config/v850/constraints.md (Q): Define as a memory constraint.
37857         * config/v850/predicates.md (label_ref_operand): New predicate.
37858         (e3v5_shift_operand): New predicate.
37859         (ior_operator): New predicate.
37860         * config/v850/t-v850: Add e3v5 multilib.
37861         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
37862         (v850_gen_movdi): Prototype.
37863         * config/v850/v850.c: Add support for e3v5 architecture.
37864         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
37865         TARGET_V850E_UP.
37866         (construct_save_jarl): Add e3v5 long JARL support.
37867         (v850_adjust_insn_length): New function.  Adjust length of call
37868         insns when using e3v5 instructions.
37869         (v850_gen_movdi): New function: Generate instructions to move a
37870         DImode value.
37871         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
37872         (CPP_SPEC): Define __v850e3v5__ as appropriate.
37873         (TARGET_USE_FPU): Enable for e3v5.
37874         (CONST_OK_FOR_W): New macro.
37875         (ADJUST_INSN_LENGTH): Define.
37876         * config/v850/v850.md (UNSPEC_LOOP): Define.
37877         (attr cpu): Add v850e3v5.
37878         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
37879         (movdi): New pattern.
37880         (movdi_internal): New pattern.
37881         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
37882         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
37883         (cstoresf4): Likewise.
37884         (cstoredf4): Likewise.
37885         (insv): New pattern.
37886         (rotlso3_a): New pattern.
37887         (rotlsi3_b): New pattern
37888         (rotlsi3_v850e3v5): New pattern.
37889         (doloop_begin): New pattern.
37890         (fix_loop_counter): New pattern.
37891         (doloop_end): New pattern.
37892         (branch_normal): Add e3v5 long branch support.
37893         (branch_invert): Likewise.
37894         (branch_z_normal): Likewise.
37895         (branch_z_invert): Likewise.
37896         (branch_nz_normal): Likewise.
37897         (branch_nz_invert): Likewise.
37898         (call_internal_short): Add e3v5 register-indirect JARL support.
37899         (call_internal_long): Likewise.
37900         (call_value_internal_short): Likewise.
37901         (call_value_internal_long): Likewise.
37902         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
37903         (mloop): New option.
37904         * config.gcc: Add support for configuring v840e3v5 target.
37905         * doc/invoke.texi: Document new v850 specific command line options.
37907 2013-01-31  Paul Koning  <ni1d@arrl.net>
37909         PR debug/55059
37910         PR debug/54508
37911         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
37912         children if parent is a class.
37913         (prune_unused_types_prune): Don't add DW_AT_declaration.
37915 2013-01-31  Richard Biener  <rguenther@suse.de>
37917         PR tree-optimization/56157
37918         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
37919         match up operand with SLP child.
37921 2013-01-31  Jason Merrill  <jason@redhat.com>
37923         PR debug/54410
37924         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
37925         parameters the first time.
37926         (gen_scheduled_generic_parms_dies): Check completeness here.
37928 2013-01-31  Richard Biener  <rguenther@suse.de>
37930         PR middle-end/53073
37931         * common.opt (faggressive-loop-optimizations): New flag,
37932         enabled by default.
37933         * doc/invoke.texi (faggressive-loop-optimizations): Document.
37934         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
37935         infer_loop_bounds_from_undefined by it.
37937 2013-01-31  Richard Biener  <rguenther@suse.de>
37939         PR tree-optimization/56150
37940         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
37941         visit virtual operands.
37942         (find_uses_to_rename_bb): Likewise.
37944 2013-01-31  Richard Biener  <rguenther@suse.de>
37946         PR tree-optimization/56150
37947         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
37948         mixed store non-store stmts.
37950 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
37952         PR sanitizer/55374
37953         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
37954         LIBASAN_EARLY_SPEC is defined.
37955         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
37956         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
37957         before %o.
37958         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
37960         PR c++/55742
37961         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
37962         invalid args instead of ICEing on it.
37963         (ix86_valid_target_attribute_tree): Return error_mark_node if
37964         ix86_valid_target_attribute_inner_p failed.
37965         (ix86_valid_target_attribute_p): Return false only if
37966         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
37967         target("default") attribute.
37968         (sorted_attr_string): Change argument from const char * to tree,
37969         merge in all target attribute arguments rather than just one.
37970         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
37971         instead of free.  Avoid using strcat.
37972         (ix86_mangle_function_version_assembler_name): Mangle
37973         target("default") as if no target attribute is present.  Adjust
37974         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
37975         instead of xmalloc and XDELETEVEC instead of free.
37976         (ix86_function_versions): Don't return true if one of the decls
37977         doesn't have target attribute.  If they don't and one of the decls
37978         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
37979         sorted_attr_string caller.  Use XDELETEVEC instead of free.
37980         (ix86_supports_function_versions): Remove.
37981         (make_name): Fix up formatting.
37982         (make_dispatcher_decl): Remove resolver_name and its initialization.
37983         Avoid leaking memory.
37984         (is_function_default_version): Return true if there is
37985         target("default") attribute rather than no target attribute at all.
37986         (make_resolver_func): Avoid leaking memory.
37987         (ix86_generate_version_dispatcher_body): Likewise.
37988         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
37989         * target.def (supports_function_versions): Remove.
37990         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
37991         * doc/tm.texi: Regenerated.
37993 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
37995         PR rtl-optimization/56144
37996         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
37997         for values with side effects.
37999 2013-01-30  Richard Biener  <rguenther@suse.de>
38001         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
38002         (sparseset_pop): Likewise.
38003         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
38004         to be able to use quick_push in the worker loop.
38006 2013-01-30  Marek Polacek  <polacek@redhat.com>
38008         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
38010 2013-01-30  Richard Biener  <rguenther@suse.de>
38012         PR lto/56147
38013         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
38015 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
38017         PR tree-optimization/56064
38018         * fixed-value.c (fixed_from_double_int): New function.
38019         * fixed-value.h (fixed_from_double_int): New prototype.
38020         (const_fixed_from_double_int): New static inline function.
38021         * fold-const.c (native_interpret_fixed): New static function.
38022         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
38023         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
38024         (native_encode_fixed): New static function.
38025         (native_encode_expr) <FIXED_CST>: Use it.
38026         (native_interpret_int): Move double_int worker code to...
38027         * double-int.c (double_int::from_buffer): ...this new static method.
38028         * double-int.h (double_int::from_buffer): Prototype it.
38030 2013-01-30  Richard Biener  <rguenther@suse.de>
38032         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
38033         New pointer-map and obstack.
38034         (init_alias_vars): Allocate pointer-map and obstack.
38035         (delete_points_to_sets): Free them.
38036         (find_what_var_points_to): Cache result.
38037         (find_what_p_points_to): Adjust for changed interface of
38038         find_what_var_points_to.
38039         (compute_points_to_sets): Likewise.
38040         (ipa_pta_execute): Likewise.
38042 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38044         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
38045         * configure: Regenerate.
38046         * config.in: Regenerate.
38047         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
38048         #nobits/#progbits if supported.
38050 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
38052         PR target/56121
38053         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
38054         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
38055         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
38057 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
38059         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
38060         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
38062 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
38064         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
38065         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
38067 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
38069         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
38070         declaration.
38071         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
38072         * config/arm/cortex-a7.md: New bypasses using
38073         arm_mac_accumulator_is_result.
38075 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
38077         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
38078         (cortex_a7_neon_mla): Likewise.
38079         (cortex_a7_fpfmad): New reservation.
38080         (cortex_a7_fpmacs): Use ffmas and update required units.
38081         (cortex_a7_fpmuld): Update required units and latency.
38082         (cortex_a7_fpmacd): Likewise.
38083         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
38084         (cortex_a7_neon). Likewise.
38085         (bypass) Update participating units.
38087 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
38089         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
38090         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
38091         from fmac to ffma.
38092         * config/arm/vfp11.md (vfp_farith): Use ffmas.
38093         (vfp_fmul): Use ffmad.
38094         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
38095         (cortex_r4_fmacd): Use ffmad.
38096         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
38097         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
38098         (cortex_a9_fmacd): Use ffmad.
38099         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
38100         (cortex_a8_vfp_macd): Use ffmad.
38101         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
38102         (cortex_a5_fpmacd): Use ffmad.
38103         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
38104         (cortex_a15_vfp_macd): Use ffmad.
38105         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
38107 2013-01-29  Jason Merrill  <jason@redhat.com>
38109         PR libstdc++/54314
38110         * varasm.c (default_assemble_visibility): Don't warn about
38111         visibility on artificial decls.
38113 2013-01-29  Richard Biener  <rguenther@suse.de>
38115         PR tree-optimization/56113
38116         * tree-ssa-structalias.c (equiv_class_lookup): Also return
38117         the bitmap leader.
38118         (label_visit): Free duplicate bitmaps and record the leader instead.
38119         (perform_var_substitution): Adjust.
38121 2013-01-29  Richard Biener  <rguenther@suse.de>
38123         PR tree-optimization/55270
38124         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
38125         the CFG, schedule loops for fixup.
38127 2013-01-29  Nick Clifton  <nickc@redhat.com>
38129         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
38130         SP_REG.
38132 2013-01-28  Leif Ekblad  <leif@rdos.net>
38134         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
38135         * config/i386/i386.h (TARGET_RDOS): New macro.
38136         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
38137         * config/i386/i386.c (ix86_option_override_internal): For 64bit
38138         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
38139         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
38140         DEFAULT_LARGE_SECTION_THRESHOLD.
38141         * config/i386/i386.md (R14_REG, R15_REG): New constants.
38142         * config/i386/rdos.h: New file.
38143         * config/i386/rdos64.h: New file.
38145 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
38147         PR other/54814
38148         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
38149         TEST_HARD_REG_BIT.
38151 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
38153         PR rtl-optimization/56117
38154         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
38155         call cselib_lookup_from_insn on the MEM before calling
38156         add_insn_mem_dependence.
38158 2013-01-28  Richard Biener  <rguenther@suse.de>
38160         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
38161         to a stmt that didn't have one.
38162         (copy_phis_for_bb): Likewise for PHI arguments.
38163         (copy_debug_stmt): Likewise for debug stmts.
38165 2013-01-28  Richard Biener  <rguenther@suse.de>
38167         PR tree-optimization/56034
38168         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
38169         (partition_builtin_p): Adjust.
38170         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
38171         it is the last partition.
38172         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
38173         up the vertex for the definition.
38174         (classify_partition): Classify whether a partition is a
38175         PKIND_REDUCTION, thus has uses outside of the loop.
38176         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
38177         Merge all PKIND_REDUCTION partitions into the last partition.
38178         (tree_loop_distribution): Seed partitions from reductions as well.
38180 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
38182         PR tree-optimization/56125
38183         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
38184         pow(x,c) into sqrt(x) * powi(x, n/2) or
38185         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
38186         optimizing for size.
38187         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
38188         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
38189         integer.
38191         PR tree-optimization/56094
38192         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
38193         to UNKNOWN_LOCATION while gimplifying expr.
38195 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
38197         PR target/56114
38198         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
38199         operand 0 in movabs insn template for -masm=intel asm alternative.
38200         (*movabs<mode>_2): Ditto for operand 1.
38202 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
38204         PR target/54663
38205         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
38206         of microblaze-c.o
38208 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
38210         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
38211         tm_file.
38213 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
38215         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
38216         Undef to avoid warning.
38218 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
38220         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
38221         * configure: Regenerate.
38223 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
38225         PR tree-optimization/56098
38226         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
38227         for stmts with volatile ops.
38228         (cond_store_replacement): Don't optimize if assign has volatile ops.
38229         (cond_if_else_store_replacement_1): Don't optimize if either
38230         then_assign or else_assign have volatile ops.
38231         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
38232         volatile ops.
38234 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
38236         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
38238 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
38240         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
38241         missing ':' in asm example.
38243 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
38245         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
38246         entries into lane and laneq entries.
38247         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
38248         Remove AdvSIMD scalar modes.
38249         (aarch64_sq<r>dmulh_laneq<mode>): New.
38250         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
38251         modes.
38252         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
38253         builtin implementations to relfect changes in RTL in aarch64-simd.md.
38254         * config/aarch64/iterators.md (VCOND): New.
38255         (VCONQ): New.
38257 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
38259         PR target/54222
38260         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
38261         Add NULL LIBNAME argument to existing definitions.
38262         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
38263         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
38264         * config/avr/avr.c (DEF_BUILTIN): Same.
38265         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
38266         (avr_expand_builtin): Expand to a vanilla call if a libgcc
38267         implementation is available (DECL_ASSEMBLER_NAME is set).
38268         (avr_fold_absfx): New static function.
38269         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
38270         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
38271         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
38272         AVR_BUILTIN_ABSLLK.
38273         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
38274         (abshk, absk, abslk, absllk): Provide as static inline functions.
38276 2013-01-25  Marek Polacek  <polacek@redhat.com>
38278         PR tree-optimization/56035
38279         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
38281 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
38283         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
38284         (*movtf_internal_rex64): Add (!o,C) alternative
38285         (*movxf_internal_rex64): Ditto.
38286         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
38288 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
38290         * doc/invoke.texi: fix typo.
38291         * doc/objc.texi: fix typo.
38293 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
38295         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
38296         for the first two alternatives.
38298 2013-01-24  Diego Novillo  <dnovillo@google.com>
38300         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
38301         (ggc-zone.o): Remove.
38302         * configure.ac: Remove option --with-gc.
38303         * configure: Re-generate.
38304         * doc/install.texi: Remove documentation for --with-gc.
38305         * gengtype.c (write_enum_defn): Remove.  Update all users.
38306         (write_Types_process_field): Remove generation of gt_e_* argument.
38307         (output_type_enum): Remove.  Update all users.
38308         (write_enum_defn): Remove.  Update all users.
38309         (enum alloc_zone): Remove.  Update all users.
38310         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
38311         * ggc-common.c (ggc_splay_alloc): Remove first argument.
38312         Update all callers.
38313         (struct ptr_data): Remove field TYPE.  Update all users.
38314         (gt_pch_note_object): Remove argument TYPE.  Update all users.
38315         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
38316         Update all users.
38317         * ggc-none.c (ggc_alloc_typed_stat): Remove.
38318         (struct alloc_zone): Remove.
38319         (ggc_internal_alloc_zone_stat): Remove.
38320         (ggc_internal_cleared_alloc_zone_stat): Remove.
38321         * ggc-page.c (ggc_alloc_typed_stat): Remove.
38322         (ggc_pch_count_object): Remove last argument.  Update all users.
38323         (ggc_pch_alloc_object): Remove last argument.  Update all users.
38324         (struct alloc_zone): Remove.
38325         * ggc-zone.c: Remove.
38326         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
38327         (struct alloc_zone): Remove.
38328         (ggc_alloc_typed_stat): Remove.
38329         (ggc_alloc_typed): Remove.
38330         (ggc_splay_alloc): Remove first argument.
38331         (rtl_zone): Remove.  Update all users.
38332         (tree_zone): Remove.  Update all users.
38333         (tree_id_zone): Remove.  Update all users.
38334         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
38335         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
38336         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
38337         * tree-ssanames.c: Remove references to zone allocator in comments.
38339 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
38341         * config/avr/avr.c (avr_out_fract): Make register numbers that
38342         might be outside of source operand signed.
38344 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
38346         * config/i386/constraints.md (Yf): New constraint.
38347         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
38348         of f constraint to conditionaly disable x87 register preferences.
38349         (*movdf_internal): Ditto.
38350         (*movsf_internal): Ditto.
38352 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
38354         PR inline-asm/55934
38355         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
38356         that have operands with impossible constraints.
38357         Add a FIXME for a speed-up opportunity.
38358         * lra-constraints.c (process_alt_operands): Verify that a class
38359         selected from constraints on asms is valid for the operand mode.
38360         (curr_insn_transform): Remove incorrect comment.
38362 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
38364         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
38365         TOC operand is a valid symbol ref in the constant pool.
38367 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
38369         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
38371 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
38373         PR target/54222
38374         * config/avr/stdfix.h: New file.
38375         * t-avr (stdfix-gcc.h): New rule to build it.
38376         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
38378 2013-01-23  Kostya Serebryany  <kcc@google.com>
38380         * config/darwin.h: remove dependency on
38381         CoreFoundation (asan on Mac OS).
38383 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
38385         PR target/49069
38386         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
38387         instead of cmpdi_operand for first comparison operand.
38388         Don't assert that comparison operands aren't both constants.
38390 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
38392         * doc/install.texi (Downloading the Source): Update references to
38393         downloading separate components.
38395 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
38397         * doc/extend.texi (__int128): Improve grammar.
38399 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
38401         PR target/56028
38402         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
38403         alternative to (o,r).
38404         (*movdi_internal_rex64): Remove (!o,n) alternative.
38405         (DImode immediate->memory splitter): Remove.
38406         (DImode immediate->memory peephole2): Remove.
38407         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
38408         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
38409         alternative to (!o,*r).
38410         (*movtf_internal_sse): New pattern.
38411         (*movxf_internal_rex64): New pattern.
38412         (*movxf_internal): Disable for TARGET_64BIT.
38413         (*movdf_internal_rex64): Remove (!o,F) alternative.
38415 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
38417         PR middle-end/56074
38418         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
38419         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
38420         * tree-vect-loop-manip.c (find_loop_location): Also ignore
38421         stmt locations where LOCATION_LOCUS of the stmt location is
38422         UNKNOWN_LOCATION or BUILTINS_LOCATION.
38424         PR target/55686
38425         * config/i386/i386.md (UNSPEC_STOS): New.
38426         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
38427         *strsetqi_1): Add UNSPEC_STOS.
38429 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
38431         PR c++/56067
38432         * doc/invoke.texi: Remove left over -Wsynth example.
38434 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
38436         PR tree-optimization/56051
38437         * fold-const.c (fold_binary_loc): Don't fold
38438         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
38439         a narrowing conversion, or widening conversion from signed
38440         to unsigned.
38442 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
38444         PR rtl-optimization/56023
38445         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
38446         dependent on debug instruction.
38448 2013-01-21  Martin Jambor  <mjambor@suse.cz>
38450         PR middle-end/56022
38451         * function.c (allocate_struct_function): Call
38452         invoke_set_current_function_hook earlier.
38454 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
38456         * reload1.c (init_reload): Only initialize reload_obstack
38457         during the first call.
38459 2013-01-21  Marek Polacek  <polacek@redhat.com>
38461         * cfgloop.c (verify_loop_structure): Fix up grammar.
38463 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
38465         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
38466         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
38468 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
38470         PR target/56058
38471         * config/arm/marvell-pj4.md: Update copyright year.
38472         Fix up use of alu to alu_reg and simple_alu_imm.
38474 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
38476         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
38478 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
38480         PR target/55433
38481         * lra-constraints.c (curr_insn_transform): Don't reuse original
38482         insn for secondary memory move when memory mode should be different.
38484 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
38486         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
38487         atomic_storedi_1): New patterns.
38489 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
38491         btver2 pipeline descriptions.
38492         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
38493         descriptions.
38494         * config/i386/i386.md (btver2_decode): New type attributes.
38495         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
38496         type attributes.
38497         * config/i386/btver2.md: New file describing btver2 pipelines.
38499 2013-01-19  Andrew Pinski  <apinski@cavium.com>
38501         PR tree-optimization/52631
38502         * tree-ssa-sccvn (visit_use): Before looking up the original
38503         statement, try looking up the simplified expression.
38505 2013-01-19  Anthony Green  <green@moxielogic.com>
38507         * config/moxie/moxie.c (moxie_expand_prologue): Set
38508         current_function_static_stack_size.
38510 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
38512         PR tree-optimization/56029
38513         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
38514         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
38516 2013-01-18  Sharad Singhai  <singhai@google.com>
38518         PR tree-optimization/55995
38519         * dumpfile.c (dump_loc): Print location only if available.
38520         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
38522 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
38524         PR target/55433
38525         * lra-constraints.c (curr_insn_transform): Reuse original insn for
38526         secondary memory move.
38527         (inherit_reload_reg): Use rclass instead of cl for
38528         check_secondary_memory_needed_p.
38530 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
38532         PR middle-end/56015
38533         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
38534         the case where writing real complex part of target modifies op1.
38536 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
38538         * config/aarch64/aarch64-simd.md
38539         (aarch64_vcond_internal<mode>): Handle unordered cases.
38540         * config/aarch64/iterators.md (v_cmp_result): New.
38542 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
38543             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
38545         * config/arm/marvell-pj4.md: New file.
38546         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
38547         * config/arm/arm.md (generic_sched): Add marvell_pj4.
38548         (generic_vfp): Likewise.
38549         * config/arm/arm-cores.def: Add marvell-pj4.
38550         * config/arm/arm-tune.md: Regenerate.
38551         * config/arm/arm-tables.opt: Regenerate.
38552         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
38553         * doc/invoke.texi: Document marvell-pj4.
38555 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
38557         * config/aarch64/arm_neon.h: Map scalar types to standard types.
38559 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
38561         PR debug/54114
38562         PR debug/54402
38563         PR debug/49888
38564         * var-tracking.c (negative_power_of_two_p): New.
38565         (global_get_addr_cache, local_get_addr_cache): New.
38566         (get_addr_from_global_cache, get_addr_from_local_cache): New.
38567         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
38568         heading comment.
38569         (vt_stack_offset_p): Remove.
38570         (vt_canon_true_dep): Always canonicalize loc's address.
38571         (clobber_overlapping_mems): Make sure we have a MEM.
38572         (local_get_addr_clear_given_value): New.
38573         (val_reset): Clear local cached entries.
38574         (compute_bb_dataflow): Create and release the local cache.
38575         Disable duplicate MEMs clobbering.
38576         (emit_notes_in_bb): Clobber MEMs likewise.
38577         (vt_emit_notes): Create and release the local cache.
38578         (vt_initialize, vt_finalize): Create and release the global
38579         cache, respectively.
38580         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
38582 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
38584         PR libmudflap/53359
38585         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
38586         not found in the symtab.
38588 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
38590         PR debug/56006
38591         PR rtl-optimization/55547
38592         PR rtl-optimization/53827
38593         PR debug/53671
38594         PR debug/49888
38595         * alias.c (offset_overlap_p): New, factored out of...
38596         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
38597         the conservative special case for symbolic constants.  Don't
38598         adjust zero sizes on alignment.
38600 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
38602         PR rtl-optimization/52573
38603         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
38604         REG_UNUSED for the same register.
38606 2013-01-17  Richard Biener  <rguenther@suse.de>
38607             Marek Polacek  <polacek@redhat.com>
38609         PR rtl-optimization/55833
38610         * loop-unswitch.c (unswitch_loops): Move loop verification...
38611         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
38612         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
38613         Set it to true when we're removing a loop from hierarchy tree in
38614         an irreducible region.
38615         (fix_bb_placements): Adjust caller.
38616         (fix_loop_placements): Likewise.
38618 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
38620         * config/avr/builtins.def (DEF_BUILTIN): Factor out
38621         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
38622         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
38623         Remove ID.  Adjust comments.
38624         * config/avr/avr-c.c (avr_builtin_name): Remove.
38625         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
38626         * config/avr/avr.c (avr_tolower): New static function.
38627         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
38628         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
38629         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
38630         default expansion.
38632 2013-01-17  Jan Hubicka  <jh@suse.cz>
38634         PR tree-optimization/55273
38635         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
38637 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
38639         PR target/55981
38640         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
38641         store through atomic_store<mode>_1.
38642         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
38644 2013-01-17  Martin Jambor  <mjambor@suse.cz>
38646         PR tree-optimizations/55264
38647         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
38648         for virtual methods.
38649         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
38650         virtual methods before inlining is over.
38651         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
38652         virtual functions.
38653         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
38654         non-virtual.
38656 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
38658         PR rtl-optimization/56005
38659         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
38660         pending reads for prefetch.
38662 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
38664         * config/aarch64/aarch64.md
38665         (*cstoresi_neg_uxtw): New pattern.
38666         (*cmovsi_insn_uxtw): New pattern.
38667         (*<optab>si3_uxtw): New pattern.
38668         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
38669         (*<optab>si3_insn_uxtw): New pattern.
38670         (*bswapsi2_uxtw): New pattern.
38672 2013-01-16  Richard Biener  <rguenther@suse.de>
38674         * tree-inline.c (tree_function_versioning): Remove set but
38675         never used variable.
38677 2013-01-16  Richard Biener  <rguenther@suse.de>
38679         PR tree-optimization/55964
38680         * tree-flow.h (rename_variables_in_loop): Remove.
38681         (rename_variables_in_bb): Likewise.
38682         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
38683         (copy_loop_before): Adjust and delete update-ssa status.
38684         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
38685         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
38686         (rename_variables_in_loop): Remove.
38687         (slpeel_update_phis_for_duplicate_loop): Likewise.
38688         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
38689         use available cfg machinery instead of duplicating it.
38690         Update PHI nodes and perform poor-mans SSA update here.
38691         (slpeel_tree_peel_loop_to_edge): Adjust.
38693 2013-01-16  Richard Biener  <rguenther@suse.de>
38695         PR tree-optimization/54767
38696         PR tree-optimization/53465
38697         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
38698         (vrp_visit_phi_node): For PHI arguments coming via backedges
38699         drop all symbolical range information.
38700         (execute_vrp): Compute backedges.
38702 2013-01-16  Richard Biener  <rguenther@suse.de>
38704         * doc/install.texi: Update CLooG and ISL requirements to
38705         0.18.0 and 0.11.1.
38707 2013-01-16  Christian Bruel  <christian.bruel@st.com>
38709         PR target/55301
38710         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
38711         (broken_move): Handle UNSPECV_SP_SWITCH_B.
38712         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
38714 2013-01-16  DJ Delorie  <dj@redhat.com>
38716         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
38717         (UNSPECV_SP_SWITCH_E): New.
38718         (sp_switch_1): Change to an unspec.
38719         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
38720         replace $r15.
38722 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
38724         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
38725         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
38726         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
38727         (expand_mem_thread_fence): Ditto.
38728         (expand_mem_signal_fence): Ditto.
38729         (expand_atomic_load): Ditto.
38730         (expand_atomic_store): Ditto.
38732 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
38734         PR rtl-optimization/55547
38735         PR rtl-optimization/53827
38736         PR debug/53671
38737         PR debug/49888
38738         * alias.c (memrefs_conflict_p): Set sizes to negative after
38739         AND adjustments.
38741 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
38743         PR target/55940
38744         * function.c (thread_prologue_and_epilogue_insns): Always
38745         add crtl->drap_reg to set_up_by_prologue.set, even if
38746         stack_realign_drap is false.
38748 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
38750         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
38751         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
38752         *call): Fix indention.
38754 2013-01-15  Tom de Vries  <tom@codesourcery.com>
38756         PR target/55876
38757         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
38758         Update comment.
38760 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
38762         PR rtl-optimization/55153
38763         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
38765 2013-01-15  Martin Jambor  <mjambor@suse.cz>
38767         PR tree-optimization/55920
38768         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
38769         accesses as grp_to_be_debug_replaced.
38771 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
38773         PR tree-optimization/55920
38774         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
38775         there is non-useless type conversion needed from debug rhs to lhs,
38776         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
38778 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
38779             Mikael Pettersson  <mikpe@it.uu.se>
38781         PR target/43961
38782         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
38783         Thumb.
38784         (ASM_OUTPUT_CASE_LABEL): Remove.
38785         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
38786         * final.c (shorten_branches): Update alignment of labels before
38787         jump tables if CASE_VECTOR_SHORTEN_MODE.
38789 2013-01-15  Richard Biener  <rguenther@suse.de>
38791         PR bootstrap/55961
38792         * system.h: Do not include gmp.h for building host tools.
38794 2013-01-15  Richard Biener  <rguenther@suse.de>
38796         PR middle-end/55882
38797         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
38798         account for bitpos when computing alignment.
38800 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
38802         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
38803         (ix86_target_macros_internal): Likewise.
38805         * config/i386/i386.c (m_CORE2I7): Removed.
38806         (m_CORE_HASWELL): New macro.
38807         (m_CORE_ALL): Likewise.
38808         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
38809         (initial_ix86_arch_features): Likewise.
38810         (processor_target_table): Initializations for Core avx2.
38811         (cpu_names): New names "core-avx2".
38812         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
38813         PROCESSOR_CORE_HASWELL.
38814         (ix86_issue_rate): New case.
38815         (ia32_multipass_dfa_lookahead): Likewise.
38816         (ix86_sched_init_global): Likewise.
38818         * config/i386/i386.h (TARGET_HASWELL): New macro.
38819         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
38820         (processor_type): New PROCESSOR_HASWELL.
38822 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
38824         PR tree-optimization/55955
38825         * tree-vect-loop.c (vectorizable_reduction): Give up early on
38826         *SHIFT_EXPR and *ROTATE_EXPR codes.
38828         PR tree-optimization/48766
38829         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
38830         -ftrapv disable -fwrapv.
38832 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
38834         PR target/55974
38835         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
38836         etc. to 1 and not to __flash.
38837         Use LL suffix for __INT24_MAX__ with -mint8.
38838         Use ULL suffix for __UINT24_MAX__ with -mint8.
38840 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
38842         * config/avr/avr-arch.h
38843         (struct base_arch_s): Use typedef avr_arch_t instead.
38844         (struct arch_info_s): Use typedef avr_arch_info_t instead.
38845         (struct mcu_type_s): Use typedef avr_mcu_t instead.
38846         * config/avr/avr.c: Same.
38847         * config/avr/avr-devices.c: Same.
38848         * config/avr/driver-avr.c: Same.
38849         * config/avr/gen-avr-mmcu-texi.c: Same.
38850         * config/avr/avr-mcus.def: Adjust comment.
38852 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
38854         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
38855         * config/aarch64/iterators.md (VALLDI): New.
38857 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
38858             Andi Kleen  <ak@linux.intel.com>
38860         PR target/55948
38861         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
38862         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
38863         memmodel flag.
38865 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
38867         * config/avr/avr-stdint.h: Remove trailing blanks.
38868         * config/avr/avr-log.h: Same.
38869         * config/avr/avr-arch.h: Same.
38870         * config/avr/avr-devices.c: Same.
38871         * config/avr/avr-dimode.md: Same.
38872         * config/avr/predicates.md: Same.
38873         * config/avr/avr-c.c: Same.  And fix typo.
38875         * config/avr/avr-protos.h: Same.  And:
38876         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
38877         (init_cumulative_args): Rename to avr_init_cumulative_args.
38878         (expand_prologue): Rename to avr_expand_prologue.
38879         (expand_epilogue): Rename to avr_expand_epilogue.
38880         (adjust_insn_length): Rename to avr_adjust_insn_length.
38881         (notice_update_cc): Rename to avr_notice_update_cc.
38882         (final_prescan_insn): Rename to avr_final_prescan_insn.
38883         * config/avr/avr.c: Same.
38884         * config/avr/avr.h: Same.
38885         * config/avr/avr.md: Remove trailing blanks.
38886         (prologue): Use avr_expand_prologue.
38887         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
38889 2013-01-14  Richard Biener  <rguenther@suse.de>
38891         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
38892         verify_location, collect_subblocks): New functions.
38893         (verify_gimple_in_cfg): Verify that locations only reference
38894         BLOCKs in the functions BLOCK tree.
38896 2013-01-14  Richard Biener  <rguenther@suse.de>
38898         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
38899         PHI argument.
38900         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
38901         unshare reference.
38902         (insert_out_of_ssa_copy_on_edge): Likewise.
38903         (rewrite_close_phi_out_of_ssa): Likewise.
38904         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
38905         debug expressions.
38906         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
38907         propagated constants.
38908         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
38909         can not be shared.
38911 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
38913         * config/avr/avr-modes.def: Add GPL copyright notice.
38915 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
38917         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
38918         MEMMODEL_MASK to determine memory model.
38919         (atomic_store<mode>): Ditto from operands[2].
38920         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
38922 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
38924         PR fortran/55935
38925         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
38926         (fold_gimple_assign): Don't call unshare_expr here.
38927         (fold_ctor_reference): Call unshare_expr.
38929 2013-01-13  Terry Guo  <terry.guo@arm.com>
38931         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
38932         * doc/fragments.texi: Document MULTILIB_REUSE.
38933         * gcc.c (multilib_reuse): New internal spec.
38934         (set_multilib_dir): Also search multilib from multilib_reuse.
38935         * genmultilib (tmpmultilib3): Refactor code.
38936         (tmpmultilib4): Ditto.
38937         (multilib_reuse): New multilib argument.
38939 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
38941         * Makefile.in: Update copyright.
38943 2013-01-12  Tom de Vries  <tom@codesourcery.com>
38945         PR middle-end/55890
38946         * calls.c (expand_call): Check if arg_nr is valid.
38948 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
38950         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
38951         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
38952         documentation.  Add missing '__' in front of
38953         __builtin_ia32_packssdw256.
38955 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38957         PR target/55719
38958         * config/s390/s390.c (s390_preferred_reload_class): Do not return
38959         NO_REGS for larl operands.
38960         (s390_reload_larl_operand): Use s390_load_address instead of
38961         emit_move_insn.
38963 2013-01-11  Richard Biener  <rguenther@suse.de>
38965         * tree-cfg.c (verify_node_sharing_1): Split out from ...
38966         (verify_node_sharing): ... here.
38967         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
38969 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
38971         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
38972         Substitute TREECHECKING.
38973         * configure: Regenerate.
38974         * Makefile.in (TREECHECKING): New.
38976 2013-01-11  Richard Guenther  <rguenther@suse.de>
38978         PR tree-optimization/44061
38979         * tree-vrp.c (extract_range_basic): Compute zero as
38980         value-range for __builtin_constant_p of function parameters.
38982 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
38984         Update copyright years.
38986 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
38988         PR rtl-optimization/55672
38989         * lra-eliminations.c (mark_not_eliminable): Permit addition with
38990         const to be eliminable.
38992 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
38994         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
38995         * configure: Regenerate.
38997 2013-01-10  Richard Biener  <rguenther@suse.de>
38999         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
39001 2013-01-10  Richard Biener  <rguenther@suse.de>
39003         PR bootstrap/55792
39004         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
39005         locations for virtual PHI arguments.
39006         (rewrite_update_phi_arguments): Likewise.
39008 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
39010         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
39011         on to assembler.
39013 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
39015         PR tree-optimization/55921
39016         * tree-complex.c (expand_complex_asm): New function.
39017         (expand_complex_operations_1): Call it for GIMPLE_ASM.
39019 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39021         PR target/55718
39022         * config/s390/s390.c (s390_symref_operand_p)
39023         (s390_loadrelative_operand_p): Merge the two functions.
39024         (s390_check_qrst_address, print_operand_address): Add parameters
39025         to s390_loadrelative_operand_p invokation.
39026         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
39027         (s390_reload_larl_operand, s390_secondary_reload): Use
39028         s390_loadrelative_operand_p instead of s390_symref_operand_p.
39029         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
39031 2013-01-09  Mike Stump  <mikestump@comcast.net>
39033         * dse.c (record_store): Remove unnecessary assert.
39035 2013-01-09  Jan Hubicka  <jh@suse.cz>
39037         PR tree-optimization/55569
39038         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
39039         * cfgloop.h (scale_loop_profile): Likewise.
39041 2013-01-09  Jan Hubicka  <jh@suse.cz>
39043         PR lto/45375
39044         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
39045         functions.
39046         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
39048 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
39050         PR middle-end/55114
39051         * expr.h (maybe_emit_group_store): Declare.
39052         * expr.c (maybe_emit_group_store): New function.
39053         * builtins.c (expand_builtin_int_roundingfn): Call it.
39054         (expand_builtin_int_roundingfn_2): Likewise.
39056 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
39058         PR rtl-optimization/55829
39059         * lra-constraints.c (match_reload): Add code for absent output.
39060         (curr_insn_transform): Add code for reloads of matched inputs
39061         without output.
39063 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
39065         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
39066         attribute of movddup insn to DF.
39067         (*vec_interleave_lowv2df): Ditto.
39068         (vec_dupv2df): Ditto.
39070 2013-01-09  Jan Hubicka  <jh@suse.cz>
39072         PR tree-optimiation/55875
39073         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
39074         EVERY_ITERATION parameter.
39075         (number_of_iterations_exit): Check if exit is executed every iteration.
39076         (idx_infer_loop_bounds): Similarly here.
39077         (n_of_executions_at_most): Simplify
39078         to only test for cases where statement is dominated by the
39079         particular bound; handle correctly the "postdominance" test.
39080         (scev_probably_wraps_p): Use max loop iterations info
39081         as a global bound first.
39083 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
39084             Nick Clifton  <nickc@redhat.com>
39086         * config/v850/v850.md (cbranchsf4): New pattern.
39087         (cstoresf4): New pattern.
39088         (cbranchdf4): New pattern.
39089         (cstoredf4): New pattern.
39090         (movsicc): Disallow floating point comparisons.
39091         (cmpsf_le_insn): Fix order of operators.
39092         (cmpsf_lt_insn): Likewise.
39093         (cmpsf_eq_insn): Likewise.
39094         (cmpdf_le_insn): Likewise.
39095         (cmpdf_lt_insn): Likewise.
39096         (cmpdf_eq_insn): Likewise.
39097         (cmpsf_ge_insn): Use LE comparison.
39098         (cmpdf_ge_insn): Likewise.
39099         (cmpsf_gt_insn): Use LT comparison.
39100         (cmpdf_gt_insn): Likewise.
39101         (cmpsf_ne_insn): Delete pattern.
39102         (cmpdf_ne_insn): Delete pattern.
39103         * config/v850/v850.c (v850_gen_float_compare): Use
39104         gen_cmpdf_eq_insn for NE comparison.
39105         (v850_float_z_comparison_operator)
39106         (v850_float_nz_comparison_operator): Move from here ...
39107         * config/v850/predicates.md: ... to here.  Move GT and GE
39108         comparisons into v850_float_z_comparison_operator.
39109         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
39110         Delete prototype.
39111         (v850_float_nz_comparison_operator): Likewise.
39113 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
39115         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
39116         with calls to gen_insvsi/gen_insvdi.
39118 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
39120         * config/i386/i386.c (initial_ix86_tune_features): Set up
39121         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
39123 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
39124             Jakub Jelinek  <jakub@redhat.com>
39126         PR tree-optimization/48189
39127         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
39128         If nitercst is 0, don't predict the exit edge.
39130 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
39132         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
39133         in asm_fprintf with reg_names.
39134         (aarch64_print_operand_address): Likewise.
39135         (aarch64_return_addr): Likewise.
39136         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
39138 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
39140         * config/pa/pa.h (VAL_U6_BITS_P): Define.
39141         (INT_U6_BITS): Likewise.
39142         * config/pa/predicates.md (uint6_operand): New predicate.
39143         (shift5_operand, shift6_operand): Likewise.
39144         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
39145         arith32_operand.
39146         (lshrdi3): Use shift6_operand.
39147         (shrpsi4, shrpdi4): New insn patterns.
39148         (extzv): Delete expander.
39149         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
39150         predicates in unamed zero extract patterns.  Tighten common constraint.
39151         (extv): Delete expander.
39152         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
39153         predicates in unamed sign extract patterns.  Tighten common constraint.
39154         (insv): Delete expander.
39155         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
39156         predicates in unamed insert patterns.  Tighten common constraint.
39157         Change uint32_operand predicate to uint6_operand predicate in unamed
39158         DImode pattern to insert constant values of type 1...1xxxx.
39160 2013-01-04  Jan Hubicka  <jh@suse.cz>
39162         PR tree-optimization/55823
39163         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
39164         issue.
39166 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
39167             Uros Bizjak  <ubizjak@gmail.com>
39169         PR rtl-optimization/55845
39170         * df-problems.c (can_move_insns_across): Stop scanning at
39171         volatile_insn_p source instruction or give up if
39172         across_from .. across_to range contains any volatile_insn_p
39173         instructions.
39175 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
39177         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
39178         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
39179         Declare.
39180         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
39181         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
39183 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
39185         PR fortran/55341
39186         * asan.c (asan_clear_shadow): New function.
39187         (asan_emit_stack_protection): Use it.
39189 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
39191         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
39192         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
39193         with tab instead of space.
39195 2013-01-08  Nick Clifton  <nickc@redhat.com>
39197         * config/rl78/rl78.c (rl78_expand_prologue): Always select
39198         register bank 0 at the start of an interrupt handler.
39199         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
39200         MDBH registers.
39202 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
39204         * config/aarch64/aarch64-simd.md
39205         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
39206         (aarch64_simd_bsl): Likewise.
39207         (aarch64_vcond_internal<mode>): Likewise.
39208         (vcond<mode><mode>): Likewise.
39209         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
39210         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
39212 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
39214         * config/aarch64/aarch64-builtins.c
39215         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
39217 2013-01-08  Martin Jambor  <mjambor@suse.cz>
39219         PR debug/55579
39220         * tree-sra.c (analyze_access_subtree): Return true also after
39221         potentially creating a debug-only replacement.
39223 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
39225         PR middle-end/55890
39226         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
39228         PR tree-optimization/54120
39229         * tree-vrp.c (range_fits_type_p): Don't allow
39230         src_precision < precision from signed vr to unsigned_p
39231         if vr->min or vr->max is negative.
39232         (simplify_float_conversion_using_ranges): Test can_float_p
39233         against CODE_FOR_nothing.
39235 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
39236             Richard Biener  <rguenther@suse.de>
39238         PR middle-end/55851
39239         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
39240         types instead of just INTEGER_TYPE types.
39242 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
39244         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
39245         TF_SIZE): Define.
39247 2013-01-07  Steve Ellcey  <sellcey@mips.com>
39249         PR target/42661
39250         * config/mips/mips.opt: Change mad to mmad to match documentation.
39252 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
39254         PR target/55897
39255         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
39256         .progmemx.data now.
39258 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
39260         PR target/55897
39261         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
39262         (avr_addrspace_t): Add .section_name field.
39263         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
39264         array size.
39265         (avr_addrspace): Same.  Initialize .section_name.  Remove last
39266         NULL entry.  Put __memx into .progmemx.data.
39267         (progmem_section_prefix): Remove.
39268         (avr_asm_init_sections): No need to initialize progmem_section.
39269         (avr_asm_named_section): Use avr_addrspace[].section_name to get
39270         section name prefix.
39271         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
39272         retrieve the progmem section.
39273         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
39274         boundary to run over avr_addrspace[].
39275         (avr_register_target_pragmas): Ditto.
39277 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
39279         * varasm.c (output_constant_def_contents): For asan_protect_global
39280         protected strings, adjust DECL_ALIGN if needed, before testing for
39281         anchored symbols.
39282         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
39283         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
39284         normal decls.
39285         (output_object_block): For asan protected decls, emit asan padding
39286         after their contents.
39287         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
39288         (asan_finish_file): Test it here instead.
39290 2013-01-07  Nick Clifton  <nickc@redhat.com>
39291             Matthias Klose  <doko@debian.org>
39292             Doug Kwan  <dougkwan@google.com>
39293             H.J. Lu  <hongjiu.lu@intel.com>
39295         PR driver/55470
39296         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
39298         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
39300         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
39302         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
39304         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
39306 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
39308         PR target/54461
39309         * doc/install.texi (Cross-Compiler-Specific Options): Document
39310         --with-avrlibc.
39312 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
39314         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
39315         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
39316         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
39317         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
39318         vqmovun_high_s64): Fix source operand number and update copyright.
39320 2013-01-07  Richard Biener  <rguenther@suse.de>
39322         PR middle-end/55890
39323         * gimple.h (gimple_call_builtin_p): New overload.
39324         * gimple.c (validate_call): New function.
39325         (gimple_call_builtin_p): Likewise.
39326         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
39327         Use gimple_call_builtin_p.
39328         (find_func_clobbers): Likewise.
39329         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
39330         (strlen_optimize_stmt): Likewise.
39332 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
39334         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
39335         (vld1q_dup_*): Likewise.
39336         (vld1_*): Likewise.
39337         (vld1q_*): Likewise.
39338         (vld1_lane_*): Likewise.
39339         (vld1q_lane_*): Likewise.
39341 2013-01-07  Richard Biener  <rguenther@suse.de>
39343         * lto-streamer.h (LTO_minor_version): Bump to 2.
39345 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
39347         * config/aarch64/aarch64-protos.h
39348         (aarch64_const_double_zero_rtx_p): Rename to...
39349         (aarch64_float_const_zero_rtx_p): ...this.
39350         (aarch64_float_const_representable_p): New.
39351         (aarch64_output_simd_mov_immediate): Likewise.
39352         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
39353         move immediate case.
39354         * config/aarch64/aarch64.c
39355         (aarch64_const_double_zero_rtx_p): Rename to...
39356         (aarch64_float_const_zero_rtx_p): ...this.
39357         (aarch64_print_operand): Allow printing of new constants.
39358         (aarch64_valid_floating_const): New.
39359         (aarch64_legitimate_constant_p): Check for valid floating-point
39360         constants.
39361         (aarch64_simd_valid_immediate): Likewise.
39362         (aarch64_vect_float_const_representable_p): New.
39363         (aarch64_float_const_representable_p): Likewise.
39364         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
39365         (aarch64_output_simd_mov_immediate): New.
39366         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
39367         (*movdf_aarch64): Likewise.
39368         * config/aarch64/constraints.md (Ufc): New.
39369         (Y): call aarch64_float_const_zero_rtx.
39370         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
39372 2013-01-07  Richard Biener  <rguenther@suse.de>
39374         PR tree-optimization/55888
39375         PR tree-optimization/55862
39376         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
39377         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
39378         not if it is contained therein.
39380 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
39382         * config/avr/t-avr: Typo.
39384 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
39386         PR55243
39387         * config/avr/t-avr: Don't automatically rebuild
39388         $(srcdir)/config/avr/t-multilib
39389         $(srcdir)/config/avr/avr-tables.opt
39390         $(srcdir)/doc/avr-mmcu.texi
39391         (avr-mcus): New phony target to build them on request.
39392         (s-avr-mlib, s-avr-mmcu-texi): Remove.
39393         * avr/avr-mcus.def: Adjust comments.
39395 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
39397         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
39399 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
39401         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
39403 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
39405         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
39407 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
39409         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
39410         to generate profiling.
39411         * config/rs6000/aix64.h (LIB_SPEC): Same.
39413 2013-01-04  Andrew Pinski  <apinski@cavium.com>
39415         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
39416         New function.
39417         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
39419 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
39421         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
39422         unconditionally.
39423         (ix86_expand_move): Ditto.
39424         (ix86_zero_extend_to_Pmode): Ditto.
39425         (ix86_expand_call): Ditto.
39426         (ix86_expand_special_args_builtin): Ditto.
39427         (ix86_expand_builtin): Ditto.
39429 2013-01-04  Richard Biener  <rguenther@suse.de>
39431         PR tree-optimization/55862
39432         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
39433         translating them through PHI nodes.
39435 2013-01-04  Martin Jambor  <mjambor@suse.cz>
39437         PR tree-optimization/55755
39438         * tree-sra.c (sra_modify_assign): Do not check that an access has no
39439         children when trying to avoid producing a VIEW_CONVERT_EXPR.
39441 2013-01-04  Marek Polacek  <polacek@redhat.com>
39443         PR middle-end/55859
39444         * opts.c (default_options_optimization): Clarify error message.
39446 2013-01-04  Richard Biener  <rguenther@suse.de>
39448         PR middle-end/55863
39449         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
39450         reassociation.
39452 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
39454         PR target/53789
39455         * config/pa/pa.md (movsi): Revert previous change.
39456         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
39457         references.
39459 2013-01-03  Richard Henderson  <rth@redhat.com>
39461         * config/i386/i386.c (ix86_expand_move): Always assign to op1
39462         after eliminating TLS symbols.
39464 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
39466         PR bootstrap/50167
39467         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
39468         * graphite-poly.c (debug_gmp_value): Likewise.
39470 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
39472         PR target/55712
39473         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
39474         selected code model, define __code_mode_small__, __code_model_medium__,
39475         __code_model_large__, __code_model_32__ or __code_model_kernel__.
39476         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
39477         xchg temporary register with %k.  Declare temporary register as
39478         early clobbered.
39479         [__x86_64__]: For medium and large code models, preserve %rbx register.
39481 2013-01-03  Richard Biener  <rguenther@suse.de>
39483         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
39484         (dump_subscript): Adjust.
39485         (finalize_ddr_dependent): Do not dump redundant info.
39486         (analyze_siv_subscript): Adjust.
39487         (subscript_dependence_tester): Likewise.
39488         (compute_affine_dependence): Likewise.
39490 2013-01-03  Richard Biener  <rguenther@suse.de>
39492         Revert
39493         2013-01-03  Richard Biener  <rguenther@suse.de>
39495         PR tree-optimization/55857
39496         * tree-vect-stmts.c (vectorizable_load): Do not setup
39497         re-alignment for invariant loads.
39499         2013-01-02  Richard Biener  <rguenther@suse.de>
39501         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
39502         invariant load do not generate a vector load from the scalar location.
39504 2013-01-03  Richard Biener  <rguenther@suse.de>
39506         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
39507         for not vectorizing.
39508         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
39509         not build INDIRECT_REFs, call get_name once only.
39510         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
39511         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
39513 2013-01-03  Richard Biener  <rguenther@suse.de>
39515         PR tree-optimization/55857
39516         * tree-vect-stmts.c (vectorizable_load): Do not setup
39517         re-alignment for invariant loads.
39519 2013-01-03  Richard Biener  <rguenther@suse.de>
39521         PR lto/55848
39522         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
39523         prefer a built-in decl.
39525 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
39527         * gcc.c (process_command): Update copyright notice dates.
39528         * gcov.c (print_version): Likewise.
39529         * gcov-dump.c (print_version): Likewise.
39531         PR rtl-optimization/55838
39532         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
39533         iv0.step, iv1.step and step.
39535 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
39536             Marc Glisse  <marc.glisse@inria.fr>
39538         PR tree-optimization/55832
39539         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
39540         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
39541         integer_{one,zero}_node.
39543 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
39545         PR debug/54402
39546         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
39547         * var-tracking.c (reverse_op): Don't add reverse ops to
39548         VALUEs that have already
39549         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
39551 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
39553         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
39555 2013-01-02  Teresa Johnson  <tejohnson@google.com>
39557         * dumpfile.c (dump_loc): Print filename with location.
39558         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
39559         new location_t parameter to emit complete unroll message with
39560         new dump framework.
39561         (canonicalize_loop_induction_variables): Compute loops location
39562         and pass to try_unroll_loop_completely.
39563         * loop-unroll.c (report_unroll_peel): New function.
39564         (peel_loops_completely): Use new dump format with location
39565         for main dumpfile message, and invoke report_unroll_peel on success.
39566         (decide_unrolling_and_peeling): Ditto.
39567         (decide_peel_once_rolling): Remove old dumpfile message subsumed
39568         by report_unroll_peel.
39569         (decide_peel_completely): Ditto.
39570         (decide_unroll_constant_iterations): Ditto.
39571         (decide_unroll_runtime_iterations): Ditto.
39572         (decide_peel_simple): Ditto.
39573         (decide_unroll_stupid): Ditto.
39574         * cfgloop.c (get_loop_location): New function.
39575         * cfgloop.h (get_loop_location): Declare.
39577 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
39579         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
39580         NULL.
39582 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
39584         PR middle-end/55198
39585         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
39586         BLKmode objects when EXPAND_MEMORY is specified.
39588 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
39590         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
39591         in loop predicate.
39592         (fold_builtin_cpu): Do not share cpu model decls across statements.
39594 2013-01-02  Jason Merrill  <jason@redhat.com>
39596         PR c++/55804
39597         * tree.c (build_array_type_1): Revert earlier change.
39599 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
39601         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
39602         "cortex-a57".
39603         * config/aarch64/aarch64-tune.md: Re-generate.
39605 2013-01-02  Richard Biener  <rguenther@suse.de>
39607         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
39608         invariant load do not generate a vector load from the scalar location.
39610 2013-01-02  Richard Biener  <rguenther@suse.de>
39612         PR bootstrap/55784
39613         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
39614         * configure: Regenerate.
39616 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
39618         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
39619         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
39620         (expand_builtin_int_roundingfn_2): Keep the original target around
39621         for the fallback case.
39623 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
39625         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
39626         to be clear for sign changes.
39628 2013-01-01  Jan Hubicka  <jh@suse.cz>
39630         * ipa-inline-analysis.c: Fix formatting.
39632 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
39634         PR tree-optimization/55831
39635         * tree-vect-loop.c (get_initial_def_for_induction): Use
39636         gsi_after_labels instead of gsi_start_bb.
39638 Copyright (C) 2013 Free Software Foundation, Inc.
39640 Copying and distribution of this file, with or without modification,
39641 are permitted in any medium without royalty provided the copyright
39642 notice and this notice are preserved.