1 2013-12-31 Jakub Jelinek <jakub@redhat.com>
3 PR tree-optimization/59622
4 * gimple-fold.c (gimple_fold_call): Don't replace OBJ_TYPE_REF
5 call fndecl with 0 possible targets with BUILT_IN_UNREACHABLE,
6 instead only for !inplace add a __builtin_unreachable () call
9 2013-12-31 Alexander Ivchenko <alexander.ivchenko@intel.com>
10 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11 Sergey Lega <sergey.s.lega@intel.com>
12 Anna Tikhonova <anna.tikhonova@intel.com>
13 Ilya Tocar <ilya.tocar@intel.com>
14 Andrey Turetskiy <andrey.turetskiy@intel.com>
15 Ilya Verbin <ilya.verbin@intel.com>
16 Kirill Yukhin <kirill.yukhin@intel.com>
17 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
19 * config/i386/avx512fintrin.h (_mm_add_round_sd): New.
20 (_mm_add_round_sd): Ditto.
21 (_mm_add_round_ss): Ditto.
22 (_mm_sub_round_sd): Ditto.
23 (_mm_sub_round_ss): Ditto.
24 (_mm_rcp14_sd): Ditto.
25 (_mm_rcp14_ss): Ditto.
26 (_mm_sqrt_round_sd): Ditto.
27 (_mm_sqrt_round_ss): Ditto.
28 (_mm_mul_round_sd): Ditto.
29 (_mm_mul_round_ss): Ditto.
30 (_mm_div_round_sd): Ditto.
31 (_mm_div_round_ss): Ditto.
32 (_mm_scalef_round_sd): Ditto.
33 (_mm_scalef_round_ss): Ditto.
34 (_mm_scalef_round_sd): Ditto.
35 (_mm_scalef_round_ss): Ditto.
36 (_mm_cvt_roundsd_ss): Ditto.
37 (_mm_cvt_roundsd_sd): Ditto.
38 (_mm_getexp_round_ss): Ditto.
39 (_mm_getexp_round_sd): Ditto.
40 (_mm_getmant_round_sd): Ditto.
41 (_mm_getmant_round_ss): Ditto.
42 (_mm_roundscale_round_ss): Ditto.
43 (_mm_roundscale_round_sd): Ditto.
44 (_mm_max_round_sd): Ditto.
45 (_mm_max_round_ss): Ditto.
46 (_mm_min_round_sd): Ditto.
47 (_mm_min_round_ss): Ditto.
48 (_mm_fmadd_round_sd): Ditto.
49 (_mm_fmadd_round_ss): Ditto.
50 (_mm_fmsub_round_sd): Ditto.
51 (_mm_fmsub_round_ss): Ditto.
52 (_mm_fnmadd_round_sd): Ditto.
53 (_mm_fnmadd_round_ss): Ditto.
54 (_mm_fnmsub_round_sd): Ditto.
55 (_mm_fnmsub_round_ss): Ditto.
56 (_mm_scalef_sd): Ditto.
57 (_mm_scalef_ss): Ditto.
58 (_mm_getexp_ss): Ditto.
59 (_mm_getexp_sd): Ditto.
60 (_mm_getmant_sd): Ditto.
61 (_mm_getmant_ss): Ditto.
62 (_mm_roundscale_ss): Ditto.
63 (_mm_roundscale_sd): Ditto.
64 * config/i386/i386-builtin-types.def: New types to support
65 new built-ins: <V2DF, V2DF, V2DF, INT, INT>,
66 <V4SF, V4SF, V4SF, INT, INT>, <(V4SF, V4SF, V2DF, INT>,
67 <V2DF, V2DF, V4SF, INT>, <V4SF, V4SF, V4SF, V4SF, IN>.
68 * config/i386/i386.c (enum ix86_builtins): Add
69 IX86_BUILTIN_ADDSD_ROUND, IX86_BUILTIN_ADDSS_ROUND,
70 IX86_BUILTIN_CVTSD2SS_ROUND, IX86_BUILTIN_CVTSS2SD_ROUND,
71 IX86_BUILTIN_DIVSD_ROUND, IX86_BUILTIN_GETEXPSD128,
72 IX86_BUILTIN_DIVSS_ROUND, IX86_BUILTIN_GETEXPSS128,
73 IX86_BUILTIN_GETMANTSD128, IX86_BUILTIN_GETMANTSS128,
74 IX86_BUILTIN_MAXSD_ROUND, IX86_BUILTIN_MAXSS_ROUND,
75 IX86_BUILTIN_MINSD_ROUND, IX86_BUILTIN_MINSS_ROUND,
76 IX86_BUILTIN_MULSD_ROUND, IX86_BUILTIN_MULSS_ROUND,
77 IX86_BUILTIN_RCP14SD, IX86_BUILTIN_RCP14SS, IX86_BUILTIN_RNDSCALESD,
78 IX86_BUILTIN_RNDSCALESS, IX86_BUILTIN_RSQRT14SD,
79 IX86_BUILTIN_RSQRT14SS, IX86_BUILTIN_SCALEFSD,
80 IX86_BUILTIN_SCALEFSS, IX86_BUILTIN_SQRTSD_ROUND,
81 IX86_BUILTIN_SQRTSS_ROUND, IX86_BUILTIN_SUBSD_ROUND,
82 IX86_BUILTIN_SUBSS_ROUND, IX86_BUILTIN_VFMADDSD3_ROUND,
83 IX86_BUILTIN_VFMADDSS3_ROUND, IX86_BUILTIN_VFMSUBSD3_MASK3,
84 IX86_BUILTIN_VFMSUBSS3_MASK3.
85 (builtin_description bdesc_args[]): Add
86 __builtin_ia32_rcp14sd, __builtin_ia32_rcp14ss,
87 __builtin_ia32_rsqrt14pd512_mask, __builtin_ia32_rsqrt14ps512_mask,
88 __builtin_ia32_rsqrt14sd, __builtin_ia32_rsqrt14ss,
89 __builtin_ia32_addsd_round, __builtin_ia32_addss_round,
90 __builtin_ia32_cvtsd2ss_round, __builtin_ia32_cvtss2sd_round,
91 __builtin_ia32_divsd_round, __builtin_ia32_divss_round,
92 __builtin_ia32_getexpsd128_round, __builtin_ia32_getexpss128_round,
93 __builtin_ia32_getmantsd_round, __builtin_ia32_getmantss_round,
94 __builtin_ia32_maxsd_round, __builtin_ia32_maxss_round,
95 __builtin_ia32_minsd_round, __builtin_ia32_minss_round,
96 __builtin_ia32_mulsd_round, __builtin_ia32_mulss_round,
97 __builtin_ia32_rndscalesd_round, __builtin_ia32_rndscaless_round,
98 __builtin_ia32_scalefsd_round, __builtin_ia32_scalefss_round,
99 __builtin_ia32_sqrtsd_round, __builtin_ia32_sqrtss_round,
100 __builtin_ia32_subsd_round, __builtin_ia32_subss_round,
101 __builtin_ia32_vfmaddsd3_round, __builtin_ia32_vfmaddss3_round.
102 (ix86_expand_round_builtin): Expand new FTYPEs.
103 * config/i386/sse.md (<sse>_vm<plusminus_insn><mode>3): Support
104 EVEX's embedded rouding.
105 (<sse>_vm<multdiv_mnemonic><mode>3): Ditto.
106 (<sse>_vmsqrt<mode>2): Ditto.
107 (<sse>_vm<code><mode>3): Ditto.
108 (sse2_cvtsd2ss): Ditto.
109 (sse2_cvtss2sd): Ditto.
110 (*avx512f_vmscalef<mode>): Ditto.
111 (avx512f_sgetexp<mode>): Ditto.
112 (*avx512f_rndscale<mode>): Ditto.
113 (avx512f_getmant<mode>): Ditto.
114 (*srcp14<mode>): Make visible.
115 (*rsqrt14<mode>): Ditto.
116 * config/i386/subst.md (mask_mode512bit_condition): Fix
118 (sd_mask_mode512bit_condition): Ditto.
119 (round_mode512bit_condition): Ditto.
120 (round_modev4sf_condition): Ditto.
121 (round_mask_scalar_operand3): Remove.
123 (round_saeonly_op3): Ditto.
124 (round_saeonly_prefix): Ditto.
126 2013-12-31 Alexander Ivchenko <alexander.ivchenko@intel.com>
127 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
128 Sergey Lega <sergey.s.lega@intel.com>
129 Anna Tikhonova <anna.tikhonova@intel.com>
130 Ilya Tocar <ilya.tocar@intel.com>
131 Andrey Turetskiy <andrey.turetskiy@intel.com>
132 Ilya Verbin <ilya.verbin@intel.com>
133 Kirill Yukhin <kirill.yukhin@intel.com>
134 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
136 * common/config/i386/i386-common.c (OPTION_MASK_ISA_SHA_SET): New.
137 (OPTION_MASK_ISA_SHA_UNSET): Ditto.
138 (ix86_handle_option): Handle OPT_msha.
139 * config.gcc (extra_headers): Add shaintrin.h.
140 * config/i386/cpuid.h (bit_SHA): New.
141 * config/i386/driver-i386.c (host_detect_local_cpu): Detect SHA
143 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
145 * config/i386/i386.c (ix86_target_string): Add -msha.
146 (ix86_option_override_internal): Add PTA_SHA.
147 (ix86_valid_target_attribute_inner_p): Handle OPT_msha.
148 (enum ix86_builtins): Add IX86_BUILTIN_SHA1MSG1,
149 IX86_BUILTIN_SHA1MSG2, IX86_BUILTIN_SHA1NEXTE, IX86_BUILTIN_SHA1RNDS4,
150 IX86_BUILTIN_SHA256MSG1, IX86_BUILTIN_SHA256MSG2,
151 IX86_BUILTIN_SHA256RNDS2.
152 (bdesc_args): Add BUILTINS defined above.
153 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_sha1msg1,
154 __builtin_ia32_sha1msg2, __builtin_ia32_sha1nexte,
155 __builtin_ia32_sha1rnds4, __builtin_ia32_sha256msg1,
156 __builtin_ia32_sha256msg2, __builtin_ia32_sha256rnds2.
157 (ix86_expand_args_builtin): Handle V4SI_FTYPE_V4SI_V4SI_V4SI, add
158 warning for CODE_FOR_sha1rnds4.
159 * config/i386/i386.h (TARGET_SHA): New.
160 (TARGET_SHA_P): Ditto.
161 * config/i386/i386.opt (-msha): Document it.
162 * config/i386/immintrin.h: Add shaintrin.h.
163 * config/i386/shaintrin.h: New.
164 * config/i386/sse.md (unspec): Add UNSPEC_SHA1MSG1, UNSPEC_SHA1MSG2,
165 UNSPEC_SHA1NEXTE, UNSPEC_SHA1RNDS4, UNSPEC_SHA256MSG1,
166 UNSPEC_SHA256MSG2, UNSPEC_SHA256RNDS2.
173 (sha256rnds2): Ditto.
174 * doc/invoke.texi: Add -msha.
176 2013-12-31 Alexander Ivchenko <alexander.ivchenko@intel.com>
177 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
178 Sergey Lega <sergey.s.lega@intel.com>
179 Anna Tikhonova <anna.tikhonova@intel.com>
180 Ilya Tocar <ilya.tocar@intel.com>
181 Andrey Turetskiy <andrey.turetskiy@intel.com>
182 Ilya Verbin <ilya.verbin@intel.com>
183 Kirill Yukhin <kirill.yukhin@intel.com>
184 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
186 * config.gcc (extra_headers): Add avx512fintrin.h, avx512cdintrin.h,
187 avx512erintrin.h, avx512pfintrin.h.
188 * config/i386/avx512cdintrin.h: New file.
189 * config/i386/avx512erintrin.h: New file.
190 * config/i386/avx512fintrin.h: New file.
191 * config/i386/avx512pfintrin.h: New file.
192 * config/i386/i386-builtin-types.def: Add V16UHI, V32SF, V16SF, V8DF,
193 V8DI, V16SI, V64QI, PV8DF, PV8DI, PV16SI, PV16SF, PCV8DF, PCV16SF,
194 PCV8DI, PCV16SI, V16QI_FTYPE_V16SI, V8DF_FTYPE_V8SI, V8DF_FTYPE_V8DF,
195 V8HI_FTYPE_V8DI, V16SF_FTYPE_V16SF, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
196 V8SF_FTYPE_V8DF_V8SF_QI, V16HI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
197 V16SI_FTYPE_INT, V8DF_FTYPE_DOUBLE, V8DI_FTYPE_INT64,
198 V16SF_FTYPE_V4SF, V8DF_FTYPE_V4DF, V8DI_FTYPE_V4DI, V16QI_FTYPE_V8DI,
199 UINT_FTYPE_V4SF, UINT64_FTYPE_V4SF, UINT_FTYPE_V2DF,
200 UINT64_FTYPE_V2DF, V16SI_FTYPE_V16SI, V16SI_FTYPE_V16SI_V16SI_HI,
201 V8DI_FTYPE_V8DI, V8DI_FTYPE_V8DI_V8DI_QI, V16SI_FTYPE_PV4SI,
202 V16SF_FTYPE_PV4SF, V8DI_FTYPE_PV4DI, V8DF_FTYPE_PV4DF,
203 V8UHI_FTYPE_V8UHI, V8USI_FTYPE_V8USI, V2DF_FTYPE_V2DF_UINT,
204 V2DF_FTYPE_V2DF_UINT64, V4DF_FTYPE_V8DF_INT,
205 V4DF_FTYPE_V8DF_INT_V4DF_QI, V8DF_FTYPE_V8DF_V8DI,
206 V4SF_FTYPE_V4SF_UINT, V4SF_FTYPE_V4SF_UINT64,
207 INT_FTYPE_V4SF_V4SF_INT_INT, INT_FTYPE_V2DF_V2DF_INT_INT,
208 V16SF_FTYPE_V16SF_INT, V4SF_FTYPE_V16SF_INT,
209 V4SF_FTYPE_V16SF_INT_V4SF_QI, V16SF_FTYPE_V16SF_V16SF,
210 V16SF_FTYPE_V16SF_V16SI, V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI,
211 V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI, V8DF_FTYPE_V8DF_INT_V8DF_QI,
212 V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI_INT, V8DF_FTYPE_V8DF_V8DF,
213 V16SF_FTYPE_V16SF_V16SF_INT, V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI,
214 V16SF_FTYPE_V16SF_INT_V16SF_HI, V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI,
215 V16SF_FTYPE_V16SF_V16SF_V16SI_INT,
216 V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
217 V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI_INT,
218 V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI,
219 V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI_INT,
220 V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI,
221 V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI_INT, V16SF_FTYPE_V16SF_V4SF_INT,
222 V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI, V16HI_FTYPE_V16SF_INT,
223 V16HI_FTYPE_V16SF_INT_V16HI_HI, V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI,
224 V16SI_FTYPE_V16SI_V4SI, V16SI_FTYPE_V16SI_V4SI_INT,
225 V4SI_FTYPE_V16SI_INT, V4SI_FTYPE_V16SI_INT_V4SI_QI,
226 V16SI_FTYPE_V16SI_V16SI, V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI,
227 V16SI_FTYPE_V16SI_SI, V16SI_FTYPE_V16SI_INT,
228 V16SI_FTYPE_V16SI_V4SI_V16SI_HI, V16SI_FTYPE_V16SI_INT_V16SI_HI,
229 V8DI_FTYPE_V8DI_V8DI, V16SI_FTYPE_V8DF_V8DF,
230 V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI, V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI,
231 V8DI_FTYPE_V8DI_V2DI, V4DI_FTYPE_V8DI_INT,
232 V4DI_FTYPE_V8DI_INT_V4DI_QI, V8DI_FTYPE_V8DI_V2DI_V8DI_QI,
233 V8DI_FTYPE_V8DI_INT_V8DI_QI, VOID_FTYPE_PDOUBLE_V8DF,
234 VOID_FTYPE_PFLOAT_V16SF, VOID_FTYPE_PV8DI_V8DI, HI_FTYPE_HI,
235 HI_FTYPE_HI_HI, HI_FTYPE_HI_INT, QI_FTYPE_V8DI_V8DI,
236 QI_FTYPE_V8DI_V8DI_QI, HI_FTYPE_V16SI_V16SI, HI_FTYPE_V16SI_V16SI_HI,
237 QI_FTYPE_V8DI_V8DI_INT, QI_FTYPE_V8DI_V8DI_INT_QI,
238 HI_FTYPE_V16SI_V16SI_INT, HI_FTYPE_V16SI_V16SI_INT ,HI,
239 QI_FTYPE_V8DF_V8DF_INT, QI_FTYPE_V8DF_V8DF_INT_QI,
240 QI_FTYPE_V8DF_V8DF_INT_QI_INT, HI_FTYPE_V16SF_V16SF_INT,
241 HI_FTYPE_V16SF_V16SF_INT_HI, HI_FTYPE_V16SF_V16SF_INT_HI_INT,
242 QI_FTYPE_V2DF_V2DF_INT, QI_FTYPE_V2DF_V2DF_INT_QI,
243 QI_FTYPE_V2DF_V2DF_INT_QI_INT, QI_FTYPE_V4SF_V4SF_INT,
244 QI_FTYPE_V4SF_V4SF_INT_QI, QI_FTYPE_V4SF_V4SF_INT_QI_INT,
245 V16SI_FTYPE_HI, V8DI_FTYPE_QI, V8DF_FTYPE_V8DF_V8DF_V8DF,
246 V16SF_FTYPE_V16SF_V16SF_V16SF, V8DF_FTYPE_V8DF_V8DF_QI,
247 V8DF_FTYPE_V8SF_V8DF_QI, V8DF_FTYPE_V8SI_V8DF_QI,
248 V8DI_FTYPE_V8SI_V8DI_QI, V8DI_FTYPE_V8HI_V8DI_QI,
249 V8DI_FTYPE_V16QI_V8DI_QI, V8DI_FTYPE_V8DI_V8DI_V8DI_QI,
250 V8DF_FTYPE_V8DI_V8DF_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF_QI,
251 V8DF_FTYPE_V8DF_V8DI_V8DF_QI, V8DF_FTYPE_V8DF_V8DF_V8DF_QI,
252 V16SI_FTYPE_V16SI_V16SI_V16SI_HI, V2DF_FTYPE_V2DF_V2DF_V2DF_QI,
253 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V16SF_FTYPE_V16SF_V16SF_HI,
254 V16SF_FTYPE_V16SI_V16SF_HI, V16SF_FTYPE_V16SF_V16SF_V16SF_HI,
255 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SF_FTYPE_V16SI_V16SF_V16SF_HI,
256 V16SF_FTYPE_V16SF_V16SI_V16SF_HI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
257 V4SF_FTYPE_V4SF_V4SF_V4SF_QI, V16SF_FTYPE_V4SF_V16SF_HI,
258 V8DF_FTYPE_V4DF_V8DF_QI, V8DF_FTYPE_V2DF_V8DF_QI,
259 V16SI_FTYPE_V4SI_V16SI_HI, V16SI_FTYPE_SI_V16SI_HI,
260 V16SI_FTYPE_V16HI_V16SI_HI, V16SI_FTYPE_V16QI_V16SI_HI,
261 V8SI_FTYPE_V8DF_V8SI_QI, V8DI_FTYPE_V4DI_V8DI_QI,
262 V8DI_FTYPE_V2DI_V8DI_QI, V8DI_FTYPE_DI_V8DI_QI,
263 V16SF_FTYPE_PCV16SF_V16SF_HI, V8DF_FTYPE_PCV8DF_V8DF_QI,
264 V16SI_FTYPE_PCV16SI_V16SI_HI, V8DI_FTYPE_PCV8DI_V8DI_QI,
265 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI,
266 V16QI_FTYPE_V16SI_V16QI_HI, V16HI_FTYPE_V16SI_V16HI_HI,
267 V8SI_FTYPE_V8DI_V8SI_QI, V8HI_FTYPE_V8DI_V8HI_QI,
268 V16QI_FTYPE_V8DI_V16QI_QI, VOID_FTYPE_PV8DF_V8DF_QI,
269 VOID_FTYPE_PV16SF_V16SF_HI, VOID_FTYPE_PV8DI_V8DI_QI,
270 VOID_FTYPE_PV16SI_V16SI_HI, VOID_FTYPE_PDOUBLE_V2DF_QI,
271 VOID_FTYPE_PFLOAT_V4SF_QI, V16SI_FTYPE_V16SF_V16SI_HI,
272 V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI,
273 V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI, V8DI_FTYPE_V8DI_V8DI_V8DI,
274 V16SI_FTYPE_V16SI_V16SI_V16SI, V8DF_FTYPE_V8DF_V8DI_V8DF,
275 V16SF_FTYPE_V16SF_V16SI_V16SF, V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI,
276 V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI, V8DI_FTYPE_V16SI_V16SI_V8DI_QI,
277 UINT64_FTYPE_V2DF_INT, UINT64_FTYPE_V4SF_INT, UINT_FTYPE_V2DF_INT,
278 UINT_FTYPE_V4SF_INT, INT64_FTYPE_V2DF_INT, INT64_FTYPE_V4SF_INT,
279 INT_FTYPE_V2DF_INT, INT_FTYPE_V4SF_INT, V2DF_FTYPE_V2DF_UINT64_INT,
280 V4SF_FTYPE_V4SF_UINT64_INT, V4SF_FTYPE_V4SF_UINT_INT,
281 V2DF_FTYPE_V2DF_INT64_INT, V4SF_FTYPE_V4SF_INT64_INT,
282 V4SF_FTYPE_V4SF_INT_INT, V16SI_FTYPE_V16SF_V16SI_HI_INT,
283 V16SF_FTYPE_V16SI_V16SF_HI_INT, V16SF_FTYPE_V16SF_V16SF_HI_INT,
284 V16SF_FTYPE_V16HI_V16SF_HI_INT, V8SI_FTYPE_V8DF_V8SI_QI_INT,
285 V8SF_FTYPE_V8DF_V8SF_QI_INT, V8DF_FTYPE_V8DF_V8DF_QI_INT,
286 V8DF_FTYPE_V8SF_V8DF_QI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF_HI_INT,
287 V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT, V4SF_FTYPE_V4SF_V4SF_V4SF_QI_INT,
288 V4SF_FTYPE_V4SF_V2DF_V4SF_QI_INT, V2DF_FTYPE_V2DF_V2DF_V2DF_QI_INT,
289 V2DF_FTYPE_V2DF_V4SF_V2DF_QI_INT, V2DF_FTYPE_V2DF_V2DF_V2DF_INT,
290 V16SF_FTYPE_V16SF_INT_V16SF_HI_INT, V8DF_FTYPE_V8DF_INT_V8DF_QI_INT,
291 V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI_INT,
292 V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI_INT, V8DI_FTYPE_V8DI_SI_V8DI_V8DI,
293 V16SF_FTYPE_V16SF_PCFLOAT_V16SI_HI_INT,
294 V16SF_FTYPE_V16SF_PCFLOAT_V8DI_HI_INT,
295 V8DF_FTYPE_V8DF_PCDOUBLE_V8SI_QI_INT,
296 V8DF_FTYPE_V8DF_PCDOUBLE_V16SI_QI_INT,
297 V8SF_FTYPE_V8SF_PCFLOAT_V8DI_QI_INT,
298 V8DF_FTYPE_V8DF_PCDOUBLE_V8DI_QI_INT,
299 V16SI_FTYPE_V16SI_PCINT_V16SI_HI_INT,
300 V16SI_FTYPE_V16SI_PCINT_V8DI_HI_INT,
301 V8DI_FTYPE_V8DI_PCINT64_V8SI_QI_INT,
302 V8DI_FTYPE_V8DI_PCINT64_V16SI_QI_INT,
303 V8SI_FTYPE_V8SI_PCINT_V8DI_QI_INT,
304 V8DI_FTYPE_V8DI_PCINT64_V8DI_QI_INT,
305 VOID_FTYPE_PFLOAT_HI_V16SI_V16SF_INT,
306 VOID_FTYPE_PDOUBLE_QI_V8SI_V8DF_INT,
307 VOID_FTYPE_PFLOAT_QI_V8DI_V8SF_INT,
308 VOID_FTYPE_PDOUBLE_QI_V8DI_V8DF_INT,
309 VOID_FTYPE_PINT_HI_V16SI_V16SI_INT,
310 VOID_FTYPE_PLONGLONG_QI_V8SI_V8DI_INT,
311 VOID_FTYPE_PINT_QI_V8DI_V8SI_INT,
312 VOID_FTYPE_PLONGLONG_QI_V8DI_V8DI_INT,
313 VOID_FTYPE_HI_V16SI_PCINT_INT_INT, VOID_FTYPE_QI_V8DI_PCINT_INT_INT.
314 (ALIAS): Add DEF_FUNCTION_TYPE_ALIAS (V16SI_FTYPE_V8DF_V8DF, ROUND).
315 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_ADDPD512,
316 IX86_BUILTIN_ADDPS512, IX86_BUILTIN_ADDSD_MASK,
317 IX86_BUILTIN_ADDSS_MASK, IX86_BUILTIN_ALIGND512,
318 IX86_BUILTIN_ALIGNQ512, IX86_BUILTIN_BLENDMD512,
319 IX86_BUILTIN_BLENDMPD512, IX86_BUILTIN_BLENDMPS512,
320 IX86_BUILTIN_BLENDMQ512, IX86_BUILTIN_BROADCASTF32X4_512,
321 IX86_BUILTIN_BROADCASTF64X4_512, IX86_BUILTIN_BROADCASTI32X4_512,
322 IX86_BUILTIN_BROADCASTI64X4_512, IX86_BUILTIN_BROADCASTSD512,
323 IX86_BUILTIN_BROADCASTSS512, IX86_BUILTIN_CMPD512,
324 IX86_BUILTIN_CMPPD512, IX86_BUILTIN_CMPPS512, IX86_BUILTIN_CMPQ512,
325 IX86_BUILTIN_CMPSD_MASK, IX86_BUILTIN_CMPSS_MASK, IX86_BUILTIN_COMIDF,
326 IX86_BUILTIN_COMISF, IX86_BUILTIN_COMPRESSPD512,
327 IX86_BUILTIN_COMPRESSPDSTORE512, IX86_BUILTIN_COMPRESSPS512,
328 IX86_BUILTIN_COMPRESSPSSTORE512, IX86_BUILTIN_CVTDQ2PD512,
329 IX86_BUILTIN_CVTDQ2PS512, IX86_BUILTIN_CVTPD2DQ512,
330 IX86_BUILTIN_CVTPD2PS512, IX86_BUILTIN_CVTPD2UDQ512,
331 IX86_BUILTIN_CVTPH2PS512, IX86_BUILTIN_CVTPS2DQ512,
332 IX86_BUILTIN_CVTPS2PD512, IX86_BUILTIN_CVTPS2PH512,
333 IX86_BUILTIN_CVTPS2UDQ512, IX86_BUILTIN_CVTSD2SS_MASK,
334 IX86_BUILTIN_CVTSI2SD64, IX86_BUILTIN_CVTSI2SS32,
335 IX86_BUILTIN_CVTSI2SS64, IX86_BUILTIN_CVTSS2SD_MASK,
336 IX86_BUILTIN_CVTTPD2DQ512, IX86_BUILTIN_CVTTPD2UDQ512,
337 IX86_BUILTIN_CVTTPS2DQ512, IX86_BUILTIN_CVTTPS2UDQ512,
338 IX86_BUILTIN_CVTUDQ2PD512, IX86_BUILTIN_CVTUDQ2PS512,
339 IX86_BUILTIN_CVTUSI2SD32, IX86_BUILTIN_CVTUSI2SD64,
340 IX86_BUILTIN_CVTUSI2SS32, IX86_BUILTIN_CVTUSI2SS64,
341 IX86_BUILTIN_DIVPD512, IX86_BUILTIN_DIVPS512, IX86_BUILTIN_DIVSD_MASK,
342 IX86_BUILTIN_DIVSS_MASK, IX86_BUILTIN_EXPANDPD512,
343 IX86_BUILTIN_EXPANDPD512Z, IX86_BUILTIN_EXPANDPDLOAD512,
344 IX86_BUILTIN_EXPANDPDLOAD512Z, IX86_BUILTIN_EXPANDPS512,
345 IX86_BUILTIN_EXPANDPS512Z, IX86_BUILTIN_EXPANDPSLOAD512,
346 IX86_BUILTIN_EXPANDPSLOAD512Z, IX86_BUILTIN_EXTRACTF32X4,
347 IX86_BUILTIN_EXTRACTF64X4, IX86_BUILTIN_EXTRACTI32X4,
348 IX86_BUILTIN_EXTRACTI64X4, IX86_BUILTIN_FIXUPIMMPD512_MASK,
349 IX86_BUILTIN_FIXUPIMMPD512_MASKZ, IX86_BUILTIN_FIXUPIMMPS512_MASK,
350 IX86_BUILTIN_FIXUPIMMPS512_MASKZ, IX86_BUILTIN_FIXUPIMMSD128_MASK,
351 IX86_BUILTIN_FIXUPIMMSD128_MASKZ, IX86_BUILTIN_FIXUPIMMSS128_MASK,
352 IX86_BUILTIN_FIXUPIMMSS128_MASKZ, IX86_BUILTIN_GETEXPPD512,
353 IX86_BUILTIN_GETEXPPS512, IX86_BUILTIN_GETEXPSD128,
354 IX86_BUILTIN_GETEXPSS128, IX86_BUILTIN_GETMANTPD512,
355 IX86_BUILTIN_GETMANTPS512, IX86_BUILTIN_GETMANTSD128,
356 IX86_BUILTIN_GETMANTSS128, IX86_BUILTIN_INSERTF32X4,
357 IX86_BUILTIN_INSERTF64X4, IX86_BUILTIN_INSERTI32X4,
358 IX86_BUILTIN_INSERTI64X4, IX86_BUILTIN_LOADAPD512,
359 IX86_BUILTIN_LOADAPS512, IX86_BUILTIN_LOADDQUDI512,
360 IX86_BUILTIN_LOADDQUSI512, IX86_BUILTIN_LOADSD, IX86_BUILTIN_LOADSS,
361 IX86_BUILTIN_LOADUPD512, IX86_BUILTIN_LOADUPS512,
362 IX86_BUILTIN_MAXPD512, IX86_BUILTIN_MAXPS512, IX86_BUILTIN_MAXSD_MASK,
363 IX86_BUILTIN_MAXSS_MASK, IX86_BUILTIN_MINPD512, IX86_BUILTIN_MINPS512,
364 IX86_BUILTIN_MINSD_MASK, IX86_BUILTIN_MINSS_MASK,
365 IX86_BUILTIN_MOVAPD512, IX86_BUILTIN_MOVAPS512,
366 IX86_BUILTIN_MOVDDUP512, IX86_BUILTIN_MOVDQA32LOAD512,
367 IX86_BUILTIN_MOVDQA32STORE512, IX86_BUILTIN_MOVDQA32_512,
368 IX86_BUILTIN_MOVDQA64LOAD512, IX86_BUILTIN_MOVDQA64STORE512,
369 IX86_BUILTIN_MOVDQA64_512, IX86_BUILTIN_MOVESD, IX86_BUILTIN_MOVESS,
370 IX86_BUILTIN_MOVNTDQ512, IX86_BUILTIN_MOVNTPD512,
371 IX86_BUILTIN_MOVNTPS512, IX86_BUILTIN_MOVSHDUP512,
372 IX86_BUILTIN_MOVSLDUP512, IX86_BUILTIN_MULPD512,
373 IX86_BUILTIN_MULPS512, IX86_BUILTIN_MULSD_MASK,
374 IX86_BUILTIN_MULSS_MASK, IX86_BUILTIN_PABSD512, IX86_BUILTIN_PABSQ512,
375 IX86_BUILTIN_PADDD512, IX86_BUILTIN_PADDQ512, IX86_BUILTIN_PANDD512,
376 IX86_BUILTIN_PANDND512, IX86_BUILTIN_PANDNQ512, IX86_BUILTIN_PANDQ512,
377 IX86_BUILTIN_PBROADCASTD512, IX86_BUILTIN_PBROADCASTD512_GPR,
378 IX86_BUILTIN_PBROADCASTMB512, IX86_BUILTIN_PBROADCASTMW512,
379 IX86_BUILTIN_PBROADCASTQ512, IX86_BUILTIN_PBROADCASTQ512_GPR,
380 IX86_BUILTIN_PBROADCASTQ512_MEM, IX86_BUILTIN_PCMPEQD512_MASK,
381 IX86_BUILTIN_PCMPEQQ512_MASK, IX86_BUILTIN_PCMPGTD512_MASK,
382 IX86_BUILTIN_PCMPGTQ512_MASK, IX86_BUILTIN_PCOMPRESSD512,
383 IX86_BUILTIN_PCOMPRESSDSTORE512, IX86_BUILTIN_PCOMPRESSQ512,
384 IX86_BUILTIN_PCOMPRESSQSTORE512, IX86_BUILTIN_PEXPANDD512,
385 IX86_BUILTIN_PEXPANDD512Z, IX86_BUILTIN_PEXPANDDLOAD512,
386 IX86_BUILTIN_PEXPANDDLOAD512Z, IX86_BUILTIN_PEXPANDQ512,
387 IX86_BUILTIN_PEXPANDQ512Z, IX86_BUILTIN_PEXPANDQLOAD512,
388 IX86_BUILTIN_PEXPANDQLOAD512Z, IX86_BUILTIN_PMAXSD512,
389 IX86_BUILTIN_PMAXSQ512, IX86_BUILTIN_PMAXUD512,
390 IX86_BUILTIN_PMAXUQ512, IX86_BUILTIN_PMINSD512,
391 IX86_BUILTIN_PMINSQ512, IX86_BUILTIN_PMINUD512,
392 IX86_BUILTIN_PMINUQ512, IX86_BUILTIN_PMOVDB512,
393 IX86_BUILTIN_PMOVDW512, IX86_BUILTIN_PMOVQB512,
394 IX86_BUILTIN_PMOVQD512, IX86_BUILTIN_PMOVQW512,
395 IX86_BUILTIN_PMOVSDB512, IX86_BUILTIN_PMOVSDW512,
396 IX86_BUILTIN_PMOVSQB512, IX86_BUILTIN_PMOVSQD512,
397 IX86_BUILTIN_PMOVSQW512, IX86_BUILTIN_PMOVSXBD512,
398 IX86_BUILTIN_PMOVSXBQ512, IX86_BUILTIN_PMOVSXDQ512,
399 IX86_BUILTIN_PMOVSXWD512, IX86_BUILTIN_PMOVSXWQ512,
400 IX86_BUILTIN_PMOVUSDB512, IX86_BUILTIN_PMOVUSDW512,
401 IX86_BUILTIN_PMOVUSQB512, IX86_BUILTIN_PMOVUSQD512,
402 IX86_BUILTIN_PMOVUSQW512, IX86_BUILTIN_PMOVZXBD512,
403 IX86_BUILTIN_PMOVZXBQ512, IX86_BUILTIN_PMOVZXDQ512,
404 IX86_BUILTIN_PMOVZXWD512, IX86_BUILTIN_PMOVZXWQ512,
405 IX86_BUILTIN_PMULDQ512, IX86_BUILTIN_PMULLD512,
406 IX86_BUILTIN_PMULUDQ512, IX86_BUILTIN_PORD512, IX86_BUILTIN_PORQ512,
407 IX86_BUILTIN_PROLD512, IX86_BUILTIN_PROLQ512, IX86_BUILTIN_PROLVD512,
408 IX86_BUILTIN_PROLVQ512, IX86_BUILTIN_PRORD512, IX86_BUILTIN_PRORQ512,
409 IX86_BUILTIN_PRORVD512, IX86_BUILTIN_PRORVQ512,
410 IX86_BUILTIN_PSHUFD512, IX86_BUILTIN_PSLLD512, IX86_BUILTIN_PSLLDI512,
411 IX86_BUILTIN_PSLLQ512, IX86_BUILTIN_PSLLQI512,
412 IX86_BUILTIN_PSLLVV16SI, IX86_BUILTIN_PSLLVV8DI,
413 IX86_BUILTIN_PSRAD512, IX86_BUILTIN_PSRADI512, IX86_BUILTIN_PSRAQ512,
414 IX86_BUILTIN_PSRAQI512, IX86_BUILTIN_PSRAVV16SI,
415 IX86_BUILTIN_PSRAVV8DI, IX86_BUILTIN_PSRLD512, IX86_BUILTIN_PSRLDI512,
416 IX86_BUILTIN_PSRLQ512, IX86_BUILTIN_PSRLQI512,
417 IX86_BUILTIN_PSRLVV16SI, IX86_BUILTIN_PSRLVV8DI,
418 IX86_BUILTIN_PSUBD512, IX86_BUILTIN_PSUBQ512, IX86_BUILTIN_PTESTMD512,
419 IX86_BUILTIN_PTESTMQ512, IX86_BUILTIN_PTESTNMD512,
420 IX86_BUILTIN_PTESTNMQ512, IX86_BUILTIN_PUNPCKHDQ512,
421 IX86_BUILTIN_PUNPCKHQDQ512, IX86_BUILTIN_PUNPCKLDQ512,
422 IX86_BUILTIN_PUNPCKLQDQ512, IX86_BUILTIN_PXORD512,
423 IX86_BUILTIN_PXORQ512, IX86_BUILTIN_RCP14PD512,
424 IX86_BUILTIN_RCP14PS512, IX86_BUILTIN_RCP14SD, IX86_BUILTIN_RCP14SS,
425 IX86_BUILTIN_RNDSCALEPD, IX86_BUILTIN_RNDSCALEPS,
426 IX86_BUILTIN_RNDSCALESD, IX86_BUILTIN_RNDSCALESS,
427 IX86_BUILTIN_RSQRT14PD512, IX86_BUILTIN_RSQRT14PS512,
428 IX86_BUILTIN_RSQRT14SD, IX86_BUILTIN_RSQRT14SS,
429 IX86_BUILTIN_SCALEFPD512, IX86_BUILTIN_SCALEFPS512,
430 IX86_BUILTIN_SCALEFSD, IX86_BUILTIN_SCALEFSS, IX86_BUILTIN_SHUFPD512,
431 IX86_BUILTIN_SHUFPS512, IX86_BUILTIN_SHUF_F32x4,
432 IX86_BUILTIN_SHUF_F64x2, IX86_BUILTIN_SHUF_I32x4,
433 IX86_BUILTIN_SHUF_I64x2,
434 IX86_BUILTIN_SQRTPD512_MASK, IX86_BUILTIN_SQRTPS512_MASK,
435 IX86_BUILTIN_SQRTSD_MASK,
436 IX86_BUILTIN_SQRTSS_MASK, IX86_BUILTIN_STOREAPD512,
437 IX86_BUILTIN_STOREAPS512, IX86_BUILTIN_STOREDQUDI512,
438 IX86_BUILTIN_STOREDQUSI512, IX86_BUILTIN_STORESD,
439 IX86_BUILTIN_STORESS, IX86_BUILTIN_STOREUPD512,
440 IX86_BUILTIN_STOREUPS512, IX86_BUILTIN_SUBPD512,
441 IX86_BUILTIN_SUBPS512, IX86_BUILTIN_SUBSD_MASK,
442 IX86_BUILTIN_SUBSS_MASK, IX86_BUILTIN_UCMPD512, IX86_BUILTIN_UCMPQ512,
443 IX86_BUILTIN_UNPCKHPD512, IX86_BUILTIN_UNPCKHPS512,
444 IX86_BUILTIN_UNPCKLPD512, IX86_BUILTIN_UNPCKLPS512,
445 IX86_BUILTIN_VCVTSD2SI32, IX86_BUILTIN_VCVTSD2SI64,
446 IX86_BUILTIN_VCVTSD2USI32, IX86_BUILTIN_VCVTSD2USI64,
447 IX86_BUILTIN_VCVTSS2SI32, IX86_BUILTIN_VCVTSS2SI64,
448 IX86_BUILTIN_VCVTSS2USI32, IX86_BUILTIN_VCVTSS2USI64,
449 IX86_BUILTIN_VCVTTSD2SI32, IX86_BUILTIN_VCVTTSD2SI64,
450 IX86_BUILTIN_VCVTTSD2USI32, IX86_BUILTIN_VCVTTSD2USI64,
451 IX86_BUILTIN_VCVTTSS2SI32, IX86_BUILTIN_VCVTTSS2SI64,
452 IX86_BUILTIN_VCVTTSS2USI32, IX86_BUILTIN_VCVTTSS2USI64,
453 IX86_BUILTIN_VFMADDPD512_MASK, IX86_BUILTIN_VFMADDPD512_MASK3,
454 IX86_BUILTIN_VFMADDPD512_MASKZ, IX86_BUILTIN_VFMADDPS512_MASK,
455 IX86_BUILTIN_VFMADDPS512_MASK3, IX86_BUILTIN_VFMADDPS512_MASKZ,
456 IX86_BUILTIN_VFMADDSD3_MASK, IX86_BUILTIN_VFMADDSD3_MASK3,
457 IX86_BUILTIN_VFMADDSD3_MASKZ, IX86_BUILTIN_VFMADDSS3_MASK,
458 IX86_BUILTIN_VFMADDSS3_MASK3, IX86_BUILTIN_VFMADDSS3_MASKZ,
459 IX86_BUILTIN_VFMADDSUBPD512_MASK, IX86_BUILTIN_VFMADDSUBPD512_MASK3,
460 IX86_BUILTIN_VFMADDSUBPD512_MASKZ, IX86_BUILTIN_VFMADDSUBPS512_MASK,
461 IX86_BUILTIN_VFMADDSUBPS512_MASK3, IX86_BUILTIN_VFMADDSUBPS512_MASKZ,
462 IX86_BUILTIN_VFMSUBADDPD512_MASK3, IX86_BUILTIN_VFMSUBADDPS512_MASK3,
463 IX86_BUILTIN_VFMSUBPD512_MASK3, IX86_BUILTIN_VFMSUBPS512_MASK3,
464 IX86_BUILTIN_VFMSUBSD3_MASK3, IX86_BUILTIN_VFMSUBSS3_MASK3,
465 IX86_BUILTIN_VFNMADDPD512_MASK, IX86_BUILTIN_VFNMADDPS512_MASK,
466 IX86_BUILTIN_VFNMSUBPD512_MASK, IX86_BUILTIN_VFNMSUBPD512_MASK3,
467 IX86_BUILTIN_VFNMSUBPS512_MASK, IX86_BUILTIN_VFNMSUBPS512_MASK3,
468 IX86_BUILTIN_VPCLZCNTD512, IX86_BUILTIN_VPCLZCNTQ512,
469 IX86_BUILTIN_VPCONFLICTD512, IX86_BUILTIN_VPCONFLICTQ512,
470 IX86_BUILTIN_VPERMDF512, IX86_BUILTIN_VPERMDI512,
471 IX86_BUILTIN_VPERMI2VARD512, IX86_BUILTIN_VPERMI2VARPD512,
472 IX86_BUILTIN_VPERMI2VARPS512, IX86_BUILTIN_VPERMI2VARQ512,
473 IX86_BUILTIN_VPERMILPD512, IX86_BUILTIN_VPERMILPS512,
474 IX86_BUILTIN_VPERMILVARPD512, IX86_BUILTIN_VPERMILVARPS512,
475 IX86_BUILTIN_VPERMT2VARD512, IX86_BUILTIN_VPERMT2VARD512_MASKZ,
476 IX86_BUILTIN_VPERMT2VARPD512, IX86_BUILTIN_VPERMT2VARPD512_MASKZ,
477 IX86_BUILTIN_VPERMT2VARPS512, IX86_BUILTIN_VPERMT2VARPS512_MASKZ,
478 IX86_BUILTIN_VPERMT2VARQ512, IX86_BUILTIN_VPERMT2VARQ512_MASKZ,
479 IX86_BUILTIN_VPERMVARDF512, IX86_BUILTIN_VPERMVARDI512,
480 IX86_BUILTIN_VPERMVARSF512, IX86_BUILTIN_VPERMVARSI512,
481 IX86_BUILTIN_VTERNLOGD512_MASK, IX86_BUILTIN_VTERNLOGD512_MASKZ,
482 IX86_BUILTIN_VTERNLOGQ512_MASK, IX86_BUILTIN_VTERNLOGQ512_MASKZ,
483 IX86_BUILTIN_KAND16, IX86_BUILTIN_KANDN16, IX86_BUILTIN_KNOT16,
484 IX86_BUILTIN_KOR16, IX86_BUILTIN_KORTESTC16, IX86_BUILTIN_KORTESTZ16,
485 IX86_BUILTIN_KUNPCKBW, IX86_BUILTIN_KXNOR16, IX86_BUILTIN_KXOR16,
486 IX86_BUILTIN_GATHER3SIV8DI,
487 IX86_BUILTIN_SCATTERDIV16SF, IX86_BUILTIN_SCATTERDIV16SI,
488 IX86_BUILTIN_SCATTERDIV8DF, IX86_BUILTIN_SCATTERDIV8DI,
489 IX86_BUILTIN_SCATTERSIV16SF, IX86_BUILTIN_SCATTERSIV16SI,
490 IX86_BUILTIN_SCATTERSIV8DF, IX86_BUILTIN_SCATTERSIV8DI,
491 IX86_BUILTIN_GATHERPFDPS, IX86_BUILTIN_GATHERPFQPS,
492 IX86_BUILTIN_SCATTERPFDPS, IX86_BUILTIN_SCATTERPFQPS,
493 IX86_BUILTIN_EXP2PD_MASK, IX86_BUILTIN_EXP2PS_MASK,
494 IX86_BUILTIN_RCP28PD, IX86_BUILTIN_RCP28PS,
495 IX86_BUILTIN_RSQRT28PD, IX86_BUILTIN_RSQRT28PS.
496 (bdesc_special_args): Add __builtin_ia32_compressstoresf512_mask,
497 __builtin_ia32_compressstoresi512_mask,
498 __builtin_ia32_compressstoredf512_mask,
499 __builtin_ia32_compressstoredi512_mask,
500 __builtin_ia32_expandloadsf512_mask,
501 __builtin_ia32_expandloadsf512_maskz,
502 __builtin_ia32_expandloadsi512_mask,
503 __builtin_ia32_expandloadsi512_maskz,
504 __builtin_ia32_expandloaddf512_mask,
505 __builtin_ia32_expandloaddf512_maskz,
506 __builtin_ia32_expandloaddi512_mask,
507 __builtin_ia32_expandloaddi512_maskz,
508 __builtin_ia32_loaddqusi512_mask, __builtin_ia32_loaddqudi512_mask,
509 __builtin_ia32_loadsd_mask, __builtin_ia32_loadss_mask,
510 __builtin_ia32_loadupd512_mask, __builtin_ia32_loadups512_mask,
511 __builtin_ia32_loadaps512_mask, __builtin_ia32_movdqa32load512_mask,
512 __builtin_ia32_loadapd512_mask, __builtin_ia32_movdqa64load512_mask,
513 __builtin_ia32_movntps512, __builtin_ia32_movntpd512,
514 __builtin_ia32_movntdq512, __builtin_ia32_storedqusi512_mask,
515 __builtin_ia32_storedqudi512_mask, __builtin_ia32_storesd_mask,
516 __builtin_ia32_storess_mask, __builtin_ia32_storeupd512_mask,
517 __builtin_ia32_storeups512_mask, __builtin_ia32_storeaps512_mask,
518 __builtin_ia32_movdqa32store512_mask, __builtin_ia32_storeapd512_mask,
519 __builtin_ia32_movdqa64store512_mask, __builtin_ia32_alignd512_mask,
520 __builtin_ia32_alignq512_mask, __builtin_ia32_blendmd_512_mask,
521 __builtin_ia32_blendmpd_512_mask, __builtin_ia32_blendmps_512_mask,
522 __builtin_ia32_blendmq_512_mask, __builtin_ia32_broadcastf32x4_512,
523 __builtin_ia32_broadcastf64x4_512, __builtin_ia32_broadcasti32x4_512,
524 __builtin_ia32_broadcasti64x4_512, __builtin_ia32_broadcastsd512,
525 __builtin_ia32_broadcastss512, __builtin_ia32_cmpd512_mask,
526 __builtin_ia32_cmpq512_mask, __builtin_ia32_compressdf512_mask,
527 __builtin_ia32_compresssf512_mask, __builtin_ia32_cvtdq2pd512_mask,
528 __builtin_ia32_vcvtps2ph512_mask, __builtin_ia32_cvtudq2pd512_mask,
529 __builtin_ia32_cvtusi2sd32, __builtin_ia32_expanddf512_mask,
530 __builtin_ia32_expanddf512_maskz, __builtin_ia32_expandsf512_mask,
531 __builtin_ia32_expandsf512_maskz, __builtin_ia32_extractf32x4_mask,
532 __builtin_ia32_extractf64x4_mask, __builtin_ia32_extracti32x4_mask,
533 __builtin_ia32_extracti64x4_mask, __builtin_ia32_insertf32x4_mask,
534 __builtin_ia32_insertf64x4_mask, __builtin_ia32_inserti32x4_mask,
535 __builtin_ia32_inserti64x4_mask, __builtin_ia32_movapd512_mask,
536 __builtin_ia32_movaps512_mask, __builtin_ia32_movddup512_mask,
537 __builtin_ia32_movdqa32_512_mask, __builtin_ia32_movdqa64_512_mask,
538 __builtin_ia32_movesd_mask, __builtin_ia32_movess_mask,
539 __builtin_ia32_movshdup512_mask, __builtin_ia32_movsldup512_mask,
540 __builtin_ia32_pabsd512_mask, __builtin_ia32_pabsq512_mask,
541 __builtin_ia32_paddd512_mask, __builtin_ia32_paddq512_mask,
542 __builtin_ia32_pandd512_mask, __builtin_ia32_pandnd512_mask,
543 __builtin_ia32_pandnq512_mask, __builtin_ia32_pandq512_mask,
544 __builtin_ia32_pbroadcastd512, __builtin_ia32_pbroadcastd512_gpr_mask,
545 __builtin_ia32_broadcastmb512, __builtin_ia32_broadcastmw512,
546 __builtin_ia32_pbroadcastq512, __builtin_ia32_pbroadcastq512_gpr_mask,
547 __builtin_ia32_pbroadcastq512_mem_mask,
548 __builtin_ia32_pcmpeqd512_mask, __builtin_ia32_pcmpeqq512_mask,
549 __builtin_ia32_pcmpgtd512_mask, __builtin_ia32_pcmpgtq512_mask,
550 __builtin_ia32_compresssi512_mask, __builtin_ia32_compressdi512_mask,
551 __builtin_ia32_expandsi512_mask, __builtin_ia32_expandsi512_maskz,
552 __builtin_ia32_expanddi512_mask, __builtin_ia32_expanddi512_maskz,
553 __builtin_ia32_pmaxsd512_mask, __builtin_ia32_pmaxsq512_mask,
554 __builtin_ia32_pmaxud512_mask, __builtin_ia32_pmaxuq512_mask,
555 __builtin_ia32_pminsd512_mask, __builtin_ia32_pminsq512_mask,
556 __builtin_ia32_pminud512_mask, __builtin_ia32_pminuq512_mask,
557 __builtin_ia32_pmovdb512_mask, __builtin_ia32_pmovdw512_mask,
558 __builtin_ia32_pmovqb512_mask, __builtin_ia32_pmovqd512_mask,
559 __builtin_ia32_pmovqw512_mask, __builtin_ia32_pmovsdb512_mask,
560 __builtin_ia32_pmovsdw512_mask, __builtin_ia32_pmovsqb512_mask,
561 __builtin_ia32_pmovsqd512_mask, __builtin_ia32_pmovsqw512_mask,
562 __builtin_ia32_pmovsxbd512_mask, __builtin_ia32_pmovsxbq512_mask,
563 __builtin_ia32_pmovsxdq512_mask, __builtin_ia32_pmovsxwd512_mask,
564 __builtin_ia32_pmovsxwq512_mask, __builtin_ia32_pmovusdb512_mask,
565 __builtin_ia32_pmovusdw512_mask, __builtin_ia32_pmovusqb512_mask,
566 __builtin_ia32_pmovusqd512_mask, __builtin_ia32_pmovusqw512_mask,
567 __builtin_ia32_pmovzxbd512_mask, __builtin_ia32_pmovzxbq512_mask,
568 __builtin_ia32_pmovzxdq512_mask, __builtin_ia32_pmovzxwd512_mask,
569 __builtin_ia32_pmovzxwq512_mask, __builtin_ia32_pmuldq512_mask,
570 __builtin_ia32_pmulld512_mask, __builtin_ia32_pmuludq512_mask,
571 __builtin_ia32_pord512_mask, __builtin_ia32_porq512_mask,
572 __builtin_ia32_prold512_mask, __builtin_ia32_prolq512_mask,
573 __builtin_ia32_prolvd512_mask, __builtin_ia32_prolvq512_mask,
574 __builtin_ia32_prord512_mask, __builtin_ia32_prorq512_mask,
575 __builtin_ia32_prorvd512_mask, __builtin_ia32_prorvq512_mask,
576 __builtin_ia32_pshufd512_mask, __builtin_ia32_pslld512_mask,
577 __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
578 __builtin_ia32_psllqi512_mask, __builtin_ia32_psllv16si_mask,
579 __builtin_ia32_psllv8di_mask, __builtin_ia32_psrad512_mask,
580 __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
581 __builtin_ia32_psraqi512_mask, __builtin_ia32_psrav16si_mask,
582 __builtin_ia32_psrav8di_mask, __builtin_ia32_psrld512_mask,
583 __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
584 __builtin_ia32_psrlqi512_mask, __builtin_ia32_psrlv16si_mask,
585 __builtin_ia32_psrlv8di_mask, __builtin_ia32_psubd512_mask,
586 __builtin_ia32_psubq512_mask, __builtin_ia32_ptestmd512,
587 __builtin_ia32_ptestmq512, __builtin_ia32_ptestnmd512,
588 __builtin_ia32_ptestnmq512, __builtin_ia32_punpckhdq512_mask,
589 __builtin_ia32_punpckhqdq512_mask, __builtin_ia32_punpckldq512_mask,
590 __builtin_ia32_punpcklqdq512_mask, __builtin_ia32_pxord512_mask,
591 __builtin_ia32_pxorq512_mask, __builtin_ia32_rcp14pd512_mask,
592 __builtin_ia32_rcp14ps512_mask, __builtin_ia32_rcp14sd_mask,
593 __builtin_ia32_rcp14ss_mask, __builtin_ia32_rsqrt14pd512_mask,
594 __builtin_ia32_rsqrt14ps512_mask, __builtin_ia32_rsqrt14sd_mask,
595 __builtin_ia32_rsqrt14ss_mask, __builtin_ia32_shufpd512_mask,
596 __builtin_ia32_shufps512_mask, __builtin_ia32_shuf_f32x4_mask,
597 __builtin_ia32_shuf_f64x2_mask, __builtin_ia32_shuf_i32x4_mask,
598 __builtin_ia32_shuf_i64x2_mask, __builtin_ia32_ucmpd512_mask,
599 __builtin_ia32_ucmpq512_mask, __builtin_ia32_unpckhpd512_mask,
600 __builtin_ia32_unpckhps512_mask, __builtin_ia32_unpcklpd512_mask,
601 __builtin_ia32_unpcklps512_mask, __builtin_ia32_vplzcntd_512_mask,
602 __builtin_ia32_vplzcntq_512_mask,
603 __builtin_ia32_vpconflictsi_512_mask,
604 __builtin_ia32_vpconflictdi_512_mask, __builtin_ia32_permdf512_mask,
605 __builtin_ia32_permdi512_mask, __builtin_ia32_vpermi2vard512_mask,
606 __builtin_ia32_vpermi2varpd512_mask,
607 __builtin_ia32_vpermi2varps512_mask,
608 __builtin_ia32_vpermi2varq512_mask, __builtin_ia32_vpermilpd512_mask,
609 __builtin_ia32_vpermilps512_mask, __builtin_ia32_vpermilvarpd512_mask,
610 __builtin_ia32_vpermilvarps512_mask,
611 __builtin_ia32_vpermt2vard512_mask,
612 __builtin_ia32_vpermt2vard512_maskz,
613 __builtin_ia32_vpermt2varpd512_mask,
614 __builtin_ia32_vpermt2varpd512_maskz,
615 __builtin_ia32_vpermt2varps512_mask,
616 __builtin_ia32_vpermt2varps512_maskz,
617 __builtin_ia32_vpermt2varq512_mask,
618 __builtin_ia32_vpermt2varq512_maskz, __builtin_ia32_permvardf512_mask,
619 __builtin_ia32_permvardi512_mask, __builtin_ia32_permvarsf512_mask,
620 __builtin_ia32_permvarsi512_mask, __builtin_ia32_pternlogd512_mask,
621 __builtin_ia32_pternlogd512_maskz, __builtin_ia32_pternlogq512_mask,
622 __builtin_ia32_pternlogq512_maskz, __builtin_ia32_copysignps512,
623 __builtin_ia32_copysignpd512, __builtin_ia32_sqrtpd512,
624 __builtin_ia32_sqrtps512, __builtin_ia32_exp2ps,
625 __builtin_ia32_roundpd_az_vec_pack_sfix512,
626 __builtin_ia32_floorpd_vec_pack_sfix512,
627 __builtin_ia32_ceilpd_vec_pack_sfix512, __builtin_ia32_kandhi,
628 __builtin_ia32_kandnhi, __builtin_ia32_knothi, __builtin_ia32_korhi,
629 __builtin_ia32_kortestchi, __builtin_ia32_kortestzhi,
630 __builtin_ia32_kunpckhi, __builtin_ia32_kxnorhi,
631 __builtin_ia32_kxorhi, __builtin_ia32_addpd512_mask,
632 __builtin_ia32_addps512_mask, __builtin_ia32_addsd_mask,
633 __builtin_ia32_addss_mask, __builtin_ia32_cmppd512_mask,
634 __builtin_ia32_cmpps512_mask, __builtin_ia32_cmpsd_mask,
635 __builtin_ia32_cmpss_mask, __builtin_ia32_vcomisd,
636 __builtin_ia32_vcomiss, __builtin_ia32_cvtdq2ps512_mask,
637 __builtin_ia32_cvtpd2dq512_mask, __builtin_ia32_cvtpd2ps512_mask,
638 __builtin_ia32_cvtpd2udq512_mask, __builtin_ia32_vcvtph2ps512_mask,
639 __builtin_ia32_cvtps2dq512_mask, __builtin_ia32_cvtps2pd512_mask,
640 __builtin_ia32_cvtps2udq512_mask, __builtin_ia32_cvtsd2ss_mask,
641 __builtin_ia32_cvtsi2sd64, __builtin_ia32_cvtsi2ss32,
642 __builtin_ia32_cvtsi2ss64, __builtin_ia32_cvtss2sd_mask,
643 __builtin_ia32_cvttpd2dq512_mask, __builtin_ia32_cvttpd2udq512_mask,
644 __builtin_ia32_cvttps2dq512_mask, __builtin_ia32_cvttps2udq512_mask,
645 __builtin_ia32_cvtudq2ps512_mask, __builtin_ia32_cvtusi2sd64,
646 __builtin_ia32_cvtusi2ss32, __builtin_ia32_cvtusi2ss64,
647 __builtin_ia32_divpd512_mask, __builtin_ia32_divps512_mask,
648 __builtin_ia32_divsd_mask, __builtin_ia32_divss_mask,
649 __builtin_ia32_fixupimmpd512_mask, __builtin_ia32_fixupimmpd512_maskz,
650 __builtin_ia32_fixupimmps512_mask, __builtin_ia32_fixupimmps512_maskz,
651 __builtin_ia32_fixupimmsd_mask, __builtin_ia32_fixupimmsd_maskz,
652 __builtin_ia32_fixupimmss_mask, __builtin_ia32_fixupimmss_maskz,
653 __builtin_ia32_getexppd512_mask, __builtin_ia32_getexpps512_mask,
654 __builtin_ia32_getexpsd128_mask, __builtin_ia32_getexpss128_mask,
655 __builtin_ia32_getmantpd512_mask, __builtin_ia32_getmantps512_mask,
656 __builtin_ia32_getmantsd_mask, __builtin_ia32_getmantss_mask,
657 __builtin_ia32_maxpd512_mask, __builtin_ia32_maxps512_mask,
658 __builtin_ia32_maxsd_mask, __builtin_ia32_maxss_mask,
659 __builtin_ia32_minpd512_mask, __builtin_ia32_minps512_mask,
660 __builtin_ia32_minsd_mask, __builtin_ia32_minss_mask,
661 __builtin_ia32_mulpd512_mask, __builtin_ia32_mulps512_mask,
662 __builtin_ia32_mulsd_mask, __builtin_ia32_mulss_mask,
663 __builtin_ia32_rndscalepd_mask, __builtin_ia32_rndscaleps_mask,
664 __builtin_ia32_rndscalesd_mask, __builtin_ia32_rndscaless_mask,
665 __builtin_ia32_scalefpd512_mask, __builtin_ia32_scalefps512_mask,
666 __builtin_ia32_scalefsd_mask, __builtin_ia32_scalefss_mask,
667 __builtin_ia32_sqrtpd512_mask, __builtin_ia32_sqrtps512_mask,
668 __builtin_ia32_sqrtsd_mask, __builtin_ia32_sqrtss_mask,
669 __builtin_ia32_subpd512_mask, __builtin_ia32_subps512_mask,
670 __builtin_ia32_subsd_mask, __builtin_ia32_subss_mask,
671 __builtin_ia32_vcvtsd2si32, __builtin_ia32_vcvtsd2si64,
672 __builtin_ia32_vcvtsd2usi32, __builtin_ia32_vcvtsd2usi64,
673 __builtin_ia32_vcvtss2si32, __builtin_ia32_vcvtss2si64,
674 __builtin_ia32_vcvtss2usi32, __builtin_ia32_vcvtss2usi64,
675 __builtin_ia32_vcvttsd2si32, __builtin_ia32_vcvttsd2si64,
676 __builtin_ia32_vcvttsd2usi32, __builtin_ia32_vcvttsd2usi64,
677 __builtin_ia32_vcvttss2si32, __builtin_ia32_vcvttss2si64,
678 __builtin_ia32_vcvttss2usi32, __builtin_ia32_vcvttss2usi64,
679 __builtin_ia32_vfmaddpd512_mask, __builtin_ia32_vfmaddpd512_mask3,
680 __builtin_ia32_vfmaddpd512_maskz, __builtin_ia32_vfmaddps512_mask,
681 __builtin_ia32_vfmaddps512_mask3, __builtin_ia32_vfmaddps512_maskz,
682 __builtin_ia32_vfmaddsd3_mask, __builtin_ia32_vfmaddsd3_mask3,
683 __builtin_ia32_vfmaddsd3_maskz, __builtin_ia32_vfmaddss3_mask,
684 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
685 __builtin_ia32_vfmaddsubpd512_mask,
686 __builtin_ia32_vfmaddsubpd512_mask3,
687 __builtin_ia32_vfmaddsubpd512_maskz,
688 __builtin_ia32_vfmaddsubps512_mask,
689 __builtin_ia32_vfmaddsubps512_mask3,
690 __builtin_ia32_vfmaddsubps512_maskz,
691 __builtin_ia32_vfmsubaddpd512_mask3,
692 __builtin_ia32_vfmsubaddps512_mask3, __builtin_ia32_vfmsubpd512_mask3,
693 __builtin_ia32_vfmsubps512_mask3, __builtin_ia32_vfmsubsd3_mask3,
694 __builtin_ia32_vfmsubss3_mask3, __builtin_ia32_vfnmaddpd512_mask,
695 __builtin_ia32_vfnmaddps512_mask, __builtin_ia32_vfnmsubpd512_mask,
696 __builtin_ia32_vfnmsubpd512_mask3, __builtin_ia32_vfnmsubps512_mask,
697 __builtin_ia32_vfnmsubps512_mask3, __builtin_ia32_exp2pd_mask,
698 __builtin_ia32_exp2ps_mask, __builtin_ia32_rcp28pd_mask,
699 __builtin_ia32_rcp28ps_mask, __builtin_ia32_rsqrt28pd_mask,
700 __builtin_ia32_rsqrt28ps_mask, __builtin_ia32_gathersiv16sf,
701 __builtin_ia32_gathersiv8df, __builtin_ia32_gatherdiv16sf,
702 __builtin_ia32_gatherdiv8df, __builtin_ia32_gathersiv16si,
703 __builtin_ia32_gathersiv8di, __builtin_ia32_gatherdiv16si,
704 __builtin_ia32_gatherdiv8di, __builtin_ia32_gatheraltsiv8df ,
705 __builtin_ia32_gatheraltdiv8sf , __builtin_ia32_gatheraltsiv8di ,
706 __builtin_ia32_gatheraltdiv8si , __builtin_ia32_scattersiv16sf,
707 __builtin_ia32_scattersiv8df, __builtin_ia32_scatterdiv16sf,
708 __builtin_ia32_scatterdiv8df, __builtin_ia32_scattersiv16si,
709 __builtin_ia32_scattersiv8di, __builtin_ia32_scatterdiv16si,
710 __builtin_ia32_scatterdiv8di, __builtin_ia32_gatherpfdps,
711 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdps,
712 __builtin_ia32_scatterpfqps.
713 (ix86_init_mmx_sse_builtins): Handle builtins with AVX512 embeded
714 rounding, builtins for AVX512 gathers/scatters.
715 (ix86_expand_args_builtin): Handle new functions types, add warnings
717 (ix86_erase_embedded_rounding): Handle patterns with embedded rounding.
718 (ix86_expand_sse_comi_round): Ditto.
719 (ix86_expand_round_builtin): Ditto.
720 (ix86_expand_builtin): Handle AVX512's gathers/scatters and kortest{z}.
721 Call ix86_expand_round_builtin.
722 * config/i386/immintrin.h: Add avx512fintrin.h, avx512erintrin.h,
723 avx512pfintrin.h, avx512cdintrin.h.
725 2013-12-31 Alexander Ivchenko <alexander.ivchenko@intel.com>
726 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
727 Sergey Lega <sergey.s.lega@intel.com>
728 Anna Tikhonova <anna.tikhonova@intel.com>
729 Ilya Tocar <ilya.tocar@intel.com>
730 Andrey Turetskiy <andrey.turetskiy@intel.com>
731 Ilya Verbin <ilya.verbin@intel.com>
732 Kirill Yukhin <kirill.yukhin@intel.com>
733 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
735 * config/i386/i386.c (MAX_CLASSES): Increase number of classes.
736 (classify_argument): Extend for 512 bit vectors.
737 (construct_container): Ditto.
738 (function_arg_advance_32): Ditto.
739 (function_arg_advance_64): Ditto.
740 (function_arg_32): Ditto.
741 (function_arg_64): Ditto.
742 (function_value_32): Ditto.
743 (return_in_memory_32): Ditto.
744 (ix86_gimplify_va_arg): Ditto.
745 (standard_sse_constant_p): Ditto.
746 (standard_sse_constant_opcode): Ditto.
747 (ix86_expand_vector_convert_uns_vsivsf): Ditto.
748 (ix86_build_const_vector): Ditto.
749 (ix86_build_signbit_mask): Ditto.
750 (ix86_expand_sse_cmp): Extend for AVX512.
751 (ix86_expand_sse_movcc): Ditto.
752 (ix86_expand_int_vcond): Ditto.
753 (ix86_expand_vec_perm): Ditto.
754 (ix86_expand_sse_unpack): Ditto.
755 (ix86_builtin_vectorized_function): Ditto.
756 (ix86_vectorize_builtin_gather): Ditto.
757 (avx_vpermilp_parallel): Ditto.
758 (ix86_rtx_costs): Ditto.
759 (ix86_expand_vector_init_duplicate): Ditto.
760 (ix86_expand_vector_init_concat): Ditto.
761 (ix86_expand_vector_init_general): Ditto.
762 (ix86_expand_vector_extract): Ditto.
763 (emit_reduc_half): Ditto.
764 (ix86_vector_mode_supported_p): Ditto.
765 (ix86_emit_swdivsf): Ditto.
766 (ix86_emit_swsqrtsf): Ditto.
767 (expand_vec_perm_1): Ditto.
768 (ix86_vectorize_vec_perm_const_ok): Ditto.
769 (ix86_expand_mul_widen_evenodd): Ditto.
770 (ix86_expand_sse2_mulvxdi3): Ditto.
771 (ix86_preferred_simd_mode): Ditto.
772 (ix86_autovectorize_vector_sizes): Ditto.
773 (ix86_expand_vec_perm_vpermi2): New.
774 (ix86_vector_duplicate_value): Ditto.
775 (IX86_BUILTIN_SQRTPD512, IX86_BUILTIN_EXP2PS,
776 IX86_BUILTIN_SQRTPS_NR512, IX86_BUILTIN_GATHER3ALTDIV16SF,
777 IX86_BUILTIN_GATHER3ALTDIV16SI, IX86_BUILTIN_GATHER3ALTSIV8DF,
778 IX86_BUILTIN_GATHER3ALTSIV8DI, IX86_BUILTIN_GATHER3DIV16SF,
779 IX86_BUILTIN_GATHER3DIV16SI, IX86_BUILTIN_GATHER3DIV8DF,
780 IX86_BUILTIN_GATHER3DIV8DI, IX86_BUILTIN_GATHER3SIV16SF,
781 IX86_BUILTIN_GATHER3SIV16SI, IX86_BUILTIN_GATHER3SIV8DF,
782 IX86_BUILTIN_CEILPD_VEC_PACK_SFIX512, IX86_BUILTIN_CPYSGNPS512,
783 IX86_BUILTIN_CPYSGNPD512, IX86_BUILTIN_FLOORPD_VEC_PACK_SFIX512,
784 IX86_BUILTIN_ROUNDPD_AZ_VEC_PACK_SFIX512): Ditto.
785 * config/i386/sse.md (*mov<mode>_internal): Disable SSE typeless
786 stores vectors > 128bit (AVX*).
787 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
788 (<sse2_avx_avx512f>_storedqu<mode>): Extend for AVX-512, disable
789 SSE typeless stores vectors > 128bit (AVX*).
790 (fixuns_trunc<mode><sseintvecmodelower>2): Extend for AVX-512.
791 (vec_pack_ufix_trunc_<mode>): Ditto.
792 (vec_unpacku_float_hi_v16si): New.
793 * tree-vect-stmts.c (vectorizable_load): Support AVX512's gathers.
794 * tree-vectorizer.h (MAX_VECTORIZATION_FACTOR): Extend for 512 bit
797 2013-12-31 Chung-Lin Tang <cltang@codesourcery.com>
798 Sandra Loosemore <sandra@codesourcery.com>
799 Based on patches from Altera Corporation
801 * config.gcc (nios2-*-*): Add nios2 config targets.
802 * configure.ac (TLS_SECTION_ASM_FLAG): Add nios2 case.
803 ("$cpu_type"): Add nios2 as new cpu type.
804 * configure: Regenerate.
805 * config/nios2/nios2.c: New file.
806 * config/nios2/nios2.h: New file.
807 * config/nios2/nios2-opts.h: New file.
808 * config/nios2/nios2-protos.h: New file.
809 * config/nios2/elf.h: New file.
810 * config/nios2/elf.opt: New file.
811 * config/nios2/linux.h: New file.
812 * config/nios2/nios2.opt: New file.
813 * config/nios2/nios2.md: New file.
814 * config/nios2/predicates.md: New file.
815 * config/nios2/constraints.md: New file.
816 * config/nios2/t-nios2: New file.
817 * common/config/nios2/nios2-common.c: New file.
818 * doc/invoke.texi (Nios II options): Document Nios II specific options.
819 * doc/md.texi (Nios II family): Document Nios II specific constraints.
820 * doc/extend.texi (Function Specific Option Pragmas): Document
821 Nios II supported target pragma functionality.
823 2013-12-30 Jakub Jelinek <jakub@redhat.com>
825 PR tree-optimization/59591
826 * tree-vect-stmts.c (vectorizable_mask_load_store): Fix up handling
827 of modifier = NARROW masked gathers.
828 (permute_vec_elements): Use gimple_get_lhs instead of
831 2013-12-30 Nick Clifton <nickc@redhat.com>
832 Peter Bigot <bigotp@acm.org>
835 * stor-layout.c (get_mode_bounds): Use GET_MODE_PRECISION instead
838 2013-12-30 Nick Clifton <nickc@redhat.com>
840 * config/msp430/msp430.c (msp430_print_operand): Rename %B to %b
841 and %A to %Q. Add %A, %B, %C and %D as selectors for 16-bit parts
843 * config/msp430/msp430.md: Replace uses of %B with %b and uses of
846 2013-12-30 Felix Yang <felix.yang@huawei.com>
848 * ira-costs.c (cost_classes_hasher::equal): Check equality of
849 memcmp and 0 if no difference exists for HV1 and HV2.
851 2013-12-30 Jakub Jelinek <jakub@redhat.com>
854 * config/i386/i386.c (ix86_save_reg): Don't return true for drap_reg
855 if !crtl->stack_realign_needed.
856 (ix86_finalize_stack_realign_flags): If drap_reg isn't live on entry
857 and stack_realign_needed will be false, clear drap_reg and need_drap.
858 Optimize leaf functions that don't need stack frame even if
861 2013-12-30 H.J. Lu <hongjiu.lu@intel.com>
864 * config/i386/i386.c (ix86_expand_set_or_movmem): Create
865 jump_around_label only if it doesn't exist.
867 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
869 * doc/invoke.texi (output file options): Document -fada-spec-parent.
871 2013-12-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
872 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
873 Sergey Lega <sergey.s.lega@intel.com>
874 Anna Tikhonova <anna.tikhonova@intel.com>
875 Ilya Tocar <ilya.tocar@intel.com>
876 Andrey Turetskiy <andrey.turetskiy@intel.com>
877 Ilya Verbin <ilya.verbin@intel.com>
878 Kirill Yukhin <kirill.yukhin@intel.com>
879 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
881 * config/i386/sse.md (avx512f_fixupimm<mode>_maskz): Extend to support
883 (avx512f_sfixupimm<mode>_maskz): Ditto.
884 * config/i386/subst.md (round_saeonly_expand_name): New.
885 (round_saeonly_expand_nimm_predicate): Ditto.
886 (round_saeonly_expand_operand6): Ditto.
887 (round_saeonly_expand): Ditto.
889 2013-12-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
890 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
891 Sergey Lega <sergey.s.lega@intel.com>
892 Anna Tikhonova <anna.tikhonova@intel.com>
893 Ilya Tocar <ilya.tocar@intel.com>
894 Andrey Turetskiy <andrey.turetskiy@intel.com>
895 Ilya Verbin <ilya.verbin@intel.com>
896 Kirill Yukhin <kirill.yukhin@intel.com>
897 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
899 * config/i386/sse.md (avx512f_fmadd_<mode>_maskz): Extend to support
901 (avx512f_fmaddsub_<mode>_maskz): Ditto.
902 * config/i386/subst.md (round_expand_name): New.
903 (round_expand_nimm_predicate): Ditto.
904 (round_expand_operand): Ditto.
905 (round_expand): Ditto.
907 2013-12-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
908 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
909 Sergey Lega <sergey.s.lega@intel.com>
910 Anna Tikhonova <anna.tikhonova@intel.com>
911 Ilya Tocar <ilya.tocar@intel.com>
912 Andrey Turetskiy <andrey.turetskiy@intel.com>
913 Ilya Verbin <ilya.verbin@intel.com>
914 Kirill Yukhin <kirill.yukhin@intel.com>
915 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
917 * config/i386/sse.md (<code><mode>3<mask_name>): Extend to support
919 (*<code><mode>3_finite<mask_name>): Ditto.
920 (*<code><mode>3<mask_name>): Ditto.
921 (avx512f_cmp<mode>3<mask_scalar_merge_name>): Ditto.
922 (avx512f_vmcmp<mode>3): Ditto.
923 (avx512f_vmcmp<mode>3_mask): Ditto.
925 (<sse>_ucomi): Ditto.
926 (sse_cvttss2si): Ditto.
927 (sse_cvttss2siq): Ditto.
928 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
929 (avx512f_vcvttss2usi): Ditto.
930 (avx512f_vcvttss2usiq): Ditto.
931 (avx512f_vcvttsd2usi): Ditto.
932 (avx512f_vcvttsd2usiq): Ditto.
933 (sse2_cvttsd2si): Ditto.
934 (sse2_cvttsd2siq): Ditto.
935 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
936 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
937 (avx512f_getexp<mode><mask_name>): Ditto.
938 (avx512f_fixupimm<mode><sd_maskz_name>): Ditto.
939 (avx512f_fixupimm<mode>_mask): Ditto.
940 (avx512f_sfixupimm<mode><sd_maskz_name>): Ditto.
941 (avx512f_sfixupimm<mode>_mask): Ditto.
942 (avx512f_rndscale<mode><mask_name>): Ditto.
943 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
944 (avx512f_getmant<mode><mask_name>): Ditto.
945 * config/i386/subst.md (round_saeonly_name): New.
946 (round_saeonly_mask_operand2): Ditto.
947 (round_saeonly_mask_operand3): Ditto.
948 (round_saeonly_mask_scalar_operand3): Ditto.
949 (round_saeonly_mask_scalar_operand4): Ditto.
950 (round_saeonly_mask_scalar_merge_operand4): Ditto.
951 (round_saeonly_sd_mask_operand5): Ditto.
952 (round_saeonly_op2): Ditto.
953 (round_saeonly_op4): Ditto.
954 (round_saeonly_op5): Ditto.
955 (round_saeonly_op6): Ditto.
956 (round_saeonly_mask_op2): Ditto.
957 (round_saeonly_mask_op3): Ditto.
958 (round_saeonly_mask_scalar_op3): Ditto.
959 (round_saeonly_mask_scalar_op4): Ditto.
960 (round_saeonly_mask_scalar_merge_op4): Ditto.
961 (round_saeonly_sd_mask_op5): Ditto.
962 (round_saeonly_constraint): Ditto.
963 (round_saeonly_constraint2): Ditto.
964 (round_saeonly_nimm_predicate): Ditto.
965 (round_saeonly_mode512bit_condition): Ditto.
966 (round_saeonly): Ditto.
968 2013-12-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
969 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
970 Sergey Lega <sergey.s.lega@intel.com>
971 Anna Tikhonova <anna.tikhonova@intel.com>
972 Ilya Tocar <ilya.tocar@intel.com>
973 Andrey Turetskiy <andrey.turetskiy@intel.com>
974 Ilya Verbin <ilya.verbin@intel.com>
975 Kirill Yukhin <kirill.yukhin@intel.com>
976 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
978 * config/i386/i386.c (ix86_print_operand): Print EVEX's RC modifiers.
979 * config/i386/i386.md (define_constants): Define EVEx's RC constants.
980 * gcc/config/i386/sse.md (<plusminus_insn><mode>3<mask_name>): Extend
981 to support EVEX's rounding control.
982 (*<plusminus_insn><mode>3<mask_name>): Ditto.
983 (mul<mode>3<mask_name>): Ditto.
984 (*mul<mode>3<mask_name>): Ditto.
985 (<sse>_div<mode>3<mask_name>): Ditto.
986 (<sse>_sqrt<mode>2<mask_name>): Ditto.
987 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>): Ditto.
988 (avx512f_fmadd_<mode>_mask): Ditto.
989 (avx512f_fmadd_<mode>_mask3): Ditto.
990 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>): Ditto.
991 (avx512f_fmsub_<mode>_mask): Ditto.
992 (avx512f_fmsub_<mode>_mask3): Ditto.
993 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>): Ditto.
994 (avx512f_fnmadd_<mode>_mask): Ditto.
995 (avx512f_fnmadd_<mode>_mask3): Ditto.
996 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>): Ditto.
997 (avx512f_fnmsub_<mode>_mask): Ditto.
998 (avx512f_fnmsub_<mode>_mask3): Ditto.
999 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name>): Ditto.
1000 (avx512f_fmaddsub_<mode>_mask): Ditto.
1001 (avx512f_fmaddsub_<mode>_mask3): Ditto.
1002 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name>): Ditto.
1003 (avx512f_fmsubadd_<mode>_mask): Ditto.
1004 (avx512f_fmsubadd_<mode>_mask3): Ditto.
1005 (fmai_vmfmadd_<mode>): Ditto.
1006 (*fmai_fmadd_<mode>): Ditto.
1007 (*fmai_fmsub_<mode>): Ditto.
1008 (*fmai_fnmadd_<mode>): Ditto.
1009 (*fmai_fnmsub_<mode>): Ditto.
1010 (sse_cvtsi2ss): Ditto.
1011 (sse_cvtsi2ssq): Ditto.
1012 (sse_cvtss2si): Ditto.
1013 (sse_cvtss2siq): Ditto.
1014 (cvtusi2<ssescalarmodesuffix>32): Ditto.
1015 (cvtusi2<ssescalarmodesuffix>64): Ditto.
1016 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
1017 (ufloatv16siv16sf2<mask_name>): Ditto.
1018 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
1019 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
1020 (sse2_cvtsi2sdq): Ditto.
1021 (avx512f_vcvtss2usi): Ditto.
1022 (avx512f_vcvtss2usiq): Ditto.
1023 (avx512f_vcvtsd2usi): Ditto.
1024 (avx512f_vcvtsd2usiq): Ditto.
1025 (sse2_cvtsd2si): Ditto.
1026 (sse2_cvtsd2siq): Ditto.
1027 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
1028 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
1029 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
1030 (avx512f_scalef<mode><mask_name>): Ditto.
1031 (<code><mode>3<mask_name>): Ditto.
1032 (*avx2_<code><mode>3<mask_name>): Ditto.
1033 (avx512er_exp2<mode><mask_name): Ditto.
1034 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
1035 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
1036 (avx512f_fmadd_<mode>_maskz): New.
1037 * config/i386/subst.md (SUBST_A): New.
1038 (round_name): Ditto.
1039 (round_mask_operand2): Ditto.
1040 (round_mask_operand3): Ditto.
1041 (round_mask_scalar_operand3): Ditto.
1042 (round_sd_mask_operand4): Ditto.
1048 (round_mask_op2): Ditto.
1049 (round_mask_op3): Ditto.
1050 (round_mask_scalar_op3): Ditto.
1051 (round_sd_mask_op4): Ditto.
1052 (round_constraint): Ditto.
1053 (round_constraint2): Ditto.
1054 (round_constraint3): Ditto.
1055 (round_nimm_predicate): Ditto.
1056 (round_mode512bit_condition): Ditto.
1057 (round_modev4sf_condition): Ditto.
1058 (round_codefor): Ditto.
1059 (round_opnum): Ditto.
1062 2013-12-26 H.J. Lu <hongjiu.lu@intel.com>
1065 * config/i386/i386.c (ix86_option_override_internal): Don't
1066 check generic tuning. Don't change i686 tuning.
1068 2013-12-26 H.J. Lu <hongjiu.lu@intel.com>
1071 * config/i386/i386.c (get_builtin_code_for_version): Map
1072 PROCESSOR_NEHALEM to "corei7".
1074 2013-12-26 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1076 * config/i386/i386.c (get_builtin_code_for_version): Rename AMD
1077 CPU names M_AMD_BOBCAT to M_AMD_BTVER1 and M_AMD_JAGUAR
1079 (processor_model): Likewise.
1080 (arch_names_table): Likewise.
1082 2013-12-26 Uros Bizjak <ubizjak@gmail.com>
1084 * config/i386/driver-i386.c (decode_caches_intel): Add missing entries.
1086 2013-12-25 H.J. Lu <hongjiu.lu@intel.com>
1089 * config/i386/i386.c (struct ptt): Add a field for processor name.
1090 (processor_target_table): Sync with processor_type.
1091 Add processor names.
1092 (cpu_names): Removed.
1093 (ix86_option_override_internal): Default x_ix86_tune_string
1094 to processor_target_table[TARGET_CPU_DEFAULT].name.
1095 (ix86_function_specific_print): Assert arch and tune < PROCESSOR_max.
1096 Use processor_target_table to print arch and tune names.
1097 * config/i386/i386.h (TARGET_CPU_DEFAULT): Default to
1099 (target_cpu_default): Removed.
1100 (processor_type): Reordered.
1102 2013-12-25 Allan Sandfeld Jensen <sandfeld@kde.org>
1103 H.J. Lu <hongjiu.lu@intel.com>
1106 * config/i386/i386.c (get_builtin_code_for_version): Handle
1107 PROCESSOR_HASWELL, PROCESSOR_SILVERMONT, PROCESSOR_BTVER1,
1108 PROCESSOR_BTVER2, PROCESSOR_BDVER3 and PROCESSOR_BDVER4.
1109 Change priority of PROCESSOR_BDVER1 to P_PROC_XOP.
1110 (fold_builtin_cpu): Add "ivybridge", "haswell", "bonnell",
1111 "silvermont", "bobcat" and "jaguar" CPU names. Add "sse4a",
1112 "fma4", "xop" and "fma" ISA names.
1114 2013-12-24 H.J. Lu <hongjiu.lu@intel.com>
1116 * config/i386/i386.c (ix86_option_override_internal): Check
1117 opts->x_ix86_arch_string instead of ix86_arch_string.
1119 2013-12-24 Renlin Li <Renlin.Li@arm.com>
1121 * config/arm/arm-protos.h (vfp_const_double_for_bits): Declare.
1122 * config/arm/constraints.md (Dp): Define new constraint.
1123 * config/arm/predicates.md (const_double_vcvt_power_of_two): Define
1125 * config/arm/arm.c (arm_print_operand): Add print for new fucntion.
1126 (vfp3_const_double_for_bits): New function.
1127 * config/arm/vfp.md (combine_vcvtf2i): Define new instruction.
1129 2013-12-23 Hans-Peter Nilsson <hp@axis.com>
1132 * config/cris/cris.c (cris_pic_symbol_type_of): Fix typo,
1133 checking t1 twice instead of t1 and t2 respectively.
1136 * config/cris/predicates.md (cris_nonsp_register_operand):
1137 New define_predicate.
1138 * config/cris/cris.md: Replace register_operand with
1139 cris_nonsp_register_operand for destinations in all
1140 define_splits where a register is set more than once.
1142 2013-12-23 Jason Merrill <jason@redhat.com>
1144 * gdbinit.in (input_line, input_filename): Define.
1146 * cgraph.h (struct cgraph_node): Add calls_comdat_local.
1147 (symtab_comdat_local_p, symtab_in_same_comdat_p): New.
1148 * cif-code.def: Add USES_COMDAT_LOCAL.
1149 * symtab.c (verify_symtab_base): Make sure we don't refer to a
1150 comdat-local symbol from outside its comdat.
1151 * cgraph.c (verify_cgraph_node): Likewise.
1152 * cgraphunit.c (mark_functions_to_output): Don't mark comdat-locals.
1153 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
1154 (function_and_variable_visibility): Handle comdat-local fns.
1155 * ipa-cp.c (determine_versionability): Don't clone comdat-locals.
1156 * ipa-inline-analysis.c (compute_inline_parameters): Update
1158 * ipa-inline-transform.c (inline_call): Likewise.
1159 (save_inline_function_body): Don't clear DECL_COMDAT_GROUP.
1160 * ipa-inline.c (can_inline_edge_p): Check calls_comdat_local.
1161 * lto-cgraph.c (input_overwrite_node): Read calls_comdat_local.
1162 (lto_output_node): Write it.
1163 * symtab.c (symtab_dissolve_same_comdat_group_list): Clear
1164 DECL_COMDAT_GROUP for comdat-locals.
1166 2013-12-23 H.J. Lu <hongjiu.lu@intel.com>
1168 * config/i386/i386.c (processor_target_table): Move Bonnell and
1169 Silvermont entries before generic.
1171 2013-12-23 Bingfeng Mei <bmei@broadcom.com>
1174 * tree-vect-stmts.c (vectorizable_store): Skip permutation for
1175 consant/external operand, and add a few missing \n.
1177 2013-12-23 H.J. Lu <hongjiu.lu@intel.com>
1178 Tocar Ilya <ilya.tocar@intel.com>
1180 * config/i386/core2.md: Replace corei7 with nehalem.
1182 * config/i386/driver-i386.c (host_detect_local_cpu): Use nehalem,
1183 westmere, sandybridge, ivybridge, haswell, bonnell, silvermont
1186 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
1187 PROCESSOR_COREI7, PROCESSOR_COREI7_AVX, PROCESSOR_ATOM,
1188 PROCESSOR_SLM with PROCESSOR_NEHALEM, PROCESSOR_SANDYBRIDGE,
1189 PROCESSOR_BONNELL, PROCESSOR_SILVERMONT. Define
1190 __nehalem/__nehalem__, __sandybridge/__sandybridge__,
1191 __haswell/__haswell__, __tune_nehalem__, __tune_sandybridge__,
1192 __tune_haswell__, __bonnell/__bonnell__,
1193 __silvermont/__silvermont__, __tune_bonnell__,
1194 __tune_silvermont__.
1196 * config/i386/i386.c (m_COREI7): Renamed to ...
1198 (m_COREI7_AVX): Renamed to ...
1199 (m_SANDYBRIDGE): This.
1200 (m_ATOM): Renamed to ...
1202 (m_SLM): Renamed to ...
1203 (m_SILVERMONT): This.
1204 (m_CORE_ALL): Updated.
1205 (cpu_names): Add "nehalem", "westmere", "sandybridge",
1206 "ivybridge", "haswell", "broadwell", "bonnell", "silvermont".
1208 (PTA_NEHALEM): Likewise.
1209 (PTA_WESTMERE): Likewise.
1210 (PTA_SANDYBRIDGE): Likewise.
1211 (PTA_IVYBRIDGE): Likewise.
1212 (PTA_HASWELL): Likewise.
1213 (PTA_BROADWELL): Likewise.
1214 (PTA_BONNELL): Likewise.
1215 (PTA_SILVERMONT): Likewise.
1216 (ix86_option_override_internal): Use new PTA_XXX. Add nehalem,
1217 westmere, sandybridge, ivybridge, haswell, bonnell, silvermont.
1218 (ix86_lea_outperforms): Updated.
1219 (ix86_issue_rate): Likewise.
1220 (ix86_adjust_cost): Likewise.
1221 (ia32_multipass_dfa_lookahead): Likewise.
1222 (do_reorder_for_imul): Likewise.
1223 (swap_top_of_ready_list): Likewise.
1224 (ix86_sched_reorder): Likewise.
1225 (ix86_sched_init_global): Likewise.
1226 (get_builtin_code_for_version): Likewise.
1227 (processor_model): Replace M_INTEL_ATOM, M_INTEL_SLM with
1228 M_INTEL_BONNELL, M_INTEL_SILVERMONT.
1229 (arch_names_table): Updated.
1231 * config/i386/i386.h (TARGET_COREI7): Removed.
1232 (TARGET_COREI7_AVX): Likewise.
1233 (TARGET_ATOM): Likewise.
1234 (TARGET_SLM): Likewise.
1235 (TARGET_NEHALEM): New.
1236 (TARGET_SANDYBRIDGE): Likewise.
1237 (TARGET_BONNELL): Likewise.
1238 (TARGET_SILVERMONT): Likewise.
1239 (target_cpu_default): Add TARGET_CPU_DEFAULT_core_avx2,
1240 TARGET_CPU_DEFAULT_nehalem, TARGET_CPU_DEFAULT_westmere,
1241 TARGET_CPU_DEFAULT_sandybridge, TARGET_CPU_DEFAULT_ivybridge,
1242 TARGET_CPU_DEFAULT_broadwell, TARGET_CPU_DEFAULT_bonnell,
1243 TARGET_CPU_DEFAULT_silvermont. Move TARGET_CPU_DEFAULT_haswell
1244 before TARGET_CPU_DEFAULT_broadwell.
1245 (processor_type): Replace PROCESSOR_COREI7, PROCESSOR_COREI7_AVX,
1246 PROCESSOR_ATOM, PROCESSOR_SLM with PROCESSOR_NEHALEM,
1247 PROCESSOR_SANDYBRIDGE, PROCESSOR_BONNELL, PROCESSOR_SILVERMONT.
1249 * config/i386/i386.md (cpu): Replace corei7 with nehalem.
1251 * config/i386/x86-tune.def: Updated.
1253 * doc/invoke.texi: Replace corei7, corei7-avx, core-avx-i,
1254 core-avx2, atom, slm with nehalem, sandybridge, ivybridge,
1255 haswell, bonnel, silvermont. Add westmere.
1257 2013-12-23 Andrey Belevantsev <abel@ispras.ru>
1259 PR rtl-optimization/57422
1260 * sel-sched.c (fill_vec_av_set): Assert that the fence insn
1261 can always be scheduled in its current form.
1263 2013-12-23 Andrey Belevantsev <abel@ispras.ru>
1265 PR rtl-optimization/57422
1266 * sel-sched.c (mark_unavailable_hard_regs): Fix typo when calling
1267 add_to_hard_reg_set.
1269 2013-12-20 Sharad Singhai <singhai@google.com>
1271 * Makefile.in: Add optinfo.texi.
1272 * doc/invoke.texi: Fix typo.
1273 * doc/optinfo.texi: New documentation for optimization info.
1274 * doc/passes.texi: Add new node.
1276 2013-12-20 Trevor saunders <tsaunders@mozilla.com>
1278 * vec.h (stack_vec): Convert to a templaate specialization of
1280 * config/i386/i386.c, df-scan.c, function.c, genautomata.c,
1281 gimplify.c, graphite-clast-to-gimple.c, graphite-dependences.c,
1282 graphite-scop-detection.c, graphite-sese-to-poly.c, hw-doloop.c,
1283 trans-mem.c, tree-call-cdce.c, tree-data-ref.c, tree-dfa.c,
1284 tree-if-conv.c, tree-inline.c, tree-loop-distribution.c,
1285 tree-parloops.c, tree-predcom.c, tree-ssa-alias.c,
1286 tree-ssa-loop-ivcanon.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
1287 tree-ssa-uncprop.c, tree-vect-loop.c, tree-vect-patterns.c,
1288 tree-vect-slp.c, tree-vect-stmts.c, var-tracking.c: Adjust.
1290 2013-12-20 Eric Botcazou <ebotcazou@adacore.com>
1292 * config/arm/arm.c (arm_expand_prologue): In a nested APCS frame with
1293 arguments to push onto the stack and no varargs, save ip into the last
1294 stack slot if r3 isn't available on entry.
1296 2013-12-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1298 * config/arm/neon.ml (crypto_intrinsics): Add vceq_64 and vtst_p64.
1299 * config/arm/arm_neon.h: Regenerate.
1300 * config/arm/neon-docgen.ml: Add vceq_p64 and vtst_p64.
1301 * doc/arm-neon-intrinsics.texi: Regenerate.
1303 2013-12-20 Vladimir Makarov <vmakarov@redhat.com>
1305 * config/arm/arm.h (THUMB_SECONDARY_OUTPUT_RELOAD_CLASS): Return
1308 2013-12-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1310 * config/arm/arm_acle.h: Add underscores before variables.
1312 2013-12-20 Bingfeng Mei <bmei@broadcom.com>
1314 PR tree-optimization/59544
1315 * tree-vect-stmts.c (perm_mask_for_reverse): Move before
1317 (vectorizable_store): Handle negative step.
1319 2013-12-20 Tocar Ilya <ilya.tocar@intel.com>
1321 * config.gcc: Support march=broadwell.
1322 * config/i386/driver-i386.c (host_detect_local_cpu): Detect Broadwell.
1323 * config/i386/i386.c (ix86_option_override_internal): Add broadwell.
1324 * doc/invoke.texi: Document march=broadwell.
1326 2013-12-20 Jakub Jelinek <jakub@redhat.com>
1328 * ubsan.c: Include tree-ssanames.h, asan.h and gimplify-me.h.
1329 (ubsan_type_descriptor): Handle BOOLEAN_TYPE and ENUMERAL_TYPE
1331 (instrument_bool_enum_load): New function.
1332 (ubsan_pass): Call it.
1333 (gate_ubsan): Also enable for SANITIZE_BOOL or SANITIZE_ENUM.
1334 * asan.c (create_cond_insert_point): No longer static.
1335 * asan.h (create_cond_insert_point): Declare.
1336 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE): New
1338 * opts.c (common_handle_option): Handle -fsanitize=bool and
1340 * builtins.c (fold_builtin_memory_op): When sanitizing bool
1341 and enum loads, don't use enum or bool types for memcpy folding.
1342 * flag-types.h (SANITIZE_BOOL, SANITIZE_ENUM): New.
1343 (SANITIZE_UNDEFINED): Or these in.
1345 2013-12-20 Chung-Ju Wu <jasonwucj@gmail.com>
1347 * config/nds32/nds32.h (NDS32_MODE_TYPE_ALIGN): New macro.
1348 (NDS32_AVAILABLE_REGNUM_FOR_ARG): Use more accurate alignment checking
1349 to determine available register number.
1350 * config/nds32/nds32.c (nds32_needs_double_word_align): Use new
1351 macro NDS32_MODE_TYPE_ALIGN.
1352 (nds32_function_arg): Refine code layout.
1354 2013-12-19 Jeff Law <law@redhat.com>
1356 * doc/invoke.texi: (dump-rtl-ree): Fix typo and clarify ree
1357 handles both zero and sign extension.
1359 2013-12-19 Teresa Johnson <tejohnson@google.com>
1361 PR gcov-profile/59542
1362 * bb-reorder.c (duplicate_computed_gotos): Invoke fixup_partitions
1363 if we have made any changes.
1365 2013-12-19 Jakub Jelinek <jakub@redhat.com>
1368 * genattrtab.c (struct attr_hash): Change hashcode type to unsigned.
1369 (attr_hash_add_rtx, attr_hash_add_string): Change hashcode parameter
1371 (attr_rtx_1): Change hashcode variable to unsigned.
1372 (attr_string): Likewise. Perform first multiplication in
1374 * ifcvt.c (noce_try_store_flag_constants): Avoid signed integer
1376 * double-int.c (neg_double): Likewise.
1377 * stor-layout.c (set_min_and_max_values_for_integral_type): Likewise.
1378 * combine.c (force_to_mode): Likewise.
1379 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn,
1380 reload_cse_move2add, move2add_note_store): Likewise.
1381 * simplify-rtx.c (simplify_const_unary_operation,
1382 simplify_const_binary_operation): Likewise.
1383 * ipa-split.c (find_split_points): Initialize first.can_split
1384 and first.non_ssa_vars.
1385 * gengtype-state.c (read_state_files_list): Fix up check.
1386 * genautomata.c (reserv_sets_hash_value): Use portable rotation idiom.
1388 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1390 * config/arm/neon-docgen.ml: Add crypto intrinsics documentation.
1391 * doc/arm-neon-intrinsics.texi: Regenerate.
1393 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1395 * config/arm/neon-testgen.ml (effective_target): Handle "CRYPTO".
1397 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1399 * config/arm/arm.c (enum arm_builtins): Add crypto builtins.
1400 (arm_init_neon_builtins): Handle crypto builtins.
1401 (bdesc_2arg): Likewise.
1402 (bdesc_1arg): Likewise.
1403 (bdesc_3arg): New table.
1404 (arm_expand_ternop_builtin): New function.
1405 (arm_expand_unop_builtin): Handle sha1h explicitly.
1406 (arm_expand_builtin): Handle ternary builtins.
1407 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS):
1408 Define __ARM_FEATURE_CRYPTO.
1409 * config/arm/arm.md: Include crypto.md.
1410 (is_neon_type): Add crypto types.
1411 * config/arm/arm_neon_builtins.def: Add TImode reinterprets.
1412 * config/arm/crypto.def: New.
1413 * config/arm/crypto.md: Likewise.
1414 * config/arm/iterators.md (CRYPTO_UNARY): New int iterator.
1415 (CRYPTO_BINARY): Likewise.
1416 (CRYPTO_TERNARY): Likewise.
1417 (CRYPTO_SELECTING): Likewise.
1418 (crypto_pattern): New int attribute.
1419 (crypto_size_sfx): Likewise.
1420 (crypto_mode): Likewise.
1421 (crypto_type): Likewise.
1422 * config/arm/neon-gen.ml: Handle poly64_t and poly128_t types.
1423 Handle crypto intrinsics.
1424 * config/arm/neon.ml: Add support for poly64 and polt128 types
1425 and intrinsics. Define crypto intrinsics.
1426 * config/arm/neon.md (neon_vreinterpretti<mode>): New pattern.
1427 (neon_vreinterpretv16qi<mode>): Use VQXMOV mode iterator.
1428 (neon_vreinterpretv8hi<mode>): Likewise.
1429 (neon_vreinterpretv4si<mode>): Likewise.
1430 (neon_vreinterpretv4sf<mode>): Likewise.
1431 (neon_vreinterpretv2di<mode>): Likewise.
1432 * config/arm/unspecs.md (UNSPEC_AESD, UNSPEC_AESE, UNSPEC_AESIMC)
1433 (UNSPEC_AESMC, UNSPEC_SHA1C, UNSPEC_SHA1M, UNSPEC_SHA1P, UNSPEC_SHA1H)
1434 (UNSPEC_SHA1SU0, UNSPEC_SHA1SU1, UNSPEC_SHA256H, UNSPEC_SHA256H2)
1435 (UNSPEC_SHA256SU0, UNSPEC_SHA256SU1, VMULLP64): Define.
1436 * config/arm/arm_neon.h: Regenerate.
1438 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
1441 * collect2.c (main): Check -fuse-ld=[bfd|gold] when
1442 DEFAULT_LINKER is defined.
1443 * common.opt (fuse-ld=bfd): Add Driver.
1444 (fuse-ld=gold): Likewise.
1445 * gcc.c (use_ld): New variable.
1446 (driver_handle_option): Set use_ld for OPT_fuse_ld_bfd and
1448 (main): Check -fuse-ld=[bfd|gold] for -print-prog-name=ld.
1450 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1452 * Makefile.in (TEXI_GCC_FILES): Add arm-acle-intrinsics.texi.
1453 * config.gcc (extra_headers): Add arm_acle.h.
1454 * config/arm/arm.c (FL_CRC32): Define.
1455 (arm_have_crc): Likewise.
1456 (arm_option_override): Set arm_have_crc.
1457 (arm_builtins): Add CRC32 builtins.
1458 (bdesc_2arg): Likewise.
1459 (arm_init_crc32_builtins): New function.
1460 (arm_init_builtins): Initialise CRC32 builtins.
1461 (arm_file_start): Handle architecture extensions.
1462 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
1463 __ARM_FEATURE_CRC32. Define __ARM_32BIT_STATE.
1464 (TARGET_CRC32): Define.
1465 * config/arm/arm-arches.def: Add armv8-a+crc.
1466 * config/arm/arm-tables.opt: Regenerate.
1467 * config/arm/arm.md (type): Add crc.
1468 (<crc_variant>): New insn.
1469 * config/arm/arm_acle.h: New file.
1470 * config/arm/iterators.md (CRC): New int iterator.
1471 (crc_variant, crc_mode): New int attributes.
1472 * confg/arm/unspecs.md (UNSPEC_CRC32B, UNSPEC_CRC32H, UNSPEC_CRC32W,
1473 UNSPEC_CRC32CB, UNSPEC_CRC32CH, UNSPEC_CRC32CW): New unspecs.
1474 * doc/invoke.texi: Document -march=armv8-a+crc option.
1475 * doc/extend.texi: Document ACLE intrinsics.
1477 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
1480 * config/arm/arm-ldmstm.ml: Use low_register_operand for Thumb
1482 * config/arm/ldmstm.md: Regenerate.
1484 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
1487 * config/arm/predicates.md (arm_hard_general_register_operand):
1489 (arm_hard_register_operand): Remove.
1490 * config/arm/arm-ldmstm.ml: Use arm_hard_general_register_operand
1492 * config/arm/ldmstm.md: Regenerate.
1494 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
1497 * config/arm/predicates.md (vfp_hard_register_operand): New predicate.
1498 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use
1499 vfp_hard_register_operand.
1501 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
1503 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
1504 Define builtin types for poly64_t poly128_t.
1505 (TYPES_BINOPP, aarch64_types_binopp_qualifiers): New.
1506 * aarch64/aarch64-simd-builtins.def: Update builtins table.
1507 * config/aarch64/aarch64-simd.md (aarch64_crypto_pmulldi,
1508 aarch64_crypto_pmullv2di): New.
1509 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Update table for
1511 * config/aarch64/arm_neon.h (poly64x2_t, poly64_t, poly128_t): Define.
1512 (vmull_p64, vmull_high_p64): New.
1513 * config/aarch64/iterators.md (UNSPEC_PMULL<2>): New.
1515 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
1517 * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
1518 * config/aarch64/aarch64-simd.md
1519 (aarch64_crypto_sha256h<sha256_op>v4si, aarch64_crypto_sha256su0v4si,
1520 aarch64_crypto_sha256su1v4si): New.
1521 * config/aarch64/arm_neon.h (vsha256hq_u32, vsha256h2q_u32,
1522 vsha256su0q_u32, vsha256su1q_u32): New.
1523 * config/aarch64/iterators.md (UNSPEC_SHA256H<2>, UNSPEC_SHA256SU<01>):
1525 (CRYPTO_SHA256): New int iterator.
1526 (sha256_op): New int attribute.
1528 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
1530 * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
1531 * config/aarch64/aarch64-builtins.c (aarch64_types_ternopu_qualifiers,
1532 TYPES_TERNOPU): New.
1533 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hsi,
1534 aarch64_crypto_sha1su1v4si, aarch64_crypto_sha1<sha1_op>v4si,
1535 aarch64_crypto_sha1su0v4si): New.
1536 * config/aarch64/arm_neon.h (vsha1cq_u32, sha1mq_u32, vsha1pq_u32,
1537 vsha1h_u32, vsha1su0q_u32, vsha1su1q_u32): New.
1538 * config/aarch64/iterators.md (UNSPEC_SHA1<CPMH>, UNSPEC_SHA1SU<01>):
1540 (CRYPTO_SHA1): New int iterator.
1541 (sha1_op): New int attribute.
1543 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
1545 * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
1546 * config/aarch64/aarch64-builtins.c (aarch64_types_binopu_qualifiers,
1548 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi,
1549 aarch64_crypto_aes<aesmc_op>v16qi): New.
1550 * config/aarch64/arm_neon.h (vaeseq_u8, vaesdq_u8, vaesmcq_u8,
1552 * config/aarch64/iterators.md (UNSPEC_AESE, UNSPEC_AESD, UNSPEC_AESMC,
1553 UNSPEC_AESIMC): New.
1554 (CRYPTO_AES, CRYPTO_AESMC): New int iterators.
1555 (aes_op, aesmc_op): New int attributes.
1557 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
1559 * config/arm/types.md (neon_mul_d_long, crypto_aes, crypto_sha1_xor,
1560 crypto_sha1_fast, crypto_sha1_slow, crypto_sha256_fast,
1561 crypto_sha256_slow): New.
1563 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
1565 * config/aarch64/aarch64.h (TARGET_CRYPTO): New.
1566 (__ARM_FEATURE_CRYPTO): Define if TARGET_CRYPTO is true.
1568 2013-12-19 Dominik Vogt <vogt@linux.vnet.ibm.com>
1569 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1571 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default): New
1573 (s390_hotpatch_trampoline_halfwords_max): New constant.
1574 (s390_hotpatch_trampoline_halfwords): New static variable.
1575 (get_hotpatch_attribute): New function.
1576 (s390_handle_hotpatch_attribute): New function.
1577 (s390_attribute_table): New target specific attribute table to
1578 implement the hotpatch attribute.
1579 (s390_option_override): Parse hotpatch options.
1580 (s390_function_num_hotpatch_trampoline_halfwords): New function.
1581 (s390_can_inline_p): Implement target hook to
1582 suppress hotpatching for explicitly inlined functions.
1583 (s390_asm_output_function_label): Generate hotpatch prologue.
1584 (TARGET_ATTRIBUTE_TABLE): Define to implement target attribute table.
1585 (TARGET_CAN_INLINE_P): Define to implement target hook.
1586 * config/s390/s390.opt (mhotpatch): New options -mhotpatch,
1588 * config/s390/s390-protos.h (s390_asm_output_function_label): Add
1590 * config/s390/s390.h (ASM_OUTPUT_FUNCTION_LABEL): Target specific
1591 function label generation for hotpatching.
1592 (FUNCTION_BOUNDARY): Align functions to eight bytes.
1593 * doc/extend.texi: Document hotpatch attribute.
1594 * doc/invoke.texi: Document -mhotpatch option.
1596 2013-12-19 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1598 * config/i386/i386.c: Include cfgloop.h.
1599 (ix86_loop_memcount): New function.
1600 (ix86_loop_unroll_adjust): New function.
1601 (TARGET_LOOP_UNROLL_ADJUST): Define.
1602 * config/i386/i386.h
1603 (TARGET_ADJUST_UNROLL): Define.
1604 * config/i386/x86-tune.def
1605 (X86_TUNE_ADJUST_UNROLL): Define.
1607 2013-12-19 Marek Polacek <polacek@redhat.com>
1609 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Remove
1610 variable alg. Use index variable i directly.
1612 2013-12-19 Eric Botcazou <ebotcazou@adacore.com>
1614 * print-tree.c (print_node) <case tcc_type>: Print no_force_blk_flag
1617 2013-12-19 Monk Chiang <sh.chiang04@gmail.com>
1619 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
1620 Consider TARGET_CPU_DEFAULT settings.
1622 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
1624 * config/aarch64/aarch64-cores.def: Add support for
1625 -mcpu=cortex-a57.cortex-a53.
1626 * config/aarch64/aarch64-tune.md: Regenerate.
1627 * doc/invoke.texi: Document -mcpu=cortex-a57.cortex-a53.
1629 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
1631 * config/aarch64/aarch64-cores.def: Add new column for SCHEDULER_IDENT.
1632 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Handle SCHEDULER_IDENT.
1633 * config/aarch64/aarch64.c (AARCH64_CORE): Handle SCHEDULER_IDENT.
1634 (aarch64_parse_cpu): mcpu implies a default value for mtune.
1635 * config/aarch64/aarch64.h (AARCH64_CORE): Handle SCHEDULER_IDENT.
1637 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
1639 * common/config/aarch64/aarch64-common.c
1640 (aarch64_rewrite_selected_cpu): New.
1641 (aarch64_rewrite_mcpu): New.
1642 * config/aarch64/aarch64-protos.h
1643 (aarch64_rewrite_selected_cpu): New.
1644 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): New.
1645 (BIG_LITTLE_SPEC_FUNCTIONS): Likewise.
1646 (ASM_CPU_SPEC): Likewise.
1647 (EXTRA_SPEC_FUNCTIONS): Likewise.
1648 (EXTRA_SPECS): Likewise.
1649 (ASM_SPEC): Likewise.
1650 * config/aarch64/aarch64.c (aarch64_start_file): Rewrite target
1653 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
1655 * omp-low.c (simd_clone_clauses_extract): Replaced the string
1656 "cilk simd elemental" with "cilk simd function."
1657 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
1658 Removed a carriage-return from a warning string.
1660 2013-12-18 Aldy Hernandez <aldyh@redhat.com>
1662 * passes.c (execute_function_dump): Set graph_dump_initialized
1664 (pass_init_dump_file): Similarly.
1665 (execute_one_pass): Pass new argument to do_per_function.
1666 * tree-pass.h (class opt_pass): New field graph_dump_initialized.
1668 2013-12-18 Aldy Hernandez <aldyh@redhat.com>
1670 * doc/tree-ssa.texi (SSA Operands): Remove reference to
1672 Synchronize SSA_OP* definitions with source.
1673 * ssa-iterators.h: Fix comment for FOR_EACH_IMM_USE_STMT.
1674 Add not to SSA_OP* macro definitions.
1676 2013-12-18 Jakub Jelinek <jakub@redhat.com>
1679 * config/i386/sse.md
1680 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
1681 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): New expanders,
1682 prefix existing define_insn names with *.
1684 2013-12-18 Eric Botcazou <ebotcazou@adacore.com>
1686 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Fix thinko.
1688 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
1689 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1691 * config/arm/t-aprofile: Add cortex-a15.cortex-a7, cortex-a12,
1692 cortex-a57, cortex-a57.cortex-a53.
1694 2013-12-18 Eric Botcazou <ebotcazou@adacore.com>
1697 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_offset): Fix comment and tidy.
1698 (dwarf2out_frame_debug_cfa_restore): Handle TARGET_DWARF_REGISTER_SPAN.
1699 (dwarf2out_frame_debug_expr): Tidy.
1701 2013-12-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1702 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1703 Sergey Lega <sergey.s.lega@intel.com>
1704 Anna Tikhonova <anna.tikhonova@intel.com>
1705 Ilya Tocar <ilya.tocar@intel.com>
1706 Andrey Turetskiy <andrey.turetskiy@intel.com>
1707 Ilya Verbin <ilya.verbin@intel.com>
1708 Kirill Yukhin <kirill.yukhin@intel.com>
1709 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1711 * config/i386/sse.md (*fma_fmadd_<mode>): Extend to support masking.
1712 (*fma_fmsub_<mode>): Ditto.
1713 (*fma_fnmadd_<mode>): Ditto.
1714 (*fma_fnmsub_<mode>): Ditto.
1715 (*fma_fmaddsub_<mode>): Ditto.
1716 (*fma_fmsubadd_<mode>): Ditto.
1717 (avx512f_vternlog<mode>): Ditto.
1718 (avx512f_fixupimm<mode>): Ditto.
1719 (avx512f_sfixupimm<mode>): Ditto.
1720 (avx512f_vpermi2var<mode>3): Ditto.
1721 (avx512f_vpermt2var<mode>3): Ditto.
1722 (avx512f_fmaddsub_<mode>_maskz): New.
1723 (avx512f_vternlog<mode>_maskz): Ditto.
1724 (avx512f_fixupimm<mode>_maskz): Ditto.
1725 (avx512f_sfixupimm<mode>_maskz): Ditto.
1726 (avx512f_vpermi2var<mode>3_maskz): Ditto.
1727 (avx512f_vpermt2var<mode>3_maskz): Ditto.
1728 (avx512f_expand<mode>_maskz): Ditto.
1729 * config/i386/subst.md (sd_maskz_name): Ditto.
1730 (sd_mask_op4): Ditto.
1731 (sd_mask_op5): Ditto.
1732 (sd_mask_codefor): Ditto.
1733 (sd_mask_mode512bit_condition): Ditto.
1736 2013-12-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1737 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1738 Sergey Lega <sergey.s.lega@intel.com>
1739 Anna Tikhonova <anna.tikhonova@intel.com>
1740 Ilya Tocar <ilya.tocar@intel.com>
1741 Andrey Turetskiy <andrey.turetskiy@intel.com>
1742 Ilya Verbin <ilya.verbin@intel.com>
1743 Kirill Yukhin <kirill.yukhin@intel.com>
1744 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1746 * config/i386/sse.md (avx512f_cmp<mode>3): Extend to support masking.
1747 (avx512f_ucmp<mode>3): Ditto.
1748 (avx512f_eq<mode>3): Ditto.
1749 (avx512f_gt<mode>3): Ditto.
1750 (avx512f_testm<mode>3): Ditto.
1751 (avx512f_testnm<mode>3): Ditto.
1752 * config/i386/subst.md (SUBST_S): New.
1753 (mask_scalar_merge_name): Ditto.
1754 (mask_scalar_merge_operand3): Ditto.
1755 (mask_scalar_merge_operand4): Ditto.
1756 (mask_scalar_merge): Ditto.
1758 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
1761 * gimple-fold.c (fold_gimple_assign): Attempt to devirtualize
1763 (gimple_fold_stmt_to_constant_1): Bypass OBJ_TYPE_REF wrappers.
1765 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
1768 * tree-vrp.c (extract_range_from_unary_expr_1): Handle OBJ_TYPE_REF.
1770 2013-12-17 Teresa Johnson <tejohnson@google.com>
1772 PR gcov-profile/59527
1773 * cfgrtl.c (fixup_reorder_chain): Handle a region-crossing
1774 branch, which can't be eliminated.
1776 2013-12-18 Martin Liska <marxin.liska@gmail.com>
1777 Jan Hubicka <jh@suse.cz>
1779 * cgraphunit.c (node_cmp): New function.
1780 (expand_all_functions): Function ordering added.
1781 * common.opt: New profile based function reordering flag introduced.
1782 * lto-partition.c: Support for time profile added.
1784 * predict.c (handle_missing_profiles): Time profile handled in
1787 2013-12-17 Jakub Jelinek <jakub@redhat.com>
1789 PR tree-optimization/59523
1790 * tree-vectorizer.c (fold_loop_vectorized_call): Call update_stmt
1793 2013-12-17 Aldy Hernandez <aldyh@redhat.com>
1795 * ipa-inline.c (gate_ipa_inline): Remove.
1796 (const pass_data pass_data_ipa_inline): Unset has_gate.
1797 (class pass_ipa_inline): Remove gate() method.
1799 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
1801 * ipa-devirt.c (get_polymorphic_call_info): Fix offset calculatoin
1802 in contains_type_p query.
1804 2013-12-17 Thomas Schwinge <thomas@codesourcery.com>
1806 * omp-low.c (tmp_ompfn_id_num): Remove leftover variable definition.
1808 * tree-pass.h (make_pass_expand_omp_ssa): Remove leftover function
1811 * omp-low.c: Remove leftover comment.
1813 * omp-low.c (check_combined_parallel): Reflect reality in comment.
1815 * doc/cfg.texi (Control Flow): Refer to passes.def instead of passes.c.
1816 * doc/passes.texi (Pass manager): Refer to passes.def.
1818 * doc/gccint.texi (Top): Fix inclusion order.
1820 2013-12-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1822 * config/arm/arm-cores.def (cortex-a12): Use cortexa15 scheduling.
1823 * config/arm/arm.c (arm_issue_rate): Handle cortexa12.
1824 * config/arm/arm.md (generic_vfp): Remove cortexa12.
1826 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
1828 * config/arm/arm-cores.def (cortex-a57.cortex-a53): New.
1829 * doc/invoke.texi: Document -mcpu=cortex-a57.cortex-a53.
1830 * config/arm/arm-tables.opt: Regenerate.
1831 * config/arm/arm-tune.md: Regenerate.
1832 * config/arm/bpabi.h
1833 (BE8_LINK_SPEC): Handle -mcpu=cortex-a57.cortex-a53.
1835 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
1837 * config/arm/arm-cores.def (cortex-a57): New.
1838 * doc/invoke.texi: Document -mcpu=cortex-a57.
1839 * config/arm/arm-tables.opt: Regenerate.
1840 * config/arm/arm-tune.md: Regenerate.
1841 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle -mcpu=cortex-a57.
1843 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
1845 * config/arm/arm-cores.def (cortex-a15.cortex-a7): New.
1846 * doc/invoke.texi: Document -mcpu=cortex-a15.cortex-a7.
1847 * config/arm/arm-tables.opt: Regenerate.
1848 * config/arm/arm-tune.md: Regenerate.
1849 * config/arm/bpabi.h
1850 (BE8_LINK_SPEC): Handle -mcpu=cortex-a5.cortex-a7.
1852 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
1854 * config/arm/arm-cores.def: Add new column for TUNE_IDENT.
1855 * config/arm/genopt.sh: Improve layout.
1856 * config/arm/arm-tune.md: Regenerate.
1857 * config/arm/arm-tables.opt: Regenerate.
1858 * config/arm/arm-opts.h (ARM_CORE): Modify macro for TUNE_IDENT.
1859 * config/arm/arm.c (ARM_CORE): Modify macro for TUNE_IDENT.
1860 (arm_option_override): When a CPU is chosen, that should also
1861 form the tune target.
1862 * config/arm/arm.h (ARM_CORE): Modify macro for TUNE_IDENT.
1864 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
1866 * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): New.
1867 (arm_rewrite_mcpu): Likewise.
1868 * config/arm/arm-protos.h (arm_rewrite_selected_cpu): New.
1869 * config/arm/arm.h (BIG_LITTLE_SPEC): New.
1870 (BIG_LITTLE_SPEC_FUNCTIONS): Likewise.
1871 (EXTRA_SPEC_FUNCTIONS): Include BIG_LITTLE_SPEC_FUNCTIONS.
1872 (ASM_CPU_SPEC): Include BIG_LITTLE_SPEC.
1873 * config/arm/arm.c (arm_file_start): Rewrite arm_selecetd_cpu values.
1875 2013-12-17 Eric Botcazou <ebotcazou@adacore.com>
1877 * expmed.c (lowpart_bit_field_p): Fix comment.
1878 (store_bit_field_using_insv): Fix formatting.
1879 (store_bit_field): Likewise.
1880 (store_fixed_bit_field): More declaration and remove return.
1881 (store_fixed_bit_field_1): Fix formatting.
1882 (extract_fixed_bit_field): Move declaration.
1883 (extract_fixed_bit_field_1): Simplify.
1885 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
1887 * ipa-utils.h (possible_polymorphic_call_targets): Determine
1888 context of the call.
1889 * gimple-fold.c (gimple_fold_call): Use ipa-devirt to devirtualize.
1891 2013-12-17 Jakub Jelinek <jakub@redhat.com>
1893 * expr.c (convert_modes): For SUBREG_PROMOTED_VAR_P use SUBREG_REG (x)
1894 instead of x as last gen_lowpart argument.
1896 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1898 * predict.h (PROB_LIKELY): Fix the value.
1899 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Add support
1900 for overflow checking for modes without 2xwider supported mode,
1901 if the mode has 2xnarrower mode.
1903 * internal-fn.c: Include stringpool.h and tree-ssanames.h.
1904 (ubsan_expand_si_overflow_addsub_check): In the generic expansion,
1905 try to improve generated code if one of the arguments is constant
1906 or get_range_info says that one of the argument is always
1907 negative or always non-negative.
1908 * tree-vrp.c (simplify_internal_call_using_ranges): New function.
1909 (simplify_stmt_using_ranges): Call it.
1911 2013-12-16 Vladimir Makarov <vmakarov@redhat.com>
1913 PR rtl-optimization/59466
1914 * emit-rtl.c (change_address_1): Don't validate address for LRA.
1915 * recog.c (general_operand): Accept any memory for LRA.
1916 * lra.c (lra_set_insn_recog_data): Add an assert.
1918 2013-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1920 * config/arm/driver-arm.c (arm_cpu_table): Add cortex-a12 entry.
1922 2013-12-14 Jan Hubicka <jh@suse.cz>
1923 Markus Trippelsdorf <octoploid@yandex.com>
1926 * ipa-profile.c (ipa_profile_generate_summary): Do not ICE when
1927 call is already devirtualized.
1929 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1931 * Makefile.in (version.o): Restore dependencies on
1932 $(REVISION), $(DATESTAMP), $(BASEVER) and $(DEVPHASE).
1934 2013-12-14 Jan Hubicka <jh@suse.cz>
1937 * ipa-devirt.c (get_class_context): Do not ICE when type is found
1940 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1943 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_REDUCTION>: For
1944 reductions without placeholder if is_simd, but when not using
1945 GOMP_SIMD* internal calls, also perform the reduction operation
1946 on the outer var rather than simple assignment.
1948 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1952 * gimple-walk.h (walk_stmt_load_store_addr_fn): New typedef.
1953 (walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Use it
1954 for callback params.
1955 * gimple-walk.c (walk_stmt_load_store_ops): Likewise.
1956 (walk_stmt_load_store_addr_ops): Likewise. Adjust all callback
1957 calls to supply the gimple operand containing the base tree
1958 as an extra argument.
1959 * tree-ssa-ter.c: Include gimple-walk.h.
1960 (find_ssaname, find_ssaname_in_store): New helper functions.
1961 (find_replaceable_in_bb): For calls or GIMPLE_ASM, only set
1962 same_root_var if USE is used somewhere in the stores of the stmt.
1963 * ipa-prop.c (visit_ref_for_mod_analysis): Remove name of the stmt
1964 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
1965 * ipa-pure-const.c (check_load, check_store, check_ipa_load,
1966 check_ipa_store): Likewise.
1967 * gimple.c (gimple_ior_addresses_taken_1, check_loadstore): Likewise.
1968 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Likewise.
1969 (verify_non_ssa_vars, visit_bb): Adjust their callers.
1970 * cfgexpand.c (add_scope_conflicts_1): Use
1971 walk_stmt_load_store_addr_fn type for visit variable.
1972 (visit_op, visit_conflict): Remove name of the stmt
1973 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
1974 * tree-sra.c (asm_visit_addr): Likewise. Remove name of the data
1975 argument and ATTRIBUTE_UNUSED.
1976 * cgraphbuild.c (mark_address, mark_load, mark_store): Add another
1977 unnamed tree argument.
1978 * gimple-ssa-isolate-paths.c (check_loadstore): Likewise. Remove
1979 ATTRIBUTE_UNUSED from stmt parameter.
1981 2013-12-16 Chung-Lin Tang <cltang@codesourcery.com>
1983 * opts-common.c (integral_argument): Add support for
1984 hexadecimal command option integer arguments. Update comments.
1986 2013-12-14 Jan Hubicka <jh@suse.cz>
1989 * ipa-prop.c (ipa_analyze_call_uses): Skip already
1990 devirtualized calls.
1992 2013-12-14 Jan Hubicka <jh@suse.cz>
1995 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
1997 2013-12-14 Jan Hubicka <jh@suse.cz>
2000 * cgraphclones.c (cgraph_clone_edge): Do not resolve speculative edges.
2002 2013-12-14 H.J. Lu <hongjiu.lu@intel.com>
2005 * config/i386/i386.c (ix86_function_specific_restore): Don't
2008 2013-12-14 Eric Botcazou <ebotcazou@adacore.com>
2010 * var-tracking.c (add_stores): Fix oversight in latest commit.
2012 2013-12-14 Marek Polacek <polacek@redhat.com>
2015 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Call
2016 expand_binop with correct optab depending on code.
2018 2013-12-14 Tom de Vries <tom@codesourcery.com>
2020 * calls.c (expand_call): Fix REG_PARM_STACK_SPACE comparison.
2022 2013-12-13 DJ Delorie <dj@redhat.com>
2024 * config/rl78/rl78-expand.md (one_cmplqi2): Make constant signed.
2026 * config/msp430/msp430.md (movqi): replace general_operand with
2027 msp_general_operand and nonimmediate_operand with
2028 msp_nonimmediate_operand to allow volatile operands.
2031 (addpsi3): Likewise.
2033 (addhi3_cy): Likewise.
2034 (addchi4_cy): Likewise.
2035 (xor<mode>3): Likewise.
2036 (ome_cmpl<mode>2): Likewise.
2037 (extendqihi2): Likewise.
2038 (zero_extendqihi2): Likewise.
2039 (zero_extendhipsi2): Likewise.
2040 (truncpsihi2): Likewise.
2043 2013-12-13 Vladimir Makarov <vmakarov@redhat.com>
2045 * ira.h (struct ira_reg_equiv): Rename to ira_reg_equiv_s.
2047 * lra-int.h (lra_init_equiv): New prototype.
2048 * lra-constraints.c (lra_init_equiv, update_equiv): New functions.
2049 (loc_equivalence_callback): Use the 3rd arg.
2050 (lra_constraints): Update equivalences. Pass curr_insn to
2051 simplify_replace_fn_rtx.
2052 * lra.c (lra): Call lra_init_equiv.
2054 2013-12-13 Kenneth Zadeck <zadeck@naturalbridge.com>
2056 * genmodes.c (emit_max_int): Fixed missing parens.
2058 2013-12-13 Aldy Hernandez <aldyh@redhat.com>
2060 PR tree-optimization/59149
2061 * calls.c (flags_from_decl_or_type): Fail on non decl or type.
2062 * trans-mem.c (diagnose_tm_1): Do not call flags_from_decl_or_type
2065 2013-12-13 Kenneth Zadeck <zadeck@naturalbridge.com>
2067 * config/arc/arc.h (BITS_PER_UNIT): Removed.
2068 * config/bfin/bfin.h (BITS_PER_UNIT): Removed.
2069 * config/lm32/lm32.h (BITS_PER_UNIT): Removed.
2070 * config/m32c/m32c.h (BITS_PER_UNIT): Removed.
2071 * config/microblaze/microblaze.h (BITS_PER_UNIT): Removed.
2072 * config/picochip/picochip.h (BITS_PER_UNIT): Removed.
2073 * config/spu/spu.h (BITS_PER_UNIT): Removed.
2074 * defaults.h (BITS_PER_UNIT): Removed.
2075 * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): New.
2076 * doc/rtl (BITS_PER_UNIT): Moved from tm.texi.
2077 (MAX_BITSIZE_MODE_ANY_INT): Updated.
2078 * doc/tm.texi (BITS_PER_UNIT): Removed.
2079 * doc/tm.texi.in (BITS_PER_UNIT): Removed.
2080 * genmodes.c (bits_per_unit, max_bitsize_mode_any_int): New.
2081 (create_modes): Added code to set bits_per_unit and
2082 max_bitsize_mode_any_int.
2083 (emit_max_int): Changed code generation.
2084 * mkconfig.sh: Added insn-modes.h.
2086 2013-12-13 Jeff Law <law@redhat.com>
2088 PR tree-optimization/45685
2089 * tree-ssa-phiopt.c (neg_replacement): New function.
2090 (tree_ssa_phiopt_worker): Call it.
2092 2013-12-13 Yuri Rumyantsev <ysrumyan@gmail.com>
2094 * config/i386/i386.c (slm_cost): Fix imul cost for HI.
2096 2013-12-13 Bin Cheng <bin.cheng@arm.com>
2098 PR tree-optimization/58296
2099 PR tree-optimization/41488
2100 * tree-scalar-evolution.c: Include necessary header files.
2101 (simplify_peeled_chrec): New function.
2102 (analyze_evolution_in_loop): New static variable.
2103 Call simplify_peeled_chrec.
2104 * tree-ssa-loop-ivopts.c (mark_bivs): Don't mark peeled IV as biv.
2105 (add_old_iv_candidates): Don't add candidate for peeled IV.
2106 * tree-affine.h (aff_combination_zero_p): New function.
2108 2013-12-13 Nick Clifton <nickc@redhat.com>
2110 * config/msp430/msp430.c (is_wakeup_func): New function. Returns
2111 true if the current function has the wakeup attribute.
2112 (msp430_start_function): Note if the function has the wakeup
2114 (msp430_attribute_table): Add wakeup attribute.
2115 (msp430_expand_epilogue): Add support for wakeup functions.
2116 * config/msp430/msp430.md (disable_interrupts): Emit a NOP after
2117 the DINT instruction.
2118 * doc/extend.texi: Document the wakeup attribute.
2120 2013-12-13 Kai Tietz <kitetz@redhat.com>
2123 * config/i386/i386.c (ix86_option_override_internal): Set for
2124 x64 target flag_unwind_tables, if flag_asynchronous_unwind_tables
2127 2013-12-12 Jeff Law <law@redhat.com>
2129 * i386.md (simple LEA peephole2): Add missing mode to zero_extend
2130 for zero-extended MULT simple LEA pattern.
2132 2013-12-12 Vladimir Makarov <vmakarov@redhat.com>
2135 * lra-coalesce.c (lra_coalesce): Invalidate inheritance pseudo
2136 values if necessary.
2138 2013-12-12 Jakub Jelinek <jakub@redhat.com>
2141 * gimplify.c (omp_check_private): Add copyprivate argument, if it
2142 is true, don't check omp_privatize_by_reference.
2143 (gimplify_scan_omp_clauses): For OMP_CLAUSE_COPYPRIVATE verify
2144 decl is private in outer context. Adjust omp_check_private caller.
2146 2013-12-11 Jeff Law <law@redhat.com>
2148 PR rtl-optimization/59446
2149 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
2150 test for crossing a loop header.
2152 2013-12-11 Sriraman Tallam <tmsriram@google.com>
2155 * config/i386/i386.c (get_builtin): New function.
2156 (ix86_builtin_vectorized_function): Replace all instances of
2157 ix86_builtins[...] with get_builtin(...).
2158 (ix86_builtin_reciprocal): Ditto.
2160 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
2162 * langhooks.h (lang_hooks_for_decls): Remove lang_hooks_for_cilkplus.
2163 (lang_hooks_for_cilkplus): Remove.
2164 * langhooks.c (lhd_cilk_detect_spawn): Likewise.
2165 (lhd_install_body_with_frame_cleanup): Likewise.
2166 * langhooks-def.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
2167 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
2168 (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
2169 (LANG_HOOKS_CILKPLUS): Likewise.
2170 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_CILKPLUS.
2171 * gimplify.c (gimplify_expr): Removed CILK_SPAWN_STMT case.
2172 (gimplify_modify_expr): Removed handling of _Cilk_spawn in expr.
2173 (gimplify_call_expr): Likewise.
2175 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
2177 * expr.c (expand_assignment): Remove dependency on
2178 flag_strict_volatile_bitfields. Always set the memory access mode.
2179 (expand_expr_real_1): Likewise.
2181 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
2184 * expmed.c (store_bit_field): Use narrow_bit_field_mem and
2185 store_fixed_bit_field_1 for -fstrict-volatile-bitfields.
2186 (store_fixed_bit_field): Split up. Call store_fixed_bit_field_1
2187 to do the real work.
2188 (store_fixed_bit_field_1): New function.
2189 (store_split_bit_field): Limit the unit size to the memory mode size,
2190 to prevent recursion.
2192 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
2193 Sandra Loosemore <sandra@codesourcery.com>
2199 * expmed.c (strict_volatile_bitfield_p): Add bitregion_start
2200 and bitregion_end parameters. Test for compliance with C++
2202 (store_bit_field): Adjust call to strict_volatile_bitfield_p.
2203 Add fallback logic for cases where -fstrict-volatile-bitfields
2204 is supposed to apply, but cannot.
2205 (extract_bit_field): Likewise. Use narrow_bit_field_mem and
2206 extract_fixed_bit_field_1 to do the extraction.
2207 (extract_fixed_bit_field): Revert to previous mode selection algorithm.
2208 Call extract_fixed_bit_field_1 to do the real work.
2209 (extract_fixed_bit_field_1): New function.
2211 2013-12-11 Sandra Loosemore <sandra@codesourcery.com>
2217 * expmed.c (strict_volatile_bitfield_p): New function.
2218 (store_bit_field_1): Don't special-case strict volatile
2220 (store_bit_field): Handle strict volatile bitfields here instead.
2221 (store_fixed_bit_field): Don't special-case strict volatile
2223 (extract_bit_field_1): Don't special-case strict volatile
2225 (extract_bit_field): Handle strict volatile bitfields here instead.
2226 (extract_fixed_bit_field): Don't special-case strict volatile
2227 bitfields here. Simplify surrounding code to resemble that in
2228 store_fixed_bit_field.
2229 * doc/invoke.texi (Code Gen Options): Update
2230 -fstrict-volatile-bitfields description.
2232 2013-12-11 Kugan Vivekanandarajah <kuganv@linaro.org>
2234 * configure.ac: Add check for aarch64 assembler -mabi support.
2235 * configure: Regenerate.
2236 * config.in: Regenerate.
2237 * config/aarch64/aarch64-elf.h (ASM_MABI_SPEC): New define.
2238 (ASM_SPEC): Update to substitute -mabi with ASM_MABI_SPEC.
2239 * config/aarch64/aarch64.h (aarch64_override_options): Issue error
2240 if assembler does not support -mabi and option ilp32 is selected.
2241 * doc/install.texi: Added note that building gcc 4.9 and after
2242 with pre 2.24 binutils will not support -mabi=ilp32.
2244 2013-12-11 Marek Polacek <polacek@redhat.com>
2247 * expr.c (expand_expr_real_1): Remove assert dealing with
2248 internal calls and turn that into a condition instead.
2250 2013-12-11 Yvan Roux <yvan.roux@linaro.org>
2252 * config/arm/arm.opt (mlra): Enable LRA by default.
2254 2013-12-11 Jakub Jelinek <jakub@redhat.com>
2256 PR tree-optimization/59417
2257 * tree-ssa-copy.c (fini_copy_prop): If copy_of[i].value is defined
2258 in a different bb rhan var, only duplicate points-to info and
2259 not alignment info and don't duplicate range info.
2260 * tree-ssa-loop-niter.c (determine_value_range): Instead of
2261 assertion failure handle inconsistencies in range info by only
2262 using var's range info and not PHI result range infos.
2264 PR tree-optimization/59386
2265 * tree-inline.c (remap_gimple_stmt): If not id->do_not_unshare,
2266 unshare_expr (id->retval) before passing it to gimple_build_assign.
2268 2013-12-11 Bin Cheng <bin.cheng@arm.com>
2271 2013-12-10 Bin Cheng <bin.cheng@arm.com>
2272 PR tree-optimization/41488
2273 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
2274 for PEELED_CHREC kind IV.
2275 * tree-scalar-evolution.c: Include necessary header files.
2276 (peeled_chrec_map, simplify_peeled_chrec): New.
2277 (analyze_evolution_in_loop): New static variable.
2278 Call simplify_peeled_chrec.
2279 (scev_initialize): Initialize peeled_chrec_map.
2280 (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
2282 2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
2285 * config/i386/i386.md (*movsf_internal): Set mode to SI for
2288 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
2290 PR rtl-optimization/58295
2291 * simplify-rtx.c (simplify_truncation): Restrict the distribution for
2292 WORD_REGISTER_OPERATIONS targets.
2294 2013-12-10 Richard Sandiford <rdsandiford@googlemail.com>
2296 * genrecog.c (validate_pattern): Treat all messages except missing
2298 * config/epiphany/epiphany.md: Remove constraints from
2300 * config/h8300/h8300.md: Remove constraints from define_splits.
2301 * config/msp430/msp430.md: Likewise.
2302 * config/mcore/mcore.md (movdi_i, movsf_i, movdf_k): Use
2303 nonimmediate_operand rather than general_operand for operand 0.
2304 * config/moxie/moxie.md (*movsi, *movqi, *movhi): Likewise.
2305 * config/pdp11/predicates.md (float_operand, float_nonimm_operand):
2306 Use match_operator rather than match_test to invoke general_operand.
2307 * config/v850/v850.md (*movqi_internal, *movhi_internal)
2308 (*movsi_internal_v850e, *movsi_internal, *movsf_internal): Likewise.
2310 2013-12-10 Richard Sandiford <rdsandiford@googlemail.com>
2312 * config/tilegx/tilegx.md (insn_ld_add<bitsuffix>): Use
2313 register_operand rather than pointer_operand. Add modes to the
2315 (insn_ldna_add<bitsuffix>): Likewise.
2316 (insn_ld<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
2317 (insn_ldnt_add<bitsuffix>): Likewise.
2318 (insn_ldnt<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
2319 (insn_ld_add_L2<bitsuffix>): Likewise.
2320 (insn_ldna_add_L2<bitsuffix>): Likewise.
2321 (insn_ld<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
2322 (insn_ldnt_add_L2<bitsuffix>): Likewise.
2323 (insn_ldnt<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
2324 (insn_ld_add_miss<bitsuffix>): Likewise.
2325 (insn_ldna_add_miss<bitsuffix>): Likewise.
2326 (insn_ld<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
2327 (insn_ldnt_add_miss<bitsuffix>): Likewise.
2328 (insn_ldnt<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
2329 (insn_st_add<bitsuffix>): Likewise.
2330 (insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
2331 (*insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
2332 (insn_stnt_add<bitsuffix>): Likewise.
2333 (insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
2334 (*insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
2335 (vec_pack_<pack_optab>_v4hi): Use register_operand rather than
2336 reg_or_0_operand for operand 0.
2337 (insn_v2<pack_insn>): Likewise.
2338 (vec_pack_hipart_v4hi): Likewise.
2339 (insn_v2packh): Likewise.
2340 (vec_pack_ssat_v2si): Likewise.
2341 (insn_v4packsc): Likewise.
2343 2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
2345 * basic-block.h (gcov_working_set_t): Put back typedef.
2346 * gcov-io.h (gcov_bucket_type): Likewise.
2347 (gcov_working_set_info, gcov_working_set_t): Likewise.
2349 2013-12-10 Oleg Endo <olegendo@gcc.gnu.org>
2351 * cgraph.h (cgraph_node_set_iterator, varpool_node_set_iterator):
2353 (cgraph_inline_failed_enum, cgraph_inline_failed_t): Remove typedef and
2354 rename to cgraph_inline_failed_t.
2355 * tree-ssa-alias.h (ao_ref_s, ao_ref): Remove typedef and rename
2357 * reload.h (reg_equivs_s, reg_equivs_t): Remove typedef and rename
2359 * conditions.h (CC_STATUS): Remove typedef.
2360 * bitmap.h (bitmap_obstack): Remove typedef.
2361 (bitmap_element_def, bitmap_element): Remove typedef and rename to
2363 (bitmap_head_def, bitmap_head): Remove typedef and rename to
2365 (bitmap_iterator): Remove typedef.
2366 * target.h (cumulative_args_t, print_switch_type,
2367 secondary_reload_info): Remove typedef.
2368 * dwarf2out.h (dw_cfi_oprnd_struct, dw_cfi_oprnd): Remove
2369 dw_cfi_oprnd_struct alias.
2370 (dw_cfi_struct, dw_cfi_node): Remove typedef and rename to dw_cfi_node.
2371 (dw_fde_struct, dw_fde_node): Remove typedef and rename to dw_fde_node.
2372 (cfa_loc, dw_cfa_location): Remove typedef and rename to
2374 (dw_vec_struct, dw_vec_const): Remove typedef and rename to
2376 (dw_val_struct, dw_val_node): Remove typedef and rename to dw_val_node.
2377 (dw_loc_descr_struct, dw_loc_descr_node): Remove typedef and rename to
2379 * params.h (param_info, compiler_param): Remove typedef.
2380 * opts.h (cl_deferred_param): Remove typedef.
2381 * sreal.h (sreal): Remove typedef.
2382 * ddg.h (dep_type, dep_data_type): Remove typedef.
2383 * graphite-clast-to-gimple.h (cloog_prog_clast, bb_pbb_def): Remove
2385 * lto-streamer.h (lto_decl_stream_e_t, lto_encoder_entry,
2386 lto_symtab_encoder_iterator, res_pair): Remove typedef.
2387 * tree-affine.h (affine_tree_combination, aff_tree): Remove typedef
2388 and rename to aff_tree.
2389 * sched-int.h (region): Remove typedef.
2390 * diagnostic.h (diagnostic_info,
2391 diagnostic_classification_change_t): Remove typedef.
2392 * tree-ssa-loop.h (affine_iv_d): Remove typedef and rename to
2394 * sbitmap.h (sbitmap_iterator): Remove typedef.
2395 * ssa-iterators.h (immediate_use_iterator_d, imm_use_iterator):
2396 Remove typedef and rename to imm_use_iterator.
2397 (ssa_operand_iterator_d, ssa_op_iter): Remove typedef and rename to
2399 * ggc-internal.h (ggc_statistics): Remove typedef.
2400 * cselib.h (cselib_val_struct, cselib_val): Remove typedef and
2401 rename to cselib_val.
2402 * tree-core.h (alias_pair): Remove typedef.
2403 (constructor_elt_d, constructor_elt): Remove typedef and rename to
2405 (ssa_use_operand_d, ssa_use_operand_t): Remove typedef and rename to
2407 * graphite-sese-to-poly.h (base_alias_pair): Remove typedef.
2408 * tree-data-ref.h (conflict_function): Remove typedef.
2409 * tree-inline.h (copy_body_data): Remove typedef.
2410 * ipa-inline.h (condition, size_time_entry, inline_param_summary_t,
2411 edge_growth_cache_entry): Remove typedef.
2412 * regrename.h (operand_rr_info, insn_rr_info): Remove typedef.
2413 * gimple-iterator.h (gimple_stmt_iterator_d, gimple_stmt_iterator):
2414 Remove typedef and rename to gimple_stmt_iterator.
2415 * basic-block.h (ce_if_block, ce_if_block_t): Remove typedef and
2416 rename to ce_if_block.
2417 (edge_iterator): Remove typedef.
2418 * ipa-prop.h (ipa_agg_jf_item, ipa_agg_jf_item_t): Remove typedef
2419 and rename to ipa_agg_jf_item.
2420 (ipa_agg_jump_function_t, ipa_param_descriptor_t, ipa_node_params_t,
2421 ipa_parm_adjustment_t): Remove typedef.
2422 (ipa_jump_func, ipa_jump_func_t): Remove typedef and rename to
2424 (ipa_edge_args, ipa_edge_args_t): Remove typedef and rename to
2426 * gcov-io.h (gcov_bucket_type): Remove typedef.
2427 (gcov_working_set_info, gcov_working_set_t): Remove typedef and rename
2428 to gcov_working_set_t.
2429 * ira-int.h (minmax_set_iterator, ira_allocno_iterator,
2430 ira_object_iterator, ira_allocno_object_iterator, ira_pref_iterator,
2431 ira_copy_iterator, ira_object_conflict_iterator): Remove typedef.
2432 * tree-iterator.h (tree_stmt_iterator): Remove typedef.
2433 * rtl.h (addr_diff_vec_flags, mem_attrs, reg_attrs,
2434 replace_label_data): Remove typedef.
2435 (rtunion_def, rtunion): Remove typedef and rename to rtunion.
2436 * hard-reg-set.h (hard_reg_set_iterator): Remove typedef.
2437 * sel-sched-ir.h (_list_iterator, sel_global_bb_info_def,
2438 sel_region_bb_info_def, succ_iterator): Remove typedef.
2439 (deps_where_def, deps_where_t): Remove typedef and rename to
2441 * coretypes.h: Adapt forward declarations.
2442 * tree-scalar-evolution.h: Likewise.
2443 * tree-ssa-address.h: Likewise.
2444 * tree-ssa-operands.h: Likewise.
2445 * function.h: Likewise.
2446 * config/frv/frv-protos.h: Likewise.
2447 * targhooks.h: Likewise.
2448 * basic_block.h: Likewise.
2449 * rtl.def: Adapt documentation.
2450 * doc/tm.texi: Likewise.
2451 * ipa-cp.c: Adapt uses.
2452 * bitmap.c: Likewise.
2453 * dwarf2out.c: Likewise.
2454 * target.def: Likewise.
2455 * ipa-inline-analysis.c: Likewise.
2456 * dwarf2cfi.c: Likewise.
2457 * tree-ssa-loop-ivopts.c: Likewise.
2458 * lto-cgraph.c: Likewise.
2459 * config/frv/frv.c: Likewise.
2460 * ifcvt.c: Likewise.
2461 * ipa-prop.c: Likewise.
2463 2013-12-10 Kai Tietz <ktietz@redhat.com>
2466 * config/i386/i386.c (ix86_expand_prologue): Address saved
2467 registers stack-relative, not via frame-pointer.
2469 2013-12-10 Richard Biener <rguenther@suse.de>
2472 * tree-ssa-structalias.c (solution_set_expand): Expand into
2473 a different possibly cached bitmap and return the result.
2474 (set_union_with_increment): Pass in a shared expanded bitmap
2476 (do_sd_constraint): Likewise.
2477 (do_ds_constraint): Likewise.
2478 (do_complex_constraint): Likewise.
2479 (solve_graph): Manage the shared expanded bitmap.
2481 2013-12-10 Jakub Jelinek <jakub@redhat.com>
2483 * tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field.
2484 (LOOP_VINFO_SCALAR_LOOP): Define.
2485 (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
2486 * config/i386/sse.md (maskload<mode>, maskstore<mode>): New expanders.
2487 * tree-data-ref.c (get_references_in_stmt): Handle MASK_LOAD and
2489 * internal-fn.def (LOOP_VECTORIZED, MASK_LOAD, MASK_STORE): New
2491 * tree-if-conv.c: Include expr.h, optabs.h, tree-ssa-loop-ivopts.h and
2493 (release_bb_predicate): New function.
2494 (free_bb_predicate): Use it.
2495 (reset_bb_predicate): Likewise. Don't unallocate bb->aux
2496 just to immediately allocate it again.
2497 (add_to_predicate_list): Add loop argument. If basic blocks that
2498 dominate loop->latch don't insert any predicate.
2499 (add_to_dst_predicate_list): Adjust caller.
2500 (if_convertible_phi_p): Add any_mask_load_store argument, if true,
2501 handle it like flag_tree_loop_if_convert_stores.
2502 (insert_gimplified_predicates): Likewise.
2503 (ifcvt_can_use_mask_load_store): New function.
2504 (if_convertible_gimple_assign_stmt_p): Add any_mask_load_store
2505 argument, check if some conditional loads or stores can't be
2506 converted into MASK_LOAD or MASK_STORE.
2507 (if_convertible_stmt_p): Add any_mask_load_store argument,
2508 pass it down to if_convertible_gimple_assign_stmt_p.
2509 (predicate_bbs): Don't return bool, only check if the last stmt
2510 of a basic block is GIMPLE_COND and handle that. Adjust
2511 add_to_predicate_list caller.
2512 (if_convertible_loop_p_1): Only call predicate_bbs if
2513 flag_tree_loop_if_convert_stores and free_bb_predicate in that case
2514 afterwards, check gimple_code of stmts here. Replace is_predicated
2515 check with dominance check. Add any_mask_load_store argument,
2516 pass it down to if_convertible_stmt_p and if_convertible_phi_p,
2517 call if_convertible_phi_p only after all if_convertible_stmt_p calls.
2518 (if_convertible_loop_p): Add any_mask_load_store argument,
2519 pass it down to if_convertible_loop_p_1.
2520 (predicate_mem_writes): Emit MASK_LOAD and/or MASK_STORE calls.
2521 (combine_blocks): Add any_mask_load_store argument, pass
2522 it down to insert_gimplified_predicates and call predicate_mem_writes
2523 if it is set. Call predicate_bbs.
2524 (version_loop_for_if_conversion): New function.
2525 (tree_if_conversion): Adjust if_convertible_loop_p and combine_blocks
2526 calls. Return todo flags instead of bool, call
2527 version_loop_for_if_conversion if if-conversion should be just
2528 for the vectorized loops and nothing else.
2529 (main_tree_if_conversion): Adjust caller. Don't call
2530 tree_if_conversion for dont_vectorize loops if if-conversion
2531 isn't explicitly enabled.
2532 * tree-vect-data-refs.c (vect_check_gather): Handle
2533 MASK_LOAD/MASK_STORE.
2534 (vect_analyze_data_refs, vect_supportable_dr_alignment): Likewise.
2535 * gimple.h (gimple_expr_type): Handle MASK_STORE.
2536 * internal-fn.c (expand_LOOP_VECTORIZED, expand_MASK_LOAD,
2537 expand_MASK_STORE): New functions.
2538 * tree-vectorizer.c: Include tree-cfg.h and gimple-fold.h.
2539 (vect_loop_vectorized_call, fold_loop_vectorized_call): New functions.
2540 (vectorize_loops): Don't try to vectorize loops with
2541 loop->dont_vectorize set. Set LOOP_VINFO_SCALAR_LOOP for if-converted
2542 loops, fold LOOP_VECTORIZED internal call depending on if loop
2543 has been vectorized or not.
2544 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
2546 (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
2547 If non-NULL, copy basic blocks from scalar_loop instead of loop, but
2548 still to loop's entry or exit edge.
2549 (slpeel_tree_peel_loop_to_edge): Add scalar_loop argument, pass it
2550 down to slpeel_tree_duplicate_loop_to_edge_cfg.
2551 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_loop_alignment):
2553 (vect_loop_versioning): If LOOP_VINFO_SCALAR_LOOP, perform loop
2554 versioning from that loop instead of LOOP_VINFO_LOOP, move it to the
2555 right place in the CFG afterwards.
2556 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
2558 * cfgloop.h (struct loop): Add dont_vectorize field.
2559 * tree-loop-distribution.c (copy_loop_before): Adjust
2560 slpeel_tree_duplicate_loop_to_edge_cfg caller.
2561 * optabs.def (maskload_optab, maskstore_optab): New optabs.
2562 * passes.def: Add a note that pass_vectorize must immediately follow
2564 * tree-predcom.c (split_data_refs_to_components): Give up if
2566 * tree-vect-stmts.c (vect_mark_relevant): Don't crash if lhs is NULL.
2567 (exist_non_indexing_operands_for_use_p): Handle MASK_LOAD
2569 (vectorizable_mask_load_store): New function.
2570 (vectorizable_call): Call it for MASK_LOAD or MASK_STORE.
2571 (vect_transform_stmt): Handle MASK_STORE.
2572 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Ignore
2573 DR_STMT where lhs is NULL.
2574 * optabs.h (can_vec_perm_p): Fix up comment typo.
2575 (can_vec_mask_load_store_p): New prototype.
2576 * optabs.c (can_vec_mask_load_store_p): New function.
2578 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
2580 * expr.c (expand_expr_real_1) <normal_inner_ref>: Always return 0 for
2581 the extraction of a bit-field of null size.
2583 2013-12-10 Marek Polacek <polacek@redhat.com>
2586 * vtable-verify.c (var_is_used_for_virtual_call_p): Check the
2587 return value of gimple_call_fn. Use is_gimple_call/is_gimple_assign
2588 instead of gimple_code.
2590 2013-12-10 Maxim Kuvyrkov <maxim@kugelworks.com>
2592 * config.gcc (mips*-mti-linux*, mips64*-*-linux*):
2593 Add android definitions.
2594 (s390x-*-linux*): Use linux-protos.h.
2596 2013-12-10 Bin Cheng <bin.cheng@arm.com>
2598 PR tree-optimization/41488
2599 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
2600 for PEELED_CHREC kind IV.
2601 * tree-scalar-evolution.c: Include necessary header files.
2602 (peeled_chrec_map, simplify_peeled_chrec): New.
2603 (analyze_evolution_in_loop): New static variable.
2604 Call simplify_peeled_chrec.
2605 (scev_initialize): Initialize peeled_chrec_map.
2606 (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
2608 2013-12-09 Andrew Pinski <apinski@cavium.com>
2610 * config/aarch64/t-aarch64 (MULTILIB_OPTIONS): Fix definition so
2611 that options are conflicting ones.
2613 2013-12-09 Eric Botcazou <ebotcazou@adacore.com>
2615 * optabs.c (gen_int_libfunc): Do not compare modes directly.
2617 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2619 * basic-block.h (FOR_ALL_BB): Eliminate macro.
2621 * cfg.c (alloc_aux_for_blocks, clear_aux_for_blocks): Replace
2622 uses of FOR_ALL_BB with FOR_ALL_BB_FN, making uses of cfun explicit.
2624 * cfganal.c (inverted_post_order_compute): Likewise.
2625 * cfgcleanup.c (try_optimize_cfg): Likewise.
2626 * cfgexpand.c (add_scope_conflicts): Likewise.
2627 * cfghooks.c (dump_flow_info, account_profile_record): Likewise.
2628 * cfgrtl.c (relink_block_chain): Likewise.
2629 * dce.c (mark_artificial_uses): Likewise.
2630 * df-core.c (df_set_blocks, df_compute_cfg_image, df_dump): Likewise.
2631 * df-problems.c (df_lr_verify_solution_start,
2632 df_lr_verify_solution_end, df_lr_verify_transfer_functions,
2633 df_live_verify_solution_start, df_live_verify_solution_end,
2634 df_live_set_all_dirty, df_live_verify_transfer_functions,
2635 df_md_local_comput): Likewise.
2636 * df-scan.c (df_scan_free_internal, df_scan_alloc)
2637 df_reorganize_refs_by_insn, df_scan_verify): Likewise.
2638 * dominance.c (compute_dom_fast_query, calculate_dominance_info,
2639 free_dominance_info): Likewise.
2640 * dse.c (dse_step1, dse_step3, dse_step4, dse_step6): Likewise.
2641 * graph.c (draw_cfg_edges): Likewise.
2642 * graphite-scop-detection.c (print_graphite_scop_statistics,
2643 dot_all_scops_1): Likewise.
2644 * graphite.c (print_global_statistics,
2645 print_graphite_scop_statistics): Likewise.
2646 * ira.c (do_reload): Likewise.
2647 * loop-init.c (loop_optimizer_finalize): Likewise.
2648 * lto-streamer-in.c (input_function): Likewise.
2649 * lto-streamer-out.c (output_function): Likewise.
2650 * mcf.c (adjust_cfg_counts): Likewise.
2651 * predict.c (estimate_loops): Likewise.
2652 * sched-rgn.c (haifa_find_rgns): Likewise.
2653 * tree-cfg.c (split_critical_edges): Likewise.
2654 * tree-dfa.c (renumber_gimple_stmt_uids): Likewise.
2655 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
2656 * tree-ssa-pre.c (compute_antic, insert, init_pre): Likewise.
2657 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2658 * var-tracking.c (vt_initialize, vt_finalize): Likewise.
2659 * vtable-verify.c (vtable_verify_main): Likewise.
2660 * web.c (web_main): Likewise.
2662 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2664 * basic-block.h (FOR_EACH_BB_REVERSE): Eliminate macro.
2666 * cfghooks.c (verify_flow_info): Replace uses of FOR_EACH_BB_REVERSE
2667 with FOR_EACH_BB_REVERSE_FN, making uses of cfun explicit.
2668 * cfgrtl.c (print_rtl_with_bb, rtl_verify_edges,
2669 rtl_verify_bb_insns, rtl_verify_bb_pointers,
2670 rtl_verify_bb_insn_chain, rtl_verify_fallthru): Likewise.
2671 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
2672 * config/sh/sh.c (sh_md_init_global): Likewise.
2673 * config/sh/sh_optimize_sett_clrt.cc
2674 (sh_optimize_sett_clrt::execute): Likewise.
2675 * dce.c (reset_unmarked_insns_debug_uses, delete_unmarked_insns):
2677 * dominance.c (calc_dfs_tree): Likewise.
2678 * final.c (final): Likewise.
2679 * function.c (thread_prologue_and_epilogue_insns): Likewise.
2680 * gcse.c (compute_code_hoist_vbeinout): Likewise.
2681 * ira.c (update_equiv_regs, build_insn_chain): Likewise.
2682 * lcm.c (compute_antinout_edge): Likewise.
2683 * mode-switching.c (optimize_mode_switching): Likewise.
2684 * postreload.c (reload_combine): Likewise.
2685 * recog.c (split_all_insns, peephole2_optimize): Likewise.
2686 * tree-ssa-live.c (live_worklist): Likewise.
2688 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2690 * basic-block.h (FOR_EACH_BB): Eliminate macro.
2692 * asan.c (transform_statements, execute_sanopt): Eliminate
2693 use of FOR_EACH_BB in favor of FOR_EACH_BB_FN, to make use of cfun
2695 * auto-inc-dec.c (rest_of_handle_auto_inc_dec): Likewise.
2696 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges,
2697 set_edge_can_fallthru_flag, fix_up_fall_thru_edges,
2698 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes,
2699 insert_section_boundary_note, rest_of_handle_reorder_blocks,
2700 duplicate_computed_gotos): Likewise.
2701 * cfg.c (clear_edges, compact_blocks, brief_dump_cfg): Likewise.
2702 * cfganal.c (find_unreachable_blocks, add_noreturn_fake_exit_edges,
2703 compute_dominance_frontiers_1, single_pred_before_succ_order): Likewise.
2704 * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
2705 * cfgcleanup.c (try_optimize_cfg, delete_dead_jumptables): Likewise.
2706 * cfgexpand.c (add_scope_conflicts, discover_nonconstant_array_refs):
2708 * cfgloop.c (flow_loops_cfg_dump, get_loop_body, record_loop_exits,
2709 verify_loop_structure): Likewise.
2710 * cfgloopanal.c (mark_loop_exit_edges): Likewise.
2711 * cfgrtl.c (compute_bb_for_insn, find_partition_fixes,
2712 verify_hot_cold_block_grouping, purge_all_dead_edges,
2713 fixup_abnormal_edges, record_effective_endpoints,
2714 outof_cfg_layout_mode, fixup_reorder_chain, force_one_exit_fallthru,
2715 break_superblocks): Likewise.
2716 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges,
2717 cgraph_rebuild_references): Likewise.
2718 * combine-stack-adj.c (combine_stack_adjustments): Likewise.
2719 * combine.c (delete_noop_moves, create_log_links,
2720 combine_instructions): Likewise.
2721 * config/arm/arm.c (thumb1_reorg, thumb2_reorg): Likewise.
2722 * config/bfin/bfin.c (bfin_gen_bundles, reorder_var_tracking_notes):
2724 * config/c6x/c6x.c (c6x_gen_bundles, conditionalize_after_sched,
2725 c6x_reorg): Likewise.
2726 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
2727 * config/frv/frv.c (frv_optimize_membar): Likewise.
2728 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
2729 * config/ia64/ia64.c (ia64_reorg): Likewise.
2730 * config/mips/mips.c (mips_annotate_pic_calls): Likewise.
2731 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
2732 * config/rs6000/rs6000.c (rs6000_alloc_sdmode_stack_slot): Likewise.
2733 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
2734 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Likewise.
2735 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
2736 * config/tilegx/tilegx.c (tilegx_gen_bundles,
2737 reorder_var_tracking_notes): Likewise.
2738 * config/tilepro/tilepro.c (tilepro_gen_bundles,
2739 reorder_var_tracking_notes): Likewise.
2740 * coverage.c (coverage_compute_cfg_checksum): Likewise.
2741 * cprop.c (compute_hash_table_work, compute_cprop_data,
2742 local_cprop_pass, find_implicit_sets): Likewise.
2743 * cse.c (cse_condition_code_reg): Likewise.
2744 * dce.c (prescan_insns_for_dce): Likewise.
2745 * df-core.c (df_compact_blocks): Likewise.
2746 * df-problems.c (df_word_lr_alloc): Likewise.
2747 * df-scan.c (df_scan_start_dump, df_scan_blocks, df_insn_rescan_all,
2748 df_update_entry_exit_and_calls): Likewise.
2749 * dominance.c (calculate_dominance_info, verify_dominators,
2750 debug_dominance_info): Likewise.
2751 * dse.c (dse_step5_nospill): Likewise.
2752 * except.c (finish_eh_generation): Likewise.
2753 * final.c (compute_alignments): Likewise.
2754 * function.c (thread_prologue_and_epilogue_insns,
2755 rest_of_match_asm_constraints): Likewise.
2756 * gcse.c (compute_hash_table_work, prune_expressions,
2757 compute_pre_data, compute_code_hoist_vbeinout, hoist_code,
2758 calculate_bb_reg_pressure, compute_ld_motion_mems): Likewise.
2759 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
2760 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour,
2761 find_explicit_erroneous_behaviour): Likewise.
2762 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa,
2763 rewrite_cross_bb_scalar_deps_out_of_ssa): Likewise.
2764 * haifa-sched.c (haifa_sched_init): Likewise.
2765 * hw-doloop.c (discover_loops, set_bb_indices, reorder_loops):
2767 * ifcvt.c (if_convert): Likewise.
2768 * init-regs.c (initialize_uninitialized_regs): Likewise.
2769 * ipa-prop.c (ipcp_transform_function): Likewise.
2770 * ipa-pure-const.c (analyze_function): Likewise.
2771 * ipa-split.c (find_split_points, execute_split_functions): Likewise.
2772 * ira-build.c (form_loop_tree): Likewise.
2773 * ira-costs.c (find_costs_and_classes): Likewise.
2774 * ira-emit.c (emit_moves, add_ranges_and_copies, ira_emit): Likewise.
2775 * ira.c (decrease_live_ranges_number, compute_regs_asm_clobbered,
2776 mark_elimination, update_equiv_regs, find_moveable_pseudos,
2777 split_live_ranges_for_shrink_wrap, allocate_initial_values): Likewise.
2778 * jump.c (mark_all_labels): Likewise.
2779 * lcm.c (compute_laterin, compute_insert_delete, compute_available,
2780 compute_nearerout, compute_rev_insert_delete): Likewise.
2781 * loop-init.c (fix_loop_structure): Likewise.
2782 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
2783 * lower-subreg.c (decompose_multiword_subregs,
2784 decompose_multiword_subregs): Likewise.
2785 * lra-assigns.c (assign_by_spills): Likewise.
2786 * lra-coalesce.c (lra_coalesce): Likewise.
2787 * lra-constraints.c (lra_inheritance, remove_inheritance_pseudos):
2789 * lra-eliminations.c (lra_init_elimination): Likewise.
2790 * lra-spills.c (assign_spill_hard_regs, spill_pseudos,
2791 lra_final_code_change): Likewise.
2792 * lra.c (remove_scratches, check_rtl, has_nonexceptional_receiver,
2793 update_inc_notes): Likewise.
2794 * mcf.c (adjust_cfg_counts): Likewise.
2795 * mode-switching.c (optimize_mode_switching): Likewise.
2796 * modulo-sched.c (rest_of_handle_sms): Likewise.
2797 * omp-low.c (optimize_omp_library_calls, expand_omp_taskreg,
2798 expand_omp_target): Likewise.
2799 * postreload-gcse.c (alloc_mem, compute_hash_table): Likewise.
2800 * postreload.c (reload_cse_regs_1): Likewise.
2801 * predict.c (strip_predict_hints, tree_bb_level_predictions,
2802 tree_estimate_probability, expensive_function_p,
2803 estimate_bb_frequencies, compute_function_frequency): Likewise.
2804 * profile.c (is_inconsistent, compute_branch_probabilities,
2805 branch_prob): Likewise.
2806 * ree.c (find_removable_extensions): Likewise.
2807 * reg-stack.c (compensate_edges, convert_regs, reg_to_stack): Likewise.
2808 * regcprop.c (copyprop_hardreg_forward): Likewise.
2809 * reginfo.c (init_subregs_of_mode): Likewise.
2810 * regrename.c (regrename_analyze): Likewise.
2811 * regstat.c (regstat_compute_ri, regstat_compute_calls_crossed):
2813 * reload1.c (has_nonexceptional_receiver, reload,
2814 calculate_elim_costs_all_insns): Likewise.
2815 * resource.c (init_resource_info, free_resource_info): Likewise.
2816 * sched-ebb.c (schedule_ebbs): Likewise.
2817 * sched-rgn.c (is_cfg_nonregular, find_single_block_region,
2818 haifa_find_rgns, sched_rgn_local_init): Likewise.
2819 * sel-sched-dump.c (sel_dump_cfg_2): Likewise.
2820 * sel-sched-ir.c (init_lv_sets, free_lv_sets,
2821 make_regions_from_the_rest): Likewise.
2822 * sese.c (build_sese_loop_nests, sese_build_liveouts): Likewise.
2823 * stack-ptr-mod.c (notice_stack_pointer_modification): Likewise.
2824 * store-motion.c (compute_store_table, build_store_vectors,
2825 one_store_motion_pass): Likewise.
2826 * tracer.c (tail_duplicate): Likewise.
2827 * trans-mem.c (compute_transaction_bits): Likewise.
2828 * tree-call-cdce.c (tree_call_cdce): Likewise.
2829 * tree-cfg.c (replace_loop_annotate, factor_computed_gotos,
2830 fold_cond_expr_cond, make_edges, assign_discriminators,
2831 make_abnormal_goto_edges, cleanup_dead_labels, group_case_labels,
2832 dump_cfg_stats, gimple_verify_flow_info, print_loop,
2833 execute_fixup_cfg): Likewise.
2834 * tree-cfgcleanup.c (cleanup_tree_cfg_1, merge_phi_nodes): Likewise.
2835 * tree-complex.c (init_dont_simulate_again, tree_lower_complex):
2837 * tree-dfa.c (collect_dfa_stats, dump_enumerated_decls): Likewise.
2838 * tree-eh.c (execute_lower_resx, execute_lower_eh_dispatch,
2839 mark_reachable_handlers): Likewise.
2840 * tree-emutls.c (lower_emutls_function_body): Likewise.
2841 * tree-if-conv.c (main_tree_if_conversion): Likewise.
2842 * tree-inline.c (optimize_inline_calls): Likewise.
2843 * tree-into-ssa.c (rewrite_into_ssa, update_ssa): Likewise.
2844 * tree-nrv.c (tree_nrv, execute_return_slot_opt): Likewise.
2845 * tree-object-size.c (compute_object_sizes): Likewise.
2846 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees,
2847 insert_backedge_copies, tree_profiling): Likewise.
2848 * tree-scalar-evolution.c (scev_const_prop): Likewise.
2849 * tree-sra.c (scan_function, sra_modify_function_body,
2850 propagate_dereference_distances, ipa_sra_modify_function_body,
2851 convert_callers): Likewise.
2852 * tree-ssa-ccp.c (ccp_initialize, execute_fold_all_builtins): Likewise.
2853 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
2854 create_outofssa_var_map, coalesce_partitions): Likewise.
2855 * tree-ssa-copy.c (init_copy_prop): Likewise.
2856 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
2857 * tree-ssa-dce.c (find_obviously_necessary_stmts,
2858 eliminate_unnecessary_stmts): Likewise.
2859 * tree-ssa-dom.c (free_all_edge_infos, tree_ssa_dominator_optimize):
2861 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
2862 * tree-ssa-live.c (clear_unused_block_pointer, remove_unused_locals,
2863 new_tree_live_info, calculate_live_on_exit, dump_live_info,
2864 analyze_memory_references, fill_always_executed_in,
2865 tree_ssa_lim_finalize): Likewise.
2866 * tree-ssa-loop-manip.c (find_uses_to_rename, verify_loop_closed_ssa):
2868 * tree-ssa-math-opts.c (execute_cse_reciprocals, execute_cse_sincos,
2869 execute_optimize_bswap, execute_optimize_widening_mul): Likewise.
2870 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
2871 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
2872 * tree-ssa-tail-merge.c (find_same_succ, reset_cluster_vectors):
2874 * tree-ssa-ter.c (find_replaceable_exprs): Likewise.
2875 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
2876 * tree-ssa-uncprop.c (associate_equivalences_with_edges,
2877 tree_ssa_uncprop): Likewise.
2878 * tree-ssa-uninit.c (warn_uninitialized_vars,
2879 execute_late_warn_uninitialized): Likewise.
2880 * tree-ssa.c (verify_ssa, execute_update_addresses_taken): Likewise.
2881 * tree-stdarg.c (check_all_va_list_escapes, execute_optimize_stdarg):
2883 * tree-switch-conversion.c (do_switchconv): Likewise.
2884 * tree-vect-generic.c (expand_vector_operations): Likewise.
2885 * tree-vectorizer.c (adjust_simduid_builtins, note_simd_array_uses,
2886 execute_vect_slp): Likewise.
2887 * tree-vrp.c (check_all_array_refs, remove_range_assertions,
2888 vrp_initialize, identify_jump_threads, instrument_memory_accesses):
2890 * ubsan.c (ubsan_pass): Likewise.
2891 * value-prof.c (verify_histograms,
2892 gimple_value_profile_transformations, gimple_find_values_to_profile):
2894 * var-tracking.c (vt_find_locations, dump_dataflow_sets, vt_emit_notes,
2895 vt_initialize, delete_debug_insns, vt_finalize): Likewise.
2897 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2899 * basic-block.h (last_basic_block): Eliminate macro.
2901 * asan.c (transform_statements): Eliminate use of last_basic_block
2902 in favor of last_basic_block_for_fn, in order to make use of cfun
2904 * bb-reorder.c (copy_bb, reorder_basic_blocks): Likewise.
2905 * bt-load.c (compute_defs_uses_and_gen, compute_kill, compute_out,
2906 link_btr_uses, build_btr_def_use_webs, migrate_btr_defs): Likewise.
2907 * cfg.c (compact_blocks): Likewise.
2908 * cfganal.c (mark_dfs_back_edges,
2909 control_dependences::control_dependences, post_order_compute,
2910 pre_and_rev_post_order_compute_fn, dfs_enumerate_from, compute_idf,
2911 single_pred_before_succ_order): Likewise.
2912 * cfgbuild.c (make_edges): Likewise.
2913 * cfgexpand.c (add_scope_conflicts, gimple_expand_cfg): Likewise.
2914 * cfghooks.c (verify_flow_info): Likewise.
2915 * cfgloop.c (verify_loop_structure): Likewise.
2916 * cfgloopanal.c (just_once_each_iteration_p,
2917 mark_irreducible_loops): Likewise.
2918 * cfgloopmanip.c (fix_bb_placements, remove_path,
2919 update_dominators_in_loop): Likewise.
2920 * cfgrtl.c (create_basic_block_structure, rtl_create_basic_block,
2921 break_superblocks, rtl_flow_call_edges_add): Likewise.
2922 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
2923 * config/frv/frv.c (frv_optimize_membar): Likewise.
2924 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
2925 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
2926 * cprop.c (compute_local_properties, find_implicit_sets,
2927 bypass_conditional_jumps, one_cprop_pass): Likewise.
2928 * cse.c (cse_main): Likewise.
2929 * df-core.c (rest_of_handle_df_initialize, df_worklist_dataflow,
2930 df_analyze, df_grow_bb_info, df_compact_blocks): Likewise.
2931 * df-problems.c (df_lr_verify_solution_start,
2932 df_live_verify_solution_start, df_md_local_compute): Likewise.
2933 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
2934 calc_idoms): Likewise.
2935 * domwalk.c (dom_walker::walk): Likewise.
2936 * dse.c (dse_step0, dse_step3): Likewise.
2937 * function.c (epilogue_done): Likewise.
2938 * gcse.c (alloc_gcse_mem, compute_local_properties,
2939 prune_insertions_deletions, compute_pre_data,
2940 pre_expr_reaches_here_p, one_pre_gcse_pass,
2941 compute_code_hoist_vbeinout, should_hoist_expr_to_dom, hoist_code,
2942 one_code_hoisting_pass): Likewise.
2943 * graph.c (draw_cfg_nodes_no_loops): Likewise.
2944 * graphite-sese-to-poly.c (build_scop_bbs): Likewise.
2945 * haifa-sched.c (unlink_bb_notes): Likewise.
2946 * ipa-split.c (execute_split_functions): Likewise.
2947 * ira-build.c (create_loop_tree_nodes, remove_unnecessary_regions):
2949 * ira-emit.c (ira_emit): Likewise.
2950 * ira.c (find_moveable_pseudos, ira): Likewise.
2951 * lcm.c (compute_antinout_edge, compute_laterin,
2952 compute_insert_delete, pre_edge_lcm, compute_available,
2953 compute_nearerout, compute_rev_insert_delete,
2954 pre_edge_rev_lcm): Likewise.
2955 * loop-unroll.c (opt_info_start_duplication, apply_opt_in_copies):
2957 * lower-subreg.c (decompose_multiword_subregs): Likewise.
2958 * lra-lives.c (lra_create_live_ranges): Likewise.
2959 * lra.c (lra): Likewise.
2960 * mode-switching.c (optimize_mode_switching): Likewise.
2961 * recog.c (split_all_insns): Likewise.
2962 * regcprop.c (copyprop_hardreg_forward): Likewise.
2963 * regrename.c (regrename_analyze): Likewise.
2964 * reload1.c (reload): Likewise.
2965 * resource.c (init_resource_info): Likewise.
2966 * sched-rgn.c (haifa_find_rgns, extend_rgns, compute_trg_info,
2967 realloc_bb_state_array, schedule_region, extend_regions): Likewise.
2968 * sel-sched-ir.c (sel_extend_global_bb_info, extend_region_bb_info,
2969 recompute_rev_top_order, sel_init_pipelining,
2970 make_regions_from_the_rest): Likewise.
2971 * store-motion.c (remove_reachable_equiv_notes,build_store_vectors)
2973 * tracer.c (tail_duplicate): Likewise.
2974 * trans-mem.c (tm_region_init, get_bb_regions_instrumented): Likewise.
2975 * tree-cfg.c (create_bb, cleanup_dead_labels, gimple_dump_cfg,
2976 gimple_flow_call_edges_add): Likewise.
2977 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls,
2978 cleanup_tree_cfg_1): Likewise.
2979 * tree-complex.c (tree_lower_complex): Likewise.
2980 * tree-inline.c (copy_cfg_body): Likewise.
2981 * tree-into-ssa.c (mark_phi_for_rewrite, rewrite_into_ssa,
2982 prepare_def_site_for, update_ssa): Likewise.
2983 * tree-ssa-dce.c (tree_dce_init, perform_tree_ssa_dce): Likewise.
2984 * tree-ssa-dom.c (record_edge_info): Likewise.
2985 * tree-ssa-live.c (new_tree_live_info, live_worklist): Likewise.
2986 * tree-ssa-loop-im.c (fill_always_executed_in_1): Likewise.
2987 * tree-ssa-loop-manip.c (copy_phi_node_args
2988 gimple_duplicate_loop_to_header_edge): Likewise.
2989 * tree-ssa-pre.c (compute_antic): Likewise.
2990 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2991 * tree-ssa-reassoc.c (init_reassoc): Likewise.
2992 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
2993 * tree-ssa-tail-merge.c (init_worklist): Likewise.
2994 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
2995 * tree-stdarg.c (reachable_at_most_once): Likewise.
2996 * tree-vrp.c (find_assert_locations): Likewise.
2997 * var-tracking.c (vt_find_locations): Likewise.
2999 2013-12-09 David Malcolm <dmalcolm@redhat.com>
3001 * basic-block.h (profile_status): Eliminate macro.
3003 * cfgbuild.c (find_many_sub_basic_blocks): Eliminate use of
3004 profile_status macro in favor of profile_status_for_fn, making
3005 use of cfun explicit.
3006 * cfghooks.c (account_profile_record): Likewise.
3007 * cfgloopanal.c (single_likely_exit):
3008 * cfgrtl.c (rtl_verify_edges, rtl_account_profile_record): Likewise.
3009 * graphite.c (graphite_finalize):
3010 * internal-fn.c (ubsan_expand_si_overflow_addsub_check,
3011 ubsan_expand_si_overflow_neg_check,
3012 ubsan_expand_si_overflow_mul_check): Likewise.
3013 * ipa-split.c (consider_split, execute_split_functions):
3014 * loop-unroll.c (decide_peel_simple):
3015 * optabs.c (emit_cmp_and_jump_insn_1):
3016 * predict.c (maybe_hot_edge_p, probably_never_executed,
3017 predictable_edge_p, probability_reliable_p, gimple_predict_edge,
3018 tree_estimate_probability_driver, estimate_bb_frequencies,
3019 compute_function_frequency, rebuild_frequencies): Likewise.
3020 * profile.c (compute_branch_probabilities): Likewise.
3021 * tree-cfg.c (gimple_account_profile_record): Likewise.
3022 * tree-inline.c (optimize_inline_calls): Likewise.
3024 2013-12-09 David Malcolm <dmalcolm@redhat.com>
3026 * basic-block.h (label_to_block_map): Eliminate macro.
3028 * gimple.c (gimple_set_bb): Replace uses of label_to_block_map with
3029 uses of label_to_block_map_for_fn, making uses of cfun be explicit.
3030 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
3031 (verify_gimple_label): Likewise.
3033 2013-12-09 David Malcolm <dmalcolm@redhat.com>
3035 * basic-block.h (basic_block_info): Eliminate macro.
3037 * cfgrtl.c (rtl_create_basic_block): Replace uses of basic_block_info
3038 with basic_block_info_for_fn, making uses of cfun be explicit.
3039 * tree-cfg.c (build_gimple_cfg, create_bb): Likewise.
3041 2013-12-09 David Malcolm <dmalcolm@redhat.com>
3043 * basic-block.h (BASIC_BLOCK): Eliminate macro.
3045 * alias.c (init_alias_analysis): Eliminate BASIC_BLOCK macro in
3046 favor of uses of BASIC_BLOCK_FOR_FN, making uses of cfun explicit.
3047 * bt-load.c (compute_defs_uses_and_gen, compute_out, link_btr_uses,
3048 block_at_edge_of_live_range_p, migrate_btr_defs): Likewise.
3049 * caller-save.c (insert_one_insn): Likewise.
3050 * cfg.c (debug_bb, get_bb_original, get_bb_copy): Likewise.
3051 * cfgexpand.c (add_scope_conflicts): Likewise.
3052 * cfghooks.c (verify_flow_info): Likewise.
3053 * cfgloop.c (flow_loops_find): Likewise.
3054 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
3055 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
3056 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
3057 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
3058 * cse.c (cse_main): Likewise.
3059 * dce.c (fast_dce): Likewise.
3060 * df-core.c (df_set_blocks, df_worklist_propagate_forward,
3061 df_worklist_propagate_backward, df_worklist_dataflow_doublequeue,
3062 df_bb_replace, df_dump_region): Likewise.
3063 * df-problems.c (df_rd_bb_local_compute, df_lr_bb_local_compute,
3064 df_live_bb_local_compute, df_chain_remove_problem)
3065 df_chain_create_bb, df_word_lr_bb_local_compute, df_note_bb_compute,
3066 df_md_bb_local_compute, df_md_local_compute,
3067 df_md_transfer_function): Likewise.
3068 * df-scan.c (df_scan_blocks, df_reorganize_refs_by_reg_by_insn,
3069 df_reorganize_refs_by_insn, df_bb_refs_collect,
3070 df_record_entry_block_defs, df_update_entry_block_defs,
3071 df_record_exit_block_uses): Likewise.
3072 * dominance.c (nearest_common_dominator_for_set): Likewise.
3073 * gcse.c (hoist_code): Likewise.
3074 * graph.c (draw_cfg_nodes_no_loops): Likewise.
3075 * ipa-inline-analysis.c (param_change_prob,
3076 estimate_function_body_sizes): Likewise.
3077 * ipa-split.c (dominated_by_forbidden): Likewise.
3078 * loop-unroll.c (apply_opt_in_copies): Likewise.
3079 * lower-subreg.c (decompose_multiword_subregs): Likewise.
3080 * lra-lives.c (lra_create_live_ranges): Likewise.
3081 * predict.c (propagate_freq): Likewise.
3082 * regrename.c (regrename_analyze): Likewise.
3083 * regstat.c (regstat_bb_compute_ri, regstat_bb_compute_calls_crossed):
3085 * resource.c (mark_target_live_regs): Likewise.
3086 * sched-ebb.c (ebb_fix_recovery_cfg): Likewise.
3087 * sched-int.h (EBB_FIRST_BB, EBB_LAST_BB): Likewise.
3088 * sched-rgn.c (debug_region, dump_region_dot, too_large,
3089 haifa_find_rgns, extend_rgns, compute_dom_prob_ps, update_live,
3090 propagate_deps, sched_is_disabled_for_current_region_p): Likewise.
3091 * sched-vis.c (debug_bb_n_slim): Likewise.
3092 * sel-sched-ir.c (sel_finish_global_and_expr, verify_backedges,
3093 purge_empty_blocks, sel_remove_loop_preheader): Likewise.
3094 * sel-sched.c (remove_insns_that_need_bookkeeping)
3095 (current_region_empty_p, sel_region_init, simplify_changed_insns):
3097 * trans-mem.c (execute_tm_mark, execute_tm_edges,
3098 tm_memopt_compute_antic, ipa_tm_scan_irr_function): Likewise.
3099 * tree-cfg.c (make_edges, end_recording_case_labels,
3100 label_to_block_fn, gimple_debug_bb, gimple_flow_call_edges_add,
3101 remove_edge_and_dominated_blocks, remove_edge_and_dominated_blocks,
3102 gimple_purge_all_dead_eh_edges,
3103 gimple_purge_all_dead_abnormal_call_edges): Likewise.
3104 * tree-cfgcleanup.c (fixup_noreturn_call,
3105 split_bbs_on_noreturn_calls, cleanup_tree_cfg_1): Likewise.
3106 * tree-inline.c (copy_cfg_body, fold_marked_statements): Likewise.
3107 * tree-into-ssa.c (set_livein_block, prune_unused_phi_nodes,
3108 insert_phi_nodes_for, insert_updated_phi_nodes_for): Likewise.
3109 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
3110 * tree-ssa-live.c (live_worklist): Likewise.
3111 * tree-ssa-loop-manip.c (compute_live_loop_exits, add_exit_phis_var,
3112 find_uses_to_rename, copy_phi_node_args): Likewise.
3113 * tree-ssa-pre.c (compute_antic): Likewise.
3114 * tree-ssa-reassoc.c (update_range_test, optimize_range_tests):
3116 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
3117 * tree-ssa-tail-merge.c (same_succ_hash, same_succ_def::equal,
3118 same_succ_flush_bbs, update_worklist, set_cluster,
3119 same_phi_alternatives, find_clusters_1, apply_clusters,
3120 update_debug_stmts): Likewise.
3121 * tree-ssa-threadupdate.c (mark_threaded_blocks,
3122 thread_through_all_blocks): Likewise.
3123 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
3124 * tree-vrp.c (find_assert_locations): Likewise.
3126 2013-12-09 David Malcolm <dmalcolm@redhat.com>
3128 * basic-block.h (SET_BASIC_BLOCK): Eliminate macro.
3130 * cfg.c (compact_blocks): Replace uses of SET_BASIC_BLOCK
3131 with SET_BASIC_BLOCK_FOR_FN, making use of cfun explicit.
3132 (expunge_block): Likewise.
3133 * cfgrtl.c (create_basic_block_structure): Likewise.
3134 * df-core.c (df_compact_blocks, df_bb_replace): Likewise.
3135 * sel-sched.c (create_block_for_bookkeeping): Likewise.
3136 * tree-cfg.c (create_bb): Likewise.
3138 2013-12-09 David Malcolm <dmalcolm@redhat.com>
3140 * basic-block.h (profile_status_for_function): Rename to...
3141 (profile_status_for_fn): ...this.
3143 * cfg.c (check_bb_profile): Update for renaming.
3144 * cgraphbuild.c (compute_call_stmt_bb_frequency): Likewise.
3145 * lto-streamer-in.c (input_cfg): Likewise.
3146 * lto-streamer-out.c (output_cfg): Likewise.
3147 * predict.c (maybe_hot_frequency_p, maybe_hot_count_p,
3148 maybe_hot_bb_p, probably_never_executed)
3149 (handle_missing_profiles): Likewise.
3150 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
3151 * tree-inline.c (copy_bb, initialize_cfun): Likewise.
3153 2013-12-09 David Malcolm <dmalcolm@redhat.com>
3155 * basic-block.h (label_to_block_map_for_function): Rename to...
3156 (label_to_block_map_for_fn): ...this.
3158 * lto-streamer-in.c (input_cfg): Update for renaming.
3159 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
3161 2013-12-09 David Malcolm <dmalcolm@redhat.com>
3163 * basic-block.h (last_basic_block_for_function): Rename to...
3164 (last_basic_block_for_fn): ...this.
3166 * ipa-utils.c (ipa_merge_profiles): Update for renaming of
3167 last_basic_block_for_function to last_basic_block_for_fn.
3168 * lto-streamer-in.c (input_cfg): Likewise.
3169 * lto-streamer-out.c (output_cfg): Likewise.
3170 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
3171 * tree-sra.c (propagate_dereference_distances, ipa_early_sra):
3174 2013-12-09 David Malcolm <dmalcolm@redhat.com>
3176 * basic-block.h (basic_block_info_for_function): Rename to...
3177 (basic_block_info_for_fn): ...this.
3178 (BASIC_BLOCK_FOR_FUNCTION): Rename to...
3179 (BASIC_BLOCK_FOR_FN): ...this.
3180 (SET_BASIC_BLOCK_FOR_FUNCTION): Rename to...
3181 (SET_BASIC_BLOCK_FOR_FN): ...this.
3183 * gimple-streamer-in.c (input_phi, input_bb): Update for renaming
3184 of BASIC_BLOCK_FOR_FUNCTION to BASIC_BLOCK_FOR_FN.
3185 * ipa-utils.c (ipa_merge_profiles): Likewise.
3186 * lto-streamer-in.c (make_new_block): Update for renaming of
3187 SET_BASIC_BLOCK_FOR_FUNCTION to SET_BASIC_BLOCK_FOR_FN.
3188 (input_cfg): Update for renamings.
3189 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
3190 (dump_function_to_file): Update for renaming of
3191 basic_block_info_for_function to basic_block_info_for_fn.
3193 2013-12-09 Richard Biener <rguenther@suse.de>
3196 * tree-ssa-structalias.c (set_union_with_increment): Remove
3198 (do_complex_constraint): Call set_union_with_increment with
3199 the solution delta, not the full solution.
3200 (make_transitive_closure_constraints): Merge the two constraints.
3202 2013-12-09 Richard Earnshaw <rearnsha@arm.com>
3204 * arm.c (mem_ok_for_ldrd_strd): Rename first argument as MEM. Do
3205 more address validation checks.
3207 2013-12-09 Marek Polacek <polacek@redhat.com>
3210 * vtable-verify.c (verify_bb_vtables): Check the return value
3211 of gimple_call_fn. Use is_gimple_call instead of gimple_code.
3213 2013-12-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3215 * config/arm/arm.md (generic_sched): Add cortexa12.
3216 (generic_vfp): Likewise.
3217 * config/arm/arm.c (cortexa12_extra_costs): New cost table.
3218 (arm_cortex_a12_tune): New tuning struct.
3219 * config/arm/arm-cores.def: Add cortex-a12.
3220 * config/arm/arm-tables.opt: Regenerate.
3221 * config/arm/arm-tune.md: Likewise.
3222 * config/arm/bpabi.h: Add cortex-a12.
3223 * doc/invoke.texi: Document -mcpu=cortex-a12.
3225 2013-12-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3227 * doc/install.texi (Prerequisites): Explicitly mention C library
3228 and its headers for multilib builds.
3230 2013-12-08 Oleg Endo <olegendo@gcc.gnu.org>
3234 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
3235 OPT_mcbranchdi entry.
3236 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Mark as undocumented and
3238 * config/sh/sh.c (sh_option_override): Initialize TARGET_CBRANCHDI4
3239 and TARGET_CMPEQDI_T variables.
3240 * doc/invoke.texi (SH options): Undocument -mcbranchdi and -mcmpeqdi.
3242 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
3244 * config/linux.h: Fix typo in a comment.
3246 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
3248 * config.gcc (*linux*): Split libc selection from Android support.
3249 Add libc selection to all *linux* targets. Add Android support to
3250 architectures that support it.
3251 (arm*-*-linux-*, i[34567]86-*-linux*, x86_64-*-linux*,)
3252 (mips*-*-linux*): Add Android support.
3254 2013-12-07 Alexander Ivchenko <alexander.ivchenko@intel.com>
3255 Maxim Kuvyrkov <maxim@kugelworks.com>
3257 * config/bfin/uclinux.h, config/c6x/uclinux-elf.h,
3258 * config/lm32/uclinux-elf.h, config/m68k/uclinux.h,
3259 * config/moxie/uclinux.h (TARGET_LIBC_HAS_FUNCTION): Move definitions
3261 * config/linux-android.h (TARGET_HAS_IFUNC_P): Move definition
3263 * config/linux.h (TARGET_LIBC_HAS_FUNCTION, TARGET_HAS_IFUNC_P):
3264 Define appropriately for Linux and uClinux targets.
3266 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
3268 * config/linux.c (linux_has_ifunc_p): Use correct test.
3270 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
3272 * config/linux.c (linux_android_has_ifunc_p): Rename to
3274 (linux_android_libc_has_function): Rename to linux_libc_has_function.
3275 * config/linux-protos.h (linux_android_has_ifunc_p,)
3276 (linux_android_libc_has_function): Update declarations.
3277 * config/linux.h, config/linux-android.h, config/alpha/linux.h,
3278 * config/rs6000/linux.h, config/rs6000/linux64.h: Update.
3280 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
3282 * linux-android.c: Rename to linux.c.
3283 * t-linux-android: Rename to t-linux. Update references
3285 * config.gcc: Update references to t-linux-android and linux-android.o.
3287 2013-12-07 Alan Modra <amodra@gmail.com>
3289 * config/rs6000/rs6000.md (bswapdi2_32bit): Remove ?? from r->r
3292 2013-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
3294 * config.gcc (microblaze*-*-rtems*): Add TARGET_BIG_ENDIAN_DEFAULT.
3296 2013-12-06 Vladimir Makarov <vmakarov@redhat.com>
3298 * config/rs6000/rs600.md (*bswapdi2_64bit): Remove ?? from the
3301 2013-12-06 Caroline Tice <cmtice@google.com>
3303 Submitting patch from Stephen Checkoway, s@cs.jhu.edu
3304 * vtable-verify.c (verify_bb_vtables): Replace all uses of verified
3305 vtable pointer with the results of the verification call, rather than
3306 only the uses in the next statement.
3308 2013-12-06 Andrew Pinski <apinski@cavium.com>
3311 * config/aarch64/aarch64.md (trap): New pattern.
3313 2013-12-06 Jakub Jelinek <jakub@redhat.com>
3315 PR tree-optimization/59388
3316 * tree-ssa-reassoc.c (update_range_test): If op == range->exp,
3317 gimplify tem after stmt rather than before it.
3319 * tree-data-ref.c (struct data_ref_loc_d): Replace pos field with ref.
3320 (get_references_in_stmt): Don't record operand addresses, but
3321 operands themselves.
3322 (find_data_references_in_stmt, graphite_find_data_references_in_stmt):
3323 Adjust for the pos -> ref change.
3325 2013-12-06 H.J. Lu <hongjiu.lu@intel.com>
3327 * config.gcc: Change --with-cpu=ia to --with-cpu=intel.
3329 * config/i386/i386.c (cpu_names): Replace "ia" with "intel".
3330 (processor_alias_table): Likewise.
3331 (ix86_option_override_internal): Likewise.
3332 * config/i386/i386.h (target_cpu_default): Replace
3333 TARGET_CPU_DEFAULT_ia with TARGET_CPU_DEFAULT_intel.
3335 * doc/invoke.texi: Replace -mtune=ia with -mtune=intel.
3337 2013-12-06 Uros Bizjak <ubizjak@gmail.com>
3340 * config/i386/i386.c (type_natural_mode): Properly handle
3341 size 8 for !TARGET_64BIT.
3343 2013-12-06 Trevor Saunders <tsaunders@mozilla.com>
3345 * tree-ssa-pre.c (compute_antic_aux): Remove redundant call to
3348 2013-12-06 Ian Bolton <ian.bolton@arm.com>
3349 Mark Mitchell <mark@codesourcery.com>
3352 * config/arm/arm.md (trap): New pattern.
3353 * config/arm/types.md: Added a type for trap.
3355 2013-12-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
3357 * expr.c (expand_assignment): Update bitregion_start and bitregion_end.
3359 2013-12-06 Eric Botcazou <ebotcazou@adacore.com>
3362 * config/sparc/sparc.h (SPARC_LOW_FE_EXCEPT_VALUES): Define.
3363 * config/sparc/sol2.h (SPARC_LOW_FE_EXCEPT_VALUES): Redefine.
3364 * config/sparc/sparc.c (TARGET_INIT_BUILTINS): Move around.
3365 (TARGET_BUILTIN_DECL): Define.
3366 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Likewise.
3367 (sparc32_initialize_trampoline): Adjust call to gen_flush.
3368 (enum sparc_builtins): New enumeral type.
3369 (sparc_builtins): New static array.
3370 (sparc_builtins_icode): Likewise.
3371 (def_builtin): Accept a separate icode and save the result.
3372 (def_builtin_const): Likewise.
3373 (sparc_fpu_init_builtins): New function.
3374 (sparc_vis_init_builtins): Pass the builtin code.
3375 (sparc_init_builtins): Call it if TARGET_FPU.
3376 (sparc_builtin_decl): New function.
3377 (sparc_expand_builtin): Deal with SPARC_BUILTIN_{LD,ST}FSR.
3378 (sparc_handle_vis_mul8x16): Use the builtin code.
3379 (sparc_fold_builtin): Likewise. Deal with SPARC_BUILTIN_{LD,ST}FSR
3380 and SPARC_BUILTIN_PDISTN.
3381 (compound_expr): New helper function.
3382 (sparc_atomic_assign_expand_fenv): New function.
3383 * config/sparc/sparc.md (unspecv): Reorder values, add UNSPECV_LDFSR
3385 (flush, flushdi): Merge into single pattern.
3386 (ldfsr): New instruction.
3389 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
3391 * asan.c: Remove struct tags when referring to class varpool_node.
3392 * cgraph.h: Likewise.
3393 * cgraphbuild.c: Likewise.
3394 * cgraphunit.c: Likewise.
3395 * dbxout.c: Likewise.
3396 * dwarf2out.c: Likewise.
3397 * gimple-fold.c: Likewise.
3398 * ipa-devirt.c: Likewise.
3399 * ipa-ref-inline.h: Likewise.
3400 * ipa-ref.h: Likewise.
3401 * ipa-reference.c: Likewise.
3402 * ipa-utils.c: Likewise.
3404 * lto-cgraph.c: Likewise.
3405 * lto-streamer-out.c: Likewise.
3406 * lto-streamer.h: Likewise.
3407 * passes.c: Likewise.
3408 * toplev.c: Likewise.
3409 * tree-eh.c: Likewise.
3410 * tree-emutls.c: Likewise.
3411 * tree-pass.h: Likewise.
3412 * tree-ssa-structalias.c: Likewise.
3413 * tree-vectorizer.c: Likewise.
3415 * varasm.c: Likewise.
3416 * varpool.c: Likewise.
3418 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
3420 * cgraphunit.c: Remove struct tags when referring to class
3421 ipa_opt_pass_d or class opt_pass.
3422 * function.h: Likewise.
3423 * lto-cgraph.c: Likewise.
3424 * pass_manager.h: Likewise.
3425 * passes.c: Likewise.
3426 * tree-pass.h: Likewise.
3428 2013-12-06 Richard Biener <rguenther@suse.de>
3430 PR tree-optimization/59058
3431 * tree-vectorizer.h (struct _loop_vec_info): Add num_itersm1 member.
3432 (LOOP_VINFO_NITERSM1): New macro.
3433 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Express
3434 the vector loop entry test in terms of scalar latch executions.
3435 (vect_do_peeling_for_alignment): Update LOOP_VINFO_NITERSM1.
3436 * tree-vect-loop.c (vect_get_loop_niters): Also return the
3437 number of latch executions.
3438 (new_loop_vec_info): Initialize LOOP_VINFO_NITERSM1.
3439 (vect_analyze_loop_form): Likewise.
3440 (vect_generate_tmps_on_preheader): Compute the number of
3441 vectorized iterations differently.
3443 2013-12-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3445 * config/score/score.c (score_force_temporary): Delete function.
3446 (score_split_symbol): Ditto.
3447 * config/score/score.h (ASM_OUTPUT_ADDR_DIFF_ELT): Add extra
3448 parentheses to silence ambiguity warning and reindent.
3450 2013-12-05 Marek Polacek <polacek@redhat.com>
3452 * doc/invoke.texi: Document -fsanitize=signed-integer-overflow.
3454 2013-12-05 H.J. Lu <hongjiu.lu@intel.com>
3456 * config.gcc: Support --with-cpu=ia.
3458 * config/i386/i386.c (cpu_names): Add "ia".
3459 (processor_alias_table): Likewise.
3460 (ix86_option_override_internal): Disallow -march=ia.
3461 * config/i386/i386.h (target_cpu_default): Add TARGET_CPU_DEFAULT_ia.
3463 * doc/invoke.texi: Document -mtune=ia.
3465 2013-12-05 Vladimir Makarov <vmakarov@redhat.com>
3467 PR rtl-optimization/59317
3468 * lra-constraints.c (in_class_p): Don't ignore insn with constant
3471 2013-12-05 Martin Jambor <mjambor@suse.cz>
3474 * ipa-prop.c (ipa_modify_formal_parameters): Create decls of
3475 non-BLKmode in their naturally aligned type.
3477 2013-12-05 Marek Polacek <polacek@redhat.com>
3481 * ubsan.c: Include rtl.h and expr.h.
3482 (ubsan_encode_value): Add new parameter. If expanding, assign
3483 a stack slot for DECL_RTL of the temporary and call expand_assignment.
3484 Handle BOOLEAN_TYPE and ENUMERAL_TYPE.
3485 (ubsan_build_overflow_builtin): Adjust ubsan_encode_value call.
3486 * ubsan.h (ubsan_encode_value): Adjust declaration.
3487 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Move
3488 ubsan_build_overflow_builtin above expand_normal call. Surround
3489 this call with push_temp_slots and pop_temp_slots.
3490 (ubsan_expand_si_overflow_neg_check): Likewise.
3491 (ubsan_expand_si_overflow_mul_check): Likewise.
3493 2013-12-05 Yufeng Zhang <yufeng.zhang@arm.com>
3495 * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Guard
3496 the get_alternative_base call with flag_expensive_optimizations.
3497 (alloc_cand_and_find_basis): Likewise.
3499 2013-12-05 Tejas Belagod <tejas.belagod@arm.com>
3501 * rtlanal.c (set_noop_p): Return nonzero in case of redundant
3502 vec_select for overlapping register lanes.
3504 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
3506 * config/i386/i386.c (ix86_expand_builtin): Generate
3507 reg for readflags built-in when optimizing.
3508 * config/i386/i386.md (*pushfl<mode>): Rename to ...
3509 (pushfl<mode>2): This. Fix iterator.
3510 (*popfl<mode>): Rename to ...
3511 (*popfl<mode>1): This. Fix iterator.
3513 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
3515 * config/i386/i386.c (IX86_BUILTIN_READ_FLAGS): New.
3516 (IX86_BUILTIN_WRITE_FLAGS): Ditto.
3517 (ix86_init_mmx_sse_builtins): Define
3518 __builtin_ia32_writeeflags_u32, __builtin_ia32_writeeflags_u64,
3519 __builtin_ia32_readeflags_u32, __builtin_ia32_readeflags_u64.
3520 (ix86_expand_builtin): Expand them.
3521 * config/i386/ia32intrin.h (__readeflags): New.
3522 (__writeeflags): Ditto.
3523 * config/i386/i386.md (*pushfl<mode>): Ditto.
3524 (*popfl<mode>1): Ditto.
3526 2013-12-05 Richard Biener <rguenther@suse.de>
3528 PR tree-optimization/59374
3529 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
3530 Commonize known and unknown dependence case fixing the allowed
3531 read-write dependence case and dropping code that should not matter.
3533 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
3535 * config/ia64/ia64.md (prologue_allocate_stack): Block auto-
3536 generation of predicated version.
3537 (epilogue_deallocate_stack): Ditto.
3538 (prologue_allocate_stack_pr): Add explicit predicated version.
3539 (epilogue_deallocate_stack_pr): Ditto.
3540 * config/ia64/ia64.c (ia64_single_set): Use explicit version.
3542 2013-12-05 Alan Modra <amodra@gmail.com>
3544 * configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
3546 <recursive call for build != host>: Clear GMPINC. Don't bother
3549 2013-12-04 Jakub Jelinek <jakub@redhat.com>
3550 Marek Polacek <polacek@redhat.com>
3552 * opts.c (common_handle_option): Handle
3553 -fsanitize=signed-integer-overflow.
3554 * config/i386/i386.md (addv<mode>4, subv<mode>4, mulv<mode>4,
3555 negv<mode>3, negv<mode>3_1): Define expands.
3556 (*addv<mode>4, *subv<mode>4, *mulv<mode>4, *negv<mode>3): Define insns.
3557 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW,
3558 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW,
3559 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW,
3560 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW): Define.
3561 * ubsan.h (PROB_VERY_UNLIKELY, PROB_EVEN, PROB_VERY_LIKELY,
3562 PROB_ALWAYS): Define.
3563 (ubsan_build_overflow_builtin): Declare.
3564 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Add folding of
3566 * ubsan.c (PROB_VERY_UNLIKELY): Don't define here.
3567 (ubsan_build_overflow_builtin): New function.
3568 (instrument_si_overflow): Likewise.
3569 (ubsan_pass): Add signed integer overflow checking.
3570 (gate_ubsan): Enable the pass also when SANITIZE_SI_OVERFLOW.
3571 * flag-types.h (enum sanitize_code): Add SANITIZE_SI_OVERFLOW.
3572 * internal-fn.c: Include ubsan.h and target.h.
3573 (ubsan_expand_si_overflow_addsub_check): New function.
3574 (ubsan_expand_si_overflow_neg_check): Likewise.
3575 (ubsan_expand_si_overflow_mul_check): Likewise.
3576 (expand_UBSAN_CHECK_ADD): Likewise.
3577 (expand_UBSAN_CHECK_SUB): Likewise.
3578 (expand_UBSAN_CHECK_MUL): Likewise.
3579 * fold-const.c (fold_binary_loc): Don't fold A + (-B) -> A - B and
3580 (-A) + B -> B - A when doing the signed integer overflow checking.
3581 * internal-fn.def (UBSAN_CHECK_ADD, UBSAN_CHECK_SUB, UBSAN_CHECK_MUL):
3583 * tree-vrp.c (extract_range_basic): Handle internal calls.
3584 * optabs.def (addv4_optab, subv4_optab, mulv4_optab, negv4_optab): New
3586 * asan.c: Include predict.h.
3587 (PROB_VERY_UNLIKELY, PROB_ALWAYS): Don't define here.
3588 * predict.c: Move the PROB_* macros...
3589 * predict.h (enum br_predictor): ...here.
3590 (PROB_LIKELY, PROB_UNLIKELY): Define.
3591 * trans-mem.c: Include predict.h.
3592 (PROB_VERY_UNLIKELY, PROB_ALWAYS, PROB_VERY_LIKELY,
3593 PROB_LIKELY, PROB_UNLIKELY): Don't define here.
3595 2013-12-04 Jeff Law <law@redhat.com>
3597 * common.opt: Split up -fisolate-erroneous-paths into
3598 -fisolate-erroneous-paths-dereference and
3599 -fisolate-erroneous-paths-attribute.
3600 * invoke.texi: Corresponding changes.
3601 * gimple.c (infer_nonnull_range): Add and use new arguments to control
3602 what kind of statements can be used to infer a non-null range.
3603 * gimple.h (infer_nonnull_range): Update prototype.
3604 * tree-vrp.c (infer_value_range): Corresponding changes.
3605 * opts.c (default_options_table): Update due to option split.
3606 * gimple-ssa-isolate-paths.c: Fix trailing whitespace.
3607 (find_implicit_erroneous_behaviour): Pass additional arguments
3608 to infer_nonnull_range.
3609 (find_explicit_erroneous_behaviour): Similarly.
3610 (gate_isolate_erroneous_paths): Check both of the new options.
3612 2013-12-04 Jeff Law <law@redhat.com>
3614 * expr.c (expand_assignment): Update comments.
3616 2013-12-04 Tobias Burnus <burnus@net-b.de>
3619 * lto-streamer.h (LTO_tags): Add LTO_namelist_decl_ref.
3620 * tree.def (NAMELIST_DECL): Add.
3621 * tree.h (NAMELIST_DECL_ASSOCIATED_DECL): New macro.
3622 * tree.c (initialize_tree_contains_struct): Add asserts for it.
3623 * dwarf2out.c (gen_namelist_decl): New function.
3624 (gen_decl_die, dwarf2out_decl): Call it.
3625 (dwarf2out_imported_module_or_decl_1): Handle NAMELIST_DECL.
3626 * lto-streamer-in.c (lto_input_tree_ref): Handle NAMELIST_DECL.
3627 (lto_input_tree_ref, lto_input_tree_1): Update lto_tag_check_range
3629 * lto-streamer-out.c (lto_output_tree_ref): Handle NAMELIST_DECL.
3631 2013-12-03 Xinliang David Li <davidxl@google.com>
3633 * tree-ssa-structalias.c (constraint_set_union): Change return type
3635 (merge_node_constraints): Ditto.
3636 (unify_nodes): Update changed set when constraints set changes.
3638 2013-12-04 H.J. Lu <hongjiu.lu@intel.com>
3640 * configure.ac: Append gdbasan.in to .gdbinit if CFLAGS contains
3642 * configure: Regenerated.
3644 * gdbasan.in: New file.
3646 2013-12-04 Jakub Jelinek <jakub@redhat.com>
3648 PR rtl-optimization/58726
3649 * combine.c (force_to_mode): Fix comment typo. Don't destructively
3650 modify x for ROTATE, ROTATERT and IF_THEN_ELSE.
3652 2013-12-04 Jakub Jelinek <jakub@redhat.com>
3653 Uros Bizjak <ubizjak@gmail.com>
3656 * config/i386/i386.c (ix86_legitimate_combined_insn): If for
3657 !TARGET_AVX there is misaligned MEM operand with vector mode
3658 and get_attr_ssememalign is 0, return false.
3659 (ix86_expand_special_args_builtin): Add get_pointer_alignment
3660 computed alignment and for non-temporal loads/stores also
3661 at least GET_MODE_ALIGNMENT as MEM_ALIGN.
3662 * config/i386/sse.md
3663 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
3664 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
3665 <sse2_avx_avx512f>_loaddqu<mode><mask_name>,
3666 <sse2_avx_avx512f>_storedqu<mode>, <sse3>_lddqu<avxsizesuffix>,
3667 sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
3668 sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
3669 *vec_interleave_highv2df, *vec_interleave_lowv2df,
3670 *vec_extractv2df_1_sse, sse2_movsd, sse4_1_<code>v8qiv8hi2,
3671 sse4_1_<code>v4qiv4si2, sse4_1_<code>v4hiv4si2,
3672 sse4_1_<code>v2qiv2di2, sse4_1_<code>v2hiv2di2,
3673 sse4_1_<code>v2siv2di2, sse4_2_pcmpestr, *sse4_2_pcmpestr_unaligned,
3674 sse4_2_pcmpestri, sse4_2_pcmpestrm, sse4_2_pcmpestr_cconly,
3675 sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned, sse4_2_pcmpistri,
3676 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add ssememalign attribute.
3677 * config/i386/i386.md (ssememalign): New define_attr.
3679 2013-12-04 Jakub Jelinek <jakub@redhat.com>
3681 PR tree-optimization/59355
3682 * ipa-devirt.c (gate_ipa_devirt): Return false if !flag_devirtualize.
3683 * opts.c (common_handle_option): Fix comment spelling.
3685 2013-12-04 Yufeng Zhang <yufeng.zhang@arm.com>
3687 * gimple-ssa-strength-reduction.c: Include tree-affine.h.
3688 (name_expansions): New static variable.
3689 (alt_base_map): Ditto.
3690 (get_alternative_base): New function.
3691 (find_basis_for_candidate): For CAND_REF, optionally call
3692 find_basis_for_base_expr with the returned value from
3693 get_alternative_base.
3694 (record_potential_basis): Add new parameter 'base' of type 'tree';
3695 add an assertion of non-NULL base; use base to set node->base_expr.
3696 (alloc_cand_and_find_basis): Update; call record_potential_basis
3697 for CAND_REF with the returned value from get_alternative_base.
3698 (replace_refs): Dump details on the replacing.
3699 (execute_strength_reduction): Call pointer_map_create for
3700 alt_base_map; call free_affine_expand_cache with &name_expansions.
3702 2013-12-03 Wei Mi <wmi@google.com>
3704 PR rtl-optimization/59020
3705 * sched-deps.c (try_group_insn): Move it from haifa-sched.c to here.
3706 (sched_analyze_insn): Call try_group_insn.
3707 (sched_analyze): Cleanup SCHED_GROUP_P before start the analysis.
3708 * haifa-sched.c (try_group_insn): Moved to sched-deps.c.
3709 (group_insns_for_macro_fusion): Removed.
3710 (sched_init): Remove calling group_insns_for_macro_fusion.
3712 2013-12-03 Peter Bergner <bergner@vnet.ibm.com>
3714 * config/rs6000/htmintrin.h (_TEXASR_INSTRUCTION_FETCH_CONFLICT): Fix
3716 (_TEXASRU_INSTRUCTION_FETCH_CONFLICT): Likewise.
3718 2013-12-03 Vladimir Makarov <vmakarov@redhat.com>
3720 * config/aarch64/aarch64.c (aarch64_frame_pointer_required): Check
3722 (aarch64_can_eliminate): Don't check elimination source when
3723 frame_pointer_required is false.
3725 2013-12-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3727 * config/avr/avr.c (avr_option_override): Warn if asked to generate
3728 position independent code.
3729 * config/avr/avr.h: Modify LINK_SPEC to reject -shared.
3731 2013-12-03 H.J. Lu <hongjiu.lu@intel.com>
3734 * config/i386/i386.c (emit_memset): Adjust destination address
3736 (expand_setmem_epilogue): Likewise.
3738 2013-12-03 Marek Polacek <polacek@redhat.com>
3741 * calls.c (expand_call): Disallow passing huge arguments by value.
3743 2013-12-03 Jakub Jelinek <jakub@redhat.com>
3745 PR tree-optimization/59362
3746 * tree-object-size.c (object_sizes): Change into array of
3747 vec<unsigned HOST_WIDE_INT>.
3748 (compute_builtin_object_size): Check computed bitmap for
3749 non-NULL instead of object_sizes. Call safe_grow on object_sizes
3750 vector if new SSA_NAMEs appeared.
3751 (init_object_sizes): Check computed bitmap for non-NULL.
3752 Call safe_grow on object_sizes elements instead of initializing
3754 (fini_object_sizes): Call release on object_sizes elements, don't
3758 * gimplify.c (nonlocal_vla_vars): New variable.
3759 (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
3760 nonlocal_vla_vars chain.
3761 (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
3762 if outer_bind has DECL_INITIAL (current_function_decl) block.
3765 * dojump.c (save_pending_stack_adjust, restore_pending_stack_adjust):
3767 * expr.h (struct saved_pending_stack_adjust): New type.
3768 (save_pending_stack_adjust, restore_pending_stack_adjust): New
3770 * optabs.c (emit_conditional_move): Call save_pending_stack_adjust
3771 and get_last_insn before do_pending_stack_adjust, call
3772 restore_pending_stack_adjust after delete_insns_since.
3773 * expr.c (expand_expr_real_2): Don't call do_pending_stack_adjust
3774 before calling emit_conditional_move.
3775 * expmed.c (expand_sdiv_pow2): Likewise.
3776 * calls.c (expand_call): Use {save,restore}_pending_stack_adjust.
3778 2013-12-02 Jeff Law <law@redhat.com>
3780 PR tree-optimization/59322
3781 * tree-ssa-threadedge.c (create_edge_and_update_destination_phis):
3782 Remove code which copied jump threading paths.
3784 2013-12-02 Sriraman Tallam <tmsriram@google.com>
3787 * config/i386/i386.opt (ix86_arch_string): Mark this variable
3788 for saving in cl_target_option.
3789 (ix86_tune_string): Ditto.
3790 (ix86_cmodel): Ditto.
3792 (ix86_asm_dialect): Ditto.
3793 (ix86_branch_cost): Ditto.
3794 (ix86_dump_tunes): Ditto.
3795 (ix86_force_align_arg_pointer): Ditto.
3796 (ix86_force_drap): Ditto.
3797 (ix86_incoming_stack_boundary_arg): Ditto.
3798 (ix86_pmode): Ditto.
3799 (ix86_preferred_stack_boundary_arg): Ditto.
3800 (ix86_recip_name): Ditto.
3801 (ix86_regparm): Ditto.
3802 (ix86_section_threshold): Ditto.
3803 (ix86_sse2avx): Ditto.
3804 (ix86_stack_protector_guard): Ditto.
3805 (ix86_stringop_alg): Ditto.
3806 (ix86_tls_dialect): Ditto.
3807 (ix86_tune_ctrl_string): Ditto.
3808 (ix86_tune_memcpy_strategy): Ditto.
3809 (ix86_tune_memset_strategy): Ditto.
3810 (ix86_tune_no_default): Ditto.
3811 (ix86_veclibabi_type): Ditto.
3812 * config/i386/i386.c (function_specific_save): Save the above
3813 variables in gcc_options to cl_target_option.
3814 (function_specific_restore): Do the reverse done in
3815 function_specific_save.
3816 (ix86_valid_target_attribute_tree): Change ix86_arch_string
3817 and ix86_tune_string to use the opts structure.
3818 (ix86_option_override_internal):Change
3819 ix86_incoming_stack_boundary_arg to
3820 opts->x_ix86_incoming_stack_boundary_arg
3822 2013-12-02 Joern Rennecke <joern.rennecke@embecosm.com>
3824 * config/epiphany/epiphany.h: Wrap rtl_opt_pass declarations
3825 in #ifndef IN_LIBGCC2 / #endif.
3827 2013-12-02 Jakub Jelinek <jakub@redhat.com>
3829 PR tree-optimization/59358
3830 * tree-vrp.c (union_ranges): To check for the partially overlapping
3831 ranges or adjacent ranges, also compare *vr0max with vr1max.
3833 2013-12-02 Sterling Augustine  <saugustine@google.com>
3835 * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
3836 when there isn't a skeleton die.
3838 2013-12-02 Marek Polacek <polacek@redhat.com>
3841 * doc/invoke.texi: Document -fsanitize=return.
3843 2013-12-02 Tobias Burnus <burnus@net-b.de>
3844 Manuel López-Ibáñez <manu@gcc.gnu.org>
3847 * doc/invoke.texi: Add missing @opindex.
3848 (-fsanitize=): Use @gcctabopt instead of @itemize.
3850 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3852 Fix C++0x memory model for unaligned fields in packed, aligned(4)
3853 structures with -fno-strict-volatile-bitfields on STRICT_ALIGNMENT
3854 targets like arm-none-eabi.
3855 * expr.c (expand_assignment): Handle normal fields like bit regions.
3857 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3860 * function.c (invoke_set_current_function_hook): Call
3861 targetm.set_current_function after setting this_fn_optabs.
3863 2013-12-02 Richard Biener <rguenther@suse.de>
3865 PR tree-optimization/59139
3866 * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
3867 code in get_val_for.
3868 (get_val_for): Use gcc_checking_asserts.
3870 2013-12-02 Richard Biener <rguenther@suse.de>
3873 * tree-ssa-operands.c (opf_implicit): Remove.
3874 (opf_address_taken): New flag.
3875 (get_expr_operands): Remove early out, pass down opf_address_taken for
3876 ADDR_EXPRs, add a use operand only for non-opf_address_taken bases.
3877 (get_indirect_ref_operands): Rename to ...
3878 (get_mem_ref_operands): ... this.
3879 (get_asm_expr_operands): Rename to ...
3880 (get_asm_stmt_operands): ... this.
3882 2013-12-02 Yuri Rumyantsev <ysrumyan@gmail.com>
3884 * ipa-inline.c (check_callers): Add missed pointer de-reference.
3886 2013-12-02 Eric Botcazou <ebotcazou@adacore.com>
3888 PR tree-optimization/59356
3889 * tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the
3890 offset computation using the precision of the index type.
3892 2013-12-02 Yvan Roux <yvan.roux@linaro.org>
3895 * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
3896 when rclass is GENERAL_REGS.
3898 2013-12-02 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3900 * loop-unroll.c (decide_unroll_constant_iterations): Check macro
3901 TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
3903 2013-12-01 Eric Botcazou <ebotcazou@adacore.com>
3905 * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
3908 2013-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
3910 * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
3912 2013-11-30 Paulo Matos <pmatos@broadcom.com>
3913 Eric Botcazou <ebotcazou@adacore.com>
3915 * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
3916 as applied to nonzero_sign_valid when last_set_mode has less precision
3919 2013-11-30 Tobias Burnus <burnus@net-b.de>
3922 * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
3923 environment variable and link to a list with flags.
3924 (-fsanitize=thread): Ditto and update link.
3926 2013-11-29 Vladimir Makarov <vmakarov@redhat.com>
3928 PR rtl-optimization/59340
3929 * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
3932 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
3934 * lra.c (lra): Set lra_in_progress before check_rtl call.
3935 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
3936 adding clobber regs when LRA is running.
3938 2013-11-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3941 * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
3943 2013-11-29 Richard Biener <rguenther@suse.de>
3946 * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
3947 free_stmt_operands, update_stmt_operands): Add struct function
3949 * tree-ssa-operands.c: Remove uses of cfun, propagate struct
3950 function argument from fini_ssa_operands, verify_ssa_operands,
3951 free_stmt_operands and update_stmt_operands everywhere.
3952 * tree-ssanames.h (release_ssa_name_fn): New.
3953 (release_ssa_name): Inline wrapper around release_ssa_name_fn.
3954 * tree-ssanames.c (release_ssa_name): Rename to ...
3955 (release_ssa_name_fn): ... this and add struct function argument.
3956 * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
3957 (update_stmt_fn): New function.
3958 * tree-cfg.c (move_block_to_fn): Adjust.
3959 * tree-if-conv.c (free_bb_predicate): Likewise.
3960 * tree-ssa.c (verify_ssa): Likewise.
3961 (delete_tree_ssa): Likewise.
3962 * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
3963 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
3964 update_stmt_fn instead of update_stmt.
3966 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
3968 * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
3971 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
3973 * config/arm/arm.md (store_minmaxsi): Use only when
3974 optimize_function_for_size_p.
3976 2013-11-29 Jakub Jelinek <jakub@redhat.com>
3977 Yury Gribov <y.gribov@samsung.com>
3980 * config/gnu-user.h: Removed old code for setting up sanitizer libs.
3981 * gcc.c: Using libsanitizer spec instead of explicit libs.
3983 2013-11-29 Ilya Enkovich <ilya.enkovich@intel.com>
3986 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
3987 * cgraph.h (varpool_node): Add need_bounds_init field.
3988 * lto-cgraph.c (lto_output_varpool_node): Output
3989 need_bounds_init value.
3990 (input_varpool_node): Read need_bounds_init value.
3991 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
3994 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
3995 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
3996 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
3997 (gen_type_die_with_usage): Skip pointer bounds.
3998 (dwarf2out_global_decl): Likewise.
4001 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
4002 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
4003 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
4004 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
4005 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
4006 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
4007 (gimple_call_with_bounds_p): New.
4008 (gimple_call_set_with_bounds): New.
4009 (gimple_call_num_nobnd_args): Remove.
4010 (gimple_call_nobnd_arg): Remove.
4011 * tree.h (CALL_WITH_BOUNDS_P): New.
4012 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
4015 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
4016 * common.opt (fcheck-pointer-bounds): Move to ...
4017 * c-family/c.opt: ... here.
4018 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
4019 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
4020 * langhooks.h (lang_hooks): Remove chkp_supported field.
4021 * toplev.c (process_options): Remove chkp_supported check.
4024 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
4025 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
4026 * tree.h (POINTER_BOUNDS_P): New.
4027 (BOUNDED_TYPE_P): New.
4029 (pointer_bounds_type_node): New.
4030 * tree.c (build_common_tree_nodes): Initialize
4031 pointer_bounds_type_node.
4032 * gimple.h (gimple_call_get_nobnd_arg_index): New.
4033 (gimple_call_num_nobnd_args): New.
4034 (gimple_call_nobnd_arg): New.
4035 (gimple_return_retbnd): New.
4036 (gimple_return_set_retbnd): New
4037 * gimple.c (gimple_build_return): Increase number of ops
4038 for return statement.
4039 (gimple_call_get_nobnd_arg_index): New.
4040 * gimple-pretty-print.c (dump_gimple_return): Print second op.
4043 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
4044 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
4045 with "chkp ctor" and "bnd_legacy" attributes.
4046 * gimplify.c (gimplify_init_constructor): Avoid infinite
4047 loop during gimplification of bounds initializer.
4050 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
4051 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
4052 (handle_bnd_legacy): New.
4053 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
4054 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
4058 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
4059 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
4060 (BT_FN_PTR_CONST_PTR): New.
4061 (BT_FN_CONST_PTR_CONST_PTR): New.
4062 (BT_FN_PTR_CONST_PTR_SIZE): New.
4063 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
4064 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
4065 (BT_FN_VOID_CONST_PTR_SIZE): New.
4066 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
4067 * chkp-builtins.def: New.
4068 * builtins.def: include chkp-builtins.def.
4069 (DEF_CHKP_BUILTIN): New.
4070 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
4071 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
4072 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
4073 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
4074 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
4075 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
4076 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
4077 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
4078 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
4079 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
4080 * common.opt (fcheck-pointer-bounds): New.
4081 * toplev.c (process_options): Check Pointer Bounds Checker is
4083 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
4086 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
4087 * target.def (builtin_chkp_function): New.
4088 (chkp_bound_type): New.
4089 (chkp_bound_mode): New.
4090 (fn_abi_va_list_bounds_size): New.
4091 (load_bounds_for_arg): New.
4092 (store_bounds_for_arg): New.
4093 * targhooks.h (default_load_bounds_for_arg): New.
4094 (default_store_bounds_for_arg): New.
4095 (default_fn_abi_va_list_bounds_size): New.
4096 (default_chkp_bound_type): New.
4097 (default_chkp_bound_mode): New.
4098 (default_builtin_chkp_function): New.
4099 * targhooks.c (default_load_bounds_for_arg): New.
4100 (default_store_bounds_for_arg): New.
4101 (default_fn_abi_va_list_bounds_size): New.
4102 (default_chkp_bound_type): New.
4103 (default_chkp_bound_mode); New.
4104 (default_builtin_chkp_function): New.
4105 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
4106 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
4107 (TARGET_STORE_BOUNDS_FOR_ARG): New.
4108 (TARGET_BUILTIN_CHKP_FUNCTION): New.
4109 (TARGET_CHKP_BOUND_TYPE): New.
4110 (TARGET_CHKP_BOUND_MODE): New.
4111 * doc/tm.texi: Regenerated.
4112 * langhooks.h (lang_hooks): Add chkp_supported field.
4113 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
4114 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
4117 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
4118 * config/i386/constraints.md (B): New.
4121 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
4122 * config/i386/i386-modes.def (BND32): New.
4124 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
4125 * config/i386/i386.c (isa_opts): Add mmpx.
4126 (regclass_map): Add bound registers.
4127 (dbx_register_map): Likewise.
4128 (dbx64_register_map): Likewise.
4129 (svr4_dbx_register_map): Likewise.
4131 (ix86_option_override_internal): Support MPX ISA.
4132 (ix86_conditional_register_usage): Support bound registers.
4133 (print_reg): Likewise.
4134 (ix86_code_end): Add MPX bnd prefix.
4135 (output_set_got): Likewise.
4136 (ix86_output_call_insn): Likewise.
4137 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
4138 (ix86_print_operand_punct_valid_p): Likewise.
4139 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
4141 (ix86_class_likely_spilled_p): Add bound regs support.
4142 (ix86_hard_regno_mode_ok): Likewise.
4143 (x86_order_regs_for_local_alloc): Likewise.
4144 (ix86_bnd_prefixed_insn_p): New.
4145 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
4146 (FIXED_REGISTERS): Add bound registers.
4147 (CALL_USED_REGISTERS): Likewise.
4148 (REG_ALLOC_ORDER): Likewise.
4149 (HARD_REGNO_NREGS): Likewise.
4151 (VALID_BND_REG_MODE): New.
4152 (FIRST_BND_REG): New.
4153 (LAST_BND_REG): New.
4154 (reg_class): Add BND_REGS.
4155 (REG_CLASS_NAMES): Likewise.
4156 (REG_CLASS_CONTENTS): Likewise.
4158 (ANY_BND_REG_P): New.
4160 (HI_REGISTER_NAMES): Add bound registers.
4161 * config/i386/i386.md (UNSPEC_BNDMK): New.
4162 (UNSPEC_BNDMK_ADDR): New.
4163 (UNSPEC_BNDSTX): New.
4164 (UNSPEC_BNDLDX): New.
4165 (UNSPEC_BNDLDX_ADDR): New.
4166 (UNSPEC_BNDCL): New.
4167 (UNSPEC_BNDCU): New.
4168 (UNSPEC_BNDCN): New.
4169 (UNSPEC_MPX_FENCE): New.
4172 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
4173 (length_immediate): Likewise.
4174 (prefix_0f): Likewise.
4176 (prefix_rep): Check for bnd prefix.
4177 (length_nobnd): New.
4178 (length): Use length_nobnd if specified.
4183 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
4186 (simple_return_internal): Likewise.
4187 (simple_return_pop_internal): Likewise.
4188 (*indirect_jump): Add MPX bnd prefix.
4189 (*tablejump_1): Likewise.
4190 (simple_return_internal_long): Likewise.
4191 (simple_return_indirect_internal): Likewise.
4195 (*mov<mode>_internal_mpx): New.
4196 (<mode>_<bndcheck>): New.
4197 (*<mode>_<bndcheck>): New.
4202 * config/i386/predicates.md (lea_address_operand): Rename to...
4203 (address_no_seg_operand): ... this.
4204 (address_mpx_no_base_operand): New.
4205 (address_mpx_no_index_operand): New.
4206 (bnd_mem_operator): New.
4207 * config/i386/i386.opt (mmpx): New.
4208 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
4209 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
4212 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
4213 * mode-classes.def (MODE_POINTER_BOUNDS): New.
4214 * tree.def (POINTER_BOUNDS_TYPE): New.
4215 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
4216 (POINTER_BOUNDS_MODE): New.
4217 (make_pointer_bounds_mode): New.
4218 * machmode.h (POINTER_BOUNDS_MODE_P): New.
4219 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
4220 (layout_type): Support POINTER_BOUNDS_TYPE.
4221 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
4222 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
4223 (type_contains_placeholder_1): Likewise.
4224 * tree.h (POINTER_BOUNDS_TYPE_P): New.
4225 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
4226 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
4228 2013-11-29 Richard Biener <rguenther@suse.de>
4231 * tree-cfg.c (verify_expr): Restrict bounds verification of
4232 BIT_FIELD_REF arguments to non-aggregate typed base objects.
4234 2013-11-29 Richard Biener <rguenther@suse.de>
4236 PR tree-optimization/59334
4237 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
4240 2013-11-29 Jakub Jelinek <jakub@redhat.com>
4241 Richard Biener <rguenther@suse.de>
4244 * omp-low.c (simd_clone_create): Return NULL if for definition
4245 !cgraph_function_with_gimple_body_p (old_node). Call cgraph_get_body
4246 before calling cgraph_function_versioning.
4247 (expand_simd_clones): Look for "omp declare simd" attribute first.
4248 Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
4249 Punt if node->global.inlined_to.
4250 (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
4251 Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
4252 * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
4254 2013-11-29 Jakub Jelinek <jakub@redhat.com>
4257 * tree-core.h (enum omp_clause_schedule_kind): Add
4258 OMP_CLAUSE_SCHEDULE_LAST.
4259 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
4260 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
4261 (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
4262 (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
4263 * lto-streamer-out.c (lto_is_streamable): Allow streaming OMP_CLAUSE.
4264 (DFS_write_tree_body): Handle OMP_CLAUSE.
4265 * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New function.
4266 (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
4267 (write_ts_omp_clause_tree_pointers): New function.
4268 (streamer_write_tree_body): Call it for OMP_CLAUSE.
4269 (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
4270 * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New function.
4271 (unpack_value_fields): Call it for OMP_CLAUSE.
4272 (streamer_alloc_tree): Handle OMP_CLAUSE.
4273 (lto_input_ts_omp_clause_tree_pointers): New function.
4274 (streamer_read_tree_body): Call it for OMP_CLAUSE.
4276 2013-11-29 Joseph Myers <joseph@codesourcery.com>
4278 * doc/implement-c.texi: Document C11 implementation-defined
4279 behavior. Refer to -ffp-contract=fast for contraction behavior.
4280 * doc/invoke.texi (-std=c99, std=c11): Update description of
4282 (-std=gnu99): Don't mention as future default.
4283 (-std=gnu11): Mention as intended future default.
4284 * doc/standards.texi: Update descriptions of C99 and C11 support.
4285 Limit statement about C99 facilities for freestanding
4286 implementations to some platforms only.
4288 2013-11-28 Jakub Jelinek <jakub@redhat.com>
4291 * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit HWI hosts.
4293 2013-11-28 Vladimir Makarov <vmakarov@redhat.com>
4296 * ira.h (ira_setup_eliminable_regset): Remove parameter.
4297 * ira.c (ira_setup_eliminable_regset): Ditto. Add
4298 SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
4299 Don't call lra_init_elimination.
4300 (ira): Call ira_setup_eliminable_regset without arguments.
4301 * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
4302 from ira_setup_eliminable_regset call.
4303 * gcse.c (calculate_bb_reg_pressure): Ditto.
4304 * haifa-sched.c (sched_init): Ditto.
4305 * lra.h (lra_init_elimination): Remove the prototype.
4306 * lra-int.h (lra_insn_recog_data): New member sp_offset. Move
4307 used_insn_alternative upper.
4308 (lra_eliminate_regs_1): Add one more parameter.
4309 (lra-eliminate): Ditto.
4310 * lra.c (lra_invalidate_insn_data): Set sp_offset.
4311 (setup_sp_offset): New.
4312 (lra_process_new_insns): Call setup_sp_offset.
4313 (lra): Add argument to lra_eliminate calls.
4314 * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
4315 (get_equiv_with_elimination): New.
4316 (process_addr_reg): Call get_equiv_with_elimination instead of
4317 get_equiv_substitution.
4318 (equiv_address_substitution): Ditto.
4319 (loc_equivalence_change_p): Ditto.
4320 (loc_equivalence_callback, lra_constraints): Ditto.
4321 (curr_insn_transform): Ditto. Print the sp offset
4322 (process_alt_operands): Prevent stack pointer reloads.
4323 (lra_constraints): Remove one argument from lra_eliminate call.
4324 Move it up. Mark used hard regs bfore it. Use
4325 get_equiv_with_elimination instead of get_equiv_substitution.
4326 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
4327 assert for param values combination. Use sp offset. Add argument
4328 to lra_eliminate_regs_1 calls.
4329 (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
4330 (curr_sp_change): New static var.
4331 (mark_not_eliminable): Add parameter. Update curr_sp_change.
4332 Don't prevent elimination to sp if we can calculate its change.
4333 Pass the argument to mark_not_eliminable calls.
4334 (eliminate_regs_in_insn): Add a parameter. Use sp offset. Add
4335 argument to lra_eliminate_regs_1 call.
4336 (update_reg_eliminate): Move calculation of hard regs for spill
4337 lower. Switch off lra_in_progress temporarily to generate regs
4338 involved into elimination.
4339 (lra_init_elimination): Rename to init_elimination. Make it
4340 static. Set up insn sp offset, check the offsets at the end of BBs.
4341 (process_insn_for_elimination): Add parameter. Pass its value to
4342 eliminate_regs_in_insn.
4343 (lra_eliminate): : Add parameter. Pass its value to
4344 process_insn_for_elimination. Add assert for param values
4345 combination. Call init_elimination. Don't update offsets in
4346 equivalence substitutions.
4347 * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
4348 for created stack slot.
4349 (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
4352 2013-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4354 * config/arm/iterators.md (vrint_conds): New int attribute.
4355 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
4356 (smax<mode>3): Likewise.
4357 (smin<mode>3): Likewise.
4359 2013-11-28 Richard Sandiford <rdsandiford@googlemail.com>
4361 * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
4362 * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
4363 * tree-ssanames.h (set_range_info): Add range_type argument.
4364 (duplicate_ssa_name_range_info): Likewise.
4365 * tree-ssanames.c (set_range_info): Take the range type as argument
4366 and store it in SSA_NAME_ANTI_RANGE_P.
4367 (duplicate_ssa_name_range_info): Likewise.
4368 (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
4369 (set_nonzero_bits): Update call to set_range_info.
4370 (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
4371 * tree-ssa-copy.c (fini_copy_prop): Likewise.
4372 * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
4373 (vrp_finalize): Likewise, passing anti-ranges directly.
4375 2013-11-28 Richard Biener <rguenther@suse.de>
4377 PR tree-optimization/59330
4378 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
4379 and fix delayed marking of free calls not necessary.
4381 2013-11-28 Andrew MacLeod <amacleod@redhat.com>
4383 * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
4385 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
4387 2013-11-28 Terry Guo <terry.guo@arm.com>
4389 * config/arm/arm.c (v7m_extra_costs): New table.
4390 (arm_v7m_tune): Use it.
4392 2013-11-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4394 * config/sol2.h (TIME_LIBRARY): Define.
4396 2013-11-28 Richard Biener <rguenther@suse.de>
4399 * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
4400 CONST_DECLs in function context are not indexable.
4402 2013-11-28 Chung-Ju Wu <jasonwucj@gmail.com>
4404 * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
4405 not optimized for size.
4407 2013-11-28 Jakub Jelinek <jakub@redhat.com>
4409 * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
4411 (expand_stack_vars): For -fsanitize=address, use (and set initially)
4412 data->asan_base as base for vars and update asan_alignb.
4413 (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
4414 Pass them to asan_emit_stack_protection.
4415 * asan.c (asan_detect_stack_use_after_return): New variable.
4416 (asan_emit_stack_protection): Add pbase and alignb arguments.
4417 Implement use after return sanitization.
4418 * asan.h (asan_emit_stack_protection): Adjust prototype.
4419 (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
4421 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
4423 * common.opt: Introduced a new option -fsimd-cost-model.
4424 * doc/invoke.texi: Introduced a new openmp-simd warning and
4425 a new -fsimd-cost-model option.
4426 * tree-vectorizer.h (unlimited_cost_model): Interface updated
4427 to rely on the particular loop info.
4428 * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
4429 (vect_peeling_hash_choose_best_peeling): Ditto.
4430 (vect_enhance_data_refs_alignment): Ditto.
4431 * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
4432 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
4433 plus added openmp-simd warining.
4435 2013-11-27 H.J. Lu <hongjiu.lu@intel.com>
4437 PR rtl-optimization/59311
4438 * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
4439 * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
4441 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
4443 * var-tracking.c (track_expr_p): Do not track declarations for parts
4444 of tracked parameters.
4445 (add_stores): Do not track values for tracked parameters passed in
4447 (vt_get_decl_and_offset): Handle PARALLEL.
4448 (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
4450 2013-11-27 Jeff Law <law@redhat.com>
4452 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
4453 clobber the loop structure thread_block was unsuccessful. If
4454 thread_block was unsuccessful, cleanup appropriately.
4456 2013-11-27 Chen Liqin <liqin.gcc@gmail.com>
4458 * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
4459 (score_char_to_class): Likewise.
4461 2013-11-27 Kenneth Zadeck <zadeck@naturalbridge.com>
4463 * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with
4464 the overflow bit set.
4466 2013-11-27 Richard Biener <rguenther@suse.de>
4469 * cgraphbuild.c (build_cgraph_edges): Do not build edges
4471 (rebuild_cgraph_edges): Likewise.
4472 * ipa-inline-analysis.c (estimate_function_body_sizes):
4473 Skip internal calls.
4474 * tree-inline.c (estimate_num_insns): Estimate size of internal
4476 (gimple_expand_calls_inline): Do not try inline-expanding
4478 * lto-streamer-in.c (input_cfg): Stream loop safelen,
4479 force_vect and simduid.
4480 (input_struct_function_base): Stream has_force_vect_loops
4481 and has_simduid_loops.
4482 (input_function): Adjust.
4483 * lto-streamer-out.c (output_cfg): Stream loop safelen,
4484 force_vect and simduid.
4485 (output_struct_function_base): Stream has_force_vect_loops
4486 and has_simduid_loops.
4488 2013-11-27 Kai Tietz <ktietz@redhat.com>
4490 * config/i386/winnt.c (i386_pe_section_type_flags): Use const
4493 2013-11-27 Kugan Vivekanandarajah <kuganv@linaro.org>
4495 * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
4496 * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
4498 2013-11-27 Marek Polacek <polacek@redhat.com>
4501 * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
4502 instead of walk_gimple_op.
4503 (ubsan_pass): Adjust. Call instrument_null only if SANITIZE_NULL.
4505 2013-11-27 Aldy Hernandez <aldyh@redhat.com>
4506 Jakub Jelinek <jakub@redhat.com>
4508 * cgraph.h (enum cgraph_simd_clone_arg_type): New.
4509 (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
4510 (struct cgraph_node): Add simdclone and simd_clones fields.
4511 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
4512 ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
4513 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
4514 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
4515 * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
4516 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
4517 * doc/tm.texi: Regenerated.
4518 * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
4519 * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
4520 attribute is present.
4521 * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
4522 (simd_clone_vector_of_formal_parm_types): New function.
4523 (simd_clone_struct_alloc, simd_clone_struct_copy,
4524 simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
4525 simd_clone_compute_base_data_type, simd_clone_mangle,
4526 simd_clone_create, simd_clone_adjust_return_type,
4527 create_tmp_simd_array, simd_clone_adjust_argument_types,
4528 simd_clone_init_simd_arrays): New functions.
4529 (struct modify_stmt_info): New type.
4530 (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
4531 simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
4533 (pass_data_omp_simd_clone): New variable.
4534 (pass_omp_simd_clone): New class.
4535 (make_pass_omp_simd_clone): New function.
4536 * passes.def (pass_omp_simd_clone): New.
4537 * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
4538 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target hooks.
4539 * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
4540 * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
4541 * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
4542 * tree-pass.h (make_pass_omp_simd_clone): New prototype.
4543 * tree-vect-data-refs.c: Include cgraph.h.
4544 (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
4545 and find_data_references_in_bb, if find_data_references_in_stmt
4546 fails, still allow calls to #pragma omp declare simd functions
4547 in #pragma omp simd loops unless they contain data references among
4548 the call arguments or in lhs.
4549 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
4551 (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls
4553 * tree-vectorizer.h (enum stmt_vec_info_type): Add
4554 call_simd_clone_vec_info_type.
4555 (struct _stmt_vec_info): Add simd_clone_fndecl field.
4556 (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
4557 * tree-vect-stmts.c: Include tree-ssa-loop.h,
4558 tree-scalar-evolution.h and cgraph.h.
4559 (vectorizable_call): Handle calls without lhs. Assert
4560 !stmt_can_throw_internal instead of failing for it. Don't update
4562 (struct simd_call_arg_info): New.
4563 (vectorizable_simd_clone_call): New function.
4564 (vect_transform_stmt): Call it.
4565 (vect_analyze_stmt): Likewise. Allow NULL STMT_VINFO_VECTYPE for
4567 * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
4568 if cgraph_function_with_gimple_body_p is true.
4570 2013-11-27 Tom de Vries <tom@codesourcery.com>
4571 Marc Glisse <marc.glisse@inria.fr>
4574 * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
4576 * gimple-fold.c (gimple_fold_indirect_ref): Same.
4577 * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
4580 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
4583 * expr.c (emit_group_store): Don't write past the end of the structure.
4584 (store_bit_field): Fix formatting.
4586 2013-11-27 Richard Biener <rguenther@suse.de>
4588 PR tree-optimization/59288
4589 * tree-vect-loop.c (get_initial_def_for_induction): Do not
4590 re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
4592 2013-11-27 Marek Polacek <polacek@redhat.com>
4594 * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
4595 for a decl, recreate that decl. Save into the hash table VAR_DECLs
4596 rather than ADDR_EXPRs.
4598 2013-11-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4600 * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
4602 2013-11-26 David Malcolm <dmalcolm@redhat.com>
4604 * gengtype.c (struct seen_tag): New.
4605 (already_seen_tag): New.
4606 (mark_tag_as_seen): New.
4607 (walk_subclasses): Support having multiple subclasses using the
4608 same tag by tracking which tags have already been seen, and using
4609 this to avoid adding duplicate cases to the "switch" statement.
4610 The call to already_seen_tag introduces an O(N^2) when running
4611 gengtype on N, the number of tags, due to the repeated linear
4612 search, but currently max(N) is relatively small (the number of
4613 GSS codes, which is 26).
4614 (walk_type): Pass in a seen_tag for use by the walk_subclasses
4617 * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
4618 underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
4619 GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
4620 GIMPLE_OMP_RETURN happens to share the data layout of
4621 GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
4622 (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
4623 underlying GSS value from GSS_OMP_PARALLEL to
4624 GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
4625 not directly related; they merely share in-memory layout.
4626 (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
4627 for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
4629 * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
4631 (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
4633 (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
4634 (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout): ...these.
4635 (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename to...
4636 (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
4639 * gimple.h (gimple_statement_resx): New subclass of
4640 gimple_statement_eh_ctrl, with the invariant that
4641 stmt->code == GIMPLE_RESX.
4642 (gimple_statement_eh_dispatch): New subclass of
4643 gimple_statement_eh_ctrl, with the invariant that
4644 stmt->code == GIMPLE_EH_DISPATH.
4646 (gimple_statement_omp_parallel): The existing class expressed
4647 a layout (GSS_OMP_PARALLEL), but the codes with that layout
4648 are not all related, so it makes more sense for this class to
4649 express a *code* (GIMPLE_OMP_PARALLEL). GSS_OMP_PARALLEL has
4650 been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
4651 rename the existing gimple_statement_omp_parallel class to...
4652 (gimple_statement_omp_parallel_layout): ...this, expressing
4653 a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
4654 (gimple_statement_omp_taskreg): New subclass of
4655 gimple_statement_omp_parallel_layout, expressing the invariant
4656 that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
4657 as used by the various gimple_omp_taskreg_ accessors.
4658 (gimple_statement_omp_parallel): Reintroduce this class, this time
4659 as a subclass of gimple_statement_omp_taskreg to express the
4660 invariant stmt->code == GIMPLE_OMP_PARALLEL.
4661 (gimple_statement_omp_target) New class, subclassing
4662 gimple_statement_omp_parallel_layout, to express the invariant
4663 stmt->code == GIMPLE_OMP_TARGET.
4664 (gimple_statement_omp_task): Update to inherit from
4665 gimple_statement_omp_taskreg rather than
4666 gimple_statement_omp_parallel.
4668 (gimple_statement_omp_single): Rename to...
4669 (gimple_statement_omp_single_layout): ...this, expressing the
4670 invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
4671 (gimple_statement_omp_single): ...and reintroduce this name as
4672 a subclass of gimple_statement_omp_single_layout, expressing
4673 the invariant that code == GIMPLE_OMP_SINGLE.
4674 (gimple_statement_omp_teams): New class, subclassing
4675 gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
4677 (gimple_statement_omp_atomic_store): Rename to...
4678 (gimple_statement_omp_atomic_store_layout): ...this, expressing
4679 the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
4680 (gimple_statement_omp_atomic_store): ...and reintroduce this
4681 name as a subclass of gimple_statement_omp_atomic_store_layout
4682 with code == GIMPLE_OMP_ATOMIC_STORE.
4683 (gimple_statement_omp_return): New class, subclassing
4684 gimple_statement_omp_atomic_store_layout for the code
4687 (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
4688 (is_a_helper <gimple_statement_resx>::test): New.
4689 (is_a_helper <gimple_statement_eh_dispatch>::test): New.
4690 (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
4691 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
4692 (is_a_helper <gimple_statement_omp_return>::test): New.
4693 (is_a_helper <gimple_statement_omp_taskreg>::test): New.
4694 (is_a_helper <gimple_statement_omp_parallel>::test): Only check
4695 for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
4697 (is_a_helper <gimple_statement_omp_target>::test): New.
4698 (is_a_helper <gimple_statement_omp_single>::test): Only check
4699 for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
4700 (is_a_helper <gimple_statement_omp_teams>::test): New.
4702 (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
4703 (is_a_helper <const gimple_statement_resx>::test): New.
4704 (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
4705 (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
4706 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
4707 (is_a_helper <const gimple_statement_omp_return>::test): New.
4708 (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
4709 (is_a_helper <const gimple_statement_omp_parallel>::test): Only
4710 check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
4712 (is_a_helper <const gimple_statement_omp_target>::test): New.
4713 (is_a_helper <const gimple_statement_omp_single>::test): Only
4714 check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
4715 (is_a_helper <const gimple_statement_omp_teams>::test): New.
4717 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
4718 gimple_omp_return_lhs_ptr): Replace bogus downcasts to
4719 gimple_statement_omp_atomic_store with downcasts to
4720 gimple_statement_omp_return, thus requiring that the code be
4722 (gimple_resx_region, gimple_resx_set_region): Replace bogus
4723 downcasts to gimple_statement_eh_ctrl with downcasts to
4724 gimple_statement_resx, thus requiring that the code be GIMPLE_RESX.
4725 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
4726 Replace bogus downcasts to const gimple_statement_eh_ctrl with
4727 downcasts to gimple_statement_eh_dispatch, thus requiring that
4728 the code be GIMPLE_EH_DISPATCH.
4729 (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
4730 gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
4731 gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
4732 gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
4733 gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
4734 gimple_statement_omp_parallel with downcasts to
4735 gimple_statement_omp_taskreg, thus requiring that the code be
4736 either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
4737 (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
4738 gimple_omp_target_set_clauses, gimple_omp_target_child_fn
4739 gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
4740 gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
4741 gimple_omp_target_set_data_arg): Replace bogus downcasts to
4742 gimple_statement_omp_parallel with downcasts to
4743 gimple_statement_omp_target, thus requiring that the code be
4745 (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
4746 gimple_omp_teams_set_clauses): Replace bogus downcasts to
4747 gimple_statement_omp_single with downcasts to
4748 gimple_statement_omp_teams, thus requiring that the code be
4751 * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
4752 gimple_statement_resx.
4753 (gimple_build_eh_dispatch): Fix bogus as_a<> to use
4754 gimple_statement_eh_dispatch.
4756 2013-11-26 Jakub Jelinek <jakub@redhat.com>
4758 PR tree-optimization/59014
4759 * tree-vrp.c (register_edge_assert_for_1): Don't look
4760 through conversions from non-integral types or through
4761 narrowing conversions.
4764 * config/i386/i386.c (device_alg): Fix up formatting.
4765 (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
4766 similarly to count && count < epilogue_size_needed. Fix up
4768 * builtins.c (determine_block_size): Fix comment typo.
4771 * ubsan.c (ubsan_source_location): Don't add any location
4772 to ADDR_EXPR in the ctor. Revert 2013-11-22 change.
4773 (ubsan_create_data): Strip block info from LOC.
4776 * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
4777 if there isn't optab handler for the corresponding vector PLUS_EXPR.
4779 PR rtl-optimization/59166
4780 * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
4781 DF_REF_LOC in validate_change call.
4782 (split_live_ranges_for_shrink_wrap): Likewise.
4785 * omp-low.c (lower_rec_input_clause): For reduction with placeholder
4786 of references to constant size types in simd loops, defer emitting
4787 initializer for the new_var, emit it later on only if not using
4791 * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
4792 for the inner loop if collapse_bb is non-NULL.
4793 (expand_omp_simd): Use cont_bb rather than e->dest as latch.
4795 2013-11-26 Yufeng Zhang <yufeng.zhang@arm.com>
4797 * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
4798 a constant immediate before force_reg.
4800 2013-11-26 Richard Biener <rguenther@suse.de>
4802 PR tree-optimization/59245
4803 * tree-vrp.c (set_value_range): Assert that we don't have
4804 overflowed constants (but our infinities).
4805 (set_value_range_to_value): Drop all overflow flags.
4806 (vrp_visit_phi_node): Likewise.
4807 (vrp_visit_assignment_or_call): Use set_value_range_to_value
4808 to set a constant range.
4810 2013-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4813 * config/arm/arm.md (*zextendsidi_negsi): New pattern.
4814 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
4815 for zero_extend case.
4817 2013-11-26 H.J. Lu <hongjiu.lu@intel.com>
4820 * configure.ac (install_gold_as_default): New. Set to yes for
4821 --disable-ld or --enable-gold=default.
4822 (gcc_cv_ld_gold_srcdir): New.
4823 (gcc_cv_ld): Also check in-tree gold if install_gold_as_default is yes.
4824 (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
4825 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
4826 * configure: Regenerated.
4828 * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
4829 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
4830 (original) [collect-ld && -fuse-ld=bfd]: Set to
4831 $ORIGINAL_LD_BFD_FOR_TARGET.
4832 (original) [collect-ld && -fuse-ld=gold]: Set to
4833 $ORIGINAL_LD_GOLD_FOR_TARGET.
4834 (dir) [collect-ld && ../gold/ld-new]: Set to gold.
4835 (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
4837 2013-11-26 Terry Guo <terry.guo@arm.com>
4839 * config/arm/arm.c (require_pic_register): Handle high pic base
4840 register for thumb-1.
4841 (arm_load_pic_register): Also initialize high pic base register.
4842 * doc/invoke.texi: Update documentation for option -mpic-register.
4844 2013-11-26 Oleg Endo <olegendo@gcc.gnu.org>
4848 * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
4849 Prefix function names with 'sh_'. Make them non-static.
4850 * config/sh/sh-protos.h (sh_disp_addr_displacement,
4851 sh_max_mov_insn_displacement): Add declarations.
4852 * config/sh/constraints.md (Q): Reject QImode.
4853 (Sdd): Use match_code "mem".
4854 (Snd): Fix erroneous matching of non-memory operands.
4855 * config/sh/predicates.md (short_displacement_mem_operand): New
4857 (general_movsrc_operand): Disallow PC relative QImode loads.
4858 * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
4859 (*movqi, *movhi): Merge both insns into...
4860 (*mov<mode>): ... this new insn. Replace generic 'm' constraints with
4861 'Snd' and 'Sdd' constraints. Calculate insn length dynamically based
4862 on the operand types.
4864 2013-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
4866 * config/epiphany/epiphany.c (epiphany_expand_prologue):
4867 Remove unused variable save_config.
4868 (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
4871 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
4873 * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
4874 using other intrinsics.
4875 (vtbx3_<psu>8): Likewise.
4877 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
4879 * config/aarch64/aarch64-builtins.c
4880 (aarch64_types_bsl_p_qualifiers): New.
4881 (aarch64_types_bsl_s_qualifiers): Likewise.
4882 (aarch64_types_bsl_u_qualifiers): Likewise.
4883 (TYPES_BSL_P): Likewise.
4884 (TYPES_BSL_S): Likewise.
4885 (TYPES_BSL_U): Likewise.
4886 (BUILTIN_VALLDIF): Likewise.
4887 (BUILTIN_VDQQH): Likewise.
4888 * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
4889 * config/aarch64/aarch64-simd.md
4890 (aarch64_simd_bsl<mode>_internal): Handle more modes.
4891 (aarch64_simd_bsl<mode>): Likewise.
4892 * config/aarch64/arm_neon.h
4893 (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
4894 * config/aarch64/iterators.md (VALLDIF): New.
4895 (Vbtype): Handle more modes.
4897 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
4899 * config/aarch64/aarch64-builtins.c
4900 (aarch64_type_qualifiers): Add qualifier_poly.
4901 (aarch64_build_scalar_type): Also build Poly types.
4902 (aarch64_build_vector_type): Likewise.
4903 (aarch64_build_type): Likewise.
4904 (aarch64_build_signed_type): New.
4905 (aarch64_build_unsigned_type): Likewise.
4906 (aarch64_build_poly_type): Likewise.
4907 (aarch64_init_simd_builtins): Also handle Poly types.
4909 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
4911 * config/aarch64/aarch64-builtins.c
4912 (VAR1): Use new naming scheme for aarch64_builtins.
4913 (aarch64_builtin_vectorized_function): Use new aarch64_builtins names.
4915 2013-11-26 Richard Biener <rguenther@suse.de>
4917 PR tree-optimization/59287
4918 * tree-ssa-structalias.c (get_constraint_for_component_ref):
4919 Remove no longer necessary special-casing of union accesses.
4921 2013-11-26 Richard Biener <rguenther@suse.de>
4923 * pretty-print.c (output_buffer::~output_buffer): Really
4926 2013-11-25 Jeff Law <law@redhat.com>
4928 * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
4929 invalidate loop information.
4931 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
4933 * config/sh/sh.md (doloop_end_split): Add missing SI mode.
4935 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
4939 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
4941 (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
4942 previously visited basic blocks before recursing instead of only one
4945 2013-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4947 * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
4948 * config/aarch64/aarch64-cores.def (cortex-a53):
4949 Use cortexa53 tuning struct.
4951 2013-11-25 Andrew Macleod <amacleod@redhat.com>
4954 * fold-const.c: Include hash-table.h.
4956 2013-11-25 Marek Polacek <polacek@redhat.com>
4959 * ubsan.c (ubsan_create_data): Increase the size of the fields array.
4961 2013-11-25 Richard Biener <rguenther@suse.de>
4963 * tree-dfa.c: Remove unused convert.h include.
4965 2013-11-25 Terry Guo <terry.guo@arm.com>
4967 * doc/invoke.texi (-mslow-flash-data): Document new option.
4968 * config/arm/arm.opt (mslow-flash-data): New option.
4969 * config/arm/arm-protos.h (arm_max_const_double_inline_cost):
4971 * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
4973 (arm_disable_literal_pool): Declare it.
4974 * config/arm/arm.c (arm_disable_literal_pool): New variable.
4975 (arm_option_override): Handle new option.
4976 (thumb2_legitimate_address_p): Don't allow symbol references when
4977 literal pools are disabled.
4978 (arm_max_const_double_inline_cost): New function.
4979 * config/arm/arm.md (types.md): Include it before ...
4980 (use_literal_pool): New attribute.
4981 (enabled): Use new attribute.
4982 (split pattern): Replace symbol+offset with MOVW/MOVT.
4984 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
4987 Revert previous commit.
4989 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
4991 * jump.c (reset_insn_reg_label_operand_notes): New function,
4993 (init_label_info): ... here. Reset LABEL_NUSES in cfglayout mode.
4994 * cfgcleanup.c (delete_dead_jump_tables_between): New function,
4996 (delete_dead_jumptables): ... here. Handle cfglayout mode.
4997 (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
4998 expensive CFG cleanup is called for.
4999 * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
5000 (cfg_layout_finalize): Delete dead jump tables before re-building
5002 * ira.c (ira): Rebuild jump labels *after* deleting unreachable
5003 basic blocks, not before.
5004 * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
5006 * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
5007 insns chain of a scheduling extended basic block, they cannot appear
5008 there in cfglayout mode.
5010 2013-11-24 Tobias Burnus <burnus@net-b.de>
5012 * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
5014 2013-11-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5016 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
5019 2013-11-24 H.J. Lu <hongjiu.lu@intel.com>
5021 * graphite-sese-to-poly.c: Don't include extra "expr.h".
5023 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
5025 * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
5027 2013-11-23 David Edelson <dje.gcc@gmail.com>
5028 Andrew Dixie <andrewd@gentrack.com>
5031 * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
5032 (COLLECT_SHARED_FINI_FUNC): Define.
5034 * collect2.c (aix_shared_initname): Declare.
5035 (aix_shared_fininame): Declare.
5036 (symkind): Add SYM_AIXI and SYM_AIXD.
5037 (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
5038 (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
5039 (aixlazy_flag): Parse.
5040 (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
5041 (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
5043 2013-11-23 David Edelsohn <dje.gcc@gmail.com>
5045 * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
5046 (rs6000_xcoff_select_section): Place decls with stricter alignment
5047 into named sections.
5048 (rs6000_xcoff_unique_section): Allow unique sections for
5049 uninitialized data with strict alignment.
5051 2013-11-23 Jakub Jelinek <jakub@redhat.com>
5053 PR tree-optimization/59154
5054 * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
5055 rhs1 of a cast and new_op is invariant, fold_convert it.
5056 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
5057 simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
5059 2013-11-23 Uros Bizjak <ubizjak@gmail.com>
5062 * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
5063 Declare as MULTI_ARG_1_SF instruction.
5064 <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
5065 * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
5066 from *xop_vmfrcz_<mode>.
5067 * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
5068 to merge scalar result with __A.
5069 (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
5072 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
5074 * gimplify.h (recalculate_side_effects): Delete.
5075 * gimplify.c (recalculate_side_effects): Make static and add comment.
5077 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
5079 * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
5080 for the destination of a define_peephole2. Likewise register_operand
5081 rather than arith_reg_operand. Remove constraints from
5084 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
5086 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
5088 (mn10300_store_multiple_operation_p): Declare.
5089 * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
5091 (mn10300_store_multiple_operation_p): ...this and remove mode
5093 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
5096 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
5098 * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
5099 (pop_multiple_operation): Delete.
5100 (analyze_push_multiple_operation): Declare.
5101 (analyze_pop_multiple_operation): Declare.
5102 * config/bfin/bfin.c (push_multiple_operation): Rename to...
5103 (analyze_push_multiple_operation): ...this and remove mode argument.
5104 (pop_multiple_operation): Rename to...
5105 (analyze_pop_multiple_operation): ...this and remove mode argument.
5106 * config/bfin/predicates.md (push_multiple_operation): Define.
5107 (pop_multiple_operation): Likewise.
5109 2013-11-23 Alan Modra <amodra@gmail.com>
5111 * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
5113 2013-11-22 Jakub Jelinek <jakub@redhat.com>
5116 * common.opt (static-liblsan): Add.
5117 * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
5119 * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK. Renumber
5120 SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
5122 * opts.c (common_handle_option): Handle -fsanitize=leak.
5123 * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
5124 (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
5125 (LIBUBSAN_EARLY_SPEC): Remove.
5126 (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
5127 (SANITIZER_SPEC): Add -fsanitize=leak handling.
5128 (sanitize_spec_function): Handle %sanitize(leak).
5129 * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
5131 2013-11-22 Aldy Hernandez <aldyh@redhat.com>
5132 Jakub Jelinek <jakub@redhat.com>
5134 * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
5135 * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
5136 (ipa_get_vector_of_formal_parm_types): ... this. No longer static.
5137 (ipa_modify_formal_parameters): Adjust caller. Remove
5138 synth_parm_prefix argument. Use operator enum instead of bit fields.
5139 Add assert for properly handling vector of references. Handle
5140 creating brand new parameters.
5141 (ipa_modify_call_arguments): Use operator enum instead of bit
5143 (ipa_combine_adjustments): Same. Assert that IPA_PARM_OP_NEW is not
5145 (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
5147 (ipa_dump_param_adjustments): Rename reduction to new_decl.
5148 Use operator enum instead of bit fields.
5149 * ipa-prop.h (enum ipa_parm_op): New.
5150 (struct ipa_parm_adjustment): New field op. Rename reduction
5151 to new_decl, new_arg_prefix to arg_prefix and remove remove_param
5153 (ipa_modify_formal_parameters): Remove last argument.
5154 (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
5155 ipa_get_adjustment_candidate): New prototypes.
5156 * tree-sra.c (turn_representatives_into_adjustments): Use operator
5157 enum. Set arg_prefix.
5158 (get_adjustment_for_base): Use operator enum.
5159 (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
5161 (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
5162 (ipa_sra_modify_function_body): Same. No longer static.
5163 (sra_ipa_reset_debug_stmts): Use operator enum.
5164 (modify_function): Do not pass prefix argument.
5166 2013-11-22 Jakub Jelinek <jakub@redhat.com>
5168 * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
5169 (ubsan_pass): Ignore clobber stmts.
5171 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
5172 * opts.c (common_handle_option): Add -fsanitize=return.
5173 * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
5174 or it into SANITIZE_UNDEFINED.
5176 * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
5177 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
5178 * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
5179 Don't instrument accesses to VAR_DECLs which are known to fit
5180 into their bounds and the vars are known to have shadow bytes
5181 indicating allowed access.
5182 (asan_dynamic_init_call): New function.
5183 (asan_add_global): If vnode->dynamically_initialized,
5184 set __has_dynamic_init to 1 instead of 0.
5185 (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
5186 * asan.h (asan_dynamic_init_call): New prototype.
5187 * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
5189 2013-11-22 Martin Jambor <mjambor@suse.cz>
5191 PR rtl-optimization/10474
5192 * ira.c (interesting_dest_for_shprep_1): New function.
5193 (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
5194 also check parallels.
5196 2013-11-22 Jeff Law <law@redhat.com>
5198 * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
5199 NULL for RHS, which we used to invalidate equivalences.
5200 (record_temporary_equivalences_from_phis): New bitmap arguments
5201 and a boolean indicating if we have passed a backedge. If we
5202 have passed a backedge, then set the appropriate bit in the
5203 bitmaps for the SRC & DEST of PHIs creating equivalences.
5204 (invalidate_equivalences, dummy_simplify): New functions.
5205 (cond_arg_set_in_b): Remove.
5206 (record_temporary_equivalences_from_stmts_at_dest): New bitmap
5207 arguments and a boolean indicating if we have passed a backedge.
5208 If we have passed a backedge, then perform invalidations as needed.
5209 (thread_around_empty_blocks): If we have seen a backedge, then
5210 use the dummy simplify routine.
5211 (thread_through_normal_block): Likewise. Pass bitmaps and
5212 backedge status to children. Do not pessimize so much when
5213 traversing backedges in the CFG.
5214 (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
5215 If we have seen a backedge, then use the dummy simplify routine.
5216 Do not pessimize so much when traversing backedges.
5218 2013-11-22 Hans-Peter Nilsson <hp@axis.com>
5220 * config/cris/cris.c (cris_atomic_align_for_mode): New function.
5221 (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
5223 2013-11-22 Yuri Rumyantsev <ysrumyan@gmail.com>
5225 * config/i386/i386.c (processor_alias_table): Enable PTA_AES,
5226 PTA_PCLMUL and PTA_RDRND for Silvermont.
5227 * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
5230 * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
5232 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
5234 * hooks.h (hook_uint_mode_0): Add Prototype.
5235 * hooks.c (hook_uint_mode_0): New default function.
5236 * target.def (atomic_align_for_mode): New target hook.
5237 * tree.c (build_atomic_base): Add alignment override parameter.
5238 (build_common_tree_nodes): Use atomic alignment override.
5239 * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
5240 * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
5242 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
5244 * gimple.h: Remove all includes.
5245 (recalculate_side_effects): Move prototype to gimplify.h.
5246 * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
5247 * gengtype.c (open_base_files): Add gimple.h include list.
5248 * gimplify.h (recalculate_side_effects): Relocate prototype here.
5249 * gimple.c: Adjust include list.
5250 (recalculate_side_effects): Move to gimplify.c.
5251 * gimplify.c: Adjust include list.
5252 (recalculate_side_effects): Relocate from gimple.c.
5253 * alias.c: Add required include files removed from gimple.h.
5255 * builtins.c: Likewise.
5256 * calls.c: Likewise.
5257 * cfgexpand.c: Likewise.
5258 * cfgloop.c: Likewise.
5259 * cfgloopmanip.c: Likewise.
5260 * cgraphbuild.c: Likewise.
5261 * cgraph.c: Likewise.
5262 * cgraphclones.c: Likewise.
5263 * cgraphunit.c: Likewise.
5264 * cilk-common.c: Likewise.
5265 * data-streamer.c: Likewise.
5266 * data-streamer-in.c: Likewise.
5267 * data-streamer-out.c: Likewise.
5269 * dwarf2out.c: Likewise.
5270 * emit-rtl.c: Likewise.
5271 * except.c: Likewise.
5273 * fold-const.c: Likewise.
5274 * function.c: Likewise.
5275 * gimple-builder.c: Likewise.
5276 * gimple-expr.c: Likewise.
5277 * gimple-fold.c: Likewise.
5278 * gimple-iterator.c: Likewise.
5279 * gimple-low.c: Likewise.
5280 * gimple-pretty-print.c: Likewise.
5281 * gimple-ssa-isolate-paths.c: Likewise.
5282 * gimple-ssa-strength-reduction.c: Likewise.
5283 * gimple-streamer-in.c: Likewise.
5284 * gimple-streamer-out.c: Likewise.
5285 * gimple-walk.c: Likewise.
5286 * gimplify-me.c: Likewise.
5287 * graphite-blocking.c: Likewise.
5288 * graphite.c: Likewise.
5289 * graphite-clast-to-gimple.c: Likewise.
5290 * graphite-dependences.c: Likewise.
5291 * graphite-interchange.c: Likewise.
5292 * graphite-optimize-isl.c: Likewise.
5293 * graphite-poly.c: Likewise.
5294 * graphite-scop-detection.c: Likewise.
5295 * graphite-sese-to-poly.c: Likewise.
5296 * internal-fn.c: Likewise.
5298 * ipa-cp.c: Likewise.
5299 * ipa-devirt.c: Likewise.
5300 * ipa-inline-analysis.c: Likewise.
5301 * ipa-inline.c: Likewise.
5302 * ipa-profile.c: Likewise.
5303 * ipa-prop.c: Likewise.
5304 * ipa-pure-const.c: Likewise.
5305 * ipa-reference.c: Likewise.
5306 * ipa-split.c: Likewise.
5307 * ipa-utils.c: Likewise.
5308 * langhooks.c: Likewise.
5309 * lto-cgraph.c: Likewise.
5310 * lto-compress.c: Likewise.
5311 * lto-opts.c: Likewise.
5312 * lto-section-in.c: Likewise.
5313 * lto-section-out.c: Likewise.
5314 * lto-streamer.c: Likewise.
5315 * lto-streamer-in.c: Likewise.
5316 * lto-streamer-out.c: Likewise.
5317 * omp-low.c: Likewise.
5318 * opts-global.c: Likewise.
5319 * passes.c: Likewise.
5320 * predict.c: Likewise.
5321 * profile.c: Likewise.
5324 * stor-layout.c: Likewise.
5325 * symtab.c: Likewise.
5326 * targhooks.c: Likewise.
5327 * toplev.c: Likewise.
5328 * tracer.c: Likewise.
5329 * trans-mem.c: Likewise.
5330 * tree-affine.c: Likewise.
5332 * tree-call-cdce.c: Likewise.
5333 * tree-cfg.c: Likewise.
5334 * tree-cfgcleanup.c: Likewise.
5335 * tree-chrec.c: Likewise.
5336 * tree-complex.c: Likewise.
5337 * tree-data-ref.c: Likewise.
5338 * tree-dfa.c: Likewise.
5339 * tree-eh.c: Likewise.
5340 * tree-emutls.c: Likewise.
5341 * tree-if-conv.c: Likewise.
5342 * tree-inline.c: Likewise.
5343 * tree-into-ssa.c: Likewise.
5344 * tree-loop-distribution.c: Likewise.
5345 * tree-nested.c: Likewise.
5346 * tree-nrv.c: Likewise.
5347 * tree-object-size.c: Likewise.
5348 * tree-outof-ssa.c: Likewise.
5349 * tree-parloops.c: Likewise.
5350 * tree-phinodes.c: Likewise.
5351 * tree-predcom.c: Likewise.
5352 * tree-pretty-print.c: Likewise.
5353 * tree-profile.c: Likewise.
5354 * tree-scalar-evolution.c: Likewise.
5355 * tree-sra.c: Likewise.
5356 * tree-ssa-address.c: Likewise.
5357 * tree-ssa-alias.c: Likewise.
5358 * tree-ssa.c: Likewise.
5359 * tree-ssa-ccp.c: Likewise.
5360 * tree-ssa-coalesce.c: Likewise.
5361 * tree-ssa-copy.c: Likewise.
5362 * tree-ssa-copyrename.c: Likewise.
5363 * tree-ssa-dce.c: Likewise.
5364 * tree-ssa-dom.c: Likewise.
5365 * tree-ssa-dse.c: Likewise.
5366 * tree-ssa-forwprop.c: Likewise.
5367 * tree-ssa-ifcombine.c: Likewise.
5368 * tree-ssa-live.c: Likewise.
5369 * tree-ssa-loop.c: Likewise.
5370 * tree-ssa-loop-ch.c: Likewise.
5371 * tree-ssa-loop-im.c: Likewise.
5372 * tree-ssa-loop-ivcanon.c: Likewise.
5373 * tree-ssa-loop-ivopts.c: Likewise.
5374 * tree-ssa-loop-manip.c: Likewise.
5375 * tree-ssa-loop-niter.c: Likewise.
5376 * tree-ssa-loop-prefetch.c: Likewise.
5377 * tree-ssa-loop-unswitch.c: Likewise.
5378 * tree-ssa-math-opts.c: Likewise.
5379 * tree-ssanames.c: Likewise.
5380 * tree-ssa-operands.c: Likewise.
5381 * tree-ssa-phiopt.c: Likewise.
5382 * tree-ssa-phiprop.c: Likewise.
5383 * tree-ssa-pre.c: Likewise.
5384 * tree-ssa-propagate.c: Likewise.
5385 * tree-ssa-reassoc.c: Likewise.
5386 * tree-ssa-sccvn.c: Likewise.
5387 * tree-ssa-sink.c: Likewise.
5388 * tree-ssa-strlen.c: Likewise.
5389 * tree-ssa-structalias.c: Likewise.
5390 * tree-ssa-tail-merge.c: Likewise.
5391 * tree-ssa-ter.c: Likewise.
5392 * tree-ssa-threadedge.c: Likewise.
5393 * tree-ssa-threadupdate.c: Likewise.
5394 * tree-ssa-uncprop.c: Likewise.
5395 * tree-ssa-uninit.c: Likewise.
5396 * tree-stdarg.c: Likewise.
5397 * tree-streamer.c: Likewise.
5398 * tree-streamer-in.c: Likewise.
5399 * tree-streamer-out.c: Likewise.
5400 * tree-switch-conversion.c: Likewise.
5401 * tree-tailcall.c: Likewise.
5402 * tree-vect-data-refs.c: Likewise.
5403 * tree-vect-generic.c: Likewise.
5404 * tree-vect-loop.c: Likewise.
5405 * tree-vect-loop-manip.c: Likewise.
5406 * tree-vectorizer.c: Likewise.
5407 * tree-vect-patterns.c: Likewise.
5408 * tree-vect-slp.c: Likewise.
5409 * tree-vect-stmts.c: Likewise.
5410 * tree-vrp.c: Likewise.
5412 * ubsan.c: Likewise.
5413 * value-prof.c: Likewise.
5414 * varpool.c: Likewise.
5415 * var-tracking.c: Likewise.
5416 * vtable-verify.c: Likewise.
5417 * config/darwin.c: Likewise.
5418 * config/aarch64/aarch64-builtins.c: Likewise.
5419 * config/aarch64/aarch64.c: Likewise.
5420 * config/alpha/alpha.c: Likewise.
5421 * config/i386/i386.c: Likewise.
5422 * config/i386/winnt.c: Likewise.
5423 * config/ia64/ia64.c: Likewise.
5424 * config/m32c/m32c.c: Likewise.
5425 * config/mep/mep.c: Likewise.
5426 * config/mips/mips.c: Likewise.
5427 * config/rs6000/rs6000.c: Likewise.
5428 * config/s390/s390.c: Likewise.
5429 * config/sh/sh.c: Likewise.
5430 * config/sparc/sparc.c: Likewise.
5431 * config/spu/spu.c: Likewise.
5432 * config/stormy16/stormy16.c: Likewise.
5433 * config/tilegx/tilegx.c: Likewise.
5434 * config/tilepro/tilepro.c: Likewise.
5435 * config/xtensa/xtensa.c: Likewise.
5437 2013-11-22 Richard Earnshaw <rearnsha@arm.com>
5440 * arm.md (negdi_extendsidi): Fix invalid split.
5442 2013-11-22 Alex Velenko <Alex.Velenko@arm.com>
5444 * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
5445 (vmov_n_f64): Likewise.
5446 (vmov_n_p8): Likewise.
5447 (vmov_n_p16): Likewise.
5448 (vmov_n_s8): Likewise.
5449 (vmov_n_s16): Likewise.
5450 (vmov_n_s32): Likewise.
5451 (vmov_n_s64): Likewise.
5452 (vmov_n_u8): Likewise.
5453 (vmov_n_u16): Likewise.
5454 (vmov_n_u32): Likewise.
5455 (vmov_n_u64): Likewise.
5456 (vmovq_n_f32): Likewise.
5457 (vmovq_n_f64): Likewise.
5458 (vmovq_n_p8): Likewise.
5459 (vmovq_n_p16): Likewise.
5460 (vmovq_n_s8): Likewise.
5461 (vmovq_n_s16): Likewise.
5462 (vmovq_n_s32): Likewise.
5463 (vmovq_n_s64): Likewise.
5464 (vmovq_n_u8): Likewise.
5465 (vmovq_n_u16): Likewise.
5466 (vmovq_n_u32): Likewise.
5467 (vmovq_n_u64): Likewise.
5469 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
5471 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
5472 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
5473 (reduc_<sur>plus_<mode>): Factorize V2DI into this.
5474 (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
5475 and also change to float UNSPEC.
5476 (reduc_maxmin_uns>_<mode>): Remove V2DI.
5477 * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
5478 vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
5479 result access for big-endian.
5480 (__LANE0): New macro used to fix up lane access of 'across-lanes'
5481 intrinsics for big-endian.
5482 * config/aarch64/iterators.md (VDQV): Add V2DI.
5484 (vp): New mode attribute.
5486 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
5488 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
5489 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
5492 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
5494 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
5495 for big-endian element order.
5496 (aarch64_simd_vec_setv2di): Likewise.
5497 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
5498 *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
5499 (vec_extract): Expand using aarch64_get_lane.
5500 * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
5502 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
5504 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
5505 and stores to be ABI compliant.
5507 2013-11-22 David Malcolm <dmalcolm@redhat.com>
5509 * input.h (input_line): Remove.
5510 (input_filename): Likewise.
5511 (in_system_header): Likewise.
5512 * tree.h (EXPR_LOC_OR_HERE): Remove.
5513 * config/bfin/bfin.c (output_file_start): Remove use of
5514 input_filename macro.
5515 * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
5516 * gimplify.c (internal_get_tmp_var): Likewise.
5517 EXPR_LOC_OR_HERE macro.
5518 (shortcut_cond_expr): Likewise.
5519 * tree-diagnostic.c (diagnostic_report_current_function): Remove
5520 use of input_filename macro.
5521 * tree.c (get_file_function_name): Likewise.
5523 2013-11-22 Kenneth Zadeck <zadeck@naturalbridge.com>
5525 * store-layout.c (place-field): Fix hwi test and accessor mismatch.
5527 2013-11-22 Jakub Jelinek <jakub@redhat.com>
5529 * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
5530 (same sized) elements even if the type of the CONSTRUCTOR has
5531 vector mode and target is a REG.
5533 2013-11-22 Richard Biener <rguenther@suse.de>
5536 2013-11-21 Richard Biener <rguenther@suse.de>
5538 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
5539 nb_iterations_upper_bound by one.
5541 2013-11-22 H.J. Lu <hongjiu.lu@intel.com>
5543 * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
5546 * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
5547 core-avx-i, core-avx2 and slm.
5549 2013-11-22 Eric Botcazou <ebotcazou@adacore.com>
5551 * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
5553 2013-11-22 Richard Sandiford <rdsandiford@googlemail.com>
5555 * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
5556 (stzx_24_<mode>): Likewise mra_operand.
5558 2013-11-22 Jeff Law <law@redhat.com>
5560 * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
5561 (thread_block_1): Do not cancel jump threads which go from
5562 inside a loop, through the header, then back inside the loop.
5563 (bb_ends_with_multiway_branch): New function.
5564 (thread_through_all_blocks): Handle threading cases which start
5565 in a loop through the loop header to a point in the loop.
5567 * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
5568 jump thread path properly.
5570 2013-11-22 Trevor Saunders <tsaunders@mozilla.com>
5572 * vec.h (auto_vec): New class.
5573 * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
5574 function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
5575 ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
5576 tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
5577 tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
5578 tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
5579 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
5580 tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
5581 appropriate instead of vec for local variables.
5583 2013-11-21 Teresa Johnson <tejohnson@google.com>
5586 * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
5587 not understood by old_insns_match_p.
5589 2013-11-21 Bill Schmidt <wschmidt@vnet.ibm.com>
5591 * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
5592 little endian change.
5593 (vec_pack_sfix_trunc_v2df): Likewise.
5594 (vec_pack_ufix_trunc_v2df): Likewise.
5595 * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
5596 double checking of endianness.
5598 2013-11-22 Jakub Jelinek <jakub@redhat.com>
5600 * tree-vect-generic.c (optimize_vector_constructor): New function.
5601 (expand_vector_operations_1): Call it.
5603 2013-11-21 Uros Bizjak <ubizjak@gmail.com>
5605 * config/i386/i386.c (ix86_expand_special_args_builtin): Use
5606 ix86_zero_extend_to_Pmode where appropriate.
5607 (ix86_expand_builtin): Ditto.
5609 2013-11-21 Cary Coutant <ccoutant@google.com>
5611 * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
5612 (add_linkage_name): Don't add linkage name for -g1.
5613 (decls_for_scope): Process subblocks for -g1.
5614 (dwarf2out_source_line): Output line tables for -g1.
5615 (dwarf2out_finish): Likewise.
5616 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
5617 unused scopes for -g1.
5618 * opts.c (common_handle_option): Handle -g same as -g2.
5619 * doc/invoke.texi: Update description for -g1.
5621 2013-11-21 Peter Bergner <bergner@vnet.ibm.com>
5623 * doc/extend.texi: Document htm builtins.
5625 2013-11-21 Jeff Law <law@redhat.com>
5627 PR tree-optimization/59221
5628 * tree-ssa-threadedge.c (thread_across_edge): Properly manage
5629 temporary equivalences when threading through joiner blocks.
5631 2013-11-21 Joseph Myers <joseph@codesourcery.com>
5633 PR rtl-optimization/55950
5634 * real.c (real_sqrt): Remove function.
5635 * real.h (real_sqrt): Remove prototype.
5636 * simplify-rtx.c (simplify_const_unary_operation): Do not fold
5637 SQRT using real_sqrt.
5639 2013-11-21 Richard Biener <rguenther@suse.de>
5641 PR tree-optimization/59058
5642 * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
5643 * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
5644 * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
5645 (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
5646 (NITERS_KNOWN_P): Fold into ...
5647 (LOOP_VINFO_NITERS_KNOWN_P): ... this.
5648 (LOOP_VINFO_PEELING_FOR_NITER): Add.
5649 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
5650 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
5651 (vect_do_peeling_for_alignment): Re-use precomputed niter
5652 instead of re-emitting it.
5653 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5654 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
5655 * tree-vect-loop.c (vect_get_loop_niters): Use
5656 number_of_latch_executions.
5657 (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
5658 (vect_analyze_loop_form): Simplify.
5659 (vect_analyze_loop_operations): Move epilogue peeling code ...
5660 (vect_analyze_loop_2): ... here and adjust it to compute
5661 LOOP_VINFO_PEELING_FOR_NITER.
5662 (vect_estimate_min_profitable_iters): Use
5663 LOOP_VINFO_PEELING_FOR_ALIGNMENT.
5664 (vect_build_loop_niters): Emit on the preheader.
5665 (vect_generate_tmps_on_preheader): Likewise.
5666 (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
5667 of recomputing it. Adjust.
5669 2013-11-21 Richard Biener <rguenther@suse.de>
5671 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
5672 LOC_LINE): Remove wrappers and fix all users.
5673 (struct _loop_vec_info): Remove loop_line_number member.
5674 (LOOP_VINFO_LOC): Remove.
5675 * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
5676 tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
5679 2013-11-21 Richard Biener <rguenther@suse.de>
5681 * tree-ssa-forwprop.c (simplify_vce): New function.
5682 (ssa_forward_propagate_and_combine): Call it.
5684 2013-11-21 Richard Biener <rguenther@suse.de>
5686 * tree-vect-loop-manip.c (vect_build_loop_niters,
5687 vect_generate_tmps_on_preheader): Move ...
5688 * tree-vect-loop.c (vect_build_loop_niters,
5689 vect_generate_tmps_on_preheader): ... here and simplify.
5690 (vect_transform_loop): Call them here and pass down results
5692 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
5693 Get niter variables from caller.
5694 (vect_do_peeling_for_alignment): Likewise.
5695 * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
5696 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
5699 2013-11-21 Richard Biener <rguenther@suse.de>
5701 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
5702 nb_iterations_upper_bound by one.
5704 2013-11-21 Richard Biener <rguenther@suse.de>
5706 PR tree-optimization/59058
5707 * tree-loop-distribution.c (struct partition_s): Add plus_one member.
5708 (build_size_arg_loc): Apply niter adjustment here.
5709 (generate_memset_builtin): Adjust.
5710 (generate_memcpy_builtin): Likewise.
5711 (classify_partition): Do not use number_of_exit_cond_executions
5712 but record whether niter needs to be adjusted.
5714 2013-11-21 Eric Botcazou <ebotcazou@adacore.com>
5716 * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
5719 2013-11-21 Oleg Endo <olegendo@gcc.gnu.org>
5722 * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
5723 * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
5724 * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
5725 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
5726 sh_optimize_sett_clrt pass.o to extra_objs.
5728 2013-11-20 David Malcolm <dmalcolm@redhat.com>
5730 * cfg.c (dump_edge_info): Remove redundant comment.
5731 * cfgcleanup.c (outgoing_edges_match): Reword reference to
5732 EXIT_BLOCK_PTR in comment.
5733 (try_optimize_cfg): Likewise.
5734 * cfgrtl.c (last_bb_in_partition): Likewise.
5735 * cgraph.c (cgraph_node_cannot_return): Likewise.
5736 * function.c (thread_prologue_and_epilogue_insns): Likewise.
5737 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
5738 * ipa-split.c (consider_split): Likewise.
5739 * profile.c (find_spanning_tree): Likewise.
5740 * sched-int.h (common_sched_info_def.add_block): Likewise.
5741 * dominance.c (calc_dfs_tree_nonrec): Reword references in
5742 comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
5743 * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
5744 in comments to now removed ENTRY_BLOCK_PTR macro.
5745 (tree_forwarder_block_p): Reword reference in comment to
5747 * tree-inline.c (copy_cfg_body): Reword references in comments to
5748 now removed ENTRY_BLOCK_PTR macro.
5749 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
5750 * tree-scalar-evolution.h ( block_before_loop): Likewise. Add
5751 a comma to the comment to clarify the meaning.
5753 2013-11-20 Andrew MacLeod <amacleod@redhat.com>
5755 * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
5757 (free_gimplify_stack): Add prototype.
5758 * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
5759 (struct gimplify_ctx): Relocate here.
5760 (gimplify_ctxp): Make static.
5761 (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New. Manage a
5762 list of struct gimplify_ctx.
5763 (push_gimplify_context): Add default parameters and allocate a struct
5765 (pop_gimplify_context): Free a struct back to the pool.
5766 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
5767 gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
5768 use a local 'struct gimplify_ctx'.
5769 * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
5770 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
5772 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
5773 lower_omp_ordered, lower_omp_critical, lower_omp_for,
5774 create_task_copyfn, lower_omp_taskreg, lower_omp_target,
5775 lower_omp_teams, execute_lower_omp): Likewise.
5776 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
5777 * tree-inline.c (optimize_inline_calls): Likewise.
5779 2013-11-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5781 * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
5782 (vsx_extract_<mode>): Likewise.
5783 (*vsx_extract_<mode>_one_le): New LE variant on
5784 *vsx_extract_<mode>_zero.
5785 (vsx_extract_v4sf): Adjust for little endian.
5787 2013-11-20 Vladimir Makarov <vmakarov@redhat.com>
5789 PR rtl-optimization/59133
5790 * lra.c (expand_reg_data): Add new argument. Set up ALL_REGS for
5792 (lra_create_new_reg_with_unique_value): Pass new argument value.
5793 (lra_emit_add, lra_emit_move): Ditto.
5794 * lra-constraints.c (in_class_p): Add check for move for a new insn.
5795 (change_class): Rename to lra_change_class. Move to lra-int.h.
5796 (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
5798 (process_addr_reg, process_addr): Ditto.
5799 (curr_insn_transform): Ditto. Add check on old pseudo for
5801 * lra-int.h (lra_get_regno_hard_regno): Move below.
5802 (lra_change_class): Renamed change_class from lra.c.
5804 2013-11-20 David Malcolm <dmalcolm@redhat.com>
5806 * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
5807 the children of a NULL pointer.
5809 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
5811 * lra.c (lra): Set lra_in_progress before check_rtl call.
5812 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
5813 adding clobber regs when LRA is running.
5815 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
5817 * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
5818 restriction for ISA_MIPS32R2.
5819 (ISA_HAS_LXC1_SXC1): New macro.
5820 (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
5821 (ISA_HAS_NMADD4_NMSUB4): Likewise.
5822 (ISA_HAS_FP_RECIP_RSQRT): Likewise.
5823 (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
5824 * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
5825 ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
5826 (*<ANYF:storex>_<P:mode>): Likewise.
5828 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
5830 * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
5831 * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
5832 ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
5833 * config/mips/mips.md (recip_condition): Remove mode attribute.
5834 (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
5836 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
5838 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
5841 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
5842 Make sure neg2_ovf is set before being used.
5844 2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
5846 * plugin.def: Add comment about register_callback and
5847 invoke_plugin_callbacks_full.
5849 * plugin.c (register_callback, invoke_plugin_callbacks_full):
5850 Handle PLUGIN_INCLUDE_FILE event.
5852 2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5854 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
5855 allow subregs of TDmode in FPRs of smaller size in little-endian.
5856 (rs6000_split_multireg_move): When splitting an access to TDmode
5857 in FPRs, do not use simplify_gen_subreg.
5859 2013-11-20 Joseph Myers <joseph@codesourcery.com>
5862 * real.c: Remove comment about decimal string conversion and
5864 (real_from_string): Use MPFR to convert nonzero decimal constant
5867 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
5869 * config/arm/arm.c (arm_dwarf_register_span): Take into account the
5870 endianness of the D registers for the legacy encodings.
5872 2013-11-20 Richard Earnshaw <rearnsha@arm.com>
5874 PR rtl-optimization/54300
5875 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
5876 outputs in a single-set are killed from the value chains.
5878 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
5880 * cgraph.h (varpool_node): Add need_bounds_init field.
5881 * lto-cgraph.c (lto_output_varpool_node): Output
5882 need_bounds_init value.
5883 (input_varpool_node): Read need_bounds_init value.
5884 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
5886 2013-11-20 Jan Hubicka <jh@suse.cz>
5888 * opts.c (finish_options): Imply -ffat-lto-objects with
5889 -fno-use-linker-plugin.
5890 * common.opt (fuse-linker-plugin): Add var.
5892 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
5894 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
5895 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
5896 (gen_type_die_with_usage): Skip pointer bounds.
5897 (dwarf2out_global_decl): Likewise.
5899 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
5901 * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
5904 2013-11-20 Yuri Rumyantsev <ysrumyan@gmail.com>
5907 * config/i386/i386.c (ix86_option_override_internal): Add missed
5908 argument prefix for 'ix86_fpmath'.
5909 * config/i386/ssemath.h: Add missed definition of
5910 TARGET_FPMATH_DEFAULT_P macros.
5912 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
5913 Mike Stump <mikestump@comcast.net>
5914 Richard Sandiford <rdsandiford@googlemail.com>
5916 * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
5917 instead of TREE_INT_CST_LOW, in cases where there is a protecting
5918 tree_fits_shwi_p or tree_fits_uhwi_p.
5919 * builtins.c (fold_builtin_powi): Likewise.
5920 * config/epiphany/epiphany.c (epiphany_special_round_type_align):
5922 * dbxout.c (dbxout_symbol): Likewise.
5923 * expr.c (expand_expr_real_1): Likewise.
5924 * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
5925 (fold_binary_loc): Likewise.
5926 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
5927 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
5928 * omp-low.c (lower_omp_for_lastprivate): Likewise.
5929 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
5930 * stor-layout.c (compute_record_mode): Likewise.
5931 * tree-cfg.c (verify_expr): Likewise.
5932 * tree-dfa.c (get_ref_base_and_extent): Likewise.
5933 * tree-pretty-print.c (dump_array_domain): Likewise.
5934 * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
5935 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
5936 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
5937 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
5938 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
5939 * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
5940 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
5941 (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
5942 (vn_reference_lookup_3, simplify_binary_expression): Likewise.
5943 * tree-ssa-structalias.c (bitpos_of_field): Likewise.
5944 (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
5945 (create_variable_info_for_1): Likewise.
5946 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
5947 (vect_verify_datarefs_alignment): Likewise.
5948 (vect_analyze_data_ref_accesses): Likewise.
5949 (vect_prune_runtime_alias_test_list): Likewise.
5950 * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
5952 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
5954 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
5955 overflow. Use tree_to_shwi.
5957 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
5959 * fold-const.c (fold_binary_loc): Use unsigned rather than signed
5960 HOST_WIDE_INTs when folding (x >> c) << c.
5962 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5963 Dominik Vogt <vogt@linux.vnet.ibm.com>
5965 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
5966 int comparisons with an out of range condition code.
5967 (s390_optimize_nonescaping_tx): Skip empty BBs.
5968 Generate the new tbegin RTX when removing the FPR clobbers (with
5970 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
5971 result before doing the retry calculations.
5972 (s390_init_builtins): Make tbegin "returns_twice" and tabort
5974 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
5975 the TDB setting part of an tbegin.
5976 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
5977 ("tx_assist"): Set unused argument to an immediate zero instead of
5978 loading zero into a GPR and pass it as argument.
5979 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
5980 Remove inline and related attributes.
5981 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
5982 (__TM_is_illegal, __TM_is_footprint_exceeded)
5983 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
5985 2013-11-20 Richard Biener <rguenther@suse.de>
5988 * lto-opts.c (lto_write_options): Write defaults only if
5989 they were not explicitely specified. Also write
5990 -ffp-contract default.
5991 * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
5993 (run_gcc): Pass through -ffp-contract.
5995 2013-11-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5997 * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
5999 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
6001 * config/aarch64/aarch64-builtins.c
6002 (aarch64_simd_itype): Remove.
6003 (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
6004 (VAR1): Use qualifiers.
6005 (aarch64_build_scalar_type): New.
6006 (aarch64_build_vector_type): Likewise.
6007 (aarch64_build_type): Likewise.
6008 (aarch64_init_simd_builtins): Refactor, remove special cases,
6009 consolidate main loop.
6010 (aarch64_simd_expand_args): Likewise.
6012 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
6015 * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
6017 2013-11-19 Miro Kropacek <miro.kropacek@gmail.com>
6019 * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
6021 2013-11-19 David Malcolm <dmalcolm@redhat.com>
6023 * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
6024 to "vec<>" instances.
6025 (build_pretty_printer): Register the vec<>* prettyprinter.
6027 2013-11-19 David Malcolm <dmalcolm@redhat.com>
6029 * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
6030 (GdbSubprinter.handles_type): New.
6031 (GdbSubprinterTypeList): New subclass of GdbSubprinter.
6032 (GdbSubprinterRegex): New subclass of GdbSubprinter.
6033 (GdbPrettyPrinters.add_printer): Remove in favor of...
6034 (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
6035 (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
6036 (GdbPrettyPrinters.__call__): Update search for subprinter
6037 to use handles_type method.
6038 (build_pretty_printer): Update registration of subprinters to
6039 use the new API above, supporting multiple spelling of each type,
6040 and allowing for future regex-based subprinters.
6042 2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6044 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
6045 V16QI vector splat case for little endian.
6047 2013-11-19 Jeff Law <law@redhat.com>
6049 * tree-ssa-threadedge.c (thread_across_edge): After threading
6050 through a joiner, allow threading a normal block requiring duplication.
6052 * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
6053 jump threading requests that would muck up the loop structures.
6055 * tree-ssa-threadupdate.c: Fix trailing whitespace.
6056 * tree-ssa-threadupdate.h: Likewise.
6058 2013-11-19 Mike Stump <mikestump@comcast.net>
6060 * gdbinit.in: Add pmz to print out mpz values.
6062 2013-11-20 Jan Hubicka <jh@suse.cz>
6064 * common.opt (ffat-lto-objects): Disable by default.
6065 * doc/invoke.texi (fat-lto-objects): Update documentation.
6066 * opts.c: Enable fat-lto-objects on lto plugin disable setups.
6068 2013-11-19 Martin Jambor <mjambor@suse.cz>
6070 PR rtl-optimization/59099
6071 * ira.c (find_moveable_pseudos): Put back various analyses from ira()
6073 (ira): Move init_reg_equiv and call to
6074 split_live_ranges_for_shrink_wrap up, remove analyses around call
6075 to find_moveable_pseudos.
6077 2013-11-20 Alan Modra <amodra@gmail.com>
6079 * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
6080 * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
6081 to strict alignment on older processors when little-endian.
6082 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
6085 2013-11-19 Teresa Johnson <tejohnson@google.com>
6087 * common/config/i386/i386-common.c: Enable
6088 -freorder-blocks-and-partition at -O2 and up for x86.
6089 * doc/invoke.texi: Update -freorder-blocks-and-partition default.
6090 * opts.c (finish_options): Only warn if
6091 -freorder-blocks-and-partition was set on command line.
6093 2013-11-19 Sriraman Tallam <tmsriram@google.com>
6095 * final.c (final_scan_insn): Emit a label for the split
6096 cold function part. Label name is formed by suffixing
6097 the original function name with "cold".
6099 2013-11-19 David Malcolm <dmalcolm@redhat.com>
6101 * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
6102 (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
6103 (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
6104 (EXIT_BLOCK_PTR_FOR_FN): ...this.
6105 (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
6107 (EXIT_BLOCK_PTR): Likewise.
6108 (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
6109 (FOR_ALL_BB_FN): Update for renaming of
6110 "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
6112 * cfg.c (init_flow): Likewise.
6113 (check_bb_profile): Likewise.
6114 * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
6115 * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
6116 * cfghooks.c (account_profile_record): Likewise.
6117 * cfgloop.c (init_loops_structure): Likewise.
6118 * cgraphbuild.c (record_eh_tables): Likewise.
6119 (compute_call_stmt_bb_frequency): Likewise.
6120 * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
6121 * lto-streamer-in.c (input_cfg): Likewise.
6122 * predict.c (maybe_hot_frequency_p): Likewise.
6123 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
6124 * tree-inline.c (initialize_cfun): Likewise.
6125 (copy_cfg_body): Likewise.
6126 (copy_body): Likewise.
6127 (tree_function_versioning): Likewise.
6129 * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
6130 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6131 (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
6132 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
6133 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6134 (connect_traces): Likewise.
6135 (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
6136 (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
6137 (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
6139 (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
6141 (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
6142 (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
6143 (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
6144 (rotate_loop): Likewise.
6145 * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
6146 * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
6148 (alloc_aux_for_edges): Likewise.
6149 (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
6150 (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
6152 (compact_blocks): Likewise.
6153 (clear_edges): Likewise.
6154 * cfganal.c (single_pred_before_succ_order): Remove usage of
6155 ENTRY_BLOCK_PTR macro.
6156 (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
6157 (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
6158 (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
6159 (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
6160 (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
6162 (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
6163 (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
6165 (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
6166 (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
6167 (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
6168 (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6169 (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
6170 (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
6172 (print_edge_list): Likewise.
6173 (create_edge_list): Likewise.
6174 (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
6175 (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
6177 * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
6179 (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
6180 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6181 * cfgcleanup.c (delete_unreachable_blocks): Likewise.
6182 (try_optimize_cfg): Likewise.
6183 (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
6184 (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
6185 (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
6186 (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
6187 (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
6188 (try_forward_edges): Likewise.
6189 (try_simplify_condjump): Likewise.
6190 * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
6191 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6192 (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
6193 (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
6195 (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
6196 (expand_gimple_tailcall): Likewise.
6197 * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
6198 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6199 (tidy_fallthru_edges): Likewise.
6200 (verify_flow_info): Likewise.
6201 * cfgloop.c (flow_bb_inside_loop_p): Likewise.
6202 (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
6203 (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
6204 (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
6205 (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
6206 (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
6207 (get_loop_body_in_dom_order): Likewise.
6208 (get_loop_body): Likewise.
6209 * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
6210 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6211 * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
6213 (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
6214 (fix_bb_placement): Likewise.
6215 * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
6216 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6217 (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
6218 (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
6220 (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
6221 (cfg_layout_can_merge_blocks_p): Remove uses of macros:
6222 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6223 (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
6225 (fixup_fallthru_exit_predecessor): Remove uses of macros:
6226 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6227 (fixup_reorder_chain): Likewise.
6228 (relink_block_chain): Likewise.
6229 (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
6230 (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
6231 (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
6232 (force_one_exit_fallthru): Likewise.
6233 (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
6235 (rtl_verify_edges): Likewise.
6236 (commit_edge_insertions): Likewise.
6237 (commit_one_edge_insertion): Likewise.
6238 (rtl_split_edge): Likewise.
6239 (force_nonfallthru_and_redirect): Likewise.
6240 (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
6241 (skip_insns_after_block): Likewise.
6242 (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
6244 (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
6245 (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
6247 (contains_no_active_insn_p): Likewise.
6248 (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
6249 (entry_of_function): Likewise.
6250 (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
6251 (fixup_new_cold_bb): Likewise.
6252 (patch_jump_insn): Likewise.
6253 (try_redirect_by_replacing_jump): Likewise.
6254 (block_label): Likewise.
6255 (could_fall_through): Likewise.
6256 (can_fallthru): Likewise.
6257 * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
6258 ENTRY_BLOCK_PTR macro.
6259 (rebuild_cgraph_edges): Likewise.
6260 * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
6261 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6262 (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
6263 * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
6264 (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
6265 (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
6266 (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
6267 (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
6269 (reg_nonzero_bits_for_combine): Likewise.
6270 (set_nonzero_bits_and_sign_copies): Likewise.
6271 (combine_instructions): Likewise.
6272 * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
6274 (bypass_conditional_jumps): Likewise.
6275 (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
6276 (find_implicit_sets): Likewise.
6277 (cprop_jump): Likewise.
6278 * cse.c (cse_cc_succs): Likewise.
6279 (cse_find_path): Likewise.
6280 * df-problems.c (df_lr_confluence_0): Likewise.
6281 * df-scan.c (df_entry_block_defs_collect): Remove usage of
6282 ENTRY_BLOCK_PTR macro.
6283 (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
6284 * dominance.c (iterate_fix_dominators): Remove usage of
6285 ENTRY_BLOCK_PTR macro.
6286 (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6287 (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
6288 (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
6290 (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
6292 (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
6294 * domwalk.c (cmp_bb_postorder): Likewise.
6295 * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
6296 * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
6298 (sjlj_emit_function_enter): Likewise.
6299 * final.c (compute_alignments): Likewise.
6300 * function.c (thread_prologue_and_epilogue_insns): Remove uses of
6301 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6302 (reposition_prologue_and_epilogue_notes): Remove usage of
6303 EXIT_BLOCK_PTR macro.
6304 (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
6306 (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
6307 (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
6308 * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
6309 (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
6310 (compute_code_hoist_vbeinout): Likewise.
6311 (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
6312 (pre_expr_reaches_here_p_work): Likewise.
6313 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
6314 (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
6316 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
6317 ENTRY_BLOCK_PTR macro.
6318 * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
6320 * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
6321 ENTRY_BLOCK_PTR macro.
6322 * graphite-scop-detection.c (build_scops): Likewise.
6323 (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
6324 (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
6325 * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
6327 (unlink_bb_notes): Likewise.
6328 (create_check_block_twin): Likewise.
6329 (init_before_recovery): Likewise.
6330 (sched_extend_bb): Likewise.
6331 (priority): Likewise.
6332 * hw-doloop.c (reorder_loops): Likewise.
6333 (discover_loop): Likewise.
6334 * ifcvt.c (dead_or_predicable): Remove uses of macros:
6335 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6336 (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
6337 (block_has_only_trap): Likewise.
6338 (cond_exec_find_if_block): Likewise.
6339 (merge_if_block): Likewise.
6340 * ipa-inline-analysis.c (param_change_prob): Remove usage of
6341 ENTRY_BLOCK_PTR macro.
6342 (record_modified): Likewise.
6343 * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
6344 EXIT_BLOCK_PTR macro.
6345 (local_pure_const): Likewise.
6346 * ipa-split.c (split_function): Remove uses of macros:
6347 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6348 (find_split_points): Likewise.
6349 (consider_split): Likewise.
6350 (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
6351 (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
6352 * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
6353 * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
6354 * ira-emit.c (entered_from_non_parent_p): Remove usage of
6355 ENTRY_BLOCK_PTR macro.
6356 (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
6357 * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
6358 * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
6359 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6360 * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
6362 (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
6364 (compute_farthest): Likewise.
6365 (compute_available): Likewise.
6366 (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
6367 (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
6369 (compute_earliest): Likewise.
6370 (compute_antinout_edge): Likewise.
6371 * loop-iv.c (simplify_using_initial_values): Remove usage of
6372 ENTRY_BLOCK_PTR macro.
6373 * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
6375 * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
6377 * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
6379 * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
6380 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6381 * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
6383 * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
6385 * lto-streamer-out.c (output_cfg): Likewise.
6386 * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
6388 (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
6389 * mode-switching.c (optimize_mode_switching): Likewise.
6390 (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
6391 * modulo-sched.c (rest_of_handle_sms): Likewise.
6392 (canon_loop): Likewise.
6393 * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
6394 * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
6395 of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6396 * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
6398 (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
6399 (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
6400 (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
6401 (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
6402 (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
6403 (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
6404 (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
6405 (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
6406 (gimple_predict_edge): Likewise.
6407 (probably_never_executed): Likewise.
6408 * profile.c (find_spanning_tree): Remove uses of macros:
6409 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6410 (branch_prob): Likewise.
6411 (compute_branch_probabilities): Likewise.
6412 (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
6413 (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
6414 (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
6415 (set_bb_counts): Likewise.
6416 (correct_negative_edge_counts): Likewise.
6417 (get_exec_counts): Likewise.
6418 (instrument_values): Likewise.
6419 (instrument_edges): Likewise.
6420 * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
6422 (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
6423 (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
6424 (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
6425 (reg_to_stack): Likewise.
6426 * regs.h (REG_N_SETS): Likewise.
6427 * reload.c (find_dummy_reload): Likewise.
6428 (combine_reloads): Likewise.
6429 (push_reload): Likewise.
6430 * reload1.c (has_nonexceptional_receiver): Remove usage of
6431 EXIT_BLOCK_PTR macro.
6432 * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
6434 (find_basic_block): Likewise.
6435 * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
6436 (schedule_ebbs): Likewise.
6437 * sched-int.h (sel_sched_p): Likewise.
6438 * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
6440 (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
6441 (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
6443 (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
6444 (extend_rgns): Likewise.
6445 (find_single_block_region): Likewise.
6446 * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
6447 ENTRY_BLOCK_PTR macro.
6448 (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
6449 (sel_create_recovery_block): Likewise.
6450 (bb_ends_ebb_p): Likewise.
6451 (sel_bb_end): Likewise.
6452 (sel_bb_head): Likewise.
6453 (free_lv_sets): Likewise.
6454 (init_lv_sets): Likewise.
6455 (tidy_control_flow): Likewise.
6456 (maybe_tidy_empty_bb): Likewise.
6457 * sel-sched-ir.h (_succ_iter_cond): Likewise.
6458 (_succ_iter_start): Likewise.
6459 (sel_bb_empty_or_nop_p): Likewise.
6460 (get_loop_exit_edges_unique_dests): Likewise.
6461 (inner_loop_header_p): Likewise.
6462 * sel-sched.c (create_block_for_bookkeeping): Likewise.
6463 (find_block_for_bookkeeping): Likewise.
6464 * store-motion.c (remove_reachable_equiv_notes): Likewise.
6465 (insert_store): Likewise.
6466 * trans-mem.c (ipa_tm_transform_clone): Remove usage of
6467 ENTRY_BLOCK_PTR macro.
6468 (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
6469 (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
6470 (gate_tm_init): Likewise.
6471 (tm_region_init): Likewise.
6472 * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
6473 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6474 (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
6475 (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
6477 (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
6478 (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
6480 (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
6482 (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
6484 (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
6486 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6487 (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
6488 (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
6489 (build_gimple_cfg): Likewise.
6490 (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
6491 (gimple_can_merge_blocks_p): Likewise.
6492 * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
6493 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6494 * tree-complex.c (update_parameter_components): Remove usage of
6495 ENTRY_BLOCK_PTR macro.
6496 * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
6497 EXIT_BLOCK_PTR macro.
6498 * tree-inline.c (tree_function_versioning): Remove uses of macros:
6499 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6500 (delete_unreachable_blocks_update_callgraph): Likewise.
6501 (initialize_cfun): Likewise.
6502 (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
6503 (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
6504 (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
6505 * tree-into-ssa.c (update_ssa): Likewise.
6506 (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
6507 (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
6508 (rewrite_into_ssa): Likewise.
6509 (rewrite_debug_stmt_uses): Likewise.
6510 * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
6511 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6512 * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
6513 ENTRY_BLOCK_PTR macro.
6514 * tree-scalar-evolution.h (block_before_loop): Likewise.
6515 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
6516 (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
6518 (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
6520 (propagate_dereference_distances): Remove uses of macros:
6521 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6522 (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
6524 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
6525 (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
6526 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
6527 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
6528 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6529 (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
6530 (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
6531 (mark_control_dependent_edges_necessary): Remove uses of macros:
6532 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6533 * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
6534 ENTRY_BLOCK_PTR macro.
6535 (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
6536 * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
6537 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6538 (calculate_live_on_exit): Likewise.
6539 (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
6540 (loe_visit_block): Likewise.
6541 * tree-ssa-live.h (live_on_exit): Remove uses of macros:
6542 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6543 (live_on_entry): Likewise.
6544 * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
6545 EXIT_BLOCK_PTR macro.
6546 * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
6547 ENTRY_BLOCK_PTR macro.
6548 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
6549 (bound_difference): Likewise.
6550 * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
6551 of EXIT_BLOCK_PTR macro.
6552 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
6553 of ENTRY_BLOCK_PTR macro.
6554 * tree-ssa-math-opts.c (register_division_in): Likewise.
6555 * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
6556 * tree-ssa-pre.c (compute_avail): Likewise.
6557 (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
6558 (insert): Remove usage of ENTRY_BLOCK_PTR macro.
6559 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
6560 (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
6561 (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
6563 (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
6564 * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
6565 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6566 (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
6567 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
6568 (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
6569 * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
6570 (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
6571 (find_pdom): Likewise.
6572 (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
6573 * tree-stdarg.c (reachable_at_most_once): Likewise.
6574 * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
6575 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6576 (eliminate_tail_call): Likewise.
6577 * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
6579 (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
6580 * var-tracking.c (vt_initialize): Remove uses of macros:
6581 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6582 (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
6583 (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
6584 (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
6586 * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
6588 * config/bfin/bfin.c (hwloop_optimize): Likewise.
6589 * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
6590 of EXIT_BLOCK_PTR macro.
6591 * config/arm/arm.c (require_pic_register): Remove usage of
6592 ENTRY_BLOCK_PTR macro.
6593 (arm_r3_live_at_start_p): Likewise.
6594 (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
6595 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
6596 * config/frv/frv.c (frv_optimize_membar_global): Likewise.
6597 * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
6598 ENTRY_BLOCK_PTR macro.
6599 * config/i386/i386.c (ix86_count_insn): Likewise.
6600 (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
6601 (ix86_pad_short_function): Likewise.
6602 (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
6603 (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
6604 (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
6605 (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
6606 (ix86_expand_epilogue): Likewise.
6607 * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
6608 (ia64_expand_prologue): Likewise.
6610 2013-11-19 Catherine Moore <clm@codesourcery.com>
6612 * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
6613 * config/mips/mips.opt (mfix-rm7000): New option.
6614 * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
6615 * config/mips/mips.c (mips_reorg_process_insns): Disable
6616 noreorder for TARGET_FIX_RM7000.
6618 2013-11-19 Oleg Endo <olegendo@gcc.gnu.org>
6620 * config/sh/sh-c.c: Fix typo in include of file attribs.h.
6622 2013-11-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6624 * config/arm/arm.c (arm_new_rtx_costs):
6625 Handle narrow mode add-shifts properly.
6626 * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
6627 * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
6630 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
6632 * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
6634 2013-11-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6636 * config/rs6000/vector.md ("mov<mode>"): Do not call
6637 rs6000_emit_le_vsx_move to move into or out of GPRs.
6638 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
6639 source and destination are not GPR hard regs.
6641 2013-11-19 David Malcolm <dmalcolm@redhat.com>
6643 * basic-block.h (n_edges_for_function): Rename macro to...
6644 (n_edges_for_fn): ...this.
6645 (n_edges): Eliminate macro as work towards making uses of
6648 * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
6649 to "n_edges_for_fn".
6651 * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
6652 (clear_edges): Likewise.
6653 (free_edge): Likewise.
6654 * cfghooks.c (dump_flow_info): Likewise.
6655 * cprop.c (is_too_expensive): Likewise.
6656 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
6657 * gcse.c (is_too_expensive): Likewise.
6658 (prune_insertions_deletions): Likewise.
6659 * mcf.c (create_fixup_graph): Likewise.
6660 * sched-rgn.c (haifa_find_rgns): Likewise.
6661 * tree-cfg.c (gimple_dump_cfg): Likewise.
6662 * var-tracking.c (variable_tracking_main_1): Likewise.
6664 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
6666 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
6669 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
6671 * config/aarch64/aarch64.md
6672 (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
6674 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
6676 * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
6678 2013-11-19 Joseph Myers <joseph@codesourcery.com>
6680 * varasm.c (align_variable): Give error instead of warning for
6681 unsupported alignment.
6682 (assemble_noswitch_variable): Likewise.
6684 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
6686 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
6689 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
6691 * loop-doloop.c (doloop_optimize_loops): Remove unused
6692 loop iterator argument from FOR_EACH_LOOP.
6694 2013-11-19 David Malcolm <dmalcolm@redhat.com>
6696 Convert gimple types from a union to C++ inheritance.
6697 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
6698 * coretypes.h (union gimple_statement_d): Remove declaration.
6699 (gimple): Convert from being a "union gimple_statement_d *"
6700 to a "struct gimple_statement_base *".
6701 (const_gimple): Likewise (with "const").
6702 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
6703 (ggc_alloc_cleared_gimple_statement_stat): ...this.
6704 * gimple-pretty-print.c (debug): Change parameter from a
6705 "gimple_statement_d &" to a "gimple_statement_base &".
6706 (debug): Change parameter from a "gimple_statement_d *" to
6707 a "gimple_statement_base *".
6708 * gimple-pretty-print.h (debug): Update declarations as above.
6709 * gimple.c (gimple_alloc_stat): Update for renaming of
6710 ggc_alloc_cleared_gimple_statement_d_stat to
6711 ggc_alloc_cleared_gimple_statement_stat.
6712 * gimple.h: Include "is-a.h" for use by is_a_helper
6713 specializations in followup autogenerated patch.
6714 (struct gimple statement_base): Make this type usable as a base
6715 class by adding "desc", "tag" and "variable_size" to GTY, thus
6716 using opting-in to gengtype's support for simple inheritance.
6717 (gimple_statement_with_ops_base): Convert to a subclass of
6718 gimple_statement_base, dropping initial "gsbase" field. Note that
6719 this type is abstract, with no GSS_ value, and thus no GTY tag value.
6720 (gimple_statement_with_ops): Convert to a subclass of
6721 gimple_statement_with_ops_base, dropping initial "opbase" field.
6722 Add tag value to GTY marking. Update marking of op field to
6723 reflect how num_ops field is accessed via inheritance.
6724 (gimple_statement_with_memory_ops_base): Convert to a subclass of
6725 gimple_statement_with_ops_base, dropping initial "opbase" field.
6726 Add tag value to GTY marking.
6727 (gimple_statement_with_memory_ops): Convert to a subclass of
6728 public gimple_statement_with_memory_ops_base, dropping initial
6729 "membase" field. Add tag value to GTY marking. Update marking
6730 of op field to reflect how num_ops field is accessed via inheritance.
6731 (gimple_statement_call): Analogous changes that also update the
6732 marking of the "u" union.
6733 (gimple_statement_omp): Convert to a subclass of
6734 gimple_statement_base, dropping initial "gsbase" field, adding
6735 tag value to GTY marking.
6736 (gimple_statement_bind): Likewise.
6737 (gimple_statement_catch): Likewise.
6738 (gimple_statement_eh_filter): Likewise.
6739 (gimple_statement_eh_else): Likewise.
6740 (gimple_statement_eh_mnt): Likewise.
6741 (gimple_statement_phi): Likewise.
6742 (gimple_statement_eh_ctrl): Likewise.
6743 (gimple_statement_try): Likewise.
6744 (gimple_statement_wce): Likewise.
6745 (gimple_statement_asm): Convert to a subclass of
6746 gimple_statement_with_memory_ops_base, dropping initial
6747 "membase" field, adding tag value to GTY marking, and updating
6748 marking of op field.
6749 (gimple_statement_omp_critical): Convert to a subclass of
6750 gimple_statement_omp, dropping initial "omp" field, adding tag
6751 value to GTY marking.
6752 (gimple_statement_omp_for): Likewise.
6753 (gimple_statement_omp_parallel): Likewise.
6754 (gimple_statement_omp_task): Convert to a subclass of
6755 gimple_statement_omp_parallel, dropping initial "par" field,
6756 adding tag value to GTY marking.
6757 (gimple_statement_omp_sections): Convert to a subclass of
6758 gimple_statement_omp, dropping initial "omp" field, adding
6759 tag value to GTY marking.
6760 (gimple_statement_omp_continue): Convert to a subclass of
6761 gimple_statement_base, dropping initial "gsbase" field, adding
6762 tag value to GTY marking.
6763 (gimple_statement_omp_single): Convert to a subclass of
6764 gimple_statement_omp, dropping initial "omp" field, adding
6765 tag value to GTY marking.
6766 (gimple_statement_omp_atomic_load): Convert to a subclass of
6767 gimple_statement_base, dropping initial "gsbase" field, adding
6768 tag value to GTY marking.
6769 (gimple_statement_omp_atomic_store): Convert to a subclass of
6770 gimple_statement_base, dropping initial "gsbase" field, adding
6771 tag value to GTY marking.
6772 (gimple_statement_transaction): Convert to a subclass of
6773 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
6774 field, adding tag value to GTY marking.
6775 (union gimple_statement_d): Remove.
6776 * system.h (CONST_CAST_GIMPLE): Update to use
6777 "struct gimple_statement_base *" rather than
6778 "union gimple_statement_d *".
6779 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
6780 gimple_statement_d to gimple_statement_base.
6782 * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
6783 (gimple_set_use_ops): Port from union to usage of as_a.
6784 (gimple_set_vuse): Likewise.
6785 (gimple_set_vdef): Likewise.
6786 (gimple_call_internal_fn): Port from union to a static_cast,
6787 given that the type has already been asserted.
6788 (gimple_omp_body_ptr): Port from unchecked union usage to
6790 (gimple_omp_set_body): Likewise.
6792 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
6793 gimple types to a true class hierarchy.
6794 (update_call_edge_frequencies): Likewise.
6795 (gsi_insert_seq_nodes_before): Likewise.
6796 (gsi_insert_seq_nodes_after): Likewise.
6797 (gsi_split_seq_after): Likewise.
6798 (gsi_set_stmt): Likewise.
6799 (gsi_split_seq_before): Likewise.
6800 (gsi_remove): Likewise.
6801 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
6802 (gsi_next): Likewise.
6803 (gsi_prev): Likewise.
6804 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
6805 * gimple-ssa.h (gimple_vuse_op): Likewise.
6806 (gimple_vdef_op): Likewise.
6807 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
6808 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
6809 * gimple.c (gimple_set_code): Likewise.
6810 (gimple_alloc_stat): Likewise.
6811 (gimple_set_subcode): Likewise.
6812 (gimple_build_call_internal_1): Likewise.
6813 (gimple_check_failed): Likewise.
6814 (gimple_call_flags): Likewise.
6815 (gimple_set_bb): Likewise.
6816 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
6817 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
6818 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
6819 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
6820 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
6821 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
6822 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
6823 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
6824 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
6825 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
6826 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
6827 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
6828 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
6829 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
6830 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
6831 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
6832 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
6833 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
6834 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
6835 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
6836 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
6837 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
6838 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
6839 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
6840 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
6841 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
6843 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
6845 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
6847 (is_a_helper <const gimple_statement_omp_atomic_store>
6848 (const_gimple)): Likewise.
6849 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
6851 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
6853 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
6855 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
6857 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
6859 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
6861 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
6863 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
6864 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
6866 (gimple_seq_last): Update for conversion of gimple types to a true
6868 (gimple_seq_set_last): Likewise.
6869 (gimple_code): Likewise.
6870 (gimple_bb): Likewise.
6871 (gimple_block): Likewise.
6872 (gimple_set_block): Likewise.
6873 (gimple_location): Likewise.
6874 (gimple_location_ptr): Likewise.
6875 (gimple_set_location): Likewise.
6876 (gimple_no_warning_p): Likewise.
6877 (gimple_set_no_warning): Likewise.
6878 (gimple_set_visited): Likewise.
6879 (gimple_visited_p): Likewise.
6880 (gimple_set_plf): Likewise.
6881 (gimple_plf): Likewise.
6882 (gimple_set_uid): Likewise.
6883 (gimple_uid): Likewise.
6884 (gimple_init_singleton): Likewise.
6885 (gimple_modified_p): Likewise.
6886 (gimple_set_modified): Likewise.
6887 (gimple_expr_code): Likewise.
6888 (gimple_has_volatile_ops): Likewise.
6889 (gimple_set_has_volatile_ops): Likewise.
6890 (gimple_omp_subcode): Likewise.
6891 (gimple_omp_set_subcode): Likewise.
6892 (gimple_omp_return_set_nowait): Likewise.
6893 (gimple_omp_section_set_last): Likewise.
6894 (gimple_omp_parallel_set_combined_p): Likewise.
6895 (gimple_omp_atomic_set_need_value): Likewise.
6896 (gimple_omp_atomic_set_seq_cst): Likewise.
6897 (gimple_num_ops): Likewise.
6898 (gimple_set_num_ops): Likewise.
6899 (gimple_assign_nontemporal_move_p): Likewise.
6900 (gimple_assign_set_nontemporal_move): Likewise.
6901 (gimple_assign_rhs_code): Likewise.
6902 (gimple_assign_set_rhs_code): Likewise.
6903 (gimple_call_internal_p): Likewise.
6904 (gimple_call_with_bounds_p): Likewise.
6905 (gimple_call_set_with_bounds): Likewise.
6906 (gimple_call_set_tail): Likewise.
6907 (gimple_call_tail_p): Likewise.
6908 (gimple_call_set_return_slot_opt): Likewise.
6909 (gimple_call_return_slot_opt_p): Likewise.
6910 (gimple_call_set_from_thunk): Likewise.
6911 (gimple_call_from_thunk_p): Likewise.
6912 (gimple_call_set_va_arg_pack): Likewise.
6913 (gimple_call_va_arg_pack_p): Likewise.
6914 (gimple_call_set_nothrow): Likewise.
6915 (gimple_call_set_alloca_for_var): Likewise.
6916 (gimple_call_alloca_for_var_p): Likewise.
6917 (gimple_call_copy_flags): Likewise.
6918 (gimple_cond_code): Likewise.
6919 (gimple_cond_set_code): Likewise.
6920 (gimple_cond_make_false): Likewise.
6921 (gimple_cond_make_true): Likewise.
6922 (gimple_asm_volatile_p): Likewise.
6923 (gimple_asm_set_volatile): Likewise.
6924 (gimple_asm_set_input): Likewise.
6925 (gimple_asm_input_p): Likewise.
6926 (gimple_try_kind): Likewise.
6927 (gimple_try_set_kind): Likewise.
6928 (gimple_try_catch_is_cleanup): Likewise.
6929 (gimple_try_set_catch_is_cleanup): Likewise.
6930 (gimple_wce_cleanup_eh_only): Likewise.
6931 (gimple_wce_set_cleanup_eh_only): Likewise.
6932 (gimple_debug_bind_p): Likewise.
6933 (gimple_debug_source_bind_p): Likewise.
6934 (gimple_omp_for_set_kind): Likewise.
6935 (gimple_omp_for_set_combined_p): Likewise.
6936 (gimple_omp_for_set_combined_into_p): Likewise.
6937 (gimple_omp_target_set_kind): Likewise.
6938 (gimple_transaction_subcode): Likewise.
6939 (gimple_transaction_set_subcode): Likewise.
6940 (gimple_predict_predictor): Likewise.
6941 (gimple_predict_set_predictor): Likewise.
6942 (gimple_predict_outcome): Likewise.
6943 (gimple_predict_set_outcome): Likewise.
6944 (gimple_transaction_set_label): Likewise.
6945 (gimple_transaction_set_body): Likewise.
6946 (gimple_transaction_label_ptr): Likewise.
6947 (gimple_transaction_label): Likewise.
6948 (gimple_transaction_body_ptr): Likewise.
6949 (gimple_omp_continue_set_control_use): Likewise.
6950 (gimple_omp_continue_control_use_ptr): Likewise.
6951 (gimple_omp_continue_control_use): Likewise.
6952 (gimple_omp_continue_set_control_def): Likewise.
6953 (gimple_omp_continue_control_def_ptr): Likewise.
6954 (gimple_omp_continue_control_def): Likewise.
6955 (gimple_omp_atomic_load_rhs_ptr): Likewise.
6956 (gimple_omp_atomic_load_rhs): Likewise.
6957 (gimple_omp_atomic_load_set_rhs): Likewise.
6958 (gimple_omp_atomic_load_lhs_ptr): Likewise.
6959 (gimple_omp_atomic_load_lhs): Likewise.
6960 (gimple_omp_atomic_load_set_lhs): Likewise.
6961 (gimple_omp_atomic_store_val_ptr): Likewise.
6962 (gimple_omp_atomic_store_val): Likewise.
6963 (gimple_omp_atomic_store_set_val): Likewise.
6964 (gimple_omp_for_cond): Likewise.
6965 (gimple_omp_for_set_cond): Likewise.
6966 (gimple_omp_sections_set_control): Likewise.
6967 (gimple_omp_sections_control_ptr): Likewise.
6968 (gimple_omp_sections_control): Likewise.
6969 (gimple_omp_sections_set_clauses): Likewise.
6970 (gimple_omp_sections_clauses_ptr): Likewise.
6971 (gimple_omp_sections_clauses): Likewise.
6972 (gimple_omp_teams_set_clauses): Likewise.
6973 (gimple_omp_teams_clauses_ptr): Likewise.
6974 (gimple_omp_teams_clauses): Likewise.
6975 (gimple_omp_target_set_data_arg): Likewise.
6976 (gimple_omp_target_data_arg_ptr): Likewise.
6977 (gimple_omp_target_data_arg): Likewise.
6978 (gimple_omp_target_set_child_fn): Likewise.
6979 (gimple_omp_target_child_fn_ptr): Likewise.
6980 (gimple_omp_target_child_fn): Likewise.
6981 (gimple_omp_target_set_clauses): Likewise.
6982 (gimple_omp_target_clauses_ptr): Likewise.
6983 (gimple_omp_target_clauses): Likewise.
6984 (gimple_omp_single_set_clauses): Likewise.
6985 (gimple_omp_single_clauses_ptr): Likewise.
6986 (gimple_omp_single_clauses): Likewise.
6987 (gimple_omp_task_set_arg_align): Likewise.
6988 (gimple_omp_task_arg_align_ptr): Likewise.
6989 (gimple_omp_task_arg_align): Likewise.
6990 (gimple_omp_task_set_arg_size): Likewise.
6991 (gimple_omp_task_arg_size_ptr): Likewise.
6992 (gimple_omp_task_arg_size): Likewise.
6993 (gimple_omp_task_set_copy_fn): Likewise.
6994 (gimple_omp_task_copy_fn_ptr): Likewise.
6995 (gimple_omp_task_copy_fn): Likewise.
6996 (gimple_omp_task_set_data_arg): Likewise.
6997 (gimple_omp_task_data_arg_ptr): Likewise.
6998 (gimple_omp_task_data_arg): Likewise.
6999 (gimple_omp_task_set_child_fn): Likewise.
7000 (gimple_omp_task_child_fn_ptr): Likewise.
7001 (gimple_omp_task_child_fn): Likewise.
7002 (gimple_omp_task_set_clauses): Likewise.
7003 (gimple_omp_task_clauses_ptr): Likewise.
7004 (gimple_omp_task_clauses): Likewise.
7005 (gimple_omp_parallel_set_data_arg): Likewise.
7006 (gimple_omp_parallel_data_arg_ptr): Likewise.
7007 (gimple_omp_parallel_data_arg): Likewise.
7008 (gimple_omp_parallel_set_child_fn): Likewise.
7009 (gimple_omp_parallel_child_fn_ptr): Likewise.
7010 (gimple_omp_parallel_child_fn): Likewise.
7011 (gimple_omp_parallel_set_clauses): Likewise.
7012 (gimple_omp_parallel_clauses_ptr): Likewise.
7013 (gimple_omp_parallel_clauses): Likewise.
7014 (gimple_omp_for_set_pre_body): Likewise.
7015 (gimple_omp_for_pre_body_ptr): Likewise.
7016 (gimple_omp_for_set_incr): Likewise.
7017 (gimple_omp_for_incr_ptr): Likewise.
7018 (gimple_omp_for_incr): Likewise.
7019 (gimple_omp_for_set_final): Likewise.
7020 (gimple_omp_for_final_ptr): Likewise.
7021 (gimple_omp_for_final): Likewise.
7022 (gimple_omp_for_set_initial): Likewise.
7023 (gimple_omp_for_initial_ptr): Likewise.
7024 (gimple_omp_for_initial): Likewise.
7025 (gimple_omp_for_set_index): Likewise.
7026 (gimple_omp_for_index_ptr): Likewise.
7027 (gimple_omp_for_index): Likewise.
7028 (gimple_omp_for_collapse): Likewise.
7029 (gimple_omp_for_set_clauses): Likewise.
7030 (gimple_omp_for_clauses_ptr): Likewise.
7031 (gimple_omp_for_clauses): Likewise.
7032 (gimple_omp_critical_set_name): Likewise.
7033 (gimple_omp_critical_name_ptr): Likewise.
7034 (gimple_omp_critical_name): Likewise.
7035 (gimple_eh_dispatch_set_region): Likewise.
7036 (gimple_eh_dispatch_region): Likewise.
7037 (gimple_resx_set_region): Likewise.
7038 (gimple_resx_region): Likewise.
7039 (gimple_phi_set_arg): Likewise.
7040 (gimple_phi_arg): Likewise.
7041 (gimple_phi_set_result): Likewise.
7042 (gimple_phi_result_ptr): Likewise.
7043 (gimple_phi_result): Likewise.
7044 (gimple_phi_num_args): Likewise.
7045 (gimple_phi_capacity): Likewise.
7046 (gimple_wce_set_cleanup): Likewise.
7047 (gimple_wce_cleanup_ptr): Likewise.
7048 (gimple_try_set_cleanup): Likewise.
7049 (gimple_try_set_eval): Likewise.
7050 (gimple_try_cleanup_ptr): Likewise.
7051 (gimple_try_eval_ptr): Likewise.
7052 (gimple_eh_else_set_e_body): Likewise.
7053 (gimple_eh_else_set_n_body): Likewise.
7054 (gimple_eh_else_e_body_ptr): Likewise.
7055 (gimple_eh_else_n_body_ptr): Likewise.
7056 (gimple_eh_must_not_throw_set_fndecl): Likewise.
7057 (gimple_eh_must_not_throw_fndecl): Likewise.
7058 (gimple_eh_filter_set_failure): Likewise.
7059 (gimple_eh_filter_set_types): Likewise.
7060 (gimple_eh_filter_failure_ptr): Likewise.
7061 (gimple_eh_filter_types_ptr): Likewise.
7062 (gimple_eh_filter_types): Likewise.
7063 (gimple_catch_set_handler): Likewise.
7064 (gimple_catch_set_types): Likewise.
7065 (gimple_catch_handler_ptr): Likewise.
7066 (gimple_catch_types_ptr): Likewise.
7067 (gimple_catch_types): Likewise.
7068 (gimple_asm_string): Likewise.
7069 (gimple_asm_set_label_op): Likewise.
7070 (gimple_asm_label_op): Likewise.
7071 (gimple_asm_set_clobber_op): Likewise.
7072 (gimple_asm_clobber_op): Likewise.
7073 (gimple_asm_set_output_op): Likewise.
7074 (gimple_asm_output_op_ptr): Likewise.
7075 (gimple_asm_output_op): Likewise.
7076 (gimple_asm_set_input_op): Likewise.
7077 (gimple_asm_input_op_ptr): Likewise.
7078 (gimple_asm_input_op): Likewise.
7079 (gimple_asm_nlabels): Likewise.
7080 (gimple_asm_nclobbers): Likewise.
7081 (gimple_asm_noutputs): Likewise.
7082 (gimple_asm_ninputs): Likewise.
7083 (gimple_bind_set_block): Likewise.
7084 (gimple_bind_block): Likewise.
7085 (gimple_bind_add_seq): Likewise.
7086 (gimple_bind_add_stmt): Likewise.
7087 (gimple_bind_set_body): Likewise.
7088 (gimple_bind_body_ptr): Likewise.
7089 (gimple_bind_append_vars): Likewise.
7090 (gimple_bind_set_vars): Likewise.
7091 (gimple_bind_vars): Likewise.
7092 (gimple_call_clobber_set): Likewise.
7093 (gimple_call_use_set): Likewise.
7094 (gimple_call_set_internal_fn): Likewise.
7095 (gimple_call_set_fntype): Likewise.
7096 (gimple_call_fntype): Likewise.
7097 (gimple_omp_return_lhs_ptr): Likewise.
7098 (gimple_omp_return_lhs): Likewise.
7099 (gimple_omp_return_set_lhs): Likewise.
7100 (gimple_omp_taskreg_set_data_arg): Likewise.
7101 (gimple_omp_taskreg_data_arg_ptr): Likewise.
7102 (gimple_omp_taskreg_data_arg): Likewise.
7103 (gimple_omp_taskreg_set_child_fn): Likewise.
7104 (gimple_omp_taskreg_child_fn_ptr): Likewise.
7105 (gimple_omp_taskreg_child_fn): Likewise.
7106 (gimple_omp_taskreg_set_clauses): Likewise.
7107 (gimple_omp_taskreg_clauses_ptr): Likewise.
7108 (gimple_omp_taskreg_clauses): Likewise.
7109 (gimple_vuse): Likewise.
7110 (gimple_vdef): Likewise.
7111 (gimple_vuse_ptr): Likewise.
7112 (gimple_vdef_ptr): Likewise.
7113 * tree-inline.c (copy_debug_stmt): Likewise.
7114 * tree-phinodes.c (make_phi_node): Likewise.
7116 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
7117 (is_a_helper <gimple_statement_with_ops>::test): New.
7118 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
7119 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
7121 * gimple-streamer-in.c (input_gimple_stmt): Port from union
7122 access to use of as_a.
7123 * gimple.c (gimple_build_asm_1): Likewise.
7124 (gimple_build_try): Likewise. Also, return a specific subclass
7125 rather than just gimple.
7126 (gimple_build_resx): Port from union access to use of as_a.
7127 (gimple_build_eh_dispatch): Likewise.
7128 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
7129 now that gengtype no longer provides a typed allocator function.
7130 (gimple_copy): Likewise.
7131 * gimple.h (gimple_build_try): Return a specific subclass rather
7133 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
7134 with subclass access by making use of new return type of
7136 * tree-phinodes.c: (allocate_phi_node): Return a
7137 "gimple_statement_phi *" rather than just a gimple.
7138 (resize_phi_node): Likewise.
7139 (make_phi_node): Replace union access with subclass access by
7140 making use of new return type of allocate_phi_node.
7141 (reserve_phi_args_for_new_edge): Replace union access with as_a.
7142 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
7144 (remove_phi_args): Update for change to remove_phi_arg_num.
7146 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
7147 code field to reflect inheritance, rather than embedding of
7148 the base gimple type.
7150 2013-11-19 Richard Biener <rguenther@suse.de>
7152 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
7153 and destructor and make fel_next a member function.
7154 (fel_next): Transform into ...
7155 (loop_iterator::next): ... this.
7156 (fel_init): Transform into ...
7157 (loop_iterator::loop_iterator): ... this.
7158 (loop_iterator::~loop_iterator): New.
7159 (FOR_EACH_LOOP): Remove loop-iterator argument.
7160 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
7161 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
7162 graphite-clast-to-gimple.c, graphite-scop-detection.c,
7163 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
7164 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
7165 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
7166 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
7167 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
7168 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
7169 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
7170 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
7171 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
7172 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
7173 FOR_EACH_LOOP_BREAK with break.
7175 2013-11-19 Richard Biener <rguenther@suse.de>
7177 PR tree-optimization/59164
7178 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
7180 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
7181 whether we can create an epilogue loop to reflect thecases where
7184 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
7186 * graphite-sese-to-poly.c: Include expr.h.
7188 2013-11-19 Richard Biener <rguenther@suse.de>
7191 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
7192 loads into stmts that may clobber it.
7194 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
7196 * cgraphunit.c (symtab_terminator): New variable.
7197 (queued_nodes): Renamed from first. Use symtab_terminator as
7199 (analyze_functions): Adjust accordingly.
7200 (cgraph_process_new_functions): Return void.
7201 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
7203 2013-11-19 Marek Polacek <polacek@redhat.com>
7205 * opts.c (common_handle_option): Add -fsanitize=null option.
7206 Turn off -fdelete-null-pointer-checks option when doing the
7207 NULL pointer checking.
7208 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
7209 * tree-pass.h (make_pass_ubsan): Declare.
7210 (make_pass_sanopt): Declare.
7211 * timevar.def (TV_TREE_UBSAN): New timevar.
7212 * passes.def: Add pass_sanopt and pass_ubsan.
7213 * ubsan.h (ubsan_null_ckind): New enum.
7214 (ubsan_mismatch_data): New struct.
7215 (ubsan_expand_null_ifn): Declare.
7216 (ubsan_create_data): Adjust declaration.
7217 (ubsan_type_descriptor): Likewise.
7218 * asan.c: Include "ubsan.h".
7219 (pass_data_sanopt): New pass.
7220 (execute_sanopt): New function.
7221 (gate_sanopt): Likewise.
7222 (make_pass_sanopt): Likewise.
7223 (class pass_sanopt): New class.
7224 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
7225 gimple-iterator.h and cfgloop.h.
7226 (PROB_VERY_UNLIKELY): Define.
7227 (tree_type_map_hash): New function.
7228 (ubsan_type_descriptor): Add new parameter.
7229 Improve type name generation.
7230 (ubsan_create_data): Add new parameter. Add pointer data into
7232 (ubsan_expand_null_ifn): New function.
7233 (instrument_member_call): Likewise.
7234 (instrument_mem_ref): Likewise.
7235 (instrument_null): Likewise.
7236 (ubsan_pass): Likewise.
7237 (gate_ubsan): Likewise.
7238 (make_pass_ubsan): Likewise.
7239 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
7240 (class pass_ubsan): New class.
7241 (pass_data_ubsan): New pass.
7242 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
7243 * internal-fn.c (expand_UBSAN_NULL): New function.
7244 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
7245 even when !flag_toplevel_reorder.
7246 * internal-fn.def (UBSAN_NULL): New.
7248 2013-11-19 Jan Hubicka <jh@suse.cz>
7250 * cgraph.c (cgraph_create_indirect_edge): Use
7251 get_polymorphic_call_info.
7252 * cgraph.h (cgraph_indirect_call_info): Add outer_type,
7253 maybe_in_construction and maybe_derived_type.
7254 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
7255 (ipa_dummy_polymorphic_call_context): New global var.
7256 (possible_polymorphic_call_targets): Add context paramter.
7257 (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
7258 (possible_polymorphic_call_target_p): Likewise.
7259 (get_polymorphic_call_info): New function.
7260 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
7261 (add_type_duplicate): Remove forgotten debug output.
7262 (method_class_type): Add sanity check.
7263 (maybe_record_node): Add FINALP parameter.
7264 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
7265 by info by get_binfo_at_offset.
7266 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
7267 parameters; pass them to record-binfo.
7268 (polymorphic_call_target_d): Add context and FINAL.
7269 (polymorphic_call_target_hasher::hash): Hash context.
7270 (polymorphic_call_target_hasher::equal): Compare context.
7271 (free_polymorphic_call_targets_hash):
7272 (get_class_context): New function.
7273 (contains_type_p): New function.
7274 (get_polymorphic_call_info): New function.
7275 (walk_bases): New function.
7276 (possible_polymorphic_call_targets): Add context parameter; honnor it.
7277 (dump_possible_polymorphic_call_targets): Dump context.
7278 (possible_polymorphic_call_target_p): Add context.
7279 (update_type_inheritance_graph): Update comment.s
7280 (ipa_set_jf_known_type): Assert that compoentn type is known.
7281 (ipa_note_param_call): Do not tamper with offsets.
7282 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
7284 (update_indirect_edges_after_inlining): Likewise.
7285 (ipa_write_indirect_edge_info): Stream new fields.
7286 (ipa_read_indirect_edge_info): Stream in new fields.
7288 2013-11-19 Jan Hubicka <jh@suse.cz>
7290 * tree-pretty-print.c (dump_generic_node): Print class type of
7293 2013-11-19 Joey Ye <joey.ye@arm.com>
7295 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
7296 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
7298 * config/arm/arm.c (arm_option_override): By default disable
7299 -marm-pic-data-is-text-relative.
7300 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
7301 (arm_assemble_integer): Likewise.
7302 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
7303 New macro to initialize -marm-pic-data-is-text-relative.
7305 2013-11-19 Bin Cheng <bin.cheng@arm.com>
7307 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
7308 (address_cost_data): New field.
7309 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
7310 Use ainc_costs for auto-increment rtx patterns. Cleanup TWS.
7312 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
7314 * config/aarch64/aarch64.md: Remove v8type from all insns.
7316 2013-11-19 Richard Biener <rguenther@suse.de>
7318 PR tree-optimization/57517
7319 * tree-predcom.c (combinable_refs_p): Verify the combination
7320 is always executed when the refs are.
7322 2013-11-19 Jeff Law <law@redhat.com>
7324 * tree-ssa-threadupdate.c: Include ssa-iterators.h
7325 (copy_phi_arg_into_existing_phi): New function.
7326 (any_remaining_duplicated_blocks): Likewise.
7327 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
7328 blocks on a jump threading path.
7330 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
7331 thread through a joiner which has the latch edge.
7333 2013-11-19 Jan Hubicka <jh@suse.cz>
7335 * md.texi (setmem): Document new parameter.
7336 * optabs.c (maybe_gen_insn): Support 9 operands.
7337 * builtins.c (determine_block_size): Add probable_max_size;
7338 support anti-ranges.
7339 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
7341 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
7342 emit_block_move, clear_storage_hints, set_storage_via_setmem):
7344 * expr.h (emit_block_move_hints, clear_storage_hints,
7345 set_storage_via_setmem): Update prototype.
7346 * i386.md (setmem, movmem patterns): Add 9th operand.
7347 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
7348 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
7349 argument; pass it to decide_alg.
7351 2013-11-19 David Malcolm <dmalcolm@redhat.com>
7353 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
7354 (n_basic_blocks_for_fn): ...this.
7356 (n_basic_blocks): Eliminate macro as work towards making uses of
7359 * cfgloop.c (init_loops_structure): Update for renaming of
7360 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
7361 * graph.c (draw_cfg_nodes_no_loops): Likewise.
7362 * ipa-utils.c (ipa_merge_profiles): Likewise.
7363 * lto-streamer-in.c (make_new_block): Likewise.
7364 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
7365 (dump_function_to_file): Likewise.
7367 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
7368 macro with "n_basic_blocks_for_fn (cfun)".
7369 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
7370 (duplicate_computed_gotos): Likewise.
7371 (reorder_basic_blocks): Likewise.
7372 * bt-load.c (augment_live_range): Likewise.
7373 * cfg.c (expunge_block): Likewise.
7374 (compact_blocks): Likewise.
7375 * cfganal.c (single_pred_before_succ_order): Likewise.
7376 (compute_idf): Likewise.
7377 (flow_dfs_compute_reverse_init): Likewise.
7378 (pre_and_rev_post_order_compute): Likewise.
7379 (pre_and_rev_post_order_compute_fn): Likewise.
7380 (inverted_post_order_compute): Likewise.
7381 (post_order_compute): Likewise.
7382 (print_edge_list): Likewise.
7383 (find_unreachable_blocks): Likewise.
7384 (mark_dfs_back_edges): Likewise.
7385 * cfgcleanup.c (try_optimize_cfg): Likewise.
7386 (try_forward_edges): Likewise.
7387 * cfghooks.c (dump_flow_info): Likewise.
7388 * cfgloop.c (verify_loop_structure): Likewise.
7389 (get_loop_body): Likewise.
7390 (flow_loops_find): Likewise.
7391 * cfgloopmanip.c (add_loop): Likewise.
7392 (remove_path): Likewise.
7393 (find_path): Likewise.
7394 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
7395 (rtl_verify_bb_layout): Likewise.
7396 (entry_of_function): Likewise.
7397 (rtl_create_basic_block): Likewise.
7398 * coverage.c (coverage_compute_cfg_checksum): Likewise.
7399 * cprop.c (one_cprop_pass): Likewise.
7400 (is_too_expensive): Likewise.
7401 * df-core.c (df_compute_cfg_image): Likewise.
7402 (df_compact_blocks): Likewise.
7403 (df_worklist_dataflow_doublequeue): Likewise.
7404 * dominance.c (calculate_dominance_info): Likewise.
7405 (calc_dfs_tree): Likewise.
7406 (calc_dfs_tree_nonrec): Likewise.
7407 (init_dom_info): Likewise.
7408 * domwalk.c (cmp_bb_postorder): Likewise.
7409 * function.c (thread_prologue_and_epilogue_insns): Likewise.
7410 (generate_setjmp_warnings): Likewise.
7411 * fwprop.c (build_single_def_use_links): Likewise.
7412 * gcse.c (is_too_expensive): Likewise.
7413 (one_code_hoisting_pass): Likewise.
7414 (one_pre_gcse_pass): Likewise.
7415 * graphite.c (graphite_initialize): Likewise.
7416 * haifa-sched.c (haifa_sched_init): Likewise.
7417 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
7418 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
7419 * ira-build.c (ira_build): Likewise.
7420 * lcm.c (compute_nearerout): Likewise.
7421 (compute_available): Likewise.
7422 (compute_laterin): Likewise.
7423 (compute_antinout_edge): Likewise.
7424 * lra-lives.c (lra_create_live_ranges): Likewise.
7425 * lra.c (has_nonexceptional_receiver): Likewise.
7426 * mcf.c (create_fixup_graph): Likewise.
7427 * profile.c (branch_prob): Likewise.
7428 * reg-stack.c (convert_regs_2): Likewise.
7429 * regrename.c (regrename_analyze): Likewise.
7430 * reload1.c (has_nonexceptional_receiver): Likewise.
7431 * reorg.c (dbr_schedule): Likewise.
7432 * sched-deps.c (sched_deps_init): Likewise.
7433 * sched-ebb.c (schedule_ebbs): Likewise.
7434 * sched-rgn.c (extend_regions): Likewise.
7435 (schedule_insns): Likewise.
7436 (sched_rgn_init): Likewise.
7437 (extend_rgns): Likewise.
7438 (haifa_find_rgns): Likewise.
7439 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
7440 (sel_recompute_toporder): Likewise.
7441 * sel-sched.c (run_selective_scheduling): Likewise.
7442 * store-motion.c (one_store_motion_pass): Likewise.
7443 (remove_reachable_equiv_notes): Likewise.
7444 * tracer.c (tracer): Likewise.
7445 (tail_duplicate): Likewise.
7446 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
7447 (dump_cfg_stats): Likewise.
7448 (gimple_dump_cfg): Likewise.
7449 (create_bb): Likewise.
7450 (build_gimple_cfg): Likewise.
7451 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
7452 * tree-inline.c (optimize_inline_calls): Likewise.
7453 (fold_marked_statements): Likewise.
7454 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
7455 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
7456 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
7457 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
7458 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
7459 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
7460 * tree-ssa-pre.c (do_pre): Likewise.
7461 (init_pre): Likewise.
7462 (compute_avail): Likewise.
7463 * tree-ssa-reassoc.c (init_reassoc): Likewise.
7464 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
7465 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
7466 (init_worklist): Likewise.
7467 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
7468 * var-tracking.c (variable_tracking_main_1): Likewise.
7469 (vt_find_locations): Likewise.
7470 (vt_stack_adjustments): Likewise.
7471 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
7472 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
7474 2013-11-18 Jan Hubicka <jh@suse.cz>
7476 * profile.c (compute_branch_probabilities): Do not sanity check
7479 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
7481 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
7483 * fold-const.c (fold_single_bit_test_into_sign_test)
7484 (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
7486 2013-11-18 Teresa Johnson <tejohnson@google.com>
7488 * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
7489 cfglayout after bb reordering.
7490 * passes.def: Move compgotos before bb reordering since it goes into
7493 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
7495 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
7496 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
7498 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
7499 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
7500 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
7501 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
7502 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
7503 Remove all_lto_gen_passes.
7504 * passes.c (pass_manager::dump_passes): Remove its use.
7505 (pass_manager::register_pass): Likewise.
7506 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
7507 (pass_manager::pass_manager): Don't initialize or use it.
7508 (write_lto): New static function.
7509 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
7510 instead of using all_lto_gen_passes.
7511 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
7512 pass_ipa_lto_finish_out): Delete.
7513 * tree-pass.h (make_pass_ipa_lto_gimple_out,
7514 make_pass_ipa_lto_finish_out): Don't declare.
7516 2013-11-18 Jeff Law <law@redhat.com>
7518 * tree-ssa-threadupdate.c (redirection_data): Record two
7519 duplicated blocks instead of just one.
7520 (local_info): Explain why we don't create a template for the
7521 second duplicated block in a thread path.
7522 (create_block_for_threading): Accept argument indicating array
7523 index into redirection_data to store its result.
7524 (lookup_redirection_data): Initialize both duplicate blocks.
7525 (ssa_create_duplicates): If a jump threading path needs multiple
7526 blocks duplicated, then duplicate them.
7527 (ssa_fix_duplicate_block_edges): Corresponding changes.
7528 (ssa_fixup_template_block, thread_single_edge): Likewise.
7530 2013-11-18 Marek Polacek <polacek@redhat.com>
7532 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
7534 2013-11-18 Andrew Pinski <apinski@cavium.com>
7535 Steve Ellcey <sellcey@mips.com>
7538 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
7539 type restriction from equality_operator on conditonal move.
7540 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
7541 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
7543 2013-11-18 Jeff Law <law@redhat.com>
7545 * tree-ssa-threadupdate.c: Fix file block comment.
7546 Fix minor indention issue.
7548 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
7550 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
7551 ix86_address_subreg_operand. Move subreg checks to
7552 ix86_validate_address_register. Move address override check to
7553 ix86_legitimate_address_p.
7554 (ix86_validate_address_register): New function.
7555 (ix86_legitimate_address_p): Call ix86_validate_address_register
7556 to validate base and index registers. Add address override check
7557 from ix86_decompose_address.
7558 (ix86_decompose_address): Remove.
7560 2013-11-18 Richard Biener <rguenther@suse.de>
7562 PR tree-optimization/59125
7563 PR tree-optimization/54570
7564 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
7565 is not complete do not treat component-references with offset zero
7566 but different fields as equal.
7567 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
7568 (compute_object_sizes): Apply TLC. Propagate the constant
7569 results into all uses and fold their stmts.
7570 * passes.def (pass_all_optimizations): Move pass_object_sizes
7571 after the first pass_forwprop and before pass_fre.
7573 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7575 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
7576 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
7577 (tree_ctz): Remove cast to unsigned type.
7578 * builtins.c (fold_builtin_memory_op): Likewise.
7579 * dwarf2out.c (descr_info_loc): Likewise.
7580 * godump.c (go_output_typedef): Likewise.
7581 * omp-low.c (expand_omp_simd): Likewise.
7582 * stor-layout.c (excess_unit_span): Likewise.
7583 * tree-object-size.c (addr_object_size): Likewise.
7584 * tree-sra.c (analyze_all_variable_accesses): Likewise.
7585 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
7586 (simplify_rotate): Likewise.
7587 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
7588 (handle_pointer_plus): Likewise.
7589 * tree-switch-conversion.c (check_range): Likewise.
7590 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
7591 * tsan.c (instrument_builtin_call): Likewise.
7592 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
7593 * trans-mem.c (tm_log_add): Likewise.
7594 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
7595 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
7596 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
7597 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
7599 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7601 * tree.h (host_integerp, tree_low_cst): Delete.
7602 * tree.c (host_integerp, tree_low_cst): Delete.
7604 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7606 * expr.h: Update comments to refer to tree_to_[su]hwi rather
7608 * fold-const.c (fold_binary_loc): Likewise.
7609 * expr.c (store_constructor): Use tree_to_uhwi rather than
7611 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
7612 * stmt.c (emit_case_dispatch_table): Likewise.
7613 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
7615 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7617 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
7618 config/aarch64/aarch64.c, config/alpha/predicates.md,
7619 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
7620 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
7621 config/mep/mep-pragma.c, config/mips/mips.c,
7622 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
7623 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
7624 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
7625 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
7626 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
7627 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
7628 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
7629 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
7630 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
7631 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
7633 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7635 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
7636 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
7637 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
7638 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
7639 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
7640 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
7641 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
7642 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
7643 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
7644 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
7645 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
7647 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7649 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
7650 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
7652 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7654 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
7657 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7659 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
7660 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
7661 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
7662 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
7663 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
7664 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
7665 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
7666 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
7667 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
7668 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
7669 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
7670 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
7671 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
7672 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
7673 tree_fits_uhwi_p throughout.
7675 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7677 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
7678 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
7679 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
7680 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
7681 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
7682 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
7683 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
7684 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
7685 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
7686 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
7687 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
7688 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
7689 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
7692 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7694 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
7695 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
7697 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
7699 * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
7700 flag if it kills its address, not its post-increment.
7702 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
7704 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
7705 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
7706 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
7707 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
7708 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
7709 (gimple_call_with_bounds_p): New.
7710 (gimple_call_set_with_bounds): New.
7711 (gimple_call_num_nobnd_args): Remove.
7712 (gimple_call_nobnd_arg): Remove.
7713 * tree.h (CALL_WITH_BOUNDS_P): New.
7714 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
7716 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
7718 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
7719 (symtab_node_name): Rename to symtab_node::name.
7720 (cgraph_node_asm_name): Remove.
7721 (varpool_node_asm_name): Remove.
7722 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
7723 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
7724 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
7725 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
7726 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
7728 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7730 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
7731 * config/arm/arm.c (arm_cortex_a53_tune): New.
7732 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
7734 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7736 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
7737 (case ${target}): Add bdver4.
7738 * config/i386/bdver3.md: Add bdver4.
7739 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
7740 -march=native recognize bdver4 processors.
7741 * config/i386/i386-c.c (ix86_target_macros_internal): Add
7742 bdver4 def_and_undef
7743 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
7744 (m_BDVER4): New definition.
7745 (m_AMD_MULTIPLE): Includes m_BDVER4.
7746 (processor_target_table): Add bdver4 entry.
7747 (static const char *const cpu_names): Add bdver4 entry.
7748 (software_prefetching_beneficial_p): Add bdver3.
7749 (ix86_option_override_internal): Add bdver4 instruction sets.
7750 (ix86_issue_rate): Add bdver4.
7751 (ix86_adjust_cost): Add bdver4.
7752 (ia32_multipass_dfa_lookahead): Add bdver4.
7753 (enum processor_model): Add M_AMDFAM15H_BDVER4.
7754 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
7755 (has_dispatch): Add bdver4.
7756 * config/i386/i386.h (TARGET_BDVER4): New definition.
7757 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
7758 (enum processor_type): Add PROCESSOR_BDVER4.
7759 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
7760 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
7761 * doc/extend.texi: Add details about bdver4.
7762 * doc/invoke.texi: Add details about bdver4. Add
7763 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
7765 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7767 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
7768 sdmode_stack_slot also in little-endian mode.
7770 2013-11-17 Jan Hubicka <jh@suse.cz>
7772 * doc/md.texi (setmem, movstr): Update documentation.
7773 * builtins.c (determine_block_size): New function.
7774 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
7775 (expand_builtin_memset_args): Use it and pass it to
7776 set_storage_via_setmem.
7777 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
7778 parameters; update call to expander.
7779 (emit_block_move_hints): Add min_size/max_size parameters.
7780 (clear_storage_hints): Likewise.
7781 (set_storage_via_setmem): Likewise.
7782 (clear_storage): Update.
7783 * expr.h (emit_block_move_hints, clear_storage_hints,
7784 set_storage_via_setmem): Update prototypes.
7785 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
7786 (ix86_expand_movmem, ix86_expand_setmem): Remove.
7787 (ix86_expand_movmem, ix86_expand_setmem): Remove.
7788 * i386.md (movmem, setmem): Pass parameters.
7790 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
7793 * config/i386/i386.c (ix86_address_subreg_operand): Do not
7794 reject non-integer subregs.
7795 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
7796 Move check for invalid x32 constant addresses ...
7797 (ix86_legitimate_address_p): ... here.
7799 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7801 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
7802 parameter and use it in REG_FRAME_RELATED_EXPR note.
7803 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
7805 (rs6000_emit_prologue): Likewise, but for little endian VSX
7806 stores, pass the source register of the store instead.
7808 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
7810 * gimple.h: Reorder prototypes to match .c declaration order, and
7811 remove protyotypes for functions not in gimple.c.
7812 (LABEL): Move to tree-into-ssa.c.
7813 * gimple.c: Remove unused prototypes.
7814 (get_base_address): Move to tree.c.
7815 * tree.c (get_base_address): Relocate from gimple.c.
7816 * builtins.h (validate_gimple_arglist): Add prototype.
7817 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
7818 * cfgexpand.h: New File.
7819 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
7820 * tree.h (build_addr): Move to tree-nested.h.
7821 * tree-nested.h: New File.
7822 (build_addr, lower_nested_functions, insert_field_into_struct): Add
7824 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
7825 * ipa-inline-analysis.c: Include cfgexpand.h.
7826 * cgraphunit.c: Include tree-nested.h.
7827 * omp-low.c: Likewise.
7828 * tree-parloops.c: Likewise.
7829 * gimple-low.h: Likewise.
7830 * tree-profile.h: Likewise.
7831 * expr.c: Include cfgexpand.h.
7832 * tree-affine.c: Likewise.
7833 * tree-ssa.c: Likewise.
7834 * tree-ssa-loop-im.c: Include trans-mem.h.
7835 * tree-ssa-tail-merge.c: Likewise.
7836 * value-prof.c: Include builtins.h and tree-nested.h.
7837 * tree-into-ssa.c (LABEL): Define here.
7839 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
7841 * config/arc/arc.c (arc_predicate_delay_insns): New function.
7842 (pass_data_arc_predicate_delay_insns): New pass_data instance.
7843 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
7844 (make_pass_arc_predicate_delay_insns): New function.
7845 (arc_init): Register pass_arc_predicate_delay_insns if
7846 flag_delayed_branch is active.
7848 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
7850 * config/arc/constraints.md (Rcq): Simplify register number test.
7852 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
7854 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
7856 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
7858 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
7861 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
7863 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
7864 * gimple-pretty-print.c (dump_omp_for): Add case for
7865 GF_OMP_FOR_KIND_CILKSIMD.
7866 * gimple.h (enum gf_mask): Restructure entries to add
7867 GF_OMP_FOR_KIND_CILKSIMD.
7868 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
7869 (gimplify_omp_for): Handle CILK_SIMD.
7870 (gimplify_expr): Add ccase for CILK_SIMD.
7871 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
7872 (build_outer_var_ref): Same.
7873 (check_omp_nesting_restrictions): Same.
7874 (lower_rec_input_clauses): Same.
7875 (lower_lastprivate_clauses): Same.
7876 (expand_omp_for): Same.
7877 (execute_expand_omp): Check flag_enable_cilkplus.
7878 (execute_lower_omp): Same.
7879 (diagnose_sb_0): Handle CILK_SIMD.
7880 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
7881 (setjmp_or_longjmp_p): New.
7882 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
7883 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
7884 * tree.def: Add tree code for CILK_SIMD.
7886 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7888 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
7890 (altivec_vperm_<mode>): Revert earlier little endian change.
7891 (*altivec_vperm_<mode>_internal): Remove.
7892 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
7893 (*altivec_vperm_<mode>_uns_internal): Remove.
7894 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
7896 2013-11-15 Jeff Law <law@redhat.com>
7898 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
7899 has_abnormal_or_outgoing_edge. Check for EH edges as well.
7900 * gimple-ssa-isolate-paths.c
7901 (find_implicit_erroneous_behaviour): Corresponding changes.
7902 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
7903 (find_explicit_erroneous_behaviour): Likewise.
7905 2013-11-15 Jeff Law <law@redhat.com>
7907 * ifcvt.c (find_cond_trap): Properly handle case where
7910 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
7912 * configure: Regenerate.
7914 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
7916 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
7917 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
7918 where it is incorrect or missing.
7920 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
7922 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
7924 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
7925 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
7927 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
7928 pair with a TREE_CODE test and TREE_INT_CST_LOW.
7929 * tree-vect-generic.c (expand_vector_divmod): Likewise.
7931 2013-11-15 Richard Biener <rguenther@suse.de>
7933 PR tree-optimization/50262
7934 * tree-ssa-alias.h (struct pt_solution): Split
7935 vars_contains_global into vars_contains_nonlocal,
7936 vars_contains_escaped and vars_contains_escaped_heap.
7937 * tree-ssa-structalias.c (label_visit): Expand comment.
7938 (handle_lhs_call): Adjust comment.
7939 (set_uids_in_ptset): Set the new flags appropriately.
7940 (pt_solution_set): Adjust.
7941 (pt_solution_set_var): Likewise.
7942 (pt_solution_ior_into): Likewise.
7943 (pt_solution_includes_global): Likewise.
7944 (pt_solutions_intersect_1): Optimize escaped handling.
7945 (compute_points_to_sets): Remove heap variable globalization.
7946 (ipa_escaped_pt): Adjust initializer.
7947 (pass_data_ipa_pta): Do not run TODO_update_ssa.
7948 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
7949 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
7951 2013-11-15 Richard Biener <rguenther@suse.de>
7953 * tree-loop-distribution.c (tree_loop_distribution): Make sure
7954 to distribute all stores.
7956 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7958 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
7960 2013-11-15 Joseph Myers <joseph@codesourcery.com>
7962 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
7963 * configure.ac: Determine target_header_dir earlier.
7964 (--with-glibc-version): New configure option.
7965 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
7966 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
7967 * configure: Regenerate.
7968 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
7969 native toolchains for default.
7970 (--with-glibc-version): Document.
7972 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
7974 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
7976 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
7978 * lto-streamer-in.c (input function): Call cgraph_create_node if
7979 cgraph_get_node failed.
7981 2013-11-14 Olivier Hainque <hainque@adacore.com>
7983 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
7984 defer allocation of DECL_IGNORED_P variables at toplevel unless really
7985 small. Factorize size threshold computation from the existing one.
7986 (expand_used_vars): Refine comment.
7988 2013-11-14 Cong Hou <congh@google.com>
7990 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
7991 address field as it can be obtained from dr. Rename the struct.
7992 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
7993 steps of data references during sort.
7994 (vect_prune_runtime_alias_test_list): Adjust with the change to
7995 struct dr_with_seg_len.
7996 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
7997 Adjust with the change to struct dr_with_seg_len.
7999 2013-11-14 Jeff Law <law@redhat.com>
8002 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
8003 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
8004 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
8005 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
8006 edges, then ignore it. If the statement exhibiting erroneous
8007 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
8008 then we can not optimize.
8009 (find_explicit_erroneous_behaviour): Likewise.
8011 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
8013 * gimplify-me.h: New file. Add prototypes.
8014 * gimplify.h: Don't include gimple.h.
8015 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
8016 Relocate from gimple.h.
8017 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
8018 is_gimple_sizepos): Move to gimplify.h.
8019 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
8020 (enum gsi_iterator_update): Move to gimple-iterator.h.
8021 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
8022 * gimplify-me.c: New File.
8023 (force_gimple_operand_1, force_gimple_operand,
8024 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
8025 gimple_regimplify_operands): Relocate from gimplify.c.
8026 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
8027 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
8028 gimple_regimplify_operands): Move to gimplify-me.c.
8029 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
8031 * Makefile.in (OBJS): Add gimplify-me.o
8032 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
8034 * cfgloopmanip.c: Likewise.
8035 * cgraphunit.c: Likewise.
8036 * cilk-common.c: Likewise.
8037 * fold-const.c: Likewise.
8038 * function.c: Likewise.
8039 * gimple-expr.c: Likewise.
8040 * gimple-fold.c: Likewise.
8041 * gimple-ssa-strength-reduction.c: Likewise.
8042 * gimple.c: Likewise.
8043 * graphite-clast-to-gimple.c: Likewise.
8044 * graphite-sese-to-poly.c: Likewise.
8045 * ipa-prop.c: Likewise.
8046 * ipa-split.c: Likewise.
8048 * langhooks.c: Likewise.
8049 * omp-low.c: Likewise.
8051 * stor-layout.c: Likewise.
8052 * targhooks.c: Likewise.
8053 * trans-mem.c: Likewise.
8054 * tree-affine.c: Likewise.
8055 * tree-cfg.c: Likewise.
8056 * tree-cfgcleanup.c: Likewise.
8057 * tree-complex.c: Likewise.
8058 * tree-if-conv.c: Likewise.
8059 * tree-inline.c: Likewise.
8060 * tree-loop-distribution.c: Likewise.
8061 * tree-nested.c: Likewise.
8062 * tree-parloops.c: Likewise.
8063 * tree-predcom.c: Likewise.
8064 * tree-profile.c: Likewise.
8065 * tree-scalar-evolution.c: Likewise.
8066 * tree-sra.c: Likewise.
8067 * tree-ssa-address.c: Likewise.
8068 * tree-ssa-ccp.c: Likewise.
8069 * tree-ssa-dce.c: Likewise.
8070 * tree-ssa-forwprop.c: Likewise.
8071 * tree-ssa-ifcombine.c: Likewise.
8072 * tree-ssa-loop-im.c: Likewise.
8073 * tree-ssa-loop-ivopts.c: Likewise.
8074 * tree-ssa-loop-manip.c: Likewise.
8075 * tree-ssa-loop-niter.c: Likewise.
8076 * tree-ssa-loop-prefetch.c: Likewise.
8077 * tree-ssa-loop-unswitch.c: Likewise.
8078 * tree-ssa-math-opts.c: Likewise.
8079 * tree-ssa-phiopt.c: Likewise.
8080 * tree-ssa-phiprop.c: Likewise.
8081 * tree-ssa-pre.c: Likewise.
8082 * tree-ssa-propagate.c: Likewise.
8083 * tree-ssa-reassoc.c: Likewise.
8084 * tree-ssa-sccvn.c: Likewise.
8085 * tree-ssa-strlen.c: Likewise.
8086 * tree-ssa.c: Likewise.
8087 * tree-switch-conversion.c: Likewise.
8088 * tree-tailcall.c: Likewise.
8089 * tree-vect-data-refs.c: Likewise.
8090 * tree-vect-generic.c: Likewise.
8091 * tree-vect-loop-manip.c: Likewise.
8092 * tree-vect-loop.c: Likewise.
8093 * tree-vect-patterns.c: Likewise.
8094 * tree-vect-stmts.c: Likewise.
8097 * value-prof.c: Likewise.
8098 * config/aarch64/aarch64.c: Likewise.
8099 * config/alpha/alpha.c: Likewise.
8100 * config/darwin.c: Likewise.
8101 * config/i386/i386.c: Likewise.
8102 * config/ia64/ia64.c: Likewise.
8103 * config/mep/mep.c: Likewise.
8104 * config/mips/mips.c: Likewise.
8105 * config/rs6000/rs6000.c: Likewise.
8106 * config/s390/s390.c: Likewise.
8107 * config/sh/sh.c: Likewise.
8108 * config/sparc/sparc.c: Likewise.
8109 * config/spu/spu.c: Likewise.
8110 * config/stormy16/stormy16.c: Likewise.
8111 * config/tilegx/tilegx.c: Likewise.
8112 * config/tilepro/tilepro.c: Likewise.
8113 * config/xtensa/xtensa.c: Likewise.
8115 2013-11-14 Diego Novillo <dnovillo@google.com>
8117 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
8119 2013-11-14 Diego Novillo <dnovillo@google.com>
8121 * tree.h: Include fold-const.h.
8122 (aggregate_value_p): Moved to function.h.
8123 (alloca_call_p): Moved to calls.h.
8124 (allocate_struct_function): Moved to function.h.
8125 (apply_tm_attr): Moved to attribs.h.
8126 (array_at_struct_end_p): Moved to expr.h.
8127 (array_ref_element_size): Moved to tree-dfa.h.
8128 (array_ref_low_bound): Moved to tree-dfa.h.
8129 (array_ref_up_bound): Moved to tree.h.
8130 (assemble_alias): Moved to cgraph.h.
8131 (bit_from_pos): Moved to stor-layout.h.
8132 (build_addr): Moved to tree-nested.h.
8133 (build_duplicate_type): Moved to tree-inline.h.
8134 (build_fold_addr_expr): Moved to fold-const.h.
8135 (build_fold_addr_expr_with_type): Moved to fold-const.h.
8136 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
8137 (build_fold_indirect_ref): Moved to fold-const.h.
8138 (build_fold_indirect_ref_loc): Moved to fold-const.h.
8139 (build_personality_function): Moved to tree.h.
8140 (build_range_check): Moved to fold-const.h.
8141 (build_simple_mem_ref): Moved to fold-const.h.
8142 (build_simple_mem_ref_loc): Moved to fold-const.h.
8143 (build_tm_abort_call): Moved to trans-mem.h.
8144 (byte_from_pos): Moved to stor-layout.h.
8145 (call_expr_flags): Moved to calls.h.
8146 (can_move_by_pieces): Moved to expr.h.
8147 (categorize_ctor_elements): Moved to expr.h.
8148 (change_decl_assembler_name): Moved to gcc-symtab.h.
8149 (combine_comparisons): Moved to fold-const.h.
8150 (complete_ctor_at_level_p): Moved to tree.h.
8151 (component_ref_field_offset): Moved to tree-dfa.h.
8152 (compute_builtin_object_size): Moved to tree-object-size.h.
8153 (compute_record_mode): Moved to stor-layout.h.
8154 (constant_boolean_node): Moved to fold-const.h.
8155 (constructor_static_from_elts_p): Moved to varasm.h.
8156 (cxx11_attribute_p): Moved to attribs.h.
8157 (debug_body): Moved to print-tree.h.
8158 (debug_find_tree): Moved to tree-inline.h.
8159 (debug_fold_checksum): Moved to fold-const.h.
8160 (debug_head): Moved to print-tree.h.
8161 (debug_head): Moved to print-tree.h.
8162 (debug_raw): Moved to print-tree.h.
8163 (debug_tree): Moved to print-tree.h.
8164 (debug_vec_tree): Moved to print-tree.h.
8165 (debug_verbose): Moved to print-tree.h.
8166 (debug_verbose): Moved to print-tree.h.
8167 (decl_attributes): Moved to attribs.h.
8168 (decl_binds_to_current_def_p): Moved to varasm.h.
8169 (decl_default_tls_model): Moved to varasm.h.
8170 (decl_replaceable_p): Moved to varasm.h.
8171 (div_if_zero_remainder): Moved to fold-const.h.
8172 (double_int mem_ref_offset): Moved to fold-const.h.
8173 (dump_addr): Moved to print-tree.h.
8174 (element_precision): Moved to machmode.h.
8175 (expand_dummy_function_end): Moved to function.h.
8176 (expand_function_end): Moved to function.h.
8177 (expand_function_start): Moved to function.h.
8178 (expand_label): Moved to stmt.h.
8179 (expr_first): Moved to tree-iterator.h.
8180 (expr_last): Moved to tree-iterator.h.
8181 (finalize_size_functions): Moved to stor-layout.h.
8182 (finish_builtin_struct): Moved to stor-layout.h.
8183 (finish_record_layout): Moved to stor-layout.h.
8184 (fixup_signed_type): Moved to stor-layout.h.
8185 (fixup_unsigned_type): Moved to stor-layout.h.
8186 (flags_from_decl_or_type): Moved to calls.h.
8187 (fold): Moved to fold-const.h.
8188 (fold_abs_const): Moved to fold-const.h.
8189 (fold_binary): Moved to fold-const.h.
8190 (fold_binary_loc): Moved to fold-const.h.
8191 (fold_binary_to_constant): Moved to fold-const.h.
8192 (fold_build1): Moved to fold-const.h.
8193 (fold_build1_initializer_loc): Moved to fold-const.h.
8194 (fold_build1_loc): Moved to fold-const.h.
8195 (fold_build1_stat_loc): Moved to fold-const.h.
8196 (fold_build2): Moved to fold-const.h.
8197 (fold_build2_initializer_loc): Moved to fold-const.h.
8198 (fold_build2_loc): Moved to fold-const.h.
8199 (fold_build2_stat_loc): Moved to fold-const.h.
8200 (fold_build3): Moved to fold-const.h.
8201 (fold_build3_loc): Moved to fold-const.h.
8202 (fold_build3_stat_loc): Moved to fold-const.h.
8203 (fold_build_call_array): Moved to fold-const.h.
8204 (fold_build_call_array_initializer): Moved to fold-const.h.
8205 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
8206 (fold_build_call_array_loc): Moved to fold-const.h.
8207 (fold_build_cleanup_point_expr): Moved to fold-const.h.
8208 (fold_convert): Moved to fold-const.h.
8209 (fold_convert_loc): Moved to fold-const.h.
8210 (fold_convertible_p): Moved to fold-const.h.
8211 (fold_defer_overflow_warnings): Moved to fold-const.h.
8212 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
8213 (fold_fma): Moved to fold-const.h.
8214 (fold_ignored_result): Moved to fold-const.h.
8215 (fold_indirect_ref): Moved to fold-const.h.
8216 (fold_indirect_ref_1): Moved to fold-const.h.
8217 (fold_indirect_ref_loc): Moved to fold-const.h.
8218 (fold_read_from_constant_string): Moved to fold-const.h.
8219 (fold_real_zero_addition_p): Moved to fold-const.h.
8220 (fold_single_bit_test): Moved to fold-const.h.
8221 (fold_strip_sign_ops): Moved to fold-const.h.
8222 (fold_ternary): Moved to fold-const.h.
8223 (fold_ternary_loc): Moved to fold-const.h.
8224 (fold_unary): Moved to tree-data-ref.h.
8225 (fold_unary_ignore_overflow): Moved to fold-const.h.
8226 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
8227 (fold_unary_loc): Moved to fold-const.h.
8228 (fold_unary_to_constant): Moved to fold-const.h.
8229 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
8230 (fold_undefer_overflow_warnings): Moved to fold-const.h.
8231 (folding_initializer): Moved to fold-const.h.
8232 (free_temp_slots): Moved to function.h.
8233 (generate_setjmp_warnings): Moved to function.h.
8234 (get_attribute_name): Moved to attribs.h.
8235 (get_identifier): Moved to stringpool.h.
8236 (get_identifier_with_length): Moved to stringpool.h.
8237 (get_inner_reference): Moved to tree.h.
8238 (gimple_alloca_call_p): Moved to calls.h.
8239 (gimplify_parameters): Moved to function.h.
8240 (highest_pow2_factor): Moved to expr.h.
8241 (indent_to): Moved to print-tree.h.
8242 (init_attributes): Moved to attribs.h.
8243 (init_dummy_function_start): Moved to function.h.
8244 (init_function_start): Moved to function.h.
8245 (init_inline_once): Moved to tree-inline.h.
8246 (init_object_sizes): Moved to tree-object-size.h.
8247 (init_temp_slots): Moved to function.h.
8248 (init_tree_optimization_optabs): Moved to optabs.h.
8249 (initialize_sizetypes): Moved to stor-layout.h.
8250 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
8251 (initializer_constant_valid_p): Moved to varasm.h.
8252 (int_const_binop): Moved to fold-const.h.
8253 (internal_reference_types): Moved to stor-layout.h.
8254 (invert_tree_comparison): Moved to fold-const.h.
8255 (invert_truthvalue): Moved to fold-const.h.
8256 (invert_truthvalue_loc): Moved to fold-const.h.
8257 (is_tm_ending_fndecl): Moved to trans-mem.h.
8258 (is_tm_may_cancel_outer): Moved to trans-mem.h.
8259 (is_tm_pure): Moved to trans-mem.h.
8260 (is_tm_safe): Moved to trans-mem.h.
8261 (layout_decl): Moved to stor-layout.h.
8262 (layout_type): Moved to stor-layout.h.
8263 (lookup_attribute_spec): Moved to attribs.h.
8264 (make_accum_type): Moved to stor-layout.h.
8265 (make_decl_one_only): Moved to varasm.h.
8266 (make_decl_rtl): Moved to tree.h.
8267 (make_decl_rtl_for_debug): Moved to varasm.h.
8268 (make_fract_type): Moved to stor-layout.h.
8269 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
8270 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
8271 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
8272 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
8273 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
8274 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
8275 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
8276 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
8277 (make_range): Moved to fold-const.h.
8278 (make_range_step): Moved to fold-const.h.
8279 (make_sat_signed_accum_type): Moved to stor-layout.h.
8280 (make_sat_signed_fract_type): Moved to stor-layout.h.
8281 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
8282 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
8283 (make_signed_accum_type): Moved to stor-layout.h.
8284 (make_signed_fract_type): Moved to stor-layout.h.
8285 (make_signed_type): Moved to stor-layout.h.
8286 (make_unsigned_accum_type): Moved to stor-layout.h.
8287 (make_unsigned_fract_type): Moved to stor-layout.h.
8288 (make_unsigned_type): Moved to stor-layout.h.
8289 (mark_decl_referenced): Moved to varasm.h.
8290 (mark_referenced): Moved to varasm.h.
8291 (may_negate_without_overflow_p): Moved to fold-const.h.
8292 (maybe_get_identifier): Moved to stringpool.h.
8293 (merge_ranges): Moved to fold-const.h.
8294 (merge_weak): Moved to varasm.h.
8295 (mode_for_size_tree): Moved to stor-layout.h.
8296 (multiple_of_p): Moved to fold-const.h.
8297 (must_pass_in_stack_var_size): Moved to calls.h.
8298 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
8299 (native_encode_expr): Moved to fold-const.h.
8300 (native_interpret_expr): Moved to fold-const.h.
8301 (non_lvalue): Moved to fold-const.h.
8302 (non_lvalue_loc): Moved to fold-const.h.
8303 (normalize_offset): Moved to stor-layout.h.
8304 (normalize_rli): Moved to stor-layout.h.
8305 (notice_global_symbol): Moved to varasm.h.
8306 (omit_one_operand): Moved to fold-const.h.
8307 (omit_one_operand_loc): Moved to fold-const.h.
8308 (omit_two_operands): Moved to fold-const.h.
8309 (omit_two_operands_loc): Moved to fold-const.h.
8310 (operand_equal_p): Moved to tree-data-ref.h.
8311 (parse_input_constraint): Moved to stmt.h.
8312 (parse_output_constraint): Moved to stmt.h.
8313 (place_field): Moved to stor-layout.h.
8314 (pop_function_context): Moved to function.h.
8315 (pop_temp_slots): Moved to function.h.
8316 (pos_from_bit): Moved to stor-layout.h.
8317 (preserve_temp_slots): Moved to function.h.
8318 (print_node): Moved to print-tree.h.
8319 (print_node_brief): Moved to print-tree.h.
8320 (print_rtl): Moved to rtl.h.
8321 (process_pending_assemble_externals): Moved to varasm.h.
8322 (ptr_difference_const): Moved to fold-const.h.
8323 (push_function_context): Moved to function.h.
8324 (push_struct_function): Moved to function.h.
8325 (push_temp_slots): Moved to function.h.
8326 (record_tm_replacement): Moved to trans-mem.h.
8327 (relayout_decl): Moved to stor-layout.h.
8328 (resolve_asm_operand_names): Moved to stmt.h.
8329 (resolve_unique_section): Moved to varasm.h.
8330 (rli_size_so_far): Moved to stor-layout.h.
8331 (rli_size_unit_so_far): Moved to stor-layout.h.
8332 (round_down): Moved to fold-const.h.
8333 (round_down_loc): Moved to fold-const.h.
8334 (round_up): Moved to fold-const.h.
8335 (round_up_loc): Moved to fold-const.h.
8336 (set_decl_incoming_rtl): Moved to emit-rtl.h.
8337 (set_decl_rtl): Moved to tree.h.
8338 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
8339 (set_user_assembler_name): Moved to varasm.h.
8340 (setjmp_call_p): Moved to calls.h.
8341 (size_binop): Moved to fold-const.h.
8342 (size_binop_loc): Moved to fold-const.h.
8343 (size_diffop): Moved to fold-const.h.
8344 (size_diffop_loc): Moved to fold-const.h.
8345 (size_int_kind): Moved to fold-const.h.
8346 (stack_protect_epilogue): Moved to function.h.
8347 (start_record_layout): Moved to stor-layout.h.
8348 (supports_one_only): Moved to varasm.h.
8349 (swap_tree_comparison): Moved to fold-const.h.
8350 (tm_malloc_replacement): Moved to trans-mem.h.
8351 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
8352 (tree build_invariant_address): Moved to fold-const.h.
8353 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
8354 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
8355 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
8356 (tree_expr_nonnegative_p): Moved to fold-const.h.
8357 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
8358 (tree_output_constant_def): Moved to varasm.h.
8359 (tree_overlaps_hard_reg_set): Moved to stmt.h.
8360 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
8361 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
8362 (tree_swap_operands_p): Moved to fold-const.h.
8363 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
8364 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
8365 (update_alignment_for_field): Moved to stor-layout.h.
8366 (use_register_for_decl): Moved to function.h.
8367 (variable_size): Moved to rtl.h.
8368 (vector_type_mode): Moved to stor-layout.h.
8369 * cgraph.h: Corresponding changes.
8370 * emit-rtl.h: Corresponding changes.
8371 * expr.h: Corresponding changes.
8372 * function.h: Corresponding changes.
8373 * optabs.h: Corresponding changes.
8374 * trans-mem.h: Corresponding changes.
8375 Protect against multiple inclusion.
8376 * tree-inline.h: Corresponding changes.
8377 * tree-iterator.h: Corresponding changes.
8378 * tree-dfa.h: Include expr.h.
8379 * tree-ssanames.h: Include stringpool.h.
8380 * attribs.h: New file.
8381 * calls.h: New file.
8382 * fold-const.h: New file.
8383 * gcc-symtab.h: New file.
8384 * print-rtl.h: New file.
8385 * print-tree.h: New file.
8387 * stor-layout.h: New file.
8388 * strinpool.h: New file.
8389 * tree-nested.h: New file
8390 * tree-object-size.h: New file.
8391 * varasm.h: New file.
8393 2013-11-14 Diego Novillo <dnovillo@google.com>
8395 * alias.c: Include varasm.h.
8397 * asan.c: Include calls.h.
8398 Include stor-layout.h.
8400 * attribs.c: Include stringpool.h.
8402 Include stor-layout.h.
8403 * builtins.c: Include stringpool.h.
8404 Include stor-layout.h.
8407 Include tree-object-size.h.
8408 * calls.c: Include stor-layout.h.
8410 Include stringpool.h.
8412 * cfgexpand.c: Include stringpool.h.
8414 Include stor-layout.h.
8416 Include print-tree.h.
8417 * cgraph.c: Include varasm.h.
8419 Include print-tree.h.
8420 * cgraphclones.c: Include stringpool.h.
8423 Move inclusion of rtl.h earlier in the file.
8424 * cgraphunit.c: Include varasm.h.
8425 Include stor-layout.h.
8426 Include stringpool.h.
8427 * cilk-common.c: Include stringpool.h.
8428 Include stor-layout.h.
8429 * combine.c: Include stor-layout.h.
8430 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
8431 Include stringpool.h.
8433 * config/aarch64/aarch64.c: Include stringpool.h.
8434 Include stor-layout.h.
8437 * config/alpha/alpha.c: Include stor-layout.h.
8440 * config/arc/arc.c: Include varasm.h.
8441 Include stor-layout.h.
8442 Include stringpool.h.
8444 * config/arm/arm.c: Include stringpool.h.
8445 Include stor-layout.h.
8448 * config/avr/avr-c.c: Include stor-layout.h.
8449 * config/avr/avr-log.c: Include print-tree.h.
8450 * config/avr/avr.c: Include print-tree.h.
8452 Include stor-layout.h.
8453 Include stringpool.h.
8454 * config/bfin/bfin.c: Include varasm.h.
8456 * config/c6x/c6x.c: Include stor-layout.h.
8459 Include stringpool.h.
8460 * config/cr16/cr16.c: Include stor-layout.h.
8462 * config/cris/cris.c: Include varasm.h.
8463 Include stor-layout.h.
8466 * config/darwin.c: Include stringpool.h.
8468 Include stor-layout.h.
8469 * config/epiphany/epiphany.c: Include stor-layout.h.
8472 Include stringpool.h.
8473 * config/fr30/fr30.c: Include stor-layout.h.
8475 * config/frv/frv.c: Include varasm.h.
8476 Include stor-layout.h.
8477 Include stringpool.h.
8478 * config/h8300/h8300.c: Include stor-layout.h.
8481 Include stringpool.h.
8482 * config/i386/i386.c: Include stringpool.h.
8485 Include stor-layout.h.
8487 * config/i386/winnt-cxx.c: Include stringpool.h.
8489 * config/i386/winnt.c: Include stringpool.h.
8491 * config/ia64/ia64-c.c: Include stringpool.h.
8492 * config/ia64/ia64.c: Include stringpool.h.
8493 Include stor-layout.h.
8496 * config/iq2000/iq2000.c: Include stor-layout.h.
8499 * config/lm32/lm32.c: Include calls.h.
8500 * config/m32c/m32c.c: Include stor-layout.h.
8503 * config/m32r/m32r.c: Include stor-layout.h.
8505 Include stringpool.h.
8507 * config/m68k/m68k.c: Include calls.h.
8508 Include stor-layout.h.
8510 * config/mcore/mcore.c: Include stor-layout.h.
8512 Include stringpool.h.
8514 * config/mep/mep.c: Include varasm.h.
8516 Include stringpool.h.
8517 Include stor-layout.h.
8518 * config/microblaze/microblaze.c: Include varasm.h.
8519 Include stor-layout.h.
8521 * config/mips/mips.c: Include varasm.h.
8522 Include stringpool.h.
8523 Include stor-layout.h.
8525 * config/mmix/mmix.c: Include varasm.h.
8526 Include stor-layout.h.
8528 * config/mn10300/mn10300.c: Include stor-layout.h.
8531 * config/moxie/moxie.c: Include stor-layout.h.
8534 * config/msp430/msp430.c: Include stor-layout.h.
8536 * config/nds32/nds32.c: Include stor-layout.h.
8539 * config/pa/pa.c: Include stor-layout.h.
8540 Include stringpool.h.
8543 * config/pdp11/pdp11.c: Include stor-layout.h.
8546 * config/picochip/picochip.c: Include calls.h.
8547 Include stor-layout.h.
8548 Include stringpool.h.
8550 * config/rl78/rl78.c: Include varasm.h.
8551 Include stor-layout.h.
8553 * config/rs6000/rs6000-c.c: Include stor-layout.h.
8554 Include stringpool.h.
8555 * config/rs6000/rs6000.c: Include stringpool.h.
8556 Include stor-layout.h.
8558 Include print-tree.h.
8560 * config/rx/rx.c: Include varasm.h.
8561 Include stor-layout.h.
8563 * config/s390/s390.c: Include print-tree.h.
8564 Include stringpool.h.
8565 Include stor-layout.h.
8568 * config/score/score.c: Include stringpool.h.
8571 Include stor-layout.h.
8572 * config/sh/sh-c.c: Include stringpool.h.
8573 Include attribs.h.h.
8574 * config/sh/sh.c: Include stringpool.h.
8575 Include stor-layout.h.
8578 * config/sol2-c.c: Include stringpool.h.
8580 * config/sol2-cxx.c: Include stringpool.h.
8581 * config/sol2.c: Include stringpool.h.
8583 * config/sparc/sparc.c: Include stringpool.h.
8584 Include stor-layout.h.
8587 * config/spu/spu-c.c: Include stringpool.h.
8588 * config/spu/spu.c: Include stringpool.h.
8589 Include stor-layout.h.
8592 * config/stormy16/stormy16.c: Include stringpool.h.
8593 Include stor-layout.h.
8596 * config/tilegx/tilegx.c: Include stringpool.h.
8597 Include stor-layout.h.
8600 * config/tilepro/tilepro.c: Include stringpool.h.
8601 Include stor-layout.h.
8604 * config/v850/v850-c.c: Include stringpool.h.
8606 * config/v850/v850.c: Include stringpool.h.
8607 Include stor-layout.h.
8610 * config/vax/vax.c: Include calls.h.
8612 * config/vms/vms.c: Include stringpool.h.
8613 * config/vxworks.c: Include stringpool.h.
8614 * config/xtensa/xtensa.c: Include stringpool.h.
8615 Include stor-layout.h.
8618 * convert.c: Include stor-layout.h.
8619 * coverage.c: Include stringpool.h.
8620 Include stor-layout.h.
8621 * dbxout.c: Include varasm.h.
8622 Include stor-layout.h.
8623 * dojump.c: Include stor-layout.h.
8624 * dse.c: Include stor-layout.h.
8625 * dwarf2asm.c: Include stringpool.h.
8627 * dwarf2cfi.c: Include stor-layout.h.
8628 * dwarf2out.c: Include rtl.h.
8629 Include stringpool.h.
8630 Include stor-layout.h.
8634 Move inclusion of rtl.h earlier in the file.
8635 * emit-rtl.c: Include varasm.h.
8636 * except.c: Include stringpool.h.
8637 Include stor-layout.h.
8638 * explow.c: Include stor-layout.h.
8639 * expmed.c: Include stor-layout.h.
8640 * expr.c: Include stringpool.h.
8641 Include stor-layout.h.
8644 * final.c: Include varasm.h.
8645 * fold-const.c: Include stor-layout.h.
8647 Include tree-iterator.h.
8648 * function.c: Include stor-layout.h.
8650 Include stringpool.h.
8651 * genattrtab.c (write_header): Emit includes for varasm.h,
8652 stor-layout.h and calls.h.
8653 * genautomata.c (main): Likewise.
8654 * genemit.c: Likewise.
8655 * genopinit.c: Likewise.
8656 * genoutput.c (output_prologue): Likewise.
8657 * genpeep.c: Likewise.
8658 * genpreds.c (write_insn_preds_c): Likewise.
8659 * gengtype.c (open_base_files): Add stringpool.h.
8660 * gimple-expr.c: Include stringpool.h.
8661 Include stor-layout.h.
8662 * gimple-fold.c: Include stringpool.h.
8665 Include stor-layout.h.
8666 * gimple-low.c: Include tree-nested.h.
8668 * gimple-pretty-print.c: Include stringpool.h.
8669 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
8671 * gimple-walk.c: Include stmt.h.
8672 * gimple.c: Include calls.h.
8674 Include stor-layout.h.
8675 * gimplify.c: Include stringpool.h.
8678 Include stor-layout.h.
8680 Include print-tree.h.
8682 * gimplify-me.c: Include stmt.h
8683 Include stor-layout.h
8684 * internal-fn.c: Include stor-layout.h.
8685 * ipa-devirt.c: Include print-tree.h.
8687 * ipa-inline-analysis.c: Include stor-layout.h.
8688 Include stringpool.h.
8689 Include print-tree.h.
8690 * ipa-inline.c: Include trans-mem.h.
8692 * ipa-prop.c: Include expr.h.
8693 Include stor-layout.h.
8694 Include print-tree.h.
8695 * ipa-pure-const.c: Include print-tree.h.
8697 * ipa-reference.c: Include calls.h.
8698 * ipa-split.c: Include stringpool.h.
8701 * ipa.c: Include calls.h.
8702 Include stringpool.h.
8703 * langhooks.c: Include stringpool.h.
8705 * lto-cgraph.c: Include stringpool.h.
8706 * lto-streamer-in.c: Include stringpool.h.
8707 * lto-streamer-out.c: Include stor-layout.h.
8708 Include stringpool.h.
8709 * omp-low.c: Include stringpool.h.
8710 Include stor-layout.h.
8712 * optabs.c: Include stor-layout.h.
8713 Include stringpool.h.
8715 * passes.c: Include varasm.h.
8716 * predict.c: Include calls.h.
8717 * print-rtl.c: Include print-tree.h.
8718 * print-tree.c: Include varasm.h.
8719 Include print-rtl.h.
8720 Include stor-layout.h.
8721 * realmpfr.c: Include stor-layout.h.
8722 * reg-stack.c: Include varasm.h.
8723 * sdbout.c: Include varasm.h.
8724 Include stor-layout.h.
8725 * simplify-rtx.c: Include varasm.h.
8726 * stmt.c: Include varasm.h.
8727 Include stor-layout.h.
8728 * stor-layout.c: Include stor-layout.h.
8729 Include stringpool.h.
8731 Include print-tree.h.
8732 * symtab.c: Include rtl.h.
8733 Include print-tree.h.
8737 * targhooks.c: Include stor-layout.h.
8739 * toplev.c: Include varasm.h.
8740 Include tree-inline.h.
8741 * trans-mem.c: Include calls.h.
8745 * tree-affine.c: Include expr.h.
8746 * tree-browser.c: Include print-tree.h.
8747 * tree-call-cdce.c: Include stor-layout.h.
8748 * tree-cfg.c: Include trans-mem.h.
8749 Include stor-layout.h.
8750 Include print-tree.h.
8751 * tree-complex.c: Include stor-layout.h.
8752 * tree-data-ref.c: Include expr.h.
8753 * tree-dfa.c: Include stor-layout.h.
8754 * tree-eh.c: Include expr.h.
8756 * tree-emutls.c: Include stor-layout.h.
8758 * tree-if-conv.c: Include stor-layout.h.
8759 * tree-inline.c: Include stor-layout.h.
8761 * tree-loop-distribution.c: Include stor-layout.h.
8762 * tree-nested.c: Include stringpool.h.
8763 Include stor-layout.h.
8764 * tree-object-size.c: Include tree-object-size.h.
8765 * tree-outof-ssa.c: Include stor-layout.h.
8766 * tree-parloops.c: Include stor-layout.h.
8767 Include tree-nested.h.
8768 * tree-pretty-print.c: Include stor-layout.h.
8770 * tree-profile.c: Include varasm.h.
8771 Include tree-nested.h.
8772 * tree-scalar-evolution.c: Include expr.h.
8773 * tree-sra.c: Include stor-layout.h.
8774 * tree-ssa-address.c: Include stor-layout.h.
8775 * tree-ssa-ccp.c: Include stor-layout.h.
8776 * tree-ssa-dce.c: Include calls.h.
8777 * tree-ssa-dom.c: Include stor-layout.h.
8778 * tree-ssa-forwprop.c: Include stor-layout.h.
8779 * tree-ssa-ifcombine.c: Include stor-layout.h.
8780 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
8781 * tree-ssa-loop-niter.c: Include calls.h.
8783 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
8784 * tree-ssa-math-opts.c: Include stor-layout.h.
8785 * tree-ssa-operands.c: Include stmt.h.
8786 Include print-tree.h.
8787 * tree-ssa-phiopt.c: Include stor-layout.h.
8788 * tree-ssa-reassoc.c: Include stor-layout.h.
8789 * tree-ssa-sccvn.c: Include stor-layout.h.
8790 * tree-ssa-sink.c: Include stor-layout.h.
8791 * tree-ssa-strlen.c: Include stor-layout.h.
8792 * tree-ssa-structalias.c: Include stor-layout.h.
8794 * tree-ssa-tail-merge.c: Include stor-layout.h.
8795 Include trans-mem.h.
8796 * tree-ssa-uncprop.c: Include stor-layout.h.
8797 * tree-ssa.c: Include stor-layout.h.
8798 * tree-ssanames.c: Include stor-layout.h.
8799 * tree-streamer-in.c: Include stringpool.h.
8800 * tree-streamer-out.c: Include stor-layout.h.
8801 * tree-switch-conversion.c: Include varasm.h.
8802 Include stor-layout.h.
8803 * tree-tailcall.c: Include stor-layout.h.
8804 * tree-vect-data-refs.c: Include stor-layout.h.
8805 * tree-vect-generic.c: Include stor-layout.h.
8806 * tree-vect-loop.c: Include stor-layout.h.
8807 * tree-vect-patterns.c: Include stor-layout.h.
8808 * tree-vect-slp.c: Include stor-layout.h.
8809 * tree-vect-stmts.c: Include stor-layout.h.
8810 * tree-vectorizer.c: Include stor-layout.h.
8811 * tree-vrp.c: Include stor-layout.h.
8813 * tree.c: Include stor-layout.h.
8817 * tsan.c: Include expr.h.
8818 * ubsan.c: Include stor-layout.h.
8819 Include stringpool.h.
8820 * value-prof.c: Include tree-nested.h.
8822 * var-tracking.c: Include varasm.h.
8823 Include stor-layout.h.
8824 * varasm.c: Include stor-layout.h.
8825 Include stringpool.h.
8826 Include gcc-symtab.h.
8828 * varpool.c: Include varasm.h.
8829 * vmsdbgout.c: Include varasm.h.
8830 * xcoffout.c: Include varasm.h.
8832 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
8834 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
8837 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8839 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
8841 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8842 Alan Modra <amodra@gmail.com>
8844 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
8845 (RS6000_SAVE_TOC): Remove.
8846 (RS6000_TOC_SAVE_SLOT): New macro.
8847 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
8848 (rs6000_parm_start): Use it.
8849 (rs6000_function_arg_advance_1): Likewise.
8850 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
8851 (rs6000_emit_epilogue): Likewise.
8852 (rs6000_call_aix): Likewise.
8853 (rs6000_output_function_prologue): Do not save/restore r11
8854 around calling _mcount for ABI_ELFv2.
8856 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8857 Alan Modra <amodra@gmail.com>
8859 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
8861 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
8862 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
8863 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
8864 (rs6000_function_parms_need_stack): Likewise.
8865 (rs6000_reg_parm_stack_space): Likewise.
8866 (rs6000_function_arg): Do not replace BLKmode by Pmode when
8867 returning a register argument.
8869 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8870 Michael Gschwind <mkg@us.ibm.com>
8872 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
8873 (ALTIVEC_ARG_MAX_RETURN): Likewise.
8874 (FUNCTION_VALUE_REGNO_P): Use them.
8875 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
8876 (rs6000_return_in_msb): New function.
8877 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
8878 Handle aggregates of up to 16 bytes for ELFv2.
8879 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
8881 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8882 Michael Gschwind <mkg@us.ibm.com>
8884 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
8885 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
8886 (rs6000_discover_homogeneous_aggregate): Likewise.
8887 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
8888 (rs6000_function_arg_advance_1): Likewise.
8889 (rs6000_function_arg): Likewise.
8890 (rs6000_arg_partial_bytes): Likewise.
8891 (rs6000_psave_function_arg): Handle BLKmode arguments.
8893 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8894 Michael Gschwind <mkg@us.ibm.com>
8896 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
8897 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
8898 (rs6000_discover_homogeneous_aggregate): Likewise.
8899 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
8900 (rs6000_function_arg_advance_1): Likewise.
8901 (rs6000_function_arg): Likewise.
8902 (rs6000_arg_partial_bytes): Likewise.
8903 (rs6000_psave_function_arg): Handle BLKmode arguments.
8905 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8907 * config/rs6000/rs6000.c (machine_function): New member
8909 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
8910 (rs6000_output_mi_thunk): Set r2_setup_needed.
8911 (rs6000_output_function_prologue): Output global entry point
8912 prologue and local entry point marker if needed for ABI_ELFv2.
8913 Output -mprofile-kernel code here.
8914 (output_function_profiler): Do not output -mprofile-kernel
8915 code here; moved to rs6000_output_function_prologue.
8916 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
8918 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
8919 (rs6000_output_function_entry): Likewise.
8920 (rs6000_assemble_integer): Likewise.
8921 (rs6000_elf_encode_section_info): Likewise.
8922 (rs6000_elf_declare_function_name): Do not create dot symbols
8923 or .opd section for ABI_ELFv2.
8925 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
8926 (rs6000_trampoline_init): Likewise.
8927 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
8929 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
8930 for function descriptors in ABI_ELFv2.
8932 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
8933 on ABI_AIX only, not ABI_ELFv2.
8934 ("*call_value_indirect_aix<mode>"): Likewise.
8935 ("*call_indirect_elfv2<mode>"): New pattern.
8936 ("*call_value_indirect_elfv2<mode>"): Likewise.
8938 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
8939 check for function descriptors in ABI_ELFv2.
8940 ("current_file_function_operand"): Likewise.
8942 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
8944 (FUNC_NAME): Define ELFv2 variant.
8945 (JUMP_TARGET): Likewise.
8946 (FUNC_START): Likewise.
8947 (HIDDEN_FUNC): Likewise.
8948 (FUNC_END): Likeiwse.
8950 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8952 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
8953 and --with-abi=elfv2.
8954 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
8955 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
8956 (mabi=elfv2): Likewise.
8957 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
8958 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
8960 (ELFv2_ABI_CHECK): New macro.
8961 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
8962 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
8963 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
8964 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
8965 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
8967 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
8968 (debug_stack_info): Likewise.
8969 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
8970 (rs6000_legitimize_tls_address): Likewise.
8971 (rs6000_conditional_register_usage): Likewise.
8972 (rs6000_emit_move): Likewise.
8973 (init_cumulative_args): Likewise.
8974 (rs6000_function_arg_advance_1): Likewise.
8975 (rs6000_function_arg): Likewise.
8976 (rs6000_arg_partial_bytes): Likewise.
8977 (rs6000_output_function_entry): Likewise.
8978 (rs6000_assemble_integer): Likewise.
8979 (rs6000_savres_strategy): Likewise.
8980 (rs6000_stack_info): Likewise.
8981 (rs6000_function_ok_for_sibcall): Likewise.
8982 (rs6000_emit_load_toc_table): Likewise.
8983 (rs6000_savres_routine_name): Likewise.
8984 (ptr_regno_for_savres): Likewise.
8985 (rs6000_emit_prologue): Likewise.
8986 (rs6000_emit_epilogue): Likewise.
8987 (rs6000_output_function_epilogue): Likewise.
8988 (output_profile_hook): Likewise.
8989 (output_function_profiler): Likewise.
8990 (rs6000_trampoline_size): Likewise.
8991 (rs6000_trampoline_init): Likewise.
8992 (rs6000_elf_output_toc_section_asm_op): Likewise.
8993 (rs6000_elf_encode_section_info): Likewise.
8994 (rs6000_elf_reloc_rw_mask): Likewise.
8995 (rs6000_elf_declare_function_name): Likewise.
8996 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
8997 except that rs6000_compat_align_parm is always assumed false.
8998 (rs6000_gimplify_va_arg): Likewise.
8999 (rs6000_call_aix): Update comment.
9000 (rs6000_sibcall_aix): Likewise.
9001 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
9002 Treat ABI_ELFv2 the same as ABI_AIX.
9003 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
9004 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
9005 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
9006 ("load_toc_aix_si"): Likewise.
9007 ("load_toc_aix_di"): Likewise.
9009 ("call_value"): Likewise.
9010 ("*call_local_aix<mode>"): Likewise.
9011 ("*call_value_local_aix<mode>"): Likewise.
9012 ("*call_nonlocal_aix<mode>"): Likewise.
9013 ("*call_value_nonlocal_aix<mode>"): Likewise.
9014 ("*call_indirect_aix<mode>"): Likewise.
9015 ("*call_value_indirect_aix<mode>"): Likewise.
9016 ("sibcall"): Likewise.
9017 ("sibcall_value"): Likewise.
9018 ("*sibcall_aix<mode>"): Likewise.
9019 ("*sibcall_value_aix<mode>"): Likewise.
9020 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
9021 ("current_file_function_operand"): Likewise.
9023 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9025 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
9026 by making use of the fact that for vector / floating point arguments
9027 passed both in VRs/FPRs and in the fixed parameter area, the partial
9028 bytes mechanism is in fact not used.
9030 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9032 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
9033 (rs6000_finish_function_arg): Likewise.
9034 (rs6000_function_arg): Use rs6000_psave_function_arg and
9035 rs6000_finish_function_arg to handle both vector and floating
9036 point arguments that are also passed in GPRs / the stack.
9038 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9040 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
9041 (USE_ALTIVEC_FOR_ARG_P): Likewise.
9042 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
9043 (rs6000_function_arg_advance_1):Likewise.
9044 (rs6000_darwin64_record_arg_recurse): Likewise.
9045 (rs6000_function_arg): Likewise.
9046 (rs6000_arg_partial_bytes): Likewise.
9048 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9050 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
9051 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
9052 (rs6000_savres_strategy): Likewise.
9053 (rs6000_return_addr): Likewise.
9054 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
9055 testing for ABI_V4 (since ABI_DARWIN is impossible here).
9056 (rs6000_emit_prologue): Likewise.
9057 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
9058 (rs6000_elf_declare_function_name): Remove duplicated test.
9059 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
9060 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
9061 ("load_toc_v4_PIC_1_normal"): Likewise.
9062 ("load_toc_v4_PIC_1_476"): Likewise.
9063 ("load_toc_v4_PIC_1b"): Likewise.
9064 ("load_toc_v4_PIC_1b_normal"): Likewise.
9065 ("load_toc_v4_PIC_1b_476"): Likewise.
9066 ("load_toc_v4_PIC_2"): Likewise.
9067 ("load_toc_v4_PIC_3b"): Likewise.
9068 ("load_toc_v4_PIC_3c"): Likewise.
9069 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
9070 (RS6000_SAVE_AREA): Likewise.
9071 (FP_ARG_MAX_REG): Likewise.
9072 (RETURN_ADDRESS_OFFSET): Likewise.
9073 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
9075 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
9076 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
9078 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9080 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
9081 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
9082 Create call insn directly instead of via various gen_... routines.
9083 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
9084 (rs6000_sibcall_aix): New function.
9085 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
9086 (TOC_SAVE_OFFSET_64BIT): Likewise.
9087 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
9088 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
9089 (AIX_FUNC_DESC_SC_32BIT): Likewise.
9090 (AIX_FUNC_DESC_SC_64BIT): Likewise.
9091 ("call" expander): Call rs6000_call_aix.
9092 ("call_value" expander): Likewise.
9093 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
9094 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
9095 ("*call_indirect_aix<mode>"): ... by this insn pattern.
9096 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
9097 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
9098 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
9099 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
9100 ("*call_nonlocal_aix<mode>"): ... this pattern.
9101 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
9102 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
9103 ("*call_local_aix<mode>"): New insn pattern.
9104 ("*call_value_local_aix<mode>"): Likewise.
9105 ("sibcall" expander): Call rs6000_sibcall_aix.
9106 ("sibcall_value" expander): Likewise. Move earlier in file.
9107 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
9108 ("*sibcall_aix<mode>"): ... this pattern.
9109 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
9110 ("*sibcall_value_aix<mode>"): ... this pattern.
9111 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
9112 (rs6000_call_aix): Add prototype.
9113 (rs6000_sibcall_aix): Likewise.
9115 2013-11-14 Jakub Jelinek <jakub@redhat.com>
9118 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
9119 isn't confused by the artificial decl.
9121 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9123 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
9124 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
9125 Instead, add USEs of all modified call-saved CR fields to the
9126 insn storing the result to the stack slot, and provide an
9127 appropriate REG_FRAME_RELATED_EXPR for that insn.
9128 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
9129 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
9131 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9132 Alan Modra <amodra@gmail.com>
9134 * function.c (assign_parms): Use all.reg_parm_stack_space instead
9135 of re-evaluating REG_PARM_STACK_SPACE target macro.
9136 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
9137 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
9138 (assign_parm_find_entry_rtl): Update call.
9139 * calls.c (initialize_argument_information): Update call.
9140 (emit_library_call_value_1): Likewise.
9141 * expr.h (locate_and_pad_parm): Update prototype.
9143 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9145 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
9148 2013-11-14 DJ Delorie <dj@redhat.com>
9150 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
9153 2013-11-14 Jeff Law <law@redhat.com>
9155 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
9156 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
9158 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
9160 * doc/invoke.texi: Update documentation for AArch64's -mcpu
9163 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
9165 * config/aarch64/aarch64-cores.def (example-1): Remove.
9166 (example-2): Likewise.
9167 * config/aarch64/aarch64-tune.md: Regenerate.
9168 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
9169 (generic_sched): Remove "large", "small".
9170 * config/aarch64/large.md: Delete.
9171 * config/aarch64/small.md: Delete.
9173 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
9175 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
9176 * config/aarch64/aarch64-tune.md: Regenerate.
9177 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
9178 (generic_sched): "no" if we are tuning for cortexa15.
9179 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
9182 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
9184 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
9185 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
9186 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
9187 (all_cores): Use cortexa53 when tuning for "generic".
9188 (aarch64_override_options): Fix comment.
9189 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
9190 * config/aarch64/aarch64-generic.md: Delete.
9192 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
9194 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
9196 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9198 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
9199 (generic_rtx_cost_table): Remove.
9200 (aarch64_rtx_costs): Use fields from cpu_cost_table.
9201 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
9203 (cpu_rtx_cost_table): Remove.
9205 2013-11-14 Julian Brown <julian@codesourcery.com>
9206 Joey Ye <joey.ye@arm.com>
9208 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
9209 (arm_v7m_tune): New.
9210 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
9211 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
9212 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
9213 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
9215 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
9218 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
9221 2013-11-14 Jakub Jelinek <jakub@redhat.com>
9222 Uros Bizjak <ubizjak@gmail.com>
9225 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
9226 operands[2] satisfies_constraint_Z that might have bit 31 set.
9228 2013-11-13 Jeff Law <law@redhat.com>
9230 PR tree-optimization/59102
9231 * gimple-ssa-isolate-paths.c
9232 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
9233 gimple assignment before looking at gimple_assign_lhs.
9235 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
9237 * ira.c: Add comment about threads at the top of file.
9239 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
9241 * ira-color.c (coalesce_allocnos): Don't allocate and free
9244 2013-11-14 Tom de Vries <tom@codesourcery.com>
9246 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
9247 equality for GIMPLE_ASSIGN.
9249 2013-11-14 Tom de Vries <tom@codesourcery.com>
9251 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
9253 (gimple_equal_p): ... here.
9255 2013-11-14 Tom de Vries <tom@codesourcery.com>
9257 * trans-mem.c (is_tm_ending): New function.
9258 * gimple.h (is_tm_ending): Declare.
9259 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
9261 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
9263 2013-11-14 Tom de Vries <tom@codesourcery.com>
9265 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
9267 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
9269 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
9270 (struct walk_stmt_info): Relocate here from gimple.h.
9271 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
9272 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
9273 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
9274 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
9275 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
9276 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
9277 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
9278 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
9279 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
9280 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
9281 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
9282 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
9283 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
9284 (struct walk_stmt_info): Move to gimple-walk.h.
9285 (gimple_seq_set_location): Move to gimple.c
9286 * gimple-walk.c: New File.
9287 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
9288 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
9289 walk_stmt_load_store_ops): Relocate here from gimple.c.
9290 * gimple-iterator.c: Include gimple-iterator.h.
9291 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
9292 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
9293 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
9295 (gimple_seq_set_location): Relocate from gimple.h.
9296 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
9297 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
9298 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
9299 * Makefile.in (OBJS): Add gimple-walk.o
9300 * asan.c: Update Include list as required for gimple-iterator.h and
9302 * cfgexpand.c: Likewise.
9303 * cfgloop.c: Likewise.
9304 * cfgloopmanip.c: Likewise.
9305 * cgraph.c: Likewise.
9306 * cgraphbuild.c: Likewise.
9307 * cgraphunit.c: Likewise.
9308 * gimple-fold.c: Likewise.
9309 * gimple-low.c: Likewise.
9310 * gimple-pretty-print.c: Likewise.
9311 * gimple-ssa-isolate-paths.c: Likewise.
9312 * gimple-ssa-strength-reduction.c: Likewise.
9313 * gimple-streamer-in.c: Likewise.
9314 * gimple-streamer-out.c: Likewise.
9315 * gimplify.c: Likewise.
9316 * graphite-blocking.c: Likewise.
9317 * graphite-clast-to-gimple.c: Likewise.
9318 * graphite-dependences.c: Likewise.
9319 * graphite-interchange.c: Likewise.
9320 * graphite-optimize-isl.c: Likewise.
9321 * graphite-poly.c: Likewise.
9322 * graphite-scop-detection.c: Likewise.
9323 * graphite-sese-to-poly.c: Likewise.
9324 * graphite.c: Likewise.
9325 * ipa-inline-analysis.c: Likewise.
9326 * ipa-profile.c: Likewise.
9327 * ipa-prop.c: Likewise.
9328 * ipa-pure-const.c: Likewise.
9329 * ipa-split.c: Likewise.
9330 * lto-streamer-in.c: Likewise.
9331 * lto-streamer-out.c: Likewise.
9332 * omp-low.c: Likewise.
9333 * predict.c: Likewise.
9334 * profile.c: Likewise.
9336 * tracer.c: Likewise.
9337 * trans-mem.c: Likewise.
9338 * tree-call-cdce.c: Likewise.
9339 * tree-cfg.c: Likewise.
9340 * tree-cfgcleanup.c: Likewise.
9341 * tree-complex.c: Likewise.
9342 * tree-data-ref.c: Likewise.
9343 * tree-dfa.c: Likewise.
9344 * tree-eh.c: Likewise.
9345 * tree-emutls.c: Likewise.
9346 * tree-if-conv.c: Likewise.
9347 * tree-inline.c: Likewise.
9348 * tree-into-ssa.c: Likewise.
9349 * tree-loop-distribution.c: Likewise.
9350 * tree-nested.c: Likewise.
9351 * tree-nrv.c: Likewise.
9352 * tree-object-size.c: Likewise.
9353 * tree-outof-ssa.c: Likewise.
9354 * tree-parloops.c: Likewise.
9355 * tree-predcom.c: Likewise.
9356 * tree-profile.c: Likewise.
9357 * tree-scalar-evolution.c: Likewise.
9358 * tree-sra.c: Likewise.
9359 * tree-ssa-ccp.c: Likewise.
9360 * tree-ssa-coalesce.c: Likewise.
9361 * tree-ssa-copy.c: Likewise.
9362 * tree-ssa-copyrename.c: Likewise.
9363 * tree-ssa-dce.c: Likewise.
9364 * tree-ssa-dom.c: Likewise.
9365 * tree-ssa-dse.c: Likewise.
9366 * tree-ssa-forwprop.c: Likewise.
9367 * tree-ssa-ifcombine.c: Likewise.
9368 * tree-ssa-live.c: Likewise.
9369 * tree-ssa-loop-ch.c: Likewise.
9370 * tree-ssa-loop-im.c: Likewise.
9371 * tree-ssa-loop-ivcanon.c: Likewise.
9372 * tree-ssa-loop-ivopts.c: Likewise.
9373 * tree-ssa-loop-manip.c: Likewise.
9374 * tree-ssa-loop-niter.c: Likewise.
9375 * tree-ssa-loop-prefetch.c: Likewise.
9376 * tree-ssa-loop.c: Likewise.
9377 * tree-ssa-math-opts.c: Likewise.
9378 * tree-ssa-phiopt.c: Likewise.
9379 * tree-ssa-phiprop.c: Likewise.
9380 * tree-ssa-pre.c: Likewise.
9381 * tree-ssa-propagate.c: Likewise.
9382 * tree-ssa-reassoc.c: Likewise.
9383 * tree-ssa-sink.c: Likewise.
9384 * tree-ssa-strlen.c: Likewise.
9385 * tree-ssa-structalias.c: Likewise.
9386 * tree-ssa-tail-merge.c: Likewise.
9387 * tree-ssa-ter.c: Likewise.
9388 * tree-ssa-threadedge.c: Likewise.
9389 * tree-ssa-threadupdate.c: Likewise.
9390 * tree-ssa-uncprop.c: Likewise.
9391 * tree-ssa-uninit.c: Likewise.
9392 * tree-ssa.c: Likewise.
9393 * tree-stdarg.c: Likewise.
9394 * tree-switch-conversion.c: Likewise.
9395 * tree-tailcall.c: Likewise.
9396 * tree-vect-data-refs.c: Likewise.
9397 * tree-vect-generic.c: Likewise.
9398 * tree-vect-loop-manip.c: Likewise.
9399 * tree-vect-loop.c: Likewise.
9400 * tree-vect-patterns.c: Likewise.
9401 * tree-vect-slp.c: Likewise.
9402 * tree-vect-stmts.c: Likewise.
9403 * tree-vectorizer.c: Likewise.
9404 * tree-vrp.c: Likewise.
9407 * value-prof.c: Likewise.
9408 * vtable-verify.c: Likewise.
9410 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
9412 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
9415 2013-11-13 Jeff Law <law@redhat.com>
9417 * PR middle-end/59119
9418 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
9419 function, extracted from gimple_ssa_isolate_erroneous_paths.
9420 (find_explicit_erroneous_behaviour): Similarly.
9421 (insert_trap_and_remove_trailing_statements): Remove statements
9424 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
9426 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
9427 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
9428 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
9429 looking at INSN_CODE.
9430 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
9431 active_insn_p object, respect basic block boundaries.
9432 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
9433 follows immediately after the jump table data label.
9434 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
9435 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
9436 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
9438 2013-11-13 Teresa Johnson <tejohnson@google.com>
9441 * predict.c (drop_profile): Error is currently too strict.
9442 (handle_missing_profiles): Pass call_count to drop_profile.
9444 2013-11-13 Teresa Johnson <tejohnson@google.com>
9447 * ipa-inline.c (edge_badness): Fix overflow.
9449 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
9451 PR rtl-optimization/59036
9452 * ira-color.c (struct allocno_color_data): Add new members
9453 first_thread_allocno, next_thread_allocno, thread_freq.
9454 (sorted_copies): New static var.
9455 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
9456 (allocno_thread_conflict_p, merge_threads)
9457 (form_threads_from_copies, form_threads_from_bucket)
9458 (form_threads_from_colorable_allocno, init_allocno_threads): New
9460 (bucket_allocno_compare_func): Add comparison by thread frequency
9462 (add_allocno_to_ordered_bucket): Rename to
9463 add_allocno_to_ordered_colorable_bucket. Remove parameter.
9464 (push_only_colorable): Call form_threads_from_bucket.
9465 (color_pass): Call init_allocno_threads. Use
9466 consideration_allocno_bitmap instead of coloring_allocno_bitmap
9467 for nuillify allocno color data.
9468 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
9469 (coalesce_allocnos): Use static sorted copies.
9471 2013-11-13 Jakub Jelinek <jakub@redhat.com>
9473 * passes.c (execute_todo): Don't call do_per_function if
9475 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
9476 execute_function_dump if dump_file is NULL.
9478 2013-11-13 Martin Jambor <mjambor@suse.cz>
9480 * cgraph.c (cgraph_get_create_node): Do what
9481 cgraph_get_create_real_symbol_node used to do.
9482 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
9483 call cgraph_get_create_node.
9484 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
9485 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
9486 cgraph_get_create_node. Assert we get a node.
9488 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
9490 * config/aarch64/aarch64-simd.md (vec_extract): New.
9492 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
9494 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
9497 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
9499 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
9500 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
9501 or if optimization is enabled.
9502 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
9503 require that all the names based on a PARM_DECL or a RESULT_DECL that
9504 isn't ignored for debug info be coalesced.
9506 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9508 * config/c6x/c6x.c: Include "gimple-expr.h".
9510 2013-11-13 Richard Biener <rguenther@suse.de>
9512 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
9513 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
9514 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
9515 dealing with type mismatches inside component reference chains.
9517 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
9519 PR tree-optimization/59077
9520 * ipa-pure-const.c (better_state): Update *state.
9522 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
9524 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
9525 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
9526 Update offset calculations.
9528 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
9531 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
9532 for fields. Do not add the attribute if the size is negative.
9534 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9536 * config/arm/arm.c: Include aarch-cost-tables.h.
9537 (generic_extra_costs): Move from here...
9538 * config/arm/aarch-cost-tables.h: ... To here. New file.
9540 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
9541 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9542 Sergey Lega <sergey.s.lega@intel.com>
9543 Anna Tikhonova <anna.tikhonova@intel.com>
9544 Ilya Tocar <ilya.tocar@intel.com>
9545 Andrey Turetskiy <andrey.turetskiy@intel.com>
9546 Ilya Verbin <ilya.verbin@intel.com>
9547 Kirill Yukhin <kirill.yukhin@intel.com>
9548 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9550 * config/i386/i386.c (ix86_print_operand): Support z-masking.
9551 * config/i386/predicate.md (const_0_to_4_operand): New.
9552 (const_0_to_5_operand): Ditto.
9553 * config/i386/sse.md (UNSPEC_COMPRESS): New.
9554 (UNSPEC_COMPRESS_STORE): Ditto.
9555 (UNSPEC_EXPAND): Ditto.
9556 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
9557 (define_mode_attr ssescalarsize): Ditto.
9558 (avx512f_load<mode>_mask): Ditto.
9559 (avx512f_store<mode>_mask): Ditto.
9560 (avx512f_storedqu<mode>_mask): Ditto.
9561 (avx512f_vmcmp<mode>3_mask): Ditto.
9562 (avx512f_fmadd_<mode>_mask): Ditto.
9563 (avx512f_fmadd_<mode>_mask3): Ditto.
9564 (avx512f_fmsub_<mode>_mask): Ditto.
9565 (avx512f_fmsub_<mode>_mask3): Ditto.
9566 (avx512f_fnmadd_<mode>_mask): Ditto.
9567 (avx512f_fnmadd_<mode>_mask3): Ditto.
9568 (avx512f_fnmsub_<mode>_mask): Ditto.
9569 (avx512f_fnmsub_<mode>_mask3): Ditto.
9570 (avx512f_fmaddsub_<mode>_mask): Ditto.
9571 (avx512f_fmaddsub_<mode>_mask3): Ditto.
9572 (avx512f_fmsubadd_<mode>_mask): Ditto.
9573 (avx512f_fmsubadd_<mode>_mask3): Ditto.
9574 (vec_unpacku_float_lo_v16si): Ditto.
9575 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
9576 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
9577 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
9578 (vec_extract_lo_<mode>_maskm): Ditto.
9579 (vec_extract_hi_<mode>_maskm): Ditto.
9580 (avx512f_vternlog<mode>_mask): Ditto.
9581 (avx512f_shufps512_mask): Ditto.
9582 (avx512f_fixupimm<mode>_mask): Ditto.
9583 (avx512f_shufpd512_mask): Ditto.
9584 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
9585 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
9586 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
9587 (ashr<mode>3<mask_name>): Ditto.
9588 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
9589 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
9590 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
9591 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
9592 (avx512f_pshufdv3_mask): Ditto.
9593 (avx512f_perm<mode>_mask): Ditto.
9594 (avx512f_vpermi2var<mode>3_mask): Ditto.
9595 (avx512f_vpermt2var<mode>3_mask): Ditto.
9596 (avx512f_compress<mode>_mask): Ditto.
9597 (avx512f_compressstore<mode>_mask): Ditto.
9598 (avx512f_expand<mode>_mask): Ditto.
9599 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
9601 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
9602 (<plusminus_insn><mode>3<mask_name>): Ditto.
9603 (*<plusminus_insn><mode>3<mask_name>): Ditto.
9604 (mul<mode>3<mask_name>): Ditto.
9605 (*mul<mode>3<mask_name>): Ditto.
9606 (<sse>_div<mode>3<mask_name>): Ditto.
9607 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
9608 (<sse>_sqrt<mode>2<mask_name>): Ditto.
9609 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
9610 (<code><mode>3<mask_name>/smaxmin): Ditto.
9611 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
9612 (*<code><mode>3<mask_name>/smaxmin): Ditto.
9613 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
9614 (ufloatv16siv16sf2<mask_name>): Ditto.
9615 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
9616 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
9617 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
9618 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
9619 (ufloatv8siv8df<mask_name>): Ditto.
9620 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
9621 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
9622 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
9623 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
9624 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
9625 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
9626 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
9627 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
9628 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
9629 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
9630 (vec_extract_lo_<mode><mask_name>): Ditto.
9631 (vec_extract_hi_<mode><mask_name>): Ditto.
9632 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
9633 (avx512f_movddup512<mask_name>): Ditto.
9634 (avx512f_unpcklpd512<mask_name>): Ditto.
9635 (*avx512f_unpcklpd512<mask_name>): Ditto.
9636 (*avx512f_vmscalef<mode>): Ditto.
9637 (avx512f_scalef<mode><mask_name>): Ditto.
9638 (avx512f_getexp<mode><mask_name>): Ditto.
9639 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
9640 (avx512f_rndscale<mode><mask_name>): Ditto.
9641 (avx512f_shufps512_1<mask_name>): Ditto.
9642 (avx512f_shufpd512_1<mask_name>): Ditto.
9643 (<plusminus_insn><mode>3<mask_name>): Ditto.
9644 (*<plusminus_insn><mode>3<mask_name>): Ditto.
9645 (vec_widen_umult_even_v16si<mask_name>): Ditto.
9646 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
9647 (vec_widen_smult_even_v16si<mask_name>): Ditto.
9648 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
9649 (mul<mode>3<mask_name>): Ditto.
9650 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
9651 (<shift_insn><mode>3<mask_name>): Ditto.
9652 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
9653 (avx512f_<rotate><mode><mask_name>): Ditto.
9654 (<code><mode>3<mask_name>/maxmin): Ditto.
9655 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
9656 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
9657 (*andnot<mode>3<mask_name>): Ditto.
9658 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
9659 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
9660 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
9661 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
9662 (vec_set_lo_<mode><mask_name>): Ditto.
9663 (vec_set_hi_<mode><mask_name>): Ditto.
9664 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
9665 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
9666 (avx512f_pshufd_1<mask_name>): Ditto.
9667 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
9668 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
9669 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
9670 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
9671 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
9672 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
9673 (avx512er_exp2<mode><mask_name>): Ditto.
9674 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
9675 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
9676 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
9677 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
9678 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
9679 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
9680 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
9681 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
9682 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
9683 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
9684 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
9685 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
9686 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
9687 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
9688 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
9689 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
9690 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
9691 (avx512f_getmant<mode><mask_name>): Ditto.
9692 (clz<mode>2<mask_name>): Ditto.
9693 (<mask_codefor>conflict<mode><mask_name>): Ditto.
9694 (*srcp14<mode>): Remove visibility.
9695 (*rsqrt14<mode>): Ditto.
9696 (*fma_fmsub_<mode>): Ditto.
9697 (*fma_fnmadd_<mode>): Ditto.
9698 (*avx512f_rndscale<mode>): Ditto.
9699 * config/i386/subst.md: New file.
9701 2013-11-13 Joseph Myers <joseph@codesourcery.com>
9703 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
9704 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
9705 (atomic_load_explicit, atomic_exchange_explicit)
9706 (atomic_compare_exchange_strong_explicit)
9707 (atomic_compare_exchange_weak_explicit): Use __auto_type to
9708 declare variable initialized with PTR argument.
9710 2013-11-12 Jeff Law <law@redhat.com>
9712 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
9713 backedge_seen_p. Set, use and pass it to children appropriately.
9714 (thread_through_normal_block): Similarly.
9715 (thread_across_edge): Similarly.
9717 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
9718 memory references as volatile.
9719 (insert_trap_and_remove_trailing_statements): Fix comment.
9721 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
9724 * ira-costs.c (record_operand_costs): Check operands number for
9727 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
9730 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
9731 constraints that would allow DImode into the traditional Altivec
9732 registers, but cause undesirable code generation when loading 0 as
9734 (movdi_internal64): Likewise.
9735 (cmp<mode>_fpr): Do not use %x for CR register output.
9736 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
9737 -mallow-upper-sf debug switches are used.
9739 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
9741 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
9742 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
9743 Relocate prototypes from gimple.h.
9744 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
9745 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
9747 * gimple.h: Move some prototypes to gimplify.h.
9748 (gimple_predicate, enum fallback, enum gimplify_status): Move to
9750 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
9751 Relocate from gimpify.c.
9752 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
9753 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
9754 is_gimple_reg_rhs) Relocate from gimplify.c.
9755 * gimplify.c (mark_addressable): Move to gimple-expr.c.
9756 (gimple_seq_add_stmt_without_update): Move to gimple.c.
9757 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
9758 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
9759 is_gimple_reg_rhs): Move to gimple-expr.c.
9760 (should_carry_location_p): Move to gimple.c.
9761 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
9763 (annotate_one_with_location, annotate_all_with_location_after,
9764 annotate_all_with_location): Move to gimple.c.
9765 (compare_case_labels, sort_case_labels,
9766 preprocess_case_label_vec_for_gimple): Move to gimple.c.
9767 (rhs_predicate_for): Make static.
9768 (gimplify_assign): Relocate from gimple.c.
9769 * gimple.c (gimplify_assign): Move to gimplify.c.
9770 (gimple_seq_add_stmt_without_update, should_carry_location_p,
9771 annotate_one_with_location, annotate_all_with_location_after,
9772 annotate_all_with_location, compare_case_labels, sort_case_labels,
9773 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
9774 * tree.h (unshare_expr, unshare_expr_without_location,
9775 mark_addressable): Move prototypes to gimplify.h.
9776 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
9778 * asan.c: Include gimplify.h rather than gimple.h.
9779 * cfgloopmanip.c: Likewise.
9780 * cgraphunit.c: Likewise.
9781 * cilk-common.c: Likewise.
9782 * dwarf2out.c: Dont include gimple.h.
9783 * fold-const.c: Include gimplify.h rather than gimple.h.
9784 * function.c: Likewise.
9785 * gimple-fold.c: Likewise.
9786 * gimple-ssa-strength-reduction.c: Likewise.
9787 * graphite-clast-to-gimple.c: Likewise.
9788 * graphite-sese-to-poly.c: Likewise.
9789 * ipa-prop.c: Likewise.
9790 * ipa-split.c: Likewise.
9792 * langhooks.c: Dont include gimple.h.
9793 * loop-init.c: Include gimplify.h rather than gimple.h.
9794 * omp-low.c: Likewise.
9796 * stor-layout.c: Likewise.
9797 * targhooks.c: Likewise.
9798 * trans-mem.c: Likewise.
9799 * tree-affine.c: Likewise.
9800 * tree-cfg.c: Likewise.
9801 * tree-cfgcleanup.c: Likewise.
9802 * tree-complex.c: Likewise.
9803 * tree-if-conv.c: Likewise.
9804 * tree-inline.c: Likewise.
9805 * tree-iterator.c: Likewise.
9806 * tree-loop-distribution.c: Likewise.
9807 * tree-nested.c: Likewise.
9808 * tree-parloops.c: Likewise.
9809 * tree-predcom.c: Likewise.
9810 * tree-profile.c: Likewise.
9811 * tree-scalar-evolution.c: Likewise.
9812 * tree-sra.c: Likewise.
9813 * tree-ssa-address.c: Likewise.
9814 * tree-ssa-ccp.c: Likewise.
9815 * tree-ssa-dce.c: Likewise.
9816 * tree-ssa-forwprop.c: Likewise.
9817 * tree-ssa-ifcombine.c: Likewise.
9818 * tree-ssa-loop-im.c: Likewise.
9819 * tree-ssa-loop-ivopts.c: Likewise.
9820 * tree-ssa-loop-manip.c: Likewise.
9821 * tree-ssa-loop-niter.c: Likewise.
9822 * tree-ssa-loop-prefetch.c: Likewise.
9823 * tree-ssa-loop-unswitch.c: Likewise.
9824 * tree-ssa-math-opts.c: Likewise.
9825 * tree-ssa-phiopt.c: Likewise.
9826 * tree-ssa-phiprop.c: Likewise.
9827 * tree-ssa-pre.c: Likewise.
9828 * tree-ssa-propagate.c: Likewise.
9829 * tree-ssa-reassoc.c: Likewise.
9830 * tree-ssa-sccvn.c: Likewise.
9831 * tree-ssa-strlen.c: Likewise.
9832 * tree-ssa.c: Likewise.
9833 * tree-switch-conversio: Likewise.n.c
9834 * tree-tailcall.c: Likewise.
9835 * tree-vect-data-refs.c: Likewise.
9836 * tree-vect-generic.c: Likewise.
9837 * tree-vect-loop-manip.c: Likewise.
9838 * tree-vect-loop.c: Likewise.
9839 * tree-vect-patterns.c: Likewise.
9840 * tree-vect-stmts.c: Likewise.
9842 * value-prof.c: Likewise.
9843 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
9844 * config/alpha/alpha.c: Likewise.
9845 * config/darwin.c: Likewise.
9846 * config/i386/i386.c: Likewise.
9847 * config/ia64/ia64.c: Likewise.
9848 * config/mep/mep.c: Likewise.
9849 * config/mips/mips.c: Likewise.
9850 * config/rs6000/rs6000.c: Likewise.
9851 * config/s390/s390.c: Likewise.
9852 * config/sh/sh.c: Likewise.
9853 * config/sparc/sparc.c: Likewise.
9854 * config/spu/spu.c: Likewise.
9855 * config/stormy16/stormy16.c: Likewise.
9856 * config/tilegx/tilegx.c: Likewise.
9857 * config/tilepro/tilepro.c: Likewise.
9858 * config/xtensa/xtensa.c: Likewise.
9860 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
9862 * tree.c (grow_tree_vec_stat): New function ...
9863 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
9864 and macro front-end.
9866 2013-11-12 Marek Polacek <polacek@redhat.com>
9868 * final.c (update_alignments): Initialize label to NULL_RTX.
9870 2013-11-12 Jeff Law <law@redhat.com>
9872 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
9873 (insert_trap_and_remove_trailing_statements): New argument OP which
9874 is the NULL pointer. Emit the trap after the load/store through
9875 the NULL pointer. Simplify the RHS of a store through a NULL pointer
9876 when trivial to do so.
9877 (isolate_path): Corresponding changes.
9878 (gimple_ssa_isolate_erroneous_path): Likewise.
9880 2013-11-12 Teresa Johnson <tejohnson@google.com>
9881 Jan Hubicka <jh@suse.cz>
9883 * predict.c (drop_profile): New function.
9884 (handle_missing_profiles): Ditto.
9885 (counts_to_freqs): Don't overwrite estimated frequencies
9886 when function has no profile counts.
9887 * predict.h (handle_missing_profiles): Declare.
9888 * tree-inline.c (freqs_to_counts): New function.
9889 (copy_cfg_body): Invoke freqs_to_counts as needed.
9890 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
9892 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
9895 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
9897 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
9899 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
9902 * config/i386/i386.c (ix86_option_override_internal): Check
9903 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
9904 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
9905 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
9906 MASK_AVX256_SPLIT_UNALIGNED_STORE.
9908 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
9909 Clear m_COREI7_AVX and update comments.
9910 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
9912 2013-11-12 Martin Jambor <mjambor@suse.cz>
9914 PR rtl-optimization/10474
9915 * ira.c (interesting_dest_for_shprep): New function.
9916 (split_live_ranges_for_shrink_wrap): Likewise.
9917 (find_moveable_pseudos): Move calculation of dominance info,
9918 df_analysios and the final anlyses to...
9919 (ira): ...here, call split_live_ranges_for_shrink_wrap.
9921 2013-11-12 Bin Cheng <bin.cheng@arm.com>
9923 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
9924 Handle type conversion.
9926 2013-11-11 Martin Liska <marxin.liska@gmail.com>
9927 Jan Hubicka <jh@suse.cz>
9929 * cgraph.c (dump_cgraph_node): Profile dump added.
9930 * cgraph.h (struct cgraph_node): New time profile variable added.
9931 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
9932 * gcov-io.h (gcov_type): New profiler type introduced.
9933 * ipa-profile.c (lto_output_node): Streaming for time profile added.
9934 (input_node): Time profiler is read from LTO stream.
9935 * predict.c (maybe_hot_count_p): Hot prediction changed.
9936 * profile.c (instrument_values): New case for time profiler added.
9937 (compute_value_histograms): Read of time profile.
9938 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
9939 * tree-profile.c (init_ic_make_global_vars): Time profiler
9941 (gimple_init_edge_profiler): TP function instrumentation.
9942 (gimple_gen_time_profiler): New.
9943 * value-prof.c (gimple_add_histogram_value): Support for time profiler
9945 (dump_histogram_value): TP type added to dumps.
9946 (visit_hist): More sensitive check that takes TP into account.
9947 (gimple_find_values_to_profile): TP instrumentation.
9948 * value-prof.h (hist_type): New histogram type added.
9949 (struct histogram_value_t): Pointer to struct function added.
9950 * libgcc/Makefile.in: New GCOV merge function for TP added.
9951 * libgcov.c: function_counter variable introduced.
9952 (_gcov_merge_time_profile): New.
9953 (_gcov_time_profiler): New.
9955 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
9956 Jeff Law <law@redhat.com>
9958 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
9959 ao_ref_init_from_ptr_and_size for builtins.
9961 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
9962 H.J. Lu <hongjiu.lu@intel.com>
9965 * config/i386/x86-tune.def
9966 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
9967 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
9968 * config/i386/i386.h
9969 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
9970 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
9971 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
9972 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
9973 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
9974 misaligned_prologue_used. Check that
9975 desired_aling <= epilogue_size_needed.
9977 2013-11-11 Cong Hou <congh@google.com>
9979 PR tree-optimization/59050
9980 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
9982 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
9985 * expmed.c (emit_store_flag): Fail for const-const comparison.
9987 2013-11-11 Tristan Gingold <gingold@adacore.com>
9988 Eric Botcazou <ebotcazou@adacore.com>
9990 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
9991 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
9992 * tree.def (CONSTRUCTOR): Likewise.
9993 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
9994 * gimplify.c (gimplify_init_constructor): Do not clear the object when
9995 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
9997 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
9999 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
10002 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10004 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
10007 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
10009 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
10011 2013-11-08 Jeff Law <law@redhat.com>
10013 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
10014 threading paths first, then perform PHI node checks if applicable.
10016 2013-11-10 Karlson2k <k2k@narod.ru>
10017 Kai Tietz <ktietz@redhat.com>
10020 * configure.ac: Adding for exported symbols check
10021 and for rdynamic-check executable-extension.
10022 * configure: Regenerated.
10024 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
10026 * mode-switching.c (optimize_mode_switching): Mark block as
10027 nontransparent, if last_mode at block exit is different from no_mode.
10029 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10031 * function.c (NAME__MAIN): Move to...
10032 * cfgexpand.c (NAME__MAIN): ...here.
10034 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
10036 * target.def (can_use_doloop_p): New hook.
10037 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
10038 * doc/tm.texi: Regenerate.
10039 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
10040 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
10041 * hooks.c (hook_bool_dint_dint_uint_true): New function.
10042 * targhooks.h (can_use_doloop_if_innermost): Declare.
10043 * targhooks.c (can_use_doloop_if_innermost): New function.
10044 * target.h: Include double-int.h.
10045 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
10046 Remove iteration count, maximum iteration count, loop depth and
10047 enter-at-top inputs from doloop_begin and doloop_end.
10048 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
10050 * config/arc/arc.c (arc_can_use_doloop_p): New function.
10051 (TARGET_CAN_USE_DOLOOP_P): Define.
10052 * config/arm/thumb2.md (doloop_end): Update for new interface.
10053 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
10054 * config/bfin/bfin.md (doloop_end): Update for new interface.
10055 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
10056 (TARGET_CAN_USE_DOLOOP_P): Define.
10057 * config/c6x/c6x.md (doloop_end): Update for new interface.
10058 * config/ia64/ia64.md (doloop_end): Update for new interface.
10059 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
10060 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
10062 * config/mep/mep.c (mep_emit_doloop): Likewise.
10063 (TARGET_CAN_USE_DOLOOP_P): Define.
10064 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
10065 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
10066 * config/s390/s390.md (doloop_end): Update for new interface.
10067 * config/sh/sh.md (doloop_end): Likewise.
10068 * config/spu/spu.md (doloop_end): Likewise.
10069 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
10070 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
10071 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
10072 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
10073 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
10074 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
10076 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
10078 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
10081 * doc/extend.texi: Move Cilk Plus Builtins node before Other
10084 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
10085 Joseph Myers <joseph@codesourcery.com>
10087 * ginclude/stdatomic.h: New file.
10088 * Makefile.in (USER_H): Add stdatomic.h.
10090 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10092 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
10095 2013-11-08 Jeff Law <law@redhat.com>
10097 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
10098 * tree-ssa-threadupdate.c (delete_thread_path): New function.
10099 (ssa_redirect_edges, thread_block_1): Use it.
10100 (thread_through_loop_header, mark_threaded_blocks): Likewise.
10101 (thread_through_all_blocks, register_jump_thread): Likewise.
10102 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
10104 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
10106 * config/arm/aarch-common.c
10107 (search_term): New typedef.
10108 (shift_rtx_costs): New array.
10109 (arm_rtx_shift_left_p): New.
10110 (arm_find_sub_rtx_with_search_term): Likewise.
10111 (arm_find_sub_rtx_with_code): Likewise.
10112 (arm_early_load_addr_dep): Add sanity checking.
10113 (arm_no_early_alu_shift_dep): Likewise.
10114 (arm_no_early_alu_shift_value_dep): Likewise.
10115 (arm_no_early_mul_dep): Likewise.
10116 (arm_no_early_store_addr_dep): Likewise.
10118 2013-11-08 Richard Biener <rguenther@suse.de>
10120 PR tree-optimization/59047
10121 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
10123 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
10125 * common.opt (fcheck-pointer-bounds): Move to ...
10126 * c-family/c.opt: ... here.
10127 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
10128 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
10129 * langhooks.h (lang_hooks): Remove chkp_supported field.
10130 * toplev.c (process_options): Remove chkp_supported check.
10132 2013-11-08 Richard Biener <rguenther@suse.de>
10134 PR tree-optimization/59038
10135 PR tree-optimization/58955
10136 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
10137 previous change. Handle known dependences correctly.
10139 2013-11-08 Tom de Vries <tom@codesourcery.com>
10141 * config/rs6000/t-xilinx: Remove duplicate contents.
10143 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
10144 Joseph Myers <joseph@codesourcery.com>
10146 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
10147 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
10148 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
10149 (struct tree_base): Add atomic_flag field.
10150 * tree.h (TYPE_ATOMIC): New accessor macro.
10151 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
10152 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
10153 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
10154 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
10155 * tree.c (set_type_quals): Set TYPE_ATOMIC.
10156 (find_atomic_core_type): New function.
10157 (build_qualified_type): Adjust alignment for qualified types.
10158 (build_atomic_base): New function
10159 (build_common_tree_nodes): Build atomicQI_type_node,
10160 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
10161 atomicTI_type_node.
10162 * print-tree.c (print_node): Print atomic qualifier.
10163 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
10164 * target.def (atomic_assign_expand_fenv): New hook.
10165 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
10166 * doc/tm.texi: Regenerate.
10167 * targhooks.c (default_atomic_assign_expand_fenv): New function.
10168 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
10169 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
10170 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
10172 * config/i386/i386.c (enum ix86_builtins): Add
10173 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
10174 IX86_BUILTIN_FNCLEX.
10175 (bdesc_special_args): Add __builtin_ia32_fnstenv,
10176 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
10177 (ix86_expand_builtin): Handle the new built-in functions.
10178 (ix86_atomic_assign_expand_fenv): New function.
10179 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
10180 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
10181 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
10182 (fnstenv, fldenv, fnstsw, fnclex): New insns.
10184 2013-11-07 Steve Ellcey <sellcey@mips.com>
10186 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
10187 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
10188 (MULTILIB_DIRNAMES): Add fp64 directory.
10189 (MULTILIB_EXCEPTIONS): Add new exclusions.
10191 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
10193 * gimplify.c (gimple_regimplify_operands): Do not set
10195 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
10196 (rewrite_close_phi_out_of_ssa): Same.
10197 (rewrite_phi_out_of_ssa): Same.
10198 (rewrite_degenerate_phi): Same.
10199 (handle_scalar_deps_crossing_scop_limits): Same.
10200 * tree-if-conv.c (predicate_scalar_phi): Same.
10201 * tree-parloops.c (create_loads_for_reductions): Same.
10202 (create_final_loads_for_reduction): Same.
10203 (create_loads_and_stores_for_name): Same.
10204 (transform_to_exit_first_loop): Same.
10205 (create_parallel_loop): Same.
10206 * tree-ssa-loop-im.c
10207 (move_computations_dom_walker::before_dom_children): Same.
10208 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
10209 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
10210 * tree-ssa-propagate.c (substitute_and_fold): Same.
10211 * tree-vect-loop.c (vect_finalize_reduction): Same.
10212 * tree-vect-stmts.c (vectorizable_call): Same.
10214 2013-11-07 Mike Stump <mikestump@comcast.net>
10216 * config/pdp11/pdp11.c: Include dbxout.h.
10217 * config/picochip/picochip.c: Likewise.
10219 2013-11-07 Cong Hou <congh@google.com>
10221 PR tree-optimization/56764
10222 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
10223 Combine alias checks if it is possible to amortize the runtime
10224 overhead. Return the number of alias checks after merging.
10225 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
10226 Use the function vect_create_cond_for_alias_checks () to check
10227 the number of alias checks.
10229 2013-11-07 Jeff Law <law@redhat.com>
10231 * varpool.c (ctor_for_folding): Fix typo in comment.
10233 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
10235 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
10236 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
10238 2013-11-07 Jeff Law <law@redhat.com>
10240 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
10242 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
10243 No longer check if we have __builtin_trap, assume it's available.
10245 2013-11-07 Diego Novillo <dnovillo@google.com>
10247 * attribs.c (lookup_scoped_attribute_spec): Make static.
10248 (get_attribute_namespace): Likewise.
10249 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
10250 (validate_arglist): Move earlier in the file. Make static.
10251 (expand_stack_restore): Move from stmt.c
10252 (expand_stack_save): Move from stmt.c
10253 (rewrite_call_expr_array): Move earlier in the file.
10254 (rewrite_call_expr_valist): Likewise.
10255 * cfgexpand.c: Include hard-reg-set.h before tree.h
10258 (expand_asm_loc): Move from stmt.c.
10259 (n_occurrences): Move from stmt.c.
10260 (check_operand_nalternatives): Move from stmt.c.
10261 (tree_conflicts_with_clobbers_p): Move from stmt.c.
10262 (expand_asm_operands): Move from stmt.c
10263 (expand_asm_stmt): Move from stmt.c
10264 (expand_computed_goto): Move from stmt.c
10265 (expand_goto): Move from stmt.c
10266 (expand_null_return_1): Move from stmt.c
10267 (expand_null_return): Move from stmt.c
10268 (expand_value_return): Move from stmt.c
10269 (expand_return): Move from stmt.c
10270 (expand_main_function): Move from function.c
10271 (stack_protect_prologue): Move from function.c
10272 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
10273 (build_function_decl_skip_args): Move from tree.c.
10274 * explow.c (tree_expr_size): Move from tree.c.
10275 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
10276 (fields_length): Move from tree.c.
10277 * fold-const.c (size_low_cst): Move from tree.c.
10278 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
10279 (tree_expr_nonzero_p): Make static. Move earlier in the file.
10280 (fold_build3_initializer_loc): Remove.
10281 (tree_invalid_nonnegative_warnv_p): Make static.
10282 * function.c (expand_main_function): Move to cfgexpand.c.
10283 (stack_protect_prologue): Move to cfgexpand.c.
10284 (set_insn_locations): Move earlier in the file.
10285 * gimple-fold.c: Include langhooks.h.
10286 (truth_type_for): Move from tree.c.
10287 * print-tree.c (print_vec_tree): Remove.
10288 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
10289 (expand_goto): Move to cfgexpand.c.
10290 (n_occurrences): Move to cfgexpand.c.
10291 (expand_asm_loc): Move to cfgexpand.c
10292 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
10293 (expand_asm_operands): Move to cfgexpand.c.
10294 (expand_asm_stmt): Move to cfgexpand.c.
10295 (check_operand_nalternatives): Move to cfgexpand.c
10296 (expand_null_return): Move to cfgexpand.c.
10297 (expand_value_return): Move to cfgexpand.c.
10298 (expand_null_return_1): Move to cfgexpand.c.
10299 (expand_return): Move to cfgexpand.c.
10300 (expand_stack_save): Move to builtins.c.
10301 (expand_stack_restore): Move to builtins.c
10302 * symtab.c: Include output.h.
10303 (decl_assembler_name_hash): Move from tree.c.
10304 (decl_assembler_name_equal): Move from tree.c.
10305 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
10306 * tree-eh.c (in_array_bounds_p): Move from tree.c.
10307 (range_in_array_bounds_p): Move from tree.c.
10308 * tree-object-size.c (fini_object_sizes): Make static.
10309 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
10310 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
10311 * tree.c (decl_assembler_name_equal): Move to symtab.c.
10312 (tree_expr_size): Move to explow.c.
10313 (decl_assembler_name_hash): Move to symtab.c.
10314 (real_twop): Remove.
10315 (tree_expr_size): Move to explow.c.
10316 (stabilize_reference_1): Move earlier in the file. Make static.
10317 (omp_remove_redundant_declare_simd_attrs): Remove.
10318 (simple_cst_list_equal): Move earlier in the file. Make static.
10319 (size_low_cst): Move to fold-const.c.
10320 (build_type_no_quals): Remove.
10321 (build_function_type_skip_args): Move to cgraphclones.c.
10322 (build_function_decl_skip_args): Move to cgraphclones.c.
10323 (in_array_bounds_p): Move to tree-eh.c.
10324 (range_in_array_bounds_p): Move to tree-eh.c.
10325 (truth_type_for): Move to gimple-fold.c.
10326 (list_equal_p): Remove.
10327 * tree.h (decl_assembler_name_equal): Remove.
10328 (decl_assembler_name_hash): Remove.
10329 (truth_type_for): Remove.
10330 (build_type_no_quals): Remove.
10331 (build_function_decl_skip_args): Remove.
10332 (in_array_bounds_p): Remove.
10333 (range_in_array_bounds_p): Remove.
10334 (size_low_cst): Remove.
10335 (omp_remove_redundant_declare_simd_attrs): Remove.
10336 (tree_expr_size): Remove.
10337 (fields_length): Remove.
10338 (stabilize_reference_1): Remove.
10339 (expand_goto): Remove.
10340 (expand_stack_save): Remove.
10341 (expand_stack_restore): Remove.
10342 (expand_return): Remove.
10343 (fold_build3_initializer_loc): Remove.
10344 (tree_expr_nonzero_p): Remove.
10345 (tree_invalid_nonnegative_warnv_p): Remove.
10346 (tree_expr_nonzero_warnv_p): Remove.
10347 (fold_builtin_snprintf_chk): Remove.
10348 (validate_arglist): Remove.
10349 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
10350 (simple_cst_list_equal): Remove.
10351 (real_twop): Remove.
10352 (expand_main_function): Remove.
10353 (stack_protect_prologue): Remove.
10354 (print_vec_tree): Remove.
10355 (lookup_scoped_attribute_spec): Remove.
10356 (get_attribute_namespace): Remove.
10357 (expand_computed_goto): Remove.
10358 (expand_asm_stmt): Remove.
10359 (list_equal_p): Remove.
10360 (ssa_name_nonnegative_p): Remove.
10361 (fini_object_sizes): Remove.
10362 (addr_expr_of_non_mem_decl_p): Remove.
10363 (is_tm_safe_or_pure): Move to trans-mem.c.
10364 (more_const_call_expr_args_p): Remove.
10365 (save_vtable_map_decl): Remove.
10367 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
10369 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
10370 linker plugins, too.
10372 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
10373 link to libgomp and its dependencies.
10374 * config/ia64/hpux.h (LIB_SPEC): Likewise.
10375 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10376 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
10377 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
10379 2013-11-07 Jakub Jelinek <jakub@redhat.com>
10381 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
10382 (determine_value_range): Add loop argument. Use get_range_info to
10384 (bound_difference): Adjust caller.
10386 2013-11-07 Richard Biener <rguenther@suse.de>
10387 Jakub Jelinek <jakub@redhat.com>
10389 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
10390 latches from header PHI arguments from the latch edge.
10392 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
10395 * varasm.c (output_constant): Handle NULLPTR_TYPE.
10397 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
10399 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
10400 misaligned_prologue_used when it has been set.
10402 2013-11-07 Yury Gribov <y.gribov@samsung.com>
10403 Jakub Jelinek <jakub@redhat.com>
10406 * asan.c (get_mem_refs_of_builtin_call): Allow
10407 integer literals as addresses in instrumented builtins.
10409 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10411 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
10412 Explain why plus_constant is not used.
10414 2013-11-07 Richard Biener <rguenther@suse.de>
10416 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
10417 (canonicalize_value): ... this. Also handle stripping of
10419 (get_value, set_lattice_value, get_value_for_expr): Adjust.
10420 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
10421 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
10423 2013-11-07 Richard Biener <rguenther@suse.de>
10425 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
10427 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
10430 * config/i386/i386.md (push peepholer/splitter): Use Pmode
10431 with stack_pointer_rtx.
10433 2013-11-07 Bin Cheng <bin.cheng@arm.com>
10435 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
10436 using operand_equal_p.
10438 2013-11-07 Bin Cheng <bin.cheng@arm.com>
10440 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
10441 * tree-affine.c (get_inner_reference_aff): Return base.
10442 * tree-affine.h (get_inner_reference_aff): Change prototype.
10444 2013-11-06 Tobias Burnus <burnus@net-b.de>
10446 * doc/invoke.texi (Wdate-time): Fix typo.
10448 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
10450 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
10451 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
10452 fp_arith_reg_operand instead of arith_reg_operand.
10454 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
10456 * config/sh/sh.md (adddi3): Remove empty constraints.
10457 Remove can_create_pseudo_p and arith_reg_operand check.
10458 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
10459 Split before reload.
10461 2013-11-06 Jeff Law <law@redhat.com>
10462 Tom Tromey <tromey@redhat.com>
10464 * gdbinit.in: Disable strict type checking.
10466 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
10468 * tree-pass.h (make_pass_live_range_shrinkage): New external.
10469 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
10470 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
10471 (rest_of_handle_live_range_shrinkage): Ditto
10472 (class pass_live_range_shrinkage): Ditto.
10473 (pass_data_live_range_shrinkage): Ditto.
10474 (make_pass_live_range_shrinkage): Ditto.
10475 * sched-int.h (initialize_live_range_shrinkage): New prototype.
10476 (finish_live_range_shrinkage): Ditto.
10477 * sched-deps.c (create_insn_reg_set): Make void return value.
10478 * passes.def: Add pass_live_range_shrinkage.
10479 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
10480 * haifa-sched.c (live_range_shrinkage_p): New.
10481 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
10483 (rank_for_schedule): Add code for pressure relief through live
10485 (schedule_insn): Print more debug info.
10486 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
10487 through live range shrinkage.
10488 * doc/invoke.texi (-flive-range-shrinkage): New.
10489 * common.opt (flive-range-shrinkage): New.
10491 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
10494 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
10495 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
10496 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
10497 RTXes that return in AVX256 register.
10499 2013-11-06 Richard Biener <rguenther@suse.de>
10501 PR tree-optimization/58653
10502 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
10503 (prepare_initializers_chain): Adjust.
10505 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
10507 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
10508 (gimple_in_transaction): Use bb_in_transaction.
10509 * basic-block.h (bb_in_transaction): Relocate here and rename.
10510 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
10512 2013-11-06 Richard Biener <rguenther@suse.de>
10514 * tree.c (drop_tree_overflow): New function.
10515 * tree.h (drop_tree_overflow): Declare.
10516 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
10517 * tree-vrp.c (range_int_cst_singleton_p): Use
10518 is_overflow_infinity instead of testing TREE_OVERFLOW.
10519 (extract_range_from_assert): Likewise.
10520 (zero_nonzero_bits_from_vr): Likewise.
10521 (extract_range_basic): Likewise.
10522 (register_new_assert_for): Use drop_tree_overflow.
10523 (vrp_visit_phi_node): Likewise.
10525 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
10527 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
10528 checking for leaf functions without dynamic stack allocation.
10529 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
10530 (ia64_expand_prologue): Likewise.
10531 * config/mips/mips.c (mips_expand_prologue): Likewise.
10532 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
10533 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
10534 (sparc_flat_expand_prologue): Likewise.
10536 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
10538 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
10539 (__ST3_LANE_FUNC): Likewise.
10540 (__ST4_LANE_FUNC): Likewise.
10542 2013-11-06 Nick Clifton <nickc@redhat.com>
10544 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
10545 name returned by msp430_mcu_name.
10546 (LIB_SPEC): If a -T option has not been specified then set a
10547 default, mcu-specific, linker script.
10548 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
10549 * config/msp430/msp430.c (msp430x_names): Likewise.
10550 Alpha sort the names for ease of comparison.
10551 (msp430_mcu_name): New function: Returns a string suitable for
10552 use as a C preprocessor symbol based upon the name of the MCU
10554 (msp430_option_override): Accept msp430x and msp430xv2 as generic
10556 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
10558 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
10559 unless it is the last part of a spec substring.
10560 * doc/invoke.texi (Spec Files): Document space insertion
10563 2013-11-06 Christian Bruel <christian.bruel@st.com>
10565 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
10566 Factorize probabilities, Use adjust_address instead of
10567 adjust_automodify_address when possible. Enable for optimize.
10568 (sh_expand_strlen): New function.
10569 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
10570 * config/sh/sh.md (strlensi): New pattern.
10571 (UNSPEC_BUILTIN_STRLEN): Define.
10573 2013-11-06 Jakub Jelinek <jakub@redhat.com>
10575 PR middle-end/58970
10576 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
10577 (expand_assignment): If *bitpos is negative, set *offset
10578 and adjust *bitpos, so that it is not negative.
10580 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
10582 * config/i386/bdver3.md : Added two additional decoder units
10583 to support issue rate of 4 and remodeled vector unit.
10584 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
10585 architectures is set to 4.
10586 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
10587 lookahead is set to 4 for BD architectures.
10589 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10591 * config/rs6000/rs6000.c (rs6000_option_override_internal):
10592 Remove restriction against use of VSX instructions when generating
10593 code for little endian mode.
10595 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10597 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
10598 for both big and little endian.
10599 (mulv8hi3): Swap input operands for merge high and merge low
10600 instructions for little endian.
10602 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10604 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
10605 define_insn to define_expand that uses even patterns for big
10606 endian and odd patterns for little endian.
10607 (vec_widen_smult_even_v16qi): Likewise.
10608 (vec_widen_umult_even_v8hi): Likewise.
10609 (vec_widen_smult_even_v8hi): Likewise.
10610 (vec_widen_umult_odd_v16qi): Likewise.
10611 (vec_widen_smult_odd_v16qi): Likewise.
10612 (vec_widen_umult_odd_v8hi): Likewise.
10613 (vec_widen_smult_odd_v8hi): Likewise.
10614 (altivec_vmuleub): New define_insn.
10615 (altivec_vmuloub): Likewise.
10616 (altivec_vmulesb): Likewise.
10617 (altivec_vmulosb): Likewise.
10618 (altivec_vmuleuh): Likewise.
10619 (altivec_vmulouh): Likewise.
10620 (altivec_vmulesh): Likewise.
10621 (altivec_vmulosh): Likewise.
10623 2013-11-05 Mike Stump <mikestump@comcast.net>
10625 * Makefile.in (mostlyclean): Remove c-family objects.
10627 2013-11-05 Ian Lance Taylor <iant@google.com>
10629 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
10630 If possible, add .cfi directives to record change to bx.
10631 * config/i386/i386.c (ix86_emit_cfi): New function.
10632 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
10634 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
10636 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
10637 immediately after a label for a tablejump pattern.
10639 * config/arm/arm.c (is_jump_table): Remove.
10640 (create_fix_barrier): Use tablejump_p instead.
10641 (arm_reorg): Likewise.
10642 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
10643 (thumb2_output_casesi): Likewise.
10644 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
10645 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
10646 casesi_shift_media, casesi_load_media): Likewise.
10647 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
10648 * config/microblaze/microblaze.md: Likewise.
10650 2013-11-05 Tobias Burnus <burnus@net-b.de>
10652 * doc/invoke.texi (-Wdate-time): Document.
10654 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
10656 * double-int.c (lshift_double, rshift_double): Remove
10657 SHIFT_COUNT_TRUNCATED handling.
10659 2013-11-05 Jeff Law <law@redhat.com>
10661 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
10662 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
10663 * gimple-ssa-isolate-paths.c: New file.
10664 * gimple.c (check_loadstore): New function.
10665 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
10666 Verify OP is in the argument list and the argument corresponding
10667 to OP is a pointer type. Use operand_equal_p rather than
10668 pointer equality when testing if OP is on the nonnull list.
10669 Use check_loadstore rather than count_ptr_derefs. Handle
10670 GIMPLE_RETURN statements.
10671 * tree-vrp.c (infer_nonnull_range): Remove.
10672 * gimple.h (infer_nonnull_range): Declare.
10673 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
10674 * passes.def: Add pass_isolate_erroneous_paths.
10675 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
10676 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
10677 * tree-ssa.c (struct count_ptr_d): Remove.
10678 (count_ptr_derefs, count_uses_and_derefs): Remove.
10679 * tree-ssa.h (count_uses_and_derefs): Remove.
10681 2013-11-05 Jakub Jelinek <jakub@redhat.com>
10683 PR rtl-optimization/58997
10684 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
10685 get_iv_value to be in iv->mode rather than iv->extend_mode.
10686 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
10687 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
10688 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
10691 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
10693 * gimple.h: Move some prototypes to gimple-expr.h and add to include
10695 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
10696 Move to gimple-expr.h.
10697 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
10698 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
10699 is_gimple_id, virtual_operand_p, is_gimple_addressable,
10700 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
10702 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
10703 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
10704 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
10705 is_gimple_address, is_gimple_invariant_address,
10706 is_gimple_ip_invariant_address, is_gimple_min_invariant,
10707 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
10708 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
10709 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
10710 gimple_decl_printable_name, useless_type_conversion_p,
10711 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
10713 * gimple-expr.c: New File.
10714 (useless_type_conversion_p, gimple_set_body, gimple_body,
10715 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
10716 gimple_can_coalesce_p, extract_ops_from_tree_1,
10717 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
10718 is_gimple_address, is_gimple_invariant_address,
10719 is_gimple_ip_invariant_address, is_gimple_min_invariant,
10720 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
10721 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
10722 is_gimple_mem_ref_addr): Relocate here.
10723 * Makefile.in (OBJS): Add gimple-expr.o.
10725 2013-11-05 David Malcolm <dmalcolm@redhat.com>
10727 * gengtype-parse.c (struct_field_seq): Support empty structs.
10729 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
10731 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
10733 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
10735 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
10737 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
10739 (LONG_DOUBLE_TYPE_SIZE): New define.
10740 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
10742 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
10745 * doc/extend.texi [visibility ("visibility_type")]: Add example
10746 about visibility attribute on namespace declaration.
10748 2013-11-05 Richard Biener <rguenther@suse.de>
10751 * passes.def (all_passes): Start with pass_fixup_cfg again.
10753 2013-11-05 Richard Biener <rguenther@suse.de>
10755 PR tree-optimization/58955
10756 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
10759 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10761 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
10763 (vec_pack_ufix_trunc_v2df): Likewise.
10765 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
10767 PR middle-end/58981
10768 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
10769 pattern, instead of word_mode.
10771 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
10773 (set_storage_via_setmem): Likewise.
10775 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
10777 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
10778 gimple.h and the rest of the condition in eliminate_build.
10779 (eliminate_build): Call new routine.
10780 * gimple.h (phi_ssa_name_p): Delete.
10782 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
10784 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
10785 case of no prefix and reserving zero slots, because when that's the
10786 case we'll never get here.
10787 * vec.h (va_heap::reserve): Don't try and handle
10788 vec_prefix::calculate_allocation returning zero because that should
10791 2013-11-05 Richard Biener <rguenther@suse.de>
10793 PR middle-end/58941
10794 * tree-dfa.c (get_ref_base_and_extent): Merge common code
10795 in MEM_REF and TARGET_MEM_REF handling. Make sure to
10796 process trailing array detection before diving into the
10797 view-converted object (and possibly apply some extra offset).
10799 2013-11-05 Joseph Myers <joseph@codesourcery.com>
10801 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
10803 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
10805 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
10807 PR tree-optimization/58958
10808 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
10809 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
10811 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
10813 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
10814 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
10816 2013-11-05 Jakub Jelinek <jakub@redhat.com>
10818 PR tree-optimization/58984
10819 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
10820 set *SIZE_P if non-NULL on success.
10821 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
10823 (ipcp_transform_function): Likewise. Punt if size of access
10824 is different from TYPE_SIZE on v->value's type.
10826 2013-11-05 Tobias Burnus <burnus@net-b.de>
10828 * doc/invoke.texi (-fopenmp-simd): Document new option.
10829 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
10830 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
10831 * tree.c (attribute_value_equal): Ditto.
10833 2013-11-04 Wei Mi <wmi@google.com>
10835 * sched-rgn.c (add_branch_dependences): Keep insns in
10836 a SCHED_GROUP at the end of BB to remain their location.
10838 2013-11-04 Wei Mi <wmi@google.com>
10840 * config/i386/i386.c (memory_address_length): Extract a part
10841 of code to rip_relative_addr_p.
10842 (rip_relative_addr_p): New Function.
10843 (ix86_macro_fusion_p): Ditto.
10844 (ix86_macro_fusion_pair_p): Ditto.
10845 * config/i386/i386.h: Add new tune features about macro-fusion.
10846 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
10847 * doc/tm.texi: Generated.
10848 * doc/tm.texi.in: Ditto.
10849 * haifa-sched.c (try_group_insn): New Function.
10850 (group_insns_for_macro_fusion): Ditto.
10851 (sched_init): Call group_insns_for_macro_fusion.
10852 * target.def: Add two hooks: macro_fusion_p and
10853 macro_fusion_pair_p.
10855 2013-11-04 Kostya Serebryany <kcc@google.com>
10857 Update to match the changed asan API.
10858 * asan.c (asan_function_start): New function.
10859 (asan_emit_stack_protection): Update the string stored in the
10860 stack red zone to match new API. Store the PC of the current
10861 function in the red zone.
10862 (asan_global_struct): Update the __asan_global definition to match
10864 (asan_add_global): Ditto.
10865 * asan.h (asan_function_start): New prototype.
10866 * final.c (final_start_function): Call asan_function_start.
10867 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
10870 2013-11-04 Wei Mi <wmi@google.com>
10872 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
10873 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
10874 * config/i386/i386.c (ix86_option_override_internal): Ditto.
10875 (ix86_issue_rate): Ditto.
10876 (ix86_adjust_cost): Ditto.
10877 (ia32_multipass_dfa_lookahead): Ditto.
10878 (ix86_sched_init_global): Ditto.
10879 (get_builtin_code_for_version): Ditto.
10880 * config/i386/i386.h (enum target_cpu_default): Ditto.
10881 (enum processor_type): Ditto.
10882 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
10884 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
10886 PR rtl-optimization/58967
10887 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
10888 !lra_in_progress for mode sizes bigger word.
10890 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10892 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
10893 arguments to merge instruction for little endian.
10894 (vec_widen_umult_lo_v16qi): Likewise.
10895 (vec_widen_smult_hi_v16qi): Likewise.
10896 (vec_widen_smult_lo_v16qi): Likewise.
10897 (vec_widen_umult_hi_v8hi): Likewise.
10898 (vec_widen_umult_lo_v8hi): Likewise.
10899 (vec_widen_smult_hi_v8hi): Likewise.
10900 (vec_widen_smult_lo_v8hi): Likewise.
10902 2013-11-04 Ian Lance Taylor <iant@google.com>
10904 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
10905 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
10906 builtins that take pointers.
10907 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
10908 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
10909 (run_gcc): Pass -fnon-call-exceptions.
10911 2013-11-04 Jakub Jelinek <jakub@redhat.com>
10913 * optabs.c (expand_vec_perm): Revert one incorrect line from
10916 PR tree-optimization/58978
10917 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
10918 use_stmt by single_imm_use directly. Only call single_imm_use
10921 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
10923 PR rtl-optimization/58968
10924 * lra-spills.c (return_regno_p): New function.
10925 (lra_final_code_change): Use it.
10927 2013-11-04 Joseph Myers <joseph@codesourcery.com>
10929 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
10930 * target.def (float_exceptions_rounding_supported_p): New hook.
10931 * targhooks.c (default_float_exceptions_rounding_supported_p): New
10933 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
10934 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
10936 * doc/tm.texi: Regenerate.
10937 * config.gcc (powerpc*-*-linux*): Set extra_objs.
10938 * config/rs6000/rs6000-linux.c: New file.
10939 * config/rs6000/rs6000-protos.h
10940 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
10941 * config/rs6000/linux.h
10942 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
10943 * config/rs6000/linux64.h
10944 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
10945 * config/rs6000/t-linux (rs6000-linux.o): New rule.
10946 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
10948 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10950 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
10951 Replace the define_insn_and_split with a define_insn and two
10952 define_splits, with the split after reload re-permuting the source
10953 register to its original value.
10954 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
10955 (*vsx_le_perm_store_v8hi): Likewise.
10956 (*vsx_le_perm_store_v16qi): Likewise.
10958 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10960 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
10963 2013-11-04 Jakub Jelinek <jakub@redhat.com>
10965 PR tree-optimization/58946
10966 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
10967 bbs with bbinfo[idx].op != NULL before all blocks with
10968 bbinfo[idx].op == NULL.
10970 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
10972 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
10973 (avr_dump_double_int_hex): Likewise.
10974 (avr_log_vadump): Remove %D and %X handling.
10975 * config/avr/avr.c (avr_double_int_push_digit): Delete.
10976 (avr_map_op_t): Change map from double_int to unsigned int.
10977 (avr_map_op): Update accordingly.
10978 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
10979 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
10980 unsigned ints rather than double_ints.
10982 2013-11-03 Marek Polacek <polacek@redhat.com>
10984 Implement -fsanitize=vla-bound.
10985 * opts.c (common_handle_option): Handle vla-bound.
10986 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
10987 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
10988 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
10990 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
10992 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
10995 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
10997 * config/i386/constraints.md (Ts, Tv): New address constrains.
10998 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
10999 constraint for address_no_seg_operand.
11000 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
11001 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
11002 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
11003 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
11004 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
11005 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
11006 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
11007 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
11008 constraint for vsib_address_operand.
11010 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
11012 * gcse.c (pre_delete): Remove references to regmove from comments.
11013 * recog.c: (validate_replace_rtx_1): Likewise.
11014 * config/rl78/rl78.c: Likewise.
11015 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
11016 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
11017 * common/config/mmix/mmix-common.c: Likewise.
11019 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
11021 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
11022 * gimplify.c (gimplify_compound_lval): Likewise.
11023 * graphite-clast-to-gimple.c (gloog): Likewise.
11024 * graphite-dependences.c (loop_is_parallel_p): Likewise.
11025 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
11026 (limit_scop); Likewise.
11027 (build_scops): Likewise.
11028 (dot_scop): Likewise.
11029 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
11030 (build_scop_drs): Likewise.
11031 (insert_stmts): Likewise.
11032 (insert_out_of_ssa_copy): Likewise.
11033 (remove_phi): Likewise.
11034 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
11035 * hw-doloop.c (discover_loop): Likewise.
11036 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
11037 * tree-dfa.c (dump_enumerated_decls): Likewise.
11038 * tree-if-conv.c (if_convertable_loop_p): Likewise.
11039 * tree-inline.c (tree_function_versioning): Likewise.
11040 * tree-loop-distribution.c (build_rdg): Likewise.
11041 (rdg_flag_vertex_and_dependent): Likewise.
11042 (distribute_loop): Likewise.
11043 * tree-parloops.c (loop_parallel_p): Likewise.
11044 (eliminate_local_variables): Likewise.
11045 (separate_decls_in_region): Likewise.
11046 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
11047 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
11048 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
11049 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
11050 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
11051 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
11052 (vectorizable_condition): Likewise.
11054 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
11056 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
11057 * configure: Regenerate.
11058 * config/i386/i386.md (*movdi_internal): Change
11059 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
11060 (*movdf_internal): Ditto.
11061 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
11062 * config/i386/sse.md (vec_concatv2di): Output interunit movq
11063 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
11065 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
11067 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
11070 2013-10-31 David Malcolm <dmalcolm@redhat.com>
11072 Automated part of renaming of symtab_node_base to symtab_node.
11074 Patch autogenerated by rename_symtab.py from
11075 https://github.com/davidmalcolm/gcc-refactoring-scripts
11076 revision 58bb219cc090b2f4516a9297d868c245495ee622
11077 with ChangeLog entry fixed up by hand.
11079 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
11081 (cgraph_node_for_asm): Likewise.
11082 * cgraph.h (symtab_node_base): Likewise.
11083 (cgraph_node): Likewise.
11084 (varpool_node): Likewise.
11085 (is_a_helper <cgraph_node>::test): Likewise.
11086 (is_a_helper <varpool_node>::test): Likewise.
11087 (symtab_nodes): Likewise.
11088 (symtab_register_node): Likewise.
11089 (symtab_unregister_node): Likewise.
11090 (symtab_remove_node): Likewise.
11091 (symtab_get_node): Likewise.
11092 (symtab_node_for_asm): Likewise.
11093 (symtab_node_asm_name): Likewise.
11094 (symtab_node_name): Likewise.
11095 (symtab_insert_node_to_hashtable): Likewise.
11096 (symtab_add_to_same_comdat_group): Likewise.
11097 (symtab_dissolve_same_comdat_group_list): Likewise.
11098 (dump_symtab_node): Likewise.
11099 (debug_symtab_node): Likewise.
11100 (dump_symtab_base): Likewise.
11101 (verify_symtab_node): Likewise.
11102 (verify_symtab_base): Likewise.
11103 (symtab_used_from_object_file_p): Likewise.
11104 (symtab_alias_ultimate_target): Likewise.
11105 (symtab_resolve_alias): Likewise.
11106 (fixup_same_cpp_alias_visibility): Likewise.
11107 (symtab_for_node_and_aliases): Likewise.
11108 (symtab_nonoverwritable_alias): Likewise.
11109 (availability symtab_node_availability): Likewise.
11110 (symtab_semantically_equivalent_p): Likewise.
11111 (fixup_same_cpp_alias_visibility): Likewise.
11112 (symtab_prevail_in_asm_name_hash): Likewise.
11113 (cgraph): Likewise.
11114 (varpool): Likewise.
11115 (varpool_first_variable): Likewise.
11116 (varpool_next_variable): Likewise.
11117 (varpool_first_static_initializer): Likewise.
11118 (varpool_next_static_initializer): Likewise.
11119 (varpool_first_defined_variable): Likewise.
11120 (varpool_next_defined_variable): Likewise.
11121 (cgraph_first_defined_function): Likewise.
11122 (cgraph_next_defined_function): Likewise.
11123 (cgraph_first_function): Likewise.
11124 (cgraph_next_function): Likewise.
11125 (cgraph_first_function_with_gimple_body): Likewise.
11126 (cgraph_next_function_with_gimple_body): Likewise.
11127 (symtab_alias_target): Likewise.
11128 (symtab_real_symbol_p): Likewise.
11129 (symtab_can_be_discarded): Likewise.
11130 * cgraphbuild.c (mark_address): Likewise.
11131 (mark_load): Likewise.
11132 (mark_store): Likewise.
11133 * cgraphunit.c (decide_is_symbol_needed): Likewise.
11135 (enqueue_node): Likewise.
11136 (referred_to_p): Likewise.
11137 (cgraph_process_same_body_aliases): Likewise.
11138 (analyze_functions): Likewise.
11139 (handle_alias_pairs): Likewise.
11140 (output_weakrefs): Likewise.
11141 (compile): Likewise.
11142 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
11143 * ipa-inline-analysis.c (inline_write_summary): Likewise.
11144 * ipa-prop.c (remove_described_reference): Likewise.
11145 (try_decrement_rdesc_refcount): Likewise.
11146 (ipa_edge_duplication_hook): Likewise.
11147 * ipa-ref.c (ipa_record_reference): Likewise.
11148 (ipa_maybe_record_reference): Likewise.
11149 (ipa_clone_ref): Likewise.
11150 (ipa_clone_references): Likewise.
11151 (ipa_clone_referring): Likewise.
11152 (ipa_find_reference): Likewise.
11153 (ipa_remove_stmt_references): Likewise.
11154 (ipa_clear_stmts_in_references): Likewise.
11155 * ipa-ref.h (symtab_node_base): Likewise.
11156 (ipa_ref): Likewise.
11157 (ipa_record_reference): Likewise.
11158 (ipa_maybe_record_reference): Likewise.
11159 (ipa_clone_references): Likewise.
11160 (ipa_clone_referring): Likewise.
11161 (ipa_clone_ref): Likewise.
11162 (ipa_find_reference): Likewise.
11163 (ipa_remove_stmt_references): Likewise.
11164 (ipa_clear_stmts_in_references): Likewise.
11165 * ipa-reference.c (ipa_reference_write_optimization_summary):
11167 * ipa.c (enqueue_node): Likewise.
11168 (process_references): Likewise.
11169 (walk_polymorphic_call_targets): Likewise.
11170 (symtab_remove_unreachable_nodes): Likewise.
11171 (address_taken_from_non_vtable_p): Likewise.
11172 (comdat_can_be_unshared_p_1): Likewise.
11173 (comdat_can_be_unshared_p): Likewise.
11174 (can_replace_by_local_alias): Likewise.
11175 (function_and_variable_visibility): Likewise.
11176 * is-a.h: Likewise (within example in comment).
11177 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
11178 (lto_symtab_encoder_encode): Likewise.
11179 (lto_symtab_encoder_delete_node): Likewise.
11180 (lto_symtab_encoder_in_partition_p): Likewise.
11181 (lto_set_symtab_encoder_in_partition): Likewise.
11182 (output_refs): Likewise.
11183 (compute_ltrans_boundary): Likewise.
11184 (output_symtab): Likewise.
11185 (input_node): Likewise.
11186 (input_ref): Likewise.
11187 (input_edge): Likewise.
11188 (input_cgraph_1): Likewise.
11189 (input_refs): Likewise.
11190 (output_cgraph_opt_summary): Likewise.
11191 (input_node_opt_summary): Likewise.
11192 (input_cgraph_opt_section): Likewise.
11193 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
11195 * lto-streamer-out.c (lto_output): Likewise.
11196 (output_symbol_p): Likewise.
11197 (produce_symtab): Likewise.
11198 * lto-streamer.h (lto_encoder_entry): Likewise.
11199 (lto_free_function_in_decl_state_for_node): Likewise.
11200 (lto_symtab_encoder_encode): Likewise.
11201 (lto_symtab_encoder_delete_node): Likewise.
11202 (lto_symtab_encoder_in_partition_p): Likewise.
11203 (lto_set_symtab_encoder_in_partition): Likewise.
11204 (lto_symtab_encoder_lookup): Likewise.
11205 (lsei_node): Likewise.
11206 (lto_symtab_encoder_deref): Likewise.
11207 * symtab.c (symtab_hash): Likewise.
11208 (assembler_name_hash): Likewise.
11209 (symtab_nodes): Likewise.
11210 (hash_node): Likewise.
11211 (eq_node): Likewise.
11212 (hash_node_by_assembler_name): Likewise.
11213 (eq_assembler_name): Likewise.
11214 (insert_to_assembler_name_hash): Likewise.
11215 (unlink_from_assembler_name_hash): Likewise.
11216 (symtab_prevail_in_asm_name_hash): Likewise.
11217 (symtab_register_node): Likewise.
11218 (symtab_insert_node_to_hashtable): Likewise.
11219 (symtab_unregister_node): Likewise.
11220 (symtab_get_node): Likewise.
11221 (symtab_remove_node): Likewise.
11222 (symtab_initialize_asm_name_hash): Likewise.
11223 (symtab_node_for_asm): Likewise.
11224 (symtab_add_to_same_comdat_group): Likewise.
11225 (symtab_dissolve_same_comdat_group_list): Likewise.
11226 (symtab_node_asm_name): Likewise.
11227 (symtab_node_name): Likewise.
11228 (dump_symtab_base): Likewise.
11229 (dump_symtab_node): Likewise.
11230 (dump_symtab): Likewise.
11231 (debug_symtab_node): Likewise.
11232 (verify_symtab_base): Likewise.
11233 (verify_symtab_node): Likewise.
11234 (verify_symtab): Likewise.
11235 (symtab_used_from_object_file_p): Likewise.
11236 (symtab_node_availability): Likewise.
11237 (symtab_alias_ultimate_target): Likewise.
11238 (fixup_same_cpp_alias_visibility): Likewise.
11239 (symtab_resolve_alias): Likewise.
11240 (symtab_for_node_and_aliases): Likewise.
11241 (symtab_for_node_and_aliases): Likewise.
11242 (symtab_nonoverwritable_alias_1): Likewise.
11243 (symtab_nonoverwritable_alias): Likewise.
11244 (symtab_semantically_equivalent_p): Likewise.
11245 * value-prof.c (init_node_map): Likewise.
11246 * varasm.c (find_decl): Likewise.
11247 * varpool.c (varpool_node_for_asm): Likewise.
11248 (varpool_remove_unreferenced_decls): Likewise.
11250 2013-10-31 David Malcolm <dmalcolm@redhat.com>
11252 Manual part of renaming of symtab_node_base to symtab_node.
11254 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
11255 clashes with the preferred name for the base class.
11256 (const_symtab_node): Remove redundant typedef.
11258 2013-10-31 Jakub Jelinek <jakub@redhat.com>
11260 * optabs.c (expand_vec_perm): Avoid vector mode punning
11261 SUBREGs in SET_DEST.
11262 * expmed.c (store_bit_field_1): Likewise.
11263 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
11264 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
11265 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
11266 * config/i386/i386.c (ix86_expand_vector_move_misalign,
11267 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
11268 ix86_expand_sse_unpack, ix86_expand_args_builtin,
11269 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
11270 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
11271 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
11272 expand_vec_perm_vpshufb2_vpermq,
11273 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
11274 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
11275 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
11276 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
11279 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
11281 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
11282 Use gcc_unreachable for unhandled modes. Do not check results of
11283 expand_simple_binop. If not expanded to target, move the result.
11285 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
11286 Shiva Chen <shiva0217@gmail.com>
11288 * config.gcc (nds32*-*-*): Add nds32 target.
11289 * config/nds32/nds32.c: New file.
11290 * config/nds32/nds32.h: New file.
11291 * config/nds32/nds32.md: New file.
11292 * config/nds32/constants.md: New file.
11293 * config/nds32/constraints.md: New file.
11294 * config/nds32/iterators.md: New file.
11295 * config/nds32/nds32-doubleword.md: New file.
11296 * config/nds32/nds32-intrinsic.md: New file.
11297 * config/nds32/nds32_intrinsic.h: New file.
11298 * config/nds32/nds32-modes.def: New file.
11299 * config/nds32/nds32-multiple.md: New file.
11300 * config/nds32/nds32.opt: New file.
11301 * config/nds32/nds32-opts.h: New file.
11302 * config/nds32/nds32-protos.h: New file.
11303 * config/nds32/nds32-peephole2.md: New file.
11304 * config/nds32/pipelines.md: New file.
11305 * config/nds32/predicates.md: New file.
11306 * config/nds32/t-mlibs: New file.
11307 * common/config/nds32: New directory and files.
11309 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
11310 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
11311 * doc/install.texi (Cross-Compiler-Specific Options): Document
11312 --with-nds32-lib for nds32 target.
11313 * doc/extend.texi (Function Attributes, Target Builtins): Document
11314 nds32 specific attributes.
11316 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
11318 * lra-constraints (process_alt_operands): Use the result
11319 elimination register for operand when matching constraints.
11321 2013-10-31 Jakub Jelinek <jakub@redhat.com>
11323 * tree-vrp.c (maybe_set_nonzero_bits): New function.
11324 (remove_range_assertions): Call it.
11326 * tree.c (tree_ctz): New function.
11327 * tree.h (tree_ctz): New prototype.
11328 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
11329 first argument from tree to const_tree.
11330 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
11331 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
11332 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
11334 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
11335 * tree-vect-loop.c (vect_analyze_loop_operations,
11336 vect_transform_loop): Don't force scalar loop for bound just because
11337 number of iterations is unknown, only do it if it is not known to be
11338 a multiple of vectorization_factor.
11339 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
11341 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
11342 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
11343 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
11344 (set_nonzero_bits, get_nonzero_bits): New prototypes.
11345 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
11346 a default def isn't partially constant.
11347 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
11348 is known to be partially zero.
11349 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
11350 to see if a default def isn't partially constant.
11351 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
11352 creation of a range, if VR_RANGE, try to improve nonzero_bits from
11354 (set_nonzero_bits, get_nonzero_bits): New functions.
11356 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
11357 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
11358 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
11359 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
11360 uses but in the condition and ASSERT_EXPR and the other successor of
11361 the predecessor bb is __builtin_unreachable (), set_range_info of the
11362 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
11364 2013-10-31 Martin Jambor <mjambor@suse.cz>
11366 PR rtl-optimization/58934
11368 2013-10-30 Martin Jambor <mjambor@suse.cz>
11369 PR rtl-optimization/10474
11370 * ira.c (find_moveable_pseudos): Do not calculate dominance info
11372 (interesting_dest_for_shprep): New function.
11373 (split_live_ranges_for_shrink_wrap): Likewise.
11374 (ira): Calculate dominance info and df analysis. Call
11375 split_live_ranges_for_shrink_wrap.
11377 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
11378 Yury Gribov <y.gribov@samsung.com>
11381 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
11382 shadow pointer to avoid clobbering the main one.
11384 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11386 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
11388 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
11391 * ira-color.c (update_costs_from_copies): Add new parameter. Use
11392 it for calling update_costs_from_allocno.
11393 (assign_hard_reg): Call restore_costs_from_copies only for
11394 !retry_p. Pass new argument to update_costs_from_copies.
11395 (color_pass): Pass new argument to update_costs_from_copies.
11396 (ira_mark_allocation_change): Ditto.
11398 2013-10-30 Sharad Singhai <singhai@google.com>
11400 PR middle-end/58134
11401 * opts.c (common_handle_option): Remove deprecated option
11402 -ftree-vectorizer-verbose.
11403 * doc/invoke.texi (Debugging Options): Ditto.
11404 * opts-global.c (handle_common_deferred_options): Ditto.
11405 (dump_remap_tree_vectorizer_verbose): Delete.
11406 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
11408 2013-10-30 DJ Delorie <dj@redhat.com>
11410 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
11411 that take no arguments.
11413 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
11416 * reload1.c (update_eliminables_and_spill): New function, broken
11418 (reload): Use it. Check for frame size change after frame size
11419 alignment, and call update_eliminables_and_spill first if continue-ing.
11421 2013-10-30 Cong Hou <congh@google.com>
11424 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
11425 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
11426 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
11428 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
11430 PR rtl-optimization/58369
11431 * reload1.c (compute_reload_subreg_offset): New function.
11432 (choose_reload_regs): Use it to pass endian-correct
11433 offset to subreg_regno_offset.
11435 2013-10-30 Tobias Burnus <burnus@net-b.de>
11438 * tree-cfg.c (replace_loop_annotate): Replace warning by
11441 2013-10-30 Jason Merrill <jason@redhat.com>
11443 * configure.ac (loose_warn): Add -Wno-format if
11444 --disable-build-format-warnings.
11446 2013-10-30 David Malcolm <dmalcolm@redhat.com>
11448 * cgraphunit.c (analyze_functions): Split symtab_node declarations
11449 onto multiple lines to make things easier for rename_symtab.py.
11451 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
11452 (symtab_semantically_equivalent_p): Likewise.
11454 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
11457 * lra.c (check_rtl): Remove address check before LRA work.
11459 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
11461 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
11462 POINTER_PLUS_EXPR in the defining statement.
11464 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
11466 * regmove.c: Remove.
11467 * tree-pass.h (make_pass_regmove): Remove.
11468 * timevar.def (TV_REGMOVE): Remove.
11469 * passes.def (pass_regmove): Remove.
11470 * opts.c (default_options_table): Remove entry for regmove.
11471 * doc/passes.texi: Remove regmove pass description.
11472 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
11474 (-fdump-rtl-regmove): Ditto.
11475 * common.opt (foptimize-register-move, fregmove): Ignore.
11476 * Makefile.in (OBJS): Remove regmove.o.
11477 * regmove.c: Remove.
11478 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
11480 (struct ira_allocno) New member allocno_prefs.
11481 (ALLOCNO_PREFS): New macro.
11482 (ira_prefs, ira_prefs_num): New external vars.
11483 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
11484 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
11485 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
11487 (ira_add_allocno_copy_to_list): Remove prototype.
11488 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
11489 (ira_pref_iterator): New type.
11490 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
11491 (FOR_EACH_PREF): New macro.
11492 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
11493 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
11495 (ira_setup_alts): New function.
11496 (decrease_live_ranges_number): New function.
11497 (ira): Call the above function.
11498 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
11499 (ira_create_allocno): Initialize allocno prefs.
11500 (pref_pool, pref_vec): New static vars.
11501 (initiate_prefs, find_allocno_pref, ira_create_pref): New
11503 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
11504 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
11505 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
11506 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
11507 (ira_add_allocno_copy_to_list): Make static. Rename to
11508 add_allocno_copy_to_list.
11509 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
11510 swap_allocno_copy_ends_if_necessary.
11511 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
11512 ira_remove_allocno_prefs.
11513 (ira_flattening): Ditto.
11514 (ira_build): Call initiate_prefs, print_prefs.
11515 (ira_destroy): Call finish_prefs.
11516 * ira-color.c (struct update_cost_record): New.
11517 (struct allocno_color_data): Add new member update_cost_records.
11518 (update_cost_record_pool): New static var.
11519 (init_update_cost_records, get_update_cost_record): New functions.
11520 (free_update_cost_record_list, finish_update_cost_records): Ditto.
11521 (struct update_cost_queue_elem): Add member from.
11522 (initiate_cost_update): Call init_update_cost_records.
11523 (finish_cost_update): Call finish_update_cost_records.
11524 (queue_update_cost, get_next_update_cost): Add new param from.
11525 (Update_allocno_cost, update_costs_from_allocno): New functions.
11526 (update_costs_from_prefs): Ditto.
11527 (update_copy_costs): Rename to update_costs_from_copies.
11528 (restore_costs_from_copies): New function.
11529 (update_conflict_hard_regno_costs): Don't go back.
11530 (assign_hard_reg): Call restore_costs_from_copies. Add printing
11532 (pop_allocnos): Add priniting more debug info.
11533 (color_allocnos): Remove prefs for conflicting hard regs.
11534 Call update_costs_from_prefs.
11535 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
11536 (get_dup_num): Rename, modify, and move to ira.c
11537 (process_regs_for_copy): Add prefs.
11538 (add_insn_allocno_copies): Put src as first arg of
11539 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
11540 * ira-costs.c (record_reg_classes): Modify and move code into
11541 record_operands_costs.
11542 (find_costs_and_classes): Create prefs for the hard reg of small
11544 (process_bb_node_for_hard_reg_moves): Add prefs.
11546 2013-10-30 Richard Biener <rguenther@suse.de>
11548 PR middle-end/57100
11549 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
11550 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
11552 (pre_and_rev_post_order_compute): ... which now wraps it.
11553 * graph.c (draw_cfg_nodes_no_loops): Use
11554 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
11557 2013-10-30 Christian Bruel <christian.bruel@st.com>
11559 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
11560 (sh_expand_cmpstr): Handle known align and schedule improvements.
11561 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
11562 * config/sh/sh.md (cmpstrnsi): New pattern.
11564 2013-10-30 Martin Jambor <mjambor@suse.cz>
11566 PR rtl-optimization/10474
11567 * ira.c (find_moveable_pseudos): Do not calculate dominance info
11569 (interesting_dest_for_shprep): New function.
11570 (split_live_ranges_for_shrink_wrap): Likewise.
11571 (ira): Calculate dominance info and df analysis. Call
11572 split_live_ranges_for_shrink_wrap.
11574 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11577 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
11579 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
11581 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
11582 * tree.h (POINTER_BOUNDS_P): New.
11583 (BOUNDED_TYPE_P): New.
11585 (pointer_bounds_type_node): New.
11586 * tree.c (build_common_tree_nodes): Initialize
11587 pointer_bounds_type_node.
11588 * gimple.h (gimple_call_get_nobnd_arg_index): New.
11589 (gimple_call_num_nobnd_args): New.
11590 (gimple_call_nobnd_arg): New.
11591 (gimple_return_retbnd): New.
11592 (gimple_return_set_retbnd): New
11593 * gimple.c (gimple_build_return): Increase number of ops
11594 for return statement.
11595 (gimple_call_get_nobnd_arg_index): New.
11596 * gimple-pretty-print.c (dump_gimple_return): Print second op.
11598 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
11600 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
11601 with "chkp ctor" and "bnd_legacy" attributes.
11602 * gimplify.c (gimplify_init_constructor): Avoid infinite
11603 loop during gimplification of bounds initializer.
11605 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
11607 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
11608 (handle_bnd_legacy): New.
11609 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
11610 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
11613 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
11615 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
11616 (BT_FN_PTR_CONST_PTR): New.
11617 (BT_FN_CONST_PTR_CONST_PTR): New.
11618 (BT_FN_PTR_CONST_PTR_SIZE): New.
11619 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
11620 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
11621 (BT_FN_VOID_CONST_PTR_SIZE): New.
11622 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
11623 * chkp-builtins.def: New.
11624 * builtins.def: include chkp-builtins.def.
11625 (DEF_CHKP_BUILTIN): New.
11626 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
11627 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
11628 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
11629 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
11630 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
11631 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
11632 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
11633 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
11634 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
11635 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
11636 * common.opt (fcheck-pointer-bounds): New.
11637 * toplev.c (process_options): Check Pointer Bounds Checker is
11639 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
11641 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
11643 * target.def (builtin_chkp_function): New.
11644 (chkp_bound_type): New.
11645 (chkp_bound_mode): New.
11646 (fn_abi_va_list_bounds_size): New.
11647 (load_bounds_for_arg): New.
11648 (store_bounds_for_arg): New.
11649 * targhooks.h (default_load_bounds_for_arg): New.
11650 (default_store_bounds_for_arg): New.
11651 (default_fn_abi_va_list_bounds_size): New.
11652 (default_chkp_bound_type): New.
11653 (default_chkp_bound_mode): New.
11654 (default_builtin_chkp_function): New.
11655 * targhooks.c (default_load_bounds_for_arg): New.
11656 (default_store_bounds_for_arg): New.
11657 (default_fn_abi_va_list_bounds_size): New.
11658 (default_chkp_bound_type): New.
11659 (default_chkp_bound_mode); New.
11660 (default_builtin_chkp_function): New.
11661 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
11662 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
11663 (TARGET_STORE_BOUNDS_FOR_ARG): New.
11664 (TARGET_BUILTIN_CHKP_FUNCTION): New.
11665 (TARGET_CHKP_BOUND_TYPE): New.
11666 (TARGET_CHKP_BOUND_MODE): New.
11667 * doc/tm.texi: Regenerated.
11668 * langhooks.h (lang_hooks): Add chkp_supported field.
11669 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
11670 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
11672 2013-10-29 Andrew Pinski <apinski@cavium.com>
11674 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
11675 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
11676 fails, combining the branches anyways.
11677 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
11678 increases the number of combinings.
11679 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
11681 2013-10-29 Mike Stump <mikestump@comcast.net>
11683 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
11684 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
11685 (make_vector_mode): Increase namebuf to 16.
11686 (emit_insn_modes_h): When processing BImode, don't
11687 also match partial int modes.
11688 (emit_class_narrowest_mode): Likewise.
11690 * config/bfin/bfin-modes.def: Add precision to PDI.
11691 * config/m32c/m32c-modes.def: Add precision to PSI.
11692 * config/msp430/msp430-modes.def: Add precision to PSI.
11693 * config/rs6000/rs6000-modes.def: Add precision to PTI.
11694 * config/sh/sh-modes.def: Add precision to PSI and PDI.
11696 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
11699 * config/sh/sh.md (*addc): Rename existing variations to ...
11700 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
11701 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
11702 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
11703 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
11705 2013-10-29 Teresa Johnson <tejohnson@google.com>
11708 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
11709 insanities when updating probabilities.
11711 2013-10-29 David Malcolm <dmalcolm@redhat.com>
11713 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
11714 prettyprinter for cgraph_node to reflect the conversion of the
11715 symtable types to a C++ class hierarchy: it now *is* a
11716 symtab_node_base, rather than having one (named "symbol").
11718 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
11720 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
11721 __cilkrts_pop_frame. If matched, then return true for built-in
11723 (expand_builtin): Added BUILT_IN_CILK_DETACH and
11724 BUILT_IN_CILK_POP_FRAME case.
11725 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
11726 (lhs_cilk_detect_spawn): Likewise.
11727 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
11728 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
11729 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
11730 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
11731 (LANG_HOOKS_CILKPLUS): Likewise.
11732 * tree.h (CILK_SPAWN_FN): Likewise.
11733 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
11734 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
11735 (OBJS): Added cilk-common.o.
11736 (BUILTINS_DEF): Added cilk-builtins.def.
11737 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
11738 (lhd_cilk_detect_spawn): Likewise.
11739 * langhooks.h (lang_hooks_for_cilkplus): New struct.
11740 (struct lang_hooks): Added new field called "cilkplus."
11741 * cilk-common.c: New file.
11742 * cilk.h: Likewise.
11743 * cilk-builtins.def: Likewise.
11744 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
11745 "__cilk" macro and set it to 200.
11746 * function.h (struct function::cilk_frame_decl): New field.
11747 (struct function::is_cilk_function): Likewise.
11748 (struct function::calls_cilk_spawn): Likewise.
11749 * gimplify.c (gimplify_call_expr): Added a check if the function call
11750 being gimplified is a spawn detach point. If so, then add pop_frame
11751 and detach function calls.
11752 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
11753 for gimplifying _Cilk_spawn and _Cilk_sync statements.
11754 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
11755 function. If so, added a _Cilk_sync and gimplified it.
11756 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
11757 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
11758 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
11760 (can_inline_edge_p): Prevent inling of spawnee function.
11761 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
11762 for functions that use Cilk keywords.
11763 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
11764 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
11765 CILK_SYNC_STMT cases.
11766 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
11768 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
11769 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
11770 * passes.texi (Cilk Keywords): New section that describes the compiler
11771 code changes for handling Cilk Keywords.
11773 2013-10-29 David Malcolm <dmalcolm@redhat.com>
11775 Patch autogenerated by refactor_symtab.py from
11776 https://github.com/davidmalcolm/gcc-refactoring-scripts
11777 revision 58bb219cc090b2f4516a9297d868c245495ee622
11779 * asan.c (asan_finish_file): Update for conversion of symtab types to
11780 a true class hierarchy.
11781 * cfgexpand.c (estimated_stack_frame_size): Likewise.
11782 * cgraph.c (cgraph_get_body): Likewise.
11783 (cgraph_get_create_real_symbol_node): Likewise.
11784 (verify_cgraph_node): Likewise.
11785 (verify_edge_corresponds_to_fndecl): Likewise.
11786 (verify_edge_count_and_frequency): Likewise.
11787 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
11788 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
11789 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
11790 (cgraph_node_cannot_return): Likewise.
11791 (cgraph_set_pure_flag_1): Likewise.
11792 (cgraph_set_const_flag_1): Likewise.
11793 (cgraph_set_nothrow_flag_1): Likewise.
11794 (cgraph_make_node_local_1): Likewise.
11795 (cgraph_for_node_and_aliases): Likewise.
11796 (cgraph_for_node_thunks_and_aliases): Likewise.
11797 (cgraph_node_can_be_local_p): Likewise.
11798 (cgraph_node_cannot_be_local_p_1): Likewise.
11799 (cgraph_function_body_availability): Likewise.
11800 (dump_cgraph_node): Likewise.
11801 (cgraph_rtl_info): Likewise.
11802 (cgraph_mark_address_taken_node): Likewise.
11803 (cgraph_remove_node): Likewise.
11804 (cgraph_release_function_body): Likewise.
11805 (cgraph_update_edges_for_call_stmt_node): Likewise.
11806 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
11807 (cgraph_make_edge_direct): Likewise.
11808 (cgraph_resolve_speculation): Likewise.
11809 (cgraph_speculative_call_info): Likewise.
11810 (cgraph_turn_edge_to_speculative): Likewise.
11811 (cgraph_create_edge_1): Likewise.
11812 (cgraph_set_call_stmt): Likewise.
11813 (cgraph_node_for_asm): Likewise.
11814 (cgraph_add_thunk): Likewise.
11815 (cgraph_same_body_alias): Likewise.
11816 (cgraph_create_function_alias): Likewise.
11817 (cgraph_create_node): Likewise.
11818 (cgraph_create_empty_node): Likewise.
11819 (record_function_versions): Likewise.
11820 (used_from_object_file_p): Likewise.
11821 * cgraph.h (symtab_can_be_discarded): Likewise.
11822 (symtab_real_symbol_p): Likewise.
11823 (cgraph_mark_force_output_node): Likewise.
11824 (cgraph_edge_recursive_p): Likewise.
11825 (symtab_alias_target): Likewise.
11826 (varpool_all_refs_explicit_p): Likewise.
11827 (varpool_can_remove_if_no_refs): Likewise.
11828 (cgraph_only_called_directly_or_aliased_p): Likewise.
11829 (cgraph_next_function_with_gimple_body): Likewise.
11830 (cgraph_first_function_with_gimple_body): Likewise.
11831 (cgraph_function_with_gimple_body_p): Likewise.
11832 (cgraph_next_function): Likewise.
11833 (cgraph_first_function): Likewise.
11834 (cgraph_next_defined_function): Likewise.
11835 (cgraph_first_defined_function): Likewise.
11836 (varpool_next_defined_variable): Likewise.
11837 (varpool_first_defined_variable): Likewise.
11838 (varpool_next_static_initializer): Likewise.
11839 (varpool_first_static_initializer): Likewise.
11840 (varpool_next_variable): Likewise.
11841 (varpool_first_variable): Likewise.
11842 (varpool_node_name): Likewise.
11843 (varpool): Likewise.
11844 (cgraph): Likewise.
11845 (is_a_helper <varpool_node>::test): Likewise.
11846 (is_a_helper <cgraph_node>::test): Likewise.
11847 (varpool_variable_node): Likewise.
11848 (cgraph_function_or_thunk_node): Likewise.
11849 (varpool_alias_target): Likewise.
11850 (cgraph_alias_target): Likewise.
11851 (cgraph_node_name): Likewise.
11852 (varpool_node_asm_name): Likewise.
11853 (cgraph_node_asm_name): Likewise.
11854 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
11855 (cgraph_rebuild_references): Likewise.
11856 (rebuild_cgraph_edges): Likewise.
11857 (record_eh_tables): Likewise.
11858 (build_cgraph_edges): Likewise.
11859 (mark_store): Likewise.
11860 (mark_load): Likewise.
11861 (mark_address): Likewise.
11862 (record_type_list): Likewise.
11863 (record_reference): Likewise.
11864 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
11865 (cgraph_materialize_clone): Likewise.
11866 (cgraph_function_versioning): Likewise.
11867 (cgraph_copy_node_for_versioning): Likewise.
11868 (update_call_expr): Likewise.
11869 (cgraph_find_replacement_node): Likewise.
11870 (cgraph_create_virtual_clone): Likewise.
11871 (cgraph_clone_node): Likewise.
11872 * cgraphunit.c (compile): Likewise.
11873 (output_weakrefs): Likewise.
11874 (output_in_order): Likewise.
11875 (expand_function): Likewise.
11876 (assemble_thunks_and_aliases): Likewise.
11877 (expand_thunk): Likewise.
11878 (mark_functions_to_output): Likewise.
11879 (handle_alias_pairs): Likewise.
11880 (analyze_functions): Likewise.
11881 (walk_polymorphic_call_targets): Likewise.
11882 (varpool_finalize_decl): Likewise.
11883 (process_function_and_variable_attributes): Likewise.
11884 (cgraph_process_same_body_aliases): Likewise.
11885 (analyze_function): Likewise.
11886 (cgraph_add_new_function): Likewise.
11887 (cgraph_finalize_function): Likewise.
11888 (referred_to_p): Likewise.
11889 (cgraph_reset_node): Likewise.
11890 (cgraph_process_new_functions): Likewise.
11891 (enqueue_node): Likewise.
11892 (decide_is_symbol_needed): Likewise.
11893 * coverage.c (coverage_compute_profile_id): Likewise.
11894 * dbxout.c (dbxout_expand_expr): Likewise.
11895 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
11896 (reference_to_unused): Likewise.
11897 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
11898 * gimplify.c (unvisit_body): Likewise.
11899 (unshare_body): Likewise.
11900 * ipa-cp.c (ipcp_generate_summary): Likewise.
11901 (ipcp_decision_stage): Likewise.
11902 (identify_dead_nodes): Likewise.
11903 (decide_whether_version_node): Likewise.
11904 (decide_about_value): Likewise.
11905 (perhaps_add_new_callers): Likewise.
11906 (create_specialized_node): Likewise.
11907 (update_profiling_info): Likewise.
11908 (ipcp_propagate_stage): Likewise.
11909 (estimate_local_effects): Likewise.
11910 (good_cloning_opportunity_p): Likewise.
11911 (devirtualization_time_bonus): Likewise.
11912 (propagate_constants_accross_call): Likewise.
11913 (initialize_node_lattices): Likewise.
11914 (ipcp_cloning_candidate_p): Likewise.
11915 (determine_versionability): Likewise.
11916 (print_all_lattices): Likewise.
11917 (print_lattice): Likewise.
11918 (ipcp_discover_new_direct_edges): Likewise.
11919 * ipa-devirt.c (ipa_devirt): Likewise.
11920 (likely_target_p): Likewise.
11921 (update_type_inheritance_graph): Likewise.
11922 (possible_polymorphic_call_target_p): Likewise.
11923 (dump_possible_polymorphic_call_targets): Likewise.
11924 (devirt_variable_node_removal_hook): Likewise.
11925 (record_binfo): Likewise.
11926 (maybe_record_node): Likewise.
11927 (build_type_inheritance_graph): Likewise.
11928 * ipa-inline-analysis.c (inline_write_summary): Likewise.
11929 (inline_generate_summary): Likewise.
11930 (inline_analyze_function): Likewise.
11931 (do_estimate_growth): Likewise.
11932 (simple_edge_hints): Likewise.
11933 (estimate_node_size_and_time): Likewise.
11934 (estimate_edge_devirt_benefit): Likewise.
11935 (compute_inline_parameters): Likewise.
11936 (estimate_function_body_sizes): Likewise.
11937 (compute_bb_predicates): Likewise.
11938 (initialize_inline_failed): Likewise.
11939 (dump_inline_summary): Likewise.
11940 (dump_inline_edge_summary): Likewise.
11941 * ipa-inline-transform.c (inline_transform): Likewise.
11942 (preserve_function_body_p): Likewise.
11943 (save_inline_function_body): Likewise.
11944 (inline_call): Likewise.
11945 (clone_inlined_nodes): Likewise.
11946 (can_remove_node_now_p): Likewise.
11947 (can_remove_node_now_p_1): Likewise.
11948 * ipa-inline.c (early_inliner): Likewise.
11949 (early_inline_small_functions): Likewise.
11950 (inline_always_inline_functions): Likewise.
11951 (ipa_inline): Likewise.
11952 (flatten_function): Likewise.
11953 (inline_small_functions): Likewise.
11954 (speculation_useful_p): Likewise.
11955 (recursive_inlining): Likewise.
11956 (update_caller_keys): Likewise.
11957 (reset_edge_caches): Likewise.
11958 (update_edge_key): Likewise.
11959 (edge_badness): Likewise.
11960 (relative_time_benefit): Likewise.
11961 (want_inline_self_recursive_call_p): Likewise.
11962 (want_inline_small_function_p): Likewise.
11963 (want_early_inline_function_p): Likewise.
11964 (num_calls): Likewise.
11965 (can_early_inline_edge_p): Likewise.
11966 (can_inline_edge_p): Likewise.
11967 (report_inline_failed_reason): Likewise.
11968 * ipa-profile.c (ipa_profile): Likewise.
11969 (ipa_propagate_frequency): Likewise.
11970 (ipa_propagate_frequency_1): Likewise.
11971 (ipa_profile_generate_summary): Likewise.
11972 * ipa-prop.c (ipcp_transform_function): Likewise.
11973 (read_replacements_section): Likewise.
11974 (ipa_prop_read_section): Likewise.
11975 (ipa_modify_call_arguments): Likewise.
11976 (ipa_print_node_params): Likewise.
11977 (propagate_controlled_uses): Likewise.
11978 (update_indirect_edges_after_inlining): Likewise.
11979 (remove_described_reference): Likewise.
11980 (ipa_make_edge_direct_to_target): Likewise.
11981 (ipa_analyze_node): Likewise.
11982 (ipa_analyze_params_uses): Likewise.
11983 (ipa_compute_jump_functions): Likewise.
11984 (ipa_get_callee_param_type): Likewise.
11985 (ipa_print_node_jump_functions): Likewise.
11986 (ipa_initialize_node_params): Likewise.
11987 (ipa_populate_param_decls): Likewise.
11988 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
11989 (write_agg_replacement_chain): Likewise.
11990 (ipa_write_node_info): Likewise.
11991 (ipa_edge_duplication_hook): Likewise.
11992 (try_decrement_rdesc_refcount): Likewise.
11993 * ipa-pure-const.c (propagate_nothrow): Likewise.
11994 (propagate_pure_const): Likewise.
11995 (pure_const_read_summary): Likewise.
11996 (pure_const_write_summary): Likewise.
11997 (analyze_function): Likewise.
11998 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
11999 (ipa_ref_referring_ref_list): Likewise.
12000 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
12001 (ipa_remove_stmt_references): Likewise.
12002 (ipa_find_reference): Likewise.
12003 (ipa_dump_referring): Likewise.
12004 (ipa_dump_references): Likewise.
12005 (ipa_record_reference): Likewise.
12006 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
12007 (ipa_reference_write_optimization_summary): Likewise.
12008 (write_node_summary_p): Likewise.
12009 (propagate): Likewise.
12010 (read_write_all_from_decl): Likewise.
12011 (generate_summary): Likewise.
12012 (analyze_function): Likewise.
12013 (propagate_bits): Likewise.
12014 (ipa_reference_get_not_written_global): Likewise.
12015 (ipa_reference_get_not_read_global): Likewise.
12016 * ipa-split.c (execute_split_functions): Likewise.
12017 (split_function): Likewise.
12018 * ipa-utils.c (ipa_merge_profiles): Likewise.
12019 (dump_cgraph_node_set): Likewise.
12020 (ipa_reverse_postorder): Likewise.
12021 (ipa_edge_within_scc): Likewise.
12022 (ipa_get_nodes_in_cycle): Likewise.
12023 (ipa_free_postorder_info): Likewise.
12024 (ipa_reduced_postorder): Likewise.
12025 (searchc): Likewise.
12026 (recursive_call_p): Likewise.
12027 * ipa.c (ipa_cdtor_merge): Likewise.
12028 (record_cdtor_fn): Likewise.
12029 (function_and_variable_visibility): Likewise.
12030 (varpool_externally_visible_p): Likewise.
12031 (cgraph_externally_visible_p): Likewise.
12032 (comdat_can_be_unshared_p): Likewise.
12033 (comdat_can_be_unshared_p_1): Likewise.
12034 (address_taken_from_non_vtable_p): Likewise.
12035 (ipa_discover_readonly_nonaddressable_vars): Likewise.
12036 (symtab_remove_unreachable_nodes): Likewise.
12037 (walk_polymorphic_call_targets): Likewise.
12038 (process_references): Likewise.
12039 (enqueue_node): Likewise.
12040 (has_addr_references_p): Likewise.
12041 (cgraph_non_local_node_p_1): Likewise.
12042 * is-a.h (varpool_analyze_node): Likewise.
12043 * lto-cgraph.c (input_symtab): Likewise.
12044 (merge_profile_summaries): Likewise.
12045 (input_cgraph_1): Likewise.
12046 (input_edge): Likewise.
12047 (input_varpool_node): Likewise.
12048 (input_node): Likewise.
12049 (input_overwrite_node): Likewise.
12050 (compute_ltrans_boundary): Likewise.
12051 (output_refs): Likewise.
12052 (lto_output_varpool_node): Likewise.
12053 (lto_output_node): Likewise.
12054 (reachable_from_other_partition_p): Likewise.
12055 (referenced_from_other_partition_p): Likewise.
12056 (lto_output_edge): Likewise.
12057 (output_node_opt_summary): Likewise.
12058 (add_node_to): Likewise.
12059 (reachable_from_this_partition_p): Likewise.
12060 (lto_set_symtab_encoder_in_partition): Likewise.
12061 (lto_symtab_encoder_in_partition_p): Likewise.
12062 (lto_set_symtab_encoder_encode_initializer): Likewise.
12063 (lto_symtab_encoder_encode_initializer_p): Likewise.
12064 (lto_set_symtab_encoder_encode_body): Likewise.
12065 (lto_symtab_encoder_encode_body_p): Likewise.
12066 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
12068 * lto-streamer-in.c (lto_read_body): Likewise.
12069 (fixup_call_stmt_edges): Likewise.
12070 (fixup_call_stmt_edges_1): Likewise.
12071 * lto-streamer-out.c (produce_symtab): Likewise.
12072 (output_symbol_p): Likewise.
12073 (write_symbol): Likewise.
12074 (lto_output): Likewise.
12075 (copy_function): Likewise.
12076 (output_function): Likewise.
12077 * passes.c (function_called_by_processed_nodes_p): Likewise.
12078 (ipa_write_optimization_summaries): Likewise.
12079 (ipa_write_summaries): Likewise.
12080 (do_per_function_toporder): Likewise.
12081 (do_per_function): Likewise.
12082 (dump_passes): Likewise.
12083 * symtab.c (symtab_semantically_equivalent_p): Likewise.
12084 (symtab_nonoverwritable_alias): Likewise.
12085 (symtab_nonoverwritable_alias_1): Likewise.
12086 (symtab_for_node_and_aliases): Likewise.
12087 (symtab_resolve_alias): Likewise.
12088 (fixup_same_cpp_alias_visibility): Likewise.
12089 (symtab_alias_ultimate_target): Likewise.
12090 (symtab_used_from_object_file_p): Likewise.
12091 (verify_symtab_base): Likewise.
12092 (dump_symtab_base): Likewise.
12093 (symtab_node_name): Likewise.
12094 (symtab_node_asm_name): Likewise.
12095 (symtab_dissolve_same_comdat_group_list): Likewise.
12096 (symtab_add_to_same_comdat_group): Likewise.
12097 (symtab_unregister_node): Likewise.
12098 (symtab_insert_node_to_hashtable): Likewise.
12099 (symtab_register_node): Likewise.
12100 (unlink_from_assembler_name_hash): Likewise.
12101 (insert_to_assembler_name_hash): Likewise.
12102 (eq_assembler_name): Likewise.
12103 (hash_node_by_assembler_name): Likewise.
12104 (eq_node): Likewise.
12105 (hash_node): Likewise.
12106 * toplev.c (wrapup_global_declaration_2): Likewise.
12107 * trans-mem.c (ipa_tm_execute): Likewise.
12108 (ipa_tm_transform_clone): Likewise.
12109 (ipa_tm_transform_transaction): Likewise.
12110 (ipa_tm_transform_calls_redirect): Likewise.
12111 (ipa_tm_insert_gettmclone_call): Likewise.
12112 (ipa_tm_insert_irr_call): Likewise.
12113 (ipa_tm_create_version): Likewise.
12114 (ipa_tm_create_version_alias): Likewise.
12115 (ipa_tm_mark_forced_by_abi_node): Likewise.
12116 (ipa_tm_mark_force_output_node): Likewise.
12117 (ipa_tm_diagnose_tm_safe): Likewise.
12118 (ipa_tm_mayenterirr_function): Likewise.
12119 (ipa_tm_scan_irr_function): Likewise.
12120 (ipa_tm_note_irrevocable): Likewise.
12121 (ipa_tm_scan_calls_clone): Likewise.
12122 (get_cg_data): Likewise.
12123 * tree-eh.c (tree_could_trap_p): Likewise.
12124 * tree-emutls.c (ipa_lower_emutls): Likewise.
12125 (create_emultls_var): Likewise.
12126 (lower_emutls_function_body): Likewise.
12127 (gen_emutls_addr): Likewise.
12128 (emutls_decl): Likewise.
12129 (new_emutls_decl): Likewise.
12130 * tree-inline.c (tree_function_versioning): Likewise.
12131 (optimize_inline_calls): Likewise.
12132 (expand_call_inline): Likewise.
12133 (estimate_num_insns): Likewise.
12134 (copy_bb): Likewise.
12135 (delete_unreachable_blocks_update_callgraph): Likewise.
12136 * tree-nested.c (gimplify_all_functions): Likewise.
12137 (create_nesting_tree): Likewise.
12138 (check_for_nested_with_variably_modified): Likewise.
12139 * tree-pretty-print.c (dump_function_header): Likewise.
12140 * tree-profile.c (tree_profiling): Likewise.
12141 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
12142 (modify_function): Likewise.
12143 (convert_callers): Likewise.
12144 (convert_callers_for_node): Likewise.
12145 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
12146 (associate_varinfo_to_alias): Likewise.
12147 (create_variable_info_for): Likewise.
12148 (get_constraint_for_ssa_var): Likewise.
12149 * tree-vectorizer.c (increase_alignment): Likewise.
12150 * tree.c (find_decls_types_in_var): Likewise.
12151 (find_decls_types_in_node): Likewise.
12152 (free_lang_data_in_decl): Likewise.
12153 * value-prof.c (gimple_ic_transform): Likewise.
12154 (gimple_ic): Likewise.
12155 (check_ic_target): Likewise.
12156 (init_node_map): Likewise.
12157 * varasm.c (decl_binds_to_current_def_p): Likewise.
12158 (default_binds_local_p_1): Likewise.
12159 (dump_tm_clone_pairs): Likewise.
12160 (assemble_alias): Likewise.
12161 (find_decl): Likewise.
12162 (mark_decl_referenced): Likewise.
12163 * varpool.c (varpool_for_node_and_aliases): Likewise.
12164 (varpool_extra_name_alias): Likewise.
12165 (varpool_create_variable_alias): Likewise.
12166 (add_new_static_var): Likewise.
12167 (varpool_finalize_named_section_flags): Likewise.
12168 (varpool_remove_unreferenced_decls): Likewise.
12169 (enqueue_node): Likewise.
12170 (varpool_assemble_decl): Likewise.
12171 (assemble_aliases): Likewise.
12172 (varpool_analyze_node): Likewise.
12173 (cgraph_variable_initializer_availability): Likewise.
12174 (varpool_add_new_variable): Likewise.
12175 (ctor_for_folding): Likewise.
12176 (dump_varpool_node): Likewise.
12177 (varpool_remove_initializer): Likewise.
12178 (varpool_remove_node): Likewise.
12179 (varpool_node_for_decl): Likewise.
12180 (varpool_create_empty_node): Likewise.
12181 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
12182 (ix86_get_function_versions_dispatcher): Likewise.
12184 2013-10-29 David Malcolm <dmalcolm@redhat.com>
12186 * cgraph.h (symtab_node_base): Convert to a class;
12187 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
12188 chain_next/prev from symtab_node_def.
12189 (cgraph_node): Inherit from symtab_node; add GTY option
12190 tag ("SYMTAB_FUNCTION").
12191 (varpool_node): Inherit from symtab_node; add GTY option
12192 tag ("SYMTAB_VARIABLE").
12193 (symtab_node_def): Remove.
12194 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
12195 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
12196 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
12197 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
12199 * ipa-ref.h (symtab_node_def): Drop.
12200 (symtab_node): Change underlying type from symtab_node_def to
12202 (const_symtab_node): Likwise.
12204 * is-a.h: Update examples in comment.
12206 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
12207 (assembler_name_hash): Likewise.
12209 2013-10-29 Martin Liska <marxin.liska@gmail.com>
12211 * doc/tree-ssa.texi (gimple_phi_result): Document.
12212 (gimple_phi_num_args, gimple_phi_arg): Likewise.
12213 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
12214 (PHI_RESULT, PHI_NUM_ARGS): Remove.
12215 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
12217 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
12219 * expr.h: Revert change and include tree-core.h.
12220 * rtl.h: Revert change and don't include tree-core.h.
12222 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
12224 * config/darwin.c: Include gimple.h.
12225 * config/i386/winnt.c: Likewise.
12227 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
12229 PR tree-optimization/19831
12230 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
12232 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
12234 * tree-outof-ssa.h: Remove include files.
12235 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
12236 * expr.c: Likewise.
12237 * tree-ssa-coalesce.c: Likewise.
12238 * cfgexpand.c: Likewise.
12239 * tree-ssa-ter.c: Likewise.
12240 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
12241 * lto-streamer.h: Likewise.
12242 * cgraphbuild.c: Add gimple.h to include list.
12243 * data-streamer-in.c: Likewise.
12244 * ipa-cp.c: Likewise.
12245 * tree-streamer.c: Likewise.
12246 * lto-compress.c: Likewise.
12247 * ipa-reference.c: Likewise.
12248 * data-streamer-out.c: Likewise.
12249 * lto-cgraph.c: Likewise.
12250 * cgraphclones.c: Likewise.
12251 * ipa-utils.c: Likewise.
12252 * data-streamer.c: Likewise.
12253 * ipa-split.c: Likewise.
12254 * lto-section-in.c: Likewise.
12255 * tree-streamer-out.c: Likewise.
12256 * ipa-prop.c: Likewise.
12257 * tree-streamer-in.c: Likewise.
12258 * symtab.c: Likewise.
12259 * opts-global.c: Likewise.
12260 * lto-opts.c: Likewise.
12261 * lto-section-out.c: Likewise.
12262 * lto-streamer.c: Likewise.
12263 * rtl.h: Add tree-core.h to include list.
12264 * expr.h: Remove tree-core.h from include list.
12265 * gimple.h: Likewise.
12266 * ipa-utils.h: Likewise.
12267 * streamer-hooks.h: Likewise.
12268 * streamer-hooks.c: Include input.h.
12270 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12272 * config/arm/arm.c (cortexa7_extra_costs): New table.
12273 (arm_cortex_a7_tune): New.
12274 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
12276 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
12278 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
12280 2013-10-29 David Malcolm <dmalcolm@redhat.com>
12282 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
12283 to use autogenerated markers for a class-hierarchy, every class
12284 must have a GTY marker.
12285 * gengtype.h (struct type): Add linked list of subclasses to
12286 the "s" member of the union.
12287 (add_subclass): New decl.
12288 * gengtype-state.c (read_state_struct_type): Set up subclass
12290 * gengtype.c (get_ultimate_base_class): New.
12291 (add_subclass): New.
12292 (new_structure): Set up subclass linked list.
12293 (set_gc_used_type): Propagate usage information to subclasses.
12294 (output_mangled_typename): Use get_ultimate_base_class.
12295 (walk_subclasses): Use the subclass linked list, avoiding an
12296 O(N^2) when writing out all types.
12297 (walk_type): Issue an error if the base class is missing a tag,
12298 rather than generating bogus C code. Add a gcc_unreachable
12299 default case, in case people omit tags from concrete subclasses,
12300 or get the values wrong.
12301 (write_func_for_structure): Issue an error for subclasses for
12302 which the base doesn't have a "desc", since otherwise the
12303 autogenerated routines for the base would silently fail to visit
12304 any subclass fields.
12305 (write_root): Use get_ultimate_base_class, tweaking constness of
12306 tp to match that function's signature.
12308 2013-10-29 David Malcolm <dmalcolm@redhat.com>
12310 * doc/gty.texi (GTY Options): Add note about inheritance to
12311 description of desc and tag.
12312 (Inheritance and GTY): New.
12314 2013-10-29 David Malcolm <dmalcolm@redhat.com>
12316 * gengtype-parse.c (opts_have): Drop "static" so that
12317 we can use this from gengtype.c.
12318 * gengtype.c (set_gc_used_type): Mark any base class as used;
12319 update field traversal to visit inherited fields.
12320 (output_mangled_typename): Convert references to classes within
12321 an inheritance hierarchy to reference the ultimate base class,
12322 since only it will have gt_ functions.
12323 (get_string_option): New.
12324 (walk_subclasses): New.
12325 (walk_type): Treat GTY structs that have a "desc" as being the
12326 root of an inheritance hierarchy. Generate a switch on it
12327 within the marking function which walks all subclasses, adding
12328 cases for them via walk_subclasses. For subclasses, visit all
12329 fields of the type (including inherited ones).
12330 (write_func_for_structure): Don't write fns for subclasses, only
12331 for the ultimate base class within an inheritance hierarchy.
12332 Subclasses-marking will be handled by the base class marking functions.
12333 (write_types): Likewise.
12334 (write_local_func_for_structure): Likewise.
12335 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
12336 a "tag" option (and are thus concrete subclasses).
12337 (write_root): Use the marker function for the ultimate base class.
12338 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
12339 (opts_have): Add declaration.
12341 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
12343 * lra-spills.c (lra_final_code_change): Remove useless move insns
12344 originated from moves of pseudos.
12346 2013-10-28 Jeff Law <law@redhat.com>
12348 * lower-subreg.c (resolve_simple_move): Fix comment typo.
12350 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
12352 * df-scan.c (df_collection_rec): Adjust.
12353 (copy_defs): New constant.
12354 (copy_uses): Likewise.
12355 (copy_eq_uses): Likewise.
12356 (copy_mw): Likewise.
12357 (copy_all): Likewise.
12358 (df_insn_rescan): Adjust.
12359 (df_notes_rescan): Likewise.
12360 (df_swap_refs): Likewise.
12361 (df_sort_and_compress_refs): Likewise.
12362 (df_sort_and_compress_mws): Likewise.
12363 (df_install_refs): Likewise.
12364 (df_install_mws): Likewise.
12365 (df_refs_add_to_chains): Add flags parameter controlling which vectors
12367 (df_bb_refs_record): Adjust.
12368 (df_record_entry_block_defs): Likewise.
12369 (df_record_exit_block_defs): Likewise.
12370 (df_refs_verify): Likewise.
12371 (df_mws_verify): Likewise.
12372 (df_insn_refs_verify): Likewise.
12373 (df_bb_verify): Likewise.
12374 * ipa-pure-const.c (finish_state): Remove.
12375 (propagate): Adjust.
12376 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
12377 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
12378 var-tracking.c: Adjust.
12379 * vec.c (stack_vecs): Remove.
12380 (register_stack_vec): Likewise.
12381 (stack_vec_register_index): Likewise.
12382 (unregister_stack_vec): Likewise.
12383 * vec.h (struct va_stack): Remove.
12384 (struct vec<T, A, vl_ptr>): Specialize as
12385 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
12386 allocation strategy compatable with the vl_ptr layout.
12387 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
12388 specialization anyway.
12389 (class stack_vec): New class.
12390 (vec_stack_alloc): Remove.
12391 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
12393 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
12394 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12395 Sergey Lega <sergey.s.lega@intel.com>
12396 Anna Tikhonova <anna.tikhonova@intel.com>
12397 Ilya Tocar <ilya.tocar@intel.com>
12398 Andrey Turetskiy <andrey.turetskiy@intel.com>
12399 Ilya Verbin <ilya.verbin@intel.com>
12400 Kirill Yukhin <kirill.yukhin@intel.com>
12401 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12403 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
12404 (*prefetch_avx512pf_<mode>): New.
12405 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
12406 (avx512f_maskcmp<mode>3): Ditto.
12407 (vashrv16si3): Ditto.
12409 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
12410 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12411 Sergey Lega <sergey.s.lega@intel.com>
12412 Anna Tikhonova <anna.tikhonova@intel.com>
12413 Ilya Tocar <ilya.tocar@intel.com>
12414 Andrey Turetskiy <andrey.turetskiy@intel.com>
12415 Ilya Verbin <ilya.verbin@intel.com>
12416 Kirill Yukhin <kirill.yukhin@intel.com>
12417 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12419 * config/i386/i386.md (any_truncate): New.
12420 (trunsuffix): Ditto.
12421 * config/i386/predicates.md (const_8_to_9_operand): New.
12422 (const_10_to_11_operand): Ditto.
12423 (const_12_to_13_operand): Ditto.
12424 (const_14_to_15_operand): Ditto.
12425 (const_16_to_19_operand): Ditto.
12426 (const_20_to_23_operand): Ditto.
12427 (const_24_to_27_operand): Ditto.
12428 (const_28_to_31_operand): Ditto.
12429 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
12430 (cvtusi2<ssescalarmodesuffix>32): New.
12431 (cvtusi2<ssescalarmodesuffix>64): Ditto.
12432 (ufloatv16siv16sf2): Ditto.
12433 (avx512f_fix_notruncv16sfv16si): Ditto.
12434 (avx512f_ufix_notruncv16sfv16si): Ditto.
12435 (avx512f_vcvtss2usi): Ditto.
12436 (avx512f_vcvtss2usiq): Ditto.
12437 (avx512f_vcvttss2usi): Ditto.
12438 (avx512f_vcvttss2usiq): Ditto.
12439 (avx512f_vcvtsd2usi): Ditto.
12440 (avx512f_vcvtsd2usiq): Ditto.
12441 (avx512f_vcvttsd2usi): Ditto.
12442 (avx512f_vcvttsd2usiq): Ditto.
12443 (ufloatv8siv8df): Ditto.
12444 (avx512f_cvtdq2pd512_2): Ditto.
12445 (avx512f_cvtpd2dq512): Ditto.
12446 (avx512f_ufix_notruncv8dfv8si): Ditto.
12447 (avx512f_cvtpd2ps512): Ditto.
12448 (vec_unpacks_lo_v16sf): Ditto.
12449 (vec_unpacks_hi_v16sf): Ditto.
12450 (vec_unpacks_float_hi_v16si): Ditto.
12451 (vec_unpacks_float_lo_v16si): Ditto.
12452 (avx512f_unpckhps512): Ditto.
12453 (avx512f_unpcklps512): Ditto.
12454 (avx512f_movshdup512): Ditto.
12455 (avx512f_movsldup512): Ditto.
12456 (vec_extract_lo_v32hi): Ditto.
12457 (vec_extract_hi_v32hi): Ditto.
12458 (vec_extract_lo_v64qi): Ditto.
12459 (vec_extract_hi_v64qi): Ditto.
12460 (avx512f_unpckhpd512): Ditto.
12461 (avx512f_movddup512): Ditto.
12462 (avx512f_unpcklpd512): Ditto.
12463 (*avx512f_unpcklpd512): Ditto.
12464 (avx512f_shufps512_1): Ditto.
12465 (avx512f_shufpd512_1): Ditto.
12466 (avx512f_interleave_highv8di): Ditto.
12467 (avx512f_interleave_lowv8di): Ditto.
12468 (PMOV_DST_MODE): Ditto.
12469 (pmov_src_mode): Ditto.
12470 (pmov_src_lower): Ditto.
12471 (pmov_suff): Ditto.
12472 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
12473 (*avx512f_<code>v8div16qi2): Ditto.
12474 (*avx512f_<code>v8div16qi2_store): Ditto.
12475 (vec_widen_umult_even_v16si): Ditto.
12476 (*vec_widen_umult_even_v16si): Ditto.
12477 (vec_widen_smult_even_v16si): Ditto.
12478 (*vec_widen_smult_even_v16si): Ditto.
12479 (avx512f_interleave_highv16si): Ditto.
12480 (avx512f_interleave_lowv16si): Ditto.
12481 (avx512f_<code>v16qiv16si2): Ditto.
12482 (avx512f_<code>v16hiv16si2): Ditto.
12483 (avx512f_<code>v8qiv8di2): Ditto.
12484 (avx512f_<code>v8hiv8di2): Ditto.
12485 (avx512f_<code>v8siv8di2): Ditto.
12486 (avx512cd_maskb_vec_dupv8di): Ditto.
12487 (avx512cd_maskw_vec_dupv16si): Ditto.
12488 (avx512f_vcvtph2ps512): Ditto.
12489 (avx512f_vcvtps2ph512): Ditto.
12490 (VEC_EXTRACT_MODE): Extened with wider modes.
12491 (VEC_PERM_AVX2): Ditto.
12492 (VEC_PERM_CONST): Ditto.
12494 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
12496 * config/arc/arc.c (arc_ccfsm_post_advance):
12497 Add comment about TYPE_RETURN.
12499 2013-10-28 Bin Cheng <bin.cheng@arm.com>
12501 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
12502 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
12503 (strip_offset): Convert offset to unsigned number.
12505 2013-10-27 Tom de Vries <tom@codesourcery.com>
12507 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
12508 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
12510 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
12512 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
12513 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
12514 (TARGET_BIG_ENDIAN): New macro.
12515 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
12516 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
12517 * config/sh/sh.c: Likewise.
12518 * config/sh/sh.h: Likewise.
12520 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
12522 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
12523 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
12525 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
12527 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
12529 (cmpstr_t, cmpstrsi): Fix formatting.
12531 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
12534 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
12535 addressing, do not use general_operand for memory operands.
12537 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
12540 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
12541 * lra-spills.c (lra_final_code_change): Remove useless move insns.
12543 2013-10-26 Jeff Law <law@redhat.com>
12545 * predict.c (PRED_MUDFLAP): Remove.
12546 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
12548 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
12549 (OBJS): Remove tree-nomudflap.o
12550 (GTFILES): Remove tree-mudflap.c
12551 * builtins.c (expand_builtin_alloc): Remove mudflap support.
12552 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
12553 (mfwrap_spec, mflib_spec): Likewise.
12554 (cpp_unique_options, cc1_options, static_specs): Likewise.
12555 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
12556 * passes.def: Likewise.
12557 * toplev.c (compile_file, process_options): Likewise.
12558 * tree-inline.c (copy_tree_r): Likewise.
12559 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
12560 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
12561 (build_constant_desc, output_constant_def_contents): Likewise.
12562 (categorize_decl_for_section): Likewise.
12563 * tree-mudflap.c: Removed.
12564 * tree-mudflap.h: Removed.
12565 * tree-nomudflap.c: Removed.
12566 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
12567 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
12568 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
12569 * config/sol2.h (MFLIB_SPEC): Likewise.
12570 * doc/install.texi: Remove mudflap references.
12571 * doc/passes.texi: Similarly.
12572 * doc/sourcebuild.texi: Similarly.
12573 * doc/invoke.texi: Remove mudlfap related options.
12575 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
12577 PR rtl-optimization/58759
12578 * lra-constraints.c (lra_constraints): Remove wrong condition to
12579 remove insn setting up an equivalent pseudo.
12581 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
12583 * config/rs6000/rs6000-protos.h
12584 (rs6000_secondary_memory_needed_mode): New prototype.
12585 * config/rs6000/rs6000.c: Include ira.h.
12586 (TARGET_LRA_P): Redefine.
12587 (rs6000_legitimate_offset_address_p): Call
12588 legitimate_constant_pool_address_p in strict mode for LRA.
12589 (rs6000_legitimate_address_p): Ditto.
12590 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
12591 (rs6000_emit_move): Add LRA version of code to generate load/store
12593 (rs6000_secondary_memory_needed_mode): New.
12594 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
12595 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
12596 constants, memory, and FP registers.
12597 (rs6000_lra_p): New.
12598 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
12599 * config/rs6000/rs6000.opt (mlra): New option.
12600 * lra-spills.c (lra_final_code_change): Remove useless move insns.
12602 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
12604 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
12605 has_single_use () and not do the conversion if has_single_use ()
12606 returns false for the multiplication result.
12608 2013-10-25 David Malcolm <dmalcolm@redhat.com>
12610 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
12611 to "NODE", since this works on a "tree", not an
12613 (CONSTANT_CLASS_P): Likewise.
12614 (TYPE_P): Likewise.
12615 (DECL_P): Likewise.
12616 (INDIRECT_REF_P): Likewise.
12617 (REFERENCE_CLASS_P): Likewise.
12618 (COMPARISON_CLASS_P): Likewise.
12619 (UNARY_CLASS_P): Likewise.
12620 (BINARY_CLASS_P): Likewise.
12621 (STATEMENT_CLASS_P): Likewise.
12622 (VL_EXP_CLASS_P): Likewise.
12623 (EXPRESSION_CLASS_P): Likewise.
12624 (IS_TYPE_OR_DECL_P): Likewise.
12626 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
12628 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
12629 ADDR_EXPR in the defining statement.
12631 2013-10-25 Richard Biener <rguenther@suse.de>
12633 PR tree-optimization/58626
12634 * tree-loop-distribution.c (enum rdg_dep_type): Remove
12635 anti_dd, output_dd and input_dd.
12636 (struct rdg_edge): Remove level and relation members.
12637 (RDGE_LEVEL, RDGE_RELATION): Remove.
12638 (dot_rdg_1): Adjust.
12639 (create_rdg_edge_for_ddr): Remove.
12640 (create_rdg_edges_for_scalar): Adjust.
12641 (create_edge_for_control_dependence): Likewise.
12642 (create_rdg_edges): Split into ...
12643 (create_rdg_flow_edges): ... this
12644 (create_rdg_cd_edges): ... and this.
12645 (free_rdg): Adjust.
12646 (build_rdg): Likewise, do not compute data dependences or
12647 add edges for them.
12648 (pg_add_dependence_edges): New function.
12650 (distribute_loop): First apply all non-dependence based
12651 partition mergings. Then compute dependences between partitions
12652 and merge and order partitions according to them.
12654 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
12656 PR rtl-optimization/58831
12657 * alias.c (init_alias_analysis): At the beginning of each iteration,
12658 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
12660 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
12662 * recog.c (search_ofs): New static variable moved from...
12663 (peep2_find_free_register): ...here.
12664 (peephole2_optimize): Initialize it.
12666 2013-10-25 Tobias Burnus <burnus@net-b.de>
12668 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
12670 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
12672 * config/i386/i386.h (TARGET_MPX): New define.
12673 (TARGET_MPX_P): Ditto.
12675 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
12677 * config/i386/constraints.md (B): New.
12680 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
12681 * config/i386/i386-modes.def (BND32): New.
12683 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
12684 * config/i386/i386.c (isa_opts): Add mmpx.
12685 (regclass_map): Add bound registers.
12686 (dbx_register_map): Likewise.
12687 (dbx64_register_map): Likewise.
12688 (svr4_dbx_register_map): Likewise.
12690 (ix86_option_override_internal): Support MPX ISA.
12691 (ix86_conditional_register_usage): Support bound registers.
12692 (print_reg): Likewise.
12693 (ix86_code_end): Add MPX bnd prefix.
12694 (output_set_got): Likewise.
12695 (ix86_output_call_insn): Likewise.
12696 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
12697 (ix86_print_operand_punct_valid_p): Likewise.
12698 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
12700 (ix86_class_likely_spilled_p): Add bound regs support.
12701 (ix86_hard_regno_mode_ok): Likewise.
12702 (x86_order_regs_for_local_alloc): Likewise.
12703 (ix86_bnd_prefixed_insn_p): New.
12704 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
12705 (FIXED_REGISTERS): Add bound registers.
12706 (CALL_USED_REGISTERS): Likewise.
12707 (REG_ALLOC_ORDER): Likewise.
12708 (HARD_REGNO_NREGS): Likewise.
12710 (VALID_BND_REG_MODE): New.
12711 (FIRST_BND_REG): New.
12712 (LAST_BND_REG): New.
12713 (reg_class): Add BND_REGS.
12714 (REG_CLASS_NAMES): Likewise.
12715 (REG_CLASS_CONTENTS): Likewise.
12716 (BND_REGNO_P): New.
12717 (ANY_BND_REG_P): New.
12719 (HI_REGISTER_NAMES): Add bound registers.
12720 * config/i386/i386.md (UNSPEC_BNDMK): New.
12721 (UNSPEC_BNDMK_ADDR): New.
12722 (UNSPEC_BNDSTX): New.
12723 (UNSPEC_BNDLDX): New.
12724 (UNSPEC_BNDLDX_ADDR): New.
12725 (UNSPEC_BNDCL): New.
12726 (UNSPEC_BNDCU): New.
12727 (UNSPEC_BNDCN): New.
12728 (UNSPEC_MPX_FENCE): New.
12731 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
12732 (length_immediate): Likewise.
12733 (prefix_0f): Likewise.
12734 (memory): Likewise.
12735 (prefix_rep): Check for bnd prefix.
12736 (length_nobnd): New.
12737 (length): Use length_nobnd if specified.
12742 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
12743 (*jcc_2): Likewise.
12745 (simple_return_internal): Likewise.
12746 (simple_return_pop_internal): Likewise.
12747 (*indirect_jump): Add MPX bnd prefix.
12748 (*tablejump_1): Likewise.
12749 (simple_return_internal_long): Likewise.
12750 (simple_return_indirect_internal): Likewise.
12754 (*mov<mode>_internal_mpx): New.
12755 (<mode>_<bndcheck>): New.
12756 (*<mode>_<bndcheck>): New.
12758 (*<mode>_ldx): New.
12760 (*<mode>_stx): New.
12761 * config/i386/predicates.md (lea_address_operand): Rename to...
12762 (address_no_seg_operand): ... this.
12763 (address_mpx_no_base_operand): New.
12764 (address_mpx_no_index_operand): New.
12765 (bnd_mem_operator): New.
12766 * config/i386/i386.opt (mmpx): New.
12767 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
12768 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
12770 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
12772 * mode-classes.def (MODE_POINTER_BOUNDS): New.
12773 * tree.def (POINTER_BOUNDS_TYPE): New.
12774 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
12775 (POINTER_BOUNDS_MODE): New.
12776 (make_pointer_bounds_mode): New.
12777 * machmode.h (POINTER_BOUNDS_MODE_P): New.
12778 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
12779 (layout_type): Support POINTER_BOUNDS_TYPE.
12780 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
12781 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
12782 (type_contains_placeholder_1): Likewise.
12783 * tree.h (POINTER_BOUNDS_TYPE_P): New.
12784 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
12785 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
12787 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
12789 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
12790 mode of address computation when calling memory_address_addr_space.
12792 2013-08-24 Richard Henderson <rth@twiddle.net>
12795 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
12796 instead of create_convert_operand_to.
12797 (maybe_emit_sync_lock_test_and_set): Likewise.
12798 (expand_atomic_compare_and_swap): Likewise.
12799 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
12801 2013-08-24 Sriraman Tallam <tmsriram@google.com>
12803 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
12804 Change param_is to use the struct and not the pointer to the struct.
12806 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
12808 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
12809 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
12810 Move to targhooks.c.
12811 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
12812 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
12813 Relocate from gimplify.c.
12814 * targhooks.h: Add 2 prototypes.
12815 * tree.h: Delete 2 prototypes.
12817 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
12819 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
12820 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
12822 2013-10-24 Cong Hou <congh@google.com>
12824 * convert.c (convert_to_real): Guard those unsafe math function
12825 convertions with flag_unsafe_math_optimizations. Handle sqrt()
12828 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
12831 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
12833 (cgraph_create_edge): Use the new argument.
12834 (cgraph_create_indirect_edge): Likewise.
12836 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
12838 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
12839 TYPE_UNCOND_BRANCH.
12840 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
12841 changes statep->state.
12843 2013-10-24 Tobias Burnus <burnus@net-b.de>
12846 * tree-cfg.c (replace_loop_annotate): New function.
12847 (execute_build_cfg): Call it.
12848 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
12849 * internal-fn.c (expand_ANNOTATE): New function.
12850 * internal-fn.def (ANNOTATE): Define as new internal function.
12851 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
12852 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
12853 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
12854 * doc/extend.texi (Pragmas): Document #pragma ivdep.
12855 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
12857 2013-10-17 Ian Bolton <ian.bolton@arm.com>
12858 Marcus Shawcroft <marcus.shawcroft@arm.com>
12860 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
12861 Special case reload SP+C into none GENERAL_REGS.
12863 2013-10-24 Michael Matz <matz@suse.de>
12865 * gengtype.c (is_file_equal): Check that files will be same length.
12867 2013-10-25 Christian Bruel <christian.bruel@st.com>
12869 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
12870 * config/sh/t-sh (sh-mem.o): New rule.
12871 * config/sh/sh-mem.cc (expand_block_move): Moved here.
12872 (sh_expand_cmpstr): New function.
12873 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
12874 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
12875 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
12876 (rotlhi3_8): Rename.
12878 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12880 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
12881 * Makefile.in (CXXDEPMODE): Assign and change users.
12882 (CCDEPMODE): Delete.
12883 * configure: Regenerate.
12885 2013-10-23 David Malcolm <dmalcolm@redhat.com>
12887 * gengtype-parse.c (require_without_advance): New.
12888 (type): For GTY-marked types that are not GTY((user)), parse any
12889 base classes, requiring them to be single-inheritance, and not
12890 be templates. For non-GTY-marked types and GTY((user)),
12891 continue to skip over any C++ inheritance specification.
12892 * gengtype-state.c (state_writer::write_state_struct_type):
12893 Write base class of type (if any).
12894 (read_state_struct_type): Read base class of type (if any).
12895 * gengtype.c (new_structure): Add a "base_class" parameter.
12896 (create_optional_field_): Update for new parameter to new_structure.
12897 (adjust_field_rtx_def): Likewise.
12898 (adjust_field_tree_exp): Likewise.
12899 * gengtype.h (struct type): Add "base_class" field to the s
12901 (new_structure): Add "base" parameter.
12903 2013-10-23 Sriraman Tallam <tmsriram@google.com>
12906 * config/i386/i386.c (ix86_option_override_internal):
12907 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
12908 (ix86_valid_target_attribute_tree):
12909 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
12910 Change TARGET_SSE to TARGET_SSE_P (opts->...)
12912 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
12914 * tree-ssa-loop.h: Remove include files.
12915 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
12916 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
12917 * graphite-clast-to-gimple.c: Likewise.
12918 * graphite-scop-detection.c: Likewise.
12919 * graphite-sese-to-poly.c: Likewise.
12920 * ipa-inline-analysis.c: Likewise.
12921 * ipa-pure-const.c: Likewise.
12922 * loop-init.c: Likewise.
12923 * passes.c: Likewise.
12924 * predict.c: Likewise.
12925 * tree-cfg.c: Likewise.
12926 * tree-cfgcleanup.c: Likewise.
12927 * tree-chrec.c: Likewise.
12928 * tree-data-ref.c: Likewise.
12929 * tree-loop-distribution.c: Likewise.
12930 * tree-parloops.c: Likewise.
12931 * tree-predcom.c: Likewise.
12932 * tree-scalar-evolution.c: Likewise.
12933 * tree-ssa-address.c: Likewise.
12934 * tree-ssa.c: Likewise.
12935 * tree-ssa-dce.c: Likewise.
12936 * tree-ssa-loop.c: Likewise.
12937 * tree-ssa-loop-im.c: Likewise.
12938 * tree-ssa-loop-ivcanon.c: Likewise.
12939 * tree-ssa-loop-ivopts.c: Likewise.
12940 * tree-ssa-loop-manip.c: Likewise.
12941 * tree-ssa-loop-niter.c: Likewise.
12942 * tree-ssa-loop-prefetch.c: Likewise.
12943 * tree-ssa-loop-unswitch.c: Likewise.
12944 * tree-ssa-reassoc.c: Likewise.
12945 * tree-vect-data-refs.c: Likewise.
12946 * tree-vect-loop.c: Likewise.
12947 * tree-vect-loop-manip.c: Likewise.
12948 * tree-vectorizer.c: Likewise.
12949 * tree-vect-stmts.c: Likewise.
12950 * tree-vrp.c: Likewise.
12952 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12954 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
12956 2013-10-23 Jakub Jelinek <jakub@redhat.com>
12958 PR tree-optimization/58775
12959 PR tree-optimization/58791
12960 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
12961 (insert_stmt_after): Rewritten, don't move the stmt, but really
12963 (get_stmt_uid_with_default): Remove.
12964 (build_and_add_sum): Use insert_stmt_after and
12965 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
12966 (update_range_test): Set uid on stmts added by
12967 force_gimple_operand_gsi. Don't immediately modify statements
12968 in inter-bb optimization, just update oe->op values.
12969 (optimize_range_tests): Return bool whether any changed have been made.
12970 (update_ops): New function.
12971 (struct inter_bb_range_test_entry): New type.
12972 (maybe_optimize_range_tests): Perform statement changes here.
12973 (not_dominated_by, appears_later_in_bb, get_def_stmt,
12974 ensure_ops_are_available): Remove.
12975 (find_insert_point): Rewritten.
12976 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
12977 return LHS of the (new resp. old) stmt. Don't call
12978 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
12979 instead of last, move new stmt at the right place.
12980 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
12981 (negate_value): Likewise. Set uids.
12982 (break_up_subtract_bb): Initialize uids.
12983 (reassociate_bb): Adjust rewrite_expr_tree caller.
12984 (do_reassoc): Don't call renumber_gimple_stmt_uids.
12986 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
12989 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
12990 TARGET_32BIT final condition.
12991 (mulsi3_internal2 and splitter): Same.
12993 2013-10-23 Jeff Law <law@redhat.com>
12995 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
12996 through joiner blocks with abnormal outgoing edges.
12998 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
12999 Add parameter JOINERS, to allow/disallow threading through joiner
13001 (thread_block): New. Call thread_block_1.
13002 (mark_threaded_blocks): Remove code to filter out certain cases
13003 of threading through joiner blocks.
13004 (thread_through_all_blocks): Document how we can have a dangling
13005 edge AUX field and clear it.
13007 2013-10-23 Ian Lance Taylor <iant@google.com>
13009 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
13010 (C++ Dialect Options): Likewise.
13011 (Optimize Options): Likewise.
13013 2013-10-23 Tom de Vries <tom@codesourcery.com>
13015 PR tree-optimization/58805
13016 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
13018 2013-10-23 Jakub Jelinek <jakub@redhat.com>
13020 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
13021 sequence based on get_range_info returned range.
13023 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
13025 * tree-ssa.h: Remove all #include's
13026 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
13027 * alias.c: Move required includes from tree-ssa.h.
13028 * asan.c: Likewise.
13029 * builtins.c: Likewise.
13030 * calls.c: Likewise.
13031 * cfgexpand.c: Likewise.
13032 * cfghooks.c: Likewise.
13033 * cfgloop.c: Likewise.
13034 * cfgloopmanip.c: Likewise.
13035 * cgraph.c: Likewise.
13036 * cgraphbuild.c: Likewise.
13037 * cgraphclones.c: Likewise.
13038 * cgraphunit.c: Likewise.
13040 * except.c: Likewise.
13041 * expr.c: Likewise.
13042 * final.c: Likewise.
13043 * fold-const.c: Likewise.
13044 * ggc-page.c: Likewise.
13045 * gimple-builder.c: Likewise.
13046 * gimple-fold.c: Likewise.
13047 * gimple-iterator.c: Likewise.
13048 * gimple-low.c: Likewise.
13049 * gimple-pretty-print.c: Likewise.
13050 * gimple-ssa-strength-reduction.c: Likewise.
13051 * gimple-streamer-in.c: Likewise.
13052 * gimple-streamer-out.c: Likewise.
13053 * gimplify.c: Likewise.
13054 * graphite-blocking.c: Likewise.
13055 * graphite-clast-to-gimple.c: Likewise.
13056 * graphite-dependences.c: Likewise.
13057 * graphite-interchange.c: Likewise.
13058 * graphite-optimize-isl.c: Likewise.
13059 * graphite-poly.c: Likewise.
13060 * graphite-scop-detection.c: Likewise.
13061 * graphite-sese-to-poly.c: Likewise.
13062 * graphite.c: Likewise.
13063 * ipa-cp.c: Likewise.
13064 * ipa-inline-analysis.c: Likewise.
13065 * ipa-inline-transform.c: Likewise.
13066 * ipa-inline.c: Likewise.
13067 * ipa-prop.c: Likewise.
13068 * ipa-pure-const.c: Likewise.
13069 * ipa-reference.c: Likewise.
13070 * ipa-split.c: Likewise.
13071 * ipa-utils.c: Likewise.
13072 * loop-init.c: Likewise.
13073 * lto-cgraph.c: Likewise.
13074 * lto-section-in.c: Likewise.
13075 * lto-section-out.c: Likewise.
13076 * lto-streamer-in.c: Likewise.
13077 * lto-streamer-out.c: Likewise.
13078 * lto-streamer.c: Likewise.
13079 * omp-low.c: Likewise.
13080 * passes.c: Likewise.
13081 * predict.c: Likewise.
13082 * print-tree.c: Likewise.
13083 * profile.c: Likewise.
13084 * sese.c: Likewise.
13085 * targhooks.c: Likewise.
13086 * tracer.c: Likewise.
13087 * trans-mem.c: Likewise.
13088 * tree-call-cdce.c: Likewise.
13089 * tree-cfg.c: Likewise.
13090 * tree-cfgcleanup.c: Likewise.
13091 * tree-chrec.c: Likewise.
13092 * tree-complex.c: Likewise.
13093 * tree-data-ref.c: Likewise.
13094 * tree-dfa.c: Likewise.
13095 * tree-eh.c: Likewise.
13096 * tree-emutls.c: Likewise.
13097 * tree-if-conv.c: Likewise.
13098 * tree-inline.c: Likewise.
13099 * tree-into-ssa.c: Likewise.
13100 * tree-loop-distribution.c: Likewise.
13101 * tree-mudflap.c: Likewise.
13102 * tree-nested.c: Likewise.
13103 * tree-nrv.c: Likewise.
13104 * tree-object-size.c: Likewise.
13105 * tree-outof-ssa.c: Likewise.
13106 * tree-parloops.c: Likewise.
13107 * tree-phinodes.c: Likewise.
13108 * tree-predcom.c: Likewise.
13109 * tree-pretty-print.c: Likewise.
13110 * tree-profile.c: Likewise.
13111 * tree-scalar-evolution.c: Likewise.
13112 * tree-sra.c: Likewise.
13113 * tree-ssa-address.c: Likewise.
13114 * tree-ssa-alias.c: Likewise.
13115 * tree-ssa-ccp.c: Likewise.
13116 * tree-ssa-coalesce.c: Likewise.
13117 * tree-ssa-copy.c: Likewise.
13118 * tree-ssa-copyrename.c: Likewise.
13119 * tree-ssa-dce.c: Likewise.
13120 * tree-ssa-dom.c: Likewise.
13121 * tree-ssa-dse.c: Likewise.
13122 * tree-ssa-forwprop.c: Likewise.
13123 * tree-ssa-ifcombine.c: Likewise.
13124 * tree-ssa-live.c: Likewise.
13125 * tree-ssa-loop-ch.c: Likewise.
13126 * tree-ssa-loop-im.c: Likewise.
13127 * tree-ssa-loop-ivcanon.c: Likewise.
13128 * tree-ssa-loop-ivopts.c: Likewise.
13129 * tree-ssa-loop-manip.c: Likewise.
13130 * tree-ssa-loop-niter.c: Likewise.
13131 * tree-ssa-loop-prefetch.c: Likewise.
13132 * tree-ssa-loop-unswitch.c: Likewise.
13133 * tree-ssa-loop.c: Likewise.
13134 * tree-ssa-math-opts.c: Likewise.
13135 * tree-ssa-operands.c: Likewise.
13136 * tree-ssa-phiopt.c: Likewise.
13137 * tree-ssa-phiprop.c: Likewise.
13138 * tree-ssa-pre.c: Likewise.
13139 * tree-ssa-propagate.c: Likewise.
13140 * tree-ssa-reassoc.c: Likewise.
13141 * tree-ssa-sccvn.c: Likewise.
13142 * tree-ssa-sink.c: Likewise.
13143 * tree-ssa-strlen.c: Likewise.
13144 * tree-ssa-structalias.c: Likewise.
13145 * tree-ssa-tail-merge.c: Likewise.
13146 * tree-ssa-ter.c: Likewise.
13147 * tree-ssa-threadedge.c: Likewise.
13148 * tree-ssa-threadupdate.c: Likewise.
13149 * tree-ssa-uncprop.c: Likewise.
13150 * tree-ssa-uninit.c: Likewise.
13151 * tree-ssa.c: Likewise.
13152 * tree-ssanames.c: Likewise.
13153 * tree-stdarg.c: Likewise.
13154 * tree-streamer-in.c: Likewise.
13155 * tree-switch-conversion.c: Likewise.
13156 * tree-tailcall.c: Likewise.
13157 * tree-vect-data-refs.c: Likewise.
13158 * tree-vect-generic.c: Likewise.
13159 * tree-vect-loop-manip.c: Likewise.
13160 * tree-vect-loop.c: Likewise.
13161 * tree-vect-patterns.c: Likewise.
13162 * tree-vect-slp.c: Likewise.
13163 * tree-vect-stmts.c: Likewise.
13164 * tree-vectorizer.c: Likewise.
13165 * tree-vrp.c: Likewise.
13166 * tree.c: Likewise.
13167 * tsan.c: Likewise.
13168 * value-prof.c: Likewise.
13169 * var-tracking.c: Likewise.
13170 * varpool.c: Likewise.
13171 * vtable-verify.c: Likewise.
13173 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13175 * config/tilegx/tilegx.c: Include "tree.h".
13177 2013-10-23 Jakub Jelinek <jakub@redhat.com>
13179 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
13180 the info, not after it.
13181 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
13182 dump_ssaname_info call.
13183 (pp_gimple_stmt_1): Adjust caller.
13184 (dump_phi_nodes): Likewise. Don't print "# " here.
13186 2013-10-22 Jan Hubicka <jh@suse.cz>
13188 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
13190 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
13191 * i386.c (expand_small_movmem_or_setmem): New function.
13192 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
13194 (alg_usable_p): Add support for value ranges; cleanup.
13195 (ix86_expand_set_or_movmem): Add support for misaligned moves.
13197 2013-10-22 Sterling Augustine <saugustine@google.com>
13199 * doc/invoke.texi: Document -ggnu-pubnames.
13200 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
13202 * dwarf2out.c: Include gdb/gdb-index.h.
13203 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
13204 debug_generate_pub_sections.
13205 (is_java, output_pubtables, output_pubname): New functions.
13206 (include_pubname_in_output): Handle debug_generate_pub_sections at
13208 (size_of_pubnames): Use new local space_for_flags based on
13209 debug_generate_pub_sections.
13210 (output_pubnames): Unify pubnames and pubtypes output logic.
13211 Genericize comments. Call output_pubname.
13212 (dwarf2out_finish): Move logic to output_pubnames and call it.
13214 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
13217 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
13218 Remove CCCmode handling.
13219 <case LTU>: Return 'c' suffix for CCCmode.
13220 <case GEU>: Return 'nc' suffix for CCCmode.
13221 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
13222 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
13223 (*sub<mode>3_cc_overflow): Ditto.
13224 (*subsi3_zext_cc_overflow): Ditto.
13226 2013-10-22 Steve Ellcey <sellcey@mips.com>
13228 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
13229 (AND (NOT OP1) (NOT OP2)).
13231 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
13233 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
13234 meaning of merge-high and merge-low masks for little endian; avoid
13235 use of vector-pack masks for little endian for mismatched modes.
13237 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13239 * config/tilepro/tilepro.c: Include "tree.h".
13241 2013-10-22 Andreas Schwab <schwab@suse.de>
13243 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
13246 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
13248 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
13249 [Ed Smith-Rowland]): New entries.
13250 ([Stephen M. Webb]): Update.
13252 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
13254 * tree-ssa-ter.h: Remove duplicate copy of file contents.
13256 2013-10-21 Marek Polacek <polacek@redhat.com>
13258 PR middle-end/58809
13259 * fold-const.c (fold_range_test): Return 0 if the type is not
13262 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
13264 * system.h: Move hwint.h include further down.
13265 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
13266 gcc_checking_asserts.
13267 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
13269 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
13271 Fix volatile issues in optimize_bit_field_compare.
13272 * fold-const.c (optimize_bit_field_compare): Bail out if
13273 lvolatilep or rvolatilep.
13275 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
13277 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
13278 and get_inner_reference returning different pmode for non-volatile
13279 bit-field members dependent on flag_strict_volatile_bitfields.
13280 * stor-layout.c (layout_decl): Remove special handling of
13281 flag_strict_volatile_bitfields.
13282 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
13283 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
13285 2013-10-21 Paulo Matos <pmatos@broadcom.com>
13287 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
13290 2013-10-21 Jeff Law <law@redhat.com>
13292 * tree-ssa-threadedge.c (thread_through_normal_block): New
13293 argument VISITED. Remove VISISTED as a local variable. When we
13294 have a threadable jump, verify the destination of the jump has not
13296 (thread_across_edge): Allocate VISITED bitmap once at function
13297 scope and use it throughout. Make sure to set appropriate bits in
13298 VISITED for E (start of jump thread path).
13299 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
13300 through a joiner if any edge on the path has a recorded jump thread.
13302 2013-10-21 Ian Lance Taylor <iant@google.com>
13304 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
13305 don't imply that attributes can solve all problems.
13306 (Directory Options): Fix typo.
13308 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13310 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
13311 extend and extend_add.
13313 2013-10-21 Richard Biener <rguenther@suse.de>
13315 PR tree-optimization/58794
13316 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
13317 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
13319 2013-10-21 Richard Biener <rguenther@suse.de>
13321 PR middle-end/58742
13322 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
13323 to (T) X for sign-changing conversions (or no conversion).
13325 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
13327 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
13329 2013-10-20 Jan Hubicka <jh@suse.cz>
13331 * config/i386/i386-tune.def: Add comment; organize into categories
13333 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
13335 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
13336 argument. Update function comment.
13337 (expand_set_or_movmem_via_rep): New function combining
13338 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
13339 (expand_movmem_via_rep_mov): Remove.
13340 expand_setmem_via_rep_stos): Remove.
13341 (expand_movmem_epilogue): Update calls correspondingly.
13342 (expand_setmem_epilogue_via_loop): Likewise.
13343 (emit_memset): New.
13344 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
13345 (expand_set_or_movmem_prologue): New function combining
13346 expand_movmem_prologue and expand_setmem_prologue.
13347 (expand_movmem_prologue): Remove.
13348 (expand_setmem_prologue): Remove.
13349 (expand_set_or_movmem_constant_prologue): New function combining
13350 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
13351 (expand_constant_movmem_prologue): Remove.
13352 (expand_constant_setmem_prologue): Remove.
13353 (promote_duplicated_reg): Allow vector-const0 value.
13354 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
13355 and ix86_expand_setmem.
13356 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
13357 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
13359 2013-10-21 Diego Novillo <dnovillo@google.com>
13361 * asan.c: Include tree.h
13362 * bb-reorder.c: Likewise.
13363 * cfgcleanup.c: Likewise.
13364 * cfgloopmanip.c: Likewise.
13365 * data-streamer-in.c: Likewise.
13366 * data-streamer-out.c: Likewise.
13367 * data-streamer.c: Likewise.
13368 * dwarf2cfi.c: Likewise.
13369 * graphite-blocking.c: Likewise.
13370 * graphite-clast-to-gimple.c: Likewise.
13371 * graphite-dependences.c: Likewise.
13372 * graphite-interchange.c: Likewise.
13373 * graphite-optimize-isl.c: Likewise.
13374 * graphite-poly.c: Likewise.
13375 * graphite-scop-detection.c: Likewise.
13376 * graphite-sese-to-poly.c: Likewise.
13377 * graphite.c: Likewise.
13378 * ipa-devirt.c: Likewise.
13379 * ipa-profile.c: Likewise.
13382 * loop-init.c: Likewise.
13383 * loop-unroll.c: Likewise.
13384 * lower-subreg.c: Likewise.
13385 * lto/lto-object.c: Likewise.
13386 * recog.c: Likewise.
13387 * reginfo.c: Likewise.
13388 * tree-loop-distribution.c: Likewise.
13389 * tree-parloops.c: Likewise.
13390 * tree-ssa-strlen.c: Likewise.
13391 * tree-streamer.c: Likewise.
13392 * value-prof.c: Likewise.
13393 * target-globals.c: Likewise.
13394 * expr.h: Include tree-core.h instead of tree.h.
13395 * gimple.h: Likewise.
13396 * ipa-prop.h: Likewise.
13397 * ipa-utils.h: Likewise.
13398 * lto-streamer.h: Likewise.
13399 * streamer-hooks.h: Likewise.
13400 * ipa-reference.h: Include cgraph.h instead of tree.h.
13401 * cgraph.h: Include basic-block.h instead of tree.h.
13402 * tree-streamer.h: Do not include tree.h.
13403 * genattrtab.c (write_header): Generate inclusion of tree.h.
13404 * genautomata.c (main): Likewise.
13405 * genemit.c: Likewise.
13406 * genopinit.c: Likewise.
13407 * genoutput.c (output_prologue): Likewise.
13408 * genpeep.c: Likewise.
13410 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13412 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
13414 (vec_unpacku_hi_v8hi): Likewise.
13415 (vec_unpacku_lo_v16qi): Likewise.
13416 (vec_unpacku_lo_v8hi): Likewise.
13418 2013-10-20 Jan Hubicka <jh@suse.cz>
13420 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
13421 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
13422 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
13424 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
13426 * config/mips/mips.h (ISA_HAS_WSBH): Define.
13427 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
13429 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
13431 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
13434 * system.h: Undef m_slot.
13436 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13438 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
13439 all elements for both endian flavors.
13441 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
13444 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
13445 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
13446 and SI_REG for 64bit SYSV ABI targets.
13448 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
13450 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
13451 to multi_reg_return. Clarify that we are skipping USEs of multiple
13452 return registers. Use bool type where appropriate.
13454 2013-10-18 Jan Hubicka <jh@suse.cz>
13456 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
13457 for cold functions.
13458 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
13459 (X86_TUNE_PUSH_MEMORY): Likewise.
13460 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
13461 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
13462 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
13464 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
13465 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
13467 (ix86_option_override_internal): Update to use tune features instead
13470 2013-10-18 Cong Hou <congh@google.com>
13472 PR tree-optimization/58508
13473 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
13474 statement that contains data refs with zero-step.
13476 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
13478 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
13479 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
13480 * gimple-low.c (gimple_check_call_arg,
13481 gimple_check_call_matching_types): Move to cgraph.c.
13482 * gimple-low.h: Remove prototype.
13483 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
13484 Relocate from gimple-low.c.
13485 * cgraph.h: Add prototype. Don't include basic-block.h.
13486 * gimplify.c: Add gimple-low to include list.
13487 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
13488 * tree-eh.c: Add gimple-low to include list.
13489 * tree-nested.c: Likewise.
13490 * cfgexpand.c: Add tree-ssa-address.h to include list.
13491 * expr.c: Likewise.
13492 * gimple-fold.c: Likewise.
13493 * gimple-ssa-strength-reduction.c: Likewise.
13494 * trans-mem.c: Likewise.
13495 * tree-mudflap.c: Likewise.
13496 * tree-ssa-loop-ivopts.c: Likewise.
13497 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
13498 (degenerate_phi_result): Move to tree-phinodes.c.
13499 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
13500 * tree-ssa-threadedge.c: Likewise.
13501 * tree-vrp.c: Likewise.
13502 * tree-phinodes.c (degenerate_phi_result): Relocate here.
13503 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
13504 * tree-phinodes.h (degenerate_phi_result): Add prototype.
13505 * tree-ssa-copy.c: Include tree-ssa-dom.h.
13506 * tree-ssa-forwprop.c: Likewise.
13507 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
13508 pass_data_cleanup_cfg_post_optimizing,
13509 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
13510 * tree-optimize.c: Delete File.
13511 * graphite.c: Include tree-cfgcleanup.h.
13512 * passes.c: Likewise.
13513 * tree-cfg.c: Likewise.
13514 * tree-profile.c: Likewise.
13515 * tree-ssa-dse.c: Likewise.
13516 * tree-ssa-loop-ivcanon.c: Likewise.
13517 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
13518 * tree-outof-ssa.c: Include sbitmap.h.
13519 * tree-ssa-live.c: Likewise.
13520 * tree-ssa-propagate.c: Likewise.
13521 * tree-ssa-structalias.c: Likewise.
13522 * tree-stdarg.c: Likewise.
13523 * Makefile.in (OBJS): Delete tree-optimize.o.
13524 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
13525 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
13526 * varasm.c: Include basic-block.h.
13527 * cfgloop.h: Include function.h instead of basic-block.h
13528 (bb_loop_depth): Move to cfgloop.c.
13529 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
13531 2013-10-18 Teresa Johnson <tejohnson@google.com>
13533 * predict.c (probably_never_executed): Compare frequency-based
13534 count to number of training runs.
13535 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
13537 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13539 * config/arm/arm.c (cortexa9_extra_costs): New table.
13540 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
13542 2013-10-18 Jeff Law <law@redhat.com>
13544 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
13546 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
13547 (register_jump_thread): Add "registered_jump_thread" debug
13549 * dbgcnt.def (registered_jump_thread): New debug counter.
13551 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
13553 * config/rs6000/rs6000.c: Include cgraph.h.
13555 2013-10-18 Teresa Johnson <tejohnson@google.com>
13557 * tree-ssa-tail-merge.c (replace_block_by): Update edge
13558 weights during merging.
13560 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
13562 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
13563 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
13564 * tree-ssa-operands.h: Remove prototype.
13565 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
13566 * gimple.c (virtual_operand_p): Relocate from gimple.c.
13567 * gimple.h: Add prototype.
13568 * gimple-ssa.h: Include tree-ssa-operands.h.
13569 * tree-dump.c: Add tree-cfg.h to include list.
13570 * tree-ssa-alias.c: Add ipa-reference.h to include list.
13571 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
13572 * config/i386/i386.c: Don't include tree-flow.h.
13573 * config/rs6000/rs6000.c: Likewise.
13575 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13577 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
13579 2013-10-18 Richard Biener <rguenther@suse.de>
13581 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
13582 or TYPE_UNSIGNED of integral types.
13583 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
13584 NULL_TREE for zero-precision integral types.
13586 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
13588 * config/aarch64/arm_neon.h
13589 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
13591 2013-10-17 Sriraman Tallam <tmsriram@google.com>
13594 * opth-gen.awk: Define target_flags_explicit.
13596 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
13598 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
13599 fields to the reg_addr array that describes the valid addressing
13600 mode for any register, general purpose registers, floating point
13601 registers, and Altivec registers.
13602 (FIRST_RELOAD_REG_CLASS): Likewise.
13603 (LAST_RELOAD_REG_CLASS): Likewise.
13604 (struct reload_reg_map_type): Likewise.
13605 (reload_reg_map_type): Likewise.
13606 (RELOAD_REG_VALID): Likewise.
13607 (RELOAD_REG_MULTIPLE): Likewise.
13608 (RELOAD_REG_INDEXED): Likewise.
13609 (RELOAD_REG_OFFSET): Likewise.
13610 (RELOAD_REG_PRE_INCDEC): Likewise.
13611 (RELOAD_REG_PRE_MODIFY): Likewise.
13612 (reg_addr): Likewise.
13613 (mode_supports_pre_incdec_p): New helper functions to say whether
13614 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
13615 (mode_supports_pre_modify_p): Likewise.
13616 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
13617 print the valid address mode bits for each mode.
13618 (rs6000_debug_print_mode): Likewise.
13619 (rs6000_debug_reg_global): Likewise.
13620 (rs6000_setup_reg_addr_masks): New function to set up the address
13621 mask bits for each type.
13622 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
13623 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
13624 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
13625 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
13626 PRE_MODIFY are supported.
13627 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
13628 registers, instead of {src,dest}_av_p.
13629 (rs6000_print_options_internal): Tweak the debug output slightly.
13631 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
13633 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
13636 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
13638 * tree-flow.h (struct omp_region): Move to omp-low.c.
13639 Remove omp_ prototypes and variables.
13640 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
13641 (copy_var_decl): Relocate prototype from tree-flow.h.
13642 * gimple.c (copy_var_decl): Relocate from omp-low.c.
13643 * tree.h: Move prototype to omp-low.h.
13644 * omp-low.h: New File. Relocate prototypes here.
13645 * omp-low.c (struct omp_region): Make local here.
13646 (root_omp_region): Make static.
13647 (copy_var_decl) Move to gimple.c.
13648 (new_omp_region): Make static.
13649 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
13650 * tree-cfg.c: Include omp-low.h.
13651 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
13652 * gimplify.c: Include omp-low.h.
13653 * tree-parloops.c: Likewise.
13655 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
13657 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
13658 operands are in memory, prefer to force non-matched operand 1 to
13661 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
13664 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
13665 restrict TImode addresses to single indirect registers if both
13666 -mquad-memory and -mvsx-timode are used.
13667 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
13668 we should emit load/store quad. Remove using %y for quad memory
13671 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
13672 constraints to allow load/store quad on machines where TImode is
13673 not allowed in VSX registers. Use 'n' instead of 'F' constraint
13674 for TImode to load integer constants.
13676 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13678 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
13680 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
13682 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
13683 handling of STACK_REG.
13685 2013-10-17 Richard Biener <rguenther@suse.de>
13687 PR tree-optimization/58143
13688 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
13690 (rewrite_to_defined_overflow): Likewise.
13691 (move_computations_dom_walker::before_dom): Rewrite stmts
13692 with undefined signed overflow that are not always executed
13693 into unsigned arithmetic.
13695 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
13698 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
13699 explicit isa flag to be an options variable, instead of using
13700 global_options_set. Remove define from rs6000.h.
13701 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
13703 * config/rs6000/rs6000.c (rs6000_option_override_internal):
13704 Initialize rs6000_isa_flags_explicit.
13705 (rs6000_function_specific_save): Add gcc_options* parameter, so
13706 that the powerpc builds after the 2013-10-15 changes.
13707 (rs6000_function_specific_restore): Likewise.
13709 2013-10-16 DJ Delorie <dj@redhat.com>
13711 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
13712 op is a REG before checking REGNO.
13713 (rl78_alloc_physical_registers): Verify pattern is a SET before
13716 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13718 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
13720 (vec_unpacks_lo_v4sf): Likewise.
13721 (vec_unpacks_float_hi_v4si): Likewise.
13722 (vec_unpacks_float_lo_v4si): Likewise.
13723 (vec_unpacku_float_hi_v4si): Likewise.
13724 (vec_unpacku_float_lo_v4si): Likewise.
13726 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13728 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
13729 (vsx_concat_v2sf): Likewise.
13731 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
13733 * config/aarch64/aarch64.md
13734 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
13736 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
13738 PR tree-optimization/58697
13739 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
13740 estimated_loop_iterations_int.
13741 (max_stmt_executions_int): Call get_max_loop_iterations_int.
13742 (get_max_loop_iterations_int): New. HWINT version of
13743 get_max_loop_iterations.
13744 * cfgloop.h: Add prototypes.
13745 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
13746 * loop-unroll.c (decide_peel_once_rolling): Call
13747 get_estimated_loop_iterations_int.
13748 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
13749 * tree-ssa-loop-niter.h: Tweak prototypes.
13751 2013-10-16 David Malcolm <dmalcolm@redhat.com>
13753 * gengtype-parse.c (struct_field_seq): Ignore access-control
13754 keywords ("public:" etc).
13756 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
13758 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
13759 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
13761 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
13763 * config/arm/arm.opt (mlra): New option.
13764 * config/arm/arm.c (arm_lra_p): New function.
13765 (TARGET_LRA_P): Define.
13767 2013-10-16 Paulo Matos <pmatos@broadcom.com>
13769 * tree-core.h (tree_code_name): Remove.
13770 * tree.h (get_tree_code_name): New prototype.
13771 * tree.c (tree_code_name): Make static.
13772 (get_tree_code_name): New function.
13773 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
13774 tree_class_check_failed, tree_range_check_failed,
13775 tree_not_class_check_failed, omp_clause_check_failed,
13776 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
13777 wrapper get_tree_code_name instead of calling tree_code_name directly.
13778 * tree-vrp.c (dump_asserts_for): Likewise.
13779 * tree-dump.c (dequeue_and_dump): Likewise.
13780 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
13781 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
13782 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
13783 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
13784 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
13785 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
13786 dump_gimple_omp_for): Likewise.
13787 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
13788 * tree-ssa-pre.c (print_pre_expr): Likewise.
13789 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
13790 * print-tree.c (print_node_brief, print_node): Likewise.
13791 * gimple.c (gimple_check_failed): Likewise.
13792 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
13793 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
13794 * config/mep/mep.c (mep_validate_vliw): Likewise.
13795 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
13796 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
13798 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
13800 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
13803 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
13805 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
13806 (MULTILIB_MATCHES): Add multilib for -march=v8.
13808 2013-10-15 Sriraman Tallam <tmsriram@google.com>
13811 * optc-save-gen.awk: Add extra parameter to the save and restore
13813 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
13814 * tree.c (build_optimization_node): New parameter. Add extra parameter
13815 to call to cl_optimization_save.
13816 (build_target_option_node): New parameter. Add extra parameter
13817 to call to cl_target_option_save.
13818 * tree.h (build_optimization_node): New parameter.
13819 (build_target_option_node): New parameter.
13820 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
13821 build_optimization_node and build_target_option_node.
13822 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
13823 (handle_pragma_push_options): Ditto.
13824 * toplev.c (process_options): Ditto.
13825 * opts.c (init_options_struct): Check for opts_set non-null.
13826 * target.def (target_option.save): New parameter.
13827 (target_option.restore): New parameter.
13828 * tm.texi: Generate.
13829 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
13830 (ix86_pragma_target_parse): Ditto.
13831 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
13833 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
13834 to build_optimization_node and build_target_option_node.
13835 (rs6000_valid_attribute_p): Ditto.
13836 (rs6000_pragma_target_parse): Ditto.
13837 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
13839 * config/i386/i386.h:
13840 TARGET_64BIT_P: New Macro
13841 TARGET_MMX_P: New Macro.
13842 TARGET_3DNOW_P: New Macro.
13843 TARGET_3DNOW_A_P: New Macro.
13844 TARGET_SSE_P: New Macro.
13845 TARGET_SSE2_P: New Macro.
13846 TARGET_SSE3_P: New Macro.
13847 TARGET_SSSE3_P: New Macro.
13848 TARGET_SSE4_1_P: New Macro.
13849 TARGET_SSE4_2_P: New Macro.
13850 TARGET_AVX_P: New Macro.
13851 TARGET_AVX2_P: New Macro.
13852 TARGET_AVX512F_P: New Macro.
13853 TARGET_AVX512PF_P: New Macro.
13854 TARGET_AVX512ER_P: New Macro.
13855 TARGET_AVX512CD_P: New Macro.
13856 TARGET_FMA_P: New Macro.
13857 TARGET_SSE4A_P: New Macro.
13858 TARGET_FMA4_P: New Macro.
13859 TARGET_XOP_P: New Macro.
13860 TARGET_LWP_P: New Macro.
13861 TARGET_ABM_P: New Macro.
13862 TARGET_BMI_P: New Macro.
13863 TARGET_BMI2_P: New Macro.
13864 TARGET_LZCNT_P: New Macro.
13865 TARGET_TBM_P: New Macro.
13866 TARGET_POPCNT_P: New Macro.
13867 TARGET_SAHF_P: New Macro.
13868 TARGET_MOVBE_P: New Macro.
13869 TARGET_CRC32_P: New Macro.
13870 TARGET_AES_P: New Macro.
13871 TARGET_PCLMUL_P: New Macro.
13872 TARGET_CMPXCHG16B_P: New Macro.
13873 TARGET_FSGSBASE_P: New Macro.
13874 TARGET_RDRND_P: New Macro.
13875 TARGET_F16C_P: New Macro.
13876 TARGET_RTM_P: New Macro.
13877 TARGET_HLE_P: New Macro.
13878 TARGET_RDSEED_P: New Macro.
13879 TARGET_PRFCHW_P: New Macro.
13880 TARGET_ADX_P: New Macro.
13881 TARGET_FXSR_P: New Macro.
13882 TARGET_XSAVE_P: New Macro.
13883 TARGET_XSAVEOPT_P: New Macro.
13884 TARGET_LP64_P: New Macro.
13885 TARGET_X32_P: New Macro.
13886 TARGET_FPMATH_DEFAULT_P: New Macro.
13887 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
13888 * config/i386/i386.c (ix86_option_override_internal): New parameters.
13890 Change ix86_tune_string to access opts->x_ix86_tune_string.
13891 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
13892 Change ix86_arch_string to access opts->x_ix86_arch_string.
13893 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
13894 Change ix86_pmode to access opts->x_ix86_pmode.
13895 Change ix86_abi to access opts->x_ix86_abi.
13896 Change ix86_cmodel to access opts->x_ix86_cmodel.
13897 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
13898 Change ix86_isa_flags_explicit to access
13899 opts->x_ix86_isa_flags_explicit.
13900 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
13901 Change ix86_regparm to access opts->x_ix86_regparm.
13902 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
13903 Change ix86_preferred_stack_boundary_arg to access
13904 opts->x_ix86_preferred_stack_boundary_arg.
13905 Change ix86_force_align_arg_pointer to access
13906 opts->x_ix86_force_align_arg_pointer.
13907 Change ix86_incoming_stack_boundar_arg to access
13908 opts->x_ix86_incoming_stack_boundar_arg.
13909 Change ix86_fpmath to access opts->x_ix86_fpmath.
13910 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
13911 Change ix86_recip_name to access opts->x_ix86_recip_name.
13912 Change ix86_stack_protector_guard to access
13913 opts->x_ix86_stack_protector_guard.
13914 Change ix86_tune_memcpy_strategy to access
13915 opts->x_ix86_tune_memcpy_strategy.
13916 Change ix86_tune_memset_strategy to access
13917 opts->x_ix86_tune_memset_strategy.
13918 Change global_options to access opts.
13919 Change global_options_set to access opts_set.
13920 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
13921 Change TARGET_MMX to TARGET_MMX_P (opts->...).
13922 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
13923 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
13924 Change TARGET_SSE to TARGET_SSE_P (opts->...).
13925 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
13926 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
13927 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
13928 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
13929 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
13930 Change TARGET_AVX to TARGET_AVX_P (opts->...).
13931 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
13932 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
13933 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
13934 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
13935 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
13936 Change TARGET_FMA to TARGET_FMA_P (opts->...).
13937 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
13938 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
13939 Change TARGET_XOP to TARGET_XOP_P (opts->...).
13940 Change TARGET_LWP to TARGET_LWP_P (opts->...).
13941 Change TARGET_ABM to TARGET_ABM_P (opts->...).
13942 Change TARGET_BMI to TARGET_BMI_P (opts->...).
13943 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
13944 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
13945 Change TARGET_TBM to TARGET_TBM_P (opts->...).
13946 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
13947 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
13948 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
13949 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
13950 Change TARGET_AES to TARGET_AES_P (opts->...).
13951 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
13952 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
13953 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
13954 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
13955 Change TARGET_F16C to TARGET_F16C_P (opts->...).
13956 Change TARGET_RTM to TARGET_RTM_P (opts->...).
13957 Change TARGET_HLE to TARGET_HLE_P (opts->...).
13958 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
13959 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
13960 Change TARGET_ADX to TARGET_ADX_P (opts->...).
13961 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
13962 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
13963 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
13964 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
13965 Change TARGET_X32 to TARGET_X32_P (opts->...).
13966 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
13967 Change TARGET_FLOAT_RETURNS_IN_80387 to
13968 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
13969 (ix86_function_specific_save): New parameter. Use opts-> fields
13970 to replace global fields.
13971 (ix86_function_specific_restore): Ditto.
13972 (ix86_valid_target_attribute_inner_p): New parameters.
13973 Fix recursive call.
13974 Fix call to ix86_handle_option and set_option.
13975 (ix86_valid_target_attribute_tree): New parameters.
13976 Change global_options to access opts.
13977 Change global_options_set to access opts_set.
13978 Fix call to ix86_valid_target_attribute_inner_p.
13979 Change ix86_tune_string to access opts->x_ix86_tune_string.
13980 Change ix86_arch_string to access opts->x_ix86_arch_string.
13981 Change ix86_fpmath to access opts->x_ix86_fpmath
13982 Fix call to ix86_option_override_internal.
13983 Fix call to ix86_add_new_builtins.
13984 Fix calls to build_optimization_node and build_target_option_node.
13985 (ix86_valid_target_attribute_p): Remove access to global_options.
13986 Use new gcc_options structure func_options.
13987 Fix call to ix86_valid_target_attribute_tree.
13988 Fix call to build_optimization_node.
13989 (get_builtin_code_for_version): Fix call to
13990 ix86_valid_target_attribute_tree.
13992 2013-10-15 David Malcolm <dmalcolm@redhat.com>
13994 * Makefile.in (PICFLAG): New.
13995 (enable_host_shared): New.
13996 (INTERNAL_CFLAGS): Use PICFLAG.
13997 (LIBIBERTY): Use pic build of libiberty.a if configured with
13998 --enable-host-shared.
13999 * configure.ac: Add --enable-host-shared, setting up new
14001 * configure: Regenerate.
14002 * doc/install.texi (--enable-shared): Add note contrasting it with ...
14003 (--enable-host-shared): New option.
14005 2013-10-15 Richard Biener <rguenther@suse.de>
14007 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
14008 for built-in functions.
14010 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
14012 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
14013 (optimize_range_tests_1): New function,
14014 extracted from optimize_range_tests.
14015 (optimize_range_tests_xor): Similarly.
14016 (optimize_range_tests_diff): New function.
14017 (optimize_range_tests): Use optimize_range_tests_1.
14019 2013-10-15 Cong Hou <congh@google.com>
14021 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
14022 requirement of the reduction pattern so that one operand of the
14023 reduction operation can come from outside of the loop.
14025 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
14027 * config/arm/neon-schedgen.ml: Remove.
14028 * config/arm/cortex-a9-neon.md: Remove comment regarding
14031 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
14033 * config/arm/types: Remove old neon types.
14035 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
14037 * config/arm/cortex-a7.md
14038 (cortex_a7_neon_type): New.
14039 (cortex_a7_neon_mul): Update for new types.
14040 (cortex_a7_neon_mla): Likewise.
14041 (cortex_a7_neon): Likewise.
14043 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
14045 * config/arm/cortex-a15-neon.md
14046 (cortex_a15_neon_type): New,
14048 (cortex_a15_neon_int_1): Remove.
14049 (cortex_a15_neon_int_2): Likewise.
14050 (cortex_a15_neon_int_3): Likewise.
14051 (cortex_a15_neon_int_4): Likewise.
14052 (cortex_a15_neon_int_5): Likewise.
14053 (cortex_a15_neon_vqneg_vqabs): Likewise.
14054 (cortex_a15_neon_vmov): Likewise.
14055 (cortex_a15_neon_vaba): Likewise.
14056 (cortex_a15_neon_vaba_qqq): Likewise.
14057 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14058 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
14059 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
14061 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14062 (cortex_a15_neon_mla_qqq_8_16): Likewise.
14063 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
14064 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
14065 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
14066 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
14067 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
14068 (cortex_a15_neon_shift_1): Likewise.
14069 (cortex_a15_neon_shift_2): Likewise.
14070 (cortex_a15_neon_shift_3): Likewise.
14071 (cortex_a15_neon_vshl_ddd): Likewise.
14072 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
14073 (cortex_a15_neon_vsra_vrsra): Likewise.
14074 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
14075 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
14076 (cortex_a15_neon_bp_3cycle): Likewise.
14077 (cortex_a15_neon_ldm_2): Likewise.
14078 (cortex_a15_neon_stm_2): Likewise.
14079 (cortex_a15_neon_mcr): Likewise.
14080 (cortex_a15_neon_mrc): Likewise.
14081 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
14082 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
14083 (cortex_a15_neon_fp_vmul_ddd): Likewise.
14084 (cortex_a15_neon_fp_vmul_qqd): Likewise.
14085 (cortex_a15_neon_fp_vmla_ddd): Likewise.
14086 (cortex_a15_neon_fp_vmla_qqq): Likewise.
14087 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
14088 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
14089 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
14090 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
14091 (cortex_a15_neon_bp_simple): Likewise.
14092 (cortex_a15_neon_bp_2cycle): Likewise.
14093 (cortex_a15_neon_bp_3cycle): Likewise.
14094 (cortex_a15_neon_vld1_1_2_regs): Likewise.
14095 (cortex_a15_neon_vld1_3_4_regs): Likewise.
14096 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
14097 (cortex_a15_neon_vld2_4_regs): Likewise.
14098 (cortex_a15_neon_vld3_vld4): Likewise.
14099 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
14100 (cortex_a15_neon_vst1_3_4_regs): Likewise.
14101 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
14102 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
14103 (cortex_a15_neon_vst3_vst4): Rename to...
14104 (cortex_a15_neon_vst4): This, update for new attributes.
14105 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
14106 (cortex_a15_neon_vld3_vld4_lane): Likewise.
14107 (cortex_a15_neon_vst1_vst2_lane): Likewise.
14108 (cortex_a15_neon_vst3_vst4_lane): Likewise.
14109 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
14110 (cortex_a15_neon_ldm_2): Likewise.
14111 (cortex_a15_neon_stm_2): Likewise.
14112 (cortex_a15_neon_mcr): Likewise.
14113 (cortex_a15_neon_mcr_2_mcrr): Likewise.
14114 (cortex_a15_neon_mrc): Likewise.
14115 (cortex_a15_neon_mrrc): Likewise.
14117 (cortex_a15_neon_abd): New.
14118 (cortex_a15_neon_abd_q): Likewise.
14119 (cortex_a15_neon_aba): Likewise.
14120 (cortex_a15_neon_aba_q): Likewise.
14121 (cortex_a15_neon_acc): Likewise.
14122 (cortex_a15_neon_acc_q): Likewise.
14123 (cortex_a15_neon_arith_basic): Likewise.
14124 (cortex_a15_neon_arith_complex): Likewise.
14125 (cortex_a15_neon_multiply): Likewise.
14126 (cortex_a15_neon_multiply_q): Likewise.
14127 (cortex_a15_neon_mla): Likewise.
14128 (cortex_a15_neon_mla_q): Likewise.
14129 (cortex_a15_neon_sat_mla_long): Likewise.
14130 (cortex_a15_neon_shift_acc): Likewise.
14131 (cortex_a15_neon_shift_imm_basic): Likewise.
14132 (cortex_a15_neon_shift_imm_complex): Likewise.
14133 (cortex_a15_neon_shift_reg_basic): Likewise.
14134 (cortex_a15_neon_shift_reg_basic_q): Likewise.
14135 (cortex_a15_neon_shift_reg_complex): Likewise.
14136 (cortex_a15_neon_shift_reg_complex_q): Likewise.
14137 (cortex_a15_neon_fp_negabs): Likewise
14138 (cortex_a15_neon_fp_arith): Likewise
14139 (cortex_a15_neon_fp_arith_q): Likewise
14140 (cortex_a15_neon_fp_cvt_int): Likewise
14141 (cortex_a15_neon_fp_cvt_int_q): Likewise
14142 (cortex_a15_neon_fp_cvt_16): Likewise
14143 (cortex_a15_neon_fp_mul): Likewise
14144 (cortex_a15_neon_fp_mul_q): Likewise
14145 (cortex_a15_neon_fp_mla): Likewise
14146 (cortex_a15_neon_fp_mla_q): Likewise
14147 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
14148 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
14149 (cortex_a15_neon_bitops): Likewise.
14150 (cortex_a15_neon_bitops_q): Likewise.
14151 (cortex_a15_neon_from_gp): Likewise.
14152 (cortex_a15_neon_from_gp_q): Likewise.
14153 (cortex_a15_neon_tbl3_tbl4): Likewise.
14154 (cortex_a15_neon_zip_q): Likewise.
14155 (cortex_a15_neon_to_gp): Likewise.
14156 (cortex_a15_neon_load_a): Likewise.
14157 (cortex_a15_neon_load_b): Likewise.
14158 (cortex_a15_neon_load_c): Likewise.
14159 (cortex_a15_neon_load_d): Likewise.
14160 (cortex_a15_neon_load_e): Likewise.
14161 (cortex_a15_neon_load_f): Likewise.
14162 (cortex_a15_neon_store_a): Likewise.
14163 (cortex_a15_neon_store_b): Likewise.
14164 (cortex_a15_neon_store_c): Likewise.
14165 (cortex_a15_neon_store_d): Likewise.
14166 (cortex_a15_neon_store_e): Likewise.
14167 (cortex_a15_neon_store_f): Likewise.
14168 (cortex_a15_neon_store_g): Likewise.
14169 (cortex_a15_neon_store_h): Likewise.
14170 (cortex_a15_vfp_to_from_gp): Likewise.
14172 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
14174 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
14176 (cortex_a9_neon_vshl_ddd): Remove.
14177 (cortex_a9_neon_vst3_vst4): Likewise.
14178 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
14180 (cortex_a9_neon_bit_ops_q): New.
14182 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
14183 (cortex_a9_neon_int_2): Likewise.
14184 (cortex_a9_neon_int_3): Likewise.
14185 (cortex_a9_neon_int_4): Likewise.
14186 (cortex_a9_neon_int_5): Likewise.
14187 (cortex_a9_neon_vqneg_vqabs): Likewise.
14188 (cortex_a9_neon_vmov): Likewise.
14189 (cortex_a9_neon_vaba): Likewise.
14190 (cortex_a9_neon_vaba_qqq): Likewise.
14191 (cortex_a9_neon_shift_1): Likewise.
14192 (cortex_a9_neon_shift_2): Likewise.
14193 (cortex_a9_neon_shift_3): Likewise.
14194 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
14195 (cortex_a9_neon_vsra_vrsra): Likewise.
14196 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14197 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
14198 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
14200 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14201 (cortex_a9_neon_mla_qqq_8_16): Likewise.
14202 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
14204 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
14205 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
14206 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
14207 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
14208 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
14209 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
14210 (cortex_a9_neon_fp_vsum): Likewise.
14211 (cortex_a9_neon_fp_vmul_ddd): Likewise.
14212 (cortex_a9_neon_fp_vmul_qqd): Likewise.
14213 (cortex_a9_neon_fp_vmla_ddd): Likewise.
14214 (cortex_a9_neon_fp_vmla_qqq): Likewise.
14215 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
14216 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
14217 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
14218 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
14219 (cortex_a9_neon_bp_simple): Likewise.
14220 (cortex_a9_neon_bp_2cycle): Likewise.
14221 (cortex_a9_neon_bp_3cycle): Likewise.
14222 (cortex_a9_neon_ldr): Likewise.
14223 (cortex_a9_neon_str): Likewise.
14224 (cortex_a9_neon_vld1_1_2_regs): Likewise.
14225 (cortex_a9_neon_vld1_3_4_regs): Likewise.
14226 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
14227 (cortex_a9_neon_vld2_4_regs): Likewise.
14228 (cortex_a9_neon_vld3_vld4): Likewise.
14229 (cortex_a9_neon_vld1_vld2_lane): Likewise.
14230 (cortex_a9_neon_vld3_vld4_lane): Likewise.
14231 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
14232 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
14233 (cortex_a9_neon_vst1_3_4_regs): Likewise.
14234 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
14235 (cortex_a9_neon_vst1_vst2_lane): Likewise.
14236 (cortex_a9_neon_vst3_vst4_lane): Likewise.
14237 (cortex_a9_neon_mcr): Likewise.
14238 (cortex_a9_neon_mcr_2_mcrr): Likewise.
14239 (cortex_a9_neon_mrc): Likewise.
14240 (cortex_a9_neon_mrrc): Likewise.
14242 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
14244 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
14246 (cortex_a8_neon_vshl_ddd): Remove.
14247 (cortex_a8_neon_vst3_vst4): Likewise.
14248 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
14250 (cortex_a8_neon_bit_ops_q): New.
14252 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
14253 (cortex_a8_neon_int_2): Likewise..
14254 (cortex_a8_neon_int_3): Likewise.
14255 (cortex_a8_neon_int_5): Likewise.
14256 (cortex_a8_neon_vqneg_vqabs): Likewise.
14257 (cortex_a8_neon_int_4): Likewise.
14258 (cortex_a8_neon_vaba): Likewise.
14259 (cortex_a8_neon_vaba_qqq): Likewise.
14260 (cortex_a8_neon_shift_1): Likewise.
14261 (cortex_a8_neon_shift_2): Likewise.
14262 (cortex_a8_neon_shift_3): Likewise.
14263 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
14264 (cortex_a8_neon_vsra_vrsra): Likewise.
14265 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14266 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
14267 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
14269 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14270 (cortex_a8_neon_mla_qqq_8_16): Likewise.
14271 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
14273 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
14274 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
14275 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
14276 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
14277 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
14278 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
14279 (cortex_a8_neon_fp_vsum): Likewise.
14280 (cortex_a8_neon_fp_vmul_ddd): Likewise.
14281 (cortex_a8_neon_fp_vmul_qqd): Likewise.
14282 (cortex_a8_neon_fp_vmla_ddd): Likewise.
14283 (cortex_a8_neon_fp_vmla_qqq): Likewise.
14284 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
14285 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
14286 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
14287 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
14288 (cortex_a8_neon_bp_simple): Likewise.
14289 (cortex_a8_neon_bp_2cycle): Likewise.
14290 (cortex_a8_neon_bp_3cycle): Likewise.
14291 (cortex_a8_neon_ldr): Likewise.
14292 (cortex_a8_neon_str): Likewise.
14293 (cortex_a8_neon_vld1_1_2_regs): Likewise.
14294 (cortex_a8_neon_vld1_3_4_regs): Likewise.
14295 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
14296 (cortex_a8_neon_vld2_4_regs): Likewise.
14297 (cortex_a8_neon_vld3_vld4): Likewise.
14298 (cortex_a8_neon_vld1_vld2_lane): Likewise.
14299 (cortex_a8_neon_vld3_vld4_lane): Likewise.
14300 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
14301 (cortex_a8_neon_vst1_3_4_regs): Likewise.
14302 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
14303 (cortex_a8_neon_vst1_vst2_lane): Likewise.
14304 (cortex_a8_neon_vst3_vst4_lane): Likewise.
14305 (cortex_a8_neon_mcr): Likewise.
14306 (cortex_a8_neon_mcr_2_mcrr): Likewise.
14307 (cortex_a8_neon_mrc): Likewise.
14308 (cortex_a8_neon_mrrc): Likewise.
14310 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
14312 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
14314 * config/aarch64/aarch64-simd.md (neon_type): Remove.
14315 (aarch64_simd_dup<mode>): Add "type" attribute.
14316 (aarch64_dup_lane<mode>): Likewise.
14317 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
14318 (*aarch64_simd_mov<mode>): Likewise.
14319 (aarch64_simd_mov_from_<mode>low): Likewise.
14320 (aarch64_simd_mov_from_<mode>high): Likewise.
14321 (orn<mode>3): Likewise.
14322 (bic<mode>3): Likewise.
14323 (add<mode>3): Likewise.
14324 (sub<mode>3): Likewise.
14325 (mul<mode>3): Likewise.
14326 (*aarch64_mul3_elt<mode>): Likewise.
14327 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
14328 (*aarch64_mul3_elt_to_128df): Likewise.
14329 (*aarch64_mul3_elt_to_64v2df): Likewise.
14330 (neg<mode>2): Likewise.
14331 (abs<mode>2): Likewise.
14332 (abd<mode>_3): Likewise.
14333 (aba<mode>_3): Likewise.
14334 (fabd<mode>_3): Likewise.
14335 (*fabd_scalar<mode>3): Likewise.
14336 (and<mode>3): Likewise.
14337 (ior<mode>3): Likewise.
14338 (xor<mode>3): Likewise.
14339 (one_cmpl<mode>2): Likewise.
14340 (aarch64_simd_vec_set<mode>): Likewise.
14341 (aarch64_simd_lshr<mode>): Likewise.
14342 (aarch64_simd_ashr<mode>): Likewise.
14343 (aarch64_simd_imm_shl<mode>): Likewise.
14344 (aarch64_simd_reg_sshl<mode): Likewise.
14345 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
14346 (aarch64_simd_reg_shl<mode>_signed): Likewise.
14347 (aarch64_simd_vec_setv2di): Likewise.
14348 (aarch64_simd_vec_set<mode>): Likewise.
14349 (aarch64_mla<mode>): Likewise.
14350 (*aarch64_mla_elt<mode>): Likewise.
14351 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
14352 (aarch64_mls<mode>): Likewise.
14353 (*aarch64_mls_elt<mode>): Likewise.
14354 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
14355 (<su><maxmin><mode>3): Likewise.
14356 (move_lo_quad_<mode>): Likewise.
14357 (aarch64_simd_move_hi_quad_<mode>): Likewise.
14358 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
14359 (vec_pack_trunc_<mode>): Likewise.
14360 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
14361 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
14362 (*aarch64_<su>mlal_lo<mode>): Likewise.
14363 (*aarch64_<su>mlal_hi<mode>): Likewise.
14364 (*aarch64_<su>mlsl_lo<mode>): Likewise.
14365 (*aarch64_<su>mlsl_hi<mode>): Likewise.
14366 (*aarch64_<su>mlal<mode>): Likewise.
14367 (*aarch64_<su>mlsl<mode>): Likewise.
14368 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
14369 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
14370 (add<mode>3): Likewise.
14371 (sub<mode>3): Likewise.
14372 (mul<mode>3): Likewise.
14373 (div<mode>3): Likewise.
14374 (neg<mode>2): Likewise.
14375 (abs<mode>2): Likewise.
14376 (fma<mode>4): Likewise.
14377 (*aarch64_fma4_elt<mode>): Likewise.
14378 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
14379 (*aarch64_fma4_elt_to_128df): Likewise.
14380 (*aarch64_fma4_elt_to_64v2df): Likewise.
14381 (fnma<mode>4): Likewise.
14382 (*aarch64_fnma4_elt<mode>): Likewise.
14383 (*aarch64_fnma4_elt_<vswap_width_name><mode>
14384 (*aarch64_fnma4_elt_to_128df): Likewise.
14385 (*aarch64_fnma4_elt_to_64v2df): Likewise.
14386 (<frint_pattern><mode>2): Likewise.
14387 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
14388 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
14389 (vec_unpacks_lo_v4sf): Likewise.
14390 (aarch64_float_extend_lo_v2df): Likewise.
14391 (vec_unpacks_hi_v4sf): Likewise.
14392 (aarch64_float_truncate_lo_v2sf): Likewise.
14393 (aarch64_float_truncate_hi_v4sf): Likewise.
14394 (aarch64_vmls<mode>): Likewise.
14395 (<su><maxmin><mode>3): Likewise.
14396 (<maxmin_uns><mode>3): Likewise.
14397 (reduc_<sur>plus_<mode>): Likewise.
14398 (reduc_<sur>plus_v2di): Likewise.
14399 (reduc_<sur>plus_v2si): Likewise.
14400 (reduc_<sur>plus_<mode>): Likewise.
14401 (aarch64_addpv4sf): Likewise.
14402 (clz<mode>2): Likewise.
14403 (reduc_<maxmin_uns>_<mode>): Likewise.
14404 (reduc_<maxmin_uns>_v2di): Likewise.
14405 (reduc_<maxmin_uns>_v2si): Likewise.
14406 (reduc_<maxmin_uns>_<mode>): Likewise.
14407 (reduc_<maxmin_uns>_v4sf): Likewise.
14408 (aarch64_simd_bsl<mode>_internal): Likewise.
14409 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
14410 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
14411 (aarch64_get_lane<mode>): Likewise.
14412 (*aarch64_combinez<mode>): Likewise.
14413 (aarch64_combine<mode>): Likewise.
14414 (aarch64_simd_combine<mode>): Likewise.
14415 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
14416 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
14417 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
14418 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
14419 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
14420 (aarch64_<sur>h<addsub><mode>): Likewise.
14421 (aarch64_<sur><addsub>hn<mode>): Likewise.
14422 (aarch64_<sur><addsub>hn2<mode>): Likewise.
14423 (aarch64_pmul<mode>): Likewise.
14424 (aarch64_<su_optab><optab><mode>): Likewise.
14425 (aarch64_<sur>qadd<mode>): Likewise.
14426 (aarch64_sqmovun<mode>): Likewise.
14427 (aarch64_<sur>qmovn<mode>): Likewise.
14428 (aarch64_s<optab><mode>): Likewise.
14429 (aarch64_sq<r>dmulh<mode>): Likewise.
14430 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
14431 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
14432 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
14433 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
14434 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
14435 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
14436 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
14437 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
14438 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
14439 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
14440 (aarch64_sqdmull<mode>): Likewise.
14441 (aarch64_sqdmull_lane<mode>_internal): Likewise.
14442 (aarch64_sqdmull_n<mode>): Likewise.
14443 (aarch64_sqdmull2<mode>_internal): Likewise.
14444 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
14445 (aarch64_sqdmull2_n<mode>_internal): Likewise.
14446 (aarch64_<sur>shl<mode>): Likewise.
14447 (aarch64_<sur>q<r>shl<mode>
14448 (aarch64_<sur>shll_n<mode>): Likewise.
14449 (aarch64_<sur>shll2_n<mode>): Likewise.
14450 (aarch64_<sur>shr_n<mode>): Likewise.
14451 (aarch64_<sur>sra_n<mode>): Likewise.
14452 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
14453 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
14454 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
14455 (aarch64_cm<optab><mode>): Likewise.
14456 (aarch64_cm<optab>di): Likewise.
14457 (aarch64_cm<optab><mode>): Likewise.
14458 (aarch64_cm<optab>di): Likewise.
14459 (aarch64_cmtst<mode>): Likewise.
14460 (aarch64_cmtstdi): Likewise.
14461 (aarch64_cm<optab><mode>): Likewise.
14462 (*aarch64_fac<optab><mode>): Likewise.
14463 (aarch64_addp<mode>): Likewise.
14464 (aarch64_addpdi): Likewise.
14465 (sqrt<mode>2): Likewise.
14466 (vec_load_lanesoi<mode>): Likewise.
14467 (vec_store_lanesoi<mode>): Likewise.
14468 (vec_load_lanesci<mode>): Likewise.
14469 (vec_store_lanesci<mode>): Likewise.
14470 (vec_load_lanesxi<mode>): Likewise.
14471 (vec_store_lanesxi<mode>): Likewise.
14472 (*aarch64_mov<mode>): Likewise.
14473 (aarch64_ld2<mode>_dreg): Likewise.
14474 (aarch64_ld2<mode>_dreg): Likewise.
14475 (aarch64_ld3<mode>_dreg): Likewise.
14476 (aarch64_ld3<mode>_dreg): Likewise.
14477 (aarch64_ld4<mode>_dreg): Likewise.
14478 (aarch64_ld4<mode>_dreg): Likewise.
14479 (aarch64_tbl1<mode>): Likewise.
14480 (aarch64_tbl2v16qi): Likewise.
14481 (aarch64_combinev16qi): Likewise.
14482 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
14483 (aarch64_st2<mode>_dreg): Likewise.
14484 (aarch64_st2<mode>_dreg): Likewise.
14485 (aarch64_st3<mode>_dreg): Likewise.
14486 (aarch64_st3<mode>_dreg): Likewise.
14487 (aarch64_st4<mode>_dreg): Likewise.
14488 (aarch64_st4<mode>_dreg): Likewise.
14489 (*aarch64_simd_ld1r<mode>): Likewise.
14490 (aarch64_frecpe<mode>): Likewise.
14491 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
14492 (aarch64_frecps<mode>): Likewise.
14494 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
14496 * config/arm/iterators.md (V_elem_ch): New.
14498 (VQH_type): Likewise.
14499 * config/arm/arm.md (is_neon_type): New.
14500 (conds): Use is_neon_type.
14501 (anddi3_insn): Update type attribute.
14502 (xordi3_insn): Likewise.
14503 (one_cmpldi2): Likewise.
14504 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
14505 * config/arm/neon.md (neon_mov): Update type attribute.
14506 (*movmisalign<mode>_neon_store): Likewise.
14507 (*movmisalign<mode>_neon_load): Likewise.
14508 (vec_set<mode>_internal): Likewise.
14509 (vec_set<mode>_internal): Likewise.
14510 (vec_setv2di_internal): Likewise.
14511 (vec_extract<mode>): Likewise.
14512 (vec_extract<mode>): Likewise.
14513 (vec_extractv2di): Likewise.
14514 (*add<mode>3_neon): Likewise.
14515 (adddi3_neon): Likewise.
14516 (*sub<mode>3_neon): Likewise.
14517 (subdi3_neon): Likewise.
14518 (fma<VCVTF:mode>4): Likewise.
14519 (fma<VCVTF:mode>4_intrinsic): Likewise.
14520 (*fmsub<VCVTF:mode>4): Likewise.
14521 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
14522 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
14523 (ior<mode>3): Likewise.
14524 (and<mode>3): Likewise.
14525 (orn<mode>3_neon): Likewise.
14526 (orndi3_neon): Likewise.
14527 (bic<mode>3_neon): Likewise.
14528 (bicdi3_neon): Likewise.
14529 (xor<mode>3): Likewise.
14530 (one_cmpl<mode>2): Likewise.
14531 (abs<mode>2): Likewise.
14532 (neg<mode>2): Likewise.
14533 (negdi2_neon): Likewise.
14534 (*umin<mode>3_neon): Likewise.
14535 (*umax<mode>3_neon): Likewise.
14536 (*smin<mode>3_neon): Likewise.
14537 (*smax<mode>3_neon): Likewise.
14538 (vashl<mode>3): Likewise.
14539 (vashr<mode>3_imm): Likewise.
14540 (vlshr<mode>3_imm): Likewise.
14541 (ashl<mode>3_signed): Likewise.
14542 (ashl<mode>3_unsigned): Likewise.
14543 (neon_load_count): Likewise.
14544 (ashldi3_neon_noclobber): Likewise.
14545 (ashldi3_neon): Likewise.
14546 (signed_shift_di3_neon): Likewise.
14547 (unsigned_shift_di3_neon): Likewise.
14548 (ashrdi3_neon_imm_noclobber): Likewise.
14549 (lshrdi3_neon_imm_noclobber): Likewise.
14550 (<shift>di3_neon): Likewise.
14551 (widen_ssum<mode>3): Likewise.
14552 (widen_usum<mode>3): Likewise.
14553 (quad_halves_<code>v4si): Likewise.
14554 (quad_halves_<code>v4sf): Likewise.
14555 (quad_halves_<code>v8hi): Likewise.
14556 (quad_halves_<code>v16qi): Likewise.
14557 (reduc_splus_v2di): Likewise.
14558 (neon_vpadd_internal<mode>): Likewise.
14559 (neon_vpsmin<mode>): Likewise.
14560 (neon_vpsmax<mode>): Likewise.
14561 (neon_vpumin<mode>): Likewise.
14562 (neon_vpumax<mode>): Likewise.
14563 (*ss_add<mode>_neon): Likewise.
14564 (*us_add<mode>_neon): Likewise.
14565 (*ss_sub<mode>_neon): Likewise.
14566 (*us_sub<mode>_neon): Likewise.
14567 (neon_vadd<mode>_unspec): Likewise.
14568 (neon_vaddl<mode>): Likewise.
14569 (neon_vaddw<mode>): Likewise.
14570 (neon_vhadd<mode>): Likewise.
14571 (neon_vqadd<mode>): Likewise.
14572 (neon_vaddhn<mode>): Likewise.
14573 (neon_vmul<mode>): Likewise.
14574 (neon_vfms<VCVTF:mode>): Likewise.
14575 (neon_vmlal<mode>): Likewise.
14576 (neon_vmls<mode>): Likewise.
14577 (neon_vmlsl<mode>): Likewise.
14578 (neon_vqdmulh<mode>): Likewise.
14579 (neon_vqdmlal<mode>): Likewise.
14580 (neon_vqdmlsl<mode>): Likewise.
14581 (neon_vmull<mode>): Likewise.
14582 (neon_vqdmull<mode>): Likewise.
14583 (neon_vsub<mode>_unspec): Likewise.
14584 (neon_vsubl<mode>): Likewise.
14585 (neon_vsubw<mode>): Likewise.
14586 (neon_vqsub<mode>): Likewise.
14587 (neon_vhsub<mode>): Likewise.
14588 (neon_vsubhn<mode>): Likewise.
14589 (neon_vceq<mode>): Likewise.
14590 (neon_vcge<mode>): Likewise.
14591 (neon_vcgeu<mode>): Likewise.
14592 (neon_vcgt<mode>): Likewise.
14593 (neon_vcgtu<mode>): Likewise.
14594 (neon_vcle<mode>): Likewise.
14595 (neon_vclt<mode>): Likewise.
14596 (neon_vcage<mode>): Likewise.
14597 (neon_vcagt<mode>): Likewise.
14598 (neon_vtst<mode>): Likewise.
14599 (neon_vabd<mode>): Likewise.
14600 (neon_vabdl<mode>): Likewise.
14601 (neon_vaba<mode>): Likewise.
14602 (neon_vabal<mode>): Likewise.
14603 (neon_vmax<mode>): Likewise.
14604 (neon_vmin<mode>): Likewise.
14605 (neon_vpaddl<mode>): Likewise.
14606 (neon_vpadal<mode>): Likewise.
14607 (neon_vpmax<mode>): Likewise.
14608 (neon_vpmin<mode>): Likewise.
14609 (neon_vrecps<mode>): Likewise.
14610 (neon_vrsqrts<mode>): Likewise.
14611 (neon_vqabs<mode>): Likewise.
14612 (neon_vqneg<mode>): Likewise.
14613 (neon_vcls<mode>): Likewise.
14614 (clz<mode>2): Likewise.
14615 (popcount<mode>2): Likewise.
14616 (neon_vrecpe<mode>): Likewise.
14617 (neon_vrsqrte<mode>): Likewise.
14618 (neon_vget_lane<mode>_sext_internal): Likewise.
14619 (neon_vget_lane<mode>_zext_internal): Likewise.
14620 (neon_vdup_n<mode>): Likewise.
14621 (neon_vdup_n<mode>): Likewise.
14622 (neon_vdup_nv2di): Likewise.
14623 (neon_vdup_lane<mode>_interal): Likewise.
14624 (*neon_vswp<mode>): Likewise.
14625 (neon_vcombine<mode>): Likewise.
14626 (float<mode><V_cvtto>2): Likewise.
14627 (floatuns<mode><V_cvtto>2): Likewise.
14628 (fix_trunc<mode><V_cvtto>2): Likewise.
14629 (fixuns_trunc<mode><V_cvtto>2
14630 (neon_vcvt<mode>): Likewise.
14631 (neon_vcvt<mode>): Likewise.
14632 (neon_vcvtv4sfv4hf): Likewise.
14633 (neon_vcvtv4hfv4sf): Likewise.
14634 (neon_vcvt_n<mode>): Likewise.
14635 (neon_vcvt_n<mode>): Likewise.
14636 (neon_vmovn<mode>): Likewise.
14637 (neon_vqmovn<mode>): Likewise.
14638 (neon_vqmovun<mode>): Likewise.
14639 (neon_vmovl<mode>): Likewise.
14640 (neon_vmul_lane<mode>): Likewise.
14641 (neon_vmul_lane<mode>): Likewise.
14642 (neon_vmull_lane<mode>): Likewise.
14643 (neon_vqdmull_lane<mode>): Likewise.
14644 (neon_vqdmulh_lane<mode>): Likewise.
14645 (neon_vqdmulh_lane<mode>): Likewise.
14646 (neon_vmla_lane<mode>): Likewise.
14647 (neon_vmla_lane<mode>): Likewise.
14648 (neon_vmlal_lane<mode>): Likewise.
14649 (neon_vqdmlal_lane<mode>): Likewise.
14650 (neon_vmls_lane<mode>): Likewise.
14651 (neon_vmls_lane<mode>): Likewise.
14652 (neon_vmlsl_lane<mode>): Likewise.
14653 (neon_vqdmlsl_lane<mode>): Likewise.
14654 (neon_vext<mode>): Likewise.
14655 (neon_vrev64<mode>): Likewise.
14656 (neon_vrev32<mode>): Likewise.
14657 (neon_vrev16<mode>): Likewise.
14658 (neon_vbsl<mode>_internal): Likewise.
14659 (neon_vshl<mode>): Likewise.
14660 (neon_vqshl<mode>): Likewise.
14661 (neon_vshr_n<mode>): Likewise.
14662 (neon_vshrn_n<mode>): Likewise.
14663 (neon_vqshrn_n<mode>): Likewise.
14664 (neon_vqshrun_n<mode>): Likewise.
14665 (neon_vshl_n<mode>): Likewise.
14666 (neon_vqshl_n<mode>): Likewise.
14667 (neon_vqshlu_n<mode>): Likewise.
14668 (neon_vshll_n<mode>): Likewise.
14669 (neon_vsra_n<mode>): Likewise.
14670 (neon_vsri_n<mode>): Likewise.
14671 (neon_vsli_n<mode>): Likewise.
14672 (neon_vtbl1v8qi): Likewise.
14673 (neon_vtbl2v8qi): Likewise.
14674 (neon_vtbl3v8qi): Likewise.
14675 (neon_vtbl4v8qi): Likewise.
14676 (neon_vtbl1v16qi): Likewise.
14677 (neon_vtbl2v16qi): Likewise.
14678 (neon_vcombinev16qi): Likewise.
14679 (neon_vtbx1v8qi): Likewise.
14680 (neon_vtbx2v8qi): Likewise.
14681 (neon_vtbx3v8qi): Likewise.
14682 (neon_vtbx4v8qi): Likewise.
14683 (*neon_vtrn<mode>_insn): Likewise.
14684 (*neon_vzip<mode>_insn): Likewise.
14685 (*neon_vuzp<mode>_insn): Likewise.
14686 (neon_vld1<mode>): Likewise.
14687 (neon_vld1_lane<mode>): Likewise.
14688 (neon_vld1_lane<mode>): Likewise.
14689 (neon_vld1_dup<mode>): Likewise.
14690 (neon_vld1_dup<mode>): Likewise.
14691 (neon_vld1_dupv2di): Likewise.
14692 (neon_vst1<mode>): Likewise.
14693 (neon_vst1_lane<mode>): Likewise.
14694 (neon_vst1_lane<mode>): Likewise.
14695 (neon_vld2<mode>): Likewise.
14696 (neon_vld2<mode>): Likewise.
14697 (neon_vld2_lane<mode>): Likewise.
14698 (neon_vld2_lane<mode>): Likewise.
14699 (neon_vld2_dup<mode>): Likewise.
14700 (neon_vst2<mode>): Likewise.
14701 (neon_vst2<mode>): Likewise.
14702 (neon_vst2_lane<mode>): Likewise.
14703 (neon_vst2_lane<mode>): Likewise.
14704 (neon_vld3<mode>): Likewise.
14705 (neon_vld3qa<mode>): Likewise.
14706 (neon_vld3qb<mode>): Likewise.
14707 (neon_vld3_lane<mode>): Likewise.
14708 (neon_vld3_lane<mode>): Likewise.
14709 (neon_vld3_dup<mode>): Likewise.
14710 (neon_vst3<mode>): Likewise.
14711 (neon_vst3qa<mode>): Likewise.
14712 (neon_vst3qb<mode>): Likewise.
14713 (neon_vst3_lane<mode>): Likewise.
14714 (neon_vst3_lane<mode>): Likewise.
14715 (neon_vld4<mode>): Likewise.
14716 (neon_vld4qa<mode>): Likewise.
14717 (neon_vld4qb<mode>): Likewise.
14718 (neon_vld4_lane<mode>): Likewise.
14719 (neon_vld4_lane<mode>): Likewise.
14720 (neon_vld4_dup<mode>): Likewise.
14721 (neon_vst4<mode>): Likewise.
14722 (neon_vst4qa<mode>): Likewise.
14723 (neon_vst4qb<mode>): Likewise.
14724 (neon_vst4_lane<mode>): Likewise.
14725 (neon_vst4_lane<mode>): Likewise.
14726 (neon_vec_unpack<US>_lo_<mode>): Likewise.
14727 (neon_vec_unpack<US>_hi_<mode>): Likewise.
14728 (neon_vec_<US>mult_lo_<mode>): Likewise.
14729 (neon_vec_<US>mult_hi_<mode>): Likewise.
14730 (neon_vec_<US>shiftl_<mode>): Likewise.
14731 (neon_unpack<US>_<mode>): Likewise.
14732 (neon_vec_<US>mult_<mode>): Likewise.
14733 (vec_pack_trunc_<mode>): Likewise.
14734 (neon_vec_pack_trunc_<mode>): Likewise.
14735 (neon_vabd<mode>_2): Likewise.
14736 (neon_vabd<mode>_3): Likewise.
14738 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
14740 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
14741 (load_pair): Update type attribute.
14742 (store_pair): Update type attribute.
14743 * config/aarch64/iterators.md (q): New.
14745 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
14747 * config/arm/types.md: Add new types for Neon insns.
14749 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
14750 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14751 Sergey Lega <sergey.s.lega@intel.com>
14752 Anna Tikhonova <anna.tikhonova@intel.com>
14753 Ilya Tocar <ilya.tocar@intel.com>
14754 Andrey Turetskiy <andrey.turetskiy@intel.com>
14755 Ilya Verbin <ilya.verbin@intel.com>
14756 Kirill Yukhin <kirill.yukhin@intel.com>
14757 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14759 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
14760 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
14761 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
14762 (rcp14<mode>): New.
14763 (srcp14<mode>): Ditto.
14764 (rsqrt14<mode>): Ditto.
14765 (rsqrt14<mode>): Ditto.
14766 (avx512f_vmscalef<mode>): Ditto.
14767 (avx512f_scalef<mode>): Ditto.
14768 (avx512f_getexp<mode>): Ditto.
14769 (avx512f_sgetexp<mode>): Ditto.
14770 (avx512f_fixupimm<mode>): Ditto.
14771 (avx512f_sfixupimm<mode>): Ditto.
14772 (avx512f_rndscale<mode>): Ditto.
14773 (*avx512er_exp2<mode>): Ditto.
14774 (*avx512er_rcp28<mode>): Ditto.
14775 (avx512er_rsqrt28<mode>): Ditto.
14776 (avx512f_getmant<mode>): Ditto.
14777 (avx512f_getmant<mode>): Ditto.
14778 (avx512f_rndscale<mode>): Fix formatting.
14780 2013-10-15 Martin Jambor <mjambor@suse.cz>
14782 * ipa-utils.h (ipa_edge_within_scc): Declare.
14783 * ipa-cp.c (edge_within_scc): Moved...
14784 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
14786 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
14787 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14788 Sergey Lega <sergey.s.lega@intel.com>
14789 Anna Tikhonova <anna.tikhonova@intel.com>
14790 Ilya Tocar <ilya.tocar@intel.com>
14791 Andrey Turetskiy <andrey.turetskiy@intel.com>
14792 Ilya Verbin <ilya.verbin@intel.com>
14793 Kirill Yukhin <kirill.yukhin@intel.com>
14794 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14796 * config/i386/predicates.md (const_8_to_15_operand): New.
14797 (const_16_to_31_operand): Ditto.
14798 * config/i386/sse.md (V8FI): New.
14800 (reduc_splus_v8df): Ditto.
14801 (reduc_splus_v16sf): Ditto.
14802 (avx512f_vextract<shuffletype>32x4_1): Ditto.
14803 (vec_extract_hi_<mode>): Ditto.
14804 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
14805 (vec_set_lo_<mode>): Ditto.
14806 (vec_set_hi_<mode>): Ditto.
14807 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
14808 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
14809 (avx512f_pshufd_1): Ditto.
14810 (avx512f_broadcast<mode>): Ditto.
14811 (avx512f_broadcast<mode>): Ditto.
14812 (define_split): Split vec_extract_lo into move.
14813 (ssequartermode): Ditto.
14814 (ssedoublemode): Extened with wider modes.
14815 (vec_extract_lo_<mode>): Ditto.
14817 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
14818 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14819 Sergey Lega <sergey.s.lega@intel.com>
14820 Anna Tikhonova <anna.tikhonova@intel.com>
14821 Ilya Tocar <ilya.tocar@intel.com>
14822 Andrey Turetskiy <andrey.turetskiy@intel.com>
14823 Ilya Verbin <ilya.verbin@intel.com>
14824 Kirill Yukhin <kirill.yukhin@intel.com>
14825 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14827 * config/i386/predicates.md (register_or_constm1_operand): New.
14828 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
14829 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
14830 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
14831 UNSPEC_SCATTER_PREFETCH
14833 (avx512f_ucmp<mode>3): Ditto.
14834 (avx512f_vternlog<mode>): Ditto.
14835 (avx512f_align<mode>): Ditto.
14836 (<shift_insn><mode>3): Ditto.
14837 (avx512f_<rotate>v<mode>): Ditto.
14838 (avx512f_<rotate><mode>): Ditto.
14839 (avx512f_eq<mode>3): Ditto.
14840 (avx512f_eq<mode>3_1): Ditto.
14841 (avx512f_gt<mode>3): Ditto.
14842 (avx512f_testm<mode>3): Ditto.
14843 (avx512f_testnm<mode>3): Ditto.
14844 (avx512pf_gatherpf<mode>): Ditto.
14845 (*avx512pf_gatherpf<mode>_mask): Ditto.
14846 (*avx512pf_gatherpf<mode>): Ditto.
14847 (avx512pf_scatterpf<mode>): Ditto.
14848 (*avx512pf_scatterpf<mode>_mask): Ditto.
14849 (*avx512pf_scatterpf<mode>): Ditto.
14850 (avx512f_vec_dup_gpr<mode>): Ditto.
14851 (clz<mode>2): Ditto.
14852 (conflict<mode>): Ditto.
14853 (REDUC_SMINMAX_MODE): Extened with wider modes.
14854 (reduc_<code>_<mode>): Ditto.
14855 (vlshr<mode>3): Ditto.
14856 (vashl<mode>3): Ditto.
14858 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
14859 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14860 Sergey Lega <sergey.s.lega@intel.com>
14861 Anna Tikhonova <anna.tikhonova@intel.com>
14862 Ilya Tocar <ilya.tocar@intel.com>
14863 Andrey Turetskiy <andrey.turetskiy@intel.com>
14864 Ilya Verbin <ilya.verbin@intel.com>
14865 Kirill Yukhin <kirill.yukhin@intel.com>
14866 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14868 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
14871 (avx512fmaskmode): Ditto.
14872 (bcstscalarsuff): Ditto.
14873 (avx512f_blendm<mode>): Ditto.
14874 (cmp_imm_predicate): Ditto.
14875 (avx512f_cmp<mode>3): Ditto.
14876 (avx512f_vec_dup<mode>): Ditto.
14877 (avx512f_vec_dup_mem<mode>): Ditto.
14878 (avx512f_vpermi2var<mode>3): Ditto.
14879 (avx512f_vpermt2var<mode>3): Ditto.
14880 (vec_init<mode>): Ditto.
14881 (avx512f_gathersi<mode>): Ditto.
14882 (*avx512f_gathersi<mode>): Ditto.
14883 (*avx512f_gathersi<mode>_2): Ditto.
14884 (avx512f_gatherdi<mode>): Ditto.
14885 (*avx512f_gatherdi<mode>): Ditto.
14886 (*avx512f_gatherdi<mode>_2): Ditto.
14887 (avx512f_scattersi<mode>): Ditto.
14888 (*avx512f_scattersi<mode>): Ditto.
14889 (avx512f_scatterdi<mode>): Ditto.
14890 (*avx512f_scatterdi<mode>): Ditto.
14891 (sseintprefix): Extened with wider modes.
14892 (VEC_GATHER_IDXSI): Ditto.
14893 (VEC_GATHER_IDXDI): Ditto.
14894 (VEC_GATHER_SRCDI): Ditto.
14896 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
14897 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14899 * config/arm/t-aprofile: New file.
14900 * config.gcc: Handle --with-multilib-list option.
14902 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
14904 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
14907 2013-10-15 Richard Biener <rguenther@suse.de>
14909 * tree-loop-distribution.c (build_empty_rdg): Inline into
14911 (rdg_flag_vertex): Inline into single user.
14912 (rdg_flag_vertex_and_dependent): Likewise.
14913 (build_rdg_partition_for_vertex): Remove processed bitmap.
14914 (rdg_build_partitions): Simplify.
14916 2013-10-15 Richard Biener <rguenther@suse.de>
14918 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
14919 Restructure forwarding through conversions and copies to
14920 avoid performing copy-propagation the wrong way. Adjust
14921 recursion invocations.
14922 (forward_propagate_addr_expr): Add argument stating if we
14923 are recursing from a single-use.
14924 (ssa_forward_propagate_and_combine): Adjust.
14926 2013-10-14 David Malcolm <dmalcolm@redhat.com>
14928 * dumpfile.h (gcc::dump_manager): New class, to hold state
14929 relating to dumpfile management.
14930 (get_dump_file_name): Remove in favor of method of dump_manager.
14931 (dump_initialized_p): Likewise.
14932 (dump_start): Likewise.
14933 (dump_finish): Likewise.
14934 (dump_switch_p): Likewise.
14935 (dump_register): Likewise.
14936 (get_dump_file_info): Likewise.
14937 * context.c (gcc::context::context): Construct the dump_manager
14939 * context.h (gcc::context::get_dumps): New.
14940 (gcc::context::m_dumps): New.
14941 * coverage.c (coverage_init): Port to dump_manager API.
14942 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
14943 (extra_dump_files_in_use): Likewise.
14944 (extra_dump_files_alloced): Likewise.
14945 (gcc::dump_manager::dump_manager): New.
14946 (dump_register): Convert to...
14947 (gcc::dump_manager::dump_register): ...method, replacing
14948 function-static next_dump with m_next_dump field.
14949 (get_dump_file_info): Convert to...
14950 (gcc::dump_manager::get_dump_file_info): ...method.
14951 (get_dump_file_name): Convert to...
14952 (gcc::dump_manager::get_dump_file_name): ...method.
14953 (dump_start): Convert to...
14954 (gcc::dump_manager::dump_start): ...method.
14955 (dump_finish): Convert to...
14956 (gcc::dump_manager::dump_finish): ...method.
14957 (dump_begin): Replace body with...
14958 (gcc::dump_manager::dump_begin): ...new method.
14959 (dump_phase_enabled_p): Convert to...
14960 (gcc::dump_manager::dump_phase_enabled_p): ...method.
14961 (dump_phase_enabled_p): Convert to...
14962 (gcc::dump_manager::dump_phase_enabled_p): ...method.
14963 (dump_initialized_p): Convert to...
14964 (gcc::dump_manager::dump_initialized_p): ...method.
14965 (dump_flag_name): Replace body with...
14966 (gcc::dump_manager::dump_flag_name): ...new method.
14967 (dump_enable_all): Convert to...
14968 (gcc::dump_manager::dump_enable_all): ...new method.
14969 (opt_info_enable_passes): Convert to...
14970 (gcc::dump_manager::opt_info_enable_passes): ...new method.
14971 (dump_switch_p_1): Convert to...
14972 (gcc::dump_manager::dump_switch_p_1): ...new method.
14973 (dump_switch_p): Convert to...
14974 (gcc::dump_manager::dump_switch_p): ...new method.
14975 (opt_info_switch_p): Port to dump_manager API.
14976 (enable_rtl_dump_file): Likewise.
14977 * opts-global.c (handle_common_deferred_options): Port to new
14979 * passes.c (pass_manager::finish_optimization_passes): Likewise.
14980 (pass_manager::register_one_dump_file): Likewise.
14981 (pass_manager::register_pass): Likewise.
14982 (pass_init_dump_file): Likewise.
14983 (pass_fini_dump_file): Likewise.
14984 * statistics.c (statistics_early_init): Likewise.
14986 2013-10-14 Richard Biener <rguenther@suse.de>
14988 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
14989 iterative_hash_canonical_type, gimple_canonical_type_hash,
14990 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
14991 gimple_register_canonical_type, print_gimple_types_stats,
14992 free_gimple_type_tables): Move to lto/lto.c
14993 (gt-gimple.h): Do not include.
14994 * gimple.h (gimple_register_canonical_type,
14995 print_gimple_types_stats, free_gimple_type_tables): Remove.
14996 * Makefile.in (GTFILES): Remove gimple.c.
14998 2013-10-14 Travis Snoozy <quandary@remstate.com>
15001 * config/msp430/msp430.c (msp430_option_override): Correct thinko
15002 scanning for msp430x targets.
15004 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
15007 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
15008 (registers_ok_for_ldd_peep): Move around.
15009 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
15010 * config/sparc/sparc.md (widening peepholes): Use it.
15012 2013-10-14 Richard Biener <rguenther@suse.de>
15014 PR middle-end/58712
15015 PR middle-end/55358
15016 * gimple.c (iterative_hash_canonical_type): Make sure to
15017 record the hash into the correct hashtable slot.
15019 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
15021 PR rtl-optimization/58662
15022 * combine.c (try_combine): Take into account death nodes on I2 when
15023 splitting a PARALLEL of two independent SETs. Fix dump message.
15025 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
15028 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
15029 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
15031 * config/sh/t-sh (sh_treg_combine.o): New entry.
15032 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
15033 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
15034 (register_sh_passes): New function. Register sh_treg_combine pass.
15035 (sh_option_override): Invoke it.
15036 (sh_canonicalize_comparison): Handle op0_preserve_value.
15037 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
15038 opportunities. Canonicalize branch condition.
15039 (nott): Allow only if pseudos can be created for non-SH2A.
15041 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
15044 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
15045 (ix86_expand_movmem): Replace copy_addr_to_reg with
15046 ix86_copy_addr_to_reg.
15047 (ix86_expand_setmem): Likewise.
15049 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
15051 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
15052 provided by ix86_fp_compare_mode instead of CCFPUmode.
15054 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
15056 * config/aarch64/arm_neon.h
15057 (vtbx<1,3>_<psu>8): Fix register constriants.
15059 2013-10-11 Jeff Law <law@redhat.com>
15061 PR tree-optimization/58640
15062 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
15063 threading paths that cross over two loop entry points.
15065 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15067 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
15068 handle vector float as well.
15069 (*vsx_le_perm_load_v4si): Likewise.
15070 (*vsx_le_perm_store_v2di): Likewise.
15071 (*vsx_le_perm_store_v4si): Likewise.
15073 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15075 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
15076 directly to circumvent subtract from splat{31} workaround.
15077 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
15079 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
15080 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
15081 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
15082 (altivec_vperm_<mode>): Convert to define_insn_and_split to
15083 separate big and little endian logic.
15084 (*altivec_vperm_<mode>_internal): New define_insn.
15085 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
15086 separate big and little endian logic.
15087 (*altivec_vperm_<mode>_uns_internal): New define_insn.
15088 (vec_permv16qi): Add little endian logic.
15090 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
15092 * doc/extend.texi (returns_nonnull): Remove arguments.
15094 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15095 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15096 Sergey Lega <sergey.s.lega@intel.com>
15097 Anna Tikhonova <anna.tikhonova@intel.com>
15098 Ilya Tocar <ilya.tocar@intel.com>
15099 Andrey Turetskiy <andrey.turetskiy@intel.com>
15100 Ilya Verbin <ilya.verbin@intel.com>
15101 Kirill Yukhin <kirill.yukhin@intel.com>
15102 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15104 * config/i386/sse.md (VI48F_256_512): New.
15105 (avx2_permvar<mode>): Change to ...
15106 (<avx2_avx512f>_permvar<mode>): This.
15108 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15109 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15110 Sergey Lega <sergey.s.lega@intel.com>
15111 Anna Tikhonova <anna.tikhonova@intel.com>
15112 Ilya Tocar <ilya.tocar@intel.com>
15113 Andrey Turetskiy <andrey.turetskiy@intel.com>
15114 Ilya Verbin <ilya.verbin@intel.com>
15115 Kirill Yukhin <kirill.yukhin@intel.com>
15116 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15118 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
15119 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
15120 * config/i386/sse.md (VI4_AVX): New.
15121 (sf2simodelower): Ditto.
15122 (sse2_cvtps2dq): Change to ...
15123 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
15125 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15126 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15127 Sergey Lega <sergey.s.lega@intel.com>
15128 Anna Tikhonova <anna.tikhonova@intel.com>
15129 Ilya Tocar <ilya.tocar@intel.com>
15130 Andrey Turetskiy <andrey.turetskiy@intel.com>
15131 Ilya Verbin <ilya.verbin@intel.com>
15132 Kirill Yukhin <kirill.yukhin@intel.com>
15133 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15135 * config/i386/sse.md (V_512): New.
15137 (vcond<V_512:mode><VF_512:mode>): Ditto.
15138 (vcond<V_512:mode><VI_512:mode>): Ditto.
15139 (vcondu<V_512:mode><VI_512:mode>): Ditto.
15141 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15142 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15143 Sergey Lega <sergey.s.lega@intel.com>
15144 Anna Tikhonova <anna.tikhonova@intel.com>
15145 Ilya Tocar <ilya.tocar@intel.com>
15146 Andrey Turetskiy <andrey.turetskiy@intel.com>
15147 Ilya Verbin <ilya.verbin@intel.com>
15148 Kirill Yukhin <kirill.yukhin@intel.com>
15149 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15151 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
15152 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
15154 (fma<mode>4): Removed condition.
15155 (fms<mode>4): Ditto.
15156 (fnma<mode>4): Ditto.
15157 (fnms<mode>4): Ditto.
15158 (fma4i_fmadd_<mode>): Ditto.
15159 (*fma_fmadd_<mode>): Ditto.
15160 (*fma_fmsub_<mode>): Ditto.
15161 (*fma_fnmadd_<mode>): Ditto.
15162 (*fma_fnmsub_<mode>): Ditto.
15163 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
15164 (*fma_fmaddsub_<mode>): Ditto.
15165 (*fma_fmsubadd_<mode>): Ditto.
15166 (*fmai_fmadd_<mode>): Ditto.
15167 (*fmai_fmsub_<mode>): Ditto.
15168 (*fmai_fnmadd_<mode>): Ditto.
15169 (*fmai_fnmsub_<mode>): Ditto.
15171 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15172 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15173 Sergey Lega <sergey.s.lega@intel.com>
15174 Anna Tikhonova <anna.tikhonova@intel.com>
15175 Ilya Tocar <ilya.tocar@intel.com>
15176 Andrey Turetskiy <andrey.turetskiy@intel.com>
15177 Ilya Verbin <ilya.verbin@intel.com>
15178 Kirill Yukhin <kirill.yukhin@intel.com>
15179 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15181 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
15182 (VI124_256): Changed to ...
15183 (VI124_256_48_512): This.
15184 (ssepackmode): Extended with wider modes.
15185 (<code><mode>3): Changed iterator.
15186 (*avx2_<code><mode>3): Ditto.
15187 (vec_pack_trunc_<mode>): Ditto.
15189 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15190 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15191 Sergey Lega <sergey.s.lega@intel.com>
15192 Anna Tikhonova <anna.tikhonova@intel.com>
15193 Ilya Tocar <ilya.tocar@intel.com>
15194 Andrey Turetskiy <andrey.turetskiy@intel.com>
15195 Ilya Verbin <ilya.verbin@intel.com>
15196 Kirill Yukhin <kirill.yukhin@intel.com>
15197 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15199 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
15200 (VI8F_256_512): Ditto.
15201 (abs<mode>2): Changed iterator.
15202 (avx2_perm<mode>): Changed to ...
15203 (<avx2_avx512f>_perm<mode>): This.
15204 (avx2_perm<mode>_1): Changed to ...
15205 (<avx2_avx512f>_perm<mode>_1): This.
15207 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15208 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15209 Sergey Lega <sergey.s.lega@intel.com>
15210 Anna Tikhonova <anna.tikhonova@intel.com>
15211 Ilya Tocar <ilya.tocar@intel.com>
15212 Andrey Turetskiy <andrey.turetskiy@intel.com>
15213 Ilya Verbin <ilya.verbin@intel.com>
15214 Kirill Yukhin <kirill.yukhin@intel.com>
15215 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15217 * config/i386/sse.md (VI48_AVX512F): New.
15218 (VI48_AVX2): Changed to ...
15219 (VI48_AVX2_48_AVX512F): This.
15220 (avx2_ashrv<mode>): Changed to ...
15221 (<avx2_avx512f>_ashrv<mode>): This.
15222 (avx2_<shift_insn>v<mode>): Changed to ...
15223 (<avx2_avx512f>_<shift_insn>v<mode>): This.
15225 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15226 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15227 Sergey Lega <sergey.s.lega@intel.com>
15228 Anna Tikhonova <anna.tikhonova@intel.com>
15229 Ilya Tocar <ilya.tocar@intel.com>
15230 Andrey Turetskiy <andrey.turetskiy@intel.com>
15231 Ilya Verbin <ilya.verbin@intel.com>
15232 Kirill Yukhin <kirill.yukhin@intel.com>
15233 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15235 * config/i386/sse.md (VI4_AVX512F): New.
15236 (VI8_AVX2_AVX512F): Ditto.
15237 (mul<mode>3): Extended with wider modes.
15238 (*<sse4_1_avx2>_mul<mode>3): Ditto.
15239 (mul<mode>3): Ditto.
15240 (vec_widen_<s>mult_odd_<mode>): Ditto.
15242 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15243 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15244 Sergey Lega <sergey.s.lega@intel.com>
15245 Anna Tikhonova <anna.tikhonova@intel.com>
15246 Ilya Tocar <ilya.tocar@intel.com>
15247 Andrey Turetskiy <andrey.turetskiy@intel.com>
15248 Ilya Verbin <ilya.verbin@intel.com>
15249 Kirill Yukhin <kirill.yukhin@intel.com>
15250 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15252 * config/i386/sse.md (VI2_AVX512F): New.
15253 (VI124_AVX512F): Ditto.
15254 (sseunpackmode): Extended with wider modes.
15255 (sseunpackfltmode): Ditto.
15256 (vec_unpacks_float_hi_<mode>): Ditto.
15257 (vec_unpacks_float_lo_<mode>): Ditto.
15258 (vec_unpacku_float_hi_<mode>): Ditto.
15259 (vec_unpacku_float_lo_<mode>): Ditto.
15260 (vec_unpacks_lo_<mode>): Ditto.
15261 (vec_unpacks_hi_<mode>): Ditto.
15262 (vec_unpacku_lo_<mode>): Ditto.
15263 (vec_unpacku_hi_<mode>): Ditto.
15265 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15266 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15267 Sergey Lega <sergey.s.lega@intel.com>
15268 Anna Tikhonova <anna.tikhonova@intel.com>
15269 Ilya Tocar <ilya.tocar@intel.com>
15270 Andrey Turetskiy <andrey.turetskiy@intel.com>
15271 Ilya Verbin <ilya.verbin@intel.com>
15272 Kirill Yukhin <kirill.yukhin@intel.com>
15273 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15275 * config/i386/i386.md (multdiv): New.
15276 (multdiv_mnemonic): Ditto.
15277 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
15278 (<sse>_vm<multdiv_mnemonic><mode>3): This.
15279 (<sse>_vmdiv<mode>3): Removed.
15281 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15282 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15283 Sergey Lega <sergey.s.lega@intel.com>
15284 Anna Tikhonova <anna.tikhonova@intel.com>
15285 Ilya Tocar <ilya.tocar@intel.com>
15286 Andrey Turetskiy <andrey.turetskiy@intel.com>
15287 Ilya Verbin <ilya.verbin@intel.com>
15288 Kirill Yukhin <kirill.yukhin@intel.com>
15289 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15291 * config/i386/sse.md (V): Extended with wider modes.
15293 (ssehalfvecmode): Ditto.
15295 (ssepackfltmode): Ditto.
15296 (avx_vec_concat<mode>): Ditto.
15297 (V_256_512): New iterator.
15298 (VF2_512_256): Ditto.
15299 (si2dfmode): New attribute.
15300 (si2dfmodelower): Ditto.
15301 (sf2dfmode): Ditto.
15302 (concat_tg_mode): Ditto.
15303 (floatv4siv4df2): Changed to ...
15304 (float<si2dfmodelower><mode>2): This.
15305 (avx_cvtps2pd256): Changed to ...
15306 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
15307 (vec_pack_trunc_v4df): Changed to ...
15308 (vec_pack_trunc_<mode>): This.
15309 (avx_vpermil<mode>): Changed to ...
15310 (<sse2_avx_avx512f>_vpermil<mode>): This.
15311 (<fixsuffix>fix_truncv8dfv8si2): New.
15312 (vec_pack_sfix_trunc_v8df): Ditto.
15313 (avx512f_rndscale<mode>): Ditto.
15314 (avx512f_roundpd512): Ditto.
15315 (vec_pack_ufix_trunc_<mode>): Updated iterator.
15317 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15318 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15319 Sergey Lega <sergey.s.lega@intel.com>
15320 Anna Tikhonova <anna.tikhonova@intel.com>
15321 Ilya Tocar <ilya.tocar@intel.com>
15322 Andrey Turetskiy <andrey.turetskiy@intel.com>
15323 Ilya Verbin <ilya.verbin@intel.com>
15324 Kirill Yukhin <kirill.yukhin@intel.com>
15325 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15327 * config/i386/i386.md (any_fix): New iterator.
15328 (fixsuffix): New attribute.
15329 * config/i386/sse.md (VF1): Extened with wider modes.
15333 (sseintvecmodelower): Ditto.
15334 (ssescalarmode): Ditto.
15335 (ssescalarnum): Ditto.
15336 (VF1_128_256): New.
15337 (ssexmmmode): Ditto.
15338 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
15339 (<sse>_rcp<mode>2): Change iterator.
15340 (rsqrt<mode>2): Ditto.
15341 (<sse>_rsqrt<mode>2): Ditto.
15342 (avx2_vec_dup<mode>): Ditto.
15343 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
15344 (round<mode>2_sfix): Ditto.
15345 (avx2_pbroadcast<mode>): Ditto.
15346 (*andnot<mode>3): Handle XI mode.
15347 (*<code><mode>3): Ditto.
15348 (AVXTOSSEMODE): Removed.
15349 (avx_vpermil<mode>): Changed to ...
15350 (<sse2_avx_avx512f>_vpermil<mode>): This.
15352 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15353 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15354 Sergey Lega <sergey.s.lega@intel.com>
15355 Anna Tikhonova <anna.tikhonova@intel.com>
15356 Ilya Tocar <ilya.tocar@intel.com>
15357 Andrey Turetskiy <andrey.turetskiy@intel.com>
15358 Ilya Verbin <ilya.verbin@intel.com>
15359 Kirill Yukhin <kirill.yukhin@intel.com>
15360 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15362 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
15363 (<sse>_comi): Ditto.
15364 (<sse>_ucomi): Ditto.
15365 (sse_cvtss2siq_2): Ditto.
15366 (sse2_cvtsd2si): Ditto.
15367 (sse2_cvtsd2siq): Ditto.
15368 (sse2_cvttsd2si): Ditto.
15369 (sse2_cvttsd2siq): Ditto.
15370 (<shift_insn><mode>3): Ditto.
15371 (sse2_cvtsi2sdq): Update constraint and prefix.
15372 (sse_cvtsi2ss): Update prefix.
15373 (sse_cvtsi2ssq): Ditto.
15375 2013-10-11 Jakub Jelinek <jakub@redhat.com>
15377 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
15378 ignore internal calls.
15380 2013-10-11 Richard Biener <rguenther@suse.de>
15382 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
15383 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
15384 TREE_OVERFLOW is set.
15386 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
15388 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
15390 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
15391 * gimple.h: Likewise.
15393 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
15395 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
15398 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
15400 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
15401 * configure: Regenerate.
15403 2013-10-11 Jakub Jelinek <jakub@redhat.com>
15405 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
15406 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
15407 formatting fixes, use pp_colon instead of pp_character (..., ':'),
15408 similarly pp_right_paren.
15409 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
15410 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
15411 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
15412 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
15414 (omp_declare_simd_clauses_equal,
15415 omp_remove_redundant_declare_simd_attrs): New functions.
15416 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
15417 (walk_tree_1): Handle new OpenMP 4.0 clauses.
15418 * tree.h (OMP_LOOP_CHECK): Define.
15419 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
15420 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
15421 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
15422 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
15423 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
15424 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
15425 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
15426 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
15427 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
15428 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
15429 OMP_CLAUSE_SIMDLEN_EXPR): Define.
15430 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
15431 (omp_remove_redundant_declare_simd_attrs): New prototype.
15432 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
15433 GIMPLE_OMP_TEAMS): New codes.
15434 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
15435 * omp-low.c (struct omp_context): Add cancel_label and cancellable
15437 (target_nesting_level): New variable.
15438 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
15439 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
15440 for collapse > 1 static schedule unless ordered.
15441 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
15442 (determine_parallel_type): Adjust get_ws_args_for caller.
15443 (install_var_field): Handle mask & 4 for double indirection.
15444 (scan_sharing_clauses): Ignore shared clause on teams construct.
15445 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
15446 (create_omp_child_function): If inside target or declare target
15447 constructs, set "omp declare target" attribute on the child function.
15448 (find_combined_for): New function.
15449 (scan_omp_parallel): Handle combined loops.
15450 (scan_omp_target, scan_omp_teams): New functions.
15451 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
15452 restrictions and set ctx->cancellable for cancellable constructs.
15453 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
15454 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
15455 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
15456 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
15457 (omp_clause_aligned_alignment): New function.
15458 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
15459 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
15460 on teams constructs. Handle user defined reductions and new
15461 OpenMP 4.0 clauses.
15462 (lower_reduction_clauses): Don't set placeholder to address of ref
15463 if it has already the right type.
15464 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
15465 (expand_parallel_call): Use the new non-_start suffixed builtins,
15466 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
15467 and GOMP_parallel_end after the call.
15468 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
15469 (expand_omp_for_init_counts): Handle combined loops.
15470 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
15472 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
15473 end of cancellable loops.
15474 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
15475 Likewise. Handle collapse > 1 loops.
15476 (expand_omp_simd): Handle combined loops.
15477 (expand_omp_for): Add inner_stmt argument, adjust callers of
15478 expand_omp_for* functions, use expand_omp_for_static*chunk even
15479 for collapse > 1 unless ordered.
15480 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
15481 of cancellable sections.
15482 (expand_omp_single): Remove need_barrier variable, just rely on
15483 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
15484 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
15485 (expand_omp_atomic_load, expand_omp_atomic_store,
15486 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
15487 (expand_omp_target): New function.
15488 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
15489 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
15490 (build_omp_regions_1): Immediately close region for
15491 GF_OMP_TARGET_KIND_UPDATE.
15492 (maybe_add_implicit_barrier_cancel): New function.
15493 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
15495 (lower_omp_single): Likewise. Add clobber after the barrier.
15496 (lower_omp_taskgroup): New function.
15497 (lower_omp_for): Handle combined loops. Adjust
15498 lower_rec_input_clauses caller. Handle cancellation.
15499 (lower_depend_clauses): New function.
15500 (lower_omp_taskreg): Lower depend clauses. Adjust
15501 lower_rec_input_clauses caller. Add clobber after the call. Handle
15503 (lower_omp_target, lower_omp_teams): New functions.
15504 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
15505 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
15506 and GOMP_cancellation_point calls.
15507 (lower_omp): Fold stmts inside of target region.
15508 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
15509 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
15510 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
15511 (BT_FN_VOID_OMPFN_PTR_UINT,
15512 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
15513 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
15514 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
15515 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
15516 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
15517 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
15518 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
15519 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
15520 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
15521 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
15522 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
15523 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
15524 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
15525 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
15526 BUILT_IN_GOMP_PARALLEL_END.
15527 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
15528 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
15529 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
15530 GF_OMP_FOR_KIND_DISTRIBUTE.
15531 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
15532 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
15533 (dump_gimple_omp_return): Print lhs if it has any.
15534 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
15535 gimple_omp_atomic_seq_cst_p.
15536 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
15537 and GIMPLE_OMP_TEAMS.
15538 * langhooks.c (lhd_omp_mappable_type): New function.
15539 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
15540 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
15542 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
15543 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
15544 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
15545 (struct gimplify_omp_ctx): Add combined_loop field.
15546 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
15547 on stmts inside of target region.
15548 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
15549 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
15550 ORT_TARGET and ORT_TARGET_DATA.
15551 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
15553 (omp_notice_threadprivate_variable): Complain about threadprivate
15554 variables in target region.
15555 (omp_notice_variable): Complain about vars with non-mappable type
15556 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
15557 (omp_check_private): Ignore ORT_TARGET* regions.
15558 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
15559 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
15560 (find_combined_omp_for): New function.
15561 (gimplify_omp_for): Handle gimplification of combined loops.
15562 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
15564 (gimplify_omp_target_update): New function.
15565 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
15566 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
15567 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
15568 (gimplify_body): If fndecl has "omp declare target" attribute, add
15569 implicit ORT_TARGET context around it.
15570 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
15571 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
15572 * tree-nested.c (convert_nonlocal_reference_stmt,
15573 convert_local_reference_stmt, convert_gimple_call): Handle
15574 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
15575 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
15576 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
15577 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
15578 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
15579 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
15580 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
15581 BUILT_IN_GOMP_LOOP_END_CANCEL,
15582 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
15583 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
15584 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
15585 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
15586 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
15587 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
15588 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
15589 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
15590 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
15591 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
15592 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
15593 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
15594 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
15595 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
15596 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
15597 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
15598 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
15599 gimple_build_omp_teams): New functions.
15600 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
15601 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
15602 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
15603 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
15604 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
15605 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
15606 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
15607 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
15608 GF_OMP_ATOMIC_SEQ_CST): New.
15609 (gimple_build_omp_taskgroup, gimple_build_omp_target,
15610 gimple_build_omp_teams): New prototypes.
15611 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
15612 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
15613 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
15614 GIMPLE_OMP_SINGLE as end of range.
15615 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
15616 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
15617 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
15618 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
15619 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
15620 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
15621 gimple_omp_target_kind, gimple_omp_target_set_kind,
15622 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
15623 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
15624 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
15625 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
15626 gimple_omp_teams_set_clauses): New inlines.
15627 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
15628 and GIMPLE_OMP_TASKGROUP.
15629 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
15630 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
15631 enum omp_clause_proc_bind_kind): New.
15632 (union omp_clause_subcode): Add depend_kind, map_kind and
15633 proc_bind_kind fields.
15634 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
15635 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
15636 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
15637 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
15638 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
15640 2013-10-10 Teresa Johnson <tejohnson@google.com>
15642 * predict.c (tree_estimate_probability): Add new parameter
15643 for estimate_bb_frequencies.
15644 (estimate_bb_frequencies): Add new parameter to force estimation.
15645 (rebuild_frequencies): When max frequency in function is small,
15646 recompute counts from frequencies.
15647 * predict.h (estimate_bb_frequencies): New parameter.
15649 2013-10-10 David Malcolm <dmalcolm@redhat.com>
15651 * ipa-inline.c (ipa_inline): Fix leak of "order" when
15652 optimizations are disabled.
15654 2013-10-10 David Malcolm <dmalcolm@redhat.com>
15656 * coverage.c (coverage_finish): Fix leak of da_file_name.
15658 2013-10-10 Jan Hubicka <jh@suse.cz>
15660 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
15661 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
15662 Bobcat and generic.
15664 2013-10-10 Jakub Jelinek <jakub@redhat.com>
15666 PR middle-end/58670
15667 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
15668 if any labels are in FALLTHRU_BB, use a special label emitted
15669 immediately after the asm goto insn rather than label_rtx
15671 (expand_asm_stmt): Adjust caller.
15672 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
15673 edge if the last insn in predecessor is a jump with single successor,
15674 but it isn't simplejump_p.
15676 2013-10-10 Richard Biener <rguenther@suse.de>
15678 PR tree-optimization/58656
15679 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
15681 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
15683 * gimplify.c: Include expr.h and tm_p.h for targets with special
15684 va-arg padding requirements.
15686 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
15688 * tree-flow.h: Move some prototypes to gimple.h.
15689 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
15690 * gimple.h: Relocate some prototypes from tree-flow.h
15691 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
15692 Move to gimplify.c.
15693 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
15694 (build_va_arg_indirect_ref): Relocate and make static.
15695 (std_gimplify_va_arg_expr): Relocate here.
15696 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
15697 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
15699 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15701 * doc/md.texi: Document the mnemonic attribute.
15703 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15706 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
15707 (set_attr_alternative x ...) when searching for user defined
15708 mnemonic attribute.
15710 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
15712 * config/alpha/alpha.c: Add gimple-ssa.h to include list.
15714 2013-10-09 Easwaran Raman <eraman@google.com>
15716 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
15717 * cfgexpand.c (defer_stack_allocation): ...use here
15718 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
15720 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
15722 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
15723 (operand_equal_for_value_replacement): New function, extracted from
15724 value_replacement and enhanced to catch more cases.
15725 (value_replacement): Use operand_equal_for_value_replacement.
15727 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
15729 * loop-doloop.c (doloop_modify, doloop_optimize): Use
15730 get_max_loop_iterations.
15732 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15734 * config/arm/aarch-common.c (arm_early_load_addr_dep):
15735 Place comment above function.
15737 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
15739 * tree-flow.h: Remove all remaining prototypes, enums and structs that
15740 are not related to tree-cfg.c.
15741 * tree-ssa-address.h: New file. Relocate prototypes.
15742 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
15743 (addr_for_mem_ref): New. Combine call to get_address_description and
15744 return addr_for_mem_ref.
15745 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
15746 * tree-ssa-live.h: Adjust prototypes.
15747 * passes.c: Include tree-ssa-live.h.
15748 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
15749 * graphite.c (graphite_transform_loops): Make static.
15750 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
15751 make_pass_graphite, pass_data_graphite_transforms,
15752 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
15753 * ipa-pure-const.c (warn_function_noreturn): Make static.
15754 (execute_warn_function_noreturn, gate_warn_function_noreturn,
15755 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
15756 Relocate from tree-cfg.c
15757 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
15759 (execute_warn_function_noreturn, gate_warn_function_noreturn,
15760 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
15761 Move to ipa-pure-const.c.
15762 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
15763 Relocate from tree-optimize.c.
15764 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
15765 make_pass_fixup_cfg): Move to tree-cfg.c.
15766 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
15767 Relocate some prototypes.
15768 * tree-data-ref.h (tree_check_data_deps) Add prototype.
15769 * tree-dump.c (dump_function_to_file): Remove prototype.
15770 Add tree-flow.h to the include file.
15771 * tree-dump.h: Remove prototype.
15772 * tree-parloops.h: New File. Add prototypes.
15773 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
15774 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
15775 from tree-ssa-loop.c.
15776 * tree-predcom.c (run_tree_predictive_commoning,
15777 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
15778 Relocate here from tree-ssa-loop.c.
15779 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
15780 ssa_name_values.release ().
15781 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
15782 (ssa_name_values): Relocate from tree-flow.h.
15783 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
15784 * tree-ssa-loop.c (run_tree_predictive_commoning,
15785 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
15786 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
15787 make_pass_graphite, pass_data_graphite_transforms,
15788 make_pass_graphite_transforms, gate_tree_parallelize_loops,
15789 tree_parallelize_loops, pass_data_parallelize_loops,
15790 make_pass_parallelize_loops): Move to other files.
15791 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
15793 * tree.h: Remove prototypes from tree-address.c.
15795 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
15797 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
15798 (struct int_tree_map): Move to tree-hasher.h
15799 (SCALE, LABEL, PERCENT): Move to gimple.h
15800 * tree-flow-inline.h: Delete. Move functions to other files.
15801 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
15802 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
15803 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
15804 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
15805 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
15806 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
15807 * tree-hasher.h: Don't include tree-flow.h.
15808 (struct int_tree_map): Relocate from tree-flow.h.
15809 * tree-sra.c (contains_view_convert_expr_p): Relocate from
15810 tree-flow-inline.h and make static.
15811 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
15812 tree-flow-inline.h.
15813 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
15814 tree-flow-inline.h and make static.
15815 * tree.h (is_global_var, may_be_aliased): Relocate from
15816 tree-flow-inline.h.
15817 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
15818 * value-prof.c: No longer include tree-flow-inline.h.
15819 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
15821 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
15823 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
15824 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
15825 (enum move_pos): Move to tree-ssa-loop-im.h
15826 * cfgloop.h: Move some prototypes.
15827 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
15828 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
15829 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
15830 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
15831 (loop_containing_stmt): Relocate from tree-flow-inline.h.
15832 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
15833 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
15834 (enum move_pos): Relocate here.
15835 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
15837 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
15838 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
15839 make_pass_lim): Relocate here from tree-ssa-loop.c.
15840 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
15842 (loop_edge_to_cancel, unloop_loops): Make static.
15843 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
15844 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
15845 (tree_complete_unroll, gate_tree_complete_unroll,
15846 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
15847 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
15848 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
15849 * tree-ssa-loop-ivopts.c: Remove local prototypes.
15850 (stmt_invariant_in_loop_p): Remove unused function.
15851 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
15852 * tree-ssa-loop-manip.h: New file. Add prototypes.
15853 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
15854 (gcov_type_to_double_int): Move to cfgloop.h.
15855 (double_int_cmp, bound_index,
15856 estimate_numbers_of_iterations_loop): Make static.
15857 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
15858 (max_loop_iterations): Factor out get_max_loop_iterations.
15859 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
15861 * tree-ssa-loop-niter.h: New file. Add prototypes.
15862 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
15863 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
15864 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
15865 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
15866 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
15867 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
15868 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
15869 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
15870 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
15871 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
15872 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
15873 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
15874 pass_data_complete_unroll, make_pass_complete_unroll,
15875 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
15876 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
15877 tree-ssa-loop-ivcanon.c.
15878 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
15879 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
15880 tree-ssa-loop-prefetch.c.
15881 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
15882 tree-ssa-loop-im.c.
15883 (get_lsm_tmp_name): Relocate and add suffix parameter.
15884 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
15885 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
15886 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
15887 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
15888 (get_estimated_loop_iterations): Factor out accessor from
15889 estimated_loop_iterations in tree-ssa-loop-niter.c.
15890 (get_max_loop_iterations): Factor out accessor from
15891 _max_loop_iterations in tree-ssa-niter.c.
15892 * loop-unroll.c (decide_unroll_constant_iterations,
15893 decide_unroll_runtime_iterations, decide_peel_simple,
15894 decide_unroll_stupid): Use new get_* accessors.
15896 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
15898 PR tree-optimization/20318
15899 * doc/extend.texi (returns_nonnull): New function attribute.
15900 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
15902 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
15903 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
15905 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
15907 PR middle-end/58570
15908 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
15909 false if both components are bitfields.
15911 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
15913 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
15914 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
15915 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
15916 * config/aarch64/aarch64.h
15917 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
15918 * config/aarch64/aarch64-simd-builtins.def
15919 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
15921 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
15923 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
15925 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
15927 * config/aarch64/arm_neon.h (vdiv_f64): Added.
15929 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
15931 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
15932 (vneg_f64): New intrinsic.
15933 (vneg_s8): Asm replaced with C.
15934 (vneg_s16): Likewise.
15935 (vneg_s32): Likewise.
15936 (vneg_s64): New intrinsic.
15937 (vnegq_f32): Asm replaced with C.
15938 (vnegq_f64): Likewise.
15939 (vnegq_s8): Likewise.
15940 (vnegq_s16): Likewise.
15941 (vnegq_s32): Likewise.
15942 (vnegq_s64): Likewise.
15944 2013-10-09 Renlin Li <Renlin.Li@arm.com>
15946 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
15948 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15950 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
15951 packed stack special handling.
15952 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
15953 back to fixed stack slots for FPRs saved due to stdarg.
15955 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15957 * config/s390/s390.c (s390_frame_info): Restructure function.
15959 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15961 * config/s390/s390.c (struct s390_frame_layout): New field
15963 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
15964 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
15965 regs_ever_clobbered to char*.
15966 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
15967 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
15968 (s390_register_info): Enable FPR save slots. Move/Copy some
15969 functionality into ...
15970 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
15971 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
15973 (s390_frame_info): Do gpr slot allocation here now. stdarg does
15974 not imply a stack frame.
15975 (s390_init_frame_layout): Remove variable clobbered_regs.
15976 (s390_update_register_info): Remove function.
15977 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
15978 cannot be used for register renaming.
15979 (s390_hard_regno_scratch_ok): New function.
15980 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
15981 (s390_initial_elimination_offset): Change offset calculation of
15982 the return address pointer.
15983 (save_gprs): Deal with only r6 being saved from the call-saved regs.
15984 (restore_gprs): Set frame related flag.
15985 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
15986 (s390_emit_prologue): Call s390_register_info instead of
15987 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
15988 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
15989 (s390_optimize_prologue): Call s390_optimize_register_info.
15990 Try to remove also FPR slot save/restore INSNs. Remove frame
15991 related flags from restore INSNs.
15993 2013-10-08 DJ Delorie <dj@redhat.com>
15995 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
15998 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
15999 avoid conflict with the MI use of %c.
16000 * config/rl78/rl78-real.md: change %c to %C throughout.
16001 * config/rl78/rl78-virt.md: Likewise.
16003 2013-10-08 Jan Hubicka <jh@suse.cz>
16005 * config/i386/i386.c (ix86_option_override_internal): Switch
16006 to SSE math for -ffast-math when target ISA supports SSE2.
16008 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
16010 * tree-flow.h: Remove some prototypes.
16011 * tree.h: Remove some protypes, add a couple.
16012 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
16013 using_eh_for_cleanups_p): Add interface routines for front ends.
16014 * tree-eh.h: New file. Add protoptyes.
16015 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
16016 (add_stmt_to_eh_lp_fn): Make static.
16017 (lower_try_finally): Use new using_eh_for_cleanups_p.
16018 * emit-rtl.c: Include tree-eh.h.
16019 * gimple.h: Include tree-eh.h.
16021 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
16023 PR tree-optimization/58480
16024 * tree-vrp.c (infer_nonnull_range): New function.
16025 (infer_value_range): Call infer_nonnull_range.
16027 2013-10-08 Dehao Chen <dehao@google.com>
16029 PR tree-optimization/58619
16030 * tree-inline.c (copy_phis_for_bb): Combine location data
16033 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16036 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
16037 RTX_FRAME_RELATED_P on INSN.
16039 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16041 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
16042 (altivec_expand_vec_perm_const): Call it.
16044 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16046 * config/rs6000/vector.md (mov<mode>): Emit permuted move
16047 sequences for LE VSX loads and stores at expand time.
16048 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
16050 * config/rs6000/rs6000.c (rs6000_const_vec): New.
16051 (rs6000_gen_le_vsx_permute): New.
16052 (rs6000_gen_le_vsx_load): New.
16053 (rs6000_gen_le_vsx_store): New.
16054 (rs6000_gen_le_vsx_move): New.
16055 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
16056 (*vsx_le_perm_load_v4si): New.
16057 (*vsx_le_perm_load_v8hi): New.
16058 (*vsx_le_perm_load_v16qi): New.
16059 (*vsx_le_perm_store_v2di): New.
16060 (*vsx_le_perm_store_v4si): New.
16061 (*vsx_le_perm_store_v8hi): New.
16062 (*vsx_le_perm_store_v16qi): New.
16063 (*vsx_xxpermdi2_le_<mode>): New.
16064 (*vsx_xxpermdi4_le_<mode>): New.
16065 (*vsx_xxpermdi8_le_V8HI): New.
16066 (*vsx_xxpermdi16_le_V16QI): New.
16067 (*vsx_lxvd2x2_le_<mode>): New.
16068 (*vsx_lxvd2x4_le_<mode>): New.
16069 (*vsx_lxvd2x8_le_V8HI): New.
16070 (*vsx_lxvd2x16_le_V16QI): New.
16071 (*vsx_stxvd2x2_le_<mode>): New.
16072 (*vsx_stxvd2x4_le_<mode>): New.
16073 (*vsx_stxvd2x8_le_V8HI): New.
16074 (*vsx_stxvd2x16_le_V16QI): New.
16076 2013-10-07 Renlin Li <Renlin.Li@arm.com>
16078 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
16080 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16082 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
16083 loop to work also for 31bit ABI.
16084 Save the stack pointer for frame_size > 0.
16086 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16088 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
16089 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
16090 constraint letters from expanders.
16091 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
16092 retry count to general_operand.
16093 ("tabort"): Give operand 0 a mode.
16094 ("tabort_1"): Add mode and constraint letter for operand 0.
16095 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
16097 2013-10-04 Jeff Law <law@redhat.com>
16099 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
16101 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
16103 (thread_across_edge): Here. Call it.
16105 2013-10-04 Cary Coutant <ccoutant@google.com>
16107 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
16108 discarding a location list expression (or a piece of one).
16110 2013-10-03 Jan Hubicka <jh@suse.cz>
16112 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
16113 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
16114 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
16116 2013-10-03 Jan Hubicka <jh@suse.cz>
16118 * config/i386/i386.c (ix86_option_override_internal): Do not enable
16119 accumulate-outgoing-args when producing unwind info.
16121 2013-10-03 Wei Mi <wmi@google.com>
16123 * lra-constraints.c (insert_move_for_subreg): New function
16124 extracted from simplify_operand_subreg.
16125 (simplify_operand_subreg): Add reload for paradoxical subreg.
16127 2013-10-03 Rong Xu <xur@google.com>
16129 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
16130 the candidate of builtin_expect such that we should fix the
16131 size/time estimation.
16132 (estimate_function_body_sizes): Do the acutally size/time fix-up
16133 for builtin_expect.
16135 2013-10-03 Rong Xu <xur@google.com>
16137 * predict.c (tree_predict_by_opcode): Get the probability
16138 for builtin_expect from param builtin_expect_probability.
16139 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
16140 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
16141 * doc/invoke.texi: Add documentation for builtin-expect-probability.
16143 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
16146 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
16147 * calls.c (alloca_call_p): Use get_callee_fndecl.
16148 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
16149 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
16151 (vrp_visit_stmt): Remove duplicated code.
16153 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
16155 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
16156 ceildf2, btruncdf2, instead of vsx_* name.
16158 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
16159 iterators to only do V2DF and V4SF here. Move the DF code to
16160 rs6000.md where it is combined with SF mode. Replace <VSv> with
16161 just 'v' since only vector operations are handled with these insns
16162 after moving the DF support to rs6000.md.
16163 (vsx_sub<mode>3): Likewise.
16164 (vsx_mul<mode>3): Likewise.
16165 (vsx_div<mode>3): Likewise.
16166 (vsx_fre<mode>2): Likewise.
16167 (vsx_neg<mode>2): Likewise.
16168 (vsx_abs<mode>2): Likewise.
16169 (vsx_nabs<mode>2): Likewise.
16170 (vsx_smax<mode>3): Likewise.
16171 (vsx_smin<mode>3): Likewise.
16172 (vsx_sqrt<mode>2): Likewise.
16173 (vsx_rsqrte<mode>2): Likewise.
16174 (vsx_fms<mode>4): Likewise.
16175 (vsx_nfma<mode>4): Likewise.
16176 (vsx_copysign<mode>3): Likewise.
16177 (vsx_btrunc<mode>2): Likewise.
16178 (vsx_floor<mode>2): Likewise.
16179 (vsx_ceil<mode>2): Likewise.
16180 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
16181 (vsx_sminsf3): Likewise.
16182 (vsx_fmadf4): Likewise.
16183 (vsx_fmsdf4): Likewise.
16184 (vsx_nfmadf4): Likewise.
16185 (vsx_nfmsdf4): Likewise.
16186 (vsx_cmpdf_internal1): Likewise.
16188 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
16189 simpler to select whether a target has SPE or traditional floating
16190 point support in iterators.
16191 (TARGET_DF_SPE): Likewise.
16192 (TARGET_SF_FPR): Likewise.
16193 (TARGET_DF_FPR): Likewise.
16194 (TARGET_SF_INSN): Macros to say whether floating point support
16195 exists for a given operation for expanders.
16196 (TARGET_DF_INSN): Likewise.
16198 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
16199 combining of SF/DF mode operations, using both traditional and VSX
16207 (abs<mode>2): Combine SF/DF modes using traditional floating point
16208 instructions. Add support for using the upper DF registers with
16209 VSX support, and SF registers with power8-vector support. Update
16210 expanders for operations supported by both the SPE and traditional
16211 floating point units.
16212 (abs<mode>2_fpr): Likewise.
16213 (nabs<mode>2): Likewise.
16214 (nabs<mode>2_fpr): Likewise.
16215 (neg<mode>2): Likewise.
16216 (neg<mode>2_fpr): Likewise.
16217 (add<mode>3): Likewise.
16218 (add<mode>3_fpr): Likewise.
16219 (sub<mode>3): Likewise.
16220 (sub<mode>3_fpr): Likewise.
16221 (mul<mode>3): Likewise.
16222 (mul<mode>3_fpr): Likewise.
16223 (div<mode>3): Likewise.
16224 (div<mode>3_fpr): Likewise.
16225 (sqrt<mode>3): Likewise.
16226 (sqrt<mode>3_fpr): Likewise.
16227 (fre<Fs>): Likewise.
16228 (rsqrt<mode>2): Likewise.
16229 (cmp<mode>_fpr): Likewise.
16230 (smax<mode>3): Likewise.
16231 (smin<mode>3): Likewise.
16232 (smax<mode>3_vsx): Likewise.
16233 (smin<mode>3_vsx): Likewise.
16234 (negsf2): Delete SF operations that are merged with DF.
16235 (abssf2): Likewise.
16236 (addsf3): Likewise.
16237 (subsf3): Likewise.
16238 (mulsf3): Likewise.
16239 (divsf3): Likewise.
16241 (fmasf4_fpr): Likewise.
16242 (fmssf4_fpr): Likewise.
16243 (nfmasf4_fpr): Likewise.
16244 (nfmssf4_fpr): Likewise.
16245 (sqrtsf2): Likewise.
16246 (rsqrtsf_internal1): Likewise.
16247 (smaxsf3): Likewise.
16248 (sminsf3): Likewise.
16249 (cmpsf_internal1): Likewise.
16250 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
16251 (negdf2): Delete DF operations that are merged with SF.
16252 (absdf2): Likewise.
16253 (nabsdf2): Likewise.
16254 (adddf3): Likewise.
16255 (subdf3): Likewise.
16256 (muldf3): Likewise.
16257 (divdf3): Likewise.
16259 (rsqrtdf_internal1): Likewise.
16260 (fmadf4_fpr): Likewise.
16261 (fmsdf4_fpr): Likewise.
16262 (nfmadf4_fpr): Likewise.
16263 (nfmsdf4_fpr): Likewise.
16264 (sqrtdf2): Likewise.
16265 (smaxdf3): Likewise.
16266 (smindf3): Likewise.
16267 (cmpdf_internal1): Likewise.
16268 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
16269 (btrunc<mode>2): Delete separate expander, and combine with the
16270 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
16271 (btrunc<mode>2_fpr): Likewise.
16272 (ceil<mode>2): Likewise.
16273 (ceil<mode>2_fpr): Likewise.
16274 (floor<mode>2): Likewise.
16275 (floor<mode>2_fpr): Likewise.
16276 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
16277 Add support for using the upper registers with VSX and
16278 power8-vector. Move insns to be closer to the define_expands. On
16279 VSX systems, prefer the traditional form of FMA over the VSX
16280 version, since the traditional form allows the target not to
16281 overlap with the inputs.
16282 (fms<mode>4_fpr): Likewise.
16283 (nfma<mode>4_fpr): Likewise.
16284 (nfms<mode>4_fpr): Likewise.
16286 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16287 Richard Earnshaw <richard.earnshaw@arm.com>
16289 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
16290 (struct mult_cost_table): Likewise.
16291 (struct mem_cost_table): Likewise.
16292 (struct fp_cost_table): Likewise.
16293 (struct vector_cost_table): Likewise.
16294 (cpu_cost_table): Likewise.
16295 * config/arm/arm.opt (mold-rts-costs): New option.
16296 (mnew-generic-costs): Likewise.
16297 * config/arm/arm.c (generic_extra_costs): New table.
16298 (cortexa15_extra_costs): Likewise.
16299 (arm_slowmul_tune): Use NULL as new costs.
16300 (arm_fastmul_tune): Likewise.
16301 (arm_strongarm_tune): Likewise.
16302 (arm_xscale_tune): Likewise.
16303 (arm_9e_tune): Likewise.
16304 (arm_v6t2_tune): Likewise.
16305 (arm_cortex_a5_tune): Likewise.
16306 (arm_cortex_a9_tune): Likewise.
16307 (arm_v6m_tune): Likewise.
16308 (arm_fa726te_tune): Likewise.
16309 (arm_cortex_a15_tune): Use cortex15_extra_costs.
16310 (arm_cortex_tune): Use generict_extra_costs.
16311 (shifter_op_p): New function.
16312 (arm_unspec_cost): Likewise.
16313 (LIBCALL_COST): Define.
16314 (arm_new_rtx_costs): New function.
16315 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
16316 table is available. Use old costs otherwise unless mnew-generic-costs
16318 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
16319 (cpu_cost_table): Declare.
16321 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
16324 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
16325 (*subs_mul_imm_<mode>)
16326 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
16327 (*sub_<shift>_<mode>)
16328 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
16329 Remove k constraint.
16331 2013-10-03 Ian Bolton <ian.bolton@arm.com>
16333 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
16335 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
16337 2013-10-02 Teresa Johnson <tejohnson@google.com>
16339 * predict.c (probably_never_executed): New function.
16340 (probably_never_executed_bb_p): Invoke probably_never_executed.
16341 (probably_never_executed_edge_p): Ditto.
16342 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
16343 Treat profile insanities conservatively.
16345 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
16347 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
16349 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
16351 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
16352 use it. Use smaller increase for scratch. Don't increase reject
16353 for early clobber scratch.
16354 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
16355 setting eliminated regs except setting fp from hfp.
16356 (lra_eliminate): Check lra_insn_recog_data on NULL.
16358 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16361 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
16362 setting -mvsx-timode by default until the underlying problem is fixed.
16363 (RS6000_CPU, power7 defaults): Likewise.
16365 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
16367 * config/x-linux (host-linux.o): Remove header dependencies.
16368 Use $(COMPILE) and $(POSTCOMPILE).
16369 * config/t-linux-android (linux-android.o): Ditto.
16371 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
16373 * Makefile.in (expmed.o-warn): Remove.
16375 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
16377 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
16378 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
16380 2013-10-02 Teresa Johnson <tejohnson@google.com>
16382 * dojump.c (do_jump_1): Divide probability between
16383 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
16385 2013-10-02 Tom Tromey <tromey@redhat.com>
16387 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
16389 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
16391 * tree-flow.h: Remove some prototypes.
16392 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
16393 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
16394 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
16395 mark_virtual_phi_result_for_renaming): Relocate here.
16396 * tree-into-ssa.h: Add prototypes.
16397 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
16398 single_pred_before_succ_order.
16399 (blocks_in_phiopt_order): Rename and move to cfganal.c.
16400 (nonfreeing_call_p) Move to gimple.c.
16401 * cfganal.c (single_pred_before_succ_order): Move and renamed from
16403 * basic-block.h (single_pred_before_succ_order): Add prototype.
16404 * gimple.c (nonfreeing_call_p): Relocate here.
16405 * gimple.h: Add prototype.
16406 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
16407 * tree-ssa-dom.h: New file. Relocate prototypes here.
16408 * tree-ssa.h: Include tree-ssa-dom.h.
16410 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
16412 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
16413 Use $(COMPILE) and $(POSTCOMPILE).
16415 * config/alpha/x-alpha (driver-alpha.o): Ditto.
16417 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
16419 * tree-flow.h: Remove some prototypes.
16420 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
16421 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
16422 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
16423 propagate_tree_value*): Move from here to...
16424 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
16425 propagate_tree_value*): Relocate here.
16426 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
16427 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
16428 * gimple-fold.c: Remove gimple-fold.h from include list.
16429 * tree-vrp.c: Remove gimple-fold.h from include list.
16430 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
16431 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
16432 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
16433 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
16434 * sese.c: Add tree-ssa-propagate.h to include list.
16436 2013-10-02 Richard Biener <rguenther@suse.de>
16438 * tree-loop-distribution.c: Include tree-vectorizer.h for
16439 find_loop_location.
16440 (enum partition_kind): Remove PKIND_REDUCTION.
16441 (struct partition_s): Remove has_writes member, add reduction_p member.
16442 (partition_alloc): Adjust.
16443 (partition_builtin_p): Likewise.
16444 (partition_has_writes): Remove.
16445 (partition_reduction_p): New function.
16446 (partition_merge_into): Likewise.
16447 (generate_code_for_partition): Commonize builtin partition
16449 (rdg_cannot_recompute_vertex_p): Remove.
16450 (already_processed_vertex_p): Likewise.
16451 (rdg_flag_vertex): Do not set has_writes.
16452 (classify_partition): Adjust.
16453 (rdg_build_partitions): Do not set has_writes, treat all
16454 partitions as useful.
16455 (distribute_loop): Record number of library calls generated. Adjust.
16456 (tree_loop_distribution): Report number of loops and library
16457 calls generated as opt-info.
16459 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
16461 * tree-flow.h: Include new .h files. Move prototypes.
16462 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
16463 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
16464 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
16465 * tree-pretty-print.h: Add prototypes from tree-flow.h.
16466 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
16467 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
16468 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
16469 * tree.h (get_ref_base_and_extent): Move prototype out.
16470 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
16472 * gimple-low.h: New File. Add prototypes from tree-flow.h.
16473 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
16474 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
16475 * tree-scalar-evolution.c: Include tree.h.
16476 * sese.c: Include tree.h.
16477 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
16478 * dwarf2out.c: Include tree-dfa.h.
16479 * tree-chrec.c: Include tree.h.
16480 * tree-data-ref.c: Include tree.h.
16482 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
16484 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
16487 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16489 * config/t-sol2 (sol2-c.o): Remove header dependencies.
16490 Use $(COMPILE) and $(POSTCOMPILE).
16491 (sol2-cxx.o): Likewise.
16492 (sol2-stubs.o): Likewise.
16493 (sol2.o): Likewise.
16494 * config/x-solaris (host-solaris.o): Likewise.
16496 * config/sparc/t-sparc (sparc.o): Remove.
16497 (sparc-c.o): Remove header dependencies.
16498 Use $(COMPILE) and $(POSTCOMPILE).
16499 * config/sparc/x-sparc: Likewise.
16501 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
16503 * config/arc/arc-opts.h: Add 2013 to Copyright years.
16504 * config/arc/arc700.md: Likewise.
16505 * config/arc/arc-modes.def: Likewise.
16506 * config/arc/arc-simd.h: Likewise.
16507 * config/arc/t-arc-uClibc: Likewise.
16508 * config/arc/t-arc-newlib: Likewise.
16510 2013-10-02 Renlin Li <renlin.li@arm.com>
16512 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
16514 (aarch64_expand_epilogue): Likewise.
16516 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16517 Yufeng Zhang <yufeng.zhang@arm.com>
16519 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
16521 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
16522 'base_in' represent a conversion and legal_cast_p_1 holds; set
16523 'base_in' with the returned value from get_unwidened.
16525 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16527 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
16528 plus_constant is not used.
16530 2013-10-01 Wei Mi <wmi@google.com>
16532 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
16533 * config/i386/i386.md: Add define_peephole2 to
16534 break partial reg stall for cvtss2sd/cvtsd2ss.
16536 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
16538 * config/arc/arc.c (pass_arc_ifcvt::clone):
16539 Update for ctxt_ -> m_ctxt change.
16541 2013-10-01 Jeff Law <law@redhat.com>
16543 * tree-ssa-threadupdate.c (struct redirection_data): Delete
16544 outgoing_edge and intermediate_edge fields. Instead store the path.
16545 (redirection_data::hash): Hash on the last edge's destination index.
16546 (redirection_data::equal): Check the entire thread path.
16547 (lookup_redirectio_data): Corresponding changes.
16548 (create_edge_and_update_destination_phis): Likewise.
16549 (thread_single_edge): Likewise.
16551 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
16552 Diego Novillo <dnovillo@google.com>
16554 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
16555 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
16556 (vld32wh_insn, vld32wl_insn): Delete commented-out old
16557 versions of these patterns.
16559 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
16560 (__builtin_arc_aligned): Likewise.
16562 * config/arc/arc.md: Expand adc_0 comment stating the intended
16563 purpose and why it isn't ready.
16564 Replace commented out call_value_via_label_mixed with a
16565 plain comment about bl_s.
16567 * config/arc/arc.c (stdio.h): Don't include directly.
16568 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
16569 Remove if (1) condition.
16570 (arc_encode_section_info): Fix comment.
16572 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
16574 * config/arc/arc.c (arc_conditional_register_usage):
16575 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
16576 Also set reg_alloc_order for DMA config regs.
16578 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
16579 Jeremy Bennett <jeremy.bennett@embecosm.com>
16581 * doc/install.texi (--with-cpu): Mention ARC.
16582 (arc-*-elf32): New paragraph.
16583 (arc-linux-uclibc): Likewise.
16584 * doc/md.texi (Machine Constraints): Add ARC part.
16585 * doc/invoke.texi: (menu): Add ARC Options.
16586 (Machine Dependent Options) <ARC Options>: Add synopsis.
16587 (node ARC Options): Add.
16588 * doc/extend.texi (long_call / short_call attribute): Add ARC.
16589 (ARC Built-in Functions): New section defining
16590 generic ARC built-in functions.
16591 (ARC SIMD Built-in Functions): New section defining SIMD specific
16592 built-in functions.
16593 (Declaring Attributes of Functions): Extended
16594 description of short_call and long_call attributes for ARC and
16595 added index entries.
16597 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
16598 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
16599 Joern Rennecke <joern.rennecke@embecosm.com>
16600 Muhammad Khurram Riaz <khurram.riaz@arc.com>
16601 Brendan Kehoe <brendan@zen.org>
16602 Michael Eager <eager@eagercon.com>
16603 Simon Cook <simon.cook@embecosm.com>
16604 Jeremy Bennett <jeremy.bennett@embecosm.com>
16606 * config/arc, common/config/arc: New directories.
16608 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
16609 Brendan Kehoe <brendan@zen.org>
16610 Simon Cook <simon.cook@embecosm.com>
16612 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
16614 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
16616 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
16617 * tree-ssa-coalesce.h: New. Move prototype to here.
16618 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
16619 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
16620 (gimple_can_coalesce_p): Move to...
16621 * gimple.c (gimple_can_coalesce_p): Here.
16623 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
16625 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
16626 (dump_decl_set): Move to gimple.c.
16627 * gimple.h: Don't include tree-ssa-operands.h.
16628 (dump_decl_set): Add prototype.
16629 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
16630 Move to gimple-ssa.h.
16631 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
16632 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
16633 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
16634 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
16635 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
16637 (dump_decl_set): Relocate here.
16638 * gimple-ssa.h: New file.
16639 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
16640 Relocate from gimple.h.
16641 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
16642 * tree-ssa-operands.c (swap_ssa_operands): Rename from
16643 swap_tree_operands and remove non-ssa path.
16644 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
16645 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
16647 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
16648 vect_is_simple_reduction_1): Use swap_ssa_operands.
16649 * tree-flow.h: Move various prototypes to tree-phinodes.h.
16650 (enum need_phi_state): Move to tree-into-ssa.c.
16651 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
16652 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
16653 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
16654 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
16655 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
16656 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
16657 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
16658 num_imm_uses): Move to ssa-iterators.h.
16659 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
16660 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
16662 (op_iter_done, op_iter_next_def, op_iter_next_tree,
16663 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
16664 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
16665 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
16666 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
16667 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
16668 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
16669 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
16670 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
16671 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
16672 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
16673 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
16674 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
16675 (set_phi_nodes): Move to tree-phinodes.h.
16676 * tree-ssa-operands.h (enum ssa_op_iter_type,
16677 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
16678 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
16679 (dump_decl_set): Remove prototype.
16680 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
16681 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
16682 (set_phi_nodes): Relocate from tree-flow-inline.h.
16683 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
16685 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
16686 include list. Temporarily add gimple.h to include list.
16687 * ssa-iterators.h: New file.
16688 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
16689 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
16690 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
16691 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
16692 Relocate from tree-ssa-operands.h.
16693 (delink_imm_use, link_imm_use_to_list, link_imm_use,
16694 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
16695 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
16696 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
16697 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
16698 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
16699 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
16700 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
16701 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
16702 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
16703 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
16704 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
16705 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
16706 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
16707 Relocate from tree-flow-inline.h.
16708 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
16710 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
16713 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
16714 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
16715 Insert '\t' to output template.
16716 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
16717 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
16718 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
16719 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
16721 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
16723 * doc/install.texi (Host/target specific installation notes for GCC):
16724 Put @anchor before @heading.
16725 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
16726 Use @email for email addresses.
16728 2013-10-01 Jeff Law <law@redhat.com>
16730 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
16731 a vec. Only delete the path if we create one without successfully
16732 registering a jump thread.
16733 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
16735 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
16736 (paths): New vector of jump threading paths.
16737 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
16738 (THREAD_PATH): New accessor macro for the entire thread path.
16739 (lookup_redirection_data): Get intermediate and final outgoing edge
16740 from the thread path.
16741 (create_edge_and_update_destination_phis): Copy the threading path.
16742 (ssa_fix_duplicate_block_edges): Get edges and block types from the
16743 jump threading path.
16744 (ssa_redirect_edges): Get edges and block types from the jump threading
16745 path. Free the path vector.
16746 (thread_block): Get edges from the jump threading path. Look at the
16747 entire path to see if we thread to a loop exit. If we cancel a jump
16748 thread request, then free the path vector.
16749 (thread_single_edge): Get edges and block types from the jump threading
16750 path. Free the path vector.
16751 (thread_through_loop_header): Get edges and block types from the jump
16752 threading path. Free the path vector.
16753 (mark_threaded_blocks): Iterate over the vector of paths and store
16754 the path on the appropriate edge. Get edges and block types from the
16755 jump threading path.
16756 (mark_threaded_blocks): Get edges and block types from the jump
16757 threading path. Free the path vector.
16758 (thread_through_all_blocks): Use the vector of paths rather than
16759 a vector of 3-edge sets.
16760 (register_jump_thread): Accept pointer to a path vector rather
16761 than the path vector itself. Store the path vector for later use.
16764 2013-10-01 Jakub Jelinek <jakub@redhat.com>
16765 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16768 * config/s390/s390.c (s390_split_branches): Modify check for table
16770 (s390_chunkify_start): Rearrange table jump insn check in order to
16771 deal with compare and branch insns correctly.
16773 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
16777 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
16778 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
16779 define_insn_and_split.
16780 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
16781 (shiftsi3_compare): New pattern.
16782 (rrx): New pattern.
16783 * config/arm/unspecs.md (UNSPEC_RRX): New.
16785 2013-10-01 Alan Modra <amodra@gmail.com>
16787 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
16788 casing inout operands.
16790 2013-10-01 Richard Biener <rguenther@suse.de>
16792 PR tree-optimization/58553
16793 * tree-loop-distribution.c (struct partition_s): Add niter member.
16794 (classify_partition): Populate niter member for the partition
16795 and properly identify whether the relevant store happens before
16796 or after the loop exit.
16797 (generate_memset_builtin): Use niter member from the partition.
16798 (generate_memcpy_builtin): Likewise.
16800 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
16802 * vec.h (vec_prefix, vec): Prefix member names with "m_".
16803 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
16805 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
16807 * basic-block.h (edge_list): Prefix member names with "m_".
16808 * context.h (context): Likewise.
16809 * domwalk.h (dom_walker): Likewise.
16810 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
16811 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
16812 * hash-table.h (hash_table): Likewise.
16813 * machmode.h (bit_field_mode_iterator): Likewise.
16814 * pass_manager.h (pass_list): Likewise.
16815 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
16816 * tree-pass.h (pass_data): Likewise.
16817 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
16818 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
16819 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
16820 * asan.c (pass_data_asan): Update accordingly.
16821 * cfganal.c (control_dependences::find_control_dependence): Likewise.
16822 (control_dependences::control_dependences): Likewise.
16823 (control_dependences::~control_dependences): Likewise.
16824 (control_dependences::~control_dependences): Likewise.
16825 (control_dependences::get_edges_dependent_on): Likewise.
16826 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
16827 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
16828 * context.c (gcc::context::context): Likewise.
16829 * cprop.c (pass_rtl_cprop::clone): Likewise.
16830 * domwalk.c (dom_walker::walk): Likewise.
16831 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
16832 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
16833 * mode-switching.c (pass_mode_switching::clone): Likewise.
16834 * passes.c (opt_pass::opt_pass): Likewise.
16835 (pass_manager::pass_manager): Likewise.
16836 * predict.c (pass_strip_predict_hints::clone): Likewise.
16837 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
16838 (pass_split_all_insns::clone): Likewise.
16839 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
16841 (bit_field_mode_iterator::next_mode): Likewise.
16842 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
16843 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
16844 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
16845 * tree-complex.c (pass_lower_complex::clone): Likewise.
16846 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
16847 * tree-object-size.c (pass_object_sizes::clone): Likewise.
16848 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
16849 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
16850 (pass_fold_builtins::clone): Likewise.
16851 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
16852 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
16853 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
16854 (pass_cd_dce::clone): Likewise.
16855 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
16856 (pass_phi_only_cprop::clone): Likewise.
16857 * tree-ssa-dse.c (pass_dse::clone): Likewise.
16858 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
16859 * tree-ssa-loop.c (pass_lim::clone): Likewise.
16860 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
16861 * tree-ssa-pre.c (pass_fre::clone): Likewise.
16862 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
16863 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
16864 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
16865 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
16866 * tree-vrp.c (pass_vrp::clone): Likewise.
16867 * tsan.c (pass_tsan::clone): Likewise.
16869 2013-09-30 Jakub Jelinek <jakub@redhat.com>
16871 PR middle-end/58564
16872 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
16873 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
16875 PR middle-end/58564
16876 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
16877 optimization, punt if sign_bit_p looked through any zero extension.
16879 2013-09-30 Teresa Johnson <tejohnson@google.com>
16881 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
16882 Update redirected out edge count in joiner case.
16883 (ssa_redirect_edges): Common the joiner and non-joiner cases
16884 so that joiner case gets profile updates.
16886 2013-09-30 Richard Biener <rguenther@suse.de>
16888 PR tree-optimization/58554
16889 * tree-loop-distribution.c (classify_partition): Require
16890 unconditionally executed stores for memcpy and memset recognition.
16891 (tree_loop_distribution): Calculate dominance info.
16893 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
16895 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
16896 (NO_PROFILE_COUNTERS): Likewise.
16897 (PROFILE_HOOK): Likewise.
16898 (FUNCTION_PROFILER): Likewise.
16899 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
16901 2013-09-30 Iain Sandoe <iain@codesourcery.com>
16903 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
16904 calls and defines in TARGET_MACHO conditional.
16905 (load_macho_picbase_di): Likewise.
16906 (reload_macho_picbase): Likewise.
16907 (reload_macho_picbase_si): Likewise.
16908 (reload_macho_picbase_di): Likewise.
16909 (nonlocal_goto_receiver): Likewise.
16911 2013-09-30 Nick Clifton <nickc@redhat.com>
16913 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
16914 that use the MSP430X ISA.
16915 (msp430_option_override): Scan -mmcu command line option for any
16916 MCU name that supports the MSP430X ISA.
16917 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
16918 -mmcu options which enable the MSP430X ISA.
16920 2013-09-30 Richard Biener <rguenther@suse.de>
16922 PR middle-end/58532
16923 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
16924 before looking for setjmp-like calls.
16926 2013-09-29 Iain Sandoe <iain@codesourcery.com>
16929 * config/darwin-protos.h (machopic_get_function_picbase): New.
16930 * config/darwin.c (machopic_get_function_picbase): New.
16931 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
16932 label for a new func. (load_macho_picbase_di): Likewise.
16933 (reload_macho_picbase): New expand.
16934 (reload_macho_picbase_si): New insn.
16935 (reload_macho_picbase_di): New insn.
16936 (nonlocal_goto_receiver): New define and split.
16937 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
16938 (unspecv enum): Add UNSPECV_NLGR.
16940 2013-09-29 Iain Sandoe <iain@codesourcery.com>
16942 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
16943 that altivec registers are correctly sized on Darwin.
16945 2013-09-29 Iain Sandoe <iain@codesourcery.com>
16947 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
16948 darwin-driver.o): Use COMPILE and POSTCOMPILE.
16949 * config/x-darwin (host-darwin.o): Likewise.
16950 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
16951 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
16952 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
16954 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
16956 * doc/invoke.texi: Fix usage of @tie{} command.
16958 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
16960 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
16962 2013-09-28 Jan Hubicka <jh@suse.cz>
16964 * config/i386/x86-tune.def: Add documentation for each of the options;
16967 2013-09-28 Jan Hubicka <jh@suse.cz>
16969 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
16971 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
16972 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
16973 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
16974 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
16975 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
16977 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
16979 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
16980 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
16981 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
16982 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
16983 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
16984 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
16985 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
16986 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
16987 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
16988 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
16989 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
16990 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
16991 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
16992 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
16993 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
16994 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
16995 gimple.h, godump.c, graphite-clast-to-gimple.c,
16996 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
16997 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
16998 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
16999 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
17000 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
17001 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
17002 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
17003 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
17004 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
17005 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
17006 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
17007 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
17008 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
17009 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
17010 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
17011 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
17012 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
17013 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
17014 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
17015 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
17016 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
17017 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
17018 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
17019 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
17020 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
17021 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
17022 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
17023 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
17024 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
17025 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
17026 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
17027 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
17028 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
17029 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
17030 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
17031 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
17032 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
17033 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
17034 whitespace before "(".
17036 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
17038 * expr.h (extract_bit_field): Remove packedp parameter.
17039 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
17040 from forward declaration.
17041 (store_split_bit_field): Remove packedp arg from calls to
17042 extract_fixed_bit_field.
17043 (extract_bit_field_1): Remove packedp parameter and packedp
17044 argument from recursive calls and calls to extract_fixed_bit_field.
17045 (extract_bit_field): Remove packedp parameter and corresponding
17046 arg to extract_bit_field_1.
17047 (extract_fixed_bit_field): Remove packedp parameter. Remove code
17049 (extract_split_bit_field): Remove packedp arg from call to
17050 extract_fixed_bit_field.
17051 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
17052 (copy_blkmode_from_reg): Likewise.
17053 (copy_blkmode_to_reg): Likewise.
17054 (read_complex_part): Likewise.
17055 (store_field): Likewise.
17056 (expand_expr_real_1): Likewise.
17057 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
17058 to extract_bit_field.
17059 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
17060 call to extract_bit_field.
17061 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
17062 call to extract_bit_field.
17063 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
17064 and special packedp behavior from -fstrict-volatile-bitfields
17067 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17069 * lra-eliminations.c (init_elim_table): Guard value_p.
17071 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
17073 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
17074 DFmode, DImode, and SFmode in the upper VSX registers based on the
17075 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
17076 if -mpower8-vector. Combine -mvsx-timode handling with the rest
17077 of the VSX register handling.
17079 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
17080 (f32_sv): Likewise.
17081 (zero_extendsidi2_lfiwzx): Add support for loading into the
17082 Altivec registers with -mpower8-vector. Use wu/wv constraints to
17083 only do VSX memory options on Altivec registers.
17084 (extendsidi2_lfiwax): Likewise.
17085 (extendsfdf2_fpr): Likewise.
17086 (mov<mode>_hardfloat, SF/SD modes): Likewise.
17087 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
17088 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
17089 (movdi_internal64): Likewise.
17091 2013-09-27 Xinliang David Li <davidxl@google.com>
17093 * opts.c (finish_options): Adjust parameters
17094 according to vect cost model.
17095 (common_handle_option): Set dynamic vect cost
17097 targhooks.c (default_add_stmt_cost): Compute stmt cost
17099 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
17100 Use helper function.
17101 * tree-vectorizer.h (unlimited_cost_model): New function.
17102 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
17103 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
17105 (vect_enhance_data_refs_alignment): Ditto.
17106 * flag-types.h: New enum.
17107 * common/config/i386/i386-common.c (ix86_option_init_struct):
17108 No need to initialize vect_cost_model flag.
17109 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
17112 2013-09-27 Diego Novillo <dnovillo@google.com>
17114 * gimple.h (enum ssa_mode): Remove.
17116 2013-09-27 Paulo Matos <pmatos@broadcom.com>
17118 * cfgloop.h (number_of_loops): Fix typo in check for null.
17120 2013-09-27 Jakub Jelinek <jakub@redhat.com>
17122 PR middle-end/58551
17123 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
17124 are children of outermost saved_cfun's loop, and set it up to
17125 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
17126 if loop != loop0 and SESE region contains bbs that belong to loop0.
17128 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
17130 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
17131 (binary_scale_code_p, get_base_term, get_index_term): New functions.
17132 (set_address_segment, set_address_base, set_address_index)
17133 (set_address_disp): Accept the argument unconditionally.
17134 (baseness): Remove must_be_base_p and must_be_index_p checks.
17135 (decompose_normal_address): Classify as much as possible in the
17138 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
17140 * cse.c (count_reg_usage): Handle INT_LIST.
17141 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
17142 * reginfo.c (reg_scan_mark_refs): Likewise.
17143 * reload1.c (eliminate_regs_1): Likewise.
17145 2013-09-27 Iain Sandoe <iain@codesourcery.com>
17147 PR middle-end/58547
17148 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
17151 2013-09-27 Richard Biener <rguenther@suse.de>
17153 PR tree-optimization/58459
17154 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
17155 restriction not propagating into loops.
17157 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
17159 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
17160 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
17161 * doc/tree-ssa.texi (Walking use-def chains): Delete.
17163 2013-09-26 Richard Biener <rguenther@suse.de>
17165 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
17167 2013-09-26 Richard Biener <rguenther@suse.de>
17169 * alias.h (component_uses_parent_alias_set): Rename to ...
17170 (component_uses_parent_alias_set_from): ... this.
17171 * alias.c (component_uses_parent_alias_set): Rename to ...
17172 (component_uses_parent_alias_set_from): ... this and return
17173 the desired parent.
17174 (reference_alias_ptr_type_1): Use the result from
17175 component_uses_parent_alias_set_from instead of stripping
17176 components one at a time.
17177 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
17179 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
17181 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
17182 Move prototypes to...
17183 * tree-ssa-ter.h: New File. Move prototypes here.
17184 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
17185 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
17186 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
17187 from is_replaceable_p.
17188 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
17189 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
17190 (process_replaceable): Use ter_is_replaceable_p.
17191 (find_replaceable_in_bb): Use ter_is_replaceable_p.
17192 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
17193 newly refactored ssa_is_replaceable_p.
17194 * cfgexpand.c: Include tree-outof-ssa.h.
17195 * ssaexpand.h: Delete.
17197 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
17199 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
17200 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
17202 (create_gimple_tmp): Delete.
17203 (get_expr_type, build_assign, build_type_cast): Move to...
17204 * gimple-builder.c: New File.
17205 (get_expr_type): Relocate from gimple.c.
17206 (build_assign, build_type_cast): Change to only create ssanames.
17207 * gimple.h: Move prototypes to...
17208 * gimple-builder.h: New File. Here.
17209 * tree-ssa.h: And here.
17210 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
17211 count_uses_and_derefs): Relocate from gimple.c.
17212 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
17213 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
17214 * tree-ssa-math-opts (execute_cse_reciprocals): Use
17215 gimple_replace_ssa_lhs.
17216 * asan.c: Include gimple-builder.h.
17217 * Makefile.in: Add gimple-builder.o.
17219 2013-09-26 Richard Biener <rguenther@suse.de>
17221 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
17222 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
17223 (loe_visit_block): Use gcc_checking_assert.
17224 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
17225 gimple_assign_ssa_name_copy_p.
17226 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
17229 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
17231 * config/rs6000/t-rs6000 (rs6000.o): Remove.
17232 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
17234 2013-09-26 Richard Biener <rguenther@suse.de>
17236 PR tree-optimization/58539
17237 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
17238 the fact that debug statements are not taking part in loop-closed
17241 2013-09-26 Nick Clifton <nickc@redhat.com>
17243 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
17244 time warning message.
17245 (msp430_print_operand_raw): Delete unused letter parameter.
17246 (TARGET_PRINT_OPERAND_ADDRESS): Define.
17247 (msp430_print_operand_address): New function.
17248 (msp430_print_operand): Move address printing code from here to
17250 * config/msp430/msp430.md (movsipsi2): Add comment in generated
17252 (zero_extendpsisi2): Likewise.
17253 (extendpsisi2): New pattern.
17254 (andneghi3): New pattern.
17256 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
17258 * config/aarch64/aarch64.opt (mlra): New option.
17259 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
17260 (TARGET_LRA_P): Define.
17262 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
17264 * expr.c (expand_assignment): Remove obsolete comment.
17266 2013-09-25 Jeff Law <law@redhat.com>
17268 * tree-flow.h (thread_through_all_blocks): Prototype moved into
17269 tree-ssa-threadupdate.h.
17270 (register_jump_thread): Similarly.
17271 * tree-ssa-threadupdate.h: New header file.
17272 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
17273 * tree-vrp.c: Likewise.
17274 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
17275 (thread_around_empty_blocks): Change type of path vector argument to
17276 an edge,type pair from just an edge. Initialize both elements when
17277 appending to a jump threading path. Tweak references to elements
17279 (thread_across_edge): Similarly. Release memory for the elements
17281 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
17282 (dump_jump_thread_path): New function broken out from
17283 register_jump_thread.
17284 (register_jump_thread): Use dump_jump_thread_path. Change type of
17285 path vector entries. Search the path for NULL edges and dump
17286 the path if one is found. Tweak the conversion of path to 3-edge
17287 form to use the block copy type information embedded in the path.
17289 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
17291 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
17293 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
17294 Vladimir Makarov <vmakarov@redhat.com>
17296 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
17297 from the least significant bit.
17298 (strip_address_mutations): Add bitfield operations handling.
17299 (must_be_index_p): Add shifting and rotate operations handling.
17300 (set_address_base): Use must_be_base_p predicate.
17301 (set_address_index): Use must_be_index_p predicate.
17303 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
17304 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17305 Sergey Lega <sergey.s.lega@intel.com>
17306 Anna Tikhonova <anna.tikhonova@intel.com>
17307 Ilya Tocar <ilya.tocar@intel.com>
17308 Andrey Turetskiy <andrey.turetskiy@intel.com>
17309 Ilya Verbin <ilya.verbin@intel.com>
17310 Kirill Yukhin <kirill.yukhin@intel.com>
17311 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17313 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
17315 (ix86_expand_vector_move_misalign): Support new unaligned load and
17316 stores and use new names.
17317 (CODE_FOR_sse2_storedqu): Rename to ...
17318 (CODE_FOR_sse2_storedquv16qi): ... this.
17319 (CODE_FOR_sse2_loaddqu): Rename to ...
17320 (CODE_FOR_sse2_loaddquv16qi): ... this.
17321 (CODE_FOR_avx_loaddqu256): Rename to ...
17322 (CODE_FOR_avx_loaddquv32qi): ... this.
17323 (CODE_FOR_avx_storedqu256): Rename to ...
17324 (CODE_FOR_avx_storedquv32qi): ... this.
17325 * config/i386/i386.md (fpint_logic): New.
17326 * config/i386/sse.md (VMOVE): Extend for AVX512.
17330 (VI_UNALIGNED_LOADSTORE): Ditto.
17331 (sse2_avx_avx512f): Ditto.
17332 (sse2_avx2): Extend for AVX512.
17333 (sse4_1_avx2): Ditto.
17334 (avx2_avx512f): New.
17335 (sse): Extend for AVX512.
17338 (avxsizesuffix): Ditto.
17339 (sseintvecmode): Ditto.
17340 (ssePSmode): Ditto.
17341 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
17342 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
17343 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
17344 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
17345 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
17346 (<sse2_avx_avx512f>_storedqu<mode): ... this.
17347 (<sse>_movnt<mode>): Replace constraint "x" with "v".
17348 (STORENT_MODE): Extend for AVX512.
17349 (*absneg<mode>2): Replace constraint "x" with "v".
17350 (*mul<mode>3): Ditto.
17351 (*ieee_smin<mode>3): Ditto.
17352 (*ieee_smax<mode>3): Ditto.
17353 (avx_cmp<mode>3): Replace VF with VF_128_256.
17354 (*<sse>_maskcmp<mode>3_comm): Ditto.
17355 (<sse>_maskcmp<mode>3): Ditto.
17356 (<sse>_andnot<mode>3): Extend for AVX512.
17357 (<code><mode>3, anylogic): Replace VF with VF_128_256.
17358 (<code><mode>3, fpint_logic): New.
17359 (*<code><mode>3): Extend for AVX512.
17360 (avx512flogicsuff): New.
17361 (avx512f_<logic><mode>): Ditto.
17362 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
17364 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
17365 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
17366 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
17367 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
17368 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
17369 (xop_vpermil2<mode>3): Ditto.
17370 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
17371 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
17372 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
17373 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
17375 2013-09-25 Tom Tromey <tromey@redhat.com>
17377 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
17378 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
17379 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
17380 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
17381 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
17382 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
17383 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
17384 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
17385 (GRAPHITE_HTAB_H): Remove.
17387 2013-09-25 Tom Tromey <tromey@redhat.com>
17389 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
17391 2013-09-25 Tom Tromey <tromey@redhat.com>
17393 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
17395 2013-09-25 Tom Tromey <tromey@redhat.com>
17397 * config/i386/t-i386 (i386.o): Remove.
17398 (i386-c.o): Use COMPILE and POSTCOMPILE.
17400 2013-09-25 Tom Tromey <tromey@redhat.com>
17402 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
17404 2013-09-25 Tom Tromey <tromey@redhat.com>
17406 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
17407 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
17408 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
17409 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
17410 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
17411 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
17412 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
17413 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
17414 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
17415 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
17416 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
17417 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
17418 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
17419 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
17420 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
17421 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
17422 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
17423 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
17424 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
17425 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
17426 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
17427 (tree-ssa-pre.o, tree-ssa-sccvn.o)
17428 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
17429 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
17430 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
17431 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
17432 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
17433 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
17434 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
17435 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
17436 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
17437 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
17438 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
17439 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
17440 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
17441 (graphite-clast-to-gimple.o, graphite-dependences.o)
17442 (graphite-interchange.o, graphite-poly.o)
17443 (graphite-scop-detection.o, graphite-sese-to-poly.o)
17444 (graphite-optimize-isl.o, tree-vect-loop.o)
17445 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
17446 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
17447 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
17448 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
17449 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
17450 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
17451 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
17452 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
17453 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
17454 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
17455 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
17456 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
17457 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
17458 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
17459 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
17460 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
17461 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
17462 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
17463 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
17464 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
17465 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
17466 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
17467 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
17468 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
17469 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
17470 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
17471 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
17472 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
17473 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
17474 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
17475 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
17476 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
17477 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
17478 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
17479 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
17480 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
17481 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
17482 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
17483 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
17484 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
17485 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
17486 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
17487 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
17488 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
17489 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
17490 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
17491 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
17492 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
17493 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
17494 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
17495 (gcov-dump.o): Remove.
17496 (default-c.o): Use COMPILE and POSTCOMPILE.
17497 (CFLAGS-gcc.o): New variable.
17498 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
17500 2013-09-25 Tom Tromey <tromey@redhat.com>
17502 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
17503 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
17504 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
17505 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
17506 (c-family/c-pragma.o, c-family/c-pretty-print.o)
17507 (c-family/c-semantics.o, c-family/c-ada-spec.o)
17508 (c-family/array-notation-common.o, c-family/stub-objc.o)
17509 (c-family/c-ubsan.o): Remove.
17511 2013-09-25 Tom Tromey <tromey@redhat.com>
17513 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
17515 2013-09-25 Tom Tromey <tromey@redhat.com>
17517 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
17518 to add -DENABLE_SHARED_LIBGCC.
17519 (gcc.o): Don't use subshell.
17521 2013-09-25 Tom Tromey <tromey@redhat.com>
17523 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
17524 * configure.ac: Don't invoke AM_PROG_CC_C_O.
17525 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
17526 * configure, config.in: Rebuild.
17528 2013-09-25 Tom Tromey <tromey@redhat.com>
17530 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
17531 (COMPILE, POSTCOMPILE): New variables.
17532 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
17533 (DEPFILES): New variable.
17534 Include ".Po" files.
17535 * configure.ac: Add checks for dependency checking.
17536 * configure, aclocal.m4: Regenerate.
17538 2013-09-25 Tom Tromey <tromey@redhat.com>
17540 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
17541 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
17543 2013-09-25 Tom Tromey <tromey@redhat.com>
17545 * Makefile.in (generated_files): Add options.h,
17546 target-hooks-def.h, insn-opinit.h,
17547 common/common-target-hooks-def.h, pass-instances.def,
17548 c-family/c-target-hooks-def.h.
17550 2013-09-25 Jeff Law <law@redhat.com>
17552 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
17553 than foo[foo.length () - 1] to access last member in a vec.
17554 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
17556 2013-09-25 Richard Biener <rguenther@suse.de>
17558 PR middle-end/58521
17559 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
17561 2013-09-25 Jan Hubicka <jh@suse.cz>
17563 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
17566 2013-09-25 Marek Polacek <polacek@redhat.com>
17569 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
17570 when determining the type name.
17572 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
17574 * config/sh/sh.md: Fix formatting.
17576 2013-09-24 Xinliang David Li <davidxl@google.com>
17578 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
17579 max peel iterations parameter.
17580 * param.def: New parameter.
17581 * doc/invoke.texi: Document New parameter.
17583 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
17585 * gimple-pretty-print.c: Various whitespace tweaks.
17586 * tree-core.h: Likewise.
17587 * tree-pretty-print.c: Likewise.
17588 * tree-ssa-alias.c: Likewise.
17589 * tree-ssa-copy.c: Likewise.
17590 * tree-ssanames.c: Likewise.
17591 * tree-ssanames.h: Likewise.
17592 * tree-vrp.c: Likewise.
17594 2013-09-24 Alan Modra <amodra@gmail.com>
17596 PR middle-end/57134
17597 PR middle-end/57586
17598 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
17599 for output operands that disallow regs. Don't use EXPAND_WRITE on
17602 2013-09-24 Richard Biener <rguenther@suse.de>
17604 PR middle-end/58513
17605 * tree.c (reference_alias_ptr_type): Move ...
17606 * alias.c (reference_alias_ptr_type): ... here and implement
17607 in terms of the new reference_alias_ptr_type_1.
17608 (ref_all_alias_ptr_type_p): New helper.
17609 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
17610 use ref_all_alias_ptr_type_p.
17611 (get_deref_alias_set): Add flag_strict_aliasing check here.
17612 (reference_alias_ptr_type_1): New function, split out from ...
17613 (get_alias_set): ... here.
17614 (alias_ptr_types_compatible_p): New function.
17615 * alias.h (reference_alias_ptr_type): Declare.
17616 (alias_ptr_types_compatible_p): Likewise.
17617 * tree.h (reference_alias_ptr_type): Remove.
17618 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
17619 to compare MEM_REF alias types.
17621 2013-09-24 Richard Biener <rguenther@suse.de>
17623 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
17625 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
17627 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
17628 reload helper function arrays into a single array reg_addr.
17629 (reload_fpr_gpr): Likewise.
17630 (reload_gpr_vsx): Likewise.
17631 (reload_vsx_gpr): Likewise.
17632 (struct rs6000_reg_addr): Likewise.
17633 (reg_addr): Likewise.
17634 (rs6000_debug_reg_global): Change rs6000_vector_reload,
17635 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
17636 (rs6000_init_hard_regno_mode_ok): Likewise.
17637 (rs6000_secondary_reload_direct_move): Likewise.
17638 (rs6000_secondary_reload): Likewise.
17640 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
17641 constraints: wu, ww, and wy. Repurpose wv constraint added during
17642 power8 changes. Put wg constraint in alphabetical order.
17644 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
17645 for future work to add ISA 2.07 VSX single precision support.
17646 (-mvsx-scalar-double): Change default from -1 to 1, update
17647 documentation comment.
17648 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
17649 (-mupper-regs-df): New debug switch to control whether DF values
17650 can go in the traditional Altivec registers.
17651 (-mupper-regs-sf): New debug switch to control whether SF values
17652 can go in the traditional Altivec registers.
17654 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
17655 and wy constraints.
17656 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
17657 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
17658 Add new constraints, wu/ww/wy. Repurpose wv constraint.
17659 (rs6000_debug_legitimate_address_p): Print if we are running
17660 before, during, or after reload.
17661 (rs6000_secondary_reload): Add a comment.
17662 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
17664 * config/rs6000/constraints.md (wa constraint): Sort w<x>
17665 constraints. Update documentation string.
17666 (wd constraint): Likewise.
17667 (wf constraint): Likewise.
17668 (wg constraint): Likewise.
17669 (wn constraint): Likewise.
17670 (ws constraint): Likewise.
17671 (wt constraint): Likewise.
17672 (wx constraint): Likewise.
17673 (wz constraint): Likewise.
17674 (wu constraint): New constraint for ISA 2.07 SFmode scalar
17676 (ww constraint): Likewise.
17677 (wy constraint): Likewise.
17678 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
17679 in the previous submissions.
17680 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
17682 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
17684 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
17685 (REG_BR_PROB): Say that the probability is stored in an int_list.
17686 * reg-notes.def: Update commentary to mention INT_LIST.
17687 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
17688 (INT_LIST): New rtx.
17689 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
17690 * rtlanal.c (int_reg_note_p): New function.
17691 (alloc_reg_note): Assert that the note does not have an int argument.
17692 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
17693 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
17694 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
17695 rather than an INSN_LIST. Handle INT_LIST.
17696 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
17697 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
17698 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
17699 Manipulate them as ints rather than rtxes.
17700 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
17701 * regmove.c (copy_src_to_dest): Likewise.
17702 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
17704 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
17705 into the cases that need it.
17706 * config/arm/arm.c (arm_unwind_emit): Likewise.
17708 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
17709 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
17710 * loop-doloop.c (add_test, doloop_modify): Likewise.
17711 * loop-unswitch.c (compare_and_jump_seq): Likewise.
17712 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
17713 * predict.c (combine_predictions_for_insn): Likewise.
17714 * print-rtl.c (print_rtx): Handle INT_LIST.
17715 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
17716 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
17717 * config/arm/arm.c (emit_unlikely_jump): Likewise.
17718 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
17719 (ix86_split_fp_branch, predict_jump): Likewise.
17720 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
17721 * config/sh/sh.c (expand_cbranchsi4): Likewise.
17722 * config/spu/spu.c (ea_load_store_inline): Likewise.
17724 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
17725 value of a REG_BR_PROB note.
17726 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
17727 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
17728 * emit-rtl.c (try_split): Likewise.
17729 * predict.c (br_prob_note_reliable_p): Likewise.
17730 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
17731 * reorg.c (mostly_true_jump): Likewise.
17732 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
17733 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
17734 * config/i386/i386.c (ix86_print_operand): Likewise.
17735 * config/ia64/ia64.c (ia64_print_operand): Likewise.
17736 * config/mmix/mmix.c (mmix_print_operand): Likewise.
17737 * config/rs6000/rs6000.c (output_cbranch): Likewise.
17738 * config/s390/s390.c (s390_expand_tbegin): Likewise.
17739 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
17740 * config/sparc/sparc.c (output_cbranch): Likewise.
17741 * config/spu/spu.c (get_branch_target): Likewise.
17742 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
17743 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
17745 2013-09-23 Jan Hubicka <jh@suse.cz>
17747 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
17749 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
17750 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
17752 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
17753 (gimple_fold_call): Dump inconsistent devirtualizations; add
17754 sanity check for type based devirtualizations.
17755 * ipa-prop.c: Include ipa-utils.h
17756 (ipa_intraprocedural_devirtualization): Add sanity check.
17757 (try_make_edge_direct_virtual_call): Likewise.
17759 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
17761 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
17762 assignment statements.
17764 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
17766 * gimple-pretty-print.c (dump_ssaname_info): New function.
17767 (dump_gimple_phi): Call it.
17768 (pp_gimple_stmt_1): Likewise.
17769 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
17770 (range_info_def): Declare.
17771 * tree-pretty-print.c (pp_double_int): New function.
17772 (dump_generic_node): Call it.
17773 * tree-pretty-print.h (pp_double_int): Declare.
17774 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
17775 * tree-ssanames.h (range_info_def): New structure.
17776 (value_range_type): Move definition here.
17777 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
17779 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
17781 (set_range_info): New function.
17782 (get_range_info): Likewise.
17783 (duplicate_ssa_name_range_info): Likewise.
17784 (duplicate_ssa_name_fn): Check pointer type and call
17785 duplicate_ssa_name_range_info.
17786 * tree-ssa-copy.c (fini_copy_prop): Likewise.
17787 * tree-vrp.c (value_range_type): Remove definition, now in
17789 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
17790 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
17791 (SSA_NAME_RANGE_INFO): New macro.
17793 2013-09-23 Richard Biener <rguenther@suse.de>
17795 PR tree-optimization/58464
17796 * tree-ssa-pre.c (phi_trans_lookup): Remove.
17797 (phi_trans_add): Change to add conditionally on being not present.
17798 (phi_translate_1): Remove recursion detection here.
17799 (phi_translate): Pre-seed the cache with NULL to catch
17800 recursion here in a more generic way.
17801 (bitmap_find_leader): Adjust comment.
17802 (get_representative_for): Dump value-numbers.
17803 (create_expression_by_pieces): Likewise.
17804 (insert_into_preds_of_block): Likewise.
17806 2013-09-23 Christian Bruel <christian.bruel@st.com>
17809 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
17810 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
17812 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
17815 2013-09-20 Renlin Li <renlin.li@arm.com>
17817 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
17819 (aarch64_expand_epilogue): Likewise.
17820 (aarch64_legitimize_reload_address): Likewise.
17822 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
17824 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
17825 NULL_TREE before pushing them onto the vector. Likewise for labels.
17827 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
17829 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
17830 comparison operators when -fno-trapping-math is in effect.
17831 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
17832 comparison operators in TFmode and assert that unsupported operators
17834 (ia64_print_operand): Likewise.
17836 2013-09-21 Jan Hubicka <jh@suse.cz>
17838 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
17839 (sse_typeless_stores): Enable for core
17840 (sse_load0_by_pxor): Likewise.
17841 (four_jump_limit): Disable for core.
17842 (pad_returns): Likewise.
17843 (avoid_vector_decode): Likewise.
17844 (fuse_cmp_and_branch): Enable for cores.
17845 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
17847 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
17849 PR middle-end/56791
17850 * config/pa/pa.c (pa_option_override): Disable auto increment and
17851 decrement instructions until reload is completed.
17853 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
17854 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
17855 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
17857 2013-09-20 DJ Delorie <dj@redhat.com>
17858 Nick Clifton <nickc@redhat.com>
17860 * config/rl78/rl78.c: Various whitespace and comment tweaks.
17861 (need_to_save): Save bank 0 on interrupts.
17862 (characterize_address): Strip far address wrappers.
17863 (rl78_as_legitimate_address): Likewise.
17864 (transcode_memory_rtx): Likewise.
17865 (rl78_peep_movhi_p): Disable this peephole after devirt.
17866 (rl78_propogate_register_origins): Forget all origins when a
17868 * config/rl78/rl78-virt.md: Various whitespace tweaks.
17869 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
17871 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
17872 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
17873 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
17875 * config/rl78/constraints.md: Various whitespace and paren tweaks.
17877 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
17879 * config/pa/pa.md: In "scc" insn patterns, change output template to
17880 handle const0_rtx in reg_or_0_operand operands.
17882 2013-09-20 Martin Husemann <martin@NetBSD.org>
17885 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
17886 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
17888 2013-09-20 Richard Biener <rguenther@suse.de>
17890 PR middle-end/58484
17891 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
17892 remembering SSA name version and block index.
17893 (new_scev_info_str): Adjust.
17894 (hash_scev_info): Likewise. Also hash the block index.
17895 (eq_scev_info): Adjust.
17896 (find_var_scev_info): Likewise.
17897 (struct instantiate_cache_entry): Remove.
17898 (struct instantiate_cache_type): Use a htab to map name, block
17900 (instantiate_cache_type::~instantiate_cache_type): Adjust.
17901 (get_instantiated_value_entry): Likewise.
17902 (hash_idx_scev_info, eq_idx_scev_info): New functions.
17903 (instantiate_scev_name): Adjust.
17905 2013-09-20 Jeff Law <law@redhat.com>
17907 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
17909 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
17911 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
17912 Call aarch64_simd_expand_args to update op[argc].
17914 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
17916 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
17919 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
17921 * gengtype.c (file_rules): Added rule for *.cc files.
17922 (get_output_file_with_visibility): Give fatal message when no
17925 2013-09-20 Renlin Li <renlin.li@arm.com>
17927 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
17928 (aarch64_expand_epilogue): Likewise.
17929 (aarch64_legitimize_reload_address): Likewise.
17931 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
17933 PR middle-end/57748
17934 * expr.c (expand_assignment): Remove misalignp code path.
17936 2013-09-20 Marek Polacek <polacek@redhat.com>
17939 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
17940 TYPE_PRECISION. Add asserts.
17942 2013-09-20 Richard Biener <rguenther@suse.de>
17944 PR tree-optimization/58453
17945 * tree-loop-distribution.c (distribute_loop): Apply the cost
17946 model for -ftree-loop-distribute-patterns, too.
17948 2013-09-20 Richard Biener <rguenther@suse.de>
17950 PR middle-end/58473
17951 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
17952 make type comparison less strict.
17954 2013-09-20 Alan Modra <amodra@gmail.com>
17956 * configure: Regenerate.
17957 * aclocal.m4: Regenerate.
17959 2013-09-20 Marek Polacek <polacek@redhat.com>
17962 * doc/extend.texi: Document that attribute used is meant to be used
17963 on variables with static storage duration.
17965 2013-09-19 Jakub Jelinek <jakub@redhat.com>
17967 PR tree-optimization/58472
17968 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
17969 simd_lane_access set inv_p = false.
17970 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
17971 the simduid magic VAR_DECL.
17973 2013-09-19 Jan Hubicka <jh@suse.cz>
17975 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
17977 2013-09-17 Jeff Law <law@redhat.com>
17979 * tree-ssa-dom.c (record_temporary_equivalences): New function
17980 split out of dom_opt_dom_walker::after_dom_children.
17981 (dom_opt_dom_walker::thread_across_edge): Move common code
17982 in here from dom_opt_dom_walker::after_dom_children.
17983 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
17985 2013-09-19 Jan Hubicka <jh@suse.cz>
17987 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
17988 (TARGET_GENERIC): Use PROCESOR_GENERIC
17989 (enum processor_type): Unify generic32 and 64.
17990 * i386.md (cpu): Likewise.
17991 * x86-tune.def (use_leave): Enable for generic32.
17992 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
17993 * athlon.md: Change generic64 to generic in all occurences.
17994 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
17995 (ix86_target_macros_internal): Likewise.
17996 * driver-i386.c (host_detect_local_cpu): Likewise.
17997 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
17999 (generic_memcpy, generic_memset, generic_cost): This one.
18000 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
18001 (m_GENERIC32, m_GENERIC64): Remove.
18002 (m_GENERIC): Turn into one flag.
18003 (processor_target): Unify generic tunnings.
18004 (ix86_option_override_internal): Replace generic32/64 by generic.
18005 (ix86_issue_rate): Likewise.
18006 (ix86_adjust_cost): Likewise.
18008 2013-09-19 Jan Hubicka <jh@suse.cz>
18010 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
18011 of speculative flag.
18013 2013-09-19 Jakub Jelinek <jakub@redhat.com>
18015 * omp-low.c (expand_omp_sections): Always pass len - 1 to
18016 GOMP_sections_start, even if !exit_reachable.
18018 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
18020 * lra-constraints.c (need_for_all_save_p): Use macro
18021 HARD_REGNO_CALL_PART_CLOBBERED.
18022 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
18023 set up pseudo conflict hard regs.
18025 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
18028 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
18031 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
18033 PR rtl-optimization/58438
18034 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
18035 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
18036 from previous subpasses.
18038 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
18040 * arm.c (arm_get_frame_offsets): Validate architecture supports
18041 LDRD/STRD before accepting the tuning preference.
18042 (arm_expand_prologue): Likewise.
18043 (arm_expand_epilogue): Likewise.
18045 2013-09-18 Richard Biener <rguenther@suse.de>
18047 PR tree-optimization/58417
18048 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
18049 have chrecs with symbols defined in the loop as operands.
18050 (chrec_fold_multiply): Likewise.
18051 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
18052 parameters before folding binary operations.
18053 (struct instantiate_cache_entry_hasher): Remove.
18054 (struct instantiate_cache_type): Use a pointer-map.
18055 (instantiate_cache_type::instantiate_cache_type): New function.
18056 (instantiate_cache_type::get): Likewise.
18057 (instantiate_cache_type::set): Likewise.
18058 (instantiate_cache_type::~instantiate_cache_type): Adjust.
18059 (get_instantiated_value_entry): Likewise.
18060 (global_cache): New global.
18061 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
18062 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
18063 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
18064 (instantiate_scev_name): Adjust.
18065 (instantiate_scev): Construct global instead of local cache.
18066 (resolve_mixers): Likewise.
18068 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
18069 Paolo Carlini <paolo.carlini@oracle.com>
18072 * doc/implement-cxx.texi: Fix references to the C++ standards.
18074 2013-09-18 Jakub Jelinek <jakub@redhat.com>
18076 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
18077 * tree-vect-data-refs.c (vect_analyze_data_refs): For
18078 simd_lane_access drs, update also DR_ALIGNED_TO.
18080 2013-09-18 Marek Polacek <polacek@redhat.com>
18083 * doc/extend.texi: Document no_sanitize_undefined attribute.
18084 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
18085 no_sanitize_undefined attribute.
18087 2013-09-18 Nick Clifton <nickc@redhat.com>
18089 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
18090 (ASM_DECLARE_FUNCTION_NAME): Define.
18092 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
18094 * compare-elim.c (find_comparison_dom_walker): New class
18095 (find_comparisons_in_bb): Rename to
18096 find_comparison_dom_walker::before_dom_children
18097 (find_comparisons): Adjust
18098 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
18100 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
18101 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
18102 (init_walk_dominator_tree): Remove declaration.
18103 (fini_walk_dominator_tree): Remove declaration.
18104 * fwprop.c (single_def_use_dom_walker): New class
18105 (single_def_use_enter_block): Convert to
18106 single_def_use_dom_walker::before_dom_children.
18107 (single_def_use_leave_block): Convert to
18108 single_def_use_dom_walker::after_dom_children.
18109 (build_single_def_use_links): Adjust.
18110 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
18112 (find_candidates_in_block): Convert to
18113 find_candidates_dom_walker::before_dom_children.
18114 (execute_strength_reduction): Adjust.
18115 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
18116 (sese_dom_walker): New class.
18117 (sese_dom_walker::sese_dom_walker): New constructor.
18118 (sese_dom_walker::~sese_dom_walker): New destructor.
18119 (build_sese_conditions_before): Convert to
18120 sese_dom_walker::before_dom_children.
18121 (build_sese_conditions_after): Convert to
18122 sese_dom_walker::after_dom_children.
18123 (build_poly_scop): Adjust
18124 * tree-into-ssa.c (rewrite_dom_walker): New class
18125 (rewrite_enter_block): Convert to
18126 rewrite_dom_walker::before_dom_children.
18127 (rewrite_leave_block): Convert to
18128 rewrite_dom_walker::after_dom_children.
18129 (rewrite_update_dom_walker): New class.
18130 (rewrite_update_enter_block): Convert to
18131 rewrite_update_dom_walker::before_dom_children.
18132 (rewrite_update_leave_block): Convert to
18133 rewrite_update_dom_walker::after_dom_children.
18134 (rewrite_blocks, rewrite_into_ssa): Adjust.
18135 (mark_def_dom_walker): New class.
18136 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
18137 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
18138 (mark_def_sites_blocks): Convert to
18139 mark_def_dom_walker::before_dom_children.
18140 (mark_def_site_blocks): Remove.
18141 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
18142 (tree_ssa_dominator_optimize): Adjust.
18143 (dom_thread_across_edge): Convert to method
18144 dom_opt_dom_walker::thread_across_edge.
18145 (dom_opt_enter_block): Convert to member function
18146 dom_opt_dom_walker::before_dom_children.
18147 (dom_opt_leave_block): Convert to member function
18148 dom_opt_dom_walker::after_dom_children.
18149 * tree-ssa-dse.c (dse_dom_walker): New class.
18150 (dse_enter_block): Convert to member function
18151 dse_dom_walker::before_dom_children.
18152 (tree_ssa_dse): Adjust.
18153 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
18154 (determine_invariantness_stmt): Convert to method
18155 invariantness_dom_walker::before_dom_children.
18156 (determine_invariantness): Remove
18157 (move_computations_dom_walker): New class.
18158 (move_computations_stmt): Convert to method
18159 move_computations_dom_walker::before_dom_children.
18160 (move_computations, tree_ssa_lim): Adjust.
18161 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
18162 (nt_init_block): Convert to method
18163 notrappping_dom_walker::before_dom_children.
18164 (nt_fini_block): Convert to method
18165 method nontrapping_dom_walker::after_dom_children.
18166 (get_non_trapping): Adjust.
18167 * tree-ssa-pre.c (eliminate_dom_walker): New class.
18168 (eliminate_bb): Convert to method
18169 eliminate_dom_walker::before_dom_children.
18170 (eliminate_leave_block): Convert to method
18171 eliminate_dom_walker::after_dom_children.
18172 (eliminate): Adjust.
18173 * tree-ssa-strlen.c (strlen_dom_walker): New class.
18174 (strlen_enter_block): Convert to method
18175 strlen_dom_walker::before_dom_children.
18176 (strlen_leave_block): Convert to method
18177 method strlen_dom_walker::after_dom_children.
18178 (tree_ssa_strlen): Adjust.
18179 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
18180 (tree_ssa_uncprop): Adjust.
18181 (uncprop_leave_block): Convert to method
18182 uncprop_dom_walker::after_dom_children.
18183 (uncprop_leave_block): Convert to method
18184 uncprop_dom_walker::before_dom_children.
18186 2013-09-18 Bin Cheng <bin.cheng@arm.com>
18188 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
18189 branch in same basic block. Check both src and dest of the move insn.
18191 2013-09-17 Nick Clifton <nickc@redhat.com>
18193 * config/rl78/rl78-real.md (bf): New pattern.
18195 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
18196 (rl78_print_operand): Do not put a # before a %B.
18197 * config/rl78/rl78.opt: Tweak doc strings.
18199 2013-09-17 DJ Delorie <dj@redhat.com>
18201 * config/rl78/constraints.md (Wcv): Allow up to $r31.
18202 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
18203 (rl78_option_override): Likewise, if -mallregs.
18204 (is_virtual_register): Likewise.
18205 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
18206 (REGNO_OK_FOR_BASE_P): Likewise.
18207 * config/rl78/rl78.opt (-mallregs): New.
18209 2013-09-17 Nick Clifton <nickc@redhat.com>
18211 * config/rl78/rl78.c (need_to_save): Change return type to bool.
18212 For interrupt functions: save all call clobbered registers if the
18213 interrupt handler is not a leaf function.
18214 (rl78_expand_prologue): Always recompute the frame information.
18215 For interrupt functions: only select bank 0 if one of the bank 0
18216 registers is going to be psuhed.
18218 2013-09-17 DJ Delorie <dj@redhat.com>
18220 * config/rl78/constraints.md: For each W* constraint, rename to C*
18221 and create a W* constraint that checks for an optional ES: prefix
18223 * config/rl78/rl78.md (UNS_ES_ADDR): New.
18224 (es_addr): New. Used to wrap far addresses.
18225 * config/rl78/rl78-protos.h (rl78_es_addr): New.
18226 (rl78_es_base): New.
18227 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
18228 wrapped far addresses.
18229 (rl78_print_operand_1): Unwrap far addresses before processing.
18230 (rl78_lo16): Wrap far addresses in unspecs.
18231 (rl78_es_addr): New.
18232 (rl78_es_base): New.
18233 (insn_ok_now): Check for not-yet-wrapped far addresses.
18234 (transcode_memory_rtx): Properly re-wrap far addresses.
18236 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
18238 * config/sparc/t-rtems: Add leon3 multilibs.
18240 2013-09-17 Cong Hou <congh@google.com>
18242 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
18243 when checking the dot production pattern. The type of rhs operand
18244 of multiply is now checked correctly.
18246 2013-09-17 Jeff Law <law@redhat.com>
18248 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
18249 edge implied equivalences into successor phis.
18250 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
18251 here from tree-ssa-threadedge.c.
18252 (mark_threaded_blocks): When threading through a joiner, if both
18253 successors of the joiner's clone reach the same block, verify the
18254 PHI arguments are equal. If not, cancel the jump threading request.
18255 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
18256 tree-ssa-threadupdate.c
18257 (thread_across_edge): Don't check PHI argument equality when
18258 threading through joiner block here.
18260 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
18262 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
18263 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
18264 (warn_uninit, warn_uninitialized_vars,
18265 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
18266 Move to tree-ssa-uninit.c.
18267 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
18268 (has_undefined_value_p): New. Pass dependant parts of
18269 ssa_undefined_value_p.
18270 (uninit_undefined_value_p): Use has_undefined_value_p.
18271 (warn_uninit, warn_uninitialized_vars,
18272 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
18273 Move from tree-ssa.c.
18274 * tree-ssa.h: Adjust prototypes.
18276 2013-09-17 Jan Hubicka <jh@suse.cz>
18278 PR middle-end/58332
18279 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
18280 * ipa-inline.c (can_inline_edge_p): Do not downgrade
18281 FUNCTION_NOT_OPTIMIZED.
18282 * ipa-inline-analysis.c (compute_inline_parameters): Function
18283 not optimized is not inlinable unless it is alwaysinline.
18284 (inline_analyze_function): Force calls in not optimized
18285 function not inlinable.
18287 2013-09-17 Jan Hubicka <jh@suse.cz>
18289 PR middle-end/58329
18290 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
18292 * ipa.c (function_and_variable_visibility): Likewise.
18293 * ipa-profile.c (ipa_profile): Likewise.
18295 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
18298 * cgraph.c (cgraph_function_body_availability): Check for ifunc
18299 attribute, and don't inline the resolver in this case.
18301 2013-09-17 Teresa Johnson <tejohnson@google.com>
18303 * coverage.c (get_coverage_counts): Add missing newline.
18305 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18307 PR tree-optimization/58088
18308 * fold-const.c (mask_with_trailing_zeros): New function.
18309 (fold_binary_loc): Make sure we don't recurse infinitely
18310 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
18311 Use mask_with_trailing_zeros where appropriate.
18313 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
18315 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
18316 of 'prev' var to get better distance estimation.
18318 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
18320 * tree-inline.h (struct copy_body_data): Add transform_parameter.
18321 * tree-inline.c (is_parameter_of): New predicate.
18322 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
18323 a parameter has been remapped.
18324 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
18325 (optimize_inline_calls): Initialize transform_parameter.
18326 (copy_gimple_seq_and_replace_locals): Likewise.
18327 (tree_function_versioning): Likewise.
18328 (maybe_inline_call_in_expr): Likewise.
18330 2013-09-17 Nick Clifton <nickc@redhat.com>
18332 * config/msp430/msp430-protos.h: Add prototypes for new functions.
18333 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
18334 interrupt handlers.
18335 (is_attr_func): New function.
18336 (msp430_is_interrupt_func): New function.
18337 (is_naked_func): New function.
18338 (is_reentrant_func): New function.
18339 (is_critical_func): New function.
18340 (msp430_start_function): Add annotations for function attributes.
18341 (msp430_attr): New function.
18342 (msp430_attribute_table): New.
18343 (msp430_function_section): New function.
18344 (TARGET_ASM_FUNCTION_SECTION): Define.
18345 (msp430_builtin): New enum.
18346 (msp430_init_builtins): New function.
18347 (msp430_builtin_devl): New function.
18348 (msp430_expand_builtin): New function.
18349 (TARGET_INIT_BUILTINS): Define.
18350 (TARGET_EXPAND_BUILTINS): Define.
18351 (TARGET_BUILTIN_DECL): Define.
18352 (msp430_expand_prologue): Add support for naked, interrupt,
18353 critical and reentrant functions.
18354 (msp430_expand_epilogue): Likewise.
18355 (msp430_print_operand): Handle 'O' character.
18356 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
18358 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
18359 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
18360 (pushm): Use a 'n' rather than an 'i' constraint.
18361 (msp_return): Add generation of the interrupt return instruction.
18362 (disable_interrupts): New pattern.
18363 (enable_interrupts): New pattern.
18364 (push_intr_state): New pattern.
18365 (pop_intr_state): New pattern.
18366 (bic_SR): New pattern.
18367 (bis_SR): New pattern.
18368 * doc/extend.texi: Document MSP430 function attributes and builtin
18371 2013-09-17 Richard Biener <rguenther@suse.de>
18373 PR tree-optimization/58432
18374 * tree-loop-distribution.c (tree_loop_distribution): Also
18375 scan PHIs for outside loop uses and seed a partition from them.
18377 2013-09-17 Bin Cheng <bin.cheng@arm.com>
18379 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
18380 (restructure_reference): Call backtrace_base_for_ref.
18382 2013-09-17 Alan Modra <amodra@gmail.com>
18385 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
18388 2013-09-16 DJ Delorie <dj@redhat.com>
18390 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
18391 vregs location for RL78/G10.
18392 (rl78_expand_prologue): Avoid SEL on G10.
18393 (rl78_expand_epilogue): Likewise.
18394 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
18395 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
18396 __RL78_G10__ when appropriate.
18397 (ASM_SPEC): Pass -mg10 along to the assembler.
18398 * config/rl78/rl78.md (sel_rb): Disable for G10.
18399 * config/rl78/rl78.opt: Add -mg10 option.
18400 * config/rl78/t-rl78: Add -mg10 multilib.
18402 2013-09-16 Xinliang David Li <davidxl@google.com>
18404 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
18405 * omp-low.c (omp_max_vf): Ditto.
18406 (expand_omp_simd): Ditto.
18407 * tree-vectorizer.c (vectorize_loops): Ditto.
18408 (gate_vect_slp): Ditto.
18409 (gate_increase_alignment): Ditto.
18410 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
18411 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
18412 (gate_tree_vectorize): Name change.
18413 (tree_vectorize): Ditto.
18414 (pass_vectorize::gate): Call new function.
18415 (pass_vectorize::execute): Ditto.
18416 * opts.c: O3 default setting change.
18417 (finish_options): Check new flag.
18418 * doc/invoke.texi: Document new flags.
18419 * common.opt: New flags.
18421 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
18423 * doc/tm.texi.in (Cond Exec Macros): Remove node.
18424 (Condition Code): Don't reference it.
18425 * doc/tm.texi: Regenerate.
18427 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
18429 PR middle-end/58418
18430 * lra-constraints.c (undo_optional_reloads): Consider all optional
18431 reload even if it did not get a hard reg.
18433 2013-09-16 Teresa Johnson <tejohnson@google.com>
18435 * dumpfile.c (dump_loc): Remove newline emission.
18436 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
18437 emission to dump_printf_loc calls where missing.
18438 (vect_mark_for_runtime_alias_test): Ditto.
18439 (vect_analyze_data_ref_dependence): Ditto.
18440 (vect_analyze_data_ref_dependences): Ditto.
18441 (vect_slp_analyze_data_ref_dependence): Ditto.
18442 (vect_slp_analyze_data_ref_dependences): Ditto.
18443 (vect_compute_data_ref_alignment): Ditto.
18444 (vect_update_misalignment_for_peel): Ditto.
18445 (vect_verify_datarefs_alignment): Ditto.
18446 (vector_alignment_reachable_p): Ditto.
18447 (vect_get_data_access_cost): Ditto.
18448 (vect_enhance_data_refs_alignment): Ditto.
18449 (vect_find_same_alignment_drs): Ditto.
18450 (vect_analyze_data_refs_alignment): Ditto.
18451 (vect_analyze_group_access): Ditto.
18452 (vect_analyze_data_ref_access): Ditto.
18453 (vect_analyze_data_ref_accesses): Ditto.
18454 (vect_prune_runtime_alias_test_list): Ditto.
18455 (vect_analyze_data_refs): Ditto.
18456 (vect_create_addr_base_for_vector_ref): Ditto.
18457 (vect_create_data_ref_ptr): Ditto.
18458 (vect_grouped_store_supported): Ditto.
18459 (vect_grouped_load_supported): Ditto.
18460 * value-prof.c (check_counter): Ditto.
18461 (check_ic_target): Ditto.
18462 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
18463 (vect_recog_widen_mult_pattern): Ditto.
18464 (vect_recog_widen_sum_pattern): Ditto.
18465 (vect_recog_over_widening_pattern): Ditto.
18466 (vect_recog_widen_shift_pattern): Ditto.
18467 (vect_recog_rotate_pattern): Ditto.
18468 (vect_recog_vector_vector_shift_pattern): Ditto.
18469 (vect_recog_divmod_pattern): Ditto.
18470 (vect_recog_mixed_size_cond_pattern): Ditto.
18471 (vect_recog_bool_pattern): Ditto.
18472 (vect_pattern_recog_1): Ditto.
18473 (vect_pattern_recog): Ditto.
18474 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
18475 (vect_is_simple_iv_evolution): Ditto.
18476 (vect_analyze_scalar_cycles_1): Ditto.
18477 (vect_get_loop_niters): Ditto.
18478 (vect_analyze_loop_1): Ditto.
18479 (vect_analyze_loop_form): Ditto.
18480 (vect_analyze_loop_operations): Ditto.
18481 (vect_analyze_loop_2): Ditto.
18482 (vect_analyze_loop): Ditto.
18483 (report_vect_op): Ditto.
18484 (vect_is_slp_reduction): Ditto.
18485 (vect_is_simple_reduction_1): Ditto.
18486 (vect_get_known_peeling_cost): Ditto.
18487 (vect_estimate_min_profitable_iters): Ditto.
18488 (vect_model_reduction_cost): Ditto.
18489 (vect_model_induction_cost): Ditto.
18490 (get_initial_def_for_induction): Ditto.
18491 (vect_create_epilog_for_reduction): Ditto.
18492 (vectorizable_reduction): Ditto.
18493 (vectorizable_induction): Ditto.
18494 (vectorizable_live_operation): Ditto.
18495 (vect_loop_kill_debug_uses): Ditto.
18496 (vect_transform_loop): Ditto.
18497 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
18498 (vect_stmt_relevant_p): Ditto.
18499 (process_use): Ditto.
18500 (vect_mark_stmts_to_be_vectorized): Ditto.
18501 (vect_model_simple_cost): Ditto.
18502 (vect_model_promotion_demotion_cost): Ditto.
18503 (vect_model_store_cost): Ditto.
18504 (vect_get_store_cost): Ditto.
18505 (vect_model_load_cost): Ditto.
18506 (vect_get_load_cost): Ditto.
18507 (vect_init_vector_1): Ditto.
18508 (vect_get_vec_def_for_operand): Ditto.
18509 (vect_finish_stmt_generation): Ditto.
18510 (vectorizable_call): Ditto.
18511 (vectorizable_conversion): Ditto.
18512 (vectorizable_assignment): Ditto.
18513 (vectorizable_shift): Ditto.
18514 (vectorizable_operation): Ditto.
18515 (vectorizable_store): Ditto.
18516 (vectorizable_load): Ditto.
18517 (vectorizable_condition): Ditto.
18518 (vect_analyze_stmt): Ditto.
18519 (vect_transform_stmt): Ditto.
18520 (vect_is_simple_use): Ditto.
18521 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
18522 (vect_can_advance_ivs_p): Ditto.
18523 (vect_update_ivs_after_vectorizer): Ditto.
18524 (vect_do_peeling_for_loop_bound): Ditto.
18525 (vect_gen_niters_for_prolog_loop): Ditto.
18526 (vect_update_inits_of_drs): Ditto.
18527 (vect_create_cond_for_alias_checks): Ditto.
18528 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
18529 (vect_build_slp_tree_1): Ditto.
18530 (vect_supported_load_permutation_p): Ditto.
18531 (vect_analyze_slp_instance): Ditto.
18532 (vect_analyze_slp): Ditto.
18533 (vect_make_slp_decision): Ditto.
18534 (vect_detect_hybrid_slp): Ditto.
18535 (vect_bb_vectorization_profitable_p): Ditto.
18536 (vect_slp_analyze_bb_1): Ditto.
18537 (vect_update_slp_costs_according_to_vf): Ditto.
18538 (vect_get_mask_element): Ditto.
18539 (vect_transform_slp_perm_load): Ditto.
18540 (vect_schedule_slp_instance): Ditto.
18541 (vect_schedule_slp): Ditto.
18542 (vect_slp_transform_bb): Ditto.
18543 * profile.c (read_profile_edge_counts): Ditto.
18544 (compute_branch_probabilities): Ditto.
18545 * coverage.c (get_coverage_counts): Ditto.
18547 2013-09-16 Diego Novillo <dnovillo@google.com>
18549 * tree-core.h: Add missing comment lines from refactoring of tree.h.
18551 2013-09-16 Jan Hubicka <jh@suse.cz>
18553 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
18554 abstract functions; for static functions check the presence of body.
18556 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
18558 * config/aarch64/aarch64-simd-builtins.def (fma): New.
18559 * config/aarch64/aarch64-simd.md
18560 (aarch64_mla_elt<mode>): New.
18561 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
18562 (aarch64_mls_elt<mode>): Likewise.
18563 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
18564 (aarch64_fma4_elt<mode>): Likewise.
18565 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
18566 (aarch64_fma4_elt_to_128v2df): Likewise.
18567 (aarch64_fma4_elt_to_64df): Likewise.
18568 (fnma<mode>4): Likewise.
18569 (aarch64_fnma4_elt<mode>): Likewise.
18570 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
18571 (aarch64_fnma4_elt_to_128v2df): Likewise.
18572 (aarch64_fnma4_elt_to_64df): Likewise.
18573 * config/aarch64/iterators.md (VDQSF): New.
18574 * config/aarch64/arm_neon.h
18575 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
18576 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
18578 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
18580 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
18581 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
18582 (aarch64_mul3_elt_to_128df): Likewise.
18583 (aarch64_mul3_elt_to_64v2df): Likewise.
18584 * config/aarch64/iterators.md (VEL): Also handle DFmode.
18586 (VMUL_CHANGE_NLANES) Likewise.
18589 * config/aarch64/arm_neon.h
18590 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
18592 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
18594 * config/aarch64/arm_neon.h
18595 (vcvtx_high_f32_f64): Fix parameters.
18597 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18598 Uros Bizjak <ubizjak@gmail.com>
18600 * config/alpha.c: Include tree-ssanames.h.
18602 2013-09-16 Richard Biener <rguenther@suse.de>
18604 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
18605 (dot_rdg_1): Handle control_dd.
18606 (create_edge_for_control_dependence): New function.
18607 (create_rdg_edges): Add control dependences if asked for.
18608 (build_rdg): Likewise.
18609 (generate_loops_for_partition): If there are not necessary
18610 control stmts remove all their dependencies.
18611 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
18612 (distribute_loop): Pass on control dependences.
18613 (tree_loop_distribution): Compute control dependences and remove
18614 restriction on number of loop nodes.
18616 2013-09-16 Jakub Jelinek <jakub@redhat.com>
18618 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
18619 for internal calls.
18621 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
18623 * cse.c (try_const_anchors): Punt on CC modes.
18625 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18627 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
18629 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
18632 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
18633 calls to word_mode.
18635 2013-09-14 Iain Sandoe <iain@codesourcery.com>
18638 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
18640 (darwin_objc1_section): Likewise.
18641 (darwin_file_end): Emit Image Info section when required.
18643 2013-09-14 Jan Hubicka <jh@suse.cz>
18645 * tree-into-ssa.c (gate_into_ssa): New.
18646 (pass_data_build_ssa): Use it.
18647 * cgraph.h (expand_thunk): Update prototype.
18648 * cgraphunit.c (analyze_function): Expand thunks early.
18649 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
18650 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
18651 set lowered flag; do not add new function.
18652 (assemble_thunks_and_aliases): Update.
18653 * tree-ssa.c (gate_init_datastructures): New gate.
18654 (pass_data_init_datastructures): Use it.
18656 2013-09-14 Iain Sandoe <iain@codesourcery.com>
18659 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
18660 xmm register set described in the psABI.
18662 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
18664 * dwarf2out.c (should_emit_struct_debug): Add check
18665 for type_decl variable is not NULL.
18667 2013-09-13 Jacek Caban <jacek@codeweavers.com>
18669 * config.gcc: Use new winnt-c.c target hooks
18670 * config/t-winnt: New file
18671 * config/winnt-c.c: New file
18672 * doc/tm.texi.in: Document new hook
18673 * doc/tm.texi: Regenerated
18675 2013-09-13 Jan Hubicka <jh@suse.cz>
18677 PR middle-end/58094
18678 * ipa-inline.c (check_callers): New function.
18679 (check_caller_edge): Remove.
18680 (want_inline_function_to_all_callers_p): Also permit alises that are
18682 (inline_to_all_callers): Terminate the walk when devirtualization
18683 introduce new calls.
18685 2013-09-13 Jan Hubicka <jh@suse.cz>
18687 * ipa-inline-analysis.c (struct growth_data): Add node.
18688 (do_estimate_growth_1): Fix detection of recursion.
18690 2013-09-13 Jakub Jelinek <jakub@redhat.com>
18692 PR tree-optimization/58392
18693 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
18694 to avoid shadowing of outer loop variable. If
18695 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
18696 replace_by_duplicate_decl simduid of loops that have it set and
18697 set dest_cfun->has_simduid_loops and/or
18698 dest_cfun->has_force_vect_loops.
18699 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
18700 instead of maybe_lookup_decl.
18701 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
18702 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
18703 call. Copy over force_vect and copy and remap simduid. Set
18704 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
18705 (copy_cfg_body): Remove blocks_to_copy argument. Use
18706 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
18707 caller. Don't set cfun->has_simduid_loops and/or
18708 cfun->has_force_vect_loops here.
18709 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
18711 (expand_call_inline, tree_function_versioning): Adjust copy_body
18714 2013-09-13 Martin Jambor <mjambor@suse.cz>
18717 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
18718 the assert if the edge was a speculative one.
18720 2013-09-13 Richard Biener <rguenther@suse.de>
18722 * tree-data-ref.h (known_dependences_p): Move here ...
18723 * tree-loop-distribution.c (known_dependences_p): ... from here.
18724 (dump_rdg_component, debug_rdg_component): Remove.
18725 (dump_rdg): Adjust.
18726 (generate_loops_for_partition): Use gimple_uid instead of
18727 relying on matching stmt visit order.
18728 (rdg_build_partitions): Take starting stmt vector.
18729 (ldist_gen): Merge into ...
18730 (distribute_loop): ... this function. Do not compute starting
18732 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
18734 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18736 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
18737 Set type attribute correctly. Set predicable_short_it attribute.
18738 (cmpsi_shiftsi): Remove %? from output template.
18740 2013-09-13 Richard Biener <rguenther@suse.de>
18742 * tree-loop-distribution.c (struct rdg_component,
18743 rdg_defs_used_in_other_loops_p, free_rdg_components,
18744 rdg_build_components): Remove.
18745 (stmts_from_loop): Do not record virtual PHIs.
18746 (generate_loops_for_partition): Skip virtual PHIs.
18747 (build_rdg_partition_for_component): Rename to ...
18748 (build_rdg_partition_for_vertex): ... this and adjust.
18749 (rdg_build_partitions): Take a vector of starting vertices
18750 instead of components. Remove unnecessary leftover handling.
18751 (ldist_gen): Do not build components or record other stores.
18752 (distribute_loop): Do not distribute loops containing stmts
18755 2013-09-13 Christian Bruel <christian.bruel@st.com>
18758 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
18760 2013-09-13 Kai Tietz <ktietz@redhat.com>
18762 * config.gcc: Separate cases for mingw and cygwin targets,
18763 and add 64-bit cygwin target case.
18765 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
18766 dll-export inline-functions.
18767 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
18769 2013-09-13 Jeff Law <law@redhat.com>
18771 PR middle-end/58387
18773 2013-09-06 Jeff Law <law@redhat.com>
18775 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
18776 edge implied equivalences into successor phis.
18778 2013-09-12 DJ Delorie <dj@redhat.com>
18780 * config/rl78/rl78-virt.md: Change from | to \; for asm line
18783 2013-09-12 Brooks Moses <bmoses@google.com>
18786 * Makefile.in: Do not install driver binaries in $(target)/bin.
18788 2013-09-12 DJ Delorie <dj@redhat.com>
18790 * config/rl78/rl78.opt (mrelax): New.
18791 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
18792 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
18794 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
18796 (rl78_expand_epilogue): Likewise.
18798 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
18800 PR middle-end/58335
18801 * lra-eliminations.c (remove_reg_equal_offset_note): New.
18802 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
18803 pointer elimination with using remove_reg_equal_offset_note.
18805 2013-09-12 DJ Delorie <dj@redhat.com>
18807 * config/msp430/: New port.
18808 * config.gcc (msp430): Added.
18809 * doc/invoke.texi: Document MSP430 options.
18810 * doc/install.texi: Document msp430-elf
18811 * doc/md.texi: Document msp430-elf
18812 * doc/contrib.texi: Document msp430-elf
18814 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
18817 2013-09-12 Martin Jambor <mjambor@suse.cz>
18820 * ipa-prop.c (remove_described_reference): Give up if the edge in the
18821 reference descriptor is NULL.
18822 (ipa_edge_removal_hook): If owning a reference descriptor, set its
18825 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
18827 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
18828 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
18829 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
18830 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
18831 make_temp_ssa_name): move to tree-ssanames.h
18832 * tree-ssa-alias.h: Move prototype.
18833 * tree-ssa.h: Include tree-ssanames.h.
18834 * tree-ssanames.c (FREE_SSANAMES): Move to here.
18835 * tree-ssanames.h: New. Move items from tree-flow*.h
18836 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
18838 2013-09-12 Richard Biener <rguenther@suse.de>
18840 PR tree-optimization/58404
18841 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
18842 propagate non-invariant addresses into dereferences wrapped
18843 in component references.
18845 2013-09-12 Richard Biener <rguenther@suse.de>
18847 PR tree-optimization/58402
18848 * passes.def: Move pass_late_warn_uninitialized later.
18850 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
18852 * tree-ssa.h: New. Move content from tree-flow.h and
18853 tree-flow-inline.h.
18854 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
18855 Move prototypes belonging to tree-ssa.c.
18856 * tree-flow-inline.h (redirect_edge_var_map_def,
18857 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
18859 * gimple.h: Adjust prototypes.
18860 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
18862 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
18863 * tree.h: Move prototype to tree-ssa.h.
18864 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
18865 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
18866 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
18867 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
18868 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
18869 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
18870 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
18871 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
18872 graphite-blocking.c, graphite-clast-to-gimple.c,
18873 graphite-dependences.c, graphite-interchange.c,
18874 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
18875 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
18876 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
18877 ipa-reference.c, ipa-split.c, ipa-utils.c,
18878 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
18879 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
18880 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
18881 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
18882 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
18883 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
18884 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
18885 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
18886 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
18887 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
18888 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
18889 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
18890 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
18891 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
18892 value-prof.c, var-tracking.c,
18893 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
18895 2013-09-12 Richard Biener <rguenther@suse.de>
18897 PR tree-optimization/58396
18898 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
18899 (build_rdg): Take a loop-nest parameter, fix memleaks.
18900 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
18902 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
18904 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
18907 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
18909 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
18910 The FMA instruction names should have a 'v' prefix.
18912 2013-09-12 Richard Biener <rguenther@suse.de>
18914 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
18915 (dot_rdg): Use popen instead of system in optional code.
18916 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
18917 (already_processed_vertex_p): Adjust.
18918 (has_anti_or_output_dependence, predecessor_has_mem_write,
18919 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
18920 rdg_flag_uses): Remove.
18921 (rdg_flag_vertex): Simplify.
18922 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
18924 (build_rdg_partition_for_component): Process the first vertex
18925 of a component only.
18926 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
18928 2013-09-12 Alan Modra <amodra@gmail.com>
18930 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
18932 2013-09-11 DJ Delorie <dj@redhat.com>
18933 Nick Clifton <nickc@redhat.com>
18935 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
18936 (rl78_stack_based_mem): New.
18937 * config/rl78/constraints.md (Iv08): New.
18946 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
18948 (movsi): Change from expand to insn-and-split.
18949 (ashrsi3): Clobber AX.
18953 * config/rl78/rl78.md (CC_REG): Fix.
18954 (addsi3): Allow memory and immediate operands.
18955 (addsi3_internal): Split into...
18956 (addsi3_internal_virt): ...new, and ...
18957 (addsi3_internal_real): ...new.
18959 (subsi3_internal_virt): New.
18960 (subsi3_internal_real): New.
18961 (mulsi3): Add memory operand.
18962 (mulsi3_rl78): Likewise.
18963 (mulsi3_g13): Likewise.
18964 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
18965 (cbranchqi4_real): Add more constraint options.
18966 (cbranchhi4_real): Expand pattern.
18967 (cbranchhi4_real_signed): New.
18968 (cbranchhi4_real_inverted): New.
18969 (cbranchsi4_real_lt): New.
18970 (cbranchsi4_real_ge): New.
18971 (cbranchsi4_real_signed): New.
18972 (cbranchsi4_real): New.
18974 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
18976 (lshrsi3_virt): Likewise.
18977 (ashlsi3_virt): Likewise.
18978 (cbranchqi4_virt_signed): New.
18979 (cbranchhi4_virt_signed): New.
18980 (cbranchsi4_virt): New.
18981 * config/rl78/rl78.c: Whitespace fixes throughout.
18982 (move_elim_pass): New.
18983 (pass_data_rl78_move_elim): New.
18984 (pass_rl78_move_elim): New.
18985 (make_pass_rl78_move_elim): New.
18986 (rl78_devirt_info): Run devirt earlier.
18987 (rl78_move_elim_info): New.
18988 (rl78_asm_file_start): Register it.
18989 (rl78_split_movsi): New.
18990 (rl78_as_legitimate_address): Allow virtual base registers when
18992 (rl78_addr_space_convert): Remove spurious debug stuff.
18993 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
18994 (rl78_print_operand): More cases for not printing '#'.
18995 (rl78_expand_compare): Remove most of the logic.
18996 (content_memory): New.
18997 (clear_content_memory): New.
18998 (get_content_index): New.
18999 (get_content_name): New.
19000 (display_content_memory): New.
19001 (update_content): New.
19002 (record_content): New.
19003 (already_contains): New.
19004 (insn_ok_now): Re-recog insns with virtual registers.
19005 (add_postponed_content_update): New.
19006 (process_postponed_content_update): New.
19007 (gen_and_emit_move): New.
19008 (transcode_memory_rtx): Record new location content.
19009 Use gen_and_emit_move.
19010 (force_into_acc): New.
19011 (move_to_acc): Use gen_and_emit_move.
19012 (move_from_acc): Likewise.
19013 (move_acc_to_reg): Likewise.
19014 (move_to_x): Likewise.
19015 (move_to_hl): Likewise.
19016 (move_to_de): Likewise.
19017 (rl78_alloc_physical_registers_op1): Record location content.
19018 (has_constraint): New.
19019 (rl78_alloc_physical_registers_op2): Record location content.
19020 Optimize use of HL.
19021 (rl78_alloc_physical_registers_ro1): Likewise.
19022 (rl78_alloc_physical_registers_cmp): Likewise.
19023 (rl78_alloc_physical_registers_umul): Likewise.
19024 (rl78_alloc_address_registers_macax): New.
19025 (rl78_alloc_physical_registers): Initialize and set location
19026 content memory as needed.
19027 (rl78_reorg): Make sure split2 is called.
19028 (rl78_rtx_costs): New.
19030 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
19032 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
19033 for (not (neg ...)) and (neg (not ...)) cases.
19035 2013-09-11 Richard Biener <rguenther@suse.de>
19037 PR middle-end/58377
19038 * passes.def: Split critical edges before late uninit warning passes.
19039 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
19041 2013-09-11 Jakub Jelinek <jakub@redhat.com>
19043 PR tree-optimization/58385
19044 * fold-const.c (build_range_check): If both low and high are NULL,
19045 use omit_one_operand_loc to preserve exp side-effects.
19047 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19049 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
19051 2013-09-11 Richard Biener <rguenther@suse.de>
19053 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
19054 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
19055 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
19056 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
19057 stmts_from_loop, known_dependences_p, build_empty_rdg,
19058 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
19059 * tree-loop-distribution.c: ... here.
19060 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
19061 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
19062 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
19063 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
19064 * tree-loop-distribution.c: ... here.
19065 * tree-loop-distribution.c: Include gimple-pretty-print.h.
19066 (struct partition_s): Add loops member.
19067 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
19068 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
19069 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
19071 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
19072 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
19073 Sergey Lega <sergey.s.lega@intel.com>
19074 Anna Tikhonova <anna.tikhonova@intel.com>
19075 Ilya Tocar <ilya.tocar@intel.com>
19076 Andrey Turetskiy <andrey.turetskiy@intel.com>
19077 Ilya Verbin <ilya.verbin@intel.com>
19078 Kirill Yukhin <kirill.yukhin@intel.com>
19079 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
19081 * config/i386/constraints.md (k): New.
19083 * config/i386/i386.c (const regclass_map): Add new mask registers.
19084 (dbx_register_map): Ditto.
19085 (dbx64_register_map): Ditto.
19086 (svr4_dbx_register_map): Ditto.
19087 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
19089 (ix86_preferred_reload_class): Disable constants for mask registers.
19090 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
19091 (ix86_hard_regno_mode_ok): Support new mask registers.
19092 (x86_order_regs_for_local_alloc): Ditto.
19093 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
19094 (FIXED_REGISTERS): Add new mask registers.
19095 (CALL_USED_REGISTERS): Ditto.
19096 (REG_ALLOC_ORDER): Ditto.
19097 (VALID_MASK_REG_MODE): New.
19098 (FIRST_MASK_REG): Ditto.
19099 (LAST_MASK_REG): Ditto.
19100 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
19101 (MAYBE_MASK_CLASS_P): New.
19102 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
19103 (REG_CLASS_CONTENTS): Ditto.
19104 (MASK_REGNO_P): New.
19105 (ANY_MASK_REG_P): Ditto.
19106 (HI_REGISTER_NAMES): Add new mask registers.
19107 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
19108 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
19110 (attribute "type"): Add mskmov, msklog.
19111 (attribute "length_immediate"): Support them.
19112 (attribute "memory"): Ditto.
19113 (attribute "prefix_0f"): Ditto.
19114 (*movhi_internal): Support new mask registers.
19115 (*movqi_internal): Ditto.
19116 (define_split): Split out clobber pattern is a logic
19117 insn on mask registers.
19118 (*k<logic><mode>): New.
19119 (*andhi_1): Extend to support mask regs.
19120 (*andqi_1): Extend to support mask regs.
19121 (kandn<mode>): New.
19122 (define_split): Split and-not to and and not if operands
19124 (*<code><mode>_1): Separate HI mode to new pattern...
19125 (*<code>hi_1): This.
19126 (*<code>qi_1): Extend to support mask regs.
19127 (kxnor<mode>): New.
19128 (kortestzhi): Ditto.
19129 (kortestchi): Ditto.
19131 (*one_cmpl<mode>2_1): Remove HImode and handle it...
19132 (*one_cmplhi2_1): ...Here, now with mask registers support.
19133 (*one_cmplqi2_1): Support new mask registers.
19134 (HI/QImode arithmetics splitter): Don't split if mask registers
19136 (HI/QImode not splitter): Ditto.
19137 * config/i386/predicated.md (mask_reg_operand): New.
19138 (general_reg_operand): Ditto.
19140 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
19142 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
19143 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
19145 2013-09-10 Jeff Law <law@redhat.com>
19147 PR tree-optimization/58380
19148 * tree-ssa-threadupdate.c (thread_block): Recognize another case
19149 of threading through a buried loop header.
19151 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
19152 return value for single successor case.
19154 2013-09-10 Jan Hubicka <jh@suse.cz>
19156 * ipa-devirt.c (ipa_devirt): Enable with LTO.
19158 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
19161 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
19162 support conditional execution.
19163 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
19165 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
19167 * lra.c (lra): Clear lra_optional_reload_pseudos before every
19169 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
19170 Check destination too to check move insn.
19171 (undo_optional_reloads): Add check that the original peudo did not
19172 changed its allocation and the optional reload was inherited on last
19173 inheritance pass. Break loop after deciding to keep optional reload.
19174 (lra_undo_inheritance): Add check that inherited pseudo still in
19177 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
19179 * config/aarch64/aarch64.md (generic_sched): New.
19180 * config/aarch64/aarch64-generic.md (load): Make conditional
19181 on generic_sched attribute.
19182 (nonload): Likewise.
19184 2013-09-10 Jan Hubicka <jh@suse.cz>
19186 * lto-cgraph.c: Include ipa-utils.h.
19187 (compute_ltrans_boundary): Also add possible targets into the boundary.
19189 2013-09-10 Jan Hubicka <jh@suse.cz>
19191 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
19192 VAR_DECL of vtable rather than full expression.
19194 2013-09-10 Jan Hubicka <jh@suse.cz>
19195 Paolo Carlini <paolo.carlini@oracle.com>
19197 * cgraphunit.c (analyze_functions): Save input_location, set it
19198 to UNKNOWN_LOCATION and restore it at the end.
19200 2013-09-10 Martin Jambor <mjambor@suse.cz>
19202 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
19203 represented by a thunk.
19205 2013-09-10 Jeff Law <law@redhat.com>
19207 PR tree-optimization/58343
19208 * tree-ssa-threadupdate.c (thread_block): Identify and disable
19209 jump threading requests through loop headers buried in the middle
19210 of a jump threading path.
19212 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
19213 in return value/type.
19215 2013-09-10 Jakub Jelinek <jakub@redhat.com>
19217 PR rtl-optimization/58365
19218 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
19219 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
19222 2013-09-10 Richard Biener <rguenther@suse.de>
19224 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
19225 * tree-data-ref.c (create_rdg_vertices): Collect all data
19226 references, signal failure to the caller, use data-ref API.
19227 (build_rdg): Compute data references only once. Maintain lifetime
19228 of data references and data dependences from within RDG.
19229 (free_rdg): Free dependence relations.
19230 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
19231 inventing extra dependences.
19232 (distribute_loop): Update for RDG API changes.
19234 2013-09-10 Kai Tietz <ktietz@redhat.com>
19236 * doc/invoke.texi (fms-extensions): Document changed
19237 behavior for ms-abi targets.
19238 * config/i386/i386.c (ix86_option_override_internal):
19239 Set default value of option -fms-extension for ms-abi targets.
19241 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
19243 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
19245 2013-09-10 Alan Modra <amodra@gmail.com>
19248 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
19250 2013-09-10 Alan Modra <amodra@gmail.com>
19252 * config/rs6000/predicates.md (add_cint_operand): New.
19253 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
19254 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
19255 using add_cint_operand.
19256 (largetoc_high_plus_aix): Likewise.
19258 2013-09-09 Jakub Jelinek <jakub@redhat.com>
19260 PR tree-optimization/58364
19261 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
19262 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
19263 the current range can't be an unconditional true or false.
19265 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
19267 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
19269 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
19271 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
19273 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
19276 * doc/invoke.texi (-Wdelete-incomplete): Document it.
19278 2013-09-09 Ian Bolton <ian.bolton@arm.com>
19280 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
19281 NO_REGS for immediate that can't be moved directly into FP_REGS.
19283 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19285 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
19286 comparison with negated operand.
19287 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
19290 2013-09-09 Richard Biener <rguenther@suse.de>
19292 PR middle-end/58326
19293 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
19294 of a subloop record all its block as affecting loop-closed SSA form.
19296 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
19298 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
19299 of an rtx/bitpos pair.
19300 (store_fixed_bit_field): Update accordingly.
19302 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
19304 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
19306 * builtins.c (expand_errno_check): Likewise.
19307 * dwarf2cfi.c (init_return_column_size): Likewise.
19308 * except.c (sjlj_mark_call_sites): Likewise.
19309 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
19310 * lra-constraints.c (emit_inc): Likewise.
19311 * ree.c (combine_set_extension): Likewise.
19312 * regmove.c (fixup_match_2): Likewise.
19313 * reload1.c (inc_for_reload): Likewise.
19315 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
19317 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
19318 (force_to_mode, simplify_shift_const_1, simplify_comparison):
19319 Use gen_int_mode with the mode of the associated simplify_* call.
19320 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
19321 * expmed.c (expand_shift_1): Likewise.
19322 * function.c (instantiate_virtual_regs_in_insn): Likewise.
19323 * loop-iv.c (iv_number_of_iterations): Likewise.
19324 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
19325 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
19327 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
19329 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
19330 of the associated expand_* call.
19331 (asan_emit_stack_protection): Likewise.
19332 * builtins.c (round_trampoline_addr): Likewise.
19333 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
19334 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
19335 (emit_store_flag): Likewise.
19336 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
19337 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
19339 * function.c (instantiate_virtual_regs_in_insn): Likewise.
19340 * ifcvt.c (noce_try_store_flag_constants): Likewise.
19341 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
19342 * modulo-sched.c (generate_prolog_epilog): Likewise.
19343 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
19344 (expand_ctz, expand_ffs, expand_unop): Likewise.
19346 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
19348 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
19349 of the associated gen_rtx_* call.
19350 * caller-save.c (init_caller_save): Likewise.
19351 * combine.c (find_split_point, make_extraction): Likewise.
19352 (make_compound_operation): Likewise.
19353 * dwarf2out.c (mem_loc_descriptor): Likewise.
19354 * explow.c (plus_constant, probe_stack_range): Likewise.
19355 * expmed.c (expand_mult_const): Likewise.
19356 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
19357 * reload1.c (init_reload): Likewise.
19358 * valtrack.c (cleanup_auto_inc_dec): Likewise.
19359 * var-tracking.c (adjust_mems): Likewise.
19360 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
19361 rather than gen_rtx_fmt_ee.
19363 2013-09-09 Jan Hubicka <jh@suse.cz>
19365 PR middle-end/58294
19366 * value-prof.c (gimple_ic): Copy also abnormal edges.
19368 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
19370 * asan.c (asan_shadow_cst): Use gen_int_mode.
19372 2013-09-08 Jan Hubicka <jh@suse.cz>
19374 * ipa-profile.c: Add toplevel comment.
19375 (ipa_propagate_frequency_1): Be more conservative when profile is read.
19376 (contains_hot_call_p): New function.
19377 (ipa_propagate_frequency): Set frequencies based on counts when
19379 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
19380 profile; do not tamper with profile after inlining if it is read.
19382 2013-09-08 Jan Hubicka <jh@suse.cz>
19384 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
19387 2013-09-08 Jan Hubicka <jh@suse.cz>
19389 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
19390 summary generation.
19392 2013-09-08 Jeff Law <law@redhat.com>
19395 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
19398 2013-09-08 Andi Kleen <ak@linux.intel.com>
19400 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
19402 2013-09-08 Jan Hubicka <jh@suse.cz>
19404 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
19406 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
19408 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
19409 for non-debug insns.
19410 * lra.c (new_insn_reg): Take the containing insn as a parameter.
19411 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
19412 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
19415 2013-09-08 Jan Hubicka <jh@suse.cz>
19417 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
19418 targets and devirtualize to BUILT_IN_UNREACHABLE.
19419 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
19420 * ipa.c (walk_polymorphic_call_targets): New function.
19421 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
19422 functions; use the new timevar.
19423 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
19424 was removed from the program.
19425 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
19426 not consider it in the walk when its vtable is dead.
19427 (possible_polymorphic_call_targets_1): Pass anonymous flag to
19429 (devirt_variable_node_removal_hook): New function.
19430 (possible_polymorphic_call_targets): Also register
19431 devirt_variable_node_removal_hook.
19432 (ipa_devirt): Do not do non-speculative devirtualization.
19433 (gate_ipa_devirt): One execute if devirtualizing speculatively.
19435 2013-09-08 Jan Hubicka <jh@suse.cz>
19437 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
19438 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
19439 varpool_remove_variable_insertion_hook): Declare.
19440 * varpool.c (varpool_node_hook_list): New structure.
19441 (first_varpool_node_removal_hook,
19442 first_varpool_variable_insertion_hook): New variables.
19443 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
19444 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
19445 varpool_remove_variable_insertion_hook,
19446 varpool_call_variable_insertion_hooks): New functions.
19447 (varpool_remove_node): Use it.
19449 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
19452 * diagnostic.c (diagnostic_build_prefix): When s.file is
19453 "<built-in>" don't output line and column numbers.
19455 2013-09-06 Jan Hubicka <jh@suse.cz>
19457 * cgraphunit.c (expand_thunk): Get body before touching arguments.
19458 * lto-streamer-out.c: Stream thunks, too.
19459 * lto-streamer-in.c (input_function): Pop cfun here
19460 (lto_read_body): Instead of here.
19462 2013-09-06 Caroline Tice <cmtice@google.com>
19464 * doc/install.texi: Add documentation for the --enable-vtable-verify
19465 and the --disable-libvtv configure options.
19467 2013-09-06 Jeff Law <law@redhat.com>
19469 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
19470 edge implied equivalences into successor phis.
19472 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
19474 * resource.c (mark_referenced_resources): Handle COND_EXEC.
19476 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
19478 * resource.c (mark_target_live_regs): Compute resources taking
19479 into account if a call is predicated or not.
19481 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
19483 * toplev.c (output_stack_usage): Be prepared for suffixes created by
19484 the compiler in the function names.
19486 2013-09-06 Jan Hubicka <jh@suse.cz>
19488 PR middle-end/58094
19489 * ipa-inline.c (has_caller_p): New function.
19490 (want_inline_function_to_all_callers_p): Use it.
19491 (sum_callers, inline_to_all_callers): Break out from ...
19492 (ipa_inline): ... here.
19494 2013-09-06 Jan Hubicka <jh@suse.cz>
19496 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
19497 only when AVX is enabled.
19499 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
19501 * config/aarch64/aarch64.md
19502 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
19503 is fpsimd_<load/store>2.
19504 (load_pair<mode>): Likewise.
19505 (store_pair<mode>): Likewise.
19507 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
19509 * config/arm/types.md (type): Add "mrs" type.
19510 * config/aarch64/aarch64.md
19511 (aarch64_load_tp_hard): Make type "mrs".
19512 * config/arm/arm.md
19513 (load_tp_hard): Make type "mrs".
19514 * config/arm/cortex-a15.md: Update with new attributes.
19515 * config/arm/cortex-a5.md: Update with new attributes.
19516 * config/arm/cortex-a53.md: Update with new attributes.
19517 * config/arm/cortex-a7.md: Update with new attributes.
19518 * config/arm/cortex-a8.md: Update with new attributes.
19519 * config/arm/cortex-a9.md: Update with new attributes.
19520 * config/arm/cortex-m4.md: Update with new attributes.
19521 * config/arm/cortex-r4.md: Update with new attributes.
19522 * config/arm/fa526.md: Update with new attributes.
19523 * config/arm/fa606te.md: Update with new attributes.
19524 * config/arm/fa626te.md: Update with new attributes.
19525 * config/arm/fa726te.md: Update with new attributes.
19527 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
19529 * config/aarch64/aarch64.md
19530 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
19531 (*movtf_aarch64): Likewise.
19532 * config/arm/arm.md
19533 (thumb1_movdi_insn): Use "multiple" for type where more than one
19534 instruction is used for a move.
19535 (*arm32_movhf): Likewise.
19536 (*thumb_movdf_insn): Likewise.
19538 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
19540 * config/arm/types.md (type): Rename fcpys to fmov.
19541 * config/arm/vfp.md
19542 (*arm_movsi_vfp): Rename type fcpys as fmov.
19543 (*thumb2_movsi_vfp): Likewise
19544 (*movhf_vfp_neon): Likewise
19545 (*movhf_vfp): Likewise
19546 (*movsf_vfp): Likewise
19547 (*thumb2_movsf_vfp): Likewise
19548 (*movsfcc_vfp): Likewise
19549 (*thumb2_movsfcc_vfp): Likewise
19550 * config/aarch64/aarch64-simd.md
19551 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
19552 * config/aarch64/aarch64.md
19553 (*movsi_aarch64): Replace type mov_reg with fmovs.
19554 (*movdi_aarch64): Likewise
19555 (*movsf_aarch64): Likewise
19556 (*movdf_aarch64): Likewise
19558 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
19559 * config/arm/iwmmxt.md
19560 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
19561 * config/arm/arm1020e.md: Update with new attributes.
19562 * config/arm/cortex-a15-neon.md: Update with new attributes.
19563 * config/arm/cortex-a5.md: Update with new attributes.
19564 * config/arm/cortex-a53.md: Update with new attributes.
19565 * config/arm/cortex-a7.md: Update with new attributes.
19566 * config/arm/cortex-a8-neon.md: Update with new attributes.
19567 * config/arm/cortex-a9.md: Update with new attributes.
19568 * config/arm/cortex-m4-fpu.md: Update with new attributes.
19569 * config/arm/cortex-r4f.md: Update with new attributes.
19570 * config/arm/marvell-pj4.md: Update with new attributes.
19571 * config/arm/vfp11.md: Update with new attributes.
19573 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
19575 * config/aarch64/aarch64.md
19576 (*madd<mode>): Fix type attribute.
19577 (*maddsi_uxtw): Likewise.
19578 (*msub<mode>): Likewise.
19579 (*msubsi_uxtw): Likewise.
19580 (<su_optab>maddsidi4): Likewise.
19581 (<su_optab>msubsidi4): Likewise.
19583 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
19585 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
19586 * config/arm/arm.md (core_cycles): Remove fdiv.
19587 * config/arm/vfp.md:
19588 (*sqrtsf2_vfp): Update for attribute changes.
19589 (*sqrtdf2_vfp): Likewise.
19590 * config/aarch64/aarch64.md:
19591 (sqrt<mode>2): Update for attribute changes.
19592 * config/arm/arm1020e.md: Update with new attributes.
19593 * config/arm/cortex-a15-neon.md: Update with new attributes.
19594 * config/arm/cortex-a5.md: Update with new attributes.
19595 * config/arm/cortex-a53.md: Update with new attributes.
19596 * config/arm/cortex-a7.md: Update with new attributes.
19597 * config/arm/cortex-a8-neon.md: Update with new attributes.
19598 * config/arm/cortex-a9.md: Update with new attributes.
19599 * config/arm/cortex-m4-fpu.md: Update with new attributes.
19600 * config/arm/cortex-r4f.md: Update with new attributes.
19601 * config/arm/marvell-pj4.md: Update with new attributes.
19602 * config/arm/vfp11.md: Update with new attributes.
19604 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
19606 * config/arm/types.md
19607 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
19608 * config/aarch64/aarch64.md
19609 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
19611 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
19612 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
19613 (float<GPI:mode><GPF:mode>2): Likewise.
19614 * config/arm/vfp.md
19615 (*truncsisf2_vfp): Update with new attributes.
19616 (*truncsidf2_vfp): Likewise.
19617 (fixuns_truncsfsi2): Likewise.
19618 (fixuns_truncdfsi2): Likewise.
19619 (*floatsisf2_vfp): Likewise.
19620 (*floatsidf2_vfp): Likewise.
19621 (floatunssisf2): Likewise.
19622 (floatunssidf2): Likewise.
19623 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
19624 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
19625 * config/arm/arm1020e.md: Update with new attributes.
19626 * config/arm/cortex-a15-neon.md: Update with new attributes.
19627 * config/arm/cortex-a5.md: Update with new attributes.
19628 * config/arm/cortex-a53.md: Update with new attributes.
19629 * config/arm/cortex-a7.md: Update with new attributes.
19630 * config/arm/cortex-a8-neon.md: Update with new attributes.
19631 * config/arm/cortex-a9.md: Update with new attributes.
19632 * config/arm/cortex-m4-fpu.md: Update with new attributes.
19633 * config/arm/cortex-r4f.md: Update with new attributes.
19634 * config/arm/marvell-pj4.md: Update with new attributes.
19635 * config/arm/vfp11.md: Update with new attributes.
19637 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
19639 * config/aarch64/arm_neon.h
19640 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
19641 (vqtbx<1,2,3,4><q>_s8): Likewise.
19643 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
19645 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
19646 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
19647 (add<mode>3): Add type attribute.
19648 (add<mode>3): Likewise.
19649 (usadd<mode>3): Likewise.
19650 (ssadd<mode>3): Likewise.
19651 (sub<mode>3): Likewise.
19652 (sub<mode>3): Likewise.
19653 (ussub<mode>3): Likewise.
19654 (sssub<mode>3): Likewise.
19655 (ssmulsa3): Likewise.
19656 (usmulusa3): Likewise.
19657 (arm_usatsihi): Likewise.
19658 * config/arm/vfp.md
19659 (*movdi_vfp): Add types for all instructions.
19660 (*movdi_vfp_cortexa8): Likewise.
19661 (*movhf_vfp_neon): Likewise.
19662 (*movhf_vfp): Likewise.
19663 (*movdf_vfp): Likewise.
19664 (*thumb2_movdf_vfp): Likewise.
19665 (*thumb2_movdfcc_vfp): Likewise.
19666 * config/arm/arm.md: Add type attribute to all insn patterns.
19667 (*thumb1_adddi3): Add type attribute.
19668 (*arm_adddi3): Likewise.
19669 (*adddi_sesidi_di): Likewise.
19670 (*adddi_zesidi_di): Likewise.
19671 (*thumb1_addsi3): Likewise.
19672 (addsi3_compare0): Likewise.
19673 (*addsi3_compare0_scratch): Likewise.
19674 (*compare_negsi_si): Likewise.
19675 (cmpsi2_addneg): Likewise.
19676 (*addsi3_carryin_<optab>): Likewise.
19677 (*addsi3_carryin_alt2_<optab>): Likewise.
19678 (*addsi3_carryin_clobercc_<optab>): Likewise.
19679 (*subsi3_carryin): Likewise.
19680 (*subsi3_carryin_const): Likewise.
19681 (*subsi3_carryin_compare): Likewise.
19682 (*subsi3_carryin_compare_const): Likewise.
19683 (*arm_subdi3): Likewise.
19684 (*thumb_subdi3): Likewise.
19685 (*subdi_di_zesidi): Likewise.
19686 (*subdi_di_sesidi): Likewise.
19687 (*subdi_zesidi_di): Likewise.
19688 (*subdi_sesidi_di): Likewise.
19689 (*subdi_zesidi_ze): Likewise.
19690 (thumb1_subsi3_insn): Likewise.
19691 (*arm_subsi3_insn): Likewise.
19692 (*anddi3_insn): Likewise.
19693 (*anddi_zesidi_di): Likewise.
19694 (*anddi_sesdi_di): Likewise.
19695 (*ne_zeroextracts): Likewise.
19696 (*ne_zeroextracts): Likewise.
19697 (*ite_ne_zeroextr): Likewise.
19698 (*ite_ne_zeroextr): Likewise.
19699 (*anddi_notdi_di): Likewise.
19700 (*anddi_notzesidi): Likewise.
19701 (*anddi_notsesidi): Likewise.
19702 (andsi_notsi_si): Likewise.
19703 (thumb1_bicsi3): Likewise.
19704 (*iordi3_insn): Likewise.
19705 (*iordi_zesidi_di): Likewise.
19706 (*iordi_sesidi_di): Likewise.
19707 (*thumb1_iorsi3_insn): Likewise.
19708 (*xordi3_insn): Likewise.
19709 (*xordi_zesidi_di): Likewise.
19710 (*xordi_sesidi_di): Likewise.
19711 (*arm_xorsi3): Likewise.
19712 (*andsi_iorsi3_no): Likewise.
19713 (*smax_0): Likewise.
19714 (*smax_m1): Likewise.
19715 (*arm_smax_insn): Likewise.
19716 (*smin_0): Likewise.
19717 (*arm_smin_insn): Likewise.
19718 (*arm_umaxsi3): Likewise.
19719 (*arm_uminsi3): Likewise.
19720 (*minmax_arithsi): Likewise.
19721 (*minmax_arithsi_): Likewise.
19722 (*satsi_<SAT:code>): Likewise.
19723 (arm_ashldi3_1bit): Likewise.
19724 (arm_ashrdi3_1bit): Likewise.
19725 (arm_lshrdi3_1bit): Likewise.
19726 (*arm_negdi2): Likewise.
19727 (*thumb1_negdi2): Likewise.
19728 (*arm_negsi2): Likewise.
19729 (*thumb1_negsi2): Likewise.
19730 (*negdi_extendsid): Likewise.
19731 (*negdi_zero_extend): Likewise.
19732 (*arm_abssi2): Likewise.
19733 (*thumb1_abssi2): Likewise.
19734 (*arm_neg_abssi2): Likewise.
19735 (*thumb1_neg_abss): Likewise.
19736 (one_cmpldi2): Likewise.
19737 (extend<mode>di2): Likewise.
19738 (*compareqi_eq0): Likewise.
19739 (*arm_extendhisi2addsi): Likewise.
19740 (*arm_movdi): Likewise.
19741 (*thumb1_movdi_insn): Likewise.
19742 (*arm_movt): Likewise.
19743 (*thumb1_movsi_insn): Likewise.
19744 (pic_add_dot_plus_four): Likewise.
19745 (pic_add_dot_plus_eight): Likewise.
19746 (tls_load_dot_plus_eight): Likewise.
19747 (*thumb1_movhi_insn): Likewise.
19748 (*thumb1_movsf_insn): Likewise.
19749 (*movdf_soft_insn): Likewise.
19750 (*thumb_movdf_insn): Likewise.
19751 (cbranchsi4_insn): Likewise.
19752 (cbranchsi4_scratch): Likewise.
19753 (*negated_cbranchsi4): Likewise.
19754 (*tbit_cbranch): Likewise.
19755 (*tlobits_cbranch): Likewise.
19756 (*tstsi3_cbranch): Likewise.
19757 (*cbranchne_decr1): Likewise.
19758 (*addsi3_cbranch): Likewise.
19759 (*addsi3_cbranch_scratch): Likewise.
19760 (*arm_cmpdi_insn): Likewise.
19761 (*arm_cmpdi_unsig): Likewise.
19762 (*arm_cmpdi_zero): Likewise.
19763 (*thumb_cmpdi_zero): Likewise.
19764 (*deleted_compare): Likewise.
19765 (*mov_scc): Likewise.
19766 (*mov_negscc): Likewise.
19767 (*mov_notscc): Likewise.
19768 (*cstoresi_eq0_thumb1_insn): Likewise.
19769 (cstoresi_nltu_thumb1): Likewise.
19770 (cstoresi_ltu_thu): Likewise.
19771 (thumb1_addsi3_addgeu): Likewise.
19772 (*arm_jump): Likewise.
19773 (*thumb_jump): Likewise.
19774 (*check_arch2): Likewise.
19775 (arm_casesi_internal): Likewise.
19776 (thumb1_casesi_dispatch): Likewise.
19777 (*arm_indirect_jump): Likewise.
19778 (*thumb1_indirect_jump): Likewise.
19780 (*and_scc): Likewise.
19781 (*ior_scc): Likewise.
19782 (*compare_scc): Likewise.
19783 (*cond_move): Likewise.
19784 (*cond_arith): Likewise.
19785 (*cond_sub): Likewise.
19786 (*cmp_ite0): Likewise.
19787 (*cmp_ite1): Likewise.
19788 (*cmp_and): Likewise.
19789 (*cmp_ior): Likewise.
19790 (*ior_scc_scc): Likewise.
19791 (*ior_scc_scc_cmp): Likewise.
19792 (*and_scc_scc): Likewise.
19793 (*and_scc_scc_cmp): Likewise.
19794 (*and_scc_scc_nod): Likewise.
19795 (*negscc): Likewise.
19796 (movcond_addsi): Likewise.
19797 (movcond): Likewise.
19798 (*ifcompare_plus_move): Likewise.
19799 (*if_plus_move): Likewise.
19800 (*ifcompare_move_plus): Likewise.
19801 (*if_move_plus): Likewise.
19802 (*ifcompare_arith_arith): Likewise.
19803 (*if_arith_arith): Likewise.
19804 (*ifcompare_arith_move): Likewise.
19805 (*if_arith_move): Likewise.
19806 (*ifcompare_move_arith): Likewise.
19807 (*if_move_arith): Likewise.
19808 (*ifcompare_move_not): Likewise.
19809 (*if_move_not): Likewise.
19810 (*ifcompare_not_move): Likewise.
19811 (*if_not_move): Likewise.
19812 (*ifcompare_shift_move): Likewise.
19813 (*if_shift_move): Likewise.
19814 (*ifcompare_move_shift): Likewise.
19815 (*if_move_shift): Likewise.
19816 (*ifcompare_shift_shift): Likewise.
19817 (*ifcompare_not_arith): Likewise.
19818 (*ifcompare_arith_not): Likewise.
19819 (*if_arith_not): Likewise.
19820 (*ifcompare_neg_move): Likewise.
19821 (*if_neg_move): Likewise.
19822 (*ifcompare_move_neg): Likewise.
19823 (*if_move_neg): Likewise.
19824 (prologue_thumb1_interwork): Likewise.
19825 (*cond_move_not): Likewise.
19826 (*sign_extract_onebit): Likewise.
19827 (*not_signextract_onebit): Likewise.
19828 (stack_tie): Likewise.
19829 (align_4): Likewise.
19830 (align_8): Likewise.
19831 (consttable_end): Likewise.
19832 (consttable_1): Likewise.
19833 (consttable_2): Likewise.
19834 (consttable_4): Likewise.
19835 (consttable_8): Likewise.
19836 (consttable_16): Likewise.
19837 (*thumb1_tablejump): Likewise.
19838 (prefetch): Likewise.
19839 (force_register_use): Likewise.
19840 (thumb_eh_return): Likewise.
19841 (load_tp_hard): Likewise.
19842 (load_tp_soft): Likewise.
19843 (tlscall): Likewise.
19844 (*arm_movtas_ze): Likewise.
19845 (*arm_rev): Likewise.
19846 (*arm_revsh): Likewise.
19847 (*arm_rev16): Likewise.
19848 * config/arm/thumb2.md
19849 (*thumb2_smaxsi3): Likewise.
19850 (*thumb2_sminsi3): Likewise.
19851 (*thumb32_umaxsi3): Likewise.
19852 (*thumb2_uminsi3): Likewise.
19853 (*thumb2_negdi2): Likewise.
19854 (*thumb2_abssi2): Likewise.
19855 (*thumb2_neg_abss): Likewise.
19856 (*thumb2_movsi_insn): Likewise.
19857 (tls_load_dot_plus_four): Likewise.
19858 (*thumb2_movhi_insn): Likewise.
19859 (*thumb2_mov_scc): Likewise.
19860 (*thumb2_mov_negs): Likewise.
19861 (*thumb2_mov_negs): Likewise.
19862 (*thumb2_mov_nots): Likewise.
19863 (*thumb2_mov_nots): Likewise.
19864 (*thumb2_movsicc_): Likewise.
19865 (*thumb2_movsfcc_soft_insn): Likewise.
19866 (*thumb2_indirect_jump): Likewise.
19867 (*thumb2_and_scc): Likewise.
19868 (*thumb2_ior_scc): Likewise.
19869 (*thumb2_ior_scc_strict_it): Likewise.
19870 (*thumb2_cond_move): Likewise.
19871 (*thumb2_cond_arith): Likewise.
19872 (*thumb2_cond_ari): Likewise.
19873 (*thumb2_cond_sub): Likewise.
19874 (*thumb2_negscc): Likewise.
19875 (*thumb2_movcond): Likewise.
19876 (thumb2_casesi_internal): Likewise.
19877 (thumb2_casesi_internal_pic): Likewise.
19878 (*thumb2_alusi3_short): Likewise.
19879 (*thumb2_mov<mode>_shortim): Likewise.
19880 (*thumb2_addsi_short): Likewise.
19881 (*thumb2_subsi_short): Likewise.
19882 (thumb2_addsi3_compare0): Likewise.
19883 (*thumb2_cbz): Likewise.
19884 (*thumb2_cbnz): Likewise.
19885 (*thumb2_one_cmplsi2_short): Likewise.
19886 (*thumb2_negsi2_short): Likewise.
19887 (*orsi_notsi_si): Likewise.
19888 * config/arm/arm1020e.md: Update with new attributes.
19889 * config/arm/arm1026ejs.md: Update with new attributes.
19890 * config/arm/arm1136jfs.md: Update with new attributes.
19891 * config/arm/arm926ejs.md: Update with new attributes.
19892 * config/arm/cortex-a15.md: Update with new attributes.
19893 * config/arm/cortex-a5.md: Update with new attributes.
19894 * config/arm/cortex-a53.md: Update with new attributes.
19895 * config/arm/cortex-a7.md: Update with new attributes.
19896 * config/arm/cortex-a8.md: Update with new attributes.
19897 * config/arm/cortex-a9.md: Update with new attributes.
19898 * config/arm/cortex-m4.md: Update with new attributes.
19899 * config/arm/cortex-r4.md: Update with new attributes.
19900 * config/arm/fa526.md: Update with new attributes.
19901 * config/arm/fa606te.md: Update with new attributes.
19902 * config/arm/fa626te.md: Update with new attributes.
19903 * config/arm/fa726te.md: Update with new attributes.
19905 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
19907 * config/aarch64/aarch64-simd.md
19908 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
19909 <vwx> iterator to ensure correct register choice.
19910 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
19911 (aarch64_sqdmull_n<mode>): Likewise.
19912 (aarch64_sqdmull2_n<mode>_internal): Likewise.
19913 * config/aarch64/arm_neon.h
19914 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
19915 (vml<as><q>_n_<su>16): Likewise.
19916 (vml<as>l_high_lane<q>_<su>16): Likewise.
19917 (vml<as>l_high_n_<su>16): Likewise.
19918 (vml<as>l_lane<q>_<su>16): Likewise.
19919 (vml<as>l_n_<su>16): Likewise.
19920 (vmul<q>_lane<q>_<su>16): Likewise.
19921 (vmul<q>_n_<su>16): Likewise.
19922 (vmull_lane<q>_<su>16): Likewise.
19923 (vmull_n_<su>16): Likewise.
19924 (vmull_high_lane<q>_<su>16): Likewise.
19925 (vmull_high_n_<su>16): Likewise.
19926 (vqrdmulh<q>_n_s16): Likewise.
19928 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
19930 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
19931 have the correct lane parameter.
19933 2013-09-06 Richard Biener <rguenther@suse.de>
19935 * cfganal.c (control_dependences::~control_dependences):
19936 Properly free all of the vector.
19938 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
19941 * config/i386/i386.c (ix86_conditional_register_usage):
19942 Proper initialize extended SSE registers.
19944 2013-09-06 Jan Hubicka <jh@suse.cz>
19946 PR tree-optimization/58311
19947 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
19949 2013-09-06 Jan Hubicka <jh@suse.cz>
19951 * Makefile.in (tree-sra.o): Update dependencies.
19952 * tree-sra.c: Include ipa-utils.h
19953 (scan_function): Use recursive_call_p.
19954 (has_caller_p): New function.
19955 (cgraph_for_node_and_aliases): Count also callers of aliases.
19957 2013-09-06 Jan Hubicka <jh@suse.cz>
19959 PR middle-end/58094
19960 * cgraph.h (symtab_semantically_equivalent_p): Declare.
19961 * tree-tailcall.c: Include ipa-utils.h.
19962 (find_tail_calls): Use it.
19963 * ipa-pure-const.c (check_call): Likewise.
19964 * ipa-utils.c (recursive_call_p): New function.
19965 * ipa-utils.h (recursive_call_p): Dclare.
19966 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
19967 (symtab_semantically_equivalent_p): New function.
19968 * Makefile.in (tree-tailcall.o): Update dependencies.
19970 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
19972 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
19973 non-inlinable part.
19975 2013-09-06 Richard Biener <rguenther@suse.de>
19977 * lto-streamer.h (lto_global_var_decls): Remove.
19978 * Makefile.in (OBJS): Remove lto-symtab.o.
19979 (lto-symtab.o): Remove.
19980 (GTFILES): Remove lto-symtab.c
19981 * lto-symtab.c: Move to lto/
19983 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19985 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
19986 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
19987 (UNSPEC_FPINT_RINT): New constant definitions.
19988 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
19989 definition with 2 attributes.
19990 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
19991 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
19994 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19996 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
19997 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
19998 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
19999 attribute to "z196_alone".
20000 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
20003 2013-09-06 Richard Biener <rguenther@suse.de>
20005 * basic-block.h (class control_dependences): New.
20006 * tree-ssa-dce.c (control_dependence_map): Remove.
20008 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
20009 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
20010 find_pdom, find_control_dependence, find_all_control_dependences):
20012 (mark_control_dependent_edges_necessary,
20013 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
20014 tree_dce_done, perform_tree_ssa_dce): Adjust.
20015 * cfganal.c (set_control_dependence_map_bit,
20016 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
20017 find_all_control_dependences): Move from tree-ssa-dce.c and
20018 implement as methods of control_dependences class.
20019 (control_dependences::control_dependences): New.
20020 (control_dependences::~control_dependences): Likewise.
20021 (control_dependences::get_edges_dependent_on): Likewise.
20022 (control_dependences::get_edge): Likewise.
20024 2013-09-04 Jan Hubicka <jh@suse.cz>
20026 * tree.c (types_same_for_odr): Drop overactive check.
20027 * ipa-devirt.c (hash_type_name): Likewise.
20029 2013-09-04 Jan Hubicka <jh@suse.cz>
20031 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
20032 (analyze_functions): ... here.
20034 2013-09-04 Jan Hubicka <jh@suse.cz>
20036 PR middle-end/58201
20037 * cgraphunit.c (analyze_functions): Clear AUX fields
20038 after processing; initialize assembler name has.
20040 2013-09-05 Jeff Law <law@redhat.com>
20042 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
20043 from thread_around_empty_block. Record threading path into PATH.
20044 Recurse if threading through the initial block is successful.
20045 (thread_across_edge): Corresponding changes to slightly simplify.
20047 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
20049 * config/aarch64/aarch64.md
20050 (type): Remove frecpe, frecps, frecpx.
20051 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
20052 fix to be a TARGET_SIMD instruction.
20053 (aarch64_frecps): Remove.
20054 * config/aarch64/aarch64-simd.md
20055 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
20056 (aarch64_frecps<mode>): Handle all float/vector of float modes.
20058 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
20059 Sofiane Naci <sofiane.naci@arm.com>
20061 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
20062 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
20063 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
20064 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
20065 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
20066 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
20067 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
20068 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
20069 into "clz, "rbit". Rename "shift" to "shift_imm".
20070 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
20071 changes. Update for attribute changes all occurrences of arlo_* and
20073 * config/arm/arm-fixed.md: Update for attribute changes
20074 all occurrences of arlo_* types.
20075 * config/arm/thumb2.md: Update for attribute changes all occurrences
20077 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
20078 (cortexa7_older_only): Likewise.
20079 (cortexa7_younger): Likewise.
20080 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
20081 (1020alu_shift_op): Likewise.
20082 (1020alu_shift_reg_op): Likewise.
20083 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
20084 (alu_shift_op): Likewise.
20085 (alu_shift_reg_op): Likewise.
20086 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
20087 (11_alu_shift_op): Likewise.
20088 (11_alu_shift_reg_op): Likewise.
20089 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
20090 (9_alu_shift_reg_op): Likewise.
20091 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
20093 (cortex_a15_alu_shift): Likewise.
20094 (cortex_a15_alu_shift_reg): Likewise.
20095 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
20097 (cortex_a5_alu_shift): Likewise.
20098 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
20100 (cortex_a53_alu_shift): Likewise.
20101 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
20103 (cortex_a7_alu_reg): Likewise.
20104 (cortex_a7_alu_shift): Likewise.
20105 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
20107 (cortex_a8_alu_shift): Likewise.
20108 (cortex_a8_alu_shift_reg): Likewise.
20109 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
20110 (cortex_a9_dp_shift): Likewise.
20111 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
20113 * config/arm/cortex-r4.md
20114 (cortex_r4_alu): Update for attribute changes.
20115 (cortex_r4_mov): Likewise.
20116 (cortex_r4_alu_shift_reg): Likewise.
20117 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
20118 (526_alu_shift_op): Likewise.
20119 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
20120 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
20121 (626te_alu_shift_op): Likewise.
20122 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
20123 (726te_alu_shift_op): Likewise.
20124 (726te_alu_shift_reg_op): Likewise.
20125 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
20126 (mp626_alu_shift_op): Likewise.
20127 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
20128 (pj4_alu_conds): Likewise.
20129 (pj4_shift): Likewise.
20130 (pj4_shift_conds): Likewise.
20131 (pj4_alu_shift): Likewise.
20132 (pj4_alu_shift_conds): Likewise.
20133 * config/aarch64/aarch64.md: Update for attribute change
20134 all occurrences of arlo_* and shift* types.
20136 2013-09-05 Mike Stump <mikestump@comcast.net>
20138 * tree.h: Move documentation for tree_function_decl to tree-core.h
20139 with the declaration.
20141 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
20144 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
20145 looking for widest mode.
20147 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
20149 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
20151 2013-09-05 Richard Biener <rguenther@suse.de>
20153 PR tree-optimization/58137
20154 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
20155 Do not create vectors of pointers.
20156 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
20157 types for the components of the vector initializer.
20158 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
20159 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
20161 2013-09-05 Martin Jambor <mjambor@suse.cz>
20163 * ipa-prop.c (remove_described_reference): Accept missing references,
20164 return false if that hppens, otherwise return true.
20165 (cgraph_node_for_jfunc): New function.
20166 (try_decrement_rdesc_refcount): Likewise.
20167 (try_make_edge_direct_simple_call): Use them.
20168 (ipa_edge_removal_hook): Remove references from rdescs.
20169 (ipa_edge_duplication_hook): Clone rdescs and their references
20170 when the new edge has the same caller as the old one.
20171 * cgraph.c (cgraph_resolve_speculation): Remove speculative
20172 reference before removing any edges.
20174 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
20176 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
20178 * thumb2.md (thumb2_storewb_parisi): New pattern.
20180 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
20182 * config/aarch64/aarch64-option-extensions.def: Add
20183 AARCH64_OPT_EXTENSION of 'crc'.
20184 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
20185 (AARCH64_ISA_CRC): Ditto.
20186 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
20187 description of the CRC extension.
20189 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
20191 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
20192 * config/rs6000/linux.h: Ditto.
20193 * alpha/linux.h: Ditto.
20194 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
20195 no_c99_libc_has_function.
20196 * config/c6x/uclinux-elf.h: Ditto.
20197 * config/lm32/uclinux-elf.h: Ditto.
20198 * config/m68k/uclinux.h: Ditto.
20199 * config/moxie/uclinux.h: Ditto.
20200 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
20201 (crisv32-*-linux*, cris-*-linux*): Ditto.
20202 * config/bfin/bfin.c: Include "tm_p.h".
20204 2013-09-05 Richard Biener <rguenther@suse.de>
20206 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
20207 check for a definition without a basic-block.
20209 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
20210 Sofiane Naci <sofiane.naci@arm.com>
20212 * config/aarch64/aarch64.md
20213 (*movti_aarch64): Rename r_2_f and f_2_r.
20214 (*movsf_aarch64): Likewise.
20215 (*movdf_aarch64): Likewise.
20216 (*movtf_aarch64): Likewise.
20217 (aarch64_movdi_<mode>low): Likewise.
20218 (aarch64_movdi_<mode>high): Likewise.
20219 (aarch64_mov<mode>high_di): Likewise.
20220 (aarch64_mov<mode>low_di): Likewise.
20221 (aarch64_movtilow_tilow): Likewise.
20222 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
20223 values to config/arm/types.md
20224 (attribute "conds"): Update for attribute change.
20225 (anddi3_insn): Likewise.
20226 (iordi3_insn): Likewise.
20227 (xordi3_insn): Likewise.
20228 (one_cmpldi2): Likewise.
20229 * config/arm/types.md (type): Add Neon types.
20230 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
20231 use "type" attribute.
20232 (movmisalign<mode>_neon_store): Likewise.
20233 (movmisalign<mode>_neon_load): Likewise.
20234 (vec_set<mode>_internal): Likewise.
20235 (vec_setv2di_internal): Likewise.
20236 (vec_extract<mode>): Likewise.
20237 (vec_extractv2di): Likewise.
20238 (add<mode>3_neon): Likewise.
20239 (adddi3_neon): Likewise.
20240 (sub<mode>3_neon): Likewise.
20241 (subdi3_neon): Likewise.
20242 (mul<mode>3_neon): Likewise.
20243 (mul<mode>3add<mode>_neon): Likewise.
20244 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
20245 (fma<VCVTF:mode>4)): Likewise.
20246 (fma<VCVTF:mode>4_intrinsic): Likewise.
20247 (fmsub<VCVTF:mode>4)): Likewise.
20248 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
20249 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
20250 (ior<mode>3): Likewise.
20251 (and<mode>3): Likewise.
20252 (anddi3_neon): Likewise.
20253 (orn<mode>3_neon): Likewise.
20254 (orndi3_neon): Likewise.
20255 (bic<mode>3_neon): Likewise.
20256 (bicdi3_neon): Likewise.
20257 (xor<mode>3): Likewise.
20258 (one_cmpl<mode>2): Likewise.
20259 (abs<mode>2): Likewise.
20260 (neg<mode>2): Likewise.
20261 (umin<mode>3_neon): Likewise.
20262 (umax<mode>3_neon): Likewise.
20263 (smin<mode>3_neon): Likewise.
20264 (smax<mode>3_neon): Likewise.
20265 (vashl<mode>3): Likewise.
20266 (vashr<mode>3_imm): Likewise.
20267 (vlshr<mode>3_imm): Likewise.
20268 (ashl<mode>3_signed): Likewise.
20269 (ashl<mode>3_unsigned): Likewise.
20270 (neon_load_count): Likewise.
20271 (ashldi3_neon_noclobber): Likewise.
20272 (signed_shift_di3_neon): Likewise.
20273 (unsigned_shift_di3_neon): Likewise.
20274 (ashrdi3_neon_imm_noclobber): Likewise.
20275 (lshrdi3_neon_imm_noclobber): Likewise.
20276 (widen_ssum<mode>3): Likewise.
20277 (widen_usum<mode>3): Likewise.
20278 (quad_halves_<code>v4si): Likewise.
20279 (quad_halves_<code>v4sf): Likewise.
20280 (quad_halves_<code>v8hi): Likewise.
20281 (quad_halves_<code>v16qi): Likewise.
20282 (reduc_splus_v2di): Likewise.
20283 (neon_vpadd_internal<mode>): Likewise.
20284 (neon_vpsmin<mode>): Likewise.
20285 (neon_vpsmax<mode>): Likewise.
20286 (neon_vpumin<mode>): Likewise.
20287 (neon_vpumax<mode>): Likewise.
20288 (ss_add<mode>_neon): Likewise.
20289 (us_add<mode>_neon): Likewise.
20290 (ss_sub<mode>_neon): Likewise.
20291 (us_sub<mode>_neon): Likewise.
20292 (neon_vadd<mode>_unspec): Likewise.
20293 (neon_vaddl<mode>): Likewise.
20294 (neon_vaddw<mode>): Likewise.
20295 (neon_vhadd<mode>): Likewise.
20296 (neon_vqadd<mode>): Likewise.
20297 (neon_vaddhn<mode>): Likewise.
20298 (neon_vmul<mode>): Likewise.
20299 (neon_vmla<mode>): Likewise.
20300 (neon_vmlal<mode>): Likewise.
20301 (neon_vmls<mode>): Likewise.
20302 (neon_vmlsl<mode>): Likewise.
20303 (neon_vqdmulh<mode>): Likewise.
20304 (neon_vqdmlal<mode>): Likewise.
20305 (neon_vqdmlsl<mode>): Likewise.
20306 (neon_vmull<mode>): Likewise.
20307 (neon_vqdmull<mode>): Likewise.
20308 (neon_vsub<mode>_unspec): Likewise.
20309 (neon_vsubl<mode>): Likewise.
20310 (neon_vsubw<mode>): Likewise.
20311 (neon_vqsub<mode>): Likewise.
20312 (neon_vhsub<mode>): Likewise.
20313 (neon_vsubhn<mode>): Likewise.
20314 (neon_vceq<mode>): Likewise.
20315 (neon_vcge<mode>): Likewise.
20316 (neon_vcgeu<mode>): Likewise.
20317 (neon_vcgt<mode>): Likewise.
20318 (neon_vcgtu<mode>): Likewise.
20319 (neon_vcle<mode>): Likewise.
20320 (neon_vclt<mode>): Likewise.
20321 (neon_vcage<mode>): Likewise.
20322 (neon_vcagt<mode>): Likewise.
20323 (neon_vtst<mode>): Likewise.
20324 (neon_vabd<mode>): Likewise.
20325 (neon_vabdl<mode>): Likewise.
20326 (neon_vaba<mode>): Likewise.
20327 (neon_vabal<mode>): Likewise.
20328 (neon_vmax<mode>): Likewise.
20329 (neon_vmin<mode>): Likewise.
20330 (neon_vpaddl<mode>): Likewise.
20331 (neon_vpadal<mode>): Likewise.
20332 (neon_vpmax<mode>): Likewise.
20333 (neon_vpmin<mode>): Likewise.
20334 (neon_vrecps<mode>): Likewise.
20335 (neon_vrsqrts<mode>): Likewise.
20336 (neon_vqabs<mode>): Likewise.
20337 (neon_vqneg<mode>): Likewise.
20338 (neon_vcls<mode>): Likewise.
20339 (clz<mode>2): Likewise.
20340 (popcount<mode>2): Likewise.
20341 (neon_vrecpe): Likewise.
20342 (neon_vrsqrte): Likewise.
20343 (neon_vget_lane<mode>_sext_internal): Likewise.
20344 (neon_vget_lane<mode>_zext_internal): Likewise.
20345 (neon_vdup_n<mode>): Likewise.
20346 (neon_vdup_nv2di): Likewise.
20347 (neon_vdpu_lane<mode>_internal): Likewise.
20348 (neon_vswp<mode>): Likewise.
20349 (float<mode><V_cvtto>2): Likewise.
20350 (floatuns<mode><V_cvtto>2): Likewise.
20351 (fix_trunc<mode><V_cvtto>)2): Likewise
20352 (fixuns_trunc<mode><V_cvtto)2): Likewise.
20353 (neon_vcvt<mode>): Likewise.
20354 (neon_vcvtv4sfv4hf): Likewise.
20355 (neon_vcvtv4hfv4sf): Likewise.
20356 (neon_vcvt_n<mode>): Likewise.
20357 (neon_vmovn<mode>): Likewise.
20358 (neon_vqmovn<mode>): Likewise.
20359 (neon_vqmovun<mode>): Likewise.
20360 (neon_vmovl<mode>): Likewise.
20361 (neon_vmul_lane<mode>): Likewise.
20362 (neon_vmull_lane<mode>): Likewise.
20363 (neon_vqdmull_lane<mode>): Likewise.
20364 (neon_vqdmulh_lane<mode>): Likewise.
20365 (neon_vmla_lane<mode>): Likewise.
20366 (neon_vmlal_lane<mode>): Likewise.
20367 (neon_vqdmlal_lane<mode>): Likewise.
20368 (neon_vmls_lane<mode>): Likewise.
20369 (neon_vmlsl_lane<mode>): Likewise.
20370 (neon_vqdmlsl_lane<mode>): Likewise.
20371 (neon_vext<mode>): Likewise.
20372 (neon_vrev64<mode>): Likewise.
20373 (neon_vrev32<mode>): Likewise.
20374 (neon_vrev16<mode>): Likewise.
20375 (neon_vbsl<mode>_internal): Likewise.
20376 (neon_vshl<mode>): Likewise.
20377 (neon_vqshl<mode>): Likewise.
20378 (neon_vshr_n<mode>): Likewise.
20379 (neon_vshrn_n<mode>): Likewise.
20380 (neon_vqshrn_n<mode>): Likewise.
20381 (neon_vqshrun_n<mode>): Likewise.
20382 (neon_vshl_n<mode>): Likewise.
20383 (neon_vqshl_n<mode>): Likewise.
20384 (neon_vqshlu_n<mode>): Likewise.
20385 (neon_vshll_n<mode>): Likewise.
20386 (neon_vsra_n<mode>): Likewise.
20387 (neon_vsri_n<mode>): Likewise.
20388 (neon_vsli_n<mode>): Likewise.
20389 (neon_vtbl1v8qi): Likewise.
20390 (neon_vtbl2v8qi): Likewise.
20391 (neon_vtbl3v8qi): Likewise.
20392 (neon_vtbl4v8qi): Likewise.
20393 (neon_vtbx1v8qi): Likewise.
20394 (neon_vtbx2v8qi): Likewise.
20395 (neon_vtbx3v8qi): Likewise.
20396 (neon_vtbx4v8qi): Likewise.
20397 (neon_vtrn<mode>_internal): Likewise.
20398 (neon_vzip<mode>_internal): Likewise.
20399 (neon_vuzp<mode>_internal): Likewise.
20400 (neon_vld1<mode>): Likewise.
20401 (neon_vld1_lane<mode>): Likewise.
20402 (neon_vld1_dup<mode>): Likewise.
20403 (neon_vld1_dupv2di): Likewise.
20404 (neon_vst1<mode>): Likewise.
20405 (neon_vst1_lane<mode>): Likewise.
20406 (neon_vld2<mode>): Likewise.
20407 (neon_vld2_lane<mode>): Likewise.
20408 (neon_vld2_dup<mode>): Likewise.
20409 (neon_vst2<mode>): Likewise.
20410 (neon_vst2_lane<mode>): Likewise.
20411 (neon_vld3<mode>): Likewise.
20412 (neon_vld3qa<mode>): Likewise.
20413 (neon_vld3qb<mode>): Likewise.
20414 (neon_vld3_lane<mode>): Likewise.
20415 (neon_vld3_dup<mode>): Likewise.
20416 (neon_vst3<mode>): Likewise.
20417 (neon_vst3qa<mode>): Likewise.
20418 (neon_vst3qb<mode>): Likewise.
20419 (neon_vst3_lane<mode>): Likewise.
20420 (neon_vld4<mode>): Likewise.
20421 (neon_vld4qa<mode>): Likewise.
20422 (neon_vld4qb<mode>): Likewise.
20423 (neon_vld4_lane<mode>): Likewise.
20424 (neon_vld4_dup<mode>): Likewise.
20425 (neon_vst4<mode>): Likewise.
20426 (neon_vst4qa<mode>): Likewise.
20427 (neon_vst4qb<mode>): Likewise.
20428 (neon_vst4_lane<mode>): Likewise.
20429 (neon_vec_unpack<US>_lo_<mode>): Likewise.
20430 (neon_vec_unpack<US>_hi_<mode>): Likewise.
20431 (neon_vec_<US>mult_lo_<mode>): Likewise.
20432 (neon_vec_<US>mult_hi_<mode>): Likewise.
20433 (neon_vec_<US>shiftl_<mode>): Likewise.
20434 (neon_unpack<US>_<mode>): Likewise.
20435 (neon_vec_<US>mult_<mode>): Likewise.
20436 (vec_pack_trunc_<mode>): Likewise.
20437 (neon_vec_pack_trunk_<mode>): Likewise.
20438 (neon_vabd<mode>_2): Likewise.
20439 (neon_vabd<mode>_3): Likewise.
20440 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
20441 (thumb2_movsi_vfp): Likewise.
20442 (movdi_vfp): Likewise.
20443 (movdi_vfp_cortexa8): Likewise.
20444 (movhf_vfp_neon): Likewise.
20445 (movhf_vfp): Likewiwse.
20446 (movsf_vfp): Likewiwse.
20447 (thumb2_movsf_vfp): Likewiwse.
20448 (movdf_vfp): Likewise.
20449 (thumb2_movdf_vfp): Likewise.
20450 (movsfcc_vfp): Likewise.
20451 (thumb2_movsfcc_vfp): Likewise.
20452 (movdfcc_vfp): Likewise.
20453 (thumb2_movdfcc_vfp): Likewise.
20454 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
20455 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
20456 (v10_v2c): Likewise.
20457 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
20459 (cortex_a15_neon_int_2): Likewise.
20460 (cortex_a15_neon_int_3): Likewise.
20461 (cortex_a15_neon_int_4): Likewise.
20462 (cortex_a15_neon_int_5): Likewise.
20463 (cortex_a15_neon_vqneg_vqabs): Likewise.
20464 (cortex_a15_neon_vmov): Likewise.
20465 (cortex_a15_neon_vaba): Likewise.
20466 (cortex_a15_neon_vaba_qqq): Likewise.
20467 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
20468 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
20469 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
20470 scalar_64_32_long_scalar): Likewise.
20471 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
20472 (cortex_a15_neon_mla_qqq_8_16): Likewise.
20473 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
20474 lotype_qdd_64_32_long): Likewise.
20475 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
20476 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
20477 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
20478 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
20479 (cortex_a15_neon_shift_1): Likewise.
20480 (cortex_a15_neon_shift_2): Likewise.
20481 (cortex_a15_neon_shift_3): Likewise.
20482 (cortex_a15_neon_vshl_ddd): Likewise.
20483 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
20484 (cortex_a15_neon_vsra_vrsra): Likewise.
20485 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
20486 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
20487 (cortex_a15_neon_fp_vmul_ddd): Likewise.
20488 (cortex_a15_neon_fp_vmul_qqd): Likewise.
20489 (cortex_a15_neon_fp_vmla_ddd): Likewise.
20490 (cortex_a15_neon_fp_vmla_qqq): Likewise.
20491 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
20492 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
20493 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
20494 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
20495 (cortex_a15_neon_bp_simple): Likewise.
20496 (cortex_a15_neon_bp_2cycle): Likewise.
20497 (cortex_a15_neon_bp_3cycle): Likewise.
20498 (cortex_a15_neon_vld1_1_2_regs): Likewise.
20499 (cortex_a15_neon_vld1_3_4_regs): Likewise.
20500 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
20501 (cortex_a15_neon_vld2_4_regs): Likewise.
20502 (cortex_a15_neon_vld3_vld4): Likewise.
20503 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
20504 (cortex_a15_neon_vst1_3_4_regs): Likewise.
20505 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
20506 (cortex_a15_neon_vst3_vst4): Likewise.
20507 (cortex_a15_neon_vld1_vld2_lane): Likewise.
20508 (cortex_a15_neon_vld3_vld4_lane" 10
20509 (cortex_a15_neon_vst1_vst2_lane): Likewise.
20510 (cortex_a15_neon_vst3_vst4_lane): Likewise.
20511 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
20512 (cortex_a15_neon_ldm_2): Likewise.0
20513 (cortex_a15_neon_stm_2): Likewise.
20514 (cortex_a15_neon_mcr): Likewise.
20515 (cortex_a15_neon_mcr_2_mcrr): Likewise.
20516 (cortex_a15_neon_mrc): Likewise.
20517 (cortex_a15_neon_mrrc): Likewise.
20518 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
20520 (cortex_a15_alu_shift): Likewise.
20521 (cortex_a15_alu_shift_reg): Likewise.
20522 (cortex_a15_mult32): Likewise.
20523 (cortex_a15_mult64): Likewise.
20524 (cortex_a15_block): Likewise.
20525 (cortex_a15_branch): Likewise.
20526 (cortex_a15_load1): Likewise.
20527 (cortex_a15_load3): Likewise.
20528 (cortex_a15_store1): Likewise.
20529 (cortex_a15_store3): Likewise.
20530 (cortex_a15_call): Likewise.
20531 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
20532 (cortex_a5_f2r): Likewise.
20533 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
20535 (cortex_a53_f2r): Likewise.
20536 * config/arm/cortex-a7.md
20537 (cortex_a7_branch): Update for attribute change.
20538 (cortex_a7_call): Likewise.
20539 (cortex_a7_alu_imm): Likewise.
20540 (cortex_a7_alu_reg): Likewise.
20541 (cortex_a7_alu_shift): Likewise.
20542 (cortex_a7_mul): Likewise.
20543 (cortex_a7_load1): Likewise.
20544 (cortex_a7_store1): Likewise.
20545 (cortex_a7_load2): Likewise.
20546 (cortex_a7_store2): Likewise.
20547 (cortex_a7_load3): Likewise.
20548 (cortex_a7_store3): Likewise.
20549 (cortex_a7_load4): Likewise.
20550 (cortex_a7_store4): Likewise.
20551 (cortex_a7_fpalu): Likewise.
20552 (cortex_a7_fconst): Likewise.
20553 (cortex_a7_fpmuls): Likewise.
20554 (cortex_a7_neon_mul): Likewise.
20555 (cortex_a7_fpmacs): Likewise.
20556 (cortex_a7_neon_mla: Likewise.
20557 (cortex_a7_fpmuld: Likewise.
20558 (cortex_a7_fpmacd: Likewise.
20559 (cortex_a7_fpfmad: Likewise.
20560 (cortex_a7_fdivs: Likewise.
20561 (cortex_a7_fdivd: Likewise.
20562 (cortex_a7_r2f: Likewise.
20563 (cortex_a7_f2r: Likewise.
20564 (cortex_a7_f_flags: Likewise.
20565 (cortex_a7_f_loads: Likewise.
20566 (cortex_a7_f_loadd: Likewise.
20567 (cortex_a7_f_stores: Likewise.
20568 (cortex_a7_f_stored: Likewise.
20569 (cortex_a7_neon): Likewise.
20570 * config/arm/cortex-a8-neon.md
20571 (cortex_a8_neon_mrc): Update for attribute change.
20572 (cortex_a8_neon_mrrc): Likewise.
20573 (cortex_a8_neon_int_1): Likewise.
20574 (cortex_a8_neon_int_2): Likewise.
20575 (cortex_a8_neon_int_3): Likewise.
20576 (cortex_a8_neon_int_4): Likewise.
20577 (cortex_a8_neon_int_5): Likewise.
20578 (cortex_a8_neon_vqneg_vqabs): Likewise.
20579 (cortex_a8_neon_vmov): Likewise.
20580 (cortex_a8_neon_vaba): Likewise.
20581 (cortex_a8_neon_vaba_qqq): Likewise.
20582 (cortex_a8_neon_vsma): Likewise.
20583 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
20584 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
20585 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
20586 long_scalar): Likewise.
20587 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
20588 (cortex_a8_neon_mla_qqq_8_16): Likewise.
20589 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
20590 long_scalar_qdd_64_32_long): Likewise.
20591 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
20592 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
20593 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
20594 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
20595 (cortex_a8_neon_shift_1): Likewise.
20596 (cortex_a8_neon_shift_2): Likewise.
20597 (cortex_a8_neon_shift_3): Likewise.
20598 (cortex_a8_neon_vshl_ddd): Likewise.
20599 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
20600 (cortex_a8_neon_vsra_vrsra): Likewise.
20601 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
20602 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
20603 (cortex_a8_neon_fp_vsum): Likewise.
20604 (cortex_a8_neon_fp_vmul_ddd): Likewise.
20605 (cortex_a8_neon_fp_vmul_qqd): Likewise.
20606 (cortex_a8_neon_fp_vmla_ddd): Likewise.
20607 (cortex_a8_neon_fp_vmla_qqq): Likewise.
20608 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
20609 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
20610 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
20611 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
20612 (cortex_a8_neon_bp_simple): Likewise.
20613 (cortex_a8_neon_bp_2cycle): Likewise.
20614 (cortex_a8_neon_bp_3cycle): Likewise.
20615 (cortex_a8_neon_ldr): Likewise.
20616 (cortex_a8_neon_str): Likewise.
20617 (cortex_a8_neon_vld1_1_2_regs): Likewise.
20618 (cortex_a8_neon_vld1_3_4_regs): Likewise.
20619 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
20620 (cortex_a8_neon_vld2_4_regs): Likewise.
20621 (cortex_a8_neon_vld3_vld4): Likewise.
20622 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
20623 (cortex_a8_neon_vst1_3_4_regs): Likewise.
20624 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
20625 (cortex_a8_neon_vst3_vst4): Likewise.
20626 (cortex_a8_neon_vld1_vld2_lane): Likewise.
20627 (cortex_a8_neon_vld3_vld4_lane): Likewise.
20628 (cortex_a8_neon_vst1_vst2_lane): Likewise.
20629 (cortex_a8_neon_vst3_vst4_lane): Likewise.
20630 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
20631 (cortex_a8_neon_mcr): Likewise.
20632 (cortex_a8_neon_mcr_2_mcrr): Likewise.
20633 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
20634 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
20636 (ca9_neon_mrrc): Likewise.
20637 (cortex_a9_neon_int_1): Likewise.
20638 (cortex_a9_neon_int_2): Likewise.
20639 (cortex_a9_neon_int_3): Likewise.
20640 (cortex_a9_neon_int_4): Likewise.
20641 (cortex_a9_neon_int_5): Likewise.
20642 (cortex_a9_neon_vqneg_vqabs): Likewise.
20643 (cortex_a9_neon_vmov): Likewise.
20644 (cortex_a9_neon_vaba): Likewise.
20645 (cortex_a9_neon_vaba_qqq): Likewise.
20646 (cortex_a9_neon_vsma): Likewise.
20647 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
20648 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
20649 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
20650 long_scalar): Likewise.
20651 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
20652 (cortex_a9_neon_mla_qqq_8_16): Likewise.
20653 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
20654 long_scalar_qdd_64_32_long): Likewise.
20655 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
20656 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
20657 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
20658 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
20659 (cortex_a9_neon_shift_1): Likewise.
20660 (cortex_a9_neon_shift_2): Likewise.
20661 (cortex_a9_neon_shift_3): Likewise.
20662 (cortex_a9_neon_vshl_ddd): Likewise.
20663 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
20664 (cortex_a9_neon_vsra_vrsra): Likewise.
20665 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
20666 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
20667 (cortex_a9_neon_fp_vsum): Likewise.
20668 (cortex_a9_neon_fp_vmul_ddd): Likewise.
20669 (cortex_a9_neon_fp_vmul_qqd): Likewise.
20670 (cortex_a9_neon_fp_vmla_ddd): Likewise.
20671 (cortex_a9_neon_fp_vmla_qqq): Likewise.
20672 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
20673 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
20674 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
20675 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
20676 (cortex_a9_neon_bp_simple): Likewise.
20677 (cortex_a9_neon_bp_2cycle): Likewise.
20678 (cortex_a9_neon_bp_3cycle): Likewise.
20679 (cortex_a9_neon_ldr): Likewise.
20680 (cortex_a9_neon_str): Likewise.
20681 (cortex_a9_neon_vld1_1_2_regs): Likewise.
20682 (cortex_a9_neon_vld1_3_4_regs): Likewise.
20683 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
20684 (cortex_a9_neon_vld2_4_regs): Likewise.
20685 (cortex_a9_neon_vld3_vld4): Likewise.
20686 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
20687 (cortex_a9_neon_vst1_3_4_regs): Likewise.
20688 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
20689 (cortex_a9_neon_vst3_vst4): Likewise.
20690 (cortex_a9_neon_vld1_vld2_lane): Likewise.
20691 (cortex_a9_neon_vld3_vld4_lane): Likewise.
20692 (cortex_a9_neon_vst1_vst2_lane): Likewise.
20693 (cortex_a9_neon_vst3_vst4_lane): Likewise.
20694 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
20695 (cortex_a9_neon_mcr): Likewise.
20696 (cortex_a9_neon_mcr_2_mcrr): Likewise.
20697 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
20698 (cortex_a9_fps): Likewise.
20699 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
20701 (cortex_m4_fmuls): Likewise.
20702 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
20704 (cortex_r4_mrc): Likewise.
20705 * config/arm/iterators.md: Update comment referring to neon_type.
20706 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
20707 (iwmmxt_movsi_insn): Likewise.
20708 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
20710 (pj4_core_to_vfp): Likewise.
20711 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
20713 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
20714 (vfp_fstore): Likewise.
20715 * doc/md.texi: Change references to neon_type to refer to type.
20717 2013-09-04 Dodji Seketeli <dodji@redhat.com>
20719 * tree.h (DECL_BUILT_IN): Fix typo in comment.
20721 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
20723 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
20724 lglobl if not weak.
20726 2013-09-04 Easwaran Raman <eraman@google.com>
20728 PR middle-end/57370
20729 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
20730 (build_and_add_sum): Use it.
20731 (appears_later_in_bb): Simplify code.
20733 2013-09-04 Teresa Johnson <tejohnson@google.com>
20735 * dumpfile.c (dump_finish): Don't close stderr/stdout.
20737 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
20739 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
20741 2013-09-04 Jan Hubicka <jh@suse.cz>
20743 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
20744 * ipa-devirt.c: Include diganostic.h
20745 (odr_type_d): Add types and types_set.
20746 (hash_type_name): Work for types with vtables during LTO.
20747 (odr_hasher::remove): Fix comment; destroy types_set.
20748 (add_type_duplicate): New function,
20749 (get_odr_type): Use it.
20750 (dump_type_inheritance_graph): Dump type duplicates.
20751 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
20753 * tree.c (types_same_for_odr): Give exact answers on types with
20756 2013-09-04 Dodji Seketeli <dodji@redhat.com>
20758 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
20759 explaining their differences.
20761 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
20763 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
20765 2013-09-03 Jeff Law <law@redhat.com>
20767 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
20768 when not threading through a joiner block. Pass joiner/no joiner
20769 state to register_jump_thread.
20770 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
20771 state from argument rather than implying on path length.
20772 Dump the entire jump thread path into debugging dump.
20773 * tree-flow.h (register_jump_thread): Update prototype.
20775 2013-08-29 Xinliang David Li <davidxl@google.com>
20777 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
20778 Remove a trivial gcc_assert.
20780 2013-08-29 Xinliang David Li <davidxl@google.com>
20782 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
20783 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
20784 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
20785 Delay base decl alignment adjustment.
20786 * tree-vectorizer.c (vect_destroy_datarefs): New function.
20787 * tree-vectorizer.h: New data structure.
20788 (set_dr_misalignment): New function.
20789 (dr_misalignment): Ditto.
20790 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
20791 (vectorizable_load): Ditto.
20792 (ensure_base_align): New function.
20793 (vectorize_loops): Add dbg_cnt support.
20794 (execute_vect_slp): Ditto.
20795 * dbgcnt.def: New debug counter.
20796 * Makefile: New dependency.
20798 2013-09-03 Meador Inge <meadori@codesourcery.com>
20802 2013-08-30 Meador Inge <meadori@codesourcery.com>
20804 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
20806 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
20808 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
20809 function descriptor.
20811 2013-09-03 Richard Biener <rguenther@suse.de>
20813 * tree-affine.c (add_elt_to_tree): Fix association issue,
20814 avoid useless converts and make sure to always return a
20815 properly typed result.
20817 2013-09-03 Richard Biener <rguenther@suse.de>
20819 PR middle-end/57656
20820 * fold-const.c (negate_expr_p): Fix division case.
20821 (negate_expr): Likewise.
20823 2013-09-03 Richard Biener <rguenther@suse.de>
20826 * tree-streamer-out.c: Include tm.h.
20827 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
20829 2013-09-03 Jan Hubicka <jh@suse.cz>
20831 * tree-profile.c (tree_profiling): Cleanup CFG when done.
20833 2013-09-03 Alan Modra <amodra@gmail.com>
20835 * config.gcc (powerpc*-*-linux*): Add support for little-endian
20836 multilibs to big-endian target and vice versa.
20837 * config/rs6000/t-linux64: Use := assignment on all vars.
20838 (MULTILIB_EXTRA_OPTS): Remove fPIC.
20839 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
20840 * config/rs6000/t-linux64le: New file.
20841 * config/rs6000/t-linux64bele: New file.
20842 * config/rs6000/t-linux64lebe: New file.
20844 2013-09-02 Jan Hubicka <jh@suse.cz>
20846 * ipa-inline-transform.c (inline_transform): Do not
20847 optimize_inline_calls when not optimizing.
20849 2013-09-02 Jan Hubicka <jh@suse.cz>
20851 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
20852 duplicated nodes for assembler names.
20853 * symtab.c (symtab_unregister_node): Do not attempt to unlink
20854 hard registers from assembler name hash.
20856 2013-09-02 Jan Hubicka <jh@suse.cz>
20858 * ipa-split.c (execute_split_functions): Split externally visible
20859 functions called once.
20861 2013-09-02 Martin Jambor <mjambor@suse.cz>
20864 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
20865 linked list. When finding the correct duplicate, also consider also
20866 the caller in additon to its inlined_to node.
20868 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
20870 * config/aarch64/aarch64-simd-builtins.def
20871 (dup_lane_scalar): Remove.
20872 * config/aarch64/aarch64-simd.md
20873 (aarch64_simd_dup): Add 'w->w' alternative.
20874 (aarch64_dup_lane<mode>): Allow for VALL.
20875 (aarch64_dup_lane_scalar<mode>): Remove.
20876 (aarch64_dup_lane_<vswap_width_name><mode>): New.
20877 (aarch64_get_lane_signed<mode>): Add w->w altenative.
20878 (aarch64_get_lane_unsigned<mode>): Likewise.
20879 (aarch64_get_lane<mode>): Likewise.
20880 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
20881 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
20882 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
20883 (VCON): Change container of V2SF.
20884 (vswap_width_name): Likewise.
20885 * config/aarch64/arm_neon.h
20886 (__aarch64_vdup_lane_any): New.
20887 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
20888 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
20889 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
20891 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
20893 PR middle-end/56382
20894 * expr.c (emit_move_complex): Do not move complex FP values as parts if
20895 the source or the destination is a single hard register.
20897 2013-09-02 Richard Biener <rguenther@suse.de>
20899 PR middle-end/57511
20900 * tree-scalar-evolution.c (instantiate_scev_name): Allow
20903 2013-09-02 Richard Biener <rguenther@suse.de>
20905 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
20906 arithmetic to sizetype.
20908 2013-09-02 Bin Cheng <bin.cheng@arm.com>
20910 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
20911 Find auto-increment use both before and after candidate.
20913 2013-09-02 Marek Polacek <polacek@redhat.com>
20915 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
20917 2013-09-01 Jan Hubicka <jh@suse.cz>
20919 * Makefile.in: Add ipa-profile.o
20920 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
20921 * cgraph.c (struct cgraph_propagate_frequency_data,
20922 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
20923 ipa-profile.c; replace cgraph_ by ipa_ prefix.
20924 * cgraph.h (cgraph_propagate_frequency): Remove.
20925 * ipa-inline-analysis.c: Include ipa-utils.h;
20926 drop duplicated cfgloop.h.
20927 (inline_update_callee_summaries): Update.
20928 * ipa-profile.c: New file.
20929 * ipa-utils.h (ipa_propagate_frequency): Declare.
20930 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
20931 data-streamer.h, value-prof.h.
20932 (symtab_remove_unreachable_nodes): Update profile.
20933 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
20934 account_time_size, cmp_counts, dump_histogram,
20935 ipa_profile_generate_summary, ipa_profile_write_summary,
20936 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
20937 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
20938 Move to ipa-profile.c.
20940 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
20942 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
20944 2013-09-01 Jan Hubicka <jh@suse.cz>
20946 * common.opt (fdevirtualize-speculatively): New function.
20947 * invoke.texi (fdevirtualize-speculatively): Document.
20948 * ipa-devirt.c: Include ipa-inline.h
20949 (likely_target_p): New function.
20950 (ipa_devirt): New function.
20951 (gate_ipa_devirt): New function.
20952 (pass_data_ipa_devirt): New static var.
20953 (pass_ipa_devirt): Likewise.
20954 (make_pass_ipa_devirt): New function.
20955 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
20956 (common_handle_option): Disable devirtualization when
20957 value range profiling is available.
20958 * passes.def (pass_ipa_devirt): Add.
20959 * timever.def (TV_IPA_DEVIRT): New timevar.
20960 * tree-pass.h (make_pass_ipa_devirt):
20962 2013-09-01 Iain Sandoe <iain@codesourcery.com>
20964 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
20965 include sanitize(undefined).
20967 2013-08-31 Diego Novillo <dnovillo@google.com>
20969 * Makefile.in (TREE_CORE_H): Define.
20971 (GTFILES): Add tree-core.h.
20972 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
20974 * tree-core.h: New file.
20975 Move all data structures, enum, typedefs, global
20976 declarations and constants from ...
20977 * tree.h: ... here.
20979 2013-08-31 Jan Hubicka <jh@suse.cz>
20981 * bulitins.c (expand_builtin): Do not early exit for gcov
20982 instrumented functions.
20984 2013-08-31 Marek Polacek <polacek@redhat.com>
20986 * ubsan.c: Include tm_p.h.
20988 2013-08-31 Jan Hubicka <jh@suse.cz>
20990 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
20993 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
20994 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
20995 * tree-cfg.c (verify_gimple_label): ... here.
20996 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
20997 (ipa_merge_profiles): New function.
20998 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
20999 (lto_input_function_body): Likewise.
21000 * ipa-utils.h (ipa_merge_profiles): Declare.
21001 * lto-streamer.h (lto_input_function_body): Update prototype.
21002 (emit_label_in_global_context_p): Remove.
21003 * lto-symtab.c: Include ipa-utils.h
21004 (lto_cgraph_replace_node): Use ipa_merge_profiles.
21006 2013-08-31 Jan Hubicka <jh@suse.cz>
21008 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
21010 2013-08-31 Jan Hubicka <jh@suse.cz>
21012 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
21014 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
21016 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
21017 "cmp" RTX before signed_comparison_operator check to account
21018 for "code" changes.
21020 2013-08-30 Jan Hubicka <jh@suse.cz>
21022 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
21023 (detect_type_change_1): Rename to ...
21024 (detect_type_change): ... this one; early return on non-polymorphic
21026 (detect_type_change_ssa): Add comp_type parameter; update
21027 use of detect_type_change.
21028 (compute_complex_assign_jump_func): Add param_type parameter;
21029 update use of detect_type_change_ssa.
21030 (compute_complex_ancestor_jump_func): Likewise.
21031 (ipa_get_callee_param_type): New function.
21032 (ipa_compute_jump_functions_for_edge): Compute parameter type;
21033 update calls to the jump function computation functions.
21035 2013-08-30 Teresa Johnson <tejohnson@google.com>
21036 Steven Bosscher <steven@gcc.gnu.org>
21038 * cfgrtl.c (fixup_new_cold_bb): New routine.
21039 (commit_edge_insertions): Invoke fixup_partitions.
21040 (find_partition_fixes): New routine.
21041 (fixup_partitions): Ditto.
21042 (verify_hot_cold_block_grouping): Update comments.
21043 (rtl_verify_edges): Invoke find_partition_fixes.
21044 (rtl_verify_bb_pointers): Update comments.
21045 (rtl_verify_bb_layout): Ditto.
21046 * basic-block.h (probably_never_executed_edge_p): Declare.
21047 (fixup_partitions): Ditto.
21048 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
21049 * bb-reorder.c (sanitize_hot_paths): New function.
21050 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
21051 sanitize_hot_paths.
21052 * predict.c (probably_never_executed_edge_p): New routine.
21053 * cfg.c (check_bb_profile): Add partition insanity warnings.
21055 2013-08-30 Meador Inge <meadori@codesourcery.com>
21057 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
21059 2013-08-30 Marek Polacek <polacek@redhat.com>
21061 * Makefile.in (ubsan.o): Add.
21062 (c-family/c-ubsan.o): Add.
21063 (builtins.o): Add ubsan.h dependency.
21064 * ubsan.h: New file.
21065 * ubsan.c: New file.
21066 * common.opt: Add -fsanitize=undefined option.
21067 (flag_sanitize): Add variable.
21068 (fsanitize=): Add option. Add Driver.
21069 (fsanitize=thread): Remove option.
21070 (fsanitize=address): Likewise.
21071 (static-libubsan): New option.
21072 * doc/invoke.texi: Document the new flag and -static-libubsan.
21073 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
21074 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
21075 * builtin-attrs.def (ATTR_COLD): Define.
21076 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
21077 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
21078 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
21079 * flag-types.h (sanitize_code): New enum.
21080 * opts.c (common_handle_option): Parse command line arguments
21081 of -fsanitize=. Add -fsanitize=unreachable option.
21082 * varasm.c (get_variable_section): Adjust.
21083 (assemble_noswitch_variable): Likewise.
21084 (assemble_variable): Likewise.
21085 (output_constant_def_contents): Likewise.
21086 (categorize_decl_for_section): Likewise.
21087 (place_block_symbol): Likewise.
21088 (output_object_block): Likewise.
21089 * builtins.def: Likewise.
21090 * toplev.c (compile_file): Likewise.
21091 (process_options): Likewise.
21092 * cppbuiltin.c: Likewise.
21093 * tsan.c (tsan_pass): Likewise.
21094 (tsan_gate): Likewise.
21095 (tsan_gate_O0): Likewise.
21096 * cfgexpand.c (partition_stack_vars): Likewise.
21097 (expand_stack_vars): Likewise.
21098 (defer_stack_allocation): Likewise.
21099 (expand_used_vars): Likewise.
21100 * cfgcleanup.c (old_insns_match_p): Likewise.
21101 * asan.c (asan_finish_file): Likewise.
21102 (asan_instrument): Likewise.
21103 (gate_asan): Likewise.
21104 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
21105 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
21106 (asan_global_struct): Use pointer_sized_int_node instead
21107 calling build_nonstandard_integer_type.
21108 (initialize_sanitizer_builtins): Likewise.
21109 (asan_finish_file): Likewise.
21110 * gcc.c: Document %{%:function(args):X}.
21111 (static_spec_functions): Add sanitize.
21112 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
21113 store funcval != NULL there.
21114 (do_spec_1): Adjust handle_spec_function caller.
21115 (handle_braces): Allow %:function(args) as condition.
21116 (sanitize_spec_function): New function.
21117 (ADD_STATIC_LIBUBSAN_LIBS): Define.
21118 (LIBUBSAN_SPEC): Likewise.
21119 (LIBUBSAN_EARLY_SPEC): Likewise.
21120 (SANITIZER_SPEC): Handle libubsan.
21121 (SANITIZER_EARLY_SPEC): Likewise.
21122 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
21123 instead of fsanitize=address.
21124 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
21125 instead of fsanitize=address*.
21126 * builtins.c: Include ubsan.h.
21127 (fold_builtin_0): Instrument __builtin_unreachable.
21128 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
21129 instead of flag_asan.
21130 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
21131 (pointer_sized_int_node): Define.
21132 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
21134 2013-08-30 Mike Stump <mikestump@comcast.net>
21136 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
21139 2013-08-29 Jan Hubicka <jh@suse.cz>
21141 * cgraph.c (cgraph_function_body_availability): Handle weakref
21143 * passes.def: Remove pass_fixup_cfg.
21144 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
21145 track when we need to remove functions.
21146 (gate_ipa_inline): Execute inlining always; add comment why.
21147 (pass_data_ipa_inline): Remove TODO_remove_functions.
21148 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
21149 do not produce summaries.
21150 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
21151 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
21152 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
21153 constant pool and vtable.
21155 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
21157 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
21158 New arm_neon.h's internal macros to specify 64-bit constants.
21159 Avoid using stdint.h's macros.
21161 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
21163 * recog.c (verify_changes): Verify that changes[i].old is non-zero
21164 before applying REG_P.
21166 2013-08-30 Jakub Jelinek <jakub@redhat.com>
21168 PR tree-optimization/58277
21169 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
21170 after seeing too many stmts with vdef in between dombb and current
21171 bb, invalidate everything.
21173 2013-08-30 Richard Biener <rguenther@suse.de>
21175 * fold-const.c (fold_single_bit_test): Fix overflow test.
21177 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
21179 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
21180 and which can live in a register, always retrieve the value on entry.
21181 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
21182 passed by invisible reference specially.
21183 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
21184 (vt_add_function_parameter): Correctly deal with a parameter passed by
21185 invisible reference.
21187 2013-08-30 Jan Hubicka <jh@suse.cz>
21189 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
21191 2013-08-30 Richard Biener <rguenther@suse.de>
21193 PR tree-optimization/58228
21194 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
21195 allow invariant loads in nested loop vectorization.
21197 2013-08-30 Richard Biener <rguenther@suse.de>
21199 PR tree-optimization/58223
21200 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
21201 (has_anti_or_output_dependence): ... this and adjust to also
21202 look for output dependences.
21203 (mark_nodes_having_upstream_mem_writes): Adjust.
21204 (rdg_flag_uses): Likewise.
21206 2013-08-30 Richard Biener <rguenther@suse.de>
21208 PR tree-optimization/58010
21209 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
21210 assert that we have a loop-closed PHI.
21212 2013-08-29 Jan Hubicka <jh@suse.cz>
21214 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
21215 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
21216 * lto-section-in.c (lto_free_function_in_decl_state): New function.
21217 (lto_free_function_in_decl_state_for_node): New function.
21219 2013-08-29 Xinliang David Li <davidxl@google.com>
21221 * loop-unroll.c (report_unroll_peel): Minor message change.
21222 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
21223 Emit alignment peeling message with default -fopt-info.
21224 (vect_loop_versioning): Emit loop version info message.
21225 * tree-vectorizer.c (vectorize_loops): Minor message change.
21226 (execute_vect_slp): Ditto.
21228 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
21230 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
21231 of the clone from the DECL_NAME of the original function.
21233 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
21235 * passes.c (register_pass): Add overload.
21236 * tree-pass.h (register_pass): Forward declare it. Add comment.
21238 2013-08-29 Jan Hubicka <jh@suse.cz>
21240 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
21241 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
21242 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
21243 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
21244 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
21245 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
21246 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
21247 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
21249 2013-08-29 Teresa Johnson <tejohnson@google.com>
21251 * dumpfile.c (dump_loc): Output column number.
21252 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
21253 * doc/invoke.texi: Document optall -fopt-info flag.
21254 * profile.c (read_profile_edge_counts): Use new dump framework.
21255 (compute_branch_probabilities): Ditto.
21256 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
21257 when pass not in any opt group.
21258 * pass_manager.h (pass_manager::get_pass_profile): New method.
21259 * value-prof.c (check_counter): Use new dump framework.
21260 (check_ic_target): Ditto.
21261 * coverage.c (get_coverage_counts): Ditto.
21262 (coverage_init): Setup new dump framework.
21264 2013-08-29 Richard Biener <rguenther@suse.de>
21266 PR tree-optimization/58246
21267 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
21268 handle the dominance check inside a basic-block.
21270 2013-08-29 Richard Biener <rguenther@suse.de>
21272 PR middle-end/57287
21273 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
21274 of default defs that appear in abnormal PHI nodes.
21276 2013-08-29 Richard Biener <rguenther@suse.de>
21278 PR tree-optimization/57685
21279 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
21280 single-use operands to avoid exponential complexity.
21282 2013-08-28 Dehao Chen <dehao@google.com>
21284 * ipa-inline.c (edge_badness): Fix integer underflow.
21286 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
21288 * gtm-builtins.def (_ITM_free): Declare leaf.
21290 2013-08-28 Jakub Jelinek <jakub@redhat.com>
21293 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
21294 (*tls_local_dynamic_base_64_largepic): Likewise.
21295 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
21296 Remove predicate from call operand.
21297 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
21298 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
21300 2013-08-28 Jeff Law <law@redhat.com>
21302 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
21303 checks for the number of predecessors and successors allowed.
21304 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
21305 which require copying a joiner block if there is a request which
21306 is a subpath that requires no joiner block copying.
21308 2013-08-28 Jan Hubicka <jh@suse.cz>
21310 * lto-streamer-out.c (DFS_write_tree_body): Drop
21311 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
21312 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
21313 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
21314 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
21315 Do not read DECL_ERROR_ISSUED.
21316 (unpack_ts_decl_with_vis_value_fields): Do not read
21318 (lto_input_ts_binfo_tree_pointers): Do not read
21319 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
21320 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
21321 write DECL_ERROR_ISSUED..
21322 (pack_ts_decl_with_vis_value_fields): Do not write
21324 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
21325 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
21326 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
21327 * tree.h (tree_decl_common): Update comment.
21328 (DECL_ERROR_ISSUED): Remove.
21330 2013-08-28 Jakub Jelinek <jakub@redhat.com>
21332 PR middle-end/58257
21333 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
21335 2013-08-28 Jan Hubicka <jh@suse.cz>
21337 * builtins.def (free): Declare leaf.
21339 2013-08-27 David Malcolm <dmalcolm@redhat.com>
21341 * gdbhooks.py: New.
21342 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
21343 * configure: Regenerate.
21345 2013-08-27 Martin Jambor <mjambor@suse.cz>
21347 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
21348 (ipa_ancestor_jf_data): Likewise.
21349 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
21350 (ipa_get_jf_pass_through_type_preserved): New function.
21351 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
21352 (ipa_get_jf_ancestor_type_preserved): New function.
21353 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
21354 (ipa_get_jf_ancestor_result): Likewise.
21355 (propagate_vals_accross_pass_through): Use
21356 ipa_get_jf_pass_through_result to do all the value mappings.
21357 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
21358 type_preserved flag.
21359 (ipa_set_jf_cst_copy): New function.
21360 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
21361 (ipa_set_jf_arith_pass_through): Likewise.
21362 (ipa_set_ancestor_jf): Likewise.
21363 (compute_complex_assign_jump_func): Set type_preserved instead of
21365 (ipa_compute_jump_functions_for_edge): Likewise.
21366 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
21367 (update_jump_functions_after_inlining): Update type_preserved.
21368 Explicitely create jump functions when combining one with pass_through.
21369 (ipa_write_jump_function): Stream the type_preserved flags.
21370 (ipa_read_jump_function): Likewise.
21372 2013-08-27 Jakub Jelinek <jakub@redhat.com>
21373 Aldy Hernandez <aldyh@redhat.com>
21375 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
21376 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
21377 * function.h (struct function): Add has_force_vect_loops and
21379 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
21380 * gimple.c (gimple_build_omp_critical): Add KIND argument and
21382 * gimple.def: Update CLAUSES comments.
21383 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
21384 (gimple_build_omp_for): Add argument to prototype.
21385 (gimple_omp_for_kind): New.
21386 (gimple_omp_for_set_kind): New.
21387 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
21388 GOVD_DATA_SHARE_CLASS.
21389 (enum omp_region_type): Add ORT_SIMD.
21390 (gimple_add_tmp_var): Handle ORT_SIMD.
21391 (gimplify_var_or_parm_decl): Same.
21392 (is_gimple_stmt): Same.
21393 (omp_firstprivatize_variable): Same.
21394 (omp_add_variable): Only use splay_tree_insert if lookup failed.
21395 (omp_notice_variable): Handle ORT_SIMD.
21396 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
21397 (omp_check_private): Handle ORT_SIMD.
21398 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
21399 OMP_CLAUSE_SAFELEN.
21400 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
21401 Handle OMP_CLAUSE_LASTPRIVATE.
21402 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
21403 OMP_CLAUSE_SAFELEN.
21404 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
21405 (gimplify_expr): Handle OMP_SIMD.
21406 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
21407 (expand_GOMP_SIMD_VF): New.
21408 (expand_GOMP_SIMD_LAST_LANE): New.
21409 * internal-fn.def (GOMP_SIMD_LANE): New.
21410 (GOMP_SIMD_VF): New.
21411 (GOMP_SIMD_LAST_LANE): New.
21412 * omp-low.c: Include target.h.
21413 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
21414 OMP_CLAUSE_SAFELEN.
21415 (check_omp_nesting_restrictions): Same.
21417 (lower_rec_simd_input_clauses): New.
21418 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
21420 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
21421 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
21422 (expand_omp_build_assign): New.
21423 (expand_omp_for_init_counts): New.
21424 (expand_omp_for_init_vars): New.
21425 (extract_omp_for_update_vars): New.
21426 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
21427 and rewrite accordingly.
21428 (expand_omp_simd): New.
21429 (expand_omp_for): Use expand_omp_simd.
21430 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
21431 (lower_omp_for): Do not lower the body.
21432 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
21433 in their own loops.
21434 * tree-flow.h (find_omp_clause): Remove prototype.
21435 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
21436 forcing vectorization of the loop, or if flag_tree_vectorize.
21437 (gate_tree_if_conversion): Similarly.
21438 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
21439 gimple_build_omp_for.
21440 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
21441 * tree-parloops (create_parallel_loop): Pass kind argument to
21442 gimple_build_omp_for.
21443 * tree-pretty-print.c (dump_omp_clause): Add cases for
21444 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
21445 OMP_CLAUSE__SIMDUID_.
21446 (dump_generic_node): Handle OMP_SIMD.
21447 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
21448 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
21449 unroll OMP_SIMD loops here.
21450 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
21451 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
21453 (vect_analyze_data_refs): Handle simd loops.
21454 * tree-vect-loop.c (vectorizable_live_operation): Handle
21456 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
21457 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
21458 (vectorizable_load): Same.
21459 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
21460 (struct simduid_to_vf): New.
21461 (simduid_to_vf::hash): New.
21462 (simduid_to-vf::equal): New.
21463 (struct simd_array_to_simduid): New.
21464 (simd_array_to_simduid::hash): New.
21465 (simd_array_to_simduid::equal): New.
21466 (adjust_simduid_builtins): New.
21467 (struct note_simd_array_uses_struct): New.
21468 (note_simd_array_uses_cb): New.
21469 (note_simd_array_uses): New.
21470 (vectorize_loops): Handle simd hints and adjust simd builtins
21472 * tree-vectorizer.h (struct _stmt_vec_info): Add
21473 simd_lane_access_p field.
21474 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
21475 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
21476 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
21477 (omp_clause_code_name): Same.
21478 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
21479 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
21480 * tree.def (OMP_SIMD): New entry.
21481 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
21482 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
21483 (OMP_CLAUSE_DECL): Adjust range for new clauses.
21484 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
21485 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
21486 (OMP_CLAUSE_LINEAR_STEP): New.
21487 (OMP_CLAUSE_SAFELEN_EXPR): New.
21488 (OMP_CLAUSE__SIMDUID__DECL): New.
21489 (find_omp_clause): New prototype.
21491 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
21493 * config/i386/driver-i386.c (host_detect_local_cpu): Update
21494 Haswell processor detection.
21496 2013-08-27 Christian Widmer <shadow@umbrox.de>
21499 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
21500 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
21501 AVX2 capable processors.
21503 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
21505 * config/aarch64/arm_neon.h: Replace all inline asm implementations
21506 of vget_low_* with implementations in terms of other intrinsics.
21508 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
21510 PR middle-end/57219
21511 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
21512 values to -1, 0 and 1.
21514 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
21516 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
21517 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
21518 (<optab><mode>3_insn): Remove.
21519 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
21520 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
21521 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
21522 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
21523 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
21524 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
21525 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
21526 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
21527 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
21528 (ror<mode>3_insn): Likewise.
21529 * config/aarch64/predicates.md (aarch64_simd_register): New.
21531 2013-08-27 Richard Biener <rguenther@suse.de>
21533 PR tree-optimization/57521
21534 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
21535 one edge is non-critical.
21536 (find_phi_replacement_condition): Make sure to use a non-critical
21537 edge. Cleanup and remove old bug workarounds.
21538 (bb_postdominates_preds): Remove.
21539 (if_convertible_loop_p_1): Do not compute post-dominators.
21540 (combine_blocks): Do not free post-dominators.
21541 (main_tree_if_conversion): Likewise.
21542 (pass_data_if_conversion): Add TODO_verify_ssa.
21544 2013-08-27 DJ Delorie <dj@redhat.com>
21546 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
21548 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
21550 * function.c (assign_parm_find_data_types): Set passed_mode and
21551 nominal_mode to the TYPE_MODE of nominal_type for the built
21552 pointer type in case of the struct-pass-by-reference.
21554 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
21556 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
21557 (UINT16_TYPE): Change default to "unsigned int".
21559 * config/avr/avr.opt (mfract-convert-truncate): New option.
21560 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
21561 is set, round negative fractional integers according to n1169
21562 when converting to integer types.
21564 2013-08-26 Jan Hubicka <jh@suse.cz>
21566 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
21567 methods can not be called indirectly when their address is not taken.
21569 2013-08-26 Jan Hubicka <jh@suse.cz>
21571 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
21574 2013-08-26 Jan Hubicka <jh@suse.cz>
21576 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
21579 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
21581 * reload.c (find_valid_class): Allow classes that do not include
21582 FIRST_PSEUDO_REGISTER - 1.
21584 2013-08-26 Jan Hubicka <jh@suse.cz>
21586 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
21587 fix edge count/frequency when speculation failed; fix type check
21588 for the direct call.
21590 2013-08-26 Jan Hubicka <jh@suse.cz>
21592 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
21594 2013-08-26 Jan Hubicka <jh@suse.cz>
21596 * ipa-inline-transform.c (inline_transform): Be ready for basic block
21597 to be changed by edge redirection.
21599 2013-08-26 Jan Hubicka <jh@suse.cz>
21601 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
21602 formating; add sanity check.
21603 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
21604 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
21605 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
21606 (resolve_noninline_speculation): Update callee keys, too.
21608 2013-08-26 Jan Hubicka <jh@suse.cz>
21610 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
21611 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
21613 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
21615 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
21618 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
21620 * config/i386/i386.c (ix86_debug_options): Remove prototype.
21621 (x86_64_elf_select_section): Ditto.
21622 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
21624 (ix86_pass_by_reference): Ditto.
21625 (output_set_got): Ditto.
21626 (ix86_unary_operator_ok): Ditto.
21627 (ix86_expand_builtin): Ditto.
21629 2013-08-23 Jan Hubicka <jh@suse.cz>
21631 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
21633 2013-08-23 Jan Hubicka <jh@suse.cz>
21635 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
21636 (tree_decl_with_vis): Add FINAL field.
21638 2013-08-23 Jeff Law <law@redhat.com>
21640 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
21641 the debugging dump when the expression is fully redundant.
21643 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
21645 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
21646 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
21647 * pretty-print.c (pp_formatted_text_data): Likewise.
21648 (pp_write_text_to_stream): Likewise.
21649 (pp_write_text_as_dot_label_to_stream): Likewise.
21650 (pp_append_r): Likewise.
21651 (pp_format): Likewise.
21652 (pp_flush): Likewise.
21653 (pp_clear_output_area): Likewise.
21654 (pp_append_text): Likewise.
21655 (pp_formatted_text): Likewise.
21656 (pp_remaining_character_count_for_line): Likewise.
21657 (pp_newline): Likewise.
21658 (pp_character): Likewise.
21659 (output_buffer::~output_buffer): Define.
21660 (pretty_printer::~pretty_printer): Destruct output buffer.
21661 * pretty-print.h (output_buffer::~output_buffer): Declare.
21662 (pretty_printer::~pretty_printer): Declare virtual.
21664 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
21667 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
21668 HOST_WIDE_INT_M1U): New macros.
21669 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
21670 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
21671 unsigned -1 for lshift.
21672 * cse.c (cse_insn): Likewise.
21673 * double-int.c (rshift_double, lshift_double): Likewise.
21674 * builtins.c (fold_builtin_bitop): Likewise.
21675 * combine.c (force_to_mode): Likewise.
21676 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
21677 * simplify-rtx.c (simplify_const_unary_operation,
21678 simplify_const_binary_operation): Likewise.
21679 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
21680 check_va_list_escapes): Likewise.
21681 * rtlanal.c (nonzero_bits1): Likewise.
21682 * expmed.c (expand_smod_pow2): Likewise.
21683 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
21685 2013-08-23 Jan Hubicka <jh@suse.cz>
21687 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
21688 as having address taken.
21690 2013-08-23 Jan Hubicka <jh@suse.cz>
21692 * ipa-utils.h (method_class_type): Declare.
21693 * ipa-devirt.c (method_class_type): Export.
21695 * cgraphunit.c (analyze_functions): Do basic devirtualization;
21696 do not walk base classes of anonymous types.
21698 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
21700 PR rtl-optimization/58220
21701 PR regression/58221
21702 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
21703 handle SEQUENCE insns properly.
21705 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
21707 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
21709 (pp_newline_and_indent): Likewise.
21710 (pp_separate_with): Likewise.
21711 * pretty-print.c (pp_newline_and_flush): Define.
21712 (pp_newline_and_indent): Likewise.
21713 (pp_separate_with): Likewise.
21715 2013-08-23 Jakub Jelinek <jakub@redhat.com>
21718 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
21719 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
21721 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
21723 * config/i386/predicates.md (ext_sse_reg_operand): New.
21724 * config/i386/i386.md (*movti_internal): Use
21725 predicate to determine if EVEX is needed.
21726 (*movsi_internal): Ditto.
21727 (*movdf_internal): Ditto.
21728 (*movsf_internal): Ditto.
21729 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
21731 2013-08-23 Jakub Jelinek <jakub@redhat.com>
21733 PR tree-optimization/58209
21734 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
21735 (find_tail_calls): Give up for pointer result types if m is non-NULL.
21736 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
21737 emit POINTER_PLUS_EXPR.
21738 (create_tailcall_accumulator): For pointer result type accumulate in
21741 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
21743 * configure.ac: Add backslashes missing from the last change.
21744 * configure: Regenerate.
21746 2013-08-22 Jan Hubicka <jh@susue.cz>
21748 * ipa.c (function_and_variable_visibility): First remember function
21749 was global and then make it local.
21751 2013-08-22 Julian Brown <julian@codesourcery.com>
21753 * configure.ac: Add aarch64 to list of arches which use "nop" in
21755 * configure: Regenerate.
21757 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21759 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
21760 gnu_libc_has_function.
21761 * config/s390/tpf.h: Likewise.
21763 2013-08-22 Jan Hubicka <jh@susue.cz>
21765 * timevar.c (validate_phases): Add cast.
21767 2013-08-22 Jan Hubicka <jh@susue.cz>
21769 * timevar.c (validate_phases): Use size_t for memory.
21770 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
21772 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
21774 * pretty-print.h (output_buffer::output_buffer): Declare.
21775 (pretty_printer::pretty_printer): Likewise.
21776 (pp_construct): Remove.
21777 * pretty-print.c (output_buffer::output_buffer): Define.
21778 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
21779 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
21780 (print_gimple_expr): Likewise.
21781 (print_gimple_seq): Likewise.
21782 (gimple_dump_bb): Likewise.
21783 * sched-vis.c (dump_value_slim): Likewise.
21784 (dump_insn_slim): Likewise.
21785 (dump_rtl_slim): Likewise.
21786 (str_pattern_slim): Likewise.
21787 * tree-mudflap.c (mf_varname_tree): Likewise.
21788 * graph.c (print_graph_cfg): Likewise.
21789 (start_graph_dump): Likewise.
21790 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
21792 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
21793 pretty printer initialization.
21794 * coretypes.h (diagnostic_context): Remove superflous type alias
21796 (pretty_printer): Likewise. Declare directly as a class.
21797 (pretty_print_info): Remove declaration as class.
21798 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
21799 and pp_clear_output_area.
21800 (asan_add_global): Likewise.
21802 2013-08-22 Jan Hubicka <jh@suse.cz>
21804 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
21805 * ipa-utils.h (update_type_inheritance_graph): Declare.
21806 (possible_polymorphic_call_target_p): Declare.
21807 (possible_polymorphic_call_target_p): New.
21808 * ipa-devirt.c: Update toplevel comments.
21809 (cached_polymorphic_call_targets): Move up.
21810 (odr_type_d): Move ID down.
21811 (polymorphic_type_binfo_p): Update comment.
21812 (odr_hasher::remove): Likewise;
21813 (get_odr_type): Set anonymous_namespace.
21814 (dump_odr_type): Dump it.
21815 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
21816 (maybe_record_node): Record node in cached_polymorphic_call_targets.
21817 (record_binfo): Add comment.
21818 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
21820 (devirt_node_removal_hook): Do not iCE when cache is freed.
21821 (possible_polymorphic_call_target_p): New predicate.
21822 (update_type_inheritance_graph): New function.
21824 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
21825 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21826 Sergey Lega <sergey.s.lega@intel.com>
21827 Anna Tikhonova <anna.tikhonova@intel.com>
21828 Ilya Tocar <ilya.tocar@intel.com>
21829 Andrey Turetskiy <andrey.turetskiy@intel.com>
21830 Ilya Verbin <ilya.verbin@intel.com>
21831 Kirill Yukhin <kirill.yukhin@intel.com>
21832 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21834 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
21835 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
21836 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
21837 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
21838 (OPTION_MASK_ISA_AVX2_UNSET): Update.
21839 (OPTION_MASK_ISA_AVX512F_UNSET): New.
21840 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
21841 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
21842 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
21843 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
21844 OPT_mavx512pf, OPT_mavx512er cases.
21845 * config/i386/constraints.md (v): New constraint.
21846 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
21847 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
21848 (bit_AVX512CD): New.
21849 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
21850 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
21851 * config/i386/i386-c.c (ix86_target_macros_internal):
21852 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
21854 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
21855 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
21856 * config/i386/i386.c (regclass_map, dbx_register_map)
21857 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
21858 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
21859 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
21860 -mavx512pf options.
21861 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
21862 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
21863 -mavx512pf options. Fix formatting.
21864 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
21865 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
21866 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
21867 -mavx512cd, -mavx512pf options.
21868 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
21869 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
21870 (ix86_preferred_output_reload_class): Replace SSE_REGS with
21872 (ix86_hard_regno_mode_ok): Support 512-bit registers.
21873 (ix86_set_reg_reg_cost): Ditto.
21874 (x86_order_regs_for_local_alloc): Ditto.
21875 (MAX_VECT_LEN): Extend to 64-byte.
21876 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
21877 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
21878 (TARGET_AVX512ER, TARGET_AVX512CD): New.
21879 (BIGGEST_ALIGNMENT): Extend to 512-bits.
21880 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
21881 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
21882 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
21883 (SSE_REG_MODE_P): Support new modes.
21884 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
21885 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
21886 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
21887 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
21888 (REG_CLASS_CONTENTS): Add new registers.
21889 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
21890 (EXT_REX_SSE_REGNO_P): New.
21891 (HI_REGISTER_NAMES): Add new registers.
21892 * config/i386/i386.md: Define constants for new registers.
21893 (mode): Add new 512-bit modes.
21894 (prefix): Support evex prefix.
21895 (isa): Support avx512f, noavx512f, fma_avx512f.
21896 (ssemodesuffix): Add new 512-bit modes.
21898 (*movxi_internal_avx512f): Ditto.
21899 (*movdi_internal): Replace constraint "x" with the new constraint "v".
21901 (*movsi_internal): Likewise.
21902 (*movdf_internal): Likewise.
21903 (*movsf_internal): Likewise.
21904 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
21905 (<code><mode>3): Likewise.
21906 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
21908 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
21909 with the new constraint "v".
21910 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
21912 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
21913 with the new constraint "v".
21914 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
21915 (<sse2>_storedqu<avxsizesuffix>): Likewise.
21916 (*<plusminus_insn><mode>3): Likewise.
21917 (<sse>_vm<plusminus_insn><mode>3): Likewise.
21918 (*mul<mode>3): Likewise.
21919 (<sse>_vmmul<mode>3): Likewise.
21920 (<sse>_div<mode>3): Likewise.
21921 (<sse>_vmdiv<mode>3): Likewise.
21922 (<sse>_sqrt<mode>2): Likewise.
21923 (<sse>_vmsqrt<mode>2): Likewise.
21924 (*<code><mode>3_finite): Likewise.
21925 (*<code><mode>3) <smaxmin>: Likewise.
21926 (<sse>_vm<code><mode>3): Likewise.
21927 (*<code><mode>3) <any_logic>: Likewise.
21928 (*fma_fmadd_<mode>): Likewise.
21929 (*fma_fmsub_<mode>): Likewise.
21930 (*fma_fnmadd_<mode>): Likewise.
21931 (*fma_fnmsub_<mode>): Likewise.
21932 (*fma_fmaddsub_<mode>): Likewise.
21933 (*fma_fmsubadd_<mode>): Likewise.
21934 (*fmai_fmadd_<mode>): Likewise.
21935 (*fmai_fmsub_<mode>): Likewise.
21936 (*fmai_fnmadd_<mode>): Likewise.
21937 (*fmai_fnmsub_<mode>): Likewise.
21938 (sse_cvtsi2ss): Likewise.
21939 (sse_cvtsi2ssq): Likewise.
21940 (sse_cvtss2si): Likewise.
21941 (sse_cvtss2si_2): Likewise.
21942 (sse_cvtss2siq): Likewise.
21943 (sse_cvtss2siq_2): Likewise.
21944 (sse_cvttss2si): Likewise.
21945 (sse_cvtss2siq_2): Likewise.
21946 (float<sseintvecmodelower><mode>2): Likewise.
21947 (sse2_cvtsd2si_2): Likewise.
21948 (sse2_cvtsd2siq_2): Likewise.
21949 (*<plusminus_insn><mode>3): Likewise.
21950 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
21951 (*<sse4_1_avx2>_mul<mode>3): Likewise.
21952 (ashr<mode>3): Likewise.
21953 (<shift_insn><mode>3): Likewise.
21954 (avx2_<code><mode>3): Likewise.
21955 (*avx2_<code><mode>3): Likewise.
21956 (*andnot<mode>3): Likewise.
21957 (*<code><mode>3) <any_logic>: Likewise.
21958 (abs<mode>2): Likewise.
21959 (avx2_permvar<mode>): Likewise.
21960 (avx2_perm<mode>_1): Likewise.
21961 (*avx_vpermilp<mode>): Likewise.
21962 (avx_vpermilvar<mode>3): Likewise.
21963 (avx2_ashrv<mode>): Likewise.
21964 (avx2_<shift_insn>v<mode>): Likewise.
21965 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
21967 * doc/rtl.texi: Document XImode.
21969 2013-08-21 Jeff Law <law@redhat.com>
21971 * tree-flow.h (register_jump_thread): Pass vector of edges
21972 instead of each important edge.
21973 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
21974 thread path into a vector and pass that to register_jump_thread.
21975 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
21976 passed in edge vector to the current 3-edge form.
21979 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
21981 * dce.c (fini_dce): Call df_analyze again just in case
21982 delete_unmarked_insns removed anything.
21984 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
21986 * reload.h (struct reg_equivs): Rename to ..
21987 (struct reg_equivs_s): .. this.
21989 2013-08-20 Martin Liska <marxin.liska@gmail.com>
21991 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
21993 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21995 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
21997 2013-08-21 Jeff Law <law@redhat.com>
21999 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
22000 simplify assignments too. If the RHS collapses to a singleton
22001 range, then return the value for the range.
22003 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
22005 * config/i386/sse.md (V16): Rename to...
22007 (mov<mode>): Update iterator name.
22008 (*mov<mode>_internal): Ditto.
22009 (push<mode>1): Ditto.
22010 (movmisalign<mode>): Ditto.
22012 2013-08-20 Jan Hubicka <jh@suse.cz>
22015 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
22016 entry for direct edges.
22017 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
22019 2013-08-20 David Malcolm <dmalcolm@redhat.com>
22021 Revert my last two changes, r201865 and r201864:
22024 2013-08-20 David Malcolm <dmalcolm@redhat.com>
22026 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
22027 instances can own GC refs.
22029 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
22030 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
22031 (gcc::context::gt_pch_nx): Likewise.
22032 (gcc::context::gt_pch_nx): Likewise.
22033 * ggc.h (gt_ggc_mx <T>): New.
22034 (gt_pch_nx_with_op <T>): New.
22035 (gt_pch_nx <T>): New.
22036 * passes.c (opt_pass::gt_ggc_mx): New.
22037 (opt_pass::gt_pch_nx): New.
22038 (opt_pass::gt_pch_nx_with_op): New.
22039 (pass_manager::gt_ggc_mx): New.
22040 (pass_manager::gt_pch_nx): New.
22041 (pass_manager::gt_pch_nx_with_op): New.
22042 (pass_manager::operator new): Use
22043 ggc_internal_cleared_alloc_stat rather than xcalloc.
22044 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
22045 (pass_manager::gt_ggc_mx): New.
22046 (pass_manager::gt_pch_nx): New.
22047 (pass_manager::gt_pch_nx_with_op): New.
22048 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
22049 (opt_pass::operator new): New.
22050 (opt_pass::gt_ggc_mx): New.
22051 (opt_pass::gt_pch_nx): New.
22052 (opt_pass::gt_pch_nx_with_op): New.
22055 2013-08-20 David Malcolm <dmalcolm@redhat.com>
22057 * Makefile.in (GTFILES): Add context.h.
22058 * context.c (gcc::context::operator new): New.
22059 (gcc::context::gt_ggc_mx): New.
22060 (gcc::context::gt_pch_nx): New.
22061 (gcc::context::gt_pch_nx): New.
22062 * context.h (gcc::context): Add GTY((user)) marking.
22063 (gcc::context::operator new): New.
22064 (gcc::context::gt_ggc_mx): New.
22065 (gcc::context::gt_pch_nx): New.
22066 (gcc::context::gt_pch_nx): New.
22067 (g): Add GTY marking.
22068 (gt_ggc_mx (gcc::context *)): New.
22069 (gt_pch_nx (gcc::context *)): New.
22070 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
22071 void *cookie)): New.
22072 * gengtype.c (open_base_files) <ifiles>: Add context.h.
22074 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
22076 * dce.c (fini_dce): Call df_analyze again just in case
22077 delete_unmarked_insns removed anything.
22079 2013-08-20 Teresa Johnson <tejohnson@google.com>
22081 PR rtl-optimizations/57451
22082 * final.c (reemit_insn_block_notes): Prevent lexical blocks
22083 from crossing split section boundaries.
22085 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
22087 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
22088 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
22089 with MULTLIB_DEFAULTS.
22091 2013-08-20 Nick Clifton <nickc@redhat.com>
22093 * target.def (narrow_volatile_bitfield): Note that the default
22094 value is false, not !TARGET_STRICT_ALIGN.
22095 * doc/tm.texi: Regenerate.
22097 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
22099 Fix LIB_SPEC for systems without libpthread.
22101 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
22102 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
22104 * config/i386/linux-common.h: Likewise.
22105 * config/mips/linux-common.h: Likewise.
22107 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
22109 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
22112 2013-08-20 David Malcolm <dmalcolm@redhat.com>
22114 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
22115 instances can own GC refs.
22117 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
22118 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
22119 (gcc::context::gt_pch_nx): Likewise.
22120 (gcc::context::gt_pch_nx): Likewise.
22121 * ggc.h (gt_ggc_mx <T>): New.
22122 (gt_pch_nx_with_op <T>): New.
22123 (gt_pch_nx <T>): New.
22124 * passes.c (opt_pass::gt_ggc_mx): New.
22125 (opt_pass::gt_pch_nx): New.
22126 (opt_pass::gt_pch_nx_with_op): New.
22127 (pass_manager::gt_ggc_mx): New.
22128 (pass_manager::gt_pch_nx): New.
22129 (pass_manager::gt_pch_nx_with_op): New.
22130 (pass_manager::operator new): Use
22131 ggc_internal_cleared_alloc_stat rather than xcalloc.
22132 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
22133 (pass_manager::gt_ggc_mx): New.
22134 (pass_manager::gt_pch_nx): New.
22135 (pass_manager::gt_pch_nx_with_op): New.
22136 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
22137 (opt_pass::operator new): New.
22138 (opt_pass::gt_ggc_mx): New.
22139 (opt_pass::gt_pch_nx): New.
22140 (opt_pass::gt_pch_nx_with_op): New.
22142 2013-08-20 David Malcolm <dmalcolm@redhat.com>
22144 * Makefile.in (GTFILES): Add context.h.
22145 * context.c (gcc::context::operator new): New.
22146 (gcc::context::gt_ggc_mx): New.
22147 (gcc::context::gt_pch_nx): New.
22148 (gcc::context::gt_pch_nx): New.
22149 * context.h (gcc::context): Add GTY((user)) marking.
22150 (gcc::context::operator new): New.
22151 (gcc::context::gt_ggc_mx): New.
22152 (gcc::context::gt_pch_nx): New.
22153 (gcc::context::gt_pch_nx): New.
22154 (g): Add GTY marking.
22155 (gt_ggc_mx (gcc::context *)): New.
22156 (gt_pch_nx (gcc::context *)): New.
22157 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
22158 void *cookie)): New.
22159 * gengtype.c (open_base_files) <ifiles>: Add context.h.
22161 2013-08-20 Alan Modra <amodra@gmail.com>
22164 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
22165 (rs6000_emit_epilogue): Likewise.
22167 2013-08-19 Dehao Chen <dehao@google.com>
22169 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
22171 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
22172 Jakub Jelinek <jakub@redhat.com>
22174 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
22175 (BUILT_IN_FABSD64): Likewise.
22176 (BUILT_IN_FABSD128): Likewise.
22177 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
22178 (fold_builtin_1): Likewise.
22179 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
22180 destination and source operands.
22181 (*abstd2_fpr): Likewise.
22182 (*nabstd2_fpr): Likewise.
22184 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
22186 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
22189 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
22191 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
22194 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
22196 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
22197 * builtins.c (default_libc_has_function): New.
22198 (gnu_libc_has_function): Ditto.
22199 (no_c99_libc_has_function): Ditto.
22200 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
22201 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
22202 (fold_builtin_sincos): Likewise.
22203 (fold_builtin_cexp): Likewise.
22204 * builtins.def (DEF_C94_BUILTIN): Likewise.
22205 (DEF_C99_BUILTIN): Likewise.
22206 (DEF_C99_C90RES_BUILTIN): Likewise.
22207 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
22208 definitions to using this define.
22209 * config/darwin-protos.h (darwin_libc_has_function): New.
22210 * config/darwin.c (darwin_libc_has_function): Ditto.
22211 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
22212 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
22213 * config/darwin.h: Ditto.
22214 * config/elfos.h: Ditto.
22215 * config/freebsd.h: Ditto.
22216 * config/i386/cygming.h: Ditto.
22217 * config/i386/djgpp.h: Ditto.
22218 * config/i386/i386-interix.h: Ditto.
22219 * config/microblaze/microblaze.h: Ditto.
22220 * config/mmix/mmix.h: Ditto.
22221 * config/gnu-user.h: Ditto.
22222 * config/ia64/hpux.h: Ditto.
22223 * config/pa/pa-hpux.h: Ditto.
22224 * config/pdp11/pdp11.h: Ditto.
22225 * config/picochip/picochip.h: Ditto.
22226 * config/linux.h: Ditto.
22227 * config/netbsd.h: Ditto.
22228 * config/openbsd.h: Ditto.
22229 * config/rs6000/aix43.h: Ditto.
22230 * config/rs6000/aix51.h: Ditto.
22231 * config/rs6000/aix52.h: Ditto.
22232 * config/rs6000/aix53.h: Ditto.
22233 * config/rs6000/aix61.h: Ditto.
22234 * config/rs6000/darwin.h: Ditto.
22235 * config/rs6000/linux.h: Ditto.
22236 * config/rs6000/linux64.h: Ditto.
22237 * config/s390/tpf.h: Ditto.
22238 * config/sol2-10.h: Ditto.
22239 * config/sol2.h: Ditto.
22240 * config/vms/vms.h: Ditto.
22241 * config/vxworks.h: Ditto.
22242 * config/linux-android.c (linux_android_libc_has_function):
22243 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
22244 * config/linux-protos.h (linux_android_libc_has_function):
22246 * config/i386/i386.c (ix86_libc_has_function): New.
22247 * config/i386/i386-protos.h
22248 (ix86_libc_has_function): New declaration.
22249 * config/i386/i386.md
22250 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
22251 ("isinf<mode>2): Likewise.
22252 * convert.c (convert_to_integer): Using new target hook
22253 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
22254 TARGET_C99_FUNCTIONS.
22255 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
22256 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
22257 * coretypes.h (function_class): New enum for different
22258 classes of functions.
22259 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
22260 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
22261 (TARGET_HAS_SINCOS): Likewise.
22262 (TARGET_LIBC_HAS_FUNCTION): New.
22263 * doc/tm.texi: Regenerated.
22264 * targhooks.h (default_libc_has_function): New declaration.
22265 (no_c99_libc_has_function): Ditto.
22266 (gnu_libc_has_function): Ditto.
22267 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
22268 and TARGET_HAS_SINCOS.
22270 2013-08-18 Jan Hubicka <jh@suse.cz>
22272 * Makeifle-in (ipa-devirt.o): New.
22273 (GTFILES): Add ipa-utils.h and ipa-devirt.c
22274 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
22275 (analyze_functions): Look into possible targets of polymorphic call.
22276 * dumpfile.c (dump_files): Add type-inheritance dump.
22277 * dumpfile.h (TDI_inheritance): New.
22278 * ipa-devirt.c: New file.
22279 * ipa-utils.h (odr_type_d): Forward declare.
22280 (odr_type): New type.
22281 (build_type_inheritance_graph): Declare.
22282 (possible_polymorphic_call_targets): Declare and introduce inline
22283 variant when only edge is pased.
22284 (dump_possible_polymorphic_call_targets): Likewise.
22285 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
22286 * tree.c (type_in_anonymous_namespace_p): Break out from ...
22287 (types_same_for_odr): ... here.
22288 * tree.h (type_in_anonymous_namespace_p): Declare.
22290 2013-08-18 Jakub Jelinek <jakub@redhat.com>
22292 PR tree-optimization/58006
22293 * tree-parloops.c (take_address_of): Don't ICE if get_name
22295 (eliminate_local_variables_stmt): Remove clobber stmts.
22297 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
22299 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
22300 error message is issued for an alias to undefined symbol.
22302 2013-08-18 Jan Hubicka <jh@suse.cz>
22304 * cgraph.c (cgraph_create_indirect_edge): Discover
22305 polymorphic calls and record basic info into indirect_info.
22306 * gimple-fold.c (gimple_fold_call): When doing BINFO based
22307 devirtualization, ignore objc function calls.
22308 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
22309 call with no parm index info.
22310 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
22311 * tree.c (virtual_method_call_p): New function.
22312 * tree.h (virtual_method_call_p): Declare.
22314 2013-08-16 Jan Hubicka <jh@suse.cz>
22316 PR middle-end/58179
22317 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
22319 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
22321 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
22324 2013-08-16 David Malcolm <dmalcolm@redhat.com>
22326 * gengtype.c (type_for_name): Add special-case support for
22327 locating types within the "gcc::" namespace.
22328 (open_base_files): Emit a "using namespace gcc" directive.
22330 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
22333 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
22334 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
22336 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
22337 array instead of each individual operand as a separate argument.
22338 (emit_fusion_gpr_load): Likewise.
22339 (expand_fusion_gpr_load): Add new function declaration.
22341 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
22342 signature to have the operands passed as an array, instead of as
22343 separate arguments. Allow ZERO_EXTEND to be in the memory
22344 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
22345 depend on the register live/dead flags when peepholes are run.
22346 (expand_fusion_gpr_load): New function to be called from the
22347 peephole2 pass, to change the register that addis sets to be the
22349 (emit_fusion_gpr_load): Change the calling signature to have the
22350 operands passed as an array, instead of as separate arguments.
22351 Allow ZERO_EXTEND to be in the memory address, and also
22352 SIGN_EXTEND if -mpower8-fusion-sign.
22354 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
22355 unspec enumeration.
22356 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
22357 adjust the register addis loads up in the peephole2 pass. Do not
22358 depend on the register live/dead state when the peephole pass is done.
22360 2013-08-16 David Malcolm <dmalcolm@redhat.com>
22362 * gengtype.c (create_user_defined_type): Ensure that the kind
22363 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
22364 declaration is seen before the GTY((user)) marking.
22366 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
22369 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
22371 2013-08-16 Jan Hubicka <jh@suse.cz>
22373 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
22374 arugment expected_type.
22375 (gimple_fold_call): Use it.
22376 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
22377 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
22378 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
22379 (try_make_edge_direct_virtual_call): Likewise.
22380 * tree.c (obj_type_ref_class): New.
22381 * tree.h (obj_type_ref_class): Use it.
22383 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
22385 * sched-vis.c (rtl_slim_pp_initialized): Remove.
22386 (rtl_slim_pp): Likewise.
22387 (init_rtl_slim_pretty_print): Likewise.
22388 (dump_value_slim): Don't call it. Use local pretty printer.
22389 (dump_insn_slim): Likewise.
22390 (dump_rtl_slim): Likewise.
22391 (str_pattern_slim): Likewise.
22392 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
22395 2013-08-16 Jakub Jelinek <jakub@redhat.com>
22397 PR tree-optimization/58164
22398 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
22399 walk gimple_goto_dest of GIMPLE_GOTO.
22401 PR tree-optimization/58165
22402 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
22403 bi_call must be the last stmt in a bb, don't split_block, instead
22404 use fallthru edge from it and give up if there is none.
22405 Release conds vector when returning early.
22407 2013-08-14 Xinliang David Li <davidxl@google.com>
22409 * config/i386/i386.c (ix86_option_override_internal):
22410 Remove unused variable and field.
22412 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22415 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
22416 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
22417 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
22418 and Linux, correct BLKmode alignment when 128-bit alignment is
22419 required and compatibility flag is not set.
22420 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
22421 for zero-size arguments when compatibility flag is not set.
22423 2013-08-14 Jakub Jelinek <jakub@redhat.com>
22425 PR tree-optimization/58145
22426 * tree-sra.c (build_ref_for_offset): If prev_base has
22427 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
22429 2013-08-14 Xinliang David Li <davidxl@google.com>
22431 * config/i386/i386.c (ix86_option_override_internal):
22432 Fix uninitialized variable error.
22434 2013-08-14 Xinliang David Li <davidxl@google.com>
22436 * config/i386/i386.opt: Define two new options.
22437 * config/i386/x86-tune.def: Add arch selector field in macros.
22438 * config/i386/i386.h: Adjust macro definition.
22439 * config/i386/i386.c (ix86_option_override_internal):
22441 (parse_mtune_ctrl_str): New function.
22442 (set_ix86_tune_features): New function.
22443 (ix86_function_specific_restore): Call the new helper function.
22445 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
22447 PR rtl-optimization/57662
22448 * sel-sched.c (code_motion_process_successors): When the current insn
22449 is removed after the recursive traversal, break from the loop.
22450 Add comments and debug printouts.
22452 2013-08-14 Jakub Jelinek <jakub@redhat.com>
22453 Alexandre Oliva <aoliva@redhat.com>
22456 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
22457 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
22458 there also UNSPEC_PLTOFF.
22460 2013-08-14 Marek Polacek <polacek@redhat.com>
22462 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
22463 NUM_CONDITIONS bit positions.
22465 2013-08-13 Cary Coutant <ccoutant@google.com>
22467 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
22468 (attr_checksum): Hash vector contents instead of pointer.
22469 (attr_checksum_ordered): Likewise.
22471 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
22473 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
22474 when Pmode != word_mode. Add length_address attribute.
22475 (sse3_monitor_<mode>): Merge from sse3_monitor and
22476 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
22477 Pmode != word_mode. Update insn length attribute.
22478 * config/i386/i386.c (ix86_option_override_internal): Update
22479 ix86_gen_monitor selection for merged sse3_monitor insn.
22481 2013-08-13 Julian Brown <julian@codesourcery.com>
22483 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
22484 perform invalid legitimization on greater-than-word-size modes for
22485 TARGET_E500_DOUBLE.
22487 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
22489 * ira.c (setup_class_translate_array): Use aclass instead of cl
22490 for classes not fully covered by allocno classes.
22492 2013-08-13 Jakub Jelinek <jakub@redhat.com>
22494 PR tree-optimization/57661
22495 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
22496 * tree-inline.c (tree_function_versioning): Initialize it.
22497 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
22498 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
22499 that is not being copied.
22502 * asan.c (instrument_strlen_call): Fix typo in comment.
22503 Use char * type even for the lhs of POINTER_PLUS_EXPR.
22505 2013-08-13 Steve Ellcey <sellcey@mips.com>
22507 * config/mips/mips.md (prefetch): Use lw instead of ld on
22508 loongson in 32bit mode.
22510 2013-08-13 Nick Clifton <nickc@redhat.com>
22512 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
22514 2013-08-13 Jan Hubicka <jh@suse.cz>
22516 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
22517 introduced edge; fix typo in sanity check.
22518 (cgraph_resolve_speculation): Export; improve diagnostic.
22519 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
22520 speculation at type mismatch.
22521 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
22522 (cgraph_resolve_speculation): Declare.
22523 (symtab_can_be_discarded): New function.
22524 * value-prof.c (gimple_ic_transform): Remove actual transform code.
22525 * ipa-inline-transform.c (speculation_removed): New global var.
22526 (clone_inlined_nodes): See if speculation can be removed.
22527 (inline_call): If speculations was removed, we growths may not match.
22528 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
22529 (speculation_useful_p): New function.
22530 (resolve_noninline_speculation): New function.
22531 (inline_small_functions): Resolve useless speculations.
22532 * ipa-inline.h (speculation_useful_p): Declare
22533 * ipa.c (can_replace_by_local_alias): Simplify.
22534 (ipa_profile): Produce speculative calls in non-lto, too;
22535 add simple cost model; produce local aliases.
22537 2013-08-13 David Malcolm <dmalcolm@redhat.com>
22539 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
22542 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
22544 * config/i386/i386.c (ix86_function_versions): Use error + inform.
22546 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
22548 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
22549 iterator instead of X87MODEF.
22551 2013-08-12 Perez Read <netfirewall@gmail.com>
22554 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
22555 operand 0 for intel asm alternative.
22556 (*movabs<mode>_2): Ditto for operand 1.
22558 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
22560 * config/aarch64/arm_none.h
22561 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
22563 2013-08-12 Nick Clifton <nickc@redhat.com>
22565 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
22567 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
22569 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
22570 expand for QI/HImode operand to produce more effictive code for
22571 unsigned char(short) --> float(double) conversion.
22573 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
22575 * doc/invoke.texi: Mention that -ftls-model does not force the final
22578 2013-08-12 Marek Polacek <polacek@redhat.com>
22579 Marc Glisse <marc.glisse@inria.fr>
22581 PR tree-optimization/57980
22582 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
22583 when creating -1 constant.
22585 2013-08-10 Jan Hubicka <jh@suse.cz>
22587 Workaround binutils PR14342.
22588 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
22589 (gimple_init_edge_profiler): Likewise.
22590 (gimple_gen_ic_func_profiler): Likewise.
22592 2013-08-09 Jan Hubicka <jh@suse.cz>
22594 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
22596 2013-08-09 Xinliang David Li <davidxl@google.com>
22598 * config/i386/stringop.def: New file.
22599 * config/i386/stringop.opt: New file.
22600 * config/i386/i386-opts.h: Include stringopt.def.
22601 * config/i386/i386.opt: Include stringopt.opt.
22602 * config/i386/i386.c (ix86_option_override_internal):
22603 Override default size based stringop inline strategies with options.
22604 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
22607 2013-08-09 Jan Hubicka <jh@suse.cz>
22609 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
22611 2013-08-09 Jan Hubicka <jh@suse.cz>
22613 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
22615 (dump_cgraph_node): Dump profile-id.
22616 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
22617 and common_target_probability.
22618 * lto-cgraph.c (lto_output_edge): Stream common targets.
22619 (lto_output_node): Stream profile ids.
22620 (input_node): Stream profile ids.
22621 (input_edge): Stream common targets.
22622 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
22623 * ipa.c: Include value-prof.h
22624 (ipa_profile_generate_summary): Turn indirect call statement histograms
22625 into common targets.
22626 (ipa_profile): Turn common targets into speculative edges.
22628 2013-08-09 Jan Hubicka <jh@suse.cz>
22630 * cgraph.h (cgraph_node): Add profile_id.
22631 * value-prof.c (cgraph_node_map): Turn into pointer_map.
22632 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
22633 (del_node_map): Update.
22634 (find_func_by_funcdef_no): Replace by ...
22635 (find_func_by_profile_id): ... this one.
22636 (gimple_ic_transform): Do not remove useful histograms when
22637 speculation is not done; dump info when indirect call removal
22639 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
22640 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
22641 (__gcov_indirect_call_profiler_v2): .. this one.
22642 * profile.h (init_node_map): Update.
22643 * coverage.c (coverage_compute_profile_id): New function.
22644 * coverage.h (coverage_compute_profile_id): Declare.
22645 * tree-profile.c (init_ic_make_global_vars): Make
22646 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
22647 (gimple_init_edge_profiler): Update prototype of
22648 __gcov_indirect_call_profiler.
22649 (gimple_gen_ic_func_profiler): Simplify.
22650 (tree_profiling): Use init_node_map
22652 2013-08-09 Jan Hubicka <jh@suse.cz>
22654 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
22655 non-speculative refs.
22656 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
22657 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
22658 (cgraph_set_call_stmt): Likewise.
22659 (cgraph_create_edge_1): Fix release checking compilatoin;
22660 clear lto_stmt_uid.
22661 (cgraph_free_edge): Free indirect info.
22662 (cgraph_turn_edge_to_speculative): New function.
22663 (cgraph_speculative_call_info): New function.
22664 (cgraph_make_edge_direct): Return direct edge; handle speculation.
22665 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
22666 (dump_cgraph_node): Dump speculation.
22667 (verify_edge_count_and_frequency): Accept speculative edges.
22668 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
22669 (verify_cgraph_node): Handle speculation.
22670 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
22671 (cgraph_set_call_stmt): Update prototype.
22672 (cgraph_make_edge_direct): Update prototype.
22673 (cgraph_speculative_call_info): Declare.
22674 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
22675 to change; update call of ipa_find_references.
22676 * ipa-ref.c (ipa_record_reference): Fix return value; clear
22677 lto_stmt_uid and speculative flags.
22678 (ipa_dump_references): Dump speculation.
22679 (ipa_clone_references): Clone speculative flag.
22680 (ipa_clone_referring): Likewise.
22681 (ipa_clone_ref): New function.
22682 (ipa_find_reference): Look into lto_stmt_uids
22683 (ipa_clear_stmts_in_references): Do not clear speculative calls.
22684 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
22685 (ipa_find_reference): Update declaration.
22686 (ipa_clone_ref): Declare.
22687 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
22688 stream speculative flag.
22689 (lto_output_ref): Stream statements uids and speculation.
22690 (input_ref): Likewise.
22691 (input_edge): Stream speuclation.
22692 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
22693 (cgraph_set_call_stmt_including_clones): Handle speculation.
22694 * ipa-inline.c (heap_edge_removal_hook): New function.
22695 (inline_small_functions): Register it.
22696 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
22697 also initialize refs.
22698 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
22700 (try_make_edge_direct_simple_call): Likewise.
22701 (try_make_edge_direct_simple_call): Likewise.
22702 (update_indirect_edges_after_inlining): Likewise.
22703 (remove_described_reference): Look proper lto_stmt_uid.
22704 (propagate_controlled_uses): Likewise.
22705 (propagate_controlled_uses): Liekwise.
22706 * tree-inline.c (copy_bb): Copy speculative edges.
22707 (redirect_all_calls): New function.
22708 (copy_cfg_body): Do redirection after loop info is updated.
22709 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
22711 2013-08-09 Jan Hubicka <jh@suse.cz>
22713 * lto-streamer-out.c (output_function): Renumber PHIs.
22714 * lto-streamer-in.c (input_function): Likewise.
22716 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
22718 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
22719 (get_lane_unsigned): Likewise.
22720 (dup_lane_scalar): Likewise.
22721 (get_lane): enable for VALL.
22722 * config/aarch64/aarch64-simd.md
22723 (aarch64_dup_lane_scalar<mode>): Remove.
22724 (aarch64_get_lane_signed<mode>): Likewise.
22725 (aarch64_get_lane_unsigned<mode>): Likewise.
22726 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
22727 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
22728 (aarch64_get_lane<mode>): Enable for all vector modes.
22729 (aarch64_get_lanedi): Remove misleading constraints.
22730 * config/aarch64/arm_neon.h
22731 (__aarch64_vget_lane_any): Define.
22732 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
22733 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
22734 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
22735 * config/aarch64/iterators.md (VDQQH): New.
22736 (VDQQHS): Likewise.
22737 (vwcore): Likewise.
22739 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
22741 * configure.ac: Add GAS check for LEON instructions on SPARC.
22742 * configure: Regenerate.
22743 * config.in: Likewise.
22744 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
22746 * config/sparc/sparc.opt (LEON, LEON3): New masks.
22747 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
22749 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
22750 (AS_LEON_FLAG): New macro.
22751 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
22752 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
22753 Deal with LEON and LEON3 for the memory model.
22754 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
22755 (atomic_compare_and_swap<mode>_1): Likewise.
22756 (*atomic_compare_and_swap<mode>_1): Likewise.
22758 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22760 * config/arm/neon.md (vcond): Fix floating-point vector
22761 comparisons against 0.
22763 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
22765 * lra-constraints.c (emit_spill_move): Remove assert.
22766 (process_alt_operands): Add more debugging
22767 output. Increase reject for spilling into memory. Decrease
22768 reject for reloading scratch.
22769 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
22771 2013-08-08 Steve Ellcey <sellcey@mips.com>
22773 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
22774 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
22775 micromips incompatible. Add nan2008.
22776 (MULTILIB_DIRNAMES): Add nan2008.
22777 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
22778 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
22779 and micromips incompatible. Add nan2008.
22780 (MULTILIB_DIRNAMES): Add nan2008.
22781 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
22783 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
22785 PR rtl-optimization/58079
22786 * combine.c (combine_simplify_rtx): Avoid using SUBST if
22787 simplify_comparison has widened a comparison with an integer.
22789 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22791 * config/arm/neon.md (movmisalign<mode>): Disable when we
22792 don't allow unaligned accesses.
22793 (*movmisalign<mode>_neon_store): Likewise.
22794 (*movmisalign<mode>_neon_load): Likewise.
22795 (*movmisalign<mode>_neon_store): Likewise.
22796 (*movmisalign<mode>_neon_load): Likewise.
22798 2013-08-08 Jan Hubicka <jh@suse.cz>
22800 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
22801 (make_pass_rebuild_cgraph_edges): Also clear references.
22802 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
22803 * ipa-inline-transform.c (inline_transform): Remove all references
22805 * cgraphunit.c (expand_function): Remove all references after
22807 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
22808 (ipa_find_reference): Rewrite to iterator.
22809 (remove_stmt_references): Likewise.
22810 (ipa_clear_stmts_in_references): New function.
22811 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
22812 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
22814 * ipa-split.c (split_function): Remove references in split function.
22816 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
22819 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
22820 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
22822 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
22825 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
22826 suggested mode for the assignment isn't compatible with the
22827 registers required.
22829 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
22832 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
22834 2013-08-07 Xinliang David Li <davidxl@google.com>
22836 * config/i386/i386.opt: New option -mtune-ctrl=.
22837 * config/i386/x86-tune.def: New file.
22838 * config/i386/i386.h: include x86-tune.def.
22839 * config/i386/i386.c (ix86_option_override_internal):
22840 Parsing -mtune-ctrl= option and set tune features.
22842 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
22845 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
22846 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
22849 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
22851 * rtl.h (update_alignments): Declare.
22852 * final.c (grow_label_align): New function extracted from...
22853 (shorten_branches): ...here. Call it.
22854 (update_alignments): New function.
22855 * reorg.c (sibling_labels): New variable.
22856 (get_label_before): Add SIBLING parameter. If it is non-zero, push
22857 the new label along with it onto the sibling_labels vector.
22858 (fill_simple_delay_slots): Adjust call to get_label_before.
22859 (fill_slots_from_thread): Likewise.
22860 (relax_delay_slots): Likewise.
22861 (make_return_insns): Likewise.
22862 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
22864 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
22866 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
22867 document its semantics.
22868 (diagnostic_report_diagnostic): Adjust accordingly.
22870 2013-08-07 David Malcolm <dmalcolm@redhat.com>
22872 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
22873 (sparc_option_override): ...and port to new C++ pass API.
22874 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
22876 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
22878 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
22880 2013-08-06 Caroline Tice <cmtice@google.com>
22882 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
22883 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
22884 * tree-pass.h: Add pass_vtable_verify.
22885 * varasm.c (assemble_variable): Add code to properly set the comdat
22886 section and name for the .vtable_map_vars section.
22887 (assemble_vtyv_preinit_initializer): New function.
22888 (default_sectin_type_flags): Make sure .vtable_map_vars section has
22890 * output.h: Add function decl for assemble_vtv_preinit_initializer.
22891 * vtable-verify.c: New file.
22892 * vtable-verify.h: New file.
22893 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
22894 initialiation levels.
22895 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
22896 * passes.def: Insert pass_vtable_verify.
22897 * aclocal.m4: Reorder includes.
22898 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
22899 -fvtv-counts options.
22900 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
22901 as appropriate, if -fvtable-verify=... is used.
22902 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
22903 -fvtable-verify=... is used.
22904 * Makefile.in (OBJS): Add vtable-verify.o to list.
22905 (vtable-verify.o): Add new build rule.
22906 (GTFILES): Add vtable-verify.c to list.
22907 * common.opt (fvtable-verify=): New flag.
22908 (vtv_priority): Values for fvtable-verify= flag.
22909 (fvtv-counts): New flag.
22910 (fvtv-debug): New flag.
22911 * tree.h (save_vtable_map_decl): New extern function decl.
22913 2013-08-07 David Malcolm <dmalcolm@redhat.com>
22915 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
22916 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
22917 (pass_data_rl78_devirt): ...new pass_data instance and...
22918 (make_pass_rl78_devirt): ...new function.
22919 (rl78_asm_file_start): Port pass registration to new C++ API.
22921 2013-08-07 David Malcolm <dmalcolm@redhat.com>
22923 * coretypes.h (rtl_opt_pass): Add.
22924 (gcc::context): Add.
22925 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
22926 (epiphany_init): Port to new C++ pass API.
22927 (epiphany_optimize_mode_switching): Likewise.
22928 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
22929 (pass_manager::get_pass_mode_switching): New.
22930 (pass_manager::get_pass_peephole2): New.
22931 * mode-switching.c (pass_mode_switching): Add clone method.
22932 * recog.c (pass_peephole2): Add clone method.
22933 (pass_split_all_insns): Add clone method.
22935 2013-08-06 David Malcolm <dmalcolm@redhat.com>
22937 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
22938 (mips_option_override): ...here, porting to new C++ API for passes.
22940 2013-08-06 Jan Hubicka <jh@suse.cz>
22942 * cgraph.c (cgraph_get_body): New function based on lto.c
22944 * cgraph.h (cgraph_get_body): Declare.
22945 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
22947 * cgraphunit.c (expand_function): Get body prior expanding.
22948 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
22949 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
22951 * passes.c (do_per_function_toporder): Get body.
22952 * tree-inline.c (expand_call_inline): Get body prior inlining it.
22953 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
22955 2013-08-06 Martin Jambor <mjambor@suse.cz>
22958 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
22959 is not re-finalized. Rename second parameter to no_collect.
22961 2013-08-06 Martin Jambor <mjambor@suse.cz>
22963 PR middle-end/58041
22964 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
22965 MEM_REF has proper alignment information.
22967 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
22970 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
22972 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
22973 rtx (*) (rtx, ...) with insn_gen_fn.
22974 * genoutput.c (output_insn_data): Cast gen_? function pointers to
22975 insn_gen_fn::stored_funcptr. Add initializer braces.
22977 2013-08-05 David Malcolm <dmalcolm@redhat.com>
22979 Rewrite how instances of passes are cloned to remove assumptions
22980 about their sizes (thus allowing pass subclasses to have
22981 additional data fields, albeit non-GC-managed ones at this point).
22983 * passes.c (make_pass_instance): Now that passes have clone
22984 methods, rewrite this function to eliminate XNEW and memcpy
22985 calls that used hardcoded sizes. Since this function no longer
22986 creates pass instances, rename it to...
22987 (add_pass_instance): ...this. Document the old way that passes were
22988 numbered and flagged, and rework this function to continue using it.
22989 (next_pass_1): Add an initial_pass argument for use by
22991 (position_pass): When adding multiple instances of a pass, use
22992 the pass's clone method, rather than relying on the XNEW/memcpy
22993 within the former make_pass_instance (now add_pass_instance).
22994 (pass_manager::pass_manager): When invoking next_pass_1, also supply
22995 the initial instance of the current pass within the pass manager.
22997 2013-08-05 David Malcolm <dmalcolm@redhat.com>
22999 This is the automated part of the conversion of passes from C
23000 structs to C++ classes.
23002 Patch autogenerated by refactor_passes.py from
23003 https://github.com/davidmalcolm/gcc-refactoring-scripts
23004 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
23006 * asan.c (pass_asan): Convert from a global struct to a subclass of
23007 gimple_opt_pass along with...
23008 (pass_data_asan): ...new pass_data instance and...
23009 (make_pass_asan): ...new function.
23010 (pass_asan_O0): Convert from a global struct to a subclass of
23011 gimple_opt_pass along with...
23012 (pass_data_asan_O0): ...new pass_data instance and...
23013 (make_pass_asan_O0): ...new function.
23014 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
23015 subclass of rtl_opt_pass along with...
23016 (pass_data_inc_dec): ...new pass_data instance and...
23017 (make_pass_inc_dec): ...new function.
23018 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
23019 a subclass of rtl_opt_pass along with...
23020 (pass_data_reorder_blocks): ...new pass_data instance and...
23021 (make_pass_reorder_blocks): ...new function.
23022 (pass_duplicate_computed_gotos): Convert from a global struct to a
23023 subclass of rtl_opt_pass along with...
23024 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
23025 (make_pass_duplicate_computed_gotos): ...new function.
23026 (pass_partition_blocks): Convert from a global struct to a subclass of
23027 rtl_opt_pass along with...
23028 (pass_data_partition_blocks): ...new pass_data instance and...
23029 (make_pass_partition_blocks): ...new function.
23030 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
23031 struct to a subclass of rtl_opt_pass along with...
23032 (pass_data_branch_target_load_optimize1): ...new pass_data instance
23034 (make_pass_branch_target_load_optimize1): ...new function.
23035 (pass_branch_target_load_optimize2): Convert from a global struct to a
23036 subclass of rtl_opt_pass along with...
23037 (pass_data_branch_target_load_optimize2): ...new pass_data instance
23039 (make_pass_branch_target_load_optimize2): ...new function.
23040 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
23041 of rtl_opt_pass along with...
23042 (pass_data_jump): ...new pass_data instance and...
23043 (make_pass_jump): ...new function.
23044 (pass_jump2): Convert from a global struct to a subclass of
23045 rtl_opt_pass along with...
23046 (pass_data_jump2): ...new pass_data instance and...
23047 (make_pass_jump2): ...new function.
23048 * cfgexpand.c (pass_expand): Convert from a global struct to a
23049 subclass of rtl_opt_pass along with...
23050 (pass_data_expand): ...new pass_data instance and...
23051 (make_pass_expand): ...new function.
23052 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
23053 of rtl_opt_pass along with...
23054 (pass_data_free_cfg): ...new pass_data instance and...
23055 (make_pass_free_cfg): ...new function.
23056 (pass_into_cfg_layout_mode): Convert from a global struct to a
23057 subclass of rtl_opt_pass along with...
23058 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
23059 (make_pass_into_cfg_layout_mode): ...new function.
23060 (pass_outof_cfg_layout_mode): Convert from a global struct to a
23061 subclass of rtl_opt_pass along with...
23062 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
23063 (make_pass_outof_cfg_layout_mode): ...new function.
23064 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
23065 struct to a subclass of gimple_opt_pass along with...
23066 (pass_data_build_cgraph_edges): ...new pass_data instance and...
23067 (make_pass_build_cgraph_edges): ...new function.
23068 (pass_rebuild_cgraph_edges): Convert from a global struct to a
23069 subclass of gimple_opt_pass along with...
23070 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
23071 (make_pass_rebuild_cgraph_edges): ...new function.
23072 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
23073 subclass of gimple_opt_pass along with...
23074 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
23076 (make_pass_remove_cgraph_callee_edges): ...new function.
23077 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
23078 struct to a subclass of rtl_opt_pass along with...
23079 (pass_data_stack_adjustments): ...new pass_data instance and...
23080 (make_pass_stack_adjustments): ...new function.
23081 * combine.c (pass_combine): Convert from a global struct to a subclass
23082 of rtl_opt_pass along with...
23083 (pass_data_combine): ...new pass_data instance and...
23084 (make_pass_combine): ...new function.
23085 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
23086 global struct to a subclass of rtl_opt_pass along with...
23087 (pass_data_compare_elim_after_reload): ...new pass_data instance
23089 (make_pass_compare_elim_after_reload): ...new function.
23090 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
23091 of rtl_opt_pass along with...
23092 (pass_data_rtl_cprop): ...new pass_data instance and...
23093 (make_pass_rtl_cprop): ...new function.
23094 * cse.c (pass_cse): Convert from a global struct to a subclass of
23095 rtl_opt_pass along with...
23096 (pass_data_cse): ...new pass_data instance and...
23097 (make_pass_cse): ...new function.
23098 (pass_cse2): Convert from a global struct to a subclass of
23099 rtl_opt_pass along with...
23100 (pass_data_cse2): ...new pass_data instance and...
23101 (make_pass_cse2): ...new function.
23102 (pass_cse_after_global_opts): Convert from a global struct to a
23103 subclass of rtl_opt_pass along with...
23104 (pass_data_cse_after_global_opts): ...new pass_data instance and...
23105 (make_pass_cse_after_global_opts): ...new function.
23106 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
23107 of rtl_opt_pass along with...
23108 (pass_data_ud_rtl_dce): ...new pass_data instance and...
23109 (make_pass_ud_rtl_dce): ...new function.
23110 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
23111 rtl_opt_pass along with...
23112 (pass_data_fast_rtl_dce): ...new pass_data instance and...
23113 (make_pass_fast_rtl_dce): ...new function.
23114 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
23115 a subclass of rtl_opt_pass along with...
23116 (pass_data_df_initialize_opt): ...new pass_data instance and...
23117 (make_pass_df_initialize_opt): ...new function.
23118 (pass_df_initialize_no_opt): Convert from a global struct to a
23119 subclass of rtl_opt_pass along with...
23120 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
23121 (make_pass_df_initialize_no_opt): ...new function.
23122 (pass_df_finish): Convert from a global struct to a subclass of
23123 rtl_opt_pass along with...
23124 (pass_data_df_finish): ...new pass_data instance and...
23125 (make_pass_df_finish): ...new function.
23126 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
23127 rtl_opt_pass along with...
23128 (pass_data_rtl_dse1): ...new pass_data instance and...
23129 (make_pass_rtl_dse1): ...new function.
23130 (pass_rtl_dse2): Convert from a global struct to a subclass of
23131 rtl_opt_pass along with...
23132 (pass_data_rtl_dse2): ...new pass_data instance and...
23133 (make_pass_rtl_dse2): ...new function.
23134 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
23135 subclass of rtl_opt_pass along with...
23136 (pass_data_dwarf2_frame): ...new pass_data instance and...
23137 (make_pass_dwarf2_frame): ...new function.
23138 * except.c (pass_set_nothrow_function_flags): Convert from a global
23139 struct to a subclass of rtl_opt_pass along with...
23140 (pass_data_set_nothrow_function_flags): ...new pass_data instance
23142 (make_pass_set_nothrow_function_flags): ...new function.
23143 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
23144 subclass of rtl_opt_pass along with...
23145 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
23147 (make_pass_convert_to_eh_region_ranges): ...new function.
23148 * final.c (pass_compute_alignments): Convert from a global struct to a
23149 subclass of rtl_opt_pass along with...
23150 (pass_data_compute_alignments): ...new pass_data instance and...
23151 (make_pass_compute_alignments): ...new function.
23152 (pass_final): Convert from a global struct to a subclass of
23153 rtl_opt_pass along with...
23154 (pass_data_final): ...new pass_data instance and...
23155 (make_pass_final): ...new function.
23156 (pass_shorten_branches): Convert from a global struct to a subclass of
23157 rtl_opt_pass along with...
23158 (pass_data_shorten_branches): ...new pass_data instance and...
23159 (make_pass_shorten_branches): ...new function.
23160 (pass_clean_state): Convert from a global struct to a subclass of
23161 rtl_opt_pass along with...
23162 (pass_data_clean_state): ...new pass_data instance and...
23163 (make_pass_clean_state): ...new function.
23164 * function.c (pass_instantiate_virtual_regs): Convert from a global
23165 struct to a subclass of rtl_opt_pass along with...
23166 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
23167 (make_pass_instantiate_virtual_regs): ...new function.
23168 (pass_leaf_regs): Convert from a global struct to a subclass of
23169 rtl_opt_pass along with...
23170 (pass_data_leaf_regs): ...new pass_data instance and...
23171 (make_pass_leaf_regs): ...new function.
23172 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
23173 subclass of rtl_opt_pass along with...
23174 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
23176 (make_pass_thread_prologue_and_epilogue): ...new function.
23177 (pass_match_asm_constraints): Convert from a global struct to a
23178 subclass of rtl_opt_pass along with...
23179 (pass_data_match_asm_constraints): ...new pass_data instance and...
23180 (make_pass_match_asm_constraints): ...new function.
23181 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
23182 subclass of rtl_opt_pass along with...
23183 (pass_data_rtl_fwprop): ...new pass_data instance and...
23184 (make_pass_rtl_fwprop): ...new function.
23185 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
23186 rtl_opt_pass along with...
23187 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
23188 (make_pass_rtl_fwprop_addr): ...new function.
23189 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
23190 rtl_opt_pass along with...
23191 (pass_data_rtl_pre): ...new pass_data instance and...
23192 (make_pass_rtl_pre): ...new function.
23193 (pass_rtl_hoist): Convert from a global struct to a subclass of
23194 rtl_opt_pass along with...
23195 (pass_data_rtl_hoist): ...new pass_data instance and...
23196 (make_pass_rtl_hoist): ...new function.
23197 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
23198 subclass of gimple_opt_pass along with...
23199 (pass_data_lower_cf): ...new pass_data instance and...
23200 (make_pass_lower_cf): ...new function.
23201 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
23202 from a global struct to a subclass of gimple_opt_pass along with...
23203 (pass_data_strength_reduction): ...new pass_data instance and...
23204 (make_pass_strength_reduction): ...new function.
23205 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
23206 of rtl_opt_pass along with...
23207 (pass_data_rtl_ifcvt): ...new pass_data instance and...
23208 (make_pass_rtl_ifcvt): ...new function.
23209 (pass_if_after_combine): Convert from a global struct to a subclass of
23210 rtl_opt_pass along with...
23211 (pass_data_if_after_combine): ...new pass_data instance and...
23212 (make_pass_if_after_combine): ...new function.
23213 (pass_if_after_reload): Convert from a global struct to a subclass of
23214 rtl_opt_pass along with...
23215 (pass_data_if_after_reload): ...new pass_data instance and...
23216 (make_pass_if_after_reload): ...new function.
23217 * init-regs.c (pass_initialize_regs): Convert from a global struct to
23218 a subclass of rtl_opt_pass along with...
23219 (pass_data_initialize_regs): ...new pass_data instance and...
23220 (make_pass_initialize_regs): ...new function.
23221 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
23222 of ipa_opt_pass_d along with...
23223 (pass_data_ipa_cp): ...new pass_data instance and...
23224 (make_pass_ipa_cp): ...new function.
23225 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
23226 global struct to a subclass of gimple_opt_pass along with...
23227 (pass_data_inline_parameters): ...new pass_data instance and...
23228 (make_pass_inline_parameters): ...new function.
23229 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
23230 subclass of gimple_opt_pass along with...
23231 (pass_data_early_inline): ...new pass_data instance and...
23232 (make_pass_early_inline): ...new function.
23233 (pass_ipa_inline): Convert from a global struct to a subclass of
23234 ipa_opt_pass_d along with...
23235 (pass_data_ipa_inline): ...new pass_data instance and...
23236 (make_pass_ipa_inline): ...new function.
23237 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
23238 struct to a subclass of gimple_opt_pass along with...
23239 (pass_data_local_pure_const): ...new pass_data instance and...
23240 (make_pass_local_pure_const): ...new function.
23241 (pass_ipa_pure_const): Convert from a global struct to a subclass of
23242 ipa_opt_pass_d along with...
23243 (pass_data_ipa_pure_const): ...new pass_data instance and...
23244 (make_pass_ipa_pure_const): ...new function.
23245 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
23246 to a subclass of ipa_opt_pass_d along with...
23247 (pass_data_ipa_reference): ...new pass_data instance and...
23248 (make_pass_ipa_reference): ...new function.
23249 * ipa-split.c (pass_split_functions): Convert from a global struct to
23250 a subclass of gimple_opt_pass along with...
23251 (pass_data_split_functions): ...new pass_data instance and...
23252 (make_pass_split_functions): ...new function.
23253 (pass_feedback_split_functions): Convert from a global struct to a
23254 subclass of gimple_opt_pass along with...
23255 (pass_data_feedback_split_functions): ...new pass_data instance and...
23256 (make_pass_feedback_split_functions): ...new function.
23257 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
23258 global struct to a subclass of simple_ipa_opt_pass along with...
23259 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
23261 (make_pass_ipa_function_and_variable_visibility): ...new function.
23262 (pass_ipa_free_inline_summary): Convert from a global struct to a
23263 subclass of simple_ipa_opt_pass along with...
23264 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
23265 (make_pass_ipa_free_inline_summary): ...new function.
23266 (pass_ipa_whole_program_visibility): Convert from a global struct to a
23267 subclass of ipa_opt_pass_d along with...
23268 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
23270 (make_pass_ipa_whole_program_visibility): ...new function.
23271 (pass_ipa_profile): Convert from a global struct to a subclass of
23272 ipa_opt_pass_d along with...
23273 (pass_data_ipa_profile): ...new pass_data instance and...
23274 (make_pass_ipa_profile): ...new function.
23275 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
23276 ipa_opt_pass_d along with...
23277 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
23278 (make_pass_ipa_cdtor_merge): ...new function.
23279 * ira.c (pass_ira): Convert from a global struct to a subclass of
23280 rtl_opt_pass along with...
23281 (pass_data_ira): ...new pass_data instance and...
23282 (make_pass_ira): ...new function.
23283 (pass_reload): Convert from a global struct to a subclass of
23284 rtl_opt_pass along with...
23285 (pass_data_reload): ...new pass_data instance and...
23286 (make_pass_reload): ...new function.
23287 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
23288 subclass of rtl_opt_pass along with...
23289 (pass_data_cleanup_barriers): ...new pass_data instance and...
23290 (make_pass_cleanup_barriers): ...new function.
23291 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
23292 of rtl_opt_pass along with...
23293 (pass_data_loop2): ...new pass_data instance and...
23294 (make_pass_loop2): ...new function.
23295 (pass_rtl_loop_init): Convert from a global struct to a subclass of
23296 rtl_opt_pass along with...
23297 (pass_data_rtl_loop_init): ...new pass_data instance and...
23298 (make_pass_rtl_loop_init): ...new function.
23299 (pass_rtl_loop_done): Convert from a global struct to a subclass of
23300 rtl_opt_pass along with...
23301 (pass_data_rtl_loop_done): ...new pass_data instance and...
23302 (make_pass_rtl_loop_done): ...new function.
23303 (pass_rtl_move_loop_invariants): Convert from a global struct to a
23304 subclass of rtl_opt_pass along with...
23305 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
23306 (make_pass_rtl_move_loop_invariants): ...new function.
23307 (pass_rtl_unswitch): Convert from a global struct to a subclass of
23308 rtl_opt_pass along with...
23309 (pass_data_rtl_unswitch): ...new pass_data instance and...
23310 (make_pass_rtl_unswitch): ...new function.
23311 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
23312 subclass of rtl_opt_pass along with...
23313 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
23315 (make_pass_rtl_unroll_and_peel_loops): ...new function.
23316 (pass_rtl_doloop): Convert from a global struct to a subclass of
23317 rtl_opt_pass along with...
23318 (pass_data_rtl_doloop): ...new pass_data instance and...
23319 (make_pass_rtl_doloop): ...new function.
23320 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
23321 a subclass of rtl_opt_pass along with...
23322 (pass_data_lower_subreg): ...new pass_data instance and...
23323 (make_pass_lower_subreg): ...new function.
23324 (pass_lower_subreg2): Convert from a global struct to a subclass of
23325 rtl_opt_pass along with...
23326 (pass_data_lower_subreg2): ...new pass_data instance and...
23327 (make_pass_lower_subreg2): ...new function.
23328 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
23329 struct to a subclass of ipa_opt_pass_d along with...
23330 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
23331 (make_pass_ipa_lto_gimple_out): ...new function.
23332 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
23333 of ipa_opt_pass_d along with...
23334 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
23335 (make_pass_ipa_lto_finish_out): ...new function.
23336 * mode-switching.c (pass_mode_switching): Convert from a global struct
23337 to a subclass of rtl_opt_pass along with...
23338 (pass_data_mode_switching): ...new pass_data instance and...
23339 (make_pass_mode_switching): ...new function.
23340 * modulo-sched.c (pass_sms): Convert from a global struct to a
23341 subclass of rtl_opt_pass along with...
23342 (pass_data_sms): ...new pass_data instance and...
23343 (make_pass_sms): ...new function.
23344 * omp-low.c (pass_expand_omp): Convert from a global struct to a
23345 subclass of gimple_opt_pass along with...
23346 (pass_data_expand_omp): ...new pass_data instance and...
23347 (make_pass_expand_omp): ...new function.
23348 (pass_lower_omp): Convert from a global struct to a subclass of
23349 gimple_opt_pass along with...
23350 (pass_data_lower_omp): ...new pass_data instance and...
23351 (make_pass_lower_omp): ...new function.
23352 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
23353 of gimple_opt_pass along with...
23354 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
23355 (make_pass_diagnose_omp_blocks): ...new function.
23356 * passes.c (pass_early_local_passes): Convert from a global struct to
23357 a subclass of simple_ipa_opt_pass along with...
23358 (pass_data_early_local_passes): ...new pass_data instance and...
23359 (make_pass_early_local_passes): ...new function.
23360 (pass_all_early_optimizations): Convert from a global struct to a
23361 subclass of gimple_opt_pass along with...
23362 (pass_data_all_early_optimizations): ...new pass_data instance and...
23363 (make_pass_all_early_optimizations): ...new function.
23364 (pass_all_optimizations): Convert from a global struct to a subclass
23365 of gimple_opt_pass along with...
23366 (pass_data_all_optimizations): ...new pass_data instance and...
23367 (make_pass_all_optimizations): ...new function.
23368 (pass_all_optimizations_g): Convert from a global struct to a subclass
23369 of gimple_opt_pass along with...
23370 (pass_data_all_optimizations_g): ...new pass_data instance and...
23371 (make_pass_all_optimizations_g): ...new function.
23372 (pass_rest_of_compilation): Convert from a global struct to a subclass
23373 of rtl_opt_pass along with...
23374 (pass_data_rest_of_compilation): ...new pass_data instance and...
23375 (make_pass_rest_of_compilation): ...new function.
23376 (pass_postreload): Convert from a global struct to a subclass of
23377 rtl_opt_pass along with...
23378 (pass_data_postreload): ...new pass_data instance and...
23379 (make_pass_postreload): ...new function.
23380 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
23381 subclass of rtl_opt_pass along with...
23382 (pass_data_gcse2): ...new pass_data instance and...
23383 (make_pass_gcse2): ...new function.
23384 * postreload.c (pass_postreload_cse): Convert from a global struct to
23385 a subclass of rtl_opt_pass along with...
23386 (pass_data_postreload_cse): ...new pass_data instance and...
23387 (make_pass_postreload_cse): ...new function.
23388 * predict.c (pass_profile): Convert from a global struct to a subclass
23389 of gimple_opt_pass along with...
23390 (pass_data_profile): ...new pass_data instance and...
23391 (make_pass_profile): ...new function.
23392 (pass_strip_predict_hints): Convert from a global struct to a subclass
23393 of gimple_opt_pass along with...
23394 (pass_data_strip_predict_hints): ...new pass_data instance and...
23395 (make_pass_strip_predict_hints): ...new function.
23396 * recog.c (pass_peephole2): Convert from a global struct to a subclass
23397 of rtl_opt_pass along with...
23398 (pass_data_peephole2): ...new pass_data instance and...
23399 (make_pass_peephole2): ...new function.
23400 (pass_split_all_insns): Convert from a global struct to a subclass of
23401 rtl_opt_pass along with...
23402 (pass_data_split_all_insns): ...new pass_data instance and...
23403 (make_pass_split_all_insns): ...new function.
23404 (pass_split_after_reload): Convert from a global struct to a subclass
23405 of rtl_opt_pass along with...
23406 (pass_data_split_after_reload): ...new pass_data instance and...
23407 (make_pass_split_after_reload): ...new function.
23408 (pass_split_before_regstack): Convert from a global struct to a
23409 subclass of rtl_opt_pass along with...
23410 (pass_data_split_before_regstack): ...new pass_data instance and...
23411 (make_pass_split_before_regstack): ...new function.
23412 (pass_split_before_sched2): Convert from a global struct to a subclass
23413 of rtl_opt_pass along with...
23414 (pass_data_split_before_sched2): ...new pass_data instance and...
23415 (make_pass_split_before_sched2): ...new function.
23416 (pass_split_for_shorten_branches): Convert from a global struct to a
23417 subclass of rtl_opt_pass along with...
23418 (pass_data_split_for_shorten_branches): ...new pass_data instance
23420 (make_pass_split_for_shorten_branches): ...new function.
23421 * ree.c (pass_ree): Convert from a global struct to a subclass of
23422 rtl_opt_pass along with...
23423 (pass_data_ree): ...new pass_data instance and...
23424 (make_pass_ree): ...new function.
23425 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
23426 subclass of rtl_opt_pass along with...
23427 (pass_data_stack_regs): ...new pass_data instance and...
23428 (make_pass_stack_regs): ...new function.
23429 (pass_stack_regs_run): Convert from a global struct to a subclass of
23430 rtl_opt_pass along with...
23431 (pass_data_stack_regs_run): ...new pass_data instance and...
23432 (make_pass_stack_regs_run): ...new function.
23433 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
23434 subclass of rtl_opt_pass along with...
23435 (pass_data_cprop_hardreg): ...new pass_data instance and...
23436 (make_pass_cprop_hardreg): ...new function.
23437 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
23438 subclass of rtl_opt_pass along with...
23439 (pass_data_reginfo_init): ...new pass_data instance and...
23440 (make_pass_reginfo_init): ...new function.
23441 * regmove.c (pass_regmove): Convert from a global struct to a subclass
23442 of rtl_opt_pass along with...
23443 (pass_data_regmove): ...new pass_data instance and...
23444 (make_pass_regmove): ...new function.
23445 * regrename.c (pass_regrename): Convert from a global struct to a
23446 subclass of rtl_opt_pass along with...
23447 (pass_data_regrename): ...new pass_data instance and...
23448 (make_pass_regrename): ...new function.
23449 * reorg.c (pass_delay_slots): Convert from a global struct to a
23450 subclass of rtl_opt_pass along with...
23451 (pass_data_delay_slots): ...new pass_data instance and...
23452 (make_pass_delay_slots): ...new function.
23453 (pass_machine_reorg): Convert from a global struct to a subclass of
23454 rtl_opt_pass along with...
23455 (pass_data_machine_reorg): ...new pass_data instance and...
23456 (make_pass_machine_reorg): ...new function.
23457 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
23458 of rtl_opt_pass along with...
23459 (pass_data_sched): ...new pass_data instance and...
23460 (make_pass_sched): ...new function.
23461 (pass_sched2): Convert from a global struct to a subclass of
23462 rtl_opt_pass along with...
23463 (pass_data_sched2): ...new pass_data instance and...
23464 (make_pass_sched2): ...new function.
23465 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
23466 to a subclass of rtl_opt_pass along with...
23467 (pass_data_stack_ptr_mod): ...new pass_data instance and...
23468 (make_pass_stack_ptr_mod): ...new function.
23469 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
23470 to a subclass of rtl_opt_pass along with...
23471 (pass_data_rtl_store_motion): ...new pass_data instance and...
23472 (make_pass_rtl_store_motion): ...new function.
23473 * tracer.c (pass_tracer): Convert from a global struct to a subclass
23474 of gimple_opt_pass along with...
23475 (pass_data_tracer): ...new pass_data instance and...
23476 (make_pass_tracer): ...new function.
23477 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
23478 to a subclass of gimple_opt_pass along with...
23479 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
23480 (make_pass_diagnose_tm_blocks): ...new function.
23481 (pass_lower_tm): Convert from a global struct to a subclass of
23482 gimple_opt_pass along with...
23483 (pass_data_lower_tm): ...new pass_data instance and...
23484 (make_pass_lower_tm): ...new function.
23485 (pass_tm_init): Convert from a global struct to a subclass of
23486 gimple_opt_pass along with...
23487 (pass_data_tm_init): ...new pass_data instance and...
23488 (make_pass_tm_init): ...new function.
23489 (pass_tm_mark): Convert from a global struct to a subclass of
23490 gimple_opt_pass along with...
23491 (pass_data_tm_mark): ...new pass_data instance and...
23492 (make_pass_tm_mark): ...new function.
23493 (pass_tm_edges): Convert from a global struct to a subclass of
23494 gimple_opt_pass along with...
23495 (pass_data_tm_edges): ...new pass_data instance and...
23496 (make_pass_tm_edges): ...new function.
23497 (pass_tm_memopt): Convert from a global struct to a subclass of
23498 gimple_opt_pass along with...
23499 (pass_data_tm_memopt): ...new pass_data instance and...
23500 (make_pass_tm_memopt): ...new function.
23501 (pass_ipa_tm): Convert from a global struct to a subclass of
23502 simple_ipa_opt_pass along with...
23503 (pass_data_ipa_tm): ...new pass_data instance and...
23504 (make_pass_ipa_tm): ...new function.
23505 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
23506 subclass of gimple_opt_pass along with...
23507 (pass_data_call_cdce): ...new pass_data instance and...
23508 (make_pass_call_cdce): ...new function.
23509 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
23510 subclass of gimple_opt_pass along with...
23511 (pass_data_build_cfg): ...new pass_data instance and...
23512 (make_pass_build_cfg): ...new function.
23513 (pass_split_crit_edges): Convert from a global struct to a subclass of
23514 gimple_opt_pass along with...
23515 (pass_data_split_crit_edges): ...new pass_data instance and...
23516 (make_pass_split_crit_edges): ...new function.
23517 (pass_warn_function_return): Convert from a global struct to a
23518 subclass of gimple_opt_pass along with...
23519 (pass_data_warn_function_return): ...new pass_data instance and...
23520 (make_pass_warn_function_return): ...new function.
23521 (pass_warn_function_noreturn): Convert from a global struct to a
23522 subclass of gimple_opt_pass along with...
23523 (pass_data_warn_function_noreturn): ...new pass_data instance and...
23524 (make_pass_warn_function_noreturn): ...new function.
23525 (pass_warn_unused_result): Convert from a global struct to a subclass
23526 of gimple_opt_pass along with...
23527 (pass_data_warn_unused_result): ...new pass_data instance and...
23528 (make_pass_warn_unused_result): ...new function.
23529 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
23530 a subclass of gimple_opt_pass along with...
23531 (pass_data_merge_phi): ...new pass_data instance and...
23532 (make_pass_merge_phi): ...new function.
23533 * tree-complex.c (pass_lower_complex): Convert from a global struct to
23534 a subclass of gimple_opt_pass along with...
23535 (pass_data_lower_complex): ...new pass_data instance and...
23536 (make_pass_lower_complex): ...new function.
23537 (pass_lower_complex_O0): Convert from a global struct to a subclass of
23538 gimple_opt_pass along with...
23539 (pass_data_lower_complex_O0): ...new pass_data instance and...
23540 (make_pass_lower_complex_O0): ...new function.
23541 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
23542 subclass of gimple_opt_pass along with...
23543 (pass_data_lower_eh): ...new pass_data instance and...
23544 (make_pass_lower_eh): ...new function.
23545 (pass_refactor_eh): Convert from a global struct to a subclass of
23546 gimple_opt_pass along with...
23547 (pass_data_refactor_eh): ...new pass_data instance and...
23548 (make_pass_refactor_eh): ...new function.
23549 (pass_lower_resx): Convert from a global struct to a subclass of
23550 gimple_opt_pass along with...
23551 (pass_data_lower_resx): ...new pass_data instance and...
23552 (make_pass_lower_resx): ...new function.
23553 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
23554 of gimple_opt_pass along with...
23555 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
23556 (make_pass_lower_eh_dispatch): ...new function.
23557 (pass_cleanup_eh): Convert from a global struct to a subclass of
23558 gimple_opt_pass along with...
23559 (pass_data_cleanup_eh): ...new pass_data instance and...
23560 (make_pass_cleanup_eh): ...new function.
23561 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
23562 to a subclass of simple_ipa_opt_pass along with...
23563 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
23564 (make_pass_ipa_lower_emutls): ...new function.
23565 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
23566 a subclass of gimple_opt_pass along with...
23567 (pass_data_if_conversion): ...new pass_data instance and...
23568 (make_pass_if_conversion): ...new function.
23569 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
23570 subclass of gimple_opt_pass along with...
23571 (pass_data_build_ssa): ...new pass_data instance and...
23572 (make_pass_build_ssa): ...new function.
23573 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
23574 global struct to a subclass of gimple_opt_pass along with...
23575 (pass_data_loop_distribution): ...new pass_data instance and...
23576 (make_pass_loop_distribution): ...new function.
23577 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
23578 subclass of gimple_opt_pass along with...
23579 (pass_data_mudflap_1): ...new pass_data instance and...
23580 (make_pass_mudflap_1): ...new function.
23581 (pass_mudflap_2): Convert from a global struct to a subclass of
23582 gimple_opt_pass along with...
23583 (pass_data_mudflap_2): ...new pass_data instance and...
23584 (make_pass_mudflap_2): ...new function.
23585 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
23586 subclass of gimple_opt_pass along with...
23587 (pass_data_mudflap_1): ...new pass_data instance and...
23588 (make_pass_mudflap_1): ...new function.
23589 (pass_mudflap_2): Convert from a global struct to a subclass of
23590 gimple_opt_pass along with...
23591 (pass_data_mudflap_2): ...new pass_data instance and...
23592 (make_pass_mudflap_2): ...new function.
23593 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
23594 gimple_opt_pass along with...
23595 (pass_data_nrv): ...new pass_data instance and...
23596 (make_pass_nrv): ...new function.
23597 (pass_return_slot): Convert from a global struct to a subclass of
23598 gimple_opt_pass along with...
23599 (pass_data_return_slot): ...new pass_data instance and...
23600 (make_pass_return_slot): ...new function.
23601 * tree-object-size.c (pass_object_sizes): Convert from a global struct
23602 to a subclass of gimple_opt_pass along with...
23603 (pass_data_object_sizes): ...new pass_data instance and...
23604 (make_pass_object_sizes): ...new function.
23605 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
23606 global struct to a subclass of gimple_opt_pass along with...
23607 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
23609 (make_pass_cleanup_cfg_post_optimizing): ...new function.
23610 (pass_fixup_cfg): Convert from a global struct to a subclass of
23611 gimple_opt_pass along with...
23612 (pass_data_fixup_cfg): ...new pass_data instance and...
23613 (make_pass_fixup_cfg): ...new function.
23614 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
23615 (make_pass_mudflap_1): ...new function.
23616 (pass_mudflap_2): Replace declaration with that of...
23617 (make_pass_mudflap_2): ...new function.
23618 (pass_asan): Replace declaration with that of...
23619 (make_pass_asan): ...new function.
23620 (pass_asan_O0): Replace declaration with that of...
23621 (make_pass_asan_O0): ...new function.
23622 (pass_tsan): Replace declaration with that of...
23623 (make_pass_tsan): ...new function.
23624 (pass_tsan_O0): Replace declaration with that of...
23625 (make_pass_tsan_O0): ...new function.
23626 (pass_lower_cf): Replace declaration with that of...
23627 (make_pass_lower_cf): ...new function.
23628 (pass_refactor_eh): Replace declaration with that of...
23629 (make_pass_refactor_eh): ...new function.
23630 (pass_lower_eh): Replace declaration with that of...
23631 (make_pass_lower_eh): ...new function.
23632 (pass_lower_eh_dispatch): Replace declaration with that of...
23633 (make_pass_lower_eh_dispatch): ...new function.
23634 (pass_lower_resx): Replace declaration with that of...
23635 (make_pass_lower_resx): ...new function.
23636 (pass_build_cfg): Replace declaration with that of...
23637 (make_pass_build_cfg): ...new function.
23638 (pass_early_tree_profile): Replace declaration with that of...
23639 (make_pass_early_tree_profile): ...new function.
23640 (pass_cleanup_eh): Replace declaration with that of...
23641 (make_pass_cleanup_eh): ...new function.
23642 (pass_sra): Replace declaration with that of...
23643 (make_pass_sra): ...new function.
23644 (pass_sra_early): Replace declaration with that of...
23645 (make_pass_sra_early): ...new function.
23646 (pass_early_ipa_sra): Replace declaration with that of...
23647 (make_pass_early_ipa_sra): ...new function.
23648 (pass_tail_recursion): Replace declaration with that of...
23649 (make_pass_tail_recursion): ...new function.
23650 (pass_tail_calls): Replace declaration with that of...
23651 (make_pass_tail_calls): ...new function.
23652 (pass_tree_loop): Replace declaration with that of...
23653 (make_pass_tree_loop): ...new function.
23654 (pass_tree_loop_init): Replace declaration with that of...
23655 (make_pass_tree_loop_init): ...new function.
23656 (pass_lim): Replace declaration with that of...
23657 (make_pass_lim): ...new function.
23658 (pass_tree_unswitch): Replace declaration with that of...
23659 (make_pass_tree_unswitch): ...new function.
23660 (pass_predcom): Replace declaration with that of...
23661 (make_pass_predcom): ...new function.
23662 (pass_iv_canon): Replace declaration with that of...
23663 (make_pass_iv_canon): ...new function.
23664 (pass_scev_cprop): Replace declaration with that of...
23665 (make_pass_scev_cprop): ...new function.
23666 (pass_empty_loop): Replace declaration with that of...
23667 (make_pass_empty_loop): ...new function.
23668 (pass_record_bounds): Replace declaration with that of...
23669 (make_pass_record_bounds): ...new function.
23670 (pass_graphite): Replace declaration with that of...
23671 (make_pass_graphite): ...new function.
23672 (pass_graphite_transforms): Replace declaration with that of...
23673 (make_pass_graphite_transforms): ...new function.
23674 (pass_if_conversion): Replace declaration with that of...
23675 (make_pass_if_conversion): ...new function.
23676 (pass_loop_distribution): Replace declaration with that of...
23677 (make_pass_loop_distribution): ...new function.
23678 (pass_vectorize): Replace declaration with that of...
23679 (make_pass_vectorize): ...new function.
23680 (pass_slp_vectorize): Replace declaration with that of...
23681 (make_pass_slp_vectorize): ...new function.
23682 (pass_complete_unroll): Replace declaration with that of...
23683 (make_pass_complete_unroll): ...new function.
23684 (pass_complete_unrolli): Replace declaration with that of...
23685 (make_pass_complete_unrolli): ...new function.
23686 (pass_parallelize_loops): Replace declaration with that of...
23687 (make_pass_parallelize_loops): ...new function.
23688 (pass_loop_prefetch): Replace declaration with that of...
23689 (make_pass_loop_prefetch): ...new function.
23690 (pass_iv_optimize): Replace declaration with that of...
23691 (make_pass_iv_optimize): ...new function.
23692 (pass_tree_loop_done): Replace declaration with that of...
23693 (make_pass_tree_loop_done): ...new function.
23694 (pass_ch): Replace declaration with that of...
23695 (make_pass_ch): ...new function.
23696 (pass_ccp): Replace declaration with that of...
23697 (make_pass_ccp): ...new function.
23698 (pass_phi_only_cprop): Replace declaration with that of...
23699 (make_pass_phi_only_cprop): ...new function.
23700 (pass_build_ssa): Replace declaration with that of...
23701 (make_pass_build_ssa): ...new function.
23702 (pass_build_alias): Replace declaration with that of...
23703 (make_pass_build_alias): ...new function.
23704 (pass_build_ealias): Replace declaration with that of...
23705 (make_pass_build_ealias): ...new function.
23706 (pass_dominator): Replace declaration with that of...
23707 (make_pass_dominator): ...new function.
23708 (pass_dce): Replace declaration with that of...
23709 (make_pass_dce): ...new function.
23710 (pass_dce_loop): Replace declaration with that of...
23711 (make_pass_dce_loop): ...new function.
23712 (pass_cd_dce): Replace declaration with that of...
23713 (make_pass_cd_dce): ...new function.
23714 (pass_call_cdce): Replace declaration with that of...
23715 (make_pass_call_cdce): ...new function.
23716 (pass_merge_phi): Replace declaration with that of...
23717 (make_pass_merge_phi): ...new function.
23718 (pass_split_crit_edges): Replace declaration with that of...
23719 (make_pass_split_crit_edges): ...new function.
23720 (pass_pre): Replace declaration with that of...
23721 (make_pass_pre): ...new function.
23722 (pass_profile): Replace declaration with that of...
23723 (make_pass_profile): ...new function.
23724 (pass_strip_predict_hints): Replace declaration with that of...
23725 (make_pass_strip_predict_hints): ...new function.
23726 (pass_lower_complex_O0): Replace declaration with that of...
23727 (make_pass_lower_complex_O0): ...new function.
23728 (pass_lower_complex): Replace declaration with that of...
23729 (make_pass_lower_complex): ...new function.
23730 (pass_lower_vector): Replace declaration with that of...
23731 (make_pass_lower_vector): ...new function.
23732 (pass_lower_vector_ssa): Replace declaration with that of...
23733 (make_pass_lower_vector_ssa): ...new function.
23734 (pass_lower_omp): Replace declaration with that of...
23735 (make_pass_lower_omp): ...new function.
23736 (pass_diagnose_omp_blocks): Replace declaration with that of...
23737 (make_pass_diagnose_omp_blocks): ...new function.
23738 (pass_expand_omp): Replace declaration with that of...
23739 (make_pass_expand_omp): ...new function.
23740 (pass_expand_omp_ssa): Replace declaration with that of...
23741 (make_pass_expand_omp_ssa): ...new function.
23742 (pass_object_sizes): Replace declaration with that of...
23743 (make_pass_object_sizes): ...new function.
23744 (pass_strlen): Replace declaration with that of...
23745 (make_pass_strlen): ...new function.
23746 (pass_fold_builtins): Replace declaration with that of...
23747 (make_pass_fold_builtins): ...new function.
23748 (pass_stdarg): Replace declaration with that of...
23749 (make_pass_stdarg): ...new function.
23750 (pass_early_warn_uninitialized): Replace declaration with that of...
23751 (make_pass_early_warn_uninitialized): ...new function.
23752 (pass_late_warn_uninitialized): Replace declaration with that of...
23753 (make_pass_late_warn_uninitialized): ...new function.
23754 (pass_cse_reciprocals): Replace declaration with that of...
23755 (make_pass_cse_reciprocals): ...new function.
23756 (pass_cse_sincos): Replace declaration with that of...
23757 (make_pass_cse_sincos): ...new function.
23758 (pass_optimize_bswap): Replace declaration with that of...
23759 (make_pass_optimize_bswap): ...new function.
23760 (pass_optimize_widening_mul): Replace declaration with that of...
23761 (make_pass_optimize_widening_mul): ...new function.
23762 (pass_warn_function_return): Replace declaration with that of...
23763 (make_pass_warn_function_return): ...new function.
23764 (pass_warn_function_noreturn): Replace declaration with that of...
23765 (make_pass_warn_function_noreturn): ...new function.
23766 (pass_cselim): Replace declaration with that of...
23767 (make_pass_cselim): ...new function.
23768 (pass_phiopt): Replace declaration with that of...
23769 (make_pass_phiopt): ...new function.
23770 (pass_forwprop): Replace declaration with that of...
23771 (make_pass_forwprop): ...new function.
23772 (pass_phiprop): Replace declaration with that of...
23773 (make_pass_phiprop): ...new function.
23774 (pass_tree_ifcombine): Replace declaration with that of...
23775 (make_pass_tree_ifcombine): ...new function.
23776 (pass_dse): Replace declaration with that of...
23777 (make_pass_dse): ...new function.
23778 (pass_nrv): Replace declaration with that of...
23779 (make_pass_nrv): ...new function.
23780 (pass_rename_ssa_copies): Replace declaration with that of...
23781 (make_pass_rename_ssa_copies): ...new function.
23782 (pass_sink_code): Replace declaration with that of...
23783 (make_pass_sink_code): ...new function.
23784 (pass_fre): Replace declaration with that of...
23785 (make_pass_fre): ...new function.
23786 (pass_check_data_deps): Replace declaration with that of...
23787 (make_pass_check_data_deps): ...new function.
23788 (pass_copy_prop): Replace declaration with that of...
23789 (make_pass_copy_prop): ...new function.
23790 (pass_vrp): Replace declaration with that of...
23791 (make_pass_vrp): ...new function.
23792 (pass_uncprop): Replace declaration with that of...
23793 (make_pass_uncprop): ...new function.
23794 (pass_return_slot): Replace declaration with that of...
23795 (make_pass_return_slot): ...new function.
23796 (pass_reassoc): Replace declaration with that of...
23797 (make_pass_reassoc): ...new function.
23798 (pass_rebuild_cgraph_edges): Replace declaration with that of...
23799 (make_pass_rebuild_cgraph_edges): ...new function.
23800 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
23801 (make_pass_remove_cgraph_callee_edges): ...new function.
23802 (pass_build_cgraph_edges): Replace declaration with that of...
23803 (make_pass_build_cgraph_edges): ...new function.
23804 (pass_local_pure_const): Replace declaration with that of...
23805 (make_pass_local_pure_const): ...new function.
23806 (pass_tracer): Replace declaration with that of...
23807 (make_pass_tracer): ...new function.
23808 (pass_warn_unused_result): Replace declaration with that of...
23809 (make_pass_warn_unused_result): ...new function.
23810 (pass_diagnose_tm_blocks): Replace declaration with that of...
23811 (make_pass_diagnose_tm_blocks): ...new function.
23812 (pass_lower_tm): Replace declaration with that of...
23813 (make_pass_lower_tm): ...new function.
23814 (pass_tm_init): Replace declaration with that of...
23815 (make_pass_tm_init): ...new function.
23816 (pass_tm_mark): Replace declaration with that of...
23817 (make_pass_tm_mark): ...new function.
23818 (pass_tm_memopt): Replace declaration with that of...
23819 (make_pass_tm_memopt): ...new function.
23820 (pass_tm_edges): Replace declaration with that of...
23821 (make_pass_tm_edges): ...new function.
23822 (pass_split_functions): Replace declaration with that of...
23823 (make_pass_split_functions): ...new function.
23824 (pass_feedback_split_functions): Replace declaration with that of...
23825 (make_pass_feedback_split_functions): ...new function.
23826 (pass_strength_reduction): Replace declaration with that of...
23827 (make_pass_strength_reduction): ...new function.
23828 (pass_ipa_lower_emutls): Replace declaration with that of...
23829 (make_pass_ipa_lower_emutls): ...new function.
23830 (pass_ipa_function_and_variable_visibility): Replace declaration with
23832 (make_pass_ipa_function_and_variable_visibility): ...new function.
23833 (pass_ipa_tree_profile): Replace declaration with that of...
23834 (make_pass_ipa_tree_profile): ...new function.
23835 (pass_early_local_passes): Replace declaration with that of...
23836 (make_pass_early_local_passes): ...new function.
23837 (pass_ipa_whole_program_visibility): Replace declaration with that
23839 (make_pass_ipa_whole_program_visibility): ...new function.
23840 (pass_ipa_lto_gimple_out): Replace declaration with that of...
23841 (make_pass_ipa_lto_gimple_out): ...new function.
23842 (pass_ipa_increase_alignment): Replace declaration with that of...
23843 (make_pass_ipa_increase_alignment): ...new function.
23844 (pass_ipa_inline): Replace declaration with that of...
23845 (make_pass_ipa_inline): ...new function.
23846 (pass_ipa_free_lang_data): Replace declaration with that of...
23847 (make_pass_ipa_free_lang_data): ...new function.
23848 (pass_ipa_free_inline_summary): Replace declaration with that of...
23849 (make_pass_ipa_free_inline_summary): ...new function.
23850 (pass_ipa_cp): Replace declaration with that of...
23851 (make_pass_ipa_cp): ...new function.
23852 (pass_ipa_reference): Replace declaration with that of...
23853 (make_pass_ipa_reference): ...new function.
23854 (pass_ipa_pure_const): Replace declaration with that of...
23855 (make_pass_ipa_pure_const): ...new function.
23856 (pass_ipa_pta): Replace declaration with that of...
23857 (make_pass_ipa_pta): ...new function.
23858 (pass_ipa_lto_finish_out): Replace declaration with that of...
23859 (make_pass_ipa_lto_finish_out): ...new function.
23860 (pass_ipa_tm): Replace declaration with that of...
23861 (make_pass_ipa_tm): ...new function.
23862 (pass_ipa_profile): Replace declaration with that of...
23863 (make_pass_ipa_profile): ...new function.
23864 (pass_ipa_cdtor_merge): Replace declaration with that of...
23865 (make_pass_ipa_cdtor_merge): ...new function.
23866 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
23868 (make_pass_cleanup_cfg_post_optimizing): ...new function.
23869 (pass_init_datastructures): Replace declaration with that of...
23870 (make_pass_init_datastructures): ...new function.
23871 (pass_fixup_cfg): Replace declaration with that of...
23872 (make_pass_fixup_cfg): ...new function.
23873 (pass_expand): Replace declaration with that of...
23874 (make_pass_expand): ...new function.
23875 (pass_instantiate_virtual_regs): Replace declaration with that of...
23876 (make_pass_instantiate_virtual_regs): ...new function.
23877 (pass_rtl_fwprop): Replace declaration with that of...
23878 (make_pass_rtl_fwprop): ...new function.
23879 (pass_rtl_fwprop_addr): Replace declaration with that of...
23880 (make_pass_rtl_fwprop_addr): ...new function.
23881 (pass_jump): Replace declaration with that of...
23882 (make_pass_jump): ...new function.
23883 (pass_jump2): Replace declaration with that of...
23884 (make_pass_jump2): ...new function.
23885 (pass_lower_subreg): Replace declaration with that of...
23886 (make_pass_lower_subreg): ...new function.
23887 (pass_cse): Replace declaration with that of...
23888 (make_pass_cse): ...new function.
23889 (pass_fast_rtl_dce): Replace declaration with that of...
23890 (make_pass_fast_rtl_dce): ...new function.
23891 (pass_ud_rtl_dce): Replace declaration with that of...
23892 (make_pass_ud_rtl_dce): ...new function.
23893 (pass_rtl_dce): Replace declaration with that of...
23894 (make_pass_rtl_dce): ...new function.
23895 (pass_rtl_dse1): Replace declaration with that of...
23896 (make_pass_rtl_dse1): ...new function.
23897 (pass_rtl_dse2): Replace declaration with that of...
23898 (make_pass_rtl_dse2): ...new function.
23899 (pass_rtl_dse3): Replace declaration with that of...
23900 (make_pass_rtl_dse3): ...new function.
23901 (pass_rtl_cprop): Replace declaration with that of...
23902 (make_pass_rtl_cprop): ...new function.
23903 (pass_rtl_pre): Replace declaration with that of...
23904 (make_pass_rtl_pre): ...new function.
23905 (pass_rtl_hoist): Replace declaration with that of...
23906 (make_pass_rtl_hoist): ...new function.
23907 (pass_rtl_store_motion): Replace declaration with that of...
23908 (make_pass_rtl_store_motion): ...new function.
23909 (pass_cse_after_global_opts): Replace declaration with that of...
23910 (make_pass_cse_after_global_opts): ...new function.
23911 (pass_rtl_ifcvt): Replace declaration with that of...
23912 (make_pass_rtl_ifcvt): ...new function.
23913 (pass_into_cfg_layout_mode): Replace declaration with that of...
23914 (make_pass_into_cfg_layout_mode): ...new function.
23915 (pass_outof_cfg_layout_mode): Replace declaration with that of...
23916 (make_pass_outof_cfg_layout_mode): ...new function.
23917 (pass_loop2): Replace declaration with that of...
23918 (make_pass_loop2): ...new function.
23919 (pass_rtl_loop_init): Replace declaration with that of...
23920 (make_pass_rtl_loop_init): ...new function.
23921 (pass_rtl_move_loop_invariants): Replace declaration with that of...
23922 (make_pass_rtl_move_loop_invariants): ...new function.
23923 (pass_rtl_unswitch): Replace declaration with that of...
23924 (make_pass_rtl_unswitch): ...new function.
23925 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
23926 (make_pass_rtl_unroll_and_peel_loops): ...new function.
23927 (pass_rtl_doloop): Replace declaration with that of...
23928 (make_pass_rtl_doloop): ...new function.
23929 (pass_rtl_loop_done): Replace declaration with that of...
23930 (make_pass_rtl_loop_done): ...new function.
23931 (pass_web): Replace declaration with that of...
23932 (make_pass_web): ...new function.
23933 (pass_cse2): Replace declaration with that of...
23934 (make_pass_cse2): ...new function.
23935 (pass_df_initialize_opt): Replace declaration with that of...
23936 (make_pass_df_initialize_opt): ...new function.
23937 (pass_df_initialize_no_opt): Replace declaration with that of...
23938 (make_pass_df_initialize_no_opt): ...new function.
23939 (pass_reginfo_init): Replace declaration with that of...
23940 (make_pass_reginfo_init): ...new function.
23941 (pass_inc_dec): Replace declaration with that of...
23942 (make_pass_inc_dec): ...new function.
23943 (pass_stack_ptr_mod): Replace declaration with that of...
23944 (make_pass_stack_ptr_mod): ...new function.
23945 (pass_initialize_regs): Replace declaration with that of...
23946 (make_pass_initialize_regs): ...new function.
23947 (pass_combine): Replace declaration with that of...
23948 (make_pass_combine): ...new function.
23949 (pass_if_after_combine): Replace declaration with that of...
23950 (make_pass_if_after_combine): ...new function.
23951 (pass_ree): Replace declaration with that of...
23952 (make_pass_ree): ...new function.
23953 (pass_partition_blocks): Replace declaration with that of...
23954 (make_pass_partition_blocks): ...new function.
23955 (pass_match_asm_constraints): Replace declaration with that of...
23956 (make_pass_match_asm_constraints): ...new function.
23957 (pass_regmove): Replace declaration with that of...
23958 (make_pass_regmove): ...new function.
23959 (pass_split_all_insns): Replace declaration with that of...
23960 (make_pass_split_all_insns): ...new function.
23961 (pass_fast_rtl_byte_dce): Replace declaration with that of...
23962 (make_pass_fast_rtl_byte_dce): ...new function.
23963 (pass_lower_subreg2): Replace declaration with that of...
23964 (make_pass_lower_subreg2): ...new function.
23965 (pass_mode_switching): Replace declaration with that of...
23966 (make_pass_mode_switching): ...new function.
23967 (pass_sms): Replace declaration with that of...
23968 (make_pass_sms): ...new function.
23969 (pass_sched): Replace declaration with that of...
23970 (make_pass_sched): ...new function.
23971 (pass_ira): Replace declaration with that of...
23972 (make_pass_ira): ...new function.
23973 (pass_reload): Replace declaration with that of...
23974 (make_pass_reload): ...new function.
23975 (pass_clean_state): Replace declaration with that of...
23976 (make_pass_clean_state): ...new function.
23977 (pass_branch_prob): Replace declaration with that of...
23978 (make_pass_branch_prob): ...new function.
23979 (pass_value_profile_transformations): Replace declaration with that
23981 (make_pass_value_profile_transformations): ...new function.
23982 (pass_postreload_cse): Replace declaration with that of...
23983 (make_pass_postreload_cse): ...new function.
23984 (pass_gcse2): Replace declaration with that of...
23985 (make_pass_gcse2): ...new function.
23986 (pass_split_after_reload): Replace declaration with that of...
23987 (make_pass_split_after_reload): ...new function.
23988 (pass_branch_target_load_optimize1): Replace declaration with that
23990 (make_pass_branch_target_load_optimize1): ...new function.
23991 (pass_thread_prologue_and_epilogue): Replace declaration with that
23993 (make_pass_thread_prologue_and_epilogue): ...new function.
23994 (pass_stack_adjustments): Replace declaration with that of...
23995 (make_pass_stack_adjustments): ...new function.
23996 (pass_peephole2): Replace declaration with that of...
23997 (make_pass_peephole2): ...new function.
23998 (pass_if_after_reload): Replace declaration with that of...
23999 (make_pass_if_after_reload): ...new function.
24000 (pass_regrename): Replace declaration with that of...
24001 (make_pass_regrename): ...new function.
24002 (pass_cprop_hardreg): Replace declaration with that of...
24003 (make_pass_cprop_hardreg): ...new function.
24004 (pass_reorder_blocks): Replace declaration with that of...
24005 (make_pass_reorder_blocks): ...new function.
24006 (pass_branch_target_load_optimize2): Replace declaration with that
24008 (make_pass_branch_target_load_optimize2): ...new function.
24009 (pass_leaf_regs): Replace declaration with that of...
24010 (make_pass_leaf_regs): ...new function.
24011 (pass_split_before_sched2): Replace declaration with that of...
24012 (make_pass_split_before_sched2): ...new function.
24013 (pass_compare_elim_after_reload): Replace declaration with that of...
24014 (make_pass_compare_elim_after_reload): ...new function.
24015 (pass_sched2): Replace declaration with that of...
24016 (make_pass_sched2): ...new function.
24017 (pass_stack_regs): Replace declaration with that of...
24018 (make_pass_stack_regs): ...new function.
24019 (pass_stack_regs_run): Replace declaration with that of...
24020 (make_pass_stack_regs_run): ...new function.
24021 (pass_df_finish): Replace declaration with that of...
24022 (make_pass_df_finish): ...new function.
24023 (pass_compute_alignments): Replace declaration with that of...
24024 (make_pass_compute_alignments): ...new function.
24025 (pass_duplicate_computed_gotos): Replace declaration with that of...
24026 (make_pass_duplicate_computed_gotos): ...new function.
24027 (pass_variable_tracking): Replace declaration with that of...
24028 (make_pass_variable_tracking): ...new function.
24029 (pass_free_cfg): Replace declaration with that of...
24030 (make_pass_free_cfg): ...new function.
24031 (pass_machine_reorg): Replace declaration with that of...
24032 (make_pass_machine_reorg): ...new function.
24033 (pass_cleanup_barriers): Replace declaration with that of...
24034 (make_pass_cleanup_barriers): ...new function.
24035 (pass_delay_slots): Replace declaration with that of...
24036 (make_pass_delay_slots): ...new function.
24037 (pass_split_for_shorten_branches): Replace declaration with that of...
24038 (make_pass_split_for_shorten_branches): ...new function.
24039 (pass_split_before_regstack): Replace declaration with that of...
24040 (make_pass_split_before_regstack): ...new function.
24041 (pass_convert_to_eh_region_ranges): Replace declaration with that
24043 (make_pass_convert_to_eh_region_ranges): ...new function.
24044 (pass_shorten_branches): Replace declaration with that of...
24045 (make_pass_shorten_branches): ...new function.
24046 (pass_set_nothrow_function_flags): Replace declaration with that of...
24047 (make_pass_set_nothrow_function_flags): ...new function.
24048 (pass_dwarf2_frame): Replace declaration with that of...
24049 (make_pass_dwarf2_frame): ...new function.
24050 (pass_final): Replace declaration with that of...
24051 (make_pass_final): ...new function.
24052 (pass_rtl_seqabstr): Replace declaration with that of...
24053 (make_pass_rtl_seqabstr): ...new function.
24054 (pass_release_ssa_names): Replace declaration with that of...
24055 (make_pass_release_ssa_names): ...new function.
24056 (pass_early_inline): Replace declaration with that of...
24057 (make_pass_early_inline): ...new function.
24058 (pass_inline_parameters): Replace declaration with that of...
24059 (make_pass_inline_parameters): ...new function.
24060 (pass_update_address_taken): Replace declaration with that of...
24061 (make_pass_update_address_taken): ...new function.
24062 (pass_convert_switch): Replace declaration with that of...
24063 (make_pass_convert_switch): ...new function.
24064 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
24065 to a subclass of simple_ipa_opt_pass along with...
24066 (pass_data_ipa_tree_profile): ...new pass_data instance and...
24067 (make_pass_ipa_tree_profile): ...new function.
24068 * tree-sra.c (pass_sra_early): Convert from a global struct to a
24069 subclass of gimple_opt_pass along with...
24070 (pass_data_sra_early): ...new pass_data instance and...
24071 (make_pass_sra_early): ...new function.
24072 (pass_sra): Convert from a global struct to a subclass of
24073 gimple_opt_pass along with...
24074 (pass_data_sra): ...new pass_data instance and...
24075 (make_pass_sra): ...new function.
24076 (pass_early_ipa_sra): Convert from a global struct to a subclass of
24077 gimple_opt_pass along with...
24078 (pass_data_early_ipa_sra): ...new pass_data instance and...
24079 (make_pass_early_ipa_sra): ...new function.
24080 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
24081 subclass of gimple_opt_pass along with...
24082 (pass_data_ccp): ...new pass_data instance and...
24083 (make_pass_ccp): ...new function.
24084 (pass_fold_builtins): Convert from a global struct to a subclass of
24085 gimple_opt_pass along with...
24086 (pass_data_fold_builtins): ...new pass_data instance and...
24087 (make_pass_fold_builtins): ...new function.
24088 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
24089 subclass of gimple_opt_pass along with...
24090 (pass_data_copy_prop): ...new pass_data instance and...
24091 (make_pass_copy_prop): ...new function.
24092 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
24093 global struct to a subclass of gimple_opt_pass along with...
24094 (pass_data_rename_ssa_copies): ...new pass_data instance and...
24095 (make_pass_rename_ssa_copies): ...new function.
24096 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
24097 subclass of gimple_opt_pass along with...
24098 (pass_data_dce): ...new pass_data instance and...
24099 (make_pass_dce): ...new function.
24100 (pass_dce_loop): Convert from a global struct to a subclass of
24101 gimple_opt_pass along with...
24102 (pass_data_dce_loop): ...new pass_data instance and...
24103 (make_pass_dce_loop): ...new function.
24104 (pass_cd_dce): Convert from a global struct to a subclass of
24105 gimple_opt_pass along with...
24106 (pass_data_cd_dce): ...new pass_data instance and...
24107 (make_pass_cd_dce): ...new function.
24108 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
24109 subclass of gimple_opt_pass along with...
24110 (pass_data_dominator): ...new pass_data instance and...
24111 (make_pass_dominator): ...new function.
24112 (pass_phi_only_cprop): Convert from a global struct to a subclass of
24113 gimple_opt_pass along with...
24114 (pass_data_phi_only_cprop): ...new pass_data instance and...
24115 (make_pass_phi_only_cprop): ...new function.
24116 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
24117 subclass of gimple_opt_pass along with...
24118 (pass_data_dse): ...new pass_data instance and...
24119 (make_pass_dse): ...new function.
24120 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
24121 a subclass of gimple_opt_pass along with...
24122 (pass_data_forwprop): ...new pass_data instance and...
24123 (make_pass_forwprop): ...new function.
24124 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
24125 struct to a subclass of gimple_opt_pass along with...
24126 (pass_data_tree_ifcombine): ...new pass_data instance and...
24127 (make_pass_tree_ifcombine): ...new function.
24128 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
24129 subclass of gimple_opt_pass along with...
24130 (pass_data_ch): ...new pass_data instance and...
24131 (make_pass_ch): ...new function.
24132 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
24133 subclass of gimple_opt_pass along with...
24134 (pass_data_tree_loop): ...new pass_data instance and...
24135 (make_pass_tree_loop): ...new function.
24136 (pass_tree_loop_init): Convert from a global struct to a subclass of
24137 gimple_opt_pass along with...
24138 (pass_data_tree_loop_init): ...new pass_data instance and...
24139 (make_pass_tree_loop_init): ...new function.
24140 (pass_lim): Convert from a global struct to a subclass of
24141 gimple_opt_pass along with...
24142 (pass_data_lim): ...new pass_data instance and...
24143 (make_pass_lim): ...new function.
24144 (pass_tree_unswitch): Convert from a global struct to a subclass of
24145 gimple_opt_pass along with...
24146 (pass_data_tree_unswitch): ...new pass_data instance and...
24147 (make_pass_tree_unswitch): ...new function.
24148 (pass_predcom): Convert from a global struct to a subclass of
24149 gimple_opt_pass along with...
24150 (pass_data_predcom): ...new pass_data instance and...
24151 (make_pass_predcom): ...new function.
24152 (pass_vectorize): Convert from a global struct to a subclass of
24153 gimple_opt_pass along with...
24154 (pass_data_vectorize): ...new pass_data instance and...
24155 (make_pass_vectorize): ...new function.
24156 (pass_graphite): Convert from a global struct to a subclass of
24157 gimple_opt_pass along with...
24158 (pass_data_graphite): ...new pass_data instance and...
24159 (make_pass_graphite): ...new function.
24160 (pass_graphite_transforms): Convert from a global struct to a subclass
24161 of gimple_opt_pass along with...
24162 (pass_data_graphite_transforms): ...new pass_data instance and...
24163 (make_pass_graphite_transforms): ...new function.
24164 (pass_check_data_deps): Convert from a global struct to a subclass of
24165 gimple_opt_pass along with...
24166 (pass_data_check_data_deps): ...new pass_data instance and...
24167 (make_pass_check_data_deps): ...new function.
24168 (pass_iv_canon): Convert from a global struct to a subclass of
24169 gimple_opt_pass along with...
24170 (pass_data_iv_canon): ...new pass_data instance and...
24171 (make_pass_iv_canon): ...new function.
24172 (pass_scev_cprop): Convert from a global struct to a subclass of
24173 gimple_opt_pass along with...
24174 (pass_data_scev_cprop): ...new pass_data instance and...
24175 (make_pass_scev_cprop): ...new function.
24176 (pass_record_bounds): Convert from a global struct to a subclass of
24177 gimple_opt_pass along with...
24178 (pass_data_record_bounds): ...new pass_data instance and...
24179 (make_pass_record_bounds): ...new function.
24180 (pass_complete_unroll): Convert from a global struct to a subclass of
24181 gimple_opt_pass along with...
24182 (pass_data_complete_unroll): ...new pass_data instance and...
24183 (make_pass_complete_unroll): ...new function.
24184 (pass_complete_unrolli): Convert from a global struct to a subclass of
24185 gimple_opt_pass along with...
24186 (pass_data_complete_unrolli): ...new pass_data instance and...
24187 (make_pass_complete_unrolli): ...new function.
24188 (pass_parallelize_loops): Convert from a global struct to a subclass
24189 of gimple_opt_pass along with...
24190 (pass_data_parallelize_loops): ...new pass_data instance and...
24191 (make_pass_parallelize_loops): ...new function.
24192 (pass_loop_prefetch): Convert from a global struct to a subclass of
24193 gimple_opt_pass along with...
24194 (pass_data_loop_prefetch): ...new pass_data instance and...
24195 (make_pass_loop_prefetch): ...new function.
24196 (pass_iv_optimize): Convert from a global struct to a subclass of
24197 gimple_opt_pass along with...
24198 (pass_data_iv_optimize): ...new pass_data instance and...
24199 (make_pass_iv_optimize): ...new function.
24200 (pass_tree_loop_done): Convert from a global struct to a subclass of
24201 gimple_opt_pass along with...
24202 (pass_data_tree_loop_done): ...new pass_data instance and...
24203 (make_pass_tree_loop_done): ...new function.
24204 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
24205 struct to a subclass of gimple_opt_pass along with...
24206 (pass_data_cse_reciprocals): ...new pass_data instance and...
24207 (make_pass_cse_reciprocals): ...new function.
24208 (pass_cse_sincos): Convert from a global struct to a subclass of
24209 gimple_opt_pass along with...
24210 (pass_data_cse_sincos): ...new pass_data instance and...
24211 (make_pass_cse_sincos): ...new function.
24212 (pass_optimize_bswap): Convert from a global struct to a subclass of
24213 gimple_opt_pass along with...
24214 (pass_data_optimize_bswap): ...new pass_data instance and...
24215 (make_pass_optimize_bswap): ...new function.
24216 (pass_optimize_widening_mul): Convert from a global struct to a
24217 subclass of gimple_opt_pass along with...
24218 (pass_data_optimize_widening_mul): ...new pass_data instance and...
24219 (make_pass_optimize_widening_mul): ...new function.
24220 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
24221 subclass of gimple_opt_pass along with...
24222 (pass_data_phiopt): ...new pass_data instance and...
24223 (make_pass_phiopt): ...new function.
24224 (pass_cselim): Convert from a global struct to a subclass of
24225 gimple_opt_pass along with...
24226 (pass_data_cselim): ...new pass_data instance and...
24227 (make_pass_cselim): ...new function.
24228 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
24229 subclass of gimple_opt_pass along with...
24230 (pass_data_phiprop): ...new pass_data instance and...
24231 (make_pass_phiprop): ...new function.
24232 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
24233 subclass of gimple_opt_pass along with...
24234 (pass_data_pre): ...new pass_data instance and...
24235 (make_pass_pre): ...new function.
24236 (pass_fre): Convert from a global struct to a subclass of
24237 gimple_opt_pass along with...
24238 (pass_data_fre): ...new pass_data instance and...
24239 (make_pass_fre): ...new function.
24240 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
24241 subclass of gimple_opt_pass along with...
24242 (pass_data_reassoc): ...new pass_data instance and...
24243 (make_pass_reassoc): ...new function.
24244 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
24245 subclass of gimple_opt_pass along with...
24246 (pass_data_sink_code): ...new pass_data instance and...
24247 (make_pass_sink_code): ...new function.
24248 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
24249 subclass of gimple_opt_pass along with...
24250 (pass_data_strlen): ...new pass_data instance and...
24251 (make_pass_strlen): ...new function.
24252 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
24253 struct to a subclass of gimple_opt_pass along with...
24254 (pass_data_build_alias): ...new pass_data instance and...
24255 (make_pass_build_alias): ...new function.
24256 (pass_build_ealias): Convert from a global struct to a subclass of
24257 gimple_opt_pass along with...
24258 (pass_data_build_ealias): ...new pass_data instance and...
24259 (make_pass_build_ealias): ...new function.
24260 (pass_ipa_pta): Convert from a global struct to a subclass of
24261 simple_ipa_opt_pass along with...
24262 (pass_data_ipa_pta): ...new pass_data instance and...
24263 (make_pass_ipa_pta): ...new function.
24264 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
24265 subclass of gimple_opt_pass along with...
24266 (pass_data_uncprop): ...new pass_data instance and...
24267 (make_pass_uncprop): ...new function.
24268 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
24269 global struct to a subclass of gimple_opt_pass along with...
24270 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
24271 (make_pass_late_warn_uninitialized): ...new function.
24272 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
24273 to a subclass of gimple_opt_pass along with...
24274 (pass_data_init_datastructures): ...new pass_data instance and...
24275 (make_pass_init_datastructures): ...new function.
24276 (pass_early_warn_uninitialized): Convert from a global struct to a
24277 subclass of gimple_opt_pass along with...
24278 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
24279 (make_pass_early_warn_uninitialized): ...new function.
24280 (pass_update_address_taken): Convert from a global struct to a
24281 subclass of gimple_opt_pass along with...
24282 (pass_data_update_address_taken): ...new pass_data instance and...
24283 (make_pass_update_address_taken): ...new function.
24284 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
24285 struct to a subclass of gimple_opt_pass along with...
24286 (pass_data_release_ssa_names): ...new pass_data instance and...
24287 (make_pass_release_ssa_names): ...new function.
24288 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
24289 subclass of gimple_opt_pass along with...
24290 (pass_data_stdarg): ...new pass_data instance and...
24291 (make_pass_stdarg): ...new function.
24292 * tree-switch-conversion.c (pass_convert_switch): Convert from a
24293 global struct to a subclass of gimple_opt_pass along with...
24294 (pass_data_convert_switch): ...new pass_data instance and...
24295 (make_pass_convert_switch): ...new function.
24296 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
24297 to a subclass of gimple_opt_pass along with...
24298 (pass_data_tail_recursion): ...new pass_data instance and...
24299 (make_pass_tail_recursion): ...new function.
24300 (pass_tail_calls): Convert from a global struct to a subclass of
24301 gimple_opt_pass along with...
24302 (pass_data_tail_calls): ...new pass_data instance and...
24303 (make_pass_tail_calls): ...new function.
24304 * tree-vect-generic.c (pass_lower_vector): Convert from a global
24305 struct to a subclass of gimple_opt_pass along with...
24306 (pass_data_lower_vector): ...new pass_data instance and...
24307 (make_pass_lower_vector): ...new function.
24308 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
24309 gimple_opt_pass along with...
24310 (pass_data_lower_vector_ssa): ...new pass_data instance and...
24311 (make_pass_lower_vector_ssa): ...new function.
24312 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
24313 to a subclass of gimple_opt_pass along with...
24314 (pass_data_slp_vectorize): ...new pass_data instance and...
24315 (make_pass_slp_vectorize): ...new function.
24316 (pass_ipa_increase_alignment): Convert from a global struct to a
24317 subclass of simple_ipa_opt_pass along with...
24318 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
24319 (make_pass_ipa_increase_alignment): ...new function.
24320 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
24321 gimple_opt_pass along with...
24322 (pass_data_vrp): ...new pass_data instance and...
24323 (make_pass_vrp): ...new function.
24324 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
24325 subclass of simple_ipa_opt_pass along with...
24326 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
24327 (make_pass_ipa_free_lang_data): ...new function.
24328 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
24329 gimple_opt_pass along with...
24330 (pass_data_tsan): ...new pass_data instance and...
24331 (make_pass_tsan): ...new function.
24332 (pass_tsan_O0): Convert from a global struct to a subclass of
24333 gimple_opt_pass along with...
24334 (pass_data_tsan_O0): ...new pass_data instance and...
24335 (make_pass_tsan_O0): ...new function.
24336 * var-tracking.c (pass_variable_tracking): Convert from a global
24337 struct to a subclass of rtl_opt_pass along with...
24338 (pass_data_variable_tracking): ...new pass_data instance and...
24339 (make_pass_variable_tracking): ...new function.
24340 * web.c (pass_web): Convert from a global struct to a subclass of
24341 rtl_opt_pass along with...
24342 (pass_data_web): ...new pass_data instance and...
24343 (make_pass_web): ...new function.
24344 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
24345 declaration with that of...
24346 (make_pass_mode_switch_use): ...new function.
24347 (pass_resolve_sw_modes): Replace declaration with that of...
24348 (make_pass_resolve_sw_modes): ...new function.
24349 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
24350 from a global struct to a subclass of rtl_opt_pass along with...
24351 (pass_data_mode_switch_use): ...new pass_data instance and...
24352 (make_pass_mode_switch_use): ...new function.
24353 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
24354 from a global struct to a subclass of rtl_opt_pass along with...
24355 (pass_data_resolve_sw_modes): ...new pass_data instance and...
24356 (make_pass_resolve_sw_modes): ...new function.
24357 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
24358 struct to a subclass of rtl_opt_pass along with...
24359 (pass_data_insert_vzeroupper): ...new pass_data instance and...
24360 (make_pass_insert_vzeroupper): ...new function.
24361 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
24362 global struct to a subclass of rtl_opt_pass along with...
24363 (pass_data_work_around_errata): ...new pass_data instance and...
24364 (make_pass_work_around_errata): ...new function.
24365 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
24366 struct to a subclass of rtl_opt_pass along with...
24367 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
24368 (make_pass_mips_machine_reorg2): ...new function.
24370 2013-08-05 David Malcolm <dmalcolm@redhat.com>
24372 * passes.c (pass_manager::operator new): New.
24374 2013-08-05 David Malcolm <dmalcolm@redhat.com>
24376 Handwritten part of conversion of passes to C++ classes.
24378 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
24379 (toplev.o): Add dep on PASS_MANAGER_H.
24380 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
24381 of early local pases to reflect this moving from a global to a
24382 member of gcc::pass_manager.
24383 (cgraph_add_new_function): Likewise.
24384 * lto-cgraph.c (lto_output_node): Update for conversion of
24385 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
24386 * passes.c (opt_pass::clone): New.
24387 (opt_pass::gate): New.
24388 (opt_pass::execute): New.
24389 (opt_pass::opt_pass): New.
24390 (pass_manager::execute_early_local_passes): New.
24391 (pass_manager::execute_pass_mode_switching): new.
24392 (finish_optimization_passes): Convert to...
24393 (pass_manager::finish_optimization_passes): ...this.
24394 (finish_optimization_passes): Update for conversion of passes to
24396 (register_dump_files_1): Use has_gate since we cannot portably
24397 check a vtable entry against NULL.
24398 (dump_one_pass): Likewise.
24399 (ipa_write_summaries_2): Likewise.
24400 (ipa_write_optimization_summaries_1): Likewise.
24401 (ipa_read_summaries_1): Likewise.
24402 (ipa_read_optimization_summaries_1): Likewise.
24403 (execute_ipa_stmt_fixups): Likewise.
24404 (pass_manager::pass_manager): Rewrite pass-creation, invoking
24405 pass-creation functions rather than wiring up globals, and
24406 storing the results in fields of pass_manager generated using
24407 pass-instances.def.
24408 (pass_manager::dump_profile_report): Update for conversion of
24409 passes to C++ classes.
24410 (pass_manager::execute_ipa_summary_passes): Likewise.
24411 (execute_one_ipa_transform_pass): Likewise.
24412 (execute_one_pass): Use has_gate and has_execute since we cannot
24413 portably check a vtable entry against NULL.
24414 * pass_manager.h (pass_manager::finish_optimization_passes): New.
24415 (pass_manager): Use pass-instances.def to add fields for the
24416 various pass instances.
24417 * toplev.c (finalize): Update for move of
24418 finish_optimization_passes to a method of gcc::pass_manager.
24419 * toplev.h (finish_optimization_passes): Move to method of class
24421 * tree-pass.h (struct pass_data): New.
24422 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
24423 (opt_pass::gate): Convert to virtual function.
24424 (opt_pass::~opt_pass): New.
24425 (opt_pass::clone): New.
24426 (opt_pass::execute): Convert to virtual function.
24427 (opt_pass::opt_pass): New.
24428 (opt_pass::ctxt_): new.
24429 (gimple_opt_pass): Convert to subclass of opt_pass.
24430 (gimple_opt_pass::gimple_opt_pass): New.
24431 (rtl_opt_pass): Convert to subclass of opt_pass.
24432 (rtl_opt_pass::rtl_opt_pass): New.
24433 (ipa_opt_pass_d): Convert to subclass of opt_pass.
24434 (ipa_opt_pass_d::ipa_opt_pass_d): New.
24435 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
24436 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
24437 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
24438 invocation of pass_mode_switching to reflect this moving from a
24439 global to a member of gcc::pass_manager.
24440 (ix86_option_override): Rework how pass_insert_vzeroupper is
24441 added to the pass_manager to reflect autogenerated changes.
24442 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
24444 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
24446 PR rtl-optimization/57708
24447 * recog.c (peep2_find_free_register): Validate all regs in a
24450 2013-08-05 Jan Hubicka <jh@suse.cz>
24453 * cgraph.c (verify_cgraph_node): Accept local flags from other
24455 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
24456 (function_and_variable_visibility): Likewise.
24457 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
24459 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
24461 * graph.c (init_graph_slim_pretty_print): Remove.
24462 (print_graph_cfg): Do not call it. Use local pretty printer.
24463 (start_graph_dump): Likewise.
24465 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
24467 * gimple-pretty-print.c (buffer): Remove.
24468 (initialized): Likewise.
24469 (maybe_init_pretty_print): Likewise.
24470 (print_gimple_stmt): Do not call it. Use non-static local
24471 pretty_printer variable.
24472 (print_gimple_expr): Likewise.
24473 (print_gimple_seq): Likewise.
24474 (gimple_dump_bb): Likewise.
24476 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
24478 * asan.c (asan_pp): Remove.
24479 (asan_pp_initialized): Likewise.
24480 (asan_pp_initialize): Likewise.
24481 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
24482 (asan_emit_stack_protection): Tidy. Use local pretty printer.
24483 (asan_add_global): Likewise.
24485 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
24487 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
24488 * diagnostic.h (diagnostic_flush_buffer): Adjust.
24489 * pretty-print.c (pp_formatted_text_data): Likewise.
24490 (pp_indent): Rename from pp_base_indent.
24491 (pp_format): Rename from pp_base_format.
24492 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
24493 (pp_format_verbatim): Rename from pp_base_format_verbatim.
24494 (pp_flush): Rename from pp_base_flush.
24495 (pp_set_line_maximum_length): Rename from
24496 pp_base_set_line_maximum_length.
24497 (pp_clear_output_area): Rename from pp_base_clear_output_area.
24498 (pp_set_prefix): Rename from pp_base_set_prefix.
24499 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
24500 (pp_emit_prefix): Rename from pp_base_emit_prefix.
24501 (pp_append_text): Rename from pp_base_append_text.
24502 (pp_formatted_text): Rename from pp_base_formatted_text.
24503 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
24504 (pp_remaining_character_count_for_line): Rename from
24505 pp_base_remaining_character_count_for_line.
24506 (pp_newline): Rename from pp_base_newline.
24507 (pp_character): Rename from pp_base_character.
24508 (pp_string): Rename from pp_base_string.
24509 (pp_maybe_space): Rename from pp_base_maybe_space.
24510 * asan.c (asan_pp_string): Adjust.
24511 (asan_emit_stack_protection): Likewise.
24512 (asan_add_global): Likewise.
24513 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
24514 * tree-mudflap.c (mf_varname_tree): Likewise.
24515 * tree-pretty-print.c (pp_tree_identifier): Rename from
24516 pp_base_tree_identifier.
24517 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
24518 Declare as function.
24520 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
24522 * pretty-print.h (pp_bar_bar): New.
24523 (pp_ampersand_ampersand): Likewise.
24524 (pp_less_equal): Likewise.
24525 (pp_greater_equal): Likewise.
24526 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
24527 printer functions instead of pp_string or operators and punctuators.
24528 (dump_gimple_call): Likewise.
24529 (dump_gimple_omp_for): Likewise.
24530 (dump_gimple_transaction): Likewise.
24531 (dump_gimple_phi): Likewise.
24532 (pp_gimple_stmt_1): Likewise.
24533 * sched-vis.c (print_insn): Likewise.
24534 * tree-mudflap.c (mf_varname_tree): Likewise.
24535 * tree-pretty-print.c (dump_block_node): Likewise.
24536 (dump_generic_node): Likewise.
24538 2013-08-02 Jan Hubicka <jh@suse.cz>
24540 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
24542 * lto-streamer-out.c (tree_is_indexable): Results decls and
24543 parm decls are not indexable.
24544 (DFS_write_tree_body): Do not follow args and results.
24545 (hash_tree): Likewise.
24546 (output_functions): Rearrange so struct function is needed
24547 only when real body is output; be able to also ouptut abstract
24548 functions; output DECL_ARGUMENTS and DECL_RESULT.
24549 (lto_output): When not in WPA, ale store abstract functions.
24550 (write_symbol): Do not care about RESULT_DECL.
24551 (output_symbol_p): Handle correctly sbtract decls.
24552 * lto-streamer-in.c (input_function): Rearrange so struct
24553 function can be NULL at entry; allow streaming of
24554 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
24555 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
24556 sanity check during LTO.
24557 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
24558 RESULT_DECl and DECL_ARGUMENTS.
24559 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
24562 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
24564 * pretty-print.h (pp_underscore): New.
24566 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
24567 printer functions instead of pp_character.
24568 (dump_binary_rhs): Likewise.
24569 (dump_ternary_rhs): Likewise.
24570 (dump_gimple_call_args): Likewise.
24571 (pp_points_to_solution): Likewise.
24572 (dump_gimple_call): Likewise.
24573 (dump_gimple_switch): Likewise.
24574 (dump_gimple_cond): Likewise.
24575 (dump_gimple_bind): Likewise.
24576 (dump_gimple_try): Likewise.
24577 (dump_gimple_omp_for): Likewise.
24578 (dump_gimple_omp_continue): Likewise.
24579 (dump_gimple_omp_single): Likewise.
24580 (dump_gimple_omp_sections): Likewise.
24581 (dump_gimple_omp_block): Likewise.
24582 (dump_gimple_omp_critical): Likewise.
24583 (dump_gimple_transaction): Likewise.
24584 (dump_gimple_asm): Likewise.
24585 (dump_gimple_phi): Likewise.
24586 (dump_gimple_omp_parallel): Likewise.
24587 (dump_gimple_omp_task): Likewise.
24588 (dump_gimple_omp_atomic_load): Likewise.
24589 (dump_gimple_omp_atomic_store): Likewise.
24590 (dump_gimple_mem_ops): Likewise.
24591 (pp_gimple_stmt_1): Likewise.
24592 (pp_cfg_jump): Likewise.
24593 (dump_implicit_edges): Likewise.
24594 (gimple_dump_bb_for_graph): Likewise.
24595 * graph.c (draw_cfg_node): Likewise.
24596 * langhooks.c (lhd_print_error_function): Likewise.
24597 * sched-vis.c (print_exp): Likewise.
24598 (print_value): Likewise.
24599 (print_pattern): Likewise.
24600 (print_insn): Likewise.
24601 (rtl_dump_bb_for_graph): Likewise.
24602 * tree-pretty-print.c (dump_function_declaration): Likewise.
24603 (dump_array_domain): Likewise.
24604 (dump_omp_clause): Likewise.
24605 (dump_location): Likewise.
24606 (dump_generic_node): Likewise.
24607 (print_struct_decl): Likewise.
24608 * diagnostic.c (diagnostic_show_locus): Use pp_space.
24610 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
24612 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
24613 candidate table when replacing a candidate statement.
24614 (replace_rhs_if_not_dup): Likewise.
24615 (replace_one_candidate): Likewise.
24617 2013-08-02 Jan Hubicka <jh@suse.cz>
24618 Martin Liska <marxin.liska@gmail.com>
24620 * cgraphunit.c (add_new_function): Fix logic when adding from
24622 (assemble_thunk): Rename to ...
24623 (expand_thunk); .. this one; export; get it working with
24624 general functions; make produced gimple valid.
24625 * cgraph.h (expand_thunk): Declare.
24627 2013-08-02 Jan Hubicka <jh@suse.cz>
24629 * ipa-cp.c (gather_context_independent_values): Use
24630 ipa_get_param_move_cost.
24631 (get_replacement_map): Remove PARAM; move parameter folding
24633 (create_specialized_node): Update.
24634 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
24635 assert that we have gimple body; update move_cost.
24636 (count_formal_params): Assert that we have gimple body.
24637 (ipa_dump_param): New function.
24638 (ipa_alloc_node_params): Break out from ...
24639 (ipa_initialize_node_params): ... here.
24640 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
24641 (ipa_write_node_info): Stream move costs.
24642 (ipa_read_node_info): Read move costs.
24643 (ipa_update_after_lto_read): Do not recompute node params.
24644 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
24645 (ipa_get_param): Check we are not in WPA.
24646 (ipa_get_param_move_cost): New.
24647 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
24648 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
24649 parm numbers to be present.
24651 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
24653 PR rtl-optimization/58048
24654 * lra-constraints.c (process_alt_operands): Don't check asm
24655 operand on register.
24657 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
24659 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
24660 the implied StoreLoad barrier for atomic operations if before.
24662 2013-08-02 Jan Hubicka <jh@suse.cz>
24663 Martin Liska <marxin.liska@gmail.com>
24665 * cgraph.c (cgraph_function_body_availability): Do not check
24667 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
24668 symtab_node_availability): Declare.
24669 * ipa.c (can_replace_by_local_alias): New.
24670 (function_and_variable_visibility): Use it.
24671 * symtab.c (symtab_for_node_and_aliases,
24672 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
24674 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
24676 PR rtl-optimization/57963
24677 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
24678 (lra_constraints): Use them.
24680 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
24682 * config/arm/types.md (define_attr "type"): Add "load_acq"
24684 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
24686 (cortex_a53_store1): Likewise.
24688 2013-08-01 Jan Hubicka <jh@suse.cz>
24690 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
24691 partitions are not needed.
24693 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
24695 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
24696 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
24697 MAYBE_NON_Q_CLASS_P where appropriate.
24699 2013-08-01 Jan Hubicka <jh@suse.cz>
24701 * cgraph.h (release_function_body): Declare.
24702 * tree.c (free_lang_data_in_decl): Free, parameters and return values
24703 of unused delcarations.
24705 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24707 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
24708 RTL form when subtracting a constant.
24710 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24712 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
24713 Generate canonical plus rtx with negated immediate instead of minus
24715 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
24717 2013-08-01 Jan Hubicka <jh@suse.cz>
24719 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
24720 (cgraph_release_function_body): Likewise.
24721 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
24722 * cgraph.h (cgrpah_node): Rename abstract_and_needed
24723 to used_as_abstract_origin.
24724 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
24725 symbols used as abstract origins.
24726 * cgraphunit.c (analyze_functions): Update.
24727 * ipa.c (symtab_remove_unreachable_nodes): Recompute
24728 used_as_abstract_origin.
24729 * tree-inline.c (tree_function_versioning): Update
24730 used_as_abstract_origin; be ready for DECL_RESULT and
24731 DECL_ARGUMENTS to be NULL.
24733 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
24734 for abstract functions.
24735 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
24738 2013-08-01 Jan Hubicka <jh@suse.cz>
24740 * profile.c (compute_value_histograms): Fix thinko.
24742 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
24744 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
24745 aarch-common-protos.h to extra_headers.
24746 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
24747 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
24748 * config/aarch64/t-aarch64 (aarch-common.o): Define.
24750 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
24752 * config/aarch64/aarch64.md (define_attr "type"): Delete.
24753 Include "../arm/types.md". Define "type" attribute for all patterns.
24754 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
24757 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
24759 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
24760 to support power8 load fusion.
24761 (fusion_gpr_mem_load): Likewise.
24763 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
24765 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
24766 declarations for power8 load fusion.
24767 (emit_fusion_gpr_load): Likewise.
24769 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
24770 tuning for power8, turn on fusion mode by default. Turn on sign
24771 extending fusion mode if normal fusion mode is on, and we are at
24773 (fusion_gpr_load_p): New function, return true if we can fuse an
24774 addis instruction with a dependent load to a GPR.
24775 (emit_fusion_gpr_load): Emit the instructions for power8 load
24778 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
24779 (VSX load fusion peepholes): New peepholes to fuse together an
24780 addi instruction with a VSX load instruction.
24782 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
24783 peepholes to fuse an addis instruction with a load to a GPR base
24784 register. If we are supporting sign extending fusions, convert
24785 sign extending loads to zero extending loads and add an explicit
24788 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
24790 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
24791 aarch-common-protos.h to extra_headers.
24792 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
24793 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
24794 (arm_early_store_addr_dep): Likewise.
24795 (arm_no_early_alu_shift_dep): Likewise.
24796 (arm_no_early_alu_shift_value_dep): Likewise.
24797 (arm_no_early_mul_dep): Likewise.
24798 (arm_no_early_store_addr_dep): Likewise.
24799 (arm_mac_accumulator_is_mul_result): Likewise.
24800 (arm_mac_accumulator_is_result): Likewise.
24801 * config/arm/aarch-common.c: ... here. New file.
24802 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
24804 (arm_early_store_addr_dep): Likewise.
24805 (arm_no_early_alu_shift_dep): Likewise.
24806 (arm_no_early_alu_shift_value_dep): Likewise.
24807 (arm_no_early_mul_dep): Likewise.
24808 (arm_no_early_store_addr_dep): Likewise.
24809 (arm_mac_accumulator_is_mul_result): Likewise.
24810 (arm_mac_accumulator_is_result): Likewise.
24811 * config/arm/aarch-common-protos.h: ... here. New file.
24812 * config/arm/t-arm (aarch-common.o): Define.
24814 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
24816 * config/arm/arm.md: Include new file "types.md".
24817 (define_attr "type"): Move from here to ...
24818 (define_attr "mul32"): Likewise.
24819 (define_attr "mul64"): Likewise.
24820 * config/arm/types.md: ... here. New file.
24822 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
24824 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
24825 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
24827 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24829 * gen-pass-instances.awk: Fix offset of substr().
24831 2013-07-31 David Malcolm <dmalcolm@redhat.com>
24833 * Makefile.in (pass-instances.def): New.
24834 (passes.o): Replace dependency on passes.def with one on
24837 * gen-pass-instances.awk: New.
24839 * passes.c (pass_manager::pass_manager): Use pass-instances.def
24840 rather than passes.def, updating local definition of NEXT_PASS
24841 macro to add an extra NUM parameter (currently unused).
24843 2013-07-30 David Malcolm <dmalcolm@redhat.com>
24845 * Makefile.in (PASS_MANAGER_H): New.
24846 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
24847 (passes.o): Likewise.
24848 (statistics.o): Likewise.
24849 (cgraphunit.o): Likewise.
24850 (context.o): Depend on PASS_MANAGER_H.
24852 * pass_manager.h: New.
24854 * cgraphunit.c (cgraph_add_new_function): Update for moves
24855 of globals to fields of pass_manager.
24856 (analyze_function): Likewise.
24857 (expand_function): Likewise.
24858 (ipa_passes): Likewise.
24859 (compile): Likewise.
24861 * context.c (context::context): New.
24862 * context.h (context::context): New.
24863 (context::get_passes): New.
24864 (context::passes_): New.
24866 * lto-cgraph.c (input_node): Update for moves of globals to
24867 fields of pass_manager.
24869 * passes.c (all_passes): Remove, in favor of a field of the
24870 same name within the new class pass_manager.
24871 (all_small_ipa_passes): Likewise.
24872 (all_lowering_passes): Likewise.
24873 (all_regular_ipa_passes): Likewise.
24874 (all_late_ipa_passes): Likewise.
24875 (all_lto_gen_passes): Likewise.
24876 (passes_by_id): Likewise.
24877 (passes_by_id_size): Likewise.
24878 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
24879 the new class pass_manager.
24880 (set_pass_for_id): Convert to...
24881 (pass_manager::set_pass_for_id): ...method.
24882 (get_pass_for_id): Convert to...
24883 (pass_manager::get_pass_for_id): ...method.
24884 (register_one_dump_file): Move body of implementation into...
24885 (pass_manager::register_one_dump_file): ...here.
24886 (register_dump_files_1): Convert to...
24887 (pass_manager::register_dump_files_1): ...method.
24888 (register_dump_files): Convert to...
24889 (pass_manager::register_dump_files): ...method.
24890 (create_pass_tab): Update for moves of globals to fields of
24892 (dump_passes): Move body of implementation into...
24893 (pass_manager::dump_passes): ...here.
24894 (register_pass): Move body of implementation into...
24895 (pass_manager::register_pass): ...here.
24896 (init_optimization_passes): Convert into...
24897 (pass_manager::pass_manager): ...constructor for new
24898 pass_manager class, and initialize the pass_lists array.
24899 (check_profile_consistency): Update for moves of globals to
24900 fields of pass_manager.
24901 (dump_profile_report): Move body of implementation into...
24902 (pass_manager::dump_profile_report): ...here.
24903 (ipa_write_summaries_1): Update for moves of pass lists from
24904 being globals to fields of pass_manager.
24905 (ipa_write_optimization_summaries): Likewise.
24906 (ipa_read_summaries): Likewise.
24907 (ipa_read_optimization_summaries): Likewise.
24908 (execute_all_ipa_stmt_fixups): Likewise.
24910 * statistics.c (statistics_fini): Update for moves of globals to
24911 fields of pass_manager.
24913 * toplev.c (general_init): Replace call to
24914 init_optimization_passes with construction of the pass_manager
24917 * tree-pass.h (all_passes): Remove, in favor of a field of the
24918 same name within the new class pass_manager.
24919 (all_small_ipa_passes): Likewise.
24920 (all_lowering_passes): Likewise.
24921 (all_regular_ipa_passes): Likewise.
24922 (all_lto_gen_passes): Likewise.
24923 (all_late_ipa_passes): Likewise.
24924 (passes_by_id): Likewise.
24925 (passes_by_id_size): Likewise.
24926 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
24927 the new class pass_manager.
24928 (get_pass_for_id): Remove.
24930 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
24932 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
24935 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
24937 * arm.md (mulhi3): New expand pattern.
24939 2013-07-30 Jan Hubicka <jh@suse.cz>
24940 Martin Liska <marxin.liska@gmail.com>
24942 * profile.c (compute_value_histograms): Do not ICE when
24943 there is mismatch only on some counters.
24945 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24947 PR rtl-optimization/57637
24948 * function.c (move_insn_for_shrink_wrap): Also check the
24949 GEN set of the LIVE problem for the liveness analysis
24950 if it exists, otherwise give up.
24952 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
24954 PR tree-optimization/57993
24955 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
24956 replaced statement in the candidate table.
24957 (phi_add_costs): Return infinite cost when the hidden basis does
24958 not dominate all phis on which the candidate is dependent.
24959 (replace_one_candidate): Record replaced statement in the
24962 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
24964 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
24965 (ashlv2si3): New expander.
24966 (*ashlv2si3_i): New define_insn_and_split.
24967 * predicates.md (float_operation): Allow patterns with three
24968 basic sub-patterns.
24970 PR rtl-optimization/58021
24971 * mode-switching.c (create_pre_exit): Always split off preceding
24972 insns if we are not at the basic block head.
24974 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
24976 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
24977 (UCLIBC_DYNAMIC_LINKER): New macro.
24978 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
24980 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
24981 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
24983 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
24984 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
24985 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
24986 for SF and DF modes. Use ieee_quad_format for TF mode.
24987 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
24988 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
24989 (mips_option_override): Handle `-mnan=legacy'.
24990 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
24991 `-mabs=2008' and `-mnan=2008'.
24992 (OPTION_DEFAULT_SPECS): Add "nan" default.
24993 (ASM_SPEC): Handle `-mnan='.
24994 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
24995 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
24996 comment accordingly.
24997 (neg<mode>2): Likewise.
24998 * config/mips/mips.opt (mabs, mnan): New options.
24999 * doc/install.texi (Configuration): Document `--with-nan=' option.
25000 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
25002 (MIPS Options): Document them.
25003 * config.gcc <mips*-*-*>: Handle `--with-nan='.
25004 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
25005 * configure: Regenerate.
25006 * config.in: Regenerate.
25008 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
25010 * config/i386/i386.md (float post-reload splitters): Do not check
25011 for subregs of SSE registers.
25013 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
25014 H.J. Lu <hongjiu.lu@intel.com>
25018 * config/i386/i386.md (post-reload splitter
25019 to avoid partial SSE reg dependency stalls): New pattern.
25021 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
25023 * config/s390/s390.md ("movcc"): Swap load and store instructions.
25025 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
25027 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
25028 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
25030 2013-07-26 Cary Coutant <ccoutant@google.com>
25032 * dwarf2out.c (die_checksum_ordered): Don't include template
25033 instantiations in signature.
25034 (is_template_parameter): New function.
25035 (is_template_instantiation): New function.
25036 (generate_skeleton_bottom_up): Don't include template instantiations
25038 (generate_skeleton): Likewise.
25039 (break_out_comdat_types): Move recursive call to break out nested
25041 (prune_unused_types_mark_generic_parms_dies): Call
25042 is_template_parameter.
25044 2013-07-26 Ian Bolton <ian.bolton@arm.com>
25046 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
25047 uses vector registers.
25048 * config/aarch64/iterators.md: Add attributes rtn and vas.
25050 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25051 Richard Earnshaw <richard.earnshaw@arm.com>
25053 * combine.c (simplify_comparison): Re-canonicalize operands
25055 * config/arm/arm.md (movcond_addsi): New splitter.
25057 2013-07-25 Sterling Augustine <saugustine@google.com>
25059 * dwarf2out.c (size_of_pubnames): Move code to...
25060 (include_pubname_in_output): ...here. New.
25061 (want_pubnames): Rearrange.
25062 (output_pubnames): Call include_pubname_in_output. Move assertion.
25064 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
25066 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
25068 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
25071 * doc/extend.texi: Remove obsolete builtins. Fix
25072 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
25074 2013-07-25 Jan Hubicka <jh@suse.cz>
25076 * cgraph.c (release_function_body): Break out from ...
25077 (cgraph_release_function_body): ... this one; also release DECL_RESULT
25078 and DECL_ARGUMENTS.
25079 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
25080 old_tree in the map.
25081 (create_specialized_node): Update.
25082 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
25084 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
25085 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
25086 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
25087 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
25090 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25092 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
25093 addsi3_carryin_alt2_<optab>): Correct output template.
25095 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25097 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
25098 Adjust for arm_restrict_it.
25099 Remove trailing whitespace.
25101 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
25103 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
25104 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
25106 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
25108 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
25110 PR rtl-optimization/57960
25111 * lra-constraints.c (process_alt_operands): Use the right mode
25112 when checking strict_low.
25114 2013-07-25 Jan Hubicka <jh@suse.cz>
25116 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
25117 * cgraph.c (cgraph_remove_node): Do not release function body
25118 when in cgraph streaming.
25119 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
25120 in other partitions are not considered reachable; fix handling of
25123 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25125 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
25127 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25132 * config/arm/arm.md ("*sibcall_insn): Replace use of
25133 Ss with US. Adjust output for v5 and v4t.
25134 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
25136 * config/arm/constraints.md ("Ss"): Rename to US.
25138 2013-07-25 Terry Guo <terry.guo@arm.com>
25140 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
25141 shift_add/shift_sub0/shift_sub1 RTXs.
25143 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
25144 Anton Blanchard <anton@au1.ibm.com>
25146 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
25147 (altivec_vpks<VI_char>ss): Likewise.
25148 (altivec_vpks<VI_char>us): Likewise.
25149 (altivec_vpku<VI_char>us): Likewise.
25150 (altivec_vpku<VI_char>um): Likewise.
25152 2013-07-24 David Malcolm <dmalcolm@redhat.com>
25154 Introduce context class.
25156 * Makefile.in (CONTEXT_H): New.
25157 (OBJS): Add context.o.
25158 (toplev.o): Add CONTEXT_H to dependencies.
25161 * toplev.c (general_init): Create the singleton gcc::context instance.
25167 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
25169 PR rtl-optimization/57968
25170 * mode-switching.c (create_pre_exit): Allow instructions that
25171 don't set a return register to need a non-exit mode.
25173 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
25174 Anton Blanchard <anton@au1.ibm.com>
25176 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
25177 operands to vperm for little endian.
25178 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
25179 of lvsl to create the control mask for a vperm for little endian.
25181 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25182 Anton Blanchard <anton@au1.ibm.com>
25184 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
25185 two operands for little-endian.
25187 2013-07-23 Steve Ellcey <sellcey@mips.com>
25189 * config/mips/mips.c (mips_case_values_threshold): New.
25190 (TARGET_CASE_VALUES_THRESHOLD): Define.
25192 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25193 Anton Blanchard <anton@au1.ibm.com>
25195 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
25196 selection of field for vector splat in little endian mode.
25198 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25200 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
25201 expanders to rs6000.md.
25202 (ior<mode>3): Likewise.
25203 (and<mode>3): Likewise.
25204 (one_cmpl<mode>2): Likewise.
25205 (nor<mode>3): Likewise.
25206 (andc<mode>3): Likewise.
25207 (eqv<mode>3): Likewise.
25208 (nand<mode>3): Likewise.
25209 (orc<mode>3): Likewise.
25211 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
25214 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
25215 to split multi-word logical operations.
25216 (rs6000_split_logical_di): Likewise.
25217 (rs6000_split_logical): Likewise.
25219 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
25220 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
25221 and allow TImode operations in 32-bit.
25222 (vsx_and<mode>3_64bit): Likewise.
25223 (vsx_ior<mode>3_32bit): Likewise.
25224 (vsx_ior<mode>3_64bit): Likewise.
25225 (vsx_xor<mode>3_32bit): Likewise.
25226 (vsx_xor<mode>3_64bit): Likewise.
25227 (vsx_one_cmpl<mode>2_32bit): Likewise.
25228 (vsx_one_cmpl<mode>2_64bit): Likewise.
25229 (vsx_nor<mode>3_32bit): Likewise.
25230 (vsx_nor<mode>3_64bit): Likewise.
25231 (vsx_andc<mode>3_32bit): Likewise.
25232 (vsx_andc<mode>3_64bit): Likewise.
25233 (vsx_eqv<mode>3_32bit): Likewise.
25234 (vsx_eqv<mode>3_64bit): Likewise.
25235 (vsx_nand<mode>3_32bit): Likewise.
25236 (vsx_nand<mode>3_64bit): Likewise.
25237 (vsx_orc<mode>3_32bit): Likewise.
25238 (vsx_orc<mode>3_64bit): Likewise.
25240 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
25241 logical types in GPRs.
25243 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
25244 logical insns to rs6000.md, and allow TImode operations in
25246 (altivec_ior<mode>3): Likewise.
25247 (altivec_xor<mode>3): Likewise.
25248 (altivec_one_cmpl<mode>2): Likewise.
25249 (altivec_nor<mode>3): Likewise.
25250 (altivec_andc<mode>3): Likewise.
25252 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
25253 attributes for moving the 128-bit logical operations into
25255 (BOOL_REGS_OUTPUT): Likewise.
25256 (BOOL_REGS_OP1): Likewise.
25257 (BOOL_REGS_OP2): Likewise.
25258 (BOOL_REGS_UNARY): Likewise.
25259 (BOOL_REGS_AND_CR0): Likewise.
25260 (one_cmpl<mode>2): Add support for DI logical operations on
25261 32-bit, splitting the operations to 32-bit.
25262 (anddi3): Likewise.
25263 (iordi3): Likewise.
25264 (xordi3): Likewise.
25265 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
25266 changes to combine the 32/64-bit code, allow logical operations on
25267 TI mode in 32-bit, and to use similar match_operator patterns like
25268 scalar mode uses. Combine the Altivec and VSX code for logical
25269 operations, and move it here.
25270 (ior<mode>3, 128-bit types): Likewise.
25271 (xor<mode>3, 128-bit types): Likewise.
25272 (one_cmpl<mode>3, 128-bit types): Likewise.
25273 (nor<mode>3, 128-bit types): Likewise.
25274 (andc<mode>3, 128-bit types): Likewise.
25275 (eqv<mode>3, 128-bit types): Likewise.
25276 (nand<mode>3, 128-bit types): Likewise.
25277 (orc<mode>3, 128-bit types): Likewise.
25278 (and<mode>3_internal): Likewise.
25279 (bool<mode>3_internal): Likewise.
25280 (boolc<mode>3_internal1): Likewise.
25281 (boolc<mode>3_internal2): Likewise.
25282 (boolcc<mode>3_internal1): Likewise.
25283 (boolcc<mode>3_internal2): Likewise.
25284 (eqv<mode>3_internal1): Likewise.
25285 (eqv<mode>3_internal2): Likewise.
25286 (one_cmpl1<mode>3_internal): Likewise.
25288 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
25290 * config/microblaze/microblaze.c (microblaze_expand_prologue):
25291 Rename flag_stack_usage to flag_stack_usage_info.
25293 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
25295 * config/microblaze/sync.md: New file.
25296 * config/microblaze/microblaze.md: Include sync.md
25297 * config/microblaze/microblaze.c: Add print_operand 'y'.
25298 * config/microblaze/constraints.md: Add memory_contraint
25299 'Q' which is a single register.
25301 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
25303 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
25305 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
25307 * reload.c (find_reloads): Exit loop once we find this operand
25308 cannot be reloaded somehow for this alternative.
25310 * reload.c (find_reloads): Exit loop once we find a hard register.
25312 * rtlanal.c (computed_jump_p): Exit loop once we find label
25315 * i386.c (ix86_pad_returns): Exit loop after setting replace.
25317 * cfgloopmanip.c (remove_path): Exit loop after setting
25320 * gensupport.c (subst_dup): Avoid loop if code is not
25321 MATCH_DUP nor MATCH_OP_DUP.
25323 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
25325 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
25327 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
25329 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
25330 true for SP_REGNUM if mode == ptr_mode.
25331 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
25332 with value R0_REGNUM + 31.
25334 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
25336 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
25337 pad pointer-typed argument downward.
25339 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
25341 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
25342 and __ILP32__ when the ILP32 model is in use.
25344 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
25346 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
25347 (aarch64_load_symref_appropriately): In the case of
25348 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
25349 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
25350 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
25351 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
25352 if 'mode' doesn't equal to 'ptr_mode'.
25353 (aarch64_output_mi_thunk): Add an assertion on the alignment of
25354 'vcall_offset'; change to call aarch64_emit_move differently depending
25355 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
25356 to calculate the upper bound of 'vcall_offset'.
25357 (aarch64_cannot_force_const_mem): Change to also return true if
25359 (aarch64_legitimize_reload_address): In the case of large
25360 displacements, add new local variable 'xmode' and an assertion
25361 based on it; change to use 'xmode' to generate the new rtx and
25363 (aarch64_asm_trampoline_template): Change to generate the template
25364 differently depending on TARGET_ILP32 or not; change to use
25365 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
25366 (aarch64_trampoline_size): Removed.
25367 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
25368 and replace immediate literals with it. Change to use 'ptr_mode'
25369 instead of 'DImode' and call convert_memory_address if the mode
25370 of 'fnaddr' doesn't equal to 'ptr_mode'.
25371 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
25373 (aarch64_elf_asm_destructor): Likewise.
25374 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
25375 on TARGET_ILP32 instead of aarch64_trampoline_size.
25376 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
25377 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
25378 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
25379 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
25380 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
25381 (storewb_pair<GPI:mode>_<P:mode>): ... this.
25382 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
25383 depending on the value of 'mode'.
25384 (add_losym_<mode>): New.
25385 (ldr_got_small_<mode>): New, based on ldr_got_small.
25386 (ldr_got_small): Remove.
25387 (ldr_got_small_sidi): New.
25388 * config/aarch64/iterators.md (P): New.
25389 (PTR): Change to 'ptr_mode' in the condition.
25391 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
25393 * config.gcc (aarch64*-*-*): Support --with-abi.
25394 (aarch64*-*-elf): Support --with-multilib-list.
25395 (aarch64*-*-linux*): Likewise.
25396 (supported_defaults): Add abi to aarch64*-*-*.
25397 * configure.ac: Mention AArch64 for --with-multilib-list.
25398 * configure: Re-generated.
25399 * config/aarch64/biarchilp32.h: New file.
25400 * config/aarch64/biarchlp64.h: New file.
25401 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
25403 (MULTILIB_DEFAULTS): Ditto.
25404 (DRIVER_SELF_SPECS): Ditto.
25405 (ASM_SPEC): Update to also substitute -mabi.
25406 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
25407 file whose name depends on -mabi= and -mbig-endian.
25408 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
25410 (POINTER_SIZE): New define.
25411 (POINTERS_EXTEND_UNSIGNED): Ditto.
25412 (enum aarch64_abi_type): New enumeration tag.
25413 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
25414 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
25415 (TARGET_ILP32): New define.
25416 * config/aarch64/aarch64.opt (mabi): New.
25417 (aarch64_abi): New.
25418 (ilp32, lp64): New values for -mabi.
25419 * config/aarch64/t-aarch64 (comma): New define.
25420 (MULTILIB_OPTIONS): Ditto.
25421 (MULTILIB_DIRNAMES): Ditto.
25422 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
25423 * doc/invoke.texi: Document -mabi for AArch64.
25425 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
25427 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
25429 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
25430 Anton Blanchard <anton@au1.ibm.com>
25432 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
25433 endianness when selecting field to splat.
25435 2013-07-22 Eric Christopher <echristo@gmail.com>
25437 * dwarf2out.c (die_odr_checksum): New function to use
25438 CHECKSUM_ macros and ULEB128 for DIE tag.
25439 (generate_type_signature): Use.
25441 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
25443 * config.gcc (sparc*-*-*): Accept leon3 processor.
25444 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
25445 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
25446 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
25447 * config/sparc/sparc.opt (enum processor_type): Add leon3.
25448 (mfix-ut699): Adjust comment.
25449 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
25450 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
25451 (CPP_CPU_SPEC): Likewise.
25452 (ASM_CPU_SPEC): Likewise.
25453 * config/sparc/sparc.c (leon3_cost): New constant.
25454 (sparc_option_override): Add leon3 support.
25455 (mem_ref): New function.
25456 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
25457 (sparc_do_work_around_errata): Look into the instruction in the delay
25458 slot and adjust accordingly. Add fix for the data cache nullify issues
25459 of the UT699. Change insertion position for the NOP.
25460 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
25461 (leon3_load): New reservation.
25462 (leon_store): Bump latency to 2.
25463 (grfpu): New automaton.
25464 (grfpu_alu): New unit.
25465 (grfpu_ds): Likewise.
25466 (leon_fp_alu): Adjust.
25467 (leon_fp_mult): Delete.
25468 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
25469 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
25470 * config/sparc/sparc.md (cpu): Add leon3.
25471 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
25472 (swapsi): Likewise.
25473 (atomic_test_and_set): Likewise.
25474 (ldstub): Likewise.
25476 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
25478 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
25479 default for R5900 targets.
25480 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
25481 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
25482 * config/mips/mips.c (mips_option_override): Report an error for
25483 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
25484 for -march=r5900 -mhard-float.
25486 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
25488 * df-problems.c (can_move_insns_across): Exit loop once we
25489 find a non-fixed, non-global register.
25491 * ipa-pure-const.c (propagate_nothrow): Exit loop after
25494 * omega.c (omega_eliminate_red): Break after setting red_found.
25495 (omega_problem_has_red_equations): Similarly after setting found.
25496 (omega_query_variable): Similarly after setting coupled.
25498 2013-07-22 Marek Polacek <polacek@redhat.com>
25500 * gimplify.c: Don't include gimple.h twice.
25502 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25504 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
25505 instead of TARGET_THUMB1.
25506 (Pz): New constraint.
25507 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
25509 (compare_negsi_si): Likewise.
25510 (compare_addsi2_op0): Likewise.
25511 (compare_addsi2_op1): Likewise.
25512 (addsi3_carryin_<optab>): Likewise.
25513 (addsi3_carryin_alt2_<optab>): Likewise.
25514 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
25515 for arm_restrict_it.
25516 (subsi3_carryin): Likewise.
25517 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
25518 (minmax_arithsi): Disable for arm_restrict_it.
25519 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
25520 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
25521 (satsi_<SAT:code>_shift): Likewise.
25522 (arm_shiftsi3): Add alternative for 16-bit encoding.
25523 (arm32_movhf): Disable for arm_restrict_it.
25524 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
25525 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
25527 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
25529 * config/arm/arm.md (attribute "insn"): Delete.
25530 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
25531 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
25532 (not_shiftsi): Update for attribute change.
25533 (not_shiftsi_compare0): Likewise.
25534 (not_shiftsi_compare0_scratch): Likewise.
25535 (arm_one_cmplsi2): Likewise.
25536 (thumb1_one_cmplsi2): Likewise.
25537 (notsi_compare0): Likewise.
25538 (notsi_compare0_scratch): Likewise.
25539 (thumb1_movdi_insn): Likewise.
25540 (arm_movsi_insn): Likewise.
25541 (movhi_insn_arch4): Likewise.
25542 (movhi_bytes): Likewise.
25543 (arm_movqi_insn): Likewise.
25544 (thumb1_movqi_insn): Likewise.
25545 (arm32_movhf): Likewise.
25546 (thumb1_movhf): Likewise.
25547 (arm_movsf_soft_insn): Likewise.
25548 (thumb1_movsf_insn): Likewise.
25549 (thumb_movdf_insn): Likewise.
25550 (movsicc_insn): Likewise.
25551 (movsfcc_soft_insn): Likewise.
25552 (and_scc): Likewise.
25553 (cond_move): Likewise.
25554 (if_move_not): Likewise.
25555 (if_not_move): Likewise.
25556 (if_shift_move): Likewise.
25557 (if_move_shift): Likewise.
25558 (if_shift_shift): Likewise.
25559 (if_not_arith): Likewise.
25560 (if_arith_not): Likewise.
25561 (cond_move_not): Likewise.
25562 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
25563 (neon_mov<mode>): Likewise.
25564 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
25565 (thumb2_movsi_vfp): Likewise.
25566 (movsf_vfp): Likewise.
25567 (thumb2_movsf_vfp): Likewise.
25568 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
25570 (cortexa7_older_only): Likewise.
25571 (cortexa7_younger): Likewise.
25572 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
25573 (1020alu_shift_op): Likewise.
25574 (1020alu_shift_reg_op): Likewise.
25575 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
25576 (alu_shift_op): Likewise.
25577 (alu_shift_reg_op): Likewise.
25578 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
25579 (11_alu_shift_op): Likewise.
25580 (11_alu_shift_reg_op): Likewise.
25581 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
25582 (9_alu_shift_reg_op): Likewise.
25583 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
25585 (cortex_a15_alu_shift): Likewise.
25586 (cortex_a15_alu_shift_reg): Likewise.
25587 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
25588 (cortex_a5_alu_shift): Likewise.
25589 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
25591 (cortex_a53_alu_shift): Likewise.
25592 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
25594 (cortex_a7_alu_reg): Likewise.
25595 (cortex_a7_alu_shift): Likewise.
25596 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
25597 (cortex_a8_alu_shift): Likewise.
25598 (cortex_a8_alu_shift_reg): Likewise.
25599 (cortex_a8_mov): Likewise.
25600 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
25601 (cortex_a9_dp_shift): Likewise.
25602 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
25603 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
25604 (cortex_r4_mov): Likewise.
25605 (cortex_r4_alu_shift): Likewise.
25606 (cortex_r4_alu_shift_reg): Likewise.
25607 * config/arm/fa526.md (526_alu_op): Update for attribute change.
25608 (526_alu_shift_op): Likewise.
25609 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
25610 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
25611 (626te_alu_shift_op): Likewise.
25612 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
25613 (726te_alu_op): Likewise.
25614 (726te_alu_shift_op): Likewise.
25615 (726te_alu_shift_reg_op): Likewise.
25616 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
25617 (mp626_alu_shift_op): Likewise.
25618 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
25619 (pj4_alu_e1_conds): Likewise.
25620 (pj4_alu): Likewise.
25621 (pj4_alu_conds): Likewise.
25622 (pj4_shift): Likewise.
25623 (pj4_shift_conds): Likewise.
25624 (pj4_alu_shift): Likewise.
25625 (pj4_alu_shift_conds): Likewise.
25627 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25629 * config/arm/predicates.md (shiftable_operator_strict_it):
25631 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
25632 Disable cond_exec version for arm_restrict_it.
25633 (thumb2_smaxsi3): Convert to generate cond_exec.
25634 (thumb2_sminsi3): Likewise.
25635 (thumb32_umaxsi3): Likewise.
25636 (thumb2_uminsi3): Likewise.
25637 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
25638 (thumb2_neg_abssi2): Likewise.
25639 (thumb2_mov_scc): Add alternative for 16-bit encoding.
25640 (thumb2_movsicc_insn): Adjust alternatives.
25641 (thumb2_mov_negscc): Disable for arm_restrict_it.
25642 (thumb2_mov_negscc_strict_it): New pattern.
25643 (thumb2_mov_notscc_strict_it): New pattern.
25644 (thumb2_mov_notscc): Disable for arm_restrict_it.
25645 (thumb2_ior_scc): Likewise.
25646 (thumb2_ior_scc_strict_it): New pattern.
25647 (thumb2_cond_move): Adjust for arm_restrict_it.
25648 (thumb2_cond_arith): Disable for arm_restrict_it.
25649 (thumb2_cond_arith_strict_it): New pattern.
25650 (thumb2_cond_sub): Adjust for arm_restrict_it.
25651 (thumb2_movcond): Likewise.
25652 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
25653 (thumb2_zero_extendhisi2_v6): Likewise.
25654 (thumb2_zero_extendqisi2_v6): Likewise.
25655 (orsi_notsi_si): Likewise.
25656 (orsi_not_shiftsi_si): Likewise.
25658 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
25660 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
25661 instruction sequence is 1 byte shorter.
25663 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
25665 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
25666 it is not needed after split.
25668 2013-07-20 Iain Sandoe <iain@codesourcery.com>
25671 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
25672 second label for nonlocal goto receivers. Don't output pic base labels
25673 unless we're producing PIC; mark that action unreachable().
25674 (ix86_save_reg): If the function contains a nonlocal label, save the
25676 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
25677 * config/darwin.c (emitted_pic_label_num): New GTY.
25678 (update_pic_label_number_if_needed): New.
25679 (machopic_output_function_base_name): Adjust for nonlocal receiver
25681 (machopic_should_output_picbase_label): New.
25682 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
25683 (nonlocal_goto_receiver): New insn and split.
25685 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
25687 * config/aarch64/aarch64-builtins.c
25688 (aarch64_fold_builtin): Fold abs in all modes.
25689 * config/aarch64/aarch64-simd-builtins.def
25690 (abs): Enable for all modes.
25691 * config/aarch64/arm_neon.h
25692 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
25693 (vabs_f64): Add missing intrinsic.
25695 2013-07-19 Ian Bolton <ian.bolton@arm.com>
25697 * config/aarch64/arm_neon.h (vabs_s64): New function
25699 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
25702 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
25703 * config/avr/avr.md (adjust_len): Add `round'.
25704 * config/avr/avr-protos.h (avr_out_round): New prototype.
25705 (avr_out_plus): Add `out_label' argument.
25706 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
25707 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
25708 Handle the case where `insn' is just a pattern.
25709 (avr_out_bitop): Handle the case where `insn' is just a pattern.
25710 (avr_out_round): New function.
25711 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
25713 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
25715 * config/microblaze/microblaze.c (microblaze_expand_prologue):
25716 Add check for flag_stack_usage to handle -fstack-usage support
25718 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
25720 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
25721 interaction for new Power8 flags and VSX.
25723 2013-07-18 Sriraman Tallam <tmsriram@google.com>
25725 PR middle-end/57698
25726 * tree-inline.c (expand_call_inline): Emit errors during
25727 early_inlining only if optimization is not turned on.
25729 2013-07-18 David Malcolm <dmalcolm@redhat.com>
25733 * passes.c (init_optimization_passes): Move the construction of
25734 the pass hierarchy into a new passes.def file.
25736 * Makefile.in (passes.o): Add dependency on passes.def.
25738 2013-07-18 David Malcolm <dmalcolm@redhat.com>
25740 * passes.c (init_optimization_passes): Introduce macros for
25741 constructing the tree of passes (INSERT_PASSES_AFTER,
25742 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
25743 TERMINATE_PASS_LIST).
25745 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
25746 Wei Mi <wmi@google.com>
25748 PR rtl-optimization/57878
25749 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
25751 (reload_pseudo_compare_func): Check nregs first for reload
25754 2013-07-18 David Malcolm <dmalcolm@redhat.com>
25756 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
25758 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
25760 * read-rtl.c (validate_const_int): Once an invalid character is
25761 seen, quit the loop.
25763 * gengtype.c (write_roots): Similarly once we find the "deletable"
25764 or "if_marked" option.
25766 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
25768 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
25769 "xtab" and "sat". Move value "clz" from here to ...
25770 (attriubte "type"): ... here.
25771 (satsi_<SAT:code>): Delete "insn" attribute.
25772 (satsi_<SAT:code>_shift): Likewise.
25773 (arm_zero_extendqisi2addsi): Likewise.
25774 (arm_extendqisi2addsi): Likewise.
25775 (clzsi2): Update for attribute changes.
25776 (rbitsi2): Likewise.
25777 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
25779 (arm_usatsihi): Likewise.
25780 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
25782 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
25784 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
25785 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
25786 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
25787 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
25788 in alphabetical order.
25789 (attribute "core_cycles"): Update for attribute changes.
25790 (arm_addsi3): Likewise.
25791 (addsi3_compare0): Likewise.
25792 (addsi3_compare0_scratch): Likewise.
25793 (addsi3_compare_op1): Likewise.
25794 (addsi3_compare_op2): Likewise.
25795 (compare_addsi2_op0): Likewise.
25796 (compare_addsi2_op1): Likewise.
25797 (addsi3_carryin_shift_<optab>): Likewise.
25798 (subsi3_carryin_shift): Likewise.
25799 (rsbsi3_carryin_shift): Likewise.
25800 (arm_subsi3_insn): Likewise.
25801 (subsi3_compare0): Likewise.
25802 (subsi3_compare): Likewise.
25803 (arm_andsi3_insn): Likewise.
25804 (thumb1_andsi3_insn): Likewise.
25805 (andsi3_compare0): Likewise.
25806 (andsi3_compare0_scratch): Likewise.
25807 (zeroextractsi_compare0_scratch
25808 (andsi_not_shiftsi_si): Likewise.
25809 (iorsi3_insn): Likewise.
25810 (iorsi3_compare0): Likewise.
25811 (iorsi3_compare0_scratch): Likewise.
25812 (arm_xorsi3): Likewise.
25813 (thumb1_xorsi3_insn): Likewise.
25814 (xorsi3_compare0): Likewise.
25815 (xorsi3_compare0_scratch): Likewise.
25816 (satsi_<SAT:code>_shift): Likewise.
25818 (arm_shiftsi3): Likewise.
25819 (shiftsi3_compare0): Likewise.
25820 (not_shiftsi): Likewise.
25821 (not_shiftsi_compare0): Likewise.
25822 (not_shiftsi_compare0_scratch): Likewise.
25823 (arm_one_cmplsi2): Likewise.
25824 (thumb_one_complsi2): Likewise.
25825 (notsi_compare0): Likewise.
25826 (notsi_compare0_scratch): Likewise.
25827 (thumb1_zero_extendhisi2): Likewise.
25828 (arm_zero_extendhisi2): Likewise.
25829 (arm_zero_extendhisi2_v6): Likewise.
25830 (arm_zero_extendhisi2addsi): Likewise.
25831 (thumb1_zero_extendqisi2): Likewise.
25832 (thumb1_zero_extendqisi2_v6): Likewise.
25833 (arm_zero_extendqisi2): Likewise.
25834 (arm_zero_extendqisi2_v6): Likewise.
25835 (arm_zero_extendqisi2addsi): Likewise.
25836 (thumb1_extendhisi2): Likewise.
25837 (arm_extendhisi2): Likewise.
25838 (arm_extendhisi2_v6): Likewise.
25839 (arm_extendqisi): Likewise.
25840 (arm_extendqisi_v6): Likewise.
25841 (arm_extendqisi2addsi): Likewise.
25842 (thumb1_extendqisi2): Likewise.
25843 (thumb1_movdi_insn): Likewise.
25844 (arm_movsi_insn): Likewise.
25845 (movsi_compare0): Likewise.
25846 (movhi_insn_arch4): Likewise.
25847 (movhi_bytes): Likewise.
25848 (arm_movqi_insn): Likewise.
25849 (thumb1_movqi_insn): Likewise.
25850 (arm32_movhf): Likewise.
25851 (thumb1_movhf): Likewise.
25852 (arm_movsf_soft_insn): Likewise.
25853 (thumb1_movsf_insn): Likewise.
25854 (movdf_soft_insn): Likewise.
25855 (thumb_movdf_insn): Likewise.
25856 (arm_cmpsi_insn): Likewise.
25857 (cmpsi_shiftsi): Likewise.
25858 (cmpsi_shiftsi_swp): Likewise.
25859 (arm_cmpsi_negshiftsi_si): Likewise.
25860 (movsicc_insn): Likewise.
25861 (movsfcc_soft_insn): Likewise.
25862 (arith_shiftsi): Likewise.
25863 (arith_shiftsi_compare0
25864 (arith_shiftsi_compare0_scratch
25865 (sub_shiftsi): Likewise.
25866 (sub_shiftsi_compare0
25867 (sub_shiftsi_compare0_scratch
25868 (and_scc): Likewise.
25869 (cond_move): Likewise.
25870 (if_plus_move): Likewise.
25871 (if_move_plus): Likewise.
25872 (if_move_not): Likewise.
25873 (if_not_move): Likewise.
25874 (if_shift_move): Likewise.
25875 (if_move_shift): Likewise.
25876 (if_shift_shift): Likewise.
25877 (if_not_arith): Likewise.
25878 (if_arith_not): Likewise.
25879 (cond_move_not): Likewise.
25880 (thumb1_ashlsi3): Set type attribute.
25881 (thumb1_ashrsi3): Likewise.
25882 (thumb1_lshrsi3): Likewise.
25883 (thumb1_rotrsi3): Likewise.
25884 (shiftsi3_compare0_scratch): Likewise.
25885 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
25886 (neon_mov<mode>): Likewise.
25887 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
25889 (thumb2_movsi_insn): Likewise.
25890 (thumb2_cmpsi_neg_shiftsi): Likewise.
25891 (thumb2_extendqisi_v6): Likewise.
25892 (thumb2_zero_extendhisi2_v6): Likewise.
25893 (thumb2_zero_extendqisi2_v6): Likewise.
25894 (thumb2_shiftsi3_short): Likewise.
25895 (thumb2_addsi3_compare0_scratch): Likewise.
25896 (orsi_not_shiftsi_si): Likewise.
25897 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
25898 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
25900 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
25901 (1020alu_shift_op): Likewise.
25902 (1020alu_shift_reg_op): Likewise.
25903 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
25904 (alu_shift_op): Likewise.
25905 (alu_shift_reg_op): Likewise.
25906 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
25907 (11_alu_shift_op): Likewise.
25908 (11_alu_shift_reg_op): Likewise.
25909 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
25910 (9_alu_shift_reg_op): Likewise.
25911 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
25913 (cortex_a15_alu_shift): Likewise.
25914 (cortex_a15_alu_shift_reg): Likewise.
25915 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
25917 (cortex_a5_alu_shift): Likewise.
25918 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
25920 (cortex_a53_alu_shift): Likewise.
25921 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
25923 (cortex_a7_alu_reg): Likewise.
25924 (cortex_a7_alu_shift): Likewise.
25925 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
25927 (cortex_a8_alu_shift): Likewise.
25928 (cortex_a8_alu_shift_reg): Likewise.
25929 (cortex_a8_mov): Likewise.
25930 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
25931 (cortex_a9_dp_shift): Likewise.
25932 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
25934 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
25936 (cortex_r4_mov): Likewise.
25937 (cortex_r4_alu_shift): Likewise.
25938 (cortex_r4_alu_shift_reg): Likewise.
25939 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
25940 (526_alu_shift_op): Likewise.
25941 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
25942 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
25943 (626te_alu_shift_op): Likewise.
25944 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
25945 (726te_alu_op): Likewise.
25946 (726te_alu_shift_op): Likewise.
25947 (726te_alu_shift_reg_op): Likewise.
25948 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
25949 (mp626_alu_shift_op): Likewise.
25950 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
25951 (pj4_alu_e1_conds): Likewise.
25952 (pj4_alu): Likewise.
25953 (pj4_alu_conds): Likewise.
25954 (pj4_shift): Likewise.
25955 (pj4_shift_conds): Likewise.
25956 (pj4_alu_shift): Likewise.
25957 (pj4_alu_shift_conds): Likewise.
25958 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
25960 (cortexa7_older_only): Likewise.
25961 (cortexa7_younger): Likewise.
25963 2013-07-18 David Malcolm <dmalcolm@redhat.com>
25965 * ipa-pure-const.c (generate_summary): Rename to...
25966 (pure_const_generate_summary): ... this.
25968 2013-07-17 Iain Sandoe <iain@codesourcery.com>
25970 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
25972 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
25975 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
25978 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25980 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
25981 enabled without -march=zEC12.
25982 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
25985 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
25987 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
25988 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
25989 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
25990 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
25991 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
25992 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
25993 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
25995 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
25996 and ISA_HAS_NMADD3_NMSUB3.
25997 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
25998 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
25999 (nmsub4<mode>, nmsub3<mode>): Likewise.
26000 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
26002 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
26004 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
26005 TARGET_MIPS5400 checking.
26007 2013-07-16 Jakub Jelinek <jakub@redhat.com>
26008 Peter Bergner <bergner@vnet.ibm.com>
26010 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
26011 registers in the comment.
26012 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
26013 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
26014 rather than FIRST_PSEUDO_REGISTERS.
26016 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
26018 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
26019 enable extra ISA flags with TARGET_HTM.
26021 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
26023 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
26026 2013-07-15 Cong Hou <congh@google.com>
26028 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
26029 in compare function for sorting.
26031 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
26033 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
26034 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
26035 * config/rs6000/rs6000.opt: Add -mhtm option.
26036 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
26037 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
26038 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
26039 __HTM__ if the HTM instructions are available.
26040 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
26041 htm_spr_reg_operand): New define_predicates.
26042 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
26043 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
26045 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
26046 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
26047 HTM builtin functions.
26048 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
26049 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
26050 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
26051 (rs6000_builtin_mask_calculate): Likewise.
26052 (rs6000_option_override_internal): Likewise.
26053 (bdesc_htm): Add new HTM builtin support.
26054 (htm_spr_num): New function.
26055 (htm_spr_regno): Likewise.
26056 (rs6000_htm_spr_icode): Likewise.
26057 (htm_expand_builtin): Likewise.
26058 (htm_init_builtins): Likewise.
26059 (rs6000_expand_builtin): Add support for HTM builtin functions.
26060 (rs6000_init_builtins): Likewise.
26061 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
26063 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
26064 (TARGET_HTM, MASK_HTM): Define macros.
26065 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
26066 (FIXED_REGISTERS): Likewise.
26067 (CALL_USED_REGISTERS): Likewise.
26068 (CALL_REALLY_USED_REGISTERS): Likewise.
26069 (REG_ALLOC_ORDER): Likewise.
26070 (enum reg_class): Likewise.
26071 (REG_CLASS_NAMES): Likewise.
26072 (REG_CLASS_CONTENTS): Likewise.
26073 (REGISTER_NAMES): Likewise.
26074 (ADDITIONAL_REGISTER_NAMES): Likewise.
26075 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
26076 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
26077 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
26078 * config/rs6000/htm.md: New file.
26079 * config/rs6000/htmintrin.h: New file.
26080 * config/rs6000/htmxlintrin.h: New file.
26082 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
26084 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
26085 Define SYMBOL_TINY_GOT, update comment.
26086 * config/aarch64/aarch64.c
26087 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
26088 (aarch64_expand_mov_immediate): Likewise.
26089 (aarch64_print_operand): Likewise.
26090 (aarch64_classify_symbol): Likewise.
26091 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
26092 (ldr_got_tiny): Define.
26094 2013-07-13 Tobias Grosser <tobias@grosser.es>
26096 PR tree-optimization/54094
26097 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
26098 scheduling dimension for the parallelism check from the polyhedral
26099 information in the AST.
26100 * graphite-dependences.c (carries_deps): Do not assume the schedule is
26103 2013-07-13 Jason Merrill <jason@redhat.com>
26105 * print-tree.c (debug_vec_tree): Use debug_raw.
26106 (debug_raw (vec<tree, va_gc> &)): New.
26107 (debug_raw (vec<tree, va_gc> *)): New.
26108 * tree.h: Declare them.
26110 2013-07-13 Bin Cheng <bin.cheng@arm.com>
26112 * ifcvt.c (ifcvt_after_combine): New static variable.
26113 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
26115 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
26116 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
26117 rest_of_handle_if_after_reload): Pass new argument for if_convert.
26119 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
26121 * config/mips/mips.c (mips_expand_call): Remove empty statement.
26123 2013-07-12 Michael Matz <matz@suse.de>
26125 PR middle-end/55771
26126 * convert.c (convert_to_real): Reject non-float inner types.
26128 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
26130 * config/aarch64/aarch64-protos.h
26131 (aarch64_simd_immediate_valid_for_move): Remove.
26132 * config/aarch64/aarch64.c (simd_immediate_info): New member.
26133 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
26135 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
26137 2013-07-11 Steve Ellcey <sellcey@mips.com>
26139 * config/mips/mips.c (mips_conditional_register_usage): Do not
26140 use t[0-7] registers in MIPS16 mode when optimizing for size.
26142 2013-07-11 Sriraman Tallam <tmsriram@google.com>
26144 * config/i386/i386.c (dispatch_function_versions): Fix array
26145 indexing of function_version_info to match actual_versions.
26147 2013-07-11 Teresa Johnson <tejohnson@google.com>
26149 * vec.h (struct va_gc): Move release out-of-line.
26150 (va_gc::release): Call ggc_free on released vec.
26152 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26154 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
26155 Require GOT register as additional operand in UNSPEC.
26156 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
26157 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
26158 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
26159 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
26160 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
26161 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
26162 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
26164 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
26167 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
26168 name seen by assembler/linker rather if available.
26170 2013-07-11 Andreas Schwab <schwab@suse.de>
26172 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
26174 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
26176 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
26178 2013-07-10 Joseph Myers <joseph@codesourcery.com>
26180 * doc/tm.texi.in: Move hook documentation to ....
26181 * target.def: ... here.
26183 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
26184 text on @hook line.
26185 * doc/tm.texi: Regenerate.
26187 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
26190 * doc/invoke.texi: Document -Wconditionally-supported.
26192 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
26195 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
26198 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
26201 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
26202 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
26203 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
26204 Remove duplicate devices.
26205 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
26206 * config/avr/t-multilib: Regenerate.
26207 * config/avr/avr-tables.opt: Regenerate.
26208 * doc/avr-mmcu.texi: Regenerate.
26210 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
26213 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
26215 2013-07-10 Graham Stott <graham.stott@btinternet.com>
26217 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
26218 the cost of MULT when optimizing for size.
26220 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26222 * config/cr16/cr16-protos.h: Don't include target.h.
26224 2013-07-09 Joseph Myers <joseph@codesourcery.com>
26226 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
26227 adjust register size for TDmode and TFmode for VSX registers.
26229 2013-07-08 Kai Tietz <ktietz@redhat.com>
26232 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
26233 hook_bool_const_tree_true.
26235 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26237 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
26238 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
26239 * config/s390/s390.md: Define FPR*_REGNUM constants.
26240 Fix FPR2_REGNUM constant (18 -> 17).
26241 ("*trunc<BFP:mode><DFP_ALL:mode>2")
26242 ("*trunc<DFP_ALL:mode><BFP:mode>2")
26243 ("trunc<BFP:mode><DFP_ALL:mode>2")
26244 ("trunc<DFP_ALL:mode><BFP:mode>2")
26245 ("*extend<BFP:mode><DFP_ALL:mode>2")
26246 ("*extend<DFP_ALL:mode><BFP:mode>2")
26247 ("extend<BFP:mode><DFP_ALL:mode>2")
26248 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
26251 2013-07-08 Graham Stott <graham.stott@btinternet.com>
26253 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
26255 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26257 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
26258 and cfun_fpr_bit_p to cfun_fpr_save_p.
26259 (s390_frame_area, s390_register_info, s390_frame_info)
26260 (s390_emit_prologue, s390_emit_epilogue)
26261 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
26263 * config/s390/s390.h: Define *_REGNUM macros for floating point
26266 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
26268 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
26270 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
26272 PR rtl-optimization/57786
26273 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
26274 and break out of the loop when it is set to false.
26276 2013-07-08 Jakub Jelinek <jakub@redhat.com>
26279 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
26280 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
26281 (const_int 63)) 0)).
26282 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
26283 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
26284 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
26286 PR rtl-optimization/57829
26287 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
26288 mask bits outside of mode are just sign-extension from mode to HWI.
26290 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
26292 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
26293 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
26294 adjust_address instead of change_address to keep info about alignment.
26295 (emit_strmov): Remove.
26296 (emit_memmov): New function.
26297 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
26298 (expand_movmem_epilogue): Likewise and return updated rtx for
26300 (expand_constant_movmem_prologue): Likewise and return updated rtx for
26301 destination and source.
26302 (decide_alignment): Refactor, handle vector_loop.
26303 (ix86_expand_movmem): Likewise.
26304 (ix86_expand_setmem): Likewise.
26305 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
26307 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
26309 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
26310 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
26312 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
26314 * config/i386/sse.md (sse_movlhps): Change alternative 3
26315 of operand 2 to "m".
26317 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
26320 * config/i386/sse.md (iptr): New mode attribute.
26321 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
26322 (<sse>_vm<plusminus_insn><mode>3): Ditto.
26323 (<sse>_vmmul<mode>3): Ditto.
26324 (<sse>_vmdiv<mode>3): Ditto.
26325 (sse_vmrcpv4sf2): Ditto.
26326 (<sse>_vmsqrt<mode>2): Ditto.
26327 (sse_vmrsqrtv4sf2): Ditto.
26328 (<sse>_vm<code><mode>3): Ditto.
26329 (avx_vmcmp<mode>3): Ditto.
26330 (<sse>_vmmaskcmp<mode>3): Ditto.
26331 (<sse>_comi): Ditto.
26332 (<sse>_ucomi): Ditto.
26333 (*xop_vmfrcz_<mode>): Ditto.
26334 (*fmai_fmadd_<mode>): Ditto.
26335 (*fmai_fmsub_<mode>): Ditto.
26336 (*fmai_fnmadd_<mode>): Ditto.
26337 (*fmai_fnmsub_<mode>): Ditto.
26338 (*fma4i_vmfmadd_<mode>): Ditto.
26339 (*fma4i_vmfmsub_<mode>): Ditto.
26340 (*fma4i_vmfnmadd_<mode>): Ditto.
26341 (*fma4i_vmfnmsub_<mode>): Ditto.
26342 (*xop_vmfrcz_<mode>): Ditto.
26343 (sse_cvtps2pi): Ditto.
26344 (sse_cvttps2pi): Ditto.
26345 (sse_cvtss2si): Ditto.
26346 (sse_cvtss2si_2): Ditto.
26347 (sse_cvtss2siq_2): Ditto.
26348 (sse_cvttss2si): Ditto.
26349 (sse_cvttss2siq): Ditto.
26350 (sse_cvtsd2si): Ditto.
26351 (sse_cvtsd2si_2): Ditto.
26352 (sse_cvtsd2siq_2): Ditto.
26353 (sse_cvttsd2si): Ditto.
26354 (sse_cvttsd2siq): Ditto.
26355 (sse_cvtsd2ss): Ditto.
26356 (sse_cvtss2sd): Ditto.
26357 (avx2_pbroadcast<mode>): Ditto.
26358 (avx2_pbroadcast<mode>_1): Ditto.
26359 (*avx_vperm_broadcast_v4sf): Ditto.
26361 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
26362 (sse_movlhps): Ditto.
26363 (sse_storehps): Ditto.
26364 (sse_loadhps): Ditto.
26365 (sse_storelps): Ditto.
26366 (sse_loadlps): Ditto.
26367 (*vec_concatv4sf): Ditto.
26368 (*vec_interleave_highv2df): Ditto.
26369 (*vec_interleave_lowv2df): Ditto.
26370 (*vec_extractv2df_1_sse): Ditto.
26371 (*vec_extractv2df_0_sse): Ditto.
26372 (sse2_storelpd): Ditto.
26373 (sse2_loadlpd): Ditto.
26374 (sse2_movsd): Ditto.
26375 (*vec_concatv4si): Ditto.
26376 (vec_concatv2di): Ditto.
26378 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
26379 for Intel asm dialect.
26380 (mmx_punpcklwd): Ditto.
26381 (mmx_punpckldq): Ditto.
26383 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
26384 for intel assembler dialect.
26386 2013-07-06 Jakub Jelinek <jakub@redhat.com>
26389 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
26390 for BUILT_IN_C{LZ,LRSB}*.
26391 * tree.h (CASE_INT_FN): Add FN##IMAX case.
26392 * tree-vrp.c (extract_range_basic): Handle
26393 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
26394 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
26395 fall thru to code calling set_value*.
26396 * builtins.c (expand_builtin): Remove *IMAX cases.
26397 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
26398 if width is bigger than 2*HWI.
26400 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
26402 PR rtl-optimization/55342
26403 * lra-int.h (lra_subreg_reload_pseudos): New.
26404 * lra.c: Add undoing optional reloads to the block diagram.
26405 (lra_subreg_reload_pseudos): New.
26406 (lra_optional_reload_pseudos): Change comments.
26407 (lra): Init and clear lra_subreg_reload_pseudos. Clear
26408 lra_optional_reload_pseudos after undo transformations.
26409 * lra-assigns.c (pseudo_prefix_title): New.
26410 (lra_setup_reg_renumber): Use it.
26411 (spill_for): Ditto. Check subreg reload pseudos too.
26412 (assign_by_spills): Consider subreg reload pseudos too.
26413 * lra-constraints.c (simplify_operand_subreg): Use
26414 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
26415 (curr_insn_transform): Recognize and do optional reloads.
26416 (undo_optional_reloads): New.
26417 (lra_undo_inheritance): Call undo_optional_reloads.
26419 2013-07-05 Thomas Quinot <quinot@adacore.com>
26421 * tree-complex.c (expand_complex_operations_1): Fix typo.
26423 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
26425 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
26426 (tune_params): New member 'const vec_costs'.
26427 * config/aarch64/aarch64.c (generic_vector_cost): New.
26428 (generic_tunings): New member 'generic_vector_cost'.
26429 (aarch64_builtin_vectorization_cost): New.
26430 (aarch64_add_stmt_cost): New.
26431 (TARGET_VECTORIZE_ADD_STMT_COST): New.
26432 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
26434 2013-07-03 Jakub Jelinek <jakub@redhat.com>
26437 * config/i386/predicates.md (vsib_address_operand): Disallow
26438 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
26440 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
26442 PR middle-end/55030
26443 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
26444 expand_builtin_setjmp_receiver.
26445 (expand_label): Adjust, call expand_builtin_setjmp_receiver
26446 with NULL for the label parameter.
26447 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
26448 the frame-pointer. Adjust comments.
26449 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
26450 only if LABEL is non-NULL.
26452 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
26454 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
26455 (ARM_ABI_AAPCS64): Ditto.
26457 (ARM_DEFAULT_ABI): Ditto.
26459 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
26461 * config/aarch64/aarch64-builtins.c
26462 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
26463 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
26465 * config/aarch64/aarch64-simd.md
26466 (aarch64_ld1<VALL:mode>): New.
26467 (aarch64_st1<VALL:mode>): Likewise.
26468 * config/aarch64/arm_neon.h
26469 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
26471 2013-07-02 Sriraman Tallam <tmsriram@google.com>
26473 * config/i386/i386.c (gate_insert_vzeroupper): Check if
26475 (ix86_option_override_internal):Turn on all -mavx target flags by
26476 default as they are dependent on AVX anyway.
26478 2013-07-02 Cary Coutant <ccoutant@google.com>
26480 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
26481 deterministic hash.
26482 (loc_checksum_ordered): Likewise.
26483 (hash_loc_operands): Remove inline keyword.
26485 2013-07-02 Jakub Jelinek <jakub@redhat.com>
26487 PR tree-optimization/57741
26488 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
26489 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
26490 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
26491 Allow REAL_CST step_exprs if flag_associative_math.
26492 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
26494 2013-07-02 Ian Bolton <ian.bolton@arm.com>
26496 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
26498 2013-07-02 Ian Bolton <ian.bolton@arm.com>
26500 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
26502 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26504 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
26506 (iorsi3_insn): Likewise.
26507 (arm_xorsi3): Likewise.
26509 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
26511 * arm.md (attribute "wtype"): Delete. Move attribute values from here
26513 (attribute "type"): ... here, and prefix with "wmmx_".
26514 (attribute "core_cycles"): Update for attribute changes.
26515 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
26516 (tbcstv4hi): Likewise.
26517 (tbcstv2si): Likewise.
26518 (iwmmxt_iordi3): Likewise.
26519 (iwmmxt_xordi3): Likewise.
26520 (iwmmxt_anddi3): Likewise.
26521 (iwmmxt_nanddi3): Likewise.
26522 (iwmmxt_arm_movdi): Likewise.
26523 (iwmmxt_movsi_insn): Likewise.
26524 (mov<mode>_internal): Likewise.
26525 (and<mode>3_iwmmxt): Likewise.
26526 (ior<mode>3_iwmmxt): Likewise.
26527 (xor<mode>3_iwmmxt): Likewise.
26528 (add<mode>3_iwmmxt): Likewise.
26529 (ssaddv8qi3): Likewise.
26530 (ssaddv4hi3): Likewise.
26531 (ssaddv2si3): Likewise.
26532 (usaddv8qi3): Likewise.
26533 (usaddv4hi3): Likewise.
26534 (usaddv2si3): Likewise.
26535 (sub<mode>3_iwmmxt): Likewise.
26536 (sssubv8qi3): Likewise.
26537 (sssubv4hi3): Likewise.
26538 (sssubv2si3): Likewise.
26539 (ussubv8qi3): Likewise.
26540 (ussubv4hi3): Likewise.
26541 (ussubv2si3): Likewise.
26542 (mulv4hi3_iwmmxt): Likewise.
26543 (smulv4hi3_highpart): Likewise.
26544 (umulv4hi3_highpart): Likewise.
26545 (iwmmxt_wmacs): Likewise.
26546 (iwmmxt_wmacsz): Likewise.
26547 (iwmmxt_wmacu): Likewise.
26548 (iwmmxt_wmacuz): Likewise.
26549 (iwmmxt_clrdi): Likewise.
26550 (iwmmxt_clrv8qi): Likewise.
26551 (iwmmxt_clr4hi): Likewise.
26552 (iwmmxt_clr2si): Likewise.
26553 (iwmmxt_uavgrndv8qi3): Likewise.
26554 (iwmmxt_uavgrndv4hi3): Likewise.
26555 (iwmmxt_uavgv8qi3): Likewise.
26556 (iwmmxt_uavgv4hi3): Likewise.
26557 (iwmmxt_tinsrb): Likewise.
26558 (iwmmxt_tinsrh): Likewise.
26559 (iwmmxt_tinsrw): Likewise.
26560 (iwmmxt_textrmub): Likewise.
26561 (iwmmxt_textrmsb): Likewise.
26562 (iwmmxt_textrmuh): Likewise.
26563 (iwmmxt_textrmsh): Likewise.
26564 (iwmmxt_textrmw): Likewise.
26565 (iwmxxt_wshufh): Likewise.
26566 (eqv8qi3): Likewise.
26567 (eqv4hi3): Likewise.
26568 (eqv2si3): Likewise.
26569 (gtuv8qi3): Likewise.
26570 (gtuv4hi3): Likewise.
26571 (gtuv2si3): Likewise.
26572 (gtv8qi3): Likewise.
26573 (gtv4hi3): Likewise.
26574 (gtv2si3): Likewise.
26575 (smax<mode>3_iwmmxt): Likewise.
26576 (umax<mode>3_iwmmxt): Likewise.
26577 (smin<mode>3_iwmmxt): Likewise.
26578 (umin<mode>3_iwmmxt): Likewise.
26579 (iwmmxt_wpackhss): Likewise.
26580 (iwmmxt_wpackwss): Likewise.
26581 (iwmmxt_wpackdss): Likewise.
26582 (iwmmxt_wpackhus): Likewise.
26583 (iwmmxt_wpackwus): Likewise.
26584 (iwmmxt_wpackdus): Likewise.
26585 (iwmmxt_wunpckihb): Likewise.
26586 (iwmmxt_wunpckihh): Likewise.
26587 (iwmmxt_wunpckihw): Likewise.
26588 (iwmmxt_wunpckilb): Likewise.
26589 (iwmmxt_wunpckilh): Likewise.
26590 (iwmmxt_wunpckilw): Likewise.
26591 (iwmmxt_wunpckehub): Likewise.
26592 (iwmmxt_wunpckehuh): Likewise.
26593 (iwmmxt_wunpckehuw): Likewise.
26594 (iwmmxt_wunpckehsb): Likewise.
26595 (iwmmxt_wunpckehsh): Likewise.
26596 (iwmmxt_wunpckehsw): Likewise.
26597 (iwmmxt_wunpckelub): Likewise.
26598 (iwmmxt_wunpckeluh): Likewise.
26599 (iwmmxt_wunpckeluw): Likewise.
26600 (iwmmxt_wunpckelsb): Likewise.
26601 (iwmmxt_wunpckelsh): Likewise.
26602 (iwmmxt_wunpckelsw): Likewise.
26603 (ror<mode>3): Likewise.
26604 (ashr<mode>3_iwmmxt): Likewise.
26605 (lshr<mode>3_iwmmxt): Likewise.
26606 (ashl<mode>3_iwmmxt): Likewise.
26607 (ror<mode>3_di): Likewise.
26608 (ashr<mode>3_di): Likewise.
26609 (lshr<mode>3_di): Likewise.
26610 (ashl<mode>3_di): Likewise.
26611 (iwmmxt_wmadds): Likewise.
26612 (iwmmxt_wmaddu): Likewise.
26613 (iwmmxt_tmia): Likewise.
26614 (iwmmxt_tmiaph): Likewise.
26615 (iwmmxt_tmiabb): Likewise.
26616 (iwmmxt_tmiatb): Likewise.
26617 (iwmmxt_tmiabt): Likewise.
26618 (iwmmxt_tmiatt): Likewise.
26619 (iwmmxt_tmovmskb): Likewise.
26620 (iwmmxt_tmovmskh): Likewise.
26621 (iwmmxt_tmovmskw): Likewise.
26622 (iwmmxt_waccb): Likewise.
26623 (iwmmxt_wacch): Likewise.
26624 (iwmmxt_waccw): Likewise.
26625 (iwmmxt_waligni): Likewise.
26626 (iwmmxt_walignr): Likewise.
26627 (iwmmxt_walignr0): Likewise.
26628 (iwmmxt_walignr1): Likewise.
26629 (iwmmxt_walignr2): Likewise.
26630 (iwmmxt_walignr3): Likewise.
26631 (iwmmxt_wsadb): Likewise.
26632 (iwmmxt_wsadh): Likewise.
26633 (iwmmxt_wsadbz): Likewise.
26634 (iwmmxt_wsadhz): Likewise.
26635 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
26636 (iwmmxt_wabsdiffb): Likewise.
26637 (iwmmxt_wabsdiffh): Likewise.
26638 (iwmmxt_wabsdiffw): Likewise.
26639 (iwmmxt_waddsubhx): Likewise
26640 (iwmmxt_wsubaddhx): Likewise.
26641 (addc<mode>3): Likewise.
26642 (iwmmxt_avg4): Likewise.
26643 (iwmmxt_avg4r): Likewise.
26644 (iwmmxt_wmaddsx): Likewise.
26645 (iwmmxt_wmaddux): Likewise.
26646 (iwmmxt_wmaddsn): Likewise.
26647 (iwmmxt_wmaddun): Likewise.
26648 (iwmmxt_wmulwsm): Likewise.
26649 (iwmmxt_wmulwum): Likewise.
26650 (iwmmxt_wmulsmr): Likewise.
26651 (iwmmxt_wmulumr): Likewise.
26652 (iwmmxt_wmulwsmr): Likewise.
26653 (iwmmxt_wmulwumr): Likewise.
26654 (iwmmxt_wmulwl): Likewise.
26655 (iwmmxt_wqmulm): Likewise.
26656 (iwmmxt_wqmulwm): Likewise.
26657 (iwmmxt_wqmulmr): Likewise.
26658 (iwmmxt_wqmulwmr): Likewise.
26659 (iwmmxt_waddbhusm): Likewise.
26660 (iwmmxt_waddbhusl): Likewise.
26661 (iwmmxt_wqmiabb): Likewise.
26662 (iwmmxt_wqmiabt): Likewise.
26663 (iwmmxt_wqmiatb): Likewise.
26664 (iwmmxt_wqmiatt): Likewise.
26665 (iwmmxt_wqmiabbn): Likewise.
26666 (iwmmxt_wqmiabtn): Likewise.
26667 (iwmmxt_wqmiatbn): Likewise.
26668 (iwmmxt_wqmiattn): Likewise.
26669 (iwmmxt_wmiabb): Likewise.
26670 (iwmmxt_wmiabt): Likewise.
26671 (iwmmxt_wmiatb): Likewise.
26672 (iwmmxt_wmiatt): Likewise.
26673 (iwmmxt_wmiabbn): Likewise.
26674 (iwmmxt_wmiabtn): Likewise.
26675 (iwmmxt_wmiatbn): Likewise.
26676 (iwmmxt_wmiattn): Likewise.
26677 (iwmmxt_wmiawbb): Likewise.
26678 (iwmmxt_wmiawbt): Likewise.
26679 (iwmmxt_wmiawtb): Likewise.
26680 (iwmmxt_wmiawtt): Likewise.
26681 (iwmmxt_wmiawbbn): Likewise.
26682 (iwmmxt_wmiawbtn): Likewise.
26683 (iwmmxt_wmiawtbn): Likewise.
26684 (iwmmxt_wmiawttn): Likewise.
26685 (iwmmxt_wmerge): Likewise.
26686 (iwmmxt_tandc<mode>3): Likewise.
26687 (iwmmxt_torc<mode>3): Likewise.
26688 (iwmmxt_torvsc<mode>3): Likewise.
26689 (iwmmxt_textrc<mode>3): Likewise.
26690 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
26691 (wmmxt_pack): Likewise.
26692 (wmmxt_mult_c1): Likewise.
26693 (wmmxt_mult_c2): Likewise.
26694 (wmmxt_alu_c1): Likewise.
26695 (wmmxt_alu_c2): Likewise.
26696 (wmmxt_alu_c3): Likewise.
26697 (wmmxt_transfer_c1): Likewise.
26698 (wmmxt_transfer_c2): Likewise.
26699 (wmmxt_transfer_c3): Likewise.
26700 (marvell_f_iwmmxt_wstr): Likewise.
26701 (marvell_f_iwmmxt_wldr): Likewise.
26703 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
26705 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
26707 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
26710 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
26711 * lra-constraints.c (need_for_split_p): Check call used hard regs
26712 living through calls.
26714 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
26715 call used regs for call insn.
26717 2013-06-28 Jakub Jelinek <jakub@redhat.com>
26720 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
26721 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
26723 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
26725 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
26727 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
26729 * lra-constraints.c (need_for_split_p): Check call used hard regs
26730 living through calls.
26732 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
26735 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
26736 to tie with any other modes. Eliminate Altivec vector mode tests,
26737 since these are a subset of ALTIVEC or VSX vector modes. Simplify
26738 code, to return 0 if testing MODE2 for a condition, if we've
26739 already tested MODE1 for the same condition.
26741 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
26743 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
26746 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
26748 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
26749 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
26751 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
26753 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
26755 (aarch64_symbolic_constant_p): Remove.
26756 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
26757 static. Fix line length and white space.
26758 (aarch64_symbolic_constant_p): Remove.
26759 * config/aarch64/predicates.md (aarch64_valid_symref):
26760 Use aarch64_classify_symbol_expression.
26762 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26764 * config/arm/constraints.md (Ts): New constraint.
26765 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
26767 (compare_scc): Use "Ts" constraint for operand 0.
26768 (ior_scc_scc): Likewise.
26769 (and_scc_scc): Likewise.
26770 (and_scc_scc_nodom): Likewise.
26771 (ior_scc_scc_cmp): Likewise for operand 7.
26772 (and_scc_scc_cmp): Likewise.
26773 * config/arm/thumb2.md (thumb2_movsi_insn):
26774 Add alternatives for 16-bit encodings.
26775 (thumb2_movhi_insn): Likewise.
26776 (thumb2_movsicc_insn): Likewise.
26777 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
26778 (thumb2_negscc): Use "Ts" constraint.
26779 Move mvn instruction outside cond_exec block.
26780 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
26781 for 16-bit encodings.
26783 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26785 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
26787 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
26788 (mulsi3subsi): Likewise.
26789 (mulsidi3adddi): Likewise.
26790 (mulsidi3_v6): Likewise.
26791 (umulsidi3_v6): Likewise.
26792 (umulsidi3adddi_v6): Likewise.
26793 (smulsi3_highpart_v6): Likewise.
26794 (umulsi3_highpart_v6): Likewise.
26795 (mulhisi3tb): Likewise.
26796 (mulhisi3bt): Likewise.
26797 (mulhisi3tt): Likewise.
26798 (maddhisi4): Likewise.
26799 (maddhisi4tb): Likewise.
26800 (maddhisi4tt): Likewise.
26801 (maddhidi4): Likewise.
26802 (maddhidi4tb): Likewise.
26803 (maddhidi4tt): Likewise.
26804 (zeroextractsi_compare0_scratch): Likewise.
26805 (insv_zero): Likewise.
26806 (insv_t2): Likewise.
26807 (anddi_notzesidi_di): Likewise.
26808 (anddi_notsesidi_di): Likewise.
26809 (andsi_notsi_si): Likewise.
26810 (iordi_zesidi_di): Likewise.
26811 (xordi_zesidi_di): Likewise.
26812 (andsi_iorsi3_notsi): Likewise.
26813 (smax_0): Likewise.
26814 (smax_m1): Likewise.
26815 (smin_0): Likewise.
26816 (not_shiftsi): Likewise.
26817 (unaligned_loadsi): Likewise.
26818 (unaligned_loadhis): Likewise.
26819 (unaligned_loadhiu): Likewise.
26820 (unaligned_storesi): Likewise.
26821 (unaligned_storehi): Likewise.
26822 (extv_reg): Likewise.
26823 (extzv_t2): Likewise.
26824 (divsi3): Likewise.
26825 (udivsi3): Likewise.
26826 (arm_zero_extendhisi2addsi): Likewise.
26827 (arm_zero_extendqisi2addsi): Likewise.
26828 (compareqi_eq0): Likewise.
26829 (arm_extendhisi2_v6): Likewise.
26830 (arm_extendqisi2addsi): Likewise.
26831 (arm_movt): Likewise.
26832 (thumb2_ldrd): Likewise.
26833 (thumb2_ldrd_base): Likewise.
26834 (thumb2_ldrd_base_neg): Likewise.
26835 (thumb2_strd): Likewise.
26836 (thumb2_strd_base): Likewise.
26837 (thumb2_strd_base_neg): Likewise.
26838 (arm_negsi2): Add alternative for 16-bit encoding.
26839 (arm_one_cmplsi2): Likewise.
26841 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26843 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
26844 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
26845 (movdfcc): Likewise.
26846 * config/arm/vfp.md (*thumb2_movsf_vfp):
26847 Disable predication for arm_restrict_it.
26848 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
26849 (*thumb2_movdfcc_vfp): Likewise.
26850 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
26851 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
26852 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
26853 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
26854 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
26855 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
26856 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
26857 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
26858 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
26859 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
26860 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
26861 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
26862 Disable predication for arm_restrict_it.
26864 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
26866 * config/i386/bmiintrin.h (_bextr_u32): New.
26867 (_bextr_u64): Ditto.
26869 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
26871 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
26872 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
26873 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
26874 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
26875 * config/mips/n32-elf.h: ...this new file.
26877 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
26880 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
26881 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
26883 2013-06-27 Catherine Moore <clm@codesourcery.com>
26885 * config/mips/mips-tables.opt: Regenerate.
26886 * config/mips/mips-cpus.def: Add m14ke and m14kec.
26887 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
26888 * doc/invoke.texi: Add -m14kc.
26890 2013-06-27 Jakub Jelinek <jakub@redhat.com>
26893 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
26894 constraints of operand 1 and 2.
26897 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
26898 to match RTL canonicalization. Swap predicates and
26899 constraints of operand 1 and 2.
26901 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
26903 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
26904 Process OP_INOUT regs for splitting too.
26906 2013-06-27 Jakub Jelinek <jakub@redhat.com>
26908 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
26909 decl before the loop, initialize to NULL.
26910 (vectorizable_load): Initialize ptr_incr to NULL.
26912 2013-06-27 Martin Jambor <mjambor@suse.cz>
26915 * ipa-ref.h (ipa_maybe_record_reference): Declare.
26916 * ipa-ref.c (ipa_maybe_record_reference): New function.
26917 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
26918 * ipa-cp.c (create_specialized_node): Record potential references from
26920 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
26922 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
26924 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
26925 parameter 'mode' of type 'enum machine_mode mode'; change to pass
26926 'mode' to force_reg.
26927 (aarch64_add_offset): Update calls to aarch64_force_temporary.
26928 (aarch64_expand_mov_immediate): Likewise.
26930 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
26932 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
26933 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
26935 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26937 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
26938 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
26939 (struct machine_function): Add tbegin_p.
26940 (s390_canonicalize_comparison): Fold CC mode compares to
26941 conditional jump if possible.
26942 (s390_emit_jump): Return the emitted jump.
26943 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
26944 Handle CCRAWmode compares.
26945 (s390_option_override): Default to -mhtm if available.
26946 (s390_reg_clobbered_rtx): Handle floating point regs as well.
26947 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
26948 FPRs instead of df_regs_ever_live_p.
26949 (s390_optimize_nonescaping_tx): New function.
26950 (s390_init_frame_layout): Extend clobbered_regs array to cover
26952 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
26953 (s390_expand_tbegin): New function.
26954 (enum s390_builtin): New enum definition.
26955 (code_for_builtin): New array definition.
26956 (s390_init_builtins): New function.
26957 (s390_expand_builtin): New function.
26958 (TARGET_INIT_BUILTINS): Define.
26959 (TARGET_EXPAND_BUILTIN): Define.
26960 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
26961 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
26962 (s390_alc_comparison): Likewise.
26963 * config/s390/s390-modes.def: Add CCRAWmode.
26964 * config/s390/s390.h (processor_flags): Add PF_TX.
26965 (TARGET_CPU_HTM): Define macro.
26966 (TARGET_HTM): Define macro.
26967 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
26968 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
26969 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
26970 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
26971 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
26972 (TBEGIN_MASK, TBEGINC_MASK): New constants.
26973 ("*cc_to_int"): Move up.
26974 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
26975 constants other than 0.
26976 ("*ccraw_to_int"): New insn and splitter definition.
26977 ("tbegin", "tbegin_nofloat", "tbegin_retry")
26978 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
26979 ("tx_assist"): New expander.
26980 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
26981 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
26982 * config/s390/s390.opt: Add -mhtm option.
26983 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
26984 * config/s390/htmxlintrin.h: New file.
26985 * config/s390/htmintrin.h: New file.
26986 * config/s390/s390intrin.h: New file.
26987 * doc/extend.texi: Document htm builtins.
26988 * config.gcc: Add the new header files to extra_headers.
26990 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
26992 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
26993 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
26995 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
26996 Pat Haugen <pthaugen@us.ibm.com>
26997 Peter Bergner <bergner@vnet.ibm.com>
26999 * config/rs6000/power8.md: New.
27000 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
27001 setting for power8 entry.
27002 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
27003 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
27004 test for Power4/Power5 only.
27005 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
27007 (force_new_group): Adjust comment.
27008 * config/rs6000/rs6000.md: Include power8.md.
27010 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
27012 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
27013 * config/arm/arm-protos.h (arm_max_conditional_execute): New
27015 (tune_params): Update comment.
27016 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
27017 (arm_max_conditional_execute): New function.
27018 (thumb2_final_prescan_insn): Use max_insn_skipped and
27019 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
27021 2013-06-25 Jakub Jelinek <jakub@redhat.com>
27023 PR tree-optimization/57705
27024 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
27025 SSA_NAME step, provided that it is not defined inside the loop.
27026 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
27027 (get_initial_def_for_induction): Handle SSA_NAME IV step.
27029 2013-06-25 Martin Jambor <mjambor@suse.cz>
27031 PR middle-end/57670
27032 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
27033 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
27035 (ipa_note_param_call): Initialize member_ptr flag.
27036 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
27037 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
27038 (ipa_write_indirect_edge_info): Stream member_ptr flag.
27039 (ipa_read_indirect_edge_info): Likewise.
27041 2013-06-25 Richard Biener <rguenther@suse.de>
27043 PR middle-end/56977
27044 * passes.c (init_optimization_passes): Move pass_fold_builtins
27045 and pass_dce earlier with -Og.
27047 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
27049 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
27050 <BIT_FIELD_REF>: Remove trailing TAB.
27051 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
27054 2013-06-24 Martin Jambor <mjambor@suse.cz>
27056 PR tree-optimization/57358
27057 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
27058 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
27059 (ipa_analyze_params_uses): Generate pessimistic info when true.
27061 2013-06-24 Martin Jambor <mjambor@suse.cz>
27063 PR tree-optimization/57539
27064 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
27065 global.inlined_to of the new node to it. All callers changed.
27066 * ipa-inline-transform.c (clone_inlined_nodes): New variable
27067 inlining_into, pass it to cgraph_clone_node.
27068 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
27069 ipa_free_edge_args_substructures.
27070 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
27071 rdesc linked list. Do not assert rdesc edges have inlined caller.
27072 Assert we have found an rdesc in the rdesc list.
27074 2013-06-24 Richard Biener <rguenther@suse.de>
27076 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
27077 (pointer_set_lookup): Declare.
27078 (class pointer_map): New template class implementing a
27079 generic pointer to T map.
27080 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
27081 pointer_map<T>::contains, pointer_map<T>::insert,
27082 pointer_map<T>::traverse): New functions.
27083 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
27084 (pointer_set_lookup): New function.
27085 (pointer_set_contains): Use pointer_set_lookup.
27086 (pointer_set_insert): Likewise.
27087 (insert_aux): Remove.
27088 (struct pointer_map_t): Embed a pointer_set_t.
27089 (pointer_map_create): Adjust.
27090 (pointer_map_destroy): Likewise.
27091 (pointer_map_contains): Likewise.
27092 (pointer_map_insert): Likewise.
27093 (pointer_map_traverse): Likewise.
27094 * tree-streamer.h (struct streamer_tree_cache_d): Use a
27095 pointer_map<unsigned> instead of a pointer_map_t.
27096 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
27097 (streamer_tree_cache_lookup): Likewise.
27098 (streamer_tree_cache_create): Likewise.
27099 (streamer_tree_cache_delete): Likewise.
27100 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
27101 pointer_map<unsigned> instead of a pointer_map_t.
27102 (lto_init_tree_ref_encoder): Adjust.
27103 (lto_destroy_tree_ref_encoder): Likewise.
27104 * lto-section-out.c (lto_output_decl_index): Likewise.
27105 (lto_record_function_out_decl_state): Likewise.
27106 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
27108 2013-06-24 Richard Biener <rguenther@suse.de>
27110 PR tree-optimization/57488
27111 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
27113 2013-06-24 Alan Modra <amodra@gmail.com>
27115 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
27116 (gen_easy_altivec_constant): Likewise.
27117 * config/rs6000/predicates.md (easy_vector_constant_add_self,
27118 easy_vector_constant_msb): Likewise.
27120 2013-06-23 Jakub Jelinek <jakub@redhat.com>
27123 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
27124 add missing return true.
27126 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
27129 * config/sh/predicates.md (general_extend_operand): Invoke
27130 general_movsrc_operand for memory operands.
27131 (general_movsrc_operand): Allow reg+reg addressing, do not use
27132 general_operand for memory operands.
27134 2013-06-23 Sriraman Tallam <tmsriram@google.com>
27136 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
27137 when current target options does not apply.
27138 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
27139 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
27140 * config/i386/bmiintrin.h: Pass appropriate target
27141 attributes to header.
27142 * config/i386/mmintrin.h: Ditto.
27143 * config/i386/nmmintrin.h: Ditto.
27144 * config/i386/avx2intrin.h: Ditto.
27145 * config/i386/fxsrintrin.h: Ditto.
27146 * config/i386/tbmintrin.h: Ditto.
27147 * config/i386/xsaveintrin.h: Ditto.
27148 * config/i386/f16cintrin.h: Ditto.
27149 * config/i386/xtestintrin.h: Ditto.
27150 * config/i386/xsaveoptintrin.h: Ditto.
27151 * config/i386/bmi2intrin.h: Ditto.
27152 * config/i386/lzcntintrin.h: Ditto.
27153 * config/i386/smmintrin.h: Ditto.
27154 * config/i386/wmmintrin.h: Ditto.
27155 * config/i386/x86intrin.h: Remove all header include guards.
27156 * config/i386/prfchwintrin.h: Ditto.
27157 * config/i386/pmmintrin.h: Ditto.
27158 * config/i386/tmmintrin.h: Ditto.
27159 * config/i386/xmmintrin.h: Ditto.
27160 * config/i386/popcntintrin.h: Ditto.
27161 * config/i386/rdseedintrin.h: Ditto.
27162 * config/i386/ammintrin.h: Ditto.
27163 * config/i386/emmintrin.h: Ditto.
27164 * config/i386/immintrin.h: Remove all header include guards.
27165 * config/i386/fma4intrin.h: Ditto.
27166 * config/i386/lwpintrin.h: Ditto.
27167 * config/i386/xopintrin.h: Ditto.
27168 * config/i386/ia32intrin.h: Ditto.
27169 * config/i386/avxintrin.h: Ditto.
27170 * config/i386/rtmintrin.h: Ditto.
27171 * config/i386/fmaintrin.h: Ditto.
27172 * config/i386/mm3dnow.h: Ditto.
27174 2013-06-22 Sriraman Tallam <tmsriram@google.com>
27176 * common/config/i386/i386-common.c: Handle LZCNT.
27178 2013-06-22 Andi Kleen <ak@linux.intel.com>
27180 * doc/extend.texi: Use __atomic_store_n instead of
27181 __atomic_store in HLE example.
27183 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
27185 * config/sh/sh.c: Remove <cstdlib> workaround.
27187 2013-06-21 Andi Kleen <ak@linux.intel.com>
27189 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
27191 2013-06-21 Andi Kleen <ak@linux.intel.com>
27193 * doc/extend.texi: Document that __atomic_clear and
27194 __atomic_test_and_set should only be used with bool.
27196 2013-06-20 Jan Hubicka <jh@suse.cz>
27198 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
27199 types_same_for_odr.
27200 * tree.c (decls_same_for_odr): New function.
27201 (same_for_edr): New function.
27202 (types_same_for_odr): New function.
27203 (get_binfo_at_offset): Use it.
27204 * tree.h (types_same_for_odr): Declare.
27206 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
27207 Jason Merrill <jason@redhat.com>
27209 * system.h: Include <cstdlib> as well as <stdlib.h>.
27211 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
27214 * config/i386/i386.c (construct_container): Report error if
27215 long double is used with disabled x87 float returns.
27217 2013-06-20 Jan Hubicka <jh@suse.cz>
27219 * lto-cgraph.c (input_symtab): Do not set cgraph state.
27221 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
27223 PR rtl-optimization/57425
27224 PR rtl-optimization/57569
27225 * alias.c (write_dependence_p): Remove parameters mem_mode and
27226 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
27227 Changed all callers.
27228 (canon_anti_dependence): Get comments and semantics in sync.
27229 Add parameter mem_canonicalized. Changed all callers.
27230 * rtl.h (canon_anti_dependence): Update prototype.
27232 2013-06-20 Richard Biener <rguenther@suse.de>
27234 * data-streamer-in.c (streamer_read_uhwi): Optimize single
27235 byte case, inline streamer_read_uchar and defer section
27238 2013-06-20 Richard Biener <rguenther@suse.de>
27240 PR tree-optimization/57584
27241 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
27242 SSA names into the expanded expression that take part in
27243 abnormal coalescing.
27245 2013-06-19 Sharad Singhai <singhai@google.com>
27247 * gcov.c (print_usage): Handle new option.
27248 (process_args): Ditto.
27249 (get_gcov_intermediate_filename): New function.
27250 (output_intermediate_file): New function.
27251 (output_gcov_file): New function
27252 (generate_results): Handle new option.
27253 (release_function): Relase demangled name.
27254 (read_graph_file): Handle demangled name.
27255 (output_lines): Ditto.
27256 * doc/gcov.texi: Document gcov intermediate format.
27258 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
27261 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
27262 (lra_emit_add): Use the functions. Add comment about Y as an
27265 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
27268 * collect2.c (collect_atexit): New.
27269 (collect_exit): Delete.
27270 (main): Register collect_atexit with atexit.
27271 (collect_wait): Change collect_exit to exit.
27273 * collect2.h (collect_exit): Delete.
27274 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
27276 2013-06-19 Wei Mi <wmi@google.com>
27278 PR rtl-optimization/57518
27279 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
27280 if regno is used in paradoxical subreg.
27281 (update_equiv_regs): Check pdx_subregs[regno] before
27282 set a reg to be equivalent with a mem.
27284 2013-06-19 Matthias Klose <doko@ubuntu.com>
27287 * file-find.h (find_a_file): Add a mode parameter.
27288 * file-find.c (find_a_file): Likewise.
27289 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
27290 with X_OK for the executables.
27291 * collect2.c (main): Call find_a_file with X_OK.
27293 2013-06-19 Steve Ellcey <sellcey@mips.com>
27296 * config/mips/mips.md (casesi_internal_mips16_<mode>):
27297 Use NEXT_INSN instead of next_real_insn.
27299 2013-06-19 Jan Hubicka <jh@suse.cz>
27301 * cgraph.h (const_value_known_p): Replace by ...
27302 (ctor_for_folding): .. this one.
27303 * cgraphunit.c (process_function_and_variable_attributes): Use it.
27304 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
27305 * expr.c (expand_expr_real_1): Likewise.
27306 (string_constant): Likewise.
27307 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
27308 * ipa.c (process_references): Likewise.
27309 (symtab_remove_unreachable_nodes): Likewise.
27310 * ipa-inline-analysis.c (param_change_prob): Likewise.
27311 * gimple-fold.c (canonicalize_constructor_val): Likewise.
27312 (get_base_constructor): Likwise.
27313 * varpool.c (varpool_remove_node): Likewise.
27314 (varpool_remove_initializer): LIkewise.
27315 (dump_varpool_node): LIkwise.
27316 (const_value_known_p): Rewrite to ...
27317 (ctor_for_folding): ... this one.
27319 2013-06-19 Jakub Jelinek <jakub@redhat.com>
27322 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
27323 PERSONALITY in $PATH derived prefixes.
27325 2013-06-19 Jeff Law <law@redhat.com>
27327 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
27330 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
27331 (simplify_bitwise_binary): Use it to simpify certain binary ops on
27334 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
27336 * config/arm/vfp.md: Move VFP instruction classification documentation
27338 * config/arm/arm.md: ... here. Update instruction classification
27341 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
27343 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
27344 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
27345 pattern. Use more efficient sequences on ARMv5 and Thumb2.
27347 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
27350 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
27351 with NEXT_INSN. Use tablejump_p to check for jump table data
27354 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
27357 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
27358 that now in C++ the value is correct per the C++ standards.
27360 2013-06-19 Richard Biener <rguenther@suse.de>
27362 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
27363 for global context.
27365 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27368 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27371 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
27372 with next_active_insn.
27374 2013-06-18 Sriraman Tallam <tmsriram@google.com>
27376 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
27377 functions are inlined during failures to flag an error.
27378 * tree-inline.c (expand_call_inline): Allow the error to be flagged
27379 in early inline pass.
27381 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
27383 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
27386 2013-06-18 Julian Brown <julian@codesourcery.com>
27388 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
27389 Permit virtual register pre-reload if !strict.
27390 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
27392 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
27394 * config/arm/neon.md (movmisalign<mode>): Use
27395 neon_perm_struct_or_reg_operand instead of
27396 neon_struct_or_register_operand.
27397 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
27398 neon_permissive_struct_operand instead of neon_struct_operand.
27399 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
27400 neon_vector_mem_operand.
27401 * config/arm/predicates.md (neon_struct_operand): Adjust call to
27402 neon_vector_mem_operand.
27403 (neon_permissive_struct_operand): New.
27404 (neon_struct_or_register_operand): Rename to...
27405 (neon_perm_struct_or_reg_operand): This. Adjust call to
27406 neon_vector_mem_operand.
27408 2013-06-18 Richard Biener <rguenther@suse.de>
27410 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
27411 * lto-streamer.h: Include pointer-set.h.
27412 (struct lto_decl_slot): Remove.
27413 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
27414 Remove next_index entry.
27415 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
27416 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
27417 (lto_init_tree_ref_encoder): Adjust.
27418 (lto_destroy_tree_ref_encoder): Likewise.
27419 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
27420 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
27421 (lto_output_decl_index): Adjust.
27422 (lto_new_out_decl_state): Likewise.
27423 (lto_record_function_out_decl_state): Likewise.
27424 * lto-streamer-out.c (copy_function): Likewise.
27426 2013-06-18 Richard Biener <rguenther@suse.de>
27428 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
27429 * cgraphunit.c: Include cfgloop.h.
27430 (init_lowered_empty_function): Initialize the loop tree.
27431 (assemble_thunk): Insert new BBs into loops.
27433 2013-06-18 Richard Biener <rguenther@suse.de>
27435 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
27436 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
27437 the map from cache entry to cache index optional.
27438 (streamer_tree_cache_replace_tree): Adjust accordingly.
27439 (streamer_tree_cache_append): Likewise.
27440 (streamer_tree_cache_delete): Likewise.
27441 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
27442 streamer cache map from cache entry to cache index.
27443 * lto-streamer-out.c (create_output_block): Adjust.
27445 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
27447 * config/arm/arm.md (attribute "insn"): Move multiplication and
27448 division attributes to...
27449 (attribute "type"): ... here. Remove mult.
27450 (attribute "mul32"): New attribute.
27451 (attribute "mul64"): Add umaal.
27452 (*arm_mulsi3): Update attributes.
27453 (*arm_mulsi3_v6): Likewise.
27454 (*thumb_mulsi3): Likewise.
27455 (*thumb_mulsi3_v6): Likewise.
27456 (*mulsi3_compare0): Likewise.
27457 (*mulsi3_compare0_v6): Likewise.
27458 (*mulsi_compare0_scratch): Likewise.
27459 (*mulsi_compare0_scratch_v6): Likewise.
27460 (*mulsi3addsi): Likewise.
27461 (*mulsi3addsi_v6): Likewise.
27462 (*mulsi3addsi_compare0): Likewise.
27463 (*mulsi3addsi_compare0_v6): Likewise.
27464 (*mulsi3addsi_compare0_scratch): Likewise.
27465 (*mulsi3addsi_compare0_scratch_v6): Likewise.
27466 (*mulsi3subsi): Likewise.
27467 (*mulsidi3adddi): Likewise.
27468 (*mulsi3addsi_v6): Likewise.
27469 (*mulsidi3adddi_v6): Likewise.
27470 (*mulsidi3_nov6): Likewise.
27471 (*mulsidi3_v6): Likewise.
27472 (*umulsidi3_nov6): Likewise.
27473 (*umulsidi3_v6): Likewise.
27474 (*umulsidi3adddi): Likewise.
27475 (*umulsidi3adddi_v6): Likewise.
27476 (*smulsi3_highpart_nov6): Likewise.
27477 (*smulsi3_highpart_v6): Likewise.
27478 (*umulsi3_highpart_nov6): Likewise.
27479 (*umulsi3_highpart_v6): Likewise.
27480 (mulhisi3): Likewise.
27481 (*mulhisi3tb): Likewise.
27482 (*mulhisi3bt): Likewise.
27483 (*mulhisi3tt): Likewise.
27484 (maddhisi4): Likewise.
27485 (*maddhisi4tb): Likewise.
27486 (*maddhisi4tt): Likewise.
27487 (maddhidi4): Likewise.
27488 (*maddhidi4tb): Likewise.
27489 (*maddhidi4tt): Likewise.
27490 (divsi3): Likewise.
27491 (udivsi3): Likewise.
27492 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
27493 (thumb2_mulsi_short_compare0): Likewise.
27494 (thumb2_mulsi_short_compare0_scratch): Likewise.
27495 * config/arm/arm1020e.md (1020mult1): Update attribute change.
27496 (1020mult2): Likewise.
27497 (1020mult3): Likewise.
27498 (1020mult4): Likewise.
27499 (1020mult5): Likewise.
27500 (1020mult6): Likewise.
27501 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
27503 (cortex_a15_mult64): Likewise.
27504 (cortex_a15_sdiv): Likewise.
27505 (cortex_a15_udiv): Likewise.
27506 * config/arm/arm1026ejs.md (mult1): Update attribute change.
27512 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
27513 (pj4_ir_div): Likewise.
27514 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
27515 (11_mult2): Likewise.
27516 (11_mult3): Likewise.
27517 (11_mult4): Likewise.
27518 (11_mult5): Likewise.
27519 (11_mult6): Likewise.
27520 (11_mult7): Likewise.
27521 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
27522 (cortex_a8_mla): Likewise.
27523 (cortex_a8_mull): Likewise.
27524 (cortex_a8_smulwy): Likewise.
27525 (cortex_a8_smlald): Likewise.
27526 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
27527 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
27528 (cortex_r4_mul_3): Likewise.
27529 (cortex_r4_mla_4): Likewise.
27530 (cortex_r4_mla_3): Likewise.
27531 (cortex_r4_smlald): Likewise.
27532 (cortex_r4_mull): Likewise.
27533 (cortex_r4_sdiv): Likewise.
27534 (cortex_r4_udiv): Likewise.
27535 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
27536 (cortex_a7_idiv): Likewise.
27537 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
27538 (9_mult2): Likewise.
27539 (9_mult3): Likewise.
27540 (9_mult4): Likewise.
27541 (9_mult5): Likewise.
27542 (9_mult6): Likewise.
27543 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
27544 (cortex_a53_sdiv): Likewise.
27545 (cortex_a53_udiv): Likewise.
27546 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
27547 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
27548 (mp626_mult2): Likewise.
27549 (mp626_mult3): Likewise.
27550 (mp626_mult4): Likewise.
27551 * config/arm/fa526.md (526_mult1): Update attribute change.
27552 (526_mult2): Likewise.
27553 * config/arm/arm-generic.md (mult): Update attribute change.
27554 (mult_ldsched_strongarm): Likewise.
27555 (mult_ldsched): Likewise.
27556 (multi_cycle): Likewise.
27557 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
27558 * config/arm/fa606te.md (606te_mult1): Update attribute change.
27559 (606te_mult2): Likewise.
27560 (606te_mult3): Likewise.
27561 (606te_mult4): Likewise.
27562 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
27563 (cortex_a9_mac16): Likewise.
27564 (cortex_a9_multiply): Likewise.
27565 (cortex_a9_mac): Likewise.
27566 (cortex_a9_multiply_long): Likewise.
27567 * config/arm/fa626te.md (626te_mult1): Update attribute change.
27568 (626te_mult2): Likewise.
27569 (626te_mult3): Likewise.
27570 (626te_mult4): Likewise.
27572 2013-06-18 Richard Biener <rguenther@suse.de>
27575 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
27577 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27580 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
27581 with next_active_insn.
27583 2013-06-18 Alan Modra <amodra@gmail.com>
27585 * config/rs6000/rs6000.h (enum data_align): New.
27586 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
27587 (DATA_ABI_ALIGNMENT): Define.
27588 (CONSTANT_ALIGNMENT): Correct comment.
27589 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
27590 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
27592 2013-06-17 David Malcolm <dmalcolm@redhat.com>
27594 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
27595 ATTRIBUTE_UNUSED marking.
27597 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
27599 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
27600 alternative and update.
27601 (aarch64_dup_lanedi): Delete.
27602 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
27603 * config/aarch64/aarch64-simd-builtins.def: Update.
27605 2013-06-17 Richard Biener <rguenther@suse.de>
27607 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
27608 (lto_input_scc): Declare.
27609 (lto_input_tree_1): Likewise.
27610 (struct lto_stats_d): Add num_tree_bodies_output and
27611 num_pickle_refs_output.
27612 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
27613 (lto_read_tree_1): Split out from ...
27614 (lto_read_tree): ... this.
27615 (lto_input_scc): New function.
27616 (lto_input_tree_1): Split out from ...
27617 (lto_input_tree): ... this. Handle LTO_tree_scc.
27618 (lto_data_in_create): Create the streamer cache without hashes.
27619 * lto-streamer-out.c (create_output_block): Create the streamer
27620 cache with hashes when not doing WPA.
27621 (lto_write_tree_1): Split out from ...
27622 (lto_write_tree): ... this.
27623 (get_symbol_initial_value): New function.
27624 (lto_output_tree_1): Split out from ...
27625 (lto_output_tree): ... this. Write trees as series of SCCs
27626 using a DFS walk via DFS_write_tree.
27627 (struct sccs, struct scc_entry): New types.
27628 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
27629 (DFS_write_tree_body): New function.
27630 (DFS_write_tree): Likewise.
27631 (hash_tree): Likewise.
27632 (scc_entry_compare): Likewise.
27633 (hash_scc): Likewise.
27634 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
27635 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
27636 TREE_CHAIN as regular reference.
27637 (streamer_read_integer_cst): Remove.
27638 (streamer_get_pickled_tree): Adjust.
27639 * tree-streamer-out.c (streamer_write_chain): Disable streaming
27640 of DECL_EXTERNALs in BLOCK_VARS for now.
27641 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
27643 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
27644 Add hash value argument and record that if hashes are recorded
27646 (streamer_tree_cache_insert_1): Adjust.
27647 (streamer_tree_cache_insert): Likewise.
27648 (streamer_tree_cache_insert_at): Rename to ...
27649 (streamer_tree_cache_replace_tree): ... this and adjust.
27650 (streamer_tree_cache_append): Adjust.
27651 (record_common_node): Likewise.
27652 (streamer_tree_cache_create): Add argument whether to
27653 record hash values together with trees.
27654 (streamer_tree_cache_delete): Adjust.
27655 * tree-streamer.h (struct streamer_tree_cache_d): Add
27657 (streamer_read_integer_cst): Remove.
27658 (streamer_tree_cache_insert): Adjust.
27659 (streamer_tree_cache_append): Likewise.
27660 (streamer_tree_cache_insert_at): Rename to ...
27661 (streamer_tree_cache_replace_tree): ... this and adjust.
27662 (streamer_tree_cache_create): Add argument whether to record hashes.
27663 (streamer_tree_cache_get): Rename to ...
27664 (streamer_tree_cache_get_tree): ... this.
27665 (streamer_tree_cache_get_hash): New function.
27666 * tree.c (cache_integer_cst): New function.
27667 * tree.h (cache_integer_cst): Declare.
27668 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
27669 * lto-symtab.c (lto_varpool_replace_node): Only release
27670 DECL_INITIAL of non-prevailing decls.
27671 * varpool.c (varpool_remove_initializer): Do not release
27672 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
27674 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
27676 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
27677 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
27678 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
27679 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
27680 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
27681 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
27682 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
27683 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
27684 instead of TARGET_64BIT.
27685 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
27686 Require ISA_HAS_<D>DIV.
27688 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
27690 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
27691 (mips*-*-linux*): Move default with_llsc setting to where other
27693 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
27695 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
27696 Likewise. Remove default with_tune setting. Move default float
27697 setting to its own block. Handle with_llsc in the same block as above.
27699 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
27701 PR rtl-optimization/57425
27702 PR rtl-optimization/57569
27703 * alias.c (write_dependence_p): Add new parameters mem_mode,
27704 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
27705 Changed all callers.
27706 (canon_anti_dependence): New function.
27707 * cse.c (check_dependence): Use canon_anti_dependence.
27708 * cselib.c (cselib_invalidate_mem): Likewise.
27709 * rtl.h (canon_anti_dependence): Declare.
27711 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
27713 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
27714 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
27715 ".set mips3" for 64-bit targets.
27717 2013-06-15 Dehao Chen <dehao@google.com>
27719 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
27720 * gimple-low.c (gimple_check_call_matching_types): Likewise.
27721 (gimple_check_call_args): Likewise.
27722 * value-prof.c (check_ic_target): Likewise.
27723 * ipa-inline.c (early_inliner): Likewise.
27724 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
27725 * cgraph.c (cgraph_create_edge_1): Likewise.
27726 (cgraph_make_edge_direct): Likewise.
27728 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
27731 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
27732 rs6000_output_move_128bit to handle emitting quad memory
27733 operations. Set attribute length to 8 bytes.
27735 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
27737 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
27739 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
27740 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
27741 (aarch64_<su>mlsl<mode>): Likewise.
27743 2013-06-14 Mike Stump <mikestump@comcast.net>
27745 * Makefile.in (TARGET_H): Add insn-codes.h.
27747 2013-06-14 Alan Modra <amodra@gmail.com>
27749 PR middle-end/57134
27750 PR middle-end/57586
27751 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
27752 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
27753 bitfield expansion when EXPAND_MEMORY.
27754 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
27756 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
27758 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
27759 test for clearing quad memory on 32-bit later.
27761 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
27763 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
27764 (fold_negate_expr): Likewise.
27765 (fold_real_zero_addition_p): Handle vectors.
27766 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
27768 2013-06-14 Alan Modra <amodra@gmail.com>
27770 * varasm.c (force_const_mem): Revert 2013-06-07 change.
27772 2013-06-13 Jan Hubicka <jh@suse.cz>
27774 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
27775 Local comdats are not externally visible.
27776 * symtab.c (dump_symtab_base): Dump externally visible.
27777 (verify_symtab_base): Verify back links in the symtab hash.
27779 2013-06-13 Bin Cheng <bin.cheng@arm.com>
27781 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
27782 CONVERT_EXPR as equal nodes.
27784 2013-06-13 Bin Cheng <bin.cheng@arm.com>
27786 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
27788 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
27790 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
27791 Generalize to complex and vector.
27792 * tree.c (build_all_ones_cst): New function.
27793 * tree.h (build_all_ones_cst): Declare it.
27795 2013-06-13 Alan Modra <amodra@gmail.com>
27797 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
27798 * config/rs6000/rs6000.md (signbittf2): New insn.
27799 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
27800 (abstf2_internal, cmptf_internal2): Likewise.
27801 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
27803 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
27804 Pat Haugen <pthaugen@us.ibm.com>
27805 Peter Bergner <bergner@vnet.ibm.com>
27807 * config/rs6000/rs6000.c (emit_load_locked): Add support for
27808 power8 byte, half-word, and quad-word atomic instructions.
27809 (emit_store_conditional): Likewise.
27810 (rs6000_expand_atomic_compare_and_swap): Likewise.
27811 (rs6000_expand_atomic_op): Likewise.
27813 * config/rs6000/sync.md (larx): Add new modes for power8.
27815 (AINT): New mode iterator to include TImode as well as normal
27816 integer modes on power8.
27817 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
27818 that VSX registers are not considered. Use AINT mode iterator
27819 instead of INT1 to allow inclusion of quad word atomic operations
27821 (load_locked<mode>): Likewise.
27822 (store_conditional<mode>): Likewise.
27823 (atomic_compare_and_swap<mode>): Likewise.
27824 (atomic_exchange<mode>): Likewise.
27825 (atomic_nand<mode>): Likewise.
27826 (atomic_fetch_<fetchop_name><mode>): Likewise.
27827 (atomic_nand_fetch<mode>): Likewise.
27828 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
27830 (ATOMIC): On power8, add QImode, HImode modes.
27831 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
27832 modes that promote to SImode.
27833 (load_lockedti): Convert TImode arguments to PTImode, so that we
27834 get a guaranteed even/odd register pair.
27835 (load_lockedpti): Likewise.
27836 (store_conditionalti): Likewise.
27837 (store_conditionalpti): Likewise.
27839 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
27840 atomic load/store instructions.
27843 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
27845 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
27847 (insn_count): New attribute, with most cases extracted from...
27848 (length): ...here. Redefine most cases in terms of insn_count.
27849 (single_insn): Delete.
27850 (can_delay): Use insn_count to check for single instructions.
27851 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
27852 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
27853 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
27854 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
27855 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
27856 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
27857 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
27858 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
27859 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
27860 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
27861 rather than "length".
27862 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
27863 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
27864 Use "insn_count" rather than "length".
27865 * config/mips/mips-dsp.md
27866 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
27867 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
27870 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
27872 PR tree-optimization/57361
27873 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
27875 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
27877 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
27879 (aarch64_simd_combine<mode>): New instruction expansion.
27880 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
27881 function prototype.
27882 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
27883 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
27885 2013-06-12 Jan Hubicka <jh@suse.cz>
27887 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
27888 decl has when in streaming stage.
27889 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
27890 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
27892 2013-06-12 Roland Stigge <stigge@antcom.de>
27895 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
27897 2013-06-12 Jakub Jelinek <jakub@redhat.com>
27899 PR tree-optimization/57537
27900 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
27901 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
27903 2013-06-12 Richard Biener <rguenther@suse.de>
27905 * data-streamer.h (streamer_write_char_stream): CSE
27906 obs->current_pointer.
27907 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
27908 streamer_write_char_stream manually and optimize the resulting loop.
27909 (streamer_write_hwi_stream): Likewise.
27911 2013-06-12 Jan Hubicka <jh@suse.cz>
27913 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
27914 * cgraph.h (varpool_create_empty_node): Declare.
27915 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
27917 * symtab.c (symtab_unregister_node): Be lax about missin entries
27919 (symtab_get_node): Update comment.
27920 * varpool.c (varpool_create_empty_node): Break out from ...
27921 (varpool_node_for_decl): ... here.
27922 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
27924 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
27926 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
27927 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
27928 part. Use straight-line flow at the end.
27929 <COMPONENT_REF>: Remove superfluous else.
27930 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
27932 2013-06-12 Jakub Jelinek <jakub@redhat.com>
27935 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
27936 target hook even for !TREE_PUBLIC decls. If no resolution info
27937 is available, return false for common and external decls.
27939 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27941 * config/rl78/constraints.md (U): New constraint.
27942 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
27945 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
27948 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
27949 to allow returning address to AT_PLATFORM name.
27951 2013-06-11 Jan Hubicka <jh@suse.cz>
27953 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
27954 * cgraph.h (symtab_node_base): Add weakref flag.
27955 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
27956 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
27957 (output_weakrefs): Use weakref flag.
27958 * fold-const.c (simple_operand_p): Handle WEAK.
27959 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
27960 * ipa.c (varpool_externally_visible_p): Drop weakref.
27961 (function_and_variable_visibility): Update comment; fix weakref
27962 sanity checks; do not clear DECL_WEAK on them.
27963 * lto-cgraph.c (lto_output_node): update.
27964 (lto_output_varpool_node): Update.
27965 (input_overwrite_node): Update.
27966 (input_node): Update.
27967 (input_varpool_node): Update.
27968 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
27969 (lto_symtab_merge_symbols): Add sanity check.
27970 (lto_symtab_prevailing_decl): Do not special case weakrefs.
27971 * passes.c (rest_of_decl_compilation): Set static flag, too.
27972 * symtab.c (dump_symtab_base): Dump weakref.
27973 (verify_symtab_base): Sanity check weakrefs.
27974 (symtab_make_decl_local): Remove duplicated code.
27975 (symtab_alias_ultimate_target): Simplify.
27976 * varpool.c (varpool_create_variable_alias): Set weakref flag.
27978 2013-06-11 Tom de Vries <tom@codesourcery.com>
27980 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
27981 sequence_vect == NULL.
27983 2013-06-11 DJ Delorie <dj@redhat.com>
27985 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
27986 (rl78_unwind_word_mode): New.
27988 2013-06-11 David Malcolm <dmalcolm@redhat.com>
27990 * final.c (debug_prefix_maps): Make static.
27992 2013-06-11 David Malcolm <dmalcolm@redhat.com>
27994 * function.c (initial_trampoline): Remove stray copy.
27996 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
27998 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
28000 2013-06-11 Martin Jambor <mjambor@suse.cz>
28002 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
28003 within bounds at the beginning of the function.
28005 2013-06-11 Alan Modra <amodra@gmail.com>
28007 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
28009 (get_named_section): Don't NULL !DECL_P decl.
28011 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
28013 * doc/invoke.texi (core-avx2): Document.
28015 (atom): Updated with MOVBE.
28017 2013-06-11 Richard Biener <rguenther@suse.de>
28019 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
28021 2013-06-11 Anton Blanchard <anton@samba.org>
28023 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
28024 correct shift value in little-endian mode.
28026 2013-06-11 Jakub Jelinek <jakub@redhat.com>
28029 * varasm.c (get_variable_align): Move #endif to the right place.
28031 2013-06-10 Cary Coutant <ccoutant@google.com>
28033 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
28034 for hash so that hash table traversal order is deterministic.
28036 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
28037 Pat Haugen <pthaugen@us.ibm.com>
28038 Peter Bergner <bergner@vnet.ibm.com>
28040 * config/rs6000/vector.md (GPR move splitter): Do not split moves
28041 of vectors in GPRS if they are direct moves or quad word load or
28044 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
28046 (direct_move_p): Likewise.
28047 (quad_load_store_p): Likewise.
28049 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
28050 classes into bins based on the physical register type.
28051 (reg_class_to_reg_type): Likewise.
28052 (IS_STD_REG_TYPE): Likewise.
28053 (IS_FP_VECT_REG_TYPE): Likewise.
28054 (reload_fpr_gpr): Arrays to determine what insn to use if we can
28055 use direct move instructions.
28056 (reload_gpr_vsx): Likewise.
28057 (reload_vsx_gpr): Likewise.
28058 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
28059 information that is a simplification of register classes. Also
28060 precalculate direct move reload helpers.
28061 (direct_move_p): New function to return true if the operation can
28062 be done as a direct move instruciton.
28063 (quad_load_store_p): New function to return true if the operation
28064 is a quad memory operation.
28065 (rs6000_legitimize_address): If quad memory, only allow register
28066 indirect for TImode addresses.
28067 (rs6000_legitimate_address_p): Likewise.
28068 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
28069 (rs6000_reload_register_type): Likewise.
28070 (register_to_reg_type): Return register type.
28071 (rs6000_secondary_reload_simple_move): New helper function for
28072 secondary reload and secondary memory needed to identify anything
28073 that is a simple move, and does not need reloading.
28074 (rs6000_secondary_reload_direct_move): New helper function for
28075 secondary reload to identify cases that can be done with several
28076 instructions via the direct move instructions.
28077 (rs6000_secondary_reload_move): New helper function for secondary
28078 reload to identify moves between register types that can be done.
28079 (rs6000_secondary_reload): Add support for quad memory operations
28080 and for direct move.
28081 (rs6000_secondary_memory_needed): Likewise.
28082 (rs6000_debug_secondary_memory_needed): Change argument names.
28083 (rs6000_output_move_128bit): New function to return the move to
28084 use for 128-bit moves, including knowing about the various
28085 limitations of quad memory operations.
28087 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
28088 memory operations. call rs6000_output_move_128bit for the actual
28089 instruciton(s) to generate.
28090 (vsx_movti_64bit): Likewise.
28092 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
28093 (UNSPEC_P8V_MTVSRWZ): Likewise.
28094 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
28095 (UNSPEC_P8V_MTVSRD): Likewise.
28096 (UNSPEC_P8V_XXPERMDI): Likewise.
28097 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
28098 (UNSPEC_FUSION_GPR): Likewise.
28099 (FMOVE128_GPR): New iterator for direct move.
28100 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
28101 (f32_sv): Likewise.
28102 (f32_dm): Likewise.
28103 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
28104 loads and direct move instructions.
28105 (zero_extendsidi2_lfiwzx): Likewise.
28106 (extendsidi2_lfiwax): Likewise.
28107 (extendsidi2_nocell): Likewise.
28108 (floatsi<mode>2_lfiwax): Likewise.
28109 (lfiwax): Likewise.
28110 (floatunssi<mode>2_lfiwzx): Likewise.
28111 (lfiwzx): Likewise.
28112 (fix_trunc<mode>_stfiwx): Likewise.
28113 (fixuns_trunc<mode>_stfiwx): Likewise.
28114 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
28115 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
28116 (parity<mode>2_cmpb): Set length/type attr.
28117 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
28118 for 'mr.' to fast_compare.
28119 (bpermd_<mode>): Change type attr to popcnt.
28120 (p8_fmrgow_<mode>): New insns for power8 direct move support.
28121 (p8_mtvsrwz_1): Likewise.
28122 (p8_mtvsrwz_2): Likewise.
28123 (reload_fpr_from_gpr<mode>): Likewise.
28124 (p8_mtvsrd_1): Likewise.
28125 (p8_mtvsrd_2): Likewise.
28126 (p8_xxpermdi_<mode>): Likewise.
28127 (reload_vsx_from_gpr<mode>): Likewise.
28128 (reload_vsx_from_gprsf): Likewise.
28129 (p8_mfvsrd_3_<mode>): LIkewise.
28130 (reload_gpr_from_vsx<mode>): Likewise.
28131 (reload_gpr_from_vsxsf): Likewise.
28132 (p8_mfvsrd_4_disf): Likewise.
28133 (multi-word GPR splits): Do not split direct moves or quad memory
28136 2013-06-10 David Malcolm <dmalcolm@redhat.com>
28138 * tree-into-ssa.c (interesting_blocks): Make static.
28140 2013-06-10 Jakub Jelinek <jakub@redhat.com>
28143 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
28144 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
28145 Use DATA_ABI_ALIGNMENT for that case instead if defined.
28146 (get_variable_align): New function.
28147 (get_variable_section, emit_bss, emit_common,
28148 assemble_variable_contents, place_block_symbol): Use
28149 get_variable_align instead of DECL_ALIGN.
28150 (assemble_noswitch_variable): Add align argument, use it
28151 instead of DECL_ALIGN.
28152 (assemble_variable): Adjust caller. Use get_variable_align
28153 instead of DECL_ALIGN.
28154 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
28156 (DATA_ABI_ALIGNMENT): Define.
28157 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
28158 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
28159 opt is false, only return the psABI mandated alignment increase.
28160 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
28161 (DATA_ABI_ALIGNMENT): ... this.
28162 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
28163 (DATA_ABI_ALIGNMENT): ... this.
28164 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
28165 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
28166 (DATA_ABI_ALIGNMENT): ... this.
28167 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
28168 * doc/tm.texi: Regenerated.
28170 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
28172 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
28173 cmp_code to construct REG_EQUAL note.
28175 2013-06-09 Jakub Jelinek <jakub@redhat.com>
28178 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
28179 that operands[2] doesn't overlap with operands[0].
28181 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
28182 Jan Hubicka <jh@suse.cz>
28184 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
28185 hack to mark symbols as used.
28187 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
28189 PR rtl-optimization/57559
28190 * lra-constraints.c (process_alt_operands): Don't discourage
28191 memory with known offset for offsetable memory constraint.
28192 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
28194 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
28196 * varasm.c (struct oc_local_state): Reorder fields.
28197 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
28198 and adjust accordingly.
28199 (output_constructor): Reorder initialization code and adjust call to
28200 output_constructor_bitfield.
28202 2013-06-07 Jan Hubicka <jh@suse.cz>
28204 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
28206 2013-06-07 David Malcolm <dmalcolm@redhat.com>
28208 * tree-object-size.c (unknown): Make const.
28210 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28212 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
28213 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
28214 for last alternative in the cpu_facility attribute.
28216 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28219 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
28220 (xordi3): Change operand 2 constraint to arm_xordi_operand.
28221 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
28222 * config/arm/constraints.md (Dg): New constraint.
28223 * config/arm/neon.md (xordi3_neon): Remove.
28224 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
28225 * config/arm/predicates.md (arm_xordi_operand): New predicate.
28227 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28229 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
28230 Clean up alternatives.
28232 2013-06-07 Alan Modra <amodra@gmail.com>
28234 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
28237 2013-06-07 Alan Modra <amodra@gmail.com>
28239 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
28241 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28243 * config/arm/constraints.md (Df): New constraint.
28244 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
28245 Correct length attribute for last two alternatives.
28247 2013-06-07 Alan Modra <amodra@gmail.com>
28249 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
28250 override user -mfp-in-toc.
28251 (offsettable_ok_by_alignment): Consider just the current access
28252 rather than the whole object, unless BLKmode. Handle
28253 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
28254 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
28255 for -mcmodel=medium.
28256 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
28257 override user -mfp-in-toc or -msum-in-toc. Default to
28258 -mno-fp-in-toc for -mcmodel=medium.
28260 2013-06-06 DJ Delorie <dj@redhat.com>
28262 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
28263 TARGET_VALID_POINTER_MODE.
28265 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
28266 Pat Haugen <pthaugen@us.ibm.com>
28267 Peter Bergner <bergner@vnet.ibm.com>
28269 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
28270 Document new power8 builtins.
28272 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
28273 condition code register, to allow 128-bit logical operations to be
28274 done in the VSX or GPR registers.
28275 (nor<mode>3): Use the canonical form for nor.
28276 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
28277 vclz*, and vpopcnt* vector instructions.
28278 (nand<mode>3): Likewise.
28279 (orc<mode>3): Likewise.
28280 (clz<mode>2): LIkewise.
28281 (popcount<mode>2): Likewise.
28283 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
28284 that only the GPRs are recognized.
28286 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
28287 support for new power8 builtins.
28289 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
28291 (xscvdpspn): Likewise.
28297 (vpopcnt): Likewise.
28298 (vpopcntb): Likewise.
28299 (vpopcnth): Likewise.
28300 (vpopcntw): Likewise.
28301 (vpopcntd): Likewise.
28303 (vmrgew): Likewise.
28304 (vmrgow): Likewise.
28306 (eqv_v16qi3): Likewise.
28307 (eqv_v8hi3): Likewise.
28308 (eqv_v4si3): Likewise.
28309 (eqv_v2di3): Likewise.
28310 (eqv_v4sf3): Likewise.
28311 (eqv_v2df3): Likewise.
28313 (nand_v16qi3): Likewise.
28314 (nand_v8hi3): Likewise.
28315 (nand_v4si3): Likewise.
28316 (nand_v2di3): Likewise.
28317 (nand_v4sf3): Likewise.
28318 (nand_v2df3): Likewise.
28320 (orc_v16qi3): Likewise.
28321 (orc_v8hi3): Likewise.
28322 (orc_v4si3): Likewise.
28323 (orc_v2di3): Likewise.
28324 (orc_v4sf3): Likewise.
28325 (orc_v2df3): Likewise.
28327 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
28328 allow power8 quad mode in 64-bit.
28329 (rs6000_builtin_vectorized_function): Add support to vectorize
28330 ISA 2.07 count leading zeros, population count builtins.
28331 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
28332 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
28333 (builtin_function_type): Add vgbbd builtin function which takes an
28335 (altivec_expand_vec_perm_const): Add support for new power8 merge
28338 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
28339 that does not include TImdoe for use with 32-bit.
28340 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
28342 (UNSPEC_VSX_CVDPSPN): Likewise.
28343 (vsx_xscvdpspn): Likewise.
28344 (vsx_xscvspdpn): Likewise.
28345 (vsx_xscvdpspn_scalar): Likewise.
28346 (vsx_xscvspdpn_directmove): Likewise.
28347 (vsx_and<mode>3): Split logical operations into 32-bit and
28348 64-bit. Add support to do logical operations on TImode as well as
28349 VSX vector types. Allow logical operations to be done in either
28350 VSX registers or in general purpose registers in 64-bit mode. Add
28351 splitters if GPRs were used. For AND, add clobber of CCmode to
28352 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
28354 (vsx_and<mode>3_32bit): Likewise.
28355 (vsx_and<mode>3_64bit): Likewise.
28356 (vsx_ior<mode>3): Likewise.
28357 (vsx_ior<mode>3_32bit): Likewise.
28358 (vsx_ior<mode>3_64bit): Likewise.
28359 (vsx_xor<mode>3): Likewise.
28360 (vsx_xor<mode>3_32bit): Likewise.
28361 (vsx_xor<mode>3_64bit): Likewise.
28362 (vsx_one_cmpl<mode>2): Likewise.
28363 (vsx_one_cmpl<mode>2_32bit): Likewise.
28364 (vsx_one_cmpl<mode>2_64bit): Likewise.
28365 (vsx_nor<mode>3): Likewise.
28366 (vsx_nor<mode>3_32bit): Likewise.
28367 (vsx_nor<mode>3_64bit): Likewise.
28368 (vsx_andc<mode>3): Likewise.
28369 (vsx_andc<mode>3_32bit): Likewise.
28370 (vsx_andc<mode>3_64bit): Likewise.
28371 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
28372 and xxlorc instructions.
28373 (vsx_eqv<mode>3_64bit): Likewise.
28374 (vsx_nand<mode>3_32bit): Likewise.
28375 (vsx_nand<mode>3_64bit): Likewise.
28376 (vsx_orc<mode>3_32bit): Likewise.
28377 (vsx_orc<mode>3_64bit): Likewise.
28379 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
28381 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
28383 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
28384 (p8_vmrgow): Likewise.
28385 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
28386 GPRs to be split under VSX.
28387 (p8v_clz<mode>2): Add power8 count leading zero support.
28388 (p8v_popcount<mode>2): Add power8 population count support.
28389 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
28392 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
28395 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
28397 (vec_nand): Likewise.
28398 (vec_vclz): Likewise.
28399 (vec_vclzb): Likewise.
28400 (vec_vclzd): Likewise.
28401 (vec_vclzh): Likewise.
28402 (vec_vclzw): Likewise.
28403 (vec_vgbbd): Likewise.
28404 (vec_vmrgew): Likewise.
28405 (vec_vmrgow): Likewise.
28406 (vec_vpopcnt): Likewise.
28407 (vec_vpopcntb): Likewise.
28408 (vec_vpopcntd): Likewise.
28409 (vec_vpopcnth): Likewise.
28410 (vec_vpopcntw): Likewise.
28412 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
28414 PR rtl-optimization/57468
28415 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
28418 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
28420 PR rtl-optimization/57459
28421 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
28422 type when setting live regs.
28424 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
28426 * config/s390/s390.opt (mlra): New option.
28427 * config/s390/s390.c (s390_decompose_address): Check displacement
28428 for all registers for LRA.
28429 (s390_secondary_reload): Don't used secondary reloads for LRA.
28430 (s390_lra_p): New function.
28431 (TARGET_LRA_P): Define.
28432 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
28433 of attribute cpu_facility to zarch for the last alternative.
28434 (*cmpmem_short): Ditto.
28436 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
28438 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
28439 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
28440 (arm_expand_prologue): Likewise.
28442 2013-06-06 Teresa Johnson <tejohnson@google.com>
28445 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
28446 as this is now done by redirect_edge_and_branch_force.
28447 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
28448 barriers, and fix interaction with splitting.
28449 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
28450 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
28451 reflect changes made in the routine.
28452 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
28453 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
28454 since this is called in cfglayout mode, and replace partition fixup
28455 with assert as that is now done by force_nonfallthru_and_redirect.
28456 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
28457 already be marked with region crossing note.
28458 (insert_section_boundary_note): Make non-static, gate on flag
28459 has_bb_partition, rewrite to also check for multiple partitions.
28460 (rest_of_handle_reorder_blocks): Remove call to
28461 insert_section_boundary_note, now done later during free_cfg.
28462 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
28463 * bb-reorder.h (insert_section_boundary_note): Declare.
28464 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
28465 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
28466 invoke insert_section_boundary_note.
28467 (try_redirect_by_replacing_jump): Remove unnecessary
28468 check for region crossing note.
28469 (fixup_partition_crossing): New function.
28470 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
28471 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
28472 in non-cfglayout mode.
28473 (force_nonfallthru_and_redirect): Fixup partition boundaries,
28474 remove old code that tried to do this. Emit barrier correctly
28475 when we are in cfglayout mode.
28476 (last_bb_in_partition): New function.
28477 (rtl_split_edge): Correctly fixup partition boundaries.
28478 (commit_one_edge_insertion): Remove old code that tried to
28479 fixup region crossing edge since this is now handled in
28480 split_block, and set up insertion point correctly since
28481 block may now end in a jump.
28482 (verify_hot_cold_block_grouping): Guard against checking when not in
28483 linearized RTL mode.
28484 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
28486 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
28487 rtl_verify_flow_info, so not called in cfglayout mode.
28488 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
28489 (fixup_reorder_chain): Remove old code that attempted to fixup region
28490 crossing note as this is now handled in force_nonfallthru_and_redirect.
28491 (duplicate_insn_chain): Don't duplicate switch section notes.
28492 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
28494 * basic-block.h (emit_barrier_after_bb): Declare.
28496 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28498 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
28499 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
28500 arm_usatsihi): Adjust alternatives for arm_restrict_it.
28502 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28504 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
28506 * config/arm/ldmstm.md: Regenerate.
28508 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28510 * config/arm/sync.md (atomic_loaddi_1):
28511 Disable predication for arm_restrict_it.
28512 (arm_load_exclusive<mode>): Likewise.
28513 (arm_load_exclusivesi): Likewise.
28514 (arm_load_exclusivedi): Likewise.
28515 (arm_load_acquire_exclusive<mode>): Likewise.
28516 (arm_load_acquire_exclusivesi): Likewise.
28517 (arm_load_acquire_exclusivedi): Likewise.
28518 (arm_store_exclusive<mode>): Likewise.
28519 (arm_store_exclusive<mode>): Likewise.
28520 (arm_store_release_exclusivedi): Likewise.
28521 (arm_store_release_exclusive<mode>): Likewise.
28523 2013-06-06 Richard Biener <rguenther@suse.de>
28525 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
28527 (lto_tag_is_tree_code_p): Adjust.
28528 (lto_tag_is_gimple_code_p): Likewise.
28529 (lto_gimple_code_to_tag): Likewise.
28530 (lto_tag_to_gimple_code): Likewise.
28531 (lto_tree_code_to_tag): Likewise.
28532 (lto_tag_to_tree_code): Likewise.
28533 * data-streamer.h (streamer_write_hwi_in_range): Use
28534 uhwi streaming to stream the normalized range.
28535 (streamer_read_hwi_in_range): Likewise.
28537 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28539 * config/arm/arm.md (enabled_for_depr_it): New attribute.
28540 (predicable_short_it): Likewise.
28541 (predicated): Likewise.
28542 (enabled): Handle above.
28543 (define_cond_exec): Set predicated attribute to yes.
28545 2013-06-05 Mike Stump <mikestump@comcast.net>
28547 * gdbinit.in (__FUNCTION__): Add.
28549 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
28551 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
28552 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
28554 2013-06-05 Jan Hubicka <jh@suse.cz>
28556 * varasm.c (mark_decl_referenced): Revert the removal until targets
28559 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
28561 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
28562 instead of mark_decl_referenced.
28564 2013-06-05 Jan Hubicka <jh@suse.cz>
28566 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
28567 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
28568 and symtab_used_from_object_file_p.
28569 (cgraph_make_node_local_1): Clear forced_by_abi.
28570 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
28571 * cgraph.h (symtab_node_base): Add forced_by_abi.
28572 (decide_is_variable_needed): Remove.
28573 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
28574 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
28575 (decide_is_symbol_needed): ... this one; handle symbols in general;
28576 always analyze virtuals; honnor forced_by_abi.
28577 (cgraph_finalize_function): Update.
28578 (varpool_finalize_decl): Update.
28579 (symbol_defined_and_needed): Remove.
28580 (analyze_functions): Update.
28581 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
28582 output_refs, input_overwrite_node): Handle forced_by_abi.
28583 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
28584 (address_taken_from_non_vtable_p): ... this one.
28585 (comdat_can_be_unshared_p_1): New function.
28586 (cgraph_comdat_can_be_unshared_p): Rename to ...
28587 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
28588 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
28589 (function_and_variable_visibility): Clear forced_by_abi as needed.
28590 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
28591 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
28592 * symtab.c (dump_symtab_base): Dump forced_by_abi.
28593 * varpool.c (decide_is_variable_needed): Remove.
28595 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28597 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
28598 (arm_option_override): Override arm_restrict_it where appropriate.
28599 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
28600 * config/arm/arm.opt (mrestrict-it): New command-line option.
28601 * doc/invoke.texi: Document -mrestrict-it.
28603 2013-06-05 David Malcolm <dmalcolm@redhat.com>
28605 * tsan.c (tsan_atomic_table): Make const.
28607 2013-06-05 Richard Biener <rguenther@suse.de>
28609 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
28610 index associated with the tree we are supposed to replace.
28611 * tree-streamer-out.c (pack_ts_base_value_fields): Output
28612 TREE_ASM_WRITTEN as zero for everything but SSA names.
28614 2013-06-05 David Malcolm <dmalcolm@redhat.com>
28616 * tree-ssa-structalias.c (call_stmt_vars): Make static.
28618 2013-06-04 Jan Hubicka <jh@suse.cz>
28620 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
28621 (input_node, input_varpool_node): Handle correctly external same
28623 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
28624 nodes at ltrans stage.
28626 2013-06-04 Jan Hubicka <jh@suse.cz>
28628 * ipa-inline.c (update_caller_keys): Fix availability test.
28629 (update_callee_keys): Likewise.
28630 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
28631 to follow ELF standard.
28633 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
28635 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
28636 (mips64r5900el-*-elf*): New configurations.
28637 * config/mips/mips-cpus.def (r5900): New processor.
28638 * config/mips/mips-tables.opt: Regenerate.
28639 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
28640 (mips_issue_rate): Handle PROCESSOR_R5900.
28641 (mips_reorg_process_insns): Force reorder mode for the R5900.
28642 * config/mips/mips.h (TARGET_MIPS5900): Define.
28643 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
28645 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
28647 * config/mips/mips.md (processor): Add r5900.
28648 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
28650 2013-06-04 Ian Bolton <ian.bolton@arm.com>
28652 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
28653 into function to generate MOVI instruction.
28654 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
28655 (aarch64_preferred_simd_mode): Turn into wrapper.
28656 (aarch64_output_scalar_simd_mov_immediate): New function.
28657 * config/aarch64/aarch64-protos.h: Add prototype for above.
28659 2013-06-04 Ian Bolton <ian.bolton@arm.com>
28661 * config/aarch64/aarch64.c (simd_immediate_info): Remove
28662 element_char member.
28663 (sizetochar): Return signed char.
28664 (aarch64_simd_valid_immediate): Remove elchar and other
28665 unnecessary variables.
28666 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
28667 Calculate element_char as required.
28668 * config/aarch64/aarch64-protos.h: Update and move prototype
28669 for aarch64_output_simd_mov_immediate.
28670 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
28673 2013-06-04 Ian Bolton <ian.bolton@arm.com>
28675 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
28676 information completed by aarch64_simd_valid_immediate.
28677 (aarch64_legitimate_constant_p): Update arguments.
28678 (aarch64_simd_valid_immediate): Work with struct rather than many
28680 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
28681 (aarch64_simd_make_constant): Update arguments.
28682 (aarch64_output_simd_mov_immediate): Work with struct rather than
28683 many pointers. Output immediate directly rather than as operand.
28684 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
28686 * config/aarch64/constraints.md (Dn): Update arguments.
28688 2013-06-04 Ian Bolton <ian.bolton@arm.com>
28690 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
28692 (aarch64_simd_immediate_valid_for_move): Remove.
28693 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
28694 (aarch64_simd_make_constant): Update call.
28695 (aarch64_output_simd_mov_immediate): Update call.
28696 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
28698 * config/aarch64/constraints.md (Dn): Update call.
28700 2013-06-04 Ian Bolton <ian.bolton@arm.com>
28702 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
28703 return type to bool for prototype.
28704 (aarch64_legitimate_constant_p): Check for true instead of not -1.
28705 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
28706 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
28708 2013-06-04 Catherine Moore <clm@codesourcery.com>
28710 * config/mips/mips.opt (meva): New.
28711 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
28712 (ASM_SPEC): Handle -meva.
28713 * doc/invoke.texi (meva): Document.
28715 2013-06-04 Alan Modra <amodra@gmail.com>
28717 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
28720 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28722 * rtl.def: Add extra fourth optional field to define_cond_exec.
28723 * gensupport.c (process_one_cond_exec): Process attributes from
28725 * doc/md.texi: Document fourth field in define_cond_exec.
28727 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
28729 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
28730 out the processing order as in store_bit_field_1.
28732 2013-06-04 Jan Hubicka <jh@suse.cz>
28734 PR middle-end/57500
28735 * cgraphunit.c (cgraph_process_same_body_aliases): Create
28736 non-VAR_DECL node if it does not exist yet.
28738 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
28740 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
28741 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
28742 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
28743 target_cpu_default setting.
28745 2013-06-03 Teresa Johnson <tejohnson@google.com>
28747 * dumpfile.c (opt_info_switch_p): Change -fopt-info
28748 default to -fopt-info=optimized instead of all.
28749 * doc/invoke.texi: Ditto.
28750 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
28751 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
28752 (execute_vect_slp): Emit BB vectorization success under
28753 MSG_OPTIMIZED_LOCATIONS.
28754 * tree-vect-slp.c (vect_slp_transform_bb): Change
28755 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
28756 * tree-vect-loop.c (vect_transform_loop): Ditto.
28758 2013-06-03 Jason Merrill <jason@redhat.com>
28761 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28762 Use TARGET_EXPR for C++.
28764 2013-06-03 Jakub Jelinek <jakub@redhat.com>
28766 PR rtl-optimization/57268
28767 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
28768 if DEBUG_INSN_P (insn).
28771 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
28773 PR rtl-optimization/57268
28774 * sched-deps.c (sched_analyze_2): Flush dependence lists if
28775 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
28777 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
28779 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
28780 (ix86_avoid_lea_for_addr): Likewise.
28781 (exact_dependency_1): Likewise.
28782 (ix86_adjust_cost): Likewise.
28783 (swap_top_of_ready_list): Fix formatting and !reload_completed check
28785 (do_reorder_for_imul): Fix typo, formatting and
28786 !reload_completed check removed.
28787 (ix86_sched_reorder): Fix typo and formatting.
28788 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
28791 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
28793 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
28795 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
28797 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
28798 <STRING_CST>: Likewise.
28799 <VECTOR_CST>: Likewise.
28801 2013-06-01 Janus Weil <janus@gcc.gnu.org>
28802 Mikael Morin <mikael@gcc.gnu.org>
28804 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
28805 * config.in: Regenerated.
28806 * configure: Regenerated.
28808 2013-06-01 Jan Hubicka <jh@suse.cz>
28810 PR middle-end/57366
28811 * cgraphunit.c (compile): When weakref is not supported,
28812 set up transparent aliases before final output pass.
28813 * varasm.c (assemble_alias): Do not try to do it here.
28815 2013-06-01 Jan Hubicka <jh@suse.cz>
28817 PR middle-end/57467
28818 * passes.c (for_per_function): Skip unanalyzed functions.
28820 2013-06-01 Jan Hubicka <jh@suse.cz>
28822 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
28823 (lto_symtab_merge_symbols_1): ... this one.
28824 (lto_symtab_merge_cgraph_nodes): Rename to ...
28825 (lto_symtab_merge_symbols): ... this one; simplify.
28826 * cgraph.c (same_body_aliases_done): Rename to ...
28827 (cpp_implicit_aliases_done): ... this one.
28828 (cgraph_create_function_alias): Update.
28829 (cgraph_same_body_alias): Update.
28830 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
28831 (verify_edge_corresponds_to_fndecl): Simplify.
28832 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
28833 (cgraph_node): Remove same_body_alias.
28834 (varpool_node): Remove alias_of and extra_name_alias.
28835 (same_body_aliases_done): Rename to ..
28836 (cpp_implicit_aliases_done): ... this one.
28837 (symtab_alias_ultimate_target): Add default parameter.
28838 (symtab_resolve_alias): New function.
28839 (fixup_same_cpp_alias_visibility): Declare.
28840 (cgraph_function_node): Add default parameter.
28841 (cgraph_node_asm_name): Likewise.
28842 (cgraph_function_or_thunk_node): Add default parameter; do
28843 not ICE when it is NULL.
28844 (varpool_variable_node): Likewise.
28845 * tree-emutls.c (create_emultls_var): Update.
28846 (ipa_lower_emutls): Update.
28847 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
28848 (cgraph_reset_node): Reset alias info.
28849 (cgraph_finalize_function): Update.
28850 (fixup_same_cpp_alias_visibility): Move to symtab.c.
28851 (analyze_function): Simplify.
28852 (cgraph_process_same_body_aliases): Simplify.
28853 (analyze_functions): Fixup same body aliases.
28854 (handle_alias_pairs): Simplify.
28855 (assemble_thunk): Update.
28856 (assemble_thunks_and_aliases): Update.
28857 (output_weakrefs): Rewrite.
28858 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
28859 (lto_output_varpool_node): Likewise.
28860 (compute_ltrans_boundary): Remve assert.
28861 (get_alias_symbol): New functoin.
28862 (input_node): Rewrite alias handling.
28863 (input_varpool_node): Likewise.
28864 * ipa-pure-const.c (propagate_pure_const): Fix formating.
28865 * ipa.c (process_references): Handle weakrefs correctly.
28866 (symtab_remove_unreachable_nodes): Likewise.
28867 * trans-mem.c (get_cg_data): Update.
28868 (ipa_tm_create_version_alias): Update.
28869 (ipa_tm_execute): Update.
28870 * symtab.c (dump_symtab_base): Dump aliases.
28871 (verify_symtab_base): Verify aliases.
28872 (symtab_node_availability): New function.
28873 (symtab_alias_ultimate_target): Simplify.
28874 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
28875 handle all the fixup cases.
28876 (symtab_resolve_alias): New function.
28877 * passes.c (ipa_write_summaries): Handle weakrefs.
28878 * varpool.c (varpool_analyze_node): Simplify.
28879 (assemble_aliases): Update.
28880 (varpool_create_variable_alias): Simplify.
28881 (varpool_extra_name_alias): Simplify.
28882 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
28883 (lto_symtab_merge_symbols): ... this one.
28885 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
28888 PR rtl-optimization/57268
28889 * sched-deps.c (sched_analyze_2): Flush dependence lists if
28890 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
28892 2013-06-01 Tobias Burnus <burnus@net-b.de>
28894 Partially reverted:
28895 2013-05-31 Tobias Burnus <burnus@net-b.de>
28897 PR middle-end/57073
28898 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
28901 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
28903 PR rtl-optimization/57268
28904 * sched-deps.c (sched_analyze_2): Flush dependence lists if
28905 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
28907 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
28909 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
28910 unordered comparison operators when -fno-trapping-math is in effect
28912 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
28913 and implement unordered comparison operators properly on the e500.
28915 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
28917 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
28918 for constant scalar integers.
28919 (simplify_relational_operation_1): Likewise.
28921 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
28923 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
28924 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
28927 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
28928 Igor Zamyatin <igor.zamyatin@intel.com>
28930 Silvermont (SLM) architecture performance tuning.
28931 * config/i386/i386.h (enum ix86_tune_indices): Add
28932 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
28933 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
28935 * config/i386/i386.c (initial_ix86_tune_features)
28936 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
28937 (ix86_lea_outperforms): Handle Silvermont tuning.
28938 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
28940 (ix86_use_lea_for_mov): Likewise.
28941 (ix86_avoid_lea_for_addr): Likewise.
28942 (ix86_lea_for_add_ok): Likewise.
28943 (exact_dependency_1): New function.
28944 (exact_store_load_dependency): Likewise.
28945 (ix86_adjust_cost): Handle Silvermont tuning.
28946 (do_reoder_for_imul): Likewise.
28947 (swap_top_of_ready_list): New function.
28948 (ix86_sched_reorder): Changed to handle Silvermont tuning.
28950 * config/i386/i386.md (peepholes that split memory operand in fp
28953 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
28955 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
28956 Remove un-necessary braces.
28958 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
28960 * config/aarch64/aarch64.c (aarch64_classify_symbol):
28961 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
28963 2013-05-31 Tobias Burnus <burnus@net-b.de>
28965 PR middle-end/57073
28966 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
28968 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28971 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
28972 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
28973 * config/arm/neon.md (iordi3_neon): Remove.
28974 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
28975 * config/arm/predicates.md (imm_for_neon_logic_operand):
28976 Move to earlier in the file.
28977 (neon_logic_op2): Likewise.
28978 (arm_iordi_operand_neon): New predicate.
28980 2013-05-31 Richard Biener <rguenther@suse.de>
28982 PR tree-optimization/57478
28983 PR tree-optimization/57453
28984 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
28987 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
28989 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
28990 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
28992 2013-05-30 Tobias Burnus <burnus@net-b.de>
28993 Thomas Koenig <tkoenig@gcc.gnu.org>
28995 PR middle-end/57073
28996 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
28997 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
28999 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
29001 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
29003 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
29005 * target.def (register_usage_leveling_p): New hook.
29006 * targhooks.c (default_register_usage_leveling_p): New.
29007 * targhooks.h (default_register_usage_leveling_p): New prototype.
29008 * lra-assigns.c (register_usage_leveling_p): Use the hook.
29009 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
29010 * doc/tm.texi: Update.
29011 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
29013 2013-05-30 Ian Bolton <ian.bolton@arm.com>
29015 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
29016 (*insv_reg<mode>): New define_insn.
29018 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
29020 PR rtl-optimization/57439
29021 * postreload.c (move2add_valid_value_p): Check that we have
29022 a zero subreg_regno_offset when accessing the register in
29023 the requested mode.
29025 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
29026 Igor Zamyatin <igor.zamyatin@intel.com>
29028 Silvermont (SLM) architecture pipeline model, tuning and
29030 * config.gcc: Add slm config options and target.
29032 * config/i386/slm.md: New.
29034 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
29036 * config/i386/i386-c.c (ix86_target_macros_internal): New case
29038 (ix86_target_macros_internal): Likewise.
29040 * config/i386/i386.c (slm_cost): New cost.
29041 (m_SLM): New macro flag.
29042 (initial_ix86_tune_features): Set m_SLM.
29043 (x86_accumulate_outgoing_args): Likewise.
29044 (x86_arch_always_fancy_math_387): Likewise.
29045 (processor_target_table): Add slm cost.
29046 (cpu_names): Add slm cpu name.
29047 (x86_option_override_internal): Set SLM ISA.
29048 (ix86_issue_rate): New case PROCESSOR_SLM.
29049 (ia32_multipass_dfa_lookahead): Likewise.
29050 (fold_builtin_cpu): Add slm.
29052 * config/i386/i386.h (TARGET_SLM): New target macro.
29053 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
29054 (processor_type): Add PROCESSOR_SLM.
29056 * config/i386/i386.md (cpu): Add new value "slm".
29057 (slm.md): Include slm.md.
29059 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
29060 Zhenqiang Chen <zhenqiang.chen@linaro.org>
29062 * config/arm/arm-protos.h: Add and update function protos.
29063 * config/arm/arm.c (use_simple_return_p): New added.
29064 (thumb2_expand_return): Check simple_return flag.
29065 * config/arm/arm.md: Add simple_return and conditional simple_return.
29066 * config/arm/iterators.md: Add iterator for return and simple_return.
29068 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
29070 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
29071 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
29072 (arm_emit_vfp_multi_reg_pop): Likewise.
29073 (thumb2_emit_ldrd_pop): Likewise.
29074 (arm_expand_epilogue): Add misc REG_CFA notes.
29075 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
29077 2013-05-29 Lawrence Crowl <crowl@google.com>
29079 * config/arm/t-arm: Update for below.
29081 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
29082 Change type to hash_table. Update dependent calls and types.
29084 * config/i386/t-cygming: Update for below.
29086 * config/i386/t-interix: Update for below.
29088 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
29089 Change type to hash_table. Update dependent calls and types.
29090 (i386_find_on_wrapper_list::wrappers): Likewise.
29092 * config/ia64/t-ia64: Update for below.
29094 * config/ia64/ia64.c (bundle_state_table):
29095 Change type to hash_table. Update dependent calls and types.
29097 * config/mips/mips.c (mips_reorg_process_insns::htab):
29098 Change type to hash_table. Update dependent calls and types.
29100 * config/sol2.c (solaris_comdat_htab):
29101 Change type to hash_table. Update dependent calls and types.
29103 * config/t-sol2: Update for above.
29105 2013-05-29 Teresa Johnson <tejohnson@google.com>
29107 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
29108 functions are not yet marked as defined.
29110 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
29111 Pat Haugen <pthaugen@us.ibm.com>
29112 Peter Bergner <bergner@vnet.ibm.com>
29114 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
29118 (vrotl<mode>3): Likewise.
29119 (vashl<mode>3): Likewise.
29120 (vlshr<mode>3): Likewise.
29121 (vashr<mode>3): Likewise.
29123 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
29124 support for power8 V2DI builtins.
29126 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
29127 power8 V2DI builtins.
29128 (vupkhsw): Likewise.
29129 (vupklsw): Likewise.
29130 (vaddudm): Likewise.
29131 (vminsd): Likewise.
29132 (vmaxsd): Likewise.
29133 (vminud): Likewise.
29134 (vmaxud): Likewise.
29135 (vpkudum): Likewise.
29136 (vpksdss): Likewise.
29137 (vpkudus): Likewise.
29138 (vpksdus): Likewise.
29143 (vsubudm): Likewise.
29144 (vcmpequd): Likewise.
29145 (vcmpgtsd): Likewise.
29146 (vcmpgtud): Likewise.
29147 (vcmpequd_p): Likewise.
29148 (vcmpgtsd_p): Likewise.
29149 (vcmpgtud_p): Likewise.
29150 (vupkhsw): Likewise.
29151 (vupklsw): Likewise.
29152 (vaddudm): Likewise.
29153 (vmaxsd): Likewise.
29154 (vmaxud): Likewise.
29155 (vminsd): Likewise.
29156 (vminud): Likewise.
29157 (vpksdss): Likewise.
29158 (vpksdus): Likewise.
29159 (vpkudum): Likewise.
29160 (vpkudus): Likewise.
29165 (vsubudm): Likewise.
29167 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
29168 support for power8 V2DI instructions.
29170 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
29171 power8 V2DI instructions. Combine pack and unpack insns to use an
29172 iterator for each mode. Check whether a particular mode supports
29173 Altivec instructions instead of just checking TARGET_ALTIVEC.
29174 (UNSPEC_VPKUWUM): Likewise.
29175 (UNSPEC_VPKSHSS): Likewise.
29176 (UNSPEC_VPKSWSS): Likewise.
29177 (UNSPEC_VPKUHUS): Likewise.
29178 (UNSPEC_VPKSHUS): Likewise.
29179 (UNSPEC_VPKUWUS): Likewise.
29180 (UNSPEC_VPKSWUS): Likewise.
29181 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
29182 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
29183 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
29184 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
29185 (UNSPEC_VUPKHSB): Likewise.
29186 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
29187 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
29188 (UNSPEC_VUPKHSH): Likewise.
29189 (UNSPEC_VUPKLSB): Likewise.
29190 (UNSPEC_VUPKLSH): Likewise.
29192 (VI_char): Likewise.
29193 (VI_scalar): Likewise.
29194 (VI_unit): Likewise.
29196 (VP_small): Likewise.
29197 (VP_small_lc): Likewise.
29198 (VU_char): Likewise.
29199 (add<mode>3): Likewise.
29200 (altivec_vaddcuw): Likewise.
29201 (altivec_vaddu<VI_char>s): Likewise.
29202 (altivec_vadds<VI_char>s): Likewise.
29203 (sub<mode>3): Likewise.
29204 (altivec_vsubcuw): Likewise.
29205 (altivec_vsubu<VI_char>s): Likewise.
29206 (altivec_vsubs<VI_char>s): Likewise.
29207 (altivec_vavgs<VI_char>): Likewise.
29208 (altivec_vcmpbfp): Likewise.
29209 (altivec_eq<mode>): Likewise.
29210 (altivec_gt<mode>): Likewise.
29211 (altivec_gtu<mode>): Likewise.
29212 (umax<mode>3): Likewise.
29213 (smax<mode>3): Likewise.
29214 (umin<mode>3): Likewise.
29215 (smin<mode>3): Likewise.
29216 (altivec_vpkuhum): Likewise.
29217 (altivec_vpkuwum): Likewise.
29218 (altivec_vpkshss): Likewise.
29219 (altivec_vpkswss): Likewise.
29220 (altivec_vpkuhus): Likewise.
29221 (altivec_vpkshus): Likewise.
29222 (altivec_vpkuwus): Likewise.
29223 (altivec_vpkswus): Likewise.
29224 (altivec_vpks<VI_char>ss): Likewise.
29225 (altivec_vpks<VI_char>us): Likewise.
29226 (altivec_vpku<VI_char>us): Likewise.
29227 (altivec_vpku<VI_char>um): Likewise.
29228 (altivec_vrl<VI_char>): Likewise.
29229 (altivec_vsl<VI_char>): Likewise.
29230 (altivec_vsr<VI_char>): Likewise.
29231 (altivec_vsra<VI_char>): Likewise.
29232 (altivec_vsldoi_<mode>): Likewise.
29233 (altivec_vupkhsb): Likewise.
29234 (altivec_vupkhs<VU_char>): Likewise.
29235 (altivec_vupkls<VU_char>): Likewise.
29236 (altivec_vupkhsh): Likewise.
29237 (altivec_vupklsb): Likewise.
29238 (altivec_vupklsh): Likewise.
29239 (altivec_vcmpequ<VI_char>_p): Likewise.
29240 (altivec_vcmpgts<VI_char>_p): Likewise.
29241 (altivec_vcmpgtu<VI_char>_p): Likewise.
29242 (abs<mode>2): Likewise.
29243 (vec_unpacks_hi_v16qi): Likewise.
29244 (vec_unpacks_hi_v8hi): Likewise.
29245 (vec_unpacks_lo_v16qi): Likewise.
29246 (vec_unpacks_hi_<VP_small_lc>): Likewise.
29247 (vec_unpacks_lo_v8hi): Likewise.
29248 (vec_unpacks_lo_<VP_small_lc>): Likewise.
29249 (vec_pack_trunc_v8h): Likewise.
29250 (vec_pack_trunc_v4si): Likewise.
29251 (vec_pack_trunc_<mode>): Likewise.
29253 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
29255 (vec_vmaxsd): Likewise.
29256 (vec_vmaxud): Likewise.
29257 (vec_vminsd): Likewise.
29258 (vec_vminud): Likewise.
29259 (vec_vpksdss): Likewise.
29260 (vec_vpksdus): Likewise.
29261 (vec_vpkudum): Likewise.
29262 (vec_vpkudus): Likewise.
29263 (vec_vrld): Likewise.
29264 (vec_vsld): Likewise.
29265 (vec_vsrad): Likewise.
29266 (vec_vsrd): Likewise.
29267 (vec_vsubudm): Likewise.
29268 (vec_vupkhsw): Likewise.
29269 (vec_vupklsw): Likewise.
29271 2013-05-29 Jan Hubicka <jh@suse.cz>
29273 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
29274 flags; reorder rest of fields in more consistent way.
29275 (varpool_node): Remove analyzed, finalized and alias.
29276 (cgraph_ndoe): Likewise.
29277 (symtab_alias_ultimate_target): New function.
29278 (cgraph_function_node): Move offline.
29279 (cgraph_reset_node): Declare.
29280 (cgraph_comdat_can_be_unshared_p): Remove.
29281 (varpool_remove_initializer): Declare.
29282 (varpool_first_defined_variable, varpool_next_defined_variable
29283 cgraph_first_defined_function, cgraph_next_defined_function): Update.
29284 (cgraph_function_with_gimple_body_p): Update.
29285 (varpool_all_refs_explicit_p): Update.
29286 (symtab_alias_target): New function.
29287 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
29288 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
29289 (cgraph_function_or_thunk_node): Simplify using
29290 symtab_alias_ultimate_target.
29291 (varpool_variable_node): Likewise.
29292 * cgraph.c (cgraph_create_function_alias): Update.
29293 (cgraph_add_thunk): Update.
29294 (cgraph_remove_node): Update.
29295 (dump_cgraph_node): Do not dump removed flags.
29296 (cgraph_function_body_availability): Update.
29297 (cgraph_propagate_frequency): Update.
29298 (verify_cgraph_node): Check sanity of local flag.
29299 (cgraph_function_node): Move here from cgraph.h; revamp for
29300 cgraph_function_or_thunk_node.
29301 * lto-symtab.c (lto_varpool_replace_node): Update.
29302 (lto_symtab_resolve_can_prevail_p): Update.
29303 (lto_symtab_merge_cgraph_nodes): Update.
29304 * ipa-cp.c (determine_versionability, initialize_node_lattices,
29305 propagate_constants_accross_call, devirtualization_time_bonus,
29306 ipcp_propagate_stage): Update.
29307 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
29308 * ipa-inline-transform.c (clone_inlined_nodes,
29309 preserve_function_body_p): Update.
29310 * ipa-reference.c (propagate): Update.
29311 (write_node_summary_p): Update.
29312 * toplev.c (wrapup_global_declaration_2): Update.
29313 * cgraphunit.c (cgraph_analyze_function): Rename to ...
29314 (analyze_function) ... this one.
29315 (cgraph_process_new_functions): Update.
29316 (cgraph_reset_node): Export.
29317 (cgraph_finalize_function): Update.
29318 (cgraph_add_new_function): Update.
29319 (process_function_and_variable_attributes): Update.
29320 (varpool_finalize_decl): Update.
29321 (symbol_finalized): Remove.
29322 (symbol_finalized_and_needed): Rename to ...
29323 (symbol_defined_and_needed): ... update.
29324 (cgraph_analyze_functions): Update.
29325 (handle_alias_pairs): Update.
29326 (mark_functions_to_output): Update.
29327 (assemble_thunk): Update.
29328 (output_in_order): Update.
29329 (output_weakrefs): Update.
29330 (finalize_compilation_unit): Update.
29331 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
29332 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
29333 input_node, input_varpool_node): Update.
29334 * dbxout.c (dbxout_expand_expr): Update.
29335 * cgraphclones.c (cgraph_clone_node): Update.
29336 (cgraph_copy_node_for_versioning): Update.
29337 (cgraph_materialize_clone): Update.
29338 (cgraph_materialize_all_clones): Update.
29339 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
29340 propagate_pure_const, propagate_nothrow): Update.
29341 * lto-streamer-out.c (lto_output, write_symbol): Update.
29342 * ipa-utils.c (ipa_reverse_postorder): Update.
29343 * ipa-inline.c (can_inline_edge_p): Update.
29344 (update_caller_keys, ipa_inline): Update.
29345 * dwarf2out.c (reference_to_unused,
29346 premark_types_used_by_global_vars_helper): Update.
29347 * tree-eh.c (tree_could_trap_p): Update.
29348 * ipa-split.c (consider_split, execute_split_functions): Update.
29349 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
29350 has_addr_references_p): Update; move ahead in file for better
29352 (process_references): Simplify.
29353 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
29354 bodies are removed.
29355 (cgraph_comdat_can_be_unshared_p): Make static.
29356 (cgraph_externally_visible_p): Update.
29357 (varpool_externally_visible_p): Update.
29358 (function_and_variable_visibility): Update.
29359 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
29360 ipa_tm_mark_force_output_node): Update.
29361 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
29362 estimate_edge_devirt_benefit, inline_generate_summary,
29363 inline_write_summary): Update.
29364 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
29365 * ipa-prop.c (ipa_compute_jump_functions): Update.
29366 (ipa_print_node_params, ipa_prop_read_section,
29367 ipa_update_after_lto_read, read_replacements_section): Update.
29368 * varasm.c (mark_decl_referenced): Update.
29369 (assemble_alias, dump_tm_clone_pairs): Update.
29370 * tree-inline.c (copy_bb): Update.
29371 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
29373 * symtab.c (dump_symtab_base): Print new flags.
29374 (verify_symtab_base): Verify new flags.
29375 (symtab_alias_ultimate_target): New function.
29376 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
29377 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
29379 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
29381 * i386.c (ix86_get_function_versions_dispatcher,
29382 ix86_generate_version_dispatcher_body): Update.
29383 (fold_builtin_cpu): Use varpool_add_new_variable.
29384 * varpool.c (varpool_remove_initializer): Break out from ...
29385 (varpool_remove_node): ... this one.
29386 (dump_varpool_node, varpool_node_for_asm,
29387 cgraph_variable_initializer_availability, varpool_analyze_node,
29388 varpool_assemble_decl, varpool_remove_unreferenced_decls,
29389 varpool_finalize_named_section_flags, varpool_create_variable_alias):
29392 2013-05-29 Jan Hubicka <jh@suse.cz>
29394 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
29396 2013-05-29 Easwaran Raman <eraman@google.com>
29398 PR tree-optimization/57442
29399 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
29400 when control exits the main loop.
29402 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
29404 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
29406 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
29407 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
29408 * rx/t-rx: Add rx100 under multi library matches option for nofpu
29411 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29413 PR tree-optimization/57441
29414 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
29415 Don't limit size of incr_vec to number of candidates.
29417 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
29419 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
29420 and mips16 directories.
29421 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
29422 (MULTILIB_DIRNAMES): Ditto.
29423 (MULTILIB_EXCEPTIONS): Add new exceptions.
29424 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
29425 (MULTILIB_DIRNAMES): Ditto.
29426 (MULTILIB_EXCEPTIONS): Add new exceptions.
29428 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
29429 Marcus Shawcroft <marcus.shawcroft@arm.com>
29431 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
29432 SYMBOL_TINY_ABSOLUTE.
29433 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
29434 SYMBOL_TINY_ABSOLUTE.
29435 (aarch64_expand_mov_immediate): Likewise.
29436 (aarch64_classify_symbol): Likewise.
29437 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
29438 Permit SYMBOL_TINY_ABSOLUTE.
29439 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
29441 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
29442 Marcus Shawcroft <marcus.shawcroft@arm.com>
29444 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
29445 Refactor if/switch. Replace gcc_assert with if.
29447 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29449 * config/i386/i386.c (initial_ix86_tune_features): Enable
29450 FP Reassociation for AMD bdver1 and bdver2.
29452 2013-05-29 Martin Jambor <mjambor@suse.cz>
29454 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
29455 and IMAGPART_EXPR do not occur within other handled_components.
29457 2013-05-29 Richard Biener <rguenther@suse.de>
29459 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
29460 access on whether the use is in the BB we currently try to
29462 (vect_bb_vectorization_profitable_p): Pass the BB we currently
29463 vectorize to vect_bb_slp_scalar_cost.
29465 2013-05-29 Richard Biener <rguenther@suse.de>
29467 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
29468 computing scalar cost offsetted by stmts that are kept live
29470 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
29471 for computation of scalar cost.
29473 2013-05-28 Steve Ellcey <sellcey@mips.com>
29475 * config/mips/mips-cpus.def (mips32r2): Change processor type.
29477 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
29479 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
29480 array notation built-in reduction functions.
29481 * doc/passes.texi (Passes): Added documentation about changes done
29483 * doc/invoke.texi (C Dialect Options): Added documentation about
29484 the -fcilkplus flag.
29485 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
29486 (BUILTINS_DEF): Depend on cilkplus.def.
29487 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
29488 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
29489 * cilkplus.def: New file.
29491 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
29493 PR rtl-optimization/57439
29494 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
29496 2013-05-28 Easwaran Raman <eraman@google.com>
29498 PR tree-optimization/57337
29499 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
29500 (find_insert_point): Correctly identify the insertion point
29501 when two statements with the same UID is compared.
29503 2013-05-28 Richard Biener <rguenther@suse.de>
29505 PR tree-optimization/56787
29506 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
29507 from the list of data references.
29508 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
29510 (vect_analyze_loop_operations): Likewise.
29511 (vect_transform_loop): Remove clobbers.
29513 2013-05-28 Martin Jambor <mjambor@suse.cz>
29515 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
29516 and REALPART_EXPRs have scalar type.
29518 2013-05-28 Richard Biener <rguenther@suse.de>
29520 PR tree-optimization/57411
29521 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
29523 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
29524 virtual operand propagation.
29526 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
29528 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
29529 destination register for bmasksi_vis.
29530 (vector_init_bshuffle): Likewise.
29531 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
29533 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
29535 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
29536 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
29537 mode if the instruction isn't available in the original mode.
29538 * config/sparc/sparc.opt (mfix-ut699): New option.
29539 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
29540 (divdf3): Turn into expander.
29541 (divdf3_nofix): New insn.
29542 (divdf3_fix): Likewise.
29543 (divsf3): Disable if -mfix-ut699.
29544 (sqrtdf2): Turn into expander.
29545 (sqrtdf2_nofix): New insn.
29546 (sqrtdf2_fix): Likewise.
29547 (sqrtsf2): Disable if -mfix-ut699.
29549 2013-05-27 Richard Biener <rguenther@suse.de>
29551 PR middle-end/57412
29552 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
29553 block for the new loop.
29555 2013-05-27 Richard Biener <rguenther@suse.de>
29557 PR tree-optimization/57343
29558 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
29559 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
29560 (number_of_iterations_cond): Do not build the folded tree.
29562 2013-05-27 Richard Biener <rguenther@suse.de>
29565 PR middle-end/57381
29566 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
29567 OEP_CONSTANT_ADDRESS_OF retained.
29569 PR tree-optimization/57417
29570 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
29571 for unchanged base.
29572 (set_ssa_val_to): Compare addresses using
29573 get_addr_base_and_unit_offset.
29575 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
29577 PR rtl-optimization/56833
29578 * postreload.c (move2add_record_mode): New function.
29579 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
29580 (move2add_use_add2_insn): Use move2add_record_sym_value.
29581 (move2add_use_add3_insn): Likewise.
29582 (reload_cse_move2add): Use move2add_valid_value_p and
29583 move2add_record_mode. Invalidate call-clobbered and REG_INC
29584 affected regs by setting reg_mode to VOIDmode.
29585 (move2add_note_store): Don't pretend the inside of a SUBREG is
29586 the actual destination. Invalidate single/leading registers by
29587 setting reg_mode to VOIDmode.
29588 Use move2add_record_sym_value, move2add_valid_value_p and
29589 move2add_record_mode.
29591 2013-05-27 Richard Biener <rguenther@suse.de>
29593 PR tree-optimization/57396
29594 * tree-affine.c (double_int_constant_multiple_p): Properly
29595 return false for val == 0 and div != 0.
29597 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
29599 * config/mips/mips.h: Use #elif in preprocessor conditions.
29601 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
29604 * config/mips/constraints.md (kl): New constraint.
29605 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
29606 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
29607 constraint for operand 0. Split after CSE for MIPS16. Emit a move
29608 from LO for MIPS16.
29609 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
29611 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
29614 * config/mips/mips.c (mips_can_inline_p): New function.
29615 (TARGET_CAN_INLINE_P): Define.
29617 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
29619 * sched-int.h (ds_t, dw_t): Make unsigned int.
29620 Fix documentation that describes how all the ds_t bits are used.
29621 Reserve the last bit for delayed-branch scheduling.
29622 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
29623 (BITS_PER_DEP_WEAK): Fix definition and documentation.
29624 (gen_dep_weak_1): Remove prototype.
29625 * sched-deps.c (get_dep_weak_1): Make static.
29626 * target.def (speculate_insn, needs_block_p, gen_spec_check,
29627 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
29628 * doc/tm.texi: Regenerate.
29629 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
29631 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
29634 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
29636 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
29637 Sandra Loosemore <sandra@codesourcery.com>
29639 * config.gcc (powerpc-*): Allow native for with-cpu.
29641 2013-05-24 Jeff Law <law@redhat.com>
29643 PR tree-optimization/57124
29644 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
29645 conversion feeding a condition if the range has an overflow
29646 if -fstrict-overflow. Add warnings for when we do make the
29649 2013-05-24 Dehao Chen <dehao@google.com>
29651 * tree-cfg.c (locus_discrim_map): Fix the typo.
29652 (locus_discrim_hasher): Likewise.
29653 (locus_discrim_hasher::hash): Likewise.
29654 (locus_discrim_hasher::equal): Likewise.
29656 2013-05-24 Martin Jambor <mjambor@suse.cz>
29658 PR tree-optimization/57294
29659 * cgraph.h (ipa_record_stmt_references): Declare.
29660 * cgraphbuild.c (ipa_record_stmt_references): New function.
29661 (build_cgraph_edges): Use ipa_record_stmt_references.
29662 (rebuild_cgraph_edges): Likewise.
29663 (cgraph_rebuild_references): Likewise.
29664 * ipa-prop.c (ipa_modify_call_arguments): Discard references
29665 associated with the old statement and build references from the
29666 newly built statements.
29667 * ipa-ref.c (ipa_remove_stmt_references): New function.
29668 * ipa-ref.h (ipa_remove_stmt_references): Declare.
29670 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
29672 * lra-constraints.c (emit_spill_move): Use smaller mode for
29674 (check_and_process_move): Consider mem-reg moves for secondary
29676 (curr_insn_transform): Don't lose insns emitted before for
29677 secondary memory moves.
29678 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
29679 reg set up in the current insn.
29681 2013-05-24 Dehao Chen <dehao@google.com>
29683 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
29685 (locus_descrim_hasher::equal): Likewise.
29686 (build_gimple_cfg): New discriminator assignment algorithm.
29687 (make_edges): Likewise.
29688 (next_discriminator_for_locus): Likewise.
29689 (same_line_p): Likewise.
29690 (assign_discriminators): Likewise.
29691 (make_cond_expr_edges): Likewise.
29692 (make_gimple_switch_edges): Likewise.
29693 (make_goto_expr_edges): Likewise.
29694 (make_gimple_asm_edges): Likewise.
29696 2013-05-24 Ian Bolton <ian.bolton@arm.com>
29698 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
29699 X format specifier to only display bottom 16 bits.
29700 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
29701 immediate to match for operand 2, since it will be masked.
29703 2013-05-24 Richard Biener <rguenther@suse.de>
29705 PR tree-optimization/57287
29706 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
29707 all SSA names that occur in abnormal PHIs.
29709 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
29712 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
29713 that index is not negative.
29715 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
29717 PR rtl-optimization/55177
29718 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
29719 (simplify_byte_swapping_operation): New.
29720 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
29721 (simplify_relational_operation_1): Deal with BSWAP.
29723 2013-05-23 Richard Henderson <rth@redhat.com>
29726 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
29727 (ix86_reorg): Call it.
29729 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
29732 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
29733 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
29734 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
29736 2013-05-23 Christian Bruel <christian.bruel@st.com>
29739 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
29741 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
29742 Marcus Shawcroft <marcus.shawcroft@arm.com>
29744 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
29745 * config/aarch64/constraints.md (Usa): Remove.
29746 * doc/md.texi (AArch64 Usa): Remove.
29748 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
29749 Marcus Shawcroft <marcus.shawcroft@arm.com>
29751 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
29752 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
29753 * config/aarch64/predicates.md (aarch64_const_address): Remove.
29754 (aarch64_mov_operand): Use aarch64_mov_operand_p.
29756 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
29758 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
29759 instruction (AdvSIMD).
29760 * config/aarch64/aarch64-builtins.c
29761 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
29762 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
29764 2013-05-23 Martin Jambor <mjambor@suse.cz>
29766 PR middle-end/57347
29767 * tree.h (contains_bitfld_component_ref_p): Declare.
29768 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
29769 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
29771 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
29772 not access a bit-field. Assert all final offsets are byte-aligned.
29774 2013-05-23 Richard Biener <rguenther@suse.de>
29776 PR tree-optimization/57380
29777 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
29778 least one invariant or re-used load.
29779 * passes.c (init_optimization_passes): Move pass_phiprop before
29782 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
29784 * config/aarch64/aarch64-simd.md
29785 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
29787 2013-05-23 Richard Biener <rguenther@suse.de>
29789 PR middle-end/57381
29790 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
29791 OEP_CONSTANT_ADDRESS_OF retained.
29793 2013-05-23 Jakub Jelinek <jakub@redhat.com>
29795 PR middle-end/57344
29796 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
29797 don't lower unit. Handle unit not being always BITS_PER_WORD.
29799 2013-05-23 Richard Biener <rguenther@suse.de>
29801 PR rtl-optimization/57341
29802 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
29803 instead of true_dependence.
29805 2013-05-22 David Malcolm <dmalcolm@redhat.com>
29807 * bb-reorder.c (branch_threshold): Make const.
29808 (exec_threshold): Ditto.
29810 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
29811 Pat Haugen <pthaugen@us.ibm.com>
29812 Peter Bergner <bergner@vnet.ibm.com>
29814 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
29815 documentation for the power8 crypto builtins.
29817 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
29819 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
29820 macros for defining power8 builtin functions.
29821 (BU_P8V_AV_2): Likewise.
29822 (BU_P8V_AV_P): Likewise.
29823 (BU_P8V_VSX_1): Likewise.
29824 (BU_P8V_OVERLOAD_1): Likewise.
29825 (BU_P8V_OVERLOAD_2): Likewise.
29826 (BU_CRYPTO_1): Likewise.
29827 (BU_CRYPTO_2): Likewise.
29828 (BU_CRYPTO_3): Likewise.
29829 (BU_CRYPTO_OVERLOAD_1): Likewise.
29830 (BU_CRYPTO_OVERLOAD_2): Likewise.
29831 (XSCVSPDP): Fix typo, point to the correct instruction.
29832 (VCIPHER): Add power8 crypto builtins.
29833 (VCIPHERLAST): Likewise.
29834 (VNCIPHER): Likewise.
29835 (VNCIPHERLAST): Likewise.
29836 (VPMSUMB): Likewise.
29837 (VPMSUMH): Likewise.
29838 (VPMSUMW): Likewise.
29839 (VPERMXOR_V2DI): Likewise.
29840 (VPERMXOR_V4SI: Likewise.
29841 (VPERMXOR_V8HI: Likewise.
29842 (VPERMXOR_V16QI: Likewise.
29843 (VSHASIGMAW): Likewise.
29844 (VSHASIGMAD): Likewise.
29845 (VPMSUM): Likewise.
29846 (VPERMXOR): Likewise.
29847 (VSHASIGMA): Likewise.
29849 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
29850 __CRYPTO__ if the crypto instructions are available.
29851 (altivec_overloaded_builtins): Add support for overloaded power8
29854 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
29855 support for power8 crypto builtins.
29856 (builtin_function_type): Likewise.
29857 (altivec_init_builtins): Add support for builtins that take vector
29858 long long (V2DI) arguments.
29860 * config/rs6000/crypto.md: New file, define power8 crypto
29863 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
29864 Pat Haugen <pthaugen@us.ibm.com>
29865 Peter Bergner <bergner@vnet.ibm.com>
29867 * doc/invoke.texi (Option Summary): Add power8 options.
29868 (RS/6000 and PowerPC Options): Likewise.
29870 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
29871 constraints.md instead of rs6000.h. Reorder w* constraints. Add
29872 wm, wn, wr documentation.
29874 * config/rs6000/constraints.md (wm): New constraint for VSX
29875 registers if direct move instructions are enabled.
29876 (wn): New constraint for no registers.
29877 (wq): New constraint for quad word even GPR registers.
29878 (wr): New constraint if 64-bit instructions are enabled.
29879 (wv): New constraint if power8 vector instructions are enabled.
29880 (wQ): New constraint for quad word memory locations.
29882 * config/rs6000/predicates.md (const_0_to_15_operand): New
29883 constraint for 0..15 for crypto instructions.
29884 (gpc_reg_operand): If VSX allow registers in VSX registers as well
29885 as GPR and floating point registers.
29886 (int_reg_operand): New predicate to match only GPR registers.
29887 (base_reg_operand): New predicate to match base registers.
29888 (quad_int_reg_operand): New predicate to match even GPR registers
29889 for quad memory operations.
29890 (vsx_reg_or_cint_operand): New predicate to allow vector logical
29891 operations in both GPR and VSX registers.
29892 (quad_memory_operand): New predicate for quad memory operations.
29893 (reg_or_indexed_operand): New predicate for direct move support.
29895 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
29896 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
29897 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
29898 (POWERPC_MASKS): Add power8 options.
29899 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
29902 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
29903 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
29905 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
29906 (-mpower8-fusion): New power8 options.
29907 (-mpower8-fusion-sign): Likewise.
29908 (-mpower8-vector): Likewise.
29909 (-mcrypto): Likewise.
29910 (-mdirect-move): Likewise.
29911 (-mquad-memory): Likewise.
29913 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
29914 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
29916 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
29917 (rs6000_debug_vector_unit): Add p8_vector.
29918 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
29919 definitions. Also print fusion state.
29920 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
29921 (rs6000_builtin_mask_calculate): Add power8 builtin support.
29922 (rs6000_option_override_internal): Add support for power8.
29923 (rs6000_common_init_builtins): Add debugging for skipped builtins
29924 if -mdebug=builtin.
29925 (rs6000_adjust_cost): Add power8 support.
29926 (rs6000_issue_rate): Likewise.
29927 (insn_must_be_first_in_group): Likewise.
29928 (insn_must_be_last_in_group): Likewise.
29929 (force_new_group): Likewise.
29930 (rs6000_register_move_cost): Likewise.
29931 (rs6000_opt_masks): Likewise.
29933 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
29934 power8 capable assembler, default to power7 options.
29935 (TARGET_DIRECT_MOVE): Likewise.
29936 (TARGET_CRYPTO): Likewise.
29937 (TARGET_P8_VECTOR): Likewise.
29938 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
29939 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
29940 (VECTOR_MEM_P8_VECTOR_P): Likewise.
29941 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
29942 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
29943 (TARGET_XSCVDPSPN): Likewise.
29944 (TARGET_XSCVSPDPN): Likewsie.
29945 (TARGET_SYNC_HI_QI): Likewise.
29946 (TARGET_SYNC_TI): Likewise.
29947 (MASK_CRYPTO): Likewise.
29948 (MASK_DIRECT_MOVE): Likewise.
29949 (MASK_P8_FUSION): Likewise.
29950 (MASK_P8_VECTOR): Likewise.
29951 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
29952 temporary used by some of the direct move instructions to get two FP
29953 temporary registers does not force creation of a stack frame.
29954 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
29955 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
29956 that any VSX registers are tieable, even if they are also an
29957 Altivec vector mode.
29958 (r6000_reg_class_enum): Add wm, wr, wv constraints.
29959 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
29960 (RS6000_BTM_CRYPTO): Likewise.
29961 (RS6000_BTM_COMMON): Likewise.
29963 * config/rs6000/rs6000.md (cpu attribute): Add power8.
29964 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
29965 (enum rs6000_vector): Add power8 vector support.
29967 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29971 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
29972 (any_sibcall_could_use_r3): this and handle indirect calls.
29973 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
29975 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29977 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
29979 2013-05-22 Richard Biener <rguenther@suse.de>
29981 PR middle-end/57349
29982 * profile.c (branch_prob): Do not split blocks that are
29983 abnormally receiving from ECF_RETURNS_TWICE functions.
29985 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
29987 * recog.c (offsettable_address_addr_space_p): Fix calculation of
29988 address mode. Move pointer mode initialization to the same place.
29990 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
29992 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
29993 while it has any effect.
29995 2013-05-21 Easwaran Raman <eraman@google.com>
29997 PR tree-optimization/57322
29998 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
29999 UID of the statement added to the BB to be 1.
30001 2013-05-21 Jakub Jelinek <jakub@redhat.com>
30003 PR tree-optimization/57331
30004 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
30005 of conversion from pointer type to integral type with integer.
30007 2013-05-21 Martin Jambor <mjambor@suse.cz>
30010 * ipa-prop.c (ipa_read_node_info): Process param_used and
30011 controlled_uses in the same order as when writing.
30013 2013-05-21 Magnus Granberg <baldrick@free.fr>
30016 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
30018 2013-05-21 Richard Biener <rguenther@suse.de>
30020 PR tree-optimization/57318
30021 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
30022 estimate stmts with side-effects as likely eliminated.
30024 2013-05-21 Richard Biener <rguenther@suse.de>
30026 PR tree-optimization/57330
30027 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
30028 preserve the call stmts fntype.
30030 2013-05-21 Richard Biener <rguenther@suse.de>
30032 PR tree-optimization/57303
30033 * tree-ssa-sink.c (statement_sink_location): Improve killing
30034 stmt detection and properly handle self-assignments.
30036 2013-05-21 Christian Bruel <christian.bruel@st.com>
30038 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
30039 spanning registers. LEAF_REG_REMAP is supported only for contiguous
30040 registers. Set register size out of the PARALLEL loop.
30042 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
30045 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
30046 (*fmasf4, *fmasf4_media): New insns.
30048 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
30050 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
30051 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
30052 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
30053 (mips_idiv_insns): Update the comments to say that the returned
30054 instruction counts are in units of BASE_INSN_LENGTH.
30055 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
30056 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
30057 using 2 rather than 4 as the length of indirect MIPS16 and
30058 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
30059 length of a NOP. Don't divide MIPS16 lengths by 2.
30060 (mips16_split_long_branches): Assume a branch is long if the
30061 length is greater than 4 rather than 8.
30062 * config/mips/mips.md (length): Give MIPS16 lengths directly,
30063 rather than multiplying them by 2. Multiply instruction counts
30064 by BASE_INSN_LENGTH rather than 4.
30065 (*jump_mips16, tls_get_tp_mips16_<mode>)
30066 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
30068 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
30070 * config/mips/mips.md (extended_mips16): Remove branch case.
30071 (length): Remove duplicated extended_mips16 test.
30073 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
30075 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
30077 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
30079 * recog.h (Recog_data): Rename to...
30080 (recog_data_d): ...this.
30081 (recog_data): Update accordingly.
30082 * recog.c (recog_data): Likewise.
30083 * reload.c (save_recog_data): Likewise.
30084 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
30085 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
30087 2013-05-17 Julian Brown <julian@codesourcery.com>
30089 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
30090 found in a REG_EQUAL note, invalidate it.
30092 2013-05-17 Easwaran Raman <eraman@google.com>
30094 * tree-ssa-reassoc.c (find_insert_point): New function.
30095 (insert_stmt_after): Likewise.
30096 (get_def_stmt): Likewise.
30097 (ensure_ops_are_available): Likewise.
30098 (not_dominated_by): Likewise.
30099 (rewrite_expr_tree): Do not move statements beyond what is
30100 necessary. Remove call to swap_ops_for_binary_stmt...
30101 (reassociate_bb): ... and move it here.
30102 (build_and_add_sum): Assign UIDs for new statements.
30103 (linearize_expr): Likewise.
30104 (do_reassoc): Renumber gimple statement UIDs.
30106 2013-05-17 Jan Hubicka <jh@suse.cz>
30108 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
30110 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
30111 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
30113 (output_weakrefs): Update.
30115 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
30116 Martin Jambor <mjambor@suse.cz>
30118 PR middle-end/57276
30119 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
30120 value that corresponds to the given aggval is found in values vector.
30122 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
30124 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
30125 sse, sse2, sse3, ssse3 and sse4a flags to options.
30127 2013-05-17 David Malcolm <dmalcolm@redhat.com>
30129 * gengtype-state.c: (s_expr_writer): New class, to handle
30130 prettifying of output layout of s-expressions.
30131 (state_writer): New class, to write out gtype.state.
30132 (state_written_type_count): Move this variable into member data of
30134 (s_expr_writer::s_expr_writer): New code: constructor for new class
30135 (state_writer::state_writer(): ditto
30136 (s_expr_writer::write_new_line): New function
30137 (s_expr_writer::write_any_indent): ditto
30138 (s_expr_writer::begin_s_expr): ditto
30139 (s_expr_writer::end_s_expr): ditto
30140 (write_state_fileloc): convert to method of state_writer...
30141 (state_writer:: write_state_fileloc): ...and use methods of
30142 s_expr_writer to write indentation into the gtype.state output file
30143 to visually represent the hierarchical structure of the list
30145 (write_state_fields): ditto, renaming to...
30146 (state_writer::write_state_fields)
30147 (write_state_a_string): ditto, renaming to...
30148 (state_writer::write_state_a_string)
30149 (write_state_string_option): ditto, renaming to...
30150 (state_writer::write_state_string_option)
30151 (write_state_type_option): ditto, renaming to...
30152 (state_writer::write_state_type_option)
30153 (write_state_nested_option): ditto, renaming to...
30154 (state_writer::write_state_nested_option)
30155 (write_state_option): ditto, renaming to...
30156 (state_writer::write_state_option)
30157 (write_state_options): ditto, renaming to...
30158 (state_writer::write_state_options)
30159 (write_state_lang_bitmap): ditto, renaming to...
30160 (state_writer::write_state_lang_bitmap)
30161 (write_state_version): ditto, renaming to...
30162 (state_writer::write_state_version)
30163 (write_state_scalar_type): ditto, renaming to...
30164 (state_writer::write_state_scalar_type)
30165 (write_state_string_type): ditto, renaming to...
30166 (state_writer::write_state_string_type)
30167 (write_state_undefined_type): ditto, renaming to...
30168 (state_writer::write_state_undefined_type)
30169 (write_state_struct_union_type): ditto, renaming to...
30170 (state_writer::write_state_struct_union_type)
30171 (write_state_struct_type): ditto, renaming to...
30172 (state_writer::write_state_struct_type)
30173 (write_state_user_struct_type): ditto, renaming to...
30174 (state_writer::write_state_user_struct_type)
30175 (write_state_lang_struct_type): ditto, renaming to...
30176 (state_writer::write_state_lang_struct_type)
30177 (write_state_param_struct_type): ditto, renaming to...
30178 (state_writer::write_state_param_struct_type)
30179 (write_state_pointer_type): ditto, renaming to...
30180 (state_writer::write_state_pointer_type)
30181 (write_state_array_type): ditto, renaming to...
30182 (state_writer::write_state_array_type)
30183 (write_state_gc_used): ditto, renaming to...
30184 (state_writer::write_state_gc_used)
30185 (write_state_common_type_content): ditto, renaming to...
30186 (state_writer::write_state_common_type_content)
30187 (write_state_type): ditto, renaming to...
30188 (state_writer::write_state_type)
30189 (write_state_pair_list): ditto, renaming to...
30190 (state_writer::write_state_pair_list)
30191 (write_state_pair): ditto, renaming to...
30192 (state_writer::write_state_pair)
30193 (write_state_typedefs): ditto, renaming to...
30194 (state_writer::write_state_typedefs)
30195 (write_state_structures): ditto, renaming to...
30196 (state_writer::write_state_structures)
30197 (write_state_param_structs): ditto, renaming to...
30198 (state_writer::write_state_param_structs)
30199 (write_state_variables): ditto, renaming to...
30200 (state_writer::write_state_variables)
30201 (write_state_srcdir): ditto, renaming to...
30202 (state_writer::write_state_srcdir)
30203 (write_state_files_list): ditto, renaming to...
30204 (state_writer::write_state_files_list)
30205 (write_state_languages): ditto, renaming to...
30206 (state_writer::write_state_languages)
30207 (write_state): create a state_writer instance and use it when
30208 writing out the state file
30210 2013-05-17 Mike Stump <mikestump@comcast.net>
30212 PR rtl-optimization/57304
30213 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
30214 accessing DF_REF_REAL_LOC.
30216 2013-05-17 Jakub Jelinek <jakub@redhat.com>
30218 PR rtl-optimization/57281
30219 PR rtl-optimization/57300
30220 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
30221 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
30222 what the other splitter did if the registers are dead.
30224 2013-05-17 Richard Biener <rguenther@suse.de>
30226 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
30229 2013-05-17 Jakub Jelinek <jakub@redhat.com>
30231 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
30234 2013-05-17 Marek Polacek <polacek@redhat.com>
30236 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
30237 length when doing non-zero store of storing '\0' to '\0'.
30239 2013-05-17 Jakub Jelinek <jakub@redhat.com>
30241 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
30242 vect_external_def oprnd1 with loop_vinfo, try to emit
30243 optional cast, negation and and stmts on the loop preheader
30244 edge instead of into the pattern def seq.
30246 PR tree-optimization/57051
30247 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
30248 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
30250 2013-05-16 Nick Clifton <nickc@redhat.com>
30252 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
30253 (rl78_is_naked_func): New function.
30254 (rl78_expand_prologue): Skip prologue generation for naked functions.
30255 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
30256 * doc/extend.texi (naked): Add RL78 to the list of processors
30257 that supports this attribute.
30259 2013-05-16 Jeff Law <law@redhat.com>
30261 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
30263 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
30265 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
30266 cache parameters using detect_caches_amd also for CYRIX,
30267 NSC and TM2 signatures.
30269 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
30270 Dzianis Kahanovich <mahatma@eu.by>
30274 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
30275 VIA/Centaur processors and determine their cache parameters
30276 using detect_caches_amd.
30278 2013-05-16 Teresa Johnson <tejohnson@google.com>
30280 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
30281 (rtl_verify_edges): New function.
30282 (rtl_verify_bb_insns): Ditto.
30283 (rtl_verify_bb_pointers): Ditto.
30284 (rtl_verify_bb_insn_chain): Ditto.
30285 (rtl_verify_fallthru): Ditto.
30286 (rtl_verify_bb_layout): Ditto.
30287 (rtl_verify_flow_info_1): Outline checks into new functions.
30288 (rtl_verify_flow_info): Ditto.
30290 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
30292 * cfghooks.c (copy_bbs): Add update_dominance argument.
30293 * cfghooks.h (copy_bbs): Update prototype.
30294 * tree-cfg.c (gimple_duplicate_sese_region):
30295 Add update_dominance argument.
30296 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
30297 * tree-ssa-loop-ch.c (copy_loop_headers): Update
30298 gimple_duplicate_sese_region call.
30299 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
30300 Update copy_bbs call.
30301 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
30302 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
30304 2013-05-16 Jakub Jelinek <jakub@redhat.com>
30306 * tree-vectorizer.h (NUM_PATTERNS): Increment.
30307 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
30308 vect_recog_rotate_pattern.
30309 (vect_recog_rotate_pattern): New function.
30311 2013-05-16 Jason Merrill <jason@redhat.com>
30313 * Makefile.in (LLINKER): New variable.
30314 (mostlyclean): Remove link mutex.
30315 * configure.ac: Handle --enable-link-mutex.
30316 * lock-and-run.sh: New script.
30318 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30321 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
30324 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30326 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
30328 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
30330 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
30331 * config/arm/arm.c (next_consecutive_mem): New function.
30332 (gen_movmem_ldrd_strd): Likewise.
30333 * config/arm/arm.md (movmemqi): Update condition and code.
30334 (unaligned_loaddi, unaligned_storedi): New patterns.
30336 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30338 * config.gcc: Obsolete *-*-solaris2.9*.
30339 * doc/install.texi (Specific, *-*-solaris2*): Document it.
30341 2013-05-16 Richard Biener <rguenther@suse.de>
30343 * passes.c (init_optimization_passes): Move pass_parallelize_loops
30344 earlier, after GRAPHITE transforms and IV canonicalization.
30346 2013-05-16 Jakub Jelinek <jakub@redhat.com>
30348 * omp-low.c (extract_omp_for_data): For collapsed loops,
30349 if at least one of the loops is known at compile time to
30350 iterate zero times, set count to 0.
30351 (expand_omp_regimplify_p): New function.
30352 (expand_omp_for_generic): For collapsed loops, if at least
30353 one of the loops isn't known to iterate at least once,
30354 add runtime check with setting count to 0.
30355 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
30356 For unsigned types if it isn't known at compile time that
30357 the loop will iterate at least once, add runtime check to bypass
30358 the whole loop if initial condition isn't true.
30360 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
30362 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
30364 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
30366 PR middle-end/57286
30367 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
30368 transformations to avoid an infinite loop.
30370 2013-05-16 Marek Polacek <polacek@redhat.com>
30372 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
30374 2013-05-15 Leif Ekblad <leif@rdos.net>
30376 * config/i386/i386.c (ix86_decompose_address): Use
30377 DEFAULT_TLS_SEG_REG to access TLS segment register.
30378 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
30379 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
30380 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
30382 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
30385 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
30386 sibling calls to functions that would normally be lazily bound,
30387 unless $gp is call-clobbered.
30389 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
30391 * config/i386/i386.c (ix86_option_override_internal): Update
30392 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
30393 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
30394 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
30395 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
30397 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
30399 2013-05-15 Andreas Schwab <schwab@suse.de>
30401 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
30402 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
30405 2013-05-15 Teresa Johnson <tejohnson@google.com>
30407 * loop-unroll.c (report_unroll_peel): Check decision before
30408 emitting unroll/peel message.
30410 2013-05-15 Teresa Johnson <tejohnson@google.com>
30412 * function.h (has_bb_partition): New rtl_data flag.
30413 (bb_reorder_complete): Ditto.
30414 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
30415 instead of flag_reorder_blocks_and_partition.
30416 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
30417 with some enhancements.
30418 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
30419 * bb-reorder.c (connect_traces): Check for has_bb_partition
30420 instead of flag_reorder_blocks_and_partition.
30421 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
30422 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
30423 verify_hot_cold_block_grouping.
30424 (partition_hot_cold_basic_blocks): Set has_bb_partition.
30426 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30429 * config/arm/predicates.md (call_insn_operand): New predicate.
30430 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
30431 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
30432 if insn is not a tail call.
30433 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
30435 * config/arm/arm.h (enum reg_class): New caller save register class.
30436 (REG_CLASS_NAMES): Likewise.
30437 (REG_CLASS_CONTENTS): Likewise.
30438 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
30441 2013-05-15 Richard Biener <rguenther@suse.de>
30443 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
30444 of MSG_OPTIMIZED_LOCATIONS.
30445 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
30446 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
30448 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
30449 of MSG_OPTIMIZED_LOCATIONS.
30450 (execute_vect_slp): Likewise.
30451 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
30452 (vect_create_cond_for_alias_checks): Likewise.
30453 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
30454 (vect_recog_widen_mult_pattern): Likewise.
30455 (vect_recog_widen_sum_pattern): Likewise.
30456 (vect_recog_over_widening_pattern): Likewise.
30457 (vect_recog_widen_shift_pattern): Likewise.
30458 (vect_recog_vector_vector_shift_pattern): Likewise.
30459 (vect_recog_divmod_pattern): Likewise.
30460 (vect_recog_mixed_size_cond_pattern): Likewise.
30461 (vect_recog_bool_pattern): Likewise.
30462 (vect_pattern_recog_1): Likewise.
30464 2013-05-15 Martin Jambor <mjambor@suse.cz>
30466 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
30467 non-functions to builtin_unreachable.
30468 * ipa-inline-transform.c (inline_call): Do not assert estimates were
30469 correct when new direct edges were discovered.
30471 2013-05-15 Martin Jambor <mjambor@suse.cz>
30473 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
30474 header, print symbol order instead of node uid, print more information
30475 about indirect edge targets.
30476 (ipa_make_edge_direct_to_target): Print symbol order instead of node
30478 (ipa_make_edge_direct_to_target): Likewise.
30479 (remove_described_reference): Likewise.
30480 (propagate_controlled_uses): Likewise.
30481 (ipa_print_node_params): Also print symbol order.
30482 (ipcp_transform_function): Print symbol order instead of node uids.
30483 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
30484 (cgraph_get_create_real_symbol_node): Likewise.
30485 * ipa-cp.c (print_lattice): Likewise.
30486 (print_all_lattices): Likewise.
30487 (determine_versionability): Likewise.
30488 (initialize_node_lattices): Likewise.
30489 (estimate_local_effects): Likewise.
30490 (update_profiling_info): Likewise.
30491 (create_specialized_node): Likewise.
30492 (perhaps_add_new_callers): Likewise.
30493 (decide_about_value): Likewise.
30494 (decide_whether_version_node): Likewise.
30495 (identify_dead_nodes): Likewise.
30496 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
30497 (dump_inline_summary): Likewise.
30498 (estimate_node_size_and_time): Likewise.
30499 (inline_analyze_function): Likewise.
30500 * ipa-inline.c (report_inline_failed_reason): Likewise.
30501 (want_early_inline_function_p): Likewise.
30502 (edge_badness): Likewise.
30503 (update_edge_key): Likewise.
30504 (inline_small_functions): Likewise. Add dumping of order to two other
30506 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
30507 instead of node uids.
30508 (propagate_pure_const): Likewise.
30509 (propagate_pure_const): Likewise.
30510 * ipa-utils.c (dump_cgraph_node_set): Likewise.
30511 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
30512 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
30514 * tree-pretty-print.c (dump_function_header): Likewise.
30515 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
30516 Print symbol order instead of node uids.
30518 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30520 * config/s390/s390.c (s390_register_move_cost): Don't impose the
30521 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
30523 2013-05-15 Richard Biener <rguenther@suse.de>
30525 PR tree-optimization/57275
30526 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
30527 return value for fail to do runtime alias checks for gather loads.
30529 2013-05-15 Jan Hubicka <jh@suse.cz>
30533 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
30534 weakrefs are not external.
30535 (lto_symtab_merge_decls): Fix thinko when dealing with
30536 non-lto_symtab decls.
30537 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
30538 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
30539 * varpool.c (dump_varpool_node): Dump more flags.
30541 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
30543 * config/i386/i386.c (processor_alias_table): Add instruction
30544 FSGSBASE for AMD bdver3 architecture.
30546 2013-05-14 Jakub Jelinek <jakub@redhat.com>
30548 * tree.c (warn_deprecated_use): Print file:line using locus color.
30549 * diagnostic.c (diagnostic_report_current_module): Print file:line
30550 and file:line:column using locus color.
30552 2013-05-14 Mike Stump <mikestump@comcast.net>
30554 * gdbinit.in: Add __null.
30556 2013-05-14 Mike Stump <mikestump@comcast.net>
30558 * recog.h: Rename struct recog_data to Recog_data.
30559 * recog.c: Likewise.
30560 * reload.c (can_reload_into): Likewise.
30561 * config/picochip/picochip.c: Likewise.
30563 2013-05-14 Mike Stump <mikestump@comcast.net>
30565 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
30567 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
30569 * resource.h (struct resources): Remove unch_memory member.
30570 (CLEAR_RESOURCE): Don't clear unch_memory.
30571 * resource.c (mark_referenced_resources): Don't set it.
30572 (mark_set_resources): Likewise.
30573 (mark_target_live_regs): Don't clear it.
30574 (init_resource_info): Likewise.
30575 * reorg.c (resource_conflicts_p): Don't compare it.
30576 (redundant_insn): Don't set it.
30578 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
30580 * emit-rtl.c (next_label): Remove unused function.
30581 (skip_consecutive_labels, link_cc0_insns): Move to ...
30582 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
30583 only place where these functions are used, and make them static.
30585 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
30587 * fold-const.c (fold_negate_expr): Handle vectors.
30588 (fold_truth_not_expr): Make it static.
30589 (fold_invert_truthvalue): New static function.
30590 (invert_truthvalue_loc): Handle vectors. Do not call
30591 fold_truth_not_expr directly.
30592 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
30593 <TRUTH_NOT_EXPR>: Do not cast to boolean.
30594 (fold_comparison): Handle vector constants.
30595 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
30596 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
30597 * tree.h (fold_truth_not_expr): Remove declaration.
30599 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
30601 * config/aarch64/aarch64-simd.md
30602 (aarch64_vcond_internal<mode>): Rename to...
30603 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
30604 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
30605 float modes. Clarify all iterator modes.
30606 (vcond<mode><mode>): Use new name for vcond expanders.
30607 (vcond<v_cmp_result><mode>): Likewise.
30608 (vcondu<mode><mode>: Likewise.
30609 * config/aarch64/iterators.md (VDQF_COND): New.
30611 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
30614 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
30615 variable for the shift amount. Check that we shift by non-negative
30618 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
30621 * config/arm/arm.h (EPILOGUE_USES): Only return true
30622 for LR_REGNUM after epilogue_completed.
30624 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
30626 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
30627 is error_mark_node.
30629 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30632 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
30633 and Solaris 11+/x86 with gld.
30634 * configure: Regenerate.
30636 2013-05-14 Jakub Jelinek <jakub@redhat.com>
30638 * expmed.c (expand_shift_1): Canonicalize rotates by
30639 constant bitsize / 2 to bitsize - 1.
30640 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
30641 case ROTATERT>: Likewise.
30644 2013-05-10 Jakub Jelinek <jakub@redhat.com>
30646 * config/i386/i386.md (rotateinv): New code attr.
30647 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
30648 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
30649 roll $31, %eax, etc.
30651 2013-05-14 Richard Biener <rguenther@suse.de>
30653 PR middle-end/57235
30654 * tree-eh.c (sink_clobbers): Give up for successors with
30655 multiple predecessors and no virtual uses.
30657 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
30659 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
30660 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
30662 2013-05-14 Jakub Jelinek <jakub@redhat.com>
30664 PR middle-end/57251
30665 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
30666 the case when both op0 and op1 have VOIDmode.
30668 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
30670 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
30671 in multiply-accumulate mode.
30673 2013-05-13 Guozhi Wei <carrot@google.com>
30675 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
30677 2013-05-13 Kai Tietz <ktietz@redhat.com>
30680 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
30681 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
30682 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
30683 * config/i386/i386.c (ix86_option_override_internal): Likewise.
30684 (ix86_expand_prologue): Likewise.
30685 (ix86_expand_split_stack_prologue): Likewise.
30686 (legitimate_pic_address_disp_p): Likewise.
30687 (legitimize_pic_address): Likewise.
30688 (legitimize_tls_address): Likewise.
30689 (legitimize_pe_coff_symbol): Likewise.
30690 (output_pic_addr_const): Likewise.
30691 (construct_plt_address): Likewise.
30692 (ix86_expand_call): Likewise.
30693 (x86_output_mi_thunk): Likewise.
30694 (x86_function_profiler): Likewise.
30696 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
30698 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
30699 similar switch cases.
30700 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
30701 (aarch64_simd_mov_to_<mode>low): Delete.
30702 (aarch64_simd_mov_to_<mode>high): Delete.
30703 (move_lo_quad_<mode>): Add w<-r alternative.
30704 (aarch64_simd_move_hi_quad_<mode>): Likewise.
30705 (aarch64_simd_mov_from_*): Update type attribute.
30706 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
30709 2013-05-13 Jan Hubicka <jh@suse.cz>
30711 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
30712 * config/i386/i386.c (ix86_compute_frame_layout,
30713 ix86_expand_epilogue, emit_i387_cw_initialization,
30714 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
30715 ix86_local_alignment): Fix use of size/speed predicates.
30717 2013-05-13 Jakub Jelinek <jakub@redhat.com>
30719 PR tree-optimization/45216
30720 PR tree-optimization/57157
30721 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
30722 the (-Y) & (B - 1) variant if OP is |.
30723 * expmed.c (expand_shift_1): For rotations by const0_rtx just
30724 return shifted. Use (-op1) & (prec - 1) as other_amount
30725 instead of prec - op1.
30727 2013-05-13 Martin Jambor <mjambor@suse.cz>
30729 PR middle-end/42371
30730 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
30731 (ipa_constant_data): New type.
30732 (ipa_jump_func): Use ipa_constant_data to hold information about
30733 constant jump functions.
30734 (ipa_get_jf_constant): Adjust to jump function type changes.
30735 (ipa_get_jf_constant_rdesc): New function.
30736 (ipa_param_descriptor): New field controlled_uses.
30737 (ipa_get_controlled_uses): New function.
30738 (ipa_set_controlled_uses): Likewise.
30739 * ipa-ref.h (ipa_find_reference): Declare.
30740 * ipa-prop.c (ipa_cst_ref_desc): New type.
30741 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
30743 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
30744 New parameter cs. Adjust all callers.
30745 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
30746 (remove_described_reference): New function.
30747 (jfunc_rdesc_usable): Likewise.
30748 (try_make_edge_direct_simple_call): Decrement controlled use count,
30749 attempt to remove reference if it hits zero.
30750 (combine_controlled_uses_counters): New function.
30751 (propagate_controlled_uses): Likewise.
30752 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
30753 (ipa_edge_duplication_hook): Duplicate reference descriptions.
30754 (ipa_print_node_params): Print described use counter.
30755 (ipa_write_jump_function): Adjust to jump function type changes.
30756 (ipa_read_jump_function): New parameter CS, pass it to
30757 ipa_set_jf_constant. Adjust caller.
30758 (ipa_write_node_info): Stream controlled use count
30759 (ipa_read_node_info): Likewise.
30760 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
30762 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
30763 count. Remove cloning-added reference if it reaches zero.
30764 * ipa-ref.c (ipa_find_reference): New function.
30766 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
30768 * config/i386/i386.c (processor_target_table): Modified default
30769 alignment values for AMD BD and BT architectures.
30771 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
30773 * tree-vect-generic.c (uniform_vector_p): Move ...
30774 * tree.c (uniform_vector_p): ... here.
30775 * tree.h (uniform_vector_p): Declare it.
30776 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
30779 2013-05-13 Jakub Jelinek <jakub@redhat.com>
30781 PR tree-optimization/57230
30782 * tree-ssa-strlen.c (handle_char_store): Record length for
30783 array store from STRING_CST.
30785 PR tree-optimization/57230
30786 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
30789 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
30791 * config/epiphany/epiphany.c (epiphany_init): Check size of
30792 NUM_MODES_FOR_MODE_SWITCHING.
30793 (epiphany_expand_prologue):
30794 Remove CONFIG_REGNUM initial value handling code.
30795 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
30796 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
30797 (emit_set_fp_mode, epiphany_mode_after): Likewise.
30798 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
30799 Don't return 1 for FP_MODE_NONE.
30800 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
30801 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
30802 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
30803 * config/epiphany/epiphany.md (save_config): New pattern.
30805 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
30807 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
30809 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
30811 * config/i386/i386.md (memory): Handle sseishft1.
30812 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
30813 (*vec_extractv2di_1): Ditto.
30815 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
30817 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
30820 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
30822 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
30823 Add mthumb/march=armv7-a multilib.
30824 Add mthumb/march=armv7-r multilib.
30825 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
30827 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
30829 * config/v850/t-rtems: Add more multilibs.
30831 2013-05-10 Richard Biener <rguenther@suse.de>
30833 PR tree-optimization/57214
30834 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
30835 not propagate from SSA names that occur in abnormal PHI nodes.
30837 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
30839 * stor-layout.c (element_precision): New function.
30840 * machmode.h (element_precision): Declare it.
30841 * tree.c (build_minus_one_cst): New function.
30842 (element_precision): Likewise.
30843 * tree.h (build_minus_one_cst): Declare new function.
30844 (element_precision): Likewise.
30845 * fold-const.c (operand_equal_p): Use element_precision.
30846 (fold_binary_loc): Handle vector types.
30847 * convert.c (convert_to_integer): Use element_precision.
30848 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
30851 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
30853 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
30854 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
30855 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
30856 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
30857 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
30858 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
30859 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
30860 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
30861 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
30862 (Uuw8): New constraints.
30863 (Usb4): Move into alphabetical order.
30864 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
30865 (sd8_operand, ub8_operand, uw8_operand): New predicates.
30866 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
30867 previously unnamed patterns.
30868 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
30869 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
30870 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
30871 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
30872 of set_attr_alternative/if_then_else. Use extended_mips16 instead
30873 of specific lengths.
30875 2013-05-10 Jakub Jelinek <jakub@redhat.com>
30877 * config/i386/i386.md (rotateinv): New code attr.
30878 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
30879 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
30880 roll $31, %eax, etc.
30882 PR tree-optimization/45216
30883 PR tree-optimization/57157
30884 * tree-ssa-forwprop.c (simplify_rotate): New function.
30885 (ssa_forward_propagate_and_combine): Call it.
30887 2013-05-10 Richard Biener <rguenther@suse.de>
30889 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
30890 disable peeling when we version for aliasing.
30891 (vector_alignment_reachable_p): Honor explicit user alignment.
30892 (vect_supportable_dr_alignment): Likewise.
30893 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
30894 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
30895 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
30896 then peeling to arrange for the cost-model check to come first.
30898 2013-05-10 Alan Modra <amodra@gmail.com>
30900 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
30901 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
30902 * configure: Regenerate.
30904 2013-05-10 Alan Modra <amodra@gmail.com>
30907 * varasm.c (default_elf_select_section): Move !DECL_P check..
30908 (get_named_section): ..to here before calling get_section_name.
30910 (default_section_type_flags): Add DECL_P check.
30911 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
30912 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
30914 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
30916 * config/epiphany/epiphany.c (epiphany_expand_prologue):
30917 When using gen_stack_adjust_str with a register offset, add a
30918 REG_FRAME_RELATED_EXPR note.
30920 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
30922 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
30923 (*vec_extractv4si_zext_mem): Ditto.
30924 (*vec_extractv2di): Add 0->x and x->x alternatives.
30925 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
30926 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
30928 2013-05-09 Jason Merrill <jason@redhat.com>
30930 N3639 C++1y VLA support
30931 * gimplify.c (gimplify_vla_decl): Don't touch an existing
30934 * tree.c (build_constructor_va): New.
30935 * tree.h: Declare it.
30937 2013-05-09 Martin Jambor <mjambor@suse.cz>
30940 * gimple-fold.c (canonicalize_constructor_val): Call
30941 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
30943 2013-05-09 Jan Hubicka <jh@suse.cz>
30944 Richard Biener <rguenther@suse.de>
30947 * symtab.c (symtab_make_decl_local): Do not add private names.
30949 2013-05-09 Jan Hubicka <jh@suse.cz>
30952 * symtab.c (insert_to_assembler_name_hash): Handle clones.
30953 (unlink_from_assembler_name_hash): Likewise.
30954 (symtab_prevail_in_asm_name_hash, symtab_register_node,
30955 symtab_unregister_node, symtab_initialize_asm_name_hash,
30956 change_decl_assembler_name): Update.
30958 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
30960 * config/aarch64/aarch64.md: New movtf split.
30961 (*movtf_aarch64): Update.
30962 (aarch64_movdi_tilow): Handle TF modes and rename to
30963 aarch64_movdi_<mode>low.
30964 (aarch64_movdi_tihigh): Handle TF modes and rename to
30965 aarch64_movdi_<mode>high
30966 (aarch64_movtihigh_di): Handle TF modes and rename to
30967 aarch64_mov<mode>high_di
30968 (aarch64_movtilow_di): Handle TF modes and rename to
30969 aarch64_mov<mode>low_di
30970 (aarch64_movtilow_tilow): Remove spurious whitespace.
30971 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
30973 (aarch64_print_operand): Update.
30975 2013-05-09 Alan Modra <amodra@gmail.com>
30977 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
30979 * configure: Regenerate.
30981 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
30983 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
30984 splitter preparation statements.
30985 * config/i386/sse.md (*vec_extract* splitters): Ditto.
30986 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
30989 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30991 * gimple-ssa-strength-reduction.c (count_candidates): Change
30992 return value to int.
30993 (analyze_candidates_and_replace): Change type of length to int.
30995 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
30997 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
30998 (*vec_extract<mode>): Use VI12_128 mode iterator.
30999 (*vec_extract<mode>_mem): Ditto.
31000 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
31003 2013-05-08 Diego Novillo <dnovillo@google.com>
31008 2012-08-17 Diego Novillo <dnovillo@google.com>
31011 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
31012 * config.in: Regenerate.
31013 * configure: Regenerate.
31014 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
31016 2013-05-08 Jan Hubicka <jh@suse.cz>
31019 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
31020 * cgraph.h (symtab_node_base): Add unique_name.
31021 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
31022 input_overwrite_node, input_varpool_node): Stream unique_name.
31023 * cgraphclones.c (cgraph_create_virtual_clone,
31024 cgraph_function_versioning): Set unique_name.
31025 * ipa.c (function_and_variable_visibility): Set unique_name.
31027 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31029 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
31030 (alloc_cand_and_find_basis): Restrict conditional candidate
31031 processing to CAND_MULTs.
31033 2013-05-08 Jan Hubicka <jh@suse.cz>
31036 lto-symtab.c (lto_symtab_symbol_p): New function.
31037 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
31038 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
31039 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
31040 Skip static symbols.
31042 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
31044 PR tree-optimization/57200
31045 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
31046 Only call inform if the preceding warning_at returns true.
31048 2013-05-07 Han Shen <shenhan@google.com>
31050 * cfgexpand.c (record_or_union_type_has_array_p): New function.
31051 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
31052 * common.opt (fstack-protector-strong): New option.
31053 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
31054 * doc/invoke.texi (Optimization Options): Document
31055 "-fstack-protector-strong".
31056 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
31058 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
31060 * config/mips/mips.c (mips_machine_reorg2): Return 0.
31062 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
31064 * ira.c (update_equiv_regs): Add insn having equiv memory even if
31065 it is not lhs of the insn.
31066 (setup_reg_equiv): Remove insn having equiv memory which it is not
31068 * lra-constraints.c (process_address): Try to improve generation
31069 code for address base + disp.
31070 (lra_constraints): Make correct the code for checking insn setting
31071 up backward equivalence. Remove insn only if it is in the init
31073 * lra-eliminations.c (update_reg_eliminate): Change return value.
31074 (lra_eliminate): Use the result.
31076 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
31078 * config/i386/sse.md (ssescalarnummask): New mode attribute.
31079 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
31080 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
31081 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
31082 register target operands.
31083 (*vec_extractv8hi_sse2): New pattern.
31084 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
31085 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
31086 (*vec_extract<mode>_mem): New insn and split pattern.
31088 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
31090 * config/arm/arm.c (arm_asan_shadow_offset): New function.
31091 (TARGET_ASAN_SHADOW_OFFSET): Define.
31092 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
31093 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
31095 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31097 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
31098 (incr_vec_index): Return -1 if increment not found.
31099 (create_add_on_incoming_edge): Assert if increment not found.
31100 (record_increment): Limit number of increments recorded.
31101 (all_phi_incrs_profitable): Return false if an increment not found.
31102 (replace_profitable_candidates): Don't process increments that were
31104 (analyze_candidates_and_replace): Limit size of incr_vec.
31106 2013-05-07 Richard Biener <rguenther@suse.de>
31108 * calls.c (special_function_p): setjmp-like functions are leaf.
31109 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
31110 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
31112 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
31114 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
31115 (aarch64_simd_mov<mode>): New expander.
31116 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
31117 (aarch64_simd_mov_to_<mode>high): Likewise.
31118 (aarch64_simd_mov_from_<mode>low): Likewise.
31119 (aarch64_simd_mov_from_<mode>high): Likewise.
31120 (aarch64_dup_lane<mode>): Update.
31121 (aarch64_dup_lanedi): New instruction pattern.
31122 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
31123 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
31125 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31127 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
31128 (replace_mult_candidate): Remove unnecessary argument; remove
31129 unnecessary parameter from call to introduce_cast_before_cand.
31130 (replace_unconditional_candidate): Remove unnecessary parameter
31131 from call to replace_mult_candidate.
31132 (replace_conditional_candidate): Likewise.
31133 (insert_initializers): Use make_temp_ssa_name.
31134 (introduce_cast_before_cand): Remove unnecessary argument; use
31135 make_temp_ssa_name.
31136 (replace_one_candidate): Remove unnecessary argument; remove
31137 unnecessary parameter from calls to introduce_cast_before_cand.
31138 (replace_profitable_candidates): Remove unnecessary parameters
31139 from calls to replace_one_candidate.
31141 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31143 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
31144 phi def as possibly hiding a basis for a CAND_ADD whose operands
31145 have been commuted in the analysis.
31146 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
31148 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31150 * config/aarch64/aarch64.md
31151 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
31152 shift value between 0-4.
31154 2013-05-07 Richard Biener <rguenther@suse.de>
31156 * double-int.h (rshift): New overload.
31157 * double-int.c (rshift): New function.
31158 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
31159 (create_reference_ops_from_ref): Remove.
31160 (vn_reference_insert): Use shared ops for constructing the
31161 reference and copy it.
31163 2013-05-07 Richard Biener <rguenther@suse.de>
31165 PR middle-end/57190
31166 * tree-eh.c (sink_clobbers): Properly propagate
31167 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
31169 2013-05-07 Jakub Jelinek <jakub@redhat.com>
31171 PR tree-optimization/57149
31172 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
31173 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
31174 collect_phi_def_edges, execute_late_warn_uninitialized): Use
31175 uninit_undefined_value_p instead of ssa_undefined_value_p.
31178 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
31179 for modifier == EXPAND_INITIALIZER.
31181 2013-05-07 Anton Blanchard <anton@samba.org>
31183 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
31184 for powerpc64 little endian.
31185 * configure: Regenerate.
31187 2013-05-06 Graham Stott <grahams@btinternet.com>
31189 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
31190 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
31191 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
31192 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
31194 2013-05-06 Graham Stott <grahams@btinternet.com>
31196 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
31197 codes which allow non-lvalues.
31199 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
31201 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
31202 components are all 1s.
31203 (integer_minus_onep): New function.
31204 * tree.h (integer_minus_onep): Declare it.
31205 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
31206 integer_minus_onep instead of integer_all_onesp.
31208 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
31211 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
31212 variations of these patterns.
31214 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
31216 * config/i386/i386.md (isa): Add x64_sse4 member.
31217 (enabled): Handle x64_sse4.
31218 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
31219 instruction for 64bit SSE4_1 targets. Update insn attributes.
31220 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
31221 instruction for SSE4_1 targets. Update insn attributes.
31222 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
31223 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
31224 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
31226 (*vec_extractv4si): Rename from *sse4_1_pextrd.
31227 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
31228 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
31230 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
31233 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
31235 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
31237 * final.c (do_assembler_dialects): Don't handle curly braces and
31238 vertical bar escaped by % as dialect delimiters.
31239 (output_asm_insn): Print curly braces and vertical bar if escaped
31240 by % and ASSEMBLER_DIALECT defined.
31241 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
31242 * doc/tm.texi: Regenerated.
31244 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
31246 * config/mips/mips.c: Include tree-pass.h.
31247 (mips_reorg): Split in pre- and post-dbr_schedule parts.
31248 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
31249 (pass_mips_machine_reorg2): New machine specific pass.
31250 (insert_pass_mips_machine_reorg2): New pass plugin definition.
31251 (mips_option_override): Register the new pass.
31252 * rtl.h (cleanup_barriers): Remove prototype.
31253 (dbr_schedule): Likewise.
31254 * jump.c (cleanup_barriers): Make static.
31255 * reorg.c (dbr_schedule): Likewise.
31257 2013-05-06 Richard Biener <rguenther@suse.de>
31259 PR tree-optimization/57185
31260 * tree-parloops.c (add_field_for_reduction): Handle anonymous
31261 SSA names properly.
31263 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
31266 * config/i386/i386.c (add_parameter_dependencies): Add dependence
31267 between "first_arg" and "insn", not "last" and "insn".
31269 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31271 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
31272 (find_candidates_in_block): Re-enable slsr_process_phi.
31273 (create_phi_basis): Fix double counting of candidate adjustment.
31275 2013-05-06 Richard Biener <rguenther@suse.de>
31277 PR middle-end/57147
31278 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
31279 the edge is also fallthru, preserve it and just clear the
31281 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
31282 also complex, preserve that and just clear the fallthru flag.
31283 * tree-inline.c (update_ssa_across_abnormal_edges): Also
31284 update virtual operands.
31286 2013-05-06 Alan Modra <amodra@gmail.com>
31288 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
31289 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
31290 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
31291 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
31292 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
31293 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
31295 2013-05-06 Alan Modra <amodra@gmail.com>
31297 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
31298 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
31299 (DEFAULT_ASM_ENDIAN): Define.
31300 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
31301 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
31302 Update -K PIC clause from sysv4.h.
31303 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
31304 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
31306 2013-05-06 Alan Modra <amodra@gmail.com>
31308 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
31309 twice for little-endian.
31310 (ashrdi3_no_power, ashrdi3): Support little-endian.
31312 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
31315 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
31316 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
31318 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
31319 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
31320 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
31323 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
31324 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31326 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
31327 * config/pa/pa.opt: Make mbig-switch a no-op.
31328 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
31329 (CASE_VECTOR_MODE): Always return SImode.
31330 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
31331 for the !TARGET_BIG_SWITCH case.
31332 * config/pa/pa-linux.h: Likewise.
31333 * config/pa/pa-openbsd.h: Likewise.
31334 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
31335 * config/pa/pa.md (short_jump): Remove define_insn.
31336 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
31337 (casesi0): Remove define_insn.
31338 (type): Remove btable_branch.
31339 (pa_combine_type): Likewise.
31340 (in_nullified_branch_delay): Likewise.
31341 (in_call_delay): Likewise.
31342 (define_delay): Likewise.
31343 (define_insn_reservation "Z3"): Likewise.
31344 (define_insn_reservation "Z4"): Likewise.
31345 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
31346 (pa_adjust_insn_length): Remove adjustment for btable branches.
31347 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
31350 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
31352 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
31353 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
31354 Add m->r,x alternatives.
31355 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
31356 splitters using SWI48x mode iterator.
31357 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
31358 TARGET_64BIT. Add m->x alternative.
31359 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
31360 Add o->x alternative. Enable for TARGET_SSE.
31361 (sse_storeq): Remove expander.
31362 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
31363 with memory input operand.
31364 (*vec_extractv2di_1 splitter): New.
31365 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
31366 * config/i386/i386.md (ssevecmodelower): New mode attribute.
31368 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
31370 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
31371 (INT_LOWPART): Delete.
31372 (extract_MB): Adjust.
31373 (extract_ME): Adjust.
31374 (print_operand): Adjust.
31376 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
31378 * config/rs6000/predicates.md (reg_or_add_cint_operand,
31379 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
31380 (reg_or_logical_cint_operand, easy_fp_constant,
31381 logical_const_operand): Delete "CONST_DOUBLE" case.
31382 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
31383 "HOST_BITS_PER_WIDE_INT == 64" test.
31384 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
31385 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
31386 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
31387 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
31389 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
31390 CONST_DOUBLE DImode/VOIDmode case.
31391 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
31392 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
31393 CONST_DOUBLE VOIDmode case.
31394 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
31395 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
31396 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
31397 Delete CONST_DOUBLE case.
31398 (splitters for mov FMOVE64 const_double): Delete
31399 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
31400 "HOST_BITS_PER_WIDE_INT >= 64" test.
31401 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
31403 (mov DI const_double): Delete.
31405 2013-05-04 Jakub Jelinek <jakub@redhat.com>
31407 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
31408 on op shows all bits zero in mode of a lowpart subreg, return zero.
31410 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
31413 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
31414 to save TFmode registers and DImode to save TImode registers for
31415 caller save operations.
31416 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
31417 mark being partially clobbered since they only use the first
31420 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
31421 and TDmode only use the upper 64-bits of each VSX register.
31423 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31425 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
31426 (find_candidates_in_block): Disable slsr_process_phi.
31428 2013-05-03 Guozhi Wei <carrot@google.com>
31430 * coverage.c (coverage_obj_init): Move the construction of gcov
31432 (build_init_ctor): ... here.
31434 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31436 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
31437 (slsr_cand_d): Redefine def_phi.
31438 (stride_status, phi_adjust_status, count_phis_status): New enums.
31439 (find_phi_def): New.
31440 (find_basis_for_base_expr): New.
31441 (find_basis_for_candidate): Handle hidden bases.
31442 (alloc_cand_and_find_basis): Handle phi candidates.
31443 (slsr_process_phi): New.
31444 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
31445 (create_mul_imm_cand): Likewise.
31446 (create_add_ssa_cand): Exclude phi base candidates.
31447 (create_add_imm_cand): Likewise.
31448 (slsr_process_cast): Likewise.
31449 (slsr_process_copy): Likewise.
31450 (find_candidates_in_block): Handle phi candidates.
31451 (dump_candidate): Likewise.
31452 (unconditional_cands): Delete.
31453 (unconditional_cands_with_known_stride_p): Delete.
31454 (phi_dependent_cand_p): New.
31455 (cand_increment): Handle phi-dependent candidates.
31456 (replace_dependent): Delete.
31457 (replace_mult_candidate): New.
31458 (replace_unconditional_candidate): New.
31459 (incr_vec_index): Move to avoid forward reference.
31460 (create_add_on_incoming_edge): New.
31461 (create_phi_basis): New.
31462 (replace_dependents): Delete.
31463 (replace_conditional_candidate): New.
31464 (phi_add_costs): New.
31465 (replace_uncond_cands_and_profitable_phis): New.
31466 (record_increment): Handle phi adjustments.
31467 (record_phi_increments): New.
31468 (record_increments): Handle phi adjustments.
31469 (phi_incr_cost): New.
31470 (lowest_cost_path): Handle phis.
31471 (total_savings): Likewise.
31472 (analyze_increments): Likewise.
31473 (ncd_with_phi): New.
31474 (ncd_of_cand_and_phis): New.
31475 (nearest_common_dominator_for_cands): Handle phi increments.
31476 (all_phi_incrs_profitable): New.
31477 (replace_profitable_candidates): Handle phi-dependent candidates.
31478 (analyze_candidates_and_replace): Likewise.
31480 2013-05-03 Teresa Johnson <tejohnson@google.com>
31483 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
31484 do not exceed REG_BR_PROB_BASE.
31486 2013-05-03 Jeff Law <law@redhat.com>
31488 PR tree-optimization/57144
31489 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
31490 operand of the condition will bit into the new type when eliminating
31491 a cast feeding a condition.
31493 2013-05-03 Jakub Jelinek <jakub@redhat.com>
31495 PR rtl-optimization/57130
31496 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
31497 of COMPARE as in_code to the recursive call if needed.
31499 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
31501 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
31502 (enabled): Handle new members.
31503 * config/i386/sse.md (*vec_concatv2si): Merge from
31504 *vec_concatv2si_sse2 and vec_concatv2si_sse.
31505 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
31507 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
31509 PR tree-optimization/57027
31510 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
31511 for fnms opportunity, check we got the prerequisite kind
31512 of tree / gimple before using accessor functions.
31514 2013-05-03 Richard Biener <rguenther@suse.de>
31516 * double-int.h (lshift): New overload without precision
31517 and arith argument.
31518 (operator *=, operator +=, operator -=): Move ...
31519 * double-int.c (operator *=, operator +=, operator -=): ... here
31520 and implement more efficiently.
31521 (mul_double_with_sign): Remove.
31522 (lshift_double): Adjust to take unsinged shift argument, push
31523 dispatching code to callers.
31524 (mul_double_wide_with_sign): Add early out for callers that
31525 are not interested in high parts or overflow.
31526 (lshift): New function.
31527 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
31528 dispatch code here.
31529 (lrotate, rrotate): Use logical shifts.
31530 * expr.c (get_inner_reference): Use lshift.
31531 * fixed-value.c (do_fixed_divide): Likewise.
31532 * tree-dfa.c (get_ref_base_and_extent): Likewise.
31533 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
31534 (indirect_refs_may_alias_p): Likewise.
31535 (stmt_kills_ref_p_1): Likewise.
31537 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
31539 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
31541 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
31543 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
31544 scalar form of FABD instruction.
31546 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
31548 * lra-constraints.c (process_alt_operands): Add checking alt
31549 number to choose the best alternative.
31551 2013-05-02 Richard Biener <rguenther@suse.de>
31553 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
31554 bitmap and its handling.
31555 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
31557 2013-05-02 Richard Biener <rguenther@suse.de>
31559 PR middle-end/57140
31560 * tree-inline.c (copy_loops): Properly handle removed loops.
31561 (copy_cfg_body): Mark destination loops for fixup if source
31562 loops needed fixup.
31564 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
31567 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
31568 generating simple_return for naked functions.
31570 2013-05-02 Martin Jambor <mjambor@suse.cz>
31572 PR middle-end/56988
31573 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
31574 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
31576 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
31577 ipa_agg_replacement_value structures.
31578 (known_aggs_to_agg_replacement_list): Likewise.
31579 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
31580 (read_agg_replacement_chain): Likewise.
31581 (ipcp_transform_function): Also check that by_ref flags match.
31583 2013-05-02 Richard Biener <rguenther@suse.de>
31585 * graphds.h (struct graph): Add obstack member.
31586 * graphds.c (new_graph): Initialize obstack and allocate
31588 (add_edge): Allocate edge from the obstack.
31589 (free_graph): Free the obstack instead of all edges and vertices.
31591 2013-05-02 Teresa Johnson <tejohnson@google.com>
31593 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
31595 * cfg.c (update_bb_profile_for_threading): Ditto.
31596 * tree-inline.c (copy_bb): Ditto.
31597 (copy_edges_for_bb): Ditto.
31598 (initialize_cfun): Ditto.
31599 (copy_cfg_body): Ditto.
31600 (expand_call_inline): Ditto.
31601 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
31602 (estimate_node_size_and_time): Ditto.
31603 (inline_merge_summary): Ditto.
31604 * cgraphclones.c (cgraph_clone_edge): Ditto.
31605 (cgraph_clone_node): Ditto.
31606 * sched-rgn.c (compute_dom_prob_ps): Ditto.
31607 (compute_trg_info): Ditto.
31609 2013-05-02 Ian Bolton <ian.bolton@arm.com>
31611 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
31612 S reg when fp attribute set.
31613 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
31615 2013-05-02 Ian Bolton <ian.bolton@arm.com>
31617 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
31619 (*and_one_cmplsi3_compare0_uxtw): Likewise.
31620 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
31621 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
31623 2013-05-02 Richard Biener <rguenther@suse.de>
31625 * tree-scalar-evolution.c (scev_info_hasher): Remove.
31626 (struct instantiate_cache_entry): New type.
31627 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
31628 (struct instantiate_cache_type): New type.
31629 (set_instantiated_value, get_instantiated_value): Remove.
31630 (get_instantiated_value_entry): New function.
31631 (instantiate_scev_name): Use the new cache and adjust.
31632 (instantiate_scev_poly): Adjust.
31633 (instantiate_scev_binary): Likewise.
31634 (instantiate_array_ref): Likewise.
31635 (instantiate_scev_convert): Likewise.
31636 (instantiate_scev_not): Likewise.
31637 (instantiate_scev_3): Likewise.
31638 (instantiate_scev_2): Likewise.
31639 (instantiate_scev_r): Likewise.
31640 (instantiate_scev): Likewise.
31641 (resolve_mixers): Likewise.
31643 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
31646 * lra-constraints.c (best_small_class_operands_num): Remove.
31647 (process_alt_operands): Remove small_class_operands_num. Take
31648 small classes operands into losers and only if the operand is not
31649 matched. Modify debugging output.
31650 (curr_insn_transform): Remove best_small_class_operands_num.
31653 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
31655 * config/aarch64/aarch64-builtins.c
31656 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
31657 * config/aarch64/aarch64-simd-builtins.def
31658 (reduc_splus_): Add new modes.
31659 (reduc_uplus_): New.
31660 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
31661 (reduc_uplus_v4sf): Likewise.
31662 (reduc_splus_v4sf): Likewise.
31663 (aarch64_addv<mode>): Likewise.
31664 (reduc_uplus_<mode>): Likewise.
31665 (reduc_splus_<mode>): Likewise.
31666 (aarch64_addvv2di): Likewise.
31667 (reduc_uplus_v2di): Likewise.
31668 (reduc_splus_v2di): Likewise.
31669 (aarch64_addvv2si): Likewise.
31670 (reduc_uplus_v2si): Likewise.
31671 (reduc_splus_v2si): Likewise.
31672 (reduc_<sur>plus_<mode>): New.
31673 (reduc_<sur>plus_v2di): Likewise.
31674 (reduc_<sur>plus_v2si): Likewise.
31675 (reduc_<sur>plus_v4sf): Likewise.
31676 (aarch64_addpv4sf): Likewise.
31677 * config/aarch64/arm_neon.h
31678 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
31679 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
31680 add UNSPEC_SADDV, UNSPEC_UADDV.
31682 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
31684 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
31686 * config/aarch64/arm_neon.h
31687 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
31689 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
31691 * config/aarch64/aarch64-builtins
31692 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
31694 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
31696 * config/aarch64/aarch64-simd-builtins.def
31697 (reduc_smax_): New.
31698 (reduc_smin_): Likewise.
31699 (reduc_umax_): Likewise.
31700 (reduc_umin_): Likewise.
31701 (reduc_smax_nan_): Likewise.
31702 (reduc_smin_nan_): Likewise.
31705 (smax): Update for V2SF, V4SF and V2DF modes.
31708 (smin_nan): Likewise.
31709 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
31710 (<su><maxmin><mode>3): ...This, refactor.
31711 (s<maxmin><mode>3): New.
31712 (<maxmin_uns><mode>3): Likewise.
31713 (reduc_<maxmin_uns>_<mode>): Refactor.
31714 (reduc_<maxmin_uns>_v4sf): Likewise.
31715 (reduc_<maxmin_uns>_v2si): Likewise.
31716 (aarch64_<fmaxmin><mode>: Remove.
31717 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
31719 (vmin<q>_f<32,64>): Likewise.
31720 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
31722 (su): Add mappings for smax, smin, umax, umin.
31724 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
31725 (FMAXMIN): Rename as...
31726 (FMAXMIN_UNS): ...This.
31728 (fmaxminv): Likewise.
31729 (fmaxmin): Likewise.
31731 (maxmin_uns_op): Likewise.
31733 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
31735 * config/aarch64/arm_neon.h
31736 (vac<ge, gt><sd>_f<32, 64>): Rename to...
31737 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
31738 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
31740 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
31742 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
31743 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
31745 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
31747 * config/aarch64/aarch64-simd.md
31748 (vcond<mode>_internal): Handle special cases for constant masks.
31749 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
31750 (vcondu<mode><mode>): Likewise.
31751 (vcond<v_cmp_result><mode>): New.
31753 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
31755 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
31756 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
31757 * config/aarch64/aarch64-simd-builtins.def
31758 (cmeq): Update to BUILTIN_VALLDI.
31763 * config/aarch64/arm_neon.h
31764 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
31765 to builtins or C as appropriate.
31767 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
31769 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
31771 (cmhi): Rename to...
31773 * config/aarch64/aarch64-simd.md
31774 (simd_mode): Add SF.
31775 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
31776 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
31777 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
31778 (cstore<mode>_neg): ...This.
31779 * config/aarch64/iterators.md
31781 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
31782 (COMPARISONS): New.
31783 (UCOMPARISONS): Likewise.
31784 (optab): Add missing comparisons.
31790 (VCMP_S): Likewise.
31791 (VCMP_U): Likewise.
31792 (V_cmp_result): Add DF, SF modes.
31793 (v_cmp_result): Likewise.
31795 (vmtype): Likewise.
31796 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
31798 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
31800 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
31801 define_insn to define_insn_and_split.
31802 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
31803 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
31804 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
31805 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
31806 (thumb2_negscc): Likewise.
31808 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
31810 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
31812 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
31814 * config/arm/thumb2.md: Remove trailing whitespaces.
31816 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
31818 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
31819 Use gen_int_mode rather than GEN_INT.
31821 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
31823 * value-prof.c (stream_in_histogram_value): Remove the strayed
31826 2013-04-30 Richard Biener <rguenther@suse.de>
31828 PR middle-end/57122
31829 * cfghooks.c (split_edge): Properly check for the loop latch edge.
31831 2013-04-30 Richard Biener <rguenther@suse.de>
31833 PR middle-end/57107
31834 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
31836 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
31838 PR rtl-optimization/56957
31839 PR rtl-optimization/57105
31840 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
31841 variable. Use just INSN_UID for determining whether an insn
31842 should be only disconnected from the insn stream.
31843 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
31845 2013-04-30 Jakub Jelinek <jakub@redhat.com>
31847 PR tree-optimization/57104
31848 * tsan.c (instrument_expr): Don't instrument accesses to
31849 DECL_HARD_REGISTER VAR_DECLs.
31851 2013-04-30 Richard Biener <rguenther@suse.de>
31853 * function.h (loops_for_fn): New inline function.
31854 (set_loops_for_fn): Likewise.
31855 * cfgloop.h (place_new_loop): Add struct function parameter.
31856 (get_loop): Likewise.
31857 (get_loops): Likewise.
31858 (number_of_loops): Likewise.
31859 (fel_next): Adjust.
31860 (fel_init): Likewise.
31861 * cfg.c (get_loop_copy): Adjust.
31862 * cfgloop.c (flow_loops_dump): Likewise.
31863 (record_loop_exits): Likewise.
31864 (verify_loop_structure): Likewise.
31865 * cfgloopanal.c (mark_irreducible_loops): Likewise.
31866 (estimate_reg_pressure_cost): Likewise.
31867 (mark_loop_exit_edges): Likewise.
31868 * cfgloopmanip.c (place_new_loop): Likewise.
31869 (add_loop): Likewise.
31870 (duplicate_loop): Likewise.
31871 * graph.c (draw_cfg_nodes): Likewise.
31872 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
31873 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
31874 (extract_affine_chrec): Likewise.
31875 (build_scop_iteration_domain): Likewise.
31876 * graphite.c (graphite_initialize): Likewise.
31877 * ira-build.c (create_loop_tree_nodes): Likewise.
31878 (more_one_region_p): Likewise.
31879 (rebuild_regno_allocno_maps): Likewise.
31880 (mark_loops_for_removal): Likewise.
31881 (mark_all_loops_for_removal): Likewise.
31882 (remove_unnecessary_regions): Likewise.
31883 (ira_build): Likewise.
31884 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
31885 * loop-init.c (fix_loop_structure): Likewise.
31886 (gate_rtl_move_loop_invariants): Likewise.
31887 (gate_rtl_unswitch): Likewise.
31888 (gate_rtl_unroll_and_peel_loops): Likewise.
31889 (rtl_doloop): Likewise.
31890 * lto-streamer-in.c (input_cfg): Likewise.
31891 * lto-streamer-out.c (output_cfg): Likewise.
31892 * modulo-sched.c (sms_schedule): Likewise.
31893 * predict.c (tree_estimate_probability): Likewise.
31894 (tree_estimate_probability_driver): Likewise.
31895 (estimate_loops): Likewise.
31896 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
31897 (move_sese_region_to_fn): Likewise.
31898 (debug_loop_num): Likewise.
31899 * tree-chrec.c (chrec_evaluate): Likewise.
31900 (hide_evolution_in_other_loops_than_loop): Likewise.
31901 (chrec_component_in_loop_num): Likewise.
31902 (reset_evolution_in_loop): Likewise.
31903 (evolution_function_is_invariant_rec_p): Likewise.
31904 * tree-if-conv.c (main_tree_if_conversion): Likewise.
31905 * tree-inline.c (copy_loops): Likewise.
31906 (copy_cfg_body): Likewise.
31907 (tree_function_versioning): Likewise.
31908 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
31909 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
31911 (add_to_evolution_1): Likewise.
31912 (scev_const_prop): Likewise.
31913 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
31914 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
31915 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
31916 (tree_ssa_lim_initialize): Likewise.
31917 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
31918 (verify_loop_closed_ssa): Likewise.
31919 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
31920 (tree_ssa_loop_im): Likewise.
31921 (tree_ssa_loop_unswitch): Likewise.
31922 (tree_vectorize): Likewise.
31923 (check_data_deps): Likewise.
31924 (tree_ssa_loop_ivcanon): Likewise.
31925 (tree_ssa_loop_bounds): Likewise.
31926 (tree_complete_unroll): Likewise.
31927 (tree_complete_unroll_inner): Likewise.
31928 (tree_parallelize_loops): Likewise.
31929 (tree_ssa_loop_prefetch): Likewise.
31930 (tree_ssa_loop_ivopts): Likewise.
31931 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
31932 * tree-vectorizer.c (vectorize_loops): Likewise.
31934 2013-04-29 Mike Frysinger <vapier@gentoo.org>
31936 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
31937 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
31938 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
31939 with EABI_LINK_SPEC.
31941 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
31944 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
31947 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
31950 * lra-constraints.c (process_alt_operands): Discourage a bit more
31951 using memory for pseudos. Print cost dump for alternatives.
31952 Modify cost values for conflicts with early clobbers.
31953 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
31955 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
31958 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
31960 2013-04-29 Ian Bolton <ian.bolton@arm.com>
31962 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
31963 from/to S register.
31964 (movdi_aarch64): Support LDR/STR from/to D register.
31966 2013-04-29 Ian Bolton <ian.bolton@arm.com>
31968 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
31969 or higher by default.
31971 2013-04-29 Richard Biener <rguenther@suse.de>
31973 PR middle-end/57075
31974 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
31975 even if not adding abnormal edges for calls that can make
31978 2013-04-29 Richard Biener <rguenther@suse.de>
31980 PR middle-end/57103
31981 * tree-cfg.c (move_stmt_op): Fix condition under which to update
31983 (move_stmt_r): Remove redundant checking.
31985 2013-04-29 Teresa Johnson <tejohnson@google.com>
31988 * basic-block.h (apply_scale): New function.
31989 (apply_probability): Use apply_scale.
31990 * gimple-streamer-in.c (input_bb): Ditto.
31991 * lto-streamer-in.c (input_cfg): Ditto.
31992 * lto-cgraph.c (merge_profile_summaries): Ditto.
31993 * tree-optimize.c (execute_fixup_cfg): Ditto.
31994 * tree-inline.c (copy_bb): Update comment to use apply_scale.
31995 (copy_edges_for_bb): Ditto.
31996 (copy_cfg_body): Ditto.
31998 2013-04-29 Tom de Vries <tom@codesourcery.com>
32000 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
32001 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
32002 (tail_merge_optimize): Handle current_loops == NULL.
32004 2013-04-26 Jeff Law <law@redhat.com>
32006 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
32007 (simplify_cond_using_ranges): Generalize code to simplify
32008 COND_EXPRs where one argument is a constant and the other
32009 is an SSA_NAME created by an integral type conversion.
32011 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32013 * config/arm/arm.md (store_minmaxsi): Use only when
32014 optimize_insn_for_size_p.
32016 2013-04-29 Christian Bruel <christian.bruel@st.com>
32019 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
32021 2013-04-29 Richard Biener <rguenther@suse.de>
32023 PR middle-end/57089
32024 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
32025 loop tree make sure to schedule a fixup for the child as well.
32026 (expand_omp_for_generic): Properly add loops.
32027 (expand_omp_for_static_nochunk): Likewise.
32028 (expand_omp_for_static_chunk): Likewise.
32029 (expand_omp_for): For the degenerate case fixup loops.
32030 (expand_omp_sections): Fix default bb placement in loops.
32031 (expand_omp_atomic_pipeline): Properly add loops.
32033 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32035 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
32037 2013-04-29 Tom de Vries <tom@codesourcery.com>
32039 * tree-ssa-tail-merge.c: Update header comment.
32041 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
32043 * config/aarch64/arm_neon.h
32044 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
32045 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
32046 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
32047 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
32048 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
32049 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
32050 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
32051 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
32053 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
32055 * config/aarch64/aarch64-simd.md
32056 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
32057 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
32058 fix_trunc, fixuns_trunc.
32059 (ftrunc<VDQF:mode>2): New.
32060 * config/aarch64/iterators.md (optab): Add fix, fixuns.
32061 (fix_trunc_optab): New.
32063 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
32065 * config/aarch64/aarch64-builtins.c
32066 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
32067 iceilf, lround, iroundf.
32069 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
32072 * config/i386/i386.h (enum ix86_tune_indices)
32073 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
32074 New, split from X86_TUNE_INTER_UNIT_MOVES.
32075 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
32076 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
32077 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
32078 (TARGET_INTER_UNIT_MOVES): Remove.
32079 * config/i386/i386.c (initial_ix86_tune_features): Update.
32080 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
32081 (ix86_expand_convert_uns_didf_sse): Use
32082 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
32083 (ix86_expand_vector_init_one_nonzero): Ditto.
32084 (ix86_expand_vector_init_interleave): Ditto.
32085 (inline_secondary_memory_needed): Return true for moves from SSE class
32086 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
32087 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
32088 * config/i386/constraints.md (Yi, Ym): Depend on
32089 TARGET_INTER_UNIT_MOVES_TO_VEC.
32090 (Yj, Yn): New constraints.
32091 * config/i386/i386.md (*movdi_internal): Change constraints of
32092 operand 1 from Yi to Yj and from Ym to Yn.
32093 (*movsi_internal): Ditto.
32094 (*movdf_internal): Ditto.
32095 (*movsf_internal): Ditto.
32096 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
32097 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
32098 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
32099 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
32100 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
32101 * config/i386/sse.md (movdi_to_sse): Ditto.
32102 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
32103 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
32104 TARGET_INTER_UNIT_MOVES.
32105 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
32106 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
32107 instead of TARGET_INTER_UNIT_MOVES.
32108 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
32109 operand 1 from Yi to Yj and from Ym to Yn.
32111 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
32113 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
32114 (float_truncate_hi_): Likewise.
32115 (float_extend_lo_): Likewise.
32116 (float_truncate_lo_): Likewise.
32117 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
32118 (aarch64_float_extend_lo_v2df): Likewise.
32119 (vec_unpacks_hi_v4sf): Likewise.
32120 (aarch64_float_truncate_lo_v2sf): Likewise.
32121 (aarch64_float_truncate_hi_v4sf): Likewise.
32122 (vec_pack_trunc_v2df): Likewise.
32123 (vec_pack_trunc_df): Likewise.
32125 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
32127 * config/aarch64/aarch64-builtins.c
32128 (aarch64_fold_builtin): Fold float conversions.
32129 * config/aarch64/aarch64-simd-builtins.def
32130 (floatv2si, floatv4si, floatv2di): New.
32131 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
32132 * config/aarch64/aarch64-simd.md
32133 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
32134 * config/aarch64/iterators.md (FLOATUORS): New.
32135 (optab): Add float, floatuns.
32136 (su_optab): Likewise.
32138 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
32140 * config/aarch64/aarch64-builtins.c
32141 (aarch64_builtin_vectorized_function): Use new names for
32143 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
32144 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
32145 (fcvtzu): Split as...
32146 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
32147 (fcvtas): Split as...
32148 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
32149 (fcvtau): Split as...
32150 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
32151 (fcvtps): Split as...
32152 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
32153 (fcvtpu): Split as...
32154 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
32155 (fcvtms): Split as...
32156 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
32157 (fcvtmu): Split as...
32158 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
32159 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
32160 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
32161 (lfrintnusf, lfrintnudf): Likewise.
32162 * config/aarch64/aarch64-simd.md
32163 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
32165 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
32166 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
32167 (fcvt_pattern): Likewise.
32169 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
32171 * config/aarch64/aarch64-simd.md
32172 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
32173 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
32175 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
32177 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
32178 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
32179 (vrnd<a,m,n,p>_f32): Implement using builtins.
32180 (vrnd<i,x><q>_f<32, 64>): New.
32182 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
32184 * config/aarch64/aarch64-builtins.c
32185 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
32186 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
32187 (frintz): Rename to...
32189 (frintp): Rename to...
32191 (frintm): Rename to...
32193 (frinti): Rename to...
32194 (nearbyint): ...this.
32195 (frintx): Rename to...
32197 (frinta): Rename to...
32199 * config/aarch64/aarch64-simd.md
32200 (aarch64_frint<frint_suffix><mode>): Delete.
32201 (<frint_pattern><mode>2): Convert to insn.
32202 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
32203 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
32204 (frint_pattern): Likewise.
32205 (frint_suffix): Likewise.
32207 2013-04-29 Richard Biener <rguenther@suse.de>
32209 PR tree-optimization/57081
32210 * loop-init.c: Include tree-flow.h.
32211 (loop_optimizer_finalize): Free number of iteration estimates.
32212 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
32214 2013-04-29 Jakub Jelinek <jakub@redhat.com>
32216 PR tree-optimization/57083
32217 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
32218 non-singleton shift count range, zero extend low_bound for uns case.
32220 * config/i386/predicates.md (general_vector_operand): New predicate.
32221 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
32222 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
32223 if they aren't nonimmediate operands. If their original values
32224 satisfy const_vector_equal_evenodd_p, don't shift them.
32225 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
32226 predicates. For the SSE4.1 case force operands[{1,2}] into registers
32227 if not nonimmediate_operand.
32228 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
32229 instead of register_operand.
32230 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
32232 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
32234 * stor-layout.c (finalize_size_functions): Allocate a structure and
32235 reset cfun before dumping the functions.
32237 2013-04-27 Jakub Jelinek <jakub@redhat.com>
32239 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
32242 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
32243 use xop_pmacsdqh if uns_p.
32244 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
32245 the immediate rotate count.
32247 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
32249 * rtl.h (struct rtx_def): Add comment for field jump.
32250 (LRA_SUBREG_P): New macro.
32251 * recog.c (register_operand): Check LRA_SUBREG_P.
32252 * lra.c (lra): Add note at the end of RTL code. Align non-empty
32254 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
32255 (lra_final_code_change): Skip subreg change for operators.
32256 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
32257 if there are no operand changes.
32258 * lra-constraints.c (curr_insn_set): New.
32259 (match_reload): Set LRA_SUBREG_P.
32260 (emit_spill_move): Ditto.
32261 (check_and_process_move): Use curr_insn_set. Process only single
32262 set insns. Don't initialize sec_mem_p and change_p.
32263 (simplify_operand_subreg): Use LRA_SUBREG_P.
32264 (reg_in_class_p): New function.
32265 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
32266 of #ifdef. Add code to remove cycling.
32267 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
32268 non-null disp. Reload inner instead of disp when base and index
32269 are null. Try to put lo_sum into register.
32270 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
32271 (check_and_process_move): Move code for move cost check to
32272 simple_move_p. Remove equiv_substitution.
32273 (simple_move_p): New function.
32274 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
32275 curr_insn_set. Call check_and_process_move only for single set
32276 insns. Use the new function. Move call of check_and_process_move
32277 after operand equiv substitution and address process.
32279 2013-04-26 Jakub Jelinek <jakub@redhat.com>
32282 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
32283 with nonlocal goto receivers or returns twice calls, ignore
32284 unininitialized values from abnormal edges to nl goto receiver
32285 or returns twice call.
32287 2013-04-26 Jakub Jelinek <jakub@redhat.com>
32289 PR tree-optimization/57051
32290 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
32291 and VEC_RSHIFT_EXPR if shift count is a multiple of element
32294 2013-04-26 Richard Biener <rguenther@suse.de>
32296 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
32297 (expand_omp_taskreg): Likewise. Mark loops for fixup.
32298 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
32299 (fixup_loop_arrays_after_move): New function.
32300 (move_sese_region_to_fn): Properly outline the loop tree parts
32301 of the SESE region.
32303 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
32305 * config/i386/i386.md (type, unit): Fix long lines.
32307 2013-04-26 Richard Biener <rguenther@suse.de>
32309 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
32310 (lto-streamer-out.o): Likewise.
32311 * cfgloop.c (init_loops_structure): Export, add struct function
32312 argument and adjust.
32313 (flow_loops_find): Adjust.
32314 * cfgloop.h (enum loop_estimation): Add EST_LAST.
32315 (init_loops_structure): Declare.
32316 * lto-streamer-in.c: Include cfgloop.h.
32317 (input_cfg): Input the loop tree.
32318 * lto-streamer-out.c: Include cfgloop.h.
32319 (output_cfg): Output the loop tree.
32320 (output_struct_function_base): Do not drop PROP_loops.
32322 2013-03-26 Richard Biener <rguenther@suse.de>
32324 * tree-cfg.c (execute_build_cfg): Build the loop tree.
32325 (pass_build_cfg): Provide PROP_loops.
32326 (move_sese_region_to_fn): Remove loops that are outlined into fn
32328 * tree-inline.c: Include cfgloop.h.
32329 (initialize_cfun): Do not drop PROP_loops.
32330 (copy_loops): New function.
32331 (copy_cfg_body): Copy loop structure.
32332 (tree_function_versioning): Initialize destination loop tree.
32333 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
32334 (pass_parallelize_loops): Do IL verification.
32335 * loop-init.c (loop_optimizer_init): Fixup loops if required.
32336 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
32337 the CFG make sure we fixup loops as well.
32338 * tree-ssa-tail-merge.c: Include cfgloop.h.
32339 (replace_block_by): When merging loop latches mark loops for fixup.
32340 * lto-streamer-out.c (output_struct_function_base): Drop
32341 PROP_loops for now.
32342 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
32343 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
32344 * ipa-split.c: Include cfgloop.h.
32345 (split_function): Add the new return block to the loop tree root.
32346 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
32347 whether we have removed the forwarder block.
32348 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
32349 * cfgloop.h (place_new_loop): Declare.
32350 * cfgloopmanip.c (place_new_loop): Export.
32351 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
32352 (tree-switch-conversion.o): Likewise.
32353 (tree-complex.o): Likewise.
32354 (tree-inline.o): Likewise.
32355 (tree-ssa-tailmerge.o): Likewise.
32356 (ipa-split.o): Likewise.
32357 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
32358 (tree-ssa-copy.o): Likewise.
32359 * tree-switch-conversion.c: Include cfgloop.h
32360 (process_switch): If we emit a bit-test cascade, schedule loops
32362 * tree-complex.c: Include cfgloop.h.
32363 (expand_complex_div_wide): Properly add new basic-blocks to loops.
32364 * asan.c: Include cfgloop.h.
32365 (create_cond_insert_point): Properly add new basic-blocks to
32366 loops, schedule loop fixup.
32367 * cfgloop.c (verify_loop_structure): Check that looks are not
32369 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
32371 (expand_omp_for_generic): Likewise.
32372 (expand_omp_sections): Likewise.
32373 (expand_omp_atomic_pipeline): Schedule loops for fixup.
32374 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
32375 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
32376 is initialized, not when loops are present.
32377 * tree-parloops.c (parallelize_loops): Remove checking here.
32378 * passes.c (init_optimization_passes): Schedule a copy-propagation
32379 pass before complete unrolling of inner loops.
32381 2013-04-26 Jakub Jelinek <jakub@redhat.com>
32383 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
32384 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
32385 (colorize_init): Add argument to _WIN32 version.
32386 * toplev.c: Include diagnostic-color.h.
32387 (process_options): Default to -fdiagnostics-color=auto if
32388 GCC_COLORS env var is in the environment.
32389 * common.opt (fdiagnostics-color=): Add Var and Init.
32390 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
32391 env var is in the environment, the default is auto rather than never.
32393 * diagnostic.h (file_name_as_prefix): Add context argument.
32394 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
32395 the string as locus.
32396 * langhooks.c (lhd_print_error_function): Adjust caller.
32398 2013-04-25 Lawrence Crowl <crowl@google.com>
32400 * var-tracking.c (shared_hash_def::htab):
32401 Change type to hash_table. Update dependent calls and types.
32403 2013-04-25 Lawrence Crowl <crowl@google.com>
32405 * Makefile.in: Update as needed below.
32407 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
32408 Move declaration to after the type's method definitons.
32410 * attribs.c (htab_t scoped_attributes::attribute_hash):
32411 Change type to hash_table. Update dependent calls and types.
32413 * bitmap.c (htab_t bitmap_desc_hash):
32414 Change type to hash_table. Update dependent calls and types.
32416 * cselib.c (htab_t cselib_hash_table):
32417 Change type to hash_table. Update dependent calls and types.
32419 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
32420 (hash_string_slot_node): Move implementation into lto-streamer.h
32421 struct string_slot_hasher.
32422 (eq_string_slot_node): Likewise.
32424 * data-streamer-out.c: Update output_block::string_hash_table
32425 dependent calls and types.
32427 * dwarf2cfi.c (htab_t trace_index):
32428 Change type to hash_table. Update dependent calls and types.
32430 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
32431 Change type to hash_table. Update dependent calls and types.
32432 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
32433 (htab_t optimize_external_refs::map): Likewise.
32434 (htab_t output_comp_unit::extern_map): Likewise.
32435 (htab_t output_comdat_type_unit::extern_map): Likewise.
32436 (htab_t output_macinfo::macinfo_htab): Likewise.
32437 (htab_t optimize_location_lists::htab): Likewise.
32438 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
32440 * except.c (htab_t ehspec_hash_type):
32441 Change type to hash_table. Update dependent calls and types.
32442 (assign_filter_values::ttypes): Likewise.
32443 (assign_filter_values::ehspec): Likewise.
32444 (sjlj_assign_call_site_values::ar_hash): Likewise.
32445 (convert_to_eh_region_ranges::ar_hash): Likewise.
32447 * gcse.c (htab_t pre_ldst_table):
32448 Change type to hash_table. Update dependent calls and types.
32450 * ggc-common.c (htab_t saving_htab):
32451 Change type to hash_table. Update dependent calls and types.
32452 (htab_t loc_hash): Likewise.
32453 (htab_t ptr_hash): Likewise.
32454 (call_count): Rename ggc_call_count.
32455 (call_alloc): Rename ggc_call_alloc.
32456 (loc_descriptor): Rename make_loc_descriptor.
32457 (add_statistics): Rename ggc_add_statistics.
32459 * ggc-common.c (saving_htab):
32460 Change type to hash_table. Update dependent calls and types.
32462 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
32463 (push_gimplify_context): Likewise.
32464 (pop_gimplify_context): Likewise.
32465 (struct gimple_temp_hash_elt): Added.
32466 (struct gimplify_hasher): Likewise.
32467 (struct gimplify_ctx.temp_htab):
32468 Change type to hash_table. Update dependent calls and types.
32470 * gimple-fold.c: Include gimplify-ctx.h.
32472 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
32473 Change type to hash_table. Update dependent calls and types.
32474 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
32475 avoid potential global name collision.
32477 * gimplify.c: Include gimplify-ctx.h.
32478 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
32479 (htab_t gimplify_ctx::temp_htab):
32480 Update dependent calls and types for new type hash_table.
32481 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
32482 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
32484 * gimplify-ctx.h: New.
32485 (struct gimple_temp_hash_elt): Move from gimplify.c.
32486 (class gimplify_hasher): New.
32487 (struct gimplify_ctx): Move from gimple.h.
32488 (htab_t gimplify_ctx::temp_htab):
32489 Change type to hash_table. Update dependent calls and types.
32491 * graphite-clast-to-gimple.c: Include graphite-htab.h.
32492 (htab_t ivs_params::newivs_index):
32493 Change type to hash_table. Update dependent calls and types.
32494 (htab_t ivs_params::params_index): Likewise.
32495 (htab_t print_generated_program::params_index): Likewise.
32496 (htab_t gloog::newivs_index): Likewise.
32497 (htab_t gloog::params_index): Likewise.
32499 * graphite.c: Include graphite-htab.h.
32500 4htab_t graphite_transform_loops::bb_pbb_mapping):
32501 Change type to hash_table. Update dependent calls and types.
32503 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
32504 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
32505 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
32507 * graphite-dependences.c: Include graphite-htab.h.
32508 (loop_is_parallel_p): Change hash table type of parameter.
32510 * graphite-htab.h: New.
32511 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
32512 (extern find_pbb_via_hash): Move from graphite-poly.h.
32513 (extern loop_is_parallel_p): Move from graphite-poly.h.
32514 (extern get_loop_body_pbbs): Move from graphite-poly.h.
32516 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
32517 (extern loop_is_parallel_p): Move to graphite-htab.h.
32518 (extern get_loop_body_pbbs): Move to graphite-htab.h.
32520 * haifa-sched.c (htab_t delay_htab):
32521 Change type to hash_table. Update dependent calls and types.
32522 (htab_t delay_htab_i2): Likewise.
32524 * ira-color.c (htab_t allocno_hard_regs_htab):
32525 Change type to hash_table. Update dependent calls and types.
32527 * ira-costs.c (htab_t cost_classes_htab):
32528 Change type to hash_table. Update dependent calls and types.
32530 * loop-invariant.c (htab_t merge_identical_invariants::eq):
32531 Change type to hash_table. Update dependent calls and types.
32533 * loop-iv.c (htab_t bivs):
32534 Change type to hash_table. Update dependent calls and types.
32536 * loop-unroll.c (htab_t opt_info::insns_to_split):
32537 Change type to hash_table. Update dependent calls and types.
32538 (htab_t opt_info::insns_with_var_to_expand): Likewise.
32540 * lto-streamer.h (struct string_slot): Move from data-streamer.h
32541 (struct string_slot_hasher): New.
32542 (htab_t output_block::string_hash_table):
32543 Change type to hash_table. Update dependent calls and types.
32545 * lto-streamer-in.c (freeing_string_slot_hasher): New.
32546 (htab_t file_name_hash_table):
32547 Change type to hash_table. Update dependent calls and types.
32549 * lto-streamer-out.c: Update output_block::string_hash_table dependent
32552 * lto-streamer.c (htab_t tree_htab):
32553 Change type to hash_table. Update dependent calls and types.
32555 * omp-low.c: Include gimplify-ctx.h.
32557 * passes.c (htab_t name_to_pass_map):
32558 Change type to hash_table. Update dependent calls and types.
32559 (pass_traverse): Rename to passes_pass_traverse.
32561 * plugin.c (htab_t event_tab):
32562 Change type to hash_table. Update dependent calls and types.
32564 * postreload-gcse.c (htab_t expr_table):
32565 Change type to hash_table. Update dependent calls and types.
32566 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
32568 * sese.c (debug_rename_map_1): Make extern.
32569 (htab_t copy_bb_and_scalar_dependences::rename_map):
32570 Change type to hash_table. Update dependent calls and types.
32572 * sese.h (extern debug_rename_map): Move to .c file.
32574 * store-motion.c (htab_t store_motion_mems_table):
32575 Change type to hash_table. Update dependent calls and types.
32577 * trans-mem.c (htab_t tm_new_mem_hash):
32578 Change type to hash_table. Update dependent calls and types.
32580 * tree-browser.c (htab_t TB_up_ht):
32581 Change type to hash_table. Update dependent calls and types.
32583 * tree-cfg.c (htab_t discriminator_per_locus):
32584 Change type to hash_table. Update dependent calls and types.
32586 * tree-complex.c: Include tree-hasher.h
32587 (htab_t complex_variable_components):
32588 Change type to hash_table. Update dependent calls and types.
32590 * tree-eh.c (htab_t finally_tree):
32591 Change type to hash_table. Update dependent calls and types.
32593 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
32594 struct int_tree_hasher.
32595 (extern int_tree_map_eq): Likewise.
32596 (uid_decl_map_hash): Removed.
32597 (extern decl_tree_map_eq): Likewise.
32599 * tree-hasher.h: New.
32600 (struct int_tree_hasher): New.
32601 (typedef int_tree_htab_type): New.
32603 * tree-inline.c: Include gimplify-ctx.h.
32605 * tree-mudflap.c: Include gimplify-ctx.h.
32607 * tree-parloops.c: Include tree-hasher.h.
32608 (htab_t eliminate_local_variables_stmt::decl_address):
32609 Change type to hash_table. Update dependent calls and types.
32610 (htab_t separate_decls_in_region::decl_copies): Likewise.
32612 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
32613 Change type to hash_table. Update dependent calls and types.
32615 * tree-sra.c (candidates):
32616 Change type to hash_table. Update dependent calls and types.
32618 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
32620 (int_tree_map_hash): Likewise.
32622 * tree-ssa-dom.c (htab_t avail_exprs):
32623 Change type to hash_table. Update dependent calls and types.
32625 * tree-ssa-live.c (var_map_base_init::tree_to_index):
32626 Change type to hash_table. Update dependent calls and types.
32628 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
32629 Change type to hash_table. Update dependent calls and types.
32631 * tree-ssa-phiopt.c (seen_ssa_names):
32632 Change type to hash_table. Update dependent calls and types.
32634 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
32635 Change type to hash_table. Update dependent calls and types.
32637 * tree-ssa-uncprop.c (equiv):
32638 Change type to hash_table. Update dependent calls and types.
32640 2013-04-25 Jakub Jelinek <jakub@redhat.com>
32642 PR rtl-optimization/57003
32643 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
32644 call note_stores with kill_clobbered_value callback again after
32645 killing regs_invalidated_by_call.
32647 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
32649 * config/aarch64/aarch64-simd.md
32650 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
32651 (aarch64_simd_bsl<mode>): Likewise.
32652 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
32654 2013-04-25 Marek Polacek <polacek@redhat.com>
32656 PR tree-optimization/57066
32657 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
32659 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
32661 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
32663 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
32665 * config/aarch64/aarch64-builtins.c
32666 (aarch64_fold_builtin): New.
32667 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
32668 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
32669 * config/aarch64/aarch64-simd-builtins.def (abs): New.
32670 * config/aarch64/arm_neon.h
32671 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
32673 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
32674 Tejas Belagod <tejas.belagod@arm.com>
32676 * config/aarch64/aarch64-builtins.c
32677 (aarch64_gimple_fold_builtin): New.
32678 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
32679 * config/aarch64/aarch64-simd-builtins.def (addv): New.
32680 * config/aarch64/aarch64-simd.md (addpv4sf): New.
32681 (addvv4sf): Update.
32682 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
32684 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32686 * config/aarch64/aarch64.md
32687 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
32689 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32691 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
32692 (*ngcsi_uxtw): New pattern.
32694 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32695 Julian Brown <julian@codesourcery.com>
32697 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
32698 (TB_DREG): Add T_V4HF.
32699 (v4hf_UP): New macro.
32700 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
32701 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
32702 Handle initialisation of V4HF. Adjust initialisation of reinterpret
32704 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
32705 (arm_vector_mode_supported_p): Handle V4HF.
32706 (arm_mangle_map): Handle V4HFmode.
32707 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
32708 * config/arm/arm_neon_builtins.def: Add entries for
32709 vcvtv4hfv4sf, vcvtv4sfv4hf.
32710 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
32711 (neon_vcvtv4hfv4sf): Likewise.
32712 * config/arm/neon-gen.ml: Handle half-precision floating point
32714 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
32715 * config/arm/arm_neon.h: Regenerate.
32716 * config/arm/neon.ml (type elts): Add F16.
32717 (type vectype): Add T_float16x4, T_floatHF.
32718 (type vecmode): Add V4HF.
32719 (type features): Add Requires_FP_bit feature.
32720 (elt_width): Handle F16.
32721 (elt_class): Likewise.
32722 (elt_of_class_width): Likewise.
32723 (mode_of_elt): Refactor.
32724 (type_for_elt): Handle F16, fix error messages.
32725 (vectype_size): Handle T_float16x4.
32726 (vcvt_sh): New function.
32727 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
32728 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
32729 (string_of_mode): Handle V4HF.
32730 * doc/arm-neon-intrinsics.texi: Regenerate.
32732 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
32734 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
32735 format specifier in 'X' case.
32737 2013-04-25 Alan Modra <amodra@gmail.com>
32740 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
32741 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
32742 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
32743 Repeat for many other rotate/shift and mask patterns using subregs.
32744 Name lshiftrt insns.
32745 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
32746 on WORDS_BIG_ENDIAN.
32748 2013-04-25 Alan Modra <amodra@gmail.com>
32750 * config.gcc: Support little-endian powerpc-linux targets.
32751 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
32752 (LINK_OS_LINUX_SPEC): Define.
32753 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
32754 Preserve MASK_LITTLE_ENDIAN.
32755 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
32756 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
32757 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
32758 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
32759 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
32760 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
32761 Correct fp word order for little-endian. Don't shift toc entries
32762 smaller than a word for little-endian.
32763 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
32764 (bswapdi2 splits): Correct low-part subreg for little-endian.
32765 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
32766 low/high where such is correct only for be.
32767 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
32768 little-endian for -mcall-aixdesc.
32770 2013-04-25 Alan Modra <amodra@gmail.com>
32772 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
32773 replace_equiv_address_nv.
32775 2013-04-25 Alan Modra <amodra@gmail.com>
32777 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
32779 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
32782 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
32783 * rtl.h (struct rtx_def): ...
32785 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
32787 PR rtl-optimizations/57046
32788 * lra-constraints (split_reg): Set up lra_risky_transformations_p
32789 for multi-reg splits.
32791 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
32793 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
32795 2013-04-24 Sterling Augustine <saugustine@google.com>
32797 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
32798 (comp_dir_string, debug_str_dwo_section): New.
32799 (DEBUG_STR_DWO_SECTION): Rename to ...
32800 (DEBUG_DWO_STR_SECTION): ... this.
32801 (DEBUG_NORM_STR_SECTION): Delete.
32802 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
32803 (DEBUG_STR_DWO_SECTION_FLAGS): New.
32804 (find_AT_string): Move most logic to ...
32805 (find_AT_string_in_table): ... here. New.
32806 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
32807 add_skeleton_AT_string. Delete logic.
32808 (output_skeleton_debug_sections): Remove call to
32809 add_top_level_skeleton_die_attrs.
32810 (add_comp_dir_attribute): Move logic to comp_dir_string.
32811 (dwarf2out_init): Initialize debug_str_dwo_section.
32812 (output_indirect_string): Call find_string_form.
32813 (output_indirect_strings): Rewrite.
32814 (prune_unused_types): Empty skeleton_debug_str_hash.
32815 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
32816 (dwarf2out_finish): Call output_indirect_strings.
32818 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
32820 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
32822 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
32824 * rtl.h (struct rtx_def): Add comment for field jump.
32825 (LRA_SUBREG_P): New macro.
32826 * recog.c (register_operand): Check LRA_SUBREG_P.
32827 * lra.c (lra): Add note at the end of RTL code. Align non-empty
32829 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
32830 (lra_final_code_change): Skip subreg change for operators.
32831 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
32832 if there are no operand changes.
32833 * lra-constraints.c (curr_insn_set): New.
32834 (match_reload): Set LRA_SUBREG_P.
32835 (emit_spill_move): Ditto.
32836 (check_and_process_move): Use curr_insn_set. Process only single
32837 set insns. Don't initialize sec_mem_p and change_p.
32838 (simplify_operand_subreg): Use LRA_SUBREG_P.
32839 (reg_in_class_p): New function.
32840 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
32841 of #ifdef. Add code to remove cycling.
32842 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
32843 non-null disp. Reload inner instead of disp when base and index
32844 are null. Try to put lo_sum into register.
32845 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
32846 (check_and_process_move): Move code for move cost check to
32847 simple_move_p. Remove equiv_substitution.
32848 (simple_move_p): New function.
32849 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
32850 curr_insn_set. Call check_and_process_move only for single set
32851 insns. Use the new function. Move call of check_and_process_move
32852 after operand equiv substitution and address process.
32854 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
32856 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
32857 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
32858 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
32860 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
32862 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
32864 2013-04-24 Marek Polacek <polacek@redhat.com>
32866 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
32867 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
32868 (select_loops_exit_conditions): Likewise.
32869 (number_of_iterations_for_all_loops): Likewise.
32870 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
32871 (scev_analysis): Likewise.
32873 2013-04-02 Catherine Moore <clm@codesourcery.com>
32874 Chao-ying Fu <fu@mips.com>
32876 * config/mips/micromips.md (jraddiusp): New pattern.
32877 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
32878 instruction if possible.
32880 2013-04-24 Alan Modra <amodra@gmail.com>
32882 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
32884 2013-04-24 Julian Brown <julian@codesourcery.com>
32885 Chung-Lin Tang <cltang@codesourcery.com>
32887 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
32888 dependency behavior in enumeration type DIE generation. Add TODO note
32889 to comments about future DW_FORM_sdata/udata re-work of related code.
32891 2013-04-23 Lawrence Crowl <crowl@google.com>
32893 * Makefile.in: Update as needed below.
32895 * hash-table.h (class hash_table):
32896 Correct many methods with parameter types compare_type to the correct
32897 value_type. (Correct code was unlikely to notice the change.)
32898 (hash_table::elements_with_deleted) New.
32899 (class hashtable::iterator): New.
32900 (hashtable::begin()): New.
32901 (hashtable::end()): New.
32902 (FOR_EACH_HASH_TABLE_ELEMENT): New.
32904 * statistics.c (statistics_hashes):
32905 Change type to hash_table. Update dependent calls and types.
32907 * tree-into-ssa.c (var_infos):
32908 Change type to hash_table. Update dependent calls and types.
32910 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
32911 Change type to hash_table. Update dependent calls and types.
32913 * tree-ssa-loop-im.c (struct mem_ref.refs):
32914 Change type to hash_table. Update dependent calls and types.
32916 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
32917 Change type to hash_table. Update dependent calls and types.
32919 * tree-ssa-sccvn.c (vn_tables_s::nary):
32920 Change type to hash_table. Update dependent calls and types.
32921 (vn_tables_s::phis): Likewise.
32922 (vn_tables_s::references): Likewise.
32924 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
32925 (vn_reference_eq): Update parameter and return types.
32927 * tree-ssa-structalias.c (pointer_equiv_class_table):
32928 Change type to hash_table. Update dependent calls and types.
32929 (location_equiv_class_table): Likewise.
32931 * tree-vect-data-refs.c: Consequential changes for making
32932 peeling a hash_table.
32934 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
32935 (destroy_loop_vec_info): Dependent hash_table update.
32937 * tree-vectorizer.h (peeling_htab):
32938 Change type to hash_table. Update dependent calls and types.
32940 2013-04-23 Shiva Chen <shiva0217@gmail.com>
32942 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
32943 to check the register content is equal or not.
32944 * lra-constraints.c (match_reload): Use lra_assign_reg_val
32945 to assign register content record.
32946 * lra-eliminations.c (update_reg_eliminate): Use
32947 lra_update_reg_val_offset to update register content offset.
32948 * lra-int.h (struct lra_reg): Add offset member.
32949 (lra_reg_val_equal_p): New static inline function.
32950 (lra_update_reg_val_offset): New static inline function.
32951 (lra_assign_reg_val): New static inline function.
32952 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
32953 to assign register content record.
32954 (initialize_lra_reg_info_element): Initial offset to zero.
32956 2013-04-23 Catherine Moore <clm@codesourcery.com>
32958 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
32959 operands. Record compression.
32961 2013-04-23 Xinliang David Li <davidxl@google.com>
32963 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
32965 2013-04-23 Richard Biener <rguenther@suse.de>
32967 PR middle-end/57036
32968 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
32969 parameter, only add abnormal goto edges from the copied body
32970 if the call could perform abnormal gotos.
32971 (copy_cfg_body): Adjust.
32973 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
32975 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
32977 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
32979 * coretypes.h (gimple_stmt_iterator): Add struct to make
32982 2013-04-23 Richard Biener <rguenther@suse.de>
32984 PR tree-optimization/57026
32985 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
32986 from SSA names occuring in abnormal PHI nodes.
32988 2013-04-22 Andi Kleen <ak@linux.intel.com>
32990 * lto/lto.c (print_lto_report_1): Fix LTO report names.
32992 2013-04-22 Andi Kleen <ak@linux.intel.com>
32994 * lto/lto.c (print_lto_report_1): Declare early.
32995 (read_cgraph_and_symbols): Call print_lto_report_1 early.
32997 2013-04-22 Andi Kleen <ak@linux.intel.com>
32999 * common.opt (-flto-report-wpa): Add.
33000 * doc/invoke.texi (-flto-report-wpa): Add.
33001 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
33004 2013-04-22 Xinliang David Li <davidxl@google.com>
33006 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
33007 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
33008 * Makefile.in: New dependency
33010 David Daney <ddaney.cavm@gmail.com>
33012 * configure.ac (gcc_cv_as_micromips_support): Use the
33013 --fatal-warnings option.
33014 * configure: Regenerate.
33016 2013-04-22 Marek Polacek <polacek@redhat.com>
33019 * tsan.c (instrument_expr): Don't instrument expression
33020 in case its size is zero.
33022 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
33026 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
33028 * config/alpha/alpha.c (TARGET_LRA_P): New define.
33030 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
33032 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
33033 (gimple_stmt_iterator): New typedef.
33034 * gimple.h (gimple_stmt_iterator): Rename to...
33035 (gimple_stmt_iterator_d): ... This.
33036 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
33037 trees be valid for GIMPLE and GENERIC.
33038 (TARGET_GIMPLE_FOLD_BUILTIN): New.
33039 * gimple-fold.c (gimple_fold_call): Call target hook
33040 gimple_fold_builtin.
33041 * hooks.c (hook_bool_gsiptr_false): New.
33042 * hooks.h (hook_bool_gsiptr_false): New.
33043 * target.def (fold_stmt): New.
33044 * doc/tm.texi: Regenerate.
33046 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
33049 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
33050 a set sp if no stack realignment.
33052 2013-04-22 Nick Clifton <nickc@redhat.com>
33054 * config.gcc (tilegx-linux): Extend extra_objs rather than
33056 (tilepro-linux): Likewise.
33058 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
33060 * config/aarch64/aarch64-builtins.c
33062 (CF0, CF1, CF2, CF3, CF4, CF10): New.
33063 (VAR<1-12>): Add MAP parameter.
33064 (BUILTIN_*): Likewise.
33065 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
33066 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
33067 (aarch64_ushl_n<mode>): Likewise.
33068 (aarch64_sshr_n<mode>): Likewise.
33069 (aarch64_ushr_n<mode>): Likewise.
33070 (aarch64_<maxmin><mode>): Likewise.
33071 (aarch64_sqrt<mode>): Likewise.
33072 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
33073 (vshr<q>_n_*): Likewise.
33075 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
33077 * config/aarch64/aarch64-builtins.c
33078 (aarch64_simd_builtin_type_mode): Handle SF types.
33080 (BUILTIN_GPF): Define.
33081 (aarch64_init_simd_builtins): Handle SF types.
33082 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
33083 (frecps): Likewise.
33084 (frecpx): Likewise.
33085 * config/aarch64/aarch64-simd.md
33086 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
33087 (aarch64_frecpe<mode>): New.
33088 (aarch64_frecps<mode>): Likewise.
33089 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
33090 (v8type): Add frecp<esx>.
33091 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
33092 (aarch64_frecps<mode>): Likewise.
33093 * config/aarch64/iterators.md (FRECP): New.
33094 (frecp_suffix): Likewise.
33095 * config/aarch64/arm_neon.h
33096 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
33098 2013-04-22 Christian Bruel <christian.bruel@st.com>
33101 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
33102 (REG_CLASS_NAMES): Idem.
33103 (REG_CLASS_CONTENTS): Idem.
33104 (REGCLASS_HAS_FP_REG): Idem.
33105 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
33106 (sh_conditional_register_usage): Idem.
33108 2013-04-21 Jeff Law <law@redhat.com>
33110 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
33111 (ssa_forward_propagate_and_combine): Use it.
33113 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
33115 * lra.c: Update the flow chart diagram.
33117 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
33119 PR rtl-optimization/56847
33120 * lra-constraints.c (process_alt_operands): Discourage alternative
33121 with non-matche doffsettable memory constraint fro memory with
33124 2013-04-19 Richard Biener <rguenther@suse.de>
33126 PR tree-optimization/56982
33127 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
33129 * gimplify.c (gimplify_call_expr): Notice special calls.
33130 (gimplify_modify_expr): Likewise.
33131 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
33132 abnormal control flow receivers.
33133 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
33134 in the same way as cfun->has_nonlocal_labels.
33135 (gimple_purge_dead_abnormal_call_edges): Likewise.
33136 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
33137 receivers start a basic-block.
33139 2013-04-19 Richard Biener <rguenther@suse.de>
33141 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
33143 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
33144 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
33145 (SLP_TREE_LOAD_PERMUTATION): Add.
33146 (vect_transform_slp_perm_load): Adjust prototype.
33147 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
33148 (vect_free_slp_instance): Likewise.
33149 (vect_create_new_slp_node): Likewise.
33150 (vect_supported_slp_permutation_p): Remove.
33151 (vect_slp_rearrange_stmts): Adjust.
33152 (vect_supported_load_permutation_p): Likewise. Inline
33153 vect_supported_slp_permutation_p here.
33154 (vect_analyze_slp_instance): Compute load permutations per
33155 slp node instead of per instance.
33156 (vect_get_slp_defs): Adjust.
33157 (vect_transform_slp_perm_load): Likewise.
33158 (vect_schedule_slp_instance): Remove redundant code.
33159 (vect_schedule_slp): Remove hack for PR56270, add it ...
33160 * tree-vect-stmts.c (vectorizable_load): ... here, do not
33161 CSE loads for SLP. Adjust.
33163 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
33165 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
33166 spelling in two comments.
33168 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
33171 * config/arm/arm.c (load_multiple_sequence): Require SP
33172 as base register for loads if SP is in the register list.
33174 2013-04-19 Martin Jambor <mjambor@suse.cz>
33176 PR tree-optimization/56718
33177 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
33178 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
33179 and made public. Adjusted all callers.
33180 (ipa_intraprocedural_devirtualization): New function.
33181 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
33182 (ipa_intraprocedural_devirtualization): Likewise.
33183 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
33185 2013-04-19 Richard Biener <rguenther@suse.de>
33187 PR tree-optimization/57000
33188 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
33190 2013-04-19 Terry Guo <terry.guo@arm.com>
33192 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
33194 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
33195 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
33196 (cortex_m4_fmacs): Use new reservations.
33197 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
33199 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
33201 PR rtl-optimization/56999
33202 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
33204 (lra_coalesce): Remove split_origin_bitmap and related code.
33205 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
33206 ranges if necessary.
33208 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
33210 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
33212 (ix86_expand_call): Remove clobbered_registers array and use
33213 x86_64_ms_sysv_extra_clobbered_registers instead.
33214 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
33216 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
33218 * config/i386/i386.md (*call_rex64_ms_sysv): Use
33219 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
33220 (*call_value_rex64_ms_sysv): Ditto.
33222 2013-04-18 Cary Coutant <ccoutant@google.com>
33224 * dwarf2out.c (output_pubnames): Check die_perennial_p of
33225 parent instead of die_mark.
33227 2013-04-18 Diego Novillo <dnovillo@google.com>
33229 * gimple.c (create_gimple_tmp): New.
33230 (get_expr_type): New.
33231 (build_assign): New.
33232 (build_type_cast): New.
33233 * gimple.h (enum ssa_mode): Define.
33234 (gimple_seq_set_location): New.
33235 * asan.c (build_check_stmt): Change some gimple_build_* calls
33236 to use build_assign and build_type_cast.
33238 2013-04-18 Richard Biener <rguenther@suse.de>
33240 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
33241 handle negative step. Remove redundant checks.
33242 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
33243 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
33244 for negative step and grouped loads fail to vectorize.
33246 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
33248 * emit-rtl.c (reset_insn_used_flags): New function.
33249 (reset_all_used_flags): Use it.
33250 (verify_insn_sharing): New function.
33251 (verify_rtl_sharing): Fix verification for SEQUENCEs.
33253 2013-04-18 Jakub Jelinek <jakub@redhat.com>
33255 PR tree-optimization/56984
33256 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
33257 and (x >> M) >= N don't register any assertion if N << M is the
33260 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
33262 * lower-subreg.c (resolve_simple_move): If called self-recursive,
33263 do not delete_insn insns that have not yet been emitted, only
33264 unlink them with remove_insn.
33265 * df-scan.c (df_insn_delete): Revert r197492.
33267 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
33269 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
33270 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
33272 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
33274 * config/arm/arm.md (movsicc_insn): Convert define_insn into
33275 define_insn_and_split.
33276 (and_scc,ior_scc,negscc): Likewise.
33277 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
33279 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
33281 * config/arm/arm.c (use_return_insn): Return 0 for targets that
33282 can benefit from using a sequence of LDRD instructions in epilogue
33283 instead of a single LDM instruction.
33285 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
33288 * doc/extend.texi: Fix typo.
33290 2013-04-17 Richard Biener <rguenther@suse.de>
33292 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
33293 (vect_build_slp_tree): ... here.
33294 (vect_build_slp_tree_1): Compute which stmts of the SLP group
33295 match. Remove special-casing of mismatched complex loads.
33296 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
33297 re-try the match with swapped commutative operands.
33298 (vect_supported_load_permutation_p): Remove special-casing of
33299 mismatched complex loads.
33300 (vect_analyze_slp_instance): Adjust.
33302 2013-04-17 Richard Biener <rguenther@suse.de>
33304 PR rtl-optimization/56921
33305 * cfgloop.h (struct loop): Add simple_loop_desc member.
33306 (struct niter_desc): Mark with GTY(()).
33307 (simple_loop_desc): Do not use aux field but simple_loop_desc.
33308 * loop-iv.c (get_simple_loop_desc): Likewise.
33309 (free_simple_loop_desc): Likewise.
33312 2013-04-16 Richard Biener <rguenther@suse.de>
33314 PR rtl-optimization/56921
33315 * loop-init.c (pass_rtl_move_loop_invariants): Add
33316 TODO_do_not_ggc_collect to todo_flags_finish.
33317 (pass_rtl_unswitch): Same.
33318 (pass_rtl_unroll_and_peel_loops): Same.
33319 (pass_rtl_doloop): Same.
33321 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
33323 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
33324 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
33325 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
33327 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
33328 * tree-streamer.c (record_common_node): Adjust reference in comment.
33330 2013-04-17 Terry Guo <terry.guo@arm.com>
33332 * config/arm/cortex-m4.md: Add a new bypass.
33334 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33336 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
33338 (*subs_<optab><mode>_multp2): New pattern.
33339 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
33340 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
33342 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33344 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
33345 (*subs_mul_imm_<mode>): New pattern.
33347 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
33350 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
33351 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
33352 (vsx_movti_32bit): Change j->wa to O->wa.
33354 2013-04-16 Richard Biener <rguenther@suse.de>
33356 PR rtl-optimization/56921
33357 * loop-init.c (pass_rtl_move_loop_invariants): Add
33358 TODO_do_not_ggc_collect to todo_flags_finish.
33359 (pass_rtl_unswitch): Same.
33360 (pass_rtl_unroll_and_peel_loops): Same.
33361 (pass_rtl_doloop): Same.
33363 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
33365 * config/arm/arm.c (emit_multi_reg_push): New declaration
33366 for an existing function.
33367 (arm_emit_strd_push): New function.
33368 (arm_expand_prologue): Used here.
33369 (arm_emit_ldrd_pop): New function.
33370 (arm_expand_epilogue): Used here.
33371 (arm_get_frame_offsets): Update condition.
33372 (arm_emit_multi_reg_pop): Add a special case for load of a single
33373 register with writeback.
33375 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
33377 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
33380 2013-04-16 Richard Biener <rguenther@suse.de>
33382 PR tree-optimization/56756
33383 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
33384 (first_mem_ref_loc): New.
33385 (execute_sm): Place the load temporarily before a previous
33386 access instead of in the latch edge to ensure its SSA dependencies
33387 are defined at points dominating the load.
33389 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
33391 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
33392 correct fix by moving header and footer insn to the footer of
33393 the merged basic block. Clear BB_END of the merged-away block.
33395 PR middle-end/43631
33396 * emit-rtl.c (make_note_raw): New function.
33397 (link_insn_into_chain): New static inline function.
33398 (add_insn): Use it.
33399 (add_insn_before, add_insn_after): Factor insn chain linking code...
33400 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
33401 using link_insn_into_chain.
33402 (note_outside_basic_block_p): New helper function for emit_note_after
33403 and emit_note_before.
33404 (emit_note_after): Use nobb variant of add_insn_after if the note
33405 should not be contained in a basic block.
33406 (emit_note_before): Use nobb variant of add_insn_before if the note
33407 should not be contained in a basic block.
33408 (emit_note_copy): Use make_note_raw.
33409 (emit_note): Likewise.
33410 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
33411 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
33412 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
33413 the moved barrier the tail of the basic block it follows.
33414 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
33416 2013-04-15 Jakub Jelinek <jakub@redhat.com>
33418 PR tree-optimization/56962
33419 * gimple-ssa-strength-reduction.c (record_increment): Only set
33420 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
33421 either rhs1 or rhs2 is equal to c->base_expr.
33423 2013-04-15 Richard Biener <rguenther@suse.de>
33425 PR tree-optimization/56933
33426 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
33428 (GROUP_READ_WRITE_DEPENDENCE): Remove.
33429 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
33430 * tree-vect-data-refs.c (vect_analyze_group_access): Move
33431 dependence check ...
33432 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
33434 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
33435 GROUP_READ_WRITE_DEPENDENCE.
33437 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33439 * emit-rtl.c (reset_all_used_flags): New function.
33440 (verify_rtl_sharing): Call reset_all_used_flags before and after
33441 performing the checks.
33443 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33445 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
33446 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
33447 * config/arm/constraints.md (De): New constraint.
33448 * config/arm/neon.md (anddi3_neon): Delete.
33449 (neon_vand<mode>): Expand to standard anddi3 pattern.
33450 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
33451 Move earlier in the file.
33452 (neon_inv_logic_op2): Likewise.
33453 (arm_anddi_operand_neon): New predicate.
33455 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33457 * configure.ac (gcc_cv_ld_as_needed): Set
33458 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
33459 Use -z ignore, -z record on *-*-solaris2*.
33460 (HAVE_LD_AS_NEEDED): Update comment.
33461 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
33462 * configure: Regenerate.
33463 * config.in: Regenerate.
33464 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
33465 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
33466 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
33467 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
33468 equivalents. Fix markup.
33469 * doc/tm.texi: Regenerate.
33471 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
33473 * config/i386/i386.opt: New option mstack-protector-guard=.
33474 * config/i386/i386-opts.h: Add enum stack_protector_guard.
33475 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
33476 TARGET_SSP_TLS_GUARD.
33477 * config/i386/i386.c (ix86_option_override_internal): Set
33478 ix86_stack_protector_guard.
33479 * config/i386/i386.md (stack_protect_set): Enable for
33480 TARGET_SSP_TLS_GUARD only.
33481 (stack_protect_set_<mode>): Ditto.
33482 (stack_protect_test): Ditto.
33483 (stack_protect_test_<mode>): Ditto.
33484 * doc/invoke.texi (i386 Option): Document.
33486 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
33489 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
33490 (S_MODES): Set H_MODE bit.
33491 (SF_MODES): Set only S_MODE and SF_MODE bits.
33492 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
33493 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
33494 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
33495 <MODE_FLOAT>: Likewise.
33497 2013-04-15 Joey Ye <joey.ye@arm.com>
33499 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
33501 2013-04-15 Joey Ye <joey.ye@arm.com>
33503 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
33505 (thumb_far_jump_used_p): Count instruction size and set
33508 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
33510 * reorg.c (fill_simple_delay_slots): Reindent block of code.
33511 * resource.c (mark_target_live_regs): Reformat conditional block.
33513 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
33515 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
33516 notes, they are emitted only just before final.
33517 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
33519 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
33521 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
33522 * cfgrtl.c (delete_insn): Call it here instead.
33523 * lra-spills.c (lra_final_code_change): Use delete_insn.
33524 * haifa-sched.c (sched_remove_insn): Likewise.
33525 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
33526 returning to the nop pool.
33527 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
33528 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
33530 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
33532 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
33533 * doc/tm.texi: Regenerated.
33535 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
33537 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
33540 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
33542 * df-core.c (df_find_def): Compare register numbers.
33543 (df_find_use): Likewise.
33545 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
33548 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
33549 lra_in_progress for return.
33551 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
33553 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
33554 define_insn into define_insn_and_split and emit movsicc patterns.
33556 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
33558 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
33560 2013-04-12 Richard Biener <rguenther@suse.de>
33562 * tree-pass.h (TODO_do_not_ggc_collect): New.
33563 * passes.c (execute_one_ipa_transform_pass): Honor
33564 TODO_do_not_ggc_collect.
33565 (execute_one_pass): Likewise.
33568 2013-04-10 Richard Biener <rguenther@suse.de>
33570 * passes.c (init_optimization_passes): Remove reload pass.
33571 * ira.c (do_reload): Merge into ...
33573 (rest_of_handle_reload): Remove.
33574 (pass_reload): Likewise.
33575 * config/i386/i386.c (ix86_option_override): Refer to ira instead
33576 of reload for vzeroupper pass placement.
33578 2013-04-12 Jakub Jelinek <jakub@redhat.com>
33580 PR tree-optimization/56918
33581 PR tree-optimization/56920
33582 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
33583 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
33584 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
33585 use wide_mul_with_sign method.
33587 2013-04-12 Richard Biener <rguenther@suse.de>
33589 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
33590 not be considered a gimple constant.
33592 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
33594 * fold-const.c (const_binop): Handle vector shifts by a scalar.
33595 (fold_binary_loc): Call const_binop also for mixed vector-scalar
33598 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
33599 Jakub Jelinek <jakub@redhat.com>
33601 * opts.c: Include diagnostic-color.h.
33602 (common_handle_option): Handle OPT_fdiagnostics_color_.
33603 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
33604 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
33605 (diagnostic-color.o): New.
33606 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
33607 (diagnostic_color_rule): New enum.
33608 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
33609 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
33610 the location string.
33611 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
33612 either NULL, or color kind.
33613 * diagnostic-color.c: New file.
33614 * diagnostic-color.h: New file.
33615 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
33617 * doc/invoke.texi (-fdiagnostics-color): Document.
33618 * pretty-print.h (pp_show_color): Define.
33619 (struct pretty_print_info): Add show_color field.
33620 * diagnostic.c: Include diagnostic-color.h.
33621 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
33622 macros. Colorize error:, warning: etc. strings and also the location
33624 (diagnostic_show_locus): Colorize the caret line.
33625 * pretty-print.c: Include diagnostic-color.h.
33626 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
33627 inside of %< %> quotes or quoted through q format modifier.
33629 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33631 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
33633 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33635 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
33636 code in CC_NZ mode.
33637 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
33640 2013-04-11 Marek Polacek <polacek@redhat.com>
33642 PR tree-optimization/48184
33643 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
33645 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
33647 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
33648 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
33649 (skip_simple_arithmetic): Tidy up.
33650 * tree.h (skip_simple_constant_arithmetic): Declare.
33652 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33654 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
33656 2013-04-11 Richard Biener <rguenther@suse.de>
33658 * tree-vect-loop.c (get_initial_def_for_induction): Properly
33659 generate vector constants.
33661 2013-04-11 Richard Biener <rguenther@suse.de>
33663 PR tree-optimization/56878
33664 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
33665 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
33667 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
33668 Prefer to align the DR with the most invariant base address.
33670 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33672 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
33675 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
33677 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
33678 floating-point vector comparisons against 0.
33680 2013-04-11 Jakub Jelinek <jakub@redhat.com>
33682 PR tree-optimization/56899
33683 * fold-const.c (extract_muldiv_1): Apply distributive law
33684 only if TYPE_OVERFLOW_WRAPS (ctype).
33686 2013-04-11 Bin Cheng <bin.cheng@arm.com>
33689 * ira-costs.c (scan_one_insn): Check whether the source rtx of
33690 loading has side effect.
33692 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
33694 * config/sparc/sparc.c: Include tree-pass.h.
33695 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
33696 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
33697 head of file. Change return type. Split off gate function.
33698 (sparc_gate_work_around_errata): New function.
33699 (pass_work_around_errata): New pass definition.
33700 (insert_pass_work_around_errata) New pass insert definition to
33701 insert pass_work_around_errata just after delayed-branch scheduling.
33702 (sparc_option_override): Insert the pass.
33703 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
33705 2013-04-10 David S. Miller <davem@davemloft.net>
33707 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
33708 or -mcpu=hypersparc.
33710 * target.def (cstore_mode): New hook.
33711 * target.h: Include insn-codes.h
33712 * targhooks.c: Likewise.
33713 (default_cstore_mode): New function.
33714 * targhooks.h: Declare it.
33715 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
33716 * doc/tm.texi: Rebuild.
33717 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
33718 target hook, rather than inspecting the insn_data.
33719 * config/sparc/sparc.c (sparc_cstore_mode): New function.
33720 (TARGET_CSTORE_MODE): Redefine.
33721 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
33723 * config/sparc/predicates.md (cstore_result_operand): New special
33725 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
33726 Use it for operand 0.
33727 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
33728 (*snesi_special): Likewise.
33729 (*snesi_zero): Likewise.
33730 (*seqsi_zero): Likewise.
33731 (*sltu_insn): Likewise.
33732 (*sgeu_insn): Likewise.
33733 (*seqdi_special): Make operand 0 and comparison operation be of
33735 (*snedi_special): Likewise.
33736 (*snedi_special_vis3): Likewise.
33737 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
33738 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
33739 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
33740 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
33741 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
33742 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
33743 (*sltu_extend_sp64): Likewise.
33744 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
33745 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
33746 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
33747 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
33748 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
33750 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
33752 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
33753 (aarch64_start_file): Use the new function.
33755 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33756 Jason Merrill <jason@redhat.com>
33758 * common.opt: Add -gdwarf.
33759 * opts.c (common_handle_option): Handle it.
33760 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
33762 2013-04-10 Richard Biener <rguenther@suse.de>
33764 * passes.c (execute_todo): Do not call ggc_collect conditional here.
33765 (execute_one_ipa_transform_pass): But unconditionally here.
33766 (execute_one_pass): And here.
33767 (init_optimization_passes): Remove reload pass.
33768 * tree-pass.h (TODO_ggc_collect): Remove.
33769 (pass_reload): Likewise.
33770 * ira.c (do_reload): Merge into ...
33772 (rest_of_handle_reload): Remove.
33773 (pass_reload): Likewise.
33774 * config/i386/i386.c (ix86_option_override): Refer to ira instead
33775 of reload for vzeroupper pass placement.
33776 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
33777 and todo_flags_finish of all passes.
33779 2013-04-10 Richard Biener <rguenther@suse.de>
33781 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
33782 first_const_oprnd field, rename first_def_type to first_op_type.
33783 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
33784 (vect_get_and_check_slp_defs): Always use the type of the
33785 operand. Allow mixed vect_external_def, vect_constant_def types.
33786 (vect_get_constant_vectors): Handle mixed vect_external_def,
33787 vect_constant_def types.
33789 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
33791 PR tree-optimization/55524
33792 * tree-ssa-math-opts.c
33793 (convert_mult_to_fma): Don't use an fms construct
33794 when we don't have an fms operation, but fnma, and it looks
33795 likely that we'll be able to use the latter.
33797 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
33799 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
33801 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
33802 inline fail caused by overwritable functions.
33804 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
33806 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
33807 unnecessary bits in the constant power of two case.
33809 2013-04-10 Richard Biener <rguenther@suse.de>
33811 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
33812 broken code swapping operands.
33813 (vect_build_slp_tree): Do not compute load permutations here.
33814 (vect_analyze_slp_instance): Compute load permutations here,
33815 after building the SLP tree.
33817 2013-04-09 Christian Bruel <christian.bruel@st.com>
33819 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
33820 of next/prev_real_insn.
33822 2013-04-09 Jan Hubicka <jh@suse.cz>
33824 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
33825 Drop aliased parameter.
33826 (function_and_variable_visibility): Do not handle alias pairs.
33827 * cgraph.c (varpool_externally_visible_p): Update prototype.
33828 * varpool.c (varpool_add_new_variable): Update.
33830 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33832 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
33834 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
33836 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
33838 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
33840 2013-04-09 Marek Polacek <polacek@redhat.com>
33842 PR tree-optimization/48762
33843 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
33845 2013-04-09 Richard Biener <rguenther@suse.de>
33847 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
33849 (vect_build_slp_tree): Likewise.
33850 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
33851 calculating the cost of a SLP instance.
33852 (vect_analyze_slp_instance): Use it from here, after building
33855 2013-04-09 Jakub Jelinek <jakub@redhat.com>
33857 PR middle-end/56883
33858 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
33859 expand_omp_for_static_chunk): Use simple_p = true in
33860 force_gimple_operand_gsi calls when assigning to addressable decls.
33862 2013-04-09 Jeff Law <law@redhat.com>
33864 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
33865 when the boolean was created by converting a wider object which
33866 had a boolean range.
33868 2013-04-09 Richard Biener <rguenther@suse.de>
33870 * tree-vectorizer.h (slp_void_p): Remove.
33871 (slp_tree): Typedef before _slp_tree declaration.
33872 (struct _slp_tree): Use a vector of slp_tree as children.
33873 (vect_get_place_in_interleaving_chain): Remove.
33874 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
33876 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
33878 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
33879 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
33880 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
33881 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
33882 Use slp_node instead of slp_void_p and adjust.
33884 2013-04-09 Richard Biener <rguenther@suse.de>
33886 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
33887 work that is not necessary.
33889 2013-04-09 Jakub Jelinek <jakub@redhat.com>
33891 PR tree-optimization/56854
33892 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
33893 forward into clobber stmts if it would change MEM_REF lhs into
33896 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
33898 * tree.c (type_hash_lookup, type_hash_add): Make static.
33899 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
33901 2013-04-09 Richard Biener <rguenther@suse.de>
33903 * tree.h (unsave_expr_now): Remove.
33904 * tree-inline.c (mark_local_for_remap_r): Remove.
33905 (unsave_expr_1): Likewise.
33906 (unsave_r): Likewise.
33907 (unsave_expr_now): Likewise.
33908 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
33909 (propagate_tree_value): Likewise.
33911 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
33913 * doc/rtl.texi (sequence): Rewrite documentation to match the
33914 current use of SEQUENCE rtl objects.
33915 * rtl.def (SEQUENCE): Likewise.
33917 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
33918 Update documentation.
33919 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
33920 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
33922 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
33924 2013-04-08 Teresa Johnson <tejohnson@google.com>
33926 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
33927 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33929 (estimate_edge_size_and_time): Add comment to suggest using rounding
33931 (estimate_node_size_and_time): Ditto.
33932 (remap_edge_change_prob): Use helper rounding divide methods.
33933 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
33934 (gimple_mod_pow2_value_transform): Ditto.
33935 (gimple_mod_subtract_transform): Ditto.
33936 (gimple_ic_transform): Ditto.
33937 (gimple_stringops_transform): Ditto.
33938 * stmt.c (conditional_probability): Ditto.
33939 (emit_case_dispatch_table): Ditto.
33940 * lto-cgraph.c (merge_profile_summaries): Ditto.
33941 * tree-optimize.c (execute_fixup_cfg): Ditto.
33942 * cfgcleanup.c (try_forward_edges): Ditto.
33943 * cfgloopmanip.c (scale_loop_profile): Ditto.
33945 (duplicate_loop_to_header_edge): Ditto.
33946 (lv_adjust_loop_entry_edge): Ditto.
33947 * tree-vect-loop.c (vect_transform_loop): Ditto.
33948 * profile.c (compute_branch_probabilities): Ditto.
33949 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
33950 * lto-streamer-in.c (input_cfg): Ditto.
33951 * gimple-streamer-in.c (input_bb): Ditto.
33952 * ipa-cp.c (update_profiling_info): Ditto.
33953 (update_specialized_profile): Ditto.
33954 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
33955 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33957 * sched-rgn.c (compute_dom_prob_ps): Ditto.
33958 (compute_trg_info): Ditto.
33959 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
33960 (purge_dead_edges): Ditto.
33961 * loop-unswitch.c (unswitch_loop): Ditto.
33962 * cgraphclones.c (cgraph_clone_edge): Ditto.
33963 (cgraph_clone_node): Ditto.
33964 * tree-inline.c (copy_bb): Ditto.
33965 (copy_edges_for_bb): Ditto.
33966 (initialize_cfun): Ditto.
33967 (copy_cfg_body): Ditto.
33968 (expand_call_inline): Ditto.
33970 2013-04-08 Kai Tietz <ktietz@redhat.com>
33972 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
33973 TARGET_CYGWIN64 by TARGET_64BIT.
33975 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
33977 * config/epiphany/epiphany.md (GPR_1): New constant.
33978 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
33979 * config/epiphany/epiphany.c (gen_compare_reg):
33980 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
33981 is already in place.
33982 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
33983 Don't require being called during rtl expansion; If y operlaps r0,
33985 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
33986 (epiphany_expand_epilogue): Likewise.
33988 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
33989 Don't use CC_FPmode for ORDERED / UNORDERED.
33990 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
33992 * config/epiphany/constraints.md (CnL): New constraint.
33993 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
33994 * config/epiphany/predicates.md (add_operand): Allow 1024.
33996 * config/epiphany/epiphany.md (logical_op): New code iterator.
33997 (op_mnc): New code attribute.
33998 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
33999 (mov_f+1, mov_f+2): New peephole2 patterns.
34001 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
34002 (cstoresi4): Also allow re-use of zero result when doing a NE
34003 comparison to a non-zero operand.
34004 Use (clobber (scratch)) for first insn if the gpr output is not needed.
34006 * config/epiphany/epiphany.md (<insn_opname>v2si3):
34007 Use gen_addsi3_i / gen_subsi3_i.
34009 2013-04-08 Jakub Jelinek <jakub@redhat.com>
34013 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
34014 contain anything but clobbers, at most one __builtin_stack_restore,
34015 optionally debug stmts and final resx, and if it has at least one
34016 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
34017 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
34018 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
34019 which isn't defaut definition, remove them.
34020 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
34021 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
34022 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
34023 with MEM_REF LHS with SSA_NAME address.
34025 2013-04-08 Jeff Law <law@redhat.com>
34027 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
34029 2013-04-08 Richard Biener <rguenther@suse.de>
34031 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
34033 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
34034 determined vector type.
34035 (vect_analyze_data_refs): Likewise.
34036 (vect_get_new_vect_var): Adjust.
34037 (vect_create_destination_var): Preserve SSA name versions.
34038 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
34039 not dump anything here.
34041 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
34043 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
34044 Add member lr_slot_known.
34045 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
34047 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
34048 Remove code that sets lr_slot_offset according to what a previous
34049 version of epiphany_emit_save_restore used to do.
34050 (epiphany_emit_save_restore): When doing an lr save or restore,
34051 set/verify lr_slot_known and lr_slot_offset.
34053 2013-04-08 Xinyu Qi <xyqi@marvell.com>
34056 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
34059 2013-04-08 Richard Biener <rguenther@suse.de>
34061 * alias.c (find_base_term): Fix thinko in previous change.
34063 2013-04-08 Jakub Jelinek <jakub@redhat.com>
34065 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
34066 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
34067 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
34068 if possible to compute val.
34069 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
34070 For QImode integers don't require anything about precision. Use
34071 const_with_all_bytes_same to find out if the constant doesn't have
34072 repeated bytes in it.
34074 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34076 * config/s390/s390.c (s390_expand_insv): Only accept insertions
34079 2013-04-08 Marek Polacek <polacek@redhat.com>
34081 PR rtl-optimization/48182
34082 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
34085 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34088 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
34089 nuses, make sure we have a label.
34091 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34094 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
34095 (rs6000_emit_swdiv_low_precision): Remove.
34096 (rs6000_emit_swdiv): Rewrite to handle between one and four
34097 iterations of Newton-Raphson generally; modify required number of
34098 iterations for some cases.
34099 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
34101 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
34103 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
34104 set-but-unused variable.
34106 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
34107 basic blocks of released function bodies garbage-collectable.
34109 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
34110 (struct rtl_opt_pass): Add TODO_df_finish.
34112 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
34114 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
34116 * config/arm/constraints.md (q): New constraint.
34117 * config/arm/ldrdstrd.md: New file.
34118 * config/arm/arm.md (ldrdstrd.md) New include.
34119 (arm_movdi): Use "q" instead of "r" constraint
34120 for double-word memory access.
34121 (movdf_soft_insn): Likewise.
34122 * config/arm/vfp.md (movdi_vfp): Likewise.
34123 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
34124 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
34125 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
34126 (mem_ok_for_ldrd_strd): Likewise.
34127 (output_move_double): Update assertion.
34129 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
34131 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
34133 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
34135 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
34136 define_insn_and_split.
34137 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
34139 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
34141 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
34142 define_insn_and_split.
34143 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
34144 (shiftsi3_compare): New pattern.
34145 (rrx): New pattern.
34146 * config/arm/unspecs.md (UNSPEC_RRX): New.
34148 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
34150 * config/arm/arm.md (negdi_extendsidi): New pattern.
34151 (negdi_zero_extendsidi): Likewise.
34153 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
34155 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
34156 define_insn_and_split.
34157 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
34158 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
34160 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
34162 * config/arm/arm.md (arm_subdi3): Convert define_insn into
34163 define_insn_and_split.
34164 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
34165 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
34167 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
34169 * config/arm/arm.md (subsi3_carryin): New pattern.
34170 (subsi3_carryin_const): Likewise.
34171 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
34172 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
34174 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
34176 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
34178 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
34180 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
34181 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
34183 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34185 * config/arm/arm.c (arm_expand_builtin): Change fcode
34186 type to unsigned int.
34188 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34190 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
34192 2013-04-04 Ian Lance Taylor <iant@google.com>
34194 * doc/standards.texi (Standards): The Go frontend supports the Go 1
34197 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
34199 PR middle-end/56729
34200 * df-scan.c (df_insn_delete): Disable failing assert.
34202 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34204 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
34205 New function prototype.
34206 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
34207 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
34208 (arm_builtin_vectorized_function): New function.
34210 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34212 * config/arm/arm_neon_builtins.def: New file.
34213 * config/arm/arm.c (neon_builtin_data): Move contents to
34214 arm_neon_builtins.def.
34215 (enum arm_builtins): Include neon builtin definitions.
34216 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
34217 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
34219 2013-04-04 Marek Polacek <polacek@redhat.com>
34221 PR tree-optimization/48186
34222 * predict.c (maybe_hot_frequency_p): Return false if
34223 HOT_BB_FREQUENCY_FRACTION is 0.
34224 (cgraph_maybe_hot_edge_p): Likewise.
34226 2013-04-04 Richard Biener <rguenther@suse.de>
34228 PR tree-optimization/56826
34229 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
34232 2013-04-04 Richard Biener <rguenther@suse.de>
34234 PR tree-optimization/56213
34235 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
34236 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
34238 2013-04-04 Richard Biener <rguenther@suse.de>
34240 PR tree-optimization/56837
34241 * tree-loop-distribution.c (classify_partition): For non-zero
34242 values require that the value has the same precision as its
34243 mode to be useful as memset value.
34245 2013-04-03 Nick Clifton <nickc@redhat.com>
34247 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
34248 (fmssf4): Use fmsf.s on E3V5 architectures.
34249 (fnmasf4): Use fnmaf.s on E3V5 architectures.
34250 (fnmssf4): Use fnmsf.s on E3V5 architectures.
34252 2013-04-03 Jeff Law <law@redhat.com>
34254 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
34255 (lra-eliminations.o): Likewise.
34257 2013-04-03 Teresa Johnson <tejohnson@google.com>
34259 * gcov-io.c (compute_working_sets): Moved most of body of old
34260 compute_working_sets here from profile.c.
34261 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
34262 (gcov_working_set_t): Moved typedef here from basic-block.h
34263 (compute_working_set): Declare.
34264 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
34265 (get_working_sets): Renamed from compute_working_set,
34266 replace most of body with call to new compute_working_sets.
34267 (get_exec_counts): Replace call to compute_working_sets
34268 to get_working_sets.
34269 * profile.h (get_working_sets): Renamed from compute_working_set.
34270 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
34271 to get_working_sets.
34272 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
34273 * gcov-dump.c (dump_working_sets): New function.
34275 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
34277 * hwint.c (sext_hwi, zext_hwi): New functions.
34278 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
34279 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
34280 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
34281 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
34282 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
34283 (sext_hwi, zext_hwi): New functions.
34285 2013-04-03 Jeff Law <law@redhat.com>
34287 PR tree-optimization/56799
34288 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
34289 back test for widening conversion erroneously dropped in prior change.
34291 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34294 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
34295 instead of next_real_insn.
34297 2013-04-03 Marek Polacek <polacek@redhat.com>
34300 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
34302 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34305 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
34307 (thumb1_output_casesi): Likewise.
34308 (thumb2_output_casesi): Likewise.
34310 2013-04-03 Richard Biener <rguenther@suse.de>
34312 PR tree-optimization/56817
34313 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
34315 (tree_unroll_loops_completely_1): ... new function to manually
34316 walk the loop tree, properly defering outer loops of unrolled
34317 loops to later iterations.
34319 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
34321 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
34322 (vectorizable_load): Likewise.
34323 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
34324 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
34326 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
34328 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
34331 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
34333 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
34335 2013-04-03 Bin Cheng <bin.cheng@arm.com>
34337 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
34339 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
34341 PR tree-optimization/56790
34342 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
34345 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
34347 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
34349 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
34350 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
34353 2013-04-03 Jakub Jelinek <jakub@redhat.com>
34356 * tree.h (force_folding_builtin_constant_p): New decl.
34357 * builtins.c (force_folding_builtin_constant_p): New variable.
34358 (fold_builtin_constant_p): Fold immediately also if
34359 force_folding_builtin_constant_p.
34361 2013-04-03 Richard Biener <rguenther@suse.de>
34363 PR tree-optimization/56812
34364 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
34365 DRs of the same interleaving chain are independent.
34367 2013-04-02 Jason Merrill <jason@redhat.com>
34369 * gdbinit.in (pbb): Use debug fn.
34371 2013-04-02 Lawrence Crowl <crowl@google.com>
34373 * sese.h (struct ivtype_map_elt_s): Remove unused.
34374 (extern debug_ivtype_map): Remove unused.
34375 (extern eq_ivtype_map_elts): Remove unused.
34376 * sese.c (debug_ivtype_map): Removed unused.
34377 (debug_ivtype_map_1): Removed unused.
34378 (debug_ivtype_elt): Remove unused.
34379 (eq_ivtype_map_elts): Remove unused.
34381 2013-04-02 Kai Tietz <ktietz@redhat.com>
34384 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
34385 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
34386 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
34388 (legitimize_pe_coff_symbol): Likewise.
34389 (is_imported_p): New helper-function.
34390 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
34391 for Windows x64 targets.
34392 (ix86_expand_prologue): Optimize for pe-coff targets.
34393 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
34394 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
34395 medium/large code-model.
34396 (legitimize_pic_address): Likewise.
34397 (legitimize_tls_address): Likewise.
34398 (ix86_expand_call): Likewise.
34399 (x86_output_mi_thunk): Likewise.
34400 (get_dllimport_decl): Add new beimport argument.
34401 (construct_plt_address): Don't assert for x64 pe-coff targets.
34402 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
34404 (SYMBOL_FLAG_STUBVAR): New macro.
34405 (SYMBOL_REF_STUBVAR_P): Likewise.
34406 * config/i386/winnt.c (stub_list): New structure.
34407 (stub_head): New local variable.
34408 (i386_pe_record_stub): New function.
34409 (i386_pe_file_end): Emit refptr-stubs.
34411 2013-04-02 Jakub Jelinek <jakub@redhat.com>
34413 PR rtl-optimization/56745
34414 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
34415 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
34418 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
34419 and both of them are MEM_REFs, just compare first argument for
34420 equality and attempt to deal even with differing offsets.
34423 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
34424 of gimple_clobber_p to be MEM_REF.
34425 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
34426 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
34427 after gimplification.
34428 * asan.c (get_mem_ref_of_assignment): Don't instrument
34429 gimple_clobber_p stmts.
34430 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
34431 gimple_clobber_p stmt if they have MEM_REF lhs and
34432 are dead because of another gimple_clobber_p stmt.
34433 * tree-ssa-live.c (clear_unused_block_pointer): Treat
34434 gimple_clobber_p stmts like debug stmts.
34435 (remove_unused_locals): Remove clobbers with MEM_REF lhs
34436 that refer to unused VAR_DECLs or uninitialized values.
34437 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
34438 gimple_clobber_p stmts if they refer to removed parameters.
34439 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
34442 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
34444 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
34445 using SWI48 mode attribute.
34447 2013-04-02 Wei Mi <wmi@google.com>
34449 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
34450 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
34451 *<rotate_insn><mode>3_mask in i386.md.
34453 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
34455 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
34457 2013-04-02 Richard Biener <rguenther@suse.de>
34459 PR tree-optimization/56778
34460 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
34461 Runtime alias tests are not supported for gather loads.
34462 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
34463 stmts referenced from SSA operands before updating SSA form.
34465 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
34466 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34468 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
34469 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
34470 * config/arm/cortex-a53.md: New file.
34471 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
34472 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
34473 * config/arm/arm.c (arm_issue_rate): Likewise.
34474 * config/arm/arm-tune.md: Regenerate
34475 * config/arm/arm-tables.opt: Regenerate.
34476 * config/arm/arm-cores.def: Add cortex-a53.
34478 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
34480 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
34483 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
34485 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
34486 scalar load/store operations using B/H registers.
34487 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
34489 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
34491 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
34493 * config/aarch64/aarch64.c
34494 (aarch64_simd_scalar_immediate_valid_for_move): New.
34495 * config/aarch64/aarch64-protos.h
34496 (aarch64_simd_scalar_immediate_valid_for_move): New.
34497 * config/aarch64/constraints.md (Dh, Dq): New.
34498 * config/aarch64/iterators.md (hq): New.
34500 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
34502 * reorg.c (get_branch_condition): Deal with conditional returns.
34503 (fill_simple_delay_slots): Remove dead code dealing with jumps.
34505 2013-04-01 Wei Mi <wmi@google.com>
34507 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
34508 Truncate operand 2 using %b asm operand modifier.
34509 (*<shift_insn><mode>3_mask): Ditto.
34510 (*<rotate_insn><mode>3_mask): Ditto.
34512 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
34514 PR middle-end/56798
34515 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
34517 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
34519 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
34521 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
34523 2013-03-30 Lawrence Crowl <crowl@google.com>
34525 * dse.c (clear_alias_sets): Remove never set.
34526 (disqualified_clear_alias_sets): Remove never set.
34527 (clear_alias_mode_pool): Remove never set.
34528 (dse_step0): Remove condition that is never true.
34529 (canon_address): Remove condition that is never true.
34530 (dse_step7): Remove condition that is never true.
34531 (rest_of_handle_dse): Remove condition that is never true.
34532 (rest_of_handle_dse::did_global): Remove never read from above.
34533 (dse_step2_spill): Remove never called from above.
34534 (dse_step5_spill): Remove never called from above.
34536 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
34538 * doc/md.texi (Standard Names) <casesi>: Update documentation for
34539 JUMP_TABLE_DATA changes.
34540 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
34541 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
34542 (Insns) <jump_table_data>: New entry.
34543 * doc/tm.texi: Regenerate.
34545 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
34547 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
34548 for table jump at the end of a basic block using tablejump_p.
34549 * targhooks.c (default_invalid_within_doloop): Likewise.
34550 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
34551 target hook implementation that is identical to the default hook.
34552 (rs6000_invalid_within_doloop): Remove.
34554 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
34555 unused variable from tablejump_p call.
34557 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
34558 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
34559 (INSN_DELETED_P): Likewise.
34560 (emit_jump_table_data): New prototype.
34561 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
34562 after 4th as unused.
34563 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
34564 * sched-vis.c (print_insn): Likewise.
34565 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
34566 insn for compatibility with back ends that use next_active_insn to
34567 identify jump table data.
34568 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
34569 (remove_insn): Likewise.
34570 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
34572 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
34573 (emit_jump_table_data): New function.
34575 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
34576 basic block, a JUMP_TABLE_DATA never is.
34577 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
34578 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
34579 off from code handling real insns.
34580 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
34581 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
34582 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
34583 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
34584 is not a NONDEBUG_INSN_P.
34585 * ira-costs.c (scan_one_insn): Likewise.
34586 * jump.c (mark_all_labels): Likewise.
34587 (mark_jump_label_1): Likewise.
34588 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
34589 * lra.c (get_insn_freq): Expect all insns reaching here to be in
34591 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
34592 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
34593 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
34594 JUMP_TABLE_DATA_P insns.
34595 (calculate_elim_costs_all_insns): Likewise.
34596 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
34597 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
34598 (delete_output_reload): Code style fixups.
34599 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
34600 insn flags on this non-insn.
34601 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
34602 as scheduling barriers, for pre-change compatibility.
34603 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
34604 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
34606 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
34607 redundant JUMP_TABLE_DATA_P test.
34608 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
34609 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
34610 (frv_for_each_packet): Likewise.
34611 * config/i386/i386.c (min_insn_size): Likewise.
34612 (ix86_avoid_jump_mispredicts): Likewise.
34613 * config/m32r/m32r.c (m32r_is_insn): Likewise.
34614 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
34615 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
34616 (mips16_insn_length): Robustify.
34617 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
34618 (mips16_split_long_branches): Likewise.
34619 * config/pa/pa.c (pa_combine_instructions): Likewise.
34620 * config/rs6000/rs6000.c (get_next_active_insn): Treat
34621 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
34622 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
34623 as contributing to pool range lengths.
34624 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
34625 Remove redundant JUMP_TABLE_DATA_P test.
34626 (sh_loop_align): Likewise.
34627 (split_branches): Likewise.
34628 (sh_insn_length_adjustment): Likewise.
34629 * config/spu/spu.c (get_branch_target): Likewise.
34631 2013-03-29 Jan Hubicka <jh@suse.cz>
34633 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
34634 gcov streaming; stream hot bb threshold to ltrans.
34635 * predict.c (get_hot_bb_threshold): Break out from ....
34636 (maybe_hot_count_p): ... here.
34637 (set_hot_bb_threshold): New function.
34638 * lto-section-in.c (lto_section_name): Add profile.
34639 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
34640 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
34641 and data-streamer.h
34642 (histogram_entry): New structure.
34643 (histogram, histogram_pool): New global vars.
34644 (histogram_hash): New structure.
34645 (histogram_hash::hash): New method.
34646 (histogram_hash::equal): Likewise.
34647 (account_time_size): New function.
34648 (cmp_counts): New function.
34649 (dump_histogram): New function.
34650 (ipa_profile_generate_summary): New function.
34651 (ipa_profile_write_summary): New function.
34652 (ipa_profile_read_summary): New function.
34653 (ipa_profile): Decide on threshold.
34654 (pass_ipa_profile): Add ipa_profile_write_summary and
34655 ipa_profile_read_summary.
34656 * Makefile.in (ipa.o): Update dependencies.
34657 * lto-streamer.h (LTO_section_ipa_profile): New section.
34659 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
34661 * tree.h (VAR_P): New.
34663 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
34666 * doc/invoke.texi ([-fwhole-program]): Fix typo.
34668 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
34670 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
34671 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
34672 (control_flow_insn_p): Likewise.
34673 * cfgrtl.c (duplicate_insn_chain): Likewise.
34674 * final.c (get_attr_length_1): Likewise.
34675 (shorten_branches): Likewise.
34676 (final_scan_insn): Likewise.
34677 * function.c (instantiate_virtual_regs): Likewise.
34678 * gcse.c (insert_insn_end_basic_block): Likewise.
34679 * ira-costs.c (scan_one_insn): Likewise.
34680 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
34681 * lra.c (check_rtl): Likewise.
34682 * reload1.c (elimination_costs_in_insn): Likewise.
34683 * reorg.c (follow_jumps): Likewise.
34685 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
34686 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
34687 (thumb_far_jump_used_p): Likewise.
34688 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
34689 (workaround_speculation): Likewise.
34690 (add_sched_insns_for_speculation): Likewise.
34691 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
34692 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
34693 (frv_for_each_packet): Likewise.
34694 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
34695 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
34696 (final_emit_insn_group_barriers): Likewise.
34697 * config/m32r/m32r.c (m32r_is_insn): Likewise.
34698 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
34699 (mips16_insn_length): Likewise.
34700 * config/pa/pa.c (pa_reorg): Likewise.
34701 (pa_combine_instructions): Likewise.
34702 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
34703 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
34704 (sh_reorg): Likewise.
34705 (split_branches): Likewise.
34706 * config/spu/spu.c (get_branch_target): Likewise.
34708 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
34711 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
34713 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
34714 Fix declaration name.
34716 2013-03-28 Lawrence Crowl <crowl@google.com>
34718 * graphds.h (struct graph.indicies): Remove unused.
34719 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
34720 (SCOP_ORIGINAL_PDDRS): Remove unused.
34721 * sese.h (extern insert_loop_close_phis): Removed unused.
34722 (extern insert_guard_phis): Removed unused.
34723 (extern ivtype_map_elt_info): Removed unused.
34724 (new_ivtype_map_elt): Removed unused.
34725 * sese.c (ivtype_map_elt_info): Removed unused.
34727 2013-03-28 Lawrence Crowl <crowl@google.com>
34729 * Makefile.in: Add several missing include dependences.
34731 (test-dump.o): New. This object is not added to any executable,
34732 but is present for ad-hoc testing.
34734 (debug (const bitmap_head_def &)): New.
34735 (debug (const bitmap_head_def *)): New.
34737 (extern debug (const bitmap_head_def &)): New.
34738 (extern debug (const bitmap_head_def *)): New.
34740 (debug (edge_def &)): New.
34741 (debug (edge_def *)): New.
34743 (debug (basic_block_def &)): New.
34744 (debug (basic_block_def *)): New.
34746 (dump_node (const_tree, int, FILE *)): Correct source file.
34748 (debug (die_struct &)): New.
34749 (debug (die_struct *)): New.
34751 (extern debug (die_struct &)): New.
34752 (extern debug (die_struct *)): New.
34753 * gimple-pretty-print.c
34754 (debug (gimple_statement_d &)): New.
34755 (debug (gimple_statement_d *)): New.
34756 * gimple-pretty-print.h
34757 (extern debug (gimple_statement_d &)): New.
34758 (extern debug (gimple_statement_d *)): New.
34760 (debug (ira_allocno_copy &)): New.
34761 (debug (ira_allocno_copy *)): New.
34762 (debug (ira_allocno &)): New.
34763 (debug (ira_allocno *)): New.
34765 (extern debug (ira_allocno_copy &)): New.
34766 (extern debug (ira_allocno_copy *)): New.
34767 (extern debug (ira_allocno &)): New.
34768 (extern debug (ira_allocno *)): New.
34770 (debug (live_range &)): New.
34771 (debug (live_range *)): New.
34773 (debug (lra_live_range &)): New.
34774 (debug (lra_live_range *)): New.
34776 (debug (lra_live_range &)): New.
34777 (debug (lra_live_range *)): New.
34779 (debug (omega_pb_d &)): New.
34780 (debug (omega_pb_d *)): New.
34782 (extern debug (omega_pb_d &)): New.
34783 (extern debug (omega_pb_d *)): New.
34785 (debug (const rtx_def &)): New.
34786 (debug (const rtx_def *)): New.
34788 (debug_tree (tree): Move within file.
34789 (debug_raw (const tree_node &)): New.
34790 (debug_raw (const tree_node *)): New.
34791 (dump_tree_via_hooks (const tree_node *, int)): New.
34792 (debug (const tree_node &)): New.
34793 (debug (const tree_node *)): New.
34794 (debug_verbose (const tree_node &)): New.
34795 (debug_verbose (const tree_node *)): New.
34796 (debug_head (const tree_node &)): New.
34797 (debug_head (const tree_node *)): New.
34798 (debug_body (const tree_node &)): New.
34799 (debug_body (const tree_node *)): New.
34800 (debug_vec_tree (tree): Move and reimplement in terms of dump.
34801 (debug (vec<tree, va_gc> &)): New.
34802 (debug (vec<tree, va_gc> *)): New.
34804 (extern debug (const rtx_def &)): New.
34805 (extern debug (const rtx_def *)): New.
34807 (debug_raw (simple_bitmap_def &)): New.
34808 (debug_raw (simple_bitmap_def *)): New.
34809 (debug (simple_bitmap_def &)): New.
34810 (debug (simple_bitmap_def *)): New.
34812 (extern debug (simple_bitmap_def &)): New.
34813 (extern debug (simple_bitmap_def *)): New.
34814 (extern debug_raw (simple_bitmap_def &)): New.
34815 (extern debug_raw (simple_bitmap_def *)): New.
34817 (debug (vinsn_def &)): New.
34818 (debug (vinsn_def *)): New.
34819 (debug_verbose (vinsn_def &)): New.
34820 (debug_verbose (vinsn_def *)): New.
34821 (debug (expr_def &)): New.
34822 (debug (expr_def *)): New.
34823 (debug_verbose (expr_def &)): New.
34824 (debug_verbose (expr_def *)): New.
34825 (debug (vec<rtx> &)): New.
34826 (debug (vec<rtx> *)): New.
34828 (extern debug (vinsn_def &)): New.
34829 (extern debug (vinsn_def *)): New.
34830 (extern debug_verbose (vinsn_def &)): New.
34831 (extern debug_verbose (vinsn_def *)): New.
34832 (extern debug (expr_def &)): New.
34833 (extern debug (expr_def *)): New.
34834 (extern debug_verbose (expr_def &)): New.
34835 (extern debug_verbose (expr_def *)): New.
34836 (extern debug (vec<rtx> &)): New.
34837 (extern debug (vec<rtx> *)): New.
34839 (_list_iter_cond_expr): Make inline instead of static.
34841 (debug (sreal &)): New.
34842 (debug (sreal *)): New.
34844 (extern debug (sreal &)): New.
34845 (extern debug (sreal *)): New.
34847 (extern debug_raw (const tree_node &)): New.
34848 (extern debug_raw (const tree_node *)): New.
34849 (extern debug (const tree_node &)): New.
34850 (extern debug (const tree_node *)): New.
34851 (extern debug_verbose (const tree_node &)): New.
34852 (extern debug_verbose (const tree_node *)): New.
34853 (extern debug_head (const tree_node &)): New.
34854 (extern debug_head (const tree_node *)): New.
34855 (extern debug_body (const tree_node &)): New.
34856 (extern debug_body (const tree_node *)): New.
34857 (extern debug (vec<tree, va_gc> &)): New.
34858 (extern debug (vec<tree, va_gc> *)): New.
34860 (debug (struct loop &)): New.
34861 (debug (struct loop *)): New.
34862 (debug_verbose (struct loop &)): New.
34863 (debug_verbose (struct loop *)): New.
34864 * tree-dump.c: Add header dependence.
34866 (extern debug (struct loop &)): New.
34867 (extern debug (struct loop *)): New.
34868 (extern debug_verbose (struct loop &)): New.
34869 (extern debug_verbose (struct loop *)): New.
34871 (debug (data_reference &)): New.
34872 (debug (data_reference *)): New.
34873 (debug (vec<data_reference_p> &)): New.
34874 (debug (vec<data_reference_p> *)): New.
34875 (debug (vec<ddr_p> &)): New.
34876 (debug (vec<ddr_p> *)): New.
34878 (extern debug (data_reference &)): New.
34879 (extern debug (data_reference *)): New.
34880 (extern debug (vec<data_reference_p> &)): New.
34881 (extern debug (vec<data_reference_p> *)): New.
34882 (extern debug (vec<ddr_p> &)): New.
34883 (extern debug (vec<ddr_p> *)): New.
34885 (debug (pt_solution &)): New.
34886 (debug (pt_solution *)): New.
34888 (extern debug (pt_solution &)): New.
34889 (extern debug (pt_solution *)): New.
34891 (debug (_var_map &)): New.
34892 (debug (_var_map *)): New.
34893 (debug (tree_live_info_d &)): New.
34894 (debug (tree_live_info_d *)): New.
34896 (extern debug (_var_map &)): New.
34897 (extern debug (_var_map *)): New.
34898 (extern debug (tree_live_info_d &)): New.
34899 (extern debug (tree_live_info_d *)): New.
34901 2013-03-28 Jan Hubicka <jh@suse.cz>
34903 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
34905 2013-03-28 Ian Bolton <ian.bolton@arm.com>
34907 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
34908 record only when desired or required.
34910 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
34912 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
34913 *vec_extractv2di_1_rex64. Use x64 isa attribute.
34915 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34917 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
34918 (*andsi3_compare0_uxtw): New pattern.
34919 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
34920 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
34922 2013-03-28 Jan Hubicka <jh@suse.cz>
34924 * data-streamer-in.c (streamer_read_gcov_count): New function.
34925 * gimple-streamer-out.c: Include value-prof.h.
34926 (output_gimple_stmt): Output histogram.
34927 (output_bb): Use streamer_write_gcov_count.
34928 * value-prof.c: Include data-streamer.h
34929 (dump_histogram_value): Add HIST_TYPE_MAX.
34930 (stream_out_histogram_value): New function.
34931 (stream_in_histogram_value): New function.
34932 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
34933 (stream_out_histogram_value, stream_in_histogram_value): Declare.
34934 * data-streamer-out.c (streamer_write_gcov_count): New function.
34935 (streamer_write_gcov_count_stream): New function.
34936 * lto-cgraph.c (lto_output_edge): Update counter streaming.
34937 (lto_output_node): Likewise.
34938 (input_node, input_edge): Likewise.
34939 * lto-streamer-out.c (output_cfg): Update streaming.
34940 * lto-streamer-in.c (input_cfg): Likewise.
34941 * data-streamer.h (streamer_write_gcov_count,
34942 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
34943 * gimple-streamer-in.c: Include value-prof.h
34944 (input_gimple_stmt): Input histograms.
34945 (input_bb): Update profile streaming.
34947 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
34949 * genmodes.c (emit_max_int): New function.
34950 (emit_insn_modes_h): Added call to emit_max_function.
34951 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
34953 * machmode.def: Fixed comment.
34955 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
34957 * combine.c (try_combine): Removed useless assert.
34958 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
34960 2013-03-28 Marek Polacek <polacek@redhat.com>
34961 Richard Biener <rguenther@suse.de>
34963 PR tree-optimization/56695
34964 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
34965 build signed result of a vector comparison.
34966 * tree-cfg.c (verify_gimple_comparison): Check that a result
34967 of a vector comparison has signed type.
34969 2013-03-28 Richard Biener <rguenther@suse.de>
34971 PR tree-optimization/37021
34972 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
34973 do not restrict gaps between groups.
34974 * tree-vect-stmts.c (vectorizable_load): Properly account for
34975 a gap between groups.
34977 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
34979 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
34980 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
34983 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
34985 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
34986 * doc/extend.texi (Named Address Spaces): Ditto.
34987 (Variable Attributes): Ditto.
34989 2013-03-27 Kai Tietz <ktietz@redhat.com>
34991 * config.build: Add support for cygwin x64 target.
34992 * config.gcc: Likewise.
34993 * config.host: Likewise.
34994 * configure.ac: Likewise
34995 * configure: Regenerated.
34997 2013-03-27 Kai Tietz <ktietz@redhat.com>
34999 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
35000 * config/i386/t-cygwin-w64: New file.
35001 * config/i386/cygwin-w64.h: New file.
35002 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
35003 and add support for x64-cygwin target.
35004 (CPP_SPEC): Likewise.
35005 (CXX_WRAP_SPEC_LIST): Undefine before define.
35006 (LIBGCJ_SONAME): Use 15 as version.
35008 2013-03-27 Richard Biener <rguenther@suse.de>
35010 PR tree-optimization/56716
35011 * tree-ssa-structalias.c (perform_var_substitution): Adjust
35012 dumping for ref nodes.
35014 2013-03-27 Martin Jambor <mjambor@suse.cz>
35016 PR tree-optimization/55334
35017 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
35018 restricted pointers to arrays.
35020 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
35022 * Makefile.in (.SUFFIXES): Add .cc.
35023 (.c.o): Apply same recipe for implicit rule .cc.o.
35025 2013-03-27 Richard Biener <rguenther@suse.de>
35027 PR tree-optimization/37021
35028 * tree-vect-data-refs.c (vect_check_strided_load): Allow
35029 REALPART/IMAGPART_EXPRs around the supported refs.
35030 * tree-ssa-structalias.c (find_func_aliases): Assume that
35031 floating-point values are not used to transfer pointers.
35033 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
35035 * target.def (TARGET_HAS_IFUNC_P): New target hook.
35036 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
35037 * doc/tm.texi: Regenerate.
35038 * targhooks.h (default_has_ifunc_p): New.
35039 * targhooks.c (default_has_ifunc_p): Ditto.
35040 * config/linux-protos.h: New file.
35041 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
35042 hook for linux which disables support of indirect functions in android.
35043 * config/linux-android.c: New file.
35044 * config/t-linux-android.c: Ditto.
35045 * config.gcc: Added new object file linux-android.o.
35046 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
35047 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
35048 * varasm.c (do_assemble_alias): Likewise.
35049 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
35050 doesn't support indirect functions.
35051 * configure: Regenerate.
35053 2013-03-27 Bin Cheng <bin.cheng@arm.com>
35056 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
35057 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
35060 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35062 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
35064 2013-03-27 Terry Guo <terry.guo@arm.com>
35066 * config/arm/arm-cores.def: Added core cortex-r7.
35067 * config/arm/arm-tune.md: Regenerated.
35068 * config/arm/arm-tables.opt: Regenerated.
35069 * doc/invoke.texi: Added entry for core cortex-r7.
35071 2013-03-27 Walter Lee <walt@tilera.com>
35073 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
35074 double-decrement of next_scratch_regno.
35076 2013-03-27 Walter Lee <walt@tilera.com>
35078 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
35080 (insn_v1mulus): Ditto.
35081 (insn_v2muls): Ditto.
35083 2013-03-27 Walter Lee <walt@tilera.com>
35085 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
35086 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
35088 2013-03-27 Walter Lee <walt@tilera.com>
35090 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
35091 (*sibcall_value): Ditto.
35093 2013-03-27 Walter Lee <walt@tilera.com>
35095 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
35096 (insn_mnz_v8qi): ... this ...
35097 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
35099 (insn_v<n>mnz): Replaced by ...
35100 (insn_v1mnz): ... this ...
35101 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
35103 (insn_mz_<mode>): Replaced by ...
35104 (insn_mz_v8qi): ... this ...
35105 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
35107 (insn_v<n>mz): Replaced by ...
35108 (insn_v1mz): ... this ...
35109 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
35112 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
35114 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
35116 2013-03-26 Roland McGrath <mcgrathr@google.com>
35118 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
35119 than fprintf with a non-constant, non-format string.
35121 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
35123 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
35124 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
35125 operand 0 predicate.
35126 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
35127 attribute. Use general_x64nomem_operand as operand 1 predicate.
35128 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
35129 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
35130 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
35131 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
35132 (mov<mode>_insv_1): Remove expander. Merge insn with
35133 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
35134 Use general_x64nomem_operand as operand 1 predicate.
35135 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
35136 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
35137 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
35138 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
35139 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
35140 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
35141 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
35142 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
35143 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
35144 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
35145 (general_x64nomem_operand): Ditto.
35147 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
35149 * config/rtems.opt: Add -pthread option.
35151 2013-03-26 Richard Biener <rguenther@suse.de>
35153 * alias.c (find_base_term): Avoid redundant and not used recursion.
35154 (base_alias_check): Get the initial base term from the caller.
35155 (true_dependence_1): Compute and pass base terms to base_alias_check.
35156 (write_dependence_p): Likewise.
35157 (may_alias_p): Likewise.
35159 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
35161 * config/aarch64/aarch64.c (aarch64_classify_address): Support
35162 PC-relative load in SI modes and above only.
35164 2013-03-26 Xinyu Qi <xyqi@marvell.com>
35166 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
35167 * config/arm/iwmmxt.md (WCGR0): Update.
35168 (WCGR1, WCGR2, WCGR3): Likewise.
35170 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
35172 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
35173 Use x64 and nox64 isa attributes.
35175 2013-03-26 Richard Biener <rguenther@suse.de>
35177 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
35178 alignment computations and rely on get_object_alignment_1
35179 for the !TYPE_P case.
35180 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
35182 2013-03-26 Walter Lee <walt@tilera.com>
35184 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
35185 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
35187 2013-03-25 Jeff Law <law@redhat.com>
35189 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
35190 check for INTEGRAL_TYPE_P that was missing due to checking in
35191 wrong version of prior patch.
35193 2013-03-25 Walter Lee <walt@tilera.com>
35195 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
35196 TILEGX_INSN_SHUFFLEBYTES1.
35197 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
35199 (tilegx_builtins): Ditto.
35200 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
35202 2013-03-25 Walter Lee <walt@tilera.com>
35204 * config/tilegx/tilegx.md (floatsisf2): New pattern.
35205 (floatunssisf2): New pattern.
35206 (floatsidf2): New pattern.
35207 (floatunssidf2): New pattern.
35209 2013-03-25 Walter Lee <walt@tilera.com>
35211 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
35212 tests for constraint J, K, N, P.
35214 2013-03-25 Walter Lee <walt@tilera.com>
35216 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
35217 Use indirect/pcrel encoding.
35218 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
35221 2013-03-25 Steve Ellcey <sellcey@mips.com>
35223 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
35224 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
35225 * config/mips/mips.c (mips_option_override): Set IMADD default.
35226 * config/mips/mips.h (PTF_AVOID_IMADD): New.
35227 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
35228 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
35229 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
35230 * doc/invoke.texi (-mimadd/-mno-imadd): New.
35232 2013-03-25 Jeff Law <law@redhat.com>
35234 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
35235 slightly to avoid creating and folding useless trees. Simplify
35236 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
35238 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
35240 * config/i386/i386.md (*zero_extendsidi2): Merge with
35241 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
35242 * config/i386/predicates.md (x86_64_zext_operand): Rename from
35243 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
35244 targets. Clarify comment.
35246 2013-03-25 Martin Jambor <mjambor@suse.cz>
35248 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
35249 pass-through jump functions differently.
35250 (ipa_read_jump_function): Likewise. Also use setter functions to set
35253 2013-03-25 Martin Jambor <mjambor@suse.cz>
35255 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
35256 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
35258 (ipa_get_indirect_edge_target): New function.
35259 (devirtualization_time_bonus): New parameter known_aggs, pass it to
35260 ipa_get_indirect_edge_target. Update all callers.
35261 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
35262 ipa_get_indirect_edge_target_1 instead of calling
35263 ipa_get_indirect_edge_target.
35264 (create_specialized_node): Pass aggvlas to
35265 ipcp_discover_new_direct_edges.
35267 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35269 * config/arm/arm.md (f_sels, f_seld): New types.
35270 (*cmov<mode>): New pattern.
35271 * config/arm/predicates.md (arm_vsel_comparison_operator): New
35274 2013-03-25 Kai Tietz <ktietz@redhat.com>
35276 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
35277 POSIX-printf for mingw-hosted builds.
35279 2013-03-25 Richard Biener <rguenther@suse.de>
35281 PR middle-end/56694
35282 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
35283 must-not-throw stmt location.
35285 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35287 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
35288 Emit load-acquire versions when acq is true.
35289 (arm_emit_store_exclusive): Add rel parameter.
35290 Emit store-release versions when rel is true.
35291 (arm_split_compare_and_swap): Use acquire-release instructions
35293 of barriers when appropriate.
35294 (arm_split_atomic_op): Likewise.
35295 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
35296 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
35297 (VUNSPEC_SLX): Likewise.
35298 (VUNSPEC_LDA): Likewise.
35299 (VUNSPEC_STL): Likewise.
35300 * config/arm/sync.md (atomic_load<mode>): New pattern.
35301 (atomic_store<mode>): Likewise.
35302 (arm_load_acquire_exclusive<mode>): Likewise.
35303 (arm_load_acquire_exclusivesi): Likewise.
35304 (arm_load_acquire_exclusivedi): Likewise.
35305 (arm_store_release_exclusive<mode>): Likewise.
35307 2013-03-25 Catherine Moore <clm@codesourcery.com>
35309 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
35310 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
35311 * config/mip/predicates.md (lwsp_swsp_operand,
35312 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
35313 sb16_operand, db4_operand, db7_operand, ib3_operand,
35314 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
35315 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
35316 andi16_operand): New predicates.
35317 * config/mips/mips.md (compression): New attribute.
35318 (enabled): New attribute.
35319 (length): Consider compression in computing length.
35320 (shift_compression): New code attribute.
35321 (*add<mode>3): New operands. Record compression.
35322 (sub<mode>3): Likewise.
35323 (one_cmpl<mode>2): Likewise.
35324 (*and<mode>3): Likewise.
35325 (*ior<mode>3): Likewise.
35326 (unnamed pattern for xor): Likewise.
35327 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
35328 (*<optab><mode>3): Likewise.
35329 (*mov<mode>_internal: Likewise.
35330 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
35331 (mips_unsigned_immediate_p): New.
35332 (umips_lwsp_swsp_address_p): New.
35333 (m16_based_address_p): New.
35334 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
35335 (mips_unsigned_immediate_p): New prototype.
35336 (lwsp_swsp_address_p): New prototype.
35337 (m16_based_address_p): New prototype.
35338 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
35339 (mips_signed_immediate_p): New function.
35340 (m16_based_address_p): New function.
35341 (lwsp_swsp_address_p): New function.
35342 (mips_print_operand_punctuation): Recognize short delay slot insns
35343 for microMIPS.add<mode>3"
35345 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35348 * config/arm/iterators.md (v_cmp_result): New mode attribute.
35349 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
35351 2013-03-25 Richard Biener <rguenther@suse.de>
35353 PR tree-optimization/56689
35354 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
35357 2013-03-25 Richard Biener <rguenther@suse.de>
35359 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
35361 (memory_references): Likewise.
35362 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
35363 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
35364 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
35365 (gather_mem_refs_in_loops): Fold into ...
35366 (analyze_memory_references): ... this. Move initialization
35367 to tree_ssa_lim_initialize.
35368 (fill_always_executed_in): Rename to ...
35369 (fill_always_executed_in_1): ... this.
35370 (fill_always_executed_in): Move contains_call computation to
35371 this new function from ...
35372 (tree_ssa_lim_initialize): ... here.
35373 (tree_ssa_lim): Call fill_always_executed_in.
35375 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
35377 * postreload.c (reload_combine): Fix code detecting returns.
35379 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
35381 * function.c (emit_use_return_register_into_block): On cc0 targets,
35382 do not emit the sequence between cc0 setter and user.
35384 2013-03-25 Kai Tietz <ktietz@redhat.com>
35386 * config/i386/predicates.md (local_symbolic_operand): Interpret
35387 dll-imported symbols as none-local.
35389 2013-03-25 Richard Biener <rguenther@suse.de>
35391 * tree-ssa-loop-im.c (struct depend): Remove.
35392 (struct lim_aux_data): Make depends a vec of gimples.
35393 (free_lim_aux_data): Adjust.
35394 (add_dependency): Likewise.
35395 (set_level): Likewise.
35397 2013-03-25 Richard Biener <rguenther@suse.de>
35399 PR middle-end/56434
35400 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
35401 the pointer returned by calls with ECF_MALLOC set.
35403 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
35405 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
35407 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
35409 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
35410 using MMXMODE mode iterator.
35411 (*move<mode>_internal): Merge with *movv2sf_internal and
35412 *movv2sf_internal_rex64 using MMXMODE mode iterator.
35414 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
35416 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
35417 (record_last_mem_set_info): Likewise.
35419 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
35420 of XNEWVEC followed by memset.
35421 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
35423 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
35425 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
35426 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
35427 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
35428 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
35429 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
35430 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
35431 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
35432 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
35433 BARRIER_P instead of GET_CODE.
35435 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
35437 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
35438 inaccuracy in the probing code.
35440 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
35441 (ctrapdi4): Likewise.
35443 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
35445 * calls.c (expand_call): Add missing guard to code handling return
35446 of non-BLKmode structures in MSB.
35447 * function.c (expand_function_end): Likewise.
35449 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
35451 * combine.c (try_combine): Adjust comment. Do not add the set of
35452 insn #0 if the destination indirectly is set or dies in insn #2.
35453 Tidy up code to distribute a new note.
35455 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
35457 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
35458 also for alternatives 16 and 17.
35460 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
35462 * config/i386/sse.md (*mov<mode>_internal): Merge with
35463 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
35464 Emit insn template depending on type attribute. Use
35465 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
35466 movd instead of movq mnemonic for interunit moves. Rewrite mode
35467 attribute calculation. Remove unit attribute calculation.
35468 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
35469 Set prefix_data16 attribute for DImode ssemov types.
35470 Use Ym instead of y for SSE-MMX conversion alternatives.
35471 Reorder operand constraints.
35473 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
35475 * df.h (df_insn_delete): Adjust prototype.
35476 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
35477 and let it decide whether mark the basic block dirty.
35478 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
35479 * df-scan.c (df_insn_info_delete): New helper function, split
35480 off from df_insn_delete.
35481 (df_scan_free_bb_info): Use it.
35482 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
35484 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
35485 that the insn is actually an insn and it has a non-NULL basic block.
35486 Do not mark basic block dirty if only deleting a DEBUG_INSN.
35488 2013-03-22 Richard Biener <rguenther@suse.de>
35490 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
35492 (mem_ref_alloc): Do not allocate them.
35493 (refs_independent_p): Do not query or maintain a cache.
35495 2013-03-22 Richard Biener <rguenther@suse.de>
35497 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
35498 (gather_mem_refs_in_loops): Do not compute it.
35499 (analyze_memory_references): Do not allocate it.
35500 (tree_ssa_lim_finalize): Do not free it.
35501 (for_all_locs_in_loop): Do not query all_refs_in_loop.
35503 2013-03-22 Richard Biener <rguenther@suse.de>
35505 * is-a.h (as_a): Use gcc_checking_assert.
35507 2013-03-22 Ian Bolton <ian.bolton@arm.com>
35509 * config/aarch64/aarch64.c (aarch64_print_operand): New
35510 format specifier for printing a constant in hex.
35511 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
35512 format specifier for printing second operand.
35514 2013-03-22 Richard Biener <rguenther@suse.de>
35516 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
35518 (gather_mem_refs_in_loops): Perform store accumulation here.
35519 (create_vop_ref_mapping_loop): Remove.
35520 (create_vop_ref_mapping): Likewise.
35521 (analyze_memory_references): Initialize refs_stored_in_loop.
35522 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
35523 (record_indep_loop): Remove.
35524 (record_dep_loop): New function.
35525 (ref_indep_loop_p_1): Adjust to only walk over references
35526 in the loop, not its subloops.
35527 (ref_indep_loop_p): Rename to ...
35528 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
35529 maintaining a more fine-grained cache.
35530 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
35531 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
35533 2013-03-22 Richard Biener <rguenther@suse.de>
35535 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
35536 (struct mem_ref): Make accesses_in_loop a vec of a vec of
35537 aggregate mem_ref_loc.
35538 (free_mem_ref_locs): Inline into ...
35539 (memref_free): ... this and adjust.
35540 (mem_ref_alloc): Adjust.
35541 (mem_ref_locs_alloc): Remove.
35542 (record_mem_ref_loc): Adjust.
35543 (get_all_locs_in_loop): Rewrite into ...
35544 (for_all_locs_in_loop): ... this iterator.
35545 (rewrite_mem_ref_loc): New functor.
35546 (rewrite_mem_refs): Use for_all_locs_in_loop.
35547 (sm_set_flag_if_changed): New functor.
35548 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
35549 (ref_always_accessed): New functor.
35550 (ref_always_accessed_p): Use for_all_locs_in_loop.
35552 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
35554 * tree-pass.h (PROP_gimple_lvec): New.
35555 * passes.c (dump_properties): Handle PROP_gimple_lvec.
35556 (init_optimization_passes): Move pass_lower_vector.
35557 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
35559 (pass_lower_vector): Provide PROP_gimple_lvec.
35560 (pass_lower_vector_ssa): Likewise.
35561 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
35563 2013-03-21 Mark Wielaard <mjw@redhat.com>
35565 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
35567 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
35569 * config/i386/i386.md (*movdi_internal): Disparage slightly
35570 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
35571 conversion alternatives.
35573 2013-03-21 Jakub Jelinek <jakub@redhat.com>
35575 PR middle-end/48087
35576 * diagnostic.def (DK_WERROR): New kind.
35577 * diagnostic.h (werrorcount): Define.
35578 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
35579 promoted to DK_ERROR, increment DK_WERROR counter instead of
35581 * toplev.c (toplev_main): Call print_ignored_options even if
35582 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
35583 even if just werrorcount is non-zero.
35586 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
35588 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
35589 (string_cst_pool_decl): New function.
35590 (optimize_one_addr_into_implicit_ptr): New function.
35591 (resolve_addr_in_expr): Optimize DWARF location expression
35592 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
35593 which doesn't live in memory, but has DW_AT_location or
35594 DW_AT_const_value, or refers to a string literal, into
35595 DW_OP_GNU_implicit_pointer.
35596 (optimize_location_into_implicit_ptr): New function.
35597 (resolve_addr): If removing DW_AT_location of a variable because
35598 it was DW_OP_addr of address of the variable, but the variable doesn't
35599 live in memory, try to emit const value attribute for the initializer.
35601 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
35603 * tree.h (VECTOR_TYPE_P): New macro.
35604 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
35605 TYPE_MODE): Use it.
35606 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
35607 VEC_COND_EXPR cannot be lvalues.
35608 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
35610 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
35612 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
35613 Restrict the transformation to equal modes.
35615 2013-03-21 Richard Biener <rguenther@suse.de>
35617 PR tree-optimization/39326
35618 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
35619 (MEM_ANALYZABLE): Adjust.
35620 (record_mem_ref_loc): Move bitmap ops ...
35621 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
35622 unanalyzable refs, do not record locations for it.
35623 (analyze_memory_references): Allocate ref zero as shared
35625 (refs_independent_p): Do not test for unanalyzed mems here.
35626 (ref_indep_loop_p_1): Special-case disambiguation against
35627 the unanalyzed ref.
35628 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
35630 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
35632 * config/arm/arm-protos.h (tune_params): Add
35633 prefer_neon_for_64bits field.
35634 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
35635 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
35636 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
35637 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
35638 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
35639 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
35640 (arm_option_override): Handle -mneon-for-64bits new option.
35641 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
35642 (prefer_neon_for_64bits): Declare new variable.
35643 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
35644 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
35645 (arch_enabled): Handle new arch types. Remove support for onlya8
35647 (one_cmpldi2): Use new arch names.
35648 (zero_extend<mode>di2, extend<mode>di2): Ditto.
35649 * config/arm/arm.opt (mneon-for-64bits): Add option.
35650 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
35651 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
35652 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
35654 * doc/invoke.texi (-mneon-for-64bits): Document.
35656 2013-03-21 Richard Biener <rguenther@suse.de>
35658 PR tree-optimization/39326
35659 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
35660 (sort_bbs_in_loop_postorder_cmp): New function.
35661 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
35663 2013-03-21 Richard Biener <rguenther@suse.de>
35665 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
35666 (vect_insert_into_interleaving_chain): Likewise.
35667 (vect_drs_dependent_in_basic_block): Inline ...
35668 (vect_slp_analyze_data_ref_dependence): ... here. New function,
35670 (vect_analyze_data_ref_dependence): ... here. Simplify.
35671 (vect_check_interleaving): Simplify.
35672 (vect_analyze_data_ref_dependences): Likewise. Split out ...
35673 (vect_slp_analyze_data_ref_dependences): ... this new function.
35674 (dr_group_sort_cmp): New function.
35675 (vect_analyze_data_ref_accesses): Compute data-reference groups
35676 here instead of in vect_analyze_data_ref_dependence. Use
35677 a more efficient algorithm.
35678 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
35679 vect_slp_analyze_data_ref_dependences. Call
35680 vect_analyze_data_ref_accesses earlier.
35681 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
35682 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
35683 (vect_slp_analyze_data_ref_dependences): New prototype.
35685 2013-03-21 Richard Biener <rguenther@suse.de>
35687 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
35688 ref is stored in the loop.
35689 (find_refs_for_sm): Walk only over all stores.
35690 (store_motion_loop): Allocate from lim_bitmap_obstack.
35691 (store_motion): Likewise.
35693 2013-03-21 Richard Biener <rguenther@suse.de>
35695 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
35696 Update virtual SSA form.
35698 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35700 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
35701 * configure: Regenerate.
35702 * config.in: Regenerate.
35703 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
35704 if !HAVE_LD_EH_FRAME_CIEV3.
35706 2013-03-21 Richard Biener <rguenther@suse.de>
35708 * tree-cfg.c (verify_expr_no_block): New function.
35709 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
35710 nor DECL_VALUE_EXPR have locations with associated blocks.
35711 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
35712 (clear_unused_block_pointer): Remove code dealing with
35713 blocks in DECL_DEBUG_EXPR locations.
35715 2013-03-21 Richard Biener <rguenther@suse.de>
35717 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
35718 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
35719 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
35720 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
35721 instead of DECL_DEBUG_EXPR_IS_FROM.
35722 * gimplify.c (gimplify_modify_expr): Likewise.
35723 * tree-cfg.c (verify_expr_location_1): Likewise.
35724 * tree-complex.c (create_one_component_var): Likewise.
35725 * tree-sra.c (create_access_replacement): Likewise.
35726 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
35727 (clear_unused_block_pointer): Likewise.
35728 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
35729 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
35730 * var-tracking.c (var_debug_decl): Likewise.
35731 (track_expr_p): Likewise.
35732 * tree-inline.c (add_local_variables): Likewise. Set
35733 DECL_HAS_DEBUG_EXPR_P after copying it.
35734 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
35735 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
35737 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
35740 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
35741 * configure: Regenerate.
35742 * config.in: Regenerate.
35743 * config/i386/i386.md (*movdf_internal): Use
35744 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
35745 movd instead of movq mnemonic for interunit moves.
35746 (*movdi_internal): Ditto.
35748 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
35750 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
35751 (abd<mode>_3): New pattern.
35752 (aba<mode>_3): New pattern.
35753 (fabd<mode>_3): New pattern.
35755 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
35757 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
35758 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
35759 occurrence of REGISTER_PREFIX as its empty string.
35761 2013-03-20 Jeff Law <law@redhat.com>
35763 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
35764 addititional equivalences for equality comparisons between an SSA_NAME
35765 and a constant where the SSA_NAME was set from a widening conversion.
35767 2013-03-20 Walter Lee <walt@tilera.com>
35769 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
35771 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
35773 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
35774 depending on type attribute.
35775 (*movti_internal): Ditto.
35776 (*movtf_internal): Ditto.
35777 (*movxf_internal): Ditto.
35778 (*movdf_internal): Ditto.
35779 (*movsf_internal): Ditto.
35781 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
35783 * config/i386/i386.md (*movti_internal): Set prefix attribute to
35784 maybe_vex for sselog1 and ssemov types.
35785 (*movdi_internal): Reorder operand constraints.
35786 (*movsi_internal): Ditto. Set prefix attribute to
35787 maybe_vex for sselog1 and ssemov types.
35788 (*movtf_internal): Set prefix attribute to maybe_vex
35789 for sselog1 and ssemov types.
35790 (*movdf_internal): Ditto. Set prefix_data16 attribute for
35791 DImode ssemov types. Reorder operand constraints.
35792 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
35793 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
35794 attribute for SImode ssemov types. Reorder operand constraints.
35796 2013-03-20 Martin Jambor <mjambor@suse.cz>
35798 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
35799 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
35801 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
35803 * config/rs6000/predicates.md (indexed_address, update_address_mem
35804 update_indexed_address_mem): New predicates.
35805 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
35806 attribute for load/store instructions.
35807 * config/rs6000/dfp.md (movsd_store): Likewise.
35808 (movsd_load): Likewise.
35809 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
35810 (unnamed HI->DI extend define_insn): Likewise.
35811 (unnamed SI->DI extend define_insn): Likewise.
35812 (unnamed QI->SI extend define_insn): Likewise.
35813 (unnamed QI->HI extend define_insn): Likewise.
35814 (unnamed HI->SI extend define_insn): Likewise.
35815 (unnamed HI->SI extend define_insn): Likewise.
35816 (extendsfdf2_fpr): Likewise.
35817 (movsi_internal1): Likewise.
35818 (movsi_internal1_single): Likewise.
35819 (movhi_internal): Likewise.
35820 (movqi_internal): Likewise.
35821 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
35822 attribute for load/store instructions.
35823 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
35825 (mov<mode>_softfloat): Likewise.
35826 (mov<mode>_hardfloat32): Likewise.
35827 (mov<mode>_hardfloat64): Likewise.
35828 (mov<mode>_softfloat64): Likewise.
35829 (movdi_internal32): Likewise.
35830 (movdi_internal64): Likewise.
35831 (probe_stack_<mode>): Likewise.
35833 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
35835 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
35836 floating point, and decimal floating point to reload iterator.
35838 * config/rs6000/constraints.md (wl constraint): New constraints to
35839 return FLOAT_REGS if certain options are used to reduce the number
35840 of separate patterns that exist in the file.
35841 (wx constraint): Likewise.
35842 (wz constraint): Likewise.
35844 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
35845 -mdebug=reg, print wg, wl, wx, and wz constraints.
35846 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
35847 Initialize the reload functions for 64-bit binary/decimal floating
35849 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
35850 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
35851 create the buffer on the stack to overcome not having a 32-bit
35853 (rs6000_emit_move): Likewise.
35854 (rs6000_secondary_memory_needed_rtx): Likewise.
35855 (rs6000_alloc_sdmode_stack_slot): Likewise.
35856 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
35857 via xxlxor, just like DFmode 0.0.
35859 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
35860 define as 1 if we are running on a power7 or newer.
35861 (enum r6000_reg_class_enum): Add new constraints.
35863 * config/rs6000/dfp.md (movsd): Delete, combine with binary
35864 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
35865 with other moves by using conditional constraits (wg). Use LFIWZX
35866 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
35867 (movsd splitter): Likewise.
35868 (movsd_hardfloat): Likewise.
35869 (movsd_softfloat): Likewise.
35871 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
35872 binary and decimal floating point moves.
35873 (fmove_ok): New attributes to combine binary and decimal floating
35874 point moves, and to combine power6x (mfpgpr) moves along normal
35876 (real_value_to_target): Likewise.
35877 (f32_lr): Likewise.
35878 (f32_lm): Likewise.
35879 (f32_li): Likewise.
35880 (f32_sr): Likewise.
35881 (f32_sm): Likewise.
35882 (f32_si): Likewise.
35883 (movsf): Combine binary and decimal floating point moves. Combine
35884 power6x (mfpgpr) moves with other moves by using conditional
35885 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
35886 (mov<mode> for SFmode/SDmode); Likewise.
35887 (SFmode/SDmode splitters): Likewise.
35888 (movsf_hardfloat): Likewise.
35889 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
35890 (movsf_softfloat): Likewise.
35891 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
35893 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
35894 wx and wz constraints.
35896 * config/rs6000/constraints.md (wg constraint): New constraint to
35897 return FLOAT_REGS if -mmfpgpr (power6x) was used.
35899 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
35902 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
35903 -mdebug=reg, print wg, wl, wx, and wz constraints.
35904 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
35905 Initialize the reload functions for 64-bit binary/decimal floating
35907 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
35908 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
35909 create the buffer on the stack to overcome not having a 32-bit
35911 (rs6000_emit_move): Likewise.
35912 (rs6000_secondary_memory_needed_rtx): Likewise.
35913 (rs6000_alloc_sdmode_stack_slot): Likewise.
35914 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
35915 via xxlxor, just like DFmode 0.0.
35917 * config/rs6000/dfp.md (movdd): Delete, combine with binary
35918 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
35919 with other moves by using conditional constraits (wg). Use LFIWZX
35920 and STFIWX for loading SDmode on power7.
35921 (movdd splitters): Likewise.
35922 (movdd_hardfloat32): Likewise.
35923 (movdd_softfloat32): Likewise.
35924 (movdd_hardfloat64_mfpgpr): Likewise.
35925 (movdd_hardfloat64): Likewise.
35926 (movdd_softfloat64): Likewise.
35928 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
35929 64-bit binary and decimal floating point moves.
35930 (FMOVE64X): Likewise.
35931 (movdf): Combine 64-bit binary and decimal floating point moves.
35932 Combine power6x (mfpgpr) moves with other moves by using
35933 conditional constraits (wg).
35934 (mov<mode> for DFmode/DDmode): Likewise.
35935 (DFmode/DDmode splitters): Likewise.
35936 (movdf_hardfloat32): Likewise.
35937 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
35938 (movdf_softfloat32): Likewise.
35939 (movdf_hardfloat64_mfpgpr): Likewise.
35940 (movdf_hardfloat64): Likewise.
35941 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
35942 (movdf_softfloat64): Likewise.
35943 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
35944 (reload_<mode>_load): Move to later in the file so they aren't in
35945 the middle of the floating point move insns.
35946 (reload_<mode>_store): Likewise.
35948 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
35951 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
35952 constraint if -mdebug=reg.
35953 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
35954 Enable using dd reload support if needed.
35956 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
35957 binary and decimal floating point moves in rs6000.md.
35958 (movtd_internal): Likewise.
35960 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
35961 decimal floating point moves.
35963 (movtf_internal): Likewise.
35964 (mov<mode>_internal, TDmode/TFmode): Likewise.
35965 (movtf_softfloat): Likewise.
35966 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
35968 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
35969 movdi_internal64, using wg constraint for move direct operations.
35970 (movdi_internal64): Likewise.
35972 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
35973 MODES_TIEABLE_P for selected modes. Print the numerical value of
35974 the various virtual registers. Use GPR/FPR first/last values,
35975 instead of hard coding the register numbers. Print which modes
35976 have reload functions registered.
35977 (rs6000_option_override_internal): If -mdebug=reg, trace the options
35978 settings before/after setting cpu, target and subtarget settings.
35979 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
35980 and for secondary reload failures in rs6000_secondary_reload_inner.
35981 (rs6000_secondary_reload_fail): Likewise.
35982 (rs6000_secondary_reload_inner): Likewise.
35984 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
35985 macros for first/last GPR and FPR registers.
35986 (LAST_GPR_REGNO): Likewise.
35987 (FIRST_FPR_REGNO): Likewise.
35988 (LAST_FPR_REGNO): Likewise.
35990 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
35991 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
35992 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
35993 (vcond<mode><mode>): Likewise.
35994 (vcondu<mode><mode>): Likewise.
35995 (vector_gtu<mode>): Likewise.
35996 (vector_gte<mode>): Likewise.
35997 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
35998 to prevent the compiler from converting DImode operations to TImode.
35999 (ior<mode>3): Likewise.
36000 (and<mode>3): Likewise.
36001 (one_cmpl<mode>2): Likewise.
36002 (nor<mode>3): Likewise.
36003 (andc<mode>3): Likewise.
36005 * config/rs6000/constraints.md (wt constraint): New constraint
36006 that returns VSX_REGS if TImode is allowed in VSX registers.
36008 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
36009 constant under VSX.
36011 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
36012 similar to TImode, but it is restricted to being in the GPRs.
36014 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
36015 TImode to occupy a single VSX register.
36017 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
36018 -mvsx-timode for power7/power8.
36019 (power7 cpu): Likewise.
36020 (power8 cpu): Likewise.
36022 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
36023 sure that TFmode/TDmode take up two registers if they are ever
36024 allowed in the upper VSX registers.
36025 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
36027 (rs6000_init_hard_regno_mode_ok): Likewise.
36028 (rs6000_debug_reg_global): Add debugging for PTImode and wt
36029 constraint. Print if LRA is turned on.
36030 (rs6000_option_override_internal): Give an error if -mvsx-timode
36031 and VSX is not enabled.
36032 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
36033 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
36034 to reg+offset addressing. Use PTImode when checking offset
36035 addresses for validity.
36036 (reg_offset_addressing_ok_p): Likewise.
36037 (rs6000_legitimate_offset_address_p): Likewise.
36038 (rs6000_legitimize_address): Likewise.
36039 (rs6000_legitimize_reload_address): Likewise.
36040 (rs6000_legitimate_address_p): Likewise.
36041 (rs6000_eliminate_indexed_memrefs): Likewise.
36042 (rs6000_emit_move): Likewise.
36043 (rs6000_secondary_reload): Likewise.
36044 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
36045 reloads to fpr registers to continue to use reg+offset addressing,
36046 but 64-bit reloads to altivec registers need reg+reg addressing.
36047 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
36048 it. Treat LO_SUM like a PLUS operation.
36049 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
36050 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
36051 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
36052 registers to share a register with a smaller sized type, since VSX
36053 puts scalars in the upper 64-bits.
36054 (print_operand): Add support for PTImode.
36055 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
36056 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
36057 registers, but don't have arithmetic support.
36058 (rs6000_memory_move_cost): Add test for VSX.
36059 (rs6000_opt_masks): Add -mvsx-timode.
36061 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
36064 (VSr): Use wt constraint for TImode.
36065 (VSv): Drop TImode support.
36066 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
36067 (vsx_movti_64bit): Likewise.
36068 (vsx_movti_32bit): Likewise.
36069 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
36070 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
36071 one '?' on the appropriate output constraint. Do not allow TImode
36072 logical operations on 32-bit systems.
36073 (vsx_ior<mode>3): Likewise.
36074 (vsx_xor<mode>3): Likewise.
36075 (vsx_one_cmpl<mode>2): Likewise.
36076 (vsx_nor<mode>3): Likewise.
36077 (vsx_andc<mode>3): Likewise.
36078 (vsx_concat_<mode>): Likewise.
36079 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
36081 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
36082 OPTION_MASK_VSX_TIMODE.
36083 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
36084 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
36086 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
36087 (TI2 iterator): New iterator for TImode, PTImode.
36088 (wd mode attribute): Add values for vector types.
36089 (movti_string): Replace TI move operations with operations for TImode
36090 and PTImode. Add support for TImode being allowed in VSX registers.
36091 (mov<mode>_string, TImode/PTImode): Likewise.
36092 (movti_ppc64): Likewise.
36093 (mov<mode>_ppc64, TImode/PTImode): Likewise.
36094 (TI mode splitters): Likewise.
36096 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
36099 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
36101 PR tree-optimization/56355
36102 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
36103 Also handle integers with undefined overflow.
36105 2013-03-20 Catherine Moore <clm@codesourcery.com>
36106 Maciej W. Rozycki <macro@codesourcery.com>
36107 Tom de Vries <tom@codesourcery.com>
36108 Nathan Sidwell <nathan@codesourcery.com>
36109 Iain Sandoe <iain@codesourcery.com>
36110 Nathan Froyd <froydnj@codesourcery.com>
36111 Chao-ying Fu <fu@mips.com>
36113 * doc/extend.texi: (micromips, nomicromips, nocompression):
36114 Document new function attributes.
36115 * doc/invoke.texi (minterlink-compressed, mmicromips,
36116 m14k, m14ke, m14kec): Document new options.
36117 (minterlink-mips16): Update documentation.
36118 * doc/md.texi (ZC, ZD): Document new constraints.
36119 * configure.ac (gcc_cv_as_micromips): Check if linker
36120 supports the .set micromips directive.
36121 * configure: Regenerate.
36122 * config.in: Regenerate.
36123 * config/mips/mips-tables.opt: Regenerate.
36124 * config/mips/micromips.md: New file.
36125 * constraints.md (ZC, ZD): New constraints.
36126 * config/mips/predicates.md (movep_src_register): New predicate.
36127 (movep_src_operand): New predicate.
36128 (non_volatile_mem_operand): New predicate.
36129 * config/mips/mips.md (multimem): New type.
36130 (length): Differentiate between 17-bit and 18-bit branch offsets.
36131 (MOVEP1, MOVEP2): New mode iterator.
36132 (mov_<load>l): Use ZC constraint.
36133 (mov_<load>r): Likewise.
36134 (mov_<store>l): Likewise.
36135 (mov_<store>r): Likewise.
36136 (*branch_equality<mode>_inverted): Add microMIPS support.
36137 (*branch_equality<mode>): Likewise.
36138 (*jump_absolute): Likewise.
36139 (indirect_jump_<mode>): Likewise.
36140 (tablejump_<mode>): Likewise.
36141 (<optab>_internal): Likewise.
36142 (sibcall_internal): Likewise.
36143 (sibcall_value_internal): Likewise.
36144 (prefetch): Use constraint ZD.
36145 * config/mips/mips.opt (minterlink-compressed): New option.
36146 (minterlink-mips16): Now an alias for minterlink-compressed.
36147 (mmicromips): New option.
36148 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
36149 (compare_and_swap_12): Likewise.
36150 (sync_add<mode>): Likewise.
36151 (sync_<optab>_12): Likewise.
36152 (sync_old_<optab>_12): Likewise.
36153 (sync_new_<optab>_12): Likewise.
36154 (sync_nand_12): Likewise.
36155 (sync_old_nand_12): Likewise.
36156 (sync_new_nand_12): Likewise.
36157 (sync_sub<mode>): Likewise.
36158 (sync_old_add<mode>): Likewise.
36159 (sync_old_sub<mode>): Likewise.
36160 (sync_new_add<mode>): Likewise.
36161 (sync_new_sub<mode>): Likewise.
36162 (sync_<optab><mode>): Likewise.
36163 (sync_old_<optab><mode>): Likewise.
36164 (sync_new_<optab><mode>): Likewise.
36165 (sync_nand<mode>): Likewise.
36166 (sync_old_nand<mode>): Likewise.
36167 (sync_new_nand<mode>): Likewise.
36168 (sync_lock_test_and_set<mode>): Likewise.
36169 (test_and_set_12): Likewise.
36170 (atomic_compare_and_swap<mode>): Likewise.
36171 (atomic_exchange<mode>_llsc): Likewise.
36172 (atomic_fetch_add<mode>_llsc): Likewise.
36173 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
36174 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
36175 (umips_save_restore_pattern_p): Likewise.
36176 (umips_load_store_pair_p): Likewise.
36177 (umips_output_load_store_pair): Likewise.
36178 (umips_movep_target_p): Likewise.
36179 (umips_12bit_offset_address_p): Likewise.
36180 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
36181 (mips_base_mips16): Rename this...
36182 (mips_base_compression_flags): ...to this. Update all uses.
36183 (mips_attribute_table): Add micromips, nomicromips and nocompression.
36184 (mips_mips16_decl_p): Delete.
36185 (mips_nomips16_decl_p): Delete.
36186 (mips_get_compress_on_flags): New function.
36187 (mips_get_compress_off_flags): New function.
36188 (mips_get_compress_mode): New function.
36189 (mips_get_compress_on_name): New function.
36190 (mips_get_compress_off_name): New function.
36191 (mips_insert_attributes): Support multiple compression types.
36192 (mips_merge_decl_attributes): Likewise.
36193 (umips_12bit_offset_address_p): New function.
36194 (mips_start_function_definition): Emit .set micromips directive.
36195 (mips_call_may_need_jalx_p): New function.
36196 (mips_function_ok_for_sibcall): Add microMIPS support.
36197 (mips_print_operand_punctuation): Support short delay slots and
36199 (umips_swm_mask, umips_swm_encoding): New.
36200 (umips_build_save_restore): New function.
36201 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
36202 (was_mips16_p): Remove.
36203 (old_compression_mode): New.
36204 (mips_set_compression_mode): New function.
36205 (mips_set_current_function): Add microMIPS support.
36206 (mips_option_override): Likewise.
36207 (umips_save_restore_pattern_p): New function.
36208 (umips_output_save_restore): New function.
36209 (umips_load_store_pair_p_1): New function.
36210 (umips_load_store_pair_p): New function.
36211 (umips_output_load_store_pair_1): New function.
36212 (umips_output_load_store_pair): New function.
36213 (umips_movep_target_p) New function.
36214 (mips_prepare_pch_save): Add microMIPS support.
36215 * config/mips/mips.h (TARGET_COMPRESSION): New.
36216 (TARGET_CPU_CPP_BUILTINS): Update macro
36217 to use new compression flags and to support microMIPS.
36218 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
36219 (MIPS_ARCH_FLOAT_SPEC): Likewise.
36220 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
36221 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
36222 (ASM_SPEC): Support mmicromips and mno-micromips.
36223 (M16STORE_REG_P): New macro.
36224 (MIPS_CALL): Support TARGET_MICROMIPS.
36225 (MICROMIPS_J): New macro.
36226 (mips_base_mips16): Rename this...
36227 (mips_base_compression_flags): ...to this.
36228 (UMIPS_12BIT_OFFSET_P): New macro.
36229 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
36230 (MULTILIB_DIRNAMES): Likewise.
36231 2013-03-20 Richard Biener <rguenther@suse.de>
36233 PR tree-optimization/56661
36234 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
36235 the result does not have to be distinct.
36237 2013-03-20 Richard Biener <rguenther@suse.de>
36239 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
36242 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
36243 Steven Bosscher <steven@gcc.gnu.org>
36245 PR rtl-optimization/56605
36246 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
36248 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
36251 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
36252 that require movd instead of movq.
36254 2013-03-20 Richard Biener <rguenther@suse.de>
36256 * tree-ssa-structalias.c (struct variable_info): Add pointer
36257 to the first field of an aggregate with sub-vars. Make
36258 this and the pointer to the next subfield its ID.
36259 (vi_next): New function.
36260 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
36261 storedanything_id, integer_id): Increment by one.
36262 (new_var_info, get_call_vi, lookup_call_clobber_vi,
36263 get_call_clobber_vi): Adjust.
36264 (solution_set_expand): Simplify and speedup.
36265 (solution_set_add): Inline into ...
36266 (set_union_with_increment): ... this. Adjust accordingly.
36267 (do_sd_constraint): Likewise.
36268 (do_ds_constraint): Likewise.
36269 (do_complex_constraint): Simplify.
36270 (build_pred_graph): Adjust.
36271 (solve_graph): Likewise. Simplify and speedup.
36272 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
36273 get_constraint_for_component_ref, get_constraint_for_1,
36274 first_vi_for_offset, first_or_preceding_vi_for_offset,
36275 create_function_info_for, create_variable_info_for_1,
36276 create_variable_info_for, intra_create_variable_infos): Adjust.
36277 (init_base_vars): Push NULL for ID zero.
36278 (compute_points_to_sets): Adjust.
36280 2013-03-20 Richard Biener <rguenther@suse.de>
36282 * cfgloop.c (verify_loop_structure): Streamline and avoid
36283 ICEing on corrupt loop tree.
36284 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
36287 2013-03-20 Richard Biener <rguenther@suse.de>
36289 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
36290 check whether an SSA update is needed.
36292 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
36294 * config/mips/constraints.md (T): Rename to...
36298 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
36299 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
36301 2013-03-19 Ian Bolton <ian.bolton@arm.com>
36303 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
36304 (*subsi3_carryin_uxtw): Likewise.
36306 2013-03-19 Ian Bolton <ian.bolton@arm.com>
36308 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
36309 (*rorsi3_insn_uxtw): Likewise.
36311 2013-03-19 Ian Bolton <ian.bolton@arm.com>
36313 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
36314 (*extrsi5_insn_uxtw): Likewise.
36316 2013-03-19 Richard Biener <rguenther@suse.de>
36318 PR tree-optimization/56273
36319 * passes.c (init_optimization_passes): Move second VRP after DOM.
36321 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
36323 * config/i386/i386.md (*movti_internal): Merge from
36324 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
36325 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
36326 nox64 isa attributes.
36328 2013-03-18 Richard Biener <rguenther@suse.de>
36330 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
36332 (merge_node_constraints): Likewise.
36333 (build_succ_graph): Likewise.
36334 (valid_graph_edge): Inline into single caller.
36335 (unify_nodes): Likewise. Use bitmap_set_bit return value
36337 (scc_visit): Fix formatting and variable use.
36338 (do_sd_constraint): Use gcc_checking_assert.
36339 (do_ds_constraint): Likewise.
36340 (do_complex_constraint): Likewise.
36341 (condense_visit): Likewise. Cleanup.
36342 (dump_pred_graph): New function.
36343 (perform_var_substitution): Dump the pred-graph before
36344 variable substitution.
36345 (find_equivalent_node): Use gcc_checking_assert.
36346 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
36348 2013-03-18 Richard Biener <rguenther@suse.de>
36350 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
36351 Remove cond_expr_stmt_list argument and do not gimplify the
36353 (vect_loop_versioning): Adjust.
36354 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
36355 Cleanup to use less temporaries.
36356 (vect_create_data_ref_ptr): Cleanup.
36358 2013-03-18 Jakub Jelinek <jakub@redhat.com>
36360 PR tree-optimization/56635
36361 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
36362 require types_compatible_p types.
36364 2013-03-18 Nick Clifton <nickc@redhat.com>
36366 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
36367 spurious backslash.
36369 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
36370 Add missing line to comment describing function.
36372 2013-03-18 Richard Biener <rguenther@suse.de>
36374 PR tree-optimization/56210
36375 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
36376 Handle string / character search functions.
36377 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
36379 2013-03-18 Richard Biener <rguenther@suse.de>
36381 PR middle-end/56483
36382 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
36383 and implement properly.
36384 * gimple.h (gimple_cond_single_var_p): Remove.
36386 2013-03-18 Richard Biener <rguenther@suse.de>
36388 * tree-data-ref.h (find_data_references_in_loop): Declare.
36389 * tree-data-ref.c (get_references_in_stmt): Use a stack
36390 vector pre-allocated in the callers.
36391 (find_data_references_in_stmt): Adjust.
36392 (graphite_find_data_references_in_stmt): Likewise.
36393 (create_rdg_vertices): Likewise.
36394 (find_data_references_in_loop): Export.
36395 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
36396 Compute dependences here...
36397 (vect_analyze_data_refs): ...not here. When we encounter
36398 a non-vectorizable data reference in basic-block vectorization
36399 truncate the data reference vector. Do not bother to
36400 fixup data-dependence information for gather loads.
36401 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
36402 of data references, as reported.
36404 2013-03-18 Richard Biener <rguenther@suse.de>
36406 PR tree-optimization/3713
36407 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
36408 has_constants and expr.
36409 (stmt_has_constants): Properly valueize SSA names when deciding
36410 whether the stmt has constants.
36412 2013-03-18 Richard Biener <rguenther@suse.de>
36414 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
36415 whole function when there is nothing to do.
36416 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
36417 * tree-vectorizer.c (vectorize_loops): Update virtual and
36418 loop-closed SSA once.
36419 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
36421 2013-03-18 Richard Biener <rguenther@suse.de>
36423 PR middle-end/56113
36424 * domwalk.c (bb_postorder): New global static.
36425 (cmp_bb_postorder): New function.
36426 (walk_dominator_tree): Replace scheme imposing an order for
36427 visiting dominator sons by one sorting them at the time they
36428 are pushed on the stack.
36430 2013-03-18 Richard Biener <rguenther@suse.de>
36432 PR tree-optimization/39326
36433 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
36434 (struct mem_ref): Replace mem member with ao_ref typed member.
36435 (MEM_ANALYZABLE): Adjust.
36436 (memref_eq): Likewise.
36437 (mem_ref_alloc): Likewise.
36438 (gather_mem_refs_stmt): Likewise.
36439 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
36440 (execute_sm_if_changed_flag_set): Adjust.
36441 (execute_sm): Likewise.
36442 (ref_always_accessed_p): Likewise.
36443 (refs_independent_p): Likewise.
36444 (can_sm_ref_p): Likewise.
36446 2013-03-18 Jakub Jelinek <jakub@redhat.com>
36449 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
36450 return 1 even for !unsignedp.
36452 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
36454 * config/i386/i386.md (isa): Add x64 and nox64.
36455 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
36456 (*pushtf): Enable *roF alternative for x64 isa only.
36457 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
36458 mode attribute of integer alternatives to DImode for TARGET_64BIT.
36459 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
36460 (*movtf_internal): Merge from *movtf_internal_rex64 and
36461 *movtf_internal_sse. Use x64 and nox64 isa attributes.
36462 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
36463 nox64 isa attributes.
36464 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
36465 nox64 isa attributes.
36466 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
36468 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
36470 * config/alpha/alpha.c (TARGET_LRA_P): New define.
36472 2013-03-17 Jakub Jelinek <jakub@redhat.com>
36475 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
36476 class names. Remove trailing comma after "ALL_REGS".
36478 2013-03-16 Jan Hubicka <jh@suse.cz>
36480 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
36481 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
36482 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
36483 of cgraph_get_create_node.
36484 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
36486 2013-03-16 Jason Merrill <jason@redhat.com>
36489 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
36490 with DW_AT_default_value.
36492 2013-03-16 Jakub Jelinek <jakub@redhat.com>
36494 * BASE-VER: Set to 4.9.0.
36496 2013-03-14 Andi Kleen <ak@linux.intel.com>
36499 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
36500 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
36501 Document _x* TSX intrinsics.
36503 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
36504 David Holsgrove <david.holsgrove@xilinx.com>
36506 * configure.ac: Add MicroBlaze TLS support detection.
36507 * configure: Regenerate.
36508 * config/microblaze/microblaze-protos.h
36509 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
36510 symbol_mentioned_p, label_mentioned_p): Add prototypes.
36511 * config/microblaze/microblaze.c (microblaze_address_type): Add
36512 ADDRESS_TLS and tls_reloc address types.
36513 (microblaze_address_info): Add tls_reloc.
36514 (TARGET_HAVE_TLS): Define.
36515 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
36516 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
36517 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
36518 load_tls_operand, microblaze_call_tls_get_addr,
36519 microblaze_legitimize_tls_address): New functions.
36520 (microblaze_classify_unspec): Handle UNSPEC_TLS.
36521 (get_base_reg): Use microblaze_tls_symbol_p.
36522 (microblaze_classify_address): Handle TLS.
36523 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
36524 label_mentioned_p and microblaze_tls_referenced_p.
36525 (microblaze_legitimize_address): Handle TLS.
36526 (microblaze_address_insns): Handle ADDRESS_TLS.
36527 (pic_address_needs_scratch): Handle TLS.
36528 (print_operand_address): Handle TLS.
36529 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
36530 (microblaze_expand_move): Handle TLS.
36531 (microblaze_legitimate_constant_p): Check
36532 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
36533 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
36534 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
36535 (PIC_OFFSET_TABLE_REGNUM): Set.
36536 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
36537 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
36538 (addsi3, movsi_internal2, movdf_internal): Update constraints
36539 * config/microblaze/predicates.md (arith_plus_operand): Define
36540 (move_operand): Redefine as move_src_operand,
36541 check microblaze_tls_referenced_p.
36543 2013-03-14 Ian Bolton <ian.bolton@arm.com>
36545 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
36546 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
36548 2013-03-14 Ian Bolton <ian.bolton@arm.com>
36550 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
36553 2013-03-14 Jakub Jelinek <jakub@redhat.com>
36555 PR tree-optimization/53265
36556 * common.opt (Waggressive-loop-optimizations): New option.
36557 * tree-ssa-loop-niter.c: Include tree-pass.h.
36558 (do_warn_aggressive_loop_optimizations): New function.
36559 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
36560 if number_of_latch_executions returned constant.
36561 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
36562 early. If number_of_latch_executions returned constant, set
36563 nb_iterations_upper_bound back to it.
36564 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
36566 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
36567 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
36569 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
36570 (MULTILIB_OSDIRNAMES): Set.
36571 * genmultilib: If defaultosdirname doesn't start with :: , set
36572 defaultosdirname2 instead, clear it and emit two . multilib_raw
36573 entries instead of just one.
36575 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
36577 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
36578 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
36579 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
36580 (SUBTARGET_OVERRIDE_OPTIONS): New.
36582 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
36585 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
36586 (musermode): Convert to Var(TARGET_USERMODE).
36587 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
36588 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
36589 * config/sh/sh.c (sh_option_override): Use
36590 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
36591 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
36593 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
36595 (udivsi3_i4_single, divsi3_i4_single): Use
36596 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
36598 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
36600 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
36603 2013-03-13 Richard Biener <rguenther@suse.de>
36605 PR tree-optimization/56608
36606 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
36607 calls when vectorizing basic-blocks.
36609 2013-03-13 Jakub Jelinek <jakub@redhat.com>
36612 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
36615 2013-03-12 Jakub Jelinek <jakub@redhat.com>
36617 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
36619 2013-03-11 Jan Hubicka <jh@suse.cz>
36622 * lto-streamer-out.c (output_symbol_p): Skip references from
36623 constructors of external variables.
36625 2013-03-11 Jan Hubicka <jh@suse.cz>
36627 PR middle-end/56571
36628 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
36630 * emit-rtl.c (verify_rtx_sharing): Likewise.
36631 (copy_insn_1): Likewise.
36632 * rtl.c (copy_rtx): Likewise.
36634 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
36637 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
36638 output_operand_lossage message.
36640 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
36643 * arm.c (shift_op): Validate RTL pattern on the fly.
36644 (arm_print_operand, case 'S'): Don't use shift_operator to validate
36647 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36650 * config/pa/pa.md (call_value): Check for calls to powf and direct to
36651 new call patterns that clobber %fr12.
36652 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
36653 split and postreload patterns.
36654 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
36655 registers %fr12 and %fr12R as call used.
36657 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
36659 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
36660 (canon_address, record_store, replace_read, check_mem_read_rtx,
36661 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
36662 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
36663 rest_of_handle_dse): Likewise.
36665 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
36667 PR middle-end/56524
36668 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
36670 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
36671 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
36672 (save_optabs_if_changed): Replace with...
36673 (init_tree_optimization_optabs): ...this.
36674 * optabs.c (save_optabs_if_changed): Rename to...
36675 (init_tree_optimization_optabs): ...this. Take the optimization node
36676 as argument. Do nothing if the base optabs are already correct.
36677 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
36678 to recompute optabs.
36679 * function.h (function): Remove optabs field.
36680 * function.c (invoke_set_current_function_hook): Call
36681 init_tree_optimization_optabs. Use the result to initialize
36684 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
36686 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
36687 if GTMA_HAS_NO_INSTRUMENTATION.
36688 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
36689 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
36690 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
36691 * gimple-pretty-print.c (dump_gimple_transaction): Handle
36692 GTMA_HAS_NO_INSTRUMENTATION.
36694 2013-03-08 Jakub Jelinek <jakub@redhat.com>
36696 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
36699 2013-03-08 Marek Polacek <polacek@redhat.com>
36700 Jakub Jelinek <jakub@redhat.com>
36702 PR tree-optimization/56478
36703 * predict.c (is_comparison_with_loop_invariant_p): Change the
36704 type of loop_step to tree.
36705 (predict_loops): Adjust.
36706 (predict_iv_comparison): Perform the computations on double_ints.
36708 2013-03-08 Richard Biener <rguenther@suse.de>
36710 PR tree-optimization/56570
36711 * tree-cfg.c (verify_expr_location_1): Verify locations for
36713 * tree-sra.c (create_access_replacement): Strip locations
36714 from DECL_DEBUG_EXPRs.
36716 2013-03-08 Richard Biener <rguenther@suse.de>
36718 * tree-inline.c (expand_call_inline): Do not associate
36719 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
36720 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
36722 2013-03-08 Richard Biener <rguenther@suse.de>
36724 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
36725 or block changes with -Og. Fix for location / block encoding
36726 changes and PHI arguments with locations.
36728 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
36730 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
36732 (struct output_info): Likewise.
36733 (register_overhead): Remove bad gcc_assert.
36734 (bitmap_find_bit): If there is only a single bitmap element, do not
36735 count a miss as a search.
36736 (print_statistics): Update for counter type changes.
36737 (dump_bitmap_statistics): Likewise. Print headers such that they
36738 are properly lined up with the printed counters.
36740 2013-03-07 Jakub Jelinek <jakub@redhat.com>
36742 PR tree-optimization/56559
36743 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
36744 check that it has only a single use.
36746 2013-03-07 Richard Biener <rguenther@suse.de>
36748 * doc/invoke.texi (fwhole-program): Discourage use in combination
36751 2013-03-06 Jakub Jelinek <jakub@redhat.com>
36753 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
36755 PR tree-optimization/56539
36756 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
36757 instead of GSI_CONTINUE_LINKING as last argument to
36758 force_gimple_operand_gsi. Adjust function comment.
36760 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
36763 PR middle-end/56548
36764 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
36765 promoted mode, convert the result back to the original mode.
36767 2013-03-06 Richard Biener <rguenther@suse.de>
36769 PR middle-end/56294
36770 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
36771 (insert_updated_phi_nodes_compare_uids): New function.
36772 (update_ssa): Sort symbols_to_rename after UID before
36773 traversing it to insert PHI nodes.
36775 2013-03-06 Richard Biener <rguenther@suse.de>
36777 PR middle-end/50494
36778 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
36779 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
36782 2013-02-13 Richard Biener <rguenther@suse.de>
36785 * varasm.c (output_constant_def_1): Get the decl representing
36786 the constant as argument.
36787 (output_constant_def): Wrap output_constant_def_1.
36788 (make_decl_rtl): Use output_constant_def_1 with the decl
36789 representing the constant.
36790 (build_constant_desc): Optionally re-use a decl already
36791 representing the constant.
36792 (tree_output_constant_def): Adjust.
36794 2013-03-06 Joey Ye <joey.ye@arm.com>
36797 * gcc.c (convert_white_space): New function.
36798 (main): Handles white space in function name.
36800 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
36803 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
36804 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
36805 to SH_DIV_CALL_TABLE for TARGET_SH2.
36806 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
36808 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
36809 call-table options.
36811 2013-03-05 Sterling Augustine <saugustine@google.com>
36812 Cary Coutant <ccoutant@google.com>
36815 * dwarf2out.c (resolve_addr): Don't call
36816 remove_loc_list_addr_table_entries a second time for the same
36819 2013-03-05 Jakub Jelinek <jakub@redhat.com>
36822 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
36823 (avoid_complex_debug_insns): New function.
36824 (expand_debug_locations): Call it.
36826 PR rtl-optimization/56484
36827 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
36828 lifetimes of hard registers on small register class machines.
36830 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
36832 * config/microblaze/microblaze-protos.h: Rename
36833 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
36834 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
36836 (microblaze_fast_interrupt_function_p): New function.
36837 (microblaze_is_interrupt_handler): Rename to
36838 microblaze_is_interrupt_variant and add fast_interrupt check.
36839 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
36840 (save_restore_insns): Likewise.
36841 (compute_frame_size): Likewise.
36842 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
36843 (microblaze_globalize_label): Likewise.
36844 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
36845 * config/microblaze/microblaze.md: Use wrapper
36846 microblaze_is_interrupt_variant.
36848 2013-03-05 Kai Tietz <ktietz@redhat.com>
36850 * sdbout.c (sdbout_one_type): Switch to current function's section
36851 supporting cold/hot.
36853 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
36855 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
36858 2013-03-05 Jakub Jelinek <jakub@redhat.com>
36860 PR middle-end/56461
36861 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
36862 if VALGRIND_GET_VBITS is defined, temporarily make object
36863 memory all defined, and restore previous valgrind addressability
36864 and definability afterwards. Free this_object at the end.
36866 PR middle-end/56461
36867 * lra.c (lra): Call lra_clear_live_ranges if live_p,
36868 right before calling lra_create_live_ranges, also call it
36869 when clearing live_p. Only call lra_clear_live_ranges
36870 at the end if live_p.
36872 PR middle-end/56461
36873 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
36875 2013-03-05 Richard Biener <rguenther@suse.de>
36877 PR tree-optimization/56521
36878 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
36881 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
36884 * except.h (remove_unreachable_eh_regions): New prototype.
36885 * except.c (remove_eh_handler_splicer): New function, split out
36886 of remove_eh_handler.
36887 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
36888 warning about running it on many EH regions one at a time.
36889 (remove_unreachable_eh_regions_worker): New function, walk the
36890 EH tree in depth-first order and remove non-marked regions.
36891 (remove_unreachable_eh_regions): New function.
36892 * tree-eh.c (mark_reachable_handlers): New function, split out
36893 from remove_unreachable_handlers.
36894 (remove_unreachable_handlers): Use mark_reachable_handlers and
36895 remove_unreachable_eh_regions.
36896 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
36897 and remove_unreachable_eh_regions.
36899 2013-03-05 Richard Biener <rguenther@suse.de>
36901 PR middle-end/56525
36902 * loop-init.c (fix_loop_structure): Remove loops in two stages,
36903 not freeing them until the end.
36905 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36907 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
36909 2013-03-05 Richard Biener <rguenther@suse.de>
36911 PR tree-optimization/56270
36912 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
36913 of loads after scheduling an SLP instance.
36915 2013-03-05 Jakub Jelinek <jakub@redhat.com>
36917 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
36919 (check_gcc_parallelize): Run guality.exp as a separate job from
36920 vect.exp with unsorted.exp and $(dg_target_exps) separately from
36921 struct-layout-1.exp with stackalign.exp.
36923 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
36925 PR middle-end/56461
36926 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
36927 load_index sbitmap even if some bit in it isn't set.
36929 PR middle-end/56461
36930 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
36931 (discover_iteration_bound_by_body_walk): Change queues to
36932 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
36933 spelling in comment. Call safe_push on queues[bound_index] directly.
36934 Release queues[queue_index] in every iteration unconditionally.
36935 Release bounds vector.
36937 PR middle-end/56461
36938 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
36939 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
36940 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
36943 2013-03-05 Richard Biener <rguenther@suse.de>
36946 * tree-inline.c (remap_blocks_to_null): New function.
36947 (expand_call_inline): When expanding a call stmt without
36948 an associated block inline remap all callee blocks to NULL.
36950 2013-03-05 Jakub Jelinek <jakub@redhat.com>
36952 PR rtl-optimization/56494
36953 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
36954 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
36955 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
36957 PR middle-end/56461
36958 * sel-sched-ir.c (free_sched_pools): Release
36959 succs_info_pool.stack[succs_info_pool.max_top] vectors too
36960 if succs_info_pool.max_top isn't -1.
36963 * opts.c (opts_obstack, opts_concat): Moved to...
36964 * opts-common.c (opts_obstack, opts_concat): ... here.
36966 2013-03-04 Jakub Jelinek <jakub@redhat.com>
36968 PR middle-end/56461
36969 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
36971 2013-03-04 Martin Jambor <mjambor@suse.cz>
36973 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
36974 all appropriate places.
36976 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
36978 PR tree-optimization/56424
36979 * ipa-split.c (split_function): Do not set the RSO flag if result is
36980 not by reference and its type is a register type.
36982 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
36984 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
36985 (microblaze_legitimate_pic_operand): Likewise
36986 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
36987 new function microblaze_legitimate_pic_operand
36988 * config/microblaze/microblaze-protos.h
36989 (microblaze_legitimate_pic_operand): Declare.
36991 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36993 * config/microblaze/predicates.md (call_insn_simple_operand):
36994 New predicate for supported rtx code types.
36995 * config/microblaze/microblaze.md (call_internal1): Use
36996 call_insn_simple_operand predicate.
36998 2013-03-04 Jakub Jelinek <jakub@redhat.com>
37000 PR middle-end/56461
37001 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
37002 partitions.ordered_remove.
37004 PR middle-end/56461
37005 * tree-vect-stmts.c (vectorizable_conversion): Don't call
37006 vec_oprnds0.create (1) for modifier == NONE.
37008 PR middle-end/56461
37009 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
37010 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
37011 vec_oprnds1 right before pushing anything to it for
37014 PR middle-end/56461
37015 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
37016 set nbbs to 0 instead of having separate code path.
37017 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
37018 instead of false as last argument if returning NULL.
37020 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
37022 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
37023 the attribute is now called "target" instead of "option".
37024 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
37025 * doc/tm.texi.in (Target Attributes): Likewise document the correct
37026 attribute/pragma name for TARGET_OPTION_VALID_P and
37027 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
37028 * doc/tm.texi: Regenerated.
37030 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
37032 * config/microblaze/microblaze.c:
37033 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
37034 * config/microblaze/microblaze.h: Add -mxl-reorder to
37036 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
37037 instructions emitted if TARGET_REORDER.
37038 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
37039 or 0 for -m/-mno case, but initialises as 2 to detect default use case
37042 2013-03-01 Xinliang David Li <davidxl@google.com>
37044 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
37047 2013-03-01 Jakub Jelinek <jakub@redhat.com>
37049 PR middle-end/56461
37050 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
37051 vector even when returning true. Fix up function comment formatting.
37053 PR middle-end/56461
37054 * ira-build.c (ira_loop_nodes_count): New variable.
37055 (create_loop_tree_nodes): Initialize it.
37056 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
37058 PR middle-end/56461
37059 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
37060 method on dr_chain and result_chain.
37061 * tree-vect-stmts.c (vectorizable_store): Only call
37062 result_chain.create if j == 0.
37064 PR middle-end/56461
37065 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
37066 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
37067 before overwriting it.
37069 2013-03-01 Tobias Burnus <burnus@net-b.de>
37071 * doc/extended.texi (C Extensions): Change order in @menu
37073 (Other MIPS Built-in Functions): Move last MIPS entry before
37074 "picoChip Built-in Functions".
37075 (SH Built-in Functions): Move after RX Built-in Functions.
37076 * doc/gcc.texi (Introduction): Change order in @menu
37078 * doc/md.texi (Constraints): Ditto.
37079 * gty.texi (Type Information): Ditto.
37080 (User-provided marking routines for template types): Make
37082 * doc/invoke.texi (AArch64 Options): Move before
37083 "Adapteva Epiphany Options".
37085 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
37086 Jakub Jelinek <jakub@redhat.com>
37089 * asan.c (gate_asan): Lookup no_sanitize_address instead of
37090 no_address_safety_analysis attribute.
37091 * doc/extend.texi (no_address_safety_attribute): Rename to
37092 no_sanitize_address attribute, mention no_address_safety_analysis
37093 attribute as deprecated alias.
37095 2013-02-28 Jakub Jelinek <jakub@redhat.com>
37097 PR middle-end/56461
37098 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
37099 type to vec<vec<tree> > *.
37100 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
37101 to be vec<tree> instead of vec<tree> *, set vec_defs
37102 to vNULL and call vec_defs.create (number_of_vects), adjust other
37104 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
37105 vectorizable_condition): Adjust vect_get_slp_defs callers.
37107 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
37109 * config/aarch64/aarch64.c
37110 (aarch64_float_const_representable): Remove unused variable.
37112 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
37114 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
37116 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
37118 * config/aarch64/aarch64-builtins.c
37119 (aarch64_init_simd_builtins): Make static.
37121 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
37123 * config/aarch64/aarch64.c
37124 (aarch64_simd_make_constant): Make static.
37126 2013-02-28 Martin Jambor <mjambor@suse.cz>
37128 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
37129 with no initialization to the RHS of debug statements.
37131 2013-02-28 Martin Jambor <mjambor@suse.cz>
37133 PR tree-optimization/56294
37134 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
37136 (get_access_replacement): Do not call create_access_replacement.
37137 Assert a replacement exists.
37138 (get_repl_default_def_ssa_name): Create the replacement declaration
37141 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37143 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
37144 final_end_function.
37146 2013-02-28 Marek Polacek <polacek@redhat.com>
37148 PR rtl-optimization/56466
37149 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
37150 if we're changing a loop.
37151 (peel_loops_completely): Likewise.
37153 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
37156 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
37158 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
37161 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
37162 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
37163 INTX_FTYPE_FX, FX_FTYPE_INTX.
37164 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
37166 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
37168 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
37169 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
37170 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
37171 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
37172 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
37173 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
37174 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
37175 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
37176 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
37177 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
37178 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
37179 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
37180 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
37181 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
37182 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
37183 (avrxmega6): Increase max flash segments from 5 to 6.
37184 * config/avr/t-multilib: Regenerate.
37185 * config/avr/avr-tables.opt: Regenerate.
37186 * doc/avr-mmcu.texi: Regenerate.
37188 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
37190 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
37191 (avr_device_to_arch): Rename to avr_device_to_ld.
37192 (avr_device_to_as): New prototype.
37193 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
37194 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
37195 * config/avr/driver-avr.c (avr_device_to_as): New.
37196 (avr_device_to_arch): Rename to avr_device_to_ld.
37198 2013-02-27 Jakub Jelinek <jakub@redhat.com>
37200 PR middle-end/56461
37201 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
37202 method on dr_chain and result_chain.
37204 PR middle-end/56461
37205 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
37206 pointer_set_destroy on not_executed_last_iteration.
37208 PR middle-end/56461
37209 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
37211 PR middle-end/56461
37212 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
37213 FOR_EACH_DEFINED_FUNCTION when freeing state.
37215 PR middle-end/56461
37216 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
37218 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
37221 PR middle-end/56461
37222 * ipa-cp.c (decide_whether_version_node): Call vec_free on
37223 known_aggs[i].items and release known_aggs vector.
37225 PR middle-end/56461
37226 * ipa-reference.c (propagate): Free node_info even for alias nodes.
37228 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37230 * config/microblaze/microblaze.c (microblaze_emit_compare):
37231 Use xor for EQ/NE comparisions.
37232 * config/microblaze/microblaze.md (cstoresf4): Add constraints
37233 (cbranchsf4): Adjust operator to comparison_operator.
37235 2013-02-27 Jakub Jelinek <jakub@redhat.com>
37237 PR middle-end/56461
37238 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
37240 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
37241 vec_safe_push, always update *slot.
37242 (redirect_edge_var_map_clear): Use vec_free.
37243 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
37244 (free_var_map_entry): Use vec_free.
37245 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
37246 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
37248 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
37250 PR middle-end/45472
37251 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
37252 when the may_trap_p bit of the exprs being merged differs.
37253 Reorder tests for speculativeness in the logical and operator.
37255 2013-02-27 Jakub Jelinek <jakub@redhat.com>
37257 * incpath.c (add_standard_paths): Use reconcat instead of concat
37258 where appropriate and avoid leaking memory.
37260 * opts.h: Include obstack.h.
37261 (opts_concat): New prototype.
37262 (opts_obstack): New declaration.
37263 * opts.c (opts_concat): New function.
37264 (opts_obstack): New variable.
37265 (init_options_struct): Call gcc_init_obstack on opts_obstack.
37266 (finish_options): Use opts_concat instead of concat
37267 and XOBNEWVEC instead of XNEWVEC.
37268 * opts-common.c (generate_canonical_option, decode_cmdline_option,
37269 generate_option): Likewise.
37270 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
37271 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
37274 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
37275 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
37277 2013-02-26 Jakub Jelinek <jakub@redhat.com>
37279 PR middle-end/56461
37280 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
37282 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
37284 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
37285 (arm_block_move_unaligned_straight): Likewise.
37286 (arm_adjust_block_mem): Likewise.
37288 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
37291 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
37292 temp, cond and label.
37293 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
37296 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
37297 * config/c6x/c6x.h (dbx_register_map): Update declaration.
37300 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
37301 of prologue/epilogue functions.
37304 * config/tilegx/tilegx.c (tilegx_expand_prologue):
37305 Remove unused variable cfa_offset.
37306 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
37309 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
37310 type promotion to unsigned.
37313 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
37314 for HOST_WIDE_INT of 32 bit / same size as int.
37315 (arm_block_move_unaligned_straight): Likewise.
37316 (arm_adjust_block_mem): Likewise.
37319 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
37322 2013-02-26 Marek Polacek <polacek@redhat.com>
37324 PR tree-optimization/56426
37325 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
37327 2013-02-26 Richard Biener <rguenther@suse.de>
37330 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
37331 unused variable loops.
37333 2013-02-26 Jakub Jelinek <jakub@redhat.com>
37335 PR tree-optimization/56448
37336 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
37337 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
37338 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
37339 later operands of the references, or even first operand for
37340 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
37342 PR tree-optimization/56443
37343 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
37344 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
37345 to type_for_mode langhook.
37347 2013-02-25 Matt Turner <mattst88@gmail.com>
37349 * doc/invoke.texi: Document r4700.
37351 2013-02-25 Richard Biener <rguenther@suse.de>
37353 PR tree-optimization/56175
37354 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
37356 (simplify_bitwise_binary): ... here. Also guard the conversion
37357 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
37359 2013-02-25 Catherine Moore <clm@codesourcery.com>
37362 2013-02-24 Catherine Moore <clm@codesourcery.com>
37363 Maciej W. Rozycki <macro@codesourcery.com>
37364 Tom de Vries <tom@codesourcery.com>
37365 Nathan Sidwell <nathan@codesourcery.com>
37366 Iain Sandoe <iain@codesourcery.com>
37367 Nathan Froyd <froydnj@codesourcery.com>
37368 Chao-ying Fu <fu@mips.com>
37370 * doc/extend.texi: (micromips, nomicromips, nocompression):
37371 Document new function attributes.
37372 * doc/invoke.texi (minterlink-compressed, mmicromips,
37373 m14k, m14ke, m14kec): Document new options.
37374 (minterlink-mips16): Update documentation.
37375 * doc/md.texi (ZC, ZD): Document new constraints.
37376 * configure.ac (gcc_cv_as_micromips): Check if linker
37377 supports the .set micromips directive.
37378 * configure: Regenerate.
37379 * config.in: Regenerate.
37380 * config/mips/mips-tables.opt: Regenerate.
37381 * config/mips/micromips.md: New file.
37382 * constraints.md (ZC, AD): New constraints.
37383 * config/mips/predicates.md (movep_src_register): New predicate.
37384 (movep_src_operand): New predicate.
37385 (non_volatile_mem_operand): New predicate.
37386 * config/mips/mips.md (multimem): New type.
37387 (length): Differentiate between 17-bit and 18-bit branch offsets.
37388 (MOVEP1, MOVEP2): New mode iterator.
37389 (mov_<load>l): Use ZC constraint.
37390 (mov_<load>r): Likewise.
37391 (mov_<store>l): Likewise.
37392 (mov_<store>r): Likewise.
37393 (*branch_equality<mode>_inverted): Add microMIPS support.
37394 (*branch_equality<mode>): Likewise.
37395 (*jump_absolute): Likewise.
37396 (indirect_jump_<mode>): Likewise.
37397 (tablejump_<mode>): Likewise.
37398 (<optab>_internal): Likewise.
37399 (sibcall_internal): Likewise.
37400 (sibcall_value_internal): Likewise.
37401 (prefetch): Use constraint ZD.
37402 * config/mips/mips.opt (minterlink-compressed): New option.
37403 (minterlink-mips16): Now an alias for minterlink-compressed.
37404 (mmicromips): New option.
37405 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
37406 (compare_and_swap_12): Likewise.
37407 (sync_add<mode>): Likewise.
37408 (sync_<optab>_12): Likewise.
37409 (sync_old_<optab>_12): Likewise.
37410 (sync_new_<optab>_12): Likewise.
37411 (sync_nand_12): Likewise.
37412 (sync_old_nand_12): Likewise.
37413 (sync_new_nand_12): Likewise.
37414 (sync_sub<mode>): Likewise.
37415 (sync_old_add<mode>): Likewise.
37416 (sync_old_sub<mode>): Likewise.
37417 (sync_new_add<mode>): Likewise.
37418 (sync_new_sub<mode>): Likewise.
37419 (sync_<optab><mode>): Likewise.
37420 (sync_old_<optab><mode>): Likewise.
37421 (sync_new_<optab><mode>): Likewise.
37422 (sync_nand<mode>): Likewise.
37423 (sync_old_nand<mode>): Likewise.
37424 (sync_new_nand<mode>): Likewise.
37425 (sync_lock_test_and_set<mode>): Likewise.
37426 (test_and_set_12): Likewise.
37427 (atomic_compare_and_swap<mode>): Likewise.
37428 (atomic_exchange<mode>_llsc): Likewise.
37429 (atomic_fetch_add<mode>_llsc): Likewise.
37430 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
37431 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
37432 (umips_save_restore_pattern_p): Likewise.
37433 (umips_load_store_pair_p): Likewise.
37434 (umips_output_load_store_pair): Likewise.
37435 (umips_movep_target_p): Likewise.
37436 (umips_12bit_offset_address_p): Likewise.
37437 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
37438 (mips_base_mips16): Rename this...
37439 (mips_base_compression_flags): ...to this. Update all uses.
37440 (mips_attribute_table): Add micromips, nomicromips and nocompression.
37441 (mips_mips16_decl_p): Delete.
37442 (mips_nomips16_decl_p): Delete.
37443 (mips_get_compress_on_flags): New function.
37444 (mips_get_compress_off_flags): New function.
37445 (mips_get_compress_mode): New function.
37446 (mips_get_compress_on_name): New function.
37447 (mips_get_compress_off_name): New function.
37448 (mips_insert_attributes): Support multiple compression types.
37449 (mips_merge_decl_attributes): Likewise.
37450 (umips_12bit_offset_address_p): New function.
37451 (mips_start_function_definition): Emit .set micromips directive.
37452 (mips_call_may_need_jalx_p): New function.
37453 (mips_function_ok_for_sibcall): Add microMIPS support.
37454 (mips_print_operand_punctuation): Support short delay slots and
37456 (umips_swm_mask, umips_swm_encoding): New.
37457 (umips_build_save_restore): New function.
37458 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
37459 (was_mips16_p): Remove.
37460 (old_compression_mode): New.
37461 (mips_set_compression_mode): New function.
37462 (mips_set_current_function): Add microMIPS support.
37463 (mips_option_override): Likewise.
37464 (umips_save_restore_pattern_p): New function.
37465 (umips_output_save_restore): New function.
37466 (umips_load_store_pair_p_1): New function.
37467 (umips_load_store_pair_p): New function.
37468 (umips_output_load_store_pair_1): New function.
37469 (umips_output_load_store_pair): New function.
37470 (umips_movep_target_p) New function.
37471 (mips_prepare_pch_save): Add microMIPS support.
37472 * config/mips/mips.h (TARGET_COMPRESSION): New.
37473 (TARGET_CPU_CPP_BUILTINS): Update macro
37474 to use new compression flags and to support microMIPS.
37475 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
37476 (MIPS_ARCH_FLOAT_SPEC): Likewise.
37477 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
37478 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
37479 (ASM_SPEC): Support mmicromips and mno-micromips.
37480 (M16STORE_REG_P): New macro.
37481 (MIPS_CALL): Support TARGET_MICROMIPS.
37482 (MICROMIPS_J): New macro.
37483 (mips_base_mips16): Rename this...
37484 (mips_base_compression_flags): ...to this.
37485 (UMIPS_12BIT_OFFSET_P): New macro.
37486 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
37487 (MULTILIB_DIRNAMES): Likewise.
37489 2013-02-25 Tom de Vries <tom@codesourcery.com>
37491 PR rtl-optimization/56131
37492 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
37493 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
37494 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
37496 2013-02-25 Tobias Burnus <burnus@net-b.de>
37498 * doc/invoke.texi (-fsanitize=): Move from optimization
37499 to debugging options.
37501 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
37503 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
37505 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
37506 Alexander Monakov <amonakov@ispras.ru>
37508 PR middle-end/56077
37509 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
37510 flush pending lists also on non-jumps. Adjust comment.
37512 2013-02-24 Catherine Moore <clm@codesourcery.com>
37513 Maciej W. Rozycki <macro@codesourcery.com>
37514 Tom de Vries <tom@codesourcery.com>
37515 Nathan Sidwell <nathan@codesourcery.com>
37516 Iain Sandoe <iain@codesourcery.com>
37517 Nathan Froyd <froydnj@codesourcery.com>
37518 Chao-ying Fu <fu@mips.com>
37520 * doc/extend.texi: (micromips, nomicromips, nocompression):
37521 Document new function attributes.
37522 * doc/invoke.texi (minterlink-compressed, mmicromips,
37523 m14k, m14ke, m14kec): Document new options.
37524 (minterlink-mips16): Update documentation.
37525 * doc/md.texi (ZC, ZD): Document new constraints.
37526 * configure.ac (gcc_cv_as_micromips): Check if linker
37527 supports the .set micromips directive.
37528 * configure: Regenerate.
37529 * config.in: Regenerate.
37530 * config/mips/mips-tables.opt: Regenerate.
37531 * config/mips/micromips.md: New file.
37532 * constraints.md (ZC, AD): New constraints.
37533 * config/mips/predicates.md (movep_src_register): New predicate.
37534 (movep_src_operand): New predicate.
37535 (non_volatile_mem_operand): New predicate.
37536 * config/mips/mips.md (multimem): New type.
37537 (length): Differentiate between 17-bit and 18-bit branch offsets.
37538 (MOVEP1, MOVEP2): New mode iterator.
37539 (mov_<load>l): Use ZC constraint.
37540 (mov_<load>r): Likewise.
37541 (mov_<store>l): Likewise.
37542 (mov_<store>r): Likewise.
37543 (*branch_equality<mode>_inverted): Add microMIPS support.
37544 (*branch_equality<mode>): Likewise.
37545 (*jump_absolute): Likewise.
37546 (indirect_jump_<mode>): Likewise.
37547 (tablejump_<mode>): Likewise.
37548 (<optab>_internal): Likewise.
37549 (sibcall_internal): Likewise.
37550 (sibcall_value_internal): Likewise.
37551 (prefetch): Use constraint ZD.
37552 * config/mips/mips.opt (minterlink-compressed): New option.
37553 (minterlink-mips16): Now an alias for minterlink-compressed.
37554 (mmicromips): New option.
37555 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
37556 (compare_and_swap_12): Likewise.
37557 (sync_add<mode>): Likewise.
37558 (sync_<optab>_12): Likewise.
37559 (sync_old_<optab>_12): Likewise.
37560 (sync_new_<optab>_12): Likewise.
37561 (sync_nand_12): Likewise.
37562 (sync_old_nand_12): Likewise.
37563 (sync_new_nand_12): Likewise.
37564 (sync_sub<mode>): Likewise.
37565 (sync_old_add<mode>): Likewise.
37566 (sync_old_sub<mode>): Likewise.
37567 (sync_new_add<mode>): Likewise.
37568 (sync_new_sub<mode>): Likewise.
37569 (sync_<optab><mode>): Likewise.
37570 (sync_old_<optab><mode>): Likewise.
37571 (sync_new_<optab><mode>): Likewise.
37572 (sync_nand<mode>): Likewise.
37573 (sync_old_nand<mode>): Likewise.
37574 (sync_new_nand<mode>): Likewise.
37575 (sync_lock_test_and_set<mode>): Likewise.
37576 (test_and_set_12): Likewise.
37577 (atomic_compare_and_swap<mode>): Likewise.
37578 (atomic_exchange<mode>_llsc): Likewise.
37579 (atomic_fetch_add<mode>_llsc): Likewise.
37580 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
37581 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
37582 (umips_save_restore_pattern_p): Likewise.
37583 (umips_load_store_pair_p): Likewise.
37584 (umips_output_load_store_pair): Likewise.
37585 (umips_movep_target_p): Likewise.
37586 (umips_12bit_offset_address_p): Likewise.
37587 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
37588 (mips_base_mips16): Rename this...
37589 (mips_base_compression_flags): ...to this. Update all uses.
37590 (mips_attribute_table): Add micromips, nomicromips and nocompression.
37591 (mips_mips16_decl_p): Delete.
37592 (mips_nomips16_decl_p): Delete.
37593 (mips_get_compress_on_flags): New function.
37594 (mips_get_compress_off_flags): New function.
37595 (mips_get_compress_mode): New function.
37596 (mips_get_compress_on_name): New function.
37597 (mips_get_compress_off_name): New function.
37598 (mips_insert_attributes): Support multiple compression types.
37599 (mips_merge_decl_attributes): Likewise.
37600 (umips_12bit_offset_address_p): New function.
37601 (mips_start_function_definition): Emit .set micromips directive.
37602 (mips_call_may_need_jalx_p): New function.
37603 (mips_function_ok_for_sibcall): Add microMIPS support.
37604 (mips_print_operand_punctuation): Support short delay slots and
37606 (umips_swm_mask, umips_swm_encoding): New.
37607 (umips_build_save_restore): New function.
37608 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
37609 (was_mips16_p): Remove.
37610 (old_compression_mode): New.
37611 (mips_set_compression_mode): New function.
37612 (mips_set_current_function): Add microMIPS support.
37613 (mips_option_override): Likewise.
37614 (umips_save_restore_pattern_p): New function.
37615 (umips_output_save_restore): New function.
37616 (umips_load_store_pair_p_1): New function.
37617 (umips_load_store_pair_p): New function.
37618 (umips_output_load_store_pair_1): New function.
37619 (umips_output_load_store_pair): New function.
37620 (umips_movep_target_p) New function.
37621 (mips_prepare_pch_save): Add microMIPS support.
37622 * config/mips/mips.h (TARGET_COMPRESSION): New.
37623 (TARGET_CPU_CPP_BUILTINS): Update macro
37624 to use new compression flags and to support microMIPS.
37625 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
37626 (MIPS_ARCH_FLOAT_SPEC): Likewise.
37627 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
37628 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
37629 (ASM_SPEC): Support mmicromips and mno-micromips.
37630 (M16STORE_REG_P): New macro.
37631 (MIPS_CALL): Support TARGET_MICROMIPS.
37632 (MICROMIPS_J): New macro.
37633 (mips_base_mips16): Rename this...
37634 (mips_base_compression_flags): ...to this.
37635 (UMIPS_12BIT_OFFSET_P): New macro.
37636 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
37637 (MULTILIB_DIRNAMES): Likewise.
37639 2013-02-24 Jakub Jelinek <jakub@redhat.com>
37642 * target-globals.c (save_target_globals): For init_reg_sets and
37643 target_reinit remporarily set this_fn_optabs to this_target_optabs.
37645 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
37647 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
37648 * config/aarch64/t-aarch64
37649 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
37651 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
37653 PR inline-asm/56148
37654 * lra-constraints.c (process_alt_operands): Reload operand
37655 conflicting with earlier clobber only if no more other conflicting
37658 2013-02-22 Jakub Jelinek <jakub@redhat.com>
37661 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
37662 if not linking a shared library.
37664 2013-02-22 Seth LaForge <sethml@google.com>
37666 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
37668 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
37670 * config/arm/arm.md (split for extendsidi): Update condition.
37671 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
37672 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
37673 (qhs_zextenddi_cstr): Likewise.
37675 2013-02-21 Jakub Jelinek <jakub@redhat.com>
37677 PR middle-end/56420
37678 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
37679 avoid signed wrapping.
37680 (expand_mult): Handle properly multiplication by
37681 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
37682 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
37683 in the compiler if coeff is HOST_WIDE_INT_MIN.
37684 (expand_divmod): Don't make ext_op1 static, change it's type to
37685 uhwi. Avoid undefined behavior in -INTVAL (op1).
37687 PR rtl-optimization/50339
37688 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
37690 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
37691 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
37692 into splitting_ashiftrt field.
37693 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
37695 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
37698 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
37700 PR middle-end/56108
37701 * trans-mem.c (execute_tm_mark): Do not expand transactions that
37702 are sure to go irrevocable.
37704 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
37706 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
37707 scalars are valid operands.
37709 2013-02-21 Martin Jambor <mjambor@suse.cz>
37711 PR tree-optimization/56310
37712 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
37713 only matching indices and non-negative final offsets.
37714 (intersect_aggregates_with_edge): Pass src_idx to
37715 agg_replacements_to_vector. Pass src_idx insstead of index to
37716 intersect_with_agg_replacements.
37718 2013-02-21 Martin Jambor <mjambor@suse.cz>
37720 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
37721 instead of hard-wired defaults.
37723 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
37725 * doc/invoke.texi (MIPS Options): Update documentation of the
37726 floating-point multiply-accumulate instruction restrictions.
37728 2013-02-21 Kostya Serebryany <kcc@google.com>
37730 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
37731 asan_shadow_offset on x86_64 linux.
37733 2013-02-21 Richard Biener <rguenther@suse.de>
37735 PR tree-optimization/56415
37737 2013-02-11 Richard Biener <rguenther@suse.de>
37739 PR tree-optimization/56273
37740 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
37743 2013-02-21 Jakub Jelinek <jakub@redhat.com>
37746 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
37749 PR inline-asm/56405
37750 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
37751 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
37753 2013-02-20 Jan Hubicka <jh@suse.cz>
37755 PR tree-optimization/56265
37756 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
37757 when target is referenced for first time.
37759 2013-02-20 Richard Biener <rguenther@suse.de>
37761 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
37762 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
37763 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
37764 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
37765 not return anything.
37766 (rename_ssa_copies): Do not remove unused locals.
37767 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
37768 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
37769 * passes.c (execute_function_todo): Do not schedule unused locals
37770 removal if cleanup_tree_cfg did something.
37771 * tree-ssa-live.c (remove_unused_locals): Dump statistics
37772 about the number of removed locals.
37774 2013-02-20 Richard Biener <rguenther@suse.de>
37776 PR tree-optimization/56398
37777 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
37779 2013-02-20 Martin Jambor <mjambor@suse.cz>
37781 PR tree-optimization/55334
37782 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
37783 restricted pointers to arrays.
37785 2013-02-20 Richard Biener <rguenther@suse.de>
37786 Jakub Jelinek <jakub@redhat.com>
37788 PR tree-optimization/56396
37789 * tree-ssa-ccp.c (n_const_val): New static variable.
37790 (get_value): Return NULL for SSA names we don't have a lattice
37792 (ccp_initialize): Initialize n_const_val.
37793 * tree-ssa-copy.c (n_copy_of): New static variable.
37794 (init_copy_prop): Initialize n_copy_of.
37795 (get_value): Return NULL_TREE for SSA names we don't have a
37798 2013-02-20 Martin Jambor <mjambor@suse.cz>
37800 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
37802 2013-02-20 Richard Biener <rguenther@suse.de>
37804 * genpreds.c (write_lookup_constraint): Do not compare first
37805 letter of the constraint again.
37807 2013-02-20 Richard Biener <rguenther@suse.de>
37809 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
37811 (get_use_iv_cost): Terminate hashtable walk when coming across
37814 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
37816 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
37817 reassociation for avx2 targets.
37819 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37821 * config/microblaze/microblaze.c: microblaze_has_clz = 0
37822 Add version check for v8.10.a to enable microblaze_has_clz
37823 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
37824 version and TARGET_PATTERN_COMPARE check
37825 * config/microblaze/microblaze.md: New clzsi2 instruction
37827 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37829 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
37830 function before branching.
37832 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
37834 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
37836 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
37838 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
37840 PR middle-end/55889
37841 * sel-sched.c: Include ira.h.
37842 (implicit_clobber_conflict_p): New function.
37843 (moveup_expr): Use it.
37844 * Makefile.in (sel-sched.o): Depend on ira.h.
37846 2013-02-19 Richard Biener <rguenther@suse.de>
37848 PR tree-optimization/56384
37849 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
37850 (vn_hash_type): Split out from ...
37851 (vn_hash_constant_with_type): ... here.
37852 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
37853 (vn_phi_eq): Compare types from vn_phi_s structure.
37854 (vn_phi_lookup): Populate vn_phi_s type.
37855 (vn_phi_insert): Likewise.
37857 2013-02-19 Jakub Jelinek <jakub@redhat.com>
37859 PR tree-optimization/56350
37860 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
37861 if haven't found reduction or nested cycle operand, rather than
37862 asserting we must find it.
37864 PR tree-optimization/56381
37865 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
37868 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
37869 Jakub Jelinek <jakub@redhat.com>
37872 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
37873 (swap_optab_enable): Same.
37874 (init_all_optabs): Use argument instead of global.
37875 * tree.h (struct tree_optimization_option): New field target_optabs.
37876 * expr.h (init_all_optabs): Add argument to prototype.
37877 (TREE_OPTIMIZATION_OPTABS): New.
37878 (save_optabs_if_changed): Protoize.
37879 * optabs.h: Declare this_fn_optabs.
37880 * optabs.c (save_optabs_if_changed): New.
37881 Declare this_fn_optabs.
37882 (init_optabs): Add argument to init_all_optabs() call.
37883 * function.c (invoke_set_current_function_hook): Handle per
37885 * function.h (struct function): New field optabs.
37886 * config/mips/mips.c (mips_set_mips16_mode): Handle when
37887 optimization_current_node has changed.
37888 * target-globals.h (save_target_globals_default_opts): Protoize.
37889 * target-globals.c (save_target_globals_default_opts): New.
37891 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37894 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
37895 registers %fr12 and %fr12R as call used.
37898 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
37899 and HImode, require all displacements to be an integer multiple of
37901 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
37902 only allow QImode and HImode when reload is in progress and strict is
37903 true. Likewise for symbolic addresses. Use base14_operand to check
37904 displacements in REG+BASE addresses.
37906 2013-02-18 Richard Biener <rguenther@suse.de>
37908 PR tree-optimization/56366
37909 * tree-vect-loop.c (get_initial_def_for_induction): Properly
37910 handle sign-conversion of outer-loop initial induction value.
37912 2013-02-18 Richard Biener <rguenther@suse.de>
37914 PR middle-end/56349
37915 * cfghooks.c (merge_blocks): If we merge a latch into another
37916 block adjust references to it.
37917 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
37918 (verify_loop_structure): Verify that a recorded latch is in fact
37921 2013-02-18 Richard Biener <rguenther@suse.de>
37923 PR tree-optimization/56321
37924 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
37925 order SSA name release and virtual operand unlinking.
37927 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37929 * config/microblaze/microblaze.md (save_stack_block): Define.
37930 (restore_stack_block): Likewise.
37932 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37934 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
37935 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
37936 * config/microblaze/microblaze.c (microblaze_option_override):
37937 Bail out early for PIC modes when target does not support PIC.
37939 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37941 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
37942 Replace with a microblaze version.
37943 (microblaze_trampoline_init): Adapt for microblaze.
37944 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
37947 2013-02-16 Jakub Jelinek <jakub@redhat.com>
37948 Dodji Seketeli <dodji@redhat.com>
37951 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
37952 (instrument_mem_region_access): Do not forget to always put
37953 instrumentation of the of 'base' and 'base + len' in a "if (len !=
37954 0) statement, even for cases where either 'base' or 'base + len'
37955 are not instrumented -- because they have been previously
37956 instrumented. Simplify the logic by putting all the statements
37957 instrument 'base + len' inside a sequence, and then insert that
37958 sequence right before the current insertion point. Then, to
37959 instrument 'base + len', just get an iterator on that statement.
37960 And do not forget to update the pointer to iterator the function
37961 received as argument.
37963 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
37965 PR rtl-optimization/56348
37966 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
37968 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
37970 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
37971 (clean_graph_dump_file): Pass base to start_graph_dump.
37973 2013-02-14 Richard Henderson <rth@redhat.com>
37976 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
37978 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
37980 * collect2-aix.h: Define F_LOADONLY.
37982 2013-02-14 Richard Biener <rguenther@suse.de>
37985 * varasm.c (output_constant_def_1): Get the decl representing
37986 the constant as argument.
37987 (output_constant_def): Wrap output_constant_def_1.
37988 (make_decl_rtl): Use output_constant_def_1 with the decl
37989 representing the constant.
37990 (build_constant_desc): Optionally re-use a decl already
37991 representing the constant.
37992 (tree_output_constant_def): Adjust.
37994 2013-02-14 Dodji Seketeli <dodji@redhat.com>
37997 * asan.c (instrument_builtin_call): Really put the length of the
37998 second source argument into src1_len.
38000 2013-02-13 Jakub Jelinek <jakub@redhat.com>
38002 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
38003 argument. If it is false, don't create edge from then_bb to
38005 (insert_if_then_before_iter): Pass true to it.
38006 (build_check_stmt): Pass false to it.
38007 (transform_statements): Flush hash table only on extended basic
38008 block boundaries, rather than at the beginning of every bb.
38009 Don't flush hash table on nonfreeing_call_p calls.
38010 * tree-flow.h (nonfreeing_call_p): New prototype.
38011 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
38013 2013-02-13 David S. Miller <davem@davemloft.net>
38015 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
38017 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
38020 * ira.c (max_regno_before_ira): Move from ...
38022 (fix_reg_equiv_init): Use max_regno_before_ira instead of
38025 2013-02-13 Jakub Jelinek <jakub@redhat.com>
38027 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
38029 2013-02-13 Richard Biener <rguenther@suse.de>
38032 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
38033 globals in MEM_REFs.
38035 2013-02-13 Richard Biener <rguenther@suse.de>
38037 * loop-init.c (loop_optimizer_init): Clear loop state when
38038 re-initializing preserved loops.
38039 * loop-unswitch.c (unswitch_single_loop): Return whether
38040 we unswitched the loop. Do not verify loop state here.
38041 (unswitch_loops): When we unswitched a loop discover new loops.
38043 2013-02-13 Kostya Serebryany <kcc@google.com>
38045 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
38047 * sanitizer.def: Rename __asan_init to __asan_init_v1.
38049 2013-02-12 Dodji Seketeli <dodji@redhat.com>
38051 Avoid instrumenting duplicated memory access in the same basic block
38052 * Makefile.in (asan.o): Add new dependency on hash-table.h
38053 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
38054 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
38055 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
38056 (free_mem_ref_resources, has_mem_ref_been_instrumented)
38057 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
38058 (get_mem_ref_of_assignment): New functions.
38059 (get_mem_refs_of_builtin_call): Extract from
38060 instrument_builtin_call and tweak a little bit to make it fit with
38062 (instrument_builtin_call): Use the new
38063 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
38064 of is_gimple_builtin_call.
38065 (instrument_derefs, instrument_mem_region_access): Insert the
38066 instrumented memory reference into the hash table.
38067 (maybe_instrument_assignment): Renamed instrument_assignment into
38068 this, and change it to advance the iterator when instrumentation
38069 actually happened and return true in that case. This makes it
38070 homogeneous with maybe_instrument_assignment, and thus give a
38071 chance to callers to be more 'regular'.
38072 (transform_statements): Clear the memory reference hash table
38073 whenever we enter a new BB, when we cross a function call, or when
38074 we are done transforming statements. Use
38075 maybe_instrument_assignment instead of instrumentation. No more
38076 need to special case maybe_instrument_assignment and advance the
38077 iterator after calling it; it's now handled just like
38078 maybe_instrument_call. Update comment.
38080 2013-02-13 Richard Biener <rguenther@suse.de>
38082 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
38083 Fix loop discovery code.
38085 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
38087 PR inline-asm/56148
38088 * lra-constraints.c (process_alt_operands): Match early clobber
38089 operand with itself. Check conflicts with earlyclobber only if
38090 the operand is not reloaded. Prefer to reload conflicting operand
38091 if earlyclobber and matching operands are the same.
38093 2013-02-12 Richard Biener <rguenther@suse.de>
38096 * lto-streamer-out.c (write_symbol): Do not output symbols
38097 for hard register variables.
38099 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
38102 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
38103 (umulsidi3_insn, mulsidi3_insn): New insns.
38105 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
38107 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
38108 (struct tune_params): Add vec_costs field.
38109 * config/arm/arm.c (arm_builtin_vectorization_cost)
38110 (arm_add_stmt_cost): New functions.
38111 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
38112 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
38113 (arm_default_vec_cost): New struct of type cpu_vec_costs.
38114 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
38115 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
38116 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
38117 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
38119 2013-02-12 Richard Biener <rguenther@suse.de>
38122 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
38123 decls again if possible.
38125 2013-02-12 Richard Biener <rguenther@suse.de>
38127 PR middle-end/56288
38128 * tree-ssa.c (verify_ssa_name): Fix check, move
38129 SSA_NAME_IN_FREE_LIST check up.
38131 2013-02-12 Jakub Jelinek <jakub@redhat.com>
38132 Steven Bosscher <steven@gcc.gnu.org>
38134 PR rtl-optimization/56151
38135 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
38136 equal to op0 or op1, and last_insn pattern is CODE operation
38137 with MEM dest and one of the operands matches that MEM.
38139 2013-02-11 Sriraman Tallam <tmsriram@google.com>
38141 * doc/extend.texi: Document Function Multiversioning and "default"
38142 parameter string to target attribute.
38143 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
38144 target attribute parameter is "default".
38145 (ix86_compare_version_priority): Remove checks for target attribute.
38146 (ix86_mangle_function_version_assembler_name): Change error to sorry.
38147 Remove check for target attribute equal to NULL. Add assert.
38148 (ix86_generate_version_dispatcher_body): Change error to sorry.
38150 2013-02-11 Iain Sandoe <iain@codesourcery.com>
38151 Jack Howarth <howarth@bromo.med.uc.edu>
38152 Patrick Marlier <patrick.marlier@gmail.com>
38155 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
38156 define ENDFILE_SPEC as TM_DESTRUCTOR.
38157 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
38159 2013-02-11 Alexander Potapenko <glider@google.com>
38160 Jack Howarth <howarth@bromo.med.uc.edu>
38161 Jakub Jelinek <jakub@redhat.com>
38164 * config/darwin.c (cdtor_record): Rename ctor_record.
38165 (sort_cdtor_records): Rename sort_ctor_records.
38166 (finalize_dtors): New routine to sort destructors by
38167 priority before use in assemble_integer.
38168 (machopic_asm_out_destructor): Use finalize_dtors if needed.
38170 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
38172 PR rtl-optimization/56275
38173 * simplify-rtx.c (avoid_constant_pool_reference): Check that
38174 offset is non-negative and less than cmode size before
38175 calling simplify_subreg.
38177 2013-02-11 Richard Biener <rguenther@suse.de>
38179 PR tree-optimization/56264
38180 * cfgloop.h (fix_loop_structure): Adjust prototype.
38181 * loop-init.c (fix_loop_structure): Return the number of
38182 newly discovered loops.
38183 * tree-cfgcleanup.c (repair_loop_structures): When new loops
38184 are discovered, do a full loop-closed SSA rewrite.
38186 2013-02-11 Richard Biener <rguenther@suse.de>
38188 PR tree-optimization/56273
38189 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
38191 (check_array_ref): Fix missing newline in dumps.
38192 (search_for_addr_array): Likewise.
38194 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
38196 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
38198 2013-02-09 Jakub Jelinek <jakub@redhat.com>
38201 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
38203 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
38205 PR rtl-optimization/56246
38206 * lra-constraints.c (simplify_operand_subreg): Try to reuse
38208 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
38209 constraints are satisfied.
38211 2013-02-08 Jeff Law <law@redhat.com>
38214 * emit-rtl.c (reg_is_parm_p): New function.
38215 * regs.h (reg_is_parm_p): New prototype.
38216 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
38217 callee-clobbered registers.
38219 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
38222 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
38223 If there is no implicit builtin declaration, just return NULL.
38225 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
38227 * config/i386/sse.md (FMAMODEM): New mode iterator.
38228 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
38229 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
38231 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
38233 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
38234 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
38235 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
38237 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
38239 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
38240 (microblaze*-*-elf): Likewise.
38241 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
38243 * config/microblaze/microblaze-c.c: Add builtin defines for
38244 _LITTLE_ENDIAN and _BIG_ENDIAN.
38245 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
38246 add to TARGET_DEFAULT flags.
38247 Expand ASM_SPEC and LINK_SPEC.
38248 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
38249 * config/microblaze/microblaze.md: Update extendsidi2 and
38250 movdi_internal instructions to use low-order / high-order reg
38252 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
38253 options and inversemask / mask of LITTLE_ENDIAN.
38254 * config/microblaze/t-microblaze: Expand multilib options to
38255 include mlittle-endian (le) and update exceptions patterns.
38257 2013-02-08 Jakub Jelinek <jakub@redhat.com>
38259 PR rtl-optimization/56195
38260 * lra-constraints.c (get_reload_reg): Don't reuse regs
38261 if they have smaller mode than requested, if they have
38262 wider mode than requested, try to return a SUBREG.
38264 PR tree-optimization/56250
38265 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
38266 if type is unsigned and code isn't MULT_EXPR.
38268 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
38270 PR tree-optimization/56064
38271 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
38272 bits according to mode.
38273 * fixed-value.h (fixed_from_double_int)
38274 (const_fixed_from_double_int): Adjust comments.
38276 2013-02-08 Richard Biener <rguenther@suse.de>
38279 * lto-streamer.h (struct data_in): Remove current_file, current_line
38280 and current_col members.
38281 * lto-streamer-out.c (lto_output_location): Stream changed bits
38282 en-block for efficiency.
38283 * lto-streamer-in.c (clear_line_info): Remove.
38284 (lto_input_location): Cache current file, line and column
38285 globally via local statics. Read changed bits en-block.
38286 (input_function): Do not call clear_line_info.
38287 (lto_read_body): Likewise.
38288 (lto_input_toplevel_asms): Likewise.
38290 2013-02-08 Michael Matz <matz@suse.de>
38292 PR tree-optimization/52448
38293 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
38294 (nt_call_phase): New static.
38295 (add_or_mark_expr): Only mark accesses with newer phase than any
38297 (nonfreeing_call_p): New.
38298 (nt_init_block): Update nt_call_phase, mark blocks as visited.
38299 (nt_fini_block): Keep blocks marked as visited.
38300 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
38302 2013-02-08 Richard Biener <rguenther@suse.de>
38304 * ira.c (ira): Free broken dominator information.
38306 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
38308 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
38310 2013-02-08 Marek Polacek <polacek@redhat.com>
38312 * cfgloop.c (verify_loop_structure): Add more checking of headers.
38314 2013-02-08 Richard Biener <rguenther@suse.de>
38316 PR middle-end/56181
38317 * cfgloop.h (flow_loops_find): Adjust.
38318 (bb_loop_header_p): Declare.
38319 * cfgloop.c (bb_loop_header_p): New function split out from ...
38320 (flow_loops_find): ... here. Adjust function signature,
38321 support incremental loop structure update.
38322 (verify_loop_structure): Cleanup. Verify a loop is a loop.
38323 * cfgloopmanip.c (fix_loop_structure): Move ...
38324 * loop-init.c (fix_loop_structure): ... here.
38325 (apply_loop_flags): Split out from ...
38326 (loop_optimizer_init): ... here.
38327 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
38328 in incremental mode, only remove dead loops here.
38330 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
38333 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
38334 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
38335 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
38336 (*round<mode>3.libgcc): New insns for fixed-modes.
38337 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
38338 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
38339 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
38340 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
38341 implementations. Define to __builtin_avr_absFX,
38342 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
38343 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
38344 __builtin_avr_countlsFX, respectively.
38345 * config/avr/avr-c.c (target.h): Include it.
38346 (enum avr_builtin_id): New enum.
38347 (avr_resolve_overloaded_builtin): New static function.
38348 (avr_register_target_pragmas): Use it to set
38349 targetm.resolve_overloaded_builtin.
38350 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
38351 tree nodes used by DEF_BUILTIN.
38352 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
38353 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
38354 <AVR_BUILTIN_xxBITS>: Same.
38356 2013-02-08 Richard Biener <rguenther@suse.de>
38358 * cfgloop.c (verify_loop_structure): Properly handle
38359 a loop exiting to another loop header.
38360 * ira-int.h (ira_loops): Remove.
38361 * ira.c (ira_loops): Remove.
38362 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
38363 (do_reload): Use loop_optimizer_finalize.
38364 * ira-build.c (create_loop_tree_nodes): Use get_loops and
38365 number_of_loops to access the loop tree.
38366 (more_one_region_p): Likewise.
38367 (finish_loop_tree_nodes): Likewise.
38368 (rebuild_regno_allocno_maps): Likewise.
38369 (mark_loops_for_removal): Likewise.
38370 (mark_all_loops_for_removal): Likewise.
38371 (remove_unnecessary_regions): Likewise.
38372 (ira_build): Likewise.
38373 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
38375 2013-02-08 Richard Biener <rguenther@suse.de>
38377 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
38378 * ipa-pure-const.c (analyze_function): Avoid calling
38379 mark_irreducible_loops twice.
38380 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
38382 2013-02-07 David S. Miller <davem@davemloft.net>
38384 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
38386 * var-tracking.c (vt_add_function_parameter): Test the presence of
38387 HAVE_window_save properly and do not remap argument registers when
38388 we have a leaf function.
38390 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
38393 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
38395 * config/i386/i386.c (ix86_print_operand): Ditto.
38397 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
38399 * lra-constraints.c (process_alt_operands): Fix recently added comment.
38401 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
38403 PR rtl-optimization/56225
38404 * lra-constraints.c (process_alt_operands): Check that reload hard
38405 reg can hold value for strict_low_part.
38407 2013-02-07 Jakub Jelinek <jakub@redhat.com>
38410 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
38411 dwarf2out_end_function.
38412 (in_first_function_p, maybe_at_text_label_p,
38413 first_loclabel_num_not_at_text_label): New variables.
38414 (dwarf2out_var_location): In the first function find out
38415 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
38416 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
38419 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
38421 PR rtl-optimization/56178
38422 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
38423 SUBREG of a register. Tidy up related block of code.
38424 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
38425 note if the source is a register or a SUBREG of a register.
38427 2013-02-07 Jakub Jelinek <jakub@redhat.com>
38430 * config/rs6000/rs6000.md (ptrm): New mode attr.
38431 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
38432 call_value_indirect_aix<pttrsize>,
38433 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
38436 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
38438 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
38439 if -bnortl. Convert to strcmp and strncmp.
38441 2013-02-07 Alan Modra <amodra@gmail.com>
38444 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
38445 addresses won't wrap when offsetting.
38446 (rs6000_secondary_reload): Provide secondary reloads needed for
38447 wrapping LO_SUM addresses.
38449 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
38451 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
38452 MACH, just __MACH__.
38454 2013-02-06 Richard Biener <rguenther@suse.de>
38456 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
38457 instead of calling fix_loop_structure.
38459 2013-02-06 Jakub Jelinek <jakub@redhat.com>
38461 PR middle-end/56217
38462 * omp-low.c (use_pointer_for_field): Return false if
38463 lower_send_shared_vars doesn't generate any copy-out code.
38465 2013-02-06 Tom de Vries <tom@codesourcery.com>
38467 PR rtl-optimization/56131
38468 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
38469 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
38470 of the label is NULL. Add comment.
38472 2013-02-05 Jakub Jelinek <jakub@redhat.com>
38474 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
38477 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
38478 (STATIC_LIBTSAN_LIBS): Likewise.
38479 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
38480 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
38481 is defined, don't add anything else beyond that.
38482 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
38483 (LINK_COMMAND_SPEC): Use them.
38485 PR tree-optimization/56205
38486 * tree-stdarg.c (check_all_va_list_escapes): Return true if
38487 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
38488 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
38490 2013-02-05 Richard Biener <rguenther@suse.de>
38492 PR tree-optimization/53342
38493 PR tree-optimization/53185
38494 * tree-vectorizer.h (vect_check_strided_load): Remove.
38495 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
38496 not disallow peeling for vectorized strided loads.
38497 (vect_check_strided_load): Make static and simplify.
38498 (vect_analyze_data_refs): Adjust.
38499 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
38500 correctly when vectorizing strided loads.
38502 2013-02-05 Richard Biener <rguenther@suse.de>
38504 * doc/install.texi: Refer to ISL, not PPL.
38506 2013-02-05 Jan Hubicka <jh@suse.cz>
38508 PR tree-optimization/55789
38509 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
38511 2013-02-05 Jan Hubicka <jh@suse.cz>
38513 PR tree-optimization/55789
38514 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
38515 the dead call anyway.
38517 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
38520 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
38522 2013-02-04 Alexander Potapenko <glider@google.com>
38523 Jack Howarth <howarth@bromo.med.uc.edu>
38524 Jakub Jelinek <jakub@redhat.com>
38527 * config/darwin.c (sort_ctor_records): Stabilized qsort
38528 on constructor priority by using original position.
38529 (finalize_ctors): New routine to sort constructors by
38530 priority before use in assemble_integer.
38531 (machopic_asm_out_constructor): Use finalize_ctors if needed.
38533 2013-02-04 Jakub Jelinek <jakub@redhat.com>
38536 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
38537 about visibility on artificial decls.
38538 * config/sol2.c (solaris_assemble_visibility): Likewise.
38540 2013-02-04 Kai Tietz <ktietz@redhat.com>
38543 * config/i386/i386.c (function_value_ms_64): Add additional valtype
38544 argument and improve checking of return-argument types for 16-byte
38546 (ix86_function_value_1): Add additional valtype argument on call
38547 of function_value_64.
38548 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
38549 handling infunction_value_64 function.
38551 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
38553 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
38555 2013-02-04 Richard Biener <rguenther@suse.de>
38557 PR tree-optimization/56188
38558 * tree-ssa-structalias.c (label_visit): Consider case with
38559 initially non-empty points-to set.
38560 (perform_var_substitution): Dump node mapping and clean up.
38562 2013-02-04 Richard Guenther <rguenther@suse.de>
38565 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
38566 node prevail as last resort.
38567 (lto_symtab_merge_decls): Remove guard on LTRANS here.
38568 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
38570 2013-02-04 Richard Biener <rguenther@suse.de>
38572 PR tree-optimization/56113
38573 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
38575 (equiv_class_lookup_or_add): ... this.
38576 (label_visit): Adjust and fix error in previous patch.
38577 (perform_var_substitution): Adjust.
38579 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
38581 * config/sh/divtab.c: Fix formatting and comments throughout the file.
38582 * config/sh/sh4-300.md: Likewise.
38583 * config/sh/sh4a.md: Likewise.
38584 * config/sh/constraints.md: Likewise.
38585 * config/sh/sh.md: Likewise.
38586 * config/sh/netbsd-elf.h: Likewise.
38587 * config/sh/predicates.md: Likewise.
38588 * config/sh/sh-protos.h: Likewise.
38589 * config/sh/ushmedia.h: Likewise.
38590 * config/sh/linux.h: Likewise.
38591 * config/sh/sh.c: Likewise.
38592 * config/sh/superh.h: Likewise.
38593 * config/sh/elf.h: Likewise.
38594 * config/sh/sh4.md: Likewise.
38595 * config/sh/sh.h: Likewise.
38597 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38599 * config/pa/constraints.md: Adjust unused letters. Change "T"
38600 constraint to match_test floating_point_store_memory_operand().
38601 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
38602 (base14_operand): New.
38603 (floating_point_store_memory_operand): New.
38604 (integer_store_memory_operand): Revise to use base14_operand and
38605 reg_plus_base_memory_operand.
38606 (move_dest_operand): Allow symbolic_memory_operands.
38607 (symbolic_memory_operand): Check for LO_SOM.
38608 (symbolic_operand): Change default case to break.
38609 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
38610 CONST_DOUBLE values to be reloaded by putting them into memory when
38611 the destination is a floating point register.
38612 (movdf): Remove code to handle CONST_DOUBLE.
38614 (reload_indf_r1): New.
38615 (reload_insf_r1): New.
38616 Consistently use "Q" and "T" constraints with integer and floating
38617 point move instructions, respectively.
38618 (movdi): Remove FAIL.
38619 Change predicate for source operand unamed DImode move from
38620 general_operand to move_src_operand.
38621 (umulsidi3): Change predicate for destination operand to
38623 Likewise for similar unamed patterns.
38624 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
38625 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
38626 (hppa_legitimize_address): Simplify mask calculation.
38627 (pa_emit_move_sequence): Revised handling of secondary reloads from
38628 REG+D addresses for floating point loads and stores. Directly handle
38629 loading CONST0_RTX (mode) to a floating point register.
38630 (pa_secondary_reload): Handle reloading DF and SFmode constant values
38631 to floating point registers. Don't restrict secondary reloads to
38632 floating point registers to integer modes. Revise some comments and
38634 (TARGET_LEGITIMATE_ADDRESS_P): Define.
38635 (pa_legitimate_address_p): New.
38636 (pa_legitimize_reload_address): New.
38637 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
38638 (STRICT_REG_OK_FOR_BASE_P): New.
38639 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
38640 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
38642 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
38643 Andrew Dixie <andrewd@gentrack.com>
38645 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
38648 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
38650 * expmed.c (extract_bit_field_1): Pass the full width of the
38651 structure to get_best_reg_extraction_insn.
38653 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
38656 * configure.ac (use_cxa_atexit): Add AIX.
38657 * configure: Regenerate.
38659 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
38661 2013-02-01 Jakub Jelinek <jakub@redhat.com>
38664 * final.c (need_profile_function): New variable.
38665 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
38666 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
38667 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
38668 notes, targetm.asm_out.function_prologue doesn't emit anything,
38669 HAVE_prologue and profiler should be emitted before prologue,
38670 set need_profile_function instead of emitting it.
38671 (final_scan_insn): If need_profile_function, emit
38672 profile_function on the first NOTE_INSN_BASIC_BLOCK or
38673 NOTE_INSN_FUNCTION_BEG note.
38675 2013-02-01 Richard Henderson <rth@redhat.com>
38677 * config/rs6000/rs6000.md (smulditi3): New.
38680 * config/alpha/alpha.md (umulditi3): New.
38682 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
38684 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
38685 (ASM_OUTPUT_ALIGNED_LOCAL): New.
38687 2013-02-01 Richard Biener <rguenther@suse.de>
38689 PR tree-optimization/56113
38690 * tree-ssa-structalias.c (label_visit): Reduce work for
38691 single-predecessor nodes.
38693 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
38695 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
38696 range isn't testing for zero.
38698 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
38700 PR middle-end/56113
38701 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
38703 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
38704 Nick Clifton <nickc@redhat.com>
38706 * config/v850/constraints.md (Q): Define as a memory constraint.
38707 * config/v850/predicates.md (label_ref_operand): New predicate.
38708 (e3v5_shift_operand): New predicate.
38709 (ior_operator): New predicate.
38710 * config/v850/t-v850: Add e3v5 multilib.
38711 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
38712 (v850_gen_movdi): Prototype.
38713 * config/v850/v850.c: Add support for e3v5 architecture.
38714 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
38716 (construct_save_jarl): Add e3v5 long JARL support.
38717 (v850_adjust_insn_length): New function. Adjust length of call
38718 insns when using e3v5 instructions.
38719 (v850_gen_movdi): New function: Generate instructions to move a
38721 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
38722 (CPP_SPEC): Define __v850e3v5__ as appropriate.
38723 (TARGET_USE_FPU): Enable for e3v5.
38724 (CONST_OK_FOR_W): New macro.
38725 (ADJUST_INSN_LENGTH): Define.
38726 * config/v850/v850.md (UNSPEC_LOOP): Define.
38727 (attr cpu): Add v850e3v5.
38728 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
38729 (movdi): New pattern.
38730 (movdi_internal): New pattern.
38731 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
38732 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
38733 (cstoresf4): Likewise.
38734 (cstoredf4): Likewise.
38735 (insv): New pattern.
38736 (rotlso3_a): New pattern.
38737 (rotlsi3_b): New pattern
38738 (rotlsi3_v850e3v5): New pattern.
38739 (doloop_begin): New pattern.
38740 (fix_loop_counter): New pattern.
38741 (doloop_end): New pattern.
38742 (branch_normal): Add e3v5 long branch support.
38743 (branch_invert): Likewise.
38744 (branch_z_normal): Likewise.
38745 (branch_z_invert): Likewise.
38746 (branch_nz_normal): Likewise.
38747 (branch_nz_invert): Likewise.
38748 (call_internal_short): Add e3v5 register-indirect JARL support.
38749 (call_internal_long): Likewise.
38750 (call_value_internal_short): Likewise.
38751 (call_value_internal_long): Likewise.
38752 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
38753 (mloop): New option.
38754 * config.gcc: Add support for configuring v840e3v5 target.
38755 * doc/invoke.texi: Document new v850 specific command line options.
38757 2013-01-31 Paul Koning <ni1d@arrl.net>
38761 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
38762 children if parent is a class.
38763 (prune_unused_types_prune): Don't add DW_AT_declaration.
38765 2013-01-31 Richard Biener <rguenther@suse.de>
38767 PR tree-optimization/56157
38768 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
38769 match up operand with SLP child.
38771 2013-01-31 Jason Merrill <jason@redhat.com>
38774 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
38775 parameters the first time.
38776 (gen_scheduled_generic_parms_dies): Check completeness here.
38778 2013-01-31 Richard Biener <rguenther@suse.de>
38780 PR middle-end/53073
38781 * common.opt (faggressive-loop-optimizations): New flag,
38782 enabled by default.
38783 * doc/invoke.texi (faggressive-loop-optimizations): Document.
38784 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
38785 infer_loop_bounds_from_undefined by it.
38787 2013-01-31 Richard Biener <rguenther@suse.de>
38789 PR tree-optimization/56150
38790 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
38791 visit virtual operands.
38792 (find_uses_to_rename_bb): Likewise.
38794 2013-01-31 Richard Biener <rguenther@suse.de>
38796 PR tree-optimization/56150
38797 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
38798 mixed store non-store stmts.
38800 2013-01-30 Jakub Jelinek <jakub@redhat.com>
38803 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
38804 LIBASAN_EARLY_SPEC is defined.
38805 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
38806 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
38808 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
38811 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
38812 invalid args instead of ICEing on it.
38813 (ix86_valid_target_attribute_tree): Return error_mark_node if
38814 ix86_valid_target_attribute_inner_p failed.
38815 (ix86_valid_target_attribute_p): Return false only if
38816 ix86_valid_target_attribute_tree returned error_mark_node. Allow
38817 target("default") attribute.
38818 (sorted_attr_string): Change argument from const char * to tree,
38819 merge in all target attribute arguments rather than just one.
38820 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
38821 instead of free. Avoid using strcat.
38822 (ix86_mangle_function_version_assembler_name): Mangle
38823 target("default") as if no target attribute is present. Adjust
38824 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
38825 instead of xmalloc and XDELETEVEC instead of free.
38826 (ix86_function_versions): Don't return true if one of the decls
38827 doesn't have target attribute. If they don't and one of the decls
38828 is DECL_FUNCTION_VERSIONED, report an error. Adjust
38829 sorted_attr_string caller. Use XDELETEVEC instead of free.
38830 (ix86_supports_function_versions): Remove.
38831 (make_name): Fix up formatting.
38832 (make_dispatcher_decl): Remove resolver_name and its initialization.
38833 Avoid leaking memory.
38834 (is_function_default_version): Return true if there is
38835 target("default") attribute rather than no target attribute at all.
38836 (make_resolver_func): Avoid leaking memory.
38837 (ix86_generate_version_dispatcher_body): Likewise.
38838 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
38839 * target.def (supports_function_versions): Remove.
38840 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
38841 * doc/tm.texi: Regenerated.
38843 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
38845 PR rtl-optimization/56144
38846 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
38847 for values with side effects.
38849 2013-01-30 Richard Biener <rguenther@suse.de>
38851 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
38852 (sparseset_pop): Likewise.
38853 * cfganal.c (compute_idf): Likewise. Increase work-stack size
38854 to be able to use quick_push in the worker loop.
38856 2013-01-30 Marek Polacek <polacek@redhat.com>
38858 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
38860 2013-01-30 Richard Biener <rguenther@suse.de>
38863 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
38865 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
38867 PR tree-optimization/56064
38868 * fixed-value.c (fixed_from_double_int): New function.
38869 * fixed-value.h (fixed_from_double_int): New prototype.
38870 (const_fixed_from_double_int): New static inline function.
38871 * fold-const.c (native_interpret_fixed): New static function.
38872 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
38873 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
38874 (native_encode_fixed): New static function.
38875 (native_encode_expr) <FIXED_CST>: Use it.
38876 (native_interpret_int): Move double_int worker code to...
38877 * double-int.c (double_int::from_buffer): ...this new static method.
38878 * double-int.h (double_int::from_buffer): Prototype it.
38880 2013-01-30 Richard Biener <rguenther@suse.de>
38882 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
38883 New pointer-map and obstack.
38884 (init_alias_vars): Allocate pointer-map and obstack.
38885 (delete_points_to_sets): Free them.
38886 (find_what_var_points_to): Cache result.
38887 (find_what_p_points_to): Adjust for changed interface of
38888 find_what_var_points_to.
38889 (compute_points_to_sets): Likewise.
38890 (ipa_pta_execute): Likewise.
38892 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38894 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
38895 * configure: Regenerate.
38896 * config.in: Regenerate.
38897 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
38898 #nobits/#progbits if supported.
38900 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
38903 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
38904 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
38905 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
38907 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38909 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
38910 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
38912 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38914 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
38915 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
38917 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38919 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
38921 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
38922 * config/arm/cortex-a7.md: New bypasses using
38923 arm_mac_accumulator_is_result.
38925 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38927 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
38928 (cortex_a7_neon_mla): Likewise.
38929 (cortex_a7_fpfmad): New reservation.
38930 (cortex_a7_fpmacs): Use ffmas and update required units.
38931 (cortex_a7_fpmuld): Update required units and latency.
38932 (cortex_a7_fpmacd): Likewise.
38933 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
38934 (cortex_a7_neon). Likewise.
38935 (bypass) Update participating units.
38937 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38939 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
38940 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
38942 * config/arm/vfp11.md (vfp_farith): Use ffmas.
38943 (vfp_fmul): Use ffmad.
38944 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
38945 (cortex_r4_fmacd): Use ffmad.
38946 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
38947 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
38948 (cortex_a9_fmacd): Use ffmad.
38949 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
38950 (cortex_a8_vfp_macd): Use ffmad.
38951 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
38952 (cortex_a5_fpmacd): Use ffmad.
38953 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
38954 (cortex_a15_vfp_macd): Use ffmad.
38955 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
38957 2013-01-29 Jason Merrill <jason@redhat.com>
38960 * varasm.c (default_assemble_visibility): Don't warn about
38961 visibility on artificial decls.
38963 2013-01-29 Richard Biener <rguenther@suse.de>
38965 PR tree-optimization/56113
38966 * tree-ssa-structalias.c (equiv_class_lookup): Also return
38968 (label_visit): Free duplicate bitmaps and record the leader instead.
38969 (perform_var_substitution): Adjust.
38971 2013-01-29 Richard Biener <rguenther@suse.de>
38973 PR tree-optimization/55270
38974 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
38975 the CFG, schedule loops for fixup.
38977 2013-01-29 Nick Clifton <nickc@redhat.com>
38979 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
38982 2013-01-28 Leif Ekblad <leif@rdos.net>
38984 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
38985 * config/i386/i386.h (TARGET_RDOS): New macro.
38986 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
38987 * config/i386/i386.c (ix86_option_override_internal): For 64bit
38988 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
38989 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
38990 DEFAULT_LARGE_SECTION_THRESHOLD.
38991 * config/i386/i386.md (R14_REG, R15_REG): New constants.
38992 * config/i386/rdos.h: New file.
38993 * config/i386/rdos64.h: New file.
38995 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
38998 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
39001 2013-01-28 Jakub Jelinek <jakub@redhat.com>
39003 PR rtl-optimization/56117
39004 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
39005 call cselib_lookup_from_insn on the MEM before calling
39006 add_insn_mem_dependence.
39008 2013-01-28 Richard Biener <rguenther@suse.de>
39010 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
39011 to a stmt that didn't have one.
39012 (copy_phis_for_bb): Likewise for PHI arguments.
39013 (copy_debug_stmt): Likewise for debug stmts.
39015 2013-01-28 Richard Biener <rguenther@suse.de>
39017 PR tree-optimization/56034
39018 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
39019 (partition_builtin_p): Adjust.
39020 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
39021 it is the last partition.
39022 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
39023 up the vertex for the definition.
39024 (classify_partition): Classify whether a partition is a
39025 PKIND_REDUCTION, thus has uses outside of the loop.
39026 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
39027 Merge all PKIND_REDUCTION partitions into the last partition.
39028 (tree_loop_distribution): Seed partitions from reductions as well.
39030 2013-01-28 Jakub Jelinek <jakub@redhat.com>
39032 PR tree-optimization/56125
39033 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
39034 pow(x,c) into sqrt(x) * powi(x, n/2) or
39035 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
39036 optimizing for size.
39037 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
39038 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
39041 PR tree-optimization/56094
39042 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
39043 to UNKNOWN_LOCATION while gimplifying expr.
39045 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
39048 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
39049 operand 0 in movabs insn template for -masm=intel asm alternative.
39050 (*movabs<mode>_2): Ditto for operand 1.
39052 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
39055 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
39058 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
39060 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
39063 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
39065 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
39066 Undef to avoid warning.
39068 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
39070 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
39071 * configure: Regenerate.
39073 2013-01-25 Jakub Jelinek <jakub@redhat.com>
39075 PR tree-optimization/56098
39076 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
39077 for stmts with volatile ops.
39078 (cond_store_replacement): Don't optimize if assign has volatile ops.
39079 (cond_if_else_store_replacement_1): Don't optimize if either
39080 then_assign or else_assign have volatile ops.
39081 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
39084 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
39086 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
39088 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
39090 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
39091 missing ':' in asm example.
39093 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
39095 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
39096 entries into lane and laneq entries.
39097 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
39098 Remove AdvSIMD scalar modes.
39099 (aarch64_sq<r>dmulh_laneq<mode>): New.
39100 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
39102 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
39103 builtin implementations to relfect changes in RTL in aarch64-simd.md.
39104 * config/aarch64/iterators.md (VCOND): New.
39107 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
39110 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
39111 Add NULL LIBNAME argument to existing definitions.
39112 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
39113 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
39114 * config/avr/avr.c (DEF_BUILTIN): Same.
39115 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
39116 (avr_expand_builtin): Expand to a vanilla call if a libgcc
39117 implementation is available (DECL_ASSEMBLER_NAME is set).
39118 (avr_fold_absfx): New static function.
39119 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
39120 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
39121 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
39122 AVR_BUILTIN_ABSLLK.
39123 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
39124 (abshk, absk, abslk, absllk): Provide as static inline functions.
39126 2013-01-25 Marek Polacek <polacek@redhat.com>
39128 PR tree-optimization/56035
39129 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
39131 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
39133 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
39134 (*movtf_internal_rex64): Add (!o,C) alternative
39135 (*movxf_internal_rex64): Ditto.
39136 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
39138 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
39140 * doc/invoke.texi: fix typo.
39141 * doc/objc.texi: fix typo.
39143 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
39145 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
39146 for the first two alternatives.
39148 2013-01-24 Diego Novillo <dnovillo@google.com>
39150 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
39151 (ggc-zone.o): Remove.
39152 * configure.ac: Remove option --with-gc.
39153 * configure: Re-generate.
39154 * doc/install.texi: Remove documentation for --with-gc.
39155 * gengtype.c (write_enum_defn): Remove. Update all users.
39156 (write_Types_process_field): Remove generation of gt_e_* argument.
39157 (output_type_enum): Remove. Update all users.
39158 (write_enum_defn): Remove. Update all users.
39159 (enum alloc_zone): Remove. Update all users.
39160 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
39161 * ggc-common.c (ggc_splay_alloc): Remove first argument.
39162 Update all callers.
39163 (struct ptr_data): Remove field TYPE. Update all users.
39164 (gt_pch_note_object): Remove argument TYPE. Update all users.
39165 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
39167 * ggc-none.c (ggc_alloc_typed_stat): Remove.
39168 (struct alloc_zone): Remove.
39169 (ggc_internal_alloc_zone_stat): Remove.
39170 (ggc_internal_cleared_alloc_zone_stat): Remove.
39171 * ggc-page.c (ggc_alloc_typed_stat): Remove.
39172 (ggc_pch_count_object): Remove last argument. Update all users.
39173 (ggc_pch_alloc_object): Remove last argument. Update all users.
39174 (struct alloc_zone): Remove.
39175 * ggc-zone.c: Remove.
39176 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
39177 (struct alloc_zone): Remove.
39178 (ggc_alloc_typed_stat): Remove.
39179 (ggc_alloc_typed): Remove.
39180 (ggc_splay_alloc): Remove first argument.
39181 (rtl_zone): Remove. Update all users.
39182 (tree_zone): Remove. Update all users.
39183 (tree_id_zone): Remove. Update all users.
39184 (ggc_internal_zone_alloc_stat): Remove. Update all users.
39185 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
39186 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
39187 * tree-ssanames.c: Remove references to zone allocator in comments.
39189 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
39191 * config/avr/avr.c (avr_out_fract): Make register numbers that
39192 might be outside of source operand signed.
39194 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
39196 * config/i386/constraints.md (Yf): New constraint.
39197 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
39198 of f constraint to conditionaly disable x87 register preferences.
39199 (*movdf_internal): Ditto.
39200 (*movsf_internal): Ditto.
39202 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
39204 PR inline-asm/55934
39205 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
39206 that have operands with impossible constraints.
39207 Add a FIXME for a speed-up opportunity.
39208 * lra-constraints.c (process_alt_operands): Verify that a class
39209 selected from constraints on asms is valid for the operand mode.
39210 (curr_insn_transform): Remove incorrect comment.
39212 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
39214 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
39215 TOC operand is a valid symbol ref in the constant pool.
39217 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
39219 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
39221 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
39224 * config/avr/stdfix.h: New file.
39225 * t-avr (stdfix-gcc.h): New rule to build it.
39226 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
39228 2013-01-23 Kostya Serebryany <kcc@google.com>
39230 * config/darwin.h: remove dependency on
39231 CoreFoundation (asan on Mac OS).
39233 2013-01-23 Jakub Jelinek <jakub@redhat.com>
39236 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
39237 instead of cmpdi_operand for first comparison operand.
39238 Don't assert that comparison operands aren't both constants.
39240 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
39242 * doc/install.texi (Downloading the Source): Update references to
39243 downloading separate components.
39245 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
39247 * doc/extend.texi (__int128): Improve grammar.
39249 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
39252 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
39253 alternative to (o,r).
39254 (*movdi_internal_rex64): Remove (!o,n) alternative.
39255 (DImode immediate->memory splitter): Remove.
39256 (DImode immediate->memory peephole2): Remove.
39257 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
39258 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
39259 alternative to (!o,*r).
39260 (*movtf_internal_sse): New pattern.
39261 (*movxf_internal_rex64): New pattern.
39262 (*movxf_internal): Disable for TARGET_64BIT.
39263 (*movdf_internal_rex64): Remove (!o,F) alternative.
39265 2013-01-22 Jakub Jelinek <jakub@redhat.com>
39267 PR middle-end/56074
39268 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
39269 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
39270 * tree-vect-loop-manip.c (find_loop_location): Also ignore
39271 stmt locations where LOCATION_LOCUS of the stmt location is
39272 UNKNOWN_LOCATION or BUILTINS_LOCATION.
39275 * config/i386/i386.md (UNSPEC_STOS): New.
39276 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
39277 *strsetqi_1): Add UNSPEC_STOS.
39279 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
39282 * doc/invoke.texi: Remove left over -Wsynth example.
39284 2013-01-21 Jakub Jelinek <jakub@redhat.com>
39286 PR tree-optimization/56051
39287 * fold-const.c (fold_binary_loc): Don't fold
39288 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
39289 a narrowing conversion, or widening conversion from signed
39292 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
39294 PR rtl-optimization/56023
39295 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
39296 dependent on debug instruction.
39298 2013-01-21 Martin Jambor <mjambor@suse.cz>
39300 PR middle-end/56022
39301 * function.c (allocate_struct_function): Call
39302 invoke_set_current_function_hook earlier.
39304 2013-01-21 Jakub Jelinek <jakub@redhat.com>
39306 * reload1.c (init_reload): Only initialize reload_obstack
39307 during the first call.
39309 2013-01-21 Marek Polacek <polacek@redhat.com>
39311 * cfgloop.c (verify_loop_structure): Fix up grammar.
39313 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
39315 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
39316 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
39318 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
39321 * config/arm/marvell-pj4.md: Update copyright year.
39322 Fix up use of alu to alu_reg and simple_alu_imm.
39324 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
39326 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
39328 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
39331 * lra-constraints.c (curr_insn_transform): Don't reuse original
39332 insn for secondary memory move when memory mode should be different.
39334 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39336 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
39337 atomic_storedi_1): New patterns.
39339 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
39341 btver2 pipeline descriptions.
39342 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
39344 * config/i386/i386.md (btver2_decode): New type attributes.
39345 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
39347 * config/i386/btver2.md: New file describing btver2 pipelines.
39349 2013-01-19 Andrew Pinski <apinski@cavium.com>
39351 PR tree-optimization/52631
39352 * tree-ssa-sccvn (visit_use): Before looking up the original
39353 statement, try looking up the simplified expression.
39355 2013-01-19 Anthony Green <green@moxielogic.com>
39357 * config/moxie/moxie.c (moxie_expand_prologue): Set
39358 current_function_static_stack_size.
39360 2013-01-18 Jakub Jelinek <jakub@redhat.com>
39362 PR tree-optimization/56029
39363 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
39364 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
39366 2013-01-18 Sharad Singhai <singhai@google.com>
39368 PR tree-optimization/55995
39369 * dumpfile.c (dump_loc): Print location only if available.
39370 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
39372 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
39375 * lra-constraints.c (curr_insn_transform): Reuse original insn for
39376 secondary memory move.
39377 (inherit_reload_reg): Use rclass instead of cl for
39378 check_secondary_memory_needed_p.
39380 2013-01-18 Jakub Jelinek <jakub@redhat.com>
39382 PR middle-end/56015
39383 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
39384 the case where writing real complex part of target modifies op1.
39386 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
39388 * config/aarch64/aarch64-simd.md
39389 (aarch64_vcond_internal<mode>): Handle unordered cases.
39390 * config/aarch64/iterators.md (v_cmp_result): New.
39392 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
39393 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
39395 * config/arm/marvell-pj4.md: New file.
39396 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
39397 * config/arm/arm.md (generic_sched): Add marvell_pj4.
39398 (generic_vfp): Likewise.
39399 * config/arm/arm-cores.def: Add marvell-pj4.
39400 * config/arm/arm-tune.md: Regenerate.
39401 * config/arm/arm-tables.opt: Regenerate.
39402 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
39403 * doc/invoke.texi: Document marvell-pj4.
39405 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
39407 * config/aarch64/arm_neon.h: Map scalar types to standard types.
39409 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
39414 * var-tracking.c (negative_power_of_two_p): New.
39415 (global_get_addr_cache, local_get_addr_cache): New.
39416 (get_addr_from_global_cache, get_addr_from_local_cache): New.
39417 (vt_canonicalize_addr): Rewrite using the above. Adjust the
39419 (vt_stack_offset_p): Remove.
39420 (vt_canon_true_dep): Always canonicalize loc's address.
39421 (clobber_overlapping_mems): Make sure we have a MEM.
39422 (local_get_addr_clear_given_value): New.
39423 (val_reset): Clear local cached entries.
39424 (compute_bb_dataflow): Create and release the local cache.
39425 Disable duplicate MEMs clobbering.
39426 (emit_notes_in_bb): Clobber MEMs likewise.
39427 (vt_emit_notes): Create and release the local cache.
39428 (vt_initialize, vt_finalize): Create and release the global
39429 cache, respectively.
39430 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
39432 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
39434 PR libmudflap/53359
39435 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
39436 not found in the symtab.
39438 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
39441 PR rtl-optimization/55547
39442 PR rtl-optimization/53827
39445 * alias.c (offset_overlap_p): New, factored out of...
39446 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
39447 the conservative special case for symbolic constants. Don't
39448 adjust zero sizes on alignment.
39450 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
39452 PR rtl-optimization/52573
39453 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
39454 REG_UNUSED for the same register.
39456 2013-01-17 Richard Biener <rguenther@suse.de>
39457 Marek Polacek <polacek@redhat.com>
39459 PR rtl-optimization/55833
39460 * loop-unswitch.c (unswitch_loops): Move loop verification...
39461 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
39462 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
39463 Set it to true when we're removing a loop from hierarchy tree in
39464 an irreducible region.
39465 (fix_bb_placements): Adjust caller.
39466 (fix_loop_placements): Likewise.
39468 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
39470 * config/avr/builtins.def (DEF_BUILTIN): Factor out
39471 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
39472 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
39473 Remove ID. Adjust comments.
39474 * config/avr/avr-c.c (avr_builtin_name): Remove.
39475 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
39476 * config/avr/avr.c (avr_tolower): New static function.
39477 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
39478 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
39479 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
39482 2013-01-17 Jan Hubicka <jh@suse.cz>
39484 PR tree-optimization/55273
39485 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
39487 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
39490 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
39491 store through atomic_store<mode>_1.
39492 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
39494 2013-01-17 Martin Jambor <mjambor@suse.cz>
39496 PR tree-optimizations/55264
39497 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
39498 for virtual methods.
39499 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
39500 virtual methods before inlining is over.
39501 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
39503 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
39506 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
39508 PR rtl-optimization/56005
39509 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
39510 pending reads for prefetch.
39512 2013-01-16 Ian Bolton <ian.bolton@arm.com>
39514 * config/aarch64/aarch64.md
39515 (*cstoresi_neg_uxtw): New pattern.
39516 (*cmovsi_insn_uxtw): New pattern.
39517 (*<optab>si3_uxtw): New pattern.
39518 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
39519 (*<optab>si3_insn_uxtw): New pattern.
39520 (*bswapsi2_uxtw): New pattern.
39522 2013-01-16 Richard Biener <rguenther@suse.de>
39524 * tree-inline.c (tree_function_versioning): Remove set but
39525 never used variable.
39527 2013-01-16 Richard Biener <rguenther@suse.de>
39529 PR tree-optimization/55964
39530 * tree-flow.h (rename_variables_in_loop): Remove.
39531 (rename_variables_in_bb): Likewise.
39532 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
39533 (copy_loop_before): Adjust and delete update-ssa status.
39534 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
39535 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
39536 (rename_variables_in_loop): Remove.
39537 (slpeel_update_phis_for_duplicate_loop): Likewise.
39538 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
39539 use available cfg machinery instead of duplicating it.
39540 Update PHI nodes and perform poor-mans SSA update here.
39541 (slpeel_tree_peel_loop_to_edge): Adjust.
39543 2013-01-16 Richard Biener <rguenther@suse.de>
39545 PR tree-optimization/54767
39546 PR tree-optimization/53465
39547 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
39548 (vrp_visit_phi_node): For PHI arguments coming via backedges
39549 drop all symbolical range information.
39550 (execute_vrp): Compute backedges.
39552 2013-01-16 Richard Biener <rguenther@suse.de>
39554 * doc/install.texi: Update CLooG and ISL requirements to
39557 2013-01-16 Christian Bruel <christian.bruel@st.com>
39560 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
39561 (broken_move): Handle UNSPECV_SP_SWITCH_B.
39562 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
39564 2013-01-16 DJ Delorie <dj@redhat.com>
39566 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
39567 (UNSPECV_SP_SWITCH_E): New.
39568 (sp_switch_1): Change to an unspec.
39569 (sp_switch_2): Change to an unspec. Don't use post-inc when we
39572 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
39574 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
39575 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
39576 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
39577 (expand_mem_thread_fence): Ditto.
39578 (expand_mem_signal_fence): Ditto.
39579 (expand_atomic_load): Ditto.
39580 (expand_atomic_store): Ditto.
39582 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
39584 PR rtl-optimization/55547
39585 PR rtl-optimization/53827
39588 * alias.c (memrefs_conflict_p): Set sizes to negative after
39591 2013-01-15 Jakub Jelinek <jakub@redhat.com>
39594 * function.c (thread_prologue_and_epilogue_insns): Always
39595 add crtl->drap_reg to set_up_by_prologue.set, even if
39596 stack_realign_drap is false.
39598 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
39600 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
39601 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
39602 *call): Fix indention.
39604 2013-01-15 Tom de Vries <tom@codesourcery.com>
39607 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
39610 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
39612 PR rtl-optimization/55153
39613 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
39615 2013-01-15 Martin Jambor <mjambor@suse.cz>
39617 PR tree-optimization/55920
39618 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
39619 accesses as grp_to_be_debug_replaced.
39621 2013-01-15 Jakub Jelinek <jakub@redhat.com>
39623 PR tree-optimization/55920
39624 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
39625 there is non-useless type conversion needed from debug rhs to lhs,
39626 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
39628 2013-01-15 Joseph Myers <joseph@codesourcery.com>
39629 Mikael Pettersson <mikpe@it.uu.se>
39632 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
39634 (ASM_OUTPUT_CASE_LABEL): Remove.
39635 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
39636 * final.c (shorten_branches): Update alignment of labels before
39637 jump tables if CASE_VECTOR_SHORTEN_MODE.
39639 2013-01-15 Richard Biener <rguenther@suse.de>
39642 * system.h: Do not include gmp.h for building host tools.
39644 2013-01-15 Richard Biener <rguenther@suse.de>
39646 PR middle-end/55882
39647 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
39648 account for bitpos when computing alignment.
39650 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
39652 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
39653 (ix86_target_macros_internal): Likewise.
39655 * config/i386/i386.c (m_CORE2I7): Removed.
39656 (m_CORE_HASWELL): New macro.
39657 (m_CORE_ALL): Likewise.
39658 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
39659 (initial_ix86_arch_features): Likewise.
39660 (processor_target_table): Initializations for Core avx2.
39661 (cpu_names): New names "core-avx2".
39662 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
39663 PROCESSOR_CORE_HASWELL.
39664 (ix86_issue_rate): New case.
39665 (ia32_multipass_dfa_lookahead): Likewise.
39666 (ix86_sched_init_global): Likewise.
39668 * config/i386/i386.h (TARGET_HASWELL): New macro.
39669 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
39670 (processor_type): New PROCESSOR_HASWELL.
39672 2013-01-15 Jakub Jelinek <jakub@redhat.com>
39674 PR tree-optimization/55955
39675 * tree-vect-loop.c (vectorizable_reduction): Give up early on
39676 *SHIFT_EXPR and *ROTATE_EXPR codes.
39678 PR tree-optimization/48766
39679 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
39680 -ftrapv disable -fwrapv.
39682 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
39685 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
39686 etc. to 1 and not to __flash.
39687 Use LL suffix for __INT24_MAX__ with -mint8.
39688 Use ULL suffix for __UINT24_MAX__ with -mint8.
39690 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
39692 * config/avr/avr-arch.h
39693 (struct base_arch_s): Use typedef avr_arch_t instead.
39694 (struct arch_info_s): Use typedef avr_arch_info_t instead.
39695 (struct mcu_type_s): Use typedef avr_mcu_t instead.
39696 * config/avr/avr.c: Same.
39697 * config/avr/avr-devices.c: Same.
39698 * config/avr/driver-avr.c: Same.
39699 * config/avr/gen-avr-mmcu-texi.c: Same.
39700 * config/avr/avr-mcus.def: Adjust comment.
39702 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
39704 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
39705 * config/aarch64/iterators.md (VALLDI): New.
39707 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
39708 Andi Kleen <ak@linux.intel.com>
39711 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
39712 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
39715 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
39717 * config/avr/avr-stdint.h: Remove trailing blanks.
39718 * config/avr/avr-log.h: Same.
39719 * config/avr/avr-arch.h: Same.
39720 * config/avr/avr-devices.c: Same.
39721 * config/avr/avr-dimode.md: Same.
39722 * config/avr/predicates.md: Same.
39723 * config/avr/avr-c.c: Same. And fix typo.
39725 * config/avr/avr-protos.h: Same. And:
39726 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
39727 (init_cumulative_args): Rename to avr_init_cumulative_args.
39728 (expand_prologue): Rename to avr_expand_prologue.
39729 (expand_epilogue): Rename to avr_expand_epilogue.
39730 (adjust_insn_length): Rename to avr_adjust_insn_length.
39731 (notice_update_cc): Rename to avr_notice_update_cc.
39732 (final_prescan_insn): Rename to avr_final_prescan_insn.
39733 * config/avr/avr.c: Same.
39734 * config/avr/avr.h: Same.
39735 * config/avr/avr.md: Remove trailing blanks.
39736 (prologue): Use avr_expand_prologue.
39737 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
39739 2013-01-14 Richard Biener <rguenther@suse.de>
39741 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
39742 verify_location, collect_subblocks): New functions.
39743 (verify_gimple_in_cfg): Verify that locations only reference
39744 BLOCKs in the functions BLOCK tree.
39746 2013-01-14 Richard Biener <rguenther@suse.de>
39748 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
39750 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
39752 (insert_out_of_ssa_copy_on_edge): Likewise.
39753 (rewrite_close_phi_out_of_ssa): Likewise.
39754 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
39756 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
39757 propagated constants.
39758 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
39761 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
39763 * config/avr/avr-modes.def: Add GPL copyright notice.
39765 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
39767 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
39768 MEMMODEL_MASK to determine memory model.
39769 (atomic_store<mode>): Ditto from operands[2].
39770 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
39772 2013-01-13 Jakub Jelinek <jakub@redhat.com>
39775 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
39776 (fold_gimple_assign): Don't call unshare_expr here.
39777 (fold_ctor_reference): Call unshare_expr.
39779 2013-01-13 Terry Guo <terry.guo@arm.com>
39781 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
39782 * doc/fragments.texi: Document MULTILIB_REUSE.
39783 * gcc.c (multilib_reuse): New internal spec.
39784 (set_multilib_dir): Also search multilib from multilib_reuse.
39785 * genmultilib (tmpmultilib3): Refactor code.
39786 (tmpmultilib4): Ditto.
39787 (multilib_reuse): New multilib argument.
39789 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
39791 * Makefile.in: Update copyright.
39793 2013-01-12 Tom de Vries <tom@codesourcery.com>
39795 PR middle-end/55890
39796 * calls.c (expand_call): Check if arg_nr is valid.
39798 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
39800 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
39801 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
39802 documentation. Add missing '__' in front of
39803 __builtin_ia32_packssdw256.
39805 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39808 * config/s390/s390.c (s390_preferred_reload_class): Do not return
39809 NO_REGS for larl operands.
39810 (s390_reload_larl_operand): Use s390_load_address instead of
39813 2013-01-11 Richard Biener <rguenther@suse.de>
39815 * tree-cfg.c (verify_node_sharing_1): Split out from ...
39816 (verify_node_sharing): ... here.
39817 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
39819 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
39821 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
39822 Substitute TREECHECKING.
39823 * configure: Regenerate.
39824 * Makefile.in (TREECHECKING): New.
39826 2013-01-11 Richard Guenther <rguenther@suse.de>
39828 PR tree-optimization/44061
39829 * tree-vrp.c (extract_range_basic): Compute zero as
39830 value-range for __builtin_constant_p of function parameters.
39832 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
39834 Update copyright years.
39836 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
39838 PR rtl-optimization/55672
39839 * lra-eliminations.c (mark_not_eliminable): Permit addition with
39840 const to be eliminable.
39842 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
39844 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
39845 * configure: Regenerate.
39847 2013-01-10 Richard Biener <rguenther@suse.de>
39849 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
39851 2013-01-10 Richard Biener <rguenther@suse.de>
39854 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
39855 locations for virtual PHI arguments.
39856 (rewrite_update_phi_arguments): Likewise.
39858 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
39860 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
39863 2013-01-10 Jakub Jelinek <jakub@redhat.com>
39865 PR tree-optimization/55921
39866 * tree-complex.c (expand_complex_asm): New function.
39867 (expand_complex_operations_1): Call it for GIMPLE_ASM.
39869 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39872 * config/s390/s390.c (s390_symref_operand_p)
39873 (s390_loadrelative_operand_p): Merge the two functions.
39874 (s390_check_qrst_address, print_operand_address): Add parameters
39875 to s390_loadrelative_operand_p invokation.
39876 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
39877 (s390_reload_larl_operand, s390_secondary_reload): Use
39878 s390_loadrelative_operand_p instead of s390_symref_operand_p.
39879 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
39881 2013-01-09 Mike Stump <mikestump@comcast.net>
39883 * dse.c (record_store): Remove unnecessary assert.
39885 2013-01-09 Jan Hubicka <jh@suse.cz>
39887 PR tree-optimization/55569
39888 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
39889 * cfgloop.h (scale_loop_profile): Likewise.
39891 2013-01-09 Jan Hubicka <jh@suse.cz>
39894 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
39896 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
39898 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
39900 PR middle-end/55114
39901 * expr.h (maybe_emit_group_store): Declare.
39902 * expr.c (maybe_emit_group_store): New function.
39903 * builtins.c (expand_builtin_int_roundingfn): Call it.
39904 (expand_builtin_int_roundingfn_2): Likewise.
39906 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
39908 PR rtl-optimization/55829
39909 * lra-constraints.c (match_reload): Add code for absent output.
39910 (curr_insn_transform): Add code for reloads of matched inputs
39913 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
39915 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
39916 attribute of movddup insn to DF.
39917 (*vec_interleave_lowv2df): Ditto.
39918 (vec_dupv2df): Ditto.
39920 2013-01-09 Jan Hubicka <jh@suse.cz>
39922 PR tree-optimiation/55875
39923 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
39924 EVERY_ITERATION parameter.
39925 (number_of_iterations_exit): Check if exit is executed every iteration.
39926 (idx_infer_loop_bounds): Similarly here.
39927 (n_of_executions_at_most): Simplify
39928 to only test for cases where statement is dominated by the
39929 particular bound; handle correctly the "postdominance" test.
39930 (scev_probably_wraps_p): Use max loop iterations info
39931 as a global bound first.
39933 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
39934 Nick Clifton <nickc@redhat.com>
39936 * config/v850/v850.md (cbranchsf4): New pattern.
39937 (cstoresf4): New pattern.
39938 (cbranchdf4): New pattern.
39939 (cstoredf4): New pattern.
39940 (movsicc): Disallow floating point comparisons.
39941 (cmpsf_le_insn): Fix order of operators.
39942 (cmpsf_lt_insn): Likewise.
39943 (cmpsf_eq_insn): Likewise.
39944 (cmpdf_le_insn): Likewise.
39945 (cmpdf_lt_insn): Likewise.
39946 (cmpdf_eq_insn): Likewise.
39947 (cmpsf_ge_insn): Use LE comparison.
39948 (cmpdf_ge_insn): Likewise.
39949 (cmpsf_gt_insn): Use LT comparison.
39950 (cmpdf_gt_insn): Likewise.
39951 (cmpsf_ne_insn): Delete pattern.
39952 (cmpdf_ne_insn): Delete pattern.
39953 * config/v850/v850.c (v850_gen_float_compare): Use
39954 gen_cmpdf_eq_insn for NE comparison.
39955 (v850_float_z_comparison_operator)
39956 (v850_float_nz_comparison_operator): Move from here ...
39957 * config/v850/predicates.md: ... to here. Move GT and GE
39958 comparisons into v850_float_z_comparison_operator.
39959 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
39961 (v850_float_nz_comparison_operator): Likewise.
39963 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39965 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
39966 with calls to gen_insvsi/gen_insvdi.
39968 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
39970 * config/i386/i386.c (initial_ix86_tune_features): Set up
39971 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
39973 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
39974 Jakub Jelinek <jakub@redhat.com>
39976 PR tree-optimization/48189
39977 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
39978 If nitercst is 0, don't predict the exit edge.
39980 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
39982 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
39983 in asm_fprintf with reg_names.
39984 (aarch64_print_operand_address): Likewise.
39985 (aarch64_return_addr): Likewise.
39986 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
39988 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39990 * config/pa/pa.h (VAL_U6_BITS_P): Define.
39991 (INT_U6_BITS): Likewise.
39992 * config/pa/predicates.md (uint6_operand): New predicate.
39993 (shift5_operand, shift6_operand): Likewise.
39994 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
39996 (lshrdi3): Use shift6_operand.
39997 (shrpsi4, shrpdi4): New insn patterns.
39998 (extzv): Delete expander.
39999 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
40000 predicates in unamed zero extract patterns. Tighten common constraint.
40001 (extv): Delete expander.
40002 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
40003 predicates in unamed sign extract patterns. Tighten common constraint.
40004 (insv): Delete expander.
40005 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
40006 predicates in unamed insert patterns. Tighten common constraint.
40007 Change uint32_operand predicate to uint6_operand predicate in unamed
40008 DImode pattern to insert constant values of type 1...1xxxx.
40010 2013-01-04 Jan Hubicka <jh@suse.cz>
40012 PR tree-optimization/55823
40013 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
40016 2013-01-08 Jakub Jelinek <jakub@redhat.com>
40017 Uros Bizjak <ubizjak@gmail.com>
40019 PR rtl-optimization/55845
40020 * df-problems.c (can_move_insns_across): Stop scanning at
40021 volatile_insn_p source instruction or give up if
40022 across_from .. across_to range contains any volatile_insn_p
40025 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
40027 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
40028 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
40030 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
40031 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
40033 2013-01-08 Jakub Jelinek <jakub@redhat.com>
40036 * asan.c (asan_clear_shadow): New function.
40037 (asan_emit_stack_protection): Use it.
40039 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
40041 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
40042 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
40043 with tab instead of space.
40045 2013-01-08 Nick Clifton <nickc@redhat.com>
40047 * config/rl78/rl78.c (rl78_expand_prologue): Always select
40048 register bank 0 at the start of an interrupt handler.
40049 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
40052 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
40054 * config/aarch64/aarch64-simd.md
40055 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
40056 (aarch64_simd_bsl): Likewise.
40057 (aarch64_vcond_internal<mode>): Likewise.
40058 (vcond<mode><mode>): Likewise.
40059 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
40060 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
40062 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
40064 * config/aarch64/aarch64-builtins.c
40065 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
40067 2013-01-08 Martin Jambor <mjambor@suse.cz>
40070 * tree-sra.c (analyze_access_subtree): Return true also after
40071 potentially creating a debug-only replacement.
40073 2013-01-08 Jakub Jelinek <jakub@redhat.com>
40075 PR middle-end/55890
40076 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
40078 PR tree-optimization/54120
40079 * tree-vrp.c (range_fits_type_p): Don't allow
40080 src_precision < precision from signed vr to unsigned_p
40081 if vr->min or vr->max is negative.
40082 (simplify_float_conversion_using_ranges): Test can_float_p
40083 against CODE_FOR_nothing.
40085 2013-01-08 Jakub Jelinek <jakub@redhat.com>
40086 Richard Biener <rguenther@suse.de>
40088 PR middle-end/55851
40089 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
40090 types instead of just INTEGER_TYPE types.
40092 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
40094 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
40097 2013-01-07 Steve Ellcey <sellcey@mips.com>
40100 * config/mips/mips.opt: Change mad to mmad to match documentation.
40102 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
40105 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
40106 .progmemx.data now.
40108 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
40111 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
40112 (avr_addrspace_t): Add .section_name field.
40113 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
40115 (avr_addrspace): Same. Initialize .section_name. Remove last
40116 NULL entry. Put __memx into .progmemx.data.
40117 (progmem_section_prefix): Remove.
40118 (avr_asm_init_sections): No need to initialize progmem_section.
40119 (avr_asm_named_section): Use avr_addrspace[].section_name to get
40120 section name prefix.
40121 (avr_asm_select_section): Ditto. And use get_unnamed_section to
40122 retrieve the progmem section.
40123 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
40124 boundary to run over avr_addrspace[].
40125 (avr_register_target_pragmas): Ditto.
40127 2013-01-06 Jakub Jelinek <jakub@redhat.com>
40129 * varasm.c (output_constant_def_contents): For asan_protect_global
40130 protected strings, adjust DECL_ALIGN if needed, before testing for
40132 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
40133 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
40135 (output_object_block): For asan protected decls, emit asan padding
40136 after their contents.
40137 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
40138 (asan_finish_file): Test it here instead.
40140 2013-01-07 Nick Clifton <nickc@redhat.com>
40141 Matthias Klose <doko@debian.org>
40142 Doug Kwan <dougkwan@google.com>
40143 H.J. Lu <hongjiu.lu@intel.com>
40146 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
40148 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
40150 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
40152 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
40154 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
40156 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
40159 * doc/install.texi (Cross-Compiler-Specific Options): Document
40162 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
40164 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
40165 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
40166 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
40167 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
40168 vqmovun_high_s64): Fix source operand number and update copyright.
40170 2013-01-07 Richard Biener <rguenther@suse.de>
40172 PR middle-end/55890
40173 * gimple.h (gimple_call_builtin_p): New overload.
40174 * gimple.c (validate_call): New function.
40175 (gimple_call_builtin_p): Likewise.
40176 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
40177 Use gimple_call_builtin_p.
40178 (find_func_clobbers): Likewise.
40179 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
40180 (strlen_optimize_stmt): Likewise.
40182 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
40184 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
40185 (vld1q_dup_*): Likewise.
40186 (vld1_*): Likewise.
40187 (vld1q_*): Likewise.
40188 (vld1_lane_*): Likewise.
40189 (vld1q_lane_*): Likewise.
40191 2013-01-07 Richard Biener <rguenther@suse.de>
40193 * lto-streamer.h (LTO_minor_version): Bump to 2.
40195 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
40197 * config/aarch64/aarch64-protos.h
40198 (aarch64_const_double_zero_rtx_p): Rename to...
40199 (aarch64_float_const_zero_rtx_p): ...this.
40200 (aarch64_float_const_representable_p): New.
40201 (aarch64_output_simd_mov_immediate): Likewise.
40202 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
40203 move immediate case.
40204 * config/aarch64/aarch64.c
40205 (aarch64_const_double_zero_rtx_p): Rename to...
40206 (aarch64_float_const_zero_rtx_p): ...this.
40207 (aarch64_print_operand): Allow printing of new constants.
40208 (aarch64_valid_floating_const): New.
40209 (aarch64_legitimate_constant_p): Check for valid floating-point
40211 (aarch64_simd_valid_immediate): Likewise.
40212 (aarch64_vect_float_const_representable_p): New.
40213 (aarch64_float_const_representable_p): Likewise.
40214 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
40215 (aarch64_output_simd_mov_immediate): New.
40216 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
40217 (*movdf_aarch64): Likewise.
40218 * config/aarch64/constraints.md (Ufc): New.
40219 (Y): call aarch64_float_const_zero_rtx.
40220 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
40222 2013-01-07 Richard Biener <rguenther@suse.de>
40224 PR tree-optimization/55888
40225 PR tree-optimization/55862
40226 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
40227 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
40228 not if it is contained therein.
40230 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
40232 * config/avr/t-avr: Typo.
40234 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
40237 * config/avr/t-avr: Don't automatically rebuild
40238 $(srcdir)/config/avr/t-multilib
40239 $(srcdir)/config/avr/avr-tables.opt
40240 $(srcdir)/doc/avr-mmcu.texi
40241 (avr-mcus): New phony target to build them on request.
40242 (s-avr-mlib, s-avr-mmcu-texi): Remove.
40243 * avr/avr-mcus.def: Adjust comments.
40245 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
40247 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
40249 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
40251 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
40253 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
40255 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
40257 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
40259 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
40260 to generate profiling.
40261 * config/rs6000/aix64.h (LIB_SPEC): Same.
40263 2013-01-04 Andrew Pinski <apinski@cavium.com>
40265 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
40267 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
40269 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
40271 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
40273 (ix86_expand_move): Ditto.
40274 (ix86_zero_extend_to_Pmode): Ditto.
40275 (ix86_expand_call): Ditto.
40276 (ix86_expand_special_args_builtin): Ditto.
40277 (ix86_expand_builtin): Ditto.
40279 2013-01-04 Richard Biener <rguenther@suse.de>
40281 PR tree-optimization/55862
40282 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
40283 translating them through PHI nodes.
40285 2013-01-04 Martin Jambor <mjambor@suse.cz>
40287 PR tree-optimization/55755
40288 * tree-sra.c (sra_modify_assign): Do not check that an access has no
40289 children when trying to avoid producing a VIEW_CONVERT_EXPR.
40291 2013-01-04 Marek Polacek <polacek@redhat.com>
40293 PR middle-end/55859
40294 * opts.c (default_options_optimization): Clarify error message.
40296 2013-01-04 Richard Biener <rguenther@suse.de>
40298 PR middle-end/55863
40299 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
40302 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
40305 * config/pa/pa.md (movsi): Revert previous change.
40306 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
40309 2013-01-03 Richard Henderson <rth@redhat.com>
40311 * config/i386/i386.c (ix86_expand_move): Always assign to op1
40312 after eliminating TLS symbols.
40314 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
40317 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
40318 * graphite-poly.c (debug_gmp_value): Likewise.
40320 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
40323 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
40324 selected code model, define __code_mode_small__, __code_model_medium__,
40325 __code_model_large__, __code_model_32__ or __code_model_kernel__.
40326 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
40327 xchg temporary register with %k. Declare temporary register as
40329 [__x86_64__]: For medium and large code models, preserve %rbx register.
40331 2013-01-03 Richard Biener <rguenther@suse.de>
40333 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
40334 (dump_subscript): Adjust.
40335 (finalize_ddr_dependent): Do not dump redundant info.
40336 (analyze_siv_subscript): Adjust.
40337 (subscript_dependence_tester): Likewise.
40338 (compute_affine_dependence): Likewise.
40340 2013-01-03 Richard Biener <rguenther@suse.de>
40343 2013-01-03 Richard Biener <rguenther@suse.de>
40345 PR tree-optimization/55857
40346 * tree-vect-stmts.c (vectorizable_load): Do not setup
40347 re-alignment for invariant loads.
40349 2013-01-02 Richard Biener <rguenther@suse.de>
40351 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
40352 invariant load do not generate a vector load from the scalar location.
40354 2013-01-03 Richard Biener <rguenther@suse.de>
40356 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
40357 for not vectorizing.
40358 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
40359 not build INDIRECT_REFs, call get_name once only.
40360 (vect_create_data_ref_ptr): Likewise. Dump base object kind
40361 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
40363 2013-01-03 Richard Biener <rguenther@suse.de>
40365 PR tree-optimization/55857
40366 * tree-vect-stmts.c (vectorizable_load): Do not setup
40367 re-alignment for invariant loads.
40369 2013-01-03 Richard Biener <rguenther@suse.de>
40372 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
40373 prefer a built-in decl.
40375 2013-01-03 Jakub Jelinek <jakub@redhat.com>
40377 * gcc.c (process_command): Update copyright notice dates.
40378 * gcov.c (print_version): Likewise.
40379 * gcov-dump.c (print_version): Likewise.
40381 PR rtl-optimization/55838
40382 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
40383 iv0.step, iv1.step and step.
40385 2013-01-03 Jakub Jelinek <jakub@redhat.com>
40386 Marc Glisse <marc.glisse@inria.fr>
40388 PR tree-optimization/55832
40389 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
40390 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
40391 integer_{one,zero}_node.
40393 2013-01-03 Jakub Jelinek <jakub@redhat.com>
40396 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
40397 * var-tracking.c (reverse_op): Don't add reverse ops to
40398 VALUEs that have already
40399 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
40401 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
40403 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
40405 2013-01-02 Teresa Johnson <tejohnson@google.com>
40407 * dumpfile.c (dump_loc): Print filename with location.
40408 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
40409 new location_t parameter to emit complete unroll message with
40410 new dump framework.
40411 (canonicalize_loop_induction_variables): Compute loops location
40412 and pass to try_unroll_loop_completely.
40413 * loop-unroll.c (report_unroll_peel): New function.
40414 (peel_loops_completely): Use new dump format with location
40415 for main dumpfile message, and invoke report_unroll_peel on success.
40416 (decide_unrolling_and_peeling): Ditto.
40417 (decide_peel_once_rolling): Remove old dumpfile message subsumed
40418 by report_unroll_peel.
40419 (decide_peel_completely): Ditto.
40420 (decide_unroll_constant_iterations): Ditto.
40421 (decide_unroll_runtime_iterations): Ditto.
40422 (decide_peel_simple): Ditto.
40423 (decide_unroll_stupid): Ditto.
40424 * cfgloop.c (get_loop_location): New function.
40425 * cfgloop.h (get_loop_location): Declare.
40427 2013-01-02 Sriraman Tallam <tmsriram@google.com>
40429 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
40432 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
40434 PR middle-end/55198
40435 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
40436 BLKmode objects when EXPAND_MEMORY is specified.
40438 2013-01-02 Sriraman Tallam <tmsriram@google.com>
40440 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
40442 (fold_builtin_cpu): Do not share cpu model decls across statements.
40444 2013-01-02 Jason Merrill <jason@redhat.com>
40447 * tree.c (build_array_type_1): Revert earlier change.
40449 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
40451 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
40453 * config/aarch64/aarch64-tune.md: Re-generate.
40455 2013-01-02 Richard Biener <rguenther@suse.de>
40457 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
40458 invariant load do not generate a vector load from the scalar location.
40460 2013-01-02 Richard Biener <rguenther@suse.de>
40463 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
40464 * configure: Regenerate.
40466 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
40468 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
40469 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
40470 (expand_builtin_int_roundingfn_2): Keep the original target around
40471 for the fallback case.
40473 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
40475 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
40476 to be clear for sign changes.
40478 2013-01-01 Jan Hubicka <jh@suse.cz>
40480 * ipa-inline-analysis.c: Fix formatting.
40482 2013-01-01 Jakub Jelinek <jakub@redhat.com>
40484 PR tree-optimization/55831
40485 * tree-vect-loop.c (get_initial_def_for_induction): Use
40486 gsi_after_labels instead of gsi_start_bb.
40488 Copyright (C) 2013 Free Software Foundation, Inc.
40490 Copying and distribution of this file, with or without modification,
40491 are permitted in any medium without royalty provided the copyright
40492 notice and this notice are preserved.