i386-common.c (OPTION_MASK_ISA_SHA_SET): New.
[gcc.git] / gcc / ChangeLog
1 2013-12-31 Alexander Ivchenko <alexander.ivchenko@intel.com>
2 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3 Sergey Lega <sergey.s.lega@intel.com>
4 Anna Tikhonova <anna.tikhonova@intel.com>
5 Ilya Tocar <ilya.tocar@intel.com>
6 Andrey Turetskiy <andrey.turetskiy@intel.com>
7 Ilya Verbin <ilya.verbin@intel.com>
8 Kirill Yukhin <kirill.yukhin@intel.com>
9 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10
11 * common/config/i386/i386-common.c (OPTION_MASK_ISA_SHA_SET): New.
12 (OPTION_MASK_ISA_SHA_UNSET): Ditto.
13 (ix86_handle_option): Handle OPT_msha.
14 * config.gcc (extra_headers): Add shaintrin.h.
15 * config/i386/cpuid.h (bit_SHA): New.
16 * config/i386/driver-i386.c (host_detect_local_cpu): Detect SHA
17 instructions.
18 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
19 OPTION_MASK_ISA_SHA.
20 * config/i386/i386.c (ix86_target_string): Add -msha.
21 (ix86_option_override_internal): Add PTA_SHA.
22 (ix86_valid_target_attribute_inner_p): Handle OPT_msha.
23 (enum ix86_builtins): Add IX86_BUILTIN_SHA1MSG1,
24 IX86_BUILTIN_SHA1MSG2, IX86_BUILTIN_SHA1NEXTE, IX86_BUILTIN_SHA1RNDS4,
25 IX86_BUILTIN_SHA256MSG1, IX86_BUILTIN_SHA256MSG2,
26 IX86_BUILTIN_SHA256RNDS2.
27 (bdesc_args): Add BUILTINS defined above.
28 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_sha1msg1,
29 __builtin_ia32_sha1msg2, __builtin_ia32_sha1nexte,
30 __builtin_ia32_sha1rnds4, __builtin_ia32_sha256msg1,
31 __builtin_ia32_sha256msg2, __builtin_ia32_sha256rnds2.
32 (ix86_expand_args_builtin): Handle V4SI_FTYPE_V4SI_V4SI_V4SI, add
33 warning for CODE_FOR_sha1rnds4.
34 * config/i386/i386.h (TARGET_SHA): New.
35 (TARGET_SHA_P): Ditto.
36 * config/i386/i386.opt (-msha): Document it.
37 * config/i386/immintrin.h: Add shaintrin.h.
38 * config/i386/shaintrin.h: New.
39 * config/i386/sse.md (unspec): Add UNSPEC_SHA1MSG1, UNSPEC_SHA1MSG2,
40 UNSPEC_SHA1NEXTE, UNSPEC_SHA1RNDS4, UNSPEC_SHA256MSG1,
41 UNSPEC_SHA256MSG2, UNSPEC_SHA256RNDS2.
42 (sha1msg1): New.
43 (sha1msg2): Ditto.
44 (sha1nexte): Ditto.
45 (sha1rnds4): Ditto.
46 (sha256msg1): Ditto.
47 (sha256msg2): Ditto.
48 (sha256rnds2): Ditto.
49 * doc/invoke.texi: Add -msha.
50
51 2013-12-31 Alexander Ivchenko <alexander.ivchenko@intel.com>
52 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
53 Sergey Lega <sergey.s.lega@intel.com>
54 Anna Tikhonova <anna.tikhonova@intel.com>
55 Ilya Tocar <ilya.tocar@intel.com>
56 Andrey Turetskiy <andrey.turetskiy@intel.com>
57 Ilya Verbin <ilya.verbin@intel.com>
58 Kirill Yukhin <kirill.yukhin@intel.com>
59 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
60
61 * config.gcc (extra_headers): Add avx512fintrin.h, avx512cdintrin.h,
62 avx512erintrin.h, avx512pfintrin.h.
63 * config/i386/avx512cdintrin.h: New file.
64 * config/i386/avx512erintrin.h: New file.
65 * config/i386/avx512fintrin.h: New file.
66 * config/i386/avx512pfintrin.h: New file.
67 * config/i386/i386-builtin-types.def: Add V16UHI, V32SF, V16SF, V8DF,
68 V8DI, V16SI, V64QI, PV8DF, PV8DI, PV16SI, PV16SF, PCV8DF, PCV16SF,
69 PCV8DI, PCV16SI, V16QI_FTYPE_V16SI, V8DF_FTYPE_V8SI, V8DF_FTYPE_V8DF,
70 V8HI_FTYPE_V8DI, V16SF_FTYPE_V16SF, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
71 V8SF_FTYPE_V8DF_V8SF_QI, V16HI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
72 V16SI_FTYPE_INT, V8DF_FTYPE_DOUBLE, V8DI_FTYPE_INT64,
73 V16SF_FTYPE_V4SF, V8DF_FTYPE_V4DF, V8DI_FTYPE_V4DI, V16QI_FTYPE_V8DI,
74 UINT_FTYPE_V4SF, UINT64_FTYPE_V4SF, UINT_FTYPE_V2DF,
75 UINT64_FTYPE_V2DF, V16SI_FTYPE_V16SI, V16SI_FTYPE_V16SI_V16SI_HI,
76 V8DI_FTYPE_V8DI, V8DI_FTYPE_V8DI_V8DI_QI, V16SI_FTYPE_PV4SI,
77 V16SF_FTYPE_PV4SF, V8DI_FTYPE_PV4DI, V8DF_FTYPE_PV4DF,
78 V8UHI_FTYPE_V8UHI, V8USI_FTYPE_V8USI, V2DF_FTYPE_V2DF_UINT,
79 V2DF_FTYPE_V2DF_UINT64, V4DF_FTYPE_V8DF_INT,
80 V4DF_FTYPE_V8DF_INT_V4DF_QI, V8DF_FTYPE_V8DF_V8DI,
81 V4SF_FTYPE_V4SF_UINT, V4SF_FTYPE_V4SF_UINT64,
82 INT_FTYPE_V4SF_V4SF_INT_INT, INT_FTYPE_V2DF_V2DF_INT_INT,
83 V16SF_FTYPE_V16SF_INT, V4SF_FTYPE_V16SF_INT,
84 V4SF_FTYPE_V16SF_INT_V4SF_QI, V16SF_FTYPE_V16SF_V16SF,
85 V16SF_FTYPE_V16SF_V16SI, V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI,
86 V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI, V8DF_FTYPE_V8DF_INT_V8DF_QI,
87 V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI_INT, V8DF_FTYPE_V8DF_V8DF,
88 V16SF_FTYPE_V16SF_V16SF_INT, V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI,
89 V16SF_FTYPE_V16SF_INT_V16SF_HI, V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI,
90 V16SF_FTYPE_V16SF_V16SF_V16SI_INT,
91 V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
92 V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI_INT,
93 V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI,
94 V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI_INT,
95 V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI,
96 V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI_INT, V16SF_FTYPE_V16SF_V4SF_INT,
97 V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI, V16HI_FTYPE_V16SF_INT,
98 V16HI_FTYPE_V16SF_INT_V16HI_HI, V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI,
99 V16SI_FTYPE_V16SI_V4SI, V16SI_FTYPE_V16SI_V4SI_INT,
100 V4SI_FTYPE_V16SI_INT, V4SI_FTYPE_V16SI_INT_V4SI_QI,
101 V16SI_FTYPE_V16SI_V16SI, V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI,
102 V16SI_FTYPE_V16SI_SI, V16SI_FTYPE_V16SI_INT,
103 V16SI_FTYPE_V16SI_V4SI_V16SI_HI, V16SI_FTYPE_V16SI_INT_V16SI_HI,
104 V8DI_FTYPE_V8DI_V8DI, V16SI_FTYPE_V8DF_V8DF,
105 V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI, V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI,
106 V8DI_FTYPE_V8DI_V2DI, V4DI_FTYPE_V8DI_INT,
107 V4DI_FTYPE_V8DI_INT_V4DI_QI, V8DI_FTYPE_V8DI_V2DI_V8DI_QI,
108 V8DI_FTYPE_V8DI_INT_V8DI_QI, VOID_FTYPE_PDOUBLE_V8DF,
109 VOID_FTYPE_PFLOAT_V16SF, VOID_FTYPE_PV8DI_V8DI, HI_FTYPE_HI,
110 HI_FTYPE_HI_HI, HI_FTYPE_HI_INT, QI_FTYPE_V8DI_V8DI,
111 QI_FTYPE_V8DI_V8DI_QI, HI_FTYPE_V16SI_V16SI, HI_FTYPE_V16SI_V16SI_HI,
112 QI_FTYPE_V8DI_V8DI_INT, QI_FTYPE_V8DI_V8DI_INT_QI,
113 HI_FTYPE_V16SI_V16SI_INT, HI_FTYPE_V16SI_V16SI_INT ,HI,
114 QI_FTYPE_V8DF_V8DF_INT, QI_FTYPE_V8DF_V8DF_INT_QI,
115 QI_FTYPE_V8DF_V8DF_INT_QI_INT, HI_FTYPE_V16SF_V16SF_INT,
116 HI_FTYPE_V16SF_V16SF_INT_HI, HI_FTYPE_V16SF_V16SF_INT_HI_INT,
117 QI_FTYPE_V2DF_V2DF_INT, QI_FTYPE_V2DF_V2DF_INT_QI,
118 QI_FTYPE_V2DF_V2DF_INT_QI_INT, QI_FTYPE_V4SF_V4SF_INT,
119 QI_FTYPE_V4SF_V4SF_INT_QI, QI_FTYPE_V4SF_V4SF_INT_QI_INT,
120 V16SI_FTYPE_HI, V8DI_FTYPE_QI, V8DF_FTYPE_V8DF_V8DF_V8DF,
121 V16SF_FTYPE_V16SF_V16SF_V16SF, V8DF_FTYPE_V8DF_V8DF_QI,
122 V8DF_FTYPE_V8SF_V8DF_QI, V8DF_FTYPE_V8SI_V8DF_QI,
123 V8DI_FTYPE_V8SI_V8DI_QI, V8DI_FTYPE_V8HI_V8DI_QI,
124 V8DI_FTYPE_V16QI_V8DI_QI, V8DI_FTYPE_V8DI_V8DI_V8DI_QI,
125 V8DF_FTYPE_V8DI_V8DF_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF_QI,
126 V8DF_FTYPE_V8DF_V8DI_V8DF_QI, V8DF_FTYPE_V8DF_V8DF_V8DF_QI,
127 V16SI_FTYPE_V16SI_V16SI_V16SI_HI, V2DF_FTYPE_V2DF_V2DF_V2DF_QI,
128 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V16SF_FTYPE_V16SF_V16SF_HI,
129 V16SF_FTYPE_V16SI_V16SF_HI, V16SF_FTYPE_V16SF_V16SF_V16SF_HI,
130 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SF_FTYPE_V16SI_V16SF_V16SF_HI,
131 V16SF_FTYPE_V16SF_V16SI_V16SF_HI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
132 V4SF_FTYPE_V4SF_V4SF_V4SF_QI, V16SF_FTYPE_V4SF_V16SF_HI,
133 V8DF_FTYPE_V4DF_V8DF_QI, V8DF_FTYPE_V2DF_V8DF_QI,
134 V16SI_FTYPE_V4SI_V16SI_HI, V16SI_FTYPE_SI_V16SI_HI,
135 V16SI_FTYPE_V16HI_V16SI_HI, V16SI_FTYPE_V16QI_V16SI_HI,
136 V8SI_FTYPE_V8DF_V8SI_QI, V8DI_FTYPE_V4DI_V8DI_QI,
137 V8DI_FTYPE_V2DI_V8DI_QI, V8DI_FTYPE_DI_V8DI_QI,
138 V16SF_FTYPE_PCV16SF_V16SF_HI, V8DF_FTYPE_PCV8DF_V8DF_QI,
139 V16SI_FTYPE_PCV16SI_V16SI_HI, V8DI_FTYPE_PCV8DI_V8DI_QI,
140 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI,
141 V16QI_FTYPE_V16SI_V16QI_HI, V16HI_FTYPE_V16SI_V16HI_HI,
142 V8SI_FTYPE_V8DI_V8SI_QI, V8HI_FTYPE_V8DI_V8HI_QI,
143 V16QI_FTYPE_V8DI_V16QI_QI, VOID_FTYPE_PV8DF_V8DF_QI,
144 VOID_FTYPE_PV16SF_V16SF_HI, VOID_FTYPE_PV8DI_V8DI_QI,
145 VOID_FTYPE_PV16SI_V16SI_HI, VOID_FTYPE_PDOUBLE_V2DF_QI,
146 VOID_FTYPE_PFLOAT_V4SF_QI, V16SI_FTYPE_V16SF_V16SI_HI,
147 V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI,
148 V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI, V8DI_FTYPE_V8DI_V8DI_V8DI,
149 V16SI_FTYPE_V16SI_V16SI_V16SI, V8DF_FTYPE_V8DF_V8DI_V8DF,
150 V16SF_FTYPE_V16SF_V16SI_V16SF, V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI,
151 V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI, V8DI_FTYPE_V16SI_V16SI_V8DI_QI,
152 UINT64_FTYPE_V2DF_INT, UINT64_FTYPE_V4SF_INT, UINT_FTYPE_V2DF_INT,
153 UINT_FTYPE_V4SF_INT, INT64_FTYPE_V2DF_INT, INT64_FTYPE_V4SF_INT,
154 INT_FTYPE_V2DF_INT, INT_FTYPE_V4SF_INT, V2DF_FTYPE_V2DF_UINT64_INT,
155 V4SF_FTYPE_V4SF_UINT64_INT, V4SF_FTYPE_V4SF_UINT_INT,
156 V2DF_FTYPE_V2DF_INT64_INT, V4SF_FTYPE_V4SF_INT64_INT,
157 V4SF_FTYPE_V4SF_INT_INT, V16SI_FTYPE_V16SF_V16SI_HI_INT,
158 V16SF_FTYPE_V16SI_V16SF_HI_INT, V16SF_FTYPE_V16SF_V16SF_HI_INT,
159 V16SF_FTYPE_V16HI_V16SF_HI_INT, V8SI_FTYPE_V8DF_V8SI_QI_INT,
160 V8SF_FTYPE_V8DF_V8SF_QI_INT, V8DF_FTYPE_V8DF_V8DF_QI_INT,
161 V8DF_FTYPE_V8SF_V8DF_QI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF_HI_INT,
162 V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT, V4SF_FTYPE_V4SF_V4SF_V4SF_QI_INT,
163 V4SF_FTYPE_V4SF_V2DF_V4SF_QI_INT, V2DF_FTYPE_V2DF_V2DF_V2DF_QI_INT,
164 V2DF_FTYPE_V2DF_V4SF_V2DF_QI_INT, V2DF_FTYPE_V2DF_V2DF_V2DF_INT,
165 V16SF_FTYPE_V16SF_INT_V16SF_HI_INT, V8DF_FTYPE_V8DF_INT_V8DF_QI_INT,
166 V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI_INT,
167 V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI_INT, V8DI_FTYPE_V8DI_SI_V8DI_V8DI,
168 V16SF_FTYPE_V16SF_PCFLOAT_V16SI_HI_INT,
169 V16SF_FTYPE_V16SF_PCFLOAT_V8DI_HI_INT,
170 V8DF_FTYPE_V8DF_PCDOUBLE_V8SI_QI_INT,
171 V8DF_FTYPE_V8DF_PCDOUBLE_V16SI_QI_INT,
172 V8SF_FTYPE_V8SF_PCFLOAT_V8DI_QI_INT,
173 V8DF_FTYPE_V8DF_PCDOUBLE_V8DI_QI_INT,
174 V16SI_FTYPE_V16SI_PCINT_V16SI_HI_INT,
175 V16SI_FTYPE_V16SI_PCINT_V8DI_HI_INT,
176 V8DI_FTYPE_V8DI_PCINT64_V8SI_QI_INT,
177 V8DI_FTYPE_V8DI_PCINT64_V16SI_QI_INT,
178 V8SI_FTYPE_V8SI_PCINT_V8DI_QI_INT,
179 V8DI_FTYPE_V8DI_PCINT64_V8DI_QI_INT,
180 VOID_FTYPE_PFLOAT_HI_V16SI_V16SF_INT,
181 VOID_FTYPE_PDOUBLE_QI_V8SI_V8DF_INT,
182 VOID_FTYPE_PFLOAT_QI_V8DI_V8SF_INT,
183 VOID_FTYPE_PDOUBLE_QI_V8DI_V8DF_INT,
184 VOID_FTYPE_PINT_HI_V16SI_V16SI_INT,
185 VOID_FTYPE_PLONGLONG_QI_V8SI_V8DI_INT,
186 VOID_FTYPE_PINT_QI_V8DI_V8SI_INT,
187 VOID_FTYPE_PLONGLONG_QI_V8DI_V8DI_INT,
188 VOID_FTYPE_HI_V16SI_PCINT_INT_INT, VOID_FTYPE_QI_V8DI_PCINT_INT_INT.
189 (ALIAS): Add DEF_FUNCTION_TYPE_ALIAS (V16SI_FTYPE_V8DF_V8DF, ROUND).
190 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_ADDPD512,
191 IX86_BUILTIN_ADDPS512, IX86_BUILTIN_ADDSD_MASK,
192 IX86_BUILTIN_ADDSS_MASK, IX86_BUILTIN_ALIGND512,
193 IX86_BUILTIN_ALIGNQ512, IX86_BUILTIN_BLENDMD512,
194 IX86_BUILTIN_BLENDMPD512, IX86_BUILTIN_BLENDMPS512,
195 IX86_BUILTIN_BLENDMQ512, IX86_BUILTIN_BROADCASTF32X4_512,
196 IX86_BUILTIN_BROADCASTF64X4_512, IX86_BUILTIN_BROADCASTI32X4_512,
197 IX86_BUILTIN_BROADCASTI64X4_512, IX86_BUILTIN_BROADCASTSD512,
198 IX86_BUILTIN_BROADCASTSS512, IX86_BUILTIN_CMPD512,
199 IX86_BUILTIN_CMPPD512, IX86_BUILTIN_CMPPS512, IX86_BUILTIN_CMPQ512,
200 IX86_BUILTIN_CMPSD_MASK, IX86_BUILTIN_CMPSS_MASK, IX86_BUILTIN_COMIDF,
201 IX86_BUILTIN_COMISF, IX86_BUILTIN_COMPRESSPD512,
202 IX86_BUILTIN_COMPRESSPDSTORE512, IX86_BUILTIN_COMPRESSPS512,
203 IX86_BUILTIN_COMPRESSPSSTORE512, IX86_BUILTIN_CVTDQ2PD512,
204 IX86_BUILTIN_CVTDQ2PS512, IX86_BUILTIN_CVTPD2DQ512,
205 IX86_BUILTIN_CVTPD2PS512, IX86_BUILTIN_CVTPD2UDQ512,
206 IX86_BUILTIN_CVTPH2PS512, IX86_BUILTIN_CVTPS2DQ512,
207 IX86_BUILTIN_CVTPS2PD512, IX86_BUILTIN_CVTPS2PH512,
208 IX86_BUILTIN_CVTPS2UDQ512, IX86_BUILTIN_CVTSD2SS_MASK,
209 IX86_BUILTIN_CVTSI2SD64, IX86_BUILTIN_CVTSI2SS32,
210 IX86_BUILTIN_CVTSI2SS64, IX86_BUILTIN_CVTSS2SD_MASK,
211 IX86_BUILTIN_CVTTPD2DQ512, IX86_BUILTIN_CVTTPD2UDQ512,
212 IX86_BUILTIN_CVTTPS2DQ512, IX86_BUILTIN_CVTTPS2UDQ512,
213 IX86_BUILTIN_CVTUDQ2PD512, IX86_BUILTIN_CVTUDQ2PS512,
214 IX86_BUILTIN_CVTUSI2SD32, IX86_BUILTIN_CVTUSI2SD64,
215 IX86_BUILTIN_CVTUSI2SS32, IX86_BUILTIN_CVTUSI2SS64,
216 IX86_BUILTIN_DIVPD512, IX86_BUILTIN_DIVPS512, IX86_BUILTIN_DIVSD_MASK,
217 IX86_BUILTIN_DIVSS_MASK, IX86_BUILTIN_EXPANDPD512,
218 IX86_BUILTIN_EXPANDPD512Z, IX86_BUILTIN_EXPANDPDLOAD512,
219 IX86_BUILTIN_EXPANDPDLOAD512Z, IX86_BUILTIN_EXPANDPS512,
220 IX86_BUILTIN_EXPANDPS512Z, IX86_BUILTIN_EXPANDPSLOAD512,
221 IX86_BUILTIN_EXPANDPSLOAD512Z, IX86_BUILTIN_EXTRACTF32X4,
222 IX86_BUILTIN_EXTRACTF64X4, IX86_BUILTIN_EXTRACTI32X4,
223 IX86_BUILTIN_EXTRACTI64X4, IX86_BUILTIN_FIXUPIMMPD512_MASK,
224 IX86_BUILTIN_FIXUPIMMPD512_MASKZ, IX86_BUILTIN_FIXUPIMMPS512_MASK,
225 IX86_BUILTIN_FIXUPIMMPS512_MASKZ, IX86_BUILTIN_FIXUPIMMSD128_MASK,
226 IX86_BUILTIN_FIXUPIMMSD128_MASKZ, IX86_BUILTIN_FIXUPIMMSS128_MASK,
227 IX86_BUILTIN_FIXUPIMMSS128_MASKZ, IX86_BUILTIN_GETEXPPD512,
228 IX86_BUILTIN_GETEXPPS512, IX86_BUILTIN_GETEXPSD128,
229 IX86_BUILTIN_GETEXPSS128, IX86_BUILTIN_GETMANTPD512,
230 IX86_BUILTIN_GETMANTPS512, IX86_BUILTIN_GETMANTSD128,
231 IX86_BUILTIN_GETMANTSS128, IX86_BUILTIN_INSERTF32X4,
232 IX86_BUILTIN_INSERTF64X4, IX86_BUILTIN_INSERTI32X4,
233 IX86_BUILTIN_INSERTI64X4, IX86_BUILTIN_LOADAPD512,
234 IX86_BUILTIN_LOADAPS512, IX86_BUILTIN_LOADDQUDI512,
235 IX86_BUILTIN_LOADDQUSI512, IX86_BUILTIN_LOADSD, IX86_BUILTIN_LOADSS,
236 IX86_BUILTIN_LOADUPD512, IX86_BUILTIN_LOADUPS512,
237 IX86_BUILTIN_MAXPD512, IX86_BUILTIN_MAXPS512, IX86_BUILTIN_MAXSD_MASK,
238 IX86_BUILTIN_MAXSS_MASK, IX86_BUILTIN_MINPD512, IX86_BUILTIN_MINPS512,
239 IX86_BUILTIN_MINSD_MASK, IX86_BUILTIN_MINSS_MASK,
240 IX86_BUILTIN_MOVAPD512, IX86_BUILTIN_MOVAPS512,
241 IX86_BUILTIN_MOVDDUP512, IX86_BUILTIN_MOVDQA32LOAD512,
242 IX86_BUILTIN_MOVDQA32STORE512, IX86_BUILTIN_MOVDQA32_512,
243 IX86_BUILTIN_MOVDQA64LOAD512, IX86_BUILTIN_MOVDQA64STORE512,
244 IX86_BUILTIN_MOVDQA64_512, IX86_BUILTIN_MOVESD, IX86_BUILTIN_MOVESS,
245 IX86_BUILTIN_MOVNTDQ512, IX86_BUILTIN_MOVNTPD512,
246 IX86_BUILTIN_MOVNTPS512, IX86_BUILTIN_MOVSHDUP512,
247 IX86_BUILTIN_MOVSLDUP512, IX86_BUILTIN_MULPD512,
248 IX86_BUILTIN_MULPS512, IX86_BUILTIN_MULSD_MASK,
249 IX86_BUILTIN_MULSS_MASK, IX86_BUILTIN_PABSD512, IX86_BUILTIN_PABSQ512,
250 IX86_BUILTIN_PADDD512, IX86_BUILTIN_PADDQ512, IX86_BUILTIN_PANDD512,
251 IX86_BUILTIN_PANDND512, IX86_BUILTIN_PANDNQ512, IX86_BUILTIN_PANDQ512,
252 IX86_BUILTIN_PBROADCASTD512, IX86_BUILTIN_PBROADCASTD512_GPR,
253 IX86_BUILTIN_PBROADCASTMB512, IX86_BUILTIN_PBROADCASTMW512,
254 IX86_BUILTIN_PBROADCASTQ512, IX86_BUILTIN_PBROADCASTQ512_GPR,
255 IX86_BUILTIN_PBROADCASTQ512_MEM, IX86_BUILTIN_PCMPEQD512_MASK,
256 IX86_BUILTIN_PCMPEQQ512_MASK, IX86_BUILTIN_PCMPGTD512_MASK,
257 IX86_BUILTIN_PCMPGTQ512_MASK, IX86_BUILTIN_PCOMPRESSD512,
258 IX86_BUILTIN_PCOMPRESSDSTORE512, IX86_BUILTIN_PCOMPRESSQ512,
259 IX86_BUILTIN_PCOMPRESSQSTORE512, IX86_BUILTIN_PEXPANDD512,
260 IX86_BUILTIN_PEXPANDD512Z, IX86_BUILTIN_PEXPANDDLOAD512,
261 IX86_BUILTIN_PEXPANDDLOAD512Z, IX86_BUILTIN_PEXPANDQ512,
262 IX86_BUILTIN_PEXPANDQ512Z, IX86_BUILTIN_PEXPANDQLOAD512,
263 IX86_BUILTIN_PEXPANDQLOAD512Z, IX86_BUILTIN_PMAXSD512,
264 IX86_BUILTIN_PMAXSQ512, IX86_BUILTIN_PMAXUD512,
265 IX86_BUILTIN_PMAXUQ512, IX86_BUILTIN_PMINSD512,
266 IX86_BUILTIN_PMINSQ512, IX86_BUILTIN_PMINUD512,
267 IX86_BUILTIN_PMINUQ512, IX86_BUILTIN_PMOVDB512,
268 IX86_BUILTIN_PMOVDW512, IX86_BUILTIN_PMOVQB512,
269 IX86_BUILTIN_PMOVQD512, IX86_BUILTIN_PMOVQW512,
270 IX86_BUILTIN_PMOVSDB512, IX86_BUILTIN_PMOVSDW512,
271 IX86_BUILTIN_PMOVSQB512, IX86_BUILTIN_PMOVSQD512,
272 IX86_BUILTIN_PMOVSQW512, IX86_BUILTIN_PMOVSXBD512,
273 IX86_BUILTIN_PMOVSXBQ512, IX86_BUILTIN_PMOVSXDQ512,
274 IX86_BUILTIN_PMOVSXWD512, IX86_BUILTIN_PMOVSXWQ512,
275 IX86_BUILTIN_PMOVUSDB512, IX86_BUILTIN_PMOVUSDW512,
276 IX86_BUILTIN_PMOVUSQB512, IX86_BUILTIN_PMOVUSQD512,
277 IX86_BUILTIN_PMOVUSQW512, IX86_BUILTIN_PMOVZXBD512,
278 IX86_BUILTIN_PMOVZXBQ512, IX86_BUILTIN_PMOVZXDQ512,
279 IX86_BUILTIN_PMOVZXWD512, IX86_BUILTIN_PMOVZXWQ512,
280 IX86_BUILTIN_PMULDQ512, IX86_BUILTIN_PMULLD512,
281 IX86_BUILTIN_PMULUDQ512, IX86_BUILTIN_PORD512, IX86_BUILTIN_PORQ512,
282 IX86_BUILTIN_PROLD512, IX86_BUILTIN_PROLQ512, IX86_BUILTIN_PROLVD512,
283 IX86_BUILTIN_PROLVQ512, IX86_BUILTIN_PRORD512, IX86_BUILTIN_PRORQ512,
284 IX86_BUILTIN_PRORVD512, IX86_BUILTIN_PRORVQ512,
285 IX86_BUILTIN_PSHUFD512, IX86_BUILTIN_PSLLD512, IX86_BUILTIN_PSLLDI512,
286 IX86_BUILTIN_PSLLQ512, IX86_BUILTIN_PSLLQI512,
287 IX86_BUILTIN_PSLLVV16SI, IX86_BUILTIN_PSLLVV8DI,
288 IX86_BUILTIN_PSRAD512, IX86_BUILTIN_PSRADI512, IX86_BUILTIN_PSRAQ512,
289 IX86_BUILTIN_PSRAQI512, IX86_BUILTIN_PSRAVV16SI,
290 IX86_BUILTIN_PSRAVV8DI, IX86_BUILTIN_PSRLD512, IX86_BUILTIN_PSRLDI512,
291 IX86_BUILTIN_PSRLQ512, IX86_BUILTIN_PSRLQI512,
292 IX86_BUILTIN_PSRLVV16SI, IX86_BUILTIN_PSRLVV8DI,
293 IX86_BUILTIN_PSUBD512, IX86_BUILTIN_PSUBQ512, IX86_BUILTIN_PTESTMD512,
294 IX86_BUILTIN_PTESTMQ512, IX86_BUILTIN_PTESTNMD512,
295 IX86_BUILTIN_PTESTNMQ512, IX86_BUILTIN_PUNPCKHDQ512,
296 IX86_BUILTIN_PUNPCKHQDQ512, IX86_BUILTIN_PUNPCKLDQ512,
297 IX86_BUILTIN_PUNPCKLQDQ512, IX86_BUILTIN_PXORD512,
298 IX86_BUILTIN_PXORQ512, IX86_BUILTIN_RCP14PD512,
299 IX86_BUILTIN_RCP14PS512, IX86_BUILTIN_RCP14SD, IX86_BUILTIN_RCP14SS,
300 IX86_BUILTIN_RNDSCALEPD, IX86_BUILTIN_RNDSCALEPS,
301 IX86_BUILTIN_RNDSCALESD, IX86_BUILTIN_RNDSCALESS,
302 IX86_BUILTIN_RSQRT14PD512, IX86_BUILTIN_RSQRT14PS512,
303 IX86_BUILTIN_RSQRT14SD, IX86_BUILTIN_RSQRT14SS,
304 IX86_BUILTIN_SCALEFPD512, IX86_BUILTIN_SCALEFPS512,
305 IX86_BUILTIN_SCALEFSD, IX86_BUILTIN_SCALEFSS, IX86_BUILTIN_SHUFPD512,
306 IX86_BUILTIN_SHUFPS512, IX86_BUILTIN_SHUF_F32x4,
307 IX86_BUILTIN_SHUF_F64x2, IX86_BUILTIN_SHUF_I32x4,
308 IX86_BUILTIN_SHUF_I64x2,
309 IX86_BUILTIN_SQRTPD512_MASK, IX86_BUILTIN_SQRTPS512_MASK,
310 IX86_BUILTIN_SQRTSD_MASK,
311 IX86_BUILTIN_SQRTSS_MASK, IX86_BUILTIN_STOREAPD512,
312 IX86_BUILTIN_STOREAPS512, IX86_BUILTIN_STOREDQUDI512,
313 IX86_BUILTIN_STOREDQUSI512, IX86_BUILTIN_STORESD,
314 IX86_BUILTIN_STORESS, IX86_BUILTIN_STOREUPD512,
315 IX86_BUILTIN_STOREUPS512, IX86_BUILTIN_SUBPD512,
316 IX86_BUILTIN_SUBPS512, IX86_BUILTIN_SUBSD_MASK,
317 IX86_BUILTIN_SUBSS_MASK, IX86_BUILTIN_UCMPD512, IX86_BUILTIN_UCMPQ512,
318 IX86_BUILTIN_UNPCKHPD512, IX86_BUILTIN_UNPCKHPS512,
319 IX86_BUILTIN_UNPCKLPD512, IX86_BUILTIN_UNPCKLPS512,
320 IX86_BUILTIN_VCVTSD2SI32, IX86_BUILTIN_VCVTSD2SI64,
321 IX86_BUILTIN_VCVTSD2USI32, IX86_BUILTIN_VCVTSD2USI64,
322 IX86_BUILTIN_VCVTSS2SI32, IX86_BUILTIN_VCVTSS2SI64,
323 IX86_BUILTIN_VCVTSS2USI32, IX86_BUILTIN_VCVTSS2USI64,
324 IX86_BUILTIN_VCVTTSD2SI32, IX86_BUILTIN_VCVTTSD2SI64,
325 IX86_BUILTIN_VCVTTSD2USI32, IX86_BUILTIN_VCVTTSD2USI64,
326 IX86_BUILTIN_VCVTTSS2SI32, IX86_BUILTIN_VCVTTSS2SI64,
327 IX86_BUILTIN_VCVTTSS2USI32, IX86_BUILTIN_VCVTTSS2USI64,
328 IX86_BUILTIN_VFMADDPD512_MASK, IX86_BUILTIN_VFMADDPD512_MASK3,
329 IX86_BUILTIN_VFMADDPD512_MASKZ, IX86_BUILTIN_VFMADDPS512_MASK,
330 IX86_BUILTIN_VFMADDPS512_MASK3, IX86_BUILTIN_VFMADDPS512_MASKZ,
331 IX86_BUILTIN_VFMADDSD3_MASK, IX86_BUILTIN_VFMADDSD3_MASK3,
332 IX86_BUILTIN_VFMADDSD3_MASKZ, IX86_BUILTIN_VFMADDSS3_MASK,
333 IX86_BUILTIN_VFMADDSS3_MASK3, IX86_BUILTIN_VFMADDSS3_MASKZ,
334 IX86_BUILTIN_VFMADDSUBPD512_MASK, IX86_BUILTIN_VFMADDSUBPD512_MASK3,
335 IX86_BUILTIN_VFMADDSUBPD512_MASKZ, IX86_BUILTIN_VFMADDSUBPS512_MASK,
336 IX86_BUILTIN_VFMADDSUBPS512_MASK3, IX86_BUILTIN_VFMADDSUBPS512_MASKZ,
337 IX86_BUILTIN_VFMSUBADDPD512_MASK3, IX86_BUILTIN_VFMSUBADDPS512_MASK3,
338 IX86_BUILTIN_VFMSUBPD512_MASK3, IX86_BUILTIN_VFMSUBPS512_MASK3,
339 IX86_BUILTIN_VFMSUBSD3_MASK3, IX86_BUILTIN_VFMSUBSS3_MASK3,
340 IX86_BUILTIN_VFNMADDPD512_MASK, IX86_BUILTIN_VFNMADDPS512_MASK,
341 IX86_BUILTIN_VFNMSUBPD512_MASK, IX86_BUILTIN_VFNMSUBPD512_MASK3,
342 IX86_BUILTIN_VFNMSUBPS512_MASK, IX86_BUILTIN_VFNMSUBPS512_MASK3,
343 IX86_BUILTIN_VPCLZCNTD512, IX86_BUILTIN_VPCLZCNTQ512,
344 IX86_BUILTIN_VPCONFLICTD512, IX86_BUILTIN_VPCONFLICTQ512,
345 IX86_BUILTIN_VPERMDF512, IX86_BUILTIN_VPERMDI512,
346 IX86_BUILTIN_VPERMI2VARD512, IX86_BUILTIN_VPERMI2VARPD512,
347 IX86_BUILTIN_VPERMI2VARPS512, IX86_BUILTIN_VPERMI2VARQ512,
348 IX86_BUILTIN_VPERMILPD512, IX86_BUILTIN_VPERMILPS512,
349 IX86_BUILTIN_VPERMILVARPD512, IX86_BUILTIN_VPERMILVARPS512,
350 IX86_BUILTIN_VPERMT2VARD512, IX86_BUILTIN_VPERMT2VARD512_MASKZ,
351 IX86_BUILTIN_VPERMT2VARPD512, IX86_BUILTIN_VPERMT2VARPD512_MASKZ,
352 IX86_BUILTIN_VPERMT2VARPS512, IX86_BUILTIN_VPERMT2VARPS512_MASKZ,
353 IX86_BUILTIN_VPERMT2VARQ512, IX86_BUILTIN_VPERMT2VARQ512_MASKZ,
354 IX86_BUILTIN_VPERMVARDF512, IX86_BUILTIN_VPERMVARDI512,
355 IX86_BUILTIN_VPERMVARSF512, IX86_BUILTIN_VPERMVARSI512,
356 IX86_BUILTIN_VTERNLOGD512_MASK, IX86_BUILTIN_VTERNLOGD512_MASKZ,
357 IX86_BUILTIN_VTERNLOGQ512_MASK, IX86_BUILTIN_VTERNLOGQ512_MASKZ,
358 IX86_BUILTIN_KAND16, IX86_BUILTIN_KANDN16, IX86_BUILTIN_KNOT16,
359 IX86_BUILTIN_KOR16, IX86_BUILTIN_KORTESTC16, IX86_BUILTIN_KORTESTZ16,
360 IX86_BUILTIN_KUNPCKBW, IX86_BUILTIN_KXNOR16, IX86_BUILTIN_KXOR16,
361 IX86_BUILTIN_GATHER3SIV8DI,
362 IX86_BUILTIN_SCATTERDIV16SF, IX86_BUILTIN_SCATTERDIV16SI,
363 IX86_BUILTIN_SCATTERDIV8DF, IX86_BUILTIN_SCATTERDIV8DI,
364 IX86_BUILTIN_SCATTERSIV16SF, IX86_BUILTIN_SCATTERSIV16SI,
365 IX86_BUILTIN_SCATTERSIV8DF, IX86_BUILTIN_SCATTERSIV8DI,
366 IX86_BUILTIN_GATHERPFDPS, IX86_BUILTIN_GATHERPFQPS,
367 IX86_BUILTIN_SCATTERPFDPS, IX86_BUILTIN_SCATTERPFQPS,
368 IX86_BUILTIN_EXP2PD_MASK, IX86_BUILTIN_EXP2PS_MASK,
369 IX86_BUILTIN_RCP28PD, IX86_BUILTIN_RCP28PS,
370 IX86_BUILTIN_RSQRT28PD, IX86_BUILTIN_RSQRT28PS.
371 (bdesc_special_args): Add __builtin_ia32_compressstoresf512_mask,
372 __builtin_ia32_compressstoresi512_mask,
373 __builtin_ia32_compressstoredf512_mask,
374 __builtin_ia32_compressstoredi512_mask,
375 __builtin_ia32_expandloadsf512_mask,
376 __builtin_ia32_expandloadsf512_maskz,
377 __builtin_ia32_expandloadsi512_mask,
378 __builtin_ia32_expandloadsi512_maskz,
379 __builtin_ia32_expandloaddf512_mask,
380 __builtin_ia32_expandloaddf512_maskz,
381 __builtin_ia32_expandloaddi512_mask,
382 __builtin_ia32_expandloaddi512_maskz,
383 __builtin_ia32_loaddqusi512_mask, __builtin_ia32_loaddqudi512_mask,
384 __builtin_ia32_loadsd_mask, __builtin_ia32_loadss_mask,
385 __builtin_ia32_loadupd512_mask, __builtin_ia32_loadups512_mask,
386 __builtin_ia32_loadaps512_mask, __builtin_ia32_movdqa32load512_mask,
387 __builtin_ia32_loadapd512_mask, __builtin_ia32_movdqa64load512_mask,
388 __builtin_ia32_movntps512, __builtin_ia32_movntpd512,
389 __builtin_ia32_movntdq512, __builtin_ia32_storedqusi512_mask,
390 __builtin_ia32_storedqudi512_mask, __builtin_ia32_storesd_mask,
391 __builtin_ia32_storess_mask, __builtin_ia32_storeupd512_mask,
392 __builtin_ia32_storeups512_mask, __builtin_ia32_storeaps512_mask,
393 __builtin_ia32_movdqa32store512_mask, __builtin_ia32_storeapd512_mask,
394 __builtin_ia32_movdqa64store512_mask, __builtin_ia32_alignd512_mask,
395 __builtin_ia32_alignq512_mask, __builtin_ia32_blendmd_512_mask,
396 __builtin_ia32_blendmpd_512_mask, __builtin_ia32_blendmps_512_mask,
397 __builtin_ia32_blendmq_512_mask, __builtin_ia32_broadcastf32x4_512,
398 __builtin_ia32_broadcastf64x4_512, __builtin_ia32_broadcasti32x4_512,
399 __builtin_ia32_broadcasti64x4_512, __builtin_ia32_broadcastsd512,
400 __builtin_ia32_broadcastss512, __builtin_ia32_cmpd512_mask,
401 __builtin_ia32_cmpq512_mask, __builtin_ia32_compressdf512_mask,
402 __builtin_ia32_compresssf512_mask, __builtin_ia32_cvtdq2pd512_mask,
403 __builtin_ia32_vcvtps2ph512_mask, __builtin_ia32_cvtudq2pd512_mask,
404 __builtin_ia32_cvtusi2sd32, __builtin_ia32_expanddf512_mask,
405 __builtin_ia32_expanddf512_maskz, __builtin_ia32_expandsf512_mask,
406 __builtin_ia32_expandsf512_maskz, __builtin_ia32_extractf32x4_mask,
407 __builtin_ia32_extractf64x4_mask, __builtin_ia32_extracti32x4_mask,
408 __builtin_ia32_extracti64x4_mask, __builtin_ia32_insertf32x4_mask,
409 __builtin_ia32_insertf64x4_mask, __builtin_ia32_inserti32x4_mask,
410 __builtin_ia32_inserti64x4_mask, __builtin_ia32_movapd512_mask,
411 __builtin_ia32_movaps512_mask, __builtin_ia32_movddup512_mask,
412 __builtin_ia32_movdqa32_512_mask, __builtin_ia32_movdqa64_512_mask,
413 __builtin_ia32_movesd_mask, __builtin_ia32_movess_mask,
414 __builtin_ia32_movshdup512_mask, __builtin_ia32_movsldup512_mask,
415 __builtin_ia32_pabsd512_mask, __builtin_ia32_pabsq512_mask,
416 __builtin_ia32_paddd512_mask, __builtin_ia32_paddq512_mask,
417 __builtin_ia32_pandd512_mask, __builtin_ia32_pandnd512_mask,
418 __builtin_ia32_pandnq512_mask, __builtin_ia32_pandq512_mask,
419 __builtin_ia32_pbroadcastd512, __builtin_ia32_pbroadcastd512_gpr_mask,
420 __builtin_ia32_broadcastmb512, __builtin_ia32_broadcastmw512,
421 __builtin_ia32_pbroadcastq512, __builtin_ia32_pbroadcastq512_gpr_mask,
422 __builtin_ia32_pbroadcastq512_mem_mask,
423 __builtin_ia32_pcmpeqd512_mask, __builtin_ia32_pcmpeqq512_mask,
424 __builtin_ia32_pcmpgtd512_mask, __builtin_ia32_pcmpgtq512_mask,
425 __builtin_ia32_compresssi512_mask, __builtin_ia32_compressdi512_mask,
426 __builtin_ia32_expandsi512_mask, __builtin_ia32_expandsi512_maskz,
427 __builtin_ia32_expanddi512_mask, __builtin_ia32_expanddi512_maskz,
428 __builtin_ia32_pmaxsd512_mask, __builtin_ia32_pmaxsq512_mask,
429 __builtin_ia32_pmaxud512_mask, __builtin_ia32_pmaxuq512_mask,
430 __builtin_ia32_pminsd512_mask, __builtin_ia32_pminsq512_mask,
431 __builtin_ia32_pminud512_mask, __builtin_ia32_pminuq512_mask,
432 __builtin_ia32_pmovdb512_mask, __builtin_ia32_pmovdw512_mask,
433 __builtin_ia32_pmovqb512_mask, __builtin_ia32_pmovqd512_mask,
434 __builtin_ia32_pmovqw512_mask, __builtin_ia32_pmovsdb512_mask,
435 __builtin_ia32_pmovsdw512_mask, __builtin_ia32_pmovsqb512_mask,
436 __builtin_ia32_pmovsqd512_mask, __builtin_ia32_pmovsqw512_mask,
437 __builtin_ia32_pmovsxbd512_mask, __builtin_ia32_pmovsxbq512_mask,
438 __builtin_ia32_pmovsxdq512_mask, __builtin_ia32_pmovsxwd512_mask,
439 __builtin_ia32_pmovsxwq512_mask, __builtin_ia32_pmovusdb512_mask,
440 __builtin_ia32_pmovusdw512_mask, __builtin_ia32_pmovusqb512_mask,
441 __builtin_ia32_pmovusqd512_mask, __builtin_ia32_pmovusqw512_mask,
442 __builtin_ia32_pmovzxbd512_mask, __builtin_ia32_pmovzxbq512_mask,
443 __builtin_ia32_pmovzxdq512_mask, __builtin_ia32_pmovzxwd512_mask,
444 __builtin_ia32_pmovzxwq512_mask, __builtin_ia32_pmuldq512_mask,
445 __builtin_ia32_pmulld512_mask, __builtin_ia32_pmuludq512_mask,
446 __builtin_ia32_pord512_mask, __builtin_ia32_porq512_mask,
447 __builtin_ia32_prold512_mask, __builtin_ia32_prolq512_mask,
448 __builtin_ia32_prolvd512_mask, __builtin_ia32_prolvq512_mask,
449 __builtin_ia32_prord512_mask, __builtin_ia32_prorq512_mask,
450 __builtin_ia32_prorvd512_mask, __builtin_ia32_prorvq512_mask,
451 __builtin_ia32_pshufd512_mask, __builtin_ia32_pslld512_mask,
452 __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
453 __builtin_ia32_psllqi512_mask, __builtin_ia32_psllv16si_mask,
454 __builtin_ia32_psllv8di_mask, __builtin_ia32_psrad512_mask,
455 __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
456 __builtin_ia32_psraqi512_mask, __builtin_ia32_psrav16si_mask,
457 __builtin_ia32_psrav8di_mask, __builtin_ia32_psrld512_mask,
458 __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
459 __builtin_ia32_psrlqi512_mask, __builtin_ia32_psrlv16si_mask,
460 __builtin_ia32_psrlv8di_mask, __builtin_ia32_psubd512_mask,
461 __builtin_ia32_psubq512_mask, __builtin_ia32_ptestmd512,
462 __builtin_ia32_ptestmq512, __builtin_ia32_ptestnmd512,
463 __builtin_ia32_ptestnmq512, __builtin_ia32_punpckhdq512_mask,
464 __builtin_ia32_punpckhqdq512_mask, __builtin_ia32_punpckldq512_mask,
465 __builtin_ia32_punpcklqdq512_mask, __builtin_ia32_pxord512_mask,
466 __builtin_ia32_pxorq512_mask, __builtin_ia32_rcp14pd512_mask,
467 __builtin_ia32_rcp14ps512_mask, __builtin_ia32_rcp14sd_mask,
468 __builtin_ia32_rcp14ss_mask, __builtin_ia32_rsqrt14pd512_mask,
469 __builtin_ia32_rsqrt14ps512_mask, __builtin_ia32_rsqrt14sd_mask,
470 __builtin_ia32_rsqrt14ss_mask, __builtin_ia32_shufpd512_mask,
471 __builtin_ia32_shufps512_mask, __builtin_ia32_shuf_f32x4_mask,
472 __builtin_ia32_shuf_f64x2_mask, __builtin_ia32_shuf_i32x4_mask,
473 __builtin_ia32_shuf_i64x2_mask, __builtin_ia32_ucmpd512_mask,
474 __builtin_ia32_ucmpq512_mask, __builtin_ia32_unpckhpd512_mask,
475 __builtin_ia32_unpckhps512_mask, __builtin_ia32_unpcklpd512_mask,
476 __builtin_ia32_unpcklps512_mask, __builtin_ia32_vplzcntd_512_mask,
477 __builtin_ia32_vplzcntq_512_mask,
478 __builtin_ia32_vpconflictsi_512_mask,
479 __builtin_ia32_vpconflictdi_512_mask, __builtin_ia32_permdf512_mask,
480 __builtin_ia32_permdi512_mask, __builtin_ia32_vpermi2vard512_mask,
481 __builtin_ia32_vpermi2varpd512_mask,
482 __builtin_ia32_vpermi2varps512_mask,
483 __builtin_ia32_vpermi2varq512_mask, __builtin_ia32_vpermilpd512_mask,
484 __builtin_ia32_vpermilps512_mask, __builtin_ia32_vpermilvarpd512_mask,
485 __builtin_ia32_vpermilvarps512_mask,
486 __builtin_ia32_vpermt2vard512_mask,
487 __builtin_ia32_vpermt2vard512_maskz,
488 __builtin_ia32_vpermt2varpd512_mask,
489 __builtin_ia32_vpermt2varpd512_maskz,
490 __builtin_ia32_vpermt2varps512_mask,
491 __builtin_ia32_vpermt2varps512_maskz,
492 __builtin_ia32_vpermt2varq512_mask,
493 __builtin_ia32_vpermt2varq512_maskz, __builtin_ia32_permvardf512_mask,
494 __builtin_ia32_permvardi512_mask, __builtin_ia32_permvarsf512_mask,
495 __builtin_ia32_permvarsi512_mask, __builtin_ia32_pternlogd512_mask,
496 __builtin_ia32_pternlogd512_maskz, __builtin_ia32_pternlogq512_mask,
497 __builtin_ia32_pternlogq512_maskz, __builtin_ia32_copysignps512,
498 __builtin_ia32_copysignpd512, __builtin_ia32_sqrtpd512,
499 __builtin_ia32_sqrtps512, __builtin_ia32_exp2ps,
500 __builtin_ia32_roundpd_az_vec_pack_sfix512,
501 __builtin_ia32_floorpd_vec_pack_sfix512,
502 __builtin_ia32_ceilpd_vec_pack_sfix512, __builtin_ia32_kandhi,
503 __builtin_ia32_kandnhi, __builtin_ia32_knothi, __builtin_ia32_korhi,
504 __builtin_ia32_kortestchi, __builtin_ia32_kortestzhi,
505 __builtin_ia32_kunpckhi, __builtin_ia32_kxnorhi,
506 __builtin_ia32_kxorhi, __builtin_ia32_addpd512_mask,
507 __builtin_ia32_addps512_mask, __builtin_ia32_addsd_mask,
508 __builtin_ia32_addss_mask, __builtin_ia32_cmppd512_mask,
509 __builtin_ia32_cmpps512_mask, __builtin_ia32_cmpsd_mask,
510 __builtin_ia32_cmpss_mask, __builtin_ia32_vcomisd,
511 __builtin_ia32_vcomiss, __builtin_ia32_cvtdq2ps512_mask,
512 __builtin_ia32_cvtpd2dq512_mask, __builtin_ia32_cvtpd2ps512_mask,
513 __builtin_ia32_cvtpd2udq512_mask, __builtin_ia32_vcvtph2ps512_mask,
514 __builtin_ia32_cvtps2dq512_mask, __builtin_ia32_cvtps2pd512_mask,
515 __builtin_ia32_cvtps2udq512_mask, __builtin_ia32_cvtsd2ss_mask,
516 __builtin_ia32_cvtsi2sd64, __builtin_ia32_cvtsi2ss32,
517 __builtin_ia32_cvtsi2ss64, __builtin_ia32_cvtss2sd_mask,
518 __builtin_ia32_cvttpd2dq512_mask, __builtin_ia32_cvttpd2udq512_mask,
519 __builtin_ia32_cvttps2dq512_mask, __builtin_ia32_cvttps2udq512_mask,
520 __builtin_ia32_cvtudq2ps512_mask, __builtin_ia32_cvtusi2sd64,
521 __builtin_ia32_cvtusi2ss32, __builtin_ia32_cvtusi2ss64,
522 __builtin_ia32_divpd512_mask, __builtin_ia32_divps512_mask,
523 __builtin_ia32_divsd_mask, __builtin_ia32_divss_mask,
524 __builtin_ia32_fixupimmpd512_mask, __builtin_ia32_fixupimmpd512_maskz,
525 __builtin_ia32_fixupimmps512_mask, __builtin_ia32_fixupimmps512_maskz,
526 __builtin_ia32_fixupimmsd_mask, __builtin_ia32_fixupimmsd_maskz,
527 __builtin_ia32_fixupimmss_mask, __builtin_ia32_fixupimmss_maskz,
528 __builtin_ia32_getexppd512_mask, __builtin_ia32_getexpps512_mask,
529 __builtin_ia32_getexpsd128_mask, __builtin_ia32_getexpss128_mask,
530 __builtin_ia32_getmantpd512_mask, __builtin_ia32_getmantps512_mask,
531 __builtin_ia32_getmantsd_mask, __builtin_ia32_getmantss_mask,
532 __builtin_ia32_maxpd512_mask, __builtin_ia32_maxps512_mask,
533 __builtin_ia32_maxsd_mask, __builtin_ia32_maxss_mask,
534 __builtin_ia32_minpd512_mask, __builtin_ia32_minps512_mask,
535 __builtin_ia32_minsd_mask, __builtin_ia32_minss_mask,
536 __builtin_ia32_mulpd512_mask, __builtin_ia32_mulps512_mask,
537 __builtin_ia32_mulsd_mask, __builtin_ia32_mulss_mask,
538 __builtin_ia32_rndscalepd_mask, __builtin_ia32_rndscaleps_mask,
539 __builtin_ia32_rndscalesd_mask, __builtin_ia32_rndscaless_mask,
540 __builtin_ia32_scalefpd512_mask, __builtin_ia32_scalefps512_mask,
541 __builtin_ia32_scalefsd_mask, __builtin_ia32_scalefss_mask,
542 __builtin_ia32_sqrtpd512_mask, __builtin_ia32_sqrtps512_mask,
543 __builtin_ia32_sqrtsd_mask, __builtin_ia32_sqrtss_mask,
544 __builtin_ia32_subpd512_mask, __builtin_ia32_subps512_mask,
545 __builtin_ia32_subsd_mask, __builtin_ia32_subss_mask,
546 __builtin_ia32_vcvtsd2si32, __builtin_ia32_vcvtsd2si64,
547 __builtin_ia32_vcvtsd2usi32, __builtin_ia32_vcvtsd2usi64,
548 __builtin_ia32_vcvtss2si32, __builtin_ia32_vcvtss2si64,
549 __builtin_ia32_vcvtss2usi32, __builtin_ia32_vcvtss2usi64,
550 __builtin_ia32_vcvttsd2si32, __builtin_ia32_vcvttsd2si64,
551 __builtin_ia32_vcvttsd2usi32, __builtin_ia32_vcvttsd2usi64,
552 __builtin_ia32_vcvttss2si32, __builtin_ia32_vcvttss2si64,
553 __builtin_ia32_vcvttss2usi32, __builtin_ia32_vcvttss2usi64,
554 __builtin_ia32_vfmaddpd512_mask, __builtin_ia32_vfmaddpd512_mask3,
555 __builtin_ia32_vfmaddpd512_maskz, __builtin_ia32_vfmaddps512_mask,
556 __builtin_ia32_vfmaddps512_mask3, __builtin_ia32_vfmaddps512_maskz,
557 __builtin_ia32_vfmaddsd3_mask, __builtin_ia32_vfmaddsd3_mask3,
558 __builtin_ia32_vfmaddsd3_maskz, __builtin_ia32_vfmaddss3_mask,
559 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
560 __builtin_ia32_vfmaddsubpd512_mask,
561 __builtin_ia32_vfmaddsubpd512_mask3,
562 __builtin_ia32_vfmaddsubpd512_maskz,
563 __builtin_ia32_vfmaddsubps512_mask,
564 __builtin_ia32_vfmaddsubps512_mask3,
565 __builtin_ia32_vfmaddsubps512_maskz,
566 __builtin_ia32_vfmsubaddpd512_mask3,
567 __builtin_ia32_vfmsubaddps512_mask3, __builtin_ia32_vfmsubpd512_mask3,
568 __builtin_ia32_vfmsubps512_mask3, __builtin_ia32_vfmsubsd3_mask3,
569 __builtin_ia32_vfmsubss3_mask3, __builtin_ia32_vfnmaddpd512_mask,
570 __builtin_ia32_vfnmaddps512_mask, __builtin_ia32_vfnmsubpd512_mask,
571 __builtin_ia32_vfnmsubpd512_mask3, __builtin_ia32_vfnmsubps512_mask,
572 __builtin_ia32_vfnmsubps512_mask3, __builtin_ia32_exp2pd_mask,
573 __builtin_ia32_exp2ps_mask, __builtin_ia32_rcp28pd_mask,
574 __builtin_ia32_rcp28ps_mask, __builtin_ia32_rsqrt28pd_mask,
575 __builtin_ia32_rsqrt28ps_mask, __builtin_ia32_gathersiv16sf,
576 __builtin_ia32_gathersiv8df, __builtin_ia32_gatherdiv16sf,
577 __builtin_ia32_gatherdiv8df, __builtin_ia32_gathersiv16si,
578 __builtin_ia32_gathersiv8di, __builtin_ia32_gatherdiv16si,
579 __builtin_ia32_gatherdiv8di, __builtin_ia32_gatheraltsiv8df ,
580 __builtin_ia32_gatheraltdiv8sf , __builtin_ia32_gatheraltsiv8di ,
581 __builtin_ia32_gatheraltdiv8si , __builtin_ia32_scattersiv16sf,
582 __builtin_ia32_scattersiv8df, __builtin_ia32_scatterdiv16sf,
583 __builtin_ia32_scatterdiv8df, __builtin_ia32_scattersiv16si,
584 __builtin_ia32_scattersiv8di, __builtin_ia32_scatterdiv16si,
585 __builtin_ia32_scatterdiv8di, __builtin_ia32_gatherpfdps,
586 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdps,
587 __builtin_ia32_scatterpfqps.
588 (ix86_init_mmx_sse_builtins): Handle builtins with AVX512 embeded
589 rounding, builtins for AVX512 gathers/scatters.
590 (ix86_expand_args_builtin): Handle new functions types, add warnings
591 for masked builtins.
592 (ix86_erase_embedded_rounding): Handle patterns with embedded rounding.
593 (ix86_expand_sse_comi_round): Ditto.
594 (ix86_expand_round_builtin): Ditto.
595 (ix86_expand_builtin): Handle AVX512's gathers/scatters and kortest{z}.
596 Call ix86_expand_round_builtin.
597 * config/i386/immintrin.h: Add avx512fintrin.h, avx512erintrin.h,
598 avx512pfintrin.h, avx512cdintrin.h.
599
600 2013-12-31 Alexander Ivchenko <alexander.ivchenko@intel.com>
601 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
602 Sergey Lega <sergey.s.lega@intel.com>
603 Anna Tikhonova <anna.tikhonova@intel.com>
604 Ilya Tocar <ilya.tocar@intel.com>
605 Andrey Turetskiy <andrey.turetskiy@intel.com>
606 Ilya Verbin <ilya.verbin@intel.com>
607 Kirill Yukhin <kirill.yukhin@intel.com>
608 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
609
610 * config/i386/i386.c (MAX_CLASSES): Increase number of classes.
611 (classify_argument): Extend for 512 bit vectors.
612 (construct_container): Ditto.
613 (function_arg_advance_32): Ditto.
614 (function_arg_advance_64): Ditto.
615 (function_arg_32): Ditto.
616 (function_arg_64): Ditto.
617 (function_value_32): Ditto.
618 (return_in_memory_32): Ditto.
619 (ix86_gimplify_va_arg): Ditto.
620 (standard_sse_constant_p): Ditto.
621 (standard_sse_constant_opcode): Ditto.
622 (ix86_expand_vector_convert_uns_vsivsf): Ditto.
623 (ix86_build_const_vector): Ditto.
624 (ix86_build_signbit_mask): Ditto.
625 (ix86_expand_sse_cmp): Extend for AVX512.
626 (ix86_expand_sse_movcc): Ditto.
627 (ix86_expand_int_vcond): Ditto.
628 (ix86_expand_vec_perm): Ditto.
629 (ix86_expand_sse_unpack): Ditto.
630 (ix86_constant_alignment): Ditto.
631 (ix86_builtin_vectorized_function): Ditto.
632 (ix86_vectorize_builtin_gather): Ditto.
633 (avx_vpermilp_parallel): Ditto.
634 (ix86_rtx_costs): Ditto.
635 (ix86_expand_vector_init_duplicate): Ditto.
636 (ix86_expand_vector_init_concat): Ditto.
637 (ix86_expand_vector_init_general): Ditto.
638 (ix86_expand_vector_extract): Ditto.
639 (emit_reduc_half): Ditto.
640 (ix86_vector_mode_supported_p): Ditto.
641 (ix86_emit_swdivsf): Ditto.
642 (ix86_emit_swsqrtsf): Ditto.
643 (expand_vec_perm_1): Ditto.
644 (ix86_vectorize_vec_perm_const_ok): Ditto.
645 (ix86_expand_mul_widen_evenodd): Ditto.
646 (ix86_expand_sse2_mulvxdi3): Ditto.
647 (ix86_preferred_simd_mode): Ditto.
648 (ix86_autovectorize_vector_sizes): Ditto.
649 (ix86_expand_vec_perm_vpermi2): New.
650 (ix86_vector_duplicate_value): Ditto.
651 (IX86_BUILTIN_SQRTPD512, IX86_BUILTIN_EXP2PS, IX86_BUILTIN_SQRTPS_NR512,
652 IX86_BUILTIN_GATHER3ALTDIV16SF, IX86_BUILTIN_GATHER3ALTDIV16SI,
653 IX86_BUILTIN_GATHER3ALTSIV8DF, IX86_BUILTIN_GATHER3ALTSIV8DI,
654 IX86_BUILTIN_GATHER3DIV16SF, IX86_BUILTIN_GATHER3DIV16SI,
655 IX86_BUILTIN_GATHER3DIV8DF, IX86_BUILTIN_GATHER3DIV8DI,
656 IX86_BUILTIN_GATHER3SIV16SF, IX86_BUILTIN_GATHER3SIV16SI,
657 IX86_BUILTIN_GATHER3SIV8DF, IX86_BUILTIN_CEILPD_VEC_PACK_SFIX512,
658 IX86_BUILTIN_CPYSGNPS512, IX86_BUILTIN_CPYSGNPD512,
659 IX86_BUILTIN_FLOORPD_VEC_PACK_SFIX512,
660 IX86_BUILTIN_ROUNDPD_AZ_VEC_PACK_SFIX512): Ditto.
661 * config/i386/sse.md (*mov<mode>_internal): Disable SSE typeless
662 stores vectors > 128bit (AVX*).
663 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
664 (<sse2_avx_avx512f>_storedqu<mode>): Extend for AVX-512, disable
665 SSE typeless stores vectors > 128bit (AVX*).
666 (fixuns_trunc<mode><sseintvecmodelower>2): Extend for AVX-512.
667 (vec_pack_ufix_trunc_<mode>): Ditto.
668 (vec_unpacku_float_hi_v16si): New.
669 * tree-vect-stmts.c (vectorizable_load): Support AVX512's gathers.
670 * tree-vectorizer.h (MAX_VECTORIZATION_FACTOR): Extend for 512 bit
671 vectors.
672
673 2013-12-31 Chung-Lin Tang <cltang@codesourcery.com>
674 Sandra Loosemore <sandra@codesourcery.com>
675 Based on patches from Altera Corporation
676
677 * config.gcc (nios2-*-*): Add nios2 config targets.
678 * configure.ac (TLS_SECTION_ASM_FLAG): Add nios2 case.
679 ("$cpu_type"): Add nios2 as new cpu type.
680 * configure: Regenerate.
681 * config/nios2/nios2.c: New file.
682 * config/nios2/nios2.h: New file.
683 * config/nios2/nios2-opts.h: New file.
684 * config/nios2/nios2-protos.h: New file.
685 * config/nios2/elf.h: New file.
686 * config/nios2/elf.opt: New file.
687 * config/nios2/linux.h: New file.
688 * config/nios2/nios2.opt: New file.
689 * config/nios2/nios2.md: New file.
690 * config/nios2/predicates.md: New file.
691 * config/nios2/constraints.md: New file.
692 * config/nios2/t-nios2: New file.
693 * common/config/nios2/nios2-common.c: New file.
694 * doc/invoke.texi (Nios II options): Document Nios II specific
695 options.
696 * doc/md.texi (Nios II family): Document Nios II specific
697 constraints.
698 * doc/extend.texi (Function Specific Option Pragmas): Document
699 Nios II supported target pragma functionality.
700
701 2013-12-30 Jakub Jelinek <jakub@redhat.com>
702
703 PR tree-optimization/59591
704 * tree-vect-stmts.c (vectorizable_mask_load_store): Fix up handling
705 of modifier = NARROW masked gathers.
706 (permute_vec_elements): Use gimple_get_lhs instead of
707 gimple_assign_lhs.
708
709 2013-12-30 Nick Clifton <nickc@redhat.com>
710 Peter Bigot <bigotp@acm.org>
711
712 PR target/59613
713 * stor-layout.c (get_mode_bounds): Use GET_MODE_PRECISION instead
714 of GET_MODE_BITSIZE.
715
716 2013-12-30 Nick Clifton <nickc@redhat.com>
717
718 * config/msp430/msp430.c (msp430_print_operand): Rename %B to %b
719 and %A to %Q. Add %A, %B, %C and %D as selectors for 16-bit parts
720 of a 64-bit operand.
721 * config/msp430/msp430.md: Replace uses of %B with %b and uses of
722 %A with %q.
723
724 2013-12-30 Felix Yang <felix.yang@huawei.com>
725
726 * ira-costs.c (cost_classes_hasher::equal): Check equality of
727 memcmp and 0 if no difference exists for HV1 and HV2.
728
729 2013-12-30 Jakub Jelinek <jakub@redhat.com>
730
731 PR target/59501
732 * config/i386/i386.c (ix86_save_reg): Don't return true for drap_reg
733 if !crtl->stack_realign_needed.
734 (ix86_finalize_stack_realign_flags): If drap_reg isn't live on entry
735 and stack_realign_needed will be false, clear drap_reg and need_drap.
736 Optimize leaf functions that don't need stack frame even if
737 crtl->need_drap.
738
739 2013-12-30 H.J. Lu <hongjiu.lu@intel.com>
740
741 PR target/59605
742 * config/i386/i386.c (ix86_expand_set_or_movmem): Create
743 jump_around_label only if it doesn't exist.
744
745 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
746
747 * doc/invoke.texi (output file options): Document -fada-spec-parent.
748
749 2013-12-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
750 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
751 Sergey Lega <sergey.s.lega@intel.com>
752 Anna Tikhonova <anna.tikhonova@intel.com>
753 Ilya Tocar <ilya.tocar@intel.com>
754 Andrey Turetskiy <andrey.turetskiy@intel.com>
755 Ilya Verbin <ilya.verbin@intel.com>
756 Kirill Yukhin <kirill.yukhin@intel.com>
757 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
758
759 * config/i386/sse.md (avx512f_fixupimm<mode>_maskz): Extend to support
760 EVEX's RC.
761 (avx512f_sfixupimm<mode>_maskz): Ditto.
762 * config/i386/subst.md (round_saeonly_expand_name): New.
763 (round_saeonly_expand_nimm_predicate): Ditto.
764 (round_saeonly_expand_operand6): Ditto.
765 (round_saeonly_expand): Ditto.
766
767 2013-12-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
768 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
769 Sergey Lega <sergey.s.lega@intel.com>
770 Anna Tikhonova <anna.tikhonova@intel.com>
771 Ilya Tocar <ilya.tocar@intel.com>
772 Andrey Turetskiy <andrey.turetskiy@intel.com>
773 Ilya Verbin <ilya.verbin@intel.com>
774 Kirill Yukhin <kirill.yukhin@intel.com>
775 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
776
777 * config/i386/sse.md (avx512f_fmadd_<mode>_maskz): Extend to support
778 EVEX's RC.
779 (avx512f_fmaddsub_<mode>_maskz): Ditto.
780 * config/i386/subst.md (round_expand_name): New.
781 (round_expand_nimm_predicate): Ditto.
782 (round_expand_operand): Ditto.
783 (round_expand): Ditto.
784
785 2013-12-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
786 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
787 Sergey Lega <sergey.s.lega@intel.com>
788 Anna Tikhonova <anna.tikhonova@intel.com>
789 Ilya Tocar <ilya.tocar@intel.com>
790 Andrey Turetskiy <andrey.turetskiy@intel.com>
791 Ilya Verbin <ilya.verbin@intel.com>
792 Kirill Yukhin <kirill.yukhin@intel.com>
793 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
794
795 * config/i386/sse.md (<code><mode>3<mask_name>): Extend to support
796 EVEX's SAE mode.
797 (*<code><mode>3_finite<mask_name>): Ditto.
798 (*<code><mode>3<mask_name>): Ditto.
799 (avx512f_cmp<mode>3<mask_scalar_merge_name>): Ditto.
800 (avx512f_vmcmp<mode>3): Ditto.
801 (avx512f_vmcmp<mode>3_mask): Ditto.
802 (<sse>_comi): Ditto.
803 (<sse>_ucomi): Ditto.
804 (sse_cvttss2si): Ditto.
805 (sse_cvttss2siq): Ditto.
806 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
807 (avx512f_vcvttss2usi): Ditto.
808 (avx512f_vcvttss2usiq): Ditto.
809 (avx512f_vcvttsd2usi): Ditto.
810 (avx512f_vcvttsd2usiq): Ditto.
811 (sse2_cvttsd2si): Ditto.
812 (sse2_cvttsd2siq): Ditto.
813 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
814 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
815 (avx512f_getexp<mode><mask_name>): Ditto.
816 (avx512f_fixupimm<mode><sd_maskz_name>): Ditto.
817 (avx512f_fixupimm<mode>_mask): Ditto.
818 (avx512f_sfixupimm<mode><sd_maskz_name>): Ditto.
819 (avx512f_sfixupimm<mode>_mask): Ditto.
820 (avx512f_rndscale<mode><mask_name>): Ditto.
821 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
822 (avx512f_getmant<mode><mask_name>): Ditto.
823 * config/i386/subst.md (round_saeonly_name): New.
824 (round_saeonly_mask_operand2): Ditto.
825 (round_saeonly_mask_operand3): Ditto.
826 (round_saeonly_mask_scalar_operand3): Ditto.
827 (round_saeonly_mask_scalar_operand4): Ditto.
828 (round_saeonly_mask_scalar_merge_operand4): Ditto.
829 (round_saeonly_sd_mask_operand5): Ditto.
830 (round_saeonly_op2): Ditto.
831 (round_saeonly_op4): Ditto.
832 (round_saeonly_op5): Ditto.
833 (round_saeonly_op6): Ditto.
834 (round_saeonly_mask_op2): Ditto.
835 (round_saeonly_mask_op3): Ditto.
836 (round_saeonly_mask_scalar_op3): Ditto.
837 (round_saeonly_mask_scalar_op4): Ditto.
838 (round_saeonly_mask_scalar_merge_op4): Ditto.
839 (round_saeonly_sd_mask_op5): Ditto.
840 (round_saeonly_constraint): Ditto.
841 (round_saeonly_constraint2): Ditto.
842 (round_saeonly_nimm_predicate): Ditto.
843 (round_saeonly_mode512bit_condition): Ditto.
844 (round_saeonly): Ditto.
845
846 2013-12-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
847 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
848 Sergey Lega <sergey.s.lega@intel.com>
849 Anna Tikhonova <anna.tikhonova@intel.com>
850 Ilya Tocar <ilya.tocar@intel.com>
851 Andrey Turetskiy <andrey.turetskiy@intel.com>
852 Ilya Verbin <ilya.verbin@intel.com>
853 Kirill Yukhin <kirill.yukhin@intel.com>
854 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
855
856 * config/i386/i386.c (ix86_print_operand): Print EVEX's RC modifiers.
857 * config/i386/i386.md (define_constants): Define EVEx's RC constants.
858 * gcc/config/i386/sse.md (<plusminus_insn><mode>3<mask_name>): Extend
859 to support EVEX's rounding control.
860 (*<plusminus_insn><mode>3<mask_name>): Ditto.
861 (mul<mode>3<mask_name>): Ditto.
862 (*mul<mode>3<mask_name>): Ditto.
863 (<sse>_div<mode>3<mask_name>): Ditto.
864 (<sse>_sqrt<mode>2<mask_name>): Ditto.
865 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>): Ditto.
866 (avx512f_fmadd_<mode>_mask): Ditto.
867 (avx512f_fmadd_<mode>_mask3): Ditto.
868 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>): Ditto.
869 (avx512f_fmsub_<mode>_mask): Ditto.
870 (avx512f_fmsub_<mode>_mask3): Ditto.
871 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>): Ditto.
872 (avx512f_fnmadd_<mode>_mask): Ditto.
873 (avx512f_fnmadd_<mode>_mask3): Ditto.
874 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>): Ditto.
875 (avx512f_fnmsub_<mode>_mask): Ditto.
876 (avx512f_fnmsub_<mode>_mask3): Ditto.
877 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name>): Ditto.
878 (avx512f_fmaddsub_<mode>_mask): Ditto.
879 (avx512f_fmaddsub_<mode>_mask3): Ditto.
880 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name>): Ditto.
881 (avx512f_fmsubadd_<mode>_mask): Ditto.
882 (avx512f_fmsubadd_<mode>_mask3): Ditto.
883 (fmai_vmfmadd_<mode>): Ditto.
884 (*fmai_fmadd_<mode>): Ditto.
885 (*fmai_fmsub_<mode>): Ditto.
886 (*fmai_fnmadd_<mode>): Ditto.
887 (*fmai_fnmsub_<mode>): Ditto.
888 (sse_cvtsi2ss): Ditto.
889 (sse_cvtsi2ssq): Ditto.
890 (sse_cvtss2si): Ditto.
891 (sse_cvtss2siq): Ditto.
892 (cvtusi2<ssescalarmodesuffix>32): Ditto.
893 (cvtusi2<ssescalarmodesuffix>64): Ditto.
894 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
895 (ufloatv16siv16sf2<mask_name>): Ditto.
896 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
897 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
898 (sse2_cvtsi2sdq): Ditto.
899 (avx512f_vcvtss2usi): Ditto.
900 (avx512f_vcvtss2usiq): Ditto.
901 (avx512f_vcvtsd2usi): Ditto.
902 (avx512f_vcvtsd2usiq): Ditto.
903 (sse2_cvtsd2si): Ditto.
904 (sse2_cvtsd2siq): Ditto.
905 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
906 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
907 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
908 (avx512f_scalef<mode><mask_name>): Ditto.
909 (<code><mode>3<mask_name>): Ditto.
910 (*avx2_<code><mode>3<mask_name>): Ditto.
911 (avx512er_exp2<mode><mask_name): Ditto.
912 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
913 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
914 (avx512f_fmadd_<mode>_maskz): New.
915 * config/i386/subst.md (SUBST_A): New.
916 (round_name): Ditto.
917 (round_mask_operand2): Ditto.
918 (round_mask_operand3): Ditto.
919 (round_mask_scalar_operand3): Ditto.
920 (round_sd_mask_operand4): Ditto.
921 (round_op2): Ditto.
922 (round_op3): Ditto.
923 (round_op4): Ditto.
924 (round_op5): Ditto.
925 (round_op6): Ditto.
926 (round_mask_op2): Ditto.
927 (round_mask_op3): Ditto.
928 (round_mask_scalar_op3): Ditto.
929 (round_sd_mask_op4): Ditto.
930 (round_constraint): Ditto.
931 (round_constraint2): Ditto.
932 (round_constraint3): Ditto.
933 (round_nimm_predicate): Ditto.
934 (round_mode512bit_condition): Ditto.
935 (round_modev4sf_condition): Ditto.
936 (round_codefor): Ditto.
937 (round_opnum): Ditto.
938 (round): Ditto.
939
940 2013-12-26 H.J. Lu <hongjiu.lu@intel.com>
941
942 PR target/59588
943 * config/i386/i386.c (ix86_option_override_internal): Don't
944 check generic tuning. Don't change i686 tuning.
945
946 2013-12-26 H.J. Lu <hongjiu.lu@intel.com>
947
948 PR target/59601
949 * config/i386/i386.c (get_builtin_code_for_version): Map
950 PROCESSOR_NEHALEM to "corei7".
951
952 2013-12-26 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
953
954 * config/i386/i386.c (get_builtin_code_for_version): Rename AMD
955 CPU names M_AMD_BOBCAT to M_AMD_BTVER1 and M_AMD_JAGUAR
956 to M_AMD_BTVER2.
957 (processor_model): Likewise.
958 (arch_names_table): Likewise.
959
960 2013-12-26 Uros Bizjak <ubizjak@gmail.com>
961
962 * config/i386/driver-i386.c (decode_caches_intel): Add missing entries.
963
964 2013-12-25 H.J. Lu <hongjiu.lu@intel.com>
965
966 PR target/59587
967 * config/i386/i386.c (struct ptt): Add a field for processor name.
968 (processor_target_table): Sync with processor_type.
969 Add processor names.
970 (cpu_names): Removed.
971 (ix86_option_override_internal): Default x_ix86_tune_string
972 to processor_target_table[TARGET_CPU_DEFAULT].name.
973 (ix86_function_specific_print): Assert arch and tune < PROCESSOR_max.
974 Use processor_target_table to print arch and tune names.
975 * config/i386/i386.h (TARGET_CPU_DEFAULT): Default to
976 PROCESSOR_GENERIC.
977 (target_cpu_default): Removed.
978 (processor_type): Reordered.
979
980 2013-12-25 Allan Sandfeld Jensen <sandfeld@kde.org>
981 H.J. Lu <hongjiu.lu@intel.com>
982
983 PR target/59422
984 * config/i386/i386.c (get_builtin_code_for_version): Handle
985 PROCESSOR_HASWELL, PROCESSOR_SILVERMONT, PROCESSOR_BTVER1,
986 PROCESSOR_BTVER2, PROCESSOR_BDVER3 and PROCESSOR_BDVER4.
987 Change priority of PROCESSOR_BDVER1 to P_PROC_XOP.
988 (fold_builtin_cpu): Add "ivybridge", "haswell", "bonnell",
989 "silvermont", "bobcat" and "jaguar" CPU names. Add "sse4a",
990 "fma4", "xop" and "fma" ISA names.
991
992 2013-12-24 H.J. Lu <hongjiu.lu@intel.com>
993
994 * config/i386/i386.c (ix86_option_override_internal): Check
995 opts->x_ix86_arch_string instead of ix86_arch_string.
996
997 2013-12-24 Renlin Li <Renlin.Li@arm.com>
998
999 * config/arm/arm-protos.h (vfp_const_double_for_bits): Declare.
1000 * config/arm/constraints.md (Dp): Define new constraint.
1001 * config/arm/predicates.md (const_double_vcvt_power_of_two): Define
1002 new predicate.
1003 * config/arm/arm.c (arm_print_operand): Add print for new fucntion.
1004 (vfp3_const_double_for_bits): New function.
1005 * config/arm/vfp.md (combine_vcvtf2i): Define new instruction.
1006
1007 2013-12-23 Hans-Peter Nilsson <hp@axis.com>
1008
1009 PR target/59203
1010 * config/cris/cris.c (cris_pic_symbol_type_of): Fix typo,
1011 checking t1 twice instead of t1 and t2 respectively.
1012
1013 PR middle-end/59584
1014 * config/cris/predicates.md (cris_nonsp_register_operand):
1015 New define_predicate.
1016 * config/cris/cris.md: Replace register_operand with
1017 cris_nonsp_register_operand for destinations in all
1018 define_splits where a register is set more than once.
1019
1020 2013-12-23 Jason Merrill <jason@redhat.com>
1021
1022 * gdbinit.in (input_line, input_filename): Define.
1023
1024 * cgraph.h (struct cgraph_node): Add calls_comdat_local.
1025 (symtab_comdat_local_p, symtab_in_same_comdat_p): New.
1026 * cif-code.def: Add USES_COMDAT_LOCAL.
1027 * symtab.c (verify_symtab_base): Make sure we don't refer to a
1028 comdat-local symbol from outside its comdat.
1029 * cgraph.c (verify_cgraph_node): Likewise.
1030 * cgraphunit.c (mark_functions_to_output): Don't mark comdat-locals.
1031 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
1032 (function_and_variable_visibility): Handle comdat-local fns.
1033 * ipa-cp.c (determine_versionability): Don't clone comdat-locals.
1034 * ipa-inline-analysis.c (compute_inline_parameters): Update
1035 calls_comdat_local.
1036 * ipa-inline-transform.c (inline_call): Likewise.
1037 (save_inline_function_body): Don't clear DECL_COMDAT_GROUP.
1038 * ipa-inline.c (can_inline_edge_p): Check calls_comdat_local.
1039 * lto-cgraph.c (input_overwrite_node): Read calls_comdat_local.
1040 (lto_output_node): Write it.
1041 * symtab.c (symtab_dissolve_same_comdat_group_list): Clear
1042 DECL_COMDAT_GROUP for comdat-locals.
1043
1044 2013-12-23 H.J. Lu <hongjiu.lu@intel.com>
1045
1046 * config/i386/i386.c (processor_target_table): Move Bonnell and
1047 Silvermont entries before generic.
1048
1049 2013-12-23 Bingfeng Mei <bmei@broadcom.com>
1050
1051 PR middle-end/59569
1052 * tree-vect-stmts.c (vectorizable_store): Skip permutation for
1053 consant/external operand, and add a few missing \n.
1054
1055 2013-12-23 H.J. Lu <hongjiu.lu@intel.com>
1056 Tocar Ilya <ilya.tocar@intel.com>
1057
1058 * config/i386/core2.md: Replace corei7 with nehalem.
1059
1060 * config/i386/driver-i386.c (host_detect_local_cpu): Use nehalem,
1061 westmere, sandybridge, ivybridge, haswell, bonnell, silvermont
1062 for cpu names.
1063
1064 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
1065 PROCESSOR_COREI7, PROCESSOR_COREI7_AVX, PROCESSOR_ATOM,
1066 PROCESSOR_SLM with PROCESSOR_NEHALEM, PROCESSOR_SANDYBRIDGE,
1067 PROCESSOR_BONNELL, PROCESSOR_SILVERMONT. Define
1068 __nehalem/__nehalem__, __sandybridge/__sandybridge__,
1069 __haswell/__haswell__, __tune_nehalem__, __tune_sandybridge__,
1070 __tune_haswell__, __bonnell/__bonnell__,
1071 __silvermont/__silvermont__, __tune_bonnell__,
1072 __tune_silvermont__.
1073
1074 * config/i386/i386.c (m_COREI7): Renamed to ...
1075 (m_NEHALEM): This.
1076 (m_COREI7_AVX): Renamed to ...
1077 (m_SANDYBRIDGE): This.
1078 (m_ATOM): Renamed to ...
1079 (m_BONNELL): This.
1080 (m_SLM): Renamed to ...
1081 (m_SILVERMONT): This.
1082 (m_CORE_ALL): Updated.
1083 (cpu_names): Add "nehalem", "westmere", "sandybridge",
1084 "ivybridge", "haswell", "broadwell", "bonnell", "silvermont".
1085 (PTA_CORE2): New.
1086 (PTA_NEHALEM): Likewise.
1087 (PTA_WESTMERE): Likewise.
1088 (PTA_SANDYBRIDGE): Likewise.
1089 (PTA_IVYBRIDGE): Likewise.
1090 (PTA_HASWELL): Likewise.
1091 (PTA_BROADWELL): Likewise.
1092 (PTA_BONNELL): Likewise.
1093 (PTA_SILVERMONT): Likewise.
1094 (ix86_option_override_internal): Use new PTA_XXX. Add nehalem,
1095 westmere, sandybridge, ivybridge, haswell, bonnell, silvermont.
1096 (ix86_lea_outperforms): Updated.
1097 (ix86_issue_rate): Likewise.
1098 (ix86_adjust_cost): Likewise.
1099 (ia32_multipass_dfa_lookahead): Likewise.
1100 (do_reorder_for_imul): Likewise.
1101 (swap_top_of_ready_list): Likewise.
1102 (ix86_sched_reorder): Likewise.
1103 (ix86_sched_init_global): Likewise.
1104 (get_builtin_code_for_version): Likewise.
1105 (processor_model): Replace M_INTEL_ATOM, M_INTEL_SLM with
1106 M_INTEL_BONNELL, M_INTEL_SILVERMONT.
1107 (arch_names_table): Updated.
1108
1109 * config/i386/i386.h (TARGET_COREI7): Removed.
1110 (TARGET_COREI7_AVX): Likewise.
1111 (TARGET_ATOM): Likewise.
1112 (TARGET_SLM): Likewise.
1113 (TARGET_NEHALEM): New.
1114 (TARGET_SANDYBRIDGE): Likewise.
1115 (TARGET_BONNELL): Likewise.
1116 (TARGET_SILVERMONT): Likewise.
1117 (target_cpu_default): Add TARGET_CPU_DEFAULT_core_avx2,
1118 TARGET_CPU_DEFAULT_nehalem, TARGET_CPU_DEFAULT_westmere,
1119 TARGET_CPU_DEFAULT_sandybridge, TARGET_CPU_DEFAULT_ivybridge,
1120 TARGET_CPU_DEFAULT_broadwell, TARGET_CPU_DEFAULT_bonnell,
1121 TARGET_CPU_DEFAULT_silvermont. Move TARGET_CPU_DEFAULT_haswell
1122 before TARGET_CPU_DEFAULT_broadwell.
1123 (processor_type): Replace PROCESSOR_COREI7, PROCESSOR_COREI7_AVX,
1124 PROCESSOR_ATOM, PROCESSOR_SLM with PROCESSOR_NEHALEM,
1125 PROCESSOR_SANDYBRIDGE, PROCESSOR_BONNELL, PROCESSOR_SILVERMONT.
1126
1127 * config/i386/i386.md (cpu): Replace corei7 with nehalem.
1128
1129 * config/i386/x86-tune.def: Updated.
1130
1131 * doc/invoke.texi: Replace corei7, corei7-avx, core-avx-i,
1132 core-avx2, atom, slm with nehalem, sandybridge, ivybridge,
1133 haswell, bonnel, silvermont. Add westmere.
1134
1135 2013-12-23 Andrey Belevantsev <abel@ispras.ru>
1136
1137 PR rtl-optimization/57422
1138 * sel-sched.c (fill_vec_av_set): Assert that the fence insn
1139 can always be scheduled in its current form.
1140
1141 2013-12-23 Andrey Belevantsev <abel@ispras.ru>
1142
1143 PR rtl-optimization/57422
1144 * sel-sched.c (mark_unavailable_hard_regs): Fix typo when calling
1145 add_to_hard_reg_set.
1146
1147 2013-12-20 Sharad Singhai <singhai@google.com>
1148
1149 * Makefile.in: Add optinfo.texi.
1150 * doc/invoke.texi: Fix typo.
1151 * doc/optinfo.texi: New documentation for optimization info.
1152 * doc/passes.texi: Add new node.
1153
1154 2013-12-20 Trevor saunders <tsaunders@mozilla.com>
1155
1156 * vec.h (stack_vec): Convert to a templaate specialization of
1157 auto_vec.
1158 * config/i386/i386.c, df-scan.c, function.c, genautomata.c,
1159 gimplify.c, graphite-clast-to-gimple.c, graphite-dependences.c,
1160 graphite-scop-detection.c, graphite-sese-to-poly.c, hw-doloop.c,
1161 trans-mem.c, tree-call-cdce.c, tree-data-ref.c, tree-dfa.c,
1162 tree-if-conv.c, tree-inline.c, tree-loop-distribution.c,
1163 tree-parloops.c, tree-predcom.c, tree-ssa-alias.c,
1164 tree-ssa-loop-ivcanon.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
1165 tree-ssa-uncprop.c, tree-vect-loop.c, tree-vect-patterns.c,
1166 tree-vect-slp.c, tree-vect-stmts.c, var-tracking.c: Adjust.
1167
1168 2013-12-20 Eric Botcazou <ebotcazou@adacore.com>
1169
1170 * config/arm/arm.c (arm_expand_prologue): In a nested APCS frame with
1171 arguments to push onto the stack and no varargs, save ip into the last
1172 stack slot if r3 isn't available on entry.
1173
1174 2013-12-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1175
1176 * config/arm/neon.ml (crypto_intrinsics): Add vceq_64 and vtst_p64.
1177 * config/arm/arm_neon.h: Regenerate.
1178 * config/arm/neon-docgen.ml: Add vceq_p64 and vtst_p64.
1179 * doc/arm-neon-intrinsics.texi: Regenerate.
1180
1181 2013-12-20 Vladimir Makarov <vmakarov@redhat.com>
1182
1183 * config/arm/arm.h (THUMB_SECONDARY_OUTPUT_RELOAD_CLASS): Return
1184 NO_REGS for LRA.
1185
1186 2013-12-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1187
1188 * config/arm/arm_acle.h: Add underscores before variables.
1189
1190 2013-12-20 Bingfeng Mei <bmei@broadcom.com>
1191
1192 PR tree-optimization/59544
1193 * tree-vect-stmts.c (perm_mask_for_reverse): Move before
1194 vectorizable_store.
1195 (vectorizable_store): Handle negative step.
1196
1197 2013-12-20 Tocar Ilya <ilya.tocar@intel.com>
1198
1199 * config.gcc: Support march=broadwell.
1200 * config/i386/driver-i386.c (host_detect_local_cpu): Detect Broadwell.
1201 * config/i386/i386.c (ix86_option_override_internal): Add broadwell.
1202 * doc/invoke.texi: Document march=broadwell.
1203
1204 2013-12-20 Jakub Jelinek <jakub@redhat.com>
1205
1206 * ubsan.c: Include tree-ssanames.h, asan.h and gimplify-me.h.
1207 (ubsan_type_descriptor): Handle BOOLEAN_TYPE and ENUMERAL_TYPE
1208 like INTEGER_TYPE.
1209 (instrument_bool_enum_load): New function.
1210 (ubsan_pass): Call it.
1211 (gate_ubsan): Also enable for SANITIZE_BOOL or SANITIZE_ENUM.
1212 * asan.c (create_cond_insert_point): No longer static.
1213 * asan.h (create_cond_insert_point): Declare.
1214 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE): New
1215 built-in.
1216 * opts.c (common_handle_option): Handle -fsanitize=bool and
1217 -fsanitize=enum.
1218 * builtins.c (fold_builtin_memory_op): When sanitizing bool
1219 and enum loads, don't use enum or bool types for memcpy folding.
1220 * flag-types.h (SANITIZE_BOOL, SANITIZE_ENUM): New.
1221 (SANITIZE_UNDEFINED): Or these in.
1222
1223 2013-12-20 Chung-Ju Wu <jasonwucj@gmail.com>
1224
1225 * config/nds32/nds32.h (NDS32_MODE_TYPE_ALIGN): New macro.
1226 (NDS32_AVAILABLE_REGNUM_FOR_ARG): Use more accurate alignment checking
1227 to determine available register number.
1228 * config/nds32/nds32.c (nds32_needs_double_word_align): Use new
1229 macro NDS32_MODE_TYPE_ALIGN.
1230 (nds32_function_arg): Refine code layout.
1231
1232 2013-12-19 Jeff Law <law@redhat.com>
1233
1234 * doc/invoke.texi: (dump-rtl-ree): Fix typo and clarify ree
1235 handles both zero and sign extension.
1236
1237 2013-12-19 Teresa Johnson <tejohnson@google.com>
1238
1239 PR gcov-profile/59542
1240 * bb-reorder.c (duplicate_computed_gotos): Invoke fixup_partitions
1241 if we have made any changes.
1242
1243 2013-12-19 Jakub Jelinek <jakub@redhat.com>
1244
1245 PR other/59545
1246 * genattrtab.c (struct attr_hash): Change hashcode type to unsigned.
1247 (attr_hash_add_rtx, attr_hash_add_string): Change hashcode parameter
1248 to unsigned.
1249 (attr_rtx_1): Change hashcode variable to unsigned.
1250 (attr_string): Likewise. Perform first multiplication in
1251 unsigned type.
1252 * ifcvt.c (noce_try_store_flag_constants): Avoid signed integer
1253 overflows.
1254 * double-int.c (neg_double): Likewise.
1255 * stor-layout.c (set_min_and_max_values_for_integral_type): Likewise.
1256 * combine.c (force_to_mode): Likewise.
1257 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn,
1258 reload_cse_move2add, move2add_note_store): Likewise.
1259 * simplify-rtx.c (simplify_const_unary_operation,
1260 simplify_const_binary_operation): Likewise.
1261 * ipa-split.c (find_split_points): Initialize first.can_split
1262 and first.non_ssa_vars.
1263 * gengtype-state.c (read_state_files_list): Fix up check.
1264 * genautomata.c (reserv_sets_hash_value): Use portable rotation idiom.
1265
1266 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1267
1268 * config/arm/neon-docgen.ml: Add crypto intrinsics documentation.
1269 * doc/arm-neon-intrinsics.texi: Regenerate.
1270
1271 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1272
1273 * config/arm/neon-testgen.ml (effective_target): Handle "CRYPTO".
1274
1275 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1276
1277 * config/arm/arm.c (enum arm_builtins): Add crypto builtins.
1278 (arm_init_neon_builtins): Handle crypto builtins.
1279 (bdesc_2arg): Likewise.
1280 (bdesc_1arg): Likewise.
1281 (bdesc_3arg): New table.
1282 (arm_expand_ternop_builtin): New function.
1283 (arm_expand_unop_builtin): Handle sha1h explicitly.
1284 (arm_expand_builtin): Handle ternary builtins.
1285 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS):
1286 Define __ARM_FEATURE_CRYPTO.
1287 * config/arm/arm.md: Include crypto.md.
1288 (is_neon_type): Add crypto types.
1289 * config/arm/arm_neon_builtins.def: Add TImode reinterprets.
1290 * config/arm/crypto.def: New.
1291 * config/arm/crypto.md: Likewise.
1292 * config/arm/iterators.md (CRYPTO_UNARY): New int iterator.
1293 (CRYPTO_BINARY): Likewise.
1294 (CRYPTO_TERNARY): Likewise.
1295 (CRYPTO_SELECTING): Likewise.
1296 (crypto_pattern): New int attribute.
1297 (crypto_size_sfx): Likewise.
1298 (crypto_mode): Likewise.
1299 (crypto_type): Likewise.
1300 * config/arm/neon-gen.ml: Handle poly64_t and poly128_t types.
1301 Handle crypto intrinsics.
1302 * config/arm/neon.ml: Add support for poly64 and polt128 types
1303 and intrinsics. Define crypto intrinsics.
1304 * config/arm/neon.md (neon_vreinterpretti<mode>): New pattern.
1305 (neon_vreinterpretv16qi<mode>): Use VQXMOV mode iterator.
1306 (neon_vreinterpretv8hi<mode>): Likewise.
1307 (neon_vreinterpretv4si<mode>): Likewise.
1308 (neon_vreinterpretv4sf<mode>): Likewise.
1309 (neon_vreinterpretv2di<mode>): Likewise.
1310 * config/arm/unspecs.md (UNSPEC_AESD, UNSPEC_AESE, UNSPEC_AESIMC)
1311 (UNSPEC_AESMC, UNSPEC_SHA1C, UNSPEC_SHA1M, UNSPEC_SHA1P, UNSPEC_SHA1H)
1312 (UNSPEC_SHA1SU0, UNSPEC_SHA1SU1, UNSPEC_SHA256H, UNSPEC_SHA256H2)
1313 (UNSPEC_SHA256SU0, UNSPEC_SHA256SU1, VMULLP64): Define.
1314 * config/arm/arm_neon.h: Regenerate.
1315
1316 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
1317
1318 PR driver/59321
1319 * collect2.c (main): Check -fuse-ld=[bfd|gold] when
1320 DEFAULT_LINKER is defined.
1321 * common.opt (fuse-ld=bfd): Add Driver.
1322 (fuse-ld=gold): Likewise.
1323 * gcc.c (use_ld): New variable.
1324 (driver_handle_option): Set use_ld for OPT_fuse_ld_bfd and
1325 OPT_fuse_ld_gold.
1326 (main): Check -fuse-ld=[bfd|gold] for -print-prog-name=ld.
1327
1328 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1329
1330 * Makefile.in (TEXI_GCC_FILES): Add arm-acle-intrinsics.texi.
1331 * config.gcc (extra_headers): Add arm_acle.h.
1332 * config/arm/arm.c (FL_CRC32): Define.
1333 (arm_have_crc): Likewise.
1334 (arm_option_override): Set arm_have_crc.
1335 (arm_builtins): Add CRC32 builtins.
1336 (bdesc_2arg): Likewise.
1337 (arm_init_crc32_builtins): New function.
1338 (arm_init_builtins): Initialise CRC32 builtins.
1339 (arm_file_start): Handle architecture extensions.
1340 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
1341 __ARM_FEATURE_CRC32. Define __ARM_32BIT_STATE.
1342 (TARGET_CRC32): Define.
1343 * config/arm/arm-arches.def: Add armv8-a+crc.
1344 * config/arm/arm-tables.opt: Regenerate.
1345 * config/arm/arm.md (type): Add crc.
1346 (<crc_variant>): New insn.
1347 * config/arm/arm_acle.h: New file.
1348 * config/arm/iterators.md (CRC): New int iterator.
1349 (crc_variant, crc_mode): New int attributes.
1350 * confg/arm/unspecs.md (UNSPEC_CRC32B, UNSPEC_CRC32H, UNSPEC_CRC32W,
1351 UNSPEC_CRC32CB, UNSPEC_CRC32CH, UNSPEC_CRC32CW): New unspecs.
1352 * doc/invoke.texi: Document -march=armv8-a+crc option.
1353 * doc/extend.texi: Document ACLE intrinsics.
1354
1355 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
1356
1357 PR target/59142
1358 * config/arm/arm-ldmstm.ml: Use low_register_operand for Thumb
1359 patterns.
1360 * config/arm/ldmstm.md: Regenerate.
1361
1362 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
1363
1364 PR target/59142
1365 * config/arm/predicates.md (arm_hard_general_register_operand):
1366 New predicate.
1367 (arm_hard_register_operand): Remove.
1368 * config/arm/arm-ldmstm.ml: Use arm_hard_general_register_operand
1369 for all patterns.
1370 * config/arm/ldmstm.md: Regenerate.
1371
1372 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
1373
1374 PR target/59142
1375 * config/arm/predicates.md (vfp_hard_register_operand): New predicate.
1376 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use
1377 vfp_hard_register_operand.
1378
1379 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
1380
1381 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
1382 Define builtin types for poly64_t poly128_t.
1383 (TYPES_BINOPP, aarch64_types_binopp_qualifiers): New.
1384 * aarch64/aarch64-simd-builtins.def: Update builtins table.
1385 * config/aarch64/aarch64-simd.md (aarch64_crypto_pmulldi,
1386 aarch64_crypto_pmullv2di): New.
1387 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Update table for
1388 poly64x2_t mangler.
1389 * config/aarch64/arm_neon.h (poly64x2_t, poly64_t, poly128_t): Define.
1390 (vmull_p64, vmull_high_p64): New.
1391 * config/aarch64/iterators.md (UNSPEC_PMULL<2>): New.
1392
1393 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
1394
1395 * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
1396 * config/aarch64/aarch64-simd.md
1397 (aarch64_crypto_sha256h<sha256_op>v4si, aarch64_crypto_sha256su0v4si,
1398 aarch64_crypto_sha256su1v4si): New.
1399 * config/aarch64/arm_neon.h (vsha256hq_u32, vsha256h2q_u32,
1400 vsha256su0q_u32, vsha256su1q_u32): New.
1401 * config/aarch64/iterators.md (UNSPEC_SHA256H<2>, UNSPEC_SHA256SU<01>):
1402 New.
1403 (CRYPTO_SHA256): New int iterator.
1404 (sha256_op): New int attribute.
1405
1406 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
1407
1408 * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
1409 * config/aarch64/aarch64-builtins.c (aarch64_types_ternopu_qualifiers,
1410 TYPES_TERNOPU): New.
1411 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hsi,
1412 aarch64_crypto_sha1su1v4si, aarch64_crypto_sha1<sha1_op>v4si,
1413 aarch64_crypto_sha1su0v4si): New.
1414 * config/aarch64/arm_neon.h (vsha1cq_u32, sha1mq_u32, vsha1pq_u32,
1415 vsha1h_u32, vsha1su0q_u32, vsha1su1q_u32): New.
1416 * config/aarch64/iterators.md (UNSPEC_SHA1<CPMH>, UNSPEC_SHA1SU<01>):
1417 New.
1418 (CRYPTO_SHA1): New int iterator.
1419 (sha1_op): New int attribute.
1420
1421 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
1422
1423 * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
1424 * config/aarch64/aarch64-builtins.c (aarch64_types_binopu_qualifiers,
1425 TYPES_BINOPU): New.
1426 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi,
1427 aarch64_crypto_aes<aesmc_op>v16qi): New.
1428 * config/aarch64/arm_neon.h (vaeseq_u8, vaesdq_u8, vaesmcq_u8,
1429 vaesimcq_u8): New.
1430 * config/aarch64/iterators.md (UNSPEC_AESE, UNSPEC_AESD, UNSPEC_AESMC,
1431 UNSPEC_AESIMC): New.
1432 (CRYPTO_AES, CRYPTO_AESMC): New int iterators.
1433 (aes_op, aesmc_op): New int attributes.
1434
1435 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
1436
1437 * config/arm/types.md (neon_mul_d_long, crypto_aes, crypto_sha1_xor,
1438 crypto_sha1_fast, crypto_sha1_slow, crypto_sha256_fast,
1439 crypto_sha256_slow): New.
1440
1441 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
1442
1443 * config/aarch64/aarch64.h (TARGET_CRYPTO): New.
1444 (__ARM_FEATURE_CRYPTO): Define if TARGET_CRYPTO is true.
1445
1446 2013-12-19 Dominik Vogt <vogt@linux.vnet.ibm.com>
1447 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1448
1449 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default): New
1450 constant.
1451 (s390_hotpatch_trampoline_halfwords_max): New constant.
1452 (s390_hotpatch_trampoline_halfwords): New static variable.
1453 (get_hotpatch_attribute): New function.
1454 (s390_handle_hotpatch_attribute): New function.
1455 (s390_attribute_table): New target specific attribute table to
1456 implement the hotpatch attribute.
1457 (s390_option_override): Parse hotpatch options.
1458 (s390_function_num_hotpatch_trampoline_halfwords): New function.
1459 (s390_can_inline_p): Implement target hook to
1460 suppress hotpatching for explicitly inlined functions.
1461 (s390_asm_output_function_label): Generate hotpatch prologue.
1462 (TARGET_ATTRIBUTE_TABLE): Define to implement target attribute table.
1463 (TARGET_CAN_INLINE_P): Define to implement target hook.
1464 * config/s390/s390.opt (mhotpatch): New options -mhotpatch,
1465 -mhotpatch=.
1466 * config/s390/s390-protos.h (s390_asm_output_function_label): Add
1467 prototype.
1468 * config/s390/s390.h (ASM_OUTPUT_FUNCTION_LABEL): Target specific
1469 function label generation for hotpatching.
1470 (FUNCTION_BOUNDARY): Align functions to eight bytes.
1471 * doc/extend.texi: Document hotpatch attribute.
1472 * doc/invoke.texi: Document -mhotpatch option.
1473
1474 2013-12-19 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1475
1476 * config/i386/i386.c: Include cfgloop.h.
1477 (ix86_loop_memcount): New function.
1478 (ix86_loop_unroll_adjust): New function.
1479 (TARGET_LOOP_UNROLL_ADJUST): Define.
1480 * config/i386/i386.h
1481 (TARGET_ADJUST_UNROLL): Define.
1482 * config/i386/x86-tune.def
1483 (X86_TUNE_ADJUST_UNROLL): Define.
1484
1485 2013-12-19 Marek Polacek <polacek@redhat.com>
1486
1487 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Remove
1488 variable alg. Use index variable i directly.
1489
1490 2013-12-19 Eric Botcazou <ebotcazou@adacore.com>
1491
1492 * print-tree.c (print_node) <case tcc_type>: Print no_force_blk_flag
1493 for all types.
1494
1495 2013-12-19 Monk Chiang <sh.chiang04@gmail.com>
1496
1497 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
1498 Consider TARGET_CPU_DEFAULT settings.
1499
1500 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
1501
1502 * config/aarch64/aarch64-cores.def: Add support for
1503 -mcpu=cortex-a57.cortex-a53.
1504 * config/aarch64/aarch64-tune.md: Regenerate.
1505 * doc/invoke.texi: Document -mcpu=cortex-a57.cortex-a53.
1506
1507 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
1508
1509 * config/aarch64/aarch64-cores.def: Add new column for SCHEDULER_IDENT.
1510 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Handle SCHEDULER_IDENT.
1511 * config/aarch64/aarch64.c (AARCH64_CORE): Handle SCHEDULER_IDENT.
1512 (aarch64_parse_cpu): mcpu implies a default value for mtune.
1513 * config/aarch64/aarch64.h (AARCH64_CORE): Handle SCHEDULER_IDENT.
1514
1515 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
1516
1517 * common/config/aarch64/aarch64-common.c
1518 (aarch64_rewrite_selected_cpu): New.
1519 (aarch64_rewrite_mcpu): New.
1520 * config/aarch64/aarch64-protos.h
1521 (aarch64_rewrite_selected_cpu): New.
1522 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): New.
1523 (BIG_LITTLE_SPEC_FUNCTIONS): Likewise.
1524 (ASM_CPU_SPEC): Likewise.
1525 (EXTRA_SPEC_FUNCTIONS): Likewise.
1526 (EXTRA_SPECS): Likewise.
1527 (ASM_SPEC): Likewise.
1528 * config/aarch64/aarch64.c (aarch64_start_file): Rewrite target
1529 CPU name.
1530
1531 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
1532
1533 * omp-low.c (simd_clone_clauses_extract): Replaced the string
1534 "cilk simd elemental" with "cilk simd function."
1535 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
1536 Removed a carriage-return from a warning string.
1537
1538 2013-12-18 Aldy Hernandez <aldyh@redhat.com>
1539
1540 * passes.c (execute_function_dump): Set graph_dump_initialized
1541 appropriately.
1542 (pass_init_dump_file): Similarly.
1543 (execute_one_pass): Pass new argument to do_per_function.
1544 * tree-pass.h (class opt_pass): New field graph_dump_initialized.
1545
1546 2013-12-18 Aldy Hernandez <aldyh@redhat.com>
1547
1548 * doc/tree-ssa.texi (SSA Operands): Remove reference to
1549 SSA_OP_VMAYUSE.
1550 Synchronize SSA_OP* definitions with source.
1551 * ssa-iterators.h: Fix comment for FOR_EACH_IMM_USE_STMT.
1552 Add not to SSA_OP* macro definitions.
1553
1554 2013-12-18 Jakub Jelinek <jakub@redhat.com>
1555
1556 PR target/59539
1557 * config/i386/sse.md
1558 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
1559 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): New expanders,
1560 prefix existing define_insn names with *.
1561
1562 2013-12-18 Eric Botcazou <ebotcazou@adacore.com>
1563
1564 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Fix thinko.
1565
1566 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
1567 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1568
1569 * config/arm/t-aprofile: Add cortex-a15.cortex-a7, cortex-a12,
1570 cortex-a57, cortex-a57.cortex-a53.
1571
1572 2013-12-18 Eric Botcazou <ebotcazou@adacore.com>
1573
1574 PR debug/59418
1575 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_offset): Fix comment and tidy.
1576 (dwarf2out_frame_debug_cfa_restore): Handle TARGET_DWARF_REGISTER_SPAN.
1577 (dwarf2out_frame_debug_expr): Tidy.
1578
1579 2013-12-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1580 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1581 Sergey Lega <sergey.s.lega@intel.com>
1582 Anna Tikhonova <anna.tikhonova@intel.com>
1583 Ilya Tocar <ilya.tocar@intel.com>
1584 Andrey Turetskiy <andrey.turetskiy@intel.com>
1585 Ilya Verbin <ilya.verbin@intel.com>
1586 Kirill Yukhin <kirill.yukhin@intel.com>
1587 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1588
1589 * config/i386/sse.md (*fma_fmadd_<mode>): Extend to support masking.
1590 (*fma_fmsub_<mode>): Ditto.
1591 (*fma_fnmadd_<mode>): Ditto.
1592 (*fma_fnmsub_<mode>): Ditto.
1593 (*fma_fmaddsub_<mode>): Ditto.
1594 (*fma_fmsubadd_<mode>): Ditto.
1595 (avx512f_vternlog<mode>): Ditto.
1596 (avx512f_fixupimm<mode>): Ditto.
1597 (avx512f_sfixupimm<mode>): Ditto.
1598 (avx512f_vpermi2var<mode>3): Ditto.
1599 (avx512f_vpermt2var<mode>3): Ditto.
1600 (avx512f_fmaddsub_<mode>_maskz): New.
1601 (avx512f_vternlog<mode>_maskz): Ditto.
1602 (avx512f_fixupimm<mode>_maskz): Ditto.
1603 (avx512f_sfixupimm<mode>_maskz): Ditto.
1604 (avx512f_vpermi2var<mode>3_maskz): Ditto.
1605 (avx512f_vpermt2var<mode>3_maskz): Ditto.
1606 (avx512f_expand<mode>_maskz): Ditto.
1607 * config/i386/subst.md (sd_maskz_name): Ditto.
1608 (sd_mask_op4): Ditto.
1609 (sd_mask_op5): Ditto.
1610 (sd_mask_codefor): Ditto.
1611 (sd_mask_mode512bit_condition): Ditto.
1612 (sd): Ditto.
1613
1614 2013-12-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1615 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1616 Sergey Lega <sergey.s.lega@intel.com>
1617 Anna Tikhonova <anna.tikhonova@intel.com>
1618 Ilya Tocar <ilya.tocar@intel.com>
1619 Andrey Turetskiy <andrey.turetskiy@intel.com>
1620 Ilya Verbin <ilya.verbin@intel.com>
1621 Kirill Yukhin <kirill.yukhin@intel.com>
1622 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1623
1624 * config/i386/sse.md (avx512f_cmp<mode>3): Extend to support masking.
1625 (avx512f_ucmp<mode>3): Ditto.
1626 (avx512f_eq<mode>3): Ditto.
1627 (avx512f_gt<mode>3): Ditto.
1628 (avx512f_testm<mode>3): Ditto.
1629 (avx512f_testnm<mode>3): Ditto.
1630 * config/i386/subst.md (SUBST_S): New.
1631 (mask_scalar_merge_name): Ditto.
1632 (mask_scalar_merge_operand3): Ditto.
1633 (mask_scalar_merge_operand4): Ditto.
1634 (mask_scalar_merge): Ditto.
1635
1636 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
1637
1638 PR middle-end/35545
1639 * gimple-fold.c (fold_gimple_assign): Attempt to devirtualize
1640 OBJ_TYPE_REF.
1641 (gimple_fold_stmt_to_constant_1): Bypass OBJ_TYPE_REF wrappers.
1642
1643 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
1644
1645 PR middle-end/35545
1646 * tree-vrp.c (extract_range_from_unary_expr_1): Handle OBJ_TYPE_REF.
1647
1648 2013-12-17 Teresa Johnson <tejohnson@google.com>
1649
1650 PR gcov-profile/59527
1651 * cfgrtl.c (fixup_reorder_chain): Handle a region-crossing
1652 branch, which can't be eliminated.
1653
1654 2013-12-18 Martin Liska <marxin.liska@gmail.com>
1655 Jan Hubicka <jh@suse.cz>
1656
1657 * cgraphunit.c (node_cmp): New function.
1658 (expand_all_functions): Function ordering added.
1659 * common.opt: New profile based function reordering flag introduced.
1660 * lto-partition.c: Support for time profile added.
1661 * lto.c: Likewise.
1662 * predict.c (handle_missing_profiles): Time profile handled in
1663 missing profiles.
1664
1665 2013-12-17 Jakub Jelinek <jakub@redhat.com>
1666
1667 PR tree-optimization/59523
1668 * tree-vectorizer.c (fold_loop_vectorized_call): Call update_stmt
1669 on updated stmts.
1670
1671 2013-12-17 Aldy Hernandez <aldyh@redhat.com>
1672
1673 * ipa-inline.c (gate_ipa_inline): Remove.
1674 (const pass_data pass_data_ipa_inline): Unset has_gate.
1675 (class pass_ipa_inline): Remove gate() method.
1676
1677 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
1678
1679 * ipa-devirt.c (get_polymorphic_call_info): Fix offset calculatoin
1680 in contains_type_p query.
1681
1682 2013-12-17 Thomas Schwinge <thomas@codesourcery.com>
1683
1684 * omp-low.c (tmp_ompfn_id_num): Remove leftover variable definition.
1685
1686 * tree-pass.h (make_pass_expand_omp_ssa): Remove leftover function
1687 declaration.
1688
1689 * omp-low.c: Remove leftover comment.
1690
1691 * omp-low.c (check_combined_parallel): Reflect reality in comment.
1692
1693 * doc/cfg.texi (Control Flow): Refer to passes.def instead of passes.c.
1694 * doc/passes.texi (Pass manager): Refer to passes.def.
1695
1696 * doc/gccint.texi (Top): Fix inclusion order.
1697
1698 2013-12-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1699
1700 * config/arm/arm-cores.def (cortex-a12): Use cortexa15 scheduling.
1701 * config/arm/arm.c (arm_issue_rate): Handle cortexa12.
1702 * config/arm/arm.md (generic_vfp): Remove cortexa12.
1703
1704 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
1705
1706 * config/arm/arm-cores.def (cortex-a57.cortex-a53): New.
1707 * doc/invoke.texi: Document -mcpu=cortex-a57.cortex-a53.
1708 * config/arm/arm-tables.opt: Regenerate.
1709 * config/arm/arm-tune.md: Regenerate.
1710 * config/arm/bpabi.h
1711 (BE8_LINK_SPEC): Handle -mcpu=cortex-a57.cortex-a53.
1712
1713 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
1714
1715 * config/arm/arm-cores.def (cortex-a57): New.
1716 * doc/invoke.texi: Document -mcpu=cortex-a57.
1717 * config/arm/arm-tables.opt: Regenerate.
1718 * config/arm/arm-tune.md: Regenerate.
1719 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle -mcpu=cortex-a57.
1720
1721 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
1722
1723 * config/arm/arm-cores.def (cortex-a15.cortex-a7): New.
1724 * doc/invoke.texi: Document -mcpu=cortex-a15.cortex-a7.
1725 * config/arm/arm-tables.opt: Regenerate.
1726 * config/arm/arm-tune.md: Regenerate.
1727 * config/arm/bpabi.h
1728 (BE8_LINK_SPEC): Handle -mcpu=cortex-a5.cortex-a7.
1729
1730 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
1731
1732 * config/arm/arm-cores.def: Add new column for TUNE_IDENT.
1733 * config/arm/genopt.sh: Improve layout.
1734 * config/arm/arm-tune.md: Regenerate.
1735 * config/arm/arm-tables.opt: Regenerate.
1736 * config/arm/arm-opts.h (ARM_CORE): Modify macro for TUNE_IDENT.
1737 * config/arm/arm.c (ARM_CORE): Modify macro for TUNE_IDENT.
1738 (arm_option_override): When a CPU is chosen, that should also
1739 form the tune target.
1740 * config/arm/arm.h (ARM_CORE): Modify macro for TUNE_IDENT.
1741
1742 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
1743
1744 * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): New.
1745 (arm_rewrite_mcpu): Likewise.
1746 * config/arm/arm-protos.h (arm_rewrite_selected_cpu): New.
1747 * config/arm/arm.h (BIG_LITTLE_SPEC): New.
1748 (BIG_LITTLE_SPEC_FUNCTIONS): Likewise.
1749 (EXTRA_SPEC_FUNCTIONS): Include BIG_LITTLE_SPEC_FUNCTIONS.
1750 (ASM_CPU_SPEC): Include BIG_LITTLE_SPEC.
1751 * config/arm/arm.c (arm_file_start): Rewrite arm_selecetd_cpu values.
1752
1753 2013-12-17 Eric Botcazou <ebotcazou@adacore.com>
1754
1755 * expmed.c (lowpart_bit_field_p): Fix comment.
1756 (store_bit_field_using_insv): Fix formatting.
1757 (store_bit_field): Likewise.
1758 (store_fixed_bit_field): More declaration and remove return.
1759 (store_fixed_bit_field_1): Fix formatting.
1760 (extract_fixed_bit_field): Move declaration.
1761 (extract_fixed_bit_field_1): Simplify.
1762
1763 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
1764
1765 * ipa-utils.h (possible_polymorphic_call_targets): Determine
1766 context of the call.
1767 * gimple-fold.c (gimple_fold_call): Use ipa-devirt to devirtualize.
1768
1769 2013-12-17 Jakub Jelinek <jakub@redhat.com>
1770
1771 * expr.c (convert_modes): For SUBREG_PROMOTED_VAR_P use SUBREG_REG (x)
1772 instead of x as last gen_lowpart argument.
1773
1774 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1775
1776 * predict.h (PROB_LIKELY): Fix the value.
1777 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Add support
1778 for overflow checking for modes without 2xwider supported mode,
1779 if the mode has 2xnarrower mode.
1780
1781 * internal-fn.c: Include stringpool.h and tree-ssanames.h.
1782 (ubsan_expand_si_overflow_addsub_check): In the generic expansion,
1783 try to improve generated code if one of the arguments is constant
1784 or get_range_info says that one of the argument is always
1785 negative or always non-negative.
1786 * tree-vrp.c (simplify_internal_call_using_ranges): New function.
1787 (simplify_stmt_using_ranges): Call it.
1788
1789 2013-12-16 Vladimir Makarov <vmakarov@redhat.com>
1790
1791 PR rtl-optimization/59466
1792 * emit-rtl.c (change_address_1): Don't validate address for LRA.
1793 * recog.c (general_operand): Accept any memory for LRA.
1794 * lra.c (lra_set_insn_recog_data): Add an assert.
1795
1796 2013-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1797
1798 * config/arm/driver-arm.c (arm_cpu_table): Add cortex-a12 entry.
1799
1800 2013-12-14 Jan Hubicka <jh@suse.cz>
1801 Markus Trippelsdorf <octoploid@yandex.com>
1802
1803 PR ipa/59265
1804 * ipa-profile.c (ipa_profile_generate_summary): Do not ICE when
1805 call is already devirtualized.
1806
1807 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1808
1809 * Makefile.in (version.o): Restore dependencies on
1810 $(REVISION), $(DATESTAMP), $(BASEVER) and $(DEVPHASE).
1811
1812 2013-12-14 Jan Hubicka <jh@suse.cz>
1813
1814 PR ipa/59473
1815 * ipa-devirt.c (get_class_context): Do not ICE when type is found
1816 at wrong offset.
1817
1818 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1819
1820 PR libgomp/58756
1821 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_REDUCTION>: For
1822 reductions without placeholder if is_simd, but when not using
1823 GOMP_SIMD* internal calls, also perform the reduction operation
1824 on the outer var rather than simple assignment.
1825
1826 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1827
1828 PR middle-end/58956
1829 PR middle-end/59470
1830 * gimple-walk.h (walk_stmt_load_store_addr_fn): New typedef.
1831 (walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Use it
1832 for callback params.
1833 * gimple-walk.c (walk_stmt_load_store_ops): Likewise.
1834 (walk_stmt_load_store_addr_ops): Likewise. Adjust all callback
1835 calls to supply the gimple operand containing the base tree
1836 as an extra argument.
1837 * tree-ssa-ter.c: Include gimple-walk.h.
1838 (find_ssaname, find_ssaname_in_store): New helper functions.
1839 (find_replaceable_in_bb): For calls or GIMPLE_ASM, only set
1840 same_root_var if USE is used somewhere in the stores of the stmt.
1841 * ipa-prop.c (visit_ref_for_mod_analysis): Remove name of the stmt
1842 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
1843 * ipa-pure-const.c (check_load, check_store, check_ipa_load,
1844 check_ipa_store): Likewise.
1845 * gimple.c (gimple_ior_addresses_taken_1, check_loadstore): Likewise.
1846 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Likewise.
1847 (verify_non_ssa_vars, visit_bb): Adjust their callers.
1848 * cfgexpand.c (add_scope_conflicts_1): Use
1849 walk_stmt_load_store_addr_fn type for visit variable.
1850 (visit_op, visit_conflict): Remove name of the stmt
1851 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
1852 * tree-sra.c (asm_visit_addr): Likewise. Remove name of the data
1853 argument and ATTRIBUTE_UNUSED.
1854 * cgraphbuild.c (mark_address, mark_load, mark_store): Add another
1855 unnamed tree argument.
1856 * gimple-ssa-isolate-paths.c (check_loadstore): Likewise. Remove
1857 ATTRIBUTE_UNUSED from stmt parameter.
1858
1859 2013-12-16 Chung-Lin Tang <cltang@codesourcery.com>
1860
1861 * opts-common.c (integral_argument): Add support for
1862 hexadecimal command option integer arguments. Update comments.
1863
1864 2013-12-14 Jan Hubicka <jh@suse.cz>
1865
1866 PR ipa/59265
1867 * ipa-prop.c (ipa_analyze_call_uses): Skip already
1868 devirtualized calls.
1869
1870 2013-12-14 Jan Hubicka <jh@suse.cz>
1871
1872 PR middle-end/58477
1873 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
1874
1875 2013-12-14 Jan Hubicka <jh@suse.cz>
1876
1877 PR middle-end/58477
1878 * cgraphclones.c (cgraph_clone_edge): Do not resolve speculative edges.
1879
1880 2013-12-14 H.J. Lu <hongjiu.lu@intel.com>
1881
1882 PR target/59492
1883 * config/i386/i386.c (ix86_function_specific_restore): Don't
1884 change -fPIC.
1885
1886 2013-12-14 Eric Botcazou <ebotcazou@adacore.com>
1887
1888 * var-tracking.c (add_stores): Fix oversight in latest commit.
1889
1890 2013-12-14 Marek Polacek <polacek@redhat.com>
1891
1892 PR sanitizer/59503
1893 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Call
1894 expand_binop with correct optab depending on code.
1895
1896 2013-12-14 Tom de Vries <tom@codesourcery.com>
1897
1898 * calls.c (expand_call): Fix REG_PARM_STACK_SPACE comparison.
1899
1900 2013-12-13 DJ Delorie <dj@redhat.com>
1901
1902 * config/rl78/rl78-expand.md (one_cmplqi2): Make constant signed.
1903
1904 * config/msp430/msp430.md (movqi): replace general_operand with
1905 msp_general_operand and nonimmediate_operand with
1906 msp_nonimmediate_operand to allow volatile operands.
1907 (movhi): Likewise.
1908 (movpsi): Likewise.
1909 (addpsi3): Likewise.
1910 (addhi3): Likewise.
1911 (addhi3_cy): Likewise.
1912 (addchi4_cy): Likewise.
1913 (xor<mode>3): Likewise.
1914 (ome_cmpl<mode>2): Likewise.
1915 (extendqihi2): Likewise.
1916 (zero_extendqihi2): Likewise.
1917 (zero_extendhipsi2): Likewise.
1918 (truncpsihi2): Likewise.
1919 (srai_1): Likewise.
1920
1921 2013-12-13 Vladimir Makarov <vmakarov@redhat.com>
1922
1923 * ira.h (struct ira_reg_equiv): Rename to ira_reg_equiv_s.
1924 * ira.c: Ditto.
1925 * lra-int.h (lra_init_equiv): New prototype.
1926 * lra-constraints.c (lra_init_equiv, update_equiv): New functions.
1927 (loc_equivalence_callback): Use the 3rd arg.
1928 (lra_constraints): Update equivalences. Pass curr_insn to
1929 simplify_replace_fn_rtx.
1930 * lra.c (lra): Call lra_init_equiv.
1931
1932 2013-12-13 Kenneth Zadeck <zadeck@naturalbridge.com>
1933
1934 * genmodes.c (emit_max_int): Fixed missing parens.
1935
1936 2013-12-13 Aldy Hernandez <aldyh@redhat.com>
1937
1938 PR tree-optimization/59149
1939 * calls.c (flags_from_decl_or_type): Fail on non decl or type.
1940 * trans-mem.c (diagnose_tm_1): Do not call flags_from_decl_or_type
1941 if no type or decl.
1942
1943 2013-12-13 Kenneth Zadeck <zadeck@naturalbridge.com>
1944
1945 * config/arc/arc.h (BITS_PER_UNIT): Removed.
1946 * config/bfin/bfin.h (BITS_PER_UNIT): Removed.
1947 * config/lm32/lm32.h (BITS_PER_UNIT): Removed.
1948 * config/m32c/m32c.h (BITS_PER_UNIT): Removed.
1949 * config/microblaze/microblaze.h (BITS_PER_UNIT): Removed.
1950 * config/picochip/picochip.h (BITS_PER_UNIT): Removed.
1951 * config/spu/spu.h (BITS_PER_UNIT): Removed.
1952 * defaults.h (BITS_PER_UNIT): Removed.
1953 * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): New.
1954 * doc/rtl (BITS_PER_UNIT): Moved from tm.texi.
1955 (MAX_BITSIZE_MODE_ANY_INT): Updated.
1956 * doc/tm.texi (BITS_PER_UNIT): Removed.
1957 * doc/tm.texi.in (BITS_PER_UNIT): Removed.
1958 * genmodes.c (bits_per_unit, max_bitsize_mode_any_int): New.
1959 (create_modes): Added code to set bits_per_unit and
1960 max_bitsize_mode_any_int.
1961 (emit_max_int): Changed code generation.
1962 * mkconfig.sh: Added insn-modes.h.
1963
1964 2013-12-13 Jeff Law <law@redhat.com>
1965
1966 PR tree-optimization/45685
1967 * tree-ssa-phiopt.c (neg_replacement): New function.
1968 (tree_ssa_phiopt_worker): Call it.
1969
1970 2013-12-13 Yuri Rumyantsev <ysrumyan@gmail.com>
1971
1972 * config/i386/i386.c (slm_cost): Fix imul cost for HI.
1973
1974 2013-12-13 Bin Cheng <bin.cheng@arm.com>
1975
1976 PR tree-optimization/58296
1977 PR tree-optimization/41488
1978 * tree-scalar-evolution.c: Include necessary header files.
1979 (simplify_peeled_chrec): New function.
1980 (analyze_evolution_in_loop): New static variable.
1981 Call simplify_peeled_chrec.
1982 * tree-ssa-loop-ivopts.c (mark_bivs): Don't mark peeled IV as biv.
1983 (add_old_iv_candidates): Don't add candidate for peeled IV.
1984 * tree-affine.h (aff_combination_zero_p): New function.
1985
1986 2013-12-13 Nick Clifton <nickc@redhat.com>
1987
1988 * config/msp430/msp430.c (is_wakeup_func): New function. Returns
1989 true if the current function has the wakeup attribute.
1990 (msp430_start_function): Note if the function has the wakeup
1991 attribute.
1992 (msp430_attribute_table): Add wakeup attribute.
1993 (msp430_expand_epilogue): Add support for wakeup functions.
1994 * config/msp430/msp430.md (disable_interrupts): Emit a NOP after
1995 the DINT instruction.
1996 * doc/extend.texi: Document the wakeup attribute.
1997
1998 2013-12-13 Kai Tietz <kitetz@redhat.com>
1999
2000 PR c++/57897
2001 * config/i386/i386.c (ix86_option_override_internal): Set for
2002 x64 target flag_unwind_tables, if flag_asynchronous_unwind_tables
2003 was explicit set.
2004
2005 2013-12-12 Jeff Law <law@redhat.com>
2006
2007 * i386.md (simple LEA peephole2): Add missing mode to zero_extend
2008 for zero-extended MULT simple LEA pattern.
2009
2010 2013-12-12 Vladimir Makarov <vmakarov@redhat.com>
2011
2012 PR middle-end/59470
2013 * lra-coalesce.c (lra_coalesce): Invalidate inheritance pseudo
2014 values if necessary.
2015
2016 2013-12-12 Jakub Jelinek <jakub@redhat.com>
2017
2018 PR libgomp/59467
2019 * gimplify.c (omp_check_private): Add copyprivate argument, if it
2020 is true, don't check omp_privatize_by_reference.
2021 (gimplify_scan_omp_clauses): For OMP_CLAUSE_COPYPRIVATE verify
2022 decl is private in outer context. Adjust omp_check_private caller.
2023
2024 2013-12-11 Jeff Law <law@redhat.com>
2025
2026 PR rtl-optimization/59446
2027 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
2028 test for crossing a loop header.
2029
2030 2013-12-11 Sriraman Tallam <tmsriram@google.com>
2031
2032 PR target/59390
2033 * config/i386/i386.c (get_builtin): New function.
2034 (ix86_builtin_vectorized_function): Replace all instances of
2035 ix86_builtins[...] with get_builtin(...).
2036 (ix86_builtin_reciprocal): Ditto.
2037
2038 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
2039
2040 * langhooks.h (lang_hooks_for_decls): Remove lang_hooks_for_cilkplus.
2041 (lang_hooks_for_cilkplus): Remove.
2042 * langhooks.c (lhd_cilk_detect_spawn): Likewise.
2043 (lhd_install_body_with_frame_cleanup): Likewise.
2044 * langhooks-def.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
2045 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
2046 (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
2047 (LANG_HOOKS_CILKPLUS): Likewise.
2048 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_CILKPLUS.
2049 * gimplify.c (gimplify_expr): Removed CILK_SPAWN_STMT case.
2050 (gimplify_modify_expr): Removed handling of _Cilk_spawn in expr.
2051 (gimplify_call_expr): Likewise.
2052
2053 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
2054
2055 * expr.c (expand_assignment): Remove dependency on
2056 flag_strict_volatile_bitfields. Always set the memory access mode.
2057 (expand_expr_real_1): Likewise.
2058
2059 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
2060
2061 PR middle-end/59134
2062 * expmed.c (store_bit_field): Use narrow_bit_field_mem and
2063 store_fixed_bit_field_1 for -fstrict-volatile-bitfields.
2064 (store_fixed_bit_field): Split up. Call store_fixed_bit_field_1
2065 to do the real work.
2066 (store_fixed_bit_field_1): New function.
2067 (store_split_bit_field): Limit the unit size to the memory mode size,
2068 to prevent recursion.
2069
2070 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
2071 Sandra Loosemore <sandra@codesourcery.com>
2072
2073 PR middle-end/23623
2074 PR middle-end/48784
2075 PR middle-end/56341
2076 PR middle-end/56997
2077 * expmed.c (strict_volatile_bitfield_p): Add bitregion_start
2078 and bitregion_end parameters. Test for compliance with C++
2079 memory model.
2080 (store_bit_field): Adjust call to strict_volatile_bitfield_p.
2081 Add fallback logic for cases where -fstrict-volatile-bitfields
2082 is supposed to apply, but cannot.
2083 (extract_bit_field): Likewise. Use narrow_bit_field_mem and
2084 extract_fixed_bit_field_1 to do the extraction.
2085 (extract_fixed_bit_field): Revert to previous mode selection algorithm.
2086 Call extract_fixed_bit_field_1 to do the real work.
2087 (extract_fixed_bit_field_1): New function.
2088
2089 2013-12-11 Sandra Loosemore <sandra@codesourcery.com>
2090
2091 PR middle-end/23623
2092 PR middle-end/48784
2093 PR middle-end/56341
2094 PR middle-end/56997
2095 * expmed.c (strict_volatile_bitfield_p): New function.
2096 (store_bit_field_1): Don't special-case strict volatile
2097 bitfields here.
2098 (store_bit_field): Handle strict volatile bitfields here instead.
2099 (store_fixed_bit_field): Don't special-case strict volatile
2100 bitfields here.
2101 (extract_bit_field_1): Don't special-case strict volatile
2102 bitfields here.
2103 (extract_bit_field): Handle strict volatile bitfields here instead.
2104 (extract_fixed_bit_field): Don't special-case strict volatile
2105 bitfields here. Simplify surrounding code to resemble that in
2106 store_fixed_bit_field.
2107 * doc/invoke.texi (Code Gen Options): Update
2108 -fstrict-volatile-bitfields description.
2109
2110 2013-12-11 Kugan Vivekanandarajah <kuganv@linaro.org>
2111
2112 * configure.ac: Add check for aarch64 assembler -mabi support.
2113 * configure: Regenerate.
2114 * config.in: Regenerate.
2115 * config/aarch64/aarch64-elf.h (ASM_MABI_SPEC): New define.
2116 (ASM_SPEC): Update to substitute -mabi with ASM_MABI_SPEC.
2117 * config/aarch64/aarch64.h (aarch64_override_options): Issue error
2118 if assembler does not support -mabi and option ilp32 is selected.
2119 * doc/install.texi: Added note that building gcc 4.9 and after
2120 with pre 2.24 binutils will not support -mabi=ilp32.
2121
2122 2013-12-11 Marek Polacek <polacek@redhat.com>
2123
2124 PR sanitizer/59399
2125 * expr.c (expand_expr_real_1): Remove assert dealing with
2126 internal calls and turn that into a condition instead.
2127
2128 2013-12-11 Yvan Roux <yvan.roux@linaro.org>
2129
2130 * config/arm/arm.opt (mlra): Enable LRA by default.
2131
2132 2013-12-11 Jakub Jelinek <jakub@redhat.com>
2133
2134 PR tree-optimization/59417
2135 * tree-ssa-copy.c (fini_copy_prop): If copy_of[i].value is defined
2136 in a different bb rhan var, only duplicate points-to info and
2137 not alignment info and don't duplicate range info.
2138 * tree-ssa-loop-niter.c (determine_value_range): Instead of
2139 assertion failure handle inconsistencies in range info by only
2140 using var's range info and not PHI result range infos.
2141
2142 PR tree-optimization/59386
2143 * tree-inline.c (remap_gimple_stmt): If not id->do_not_unshare,
2144 unshare_expr (id->retval) before passing it to gimple_build_assign.
2145
2146 2013-12-11 Bin Cheng <bin.cheng@arm.com>
2147
2148 Reverted:
2149 2013-12-10 Bin Cheng <bin.cheng@arm.com>
2150 PR tree-optimization/41488
2151 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
2152 for PEELED_CHREC kind IV.
2153 * tree-scalar-evolution.c: Include necessary header files.
2154 (peeled_chrec_map, simplify_peeled_chrec): New.
2155 (analyze_evolution_in_loop): New static variable.
2156 Call simplify_peeled_chrec.
2157 (scev_initialize): Initialize peeled_chrec_map.
2158 (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
2159
2160 2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
2161
2162 PR target/59458
2163 * config/i386/i386.md (*movsf_internal): Set mode to SI for
2164 alternative 13.
2165
2166 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
2167
2168 PR rtl-optimization/58295
2169 * simplify-rtx.c (simplify_truncation): Restrict the distribution for
2170 WORD_REGISTER_OPERATIONS targets.
2171
2172 2013-12-10 Richard Sandiford <rdsandiford@googlemail.com>
2173
2174 * genrecog.c (validate_pattern): Treat all messages except missing
2175 modes as errors.
2176 * config/epiphany/epiphany.md: Remove constraints from
2177 define_peephole2s.
2178 * config/h8300/h8300.md: Remove constraints from define_splits.
2179 * config/msp430/msp430.md: Likewise.
2180 * config/mcore/mcore.md (movdi_i, movsf_i, movdf_k): Use
2181 nonimmediate_operand rather than general_operand for operand 0.
2182 * config/moxie/moxie.md (*movsi, *movqi, *movhi): Likewise.
2183 * config/pdp11/predicates.md (float_operand, float_nonimm_operand):
2184 Use match_operator rather than match_test to invoke general_operand.
2185 * config/v850/v850.md (*movqi_internal, *movhi_internal)
2186 (*movsi_internal_v850e, *movsi_internal, *movsf_internal): Likewise.
2187
2188 2013-12-10 Richard Sandiford <rdsandiford@googlemail.com>
2189
2190 * config/tilegx/tilegx.md (insn_ld_add<bitsuffix>): Use
2191 register_operand rather than pointer_operand. Add modes to the
2192 operands.
2193 (insn_ldna_add<bitsuffix>): Likewise.
2194 (insn_ld<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
2195 (insn_ldnt_add<bitsuffix>): Likewise.
2196 (insn_ldnt<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
2197 (insn_ld_add_L2<bitsuffix>): Likewise.
2198 (insn_ldna_add_L2<bitsuffix>): Likewise.
2199 (insn_ld<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
2200 (insn_ldnt_add_L2<bitsuffix>): Likewise.
2201 (insn_ldnt<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
2202 (insn_ld_add_miss<bitsuffix>): Likewise.
2203 (insn_ldna_add_miss<bitsuffix>): Likewise.
2204 (insn_ld<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
2205 (insn_ldnt_add_miss<bitsuffix>): Likewise.
2206 (insn_ldnt<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
2207 (insn_st_add<bitsuffix>): Likewise.
2208 (insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
2209 (*insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
2210 (insn_stnt_add<bitsuffix>): Likewise.
2211 (insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
2212 (*insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
2213 (vec_pack_<pack_optab>_v4hi): Use register_operand rather than
2214 reg_or_0_operand for operand 0.
2215 (insn_v2<pack_insn>): Likewise.
2216 (vec_pack_hipart_v4hi): Likewise.
2217 (insn_v2packh): Likewise.
2218 (vec_pack_ssat_v2si): Likewise.
2219 (insn_v4packsc): Likewise.
2220
2221 2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
2222
2223 * basic-block.h (gcov_working_set_t): Put back typedef.
2224 * gcov-io.h (gcov_bucket_type): Likewise.
2225 (gcov_working_set_info, gcov_working_set_t): Likewise.
2226
2227 2013-12-10 Oleg Endo <olegendo@gcc.gnu.org>
2228
2229 * cgraph.h (cgraph_node_set_iterator, varpool_node_set_iterator):
2230 Remove typedef.
2231 (cgraph_inline_failed_enum, cgraph_inline_failed_t): Remove typedef and
2232 rename to cgraph_inline_failed_t.
2233 * tree-ssa-alias.h (ao_ref_s, ao_ref): Remove typedef and rename
2234 to ao_ref.
2235 * reload.h (reg_equivs_s, reg_equivs_t): Remove typedef and rename
2236 to reg_equivs_t.
2237 * conditions.h (CC_STATUS): Remove typedef.
2238 * bitmap.h (bitmap_obstack): Remove typedef.
2239 (bitmap_element_def, bitmap_element): Remove typedef and rename to
2240 bitmap_element.
2241 (bitmap_head_def, bitmap_head): Remove typedef and rename to
2242 bitmap_head.
2243 (bitmap_iterator): Remove typedef.
2244 * target.h (cumulative_args_t, print_switch_type,
2245 secondary_reload_info): Remove typedef.
2246 * dwarf2out.h (dw_cfi_oprnd_struct, dw_cfi_oprnd): Remove
2247 dw_cfi_oprnd_struct alias.
2248 (dw_cfi_struct, dw_cfi_node): Remove typedef and rename to dw_cfi_node.
2249 (dw_fde_struct, dw_fde_node): Remove typedef and rename to dw_fde_node.
2250 (cfa_loc, dw_cfa_location): Remove typedef and rename to
2251 dw_cfa_location.
2252 (dw_vec_struct, dw_vec_const): Remove typedef and rename to
2253 dw_vec_const.
2254 (dw_val_struct, dw_val_node): Remove typedef and rename to dw_val_node.
2255 (dw_loc_descr_struct, dw_loc_descr_node): Remove typedef and rename to
2256 dw_loc_descr_node.
2257 * params.h (param_info, compiler_param): Remove typedef.
2258 * opts.h (cl_deferred_param): Remove typedef.
2259 * sreal.h (sreal): Remove typedef.
2260 * ddg.h (dep_type, dep_data_type): Remove typedef.
2261 * graphite-clast-to-gimple.h (cloog_prog_clast, bb_pbb_def): Remove
2262 typedef.
2263 * lto-streamer.h (lto_decl_stream_e_t, lto_encoder_entry,
2264 lto_symtab_encoder_iterator, res_pair): Remove typedef.
2265 * tree-affine.h (affine_tree_combination, aff_tree): Remove typedef
2266 and rename to aff_tree.
2267 * sched-int.h (region): Remove typedef.
2268 * diagnostic.h (diagnostic_info,
2269 diagnostic_classification_change_t): Remove typedef.
2270 * tree-ssa-loop.h (affine_iv_d): Remove typedef and rename to
2271 affine_iv.
2272 * sbitmap.h (sbitmap_iterator): Remove typedef.
2273 * ssa-iterators.h (immediate_use_iterator_d, imm_use_iterator):
2274 Remove typedef and rename to imm_use_iterator.
2275 (ssa_operand_iterator_d, ssa_op_iter): Remove typedef and rename to
2276 ssa_op_iter.
2277 * ggc-internal.h (ggc_statistics): Remove typedef.
2278 * cselib.h (cselib_val_struct, cselib_val): Remove typedef and
2279 rename to cselib_val.
2280 * tree-core.h (alias_pair): Remove typedef.
2281 (constructor_elt_d, constructor_elt): Remove typedef and rename to
2282 constructor_elt.
2283 (ssa_use_operand_d, ssa_use_operand_t): Remove typedef and rename to
2284 ssa_use_operand_t.
2285 * graphite-sese-to-poly.h (base_alias_pair): Remove typedef.
2286 * tree-data-ref.h (conflict_function): Remove typedef.
2287 * tree-inline.h (copy_body_data): Remove typedef.
2288 * ipa-inline.h (condition, size_time_entry, inline_param_summary_t,
2289 edge_growth_cache_entry): Remove typedef.
2290 * regrename.h (operand_rr_info, insn_rr_info): Remove typedef.
2291 * gimple-iterator.h (gimple_stmt_iterator_d, gimple_stmt_iterator):
2292 Remove typedef and rename to gimple_stmt_iterator.
2293 * basic-block.h (ce_if_block, ce_if_block_t): Remove typedef and
2294 rename to ce_if_block.
2295 (edge_iterator): Remove typedef.
2296 * ipa-prop.h (ipa_agg_jf_item, ipa_agg_jf_item_t): Remove typedef
2297 and rename to ipa_agg_jf_item.
2298 (ipa_agg_jump_function_t, ipa_param_descriptor_t, ipa_node_params_t,
2299 ipa_parm_adjustment_t): Remove typedef.
2300 (ipa_jump_func, ipa_jump_func_t): Remove typedef and rename to
2301 ipa_jump_func.
2302 (ipa_edge_args, ipa_edge_args_t): Remove typedef and rename to
2303 ipa_edge_args.
2304 * gcov-io.h (gcov_bucket_type): Remove typedef.
2305 (gcov_working_set_info, gcov_working_set_t): Remove typedef and rename
2306 to gcov_working_set_t.
2307 * ira-int.h (minmax_set_iterator, ira_allocno_iterator,
2308 ira_object_iterator, ira_allocno_object_iterator, ira_pref_iterator,
2309 ira_copy_iterator, ira_object_conflict_iterator): Remove typedef.
2310 * tree-iterator.h (tree_stmt_iterator): Remove typedef.
2311 * rtl.h (addr_diff_vec_flags, mem_attrs, reg_attrs,
2312 replace_label_data): Remove typedef.
2313 (rtunion_def, rtunion): Remove typedef and rename to rtunion.
2314 * hard-reg-set.h (hard_reg_set_iterator): Remove typedef.
2315 * sel-sched-ir.h (_list_iterator, sel_global_bb_info_def,
2316 sel_region_bb_info_def, succ_iterator): Remove typedef.
2317 (deps_where_def, deps_where_t): Remove typedef and rename to
2318 deps_where_t.
2319 * coretypes.h: Adapt forward declarations.
2320 * tree-scalar-evolution.h: Likewise.
2321 * tree-ssa-address.h: Likewise.
2322 * tree-ssa-operands.h: Likewise.
2323 * function.h: Likewise.
2324 * config/frv/frv-protos.h: Likewise.
2325 * targhooks.h: Likewise.
2326 * basic_block.h: Likewise.
2327 * rtl.def: Adapt documentation.
2328 * doc/tm.texi: Likewise.
2329 * ipa-cp.c: Adapt uses.
2330 * bitmap.c: Likewise.
2331 * dwarf2out.c: Likewise.
2332 * target.def: Likewise.
2333 * ipa-inline-analysis.c: Likewise.
2334 * dwarf2cfi.c: Likewise.
2335 * tree-ssa-loop-ivopts.c: Likewise.
2336 * lto-cgraph.c: Likewise.
2337 * config/frv/frv.c: Likewise.
2338 * ifcvt.c: Likewise.
2339 * ipa-prop.c: Likewise.
2340
2341 2013-12-10 Kai Tietz <ktietz@redhat.com>
2342
2343 PR target/56807
2344 * config/i386/i386.c (ix86_expand_prologue): Address saved
2345 registers stack-relative, not via frame-pointer.
2346
2347 2013-12-10 Richard Biener <rguenther@suse.de>
2348
2349 PR middle-end/38474
2350 * tree-ssa-structalias.c (solution_set_expand): Expand into
2351 a different possibly cached bitmap and return the result.
2352 (set_union_with_increment): Pass in a shared expanded bitmap
2353 and adjust.
2354 (do_sd_constraint): Likewise.
2355 (do_ds_constraint): Likewise.
2356 (do_complex_constraint): Likewise.
2357 (solve_graph): Manage the shared expanded bitmap.
2358
2359 2013-12-10 Jakub Jelinek <jakub@redhat.com>
2360
2361 * tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field.
2362 (LOOP_VINFO_SCALAR_LOOP): Define.
2363 (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
2364 * config/i386/sse.md (maskload<mode>, maskstore<mode>): New expanders.
2365 * tree-data-ref.c (get_references_in_stmt): Handle MASK_LOAD and
2366 MASK_STORE.
2367 * internal-fn.def (LOOP_VECTORIZED, MASK_LOAD, MASK_STORE): New
2368 internal fns.
2369 * tree-if-conv.c: Include expr.h, optabs.h, tree-ssa-loop-ivopts.h and
2370 tree-ssa-address.h.
2371 (release_bb_predicate): New function.
2372 (free_bb_predicate): Use it.
2373 (reset_bb_predicate): Likewise. Don't unallocate bb->aux
2374 just to immediately allocate it again.
2375 (add_to_predicate_list): Add loop argument. If basic blocks that
2376 dominate loop->latch don't insert any predicate.
2377 (add_to_dst_predicate_list): Adjust caller.
2378 (if_convertible_phi_p): Add any_mask_load_store argument, if true,
2379 handle it like flag_tree_loop_if_convert_stores.
2380 (insert_gimplified_predicates): Likewise.
2381 (ifcvt_can_use_mask_load_store): New function.
2382 (if_convertible_gimple_assign_stmt_p): Add any_mask_load_store
2383 argument, check if some conditional loads or stores can't be
2384 converted into MASK_LOAD or MASK_STORE.
2385 (if_convertible_stmt_p): Add any_mask_load_store argument,
2386 pass it down to if_convertible_gimple_assign_stmt_p.
2387 (predicate_bbs): Don't return bool, only check if the last stmt
2388 of a basic block is GIMPLE_COND and handle that. Adjust
2389 add_to_predicate_list caller.
2390 (if_convertible_loop_p_1): Only call predicate_bbs if
2391 flag_tree_loop_if_convert_stores and free_bb_predicate in that case
2392 afterwards, check gimple_code of stmts here. Replace is_predicated
2393 check with dominance check. Add any_mask_load_store argument,
2394 pass it down to if_convertible_stmt_p and if_convertible_phi_p,
2395 call if_convertible_phi_p only after all if_convertible_stmt_p calls.
2396 (if_convertible_loop_p): Add any_mask_load_store argument,
2397 pass it down to if_convertible_loop_p_1.
2398 (predicate_mem_writes): Emit MASK_LOAD and/or MASK_STORE calls.
2399 (combine_blocks): Add any_mask_load_store argument, pass
2400 it down to insert_gimplified_predicates and call predicate_mem_writes
2401 if it is set. Call predicate_bbs.
2402 (version_loop_for_if_conversion): New function.
2403 (tree_if_conversion): Adjust if_convertible_loop_p and combine_blocks
2404 calls. Return todo flags instead of bool, call
2405 version_loop_for_if_conversion if if-conversion should be just
2406 for the vectorized loops and nothing else.
2407 (main_tree_if_conversion): Adjust caller. Don't call
2408 tree_if_conversion for dont_vectorize loops if if-conversion
2409 isn't explicitly enabled.
2410 * tree-vect-data-refs.c (vect_check_gather): Handle
2411 MASK_LOAD/MASK_STORE.
2412 (vect_analyze_data_refs, vect_supportable_dr_alignment): Likewise.
2413 * gimple.h (gimple_expr_type): Handle MASK_STORE.
2414 * internal-fn.c (expand_LOOP_VECTORIZED, expand_MASK_LOAD,
2415 expand_MASK_STORE): New functions.
2416 * tree-vectorizer.c: Include tree-cfg.h and gimple-fold.h.
2417 (vect_loop_vectorized_call, fold_loop_vectorized_call): New functions.
2418 (vectorize_loops): Don't try to vectorize loops with
2419 loop->dont_vectorize set. Set LOOP_VINFO_SCALAR_LOOP for if-converted
2420 loops, fold LOOP_VECTORIZED internal call depending on if loop
2421 has been vectorized or not.
2422 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
2423 New function.
2424 (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
2425 If non-NULL, copy basic blocks from scalar_loop instead of loop, but
2426 still to loop's entry or exit edge.
2427 (slpeel_tree_peel_loop_to_edge): Add scalar_loop argument, pass it
2428 down to slpeel_tree_duplicate_loop_to_edge_cfg.
2429 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_loop_alignment):
2430 Adjust callers.
2431 (vect_loop_versioning): If LOOP_VINFO_SCALAR_LOOP, perform loop
2432 versioning from that loop instead of LOOP_VINFO_LOOP, move it to the
2433 right place in the CFG afterwards.
2434 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
2435 MASK_STORE.
2436 * cfgloop.h (struct loop): Add dont_vectorize field.
2437 * tree-loop-distribution.c (copy_loop_before): Adjust
2438 slpeel_tree_duplicate_loop_to_edge_cfg caller.
2439 * optabs.def (maskload_optab, maskstore_optab): New optabs.
2440 * passes.def: Add a note that pass_vectorize must immediately follow
2441 pass_if_conversion.
2442 * tree-predcom.c (split_data_refs_to_components): Give up if
2443 DR_STMT is a call.
2444 * tree-vect-stmts.c (vect_mark_relevant): Don't crash if lhs is NULL.
2445 (exist_non_indexing_operands_for_use_p): Handle MASK_LOAD
2446 and MASK_STORE.
2447 (vectorizable_mask_load_store): New function.
2448 (vectorizable_call): Call it for MASK_LOAD or MASK_STORE.
2449 (vect_transform_stmt): Handle MASK_STORE.
2450 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Ignore
2451 DR_STMT where lhs is NULL.
2452 * optabs.h (can_vec_perm_p): Fix up comment typo.
2453 (can_vec_mask_load_store_p): New prototype.
2454 * optabs.c (can_vec_mask_load_store_p): New function.
2455
2456 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
2457
2458 * expr.c (expand_expr_real_1) <normal_inner_ref>: Always return 0 for
2459 the extraction of a bit-field of null size.
2460
2461 2013-12-10 Marek Polacek <polacek@redhat.com>
2462
2463 PR sanitizer/59437
2464 * vtable-verify.c (var_is_used_for_virtual_call_p): Check the
2465 return value of gimple_call_fn. Use is_gimple_call/is_gimple_assign
2466 instead of gimple_code.
2467
2468 2013-12-10 Maxim Kuvyrkov <maxim@kugelworks.com>
2469
2470 * config.gcc (mips*-mti-linux*, mips64*-*-linux*):
2471 Add android definitions.
2472 (s390x-*-linux*): Use linux-protos.h.
2473
2474 2013-12-10 Bin Cheng <bin.cheng@arm.com>
2475
2476 PR tree-optimization/41488
2477 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
2478 for PEELED_CHREC kind IV.
2479 * tree-scalar-evolution.c: Include necessary header files.
2480 (peeled_chrec_map, simplify_peeled_chrec): New.
2481 (analyze_evolution_in_loop): New static variable.
2482 Call simplify_peeled_chrec.
2483 (scev_initialize): Initialize peeled_chrec_map.
2484 (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
2485
2486 2013-12-09 Andrew Pinski <apinski@cavium.com>
2487
2488 * config/aarch64/t-aarch64 (MULTILIB_OPTIONS): Fix definition so
2489 that options are conflicting ones.
2490
2491 2013-12-09 Eric Botcazou <ebotcazou@adacore.com>
2492
2493 * optabs.c (gen_int_libfunc): Do not compare modes directly.
2494
2495 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2496
2497 * basic-block.h (FOR_ALL_BB): Eliminate macro.
2498
2499 * cfg.c (alloc_aux_for_blocks, clear_aux_for_blocks): Replace
2500 uses of FOR_ALL_BB with FOR_ALL_BB_FN, making uses of cfun explicit.
2501
2502 * cfganal.c (inverted_post_order_compute): Likewise.
2503 * cfgcleanup.c (try_optimize_cfg): Likewise.
2504 * cfgexpand.c (add_scope_conflicts): Likewise.
2505 * cfghooks.c (dump_flow_info, account_profile_record): Likewise.
2506 * cfgrtl.c (relink_block_chain): Likewise.
2507 * dce.c (mark_artificial_uses): Likewise.
2508 * df-core.c (df_set_blocks, df_compute_cfg_image, df_dump): Likewise.
2509 * df-problems.c (df_lr_verify_solution_start,
2510 df_lr_verify_solution_end, df_lr_verify_transfer_functions,
2511 df_live_verify_solution_start, df_live_verify_solution_end,
2512 df_live_set_all_dirty, df_live_verify_transfer_functions,
2513 df_md_local_comput): Likewise.
2514 * df-scan.c (df_scan_free_internal, df_scan_alloc)
2515 df_reorganize_refs_by_insn, df_scan_verify): Likewise.
2516 * dominance.c (compute_dom_fast_query, calculate_dominance_info,
2517 free_dominance_info): Likewise.
2518 * dse.c (dse_step1, dse_step3, dse_step4, dse_step6): Likewise.
2519 * graph.c (draw_cfg_edges): Likewise.
2520 * graphite-scop-detection.c (print_graphite_scop_statistics,
2521 dot_all_scops_1): Likewise.
2522 * graphite.c (print_global_statistics,
2523 print_graphite_scop_statistics): Likewise.
2524 * ira.c (do_reload): Likewise.
2525 * loop-init.c (loop_optimizer_finalize): Likewise.
2526 * lto-streamer-in.c (input_function): Likewise.
2527 * lto-streamer-out.c (output_function): Likewise.
2528 * mcf.c (adjust_cfg_counts): Likewise.
2529 * predict.c (estimate_loops): Likewise.
2530 * sched-rgn.c (haifa_find_rgns): Likewise.
2531 * tree-cfg.c (split_critical_edges): Likewise.
2532 * tree-dfa.c (renumber_gimple_stmt_uids): Likewise.
2533 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
2534 * tree-ssa-pre.c (compute_antic, insert, init_pre): Likewise.
2535 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2536 * var-tracking.c (vt_initialize, vt_finalize): Likewise.
2537 * vtable-verify.c (vtable_verify_main): Likewise.
2538 * web.c (web_main): Likewise.
2539
2540 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2541
2542 * basic-block.h (FOR_EACH_BB_REVERSE): Eliminate macro.
2543
2544 * cfghooks.c (verify_flow_info): Replace uses of FOR_EACH_BB_REVERSE
2545 with FOR_EACH_BB_REVERSE_FN, making uses of cfun explicit.
2546 * cfgrtl.c (print_rtl_with_bb, rtl_verify_edges,
2547 rtl_verify_bb_insns, rtl_verify_bb_pointers,
2548 rtl_verify_bb_insn_chain, rtl_verify_fallthru): Likewise.
2549 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
2550 * config/sh/sh.c (sh_md_init_global): Likewise.
2551 * config/sh/sh_optimize_sett_clrt.cc
2552 (sh_optimize_sett_clrt::execute): Likewise.
2553 * dce.c (reset_unmarked_insns_debug_uses, delete_unmarked_insns):
2554 Likewise.
2555 * dominance.c (calc_dfs_tree): Likewise.
2556 * final.c (final): Likewise.
2557 * function.c (thread_prologue_and_epilogue_insns): Likewise.
2558 * gcse.c (compute_code_hoist_vbeinout): Likewise.
2559 * ira.c (update_equiv_regs, build_insn_chain): Likewise.
2560 * lcm.c (compute_antinout_edge): Likewise.
2561 * mode-switching.c (optimize_mode_switching): Likewise.
2562 * postreload.c (reload_combine): Likewise.
2563 * recog.c (split_all_insns, peephole2_optimize): Likewise.
2564 * tree-ssa-live.c (live_worklist): Likewise.
2565
2566 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2567
2568 * basic-block.h (FOR_EACH_BB): Eliminate macro.
2569
2570 * asan.c (transform_statements, execute_sanopt): Eliminate
2571 use of FOR_EACH_BB in favor of FOR_EACH_BB_FN, to make use of cfun
2572 explicit.
2573 * auto-inc-dec.c (rest_of_handle_auto_inc_dec): Likewise.
2574 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges,
2575 set_edge_can_fallthru_flag, fix_up_fall_thru_edges,
2576 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes,
2577 insert_section_boundary_note, rest_of_handle_reorder_blocks,
2578 duplicate_computed_gotos): Likewise.
2579 * cfg.c (clear_edges, compact_blocks, brief_dump_cfg): Likewise.
2580 * cfganal.c (find_unreachable_blocks, add_noreturn_fake_exit_edges,
2581 compute_dominance_frontiers_1, single_pred_before_succ_order): Likewise.
2582 * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
2583 * cfgcleanup.c (try_optimize_cfg, delete_dead_jumptables): Likewise.
2584 * cfgexpand.c (add_scope_conflicts, discover_nonconstant_array_refs):
2585 Likewise.
2586 * cfgloop.c (flow_loops_cfg_dump, get_loop_body, record_loop_exits,
2587 verify_loop_structure): Likewise.
2588 * cfgloopanal.c (mark_loop_exit_edges): Likewise.
2589 * cfgrtl.c (compute_bb_for_insn, find_partition_fixes,
2590 verify_hot_cold_block_grouping, purge_all_dead_edges,
2591 fixup_abnormal_edges, record_effective_endpoints,
2592 outof_cfg_layout_mode, fixup_reorder_chain, force_one_exit_fallthru,
2593 break_superblocks): Likewise.
2594 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges,
2595 cgraph_rebuild_references): Likewise.
2596 * combine-stack-adj.c (combine_stack_adjustments): Likewise.
2597 * combine.c (delete_noop_moves, create_log_links,
2598 combine_instructions): Likewise.
2599 * config/arm/arm.c (thumb1_reorg, thumb2_reorg): Likewise.
2600 * config/bfin/bfin.c (bfin_gen_bundles, reorder_var_tracking_notes):
2601 Likewise.
2602 * config/c6x/c6x.c (c6x_gen_bundles, conditionalize_after_sched,
2603 c6x_reorg): Likewise.
2604 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
2605 * config/frv/frv.c (frv_optimize_membar): Likewise.
2606 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
2607 * config/ia64/ia64.c (ia64_reorg): Likewise.
2608 * config/mips/mips.c (mips_annotate_pic_calls): Likewise.
2609 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
2610 * config/rs6000/rs6000.c (rs6000_alloc_sdmode_stack_slot): Likewise.
2611 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
2612 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Likewise.
2613 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
2614 * config/tilegx/tilegx.c (tilegx_gen_bundles,
2615 reorder_var_tracking_notes): Likewise.
2616 * config/tilepro/tilepro.c (tilepro_gen_bundles,
2617 reorder_var_tracking_notes): Likewise.
2618 * coverage.c (coverage_compute_cfg_checksum): Likewise.
2619 * cprop.c (compute_hash_table_work, compute_cprop_data,
2620 local_cprop_pass, find_implicit_sets): Likewise.
2621 * cse.c (cse_condition_code_reg): Likewise.
2622 * dce.c (prescan_insns_for_dce): Likewise.
2623 * df-core.c (df_compact_blocks): Likewise.
2624 * df-problems.c (df_word_lr_alloc): Likewise.
2625 * df-scan.c (df_scan_start_dump, df_scan_blocks, df_insn_rescan_all,
2626 df_update_entry_exit_and_calls): Likewise.
2627 * dominance.c (calculate_dominance_info, verify_dominators,
2628 debug_dominance_info): Likewise.
2629 * dse.c (dse_step5_nospill): Likewise.
2630 * except.c (finish_eh_generation): Likewise.
2631 * final.c (compute_alignments): Likewise.
2632 * function.c (thread_prologue_and_epilogue_insns,
2633 rest_of_match_asm_constraints): Likewise.
2634 * gcse.c (compute_hash_table_work, prune_expressions,
2635 compute_pre_data, compute_code_hoist_vbeinout, hoist_code,
2636 calculate_bb_reg_pressure, compute_ld_motion_mems): Likewise.
2637 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
2638 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour,
2639 find_explicit_erroneous_behaviour): Likewise.
2640 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa,
2641 rewrite_cross_bb_scalar_deps_out_of_ssa): Likewise.
2642 * haifa-sched.c (haifa_sched_init): Likewise.
2643 * hw-doloop.c (discover_loops, set_bb_indices, reorder_loops):
2644 Likewise.
2645 * ifcvt.c (if_convert): Likewise.
2646 * init-regs.c (initialize_uninitialized_regs): Likewise.
2647 * ipa-prop.c (ipcp_transform_function): Likewise.
2648 * ipa-pure-const.c (analyze_function): Likewise.
2649 * ipa-split.c (find_split_points, execute_split_functions): Likewise.
2650 * ira-build.c (form_loop_tree): Likewise.
2651 * ira-costs.c (find_costs_and_classes): Likewise.
2652 * ira-emit.c (emit_moves, add_ranges_and_copies, ira_emit): Likewise.
2653 * ira.c (decrease_live_ranges_number, compute_regs_asm_clobbered,
2654 mark_elimination, update_equiv_regs, find_moveable_pseudos,
2655 split_live_ranges_for_shrink_wrap, allocate_initial_values): Likewise.
2656 * jump.c (mark_all_labels): Likewise.
2657 * lcm.c (compute_laterin, compute_insert_delete, compute_available,
2658 compute_nearerout, compute_rev_insert_delete): Likewise.
2659 * loop-init.c (fix_loop_structure): Likewise.
2660 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
2661 * lower-subreg.c (decompose_multiword_subregs,
2662 decompose_multiword_subregs): Likewise.
2663 * lra-assigns.c (assign_by_spills): Likewise.
2664 * lra-coalesce.c (lra_coalesce): Likewise.
2665 * lra-constraints.c (lra_inheritance, remove_inheritance_pseudos):
2666 Likewise.
2667 * lra-eliminations.c (lra_init_elimination): Likewise.
2668 * lra-spills.c (assign_spill_hard_regs, spill_pseudos,
2669 lra_final_code_change): Likewise.
2670 * lra.c (remove_scratches, check_rtl, has_nonexceptional_receiver,
2671 update_inc_notes): Likewise.
2672 * mcf.c (adjust_cfg_counts): Likewise.
2673 * mode-switching.c (optimize_mode_switching): Likewise.
2674 * modulo-sched.c (rest_of_handle_sms): Likewise.
2675 * omp-low.c (optimize_omp_library_calls, expand_omp_taskreg,
2676 expand_omp_target): Likewise.
2677 * postreload-gcse.c (alloc_mem, compute_hash_table): Likewise.
2678 * postreload.c (reload_cse_regs_1): Likewise.
2679 * predict.c (strip_predict_hints, tree_bb_level_predictions,
2680 tree_estimate_probability, expensive_function_p,
2681 estimate_bb_frequencies, compute_function_frequency): Likewise.
2682 * profile.c (is_inconsistent, compute_branch_probabilities,
2683 branch_prob): Likewise.
2684 * ree.c (find_removable_extensions): Likewise.
2685 * reg-stack.c (compensate_edges, convert_regs, reg_to_stack): Likewise.
2686 * regcprop.c (copyprop_hardreg_forward): Likewise.
2687 * reginfo.c (init_subregs_of_mode): Likewise.
2688 * regrename.c (regrename_analyze): Likewise.
2689 * regstat.c (regstat_compute_ri, regstat_compute_calls_crossed):
2690 Likewise.
2691 * reload1.c (has_nonexceptional_receiver, reload,
2692 calculate_elim_costs_all_insns): Likewise.
2693 * resource.c (init_resource_info, free_resource_info): Likewise.
2694 * sched-ebb.c (schedule_ebbs): Likewise.
2695 * sched-rgn.c (is_cfg_nonregular, find_single_block_region,
2696 haifa_find_rgns, sched_rgn_local_init): Likewise.
2697 * sel-sched-dump.c (sel_dump_cfg_2): Likewise.
2698 * sel-sched-ir.c (init_lv_sets, free_lv_sets,
2699 make_regions_from_the_rest): Likewise.
2700 * sese.c (build_sese_loop_nests, sese_build_liveouts): Likewise.
2701 * stack-ptr-mod.c (notice_stack_pointer_modification): Likewise.
2702 * store-motion.c (compute_store_table, build_store_vectors,
2703 one_store_motion_pass): Likewise.
2704 * tracer.c (tail_duplicate): Likewise.
2705 * trans-mem.c (compute_transaction_bits): Likewise.
2706 * tree-call-cdce.c (tree_call_cdce): Likewise.
2707 * tree-cfg.c (replace_loop_annotate, factor_computed_gotos,
2708 fold_cond_expr_cond, make_edges, assign_discriminators,
2709 make_abnormal_goto_edges, cleanup_dead_labels, group_case_labels,
2710 dump_cfg_stats, gimple_verify_flow_info, print_loop,
2711 execute_fixup_cfg): Likewise.
2712 * tree-cfgcleanup.c (cleanup_tree_cfg_1, merge_phi_nodes): Likewise.
2713 * tree-complex.c (init_dont_simulate_again, tree_lower_complex):
2714 Likewise.
2715 * tree-dfa.c (collect_dfa_stats, dump_enumerated_decls): Likewise.
2716 * tree-eh.c (execute_lower_resx, execute_lower_eh_dispatch,
2717 mark_reachable_handlers): Likewise.
2718 * tree-emutls.c (lower_emutls_function_body): Likewise.
2719 * tree-if-conv.c (main_tree_if_conversion): Likewise.
2720 * tree-inline.c (optimize_inline_calls): Likewise.
2721 * tree-into-ssa.c (rewrite_into_ssa, update_ssa): Likewise.
2722 * tree-nrv.c (tree_nrv, execute_return_slot_opt): Likewise.
2723 * tree-object-size.c (compute_object_sizes): Likewise.
2724 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees,
2725 insert_backedge_copies, tree_profiling): Likewise.
2726 * tree-scalar-evolution.c (scev_const_prop): Likewise.
2727 * tree-sra.c (scan_function, sra_modify_function_body,
2728 propagate_dereference_distances, ipa_sra_modify_function_body,
2729 convert_callers): Likewise.
2730 * tree-ssa-ccp.c (ccp_initialize, execute_fold_all_builtins): Likewise.
2731 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
2732 create_outofssa_var_map, coalesce_partitions): Likewise.
2733 * tree-ssa-copy.c (init_copy_prop): Likewise.
2734 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
2735 * tree-ssa-dce.c (find_obviously_necessary_stmts,
2736 eliminate_unnecessary_stmts): Likewise.
2737 * tree-ssa-dom.c (free_all_edge_infos, tree_ssa_dominator_optimize):
2738 Likewise.
2739 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
2740 * tree-ssa-live.c (clear_unused_block_pointer, remove_unused_locals,
2741 new_tree_live_info, calculate_live_on_exit, dump_live_info,
2742 analyze_memory_references, fill_always_executed_in,
2743 tree_ssa_lim_finalize): Likewise.
2744 * tree-ssa-loop-manip.c (find_uses_to_rename, verify_loop_closed_ssa):
2745 Likewise.
2746 * tree-ssa-math-opts.c (execute_cse_reciprocals, execute_cse_sincos,
2747 execute_optimize_bswap, execute_optimize_widening_mul): Likewise.
2748 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
2749 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
2750 * tree-ssa-tail-merge.c (find_same_succ, reset_cluster_vectors):
2751 Likewise.
2752 * tree-ssa-ter.c (find_replaceable_exprs): Likewise.
2753 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
2754 * tree-ssa-uncprop.c (associate_equivalences_with_edges,
2755 tree_ssa_uncprop): Likewise.
2756 * tree-ssa-uninit.c (warn_uninitialized_vars,
2757 execute_late_warn_uninitialized): Likewise.
2758 * tree-ssa.c (verify_ssa, execute_update_addresses_taken): Likewise.
2759 * tree-stdarg.c (check_all_va_list_escapes, execute_optimize_stdarg):
2760 Likewise.
2761 * tree-switch-conversion.c (do_switchconv): Likewise.
2762 * tree-vect-generic.c (expand_vector_operations): Likewise.
2763 * tree-vectorizer.c (adjust_simduid_builtins, note_simd_array_uses,
2764 execute_vect_slp): Likewise.
2765 * tree-vrp.c (check_all_array_refs, remove_range_assertions,
2766 vrp_initialize, identify_jump_threads, instrument_memory_accesses):
2767 Likewise.
2768 * ubsan.c (ubsan_pass): Likewise.
2769 * value-prof.c (verify_histograms,
2770 gimple_value_profile_transformations, gimple_find_values_to_profile):
2771 Likewise.
2772 * var-tracking.c (vt_find_locations, dump_dataflow_sets, vt_emit_notes,
2773 vt_initialize, delete_debug_insns, vt_finalize): Likewise.
2774
2775 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2776
2777 * basic-block.h (last_basic_block): Eliminate macro.
2778
2779 * asan.c (transform_statements): Eliminate use of last_basic_block
2780 in favor of last_basic_block_for_fn, in order to make use of cfun
2781 explicit.
2782 * bb-reorder.c (copy_bb, reorder_basic_blocks): Likewise.
2783 * bt-load.c (compute_defs_uses_and_gen, compute_kill, compute_out,
2784 link_btr_uses, build_btr_def_use_webs, migrate_btr_defs): Likewise.
2785 * cfg.c (compact_blocks): Likewise.
2786 * cfganal.c (mark_dfs_back_edges,
2787 control_dependences::control_dependences, post_order_compute,
2788 pre_and_rev_post_order_compute_fn, dfs_enumerate_from, compute_idf,
2789 single_pred_before_succ_order): Likewise.
2790 * cfgbuild.c (make_edges): Likewise.
2791 * cfgexpand.c (add_scope_conflicts, gimple_expand_cfg): Likewise.
2792 * cfghooks.c (verify_flow_info): Likewise.
2793 * cfgloop.c (verify_loop_structure): Likewise.
2794 * cfgloopanal.c (just_once_each_iteration_p,
2795 mark_irreducible_loops): Likewise.
2796 * cfgloopmanip.c (fix_bb_placements, remove_path,
2797 update_dominators_in_loop): Likewise.
2798 * cfgrtl.c (create_basic_block_structure, rtl_create_basic_block,
2799 break_superblocks, rtl_flow_call_edges_add): Likewise.
2800 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
2801 * config/frv/frv.c (frv_optimize_membar): Likewise.
2802 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
2803 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
2804 * cprop.c (compute_local_properties, find_implicit_sets,
2805 bypass_conditional_jumps, one_cprop_pass): Likewise.
2806 * cse.c (cse_main): Likewise.
2807 * df-core.c (rest_of_handle_df_initialize, df_worklist_dataflow,
2808 df_analyze, df_grow_bb_info, df_compact_blocks): Likewise.
2809 * df-problems.c (df_lr_verify_solution_start,
2810 df_live_verify_solution_start, df_md_local_compute): Likewise.
2811 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
2812 calc_idoms): Likewise.
2813 * domwalk.c (dom_walker::walk): Likewise.
2814 * dse.c (dse_step0, dse_step3): Likewise.
2815 * function.c (epilogue_done): Likewise.
2816 * gcse.c (alloc_gcse_mem, compute_local_properties,
2817 prune_insertions_deletions, compute_pre_data,
2818 pre_expr_reaches_here_p, one_pre_gcse_pass,
2819 compute_code_hoist_vbeinout, should_hoist_expr_to_dom, hoist_code,
2820 one_code_hoisting_pass): Likewise.
2821 * graph.c (draw_cfg_nodes_no_loops): Likewise.
2822 * graphite-sese-to-poly.c (build_scop_bbs): Likewise.
2823 * haifa-sched.c (unlink_bb_notes): Likewise.
2824 * ipa-split.c (execute_split_functions): Likewise.
2825 * ira-build.c (create_loop_tree_nodes, remove_unnecessary_regions):
2826 Likewise.
2827 * ira-emit.c (ira_emit): Likewise.
2828 * ira.c (find_moveable_pseudos, ira): Likewise.
2829 * lcm.c (compute_antinout_edge, compute_laterin,
2830 compute_insert_delete, pre_edge_lcm, compute_available,
2831 compute_nearerout, compute_rev_insert_delete,
2832 pre_edge_rev_lcm): Likewise.
2833 * loop-unroll.c (opt_info_start_duplication, apply_opt_in_copies):
2834 Likewise.
2835 * lower-subreg.c (decompose_multiword_subregs): Likewise.
2836 * lra-lives.c (lra_create_live_ranges): Likewise.
2837 * lra.c (lra): Likewise.
2838 * mode-switching.c (optimize_mode_switching): Likewise.
2839 * recog.c (split_all_insns): Likewise.
2840 * regcprop.c (copyprop_hardreg_forward): Likewise.
2841 * regrename.c (regrename_analyze): Likewise.
2842 * reload1.c (reload): Likewise.
2843 * resource.c (init_resource_info): Likewise.
2844 * sched-rgn.c (haifa_find_rgns, extend_rgns, compute_trg_info,
2845 realloc_bb_state_array, schedule_region, extend_regions): Likewise.
2846 * sel-sched-ir.c (sel_extend_global_bb_info, extend_region_bb_info,
2847 recompute_rev_top_order, sel_init_pipelining,
2848 make_regions_from_the_rest): Likewise.
2849 * store-motion.c (remove_reachable_equiv_notes,build_store_vectors)
2850 Likewise.
2851 * tracer.c (tail_duplicate): Likewise.
2852 * trans-mem.c (tm_region_init, get_bb_regions_instrumented): Likewise.
2853 * tree-cfg.c (create_bb, cleanup_dead_labels, gimple_dump_cfg,
2854 gimple_flow_call_edges_add): Likewise.
2855 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls,
2856 cleanup_tree_cfg_1): Likewise.
2857 * tree-complex.c (tree_lower_complex): Likewise.
2858 * tree-inline.c (copy_cfg_body): Likewise.
2859 * tree-into-ssa.c (mark_phi_for_rewrite, rewrite_into_ssa,
2860 prepare_def_site_for, update_ssa): Likewise.
2861 * tree-ssa-dce.c (tree_dce_init, perform_tree_ssa_dce): Likewise.
2862 * tree-ssa-dom.c (record_edge_info): Likewise.
2863 * tree-ssa-live.c (new_tree_live_info, live_worklist): Likewise.
2864 * tree-ssa-loop-im.c (fill_always_executed_in_1): Likewise.
2865 * tree-ssa-loop-manip.c (copy_phi_node_args
2866 gimple_duplicate_loop_to_header_edge): Likewise.
2867 * tree-ssa-pre.c (compute_antic): Likewise.
2868 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2869 * tree-ssa-reassoc.c (init_reassoc): Likewise.
2870 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
2871 * tree-ssa-tail-merge.c (init_worklist): Likewise.
2872 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
2873 * tree-stdarg.c (reachable_at_most_once): Likewise.
2874 * tree-vrp.c (find_assert_locations): Likewise.
2875 * var-tracking.c (vt_find_locations): Likewise.
2876
2877 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2878
2879 * basic-block.h (profile_status): Eliminate macro.
2880
2881 * cfgbuild.c (find_many_sub_basic_blocks): Eliminate use of
2882 profile_status macro in favor of profile_status_for_fn, making
2883 use of cfun explicit.
2884 * cfghooks.c (account_profile_record): Likewise.
2885 * cfgloopanal.c (single_likely_exit):
2886 * cfgrtl.c (rtl_verify_edges, rtl_account_profile_record): Likewise.
2887 * graphite.c (graphite_finalize):
2888 * internal-fn.c (ubsan_expand_si_overflow_addsub_check,
2889 ubsan_expand_si_overflow_neg_check,
2890 ubsan_expand_si_overflow_mul_check): Likewise.
2891 * ipa-split.c (consider_split, execute_split_functions):
2892 * loop-unroll.c (decide_peel_simple):
2893 * optabs.c (emit_cmp_and_jump_insn_1):
2894 * predict.c (maybe_hot_edge_p, probably_never_executed,
2895 predictable_edge_p, probability_reliable_p, gimple_predict_edge,
2896 tree_estimate_probability_driver, estimate_bb_frequencies,
2897 compute_function_frequency, rebuild_frequencies): Likewise.
2898 * profile.c (compute_branch_probabilities): Likewise.
2899 * tree-cfg.c (gimple_account_profile_record): Likewise.
2900 * tree-inline.c (optimize_inline_calls): Likewise.
2901
2902 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2903
2904 * basic-block.h (label_to_block_map): Eliminate macro.
2905
2906 * gimple.c (gimple_set_bb): Replace uses of label_to_block_map with
2907 uses of label_to_block_map_for_fn, making uses of cfun be explicit.
2908 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
2909 (verify_gimple_label): Likewise.
2910
2911 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2912
2913 * basic-block.h (basic_block_info): Eliminate macro.
2914
2915 * cfgrtl.c (rtl_create_basic_block): Replace uses of basic_block_info
2916 with basic_block_info_for_fn, making uses of cfun be explicit.
2917 * tree-cfg.c (build_gimple_cfg, create_bb): Likewise.
2918
2919 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2920
2921 * basic-block.h (BASIC_BLOCK): Eliminate macro.
2922
2923 * alias.c (init_alias_analysis): Eliminate BASIC_BLOCK macro in
2924 favor of uses of BASIC_BLOCK_FOR_FN, making uses of cfun explicit.
2925 * bt-load.c (compute_defs_uses_and_gen, compute_out, link_btr_uses,
2926 block_at_edge_of_live_range_p, migrate_btr_defs): Likewise.
2927 * caller-save.c (insert_one_insn): Likewise.
2928 * cfg.c (debug_bb, get_bb_original, get_bb_copy): Likewise.
2929 * cfgexpand.c (add_scope_conflicts): Likewise.
2930 * cfghooks.c (verify_flow_info): Likewise.
2931 * cfgloop.c (flow_loops_find): Likewise.
2932 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
2933 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
2934 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
2935 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
2936 * cse.c (cse_main): Likewise.
2937 * dce.c (fast_dce): Likewise.
2938 * df-core.c (df_set_blocks, df_worklist_propagate_forward,
2939 df_worklist_propagate_backward, df_worklist_dataflow_doublequeue,
2940 df_bb_replace, df_dump_region): Likewise.
2941 * df-problems.c (df_rd_bb_local_compute, df_lr_bb_local_compute,
2942 df_live_bb_local_compute, df_chain_remove_problem)
2943 df_chain_create_bb, df_word_lr_bb_local_compute, df_note_bb_compute,
2944 df_md_bb_local_compute, df_md_local_compute,
2945 df_md_transfer_function): Likewise.
2946 * df-scan.c (df_scan_blocks, df_reorganize_refs_by_reg_by_insn,
2947 df_reorganize_refs_by_insn, df_bb_refs_collect,
2948 df_record_entry_block_defs, df_update_entry_block_defs,
2949 df_record_exit_block_uses): Likewise.
2950 * dominance.c (nearest_common_dominator_for_set): Likewise.
2951 * gcse.c (hoist_code): Likewise.
2952 * graph.c (draw_cfg_nodes_no_loops): Likewise.
2953 * ipa-inline-analysis.c (param_change_prob,
2954 estimate_function_body_sizes): Likewise.
2955 * ipa-split.c (dominated_by_forbidden): Likewise.
2956 * loop-unroll.c (apply_opt_in_copies): Likewise.
2957 * lower-subreg.c (decompose_multiword_subregs): Likewise.
2958 * lra-lives.c (lra_create_live_ranges): Likewise.
2959 * predict.c (propagate_freq): Likewise.
2960 * regrename.c (regrename_analyze): Likewise.
2961 * regstat.c (regstat_bb_compute_ri, regstat_bb_compute_calls_crossed):
2962 Likewise.
2963 * resource.c (mark_target_live_regs): Likewise.
2964 * sched-ebb.c (ebb_fix_recovery_cfg): Likewise.
2965 * sched-int.h (EBB_FIRST_BB, EBB_LAST_BB): Likewise.
2966 * sched-rgn.c (debug_region, dump_region_dot, too_large,
2967 haifa_find_rgns, extend_rgns, compute_dom_prob_ps, update_live,
2968 propagate_deps, sched_is_disabled_for_current_region_p): Likewise.
2969 * sched-vis.c (debug_bb_n_slim): Likewise.
2970 * sel-sched-ir.c (sel_finish_global_and_expr, verify_backedges,
2971 purge_empty_blocks, sel_remove_loop_preheader): Likewise.
2972 * sel-sched.c (remove_insns_that_need_bookkeeping)
2973 (current_region_empty_p, sel_region_init, simplify_changed_insns):
2974 Likewise.
2975 * trans-mem.c (execute_tm_mark, execute_tm_edges,
2976 tm_memopt_compute_antic, ipa_tm_scan_irr_function): Likewise.
2977 * tree-cfg.c (make_edges, end_recording_case_labels,
2978 label_to_block_fn, gimple_debug_bb, gimple_flow_call_edges_add,
2979 remove_edge_and_dominated_blocks, remove_edge_and_dominated_blocks,
2980 gimple_purge_all_dead_eh_edges,
2981 gimple_purge_all_dead_abnormal_call_edges): Likewise.
2982 * tree-cfgcleanup.c (fixup_noreturn_call,
2983 split_bbs_on_noreturn_calls, cleanup_tree_cfg_1): Likewise.
2984 * tree-inline.c (copy_cfg_body, fold_marked_statements): Likewise.
2985 * tree-into-ssa.c (set_livein_block, prune_unused_phi_nodes,
2986 insert_phi_nodes_for, insert_updated_phi_nodes_for): Likewise.
2987 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
2988 * tree-ssa-live.c (live_worklist): Likewise.
2989 * tree-ssa-loop-manip.c (compute_live_loop_exits, add_exit_phis_var,
2990 find_uses_to_rename, copy_phi_node_args): Likewise.
2991 * tree-ssa-pre.c (compute_antic): Likewise.
2992 * tree-ssa-reassoc.c (update_range_test, optimize_range_tests):
2993 Likewise.
2994 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
2995 * tree-ssa-tail-merge.c (same_succ_hash, same_succ_def::equal,
2996 same_succ_flush_bbs, update_worklist, set_cluster,
2997 same_phi_alternatives, find_clusters_1, apply_clusters,
2998 update_debug_stmts): Likewise.
2999 * tree-ssa-threadupdate.c (mark_threaded_blocks,
3000 thread_through_all_blocks): Likewise.
3001 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
3002 * tree-vrp.c (find_assert_locations): Likewise.
3003
3004 2013-12-09 David Malcolm <dmalcolm@redhat.com>
3005
3006 * basic-block.h (SET_BASIC_BLOCK): Eliminate macro.
3007
3008 * cfg.c (compact_blocks): Replace uses of SET_BASIC_BLOCK
3009 with SET_BASIC_BLOCK_FOR_FN, making use of cfun explicit.
3010 (expunge_block): Likewise.
3011 * cfgrtl.c (create_basic_block_structure): Likewise.
3012 * df-core.c (df_compact_blocks, df_bb_replace): Likewise.
3013 * sel-sched.c (create_block_for_bookkeeping): Likewise.
3014 * tree-cfg.c (create_bb): Likewise.
3015
3016 2013-12-09 David Malcolm <dmalcolm@redhat.com>
3017
3018 * basic-block.h (profile_status_for_function): Rename to...
3019 (profile_status_for_fn): ...this.
3020
3021 * cfg.c (check_bb_profile): Update for renaming.
3022 * cgraphbuild.c (compute_call_stmt_bb_frequency): Likewise.
3023 * lto-streamer-in.c (input_cfg): Likewise.
3024 * lto-streamer-out.c (output_cfg): Likewise.
3025 * predict.c (maybe_hot_frequency_p, maybe_hot_count_p,
3026 maybe_hot_bb_p, probably_never_executed)
3027 (handle_missing_profiles): Likewise.
3028 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
3029 * tree-inline.c (copy_bb, initialize_cfun): Likewise.
3030
3031 2013-12-09 David Malcolm <dmalcolm@redhat.com>
3032
3033 * basic-block.h (label_to_block_map_for_function): Rename to...
3034 (label_to_block_map_for_fn): ...this.
3035
3036 * lto-streamer-in.c (input_cfg): Update for renaming.
3037 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
3038
3039 2013-12-09 David Malcolm <dmalcolm@redhat.com>
3040
3041 * basic-block.h (last_basic_block_for_function): Rename to...
3042 (last_basic_block_for_fn): ...this.
3043
3044 * ipa-utils.c (ipa_merge_profiles): Update for renaming of
3045 last_basic_block_for_function to last_basic_block_for_fn.
3046 * lto-streamer-in.c (input_cfg): Likewise.
3047 * lto-streamer-out.c (output_cfg): Likewise.
3048 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
3049 * tree-sra.c (propagate_dereference_distances, ipa_early_sra):
3050 Likewise.
3051
3052 2013-12-09 David Malcolm <dmalcolm@redhat.com>
3053
3054 * basic-block.h (basic_block_info_for_function): Rename to...
3055 (basic_block_info_for_fn): ...this.
3056 (BASIC_BLOCK_FOR_FUNCTION): Rename to...
3057 (BASIC_BLOCK_FOR_FN): ...this.
3058 (SET_BASIC_BLOCK_FOR_FUNCTION): Rename to...
3059 (SET_BASIC_BLOCK_FOR_FN): ...this.
3060
3061 * gimple-streamer-in.c (input_phi, input_bb): Update for renaming
3062 of BASIC_BLOCK_FOR_FUNCTION to BASIC_BLOCK_FOR_FN.
3063 * ipa-utils.c (ipa_merge_profiles): Likewise.
3064 * lto-streamer-in.c (make_new_block): Update for renaming of
3065 SET_BASIC_BLOCK_FOR_FUNCTION to SET_BASIC_BLOCK_FOR_FN.
3066 (input_cfg): Update for renamings.
3067 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
3068 (dump_function_to_file): Update for renaming of
3069 basic_block_info_for_function to basic_block_info_for_fn.
3070
3071 2013-12-09 Richard Biener <rguenther@suse.de>
3072
3073 PR middle-end/38474
3074 * tree-ssa-structalias.c (set_union_with_increment): Remove
3075 unreachable code.
3076 (do_complex_constraint): Call set_union_with_increment with
3077 the solution delta, not the full solution.
3078 (make_transitive_closure_constraints): Merge the two constraints.
3079
3080 2013-12-09 Richard Earnshaw <rearnsha@arm.com>
3081
3082 * arm.c (mem_ok_for_ldrd_strd): Rename first argument as MEM. Do
3083 more address validation checks.
3084
3085 2013-12-09 Marek Polacek <polacek@redhat.com>
3086
3087 PR sanitizer/59415
3088 * vtable-verify.c (verify_bb_vtables): Check the return value
3089 of gimple_call_fn. Use is_gimple_call instead of gimple_code.
3090
3091 2013-12-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3092
3093 * config/arm/arm.md (generic_sched): Add cortexa12.
3094 (generic_vfp): Likewise.
3095 * config/arm/arm.c (cortexa12_extra_costs): New cost table.
3096 (arm_cortex_a12_tune): New tuning struct.
3097 * config/arm/arm-cores.def: Add cortex-a12.
3098 * config/arm/arm-tables.opt: Regenerate.
3099 * config/arm/arm-tune.md: Likewise.
3100 * config/arm/bpabi.h: Add cortex-a12.
3101 * doc/invoke.texi: Document -mcpu=cortex-a12.
3102
3103 2013-12-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3104
3105 * doc/install.texi (Prerequisites): Explicitly mention C library
3106 and its headers for multilib builds.
3107
3108 2013-12-08 Oleg Endo <olegendo@gcc.gnu.org>
3109
3110 PR target/52898
3111 PR target/51697
3112 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
3113 OPT_mcbranchdi entry.
3114 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Mark as undocumented and
3115 emit a warning.
3116 * config/sh/sh.c (sh_option_override): Initialize TARGET_CBRANCHDI4
3117 and TARGET_CMPEQDI_T variables.
3118 * doc/invoke.texi (SH options): Undocument -mcbranchdi and -mcmpeqdi.
3119
3120 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
3121
3122 * config/linux.h: Fix typo in a comment.
3123
3124 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
3125
3126 * config.gcc (*linux*): Split libc selection from Android support.
3127 Add libc selection to all *linux* targets. Add Android support to
3128 architectures that support it.
3129 (arm*-*-linux-*, i[34567]86-*-linux*, x86_64-*-linux*,)
3130 (mips*-*-linux*): Add Android support.
3131
3132 2013-12-07 Alexander Ivchenko <alexander.ivchenko@intel.com>
3133 Maxim Kuvyrkov <maxim@kugelworks.com>
3134
3135 * config/bfin/uclinux.h, config/c6x/uclinux-elf.h,
3136 * config/lm32/uclinux-elf.h, config/m68k/uclinux.h,
3137 * config/moxie/uclinux.h (TARGET_LIBC_HAS_FUNCTION): Move definitions
3138 to linux.h.
3139 * config/linux-android.h (TARGET_HAS_IFUNC_P): Move definition
3140 to linux.h.
3141 * config/linux.h (TARGET_LIBC_HAS_FUNCTION, TARGET_HAS_IFUNC_P):
3142 Define appropriately for Linux and uClinux targets.
3143
3144 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
3145
3146 * config/linux.c (linux_has_ifunc_p): Use correct test.
3147
3148 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
3149
3150 * config/linux.c (linux_android_has_ifunc_p): Rename to
3151 linux_has_ifunc_p.
3152 (linux_android_libc_has_function): Rename to linux_libc_has_function.
3153 * config/linux-protos.h (linux_android_has_ifunc_p,)
3154 (linux_android_libc_has_function): Update declarations.
3155 * config/linux.h, config/linux-android.h, config/alpha/linux.h,
3156 * config/rs6000/linux.h, config/rs6000/linux64.h: Update.
3157
3158 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
3159
3160 * linux-android.c: Rename to linux.c.
3161 * t-linux-android: Rename to t-linux. Update references
3162 to linux-android.c
3163 * config.gcc: Update references to t-linux-android and linux-android.o.
3164
3165 2013-12-07 Alan Modra <amodra@gmail.com>
3166
3167 * config/rs6000/rs6000.md (bswapdi2_32bit): Remove ?? from r->r
3168 alternative.
3169
3170 2013-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
3171
3172 * config.gcc (microblaze*-*-rtems*): Add TARGET_BIG_ENDIAN_DEFAULT.
3173
3174 2013-12-06 Vladimir Makarov <vmakarov@redhat.com>
3175
3176 * config/rs6000/rs600.md (*bswapdi2_64bit): Remove ?? from the
3177 constraint.
3178
3179 2013-12-06 Caroline Tice <cmtice@google.com>
3180
3181 Submitting patch from Stephen Checkoway, s@cs.jhu.edu
3182 * vtable-verify.c (verify_bb_vtables): Replace all uses of verified
3183 vtable pointer with the results of the verification call, rather than
3184 only the uses in the next statement.
3185
3186 2013-12-06 Andrew Pinski <apinski@cavium.com>
3187
3188 PR target/59092
3189 * config/aarch64/aarch64.md (trap): New pattern.
3190
3191 2013-12-06 Jakub Jelinek <jakub@redhat.com>
3192
3193 PR tree-optimization/59388
3194 * tree-ssa-reassoc.c (update_range_test): If op == range->exp,
3195 gimplify tem after stmt rather than before it.
3196
3197 * tree-data-ref.c (struct data_ref_loc_d): Replace pos field with ref.
3198 (get_references_in_stmt): Don't record operand addresses, but
3199 operands themselves.
3200 (find_data_references_in_stmt, graphite_find_data_references_in_stmt):
3201 Adjust for the pos -> ref change.
3202
3203 2013-12-06 H.J. Lu <hongjiu.lu@intel.com>
3204
3205 * config.gcc: Change --with-cpu=ia to --with-cpu=intel.
3206
3207 * config/i386/i386.c (cpu_names): Replace "ia" with "intel".
3208 (processor_alias_table): Likewise.
3209 (ix86_option_override_internal): Likewise.
3210 * config/i386/i386.h (target_cpu_default): Replace
3211 TARGET_CPU_DEFAULT_ia with TARGET_CPU_DEFAULT_intel.
3212
3213 * doc/invoke.texi: Replace -mtune=ia with -mtune=intel.
3214
3215 2013-12-06 Uros Bizjak <ubizjak@gmail.com>
3216
3217 PR target/59405
3218 * config/i386/i386.c (type_natural_mode): Properly handle
3219 size 8 for !TARGET_64BIT.
3220
3221 2013-12-06 Trevor Saunders <tsaunders@mozilla.com>
3222
3223 * tree-ssa-pre.c (compute_antic_aux): Remove redundant call to
3224 vec::release.
3225
3226 2013-12-06 Ian Bolton <ian.bolton@arm.com>
3227 Mark Mitchell <mark@codesourcery.com>
3228
3229 PR target/59091
3230 * config/arm/arm.md (trap): New pattern.
3231 * config/arm/types.md: Added a type for trap.
3232
3233 2013-12-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
3234
3235 * expr.c (expand_assignment): Update bitregion_start and bitregion_end.
3236
3237 2013-12-06 Eric Botcazou <ebotcazou@adacore.com>
3238
3239 PR target/59316
3240 * config/sparc/sparc.h (SPARC_LOW_FE_EXCEPT_VALUES): Define.
3241 * config/sparc/sol2.h (SPARC_LOW_FE_EXCEPT_VALUES): Redefine.
3242 * config/sparc/sparc.c (TARGET_INIT_BUILTINS): Move around.
3243 (TARGET_BUILTIN_DECL): Define.
3244 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Likewise.
3245 (sparc32_initialize_trampoline): Adjust call to gen_flush.
3246 (enum sparc_builtins): New enumeral type.
3247 (sparc_builtins): New static array.
3248 (sparc_builtins_icode): Likewise.
3249 (def_builtin): Accept a separate icode and save the result.
3250 (def_builtin_const): Likewise.
3251 (sparc_fpu_init_builtins): New function.
3252 (sparc_vis_init_builtins): Pass the builtin code.
3253 (sparc_init_builtins): Call it if TARGET_FPU.
3254 (sparc_builtin_decl): New function.
3255 (sparc_expand_builtin): Deal with SPARC_BUILTIN_{LD,ST}FSR.
3256 (sparc_handle_vis_mul8x16): Use the builtin code.
3257 (sparc_fold_builtin): Likewise. Deal with SPARC_BUILTIN_{LD,ST}FSR
3258 and SPARC_BUILTIN_PDISTN.
3259 (compound_expr): New helper function.
3260 (sparc_atomic_assign_expand_fenv): New function.
3261 * config/sparc/sparc.md (unspecv): Reorder values, add UNSPECV_LDFSR
3262 and UNSPECV_STFSR.
3263 (flush, flushdi): Merge into single pattern.
3264 (ldfsr): New instruction.
3265 (stfsr): Likewise.
3266
3267 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
3268
3269 * asan.c: Remove struct tags when referring to class varpool_node.
3270 * cgraph.h: Likewise.
3271 * cgraphbuild.c: Likewise.
3272 * cgraphunit.c: Likewise.
3273 * dbxout.c: Likewise.
3274 * dwarf2out.c: Likewise.
3275 * gimple-fold.c: Likewise.
3276 * ipa-devirt.c: Likewise.
3277 * ipa-ref-inline.h: Likewise.
3278 * ipa-ref.h: Likewise.
3279 * ipa-reference.c: Likewise.
3280 * ipa-utils.c: Likewise.
3281 * ipa.c: Likewise.
3282 * lto-cgraph.c: Likewise.
3283 * lto-streamer-out.c: Likewise.
3284 * lto-streamer.h: Likewise.
3285 * passes.c: Likewise.
3286 * toplev.c: Likewise.
3287 * tree-eh.c: Likewise.
3288 * tree-emutls.c: Likewise.
3289 * tree-pass.h: Likewise.
3290 * tree-ssa-structalias.c: Likewise.
3291 * tree-vectorizer.c: Likewise.
3292 * tree.c: Likewise.
3293 * varasm.c: Likewise.
3294 * varpool.c: Likewise.
3295
3296 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
3297
3298 * cgraphunit.c: Remove struct tags when referring to class
3299 ipa_opt_pass_d or class opt_pass.
3300 * function.h: Likewise.
3301 * lto-cgraph.c: Likewise.
3302 * pass_manager.h: Likewise.
3303 * passes.c: Likewise.
3304 * tree-pass.h: Likewise.
3305
3306 2013-12-06 Richard Biener <rguenther@suse.de>
3307
3308 PR tree-optimization/59058
3309 * tree-vectorizer.h (struct _loop_vec_info): Add num_itersm1 member.
3310 (LOOP_VINFO_NITERSM1): New macro.
3311 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Express
3312 the vector loop entry test in terms of scalar latch executions.
3313 (vect_do_peeling_for_alignment): Update LOOP_VINFO_NITERSM1.
3314 * tree-vect-loop.c (vect_get_loop_niters): Also return the
3315 number of latch executions.
3316 (new_loop_vec_info): Initialize LOOP_VINFO_NITERSM1.
3317 (vect_analyze_loop_form): Likewise.
3318 (vect_generate_tmps_on_preheader): Compute the number of
3319 vectorized iterations differently.
3320
3321 2013-12-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3322
3323 * config/score/score.c (score_force_temporary): Delete function.
3324 (score_split_symbol): Ditto.
3325 * config/score/score.h (ASM_OUTPUT_ADDR_DIFF_ELT): Add extra
3326 parentheses to silence ambiguity warning and reindent.
3327
3328 2013-12-05 Marek Polacek <polacek@redhat.com>
3329
3330 * doc/invoke.texi: Document -fsanitize=signed-integer-overflow.
3331
3332 2013-12-05 H.J. Lu <hongjiu.lu@intel.com>
3333
3334 * config.gcc: Support --with-cpu=ia.
3335
3336 * config/i386/i386.c (cpu_names): Add "ia".
3337 (processor_alias_table): Likewise.
3338 (ix86_option_override_internal): Disallow -march=ia.
3339 * config/i386/i386.h (target_cpu_default): Add TARGET_CPU_DEFAULT_ia.
3340
3341 * doc/invoke.texi: Document -mtune=ia.
3342
3343 2013-12-05 Vladimir Makarov <vmakarov@redhat.com>
3344
3345 PR rtl-optimization/59317
3346 * lra-constraints.c (in_class_p): Don't ignore insn with constant
3347 as a source.
3348
3349 2013-12-05 Martin Jambor <mjambor@suse.cz>
3350
3351 PR ipa/58253
3352 * ipa-prop.c (ipa_modify_formal_parameters): Create decls of
3353 non-BLKmode in their naturally aligned type.
3354
3355 2013-12-05 Marek Polacek <polacek@redhat.com>
3356
3357 PR sanitizer/59333
3358 PR sanitizer/59397
3359 * ubsan.c: Include rtl.h and expr.h.
3360 (ubsan_encode_value): Add new parameter. If expanding, assign
3361 a stack slot for DECL_RTL of the temporary and call expand_assignment.
3362 Handle BOOLEAN_TYPE and ENUMERAL_TYPE.
3363 (ubsan_build_overflow_builtin): Adjust ubsan_encode_value call.
3364 * ubsan.h (ubsan_encode_value): Adjust declaration.
3365 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Move
3366 ubsan_build_overflow_builtin above expand_normal call. Surround
3367 this call with push_temp_slots and pop_temp_slots.
3368 (ubsan_expand_si_overflow_neg_check): Likewise.
3369 (ubsan_expand_si_overflow_mul_check): Likewise.
3370
3371 2013-12-05 Yufeng Zhang <yufeng.zhang@arm.com>
3372
3373 * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Guard
3374 the get_alternative_base call with flag_expensive_optimizations.
3375 (alloc_cand_and_find_basis): Likewise.
3376
3377 2013-12-05 Tejas Belagod <tejas.belagod@arm.com>
3378
3379 * rtlanal.c (set_noop_p): Return nonzero in case of redundant
3380 vec_select for overlapping register lanes.
3381
3382 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
3383
3384 * config/i386/i386.c (ix86_expand_builtin): Generate
3385 reg for readflags built-in when optimizing.
3386 * config/i386/i386.md (*pushfl<mode>): Rename to ...
3387 (pushfl<mode>2): This. Fix iterator.
3388 (*popfl<mode>): Rename to ...
3389 (*popfl<mode>1): This. Fix iterator.
3390
3391 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
3392
3393 * config/i386/i386.c (IX86_BUILTIN_READ_FLAGS): New.
3394 (IX86_BUILTIN_WRITE_FLAGS): Ditto.
3395 (ix86_init_mmx_sse_builtins): Define
3396 __builtin_ia32_writeeflags_u32, __builtin_ia32_writeeflags_u64,
3397 __builtin_ia32_readeflags_u32, __builtin_ia32_readeflags_u64.
3398 (ix86_expand_builtin): Expand them.
3399 * config/i386/ia32intrin.h (__readeflags): New.
3400 (__writeeflags): Ditto.
3401 * config/i386/i386.md (*pushfl<mode>): Ditto.
3402 (*popfl<mode>1): Ditto.
3403
3404 2013-12-05 Richard Biener <rguenther@suse.de>
3405
3406 PR tree-optimization/59374
3407 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
3408 Commonize known and unknown dependence case fixing the allowed
3409 read-write dependence case and dropping code that should not matter.
3410
3411 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
3412
3413 * config/ia64/ia64.md (prologue_allocate_stack): Block auto-
3414 generation of predicated version.
3415 (epilogue_deallocate_stack): Ditto.
3416 (prologue_allocate_stack_pr): Add explicit predicated version.
3417 (epilogue_deallocate_stack_pr): Ditto.
3418 * config/ia64/ia64.c (ia64_single_set): Use explicit version.
3419
3420 2013-12-05 Alan Modra <amodra@gmail.com>
3421
3422 * configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
3423 build != host.
3424 <recursive call for build != host>: Clear GMPINC. Don't bother
3425 saving CFLAGS.
3426
3427 2013-12-04 Jakub Jelinek <jakub@redhat.com>
3428 Marek Polacek <polacek@redhat.com>
3429
3430 * opts.c (common_handle_option): Handle
3431 -fsanitize=signed-integer-overflow.
3432 * config/i386/i386.md (addv<mode>4, subv<mode>4, mulv<mode>4,
3433 negv<mode>3, negv<mode>3_1): Define expands.
3434 (*addv<mode>4, *subv<mode>4, *mulv<mode>4, *negv<mode>3): Define insns.
3435 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW,
3436 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW,
3437 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW,
3438 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW): Define.
3439 * ubsan.h (PROB_VERY_UNLIKELY, PROB_EVEN, PROB_VERY_LIKELY,
3440 PROB_ALWAYS): Define.
3441 (ubsan_build_overflow_builtin): Declare.
3442 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Add folding of
3443 internal functions.
3444 * ubsan.c (PROB_VERY_UNLIKELY): Don't define here.
3445 (ubsan_build_overflow_builtin): New function.
3446 (instrument_si_overflow): Likewise.
3447 (ubsan_pass): Add signed integer overflow checking.
3448 (gate_ubsan): Enable the pass also when SANITIZE_SI_OVERFLOW.
3449 * flag-types.h (enum sanitize_code): Add SANITIZE_SI_OVERFLOW.
3450 * internal-fn.c: Include ubsan.h and target.h.
3451 (ubsan_expand_si_overflow_addsub_check): New function.
3452 (ubsan_expand_si_overflow_neg_check): Likewise.
3453 (ubsan_expand_si_overflow_mul_check): Likewise.
3454 (expand_UBSAN_CHECK_ADD): Likewise.
3455 (expand_UBSAN_CHECK_SUB): Likewise.
3456 (expand_UBSAN_CHECK_MUL): Likewise.
3457 * fold-const.c (fold_binary_loc): Don't fold A + (-B) -> A - B and
3458 (-A) + B -> B - A when doing the signed integer overflow checking.
3459 * internal-fn.def (UBSAN_CHECK_ADD, UBSAN_CHECK_SUB, UBSAN_CHECK_MUL):
3460 Define.
3461 * tree-vrp.c (extract_range_basic): Handle internal calls.
3462 * optabs.def (addv4_optab, subv4_optab, mulv4_optab, negv4_optab): New
3463 optabs.
3464 * asan.c: Include predict.h.
3465 (PROB_VERY_UNLIKELY, PROB_ALWAYS): Don't define here.
3466 * predict.c: Move the PROB_* macros...
3467 * predict.h (enum br_predictor): ...here.
3468 (PROB_LIKELY, PROB_UNLIKELY): Define.
3469 * trans-mem.c: Include predict.h.
3470 (PROB_VERY_UNLIKELY, PROB_ALWAYS, PROB_VERY_LIKELY,
3471 PROB_LIKELY, PROB_UNLIKELY): Don't define here.
3472
3473 2013-12-04 Jeff Law <law@redhat.com>
3474
3475 * common.opt: Split up -fisolate-erroneous-paths into
3476 -fisolate-erroneous-paths-dereference and
3477 -fisolate-erroneous-paths-attribute.
3478 * invoke.texi: Corresponding changes.
3479 * gimple.c (infer_nonnull_range): Add and use new arguments to control
3480 what kind of statements can be used to infer a non-null range.
3481 * gimple.h (infer_nonnull_range): Update prototype.
3482 * tree-vrp.c (infer_value_range): Corresponding changes.
3483 * opts.c (default_options_table): Update due to option split.
3484 * gimple-ssa-isolate-paths.c: Fix trailing whitespace.
3485 (find_implicit_erroneous_behaviour): Pass additional arguments
3486 to infer_nonnull_range.
3487 (find_explicit_erroneous_behaviour): Similarly.
3488 (gate_isolate_erroneous_paths): Check both of the new options.
3489
3490 2013-12-04 Jeff Law <law@redhat.com>
3491
3492 * expr.c (expand_assignment): Update comments.
3493
3494 2013-12-04 Tobias Burnus <burnus@net-b.de>
3495
3496 PR debug/37132
3497 * lto-streamer.h (LTO_tags): Add LTO_namelist_decl_ref.
3498 * tree.def (NAMELIST_DECL): Add.
3499 * tree.h (NAMELIST_DECL_ASSOCIATED_DECL): New macro.
3500 * tree.c (initialize_tree_contains_struct): Add asserts for it.
3501 * dwarf2out.c (gen_namelist_decl): New function.
3502 (gen_decl_die, dwarf2out_decl): Call it.
3503 (dwarf2out_imported_module_or_decl_1): Handle NAMELIST_DECL.
3504 * lto-streamer-in.c (lto_input_tree_ref): Handle NAMELIST_DECL.
3505 (lto_input_tree_ref, lto_input_tree_1): Update lto_tag_check_range
3506 call.
3507 * lto-streamer-out.c (lto_output_tree_ref): Handle NAMELIST_DECL.
3508
3509 2013-12-03 Xinliang David Li <davidxl@google.com>
3510
3511 * tree-ssa-structalias.c (constraint_set_union): Change return type
3512 from void to bool.
3513 (merge_node_constraints): Ditto.
3514 (unify_nodes): Update changed set when constraints set changes.
3515
3516 2013-12-04 H.J. Lu <hongjiu.lu@intel.com>
3517
3518 * configure.ac: Append gdbasan.in to .gdbinit if CFLAGS contains
3519 -fsanitize=address.
3520 * configure: Regenerated.
3521
3522 * gdbasan.in: New file.
3523
3524 2013-12-04 Jakub Jelinek <jakub@redhat.com>
3525
3526 PR rtl-optimization/58726
3527 * combine.c (force_to_mode): Fix comment typo. Don't destructively
3528 modify x for ROTATE, ROTATERT and IF_THEN_ELSE.
3529
3530 2013-12-04 Jakub Jelinek <jakub@redhat.com>
3531 Uros Bizjak <ubizjak@gmail.com>
3532
3533 PR target/59163
3534 * config/i386/i386.c (ix86_legitimate_combined_insn): If for
3535 !TARGET_AVX there is misaligned MEM operand with vector mode
3536 and get_attr_ssememalign is 0, return false.
3537 (ix86_expand_special_args_builtin): Add get_pointer_alignment
3538 computed alignment and for non-temporal loads/stores also
3539 at least GET_MODE_ALIGNMENT as MEM_ALIGN.
3540 * config/i386/sse.md
3541 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
3542 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
3543 <sse2_avx_avx512f>_loaddqu<mode><mask_name>,
3544 <sse2_avx_avx512f>_storedqu<mode>, <sse3>_lddqu<avxsizesuffix>,
3545 sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
3546 sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
3547 *vec_interleave_highv2df, *vec_interleave_lowv2df,
3548 *vec_extractv2df_1_sse, sse2_movsd, sse4_1_<code>v8qiv8hi2,
3549 sse4_1_<code>v4qiv4si2, sse4_1_<code>v4hiv4si2,
3550 sse4_1_<code>v2qiv2di2, sse4_1_<code>v2hiv2di2,
3551 sse4_1_<code>v2siv2di2, sse4_2_pcmpestr, *sse4_2_pcmpestr_unaligned,
3552 sse4_2_pcmpestri, sse4_2_pcmpestrm, sse4_2_pcmpestr_cconly,
3553 sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned, sse4_2_pcmpistri,
3554 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add ssememalign attribute.
3555 * config/i386/i386.md (ssememalign): New define_attr.
3556
3557 2013-12-04 Jakub Jelinek <jakub@redhat.com>
3558
3559 PR tree-optimization/59355
3560 * ipa-devirt.c (gate_ipa_devirt): Return false if !flag_devirtualize.
3561 * opts.c (common_handle_option): Fix comment spelling.
3562
3563 2013-12-04 Yufeng Zhang <yufeng.zhang@arm.com>
3564
3565 * gimple-ssa-strength-reduction.c: Include tree-affine.h.
3566 (name_expansions): New static variable.
3567 (alt_base_map): Ditto.
3568 (get_alternative_base): New function.
3569 (find_basis_for_candidate): For CAND_REF, optionally call
3570 find_basis_for_base_expr with the returned value from
3571 get_alternative_base.
3572 (record_potential_basis): Add new parameter 'base' of type 'tree';
3573 add an assertion of non-NULL base; use base to set node->base_expr.
3574 (alloc_cand_and_find_basis): Update; call record_potential_basis
3575 for CAND_REF with the returned value from get_alternative_base.
3576 (replace_refs): Dump details on the replacing.
3577 (execute_strength_reduction): Call pointer_map_create for
3578 alt_base_map; call free_affine_expand_cache with &name_expansions.
3579
3580 2013-12-03 Wei Mi <wmi@google.com>
3581
3582 PR rtl-optimization/59020
3583 * sched-deps.c (try_group_insn): Move it from haifa-sched.c to here.
3584 (sched_analyze_insn): Call try_group_insn.
3585 (sched_analyze): Cleanup SCHED_GROUP_P before start the analysis.
3586 * haifa-sched.c (try_group_insn): Moved to sched-deps.c.
3587 (group_insns_for_macro_fusion): Removed.
3588 (sched_init): Remove calling group_insns_for_macro_fusion.
3589
3590 2013-12-03 Peter Bergner <bergner@vnet.ibm.com>
3591
3592 * config/rs6000/htmintrin.h (_TEXASR_INSTRUCTION_FETCH_CONFLICT): Fix
3593 typo in macro name.
3594 (_TEXASRU_INSTRUCTION_FETCH_CONFLICT): Likewise.
3595
3596 2013-12-03 Vladimir Makarov <vmakarov@redhat.com>
3597
3598 * config/aarch64/aarch64.c (aarch64_frame_pointer_required): Check
3599 LR_REGNUM.
3600 (aarch64_can_eliminate): Don't check elimination source when
3601 frame_pointer_required is false.
3602
3603 2013-12-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3604
3605 * config/avr/avr.c (avr_option_override): Warn if asked to generate
3606 position independent code.
3607 * config/avr/avr.h: Modify LINK_SPEC to reject -shared.
3608
3609 2013-12-03 H.J. Lu <hongjiu.lu@intel.com>
3610
3611 PR target/59363
3612 * config/i386/i386.c (emit_memset): Adjust destination address
3613 after gen_strset.
3614 (expand_setmem_epilogue): Likewise.
3615
3616 2013-12-03 Marek Polacek <polacek@redhat.com>
3617
3618 PR middle-end/56344
3619 * calls.c (expand_call): Disallow passing huge arguments by value.
3620
3621 2013-12-03 Jakub Jelinek <jakub@redhat.com>
3622
3623 PR tree-optimization/59362
3624 * tree-object-size.c (object_sizes): Change into array of
3625 vec<unsigned HOST_WIDE_INT>.
3626 (compute_builtin_object_size): Check computed bitmap for
3627 non-NULL instead of object_sizes. Call safe_grow on object_sizes
3628 vector if new SSA_NAMEs appeared.
3629 (init_object_sizes): Check computed bitmap for non-NULL.
3630 Call safe_grow on object_sizes elements instead of initializing
3631 it with XNEWVEC.
3632 (fini_object_sizes): Call release on object_sizes elements, don't
3633 set it to NULL.
3634
3635 PR middle-end/59011
3636 * gimplify.c (nonlocal_vla_vars): New variable.
3637 (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
3638 nonlocal_vla_vars chain.
3639 (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
3640 if outer_bind has DECL_INITIAL (current_function_decl) block.
3641
3642 PR target/58864
3643 * dojump.c (save_pending_stack_adjust, restore_pending_stack_adjust):
3644 New functions.
3645 * expr.h (struct saved_pending_stack_adjust): New type.
3646 (save_pending_stack_adjust, restore_pending_stack_adjust): New
3647 prototypes.
3648 * optabs.c (emit_conditional_move): Call save_pending_stack_adjust
3649 and get_last_insn before do_pending_stack_adjust, call
3650 restore_pending_stack_adjust after delete_insns_since.
3651 * expr.c (expand_expr_real_2): Don't call do_pending_stack_adjust
3652 before calling emit_conditional_move.
3653 * expmed.c (expand_sdiv_pow2): Likewise.
3654 * calls.c (expand_call): Use {save,restore}_pending_stack_adjust.
3655
3656 2013-12-02 Jeff Law <law@redhat.com>
3657
3658 PR tree-optimization/59322
3659 * tree-ssa-threadedge.c (create_edge_and_update_destination_phis):
3660 Remove code which copied jump threading paths.
3661
3662 2013-12-02 Sriraman Tallam <tmsriram@google.com>
3663
3664 PR target/58944
3665 * config/i386/i386.opt (ix86_arch_string): Mark this variable
3666 for saving in cl_target_option.
3667 (ix86_tune_string): Ditto.
3668 (ix86_cmodel): Ditto.
3669 (ix86_abi): Ditto.
3670 (ix86_asm_dialect): Ditto.
3671 (ix86_branch_cost): Ditto.
3672 (ix86_dump_tunes): Ditto.
3673 (ix86_force_align_arg_pointer): Ditto.
3674 (ix86_force_drap): Ditto.
3675 (ix86_incoming_stack_boundary_arg): Ditto.
3676 (ix86_pmode): Ditto.
3677 (ix86_preferred_stack_boundary_arg): Ditto.
3678 (ix86_recip_name): Ditto.
3679 (ix86_regparm): Ditto.
3680 (ix86_section_threshold): Ditto.
3681 (ix86_sse2avx): Ditto.
3682 (ix86_stack_protector_guard): Ditto.
3683 (ix86_stringop_alg): Ditto.
3684 (ix86_tls_dialect): Ditto.
3685 (ix86_tune_ctrl_string): Ditto.
3686 (ix86_tune_memcpy_strategy): Ditto.
3687 (ix86_tune_memset_strategy): Ditto.
3688 (ix86_tune_no_default): Ditto.
3689 (ix86_veclibabi_type): Ditto.
3690 * config/i386/i386.c (function_specific_save): Save the above
3691 variables in gcc_options to cl_target_option.
3692 (function_specific_restore): Do the reverse done in
3693 function_specific_save.
3694 (ix86_valid_target_attribute_tree): Change ix86_arch_string
3695 and ix86_tune_string to use the opts structure.
3696 (ix86_option_override_internal):Change
3697 ix86_incoming_stack_boundary_arg to
3698 opts->x_ix86_incoming_stack_boundary_arg
3699
3700 2013-12-02 Joern Rennecke <joern.rennecke@embecosm.com>
3701
3702 * config/epiphany/epiphany.h: Wrap rtl_opt_pass declarations
3703 in #ifndef IN_LIBGCC2 / #endif.
3704
3705 2013-12-02 Jakub Jelinek <jakub@redhat.com>
3706
3707 PR tree-optimization/59358
3708 * tree-vrp.c (union_ranges): To check for the partially overlapping
3709 ranges or adjacent ranges, also compare *vr0max with vr1max.
3710
3711 2013-12-02 Sterling Augustine  <saugustine@google.com>
3712
3713 * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
3714 when there isn't a skeleton die.
3715
3716 2013-12-02 Marek Polacek <polacek@redhat.com>
3717
3718 PR sanitizer/59353
3719 * doc/invoke.texi: Document -fsanitize=return.
3720
3721 2013-12-02 Tobias Burnus <burnus@net-b.de>
3722 Manuel López-Ibáñez <manu@gcc.gnu.org>
3723
3724 PR middle-end/59257
3725 * doc/invoke.texi: Add missing @opindex.
3726 (-fsanitize=): Use @gcctabopt instead of @itemize.
3727
3728 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3729
3730 Fix C++0x memory model for unaligned fields in packed, aligned(4)
3731 structures with -fno-strict-volatile-bitfields on STRICT_ALIGNMENT
3732 targets like arm-none-eabi.
3733 * expr.c (expand_assignment): Handle normal fields like bit regions.
3734
3735 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3736
3737 PR target/58115
3738 * function.c (invoke_set_current_function_hook): Call
3739 targetm.set_current_function after setting this_fn_optabs.
3740
3741 2013-12-02 Richard Biener <rguenther@suse.de>
3742
3743 PR tree-optimization/59139
3744 * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
3745 code in get_val_for.
3746 (get_val_for): Use gcc_checking_asserts.
3747
3748 2013-12-02 Richard Biener <rguenther@suse.de>
3749
3750 PR middle-end/59199
3751 * tree-ssa-operands.c (opf_implicit): Remove.
3752 (opf_address_taken): New flag.
3753 (get_expr_operands): Remove early out, pass down opf_address_taken for
3754 ADDR_EXPRs, add a use operand only for non-opf_address_taken bases.
3755 (get_indirect_ref_operands): Rename to ...
3756 (get_mem_ref_operands): ... this.
3757 (get_asm_expr_operands): Rename to ...
3758 (get_asm_stmt_operands): ... this.
3759
3760 2013-12-02 Yuri Rumyantsev <ysrumyan@gmail.com>
3761
3762 * ipa-inline.c (check_callers): Add missed pointer de-reference.
3763
3764 2013-12-02 Eric Botcazou <ebotcazou@adacore.com>
3765
3766 PR tree-optimization/59356
3767 * tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the
3768 offset computation using the precision of the index type.
3769
3770 2013-12-02 Yvan Roux <yvan.roux@linaro.org>
3771
3772 PR target/58785
3773 * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
3774 when rclass is GENERAL_REGS.
3775
3776 2013-12-02 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3777
3778 * loop-unroll.c (decide_unroll_constant_iterations): Check macro
3779 TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
3780
3781 2013-12-01 Eric Botcazou <ebotcazou@adacore.com>
3782
3783 * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
3784 identifier node.
3785
3786 2013-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
3787
3788 * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
3789
3790 2013-11-30 Paulo Matos <pmatos@broadcom.com>
3791 Eric Botcazou <ebotcazou@adacore.com>
3792
3793 * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
3794 as applied to nonzero_sign_valid when last_set_mode has less precision
3795 than mode.
3796
3797 2013-11-30 Tobias Burnus <burnus@net-b.de>
3798
3799 PR sanitizer/59275
3800 * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
3801 environment variable and link to a list with flags.
3802 (-fsanitize=thread): Ditto and update link.
3803
3804 2013-11-29 Vladimir Makarov <vmakarov@redhat.com>
3805
3806 PR rtl-optimization/59340
3807 * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
3808
3809 Revert
3810 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
3811
3812 * lra.c (lra): Set lra_in_progress before check_rtl call.
3813 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
3814 adding clobber regs when LRA is running.
3815
3816 2013-11-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3817
3818 PR target/59289
3819 * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
3820
3821 2013-11-29 Richard Biener <rguenther@suse.de>
3822
3823 PR middle-end/59208
3824 * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
3825 free_stmt_operands, update_stmt_operands): Add struct function
3826 argument.
3827 * tree-ssa-operands.c: Remove uses of cfun, propagate struct
3828 function argument from fini_ssa_operands, verify_ssa_operands,
3829 free_stmt_operands and update_stmt_operands everywhere.
3830 * tree-ssanames.h (release_ssa_name_fn): New.
3831 (release_ssa_name): Inline wrapper around release_ssa_name_fn.
3832 * tree-ssanames.c (release_ssa_name): Rename to ...
3833 (release_ssa_name_fn): ... this and add struct function argument.
3834 * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
3835 (update_stmt_fn): New function.
3836 * tree-cfg.c (move_block_to_fn): Adjust.
3837 * tree-if-conv.c (free_bb_predicate): Likewise.
3838 * tree-ssa.c (verify_ssa): Likewise.
3839 (delete_tree_ssa): Likewise.
3840 * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
3841 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
3842 update_stmt_fn instead of update_stmt.
3843
3844 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
3845
3846 * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
3847 for LRA.
3848
3849 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
3850
3851 * config/arm/arm.md (store_minmaxsi): Use only when
3852 optimize_function_for_size_p.
3853
3854 2013-11-29 Jakub Jelinek <jakub@redhat.com>
3855 Yury Gribov <y.gribov@samsung.com>
3856
3857 PR sanitizer/59063
3858 * config/gnu-user.h: Removed old code for setting up sanitizer libs.
3859 * gcc.c: Using libsanitizer spec instead of explicit libs.
3860
3861 2013-11-29 Ilya Enkovich <ilya.enkovich@intel.com>
3862
3863 Reverted:
3864 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
3865 * cgraph.h (varpool_node): Add need_bounds_init field.
3866 * lto-cgraph.c (lto_output_varpool_node): Output
3867 need_bounds_init value.
3868 (input_varpool_node): Read need_bounds_init value.
3869 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
3870
3871 Reverted:
3872 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
3873 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
3874 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
3875 (gen_type_die_with_usage): Skip pointer bounds.
3876 (dwarf2out_global_decl): Likewise.
3877
3878 Reverted:
3879 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
3880 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
3881 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
3882 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
3883 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
3884 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
3885 (gimple_call_with_bounds_p): New.
3886 (gimple_call_set_with_bounds): New.
3887 (gimple_call_num_nobnd_args): Remove.
3888 (gimple_call_nobnd_arg): Remove.
3889 * tree.h (CALL_WITH_BOUNDS_P): New.
3890 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
3891
3892 Reverted:
3893 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
3894 * common.opt (fcheck-pointer-bounds): Move to ...
3895 * c-family/c.opt: ... here.
3896 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
3897 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
3898 * langhooks.h (lang_hooks): Remove chkp_supported field.
3899 * toplev.c (process_options): Remove chkp_supported check.
3900
3901 Reverted:
3902 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
3903 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
3904 * tree.h (POINTER_BOUNDS_P): New.
3905 (BOUNDED_TYPE_P): New.
3906 (BOUNDED_P): New.
3907 (pointer_bounds_type_node): New.
3908 * tree.c (build_common_tree_nodes): Initialize
3909 pointer_bounds_type_node.
3910 * gimple.h (gimple_call_get_nobnd_arg_index): New.
3911 (gimple_call_num_nobnd_args): New.
3912 (gimple_call_nobnd_arg): New.
3913 (gimple_return_retbnd): New.
3914 (gimple_return_set_retbnd): New
3915 * gimple.c (gimple_build_return): Increase number of ops
3916 for return statement.
3917 (gimple_call_get_nobnd_arg_index): New.
3918 * gimple-pretty-print.c (dump_gimple_return): Print second op.
3919
3920 Reverted:
3921 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
3922 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
3923 with "chkp ctor" and "bnd_legacy" attributes.
3924 * gimplify.c (gimplify_init_constructor): Avoid infinite
3925 loop during gimplification of bounds initializer.
3926
3927 Reverted:
3928 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
3929 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
3930 (handle_bnd_legacy): New.
3931 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
3932 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
3933 attributes.
3934
3935 Reverted:
3936 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
3937 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
3938 (BT_FN_PTR_CONST_PTR): New.
3939 (BT_FN_CONST_PTR_CONST_PTR): New.
3940 (BT_FN_PTR_CONST_PTR_SIZE): New.
3941 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
3942 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
3943 (BT_FN_VOID_CONST_PTR_SIZE): New.
3944 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
3945 * chkp-builtins.def: New.
3946 * builtins.def: include chkp-builtins.def.
3947 (DEF_CHKP_BUILTIN): New.
3948 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
3949 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
3950 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
3951 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
3952 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
3953 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
3954 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
3955 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
3956 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
3957 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
3958 * common.opt (fcheck-pointer-bounds): New.
3959 * toplev.c (process_options): Check Pointer Bounds Checker is
3960 supported.
3961 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
3962
3963 Reverted:
3964 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
3965 * target.def (builtin_chkp_function): New.
3966 (chkp_bound_type): New.
3967 (chkp_bound_mode): New.
3968 (fn_abi_va_list_bounds_size): New.
3969 (load_bounds_for_arg): New.
3970 (store_bounds_for_arg): New.
3971 * targhooks.h (default_load_bounds_for_arg): New.
3972 (default_store_bounds_for_arg): New.
3973 (default_fn_abi_va_list_bounds_size): New.
3974 (default_chkp_bound_type): New.
3975 (default_chkp_bound_mode): New.
3976 (default_builtin_chkp_function): New.
3977 * targhooks.c (default_load_bounds_for_arg): New.
3978 (default_store_bounds_for_arg): New.
3979 (default_fn_abi_va_list_bounds_size): New.
3980 (default_chkp_bound_type): New.
3981 (default_chkp_bound_mode); New.
3982 (default_builtin_chkp_function): New.
3983 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
3984 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
3985 (TARGET_STORE_BOUNDS_FOR_ARG): New.
3986 (TARGET_BUILTIN_CHKP_FUNCTION): New.
3987 (TARGET_CHKP_BOUND_TYPE): New.
3988 (TARGET_CHKP_BOUND_MODE): New.
3989 * doc/tm.texi: Regenerated.
3990 * langhooks.h (lang_hooks): Add chkp_supported field.
3991 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
3992 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
3993
3994 Reverted:
3995 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
3996 * config/i386/constraints.md (B): New.
3997 (Ti): New.
3998 (Tb): New.
3999 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
4000 * config/i386/i386-modes.def (BND32): New.
4001 (BND64): New.
4002 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
4003 * config/i386/i386.c (isa_opts): Add mmpx.
4004 (regclass_map): Add bound registers.
4005 (dbx_register_map): Likewise.
4006 (dbx64_register_map): Likewise.
4007 (svr4_dbx_register_map): Likewise.
4008 (PTA_MPX): New.
4009 (ix86_option_override_internal): Support MPX ISA.
4010 (ix86_conditional_register_usage): Support bound registers.
4011 (print_reg): Likewise.
4012 (ix86_code_end): Add MPX bnd prefix.
4013 (output_set_got): Likewise.
4014 (ix86_output_call_insn): Likewise.
4015 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
4016 (ix86_print_operand_punct_valid_p): Likewise.
4017 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
4018 UNSPEC_BNDMK_ADDR.
4019 (ix86_class_likely_spilled_p): Add bound regs support.
4020 (ix86_hard_regno_mode_ok): Likewise.
4021 (x86_order_regs_for_local_alloc): Likewise.
4022 (ix86_bnd_prefixed_insn_p): New.
4023 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
4024 (FIXED_REGISTERS): Add bound registers.
4025 (CALL_USED_REGISTERS): Likewise.
4026 (REG_ALLOC_ORDER): Likewise.
4027 (HARD_REGNO_NREGS): Likewise.
4028 (TARGET_MPX): New.
4029 (VALID_BND_REG_MODE): New.
4030 (FIRST_BND_REG): New.
4031 (LAST_BND_REG): New.
4032 (reg_class): Add BND_REGS.
4033 (REG_CLASS_NAMES): Likewise.
4034 (REG_CLASS_CONTENTS): Likewise.
4035 (BND_REGNO_P): New.
4036 (ANY_BND_REG_P): New.
4037 (BNDmode): New.
4038 (HI_REGISTER_NAMES): Add bound registers.
4039 * config/i386/i386.md (UNSPEC_BNDMK): New.
4040 (UNSPEC_BNDMK_ADDR): New.
4041 (UNSPEC_BNDSTX): New.
4042 (UNSPEC_BNDLDX): New.
4043 (UNSPEC_BNDLDX_ADDR): New.
4044 (UNSPEC_BNDCL): New.
4045 (UNSPEC_BNDCU): New.
4046 (UNSPEC_BNDCN): New.
4047 (UNSPEC_MPX_FENCE): New.
4048 (BND0_REG): New.
4049 (BND1_REG): New.
4050 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
4051 (length_immediate): Likewise.
4052 (prefix_0f): Likewise.
4053 (memory): Likewise.
4054 (prefix_rep): Check for bnd prefix.
4055 (length_nobnd): New.
4056 (length): Use length_nobnd if specified.
4057 (BND): New.
4058 (bnd_ptr): New.
4059 (BNDCHECK): New.
4060 (bndcheck): New.
4061 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
4062 (*jcc_2): Likewise.
4063 (jump): Likewise.
4064 (simple_return_internal): Likewise.
4065 (simple_return_pop_internal): Likewise.
4066 (*indirect_jump): Add MPX bnd prefix.
4067 (*tablejump_1): Likewise.
4068 (simple_return_internal_long): Likewise.
4069 (simple_return_indirect_internal): Likewise.
4070 (<mode>_mk): New.
4071 (*<mode>_mk): New.
4072 (mov<mode>): New.
4073 (*mov<mode>_internal_mpx): New.
4074 (<mode>_<bndcheck>): New.
4075 (*<mode>_<bndcheck>): New.
4076 (<mode>_ldx): New.
4077 (*<mode>_ldx): New.
4078 (<mode>_stx): New.
4079 (*<mode>_stx): New.
4080 * config/i386/predicates.md (lea_address_operand): Rename to...
4081 (address_no_seg_operand): ... this.
4082 (address_mpx_no_base_operand): New.
4083 (address_mpx_no_index_operand): New.
4084 (bnd_mem_operator): New.
4085 * config/i386/i386.opt (mmpx): New.
4086 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
4087 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
4088
4089 Reverted:
4090 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
4091 * mode-classes.def (MODE_POINTER_BOUNDS): New.
4092 * tree.def (POINTER_BOUNDS_TYPE): New.
4093 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
4094 (POINTER_BOUNDS_MODE): New.
4095 (make_pointer_bounds_mode): New.
4096 * machmode.h (POINTER_BOUNDS_MODE_P): New.
4097 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
4098 (layout_type): Support POINTER_BOUNDS_TYPE.
4099 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
4100 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
4101 (type_contains_placeholder_1): Likewise.
4102 * tree.h (POINTER_BOUNDS_TYPE_P): New.
4103 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
4104 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
4105
4106 2013-11-29 Richard Biener <rguenther@suse.de>
4107
4108 PR middle-end/59338
4109 * tree-cfg.c (verify_expr): Restrict bounds verification of
4110 BIT_FIELD_REF arguments to non-aggregate typed base objects.
4111
4112 2013-11-29 Richard Biener <rguenther@suse.de>
4113
4114 PR tree-optimization/59334
4115 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
4116 in previous commit.
4117
4118 2013-11-29 Jakub Jelinek <jakub@redhat.com>
4119 Richard Biener <rguenther@suse.de>
4120
4121 PR lto/59326
4122 * omp-low.c (simd_clone_create): Return NULL if for definition
4123 !cgraph_function_with_gimple_body_p (old_node). Call cgraph_get_body
4124 before calling cgraph_function_versioning.
4125 (expand_simd_clones): Look for "omp declare simd" attribute first.
4126 Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
4127 Punt if node->global.inlined_to.
4128 (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
4129 Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
4130 * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
4131
4132 2013-11-29 Jakub Jelinek <jakub@redhat.com>
4133
4134 PR lto/59326
4135 * tree-core.h (enum omp_clause_schedule_kind): Add
4136 OMP_CLAUSE_SCHEDULE_LAST.
4137 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
4138 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
4139 (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
4140 (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
4141 * lto-streamer-out.c (lto_is_streamable): Allow streaming OMP_CLAUSE.
4142 (DFS_write_tree_body): Handle OMP_CLAUSE.
4143 * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New function.
4144 (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
4145 (write_ts_omp_clause_tree_pointers): New function.
4146 (streamer_write_tree_body): Call it for OMP_CLAUSE.
4147 (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
4148 * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New function.
4149 (unpack_value_fields): Call it for OMP_CLAUSE.
4150 (streamer_alloc_tree): Handle OMP_CLAUSE.
4151 (lto_input_ts_omp_clause_tree_pointers): New function.
4152 (streamer_read_tree_body): Call it for OMP_CLAUSE.
4153
4154 2013-11-29 Joseph Myers <joseph@codesourcery.com>
4155
4156 * doc/implement-c.texi: Document C11 implementation-defined
4157 behavior. Refer to -ffp-contract=fast for contraction behavior.
4158 * doc/invoke.texi (-std=c99, std=c11): Update description of
4159 completeness.
4160 (-std=gnu99): Don't mention as future default.
4161 (-std=gnu11): Mention as intended future default.
4162 * doc/standards.texi: Update descriptions of C99 and C11 support.
4163 Limit statement about C99 facilities for freestanding
4164 implementations to some platforms only.
4165
4166 2013-11-28 Jakub Jelinek <jakub@redhat.com>
4167
4168 PR middle-end/59327
4169 * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit HWI hosts.
4170
4171 2013-11-28 Vladimir Makarov <vmakarov@redhat.com>
4172
4173 PR target/57293
4174 * ira.h (ira_setup_eliminable_regset): Remove parameter.
4175 * ira.c (ira_setup_eliminable_regset): Ditto. Add
4176 SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
4177 Don't call lra_init_elimination.
4178 (ira): Call ira_setup_eliminable_regset without arguments.
4179 * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
4180 from ira_setup_eliminable_regset call.
4181 * gcse.c (calculate_bb_reg_pressure): Ditto.
4182 * haifa-sched.c (sched_init): Ditto.
4183 * lra.h (lra_init_elimination): Remove the prototype.
4184 * lra-int.h (lra_insn_recog_data): New member sp_offset. Move
4185 used_insn_alternative upper.
4186 (lra_eliminate_regs_1): Add one more parameter.
4187 (lra-eliminate): Ditto.
4188 * lra.c (lra_invalidate_insn_data): Set sp_offset.
4189 (setup_sp_offset): New.
4190 (lra_process_new_insns): Call setup_sp_offset.
4191 (lra): Add argument to lra_eliminate calls.
4192 * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
4193 (get_equiv_with_elimination): New.
4194 (process_addr_reg): Call get_equiv_with_elimination instead of
4195 get_equiv_substitution.
4196 (equiv_address_substitution): Ditto.
4197 (loc_equivalence_change_p): Ditto.
4198 (loc_equivalence_callback, lra_constraints): Ditto.
4199 (curr_insn_transform): Ditto. Print the sp offset
4200 (process_alt_operands): Prevent stack pointer reloads.
4201 (lra_constraints): Remove one argument from lra_eliminate call.
4202 Move it up. Mark used hard regs bfore it. Use
4203 get_equiv_with_elimination instead of get_equiv_substitution.
4204 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
4205 assert for param values combination. Use sp offset. Add argument
4206 to lra_eliminate_regs_1 calls.
4207 (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
4208 (curr_sp_change): New static var.
4209 (mark_not_eliminable): Add parameter. Update curr_sp_change.
4210 Don't prevent elimination to sp if we can calculate its change.
4211 Pass the argument to mark_not_eliminable calls.
4212 (eliminate_regs_in_insn): Add a parameter. Use sp offset. Add
4213 argument to lra_eliminate_regs_1 call.
4214 (update_reg_eliminate): Move calculation of hard regs for spill
4215 lower. Switch off lra_in_progress temporarily to generate regs
4216 involved into elimination.
4217 (lra_init_elimination): Rename to init_elimination. Make it
4218 static. Set up insn sp offset, check the offsets at the end of BBs.
4219 (process_insn_for_elimination): Add parameter. Pass its value to
4220 eliminate_regs_in_insn.
4221 (lra_eliminate): : Add parameter. Pass its value to
4222 process_insn_for_elimination. Add assert for param values
4223 combination. Call init_elimination. Don't update offsets in
4224 equivalence substitutions.
4225 * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
4226 for created stack slot.
4227 (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
4228 onto stack slot.
4229
4230 2013-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4231
4232 * config/arm/iterators.md (vrint_conds): New int attribute.
4233 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
4234 (smax<mode>3): Likewise.
4235 (smin<mode>3): Likewise.
4236
4237 2013-11-28 Richard Sandiford <rdsandiford@googlemail.com>
4238
4239 * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
4240 * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
4241 * tree-ssanames.h (set_range_info): Add range_type argument.
4242 (duplicate_ssa_name_range_info): Likewise.
4243 * tree-ssanames.c (set_range_info): Take the range type as argument
4244 and store it in SSA_NAME_ANTI_RANGE_P.
4245 (duplicate_ssa_name_range_info): Likewise.
4246 (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
4247 (set_nonzero_bits): Update call to set_range_info.
4248 (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
4249 * tree-ssa-copy.c (fini_copy_prop): Likewise.
4250 * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
4251 (vrp_finalize): Likewise, passing anti-ranges directly.
4252
4253 2013-11-28 Richard Biener <rguenther@suse.de>
4254
4255 PR tree-optimization/59330
4256 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
4257 and fix delayed marking of free calls not necessary.
4258
4259 2013-11-28 Andrew MacLeod <amacleod@redhat.com>
4260
4261 * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
4262 is_gimple_reg_type.
4263 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
4264
4265 2013-11-28 Terry Guo <terry.guo@arm.com>
4266
4267 * config/arm/arm.c (v7m_extra_costs): New table.
4268 (arm_v7m_tune): Use it.
4269
4270 2013-11-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4271
4272 * config/sol2.h (TIME_LIBRARY): Define.
4273
4274 2013-11-28 Richard Biener <rguenther@suse.de>
4275
4276 PR lto/59323
4277 * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
4278 CONST_DECLs in function context are not indexable.
4279
4280 2013-11-28 Chung-Ju Wu <jasonwucj@gmail.com>
4281
4282 * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
4283 not optimized for size.
4284
4285 2013-11-28 Jakub Jelinek <jakub@redhat.com>
4286
4287 * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
4288 fields.
4289 (expand_stack_vars): For -fsanitize=address, use (and set initially)
4290 data->asan_base as base for vars and update asan_alignb.
4291 (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
4292 Pass them to asan_emit_stack_protection.
4293 * asan.c (asan_detect_stack_use_after_return): New variable.
4294 (asan_emit_stack_protection): Add pbase and alignb arguments.
4295 Implement use after return sanitization.
4296 * asan.h (asan_emit_stack_protection): Adjust prototype.
4297 (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
4298
4299 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
4300
4301 * common.opt: Introduced a new option -fsimd-cost-model.
4302 * doc/invoke.texi: Introduced a new openmp-simd warning and
4303 a new -fsimd-cost-model option.
4304 * tree-vectorizer.h (unlimited_cost_model): Interface updated
4305 to rely on the particular loop info.
4306 * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
4307 (vect_peeling_hash_choose_best_peeling): Ditto.
4308 (vect_enhance_data_refs_alignment): Ditto.
4309 * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
4310 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
4311 plus added openmp-simd warining.
4312
4313 2013-11-27 H.J. Lu <hongjiu.lu@intel.com>
4314
4315 PR rtl-optimization/59311
4316 * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
4317 * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
4318
4319 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
4320
4321 * var-tracking.c (track_expr_p): Do not track declarations for parts
4322 of tracked parameters.
4323 (add_stores): Do not track values for tracked parameters passed in
4324 multiple locations.
4325 (vt_get_decl_and_offset): Handle PARALLEL.
4326 (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
4327
4328 2013-11-27 Jeff Law <law@redhat.com>
4329
4330 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
4331 clobber the loop structure thread_block was unsuccessful. If
4332 thread_block was unsuccessful, cleanup appropriately.
4333
4334 2013-11-27 Chen Liqin <liqin.gcc@gmail.com>
4335
4336 * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
4337 (score_char_to_class): Likewise.
4338
4339 2013-11-27 Kenneth Zadeck <zadeck@naturalbridge.com>
4340
4341 * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with
4342 the overflow bit set.
4343
4344 2013-11-27 Richard Biener <rguenther@suse.de>
4345
4346 PR middle-end/58723
4347 * cgraphbuild.c (build_cgraph_edges): Do not build edges
4348 for internal calls.
4349 (rebuild_cgraph_edges): Likewise.
4350 * ipa-inline-analysis.c (estimate_function_body_sizes):
4351 Skip internal calls.
4352 * tree-inline.c (estimate_num_insns): Estimate size of internal
4353 calls as 0.
4354 (gimple_expand_calls_inline): Do not try inline-expanding
4355 internal calls.
4356 * lto-streamer-in.c (input_cfg): Stream loop safelen,
4357 force_vect and simduid.
4358 (input_struct_function_base): Stream has_force_vect_loops
4359 and has_simduid_loops.
4360 (input_function): Adjust.
4361 * lto-streamer-out.c (output_cfg): Stream loop safelen,
4362 force_vect and simduid.
4363 (output_struct_function_base): Stream has_force_vect_loops
4364 and has_simduid_loops.
4365
4366 2013-11-27 Kai Tietz <ktietz@redhat.com>
4367
4368 * config/i386/winnt.c (i386_pe_section_type_flags): Use const
4369 pointer cast.
4370
4371 2013-11-27 Kugan Vivekanandarajah <kuganv@linaro.org>
4372
4373 * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
4374 * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
4375
4376 2013-11-27 Marek Polacek <polacek@redhat.com>
4377
4378 PR sanitizer/59306
4379 * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
4380 instead of walk_gimple_op.
4381 (ubsan_pass): Adjust. Call instrument_null only if SANITIZE_NULL.
4382
4383 2013-11-27 Aldy Hernandez <aldyh@redhat.com>
4384 Jakub Jelinek <jakub@redhat.com>
4385
4386 * cgraph.h (enum cgraph_simd_clone_arg_type): New.
4387 (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
4388 (struct cgraph_node): Add simdclone and simd_clones fields.
4389 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
4390 ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
4391 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
4392 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
4393 * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
4394 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
4395 * doc/tm.texi: Regenerated.
4396 * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
4397 * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
4398 attribute is present.
4399 * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
4400 (simd_clone_vector_of_formal_parm_types): New function.
4401 (simd_clone_struct_alloc, simd_clone_struct_copy,
4402 simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
4403 simd_clone_compute_base_data_type, simd_clone_mangle,
4404 simd_clone_create, simd_clone_adjust_return_type,
4405 create_tmp_simd_array, simd_clone_adjust_argument_types,
4406 simd_clone_init_simd_arrays): New functions.
4407 (struct modify_stmt_info): New type.
4408 (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
4409 simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
4410 functions.
4411 (pass_data_omp_simd_clone): New variable.
4412 (pass_omp_simd_clone): New class.
4413 (make_pass_omp_simd_clone): New function.
4414 * passes.def (pass_omp_simd_clone): New.
4415 * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
4416 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target hooks.
4417 * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
4418 * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
4419 * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
4420 * tree-pass.h (make_pass_omp_simd_clone): New prototype.
4421 * tree-vect-data-refs.c: Include cgraph.h.
4422 (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
4423 and find_data_references_in_bb, if find_data_references_in_stmt
4424 fails, still allow calls to #pragma omp declare simd functions
4425 in #pragma omp simd loops unless they contain data references among
4426 the call arguments or in lhs.
4427 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
4428 calls with no lhs.
4429 (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls
4430 without lhs.
4431 * tree-vectorizer.h (enum stmt_vec_info_type): Add
4432 call_simd_clone_vec_info_type.
4433 (struct _stmt_vec_info): Add simd_clone_fndecl field.
4434 (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
4435 * tree-vect-stmts.c: Include tree-ssa-loop.h,
4436 tree-scalar-evolution.h and cgraph.h.
4437 (vectorizable_call): Handle calls without lhs. Assert
4438 !stmt_can_throw_internal instead of failing for it. Don't update
4439 EH stuff.
4440 (struct simd_call_arg_info): New.
4441 (vectorizable_simd_clone_call): New function.
4442 (vect_transform_stmt): Call it.
4443 (vect_analyze_stmt): Likewise. Allow NULL STMT_VINFO_VECTYPE for
4444 calls without lhs.
4445 * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
4446 if cgraph_function_with_gimple_body_p is true.
4447
4448 2013-11-27 Tom de Vries <tom@codesourcery.com>
4449 Marc Glisse <marc.glisse@inria.fr>
4450
4451 PR middle-end/59037
4452 * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
4453 BIT_FIELD_REF.
4454 * gimple-fold.c (gimple_fold_indirect_ref): Same.
4455 * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
4456 out-of-bounds.
4457
4458 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
4459
4460 PR middle-end/59138
4461 * expr.c (emit_group_store): Don't write past the end of the structure.
4462 (store_bit_field): Fix formatting.
4463
4464 2013-11-27 Richard Biener <rguenther@suse.de>
4465
4466 PR tree-optimization/59288
4467 * tree-vect-loop.c (get_initial_def_for_induction): Do not
4468 re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
4469
4470 2013-11-27 Marek Polacek <polacek@redhat.com>
4471
4472 * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
4473 for a decl, recreate that decl. Save into the hash table VAR_DECLs
4474 rather than ADDR_EXPRs.
4475
4476 2013-11-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4477
4478 * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
4479
4480 2013-11-26 David Malcolm <dmalcolm@redhat.com>
4481
4482 * gengtype.c (struct seen_tag): New.
4483 (already_seen_tag): New.
4484 (mark_tag_as_seen): New.
4485 (walk_subclasses): Support having multiple subclasses using the
4486 same tag by tracking which tags have already been seen, and using
4487 this to avoid adding duplicate cases to the "switch" statement.
4488 The call to already_seen_tag introduces an O(N^2) when running
4489 gengtype on N, the number of tags, due to the repeated linear
4490 search, but currently max(N) is relatively small (the number of
4491 GSS codes, which is 26).
4492 (walk_type): Pass in a seen_tag for use by the walk_subclasses
4493 recursion.
4494
4495 * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
4496 underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
4497 GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
4498 GIMPLE_OMP_RETURN happens to share the data layout of
4499 GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
4500 (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
4501 underlying GSS value from GSS_OMP_PARALLEL to
4502 GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
4503 not directly related; they merely share in-memory layout.
4504 (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
4505 for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
4506
4507 * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
4508 Rename to...
4509 (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
4510 ...these.
4511 (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
4512 (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout): ...these.
4513 (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename to...
4514 (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
4515 ...these.
4516
4517 * gimple.h (gimple_statement_resx): New subclass of
4518 gimple_statement_eh_ctrl, with the invariant that
4519 stmt->code == GIMPLE_RESX.
4520 (gimple_statement_eh_dispatch): New subclass of
4521 gimple_statement_eh_ctrl, with the invariant that
4522 stmt->code == GIMPLE_EH_DISPATH.
4523
4524 (gimple_statement_omp_parallel): The existing class expressed
4525 a layout (GSS_OMP_PARALLEL), but the codes with that layout
4526 are not all related, so it makes more sense for this class to
4527 express a *code* (GIMPLE_OMP_PARALLEL). GSS_OMP_PARALLEL has
4528 been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
4529 rename the existing gimple_statement_omp_parallel class to...
4530 (gimple_statement_omp_parallel_layout): ...this, expressing
4531 a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
4532 (gimple_statement_omp_taskreg): New subclass of
4533 gimple_statement_omp_parallel_layout, expressing the invariant
4534 that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
4535 as used by the various gimple_omp_taskreg_ accessors.
4536 (gimple_statement_omp_parallel): Reintroduce this class, this time
4537 as a subclass of gimple_statement_omp_taskreg to express the
4538 invariant stmt->code == GIMPLE_OMP_PARALLEL.
4539 (gimple_statement_omp_target) New class, subclassing
4540 gimple_statement_omp_parallel_layout, to express the invariant
4541 stmt->code == GIMPLE_OMP_TARGET.
4542 (gimple_statement_omp_task): Update to inherit from
4543 gimple_statement_omp_taskreg rather than
4544 gimple_statement_omp_parallel.
4545
4546 (gimple_statement_omp_single): Rename to...
4547 (gimple_statement_omp_single_layout): ...this, expressing the
4548 invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
4549 (gimple_statement_omp_single): ...and reintroduce this name as
4550 a subclass of gimple_statement_omp_single_layout, expressing
4551 the invariant that code == GIMPLE_OMP_SINGLE.
4552 (gimple_statement_omp_teams): New class, subclassing
4553 gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
4554
4555 (gimple_statement_omp_atomic_store): Rename to...
4556 (gimple_statement_omp_atomic_store_layout): ...this, expressing
4557 the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
4558 (gimple_statement_omp_atomic_store): ...and reintroduce this
4559 name as a subclass of gimple_statement_omp_atomic_store_layout
4560 with code == GIMPLE_OMP_ATOMIC_STORE.
4561 (gimple_statement_omp_return): New class, subclassing
4562 gimple_statement_omp_atomic_store_layout for the code
4563 GIMPLE_OMP_RETURN.
4564
4565 (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
4566 (is_a_helper <gimple_statement_resx>::test): New.
4567 (is_a_helper <gimple_statement_eh_dispatch>::test): New.
4568 (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
4569 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
4570 (is_a_helper <gimple_statement_omp_return>::test): New.
4571 (is_a_helper <gimple_statement_omp_taskreg>::test): New.
4572 (is_a_helper <gimple_statement_omp_parallel>::test): Only check
4573 for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
4574 GIMPLE_OMP_TARGET.
4575 (is_a_helper <gimple_statement_omp_target>::test): New.
4576 (is_a_helper <gimple_statement_omp_single>::test): Only check
4577 for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
4578 (is_a_helper <gimple_statement_omp_teams>::test): New.
4579
4580 (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
4581 (is_a_helper <const gimple_statement_resx>::test): New.
4582 (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
4583 (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
4584 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
4585 (is_a_helper <const gimple_statement_omp_return>::test): New.
4586 (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
4587 (is_a_helper <const gimple_statement_omp_parallel>::test): Only
4588 check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
4589 GIMPLE_OMP_TARGET.
4590 (is_a_helper <const gimple_statement_omp_target>::test): New.
4591 (is_a_helper <const gimple_statement_omp_single>::test): Only
4592 check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
4593 (is_a_helper <const gimple_statement_omp_teams>::test): New.
4594
4595 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
4596 gimple_omp_return_lhs_ptr): Replace bogus downcasts to
4597 gimple_statement_omp_atomic_store with downcasts to
4598 gimple_statement_omp_return, thus requiring that the code be
4599 GIMPLE_OMP_RETURN.
4600 (gimple_resx_region, gimple_resx_set_region): Replace bogus
4601 downcasts to gimple_statement_eh_ctrl with downcasts to
4602 gimple_statement_resx, thus requiring that the code be GIMPLE_RESX.
4603 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
4604 Replace bogus downcasts to const gimple_statement_eh_ctrl with
4605 downcasts to gimple_statement_eh_dispatch, thus requiring that
4606 the code be GIMPLE_EH_DISPATCH.
4607 (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
4608 gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
4609 gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
4610 gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
4611 gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
4612 gimple_statement_omp_parallel with downcasts to
4613 gimple_statement_omp_taskreg, thus requiring that the code be
4614 either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
4615 (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
4616 gimple_omp_target_set_clauses, gimple_omp_target_child_fn
4617 gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
4618 gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
4619 gimple_omp_target_set_data_arg): Replace bogus downcasts to
4620 gimple_statement_omp_parallel with downcasts to
4621 gimple_statement_omp_target, thus requiring that the code be
4622 GIMPLE_OMP_TARGET.
4623 (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
4624 gimple_omp_teams_set_clauses): Replace bogus downcasts to
4625 gimple_statement_omp_single with downcasts to
4626 gimple_statement_omp_teams, thus requiring that the code be
4627 GIMPLE_OMP_TEAMS.
4628
4629 * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
4630 gimple_statement_resx.
4631 (gimple_build_eh_dispatch): Fix bogus as_a<> to use
4632 gimple_statement_eh_dispatch.
4633
4634 2013-11-26 Jakub Jelinek <jakub@redhat.com>
4635
4636 PR tree-optimization/59014
4637 * tree-vrp.c (register_edge_assert_for_1): Don't look
4638 through conversions from non-integral types or through
4639 narrowing conversions.
4640
4641 PR target/59229
4642 * config/i386/i386.c (device_alg): Fix up formatting.
4643 (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
4644 similarly to count && count < epilogue_size_needed. Fix up
4645 comment typo.
4646 * builtins.c (determine_block_size): Fix comment typo.
4647
4648 PR sanitizer/59258
4649 * ubsan.c (ubsan_source_location): Don't add any location
4650 to ADDR_EXPR in the ctor. Revert 2013-11-22 change.
4651 (ubsan_create_data): Strip block info from LOC.
4652
4653 PR middle-end/59273
4654 * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
4655 if there isn't optab handler for the corresponding vector PLUS_EXPR.
4656
4657 PR rtl-optimization/59166
4658 * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
4659 DF_REF_LOC in validate_change call.
4660 (split_live_ranges_for_shrink_wrap): Likewise.
4661
4662 PR middle-end/59150
4663 * omp-low.c (lower_rec_input_clause): For reduction with placeholder
4664 of references to constant size types in simd loops, defer emitting
4665 initializer for the new_var, emit it later on only if not using
4666 SIMD arrays for it.
4667
4668 PR middle-end/59152
4669 * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
4670 for the inner loop if collapse_bb is non-NULL.
4671 (expand_omp_simd): Use cont_bb rather than e->dest as latch.
4672
4673 2013-11-26 Yufeng Zhang <yufeng.zhang@arm.com>
4674
4675 * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
4676 a constant immediate before force_reg.
4677
4678 2013-11-26 Richard Biener <rguenther@suse.de>
4679
4680 PR tree-optimization/59245
4681 * tree-vrp.c (set_value_range): Assert that we don't have
4682 overflowed constants (but our infinities).
4683 (set_value_range_to_value): Drop all overflow flags.
4684 (vrp_visit_phi_node): Likewise.
4685 (vrp_visit_assignment_or_call): Use set_value_range_to_value
4686 to set a constant range.
4687
4688 2013-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4689
4690 PR target/59290
4691 * config/arm/arm.md (*zextendsidi_negsi): New pattern.
4692 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
4693 for zero_extend case.
4694
4695 2013-11-26 H.J. Lu <hongjiu.lu@intel.com>
4696
4697 PR bootstrap/55552
4698 * configure.ac (install_gold_as_default): New. Set to yes for
4699 --disable-ld or --enable-gold=default.
4700 (gcc_cv_ld_gold_srcdir): New.
4701 (gcc_cv_ld): Also check in-tree gold if install_gold_as_default is yes.
4702 (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
4703 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
4704 * configure: Regenerated.
4705
4706 * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
4707 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
4708 (original) [collect-ld && -fuse-ld=bfd]: Set to
4709 $ORIGINAL_LD_BFD_FOR_TARGET.
4710 (original) [collect-ld && -fuse-ld=gold]: Set to
4711 $ORIGINAL_LD_GOLD_FOR_TARGET.
4712 (dir) [collect-ld && ../gold/ld-new]: Set to gold.
4713 (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
4714
4715 2013-11-26 Terry Guo <terry.guo@arm.com>
4716
4717 * config/arm/arm.c (require_pic_register): Handle high pic base
4718 register for thumb-1.
4719 (arm_load_pic_register): Also initialize high pic base register.
4720 * doc/invoke.texi: Update documentation for option -mpic-register.
4721
4722 2013-11-26 Oleg Endo <olegendo@gcc.gnu.org>
4723
4724 PR target/58314
4725 PR target/50751
4726 * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
4727 Prefix function names with 'sh_'. Make them non-static.
4728 * config/sh/sh-protos.h (sh_disp_addr_displacement,
4729 sh_max_mov_insn_displacement): Add declarations.
4730 * config/sh/constraints.md (Q): Reject QImode.
4731 (Sdd): Use match_code "mem".
4732 (Snd): Fix erroneous matching of non-memory operands.
4733 * config/sh/predicates.md (short_displacement_mem_operand): New
4734 predicate.
4735 (general_movsrc_operand): Disallow PC relative QImode loads.
4736 * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
4737 (*movqi, *movhi): Merge both insns into...
4738 (*mov<mode>): ... this new insn. Replace generic 'm' constraints with
4739 'Snd' and 'Sdd' constraints. Calculate insn length dynamically based
4740 on the operand types.
4741
4742 2013-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
4743
4744 * config/epiphany/epiphany.c (epiphany_expand_prologue):
4745 Remove unused variable save_config.
4746 (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
4747 assert.
4748
4749 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
4750
4751 * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
4752 using other intrinsics.
4753 (vtbx3_<psu>8): Likewise.
4754
4755 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
4756
4757 * config/aarch64/aarch64-builtins.c
4758 (aarch64_types_bsl_p_qualifiers): New.
4759 (aarch64_types_bsl_s_qualifiers): Likewise.
4760 (aarch64_types_bsl_u_qualifiers): Likewise.
4761 (TYPES_BSL_P): Likewise.
4762 (TYPES_BSL_S): Likewise.
4763 (TYPES_BSL_U): Likewise.
4764 (BUILTIN_VALLDIF): Likewise.
4765 (BUILTIN_VDQQH): Likewise.
4766 * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
4767 * config/aarch64/aarch64-simd.md
4768 (aarch64_simd_bsl<mode>_internal): Handle more modes.
4769 (aarch64_simd_bsl<mode>): Likewise.
4770 * config/aarch64/arm_neon.h
4771 (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
4772 * config/aarch64/iterators.md (VALLDIF): New.
4773 (Vbtype): Handle more modes.
4774
4775 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
4776
4777 * config/aarch64/aarch64-builtins.c
4778 (aarch64_type_qualifiers): Add qualifier_poly.
4779 (aarch64_build_scalar_type): Also build Poly types.
4780 (aarch64_build_vector_type): Likewise.
4781 (aarch64_build_type): Likewise.
4782 (aarch64_build_signed_type): New.
4783 (aarch64_build_unsigned_type): Likewise.
4784 (aarch64_build_poly_type): Likewise.
4785 (aarch64_init_simd_builtins): Also handle Poly types.
4786
4787 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
4788
4789 * config/aarch64/aarch64-builtins.c
4790 (VAR1): Use new naming scheme for aarch64_builtins.
4791 (aarch64_builtin_vectorized_function): Use new aarch64_builtins names.
4792
4793 2013-11-26 Richard Biener <rguenther@suse.de>
4794
4795 PR tree-optimization/59287
4796 * tree-ssa-structalias.c (get_constraint_for_component_ref):
4797 Remove no longer necessary special-casing of union accesses.
4798
4799 2013-11-26 Richard Biener <rguenther@suse.de>
4800
4801 * pretty-print.c (output_buffer::~output_buffer): Really
4802 free the obstacks.
4803
4804 2013-11-25 Jeff Law <law@redhat.com>
4805
4806 * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
4807 invalidate loop information.
4808
4809 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
4810
4811 * config/sh/sh.md (doloop_end_split): Add missing SI mode.
4812
4813 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
4814
4815 PR target/53976
4816 PR target/59243
4817 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
4818 comments.
4819 (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
4820 previously visited basic blocks before recursing instead of only one
4821 basic block.
4822
4823 2013-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4824
4825 * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
4826 * config/aarch64/aarch64-cores.def (cortex-a53):
4827 Use cortexa53 tuning struct.
4828
4829 2013-11-25 Andrew Macleod <amacleod@redhat.com>
4830
4831 PR bootstrap/59260
4832 * fold-const.c: Include hash-table.h.
4833
4834 2013-11-25 Marek Polacek <polacek@redhat.com>
4835
4836 PR sanitizer/59258
4837 * ubsan.c (ubsan_create_data): Increase the size of the fields array.
4838
4839 2013-11-25 Richard Biener <rguenther@suse.de>
4840
4841 * tree-dfa.c: Remove unused convert.h include.
4842
4843 2013-11-25 Terry Guo <terry.guo@arm.com>
4844
4845 * doc/invoke.texi (-mslow-flash-data): Document new option.
4846 * config/arm/arm.opt (mslow-flash-data): New option.
4847 * config/arm/arm-protos.h (arm_max_const_double_inline_cost):
4848 Declare it.
4849 * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
4850 are disabled.
4851 (arm_disable_literal_pool): Declare it.
4852 * config/arm/arm.c (arm_disable_literal_pool): New variable.
4853 (arm_option_override): Handle new option.
4854 (thumb2_legitimate_address_p): Don't allow symbol references when
4855 literal pools are disabled.
4856 (arm_max_const_double_inline_cost): New function.
4857 * config/arm/arm.md (types.md): Include it before ...
4858 (use_literal_pool): New attribute.
4859 (enabled): Use new attribute.
4860 (split pattern): Replace symbol+offset with MOVW/MOVT.
4861
4862 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
4863
4864 PR bootstrap/59279
4865 Revert previous commit.
4866
4867 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
4868
4869 * jump.c (reset_insn_reg_label_operand_notes): New function,
4870 split out from ...
4871 (init_label_info): ... here. Reset LABEL_NUSES in cfglayout mode.
4872 * cfgcleanup.c (delete_dead_jump_tables_between): New function,
4873 split out from ...
4874 (delete_dead_jumptables): ... here. Handle cfglayout mode.
4875 (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
4876 expensive CFG cleanup is called for.
4877 * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
4878 (cfg_layout_finalize): Delete dead jump tables before re-building
4879 the insns chain.
4880 * ira.c (ira): Rebuild jump labels *after* deleting unreachable
4881 basic blocks, not before.
4882 * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
4883
4884 * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
4885 insns chain of a scheduling extended basic block, they cannot appear
4886 there in cfglayout mode.
4887
4888 2013-11-24 Tobias Burnus <burnus@net-b.de>
4889
4890 * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
4891
4892 2013-11-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4893
4894 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
4895 for little endian.
4896
4897 2013-11-24 H.J. Lu <hongjiu.lu@intel.com>
4898
4899 * graphite-sese-to-poly.c: Don't include extra "expr.h".
4900
4901 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
4902
4903 * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
4904
4905 2013-11-23 David Edelson <dje.gcc@gmail.com>
4906 Andrew Dixie <andrewd@gentrack.com>
4907
4908 PR target/33704
4909 * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
4910 (COLLECT_SHARED_FINI_FUNC): Define.
4911
4912 * collect2.c (aix_shared_initname): Declare.
4913 (aix_shared_fininame): Declare.
4914 (symkind): Add SYM_AIXI and SYM_AIXD.
4915 (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
4916 (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
4917 (aixlazy_flag): Parse.
4918 (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
4919 (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
4920
4921 2013-11-23 David Edelsohn <dje.gcc@gmail.com>
4922
4923 * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
4924 (rs6000_xcoff_select_section): Place decls with stricter alignment
4925 into named sections.
4926 (rs6000_xcoff_unique_section): Allow unique sections for
4927 uninitialized data with strict alignment.
4928
4929 2013-11-23 Jakub Jelinek <jakub@redhat.com>
4930
4931 PR tree-optimization/59154
4932 * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
4933 rhs1 of a cast and new_op is invariant, fold_convert it.
4934 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
4935 simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
4936
4937 2013-11-23 Uros Bizjak <ubizjak@gmail.com>
4938
4939 PR target/56788
4940 * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
4941 Declare as MULTI_ARG_1_SF instruction.
4942 <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
4943 * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
4944 from *xop_vmfrcz_<mode>.
4945 * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
4946 to merge scalar result with __A.
4947 (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
4948 result with __A.
4949
4950 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
4951
4952 * gimplify.h (recalculate_side_effects): Delete.
4953 * gimplify.c (recalculate_side_effects): Make static and add comment.
4954
4955 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
4956
4957 * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
4958 for the destination of a define_peephole2. Likewise register_operand
4959 rather than arith_reg_operand. Remove constraints from
4960 define_peephole2s.
4961
4962 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
4963
4964 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
4965 Delete.
4966 (mn10300_store_multiple_operation_p): Declare.
4967 * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
4968 Rename to...
4969 (mn10300_store_multiple_operation_p): ...this and remove mode
4970 argument.
4971 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
4972 Define.
4973
4974 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
4975
4976 * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
4977 (pop_multiple_operation): Delete.
4978 (analyze_push_multiple_operation): Declare.
4979 (analyze_pop_multiple_operation): Declare.
4980 * config/bfin/bfin.c (push_multiple_operation): Rename to...
4981 (analyze_push_multiple_operation): ...this and remove mode argument.
4982 (pop_multiple_operation): Rename to...
4983 (analyze_pop_multiple_operation): ...this and remove mode argument.
4984 * config/bfin/predicates.md (push_multiple_operation): Define.
4985 (pop_multiple_operation): Likewise.
4986
4987 2013-11-23 Alan Modra <amodra@gmail.com>
4988
4989 * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
4990
4991 2013-11-22 Jakub Jelinek <jakub@redhat.com>
4992
4993 PR sanitizer/59061
4994 * common.opt (static-liblsan): Add.
4995 * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
4996 Define.
4997 * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK. Renumber
4998 SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
4999 SANITIZE_RETURN.
5000 * opts.c (common_handle_option): Handle -fsanitize=leak.
5001 * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
5002 (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
5003 (LIBUBSAN_EARLY_SPEC): Remove.
5004 (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
5005 (SANITIZER_SPEC): Add -fsanitize=leak handling.
5006 (sanitize_spec_function): Handle %sanitize(leak).
5007 * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
5008
5009 2013-11-22 Aldy Hernandez <aldyh@redhat.com>
5010 Jakub Jelinek <jakub@redhat.com>
5011
5012 * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
5013 * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
5014 (ipa_get_vector_of_formal_parm_types): ... this. No longer static.
5015 (ipa_modify_formal_parameters): Adjust caller. Remove
5016 synth_parm_prefix argument. Use operator enum instead of bit fields.
5017 Add assert for properly handling vector of references. Handle
5018 creating brand new parameters.
5019 (ipa_modify_call_arguments): Use operator enum instead of bit
5020 fields.
5021 (ipa_combine_adjustments): Same. Assert that IPA_PARM_OP_NEW is not
5022 used.
5023 (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
5024 New functions.
5025 (ipa_dump_param_adjustments): Rename reduction to new_decl.
5026 Use operator enum instead of bit fields.
5027 * ipa-prop.h (enum ipa_parm_op): New.
5028 (struct ipa_parm_adjustment): New field op. Rename reduction
5029 to new_decl, new_arg_prefix to arg_prefix and remove remove_param
5030 and copy_param.
5031 (ipa_modify_formal_parameters): Remove last argument.
5032 (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
5033 ipa_get_adjustment_candidate): New prototypes.
5034 * tree-sra.c (turn_representatives_into_adjustments): Use operator
5035 enum. Set arg_prefix.
5036 (get_adjustment_for_base): Use operator enum.
5037 (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
5038 ipa-prop.c.
5039 (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
5040 (ipa_sra_modify_function_body): Same. No longer static.
5041 (sra_ipa_reset_debug_stmts): Use operator enum.
5042 (modify_function): Do not pass prefix argument.
5043
5044 2013-11-22 Jakub Jelinek <jakub@redhat.com>
5045
5046 * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
5047 (ubsan_pass): Ignore clobber stmts.
5048
5049 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
5050 * opts.c (common_handle_option): Add -fsanitize=return.
5051 * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
5052 or it into SANITIZE_UNDEFINED.
5053
5054 * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
5055 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
5056 * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
5057 Don't instrument accesses to VAR_DECLs which are known to fit
5058 into their bounds and the vars are known to have shadow bytes
5059 indicating allowed access.
5060 (asan_dynamic_init_call): New function.
5061 (asan_add_global): If vnode->dynamically_initialized,
5062 set __has_dynamic_init to 1 instead of 0.
5063 (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
5064 * asan.h (asan_dynamic_init_call): New prototype.
5065 * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
5066
5067 2013-11-22 Martin Jambor <mjambor@suse.cz>
5068
5069 PR rtl-optimization/10474
5070 * ira.c (interesting_dest_for_shprep_1): New function.
5071 (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
5072 also check parallels.
5073
5074 2013-11-22 Jeff Law <law@redhat.com>
5075
5076 * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
5077 NULL for RHS, which we used to invalidate equivalences.
5078 (record_temporary_equivalences_from_phis): New bitmap arguments
5079 and a boolean indicating if we have passed a backedge. If we
5080 have passed a backedge, then set the appropriate bit in the
5081 bitmaps for the SRC & DEST of PHIs creating equivalences.
5082 (invalidate_equivalences, dummy_simplify): New functions.
5083 (cond_arg_set_in_b): Remove.
5084 (record_temporary_equivalences_from_stmts_at_dest): New bitmap
5085 arguments and a boolean indicating if we have passed a backedge.
5086 If we have passed a backedge, then perform invalidations as needed.
5087 (thread_around_empty_blocks): If we have seen a backedge, then
5088 use the dummy simplify routine.
5089 (thread_through_normal_block): Likewise. Pass bitmaps and
5090 backedge status to children. Do not pessimize so much when
5091 traversing backedges in the CFG.
5092 (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
5093 If we have seen a backedge, then use the dummy simplify routine.
5094 Do not pessimize so much when traversing backedges.
5095
5096 2013-11-22 Hans-Peter Nilsson <hp@axis.com>
5097
5098 * config/cris/cris.c (cris_atomic_align_for_mode): New function.
5099 (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
5100
5101 2013-11-22 Yuri Rumyantsev <ysrumyan@gmail.com>
5102
5103 * config/i386/i386.c (processor_alias_table): Enable PTA_AES,
5104 PTA_PCLMUL and PTA_RDRND for Silvermont.
5105 * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
5106 for Silvermont.
5107
5108 * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
5109
5110 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
5111
5112 * hooks.h (hook_uint_mode_0): Add Prototype.
5113 * hooks.c (hook_uint_mode_0): New default function.
5114 * target.def (atomic_align_for_mode): New target hook.
5115 * tree.c (build_atomic_base): Add alignment override parameter.
5116 (build_common_tree_nodes): Use atomic alignment override.
5117 * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
5118 * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
5119
5120 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
5121
5122 * gimple.h: Remove all includes.
5123 (recalculate_side_effects): Move prototype to gimplify.h.
5124 * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
5125 * gengtype.c (open_base_files): Add gimple.h include list.
5126 * gimplify.h (recalculate_side_effects): Relocate prototype here.
5127 * gimple.c: Adjust include list.
5128 (recalculate_side_effects): Move to gimplify.c.
5129 * gimplify.c: Adjust include list.
5130 (recalculate_side_effects): Relocate from gimple.c.
5131 * alias.c: Add required include files removed from gimple.h.
5132 * asan.c: Likewise.
5133 * builtins.c: Likewise.
5134 * calls.c: Likewise.
5135 * cfgexpand.c: Likewise.
5136 * cfgloop.c: Likewise.
5137 * cfgloopmanip.c: Likewise.
5138 * cgraphbuild.c: Likewise.
5139 * cgraph.c: Likewise.
5140 * cgraphclones.c: Likewise.
5141 * cgraphunit.c: Likewise.
5142 * cilk-common.c: Likewise.
5143 * data-streamer.c: Likewise.
5144 * data-streamer-in.c: Likewise.
5145 * data-streamer-out.c: Likewise.
5146 * dse.c: Likewise.
5147 * dwarf2out.c: Likewise.
5148 * emit-rtl.c: Likewise.
5149 * except.c: Likewise.
5150 * expr.c: Likewise.
5151 * fold-const.c: Likewise.
5152 * function.c: Likewise.
5153 * gimple-builder.c: Likewise.
5154 * gimple-expr.c: Likewise.
5155 * gimple-fold.c: Likewise.
5156 * gimple-iterator.c: Likewise.
5157 * gimple-low.c: Likewise.
5158 * gimple-pretty-print.c: Likewise.
5159 * gimple-ssa-isolate-paths.c: Likewise.
5160 * gimple-ssa-strength-reduction.c: Likewise.
5161 * gimple-streamer-in.c: Likewise.
5162 * gimple-streamer-out.c: Likewise.
5163 * gimple-walk.c: Likewise.
5164 * gimplify-me.c: Likewise.
5165 * graphite-blocking.c: Likewise.
5166 * graphite.c: Likewise.
5167 * graphite-clast-to-gimple.c: Likewise.
5168 * graphite-dependences.c: Likewise.
5169 * graphite-interchange.c: Likewise.
5170 * graphite-optimize-isl.c: Likewise.
5171 * graphite-poly.c: Likewise.
5172 * graphite-scop-detection.c: Likewise.
5173 * graphite-sese-to-poly.c: Likewise.
5174 * internal-fn.c: Likewise.
5175 * ipa.c: Likewise.
5176 * ipa-cp.c: Likewise.
5177 * ipa-devirt.c: Likewise.
5178 * ipa-inline-analysis.c: Likewise.
5179 * ipa-inline.c: Likewise.
5180 * ipa-profile.c: Likewise.
5181 * ipa-prop.c: Likewise.
5182 * ipa-pure-const.c: Likewise.
5183 * ipa-reference.c: Likewise.
5184 * ipa-split.c: Likewise.
5185 * ipa-utils.c: Likewise.
5186 * langhooks.c: Likewise.
5187 * lto-cgraph.c: Likewise.
5188 * lto-compress.c: Likewise.
5189 * lto-opts.c: Likewise.
5190 * lto-section-in.c: Likewise.
5191 * lto-section-out.c: Likewise.
5192 * lto-streamer.c: Likewise.
5193 * lto-streamer-in.c: Likewise.
5194 * lto-streamer-out.c: Likewise.
5195 * omp-low.c: Likewise.
5196 * opts-global.c: Likewise.
5197 * passes.c: Likewise.
5198 * predict.c: Likewise.
5199 * profile.c: Likewise.
5200 * sese.c: Likewise.
5201 * stmt.c: Likewise.
5202 * stor-layout.c: Likewise.
5203 * symtab.c: Likewise.
5204 * targhooks.c: Likewise.
5205 * toplev.c: Likewise.
5206 * tracer.c: Likewise.
5207 * trans-mem.c: Likewise.
5208 * tree-affine.c: Likewise.
5209 * tree.c: Likewise.
5210 * tree-call-cdce.c: Likewise.
5211 * tree-cfg.c: Likewise.
5212 * tree-cfgcleanup.c: Likewise.
5213 * tree-chrec.c: Likewise.
5214 * tree-complex.c: Likewise.
5215 * tree-data-ref.c: Likewise.
5216 * tree-dfa.c: Likewise.
5217 * tree-eh.c: Likewise.
5218 * tree-emutls.c: Likewise.
5219 * tree-if-conv.c: Likewise.
5220 * tree-inline.c: Likewise.
5221 * tree-into-ssa.c: Likewise.
5222 * tree-loop-distribution.c: Likewise.
5223 * tree-nested.c: Likewise.
5224 * tree-nrv.c: Likewise.
5225 * tree-object-size.c: Likewise.
5226 * tree-outof-ssa.c: Likewise.
5227 * tree-parloops.c: Likewise.
5228 * tree-phinodes.c: Likewise.
5229 * tree-predcom.c: Likewise.
5230 * tree-pretty-print.c: Likewise.
5231 * tree-profile.c: Likewise.
5232 * tree-scalar-evolution.c: Likewise.
5233 * tree-sra.c: Likewise.
5234 * tree-ssa-address.c: Likewise.
5235 * tree-ssa-alias.c: Likewise.
5236 * tree-ssa.c: Likewise.
5237 * tree-ssa-ccp.c: Likewise.
5238 * tree-ssa-coalesce.c: Likewise.
5239 * tree-ssa-copy.c: Likewise.
5240 * tree-ssa-copyrename.c: Likewise.
5241 * tree-ssa-dce.c: Likewise.
5242 * tree-ssa-dom.c: Likewise.
5243 * tree-ssa-dse.c: Likewise.
5244 * tree-ssa-forwprop.c: Likewise.
5245 * tree-ssa-ifcombine.c: Likewise.
5246 * tree-ssa-live.c: Likewise.
5247 * tree-ssa-loop.c: Likewise.
5248 * tree-ssa-loop-ch.c: Likewise.
5249 * tree-ssa-loop-im.c: Likewise.
5250 * tree-ssa-loop-ivcanon.c: Likewise.
5251 * tree-ssa-loop-ivopts.c: Likewise.
5252 * tree-ssa-loop-manip.c: Likewise.
5253 * tree-ssa-loop-niter.c: Likewise.
5254 * tree-ssa-loop-prefetch.c: Likewise.
5255 * tree-ssa-loop-unswitch.c: Likewise.
5256 * tree-ssa-math-opts.c: Likewise.
5257 * tree-ssanames.c: Likewise.
5258 * tree-ssa-operands.c: Likewise.
5259 * tree-ssa-phiopt.c: Likewise.
5260 * tree-ssa-phiprop.c: Likewise.
5261 * tree-ssa-pre.c: Likewise.
5262 * tree-ssa-propagate.c: Likewise.
5263 * tree-ssa-reassoc.c: Likewise.
5264 * tree-ssa-sccvn.c: Likewise.
5265 * tree-ssa-sink.c: Likewise.
5266 * tree-ssa-strlen.c: Likewise.
5267 * tree-ssa-structalias.c: Likewise.
5268 * tree-ssa-tail-merge.c: Likewise.
5269 * tree-ssa-ter.c: Likewise.
5270 * tree-ssa-threadedge.c: Likewise.
5271 * tree-ssa-threadupdate.c: Likewise.
5272 * tree-ssa-uncprop.c: Likewise.
5273 * tree-ssa-uninit.c: Likewise.
5274 * tree-stdarg.c: Likewise.
5275 * tree-streamer.c: Likewise.
5276 * tree-streamer-in.c: Likewise.
5277 * tree-streamer-out.c: Likewise.
5278 * tree-switch-conversion.c: Likewise.
5279 * tree-tailcall.c: Likewise.
5280 * tree-vect-data-refs.c: Likewise.
5281 * tree-vect-generic.c: Likewise.
5282 * tree-vect-loop.c: Likewise.
5283 * tree-vect-loop-manip.c: Likewise.
5284 * tree-vectorizer.c: Likewise.
5285 * tree-vect-patterns.c: Likewise.
5286 * tree-vect-slp.c: Likewise.
5287 * tree-vect-stmts.c: Likewise.
5288 * tree-vrp.c: Likewise.
5289 * tsan.c: Likewise.
5290 * ubsan.c: Likewise.
5291 * value-prof.c: Likewise.
5292 * varpool.c: Likewise.
5293 * var-tracking.c: Likewise.
5294 * vtable-verify.c: Likewise.
5295 * config/darwin.c: Likewise.
5296 * config/aarch64/aarch64-builtins.c: Likewise.
5297 * config/aarch64/aarch64.c: Likewise.
5298 * config/alpha/alpha.c: Likewise.
5299 * config/i386/i386.c: Likewise.
5300 * config/i386/winnt.c: Likewise.
5301 * config/ia64/ia64.c: Likewise.
5302 * config/m32c/m32c.c: Likewise.
5303 * config/mep/mep.c: Likewise.
5304 * config/mips/mips.c: Likewise.
5305 * config/rs6000/rs6000.c: Likewise.
5306 * config/s390/s390.c: Likewise.
5307 * config/sh/sh.c: Likewise.
5308 * config/sparc/sparc.c: Likewise.
5309 * config/spu/spu.c: Likewise.
5310 * config/stormy16/stormy16.c: Likewise.
5311 * config/tilegx/tilegx.c: Likewise.
5312 * config/tilepro/tilepro.c: Likewise.
5313 * config/xtensa/xtensa.c: Likewise.
5314
5315 2013-11-22 Richard Earnshaw <rearnsha@arm.com>
5316
5317 PR target/59216
5318 * arm.md (negdi_extendsidi): Fix invalid split.
5319
5320 2013-11-22 Alex Velenko <Alex.Velenko@arm.com>
5321
5322 * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
5323 (vmov_n_f64): Likewise.
5324 (vmov_n_p8): Likewise.
5325 (vmov_n_p16): Likewise.
5326 (vmov_n_s8): Likewise.
5327 (vmov_n_s16): Likewise.
5328 (vmov_n_s32): Likewise.
5329 (vmov_n_s64): Likewise.
5330 (vmov_n_u8): Likewise.
5331 (vmov_n_u16): Likewise.
5332 (vmov_n_u32): Likewise.
5333 (vmov_n_u64): Likewise.
5334 (vmovq_n_f32): Likewise.
5335 (vmovq_n_f64): Likewise.
5336 (vmovq_n_p8): Likewise.
5337 (vmovq_n_p16): Likewise.
5338 (vmovq_n_s8): Likewise.
5339 (vmovq_n_s16): Likewise.
5340 (vmovq_n_s32): Likewise.
5341 (vmovq_n_s64): Likewise.
5342 (vmovq_n_u8): Likewise.
5343 (vmovq_n_u16): Likewise.
5344 (vmovq_n_u32): Likewise.
5345 (vmovq_n_u64): Likewise.
5346
5347 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
5348
5349 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
5350 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
5351 (reduc_<sur>plus_<mode>): Factorize V2DI into this.
5352 (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
5353 and also change to float UNSPEC.
5354 (reduc_maxmin_uns>_<mode>): Remove V2DI.
5355 * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
5356 vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
5357 result access for big-endian.
5358 (__LANE0): New macro used to fix up lane access of 'across-lanes'
5359 intrinsics for big-endian.
5360 * config/aarch64/iterators.md (VDQV): Add V2DI.
5361 (VDQV_S): New.
5362 (vp): New mode attribute.
5363
5364 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
5365
5366 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
5367 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
5368 big-endian.
5369
5370 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
5371
5372 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
5373 for big-endian element order.
5374 (aarch64_simd_vec_setv2di): Likewise.
5375 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
5376 *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
5377 (vec_extract): Expand using aarch64_get_lane.
5378 * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
5379
5380 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
5381
5382 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
5383 and stores to be ABI compliant.
5384
5385 2013-11-22 David Malcolm <dmalcolm@redhat.com>
5386
5387 * input.h (input_line): Remove.
5388 (input_filename): Likewise.
5389 (in_system_header): Likewise.
5390 * tree.h (EXPR_LOC_OR_HERE): Remove.
5391 * config/bfin/bfin.c (output_file_start): Remove use of
5392 input_filename macro.
5393 * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
5394 * gimplify.c (internal_get_tmp_var): Likewise.
5395 EXPR_LOC_OR_HERE macro.
5396 (shortcut_cond_expr): Likewise.
5397 * tree-diagnostic.c (diagnostic_report_current_function): Remove
5398 use of input_filename macro.
5399 * tree.c (get_file_function_name): Likewise.
5400
5401 2013-11-22 Kenneth Zadeck <zadeck@naturalbridge.com>
5402
5403 * store-layout.c (place-field): Fix hwi test and accessor mismatch.
5404
5405 2013-11-22 Jakub Jelinek <jakub@redhat.com>
5406
5407 * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
5408 (same sized) elements even if the type of the CONSTRUCTOR has
5409 vector mode and target is a REG.
5410
5411 2013-11-22 Richard Biener <rguenther@suse.de>
5412
5413 Revert
5414 2013-11-21 Richard Biener <rguenther@suse.de>
5415
5416 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
5417 nb_iterations_upper_bound by one.
5418
5419 2013-11-22 H.J. Lu <hongjiu.lu@intel.com>
5420
5421 * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
5422 for Silvermont.
5423
5424 * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
5425 core-avx-i, core-avx2 and slm.
5426
5427 2013-11-22 Eric Botcazou <ebotcazou@adacore.com>
5428
5429 * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
5430
5431 2013-11-22 Richard Sandiford <rdsandiford@googlemail.com>
5432
5433 * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
5434 (stzx_24_<mode>): Likewise mra_operand.
5435
5436 2013-11-22 Jeff Law <law@redhat.com>
5437
5438 * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
5439 (thread_block_1): Do not cancel jump threads which go from
5440 inside a loop, through the header, then back inside the loop.
5441 (bb_ends_with_multiway_branch): New function.
5442 (thread_through_all_blocks): Handle threading cases which start
5443 in a loop through the loop header to a point in the loop.
5444
5445 * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
5446 jump thread path properly.
5447
5448 2013-11-22 Trevor Saunders <tsaunders@mozilla.com>
5449
5450 * vec.h (auto_vec): New class.
5451 * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
5452 function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
5453 ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
5454 tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
5455 tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
5456 tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
5457 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
5458 tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
5459 appropriate instead of vec for local variables.
5460
5461 2013-11-21 Teresa Johnson <tejohnson@google.com>
5462
5463 PR target/59233
5464 * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
5465 not understood by old_insns_match_p.
5466
5467 2013-11-21 Bill Schmidt <wschmidt@vnet.ibm.com>
5468
5469 * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
5470 little endian change.
5471 (vec_pack_sfix_trunc_v2df): Likewise.
5472 (vec_pack_ufix_trunc_v2df): Likewise.
5473 * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
5474 double checking of endianness.
5475
5476 2013-11-22 Jakub Jelinek <jakub@redhat.com>
5477
5478 * tree-vect-generic.c (optimize_vector_constructor): New function.
5479 (expand_vector_operations_1): Call it.
5480
5481 2013-11-21 Uros Bizjak <ubizjak@gmail.com>
5482
5483 * config/i386/i386.c (ix86_expand_special_args_builtin): Use
5484 ix86_zero_extend_to_Pmode where appropriate.
5485 (ix86_expand_builtin): Ditto.
5486
5487 2013-11-21 Cary Coutant <ccoutant@google.com>
5488
5489 * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
5490 (add_linkage_name): Don't add linkage name for -g1.
5491 (decls_for_scope): Process subblocks for -g1.
5492 (dwarf2out_source_line): Output line tables for -g1.
5493 (dwarf2out_finish): Likewise.
5494 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
5495 unused scopes for -g1.
5496 * opts.c (common_handle_option): Handle -g same as -g2.
5497 * doc/invoke.texi: Update description for -g1.
5498
5499 2013-11-21 Peter Bergner <bergner@vnet.ibm.com>
5500
5501 * doc/extend.texi: Document htm builtins.
5502
5503 2013-11-21 Jeff Law <law@redhat.com>
5504
5505 PR tree-optimization/59221
5506 * tree-ssa-threadedge.c (thread_across_edge): Properly manage
5507 temporary equivalences when threading through joiner blocks.
5508
5509 2013-11-21 Joseph Myers <joseph@codesourcery.com>
5510
5511 PR rtl-optimization/55950
5512 * real.c (real_sqrt): Remove function.
5513 * real.h (real_sqrt): Remove prototype.
5514 * simplify-rtx.c (simplify_const_unary_operation): Do not fold
5515 SQRT using real_sqrt.
5516
5517 2013-11-21 Richard Biener <rguenther@suse.de>
5518
5519 PR tree-optimization/59058
5520 * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
5521 * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
5522 * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
5523 (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
5524 (NITERS_KNOWN_P): Fold into ...
5525 (LOOP_VINFO_NITERS_KNOWN_P): ... this.
5526 (LOOP_VINFO_PEELING_FOR_NITER): Add.
5527 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
5528 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
5529 (vect_do_peeling_for_alignment): Re-use precomputed niter
5530 instead of re-emitting it.
5531 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5532 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
5533 * tree-vect-loop.c (vect_get_loop_niters): Use
5534 number_of_latch_executions.
5535 (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
5536 (vect_analyze_loop_form): Simplify.
5537 (vect_analyze_loop_operations): Move epilogue peeling code ...
5538 (vect_analyze_loop_2): ... here and adjust it to compute
5539 LOOP_VINFO_PEELING_FOR_NITER.
5540 (vect_estimate_min_profitable_iters): Use
5541 LOOP_VINFO_PEELING_FOR_ALIGNMENT.
5542 (vect_build_loop_niters): Emit on the preheader.
5543 (vect_generate_tmps_on_preheader): Likewise.
5544 (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
5545 of recomputing it. Adjust.
5546
5547 2013-11-21 Richard Biener <rguenther@suse.de>
5548
5549 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
5550 LOC_LINE): Remove wrappers and fix all users.
5551 (struct _loop_vec_info): Remove loop_line_number member.
5552 (LOOP_VINFO_LOC): Remove.
5553 * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
5554 tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
5555 and LOC_LINE.
5556
5557 2013-11-21 Richard Biener <rguenther@suse.de>
5558
5559 * tree-ssa-forwprop.c (simplify_vce): New function.
5560 (ssa_forward_propagate_and_combine): Call it.
5561
5562 2013-11-21 Richard Biener <rguenther@suse.de>
5563
5564 * tree-vect-loop-manip.c (vect_build_loop_niters,
5565 vect_generate_tmps_on_preheader): Move ...
5566 * tree-vect-loop.c (vect_build_loop_niters,
5567 vect_generate_tmps_on_preheader): ... here and simplify.
5568 (vect_transform_loop): Call them here and pass down results
5569 to consumers.
5570 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
5571 Get niter variables from caller.
5572 (vect_do_peeling_for_alignment): Likewise.
5573 * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
5574 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
5575 Adjust prototypes.
5576
5577 2013-11-21 Richard Biener <rguenther@suse.de>
5578
5579 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
5580 nb_iterations_upper_bound by one.
5581
5582 2013-11-21 Richard Biener <rguenther@suse.de>
5583
5584 PR tree-optimization/59058
5585 * tree-loop-distribution.c (struct partition_s): Add plus_one member.
5586 (build_size_arg_loc): Apply niter adjustment here.
5587 (generate_memset_builtin): Adjust.
5588 (generate_memcpy_builtin): Likewise.
5589 (classify_partition): Do not use number_of_exit_cond_executions
5590 but record whether niter needs to be adjusted.
5591
5592 2013-11-21 Eric Botcazou <ebotcazou@adacore.com>
5593
5594 * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
5595 could throw.
5596
5597 2013-11-21 Oleg Endo <olegendo@gcc.gnu.org>
5598
5599 PR target/53976
5600 * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
5601 * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
5602 * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
5603 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
5604 sh_optimize_sett_clrt pass.o to extra_objs.
5605
5606 2013-11-20 David Malcolm <dmalcolm@redhat.com>
5607
5608 * cfg.c (dump_edge_info): Remove redundant comment.
5609 * cfgcleanup.c (outgoing_edges_match): Reword reference to
5610 EXIT_BLOCK_PTR in comment.
5611 (try_optimize_cfg): Likewise.
5612 * cfgrtl.c (last_bb_in_partition): Likewise.
5613 * cgraph.c (cgraph_node_cannot_return): Likewise.
5614 * function.c (thread_prologue_and_epilogue_insns): Likewise.
5615 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
5616 * ipa-split.c (consider_split): Likewise.
5617 * profile.c (find_spanning_tree): Likewise.
5618 * sched-int.h (common_sched_info_def.add_block): Likewise.
5619 * dominance.c (calc_dfs_tree_nonrec): Reword references in
5620 comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
5621 * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
5622 in comments to now removed ENTRY_BLOCK_PTR macro.
5623 (tree_forwarder_block_p): Reword reference in comment to
5624 EXIT_BLOCK_PTR.
5625 * tree-inline.c (copy_cfg_body): Reword references in comments to
5626 now removed ENTRY_BLOCK_PTR macro.
5627 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
5628 * tree-scalar-evolution.h ( block_before_loop): Likewise. Add
5629 a comma to the comment to clarify the meaning.
5630
5631 2013-11-20 Andrew MacLeod <amacleod@redhat.com>
5632
5633 * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
5634 Move to gimplify.c.
5635 (free_gimplify_stack): Add prototype.
5636 * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
5637 (struct gimplify_ctx): Relocate here.
5638 (gimplify_ctxp): Make static.
5639 (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New. Manage a
5640 list of struct gimplify_ctx.
5641 (push_gimplify_context): Add default parameters and allocate a struct
5642 from the pool.
5643 (pop_gimplify_context): Free a struct back to the pool.
5644 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
5645 gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
5646 use a local 'struct gimplify_ctx'.
5647 * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
5648 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
5649 Likewise.
5650 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
5651 lower_omp_ordered, lower_omp_critical, lower_omp_for,
5652 create_task_copyfn, lower_omp_taskreg, lower_omp_target,
5653 lower_omp_teams, execute_lower_omp): Likewise.
5654 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
5655 * tree-inline.c (optimize_inline_calls): Likewise.
5656
5657 2013-11-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5658
5659 * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
5660 (vsx_extract_<mode>): Likewise.
5661 (*vsx_extract_<mode>_one_le): New LE variant on
5662 *vsx_extract_<mode>_zero.
5663 (vsx_extract_v4sf): Adjust for little endian.
5664
5665 2013-11-20 Vladimir Makarov <vmakarov@redhat.com>
5666
5667 PR rtl-optimization/59133
5668 * lra.c (expand_reg_data): Add new argument. Set up ALL_REGS for
5669 new pseudos.
5670 (lra_create_new_reg_with_unique_value): Pass new argument value.
5671 (lra_emit_add, lra_emit_move): Ditto.
5672 * lra-constraints.c (in_class_p): Add check for move for a new insn.
5673 (change_class): Rename to lra_change_class. Move to lra-int.h.
5674 (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
5675 change_class.
5676 (process_addr_reg, process_addr): Ditto.
5677 (curr_insn_transform): Ditto. Add check on old pseudo for
5678 optional reload.
5679 * lra-int.h (lra_get_regno_hard_regno): Move below.
5680 (lra_change_class): Renamed change_class from lra.c.
5681
5682 2013-11-20 David Malcolm <dmalcolm@redhat.com>
5683
5684 * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
5685 the children of a NULL pointer.
5686
5687 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
5688
5689 * lra.c (lra): Set lra_in_progress before check_rtl call.
5690 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
5691 adding clobber regs when LRA is running.
5692
5693 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
5694
5695 * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
5696 restriction for ISA_MIPS32R2.
5697 (ISA_HAS_LXC1_SXC1): New macro.
5698 (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
5699 (ISA_HAS_NMADD4_NMSUB4): Likewise.
5700 (ISA_HAS_FP_RECIP_RSQRT): Likewise.
5701 (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
5702 * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
5703 ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
5704 (*<ANYF:storex>_<P:mode>): Likewise.
5705
5706 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
5707
5708 * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
5709 * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
5710 ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
5711 * config/mips/mips.md (recip_condition): Remove mode attribute.
5712 (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
5713 <recip_condition>.
5714 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
5715
5716 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
5717
5718 PR target/59207
5719 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
5720 Make sure neg2_ovf is set before being used.
5721
5722 2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
5723
5724 * plugin.def: Add comment about register_callback and
5725 invoke_plugin_callbacks_full.
5726
5727 * plugin.c (register_callback, invoke_plugin_callbacks_full):
5728 Handle PLUGIN_INCLUDE_FILE event.
5729
5730 2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5731
5732 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
5733 allow subregs of TDmode in FPRs of smaller size in little-endian.
5734 (rs6000_split_multireg_move): When splitting an access to TDmode
5735 in FPRs, do not use simplify_gen_subreg.
5736
5737 2013-11-20 Joseph Myers <joseph@codesourcery.com>
5738
5739 PR middle-end/21718
5740 * real.c: Remove comment about decimal string conversion and
5741 rounding errors.
5742 (real_from_string): Use MPFR to convert nonzero decimal constant
5743 to REAL_VALUE_TYPE.
5744
5745 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
5746
5747 * config/arm/arm.c (arm_dwarf_register_span): Take into account the
5748 endianness of the D registers for the legacy encodings.
5749
5750 2013-11-20 Richard Earnshaw <rearnsha@arm.com>
5751
5752 PR rtl-optimization/54300
5753 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
5754 outputs in a single-set are killed from the value chains.
5755
5756 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
5757
5758 * cgraph.h (varpool_node): Add need_bounds_init field.
5759 * lto-cgraph.c (lto_output_varpool_node): Output
5760 need_bounds_init value.
5761 (input_varpool_node): Read need_bounds_init value.
5762 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
5763
5764 2013-11-20 Jan Hubicka <jh@suse.cz>
5765
5766 * opts.c (finish_options): Imply -ffat-lto-objects with
5767 -fno-use-linker-plugin.
5768 * common.opt (fuse-linker-plugin): Add var.
5769
5770 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
5771
5772 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
5773 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
5774 (gen_type_die_with_usage): Skip pointer bounds.
5775 (dwarf2out_global_decl): Likewise.
5776
5777 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
5778
5779 * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
5780 from all insns.
5781
5782 2013-11-20 Yuri Rumyantsev <ysrumyan@gmail.com>
5783
5784 PR target/57756
5785 * config/i386/i386.c (ix86_option_override_internal): Add missed
5786 argument prefix for 'ix86_fpmath'.
5787 * config/i386/ssemath.h: Add missed definition of
5788 TARGET_FPMATH_DEFAULT_P macros.
5789
5790 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
5791 Mike Stump <mikestump@comcast.net>
5792 Richard Sandiford <rdsandiford@googlemail.com>
5793
5794 * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
5795 instead of TREE_INT_CST_LOW, in cases where there is a protecting
5796 tree_fits_shwi_p or tree_fits_uhwi_p.
5797 * builtins.c (fold_builtin_powi): Likewise.
5798 * config/epiphany/epiphany.c (epiphany_special_round_type_align):
5799 Likewise.
5800 * dbxout.c (dbxout_symbol): Likewise.
5801 * expr.c (expand_expr_real_1): Likewise.
5802 * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
5803 (fold_binary_loc): Likewise.
5804 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
5805 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
5806 * omp-low.c (lower_omp_for_lastprivate): Likewise.
5807 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
5808 * stor-layout.c (compute_record_mode): Likewise.
5809 * tree-cfg.c (verify_expr): Likewise.
5810 * tree-dfa.c (get_ref_base_and_extent): Likewise.
5811 * tree-pretty-print.c (dump_array_domain): Likewise.
5812 * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
5813 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
5814 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
5815 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
5816 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
5817 * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
5818 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
5819 (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
5820 (vn_reference_lookup_3, simplify_binary_expression): Likewise.
5821 * tree-ssa-structalias.c (bitpos_of_field): Likewise.
5822 (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
5823 (create_variable_info_for_1): Likewise.
5824 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
5825 (vect_verify_datarefs_alignment): Likewise.
5826 (vect_analyze_data_ref_accesses): Likewise.
5827 (vect_prune_runtime_alias_test_list): Likewise.
5828 * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
5829
5830 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
5831
5832 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
5833 overflow. Use tree_to_shwi.
5834
5835 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
5836
5837 * fold-const.c (fold_binary_loc): Use unsigned rather than signed
5838 HOST_WIDE_INTs when folding (x >> c) << c.
5839
5840 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5841 Dominik Vogt <vogt@linux.vnet.ibm.com>
5842
5843 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
5844 int comparisons with an out of range condition code.
5845 (s390_optimize_nonescaping_tx): Skip empty BBs.
5846 Generate the new tbegin RTX when removing the FPR clobbers (with
5847 two SETs).
5848 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
5849 result before doing the retry calculations.
5850 (s390_init_builtins): Make tbegin "returns_twice" and tabort
5851 "noreturn".
5852 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
5853 the TDB setting part of an tbegin.
5854 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
5855 ("tx_assist"): Set unused argument to an immediate zero instead of
5856 loading zero into a GPR and pass it as argument.
5857 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
5858 Remove inline and related attributes.
5859 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
5860 (__TM_is_illegal, __TM_is_footprint_exceeded)
5861 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
5862
5863 2013-11-20 Richard Biener <rguenther@suse.de>
5864
5865 PR lto/59035
5866 * lto-opts.c (lto_write_options): Write defaults only if
5867 they were not explicitely specified. Also write
5868 -ffp-contract default.
5869 * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
5870 conservatively.
5871 (run_gcc): Pass through -ffp-contract.
5872
5873 2013-11-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5874
5875 * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
5876
5877 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
5878
5879 * config/aarch64/aarch64-builtins.c
5880 (aarch64_simd_itype): Remove.
5881 (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
5882 (VAR1): Use qualifiers.
5883 (aarch64_build_scalar_type): New.
5884 (aarch64_build_vector_type): Likewise.
5885 (aarch64_build_type): Likewise.
5886 (aarch64_init_simd_builtins): Refactor, remove special cases,
5887 consolidate main loop.
5888 (aarch64_simd_expand_args): Likewise.
5889
5890 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
5891
5892 PR c/53001
5893 * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
5894
5895 2013-11-19 Miro Kropacek <miro.kropacek@gmail.com>
5896
5897 * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
5898
5899 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5900
5901 * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
5902 to "vec<>" instances.
5903 (build_pretty_printer): Register the vec<>* prettyprinter.
5904
5905 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5906
5907 * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
5908 (GdbSubprinter.handles_type): New.
5909 (GdbSubprinterTypeList): New subclass of GdbSubprinter.
5910 (GdbSubprinterRegex): New subclass of GdbSubprinter.
5911 (GdbPrettyPrinters.add_printer): Remove in favor of...
5912 (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
5913 (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
5914 (GdbPrettyPrinters.__call__): Update search for subprinter
5915 to use handles_type method.
5916 (build_pretty_printer): Update registration of subprinters to
5917 use the new API above, supporting multiple spelling of each type,
5918 and allowing for future regex-based subprinters.
5919
5920 2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5921
5922 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
5923 V16QI vector splat case for little endian.
5924
5925 2013-11-19 Jeff Law <law@redhat.com>
5926
5927 * tree-ssa-threadedge.c (thread_across_edge): After threading
5928 through a joiner, allow threading a normal block requiring duplication.
5929
5930 * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
5931 jump threading requests that would muck up the loop structures.
5932
5933 * tree-ssa-threadupdate.c: Fix trailing whitespace.
5934 * tree-ssa-threadupdate.h: Likewise.
5935
5936 2013-11-19 Mike Stump <mikestump@comcast.net>
5937
5938 * gdbinit.in: Add pmz to print out mpz values.
5939
5940 2013-11-20 Jan Hubicka <jh@suse.cz>
5941
5942 * common.opt (ffat-lto-objects): Disable by default.
5943 * doc/invoke.texi (fat-lto-objects): Update documentation.
5944 * opts.c: Enable fat-lto-objects on lto plugin disable setups.
5945
5946 2013-11-19 Martin Jambor <mjambor@suse.cz>
5947
5948 PR rtl-optimization/59099
5949 * ira.c (find_moveable_pseudos): Put back various analyses from ira()
5950 here.
5951 (ira): Move init_reg_equiv and call to
5952 split_live_ranges_for_shrink_wrap up, remove analyses around call
5953 to find_moveable_pseudos.
5954
5955 2013-11-20 Alan Modra <amodra@gmail.com>
5956
5957 * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
5958 * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
5959 to strict alignment on older processors when little-endian.
5960 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
5961 for ELFv2.
5962
5963 2013-11-19 Teresa Johnson <tejohnson@google.com>
5964
5965 * common/config/i386/i386-common.c: Enable
5966 -freorder-blocks-and-partition at -O2 and up for x86.
5967 * doc/invoke.texi: Update -freorder-blocks-and-partition default.
5968 * opts.c (finish_options): Only warn if
5969 -freorder-blocks-and-partition was set on command line.
5970
5971 2013-11-19 Sriraman Tallam <tmsriram@google.com>
5972
5973 * final.c (final_scan_insn): Emit a label for the split
5974 cold function part. Label name is formed by suffixing
5975 the original function name with "cold".
5976
5977 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5978
5979 * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
5980 (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
5981 (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
5982 (EXIT_BLOCK_PTR_FOR_FN): ...this.
5983 (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
5984 cfun be explicit.
5985 (EXIT_BLOCK_PTR): Likewise.
5986 (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
5987 (FOR_ALL_BB_FN): Update for renaming of
5988 "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
5989
5990 * cfg.c (init_flow): Likewise.
5991 (check_bb_profile): Likewise.
5992 * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
5993 * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
5994 * cfghooks.c (account_profile_record): Likewise.
5995 * cfgloop.c (init_loops_structure): Likewise.
5996 * cgraphbuild.c (record_eh_tables): Likewise.
5997 (compute_call_stmt_bb_frequency): Likewise.
5998 * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
5999 * lto-streamer-in.c (input_cfg): Likewise.
6000 * predict.c (maybe_hot_frequency_p): Likewise.
6001 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
6002 * tree-inline.c (initialize_cfun): Likewise.
6003 (copy_cfg_body): Likewise.
6004 (copy_body): Likewise.
6005 (tree_function_versioning): Likewise.
6006
6007 * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
6008 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6009 (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
6010 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
6011 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6012 (connect_traces): Likewise.
6013 (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
6014 (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
6015 (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
6016 macro.
6017 (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
6018 EXIT_BLOCK_PTR.
6019 (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
6020 (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
6021 (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
6022 (rotate_loop): Likewise.
6023 * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
6024 * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
6025 EXIT_BLOCK_PTR.
6026 (alloc_aux_for_edges): Likewise.
6027 (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
6028 (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
6029 EXIT_BLOCK_PTR.
6030 (compact_blocks): Likewise.
6031 (clear_edges): Likewise.
6032 * cfganal.c (single_pred_before_succ_order): Remove usage of
6033 ENTRY_BLOCK_PTR macro.
6034 (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
6035 (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
6036 (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
6037 (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
6038 (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
6039 EXIT_BLOCK_PTR.
6040 (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
6041 (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
6042 EXIT_BLOCK_PTR.
6043 (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
6044 (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
6045 (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
6046 (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6047 (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
6048 (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
6049 EXIT_BLOCK_PTR.
6050 (print_edge_list): Likewise.
6051 (create_edge_list): Likewise.
6052 (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
6053 (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
6054 EXIT_BLOCK_PTR.
6055 * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
6056 macro.
6057 (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
6058 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6059 * cfgcleanup.c (delete_unreachable_blocks): Likewise.
6060 (try_optimize_cfg): Likewise.
6061 (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
6062 (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
6063 (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
6064 (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
6065 (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
6066 (try_forward_edges): Likewise.
6067 (try_simplify_condjump): Likewise.
6068 * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
6069 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6070 (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
6071 (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
6072 EXIT_BLOCK_PTR.
6073 (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
6074 (expand_gimple_tailcall): Likewise.
6075 * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
6076 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6077 (tidy_fallthru_edges): Likewise.
6078 (verify_flow_info): Likewise.
6079 * cfgloop.c (flow_bb_inside_loop_p): Likewise.
6080 (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
6081 (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
6082 (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
6083 (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
6084 (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
6085 (get_loop_body_in_dom_order): Likewise.
6086 (get_loop_body): Likewise.
6087 * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
6088 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6089 * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
6090 macro.
6091 (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
6092 (fix_bb_placement): Likewise.
6093 * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
6094 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6095 (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
6096 (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
6097 EXIT_BLOCK_PTR.
6098 (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
6099 (cfg_layout_can_merge_blocks_p): Remove uses of macros:
6100 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6101 (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
6102 macro.
6103 (fixup_fallthru_exit_predecessor): Remove uses of macros:
6104 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6105 (fixup_reorder_chain): Likewise.
6106 (relink_block_chain): Likewise.
6107 (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
6108 (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
6109 (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
6110 (force_one_exit_fallthru): Likewise.
6111 (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
6112 EXIT_BLOCK_PTR.
6113 (rtl_verify_edges): Likewise.
6114 (commit_edge_insertions): Likewise.
6115 (commit_one_edge_insertion): Likewise.
6116 (rtl_split_edge): Likewise.
6117 (force_nonfallthru_and_redirect): Likewise.
6118 (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
6119 (skip_insns_after_block): Likewise.
6120 (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
6121 EXIT_BLOCK_PTR.
6122 (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
6123 (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
6124 EXIT_BLOCK_PTR.
6125 (contains_no_active_insn_p): Likewise.
6126 (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
6127 (entry_of_function): Likewise.
6128 (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
6129 (fixup_new_cold_bb): Likewise.
6130 (patch_jump_insn): Likewise.
6131 (try_redirect_by_replacing_jump): Likewise.
6132 (block_label): Likewise.
6133 (could_fall_through): Likewise.
6134 (can_fallthru): Likewise.
6135 * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
6136 ENTRY_BLOCK_PTR macro.
6137 (rebuild_cgraph_edges): Likewise.
6138 * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
6139 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6140 (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
6141 * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
6142 (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
6143 (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
6144 (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
6145 (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
6146 macro.
6147 (reg_nonzero_bits_for_combine): Likewise.
6148 (set_nonzero_bits_and_sign_copies): Likewise.
6149 (combine_instructions): Likewise.
6150 * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
6151 EXIT_BLOCK_PTR.
6152 (bypass_conditional_jumps): Likewise.
6153 (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
6154 (find_implicit_sets): Likewise.
6155 (cprop_jump): Likewise.
6156 * cse.c (cse_cc_succs): Likewise.
6157 (cse_find_path): Likewise.
6158 * df-problems.c (df_lr_confluence_0): Likewise.
6159 * df-scan.c (df_entry_block_defs_collect): Remove usage of
6160 ENTRY_BLOCK_PTR macro.
6161 (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
6162 * dominance.c (iterate_fix_dominators): Remove usage of
6163 ENTRY_BLOCK_PTR macro.
6164 (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6165 (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
6166 (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
6167 EXIT_BLOCK_PTR.
6168 (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
6169 macro.
6170 (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
6171 EXIT_BLOCK_PTR.
6172 * domwalk.c (cmp_bb_postorder): Likewise.
6173 * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
6174 * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
6175 macro.
6176 (sjlj_emit_function_enter): Likewise.
6177 * final.c (compute_alignments): Likewise.
6178 * function.c (thread_prologue_and_epilogue_insns): Remove uses of
6179 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6180 (reposition_prologue_and_epilogue_notes): Remove usage of
6181 EXIT_BLOCK_PTR macro.
6182 (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
6183 EXIT_BLOCK_PTR.
6184 (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
6185 (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
6186 * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
6187 (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
6188 (compute_code_hoist_vbeinout): Likewise.
6189 (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
6190 (pre_expr_reaches_here_p_work): Likewise.
6191 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
6192 (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
6193 EXIT_BLOCK_PTR.
6194 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
6195 ENTRY_BLOCK_PTR macro.
6196 * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
6197 macro.
6198 * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
6199 ENTRY_BLOCK_PTR macro.
6200 * graphite-scop-detection.c (build_scops): Likewise.
6201 (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
6202 (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
6203 * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
6204 macro.
6205 (unlink_bb_notes): Likewise.
6206 (create_check_block_twin): Likewise.
6207 (init_before_recovery): Likewise.
6208 (sched_extend_bb): Likewise.
6209 (priority): Likewise.
6210 * hw-doloop.c (reorder_loops): Likewise.
6211 (discover_loop): Likewise.
6212 * ifcvt.c (dead_or_predicable): Remove uses of macros:
6213 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6214 (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
6215 (block_has_only_trap): Likewise.
6216 (cond_exec_find_if_block): Likewise.
6217 (merge_if_block): Likewise.
6218 * ipa-inline-analysis.c (param_change_prob): Remove usage of
6219 ENTRY_BLOCK_PTR macro.
6220 (record_modified): Likewise.
6221 * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
6222 EXIT_BLOCK_PTR macro.
6223 (local_pure_const): Likewise.
6224 * ipa-split.c (split_function): Remove uses of macros:
6225 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6226 (find_split_points): Likewise.
6227 (consider_split): Likewise.
6228 (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
6229 (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
6230 * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
6231 * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
6232 * ira-emit.c (entered_from_non_parent_p): Remove usage of
6233 ENTRY_BLOCK_PTR macro.
6234 (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
6235 * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
6236 * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
6237 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6238 * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
6239 macro.
6240 (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
6241 EXIT_BLOCK_PTR.
6242 (compute_farthest): Likewise.
6243 (compute_available): Likewise.
6244 (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
6245 (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
6246 EXIT_BLOCK_PTR.
6247 (compute_earliest): Likewise.
6248 (compute_antinout_edge): Likewise.
6249 * loop-iv.c (simplify_using_initial_values): Remove usage of
6250 ENTRY_BLOCK_PTR macro.
6251 * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
6252 macro.
6253 * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
6254 macro.
6255 * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
6256 macro.
6257 * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
6258 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6259 * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
6260 macro.
6261 * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
6262 macro.
6263 * lto-streamer-out.c (output_cfg): Likewise.
6264 * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
6265 EXIT_BLOCK_PTR.
6266 (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
6267 * mode-switching.c (optimize_mode_switching): Likewise.
6268 (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
6269 * modulo-sched.c (rest_of_handle_sms): Likewise.
6270 (canon_loop): Likewise.
6271 * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
6272 * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
6273 of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6274 * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
6275 macro.
6276 (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
6277 (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
6278 (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
6279 (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
6280 (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
6281 (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
6282 (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
6283 (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
6284 (gimple_predict_edge): Likewise.
6285 (probably_never_executed): Likewise.
6286 * profile.c (find_spanning_tree): Remove uses of macros:
6287 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6288 (branch_prob): Likewise.
6289 (compute_branch_probabilities): Likewise.
6290 (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
6291 (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
6292 (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
6293 (set_bb_counts): Likewise.
6294 (correct_negative_edge_counts): Likewise.
6295 (get_exec_counts): Likewise.
6296 (instrument_values): Likewise.
6297 (instrument_edges): Likewise.
6298 * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
6299 EXIT_BLOCK_PTR.
6300 (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
6301 (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
6302 (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
6303 (reg_to_stack): Likewise.
6304 * regs.h (REG_N_SETS): Likewise.
6305 * reload.c (find_dummy_reload): Likewise.
6306 (combine_reloads): Likewise.
6307 (push_reload): Likewise.
6308 * reload1.c (has_nonexceptional_receiver): Remove usage of
6309 EXIT_BLOCK_PTR macro.
6310 * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
6311 macro.
6312 (find_basic_block): Likewise.
6313 * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
6314 (schedule_ebbs): Likewise.
6315 * sched-int.h (sel_sched_p): Likewise.
6316 * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
6317 macro.
6318 (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
6319 (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
6320 EXIT_BLOCK_PTR.
6321 (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
6322 (extend_rgns): Likewise.
6323 (find_single_block_region): Likewise.
6324 * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
6325 ENTRY_BLOCK_PTR macro.
6326 (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
6327 (sel_create_recovery_block): Likewise.
6328 (bb_ends_ebb_p): Likewise.
6329 (sel_bb_end): Likewise.
6330 (sel_bb_head): Likewise.
6331 (free_lv_sets): Likewise.
6332 (init_lv_sets): Likewise.
6333 (tidy_control_flow): Likewise.
6334 (maybe_tidy_empty_bb): Likewise.
6335 * sel-sched-ir.h (_succ_iter_cond): Likewise.
6336 (_succ_iter_start): Likewise.
6337 (sel_bb_empty_or_nop_p): Likewise.
6338 (get_loop_exit_edges_unique_dests): Likewise.
6339 (inner_loop_header_p): Likewise.
6340 * sel-sched.c (create_block_for_bookkeeping): Likewise.
6341 (find_block_for_bookkeeping): Likewise.
6342 * store-motion.c (remove_reachable_equiv_notes): Likewise.
6343 (insert_store): Likewise.
6344 * trans-mem.c (ipa_tm_transform_clone): Remove usage of
6345 ENTRY_BLOCK_PTR macro.
6346 (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
6347 (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
6348 (gate_tm_init): Likewise.
6349 (tm_region_init): Likewise.
6350 * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
6351 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6352 (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
6353 (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
6354 EXIT_BLOCK_PTR.
6355 (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
6356 (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
6357 EXIT_BLOCK_PTR.
6358 (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
6359 macro.
6360 (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
6361 EXIT_BLOCK_PTR.
6362 (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
6363 macro.
6364 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6365 (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
6366 (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
6367 (build_gimple_cfg): Likewise.
6368 (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
6369 (gimple_can_merge_blocks_p): Likewise.
6370 * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
6371 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6372 * tree-complex.c (update_parameter_components): Remove usage of
6373 ENTRY_BLOCK_PTR macro.
6374 * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
6375 EXIT_BLOCK_PTR macro.
6376 * tree-inline.c (tree_function_versioning): Remove uses of macros:
6377 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6378 (delete_unreachable_blocks_update_callgraph): Likewise.
6379 (initialize_cfun): Likewise.
6380 (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
6381 (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
6382 (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
6383 * tree-into-ssa.c (update_ssa): Likewise.
6384 (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
6385 (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
6386 (rewrite_into_ssa): Likewise.
6387 (rewrite_debug_stmt_uses): Likewise.
6388 * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
6389 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6390 * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
6391 ENTRY_BLOCK_PTR macro.
6392 * tree-scalar-evolution.h (block_before_loop): Likewise.
6393 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
6394 (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
6395 EXIT_BLOCK_PTR.
6396 (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
6397 macro.
6398 (propagate_dereference_distances): Remove uses of macros:
6399 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6400 (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
6401 macro.
6402 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
6403 (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
6404 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
6405 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
6406 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6407 (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
6408 (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
6409 (mark_control_dependent_edges_necessary): Remove uses of macros:
6410 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6411 * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
6412 ENTRY_BLOCK_PTR macro.
6413 (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
6414 * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
6415 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6416 (calculate_live_on_exit): Likewise.
6417 (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
6418 (loe_visit_block): Likewise.
6419 * tree-ssa-live.h (live_on_exit): Remove uses of macros:
6420 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6421 (live_on_entry): Likewise.
6422 * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
6423 EXIT_BLOCK_PTR macro.
6424 * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
6425 ENTRY_BLOCK_PTR macro.
6426 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
6427 (bound_difference): Likewise.
6428 * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
6429 of EXIT_BLOCK_PTR macro.
6430 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
6431 of ENTRY_BLOCK_PTR macro.
6432 * tree-ssa-math-opts.c (register_division_in): Likewise.
6433 * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
6434 * tree-ssa-pre.c (compute_avail): Likewise.
6435 (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
6436 (insert): Remove usage of ENTRY_BLOCK_PTR macro.
6437 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
6438 (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
6439 (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
6440 EXIT_BLOCK_PTR.
6441 (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
6442 * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
6443 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6444 (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
6445 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
6446 (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
6447 * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
6448 (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
6449 (find_pdom): Likewise.
6450 (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
6451 * tree-stdarg.c (reachable_at_most_once): Likewise.
6452 * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
6453 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6454 (eliminate_tail_call): Likewise.
6455 * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
6456 macro.
6457 (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
6458 * var-tracking.c (vt_initialize): Remove uses of macros:
6459 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
6460 (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
6461 (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
6462 (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
6463 EXIT_BLOCK_PTR.
6464 * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
6465 macro.
6466 * config/bfin/bfin.c (hwloop_optimize): Likewise.
6467 * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
6468 of EXIT_BLOCK_PTR macro.
6469 * config/arm/arm.c (require_pic_register): Remove usage of
6470 ENTRY_BLOCK_PTR macro.
6471 (arm_r3_live_at_start_p): Likewise.
6472 (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
6473 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
6474 * config/frv/frv.c (frv_optimize_membar_global): Likewise.
6475 * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
6476 ENTRY_BLOCK_PTR macro.
6477 * config/i386/i386.c (ix86_count_insn): Likewise.
6478 (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
6479 (ix86_pad_short_function): Likewise.
6480 (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
6481 (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
6482 (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
6483 (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
6484 (ix86_expand_epilogue): Likewise.
6485 * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
6486 (ia64_expand_prologue): Likewise.
6487
6488 2013-11-19 Catherine Moore <clm@codesourcery.com>
6489
6490 * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
6491 * config/mips/mips.opt (mfix-rm7000): New option.
6492 * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
6493 * config/mips/mips.c (mips_reorg_process_insns): Disable
6494 noreorder for TARGET_FIX_RM7000.
6495
6496 2013-11-19 Oleg Endo <olegendo@gcc.gnu.org>
6497
6498 * config/sh/sh-c.c: Fix typo in include of file attribs.h.
6499
6500 2013-11-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6501
6502 * config/arm/arm.c (arm_new_rtx_costs):
6503 Handle narrow mode add-shifts properly.
6504 * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
6505 * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
6506 Declare extern.
6507
6508 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
6509
6510 * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
6511
6512 2013-11-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6513
6514 * config/rs6000/vector.md ("mov<mode>"): Do not call
6515 rs6000_emit_le_vsx_move to move into or out of GPRs.
6516 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
6517 source and destination are not GPR hard regs.
6518
6519 2013-11-19 David Malcolm <dmalcolm@redhat.com>
6520
6521 * basic-block.h (n_edges_for_function): Rename macro to...
6522 (n_edges_for_fn): ...this.
6523 (n_edges): Eliminate macro as work towards making uses of
6524 cfun be explicit.
6525
6526 * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
6527 to "n_edges_for_fn".
6528
6529 * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
6530 (clear_edges): Likewise.
6531 (free_edge): Likewise.
6532 * cfghooks.c (dump_flow_info): Likewise.
6533 * cprop.c (is_too_expensive): Likewise.
6534 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
6535 * gcse.c (is_too_expensive): Likewise.
6536 (prune_insertions_deletions): Likewise.
6537 * mcf.c (create_fixup_graph): Likewise.
6538 * sched-rgn.c (haifa_find_rgns): Likewise.
6539 * tree-cfg.c (gimple_dump_cfg): Likewise.
6540 * var-tracking.c (variable_tracking_main_1): Likewise.
6541
6542 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
6543
6544 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
6545 length lines.
6546
6547 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
6548
6549 * config/aarch64/aarch64.md
6550 (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
6551
6552 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
6553
6554 * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
6555
6556 2013-11-19 Joseph Myers <joseph@codesourcery.com>
6557
6558 * varasm.c (align_variable): Give error instead of warning for
6559 unsupported alignment.
6560 (assemble_noswitch_variable): Likewise.
6561
6562 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
6563
6564 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
6565 cb_file_change.
6566
6567 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
6568
6569 * loop-doloop.c (doloop_optimize_loops): Remove unused
6570 loop iterator argument from FOR_EACH_LOOP.
6571
6572 2013-11-19 David Malcolm <dmalcolm@redhat.com>
6573
6574 Convert gimple types from a union to C++ inheritance.
6575 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
6576 * coretypes.h (union gimple_statement_d): Remove declaration.
6577 (gimple): Convert from being a "union gimple_statement_d *"
6578 to a "struct gimple_statement_base *".
6579 (const_gimple): Likewise (with "const").
6580 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
6581 (ggc_alloc_cleared_gimple_statement_stat): ...this.
6582 * gimple-pretty-print.c (debug): Change parameter from a
6583 "gimple_statement_d &" to a "gimple_statement_base &".
6584 (debug): Change parameter from a "gimple_statement_d *" to
6585 a "gimple_statement_base *".
6586 * gimple-pretty-print.h (debug): Update declarations as above.
6587 * gimple.c (gimple_alloc_stat): Update for renaming of
6588 ggc_alloc_cleared_gimple_statement_d_stat to
6589 ggc_alloc_cleared_gimple_statement_stat.
6590 * gimple.h: Include "is-a.h" for use by is_a_helper
6591 specializations in followup autogenerated patch.
6592 (struct gimple statement_base): Make this type usable as a base
6593 class by adding "desc", "tag" and "variable_size" to GTY, thus
6594 using opting-in to gengtype's support for simple inheritance.
6595 (gimple_statement_with_ops_base): Convert to a subclass of
6596 gimple_statement_base, dropping initial "gsbase" field. Note that
6597 this type is abstract, with no GSS_ value, and thus no GTY tag value.
6598 (gimple_statement_with_ops): Convert to a subclass of
6599 gimple_statement_with_ops_base, dropping initial "opbase" field.
6600 Add tag value to GTY marking. Update marking of op field to
6601 reflect how num_ops field is accessed via inheritance.
6602 (gimple_statement_with_memory_ops_base): Convert to a subclass of
6603 gimple_statement_with_ops_base, dropping initial "opbase" field.
6604 Add tag value to GTY marking.
6605 (gimple_statement_with_memory_ops): Convert to a subclass of
6606 public gimple_statement_with_memory_ops_base, dropping initial
6607 "membase" field. Add tag value to GTY marking. Update marking
6608 of op field to reflect how num_ops field is accessed via inheritance.
6609 (gimple_statement_call): Analogous changes that also update the
6610 marking of the "u" union.
6611 (gimple_statement_omp): Convert to a subclass of
6612 gimple_statement_base, dropping initial "gsbase" field, adding
6613 tag value to GTY marking.
6614 (gimple_statement_bind): Likewise.
6615 (gimple_statement_catch): Likewise.
6616 (gimple_statement_eh_filter): Likewise.
6617 (gimple_statement_eh_else): Likewise.
6618 (gimple_statement_eh_mnt): Likewise.
6619 (gimple_statement_phi): Likewise.
6620 (gimple_statement_eh_ctrl): Likewise.
6621 (gimple_statement_try): Likewise.
6622 (gimple_statement_wce): Likewise.
6623 (gimple_statement_asm): Convert to a subclass of
6624 gimple_statement_with_memory_ops_base, dropping initial
6625 "membase" field, adding tag value to GTY marking, and updating
6626 marking of op field.
6627 (gimple_statement_omp_critical): Convert to a subclass of
6628 gimple_statement_omp, dropping initial "omp" field, adding tag
6629 value to GTY marking.
6630 (gimple_statement_omp_for): Likewise.
6631 (gimple_statement_omp_parallel): Likewise.
6632 (gimple_statement_omp_task): Convert to a subclass of
6633 gimple_statement_omp_parallel, dropping initial "par" field,
6634 adding tag value to GTY marking.
6635 (gimple_statement_omp_sections): Convert to a subclass of
6636 gimple_statement_omp, dropping initial "omp" field, adding
6637 tag value to GTY marking.
6638 (gimple_statement_omp_continue): Convert to a subclass of
6639 gimple_statement_base, dropping initial "gsbase" field, adding
6640 tag value to GTY marking.
6641 (gimple_statement_omp_single): Convert to a subclass of
6642 gimple_statement_omp, dropping initial "omp" field, adding
6643 tag value to GTY marking.
6644 (gimple_statement_omp_atomic_load): Convert to a subclass of
6645 gimple_statement_base, dropping initial "gsbase" field, adding
6646 tag value to GTY marking.
6647 (gimple_statement_omp_atomic_store): Convert to a subclass of
6648 gimple_statement_base, dropping initial "gsbase" field, adding
6649 tag value to GTY marking.
6650 (gimple_statement_transaction): Convert to a subclass of
6651 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
6652 field, adding tag value to GTY marking.
6653 (union gimple_statement_d): Remove.
6654 * system.h (CONST_CAST_GIMPLE): Update to use
6655 "struct gimple_statement_base *" rather than
6656 "union gimple_statement_d *".
6657 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
6658 gimple_statement_d to gimple_statement_base.
6659
6660 * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
6661 (gimple_set_use_ops): Port from union to usage of as_a.
6662 (gimple_set_vuse): Likewise.
6663 (gimple_set_vdef): Likewise.
6664 (gimple_call_internal_fn): Port from union to a static_cast,
6665 given that the type has already been asserted.
6666 (gimple_omp_body_ptr): Port from unchecked union usage to
6667 a static_cast.
6668 (gimple_omp_set_body): Likewise.
6669
6670 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
6671 gimple types to a true class hierarchy.
6672 (update_call_edge_frequencies): Likewise.
6673 (gsi_insert_seq_nodes_before): Likewise.
6674 (gsi_insert_seq_nodes_after): Likewise.
6675 (gsi_split_seq_after): Likewise.
6676 (gsi_set_stmt): Likewise.
6677 (gsi_split_seq_before): Likewise.
6678 (gsi_remove): Likewise.
6679 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
6680 (gsi_next): Likewise.
6681 (gsi_prev): Likewise.
6682 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
6683 * gimple-ssa.h (gimple_vuse_op): Likewise.
6684 (gimple_vdef_op): Likewise.
6685 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
6686 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
6687 * gimple.c (gimple_set_code): Likewise.
6688 (gimple_alloc_stat): Likewise.
6689 (gimple_set_subcode): Likewise.
6690 (gimple_build_call_internal_1): Likewise.
6691 (gimple_check_failed): Likewise.
6692 (gimple_call_flags): Likewise.
6693 (gimple_set_bb): Likewise.
6694 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
6695 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
6696 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
6697 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
6698 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
6699 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
6700 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
6701 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
6702 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
6703 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
6704 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
6705 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
6706 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
6707 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
6708 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
6709 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
6710 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
6711 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
6712 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
6713 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
6714 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
6715 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
6716 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
6717 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
6718 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
6719 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
6720 Likewise.
6721 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
6722 Likewise.
6723 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
6724 Likewise.
6725 (is_a_helper <const gimple_statement_omp_atomic_store>
6726 (const_gimple)): Likewise.
6727 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
6728 Likewise.
6729 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
6730 Likewise.
6731 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
6732 Likewise.
6733 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
6734 Likewise.
6735 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
6736 Likewise.
6737 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
6738 Likewise.
6739 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
6740 Likewise.
6741 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
6742 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
6743 Likewise.
6744 (gimple_seq_last): Update for conversion of gimple types to a true
6745 class hierarchy.
6746 (gimple_seq_set_last): Likewise.
6747 (gimple_code): Likewise.
6748 (gimple_bb): Likewise.
6749 (gimple_block): Likewise.
6750 (gimple_set_block): Likewise.
6751 (gimple_location): Likewise.
6752 (gimple_location_ptr): Likewise.
6753 (gimple_set_location): Likewise.
6754 (gimple_no_warning_p): Likewise.
6755 (gimple_set_no_warning): Likewise.
6756 (gimple_set_visited): Likewise.
6757 (gimple_visited_p): Likewise.
6758 (gimple_set_plf): Likewise.
6759 (gimple_plf): Likewise.
6760 (gimple_set_uid): Likewise.
6761 (gimple_uid): Likewise.
6762 (gimple_init_singleton): Likewise.
6763 (gimple_modified_p): Likewise.
6764 (gimple_set_modified): Likewise.
6765 (gimple_expr_code): Likewise.
6766 (gimple_has_volatile_ops): Likewise.
6767 (gimple_set_has_volatile_ops): Likewise.
6768 (gimple_omp_subcode): Likewise.
6769 (gimple_omp_set_subcode): Likewise.
6770 (gimple_omp_return_set_nowait): Likewise.
6771 (gimple_omp_section_set_last): Likewise.
6772 (gimple_omp_parallel_set_combined_p): Likewise.
6773 (gimple_omp_atomic_set_need_value): Likewise.
6774 (gimple_omp_atomic_set_seq_cst): Likewise.
6775 (gimple_num_ops): Likewise.
6776 (gimple_set_num_ops): Likewise.
6777 (gimple_assign_nontemporal_move_p): Likewise.
6778 (gimple_assign_set_nontemporal_move): Likewise.
6779 (gimple_assign_rhs_code): Likewise.
6780 (gimple_assign_set_rhs_code): Likewise.
6781 (gimple_call_internal_p): Likewise.
6782 (gimple_call_with_bounds_p): Likewise.
6783 (gimple_call_set_with_bounds): Likewise.
6784 (gimple_call_set_tail): Likewise.
6785 (gimple_call_tail_p): Likewise.
6786 (gimple_call_set_return_slot_opt): Likewise.
6787 (gimple_call_return_slot_opt_p): Likewise.
6788 (gimple_call_set_from_thunk): Likewise.
6789 (gimple_call_from_thunk_p): Likewise.
6790 (gimple_call_set_va_arg_pack): Likewise.
6791 (gimple_call_va_arg_pack_p): Likewise.
6792 (gimple_call_set_nothrow): Likewise.
6793 (gimple_call_set_alloca_for_var): Likewise.
6794 (gimple_call_alloca_for_var_p): Likewise.
6795 (gimple_call_copy_flags): Likewise.
6796 (gimple_cond_code): Likewise.
6797 (gimple_cond_set_code): Likewise.
6798 (gimple_cond_make_false): Likewise.
6799 (gimple_cond_make_true): Likewise.
6800 (gimple_asm_volatile_p): Likewise.
6801 (gimple_asm_set_volatile): Likewise.
6802 (gimple_asm_set_input): Likewise.
6803 (gimple_asm_input_p): Likewise.
6804 (gimple_try_kind): Likewise.
6805 (gimple_try_set_kind): Likewise.
6806 (gimple_try_catch_is_cleanup): Likewise.
6807 (gimple_try_set_catch_is_cleanup): Likewise.
6808 (gimple_wce_cleanup_eh_only): Likewise.
6809 (gimple_wce_set_cleanup_eh_only): Likewise.
6810 (gimple_debug_bind_p): Likewise.
6811 (gimple_debug_source_bind_p): Likewise.
6812 (gimple_omp_for_set_kind): Likewise.
6813 (gimple_omp_for_set_combined_p): Likewise.
6814 (gimple_omp_for_set_combined_into_p): Likewise.
6815 (gimple_omp_target_set_kind): Likewise.
6816 (gimple_transaction_subcode): Likewise.
6817 (gimple_transaction_set_subcode): Likewise.
6818 (gimple_predict_predictor): Likewise.
6819 (gimple_predict_set_predictor): Likewise.
6820 (gimple_predict_outcome): Likewise.
6821 (gimple_predict_set_outcome): Likewise.
6822 (gimple_transaction_set_label): Likewise.
6823 (gimple_transaction_set_body): Likewise.
6824 (gimple_transaction_label_ptr): Likewise.
6825 (gimple_transaction_label): Likewise.
6826 (gimple_transaction_body_ptr): Likewise.
6827 (gimple_omp_continue_set_control_use): Likewise.
6828 (gimple_omp_continue_control_use_ptr): Likewise.
6829 (gimple_omp_continue_control_use): Likewise.
6830 (gimple_omp_continue_set_control_def): Likewise.
6831 (gimple_omp_continue_control_def_ptr): Likewise.
6832 (gimple_omp_continue_control_def): Likewise.
6833 (gimple_omp_atomic_load_rhs_ptr): Likewise.
6834 (gimple_omp_atomic_load_rhs): Likewise.
6835 (gimple_omp_atomic_load_set_rhs): Likewise.
6836 (gimple_omp_atomic_load_lhs_ptr): Likewise.
6837 (gimple_omp_atomic_load_lhs): Likewise.
6838 (gimple_omp_atomic_load_set_lhs): Likewise.
6839 (gimple_omp_atomic_store_val_ptr): Likewise.
6840 (gimple_omp_atomic_store_val): Likewise.
6841 (gimple_omp_atomic_store_set_val): Likewise.
6842 (gimple_omp_for_cond): Likewise.
6843 (gimple_omp_for_set_cond): Likewise.
6844 (gimple_omp_sections_set_control): Likewise.
6845 (gimple_omp_sections_control_ptr): Likewise.
6846 (gimple_omp_sections_control): Likewise.
6847 (gimple_omp_sections_set_clauses): Likewise.
6848 (gimple_omp_sections_clauses_ptr): Likewise.
6849 (gimple_omp_sections_clauses): Likewise.
6850 (gimple_omp_teams_set_clauses): Likewise.
6851 (gimple_omp_teams_clauses_ptr): Likewise.
6852 (gimple_omp_teams_clauses): Likewise.
6853 (gimple_omp_target_set_data_arg): Likewise.
6854 (gimple_omp_target_data_arg_ptr): Likewise.
6855 (gimple_omp_target_data_arg): Likewise.
6856 (gimple_omp_target_set_child_fn): Likewise.
6857 (gimple_omp_target_child_fn_ptr): Likewise.
6858 (gimple_omp_target_child_fn): Likewise.
6859 (gimple_omp_target_set_clauses): Likewise.
6860 (gimple_omp_target_clauses_ptr): Likewise.
6861 (gimple_omp_target_clauses): Likewise.
6862 (gimple_omp_single_set_clauses): Likewise.
6863 (gimple_omp_single_clauses_ptr): Likewise.
6864 (gimple_omp_single_clauses): Likewise.
6865 (gimple_omp_task_set_arg_align): Likewise.
6866 (gimple_omp_task_arg_align_ptr): Likewise.
6867 (gimple_omp_task_arg_align): Likewise.
6868 (gimple_omp_task_set_arg_size): Likewise.
6869 (gimple_omp_task_arg_size_ptr): Likewise.
6870 (gimple_omp_task_arg_size): Likewise.
6871 (gimple_omp_task_set_copy_fn): Likewise.
6872 (gimple_omp_task_copy_fn_ptr): Likewise.
6873 (gimple_omp_task_copy_fn): Likewise.
6874 (gimple_omp_task_set_data_arg): Likewise.
6875 (gimple_omp_task_data_arg_ptr): Likewise.
6876 (gimple_omp_task_data_arg): Likewise.
6877 (gimple_omp_task_set_child_fn): Likewise.
6878 (gimple_omp_task_child_fn_ptr): Likewise.
6879 (gimple_omp_task_child_fn): Likewise.
6880 (gimple_omp_task_set_clauses): Likewise.
6881 (gimple_omp_task_clauses_ptr): Likewise.
6882 (gimple_omp_task_clauses): Likewise.
6883 (gimple_omp_parallel_set_data_arg): Likewise.
6884 (gimple_omp_parallel_data_arg_ptr): Likewise.
6885 (gimple_omp_parallel_data_arg): Likewise.
6886 (gimple_omp_parallel_set_child_fn): Likewise.
6887 (gimple_omp_parallel_child_fn_ptr): Likewise.
6888 (gimple_omp_parallel_child_fn): Likewise.
6889 (gimple_omp_parallel_set_clauses): Likewise.
6890 (gimple_omp_parallel_clauses_ptr): Likewise.
6891 (gimple_omp_parallel_clauses): Likewise.
6892 (gimple_omp_for_set_pre_body): Likewise.
6893 (gimple_omp_for_pre_body_ptr): Likewise.
6894 (gimple_omp_for_set_incr): Likewise.
6895 (gimple_omp_for_incr_ptr): Likewise.
6896 (gimple_omp_for_incr): Likewise.
6897 (gimple_omp_for_set_final): Likewise.
6898 (gimple_omp_for_final_ptr): Likewise.
6899 (gimple_omp_for_final): Likewise.
6900 (gimple_omp_for_set_initial): Likewise.
6901 (gimple_omp_for_initial_ptr): Likewise.
6902 (gimple_omp_for_initial): Likewise.
6903 (gimple_omp_for_set_index): Likewise.
6904 (gimple_omp_for_index_ptr): Likewise.
6905 (gimple_omp_for_index): Likewise.
6906 (gimple_omp_for_collapse): Likewise.
6907 (gimple_omp_for_set_clauses): Likewise.
6908 (gimple_omp_for_clauses_ptr): Likewise.
6909 (gimple_omp_for_clauses): Likewise.
6910 (gimple_omp_critical_set_name): Likewise.
6911 (gimple_omp_critical_name_ptr): Likewise.
6912 (gimple_omp_critical_name): Likewise.
6913 (gimple_eh_dispatch_set_region): Likewise.
6914 (gimple_eh_dispatch_region): Likewise.
6915 (gimple_resx_set_region): Likewise.
6916 (gimple_resx_region): Likewise.
6917 (gimple_phi_set_arg): Likewise.
6918 (gimple_phi_arg): Likewise.
6919 (gimple_phi_set_result): Likewise.
6920 (gimple_phi_result_ptr): Likewise.
6921 (gimple_phi_result): Likewise.
6922 (gimple_phi_num_args): Likewise.
6923 (gimple_phi_capacity): Likewise.
6924 (gimple_wce_set_cleanup): Likewise.
6925 (gimple_wce_cleanup_ptr): Likewise.
6926 (gimple_try_set_cleanup): Likewise.
6927 (gimple_try_set_eval): Likewise.
6928 (gimple_try_cleanup_ptr): Likewise.
6929 (gimple_try_eval_ptr): Likewise.
6930 (gimple_eh_else_set_e_body): Likewise.
6931 (gimple_eh_else_set_n_body): Likewise.
6932 (gimple_eh_else_e_body_ptr): Likewise.
6933 (gimple_eh_else_n_body_ptr): Likewise.
6934 (gimple_eh_must_not_throw_set_fndecl): Likewise.
6935 (gimple_eh_must_not_throw_fndecl): Likewise.
6936 (gimple_eh_filter_set_failure): Likewise.
6937 (gimple_eh_filter_set_types): Likewise.
6938 (gimple_eh_filter_failure_ptr): Likewise.
6939 (gimple_eh_filter_types_ptr): Likewise.
6940 (gimple_eh_filter_types): Likewise.
6941 (gimple_catch_set_handler): Likewise.
6942 (gimple_catch_set_types): Likewise.
6943 (gimple_catch_handler_ptr): Likewise.
6944 (gimple_catch_types_ptr): Likewise.
6945 (gimple_catch_types): Likewise.
6946 (gimple_asm_string): Likewise.
6947 (gimple_asm_set_label_op): Likewise.
6948 (gimple_asm_label_op): Likewise.
6949 (gimple_asm_set_clobber_op): Likewise.
6950 (gimple_asm_clobber_op): Likewise.
6951 (gimple_asm_set_output_op): Likewise.
6952 (gimple_asm_output_op_ptr): Likewise.
6953 (gimple_asm_output_op): Likewise.
6954 (gimple_asm_set_input_op): Likewise.
6955 (gimple_asm_input_op_ptr): Likewise.
6956 (gimple_asm_input_op): Likewise.
6957 (gimple_asm_nlabels): Likewise.
6958 (gimple_asm_nclobbers): Likewise.
6959 (gimple_asm_noutputs): Likewise.
6960 (gimple_asm_ninputs): Likewise.
6961 (gimple_bind_set_block): Likewise.
6962 (gimple_bind_block): Likewise.
6963 (gimple_bind_add_seq): Likewise.
6964 (gimple_bind_add_stmt): Likewise.
6965 (gimple_bind_set_body): Likewise.
6966 (gimple_bind_body_ptr): Likewise.
6967 (gimple_bind_append_vars): Likewise.
6968 (gimple_bind_set_vars): Likewise.
6969 (gimple_bind_vars): Likewise.
6970 (gimple_call_clobber_set): Likewise.
6971 (gimple_call_use_set): Likewise.
6972 (gimple_call_set_internal_fn): Likewise.
6973 (gimple_call_set_fntype): Likewise.
6974 (gimple_call_fntype): Likewise.
6975 (gimple_omp_return_lhs_ptr): Likewise.
6976 (gimple_omp_return_lhs): Likewise.
6977 (gimple_omp_return_set_lhs): Likewise.
6978 (gimple_omp_taskreg_set_data_arg): Likewise.
6979 (gimple_omp_taskreg_data_arg_ptr): Likewise.
6980 (gimple_omp_taskreg_data_arg): Likewise.
6981 (gimple_omp_taskreg_set_child_fn): Likewise.
6982 (gimple_omp_taskreg_child_fn_ptr): Likewise.
6983 (gimple_omp_taskreg_child_fn): Likewise.
6984 (gimple_omp_taskreg_set_clauses): Likewise.
6985 (gimple_omp_taskreg_clauses_ptr): Likewise.
6986 (gimple_omp_taskreg_clauses): Likewise.
6987 (gimple_vuse): Likewise.
6988 (gimple_vdef): Likewise.
6989 (gimple_vuse_ptr): Likewise.
6990 (gimple_vdef_ptr): Likewise.
6991 * tree-inline.c (copy_debug_stmt): Likewise.
6992 * tree-phinodes.c (make_phi_node): Likewise.
6993
6994 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
6995 (is_a_helper <gimple_statement_with_ops>::test): New.
6996 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
6997 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
6998
6999 * gimple-streamer-in.c (input_gimple_stmt): Port from union
7000 access to use of as_a.
7001 * gimple.c (gimple_build_asm_1): Likewise.
7002 (gimple_build_try): Likewise. Also, return a specific subclass
7003 rather than just gimple.
7004 (gimple_build_resx): Port from union access to use of as_a.
7005 (gimple_build_eh_dispatch): Likewise.
7006 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
7007 now that gengtype no longer provides a typed allocator function.
7008 (gimple_copy): Likewise.
7009 * gimple.h (gimple_build_try): Return a specific subclass rather
7010 than just gimple.
7011 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
7012 with subclass access by making use of new return type of
7013 gimple_build_try.
7014 * tree-phinodes.c: (allocate_phi_node): Return a
7015 "gimple_statement_phi *" rather than just a gimple.
7016 (resize_phi_node): Likewise.
7017 (make_phi_node): Replace union access with subclass access by
7018 making use of new return type of allocate_phi_node.
7019 (reserve_phi_args_for_new_edge): Replace union access with as_a.
7020 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
7021 than just a gimple.
7022 (remove_phi_args): Update for change to remove_phi_arg_num.
7023
7024 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
7025 code field to reflect inheritance, rather than embedding of
7026 the base gimple type.
7027
7028 2013-11-19 Richard Biener <rguenther@suse.de>
7029
7030 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
7031 and destructor and make fel_next a member function.
7032 (fel_next): Transform into ...
7033 (loop_iterator::next): ... this.
7034 (fel_init): Transform into ...
7035 (loop_iterator::loop_iterator): ... this.
7036 (loop_iterator::~loop_iterator): New.
7037 (FOR_EACH_LOOP): Remove loop-iterator argument.
7038 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
7039 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
7040 graphite-clast-to-gimple.c, graphite-scop-detection.c,
7041 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
7042 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
7043 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
7044 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
7045 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
7046 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
7047 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
7048 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
7049 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
7050 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
7051 FOR_EACH_LOOP_BREAK with break.
7052
7053 2013-11-19 Richard Biener <rguenther@suse.de>
7054
7055 PR tree-optimization/59164
7056 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
7057 Uncomment assert.
7058 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
7059 whether we can create an epilogue loop to reflect thecases where
7060 we create one.
7061
7062 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
7063
7064 * graphite-sese-to-poly.c: Include expr.h.
7065
7066 2013-11-19 Richard Biener <rguenther@suse.de>
7067
7068 PR middle-end/58956
7069 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
7070 loads into stmts that may clobber it.
7071
7072 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
7073
7074 * cgraphunit.c (symtab_terminator): New variable.
7075 (queued_nodes): Renamed from first. Use symtab_terminator as
7076 initializer.
7077 (analyze_functions): Adjust accordingly.
7078 (cgraph_process_new_functions): Return void.
7079 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
7080
7081 2013-11-19 Marek Polacek <polacek@redhat.com>
7082
7083 * opts.c (common_handle_option): Add -fsanitize=null option.
7084 Turn off -fdelete-null-pointer-checks option when doing the
7085 NULL pointer checking.
7086 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
7087 * tree-pass.h (make_pass_ubsan): Declare.
7088 (make_pass_sanopt): Declare.
7089 * timevar.def (TV_TREE_UBSAN): New timevar.
7090 * passes.def: Add pass_sanopt and pass_ubsan.
7091 * ubsan.h (ubsan_null_ckind): New enum.
7092 (ubsan_mismatch_data): New struct.
7093 (ubsan_expand_null_ifn): Declare.
7094 (ubsan_create_data): Adjust declaration.
7095 (ubsan_type_descriptor): Likewise.
7096 * asan.c: Include "ubsan.h".
7097 (pass_data_sanopt): New pass.
7098 (execute_sanopt): New function.
7099 (gate_sanopt): Likewise.
7100 (make_pass_sanopt): Likewise.
7101 (class pass_sanopt): New class.
7102 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
7103 gimple-iterator.h and cfgloop.h.
7104 (PROB_VERY_UNLIKELY): Define.
7105 (tree_type_map_hash): New function.
7106 (ubsan_type_descriptor): Add new parameter.
7107 Improve type name generation.
7108 (ubsan_create_data): Add new parameter. Add pointer data into
7109 ubsan structure.
7110 (ubsan_expand_null_ifn): New function.
7111 (instrument_member_call): Likewise.
7112 (instrument_mem_ref): Likewise.
7113 (instrument_null): Likewise.
7114 (ubsan_pass): Likewise.
7115 (gate_ubsan): Likewise.
7116 (make_pass_ubsan): Likewise.
7117 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
7118 (class pass_ubsan): New class.
7119 (pass_data_ubsan): New pass.
7120 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
7121 * internal-fn.c (expand_UBSAN_NULL): New function.
7122 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
7123 even when !flag_toplevel_reorder.
7124 * internal-fn.def (UBSAN_NULL): New.
7125
7126 2013-11-19 Jan Hubicka <jh@suse.cz>
7127
7128 * cgraph.c (cgraph_create_indirect_edge): Use
7129 get_polymorphic_call_info.
7130 * cgraph.h (cgraph_indirect_call_info): Add outer_type,
7131 maybe_in_construction and maybe_derived_type.
7132 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
7133 (ipa_dummy_polymorphic_call_context): New global var.
7134 (possible_polymorphic_call_targets): Add context paramter.
7135 (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
7136 (possible_polymorphic_call_target_p): Likewise.
7137 (get_polymorphic_call_info): New function.
7138 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
7139 (add_type_duplicate): Remove forgotten debug output.
7140 (method_class_type): Add sanity check.
7141 (maybe_record_node): Add FINALP parameter.
7142 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
7143 by info by get_binfo_at_offset.
7144 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
7145 parameters; pass them to record-binfo.
7146 (polymorphic_call_target_d): Add context and FINAL.
7147 (polymorphic_call_target_hasher::hash): Hash context.
7148 (polymorphic_call_target_hasher::equal): Compare context.
7149 (free_polymorphic_call_targets_hash):
7150 (get_class_context): New function.
7151 (contains_type_p): New function.
7152 (get_polymorphic_call_info): New function.
7153 (walk_bases): New function.
7154 (possible_polymorphic_call_targets): Add context parameter; honnor it.
7155 (dump_possible_polymorphic_call_targets): Dump context.
7156 (possible_polymorphic_call_target_p): Add context.
7157 (update_type_inheritance_graph): Update comment.s
7158 (ipa_set_jf_known_type): Assert that compoentn type is known.
7159 (ipa_note_param_call): Do not tamper with offsets.
7160 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
7161 outer type.
7162 (update_indirect_edges_after_inlining): Likewise.
7163 (ipa_write_indirect_edge_info): Stream new fields.
7164 (ipa_read_indirect_edge_info): Stream in new fields.
7165
7166 2013-11-19 Jan Hubicka <jh@suse.cz>
7167
7168 * tree-pretty-print.c (dump_generic_node): Print class type of
7169 OBJ_TYPE_REF.
7170
7171 2013-11-19 Joey Ye <joey.ye@arm.com>
7172
7173 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
7174 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
7175 for new option.
7176 * config/arm/arm.c (arm_option_override): By default disable
7177 -marm-pic-data-is-text-relative.
7178 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
7179 (arm_assemble_integer): Likewise.
7180 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
7181 New macro to initialize -marm-pic-data-is-text-relative.
7182
7183 2013-11-19 Bin Cheng <bin.cheng@arm.com>
7184
7185 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
7186 (address_cost_data): New field.
7187 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
7188 Use ainc_costs for auto-increment rtx patterns. Cleanup TWS.
7189
7190 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
7191
7192 * config/aarch64/aarch64.md: Remove v8type from all insns.
7193
7194 2013-11-19 Richard Biener <rguenther@suse.de>
7195
7196 PR tree-optimization/57517
7197 * tree-predcom.c (combinable_refs_p): Verify the combination
7198 is always executed when the refs are.
7199
7200 2013-11-19 Jeff Law <law@redhat.com>
7201
7202 * tree-ssa-threadupdate.c: Include ssa-iterators.h
7203 (copy_phi_arg_into_existing_phi): New function.
7204 (any_remaining_duplicated_blocks): Likewise.
7205 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
7206 blocks on a jump threading path.
7207
7208 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
7209 thread through a joiner which has the latch edge.
7210
7211 2013-11-19 Jan Hubicka <jh@suse.cz>
7212
7213 * md.texi (setmem): Document new parameter.
7214 * optabs.c (maybe_gen_insn): Support 9 operands.
7215 * builtins.c (determine_block_size): Add probable_max_size;
7216 support anti-ranges.
7217 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
7218 probable_max_size.
7219 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
7220 emit_block_move, clear_storage_hints, set_storage_via_setmem):
7221 Likewise.
7222 * expr.h (emit_block_move_hints, clear_storage_hints,
7223 set_storage_via_setmem): Update prototype.
7224 * i386.md (setmem, movmem patterns): Add 9th operand.
7225 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
7226 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
7227 argument; pass it to decide_alg.
7228
7229 2013-11-19 David Malcolm <dmalcolm@redhat.com>
7230
7231 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
7232 (n_basic_blocks_for_fn): ...this.
7233
7234 (n_basic_blocks): Eliminate macro as work towards making uses of
7235 cfun be explicit.
7236
7237 * cfgloop.c (init_loops_structure): Update for renaming of
7238 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
7239 * graph.c (draw_cfg_nodes_no_loops): Likewise.
7240 * ipa-utils.c (ipa_merge_profiles): Likewise.
7241 * lto-streamer-in.c (make_new_block): Likewise.
7242 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
7243 (dump_function_to_file): Likewise.
7244
7245 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
7246 macro with "n_basic_blocks_for_fn (cfun)".
7247 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
7248 (duplicate_computed_gotos): Likewise.
7249 (reorder_basic_blocks): Likewise.
7250 * bt-load.c (augment_live_range): Likewise.
7251 * cfg.c (expunge_block): Likewise.
7252 (compact_blocks): Likewise.
7253 * cfganal.c (single_pred_before_succ_order): Likewise.
7254 (compute_idf): Likewise.
7255 (flow_dfs_compute_reverse_init): Likewise.
7256 (pre_and_rev_post_order_compute): Likewise.
7257 (pre_and_rev_post_order_compute_fn): Likewise.
7258 (inverted_post_order_compute): Likewise.
7259 (post_order_compute): Likewise.
7260 (print_edge_list): Likewise.
7261 (find_unreachable_blocks): Likewise.
7262 (mark_dfs_back_edges): Likewise.
7263 * cfgcleanup.c (try_optimize_cfg): Likewise.
7264 (try_forward_edges): Likewise.
7265 * cfghooks.c (dump_flow_info): Likewise.
7266 * cfgloop.c (verify_loop_structure): Likewise.
7267 (get_loop_body): Likewise.
7268 (flow_loops_find): Likewise.
7269 * cfgloopmanip.c (add_loop): Likewise.
7270 (remove_path): Likewise.
7271 (find_path): Likewise.
7272 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
7273 (rtl_verify_bb_layout): Likewise.
7274 (entry_of_function): Likewise.
7275 (rtl_create_basic_block): Likewise.
7276 * coverage.c (coverage_compute_cfg_checksum): Likewise.
7277 * cprop.c (one_cprop_pass): Likewise.
7278 (is_too_expensive): Likewise.
7279 * df-core.c (df_compute_cfg_image): Likewise.
7280 (df_compact_blocks): Likewise.
7281 (df_worklist_dataflow_doublequeue): Likewise.
7282 * dominance.c (calculate_dominance_info): Likewise.
7283 (calc_dfs_tree): Likewise.
7284 (calc_dfs_tree_nonrec): Likewise.
7285 (init_dom_info): Likewise.
7286 * domwalk.c (cmp_bb_postorder): Likewise.
7287 * function.c (thread_prologue_and_epilogue_insns): Likewise.
7288 (generate_setjmp_warnings): Likewise.
7289 * fwprop.c (build_single_def_use_links): Likewise.
7290 * gcse.c (is_too_expensive): Likewise.
7291 (one_code_hoisting_pass): Likewise.
7292 (one_pre_gcse_pass): Likewise.
7293 * graphite.c (graphite_initialize): Likewise.
7294 * haifa-sched.c (haifa_sched_init): Likewise.
7295 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
7296 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
7297 * ira-build.c (ira_build): Likewise.
7298 * lcm.c (compute_nearerout): Likewise.
7299 (compute_available): Likewise.
7300 (compute_laterin): Likewise.
7301 (compute_antinout_edge): Likewise.
7302 * lra-lives.c (lra_create_live_ranges): Likewise.
7303 * lra.c (has_nonexceptional_receiver): Likewise.
7304 * mcf.c (create_fixup_graph): Likewise.
7305 * profile.c (branch_prob): Likewise.
7306 * reg-stack.c (convert_regs_2): Likewise.
7307 * regrename.c (regrename_analyze): Likewise.
7308 * reload1.c (has_nonexceptional_receiver): Likewise.
7309 * reorg.c (dbr_schedule): Likewise.
7310 * sched-deps.c (sched_deps_init): Likewise.
7311 * sched-ebb.c (schedule_ebbs): Likewise.
7312 * sched-rgn.c (extend_regions): Likewise.
7313 (schedule_insns): Likewise.
7314 (sched_rgn_init): Likewise.
7315 (extend_rgns): Likewise.
7316 (haifa_find_rgns): Likewise.
7317 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
7318 (sel_recompute_toporder): Likewise.
7319 * sel-sched.c (run_selective_scheduling): Likewise.
7320 * store-motion.c (one_store_motion_pass): Likewise.
7321 (remove_reachable_equiv_notes): Likewise.
7322 * tracer.c (tracer): Likewise.
7323 (tail_duplicate): Likewise.
7324 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
7325 (dump_cfg_stats): Likewise.
7326 (gimple_dump_cfg): Likewise.
7327 (create_bb): Likewise.
7328 (build_gimple_cfg): Likewise.
7329 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
7330 * tree-inline.c (optimize_inline_calls): Likewise.
7331 (fold_marked_statements): Likewise.
7332 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
7333 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
7334 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
7335 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
7336 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
7337 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
7338 * tree-ssa-pre.c (do_pre): Likewise.
7339 (init_pre): Likewise.
7340 (compute_avail): Likewise.
7341 * tree-ssa-reassoc.c (init_reassoc): Likewise.
7342 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
7343 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
7344 (init_worklist): Likewise.
7345 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
7346 * var-tracking.c (variable_tracking_main_1): Likewise.
7347 (vt_find_locations): Likewise.
7348 (vt_stack_adjustments): Likewise.
7349 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
7350 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
7351
7352 2013-11-18 Jan Hubicka <jh@suse.cz>
7353
7354 * profile.c (compute_branch_probabilities): Do not sanity check
7355 run_max.
7356
7357 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
7358
7359 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
7360 GET_MODE_PRECISION.
7361 * fold-const.c (fold_single_bit_test_into_sign_test)
7362 (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
7363
7364 2013-11-18 Teresa Johnson <tejohnson@google.com>
7365
7366 * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
7367 cfglayout after bb reordering.
7368 * passes.def: Move compgotos before bb reordering since it goes into
7369 cfglayout.
7370
7371 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
7372
7373 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
7374 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
7375 static.
7376 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
7377 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
7378 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
7379 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
7380 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
7381 Remove all_lto_gen_passes.
7382 * passes.c (pass_manager::dump_passes): Remove its use.
7383 (pass_manager::register_pass): Likewise.
7384 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
7385 (pass_manager::pass_manager): Don't initialize or use it.
7386 (write_lto): New static function.
7387 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
7388 instead of using all_lto_gen_passes.
7389 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
7390 pass_ipa_lto_finish_out): Delete.
7391 * tree-pass.h (make_pass_ipa_lto_gimple_out,
7392 make_pass_ipa_lto_finish_out): Don't declare.
7393
7394 2013-11-18 Jeff Law <law@redhat.com>
7395
7396 * tree-ssa-threadupdate.c (redirection_data): Record two
7397 duplicated blocks instead of just one.
7398 (local_info): Explain why we don't create a template for the
7399 second duplicated block in a thread path.
7400 (create_block_for_threading): Accept argument indicating array
7401 index into redirection_data to store its result.
7402 (lookup_redirection_data): Initialize both duplicate blocks.
7403 (ssa_create_duplicates): If a jump threading path needs multiple
7404 blocks duplicated, then duplicate them.
7405 (ssa_fix_duplicate_block_edges): Corresponding changes.
7406 (ssa_fixup_template_block, thread_single_edge): Likewise.
7407
7408 2013-11-18 Marek Polacek <polacek@redhat.com>
7409
7410 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
7411
7412 2013-11-18 Andrew Pinski <apinski@cavium.com>
7413 Steve Ellcey <sellcey@mips.com>
7414
7415 PR target/56552
7416 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
7417 type restriction from equality_operator on conditonal move.
7418 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
7419 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
7420
7421 2013-11-18 Jeff Law <law@redhat.com>
7422
7423 * tree-ssa-threadupdate.c: Fix file block comment.
7424 Fix minor indention issue.
7425
7426 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
7427
7428 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
7429 ix86_address_subreg_operand. Move subreg checks to
7430 ix86_validate_address_register. Move address override check to
7431 ix86_legitimate_address_p.
7432 (ix86_validate_address_register): New function.
7433 (ix86_legitimate_address_p): Call ix86_validate_address_register
7434 to validate base and index registers. Add address override check
7435 from ix86_decompose_address.
7436 (ix86_decompose_address): Remove.
7437
7438 2013-11-18 Richard Biener <rguenther@suse.de>
7439
7440 PR tree-optimization/59125
7441 PR tree-optimization/54570
7442 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
7443 is not complete do not treat component-references with offset zero
7444 but different fields as equal.
7445 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
7446 (compute_object_sizes): Apply TLC. Propagate the constant
7447 results into all uses and fold their stmts.
7448 * passes.def (pass_all_optimizations): Move pass_object_sizes
7449 after the first pass_forwprop and before pass_fre.
7450
7451 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7452
7453 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
7454 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
7455 (tree_ctz): Remove cast to unsigned type.
7456 * builtins.c (fold_builtin_memory_op): Likewise.
7457 * dwarf2out.c (descr_info_loc): Likewise.
7458 * godump.c (go_output_typedef): Likewise.
7459 * omp-low.c (expand_omp_simd): Likewise.
7460 * stor-layout.c (excess_unit_span): Likewise.
7461 * tree-object-size.c (addr_object_size): Likewise.
7462 * tree-sra.c (analyze_all_variable_accesses): Likewise.
7463 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
7464 (simplify_rotate): Likewise.
7465 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
7466 (handle_pointer_plus): Likewise.
7467 * tree-switch-conversion.c (check_range): Likewise.
7468 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
7469 * tsan.c (instrument_builtin_call): Likewise.
7470 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
7471 * trans-mem.c (tm_log_add): Likewise.
7472 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
7473 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
7474 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
7475 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
7476
7477 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7478
7479 * tree.h (host_integerp, tree_low_cst): Delete.
7480 * tree.c (host_integerp, tree_low_cst): Delete.
7481
7482 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7483
7484 * expr.h: Update comments to refer to tree_to_[su]hwi rather
7485 than tree_low_cst.
7486 * fold-const.c (fold_binary_loc): Likewise.
7487 * expr.c (store_constructor): Use tree_to_uhwi rather than
7488 tree_low_cst.
7489 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
7490 * stmt.c (emit_case_dispatch_table): Likewise.
7491 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
7492
7493 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7494
7495 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
7496 config/aarch64/aarch64.c, config/alpha/predicates.md,
7497 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
7498 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
7499 config/mep/mep-pragma.c, config/mips/mips.c,
7500 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
7501 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
7502 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
7503 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
7504 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
7505 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
7506 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
7507 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
7508 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
7509 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
7510
7511 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7512
7513 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
7514 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
7515 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
7516 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
7517 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
7518 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
7519 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
7520 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
7521 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
7522 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
7523 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
7524
7525 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7526
7527 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
7528 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
7529
7530 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7531
7532 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
7533 than host_integerp.
7534
7535 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7536
7537 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
7538 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
7539 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
7540 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
7541 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
7542 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
7543 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
7544 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
7545 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
7546 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
7547 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
7548 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
7549 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
7550 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
7551 tree_fits_uhwi_p throughout.
7552
7553 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7554
7555 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
7556 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
7557 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
7558 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
7559 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
7560 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
7561 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
7562 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
7563 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
7564 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
7565 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
7566 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
7567 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
7568 throughout.
7569
7570 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
7571
7572 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
7573 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
7574
7575 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
7576
7577 * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
7578 flag if it kills its address, not its post-increment.
7579
7580 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
7581
7582 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
7583 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
7584 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
7585 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
7586 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
7587 (gimple_call_with_bounds_p): New.
7588 (gimple_call_set_with_bounds): New.
7589 (gimple_call_num_nobnd_args): Remove.
7590 (gimple_call_nobnd_arg): Remove.
7591 * tree.h (CALL_WITH_BOUNDS_P): New.
7592 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
7593
7594 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
7595
7596 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
7597 (symtab_node_name): Rename to symtab_node::name.
7598 (cgraph_node_asm_name): Remove.
7599 (varpool_node_asm_name): Remove.
7600 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
7601 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
7602 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
7603 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
7604 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
7605
7606 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7607
7608 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
7609 * config/arm/arm.c (arm_cortex_a53_tune): New.
7610 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
7611
7612 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7613
7614 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
7615 (case ${target}): Add bdver4.
7616 * config/i386/bdver3.md: Add bdver4.
7617 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
7618 -march=native recognize bdver4 processors.
7619 * config/i386/i386-c.c (ix86_target_macros_internal): Add
7620 bdver4 def_and_undef
7621 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
7622 (m_BDVER4): New definition.
7623 (m_AMD_MULTIPLE): Includes m_BDVER4.
7624 (processor_target_table): Add bdver4 entry.
7625 (static const char *const cpu_names): Add bdver4 entry.
7626 (software_prefetching_beneficial_p): Add bdver3.
7627 (ix86_option_override_internal): Add bdver4 instruction sets.
7628 (ix86_issue_rate): Add bdver4.
7629 (ix86_adjust_cost): Add bdver4.
7630 (ia32_multipass_dfa_lookahead): Add bdver4.
7631 (enum processor_model): Add M_AMDFAM15H_BDVER4.
7632 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
7633 (has_dispatch): Add bdver4.
7634 * config/i386/i386.h (TARGET_BDVER4): New definition.
7635 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
7636 (enum processor_type): Add PROCESSOR_BDVER4.
7637 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
7638 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
7639 * doc/extend.texi: Add details about bdver4.
7640 * doc/invoke.texi: Add details about bdver4. Add
7641 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
7642
7643 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7644
7645 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
7646 sdmode_stack_slot also in little-endian mode.
7647
7648 2013-11-17 Jan Hubicka <jh@suse.cz>
7649
7650 * doc/md.texi (setmem, movstr): Update documentation.
7651 * builtins.c (determine_block_size): New function.
7652 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
7653 (expand_builtin_memset_args): Use it and pass it to
7654 set_storage_via_setmem.
7655 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
7656 parameters; update call to expander.
7657 (emit_block_move_hints): Add min_size/max_size parameters.
7658 (clear_storage_hints): Likewise.
7659 (set_storage_via_setmem): Likewise.
7660 (clear_storage): Update.
7661 * expr.h (emit_block_move_hints, clear_storage_hints,
7662 set_storage_via_setmem): Update prototypes.
7663 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
7664 (ix86_expand_movmem, ix86_expand_setmem): Remove.
7665 (ix86_expand_movmem, ix86_expand_setmem): Remove.
7666 * i386.md (movmem, setmem): Pass parameters.
7667
7668 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
7669
7670 PR target/59153
7671 * config/i386/i386.c (ix86_address_subreg_operand): Do not
7672 reject non-integer subregs.
7673 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
7674 Move check for invalid x32 constant addresses ...
7675 (ix86_legitimate_address_p): ... here.
7676
7677 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7678
7679 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
7680 parameter and use it in REG_FRAME_RELATED_EXPR note.
7681 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
7682 parameter.
7683 (rs6000_emit_prologue): Likewise, but for little endian VSX
7684 stores, pass the source register of the store instead.
7685
7686 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
7687
7688 * gimple.h: Reorder prototypes to match .c declaration order, and
7689 remove protyotypes for functions not in gimple.c.
7690 (LABEL): Move to tree-into-ssa.c.
7691 * gimple.c: Remove unused prototypes.
7692 (get_base_address): Move to tree.c.
7693 * tree.c (get_base_address): Relocate from gimple.c.
7694 * builtins.h (validate_gimple_arglist): Add prototype.
7695 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
7696 * cfgexpand.h: New File.
7697 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
7698 * tree.h (build_addr): Move to tree-nested.h.
7699 * tree-nested.h: New File.
7700 (build_addr, lower_nested_functions, insert_field_into_struct): Add
7701 prototypes.
7702 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
7703 * ipa-inline-analysis.c: Include cfgexpand.h.
7704 * cgraphunit.c: Include tree-nested.h.
7705 * omp-low.c: Likewise.
7706 * tree-parloops.c: Likewise.
7707 * gimple-low.h: Likewise.
7708 * tree-profile.h: Likewise.
7709 * expr.c: Include cfgexpand.h.
7710 * tree-affine.c: Likewise.
7711 * tree-ssa.c: Likewise.
7712 * tree-ssa-loop-im.c: Include trans-mem.h.
7713 * tree-ssa-tail-merge.c: Likewise.
7714 * value-prof.c: Include builtins.h and tree-nested.h.
7715 * tree-into-ssa.c (LABEL): Define here.
7716
7717 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
7718
7719 * config/arc/arc.c (arc_predicate_delay_insns): New function.
7720 (pass_data_arc_predicate_delay_insns): New pass_data instance.
7721 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
7722 (make_pass_arc_predicate_delay_insns): New function.
7723 (arc_init): Register pass_arc_predicate_delay_insns if
7724 flag_delayed_branch is active.
7725
7726 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
7727
7728 * config/arc/constraints.md (Rcq): Simplify register number test.
7729
7730 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
7731
7732 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
7733
7734 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
7735
7736 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
7737 is null.
7738
7739 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
7740
7741 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
7742 * gimple-pretty-print.c (dump_omp_for): Add case for
7743 GF_OMP_FOR_KIND_CILKSIMD.
7744 * gimple.h (enum gf_mask): Restructure entries to add
7745 GF_OMP_FOR_KIND_CILKSIMD.
7746 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
7747 (gimplify_omp_for): Handle CILK_SIMD.
7748 (gimplify_expr): Add ccase for CILK_SIMD.
7749 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
7750 (build_outer_var_ref): Same.
7751 (check_omp_nesting_restrictions): Same.
7752 (lower_rec_input_clauses): Same.
7753 (lower_lastprivate_clauses): Same.
7754 (expand_omp_for): Same.
7755 (execute_expand_omp): Check flag_enable_cilkplus.
7756 (execute_lower_omp): Same.
7757 (diagnose_sb_0): Handle CILK_SIMD.
7758 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
7759 (setjmp_or_longjmp_p): New.
7760 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
7761 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
7762 * tree.def: Add tree code for CILK_SIMD.
7763
7764 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7765
7766 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
7767 Remove.
7768 (altivec_vperm_<mode>): Revert earlier little endian change.
7769 (*altivec_vperm_<mode>_internal): Remove.
7770 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
7771 (*altivec_vperm_<mode>_uns_internal): Remove.
7772 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
7773
7774 2013-11-15 Jeff Law <law@redhat.com>
7775
7776 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
7777 has_abnormal_or_outgoing_edge. Check for EH edges as well.
7778 * gimple-ssa-isolate-paths.c
7779 (find_implicit_erroneous_behaviour): Corresponding changes.
7780 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
7781 (find_explicit_erroneous_behaviour): Likewise.
7782
7783 2013-11-15 Jeff Law <law@redhat.com>
7784
7785 * ifcvt.c (find_cond_trap): Properly handle case where
7786 trap_bb == else_bb.
7787
7788 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
7789
7790 * configure: Regenerate.
7791
7792 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
7793
7794 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
7795 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
7796 where it is incorrect or missing.
7797
7798 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
7799
7800 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
7801 host_integerp test.
7802 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
7803 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
7804 constant.
7805 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
7806 pair with a TREE_CODE test and TREE_INT_CST_LOW.
7807 * tree-vect-generic.c (expand_vector_divmod): Likewise.
7808
7809 2013-11-15 Richard Biener <rguenther@suse.de>
7810
7811 PR tree-optimization/50262
7812 * tree-ssa-alias.h (struct pt_solution): Split
7813 vars_contains_global into vars_contains_nonlocal,
7814 vars_contains_escaped and vars_contains_escaped_heap.
7815 * tree-ssa-structalias.c (label_visit): Expand comment.
7816 (handle_lhs_call): Adjust comment.
7817 (set_uids_in_ptset): Set the new flags appropriately.
7818 (pt_solution_set): Adjust.
7819 (pt_solution_set_var): Likewise.
7820 (pt_solution_ior_into): Likewise.
7821 (pt_solution_includes_global): Likewise.
7822 (pt_solutions_intersect_1): Optimize escaped handling.
7823 (compute_points_to_sets): Remove heap variable globalization.
7824 (ipa_escaped_pt): Adjust initializer.
7825 (pass_data_ipa_pta): Do not run TODO_update_ssa.
7826 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
7827 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
7828
7829 2013-11-15 Richard Biener <rguenther@suse.de>
7830
7831 * tree-loop-distribution.c (tree_loop_distribution): Make sure
7832 to distribute all stores.
7833
7834 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7835
7836 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
7837
7838 2013-11-15 Joseph Myers <joseph@codesourcery.com>
7839
7840 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
7841 * configure.ac: Determine target_header_dir earlier.
7842 (--with-glibc-version): New configure option.
7843 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
7844 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
7845 * configure: Regenerate.
7846 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
7847 native toolchains for default.
7848 (--with-glibc-version): Document.
7849
7850 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
7851
7852 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
7853
7854 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
7855
7856 * lto-streamer-in.c (input function): Call cgraph_create_node if
7857 cgraph_get_node failed.
7858
7859 2013-11-14 Olivier Hainque <hainque@adacore.com>
7860
7861 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
7862 defer allocation of DECL_IGNORED_P variables at toplevel unless really
7863 small. Factorize size threshold computation from the existing one.
7864 (expand_used_vars): Refine comment.
7865
7866 2013-11-14 Cong Hou <congh@google.com>
7867
7868 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
7869 address field as it can be obtained from dr. Rename the struct.
7870 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
7871 steps of data references during sort.
7872 (vect_prune_runtime_alias_test_list): Adjust with the change to
7873 struct dr_with_seg_len.
7874 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
7875 Adjust with the change to struct dr_with_seg_len.
7876
7877 2013-11-14 Jeff Law <law@redhat.com>
7878
7879 PR middle-end/59127
7880 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
7881 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
7882 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
7883 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
7884 edges, then ignore it. If the statement exhibiting erroneous
7885 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
7886 then we can not optimize.
7887 (find_explicit_erroneous_behaviour): Likewise.
7888
7889 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
7890
7891 * gimplify-me.h: New file. Add prototypes.
7892 * gimplify.h: Don't include gimple.h.
7893 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
7894 Relocate from gimple.h.
7895 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
7896 is_gimple_sizepos): Move to gimplify.h.
7897 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
7898 (enum gsi_iterator_update): Move to gimple-iterator.h.
7899 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
7900 * gimplify-me.c: New File.
7901 (force_gimple_operand_1, force_gimple_operand,
7902 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
7903 gimple_regimplify_operands): Relocate from gimplify.c.
7904 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
7905 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
7906 gimple_regimplify_operands): Move to gimplify-me.c.
7907 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
7908 from gimple.h.
7909 * Makefile.in (OBJS): Add gimplify-me.o
7910 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
7911 required.
7912 * cfgloopmanip.c: Likewise.
7913 * cgraphunit.c: Likewise.
7914 * cilk-common.c: Likewise.
7915 * fold-const.c: Likewise.
7916 * function.c: Likewise.
7917 * gimple-expr.c: Likewise.
7918 * gimple-fold.c: Likewise.
7919 * gimple-ssa-strength-reduction.c: Likewise.
7920 * gimple.c: Likewise.
7921 * graphite-clast-to-gimple.c: Likewise.
7922 * graphite-sese-to-poly.c: Likewise.
7923 * ipa-prop.c: Likewise.
7924 * ipa-split.c: Likewise.
7925 * ipa.c: Likewise.
7926 * langhooks.c: Likewise.
7927 * omp-low.c: Likewise.
7928 * sese.c: Likewise.
7929 * stor-layout.c: Likewise.
7930 * targhooks.c: Likewise.
7931 * trans-mem.c: Likewise.
7932 * tree-affine.c: Likewise.
7933 * tree-cfg.c: Likewise.
7934 * tree-cfgcleanup.c: Likewise.
7935 * tree-complex.c: Likewise.
7936 * tree-if-conv.c: Likewise.
7937 * tree-inline.c: Likewise.
7938 * tree-loop-distribution.c: Likewise.
7939 * tree-nested.c: Likewise.
7940 * tree-parloops.c: Likewise.
7941 * tree-predcom.c: Likewise.
7942 * tree-profile.c: Likewise.
7943 * tree-scalar-evolution.c: Likewise.
7944 * tree-sra.c: Likewise.
7945 * tree-ssa-address.c: Likewise.
7946 * tree-ssa-ccp.c: Likewise.
7947 * tree-ssa-dce.c: Likewise.
7948 * tree-ssa-forwprop.c: Likewise.
7949 * tree-ssa-ifcombine.c: Likewise.
7950 * tree-ssa-loop-im.c: Likewise.
7951 * tree-ssa-loop-ivopts.c: Likewise.
7952 * tree-ssa-loop-manip.c: Likewise.
7953 * tree-ssa-loop-niter.c: Likewise.
7954 * tree-ssa-loop-prefetch.c: Likewise.
7955 * tree-ssa-loop-unswitch.c: Likewise.
7956 * tree-ssa-math-opts.c: Likewise.
7957 * tree-ssa-phiopt.c: Likewise.
7958 * tree-ssa-phiprop.c: Likewise.
7959 * tree-ssa-pre.c: Likewise.
7960 * tree-ssa-propagate.c: Likewise.
7961 * tree-ssa-reassoc.c: Likewise.
7962 * tree-ssa-sccvn.c: Likewise.
7963 * tree-ssa-strlen.c: Likewise.
7964 * tree-ssa.c: Likewise.
7965 * tree-switch-conversion.c: Likewise.
7966 * tree-tailcall.c: Likewise.
7967 * tree-vect-data-refs.c: Likewise.
7968 * tree-vect-generic.c: Likewise.
7969 * tree-vect-loop-manip.c: Likewise.
7970 * tree-vect-loop.c: Likewise.
7971 * tree-vect-patterns.c: Likewise.
7972 * tree-vect-stmts.c: Likewise.
7973 * tree.c: Likewise.
7974 * tsan.c: Likewise.
7975 * value-prof.c: Likewise.
7976 * config/aarch64/aarch64.c: Likewise.
7977 * config/alpha/alpha.c: Likewise.
7978 * config/darwin.c: Likewise.
7979 * config/i386/i386.c: Likewise.
7980 * config/ia64/ia64.c: Likewise.
7981 * config/mep/mep.c: Likewise.
7982 * config/mips/mips.c: Likewise.
7983 * config/rs6000/rs6000.c: Likewise.
7984 * config/s390/s390.c: Likewise.
7985 * config/sh/sh.c: Likewise.
7986 * config/sparc/sparc.c: Likewise.
7987 * config/spu/spu.c: Likewise.
7988 * config/stormy16/stormy16.c: Likewise.
7989 * config/tilegx/tilegx.c: Likewise.
7990 * config/tilepro/tilepro.c: Likewise.
7991 * config/xtensa/xtensa.c: Likewise.
7992
7993 2013-11-14 Diego Novillo <dnovillo@google.com>
7994
7995 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
7996
7997 2013-11-14 Diego Novillo <dnovillo@google.com>
7998
7999 * tree.h: Include fold-const.h.
8000 (aggregate_value_p): Moved to function.h.
8001 (alloca_call_p): Moved to calls.h.
8002 (allocate_struct_function): Moved to function.h.
8003 (apply_tm_attr): Moved to attribs.h.
8004 (array_at_struct_end_p): Moved to expr.h.
8005 (array_ref_element_size): Moved to tree-dfa.h.
8006 (array_ref_low_bound): Moved to tree-dfa.h.
8007 (array_ref_up_bound): Moved to tree.h.
8008 (assemble_alias): Moved to cgraph.h.
8009 (bit_from_pos): Moved to stor-layout.h.
8010 (build_addr): Moved to tree-nested.h.
8011 (build_duplicate_type): Moved to tree-inline.h.
8012 (build_fold_addr_expr): Moved to fold-const.h.
8013 (build_fold_addr_expr_with_type): Moved to fold-const.h.
8014 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
8015 (build_fold_indirect_ref): Moved to fold-const.h.
8016 (build_fold_indirect_ref_loc): Moved to fold-const.h.
8017 (build_personality_function): Moved to tree.h.
8018 (build_range_check): Moved to fold-const.h.
8019 (build_simple_mem_ref): Moved to fold-const.h.
8020 (build_simple_mem_ref_loc): Moved to fold-const.h.
8021 (build_tm_abort_call): Moved to trans-mem.h.
8022 (byte_from_pos): Moved to stor-layout.h.
8023 (call_expr_flags): Moved to calls.h.
8024 (can_move_by_pieces): Moved to expr.h.
8025 (categorize_ctor_elements): Moved to expr.h.
8026 (change_decl_assembler_name): Moved to gcc-symtab.h.
8027 (combine_comparisons): Moved to fold-const.h.
8028 (complete_ctor_at_level_p): Moved to tree.h.
8029 (component_ref_field_offset): Moved to tree-dfa.h.
8030 (compute_builtin_object_size): Moved to tree-object-size.h.
8031 (compute_record_mode): Moved to stor-layout.h.
8032 (constant_boolean_node): Moved to fold-const.h.
8033 (constructor_static_from_elts_p): Moved to varasm.h.
8034 (cxx11_attribute_p): Moved to attribs.h.
8035 (debug_body): Moved to print-tree.h.
8036 (debug_find_tree): Moved to tree-inline.h.
8037 (debug_fold_checksum): Moved to fold-const.h.
8038 (debug_head): Moved to print-tree.h.
8039 (debug_head): Moved to print-tree.h.
8040 (debug_raw): Moved to print-tree.h.
8041 (debug_tree): Moved to print-tree.h.
8042 (debug_vec_tree): Moved to print-tree.h.
8043 (debug_verbose): Moved to print-tree.h.
8044 (debug_verbose): Moved to print-tree.h.
8045 (decl_attributes): Moved to attribs.h.
8046 (decl_binds_to_current_def_p): Moved to varasm.h.
8047 (decl_default_tls_model): Moved to varasm.h.
8048 (decl_replaceable_p): Moved to varasm.h.
8049 (div_if_zero_remainder): Moved to fold-const.h.
8050 (double_int mem_ref_offset): Moved to fold-const.h.
8051 (dump_addr): Moved to print-tree.h.
8052 (element_precision): Moved to machmode.h.
8053 (expand_dummy_function_end): Moved to function.h.
8054 (expand_function_end): Moved to function.h.
8055 (expand_function_start): Moved to function.h.
8056 (expand_label): Moved to stmt.h.
8057 (expr_first): Moved to tree-iterator.h.
8058 (expr_last): Moved to tree-iterator.h.
8059 (finalize_size_functions): Moved to stor-layout.h.
8060 (finish_builtin_struct): Moved to stor-layout.h.
8061 (finish_record_layout): Moved to stor-layout.h.
8062 (fixup_signed_type): Moved to stor-layout.h.
8063 (fixup_unsigned_type): Moved to stor-layout.h.
8064 (flags_from_decl_or_type): Moved to calls.h.
8065 (fold): Moved to fold-const.h.
8066 (fold_abs_const): Moved to fold-const.h.
8067 (fold_binary): Moved to fold-const.h.
8068 (fold_binary_loc): Moved to fold-const.h.
8069 (fold_binary_to_constant): Moved to fold-const.h.
8070 (fold_build1): Moved to fold-const.h.
8071 (fold_build1_initializer_loc): Moved to fold-const.h.
8072 (fold_build1_loc): Moved to fold-const.h.
8073 (fold_build1_stat_loc): Moved to fold-const.h.
8074 (fold_build2): Moved to fold-const.h.
8075 (fold_build2_initializer_loc): Moved to fold-const.h.
8076 (fold_build2_loc): Moved to fold-const.h.
8077 (fold_build2_stat_loc): Moved to fold-const.h.
8078 (fold_build3): Moved to fold-const.h.
8079 (fold_build3_loc): Moved to fold-const.h.
8080 (fold_build3_stat_loc): Moved to fold-const.h.
8081 (fold_build_call_array): Moved to fold-const.h.
8082 (fold_build_call_array_initializer): Moved to fold-const.h.
8083 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
8084 (fold_build_call_array_loc): Moved to fold-const.h.
8085 (fold_build_cleanup_point_expr): Moved to fold-const.h.
8086 (fold_convert): Moved to fold-const.h.
8087 (fold_convert_loc): Moved to fold-const.h.
8088 (fold_convertible_p): Moved to fold-const.h.
8089 (fold_defer_overflow_warnings): Moved to fold-const.h.
8090 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
8091 (fold_fma): Moved to fold-const.h.
8092 (fold_ignored_result): Moved to fold-const.h.
8093 (fold_indirect_ref): Moved to fold-const.h.
8094 (fold_indirect_ref_1): Moved to fold-const.h.
8095 (fold_indirect_ref_loc): Moved to fold-const.h.
8096 (fold_read_from_constant_string): Moved to fold-const.h.
8097 (fold_real_zero_addition_p): Moved to fold-const.h.
8098 (fold_single_bit_test): Moved to fold-const.h.
8099 (fold_strip_sign_ops): Moved to fold-const.h.
8100 (fold_ternary): Moved to fold-const.h.
8101 (fold_ternary_loc): Moved to fold-const.h.
8102 (fold_unary): Moved to tree-data-ref.h.
8103 (fold_unary_ignore_overflow): Moved to fold-const.h.
8104 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
8105 (fold_unary_loc): Moved to fold-const.h.
8106 (fold_unary_to_constant): Moved to fold-const.h.
8107 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
8108 (fold_undefer_overflow_warnings): Moved to fold-const.h.
8109 (folding_initializer): Moved to fold-const.h.
8110 (free_temp_slots): Moved to function.h.
8111 (generate_setjmp_warnings): Moved to function.h.
8112 (get_attribute_name): Moved to attribs.h.
8113 (get_identifier): Moved to stringpool.h.
8114 (get_identifier_with_length): Moved to stringpool.h.
8115 (get_inner_reference): Moved to tree.h.
8116 (gimple_alloca_call_p): Moved to calls.h.
8117 (gimplify_parameters): Moved to function.h.
8118 (highest_pow2_factor): Moved to expr.h.
8119 (indent_to): Moved to print-tree.h.
8120 (init_attributes): Moved to attribs.h.
8121 (init_dummy_function_start): Moved to function.h.
8122 (init_function_start): Moved to function.h.
8123 (init_inline_once): Moved to tree-inline.h.
8124 (init_object_sizes): Moved to tree-object-size.h.
8125 (init_temp_slots): Moved to function.h.
8126 (init_tree_optimization_optabs): Moved to optabs.h.
8127 (initialize_sizetypes): Moved to stor-layout.h.
8128 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
8129 (initializer_constant_valid_p): Moved to varasm.h.
8130 (int_const_binop): Moved to fold-const.h.
8131 (internal_reference_types): Moved to stor-layout.h.
8132 (invert_tree_comparison): Moved to fold-const.h.
8133 (invert_truthvalue): Moved to fold-const.h.
8134 (invert_truthvalue_loc): Moved to fold-const.h.
8135 (is_tm_ending_fndecl): Moved to trans-mem.h.
8136 (is_tm_may_cancel_outer): Moved to trans-mem.h.
8137 (is_tm_pure): Moved to trans-mem.h.
8138 (is_tm_safe): Moved to trans-mem.h.
8139 (layout_decl): Moved to stor-layout.h.
8140 (layout_type): Moved to stor-layout.h.
8141 (lookup_attribute_spec): Moved to attribs.h.
8142 (make_accum_type): Moved to stor-layout.h.
8143 (make_decl_one_only): Moved to varasm.h.
8144 (make_decl_rtl): Moved to tree.h.
8145 (make_decl_rtl_for_debug): Moved to varasm.h.
8146 (make_fract_type): Moved to stor-layout.h.
8147 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
8148 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
8149 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
8150 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
8151 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
8152 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
8153 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
8154 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
8155 (make_range): Moved to fold-const.h.
8156 (make_range_step): Moved to fold-const.h.
8157 (make_sat_signed_accum_type): Moved to stor-layout.h.
8158 (make_sat_signed_fract_type): Moved to stor-layout.h.
8159 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
8160 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
8161 (make_signed_accum_type): Moved to stor-layout.h.
8162 (make_signed_fract_type): Moved to stor-layout.h.
8163 (make_signed_type): Moved to stor-layout.h.
8164 (make_unsigned_accum_type): Moved to stor-layout.h.
8165 (make_unsigned_fract_type): Moved to stor-layout.h.
8166 (make_unsigned_type): Moved to stor-layout.h.
8167 (mark_decl_referenced): Moved to varasm.h.
8168 (mark_referenced): Moved to varasm.h.
8169 (may_negate_without_overflow_p): Moved to fold-const.h.
8170 (maybe_get_identifier): Moved to stringpool.h.
8171 (merge_ranges): Moved to fold-const.h.
8172 (merge_weak): Moved to varasm.h.
8173 (mode_for_size_tree): Moved to stor-layout.h.
8174 (multiple_of_p): Moved to fold-const.h.
8175 (must_pass_in_stack_var_size): Moved to calls.h.
8176 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
8177 (native_encode_expr): Moved to fold-const.h.
8178 (native_interpret_expr): Moved to fold-const.h.
8179 (non_lvalue): Moved to fold-const.h.
8180 (non_lvalue_loc): Moved to fold-const.h.
8181 (normalize_offset): Moved to stor-layout.h.
8182 (normalize_rli): Moved to stor-layout.h.
8183 (notice_global_symbol): Moved to varasm.h.
8184 (omit_one_operand): Moved to fold-const.h.
8185 (omit_one_operand_loc): Moved to fold-const.h.
8186 (omit_two_operands): Moved to fold-const.h.
8187 (omit_two_operands_loc): Moved to fold-const.h.
8188 (operand_equal_p): Moved to tree-data-ref.h.
8189 (parse_input_constraint): Moved to stmt.h.
8190 (parse_output_constraint): Moved to stmt.h.
8191 (place_field): Moved to stor-layout.h.
8192 (pop_function_context): Moved to function.h.
8193 (pop_temp_slots): Moved to function.h.
8194 (pos_from_bit): Moved to stor-layout.h.
8195 (preserve_temp_slots): Moved to function.h.
8196 (print_node): Moved to print-tree.h.
8197 (print_node_brief): Moved to print-tree.h.
8198 (print_rtl): Moved to rtl.h.
8199 (process_pending_assemble_externals): Moved to varasm.h.
8200 (ptr_difference_const): Moved to fold-const.h.
8201 (push_function_context): Moved to function.h.
8202 (push_struct_function): Moved to function.h.
8203 (push_temp_slots): Moved to function.h.
8204 (record_tm_replacement): Moved to trans-mem.h.
8205 (relayout_decl): Moved to stor-layout.h.
8206 (resolve_asm_operand_names): Moved to stmt.h.
8207 (resolve_unique_section): Moved to varasm.h.
8208 (rli_size_so_far): Moved to stor-layout.h.
8209 (rli_size_unit_so_far): Moved to stor-layout.h.
8210 (round_down): Moved to fold-const.h.
8211 (round_down_loc): Moved to fold-const.h.
8212 (round_up): Moved to fold-const.h.
8213 (round_up_loc): Moved to fold-const.h.
8214 (set_decl_incoming_rtl): Moved to emit-rtl.h.
8215 (set_decl_rtl): Moved to tree.h.
8216 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
8217 (set_user_assembler_name): Moved to varasm.h.
8218 (setjmp_call_p): Moved to calls.h.
8219 (size_binop): Moved to fold-const.h.
8220 (size_binop_loc): Moved to fold-const.h.
8221 (size_diffop): Moved to fold-const.h.
8222 (size_diffop_loc): Moved to fold-const.h.
8223 (size_int_kind): Moved to fold-const.h.
8224 (stack_protect_epilogue): Moved to function.h.
8225 (start_record_layout): Moved to stor-layout.h.
8226 (supports_one_only): Moved to varasm.h.
8227 (swap_tree_comparison): Moved to fold-const.h.
8228 (tm_malloc_replacement): Moved to trans-mem.h.
8229 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
8230 (tree build_invariant_address): Moved to fold-const.h.
8231 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
8232 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
8233 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
8234 (tree_expr_nonnegative_p): Moved to fold-const.h.
8235 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
8236 (tree_output_constant_def): Moved to varasm.h.
8237 (tree_overlaps_hard_reg_set): Moved to stmt.h.
8238 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
8239 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
8240 (tree_swap_operands_p): Moved to fold-const.h.
8241 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
8242 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
8243 (update_alignment_for_field): Moved to stor-layout.h.
8244 (use_register_for_decl): Moved to function.h.
8245 (variable_size): Moved to rtl.h.
8246 (vector_type_mode): Moved to stor-layout.h.
8247 * cgraph.h: Corresponding changes.
8248 * emit-rtl.h: Corresponding changes.
8249 * expr.h: Corresponding changes.
8250 * function.h: Corresponding changes.
8251 * optabs.h: Corresponding changes.
8252 * trans-mem.h: Corresponding changes.
8253 Protect against multiple inclusion.
8254 * tree-inline.h: Corresponding changes.
8255 * tree-iterator.h: Corresponding changes.
8256 * tree-dfa.h: Include expr.h.
8257 * tree-ssanames.h: Include stringpool.h.
8258 * attribs.h: New file.
8259 * calls.h: New file.
8260 * fold-const.h: New file.
8261 * gcc-symtab.h: New file.
8262 * print-rtl.h: New file.
8263 * print-tree.h: New file.
8264 * stmt.h: New file.
8265 * stor-layout.h: New file.
8266 * strinpool.h: New file.
8267 * tree-nested.h: New file
8268 * tree-object-size.h: New file.
8269 * varasm.h: New file.
8270
8271 2013-11-14 Diego Novillo <dnovillo@google.com>
8272
8273 * alias.c: Include varasm.h.
8274 Include expr.h.
8275 * asan.c: Include calls.h.
8276 Include stor-layout.h.
8277 Include varasm.h.
8278 * attribs.c: Include stringpool.h.
8279 Include attribs.h.
8280 Include stor-layout.h.
8281 * builtins.c: Include stringpool.h.
8282 Include stor-layout.h.
8283 Include calls.h.
8284 Include varasm.h.
8285 Include tree-object-size.h.
8286 * calls.c: Include stor-layout.h.
8287 Include varasm.h.
8288 Include stringpool.h.
8289 Include attribs.h.
8290 * cfgexpand.c: Include stringpool.h.
8291 Include varasm.h.
8292 Include stor-layout.h.
8293 Include stmt.h.
8294 Include print-tree.h.
8295 * cgraph.c: Include varasm.h.
8296 Include calls.h.
8297 Include print-tree.h.
8298 * cgraphclones.c: Include stringpool.h.
8299 Include function.h.
8300 Include emit-rtl.h.
8301 Move inclusion of rtl.h earlier in the file.
8302 * cgraphunit.c: Include varasm.h.
8303 Include stor-layout.h.
8304 Include stringpool.h.
8305 * cilk-common.c: Include stringpool.h.
8306 Include stor-layout.h.
8307 * combine.c: Include stor-layout.h.
8308 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
8309 Include stringpool.h.
8310 Include calls.h.
8311 * config/aarch64/aarch64.c: Include stringpool.h.
8312 Include stor-layout.h.
8313 Include calls.h.
8314 Include varasm.h.
8315 * config/alpha/alpha.c: Include stor-layout.h.
8316 Include calls.h.
8317 Include varasm.h.
8318 * config/arc/arc.c: Include varasm.h.
8319 Include stor-layout.h.
8320 Include stringpool.h.
8321 Include calls.h.
8322 * config/arm/arm.c: Include stringpool.h.
8323 Include stor-layout.h.
8324 Include calls.h.
8325 Include varasm.h.
8326 * config/avr/avr-c.c: Include stor-layout.h.
8327 * config/avr/avr-log.c: Include print-tree.h.
8328 * config/avr/avr.c: Include print-tree.h.
8329 Include calls.h.
8330 Include stor-layout.h.
8331 Include stringpool.h.
8332 * config/bfin/bfin.c: Include varasm.h.
8333 Include calls.h.
8334 * config/c6x/c6x.c: Include stor-layout.h.
8335 Include varasm.h.
8336 Include calls.h.
8337 Include stringpool.h.
8338 * config/cr16/cr16.c: Include stor-layout.h.
8339 Include calls.h.
8340 * config/cris/cris.c: Include varasm.h.
8341 Include stor-layout.h.
8342 Include calls.h.
8343 Include stmt.h.
8344 * config/darwin.c: Include stringpool.h.
8345 Include varasm.h.
8346 Include stor-layout.h.
8347 * config/epiphany/epiphany.c: Include stor-layout.h.
8348 Include varasm.h.
8349 Include calls.h.
8350 Include stringpool.h.
8351 * config/fr30/fr30.c: Include stor-layout.h.
8352 Include varasm.h.
8353 * config/frv/frv.c: Include varasm.h.
8354 Include stor-layout.h.
8355 Include stringpool.h.
8356 * config/h8300/h8300.c: Include stor-layout.h.
8357 Include varasm.h.
8358 Include calls.h.
8359 Include stringpool.h.
8360 * config/i386/i386.c: Include stringpool.h.
8361 Include attribs.h.
8362 Include calls.h.
8363 Include stor-layout.h.
8364 Include varasm.h.
8365 * config/i386/winnt-cxx.c: Include stringpool.h.
8366 Include attribs.h.
8367 * config/i386/winnt.c: Include stringpool.h.
8368 Include varasm.h.
8369 * config/ia64/ia64-c.c: Include stringpool.h.
8370 * config/ia64/ia64.c: Include stringpool.h.
8371 Include stor-layout.h.
8372 Include calls.h.
8373 Include varasm.h.
8374 * config/iq2000/iq2000.c: Include stor-layout.h.
8375 Include calls.h.
8376 Include varasm.h.
8377 * config/lm32/lm32.c: Include calls.h.
8378 * config/m32c/m32c.c: Include stor-layout.h.
8379 Include varasm.h.
8380 Include calls.h.
8381 * config/m32r/m32r.c: Include stor-layout.h.
8382 Include varasm.h.
8383 Include stringpool.h.
8384 Include calls.h.
8385 * config/m68k/m68k.c: Include calls.h.
8386 Include stor-layout.h.
8387 Include varasm.h.
8388 * config/mcore/mcore.c: Include stor-layout.h.
8389 Include varasm.h.
8390 Include stringpool.h.
8391 Include calls.h.
8392 * config/mep/mep.c: Include varasm.h.
8393 Include calls.h.
8394 Include stringpool.h.
8395 Include stor-layout.h.
8396 * config/microblaze/microblaze.c: Include varasm.h.
8397 Include stor-layout.h.
8398 Include calls.h.
8399 * config/mips/mips.c: Include varasm.h.
8400 Include stringpool.h.
8401 Include stor-layout.h.
8402 Include calls.h.
8403 * config/mmix/mmix.c: Include varasm.h.
8404 Include stor-layout.h.
8405 Include calls.h.
8406 * config/mn10300/mn10300.c: Include stor-layout.h.
8407 Include varasm.h.
8408 Include calls.h.
8409 * config/moxie/moxie.c: Include stor-layout.h.
8410 Include varasm.h.
8411 Include calls.h.
8412 * config/msp430/msp430.c: Include stor-layout.h.
8413 Include calls.h.
8414 * config/nds32/nds32.c: Include stor-layout.h.
8415 Include varasm.h.
8416 Include calls.h.
8417 * config/pa/pa.c: Include stor-layout.h.
8418 Include stringpool.h.
8419 Include varasm.h.
8420 Include calls.h.
8421 * config/pdp11/pdp11.c: Include stor-layout.h.
8422 Include varasm.h.
8423 Include calls.h.
8424 * config/picochip/picochip.c: Include calls.h.
8425 Include stor-layout.h.
8426 Include stringpool.h.
8427 Include varasm.h.
8428 * config/rl78/rl78.c: Include varasm.h.
8429 Include stor-layout.h.
8430 Include calls.h.
8431 * config/rs6000/rs6000-c.c: Include stor-layout.h.
8432 Include stringpool.h.
8433 * config/rs6000/rs6000.c: Include stringpool.h.
8434 Include stor-layout.h.
8435 Include calls.h.
8436 Include print-tree.h.
8437 Include varasm.h.
8438 * config/rx/rx.c: Include varasm.h.
8439 Include stor-layout.h.
8440 Include calls.h.
8441 * config/s390/s390.c: Include print-tree.h.
8442 Include stringpool.h.
8443 Include stor-layout.h.
8444 Include varasm.h.
8445 Include calls.h.
8446 * config/score/score.c: Include stringpool.h.
8447 Include calls.h.
8448 Include varasm.h.
8449 Include stor-layout.h.
8450 * config/sh/sh-c.c: Include stringpool.h.
8451 Include attribs.h.h.
8452 * config/sh/sh.c: Include stringpool.h.
8453 Include stor-layout.h.
8454 Include calls.h.
8455 Include varasm.h.
8456 * config/sol2-c.c: Include stringpool.h.
8457 Include attribs.h.
8458 * config/sol2-cxx.c: Include stringpool.h.
8459 * config/sol2.c: Include stringpool.h.
8460 Include varasm.h.
8461 * config/sparc/sparc.c: Include stringpool.h.
8462 Include stor-layout.h.
8463 Include calls.h.
8464 Include varasm.h.
8465 * config/spu/spu-c.c: Include stringpool.h.
8466 * config/spu/spu.c: Include stringpool.h.
8467 Include stor-layout.h.
8468 Include calls.h.
8469 Include varasm.h.
8470 * config/stormy16/stormy16.c: Include stringpool.h.
8471 Include stor-layout.h.
8472 Include varasm.h.
8473 Include calls.h.
8474 * config/tilegx/tilegx.c: Include stringpool.h.
8475 Include stor-layout.h.
8476 Include varasm.h.
8477 Include calls.h.
8478 * config/tilepro/tilepro.c: Include stringpool.h.
8479 Include stor-layout.h.
8480 Include varasm.h.
8481 Include calls.h.
8482 * config/v850/v850-c.c: Include stringpool.h.
8483 Include attribs.h.
8484 * config/v850/v850.c: Include stringpool.h.
8485 Include stor-layout.h.
8486 Include varasm.h.
8487 Include calls.h.
8488 * config/vax/vax.c: Include calls.h.
8489 Include varasm.h.
8490 * config/vms/vms.c: Include stringpool.h.
8491 * config/vxworks.c: Include stringpool.h.
8492 * config/xtensa/xtensa.c: Include stringpool.h.
8493 Include stor-layout.h.
8494 Include calls.h.
8495 Include varasm.h.
8496 * convert.c: Include stor-layout.h.
8497 * coverage.c: Include stringpool.h.
8498 Include stor-layout.h.
8499 * dbxout.c: Include varasm.h.
8500 Include stor-layout.h.
8501 * dojump.c: Include stor-layout.h.
8502 * dse.c: Include stor-layout.h.
8503 * dwarf2asm.c: Include stringpool.h.
8504 Include varasm.h.
8505 * dwarf2cfi.c: Include stor-layout.h.
8506 * dwarf2out.c: Include rtl.h.
8507 Include stringpool.h.
8508 Include stor-layout.h.
8509 Include varasm.h.
8510 Include function.h.
8511 Include emit-rtl.h.
8512 Move inclusion of rtl.h earlier in the file.
8513 * emit-rtl.c: Include varasm.h.
8514 * except.c: Include stringpool.h.
8515 Include stor-layout.h.
8516 * explow.c: Include stor-layout.h.
8517 * expmed.c: Include stor-layout.h.
8518 * expr.c: Include stringpool.h.
8519 Include stor-layout.h.
8520 Include attribs.h.
8521 Include varasm.h.
8522 * final.c: Include varasm.h.
8523 * fold-const.c: Include stor-layout.h.
8524 Include calls.h.
8525 Include tree-iterator.h.
8526 * function.c: Include stor-layout.h.
8527 Include varasm.h.
8528 Include stringpool.h.
8529 * genattrtab.c (write_header): Emit includes for varasm.h,
8530 stor-layout.h and calls.h.
8531 * genautomata.c (main): Likewise.
8532 * genemit.c: Likewise.
8533 * genopinit.c: Likewise.
8534 * genoutput.c (output_prologue): Likewise.
8535 * genpeep.c: Likewise.
8536 * genpreds.c (write_insn_preds_c): Likewise.
8537 * gengtype.c (open_base_files): Add stringpool.h.
8538 * gimple-expr.c: Include stringpool.h.
8539 Include stor-layout.h.
8540 * gimple-fold.c: Include stringpool.h.
8541 Include expr.h.
8542 Include stmt.h.
8543 Include stor-layout.h.
8544 * gimple-low.c: Include tree-nested.h.
8545 Include calls.h.
8546 * gimple-pretty-print.c: Include stringpool.h.
8547 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
8548 Include expr.h.
8549 * gimple-walk.c: Include stmt.h.
8550 * gimple.c: Include calls.h.
8551 Include stmt.h.
8552 Include stor-layout.h.
8553 * gimplify.c: Include stringpool.h.
8554 Include calls.h.
8555 Include varasm.h.
8556 Include stor-layout.h.
8557 Include stmt.h.
8558 Include print-tree.h.
8559 Include expr.h.
8560 * gimplify-me.c: Include stmt.h
8561 Include stor-layout.h
8562 * internal-fn.c: Include stor-layout.h.
8563 * ipa-devirt.c: Include print-tree.h.
8564 Include calls.h.
8565 * ipa-inline-analysis.c: Include stor-layout.h.
8566 Include stringpool.h.
8567 Include print-tree.h.
8568 * ipa-inline.c: Include trans-mem.h.
8569 Include calls.h.
8570 * ipa-prop.c: Include expr.h.
8571 Include stor-layout.h.
8572 Include print-tree.h.
8573 * ipa-pure-const.c: Include print-tree.h.
8574 Include calls.h.
8575 * ipa-reference.c: Include calls.h.
8576 * ipa-split.c: Include stringpool.h.
8577 Include expr.h.
8578 Include calls.h.
8579 * ipa.c: Include calls.h.
8580 Include stringpool.h.
8581 * langhooks.c: Include stringpool.h.
8582 Include attribs.h.
8583 * lto-cgraph.c: Include stringpool.h.
8584 * lto-streamer-in.c: Include stringpool.h.
8585 * lto-streamer-out.c: Include stor-layout.h.
8586 Include stringpool.h.
8587 * omp-low.c: Include stringpool.h.
8588 Include stor-layout.h.
8589 Include expr.h.
8590 * optabs.c: Include stor-layout.h.
8591 Include stringpool.h.
8592 Include varasm.h.
8593 * passes.c: Include varasm.h.
8594 * predict.c: Include calls.h.
8595 * print-rtl.c: Include print-tree.h.
8596 * print-tree.c: Include varasm.h.
8597 Include print-rtl.h.
8598 Include stor-layout.h.
8599 * realmpfr.c: Include stor-layout.h.
8600 * reg-stack.c: Include varasm.h.
8601 * sdbout.c: Include varasm.h.
8602 Include stor-layout.h.
8603 * simplify-rtx.c: Include varasm.h.
8604 * stmt.c: Include varasm.h.
8605 Include stor-layout.h.
8606 * stor-layout.c: Include stor-layout.h.
8607 Include stringpool.h.
8608 Include varasm.h.
8609 Include print-tree.h.
8610 * symtab.c: Include rtl.h.
8611 Include print-tree.h.
8612 Include varasm.h.
8613 Include function.h.
8614 Include emit-rtl.h.
8615 * targhooks.c: Include stor-layout.h.
8616 Include varasm.h.
8617 * toplev.c: Include varasm.h.
8618 Include tree-inline.h.
8619 * trans-mem.c: Include calls.h.
8620 Include function.h.
8621 Include rtl.h.
8622 Include emit-rtl.h.
8623 * tree-affine.c: Include expr.h.
8624 * tree-browser.c: Include print-tree.h.
8625 * tree-call-cdce.c: Include stor-layout.h.
8626 * tree-cfg.c: Include trans-mem.h.
8627 Include stor-layout.h.
8628 Include print-tree.h.
8629 * tree-complex.c: Include stor-layout.h.
8630 * tree-data-ref.c: Include expr.h.
8631 * tree-dfa.c: Include stor-layout.h.
8632 * tree-eh.c: Include expr.h.
8633 Include calls.h.
8634 * tree-emutls.c: Include stor-layout.h.
8635 Include varasm.h.
8636 * tree-if-conv.c: Include stor-layout.h.
8637 * tree-inline.c: Include stor-layout.h.
8638 Include calls.h.
8639 * tree-loop-distribution.c: Include stor-layout.h.
8640 * tree-nested.c: Include stringpool.h.
8641 Include stor-layout.h.
8642 * tree-object-size.c: Include tree-object-size.h.
8643 * tree-outof-ssa.c: Include stor-layout.h.
8644 * tree-parloops.c: Include stor-layout.h.
8645 Include tree-nested.h.
8646 * tree-pretty-print.c: Include stor-layout.h.
8647 Include expr.h.
8648 * tree-profile.c: Include varasm.h.
8649 Include tree-nested.h.
8650 * tree-scalar-evolution.c: Include expr.h.
8651 * tree-sra.c: Include stor-layout.h.
8652 * tree-ssa-address.c: Include stor-layout.h.
8653 * tree-ssa-ccp.c: Include stor-layout.h.
8654 * tree-ssa-dce.c: Include calls.h.
8655 * tree-ssa-dom.c: Include stor-layout.h.
8656 * tree-ssa-forwprop.c: Include stor-layout.h.
8657 * tree-ssa-ifcombine.c: Include stor-layout.h.
8658 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
8659 * tree-ssa-loop-niter.c: Include calls.h.
8660 Include expr.h.
8661 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
8662 * tree-ssa-math-opts.c: Include stor-layout.h.
8663 * tree-ssa-operands.c: Include stmt.h.
8664 Include print-tree.h.
8665 * tree-ssa-phiopt.c: Include stor-layout.h.
8666 * tree-ssa-reassoc.c: Include stor-layout.h.
8667 * tree-ssa-sccvn.c: Include stor-layout.h.
8668 * tree-ssa-sink.c: Include stor-layout.h.
8669 * tree-ssa-strlen.c: Include stor-layout.h.
8670 * tree-ssa-structalias.c: Include stor-layout.h.
8671 Include stmt.h.
8672 * tree-ssa-tail-merge.c: Include stor-layout.h.
8673 Include trans-mem.h.
8674 * tree-ssa-uncprop.c: Include stor-layout.h.
8675 * tree-ssa.c: Include stor-layout.h.
8676 * tree-ssanames.c: Include stor-layout.h.
8677 * tree-streamer-in.c: Include stringpool.h.
8678 * tree-streamer-out.c: Include stor-layout.h.
8679 * tree-switch-conversion.c: Include varasm.h.
8680 Include stor-layout.h.
8681 * tree-tailcall.c: Include stor-layout.h.
8682 * tree-vect-data-refs.c: Include stor-layout.h.
8683 * tree-vect-generic.c: Include stor-layout.h.
8684 * tree-vect-loop.c: Include stor-layout.h.
8685 * tree-vect-patterns.c: Include stor-layout.h.
8686 * tree-vect-slp.c: Include stor-layout.h.
8687 * tree-vect-stmts.c: Include stor-layout.h.
8688 * tree-vectorizer.c: Include stor-layout.h.
8689 * tree-vrp.c: Include stor-layout.h.
8690 Include calls.h.
8691 * tree.c: Include stor-layout.h.
8692 Include calls.h.
8693 Include attribs.h.
8694 Include varasm.h.
8695 * tsan.c: Include expr.h.
8696 * ubsan.c: Include stor-layout.h.
8697 Include stringpool.h.
8698 * value-prof.c: Include tree-nested.h.
8699 Include calls.h.
8700 * var-tracking.c: Include varasm.h.
8701 Include stor-layout.h.
8702 * varasm.c: Include stor-layout.h.
8703 Include stringpool.h.
8704 Include gcc-symtab.h.
8705 Include varasm.h.
8706 * varpool.c: Include varasm.h.
8707 * vmsdbgout.c: Include varasm.h.
8708 * xcoffout.c: Include varasm.h.
8709
8710 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
8711
8712 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
8713 use (.&-4) idiom.
8714
8715 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8716
8717 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
8718
8719 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8720 Alan Modra <amodra@gmail.com>
8721
8722 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
8723 (RS6000_SAVE_TOC): Remove.
8724 (RS6000_TOC_SAVE_SLOT): New macro.
8725 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
8726 (rs6000_parm_start): Use it.
8727 (rs6000_function_arg_advance_1): Likewise.
8728 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
8729 (rs6000_emit_epilogue): Likewise.
8730 (rs6000_call_aix): Likewise.
8731 (rs6000_output_function_prologue): Do not save/restore r11
8732 around calling _mcount for ABI_ELFv2.
8733
8734 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8735 Alan Modra <amodra@gmail.com>
8736
8737 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
8738 Add prototype.
8739 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
8740 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
8741 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
8742 (rs6000_function_parms_need_stack): Likewise.
8743 (rs6000_reg_parm_stack_space): Likewise.
8744 (rs6000_function_arg): Do not replace BLKmode by Pmode when
8745 returning a register argument.
8746
8747 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8748 Michael Gschwind <mkg@us.ibm.com>
8749
8750 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
8751 (ALTIVEC_ARG_MAX_RETURN): Likewise.
8752 (FUNCTION_VALUE_REGNO_P): Use them.
8753 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
8754 (rs6000_return_in_msb): New function.
8755 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
8756 Handle aggregates of up to 16 bytes for ELFv2.
8757 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
8758
8759 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8760 Michael Gschwind <mkg@us.ibm.com>
8761
8762 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
8763 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
8764 (rs6000_discover_homogeneous_aggregate): Likewise.
8765 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
8766 (rs6000_function_arg_advance_1): Likewise.
8767 (rs6000_function_arg): Likewise.
8768 (rs6000_arg_partial_bytes): Likewise.
8769 (rs6000_psave_function_arg): Handle BLKmode arguments.
8770
8771 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8772 Michael Gschwind <mkg@us.ibm.com>
8773
8774 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
8775 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
8776 (rs6000_discover_homogeneous_aggregate): Likewise.
8777 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
8778 (rs6000_function_arg_advance_1): Likewise.
8779 (rs6000_function_arg): Likewise.
8780 (rs6000_arg_partial_bytes): Likewise.
8781 (rs6000_psave_function_arg): Handle BLKmode arguments.
8782
8783 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8784
8785 * config/rs6000/rs6000.c (machine_function): New member
8786 r2_setup_needed.
8787 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
8788 (rs6000_output_mi_thunk): Set r2_setup_needed.
8789 (rs6000_output_function_prologue): Output global entry point
8790 prologue and local entry point marker if needed for ABI_ELFv2.
8791 Output -mprofile-kernel code here.
8792 (output_function_profiler): Do not output -mprofile-kernel
8793 code here; moved to rs6000_output_function_prologue.
8794 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
8795
8796 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
8797 (rs6000_output_function_entry): Likewise.
8798 (rs6000_assemble_integer): Likewise.
8799 (rs6000_elf_encode_section_info): Likewise.
8800 (rs6000_elf_declare_function_name): Do not create dot symbols
8801 or .opd section for ABI_ELFv2.
8802
8803 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
8804 (rs6000_trampoline_init): Likewise.
8805 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
8806
8807 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
8808 for function descriptors in ABI_ELFv2.
8809
8810 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
8811 on ABI_AIX only, not ABI_ELFv2.
8812 ("*call_value_indirect_aix<mode>"): Likewise.
8813 ("*call_indirect_elfv2<mode>"): New pattern.
8814 ("*call_value_indirect_elfv2<mode>"): Likewise.
8815
8816 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
8817 check for function descriptors in ABI_ELFv2.
8818 ("current_file_function_operand"): Likewise.
8819
8820 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
8821 (toc): Undefine.
8822 (FUNC_NAME): Define ELFv2 variant.
8823 (JUMP_TARGET): Likewise.
8824 (FUNC_START): Likewise.
8825 (HIDDEN_FUNC): Likewise.
8826 (FUNC_END): Likeiwse.
8827
8828 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8829
8830 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
8831 and --with-abi=elfv2.
8832 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
8833 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
8834 (mabi=elfv2): Likewise.
8835 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
8836 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
8837 if !RS6000_BI_ARCH.
8838 (ELFv2_ABI_CHECK): New macro.
8839 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
8840 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
8841 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
8842 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
8843 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
8844
8845 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
8846 (debug_stack_info): Likewise.
8847 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
8848 (rs6000_legitimize_tls_address): Likewise.
8849 (rs6000_conditional_register_usage): Likewise.
8850 (rs6000_emit_move): Likewise.
8851 (init_cumulative_args): Likewise.
8852 (rs6000_function_arg_advance_1): Likewise.
8853 (rs6000_function_arg): Likewise.
8854 (rs6000_arg_partial_bytes): Likewise.
8855 (rs6000_output_function_entry): Likewise.
8856 (rs6000_assemble_integer): Likewise.
8857 (rs6000_savres_strategy): Likewise.
8858 (rs6000_stack_info): Likewise.
8859 (rs6000_function_ok_for_sibcall): Likewise.
8860 (rs6000_emit_load_toc_table): Likewise.
8861 (rs6000_savres_routine_name): Likewise.
8862 (ptr_regno_for_savres): Likewise.
8863 (rs6000_emit_prologue): Likewise.
8864 (rs6000_emit_epilogue): Likewise.
8865 (rs6000_output_function_epilogue): Likewise.
8866 (output_profile_hook): Likewise.
8867 (output_function_profiler): Likewise.
8868 (rs6000_trampoline_size): Likewise.
8869 (rs6000_trampoline_init): Likewise.
8870 (rs6000_elf_output_toc_section_asm_op): Likewise.
8871 (rs6000_elf_encode_section_info): Likewise.
8872 (rs6000_elf_reloc_rw_mask): Likewise.
8873 (rs6000_elf_declare_function_name): Likewise.
8874 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
8875 except that rs6000_compat_align_parm is always assumed false.
8876 (rs6000_gimplify_va_arg): Likewise.
8877 (rs6000_call_aix): Update comment.
8878 (rs6000_sibcall_aix): Likewise.
8879 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
8880 Treat ABI_ELFv2 the same as ABI_AIX.
8881 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
8882 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
8883 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
8884 ("load_toc_aix_si"): Likewise.
8885 ("load_toc_aix_di"): Likewise.
8886 ("call"): Likewise.
8887 ("call_value"): Likewise.
8888 ("*call_local_aix<mode>"): Likewise.
8889 ("*call_value_local_aix<mode>"): Likewise.
8890 ("*call_nonlocal_aix<mode>"): Likewise.
8891 ("*call_value_nonlocal_aix<mode>"): Likewise.
8892 ("*call_indirect_aix<mode>"): Likewise.
8893 ("*call_value_indirect_aix<mode>"): Likewise.
8894 ("sibcall"): Likewise.
8895 ("sibcall_value"): Likewise.
8896 ("*sibcall_aix<mode>"): Likewise.
8897 ("*sibcall_value_aix<mode>"): Likewise.
8898 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
8899 ("current_file_function_operand"): Likewise.
8900
8901 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8902
8903 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
8904 by making use of the fact that for vector / floating point arguments
8905 passed both in VRs/FPRs and in the fixed parameter area, the partial
8906 bytes mechanism is in fact not used.
8907
8908 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8909
8910 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
8911 (rs6000_finish_function_arg): Likewise.
8912 (rs6000_function_arg): Use rs6000_psave_function_arg and
8913 rs6000_finish_function_arg to handle both vector and floating
8914 point arguments that are also passed in GPRs / the stack.
8915
8916 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8917
8918 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
8919 (USE_ALTIVEC_FOR_ARG_P): Likewise.
8920 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
8921 (rs6000_function_arg_advance_1):Likewise.
8922 (rs6000_darwin64_record_arg_recurse): Likewise.
8923 (rs6000_function_arg): Likewise.
8924 (rs6000_arg_partial_bytes): Likewise.
8925
8926 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8927
8928 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
8929 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
8930 (rs6000_savres_strategy): Likewise.
8931 (rs6000_return_addr): Likewise.
8932 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
8933 testing for ABI_V4 (since ABI_DARWIN is impossible here).
8934 (rs6000_emit_prologue): Likewise.
8935 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
8936 (rs6000_elf_declare_function_name): Remove duplicated test.
8937 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
8938 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
8939 ("load_toc_v4_PIC_1_normal"): Likewise.
8940 ("load_toc_v4_PIC_1_476"): Likewise.
8941 ("load_toc_v4_PIC_1b"): Likewise.
8942 ("load_toc_v4_PIC_1b_normal"): Likewise.
8943 ("load_toc_v4_PIC_1b_476"): Likewise.
8944 ("load_toc_v4_PIC_2"): Likewise.
8945 ("load_toc_v4_PIC_3b"): Likewise.
8946 ("load_toc_v4_PIC_3c"): Likewise.
8947 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
8948 (RS6000_SAVE_AREA): Likewise.
8949 (FP_ARG_MAX_REG): Likewise.
8950 (RETURN_ADDRESS_OFFSET): Likewise.
8951 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
8952 of ABI_AIX.
8953 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
8954 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
8955
8956 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8957
8958 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
8959 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
8960 Create call insn directly instead of via various gen_... routines.
8961 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
8962 (rs6000_sibcall_aix): New function.
8963 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
8964 (TOC_SAVE_OFFSET_64BIT): Likewise.
8965 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
8966 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
8967 (AIX_FUNC_DESC_SC_32BIT): Likewise.
8968 (AIX_FUNC_DESC_SC_64BIT): Likewise.
8969 ("call" expander): Call rs6000_call_aix.
8970 ("call_value" expander): Likewise.
8971 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
8972 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
8973 ("*call_indirect_aix<mode>"): ... by this insn pattern.
8974 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
8975 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
8976 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
8977 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
8978 ("*call_nonlocal_aix<mode>"): ... this pattern.
8979 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
8980 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
8981 ("*call_local_aix<mode>"): New insn pattern.
8982 ("*call_value_local_aix<mode>"): Likewise.
8983 ("sibcall" expander): Call rs6000_sibcall_aix.
8984 ("sibcall_value" expander): Likewise. Move earlier in file.
8985 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
8986 ("*sibcall_aix<mode>"): ... this pattern.
8987 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
8988 ("*sibcall_value_aix<mode>"): ... this pattern.
8989 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
8990 (rs6000_call_aix): Add prototype.
8991 (rs6000_sibcall_aix): Likewise.
8992
8993 2013-11-14 Jakub Jelinek <jakub@redhat.com>
8994
8995 PR sanitizer/59122
8996 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
8997 isn't confused by the artificial decl.
8998
8999 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9000
9001 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
9002 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
9003 Instead, add USEs of all modified call-saved CR fields to the
9004 insn storing the result to the stack slot, and provide an
9005 appropriate REG_FRAME_RELATED_EXPR for that insn.
9006 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
9007 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
9008
9009 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9010 Alan Modra <amodra@gmail.com>
9011
9012 * function.c (assign_parms): Use all.reg_parm_stack_space instead
9013 of re-evaluating REG_PARM_STACK_SPACE target macro.
9014 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
9015 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
9016 (assign_parm_find_entry_rtl): Update call.
9017 * calls.c (initialize_argument_information): Update call.
9018 (emit_library_call_value_1): Likewise.
9019 * expr.h (locate_and_pad_parm): Update prototype.
9020
9021 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9022
9023 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
9024 arguments.
9025
9026 2013-11-14 DJ Delorie <dj@redhat.com>
9027
9028 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
9029 to 16 bits.
9030
9031 2013-11-14 Jeff Law <law@redhat.com>
9032
9033 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
9034 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
9035
9036 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
9037
9038 * doc/invoke.texi: Update documentation for AArch64's -mcpu
9039 and -mtune options.
9040
9041 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
9042
9043 * config/aarch64/aarch64-cores.def (example-1): Remove.
9044 (example-2): Likewise.
9045 * config/aarch64/aarch64-tune.md: Regenerate.
9046 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
9047 (generic_sched): Remove "large", "small".
9048 * config/aarch64/large.md: Delete.
9049 * config/aarch64/small.md: Delete.
9050
9051 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
9052
9053 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
9054 * config/aarch64/aarch64-tune.md: Regenerate.
9055 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
9056 (generic_sched): "no" if we are tuning for cortexa15.
9057 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
9058 relative path.
9059
9060 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
9061
9062 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
9063 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
9064 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
9065 (all_cores): Use cortexa53 when tuning for "generic".
9066 (aarch64_override_options): Fix comment.
9067 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
9068 * config/aarch64/aarch64-generic.md: Delete.
9069
9070 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
9071
9072 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
9073
9074 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9075
9076 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
9077 (generic_rtx_cost_table): Remove.
9078 (aarch64_rtx_costs): Use fields from cpu_cost_table.
9079 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
9080 insn_extra_cost.
9081 (cpu_rtx_cost_table): Remove.
9082
9083 2013-11-14 Julian Brown <julian@codesourcery.com>
9084 Joey Ye <joey.ye@arm.com>
9085
9086 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
9087 (arm_v7m_tune): New.
9088 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
9089 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
9090 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
9091 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
9092
9093 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
9094
9095 PR target/57491
9096 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
9097 flag setting.
9098
9099 2013-11-14 Jakub Jelinek <jakub@redhat.com>
9100 Uros Bizjak <ubizjak@gmail.com>
9101
9102 PR target/59101
9103 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
9104 operands[2] satisfies_constraint_Z that might have bit 31 set.
9105
9106 2013-11-13 Jeff Law <law@redhat.com>
9107
9108 PR tree-optimization/59102
9109 * gimple-ssa-isolate-paths.c
9110 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
9111 gimple assignment before looking at gimple_assign_lhs.
9112
9113 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
9114
9115 * ira.c: Add comment about threads at the top of file.
9116
9117 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
9118
9119 * ira-color.c (coalesce_allocnos): Don't allocate and free
9120 sorted_copies.
9121
9122 2013-11-14 Tom de Vries <tom@codesourcery.com>
9123
9124 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
9125 equality for GIMPLE_ASSIGN.
9126
9127 2013-11-14 Tom de Vries <tom@codesourcery.com>
9128
9129 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
9130 function out of ...
9131 (gimple_equal_p): ... here.
9132
9133 2013-11-14 Tom de Vries <tom@codesourcery.com>
9134
9135 * trans-mem.c (is_tm_ending): New function.
9136 * gimple.h (is_tm_ending): Declare.
9137 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
9138 BUILT_IN_TM_COMMIT.
9139 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
9140
9141 2013-11-14 Tom de Vries <tom@codesourcery.com>
9142
9143 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
9144
9145 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
9146
9147 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
9148 (struct walk_stmt_info): Relocate here from gimple.h.
9149 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
9150 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
9151 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
9152 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
9153 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
9154 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
9155 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
9156 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
9157 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
9158 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
9159 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
9160 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
9161 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
9162 (struct walk_stmt_info): Move to gimple-walk.h.
9163 (gimple_seq_set_location): Move to gimple.c
9164 * gimple-walk.c: New File.
9165 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
9166 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
9167 walk_stmt_load_store_ops): Relocate here from gimple.c.
9168 * gimple-iterator.c: Include gimple-iterator.h.
9169 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
9170 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
9171 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
9172 gimple-walk.c.
9173 (gimple_seq_set_location): Relocate from gimple.h.
9174 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
9175 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
9176 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
9177 * Makefile.in (OBJS): Add gimple-walk.o
9178 * asan.c: Update Include list as required for gimple-iterator.h and
9179 gimple-walk.h.
9180 * cfgexpand.c: Likewise.
9181 * cfgloop.c: Likewise.
9182 * cfgloopmanip.c: Likewise.
9183 * cgraph.c: Likewise.
9184 * cgraphbuild.c: Likewise.
9185 * cgraphunit.c: Likewise.
9186 * gimple-fold.c: Likewise.
9187 * gimple-low.c: Likewise.
9188 * gimple-pretty-print.c: Likewise.
9189 * gimple-ssa-isolate-paths.c: Likewise.
9190 * gimple-ssa-strength-reduction.c: Likewise.
9191 * gimple-streamer-in.c: Likewise.
9192 * gimple-streamer-out.c: Likewise.
9193 * gimplify.c: Likewise.
9194 * graphite-blocking.c: Likewise.
9195 * graphite-clast-to-gimple.c: Likewise.
9196 * graphite-dependences.c: Likewise.
9197 * graphite-interchange.c: Likewise.
9198 * graphite-optimize-isl.c: Likewise.
9199 * graphite-poly.c: Likewise.
9200 * graphite-scop-detection.c: Likewise.
9201 * graphite-sese-to-poly.c: Likewise.
9202 * graphite.c: Likewise.
9203 * ipa-inline-analysis.c: Likewise.
9204 * ipa-profile.c: Likewise.
9205 * ipa-prop.c: Likewise.
9206 * ipa-pure-const.c: Likewise.
9207 * ipa-split.c: Likewise.
9208 * lto-streamer-in.c: Likewise.
9209 * lto-streamer-out.c: Likewise.
9210 * omp-low.c: Likewise.
9211 * predict.c: Likewise.
9212 * profile.c: Likewise.
9213 * sese.c: Likewise.
9214 * tracer.c: Likewise.
9215 * trans-mem.c: Likewise.
9216 * tree-call-cdce.c: Likewise.
9217 * tree-cfg.c: Likewise.
9218 * tree-cfgcleanup.c: Likewise.
9219 * tree-complex.c: Likewise.
9220 * tree-data-ref.c: Likewise.
9221 * tree-dfa.c: Likewise.
9222 * tree-eh.c: Likewise.
9223 * tree-emutls.c: Likewise.
9224 * tree-if-conv.c: Likewise.
9225 * tree-inline.c: Likewise.
9226 * tree-into-ssa.c: Likewise.
9227 * tree-loop-distribution.c: Likewise.
9228 * tree-nested.c: Likewise.
9229 * tree-nrv.c: Likewise.
9230 * tree-object-size.c: Likewise.
9231 * tree-outof-ssa.c: Likewise.
9232 * tree-parloops.c: Likewise.
9233 * tree-predcom.c: Likewise.
9234 * tree-profile.c: Likewise.
9235 * tree-scalar-evolution.c: Likewise.
9236 * tree-sra.c: Likewise.
9237 * tree-ssa-ccp.c: Likewise.
9238 * tree-ssa-coalesce.c: Likewise.
9239 * tree-ssa-copy.c: Likewise.
9240 * tree-ssa-copyrename.c: Likewise.
9241 * tree-ssa-dce.c: Likewise.
9242 * tree-ssa-dom.c: Likewise.
9243 * tree-ssa-dse.c: Likewise.
9244 * tree-ssa-forwprop.c: Likewise.
9245 * tree-ssa-ifcombine.c: Likewise.
9246 * tree-ssa-live.c: Likewise.
9247 * tree-ssa-loop-ch.c: Likewise.
9248 * tree-ssa-loop-im.c: Likewise.
9249 * tree-ssa-loop-ivcanon.c: Likewise.
9250 * tree-ssa-loop-ivopts.c: Likewise.
9251 * tree-ssa-loop-manip.c: Likewise.
9252 * tree-ssa-loop-niter.c: Likewise.
9253 * tree-ssa-loop-prefetch.c: Likewise.
9254 * tree-ssa-loop.c: Likewise.
9255 * tree-ssa-math-opts.c: Likewise.
9256 * tree-ssa-phiopt.c: Likewise.
9257 * tree-ssa-phiprop.c: Likewise.
9258 * tree-ssa-pre.c: Likewise.
9259 * tree-ssa-propagate.c: Likewise.
9260 * tree-ssa-reassoc.c: Likewise.
9261 * tree-ssa-sink.c: Likewise.
9262 * tree-ssa-strlen.c: Likewise.
9263 * tree-ssa-structalias.c: Likewise.
9264 * tree-ssa-tail-merge.c: Likewise.
9265 * tree-ssa-ter.c: Likewise.
9266 * tree-ssa-threadedge.c: Likewise.
9267 * tree-ssa-threadupdate.c: Likewise.
9268 * tree-ssa-uncprop.c: Likewise.
9269 * tree-ssa-uninit.c: Likewise.
9270 * tree-ssa.c: Likewise.
9271 * tree-stdarg.c: Likewise.
9272 * tree-switch-conversion.c: Likewise.
9273 * tree-tailcall.c: Likewise.
9274 * tree-vect-data-refs.c: Likewise.
9275 * tree-vect-generic.c: Likewise.
9276 * tree-vect-loop-manip.c: Likewise.
9277 * tree-vect-loop.c: Likewise.
9278 * tree-vect-patterns.c: Likewise.
9279 * tree-vect-slp.c: Likewise.
9280 * tree-vect-stmts.c: Likewise.
9281 * tree-vectorizer.c: Likewise.
9282 * tree-vrp.c: Likewise.
9283 * tree.c: Likewise.
9284 * tsan.c: Likewise.
9285 * value-prof.c: Likewise.
9286 * vtable-verify.c: Likewise.
9287
9288 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
9289
9290 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
9291 fix.
9292
9293 2013-11-13 Jeff Law <law@redhat.com>
9294
9295 * PR middle-end/59119
9296 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
9297 function, extracted from gimple_ssa_isolate_erroneous_paths.
9298 (find_explicit_erroneous_behaviour): Similarly.
9299 (insert_trap_and_remove_trailing_statements): Remove statements
9300 in reverse order.
9301
9302 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
9303
9304 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
9305 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
9306 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
9307 looking at INSN_CODE.
9308 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
9309 active_insn_p object, respect basic block boundaries.
9310 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
9311 follows immediately after the jump table data label.
9312 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
9313 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
9314 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
9315
9316 2013-11-13 Teresa Johnson <tejohnson@google.com>
9317
9318 PR ipa/58862
9319 * predict.c (drop_profile): Error is currently too strict.
9320 (handle_missing_profiles): Pass call_count to drop_profile.
9321
9322 2013-11-13 Teresa Johnson <tejohnson@google.com>
9323
9324 PR ipa/58862
9325 * ipa-inline.c (edge_badness): Fix overflow.
9326
9327 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
9328
9329 PR rtl-optimization/59036
9330 * ira-color.c (struct allocno_color_data): Add new members
9331 first_thread_allocno, next_thread_allocno, thread_freq.
9332 (sorted_copies): New static var.
9333 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
9334 (allocno_thread_conflict_p, merge_threads)
9335 (form_threads_from_copies, form_threads_from_bucket)
9336 (form_threads_from_colorable_allocno, init_allocno_threads): New
9337 functions.
9338 (bucket_allocno_compare_func): Add comparison by thread frequency
9339 and threads.
9340 (add_allocno_to_ordered_bucket): Rename to
9341 add_allocno_to_ordered_colorable_bucket. Remove parameter.
9342 (push_only_colorable): Call form_threads_from_bucket.
9343 (color_pass): Call init_allocno_threads. Use
9344 consideration_allocno_bitmap instead of coloring_allocno_bitmap
9345 for nuillify allocno color data.
9346 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
9347 (coalesce_allocnos): Use static sorted copies.
9348
9349 2013-11-13 Jakub Jelinek <jakub@redhat.com>
9350
9351 * passes.c (execute_todo): Don't call do_per_function if
9352 flags are zero.
9353 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
9354 execute_function_dump if dump_file is NULL.
9355
9356 2013-11-13 Martin Jambor <mjambor@suse.cz>
9357
9358 * cgraph.c (cgraph_get_create_node): Do what
9359 cgraph_get_create_real_symbol_node used to do.
9360 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
9361 call cgraph_get_create_node.
9362 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
9363 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
9364 cgraph_get_create_node. Assert we get a node.
9365
9366 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
9367
9368 * config/aarch64/aarch64-simd.md (vec_extract): New.
9369
9370 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
9371
9372 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
9373 the constraint.
9374
9375 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
9376
9377 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
9378 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
9379 or if optimization is enabled.
9380 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
9381 require that all the names based on a PARM_DECL or a RESULT_DECL that
9382 isn't ignored for debug info be coalesced.
9383
9384 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9385
9386 * config/c6x/c6x.c: Include "gimple-expr.h".
9387
9388 2013-11-13 Richard Biener <rguenther@suse.de>
9389
9390 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
9391 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
9392 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
9393 dealing with type mismatches inside component reference chains.
9394
9395 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
9396
9397 PR tree-optimization/59077
9398 * ipa-pure-const.c (better_state): Update *state.
9399
9400 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
9401
9402 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
9403 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
9404 Update offset calculations.
9405
9406 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
9407
9408 PR ada/35998
9409 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
9410 for fields. Do not add the attribute if the size is negative.
9411
9412 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9413
9414 * config/arm/arm.c: Include aarch-cost-tables.h.
9415 (generic_extra_costs): Move from here...
9416 * config/arm/aarch-cost-tables.h: ... To here. New file.
9417
9418 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
9419 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9420 Sergey Lega <sergey.s.lega@intel.com>
9421 Anna Tikhonova <anna.tikhonova@intel.com>
9422 Ilya Tocar <ilya.tocar@intel.com>
9423 Andrey Turetskiy <andrey.turetskiy@intel.com>
9424 Ilya Verbin <ilya.verbin@intel.com>
9425 Kirill Yukhin <kirill.yukhin@intel.com>
9426 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9427
9428 * config/i386/i386.c (ix86_print_operand): Support z-masking.
9429 * config/i386/predicate.md (const_0_to_4_operand): New.
9430 (const_0_to_5_operand): Ditto.
9431 * config/i386/sse.md (UNSPEC_COMPRESS): New.
9432 (UNSPEC_COMPRESS_STORE): Ditto.
9433 (UNSPEC_EXPAND): Ditto.
9434 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
9435 (define_mode_attr ssescalarsize): Ditto.
9436 (avx512f_load<mode>_mask): Ditto.
9437 (avx512f_store<mode>_mask): Ditto.
9438 (avx512f_storedqu<mode>_mask): Ditto.
9439 (avx512f_vmcmp<mode>3_mask): Ditto.
9440 (avx512f_fmadd_<mode>_mask): Ditto.
9441 (avx512f_fmadd_<mode>_mask3): Ditto.
9442 (avx512f_fmsub_<mode>_mask): Ditto.
9443 (avx512f_fmsub_<mode>_mask3): Ditto.
9444 (avx512f_fnmadd_<mode>_mask): Ditto.
9445 (avx512f_fnmadd_<mode>_mask3): Ditto.
9446 (avx512f_fnmsub_<mode>_mask): Ditto.
9447 (avx512f_fnmsub_<mode>_mask3): Ditto.
9448 (avx512f_fmaddsub_<mode>_mask): Ditto.
9449 (avx512f_fmaddsub_<mode>_mask3): Ditto.
9450 (avx512f_fmsubadd_<mode>_mask): Ditto.
9451 (avx512f_fmsubadd_<mode>_mask3): Ditto.
9452 (vec_unpacku_float_lo_v16si): Ditto.
9453 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
9454 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
9455 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
9456 (vec_extract_lo_<mode>_maskm): Ditto.
9457 (vec_extract_hi_<mode>_maskm): Ditto.
9458 (avx512f_vternlog<mode>_mask): Ditto.
9459 (avx512f_shufps512_mask): Ditto.
9460 (avx512f_fixupimm<mode>_mask): Ditto.
9461 (avx512f_shufpd512_mask): Ditto.
9462 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
9463 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
9464 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
9465 (ashr<mode>3<mask_name>): Ditto.
9466 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
9467 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
9468 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
9469 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
9470 (avx512f_pshufdv3_mask): Ditto.
9471 (avx512f_perm<mode>_mask): Ditto.
9472 (avx512f_vpermi2var<mode>3_mask): Ditto.
9473 (avx512f_vpermt2var<mode>3_mask): Ditto.
9474 (avx512f_compress<mode>_mask): Ditto.
9475 (avx512f_compressstore<mode>_mask): Ditto.
9476 (avx512f_expand<mode>_mask): Ditto.
9477 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
9478 to support masking.
9479 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
9480 (<plusminus_insn><mode>3<mask_name>): Ditto.
9481 (*<plusminus_insn><mode>3<mask_name>): Ditto.
9482 (mul<mode>3<mask_name>): Ditto.
9483 (*mul<mode>3<mask_name>): Ditto.
9484 (<sse>_div<mode>3<mask_name>): Ditto.
9485 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
9486 (<sse>_sqrt<mode>2<mask_name>): Ditto.
9487 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
9488 (<code><mode>3<mask_name>/smaxmin): Ditto.
9489 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
9490 (*<code><mode>3<mask_name>/smaxmin): Ditto.
9491 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
9492 (ufloatv16siv16sf2<mask_name>): Ditto.
9493 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
9494 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
9495 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
9496 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
9497 (ufloatv8siv8df<mask_name>): Ditto.
9498 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
9499 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
9500 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
9501 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
9502 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
9503 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
9504 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
9505 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
9506 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
9507 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
9508 (vec_extract_lo_<mode><mask_name>): Ditto.
9509 (vec_extract_hi_<mode><mask_name>): Ditto.
9510 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
9511 (avx512f_movddup512<mask_name>): Ditto.
9512 (avx512f_unpcklpd512<mask_name>): Ditto.
9513 (*avx512f_unpcklpd512<mask_name>): Ditto.
9514 (*avx512f_vmscalef<mode>): Ditto.
9515 (avx512f_scalef<mode><mask_name>): Ditto.
9516 (avx512f_getexp<mode><mask_name>): Ditto.
9517 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
9518 (avx512f_rndscale<mode><mask_name>): Ditto.
9519 (avx512f_shufps512_1<mask_name>): Ditto.
9520 (avx512f_shufpd512_1<mask_name>): Ditto.
9521 (<plusminus_insn><mode>3<mask_name>): Ditto.
9522 (*<plusminus_insn><mode>3<mask_name>): Ditto.
9523 (vec_widen_umult_even_v16si<mask_name>): Ditto.
9524 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
9525 (vec_widen_smult_even_v16si<mask_name>): Ditto.
9526 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
9527 (mul<mode>3<mask_name>): Ditto.
9528 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
9529 (<shift_insn><mode>3<mask_name>): Ditto.
9530 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
9531 (avx512f_<rotate><mode><mask_name>): Ditto.
9532 (<code><mode>3<mask_name>/maxmin): Ditto.
9533 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
9534 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
9535 (*andnot<mode>3<mask_name>): Ditto.
9536 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
9537 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
9538 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
9539 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
9540 (vec_set_lo_<mode><mask_name>): Ditto.
9541 (vec_set_hi_<mode><mask_name>): Ditto.
9542 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
9543 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
9544 (avx512f_pshufd_1<mask_name>): Ditto.
9545 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
9546 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
9547 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
9548 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
9549 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
9550 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
9551 (avx512er_exp2<mode><mask_name>): Ditto.
9552 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
9553 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
9554 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
9555 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
9556 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
9557 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
9558 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
9559 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
9560 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
9561 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
9562 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
9563 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
9564 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
9565 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
9566 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
9567 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
9568 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
9569 (avx512f_getmant<mode><mask_name>): Ditto.
9570 (clz<mode>2<mask_name>): Ditto.
9571 (<mask_codefor>conflict<mode><mask_name>): Ditto.
9572 (*srcp14<mode>): Remove visibility.
9573 (*rsqrt14<mode>): Ditto.
9574 (*fma_fmsub_<mode>): Ditto.
9575 (*fma_fnmadd_<mode>): Ditto.
9576 (*avx512f_rndscale<mode>): Ditto.
9577 * config/i386/subst.md: New file.
9578
9579 2013-11-13 Joseph Myers <joseph@codesourcery.com>
9580
9581 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
9582 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
9583 (atomic_load_explicit, atomic_exchange_explicit)
9584 (atomic_compare_exchange_strong_explicit)
9585 (atomic_compare_exchange_weak_explicit): Use __auto_type to
9586 declare variable initialized with PTR argument.
9587
9588 2013-11-12 Jeff Law <law@redhat.com>
9589
9590 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
9591 backedge_seen_p. Set, use and pass it to children appropriately.
9592 (thread_through_normal_block): Similarly.
9593 (thread_across_edge): Similarly.
9594
9595 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
9596 memory references as volatile.
9597 (insert_trap_and_remove_trailing_statements): Fix comment.
9598
9599 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
9600
9601 PR other/58712
9602 * ira-costs.c (record_operand_costs): Check operands number for
9603 the single set.
9604
9605 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
9606
9607 PR target/59054
9608 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
9609 constraints that would allow DImode into the traditional Altivec
9610 registers, but cause undesirable code generation when loading 0 as
9611 a constant.
9612 (movdi_internal64): Likewise.
9613 (cmp<mode>_fpr): Do not use %x for CR register output.
9614 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
9615 -mallow-upper-sf debug switches are used.
9616
9617 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
9618
9619 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
9620 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
9621 Relocate prototypes from gimple.h.
9622 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
9623 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
9624 from gimple.h.
9625 * gimple.h: Move some prototypes to gimplify.h.
9626 (gimple_predicate, enum fallback, enum gimplify_status): Move to
9627 gimplify.h.
9628 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
9629 Relocate from gimpify.c.
9630 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
9631 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
9632 is_gimple_reg_rhs) Relocate from gimplify.c.
9633 * gimplify.c (mark_addressable): Move to gimple-expr.c.
9634 (gimple_seq_add_stmt_without_update): Move to gimple.c.
9635 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
9636 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
9637 is_gimple_reg_rhs): Move to gimple-expr.c.
9638 (should_carry_location_p): Move to gimple.c.
9639 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
9640 to gimple.h.
9641 (annotate_one_with_location, annotate_all_with_location_after,
9642 annotate_all_with_location): Move to gimple.c.
9643 (compare_case_labels, sort_case_labels,
9644 preprocess_case_label_vec_for_gimple): Move to gimple.c.
9645 (rhs_predicate_for): Make static.
9646 (gimplify_assign): Relocate from gimple.c.
9647 * gimple.c (gimplify_assign): Move to gimplify.c.
9648 (gimple_seq_add_stmt_without_update, should_carry_location_p,
9649 annotate_one_with_location, annotate_all_with_location_after,
9650 annotate_all_with_location, compare_case_labels, sort_case_labels,
9651 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
9652 * tree.h (unshare_expr, unshare_expr_without_location,
9653 mark_addressable): Move prototypes to gimplify.h.
9654 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
9655 tmp_var_id_num
9656 * asan.c: Include gimplify.h rather than gimple.h.
9657 * cfgloopmanip.c: Likewise.
9658 * cgraphunit.c: Likewise.
9659 * cilk-common.c: Likewise.
9660 * dwarf2out.c: Dont include gimple.h.
9661 * fold-const.c: Include gimplify.h rather than gimple.h.
9662 * function.c: Likewise.
9663 * gimple-fold.c: Likewise.
9664 * gimple-ssa-strength-reduction.c: Likewise.
9665 * graphite-clast-to-gimple.c: Likewise.
9666 * graphite-sese-to-poly.c: Likewise.
9667 * ipa-prop.c: Likewise.
9668 * ipa-split.c: Likewise.
9669 * ipa.c: Likewise.
9670 * langhooks.c: Dont include gimple.h.
9671 * loop-init.c: Include gimplify.h rather than gimple.h.
9672 * omp-low.c: Likewise.
9673 * sese.c: Likewise.
9674 * stor-layout.c: Likewise.
9675 * targhooks.c: Likewise.
9676 * trans-mem.c: Likewise.
9677 * tree-affine.c: Likewise.
9678 * tree-cfg.c: Likewise.
9679 * tree-cfgcleanup.c: Likewise.
9680 * tree-complex.c: Likewise.
9681 * tree-if-conv.c: Likewise.
9682 * tree-inline.c: Likewise.
9683 * tree-iterator.c: Likewise.
9684 * tree-loop-distribution.c: Likewise.
9685 * tree-nested.c: Likewise.
9686 * tree-parloops.c: Likewise.
9687 * tree-predcom.c: Likewise.
9688 * tree-profile.c: Likewise.
9689 * tree-scalar-evolution.c: Likewise.
9690 * tree-sra.c: Likewise.
9691 * tree-ssa-address.c: Likewise.
9692 * tree-ssa-ccp.c: Likewise.
9693 * tree-ssa-dce.c: Likewise.
9694 * tree-ssa-forwprop.c: Likewise.
9695 * tree-ssa-ifcombine.c: Likewise.
9696 * tree-ssa-loop-im.c: Likewise.
9697 * tree-ssa-loop-ivopts.c: Likewise.
9698 * tree-ssa-loop-manip.c: Likewise.
9699 * tree-ssa-loop-niter.c: Likewise.
9700 * tree-ssa-loop-prefetch.c: Likewise.
9701 * tree-ssa-loop-unswitch.c: Likewise.
9702 * tree-ssa-math-opts.c: Likewise.
9703 * tree-ssa-phiopt.c: Likewise.
9704 * tree-ssa-phiprop.c: Likewise.
9705 * tree-ssa-pre.c: Likewise.
9706 * tree-ssa-propagate.c: Likewise.
9707 * tree-ssa-reassoc.c: Likewise.
9708 * tree-ssa-sccvn.c: Likewise.
9709 * tree-ssa-strlen.c: Likewise.
9710 * tree-ssa.c: Likewise.
9711 * tree-switch-conversio: Likewise.n.c
9712 * tree-tailcall.c: Likewise.
9713 * tree-vect-data-refs.c: Likewise.
9714 * tree-vect-generic.c: Likewise.
9715 * tree-vect-loop-manip.c: Likewise.
9716 * tree-vect-loop.c: Likewise.
9717 * tree-vect-patterns.c: Likewise.
9718 * tree-vect-stmts.c: Likewise.
9719 * tsan.c: Likewise.
9720 * value-prof.c: Likewise.
9721 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
9722 * config/alpha/alpha.c: Likewise.
9723 * config/darwin.c: Likewise.
9724 * config/i386/i386.c: Likewise.
9725 * config/ia64/ia64.c: Likewise.
9726 * config/mep/mep.c: Likewise.
9727 * config/mips/mips.c: Likewise.
9728 * config/rs6000/rs6000.c: Likewise.
9729 * config/s390/s390.c: Likewise.
9730 * config/sh/sh.c: Likewise.
9731 * config/sparc/sparc.c: Likewise.
9732 * config/spu/spu.c: Likewise.
9733 * config/stormy16/stormy16.c: Likewise.
9734 * config/tilegx/tilegx.c: Likewise.
9735 * config/tilepro/tilepro.c: Likewise.
9736 * config/xtensa/xtensa.c: Likewise.
9737
9738 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
9739
9740 * tree.c (grow_tree_vec_stat): New function ...
9741 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
9742 and macro front-end.
9743
9744 2013-11-12 Marek Polacek <polacek@redhat.com>
9745
9746 * final.c (update_alignments): Initialize label to NULL_RTX.
9747
9748 2013-11-12 Jeff Law <law@redhat.com>
9749
9750 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
9751 (insert_trap_and_remove_trailing_statements): New argument OP which
9752 is the NULL pointer. Emit the trap after the load/store through
9753 the NULL pointer. Simplify the RHS of a store through a NULL pointer
9754 when trivial to do so.
9755 (isolate_path): Corresponding changes.
9756 (gimple_ssa_isolate_erroneous_path): Likewise.
9757
9758 2013-11-12 Teresa Johnson <tejohnson@google.com>
9759 Jan Hubicka <jh@suse.cz>
9760
9761 * predict.c (drop_profile): New function.
9762 (handle_missing_profiles): Ditto.
9763 (counts_to_freqs): Don't overwrite estimated frequencies
9764 when function has no profile counts.
9765 * predict.h (handle_missing_profiles): Declare.
9766 * tree-inline.c (freqs_to_counts): New function.
9767 (copy_cfg_body): Invoke freqs_to_counts as needed.
9768 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
9769
9770 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
9771
9772 PR target/59088
9773 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
9774 Set for m_HASWELL.
9775 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
9776
9777 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
9778
9779 PR target/59084
9780 * config/i386/i386.c (ix86_option_override_internal): Check
9781 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
9782 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
9783 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
9784 MASK_AVX256_SPLIT_UNALIGNED_STORE.
9785
9786 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
9787 Clear m_COREI7_AVX and update comments.
9788 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
9789
9790 2013-11-12 Martin Jambor <mjambor@suse.cz>
9791
9792 PR rtl-optimization/10474
9793 * ira.c (interesting_dest_for_shprep): New function.
9794 (split_live_ranges_for_shrink_wrap): Likewise.
9795 (find_moveable_pseudos): Move calculation of dominance info,
9796 df_analysios and the final anlyses to...
9797 (ira): ...here, call split_live_ranges_for_shrink_wrap.
9798
9799 2013-11-12 Bin Cheng <bin.cheng@arm.com>
9800
9801 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
9802 Handle type conversion.
9803
9804 2013-11-11 Martin Liska <marxin.liska@gmail.com>
9805 Jan Hubicka <jh@suse.cz>
9806
9807 * cgraph.c (dump_cgraph_node): Profile dump added.
9808 * cgraph.h (struct cgraph_node): New time profile variable added.
9809 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
9810 * gcov-io.h (gcov_type): New profiler type introduced.
9811 * ipa-profile.c (lto_output_node): Streaming for time profile added.
9812 (input_node): Time profiler is read from LTO stream.
9813 * predict.c (maybe_hot_count_p): Hot prediction changed.
9814 * profile.c (instrument_values): New case for time profiler added.
9815 (compute_value_histograms): Read of time profile.
9816 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
9817 * tree-profile.c (init_ic_make_global_vars): Time profiler
9818 function added.
9819 (gimple_init_edge_profiler): TP function instrumentation.
9820 (gimple_gen_time_profiler): New.
9821 * value-prof.c (gimple_add_histogram_value): Support for time profiler
9822 added.
9823 (dump_histogram_value): TP type added to dumps.
9824 (visit_hist): More sensitive check that takes TP into account.
9825 (gimple_find_values_to_profile): TP instrumentation.
9826 * value-prof.h (hist_type): New histogram type added.
9827 (struct histogram_value_t): Pointer to struct function added.
9828 * libgcc/Makefile.in: New GCOV merge function for TP added.
9829 * libgcov.c: function_counter variable introduced.
9830 (_gcov_merge_time_profile): New.
9831 (_gcov_time_profiler): New.
9832
9833 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
9834 Jeff Law <law@redhat.com>
9835
9836 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
9837 ao_ref_init_from_ptr_and_size for builtins.
9838
9839 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
9840 H.J. Lu <hongjiu.lu@intel.com>
9841
9842 PR target/58853
9843 * config/i386/x86-tune.def
9844 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
9845 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
9846 * config/i386/i386.h
9847 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
9848 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
9849 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
9850 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
9851 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
9852 misaligned_prologue_used. Check that
9853 desired_aling <= epilogue_size_needed.
9854
9855 2013-11-11 Cong Hou <congh@google.com>
9856
9857 PR tree-optimization/59050
9858 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
9859
9860 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
9861
9862 PR middle-end/59049
9863 * expmed.c (emit_store_flag): Fail for const-const comparison.
9864
9865 2013-11-11 Tristan Gingold <gingold@adacore.com>
9866 Eric Botcazou <ebotcazou@adacore.com>
9867
9868 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
9869 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
9870 * tree.def (CONSTRUCTOR): Likewise.
9871 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
9872 * gimplify.c (gimplify_init_constructor): Do not clear the object when
9873 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
9874
9875 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
9876
9877 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
9878 diagnostic_finish.
9879
9880 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9881
9882 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
9883 comparisons.
9884
9885 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
9886
9887 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
9888
9889 2013-11-08 Jeff Law <law@redhat.com>
9890
9891 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
9892 threading paths first, then perform PHI node checks if applicable.
9893
9894 2013-11-10 Karlson2k <k2k@narod.ru>
9895 Kai Tietz <ktietz@redhat.com>
9896
9897 PR plugin/52872
9898 * configure.ac: Adding for exported symbols check
9899 and for rdynamic-check executable-extension.
9900 * configure: Regenerated.
9901
9902 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
9903
9904 * mode-switching.c (optimize_mode_switching): Mark block as
9905 nontransparent, if last_mode at block exit is different from no_mode.
9906
9907 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9908
9909 * function.c (NAME__MAIN): Move to...
9910 * cfgexpand.c (NAME__MAIN): ...here.
9911
9912 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
9913
9914 * target.def (can_use_doloop_p): New hook.
9915 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
9916 * doc/tm.texi: Regenerate.
9917 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
9918 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
9919 * hooks.c (hook_bool_dint_dint_uint_true): New function.
9920 * targhooks.h (can_use_doloop_if_innermost): Declare.
9921 * targhooks.c (can_use_doloop_if_innermost): New function.
9922 * target.h: Include double-int.h.
9923 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
9924 Remove iteration count, maximum iteration count, loop depth and
9925 enter-at-top inputs from doloop_begin and doloop_end.
9926 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
9927 interface.
9928 * config/arc/arc.c (arc_can_use_doloop_p): New function.
9929 (TARGET_CAN_USE_DOLOOP_P): Define.
9930 * config/arm/thumb2.md (doloop_end): Update for new interface.
9931 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
9932 * config/bfin/bfin.md (doloop_end): Update for new interface.
9933 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
9934 (TARGET_CAN_USE_DOLOOP_P): Define.
9935 * config/c6x/c6x.md (doloop_end): Update for new interface.
9936 * config/ia64/ia64.md (doloop_end): Update for new interface.
9937 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
9938 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
9939 interface.
9940 * config/mep/mep.c (mep_emit_doloop): Likewise.
9941 (TARGET_CAN_USE_DOLOOP_P): Define.
9942 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
9943 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
9944 * config/s390/s390.md (doloop_end): Update for new interface.
9945 * config/sh/sh.md (doloop_end): Likewise.
9946 * config/spu/spu.md (doloop_end): Likewise.
9947 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
9948 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
9949 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
9950 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
9951 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
9952 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
9953 interface.
9954 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
9955
9956 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
9957
9958 PR other/59055
9959 * doc/extend.texi: Move Cilk Plus Builtins node before Other
9960 Builtins node.
9961
9962 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
9963 Joseph Myers <joseph@codesourcery.com>
9964
9965 * ginclude/stdatomic.h: New file.
9966 * Makefile.in (USER_H): Add stdatomic.h.
9967
9968 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9969
9970 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
9971 comparisons.
9972
9973 2013-11-08 Jeff Law <law@redhat.com>
9974
9975 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
9976 * tree-ssa-threadupdate.c (delete_thread_path): New function.
9977 (ssa_redirect_edges, thread_block_1): Use it.
9978 (thread_through_loop_header, mark_threaded_blocks): Likewise.
9979 (thread_through_all_blocks, register_jump_thread): Likewise.
9980 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
9981
9982 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
9983
9984 * config/arm/aarch-common.c
9985 (search_term): New typedef.
9986 (shift_rtx_costs): New array.
9987 (arm_rtx_shift_left_p): New.
9988 (arm_find_sub_rtx_with_search_term): Likewise.
9989 (arm_find_sub_rtx_with_code): Likewise.
9990 (arm_early_load_addr_dep): Add sanity checking.
9991 (arm_no_early_alu_shift_dep): Likewise.
9992 (arm_no_early_alu_shift_value_dep): Likewise.
9993 (arm_no_early_mul_dep): Likewise.
9994 (arm_no_early_store_addr_dep): Likewise.
9995
9996 2013-11-08 Richard Biener <rguenther@suse.de>
9997
9998 PR tree-optimization/59047
9999 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
10000
10001 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
10002
10003 * common.opt (fcheck-pointer-bounds): Move to ...
10004 * c-family/c.opt: ... here.
10005 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
10006 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
10007 * langhooks.h (lang_hooks): Remove chkp_supported field.
10008 * toplev.c (process_options): Remove chkp_supported check.
10009
10010 2013-11-08 Richard Biener <rguenther@suse.de>
10011
10012 PR tree-optimization/59038
10013 PR tree-optimization/58955
10014 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
10015 previous change. Handle known dependences correctly.
10016
10017 2013-11-08 Tom de Vries <tom@codesourcery.com>
10018
10019 * config/rs6000/t-xilinx: Remove duplicate contents.
10020
10021 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
10022 Joseph Myers <joseph@codesourcery.com>
10023
10024 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
10025 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
10026 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
10027 (struct tree_base): Add atomic_flag field.
10028 * tree.h (TYPE_ATOMIC): New accessor macro.
10029 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
10030 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
10031 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
10032 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
10033 * tree.c (set_type_quals): Set TYPE_ATOMIC.
10034 (find_atomic_core_type): New function.
10035 (build_qualified_type): Adjust alignment for qualified types.
10036 (build_atomic_base): New function
10037 (build_common_tree_nodes): Build atomicQI_type_node,
10038 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
10039 atomicTI_type_node.
10040 * print-tree.c (print_node): Print atomic qualifier.
10041 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
10042 * target.def (atomic_assign_expand_fenv): New hook.
10043 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
10044 * doc/tm.texi: Regenerate.
10045 * targhooks.c (default_atomic_assign_expand_fenv): New function.
10046 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
10047 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
10048 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
10049 function type.
10050 * config/i386/i386.c (enum ix86_builtins): Add
10051 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
10052 IX86_BUILTIN_FNCLEX.
10053 (bdesc_special_args): Add __builtin_ia32_fnstenv,
10054 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
10055 (ix86_expand_builtin): Handle the new built-in functions.
10056 (ix86_atomic_assign_expand_fenv): New function.
10057 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
10058 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
10059 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
10060 (fnstenv, fldenv, fnstsw, fnclex): New insns.
10061
10062 2013-11-07 Steve Ellcey <sellcey@mips.com>
10063
10064 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
10065 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
10066 (MULTILIB_DIRNAMES): Add fp64 directory.
10067 (MULTILIB_EXCEPTIONS): Add new exclusions.
10068
10069 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
10070
10071 * gimplify.c (gimple_regimplify_operands): Do not set
10072 SSA_NAME_DEF_STMT.
10073 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
10074 (rewrite_close_phi_out_of_ssa): Same.
10075 (rewrite_phi_out_of_ssa): Same.
10076 (rewrite_degenerate_phi): Same.
10077 (handle_scalar_deps_crossing_scop_limits): Same.
10078 * tree-if-conv.c (predicate_scalar_phi): Same.
10079 * tree-parloops.c (create_loads_for_reductions): Same.
10080 (create_final_loads_for_reduction): Same.
10081 (create_loads_and_stores_for_name): Same.
10082 (transform_to_exit_first_loop): Same.
10083 (create_parallel_loop): Same.
10084 * tree-ssa-loop-im.c
10085 (move_computations_dom_walker::before_dom_children): Same.
10086 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
10087 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
10088 * tree-ssa-propagate.c (substitute_and_fold): Same.
10089 * tree-vect-loop.c (vect_finalize_reduction): Same.
10090 * tree-vect-stmts.c (vectorizable_call): Same.
10091
10092 2013-11-07 Mike Stump <mikestump@comcast.net>
10093
10094 * config/pdp11/pdp11.c: Include dbxout.h.
10095 * config/picochip/picochip.c: Likewise.
10096
10097 2013-11-07 Cong Hou <congh@google.com>
10098
10099 PR tree-optimization/56764
10100 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
10101 Combine alias checks if it is possible to amortize the runtime
10102 overhead. Return the number of alias checks after merging.
10103 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
10104 Use the function vect_create_cond_for_alias_checks () to check
10105 the number of alias checks.
10106
10107 2013-11-07 Jeff Law <law@redhat.com>
10108
10109 * varpool.c (ctor_for_folding): Fix typo in comment.
10110
10111 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
10112
10113 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
10114 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
10115
10116 2013-11-07 Jeff Law <law@redhat.com>
10117
10118 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
10119
10120 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
10121 No longer check if we have __builtin_trap, assume it's available.
10122
10123 2013-11-07 Diego Novillo <dnovillo@google.com>
10124
10125 * attribs.c (lookup_scoped_attribute_spec): Make static.
10126 (get_attribute_namespace): Likewise.
10127 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
10128 (validate_arglist): Move earlier in the file. Make static.
10129 (expand_stack_restore): Move from stmt.c
10130 (expand_stack_save): Move from stmt.c
10131 (rewrite_call_expr_array): Move earlier in the file.
10132 (rewrite_call_expr_valist): Likewise.
10133 * cfgexpand.c: Include hard-reg-set.h before tree.h
10134 Include recog.h.
10135 Include output.h.
10136 (expand_asm_loc): Move from stmt.c.
10137 (n_occurrences): Move from stmt.c.
10138 (check_operand_nalternatives): Move from stmt.c.
10139 (tree_conflicts_with_clobbers_p): Move from stmt.c.
10140 (expand_asm_operands): Move from stmt.c
10141 (expand_asm_stmt): Move from stmt.c
10142 (expand_computed_goto): Move from stmt.c
10143 (expand_goto): Move from stmt.c
10144 (expand_null_return_1): Move from stmt.c
10145 (expand_null_return): Move from stmt.c
10146 (expand_value_return): Move from stmt.c
10147 (expand_return): Move from stmt.c
10148 (expand_main_function): Move from function.c
10149 (stack_protect_prologue): Move from function.c
10150 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
10151 (build_function_decl_skip_args): Move from tree.c.
10152 * explow.c (tree_expr_size): Move from tree.c.
10153 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
10154 (fields_length): Move from tree.c.
10155 * fold-const.c (size_low_cst): Move from tree.c.
10156 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
10157 (tree_expr_nonzero_p): Make static. Move earlier in the file.
10158 (fold_build3_initializer_loc): Remove.
10159 (tree_invalid_nonnegative_warnv_p): Make static.
10160 * function.c (expand_main_function): Move to cfgexpand.c.
10161 (stack_protect_prologue): Move to cfgexpand.c.
10162 (set_insn_locations): Move earlier in the file.
10163 * gimple-fold.c: Include langhooks.h.
10164 (truth_type_for): Move from tree.c.
10165 * print-tree.c (print_vec_tree): Remove.
10166 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
10167 (expand_goto): Move to cfgexpand.c.
10168 (n_occurrences): Move to cfgexpand.c.
10169 (expand_asm_loc): Move to cfgexpand.c
10170 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
10171 (expand_asm_operands): Move to cfgexpand.c.
10172 (expand_asm_stmt): Move to cfgexpand.c.
10173 (check_operand_nalternatives): Move to cfgexpand.c
10174 (expand_null_return): Move to cfgexpand.c.
10175 (expand_value_return): Move to cfgexpand.c.
10176 (expand_null_return_1): Move to cfgexpand.c.
10177 (expand_return): Move to cfgexpand.c.
10178 (expand_stack_save): Move to builtins.c.
10179 (expand_stack_restore): Move to builtins.c
10180 * symtab.c: Include output.h.
10181 (decl_assembler_name_hash): Move from tree.c.
10182 (decl_assembler_name_equal): Move from tree.c.
10183 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
10184 * tree-eh.c (in_array_bounds_p): Move from tree.c.
10185 (range_in_array_bounds_p): Move from tree.c.
10186 * tree-object-size.c (fini_object_sizes): Make static.
10187 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
10188 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
10189 * tree.c (decl_assembler_name_equal): Move to symtab.c.
10190 (tree_expr_size): Move to explow.c.
10191 (decl_assembler_name_hash): Move to symtab.c.
10192 (real_twop): Remove.
10193 (tree_expr_size): Move to explow.c.
10194 (stabilize_reference_1): Move earlier in the file. Make static.
10195 (omp_remove_redundant_declare_simd_attrs): Remove.
10196 (simple_cst_list_equal): Move earlier in the file. Make static.
10197 (size_low_cst): Move to fold-const.c.
10198 (build_type_no_quals): Remove.
10199 (build_function_type_skip_args): Move to cgraphclones.c.
10200 (build_function_decl_skip_args): Move to cgraphclones.c.
10201 (in_array_bounds_p): Move to tree-eh.c.
10202 (range_in_array_bounds_p): Move to tree-eh.c.
10203 (truth_type_for): Move to gimple-fold.c.
10204 (list_equal_p): Remove.
10205 * tree.h (decl_assembler_name_equal): Remove.
10206 (decl_assembler_name_hash): Remove.
10207 (truth_type_for): Remove.
10208 (build_type_no_quals): Remove.
10209 (build_function_decl_skip_args): Remove.
10210 (in_array_bounds_p): Remove.
10211 (range_in_array_bounds_p): Remove.
10212 (size_low_cst): Remove.
10213 (omp_remove_redundant_declare_simd_attrs): Remove.
10214 (tree_expr_size): Remove.
10215 (fields_length): Remove.
10216 (stabilize_reference_1): Remove.
10217 (expand_goto): Remove.
10218 (expand_stack_save): Remove.
10219 (expand_stack_restore): Remove.
10220 (expand_return): Remove.
10221 (fold_build3_initializer_loc): Remove.
10222 (tree_expr_nonzero_p): Remove.
10223 (tree_invalid_nonnegative_warnv_p): Remove.
10224 (tree_expr_nonzero_warnv_p): Remove.
10225 (fold_builtin_snprintf_chk): Remove.
10226 (validate_arglist): Remove.
10227 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
10228 (simple_cst_list_equal): Remove.
10229 (real_twop): Remove.
10230 (expand_main_function): Remove.
10231 (stack_protect_prologue): Remove.
10232 (print_vec_tree): Remove.
10233 (lookup_scoped_attribute_spec): Remove.
10234 (get_attribute_namespace): Remove.
10235 (expand_computed_goto): Remove.
10236 (expand_asm_stmt): Remove.
10237 (list_equal_p): Remove.
10238 (ssa_name_nonnegative_p): Remove.
10239 (fini_object_sizes): Remove.
10240 (addr_expr_of_non_mem_decl_p): Remove.
10241 (is_tm_safe_or_pure): Move to trans-mem.c.
10242 (more_const_call_expr_args_p): Remove.
10243 (save_vtable_map_decl): Remove.
10244
10245 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
10246
10247 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
10248 linker plugins, too.
10249
10250 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
10251 link to libgomp and its dependencies.
10252 * config/ia64/hpux.h (LIB_SPEC): Likewise.
10253 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10254 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
10255 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
10256
10257 2013-11-07 Jakub Jelinek <jakub@redhat.com>
10258
10259 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
10260 (determine_value_range): Add loop argument. Use get_range_info to
10261 improve range.
10262 (bound_difference): Adjust caller.
10263
10264 2013-11-07 Richard Biener <rguenther@suse.de>
10265 Jakub Jelinek <jakub@redhat.com>
10266
10267 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
10268 latches from header PHI arguments from the latch edge.
10269
10270 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
10271
10272 PR c++/58176
10273 * varasm.c (output_constant): Handle NULLPTR_TYPE.
10274
10275 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
10276
10277 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
10278 misaligned_prologue_used when it has been set.
10279
10280 2013-11-07 Yury Gribov <y.gribov@samsung.com>
10281 Jakub Jelinek <jakub@redhat.com>
10282
10283 PR sanitizer/59029
10284 * asan.c (get_mem_refs_of_builtin_call): Allow
10285 integer literals as addresses in instrumented builtins.
10286
10287 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10288
10289 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
10290 Explain why plus_constant is not used.
10291
10292 2013-11-07 Richard Biener <rguenther@suse.de>
10293
10294 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
10295 (canonicalize_value): ... this. Also handle stripping of
10296 TREE_OVERFLOW.
10297 (get_value, set_lattice_value, get_value_for_expr): Adjust.
10298 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
10299 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
10300
10301 2013-11-07 Richard Biener <rguenther@suse.de>
10302
10303 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
10304
10305 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
10306
10307 PR target/59034
10308 * config/i386/i386.md (push peepholer/splitter): Use Pmode
10309 with stack_pointer_rtx.
10310
10311 2013-11-07 Bin Cheng <bin.cheng@arm.com>
10312
10313 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
10314 using operand_equal_p.
10315
10316 2013-11-07 Bin Cheng <bin.cheng@arm.com>
10317
10318 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
10319 * tree-affine.c (get_inner_reference_aff): Return base.
10320 * tree-affine.h (get_inner_reference_aff): Change prototype.
10321
10322 2013-11-06 Tobias Burnus <burnus@net-b.de>
10323
10324 * doc/invoke.texi (Wdate-time): Fix typo.
10325
10326 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
10327
10328 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
10329 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
10330 fp_arith_reg_operand instead of arith_reg_operand.
10331
10332 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
10333
10334 * config/sh/sh.md (adddi3): Remove empty constraints.
10335 Remove can_create_pseudo_p and arith_reg_operand check.
10336 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
10337 Split before reload.
10338
10339 2013-11-06 Jeff Law <law@redhat.com>
10340 Tom Tromey <tromey@redhat.com>
10341
10342 * gdbinit.in: Disable strict type checking.
10343
10344 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
10345
10346 * tree-pass.h (make_pass_live_range_shrinkage): New external.
10347 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
10348 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
10349 (rest_of_handle_live_range_shrinkage): Ditto
10350 (class pass_live_range_shrinkage): Ditto.
10351 (pass_data_live_range_shrinkage): Ditto.
10352 (make_pass_live_range_shrinkage): Ditto.
10353 * sched-int.h (initialize_live_range_shrinkage): New prototype.
10354 (finish_live_range_shrinkage): Ditto.
10355 * sched-deps.c (create_insn_reg_set): Make void return value.
10356 * passes.def: Add pass_live_range_shrinkage.
10357 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
10358 * haifa-sched.c (live_range_shrinkage_p): New.
10359 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
10360 New functions.
10361 (rank_for_schedule): Add code for pressure relief through live
10362 range shrinkage.
10363 (schedule_insn): Print more debug info.
10364 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
10365 through live range shrinkage.
10366 * doc/invoke.texi (-flive-range-shrinkage): New.
10367 * common.opt (flive-range-shrinkage): New.
10368
10369 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
10370
10371 PR target/59021
10372 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
10373 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
10374 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
10375 RTXes that return in AVX256 register.
10376
10377 2013-11-06 Richard Biener <rguenther@suse.de>
10378
10379 PR tree-optimization/58653
10380 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
10381 (prepare_initializers_chain): Adjust.
10382
10383 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
10384
10385 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
10386 (gimple_in_transaction): Use bb_in_transaction.
10387 * basic-block.h (bb_in_transaction): Relocate here and rename.
10388 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
10389
10390 2013-11-06 Richard Biener <rguenther@suse.de>
10391
10392 * tree.c (drop_tree_overflow): New function.
10393 * tree.h (drop_tree_overflow): Declare.
10394 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
10395 * tree-vrp.c (range_int_cst_singleton_p): Use
10396 is_overflow_infinity instead of testing TREE_OVERFLOW.
10397 (extract_range_from_assert): Likewise.
10398 (zero_nonzero_bits_from_vr): Likewise.
10399 (extract_range_basic): Likewise.
10400 (register_new_assert_for): Use drop_tree_overflow.
10401 (vrp_visit_phi_node): Likewise.
10402
10403 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
10404
10405 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
10406 checking for leaf functions without dynamic stack allocation.
10407 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
10408 (ia64_expand_prologue): Likewise.
10409 * config/mips/mips.c (mips_expand_prologue): Likewise.
10410 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
10411 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
10412 (sparc_flat_expand_prologue): Likewise.
10413
10414 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
10415
10416 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
10417 (__ST3_LANE_FUNC): Likewise.
10418 (__ST4_LANE_FUNC): Likewise.
10419
10420 2013-11-06 Nick Clifton <nickc@redhat.com>
10421
10422 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
10423 name returned by msp430_mcu_name.
10424 (LIB_SPEC): If a -T option has not been specified then set a
10425 default, mcu-specific, linker script.
10426 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
10427 * config/msp430/msp430.c (msp430x_names): Likewise.
10428 Alpha sort the names for ease of comparison.
10429 (msp430_mcu_name): New function: Returns a string suitable for
10430 use as a C preprocessor symbol based upon the name of the MCU
10431 being targeted.
10432 (msp430_option_override): Accept msp430x and msp430xv2 as generic
10433 mcu names.
10434 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
10435
10436 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
10437 unless it is the last part of a spec substring.
10438 * doc/invoke.texi (Spec Files): Document space insertion
10439 behaviour of %*.
10440
10441 2013-11-06 Christian Bruel <christian.bruel@st.com>
10442
10443 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
10444 Factorize probabilities, Use adjust_address instead of
10445 adjust_automodify_address when possible. Enable for optimize.
10446 (sh_expand_strlen): New function.
10447 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
10448 * config/sh/sh.md (strlensi): New pattern.
10449 (UNSPEC_BUILTIN_STRLEN): Define.
10450
10451 2013-11-06 Jakub Jelinek <jakub@redhat.com>
10452
10453 PR middle-end/58970
10454 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
10455 (expand_assignment): If *bitpos is negative, set *offset
10456 and adjust *bitpos, so that it is not negative.
10457
10458 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
10459
10460 * config/i386/bdver3.md : Added two additional decoder units
10461 to support issue rate of 4 and remodeled vector unit.
10462 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
10463 architectures is set to 4.
10464 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
10465 lookahead is set to 4 for BD architectures.
10466
10467 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10468
10469 * config/rs6000/rs6000.c (rs6000_option_override_internal):
10470 Remove restriction against use of VSX instructions when generating
10471 code for little endian mode.
10472
10473 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10474
10475 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
10476 for both big and little endian.
10477 (mulv8hi3): Swap input operands for merge high and merge low
10478 instructions for little endian.
10479
10480 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10481
10482 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
10483 define_insn to define_expand that uses even patterns for big
10484 endian and odd patterns for little endian.
10485 (vec_widen_smult_even_v16qi): Likewise.
10486 (vec_widen_umult_even_v8hi): Likewise.
10487 (vec_widen_smult_even_v8hi): Likewise.
10488 (vec_widen_umult_odd_v16qi): Likewise.
10489 (vec_widen_smult_odd_v16qi): Likewise.
10490 (vec_widen_umult_odd_v8hi): Likewise.
10491 (vec_widen_smult_odd_v8hi): Likewise.
10492 (altivec_vmuleub): New define_insn.
10493 (altivec_vmuloub): Likewise.
10494 (altivec_vmulesb): Likewise.
10495 (altivec_vmulosb): Likewise.
10496 (altivec_vmuleuh): Likewise.
10497 (altivec_vmulouh): Likewise.
10498 (altivec_vmulesh): Likewise.
10499 (altivec_vmulosh): Likewise.
10500
10501 2013-11-05 Mike Stump <mikestump@comcast.net>
10502
10503 * Makefile.in (mostlyclean): Remove c-family objects.
10504
10505 2013-11-05 Ian Lance Taylor <iant@google.com>
10506
10507 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
10508 If possible, add .cfi directives to record change to bx.
10509 * config/i386/i386.c (ix86_emit_cfi): New function.
10510 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
10511
10512 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
10513
10514 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
10515 immediately after a label for a tablejump pattern.
10516
10517 * config/arm/arm.c (is_jump_table): Remove.
10518 (create_fix_barrier): Use tablejump_p instead.
10519 (arm_reorg): Likewise.
10520 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
10521 (thumb2_output_casesi): Likewise.
10522 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
10523 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
10524 casesi_shift_media, casesi_load_media): Likewise.
10525 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
10526 * config/microblaze/microblaze.md: Likewise.
10527
10528 2013-11-05 Tobias Burnus <burnus@net-b.de>
10529
10530 * doc/invoke.texi (-Wdate-time): Document.
10531
10532 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
10533
10534 * double-int.c (lshift_double, rshift_double): Remove
10535 SHIFT_COUNT_TRUNCATED handling.
10536
10537 2013-11-05 Jeff Law <law@redhat.com>
10538
10539 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
10540 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
10541 * gimple-ssa-isolate-paths.c: New file.
10542 * gimple.c (check_loadstore): New function.
10543 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
10544 Verify OP is in the argument list and the argument corresponding
10545 to OP is a pointer type. Use operand_equal_p rather than
10546 pointer equality when testing if OP is on the nonnull list.
10547 Use check_loadstore rather than count_ptr_derefs. Handle
10548 GIMPLE_RETURN statements.
10549 * tree-vrp.c (infer_nonnull_range): Remove.
10550 * gimple.h (infer_nonnull_range): Declare.
10551 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
10552 * passes.def: Add pass_isolate_erroneous_paths.
10553 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
10554 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
10555 * tree-ssa.c (struct count_ptr_d): Remove.
10556 (count_ptr_derefs, count_uses_and_derefs): Remove.
10557 * tree-ssa.h (count_uses_and_derefs): Remove.
10558
10559 2013-11-05 Jakub Jelinek <jakub@redhat.com>
10560
10561 PR rtl-optimization/58997
10562 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
10563 get_iv_value to be in iv->mode rather than iv->extend_mode.
10564 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
10565 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
10566 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
10567 mode.
10568
10569 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
10570
10571 * gimple.h: Move some prototypes to gimple-expr.h and add to include
10572 list.
10573 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
10574 Move to gimple-expr.h.
10575 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
10576 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
10577 is_gimple_id, virtual_operand_p, is_gimple_addressable,
10578 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
10579 Relocate here.
10580 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
10581 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
10582 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
10583 is_gimple_address, is_gimple_invariant_address,
10584 is_gimple_ip_invariant_address, is_gimple_min_invariant,
10585 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
10586 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
10587 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
10588 gimple_decl_printable_name, useless_type_conversion_p,
10589 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
10590 gimple-expr.[ch].
10591 * gimple-expr.c: New File.
10592 (useless_type_conversion_p, gimple_set_body, gimple_body,
10593 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
10594 gimple_can_coalesce_p, extract_ops_from_tree_1,
10595 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
10596 is_gimple_address, is_gimple_invariant_address,
10597 is_gimple_ip_invariant_address, is_gimple_min_invariant,
10598 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
10599 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
10600 is_gimple_mem_ref_addr): Relocate here.
10601 * Makefile.in (OBJS): Add gimple-expr.o.
10602
10603 2013-11-05 David Malcolm <dmalcolm@redhat.com>
10604
10605 * gengtype-parse.c (struct_field_seq): Support empty structs.
10606
10607 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
10608
10609 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
10610
10611 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
10612
10613 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
10614 for !TARGET_80387.
10615 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
10616 _SOFT_FLOAT here.
10617 (LONG_DOUBLE_TYPE_SIZE): New define.
10618 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
10619
10620 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
10621
10622 PR c++/58724
10623 * doc/extend.texi [visibility ("visibility_type")]: Add example
10624 about visibility attribute on namespace declaration.
10625
10626 2013-11-05 Richard Biener <rguenther@suse.de>
10627
10628 PR ipa/58492
10629 * passes.def (all_passes): Start with pass_fixup_cfg again.
10630
10631 2013-11-05 Richard Biener <rguenther@suse.de>
10632
10633 PR tree-optimization/58955
10634 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
10635 edge direction.
10636
10637 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10638
10639 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
10640 little endian.
10641 (vec_pack_ufix_trunc_v2df): Likewise.
10642
10643 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
10644
10645 PR middle-end/58981
10646 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
10647 pattern, instead of word_mode.
10648
10649 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
10650 Pmode for size.
10651 (set_storage_via_setmem): Likewise.
10652
10653 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
10654
10655 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
10656 gimple.h and the rest of the condition in eliminate_build.
10657 (eliminate_build): Call new routine.
10658 * gimple.h (phi_ssa_name_p): Delete.
10659
10660 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
10661
10662 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
10663 case of no prefix and reserving zero slots, because when that's the
10664 case we'll never get here.
10665 * vec.h (va_heap::reserve): Don't try and handle
10666 vec_prefix::calculate_allocation returning zero because that should
10667 never happen.
10668
10669 2013-11-05 Richard Biener <rguenther@suse.de>
10670
10671 PR middle-end/58941
10672 * tree-dfa.c (get_ref_base_and_extent): Merge common code
10673 in MEM_REF and TARGET_MEM_REF handling. Make sure to
10674 process trailing array detection before diving into the
10675 view-converted object (and possibly apply some extra offset).
10676
10677 2013-11-05 Joseph Myers <joseph@codesourcery.com>
10678
10679 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
10680 New function.
10681 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
10682
10683 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
10684
10685 PR tree-optimization/58958
10686 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
10687 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
10688
10689 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
10690
10691 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
10692 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
10693
10694 2013-11-05 Jakub Jelinek <jakub@redhat.com>
10695
10696 PR tree-optimization/58984
10697 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
10698 set *SIZE_P if non-NULL on success.
10699 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
10700 callers.
10701 (ipcp_transform_function): Likewise. Punt if size of access
10702 is different from TYPE_SIZE on v->value's type.
10703
10704 2013-11-05 Tobias Burnus <burnus@net-b.de>
10705
10706 * doc/invoke.texi (-fopenmp-simd): Document new option.
10707 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
10708 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
10709 * tree.c (attribute_value_equal): Ditto.
10710
10711 2013-11-04 Wei Mi <wmi@google.com>
10712
10713 * sched-rgn.c (add_branch_dependences): Keep insns in
10714 a SCHED_GROUP at the end of BB to remain their location.
10715
10716 2013-11-04 Wei Mi <wmi@google.com>
10717
10718 * config/i386/i386.c (memory_address_length): Extract a part
10719 of code to rip_relative_addr_p.
10720 (rip_relative_addr_p): New Function.
10721 (ix86_macro_fusion_p): Ditto.
10722 (ix86_macro_fusion_pair_p): Ditto.
10723 * config/i386/i386.h: Add new tune features about macro-fusion.
10724 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
10725 * doc/tm.texi: Generated.
10726 * doc/tm.texi.in: Ditto.
10727 * haifa-sched.c (try_group_insn): New Function.
10728 (group_insns_for_macro_fusion): Ditto.
10729 (sched_init): Call group_insns_for_macro_fusion.
10730 * target.def: Add two hooks: macro_fusion_p and
10731 macro_fusion_pair_p.
10732
10733 2013-11-04 Kostya Serebryany <kcc@google.com>
10734
10735 Update to match the changed asan API.
10736 * asan.c (asan_function_start): New function.
10737 (asan_emit_stack_protection): Update the string stored in the
10738 stack red zone to match new API. Store the PC of the current
10739 function in the red zone.
10740 (asan_global_struct): Update the __asan_global definition to match
10741 the new API.
10742 (asan_add_global): Ditto.
10743 * asan.h (asan_function_start): New prototype.
10744 * final.c (final_start_function): Call asan_function_start.
10745 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
10746 to __asan_init_v3.
10747
10748 2013-11-04 Wei Mi <wmi@google.com>
10749
10750 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
10751 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
10752 * config/i386/i386.c (ix86_option_override_internal): Ditto.
10753 (ix86_issue_rate): Ditto.
10754 (ix86_adjust_cost): Ditto.
10755 (ia32_multipass_dfa_lookahead): Ditto.
10756 (ix86_sched_init_global): Ditto.
10757 (get_builtin_code_for_version): Ditto.
10758 * config/i386/i386.h (enum target_cpu_default): Ditto.
10759 (enum processor_type): Ditto.
10760 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
10761
10762 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
10763
10764 PR rtl-optimization/58967
10765 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
10766 !lra_in_progress for mode sizes bigger word.
10767
10768 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10769
10770 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
10771 arguments to merge instruction for little endian.
10772 (vec_widen_umult_lo_v16qi): Likewise.
10773 (vec_widen_smult_hi_v16qi): Likewise.
10774 (vec_widen_smult_lo_v16qi): Likewise.
10775 (vec_widen_umult_hi_v8hi): Likewise.
10776 (vec_widen_umult_lo_v8hi): Likewise.
10777 (vec_widen_smult_hi_v8hi): Likewise.
10778 (vec_widen_smult_lo_v8hi): Likewise.
10779
10780 2013-11-04 Ian Lance Taylor <iant@google.com>
10781
10782 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
10783 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
10784 builtins that take pointers.
10785 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
10786 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
10787 (run_gcc): Pass -fnon-call-exceptions.
10788
10789 2013-11-04 Jakub Jelinek <jakub@redhat.com>
10790
10791 * optabs.c (expand_vec_perm): Revert one incorrect line from
10792 2013-10-31 change.
10793
10794 PR tree-optimization/58978
10795 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
10796 use_stmt by single_imm_use directly. Only call single_imm_use
10797 on SSA_NAMEs.
10798
10799 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
10800
10801 PR rtl-optimization/58968
10802 * lra-spills.c (return_regno_p): New function.
10803 (lra_final_code_change): Use it.
10804
10805 2013-11-04 Joseph Myers <joseph@codesourcery.com>
10806
10807 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
10808 * target.def (float_exceptions_rounding_supported_p): New hook.
10809 * targhooks.c (default_float_exceptions_rounding_supported_p): New
10810 function.
10811 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
10812 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
10813 New @hook.
10814 * doc/tm.texi: Regenerate.
10815 * config.gcc (powerpc*-*-linux*): Set extra_objs.
10816 * config/rs6000/rs6000-linux.c: New file.
10817 * config/rs6000/rs6000-protos.h
10818 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
10819 * config/rs6000/linux.h
10820 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
10821 * config/rs6000/linux64.h
10822 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
10823 * config/rs6000/t-linux (rs6000-linux.o): New rule.
10824 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
10825
10826 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10827
10828 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
10829 Replace the define_insn_and_split with a define_insn and two
10830 define_splits, with the split after reload re-permuting the source
10831 register to its original value.
10832 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
10833 (*vsx_le_perm_store_v8hi): Likewise.
10834 (*vsx_le_perm_store_v16qi): Likewise.
10835
10836 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10837
10838 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
10839 little endian.
10840
10841 2013-11-04 Jakub Jelinek <jakub@redhat.com>
10842
10843 PR tree-optimization/58946
10844 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
10845 bbs with bbinfo[idx].op != NULL before all blocks with
10846 bbinfo[idx].op == NULL.
10847
10848 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
10849
10850 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
10851 (avr_dump_double_int_hex): Likewise.
10852 (avr_log_vadump): Remove %D and %X handling.
10853 * config/avr/avr.c (avr_double_int_push_digit): Delete.
10854 (avr_map_op_t): Change map from double_int to unsigned int.
10855 (avr_map_op): Update accordingly.
10856 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
10857 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
10858 unsigned ints rather than double_ints.
10859
10860 2013-11-03 Marek Polacek <polacek@redhat.com>
10861
10862 Implement -fsanitize=vla-bound.
10863 * opts.c (common_handle_option): Handle vla-bound.
10864 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
10865 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
10866 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
10867
10868 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
10869
10870 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
10871 little endian.
10872
10873 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
10874
10875 * config/i386/constraints.md (Ts, Tv): New address constrains.
10876 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
10877 constraint for address_no_seg_operand.
10878 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
10879 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
10880 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
10881 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
10882 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
10883 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
10884 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
10885 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
10886 constraint for vsib_address_operand.
10887
10888 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
10889
10890 * gcse.c (pre_delete): Remove references to regmove from comments.
10891 * recog.c: (validate_replace_rtx_1): Likewise.
10892 * config/rl78/rl78.c: Likewise.
10893 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
10894 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
10895 * common/config/mmix/mmix-common.c: Likewise.
10896
10897 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
10898
10899 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
10900 * gimplify.c (gimplify_compound_lval): Likewise.
10901 * graphite-clast-to-gimple.c (gloog): Likewise.
10902 * graphite-dependences.c (loop_is_parallel_p): Likewise.
10903 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
10904 (limit_scop); Likewise.
10905 (build_scops): Likewise.
10906 (dot_scop): Likewise.
10907 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
10908 (build_scop_drs): Likewise.
10909 (insert_stmts): Likewise.
10910 (insert_out_of_ssa_copy): Likewise.
10911 (remove_phi): Likewise.
10912 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
10913 * hw-doloop.c (discover_loop): Likewise.
10914 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
10915 * tree-dfa.c (dump_enumerated_decls): Likewise.
10916 * tree-if-conv.c (if_convertable_loop_p): Likewise.
10917 * tree-inline.c (tree_function_versioning): Likewise.
10918 * tree-loop-distribution.c (build_rdg): Likewise.
10919 (rdg_flag_vertex_and_dependent): Likewise.
10920 (distribute_loop): Likewise.
10921 * tree-parloops.c (loop_parallel_p): Likewise.
10922 (eliminate_local_variables): Likewise.
10923 (separate_decls_in_region): Likewise.
10924 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
10925 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
10926 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
10927 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
10928 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
10929 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
10930 (vectorizable_condition): Likewise.
10931
10932 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
10933
10934 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
10935 * configure: Regenerate.
10936 * config/i386/i386.md (*movdi_internal): Change
10937 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
10938 (*movdf_internal): Ditto.
10939 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
10940 * config/i386/sse.md (vec_concatv2di): Output interunit movq
10941 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
10942
10943 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
10944
10945 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
10946 after comment.
10947
10948 2013-10-31 David Malcolm <dmalcolm@redhat.com>
10949
10950 Automated part of renaming of symtab_node_base to symtab_node.
10951
10952 Patch autogenerated by rename_symtab.py from
10953 https://github.com/davidmalcolm/gcc-refactoring-scripts
10954 revision 58bb219cc090b2f4516a9297d868c245495ee622
10955 with ChangeLog entry fixed up by hand.
10956
10957 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
10958 symtab_node.
10959 (cgraph_node_for_asm): Likewise.
10960 * cgraph.h (symtab_node_base): Likewise.
10961 (cgraph_node): Likewise.
10962 (varpool_node): Likewise.
10963 (is_a_helper <cgraph_node>::test): Likewise.
10964 (is_a_helper <varpool_node>::test): Likewise.
10965 (symtab_nodes): Likewise.
10966 (symtab_register_node): Likewise.
10967 (symtab_unregister_node): Likewise.
10968 (symtab_remove_node): Likewise.
10969 (symtab_get_node): Likewise.
10970 (symtab_node_for_asm): Likewise.
10971 (symtab_node_asm_name): Likewise.
10972 (symtab_node_name): Likewise.
10973 (symtab_insert_node_to_hashtable): Likewise.
10974 (symtab_add_to_same_comdat_group): Likewise.
10975 (symtab_dissolve_same_comdat_group_list): Likewise.
10976 (dump_symtab_node): Likewise.
10977 (debug_symtab_node): Likewise.
10978 (dump_symtab_base): Likewise.
10979 (verify_symtab_node): Likewise.
10980 (verify_symtab_base): Likewise.
10981 (symtab_used_from_object_file_p): Likewise.
10982 (symtab_alias_ultimate_target): Likewise.
10983 (symtab_resolve_alias): Likewise.
10984 (fixup_same_cpp_alias_visibility): Likewise.
10985 (symtab_for_node_and_aliases): Likewise.
10986 (symtab_nonoverwritable_alias): Likewise.
10987 (availability symtab_node_availability): Likewise.
10988 (symtab_semantically_equivalent_p): Likewise.
10989 (fixup_same_cpp_alias_visibility): Likewise.
10990 (symtab_prevail_in_asm_name_hash): Likewise.
10991 (cgraph): Likewise.
10992 (varpool): Likewise.
10993 (varpool_first_variable): Likewise.
10994 (varpool_next_variable): Likewise.
10995 (varpool_first_static_initializer): Likewise.
10996 (varpool_next_static_initializer): Likewise.
10997 (varpool_first_defined_variable): Likewise.
10998 (varpool_next_defined_variable): Likewise.
10999 (cgraph_first_defined_function): Likewise.
11000 (cgraph_next_defined_function): Likewise.
11001 (cgraph_first_function): Likewise.
11002 (cgraph_next_function): Likewise.
11003 (cgraph_first_function_with_gimple_body): Likewise.
11004 (cgraph_next_function_with_gimple_body): Likewise.
11005 (symtab_alias_target): Likewise.
11006 (symtab_real_symbol_p): Likewise.
11007 (symtab_can_be_discarded): Likewise.
11008 * cgraphbuild.c (mark_address): Likewise.
11009 (mark_load): Likewise.
11010 (mark_store): Likewise.
11011 * cgraphunit.c (decide_is_symbol_needed): Likewise.
11012 (first): Likewise.
11013 (enqueue_node): Likewise.
11014 (referred_to_p): Likewise.
11015 (cgraph_process_same_body_aliases): Likewise.
11016 (analyze_functions): Likewise.
11017 (handle_alias_pairs): Likewise.
11018 (output_weakrefs): Likewise.
11019 (compile): Likewise.
11020 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
11021 * ipa-inline-analysis.c (inline_write_summary): Likewise.
11022 * ipa-prop.c (remove_described_reference): Likewise.
11023 (try_decrement_rdesc_refcount): Likewise.
11024 (ipa_edge_duplication_hook): Likewise.
11025 * ipa-ref.c (ipa_record_reference): Likewise.
11026 (ipa_maybe_record_reference): Likewise.
11027 (ipa_clone_ref): Likewise.
11028 (ipa_clone_references): Likewise.
11029 (ipa_clone_referring): Likewise.
11030 (ipa_find_reference): Likewise.
11031 (ipa_remove_stmt_references): Likewise.
11032 (ipa_clear_stmts_in_references): Likewise.
11033 * ipa-ref.h (symtab_node_base): Likewise.
11034 (ipa_ref): Likewise.
11035 (ipa_record_reference): Likewise.
11036 (ipa_maybe_record_reference): Likewise.
11037 (ipa_clone_references): Likewise.
11038 (ipa_clone_referring): Likewise.
11039 (ipa_clone_ref): Likewise.
11040 (ipa_find_reference): Likewise.
11041 (ipa_remove_stmt_references): Likewise.
11042 (ipa_clear_stmts_in_references): Likewise.
11043 * ipa-reference.c (ipa_reference_write_optimization_summary):
11044 Likewise.
11045 * ipa.c (enqueue_node): Likewise.
11046 (process_references): Likewise.
11047 (walk_polymorphic_call_targets): Likewise.
11048 (symtab_remove_unreachable_nodes): Likewise.
11049 (address_taken_from_non_vtable_p): Likewise.
11050 (comdat_can_be_unshared_p_1): Likewise.
11051 (comdat_can_be_unshared_p): Likewise.
11052 (can_replace_by_local_alias): Likewise.
11053 (function_and_variable_visibility): Likewise.
11054 * is-a.h: Likewise (within example in comment).
11055 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
11056 (lto_symtab_encoder_encode): Likewise.
11057 (lto_symtab_encoder_delete_node): Likewise.
11058 (lto_symtab_encoder_in_partition_p): Likewise.
11059 (lto_set_symtab_encoder_in_partition): Likewise.
11060 (output_refs): Likewise.
11061 (compute_ltrans_boundary): Likewise.
11062 (output_symtab): Likewise.
11063 (input_node): Likewise.
11064 (input_ref): Likewise.
11065 (input_edge): Likewise.
11066 (input_cgraph_1): Likewise.
11067 (input_refs): Likewise.
11068 (output_cgraph_opt_summary): Likewise.
11069 (input_node_opt_summary): Likewise.
11070 (input_cgraph_opt_section): Likewise.
11071 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
11072 Likewise.
11073 * lto-streamer-out.c (lto_output): Likewise.
11074 (output_symbol_p): Likewise.
11075 (produce_symtab): Likewise.
11076 * lto-streamer.h (lto_encoder_entry): Likewise.
11077 (lto_free_function_in_decl_state_for_node): Likewise.
11078 (lto_symtab_encoder_encode): Likewise.
11079 (lto_symtab_encoder_delete_node): Likewise.
11080 (lto_symtab_encoder_in_partition_p): Likewise.
11081 (lto_set_symtab_encoder_in_partition): Likewise.
11082 (lto_symtab_encoder_lookup): Likewise.
11083 (lsei_node): Likewise.
11084 (lto_symtab_encoder_deref): Likewise.
11085 * symtab.c (symtab_hash): Likewise.
11086 (assembler_name_hash): Likewise.
11087 (symtab_nodes): Likewise.
11088 (hash_node): Likewise.
11089 (eq_node): Likewise.
11090 (hash_node_by_assembler_name): Likewise.
11091 (eq_assembler_name): Likewise.
11092 (insert_to_assembler_name_hash): Likewise.
11093 (unlink_from_assembler_name_hash): Likewise.
11094 (symtab_prevail_in_asm_name_hash): Likewise.
11095 (symtab_register_node): Likewise.
11096 (symtab_insert_node_to_hashtable): Likewise.
11097 (symtab_unregister_node): Likewise.
11098 (symtab_get_node): Likewise.
11099 (symtab_remove_node): Likewise.
11100 (symtab_initialize_asm_name_hash): Likewise.
11101 (symtab_node_for_asm): Likewise.
11102 (symtab_add_to_same_comdat_group): Likewise.
11103 (symtab_dissolve_same_comdat_group_list): Likewise.
11104 (symtab_node_asm_name): Likewise.
11105 (symtab_node_name): Likewise.
11106 (dump_symtab_base): Likewise.
11107 (dump_symtab_node): Likewise.
11108 (dump_symtab): Likewise.
11109 (debug_symtab_node): Likewise.
11110 (verify_symtab_base): Likewise.
11111 (verify_symtab_node): Likewise.
11112 (verify_symtab): Likewise.
11113 (symtab_used_from_object_file_p): Likewise.
11114 (symtab_node_availability): Likewise.
11115 (symtab_alias_ultimate_target): Likewise.
11116 (fixup_same_cpp_alias_visibility): Likewise.
11117 (symtab_resolve_alias): Likewise.
11118 (symtab_for_node_and_aliases): Likewise.
11119 (symtab_for_node_and_aliases): Likewise.
11120 (symtab_nonoverwritable_alias_1): Likewise.
11121 (symtab_nonoverwritable_alias): Likewise.
11122 (symtab_semantically_equivalent_p): Likewise.
11123 * value-prof.c (init_node_map): Likewise.
11124 * varasm.c (find_decl): Likewise.
11125 * varpool.c (varpool_node_for_asm): Likewise.
11126 (varpool_remove_unreferenced_decls): Likewise.
11127
11128 2013-10-31 David Malcolm <dmalcolm@redhat.com>
11129
11130 Manual part of renaming of symtab_node_base to symtab_node.
11131
11132 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
11133 clashes with the preferred name for the base class.
11134 (const_symtab_node): Remove redundant typedef.
11135
11136 2013-10-31 Jakub Jelinek <jakub@redhat.com>
11137
11138 * optabs.c (expand_vec_perm): Avoid vector mode punning
11139 SUBREGs in SET_DEST.
11140 * expmed.c (store_bit_field_1): Likewise.
11141 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
11142 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
11143 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
11144 * config/i386/i386.c (ix86_expand_vector_move_misalign,
11145 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
11146 ix86_expand_sse_unpack, ix86_expand_args_builtin,
11147 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
11148 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
11149 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
11150 expand_vec_perm_vpshufb2_vpermq,
11151 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
11152 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
11153 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
11154 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
11155 than *d itself.
11156
11157 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
11158
11159 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
11160 Use gcc_unreachable for unhandled modes. Do not check results of
11161 expand_simple_binop. If not expanded to target, move the result.
11162
11163 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
11164 Shiva Chen <shiva0217@gmail.com>
11165
11166 * config.gcc (nds32*-*-*): Add nds32 target.
11167 * config/nds32/nds32.c: New file.
11168 * config/nds32/nds32.h: New file.
11169 * config/nds32/nds32.md: New file.
11170 * config/nds32/constants.md: New file.
11171 * config/nds32/constraints.md: New file.
11172 * config/nds32/iterators.md: New file.
11173 * config/nds32/nds32-doubleword.md: New file.
11174 * config/nds32/nds32-intrinsic.md: New file.
11175 * config/nds32/nds32_intrinsic.h: New file.
11176 * config/nds32/nds32-modes.def: New file.
11177 * config/nds32/nds32-multiple.md: New file.
11178 * config/nds32/nds32.opt: New file.
11179 * config/nds32/nds32-opts.h: New file.
11180 * config/nds32/nds32-protos.h: New file.
11181 * config/nds32/nds32-peephole2.md: New file.
11182 * config/nds32/pipelines.md: New file.
11183 * config/nds32/predicates.md: New file.
11184 * config/nds32/t-mlibs: New file.
11185 * common/config/nds32: New directory and files.
11186
11187 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
11188 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
11189 * doc/install.texi (Cross-Compiler-Specific Options): Document
11190 --with-nds32-lib for nds32 target.
11191 * doc/extend.texi (Function Attributes, Target Builtins): Document
11192 nds32 specific attributes.
11193
11194 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
11195
11196 * lra-constraints (process_alt_operands): Use the result
11197 elimination register for operand when matching constraints.
11198
11199 2013-10-31 Jakub Jelinek <jakub@redhat.com>
11200
11201 * tree-vrp.c (maybe_set_nonzero_bits): New function.
11202 (remove_range_assertions): Call it.
11203
11204 * tree.c (tree_ctz): New function.
11205 * tree.h (tree_ctz): New prototype.
11206 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
11207 first argument from tree to const_tree.
11208 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
11209 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
11210 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
11211 static.
11212 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
11213 * tree-vect-loop.c (vect_analyze_loop_operations,
11214 vect_transform_loop): Don't force scalar loop for bound just because
11215 number of iterations is unknown, only do it if it is not known to be
11216 a multiple of vectorization_factor.
11217 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
11218
11219 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
11220 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
11221 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
11222 (set_nonzero_bits, get_nonzero_bits): New prototypes.
11223 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
11224 a default def isn't partially constant.
11225 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
11226 is known to be partially zero.
11227 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
11228 to see if a default def isn't partially constant.
11229 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
11230 creation of a range, if VR_RANGE, try to improve nonzero_bits from
11231 the range.
11232 (set_nonzero_bits, get_nonzero_bits): New functions.
11233
11234 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
11235 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
11236 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
11237 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
11238 uses but in the condition and ASSERT_EXPR and the other successor of
11239 the predecessor bb is __builtin_unreachable (), set_range_info of the
11240 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
11241
11242 2013-10-31 Martin Jambor <mjambor@suse.cz>
11243
11244 PR rtl-optimization/58934
11245 Revert:
11246 2013-10-30 Martin Jambor <mjambor@suse.cz>
11247 PR rtl-optimization/10474
11248 * ira.c (find_moveable_pseudos): Do not calculate dominance info
11249 nor df analysis.
11250 (interesting_dest_for_shprep): New function.
11251 (split_live_ranges_for_shrink_wrap): Likewise.
11252 (ira): Calculate dominance info and df analysis. Call
11253 split_live_ranges_for_shrink_wrap.
11254
11255 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
11256 Yury Gribov <y.gribov@samsung.com>
11257
11258 PR sanitizer/58543
11259 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
11260 shadow pointer to avoid clobbering the main one.
11261
11262 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11263
11264 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
11265
11266 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
11267
11268 PR bootstrap/58933
11269 * ira-color.c (update_costs_from_copies): Add new parameter. Use
11270 it for calling update_costs_from_allocno.
11271 (assign_hard_reg): Call restore_costs_from_copies only for
11272 !retry_p. Pass new argument to update_costs_from_copies.
11273 (color_pass): Pass new argument to update_costs_from_copies.
11274 (ira_mark_allocation_change): Ditto.
11275
11276 2013-10-30 Sharad Singhai <singhai@google.com>
11277
11278 PR middle-end/58134
11279 * opts.c (common_handle_option): Remove deprecated option
11280 -ftree-vectorizer-verbose.
11281 * doc/invoke.texi (Debugging Options): Ditto.
11282 * opts-global.c (handle_common_deferred_options): Ditto.
11283 (dump_remap_tree_vectorizer_verbose): Delete.
11284 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
11285
11286 2013-10-30 DJ Delorie <dj@redhat.com>
11287
11288 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
11289 that take no arguments.
11290
11291 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
11292
11293 PR other/58545
11294 * reload1.c (update_eliminables_and_spill): New function, broken
11295 out of reload.
11296 (reload): Use it. Check for frame size change after frame size
11297 alignment, and call update_eliminables_and_spill first if continue-ing.
11298
11299 2013-10-30 Cong Hou <congh@google.com>
11300
11301 PR target/58762
11302 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
11303 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
11304 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
11305
11306 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
11307
11308 PR rtl-optimization/58369
11309 * reload1.c (compute_reload_subreg_offset): New function.
11310 (choose_reload_regs): Use it to pass endian-correct
11311 offset to subreg_regno_offset.
11312
11313 2013-10-30 Tobias Burnus <burnus@net-b.de>
11314
11315 PR other/33426
11316 * tree-cfg.c (replace_loop_annotate): Replace warning by
11317 warning_at.
11318
11319 2013-10-30 Jason Merrill <jason@redhat.com>
11320
11321 * configure.ac (loose_warn): Add -Wno-format if
11322 --disable-build-format-warnings.
11323
11324 2013-10-30 David Malcolm <dmalcolm@redhat.com>
11325
11326 * cgraphunit.c (analyze_functions): Split symtab_node declarations
11327 onto multiple lines to make things easier for rename_symtab.py.
11328
11329 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
11330 (symtab_semantically_equivalent_p): Likewise.
11331
11332 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
11333
11334 PR target/58784
11335 * lra.c (check_rtl): Remove address check before LRA work.
11336
11337 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
11338
11339 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
11340 POINTER_PLUS_EXPR in the defining statement.
11341
11342 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
11343
11344 * regmove.c: Remove.
11345 * tree-pass.h (make_pass_regmove): Remove.
11346 * timevar.def (TV_REGMOVE): Remove.
11347 * passes.def (pass_regmove): Remove.
11348 * opts.c (default_options_table): Remove entry for regmove.
11349 * doc/passes.texi: Remove regmove pass description.
11350 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
11351 options.
11352 (-fdump-rtl-regmove): Ditto.
11353 * common.opt (foptimize-register-move, fregmove): Ignore.
11354 * Makefile.in (OBJS): Remove regmove.o.
11355 * regmove.c: Remove.
11356 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
11357 and type.
11358 (struct ira_allocno) New member allocno_prefs.
11359 (ALLOCNO_PREFS): New macro.
11360 (ira_prefs, ira_prefs_num): New external vars.
11361 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
11362 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
11363 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
11364 Ditto.
11365 (ira_add_allocno_copy_to_list): Remove prototype.
11366 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
11367 (ira_pref_iterator): New type.
11368 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
11369 (FOR_EACH_PREF): New macro.
11370 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
11371 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
11372 code.
11373 (ira_setup_alts): New function.
11374 (decrease_live_ranges_number): New function.
11375 (ira): Call the above function.
11376 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
11377 (ira_create_allocno): Initialize allocno prefs.
11378 (pref_pool, pref_vec): New static vars.
11379 (initiate_prefs, find_allocno_pref, ira_create_pref): New
11380 functions.
11381 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
11382 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
11383 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
11384 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
11385 (ira_add_allocno_copy_to_list): Make static. Rename to
11386 add_allocno_copy_to_list.
11387 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
11388 swap_allocno_copy_ends_if_necessary.
11389 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
11390 ira_remove_allocno_prefs.
11391 (ira_flattening): Ditto.
11392 (ira_build): Call initiate_prefs, print_prefs.
11393 (ira_destroy): Call finish_prefs.
11394 * ira-color.c (struct update_cost_record): New.
11395 (struct allocno_color_data): Add new member update_cost_records.
11396 (update_cost_record_pool): New static var.
11397 (init_update_cost_records, get_update_cost_record): New functions.
11398 (free_update_cost_record_list, finish_update_cost_records): Ditto.
11399 (struct update_cost_queue_elem): Add member from.
11400 (initiate_cost_update): Call init_update_cost_records.
11401 (finish_cost_update): Call finish_update_cost_records.
11402 (queue_update_cost, get_next_update_cost): Add new param from.
11403 (Update_allocno_cost, update_costs_from_allocno): New functions.
11404 (update_costs_from_prefs): Ditto.
11405 (update_copy_costs): Rename to update_costs_from_copies.
11406 (restore_costs_from_copies): New function.
11407 (update_conflict_hard_regno_costs): Don't go back.
11408 (assign_hard_reg): Call restore_costs_from_copies. Add printing
11409 more debug info.
11410 (pop_allocnos): Add priniting more debug info.
11411 (color_allocnos): Remove prefs for conflicting hard regs.
11412 Call update_costs_from_prefs.
11413 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
11414 (get_dup_num): Rename, modify, and move to ira.c
11415 (process_regs_for_copy): Add prefs.
11416 (add_insn_allocno_copies): Put src as first arg of
11417 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
11418 * ira-costs.c (record_reg_classes): Modify and move code into
11419 record_operands_costs.
11420 (find_costs_and_classes): Create prefs for the hard reg of small
11421 reg class.
11422 (process_bb_node_for_hard_reg_moves): Add prefs.
11423
11424 2013-10-30 Richard Biener <rguenther@suse.de>
11425
11426 PR middle-end/57100
11427 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
11428 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
11429 as worker for ...
11430 (pre_and_rev_post_order_compute): ... which now wraps it.
11431 * graph.c (draw_cfg_nodes_no_loops): Use
11432 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
11433 on cfun.
11434
11435 2013-10-30 Christian Bruel <christian.bruel@st.com>
11436
11437 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
11438 (sh_expand_cmpstr): Handle known align and schedule improvements.
11439 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
11440 * config/sh/sh.md (cmpstrnsi): New pattern.
11441
11442 2013-10-30 Martin Jambor <mjambor@suse.cz>
11443
11444 PR rtl-optimization/10474
11445 * ira.c (find_moveable_pseudos): Do not calculate dominance info
11446 nor df analysis.
11447 (interesting_dest_for_shprep): New function.
11448 (split_live_ranges_for_shrink_wrap): Likewise.
11449 (ira): Calculate dominance info and df analysis. Call
11450 split_live_ranges_for_shrink_wrap.
11451
11452 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11453
11454 PR target/58854
11455 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
11456
11457 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
11458
11459 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
11460 * tree.h (POINTER_BOUNDS_P): New.
11461 (BOUNDED_TYPE_P): New.
11462 (BOUNDED_P): New.
11463 (pointer_bounds_type_node): New.
11464 * tree.c (build_common_tree_nodes): Initialize
11465 pointer_bounds_type_node.
11466 * gimple.h (gimple_call_get_nobnd_arg_index): New.
11467 (gimple_call_num_nobnd_args): New.
11468 (gimple_call_nobnd_arg): New.
11469 (gimple_return_retbnd): New.
11470 (gimple_return_set_retbnd): New
11471 * gimple.c (gimple_build_return): Increase number of ops
11472 for return statement.
11473 (gimple_call_get_nobnd_arg_index): New.
11474 * gimple-pretty-print.c (dump_gimple_return): Print second op.
11475
11476 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
11477
11478 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
11479 with "chkp ctor" and "bnd_legacy" attributes.
11480 * gimplify.c (gimplify_init_constructor): Avoid infinite
11481 loop during gimplification of bounds initializer.
11482
11483 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
11484
11485 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
11486 (handle_bnd_legacy): New.
11487 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
11488 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
11489 attributes.
11490
11491 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
11492
11493 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
11494 (BT_FN_PTR_CONST_PTR): New.
11495 (BT_FN_CONST_PTR_CONST_PTR): New.
11496 (BT_FN_PTR_CONST_PTR_SIZE): New.
11497 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
11498 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
11499 (BT_FN_VOID_CONST_PTR_SIZE): New.
11500 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
11501 * chkp-builtins.def: New.
11502 * builtins.def: include chkp-builtins.def.
11503 (DEF_CHKP_BUILTIN): New.
11504 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
11505 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
11506 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
11507 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
11508 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
11509 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
11510 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
11511 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
11512 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
11513 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
11514 * common.opt (fcheck-pointer-bounds): New.
11515 * toplev.c (process_options): Check Pointer Bounds Checker is
11516 supported.
11517 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
11518
11519 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
11520
11521 * target.def (builtin_chkp_function): New.
11522 (chkp_bound_type): New.
11523 (chkp_bound_mode): New.
11524 (fn_abi_va_list_bounds_size): New.
11525 (load_bounds_for_arg): New.
11526 (store_bounds_for_arg): New.
11527 * targhooks.h (default_load_bounds_for_arg): New.
11528 (default_store_bounds_for_arg): New.
11529 (default_fn_abi_va_list_bounds_size): New.
11530 (default_chkp_bound_type): New.
11531 (default_chkp_bound_mode): New.
11532 (default_builtin_chkp_function): New.
11533 * targhooks.c (default_load_bounds_for_arg): New.
11534 (default_store_bounds_for_arg): New.
11535 (default_fn_abi_va_list_bounds_size): New.
11536 (default_chkp_bound_type): New.
11537 (default_chkp_bound_mode); New.
11538 (default_builtin_chkp_function): New.
11539 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
11540 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
11541 (TARGET_STORE_BOUNDS_FOR_ARG): New.
11542 (TARGET_BUILTIN_CHKP_FUNCTION): New.
11543 (TARGET_CHKP_BOUND_TYPE): New.
11544 (TARGET_CHKP_BOUND_MODE): New.
11545 * doc/tm.texi: Regenerated.
11546 * langhooks.h (lang_hooks): Add chkp_supported field.
11547 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
11548 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
11549
11550 2013-10-29 Andrew Pinski <apinski@cavium.com>
11551
11552 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
11553 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
11554 fails, combining the branches anyways.
11555 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
11556 increases the number of combinings.
11557 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
11558
11559 2013-10-29 Mike Stump <mikestump@comcast.net>
11560
11561 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
11562 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
11563 (make_vector_mode): Increase namebuf to 16.
11564 (emit_insn_modes_h): When processing BImode, don't
11565 also match partial int modes.
11566 (emit_class_narrowest_mode): Likewise.
11567
11568 * config/bfin/bfin-modes.def: Add precision to PDI.
11569 * config/m32c/m32c-modes.def: Add precision to PSI.
11570 * config/msp430/msp430-modes.def: Add precision to PSI.
11571 * config/rs6000/rs6000-modes.def: Add precision to PTI.
11572 * config/sh/sh-modes.def: Add precision to PSI and PDI.
11573
11574 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
11575
11576 PR target/54236
11577 * config/sh/sh.md (*addc): Rename existing variations to ...
11578 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
11579 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
11580 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
11581 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
11582
11583 2013-10-29 Teresa Johnson <tejohnson@google.com>
11584
11585 PR ipa/58862
11586 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
11587 insanities when updating probabilities.
11588
11589 2013-10-29 David Malcolm <dmalcolm@redhat.com>
11590
11591 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
11592 prettyprinter for cgraph_node to reflect the conversion of the
11593 symtable types to a C++ class hierarchy: it now *is* a
11594 symtab_node_base, rather than having one (named "symbol").
11595
11596 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
11597
11598 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
11599 __cilkrts_pop_frame. If matched, then return true for built-in
11600 function name.
11601 (expand_builtin): Added BUILT_IN_CILK_DETACH and
11602 BUILT_IN_CILK_POP_FRAME case.
11603 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
11604 (lhs_cilk_detect_spawn): Likewise.
11605 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
11606 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
11607 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
11608 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
11609 (LANG_HOOKS_CILKPLUS): Likewise.
11610 * tree.h (CILK_SPAWN_FN): Likewise.
11611 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
11612 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
11613 (OBJS): Added cilk-common.o.
11614 (BUILTINS_DEF): Added cilk-builtins.def.
11615 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
11616 (lhd_cilk_detect_spawn): Likewise.
11617 * langhooks.h (lang_hooks_for_cilkplus): New struct.
11618 (struct lang_hooks): Added new field called "cilkplus."
11619 * cilk-common.c: New file.
11620 * cilk.h: Likewise.
11621 * cilk-builtins.def: Likewise.
11622 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
11623 "__cilk" macro and set it to 200.
11624 * function.h (struct function::cilk_frame_decl): New field.
11625 (struct function::is_cilk_function): Likewise.
11626 (struct function::calls_cilk_spawn): Likewise.
11627 * gimplify.c (gimplify_call_expr): Added a check if the function call
11628 being gimplified is a spawn detach point. If so, then add pop_frame
11629 and detach function calls.
11630 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
11631 for gimplifying _Cilk_spawn and _Cilk_sync statements.
11632 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
11633 function. If so, added a _Cilk_sync and gimplified it.
11634 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
11635 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
11636 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
11637 spawner function.
11638 (can_inline_edge_p): Prevent inling of spawnee function.
11639 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
11640 for functions that use Cilk keywords.
11641 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
11642 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
11643 CILK_SYNC_STMT cases.
11644 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
11645 trees.
11646 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
11647 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
11648 * passes.texi (Cilk Keywords): New section that describes the compiler
11649 code changes for handling Cilk Keywords.
11650
11651 2013-10-29 David Malcolm <dmalcolm@redhat.com>
11652
11653 Patch autogenerated by refactor_symtab.py from
11654 https://github.com/davidmalcolm/gcc-refactoring-scripts
11655 revision 58bb219cc090b2f4516a9297d868c245495ee622
11656
11657 * asan.c (asan_finish_file): Update for conversion of symtab types to
11658 a true class hierarchy.
11659 * cfgexpand.c (estimated_stack_frame_size): Likewise.
11660 * cgraph.c (cgraph_get_body): Likewise.
11661 (cgraph_get_create_real_symbol_node): Likewise.
11662 (verify_cgraph_node): Likewise.
11663 (verify_edge_corresponds_to_fndecl): Likewise.
11664 (verify_edge_count_and_frequency): Likewise.
11665 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
11666 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
11667 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
11668 (cgraph_node_cannot_return): Likewise.
11669 (cgraph_set_pure_flag_1): Likewise.
11670 (cgraph_set_const_flag_1): Likewise.
11671 (cgraph_set_nothrow_flag_1): Likewise.
11672 (cgraph_make_node_local_1): Likewise.
11673 (cgraph_for_node_and_aliases): Likewise.
11674 (cgraph_for_node_thunks_and_aliases): Likewise.
11675 (cgraph_node_can_be_local_p): Likewise.
11676 (cgraph_node_cannot_be_local_p_1): Likewise.
11677 (cgraph_function_body_availability): Likewise.
11678 (dump_cgraph_node): Likewise.
11679 (cgraph_rtl_info): Likewise.
11680 (cgraph_mark_address_taken_node): Likewise.
11681 (cgraph_remove_node): Likewise.
11682 (cgraph_release_function_body): Likewise.
11683 (cgraph_update_edges_for_call_stmt_node): Likewise.
11684 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
11685 (cgraph_make_edge_direct): Likewise.
11686 (cgraph_resolve_speculation): Likewise.
11687 (cgraph_speculative_call_info): Likewise.
11688 (cgraph_turn_edge_to_speculative): Likewise.
11689 (cgraph_create_edge_1): Likewise.
11690 (cgraph_set_call_stmt): Likewise.
11691 (cgraph_node_for_asm): Likewise.
11692 (cgraph_add_thunk): Likewise.
11693 (cgraph_same_body_alias): Likewise.
11694 (cgraph_create_function_alias): Likewise.
11695 (cgraph_create_node): Likewise.
11696 (cgraph_create_empty_node): Likewise.
11697 (record_function_versions): Likewise.
11698 (used_from_object_file_p): Likewise.
11699 * cgraph.h (symtab_can_be_discarded): Likewise.
11700 (symtab_real_symbol_p): Likewise.
11701 (cgraph_mark_force_output_node): Likewise.
11702 (cgraph_edge_recursive_p): Likewise.
11703 (symtab_alias_target): Likewise.
11704 (varpool_all_refs_explicit_p): Likewise.
11705 (varpool_can_remove_if_no_refs): Likewise.
11706 (cgraph_only_called_directly_or_aliased_p): Likewise.
11707 (cgraph_next_function_with_gimple_body): Likewise.
11708 (cgraph_first_function_with_gimple_body): Likewise.
11709 (cgraph_function_with_gimple_body_p): Likewise.
11710 (cgraph_next_function): Likewise.
11711 (cgraph_first_function): Likewise.
11712 (cgraph_next_defined_function): Likewise.
11713 (cgraph_first_defined_function): Likewise.
11714 (varpool_next_defined_variable): Likewise.
11715 (varpool_first_defined_variable): Likewise.
11716 (varpool_next_static_initializer): Likewise.
11717 (varpool_first_static_initializer): Likewise.
11718 (varpool_next_variable): Likewise.
11719 (varpool_first_variable): Likewise.
11720 (varpool_node_name): Likewise.
11721 (varpool): Likewise.
11722 (cgraph): Likewise.
11723 (is_a_helper <varpool_node>::test): Likewise.
11724 (is_a_helper <cgraph_node>::test): Likewise.
11725 (varpool_variable_node): Likewise.
11726 (cgraph_function_or_thunk_node): Likewise.
11727 (varpool_alias_target): Likewise.
11728 (cgraph_alias_target): Likewise.
11729 (cgraph_node_name): Likewise.
11730 (varpool_node_asm_name): Likewise.
11731 (cgraph_node_asm_name): Likewise.
11732 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
11733 (cgraph_rebuild_references): Likewise.
11734 (rebuild_cgraph_edges): Likewise.
11735 (record_eh_tables): Likewise.
11736 (build_cgraph_edges): Likewise.
11737 (mark_store): Likewise.
11738 (mark_load): Likewise.
11739 (mark_address): Likewise.
11740 (record_type_list): Likewise.
11741 (record_reference): Likewise.
11742 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
11743 (cgraph_materialize_clone): Likewise.
11744 (cgraph_function_versioning): Likewise.
11745 (cgraph_copy_node_for_versioning): Likewise.
11746 (update_call_expr): Likewise.
11747 (cgraph_find_replacement_node): Likewise.
11748 (cgraph_create_virtual_clone): Likewise.
11749 (cgraph_clone_node): Likewise.
11750 * cgraphunit.c (compile): Likewise.
11751 (output_weakrefs): Likewise.
11752 (output_in_order): Likewise.
11753 (expand_function): Likewise.
11754 (assemble_thunks_and_aliases): Likewise.
11755 (expand_thunk): Likewise.
11756 (mark_functions_to_output): Likewise.
11757 (handle_alias_pairs): Likewise.
11758 (analyze_functions): Likewise.
11759 (walk_polymorphic_call_targets): Likewise.
11760 (varpool_finalize_decl): Likewise.
11761 (process_function_and_variable_attributes): Likewise.
11762 (cgraph_process_same_body_aliases): Likewise.
11763 (analyze_function): Likewise.
11764 (cgraph_add_new_function): Likewise.
11765 (cgraph_finalize_function): Likewise.
11766 (referred_to_p): Likewise.
11767 (cgraph_reset_node): Likewise.
11768 (cgraph_process_new_functions): Likewise.
11769 (enqueue_node): Likewise.
11770 (decide_is_symbol_needed): Likewise.
11771 * coverage.c (coverage_compute_profile_id): Likewise.
11772 * dbxout.c (dbxout_expand_expr): Likewise.
11773 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
11774 (reference_to_unused): Likewise.
11775 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
11776 * gimplify.c (unvisit_body): Likewise.
11777 (unshare_body): Likewise.
11778 * ipa-cp.c (ipcp_generate_summary): Likewise.
11779 (ipcp_decision_stage): Likewise.
11780 (identify_dead_nodes): Likewise.
11781 (decide_whether_version_node): Likewise.
11782 (decide_about_value): Likewise.
11783 (perhaps_add_new_callers): Likewise.
11784 (create_specialized_node): Likewise.
11785 (update_profiling_info): Likewise.
11786 (ipcp_propagate_stage): Likewise.
11787 (estimate_local_effects): Likewise.
11788 (good_cloning_opportunity_p): Likewise.
11789 (devirtualization_time_bonus): Likewise.
11790 (propagate_constants_accross_call): Likewise.
11791 (initialize_node_lattices): Likewise.
11792 (ipcp_cloning_candidate_p): Likewise.
11793 (determine_versionability): Likewise.
11794 (print_all_lattices): Likewise.
11795 (print_lattice): Likewise.
11796 (ipcp_discover_new_direct_edges): Likewise.
11797 * ipa-devirt.c (ipa_devirt): Likewise.
11798 (likely_target_p): Likewise.
11799 (update_type_inheritance_graph): Likewise.
11800 (possible_polymorphic_call_target_p): Likewise.
11801 (dump_possible_polymorphic_call_targets): Likewise.
11802 (devirt_variable_node_removal_hook): Likewise.
11803 (record_binfo): Likewise.
11804 (maybe_record_node): Likewise.
11805 (build_type_inheritance_graph): Likewise.
11806 * ipa-inline-analysis.c (inline_write_summary): Likewise.
11807 (inline_generate_summary): Likewise.
11808 (inline_analyze_function): Likewise.
11809 (do_estimate_growth): Likewise.
11810 (simple_edge_hints): Likewise.
11811 (estimate_node_size_and_time): Likewise.
11812 (estimate_edge_devirt_benefit): Likewise.
11813 (compute_inline_parameters): Likewise.
11814 (estimate_function_body_sizes): Likewise.
11815 (compute_bb_predicates): Likewise.
11816 (initialize_inline_failed): Likewise.
11817 (dump_inline_summary): Likewise.
11818 (dump_inline_edge_summary): Likewise.
11819 * ipa-inline-transform.c (inline_transform): Likewise.
11820 (preserve_function_body_p): Likewise.
11821 (save_inline_function_body): Likewise.
11822 (inline_call): Likewise.
11823 (clone_inlined_nodes): Likewise.
11824 (can_remove_node_now_p): Likewise.
11825 (can_remove_node_now_p_1): Likewise.
11826 * ipa-inline.c (early_inliner): Likewise.
11827 (early_inline_small_functions): Likewise.
11828 (inline_always_inline_functions): Likewise.
11829 (ipa_inline): Likewise.
11830 (flatten_function): Likewise.
11831 (inline_small_functions): Likewise.
11832 (speculation_useful_p): Likewise.
11833 (recursive_inlining): Likewise.
11834 (update_caller_keys): Likewise.
11835 (reset_edge_caches): Likewise.
11836 (update_edge_key): Likewise.
11837 (edge_badness): Likewise.
11838 (relative_time_benefit): Likewise.
11839 (want_inline_self_recursive_call_p): Likewise.
11840 (want_inline_small_function_p): Likewise.
11841 (want_early_inline_function_p): Likewise.
11842 (num_calls): Likewise.
11843 (can_early_inline_edge_p): Likewise.
11844 (can_inline_edge_p): Likewise.
11845 (report_inline_failed_reason): Likewise.
11846 * ipa-profile.c (ipa_profile): Likewise.
11847 (ipa_propagate_frequency): Likewise.
11848 (ipa_propagate_frequency_1): Likewise.
11849 (ipa_profile_generate_summary): Likewise.
11850 * ipa-prop.c (ipcp_transform_function): Likewise.
11851 (read_replacements_section): Likewise.
11852 (ipa_prop_read_section): Likewise.
11853 (ipa_modify_call_arguments): Likewise.
11854 (ipa_print_node_params): Likewise.
11855 (propagate_controlled_uses): Likewise.
11856 (update_indirect_edges_after_inlining): Likewise.
11857 (remove_described_reference): Likewise.
11858 (ipa_make_edge_direct_to_target): Likewise.
11859 (ipa_analyze_node): Likewise.
11860 (ipa_analyze_params_uses): Likewise.
11861 (ipa_compute_jump_functions): Likewise.
11862 (ipa_get_callee_param_type): Likewise.
11863 (ipa_print_node_jump_functions): Likewise.
11864 (ipa_initialize_node_params): Likewise.
11865 (ipa_populate_param_decls): Likewise.
11866 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
11867 (write_agg_replacement_chain): Likewise.
11868 (ipa_write_node_info): Likewise.
11869 (ipa_edge_duplication_hook): Likewise.
11870 (try_decrement_rdesc_refcount): Likewise.
11871 * ipa-pure-const.c (propagate_nothrow): Likewise.
11872 (propagate_pure_const): Likewise.
11873 (pure_const_read_summary): Likewise.
11874 (pure_const_write_summary): Likewise.
11875 (analyze_function): Likewise.
11876 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
11877 (ipa_ref_referring_ref_list): Likewise.
11878 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
11879 (ipa_remove_stmt_references): Likewise.
11880 (ipa_find_reference): Likewise.
11881 (ipa_dump_referring): Likewise.
11882 (ipa_dump_references): Likewise.
11883 (ipa_record_reference): Likewise.
11884 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
11885 (ipa_reference_write_optimization_summary): Likewise.
11886 (write_node_summary_p): Likewise.
11887 (propagate): Likewise.
11888 (read_write_all_from_decl): Likewise.
11889 (generate_summary): Likewise.
11890 (analyze_function): Likewise.
11891 (propagate_bits): Likewise.
11892 (ipa_reference_get_not_written_global): Likewise.
11893 (ipa_reference_get_not_read_global): Likewise.
11894 * ipa-split.c (execute_split_functions): Likewise.
11895 (split_function): Likewise.
11896 * ipa-utils.c (ipa_merge_profiles): Likewise.
11897 (dump_cgraph_node_set): Likewise.
11898 (ipa_reverse_postorder): Likewise.
11899 (ipa_edge_within_scc): Likewise.
11900 (ipa_get_nodes_in_cycle): Likewise.
11901 (ipa_free_postorder_info): Likewise.
11902 (ipa_reduced_postorder): Likewise.
11903 (searchc): Likewise.
11904 (recursive_call_p): Likewise.
11905 * ipa.c (ipa_cdtor_merge): Likewise.
11906 (record_cdtor_fn): Likewise.
11907 (function_and_variable_visibility): Likewise.
11908 (varpool_externally_visible_p): Likewise.
11909 (cgraph_externally_visible_p): Likewise.
11910 (comdat_can_be_unshared_p): Likewise.
11911 (comdat_can_be_unshared_p_1): Likewise.
11912 (address_taken_from_non_vtable_p): Likewise.
11913 (ipa_discover_readonly_nonaddressable_vars): Likewise.
11914 (symtab_remove_unreachable_nodes): Likewise.
11915 (walk_polymorphic_call_targets): Likewise.
11916 (process_references): Likewise.
11917 (enqueue_node): Likewise.
11918 (has_addr_references_p): Likewise.
11919 (cgraph_non_local_node_p_1): Likewise.
11920 * is-a.h (varpool_analyze_node): Likewise.
11921 * lto-cgraph.c (input_symtab): Likewise.
11922 (merge_profile_summaries): Likewise.
11923 (input_cgraph_1): Likewise.
11924 (input_edge): Likewise.
11925 (input_varpool_node): Likewise.
11926 (input_node): Likewise.
11927 (input_overwrite_node): Likewise.
11928 (compute_ltrans_boundary): Likewise.
11929 (output_refs): Likewise.
11930 (lto_output_varpool_node): Likewise.
11931 (lto_output_node): Likewise.
11932 (reachable_from_other_partition_p): Likewise.
11933 (referenced_from_other_partition_p): Likewise.
11934 (lto_output_edge): Likewise.
11935 (output_node_opt_summary): Likewise.
11936 (add_node_to): Likewise.
11937 (reachable_from_this_partition_p): Likewise.
11938 (lto_set_symtab_encoder_in_partition): Likewise.
11939 (lto_symtab_encoder_in_partition_p): Likewise.
11940 (lto_set_symtab_encoder_encode_initializer): Likewise.
11941 (lto_symtab_encoder_encode_initializer_p): Likewise.
11942 (lto_set_symtab_encoder_encode_body): Likewise.
11943 (lto_symtab_encoder_encode_body_p): Likewise.
11944 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
11945 Likewise.
11946 * lto-streamer-in.c (lto_read_body): Likewise.
11947 (fixup_call_stmt_edges): Likewise.
11948 (fixup_call_stmt_edges_1): Likewise.
11949 * lto-streamer-out.c (produce_symtab): Likewise.
11950 (output_symbol_p): Likewise.
11951 (write_symbol): Likewise.
11952 (lto_output): Likewise.
11953 (copy_function): Likewise.
11954 (output_function): Likewise.
11955 * passes.c (function_called_by_processed_nodes_p): Likewise.
11956 (ipa_write_optimization_summaries): Likewise.
11957 (ipa_write_summaries): Likewise.
11958 (do_per_function_toporder): Likewise.
11959 (do_per_function): Likewise.
11960 (dump_passes): Likewise.
11961 * symtab.c (symtab_semantically_equivalent_p): Likewise.
11962 (symtab_nonoverwritable_alias): Likewise.
11963 (symtab_nonoverwritable_alias_1): Likewise.
11964 (symtab_for_node_and_aliases): Likewise.
11965 (symtab_resolve_alias): Likewise.
11966 (fixup_same_cpp_alias_visibility): Likewise.
11967 (symtab_alias_ultimate_target): Likewise.
11968 (symtab_used_from_object_file_p): Likewise.
11969 (verify_symtab_base): Likewise.
11970 (dump_symtab_base): Likewise.
11971 (symtab_node_name): Likewise.
11972 (symtab_node_asm_name): Likewise.
11973 (symtab_dissolve_same_comdat_group_list): Likewise.
11974 (symtab_add_to_same_comdat_group): Likewise.
11975 (symtab_unregister_node): Likewise.
11976 (symtab_insert_node_to_hashtable): Likewise.
11977 (symtab_register_node): Likewise.
11978 (unlink_from_assembler_name_hash): Likewise.
11979 (insert_to_assembler_name_hash): Likewise.
11980 (eq_assembler_name): Likewise.
11981 (hash_node_by_assembler_name): Likewise.
11982 (eq_node): Likewise.
11983 (hash_node): Likewise.
11984 * toplev.c (wrapup_global_declaration_2): Likewise.
11985 * trans-mem.c (ipa_tm_execute): Likewise.
11986 (ipa_tm_transform_clone): Likewise.
11987 (ipa_tm_transform_transaction): Likewise.
11988 (ipa_tm_transform_calls_redirect): Likewise.
11989 (ipa_tm_insert_gettmclone_call): Likewise.
11990 (ipa_tm_insert_irr_call): Likewise.
11991 (ipa_tm_create_version): Likewise.
11992 (ipa_tm_create_version_alias): Likewise.
11993 (ipa_tm_mark_forced_by_abi_node): Likewise.
11994 (ipa_tm_mark_force_output_node): Likewise.
11995 (ipa_tm_diagnose_tm_safe): Likewise.
11996 (ipa_tm_mayenterirr_function): Likewise.
11997 (ipa_tm_scan_irr_function): Likewise.
11998 (ipa_tm_note_irrevocable): Likewise.
11999 (ipa_tm_scan_calls_clone): Likewise.
12000 (get_cg_data): Likewise.
12001 * tree-eh.c (tree_could_trap_p): Likewise.
12002 * tree-emutls.c (ipa_lower_emutls): Likewise.
12003 (create_emultls_var): Likewise.
12004 (lower_emutls_function_body): Likewise.
12005 (gen_emutls_addr): Likewise.
12006 (emutls_decl): Likewise.
12007 (new_emutls_decl): Likewise.
12008 * tree-inline.c (tree_function_versioning): Likewise.
12009 (optimize_inline_calls): Likewise.
12010 (expand_call_inline): Likewise.
12011 (estimate_num_insns): Likewise.
12012 (copy_bb): Likewise.
12013 (delete_unreachable_blocks_update_callgraph): Likewise.
12014 * tree-nested.c (gimplify_all_functions): Likewise.
12015 (create_nesting_tree): Likewise.
12016 (check_for_nested_with_variably_modified): Likewise.
12017 * tree-pretty-print.c (dump_function_header): Likewise.
12018 * tree-profile.c (tree_profiling): Likewise.
12019 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
12020 (modify_function): Likewise.
12021 (convert_callers): Likewise.
12022 (convert_callers_for_node): Likewise.
12023 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
12024 (associate_varinfo_to_alias): Likewise.
12025 (create_variable_info_for): Likewise.
12026 (get_constraint_for_ssa_var): Likewise.
12027 * tree-vectorizer.c (increase_alignment): Likewise.
12028 * tree.c (find_decls_types_in_var): Likewise.
12029 (find_decls_types_in_node): Likewise.
12030 (free_lang_data_in_decl): Likewise.
12031 * value-prof.c (gimple_ic_transform): Likewise.
12032 (gimple_ic): Likewise.
12033 (check_ic_target): Likewise.
12034 (init_node_map): Likewise.
12035 * varasm.c (decl_binds_to_current_def_p): Likewise.
12036 (default_binds_local_p_1): Likewise.
12037 (dump_tm_clone_pairs): Likewise.
12038 (assemble_alias): Likewise.
12039 (find_decl): Likewise.
12040 (mark_decl_referenced): Likewise.
12041 * varpool.c (varpool_for_node_and_aliases): Likewise.
12042 (varpool_extra_name_alias): Likewise.
12043 (varpool_create_variable_alias): Likewise.
12044 (add_new_static_var): Likewise.
12045 (varpool_finalize_named_section_flags): Likewise.
12046 (varpool_remove_unreferenced_decls): Likewise.
12047 (enqueue_node): Likewise.
12048 (varpool_assemble_decl): Likewise.
12049 (assemble_aliases): Likewise.
12050 (varpool_analyze_node): Likewise.
12051 (cgraph_variable_initializer_availability): Likewise.
12052 (varpool_add_new_variable): Likewise.
12053 (ctor_for_folding): Likewise.
12054 (dump_varpool_node): Likewise.
12055 (varpool_remove_initializer): Likewise.
12056 (varpool_remove_node): Likewise.
12057 (varpool_node_for_decl): Likewise.
12058 (varpool_create_empty_node): Likewise.
12059 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
12060 (ix86_get_function_versions_dispatcher): Likewise.
12061
12062 2013-10-29 David Malcolm <dmalcolm@redhat.com>
12063
12064 * cgraph.h (symtab_node_base): Convert to a class;
12065 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
12066 chain_next/prev from symtab_node_def.
12067 (cgraph_node): Inherit from symtab_node; add GTY option
12068 tag ("SYMTAB_FUNCTION").
12069 (varpool_node): Inherit from symtab_node; add GTY option
12070 tag ("SYMTAB_VARIABLE").
12071 (symtab_node_def): Remove.
12072 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
12073 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
12074 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
12075 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
12076
12077 * ipa-ref.h (symtab_node_def): Drop.
12078 (symtab_node): Change underlying type from symtab_node_def to
12079 symtab_node_base.
12080 (const_symtab_node): Likwise.
12081
12082 * is-a.h: Update examples in comment.
12083
12084 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
12085 (assembler_name_hash): Likewise.
12086
12087 2013-10-29 Martin Liska <marxin.liska@gmail.com>
12088
12089 * doc/tree-ssa.texi (gimple_phi_result): Document.
12090 (gimple_phi_num_args, gimple_phi_arg): Likewise.
12091 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
12092 (PHI_RESULT, PHI_NUM_ARGS): Remove.
12093 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
12094
12095 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
12096
12097 * expr.h: Revert change and include tree-core.h.
12098 * rtl.h: Revert change and don't include tree-core.h.
12099
12100 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
12101
12102 * config/darwin.c: Include gimple.h.
12103 * config/i386/winnt.c: Likewise.
12104
12105 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
12106
12107 PR tree-optimization/19831
12108 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
12109
12110 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
12111
12112 * tree-outof-ssa.h: Remove include files.
12113 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
12114 * expr.c: Likewise.
12115 * tree-ssa-coalesce.c: Likewise.
12116 * cfgexpand.c: Likewise.
12117 * tree-ssa-ter.c: Likewise.
12118 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
12119 * lto-streamer.h: Likewise.
12120 * cgraphbuild.c: Add gimple.h to include list.
12121 * data-streamer-in.c: Likewise.
12122 * ipa-cp.c: Likewise.
12123 * tree-streamer.c: Likewise.
12124 * lto-compress.c: Likewise.
12125 * ipa-reference.c: Likewise.
12126 * data-streamer-out.c: Likewise.
12127 * lto-cgraph.c: Likewise.
12128 * cgraphclones.c: Likewise.
12129 * ipa-utils.c: Likewise.
12130 * data-streamer.c: Likewise.
12131 * ipa-split.c: Likewise.
12132 * lto-section-in.c: Likewise.
12133 * tree-streamer-out.c: Likewise.
12134 * ipa-prop.c: Likewise.
12135 * tree-streamer-in.c: Likewise.
12136 * symtab.c: Likewise.
12137 * opts-global.c: Likewise.
12138 * lto-opts.c: Likewise.
12139 * lto-section-out.c: Likewise.
12140 * lto-streamer.c: Likewise.
12141 * rtl.h: Add tree-core.h to include list.
12142 * expr.h: Remove tree-core.h from include list.
12143 * gimple.h: Likewise.
12144 * ipa-utils.h: Likewise.
12145 * streamer-hooks.h: Likewise.
12146 * streamer-hooks.c: Include input.h.
12147
12148 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12149
12150 * config/arm/arm.c (cortexa7_extra_costs): New table.
12151 (arm_cortex_a7_tune): New.
12152 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
12153
12154 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
12155
12156 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
12157
12158 2013-10-29 David Malcolm <dmalcolm@redhat.com>
12159
12160 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
12161 to use autogenerated markers for a class-hierarchy, every class
12162 must have a GTY marker.
12163 * gengtype.h (struct type): Add linked list of subclasses to
12164 the "s" member of the union.
12165 (add_subclass): New decl.
12166 * gengtype-state.c (read_state_struct_type): Set up subclass
12167 linked list.
12168 * gengtype.c (get_ultimate_base_class): New.
12169 (add_subclass): New.
12170 (new_structure): Set up subclass linked list.
12171 (set_gc_used_type): Propagate usage information to subclasses.
12172 (output_mangled_typename): Use get_ultimate_base_class.
12173 (walk_subclasses): Use the subclass linked list, avoiding an
12174 O(N^2) when writing out all types.
12175 (walk_type): Issue an error if the base class is missing a tag,
12176 rather than generating bogus C code. Add a gcc_unreachable
12177 default case, in case people omit tags from concrete subclasses,
12178 or get the values wrong.
12179 (write_func_for_structure): Issue an error for subclasses for
12180 which the base doesn't have a "desc", since otherwise the
12181 autogenerated routines for the base would silently fail to visit
12182 any subclass fields.
12183 (write_root): Use get_ultimate_base_class, tweaking constness of
12184 tp to match that function's signature.
12185
12186 2013-10-29 David Malcolm <dmalcolm@redhat.com>
12187
12188 * doc/gty.texi (GTY Options): Add note about inheritance to
12189 description of desc and tag.
12190 (Inheritance and GTY): New.
12191
12192 2013-10-29 David Malcolm <dmalcolm@redhat.com>
12193
12194 * gengtype-parse.c (opts_have): Drop "static" so that
12195 we can use this from gengtype.c.
12196 * gengtype.c (set_gc_used_type): Mark any base class as used;
12197 update field traversal to visit inherited fields.
12198 (output_mangled_typename): Convert references to classes within
12199 an inheritance hierarchy to reference the ultimate base class,
12200 since only it will have gt_ functions.
12201 (get_string_option): New.
12202 (walk_subclasses): New.
12203 (walk_type): Treat GTY structs that have a "desc" as being the
12204 root of an inheritance hierarchy. Generate a switch on it
12205 within the marking function which walks all subclasses, adding
12206 cases for them via walk_subclasses. For subclasses, visit all
12207 fields of the type (including inherited ones).
12208 (write_func_for_structure): Don't write fns for subclasses, only
12209 for the ultimate base class within an inheritance hierarchy.
12210 Subclasses-marking will be handled by the base class marking functions.
12211 (write_types): Likewise.
12212 (write_local_func_for_structure): Likewise.
12213 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
12214 a "tag" option (and are thus concrete subclasses).
12215 (write_root): Use the marker function for the ultimate base class.
12216 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
12217 (opts_have): Add declaration.
12218
12219 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
12220
12221 * lra-spills.c (lra_final_code_change): Remove useless move insns
12222 originated from moves of pseudos.
12223
12224 2013-10-28 Jeff Law <law@redhat.com>
12225
12226 * lower-subreg.c (resolve_simple_move): Fix comment typo.
12227
12228 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
12229
12230 * df-scan.c (df_collection_rec): Adjust.
12231 (copy_defs): New constant.
12232 (copy_uses): Likewise.
12233 (copy_eq_uses): Likewise.
12234 (copy_mw): Likewise.
12235 (copy_all): Likewise.
12236 (df_insn_rescan): Adjust.
12237 (df_notes_rescan): Likewise.
12238 (df_swap_refs): Likewise.
12239 (df_sort_and_compress_refs): Likewise.
12240 (df_sort_and_compress_mws): Likewise.
12241 (df_install_refs): Likewise.
12242 (df_install_mws): Likewise.
12243 (df_refs_add_to_chains): Add flags parameter controlling which vectors
12244 are coppied.
12245 (df_bb_refs_record): Adjust.
12246 (df_record_entry_block_defs): Likewise.
12247 (df_record_exit_block_defs): Likewise.
12248 (df_refs_verify): Likewise.
12249 (df_mws_verify): Likewise.
12250 (df_insn_refs_verify): Likewise.
12251 (df_bb_verify): Likewise.
12252 * ipa-pure-const.c (finish_state): Remove.
12253 (propagate): Adjust.
12254 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
12255 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
12256 var-tracking.c: Adjust.
12257 * vec.c (stack_vecs): Remove.
12258 (register_stack_vec): Likewise.
12259 (stack_vec_register_index): Likewise.
12260 (unregister_stack_vec): Likewise.
12261 * vec.h (struct va_stack): Remove.
12262 (struct vec<T, A, vl_ptr>): Specialize as
12263 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
12264 allocation strategy compatable with the vl_ptr layout.
12265 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
12266 specialization anyway.
12267 (class stack_vec): New class.
12268 (vec_stack_alloc): Remove.
12269 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
12270
12271 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
12272 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12273 Sergey Lega <sergey.s.lega@intel.com>
12274 Anna Tikhonova <anna.tikhonova@intel.com>
12275 Ilya Tocar <ilya.tocar@intel.com>
12276 Andrey Turetskiy <andrey.turetskiy@intel.com>
12277 Ilya Verbin <ilya.verbin@intel.com>
12278 Kirill Yukhin <kirill.yukhin@intel.com>
12279 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12280
12281 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
12282 (*prefetch_avx512pf_<mode>): New.
12283 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
12284 (avx512f_maskcmp<mode>3): Ditto.
12285 (vashrv16si3): Ditto.
12286
12287 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
12288 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12289 Sergey Lega <sergey.s.lega@intel.com>
12290 Anna Tikhonova <anna.tikhonova@intel.com>
12291 Ilya Tocar <ilya.tocar@intel.com>
12292 Andrey Turetskiy <andrey.turetskiy@intel.com>
12293 Ilya Verbin <ilya.verbin@intel.com>
12294 Kirill Yukhin <kirill.yukhin@intel.com>
12295 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12296
12297 * config/i386/i386.md (any_truncate): New.
12298 (trunsuffix): Ditto.
12299 * config/i386/predicates.md (const_8_to_9_operand): New.
12300 (const_10_to_11_operand): Ditto.
12301 (const_12_to_13_operand): Ditto.
12302 (const_14_to_15_operand): Ditto.
12303 (const_16_to_19_operand): Ditto.
12304 (const_20_to_23_operand): Ditto.
12305 (const_24_to_27_operand): Ditto.
12306 (const_28_to_31_operand): Ditto.
12307 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
12308 (cvtusi2<ssescalarmodesuffix>32): New.
12309 (cvtusi2<ssescalarmodesuffix>64): Ditto.
12310 (ufloatv16siv16sf2): Ditto.
12311 (avx512f_fix_notruncv16sfv16si): Ditto.
12312 (avx512f_ufix_notruncv16sfv16si): Ditto.
12313 (avx512f_vcvtss2usi): Ditto.
12314 (avx512f_vcvtss2usiq): Ditto.
12315 (avx512f_vcvttss2usi): Ditto.
12316 (avx512f_vcvttss2usiq): Ditto.
12317 (avx512f_vcvtsd2usi): Ditto.
12318 (avx512f_vcvtsd2usiq): Ditto.
12319 (avx512f_vcvttsd2usi): Ditto.
12320 (avx512f_vcvttsd2usiq): Ditto.
12321 (ufloatv8siv8df): Ditto.
12322 (avx512f_cvtdq2pd512_2): Ditto.
12323 (avx512f_cvtpd2dq512): Ditto.
12324 (avx512f_ufix_notruncv8dfv8si): Ditto.
12325 (avx512f_cvtpd2ps512): Ditto.
12326 (vec_unpacks_lo_v16sf): Ditto.
12327 (vec_unpacks_hi_v16sf): Ditto.
12328 (vec_unpacks_float_hi_v16si): Ditto.
12329 (vec_unpacks_float_lo_v16si): Ditto.
12330 (avx512f_unpckhps512): Ditto.
12331 (avx512f_unpcklps512): Ditto.
12332 (avx512f_movshdup512): Ditto.
12333 (avx512f_movsldup512): Ditto.
12334 (vec_extract_lo_v32hi): Ditto.
12335 (vec_extract_hi_v32hi): Ditto.
12336 (vec_extract_lo_v64qi): Ditto.
12337 (vec_extract_hi_v64qi): Ditto.
12338 (avx512f_unpckhpd512): Ditto.
12339 (avx512f_movddup512): Ditto.
12340 (avx512f_unpcklpd512): Ditto.
12341 (*avx512f_unpcklpd512): Ditto.
12342 (avx512f_shufps512_1): Ditto.
12343 (avx512f_shufpd512_1): Ditto.
12344 (avx512f_interleave_highv8di): Ditto.
12345 (avx512f_interleave_lowv8di): Ditto.
12346 (PMOV_DST_MODE): Ditto.
12347 (pmov_src_mode): Ditto.
12348 (pmov_src_lower): Ditto.
12349 (pmov_suff): Ditto.
12350 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
12351 (*avx512f_<code>v8div16qi2): Ditto.
12352 (*avx512f_<code>v8div16qi2_store): Ditto.
12353 (vec_widen_umult_even_v16si): Ditto.
12354 (*vec_widen_umult_even_v16si): Ditto.
12355 (vec_widen_smult_even_v16si): Ditto.
12356 (*vec_widen_smult_even_v16si): Ditto.
12357 (avx512f_interleave_highv16si): Ditto.
12358 (avx512f_interleave_lowv16si): Ditto.
12359 (avx512f_<code>v16qiv16si2): Ditto.
12360 (avx512f_<code>v16hiv16si2): Ditto.
12361 (avx512f_<code>v8qiv8di2): Ditto.
12362 (avx512f_<code>v8hiv8di2): Ditto.
12363 (avx512f_<code>v8siv8di2): Ditto.
12364 (avx512cd_maskb_vec_dupv8di): Ditto.
12365 (avx512cd_maskw_vec_dupv16si): Ditto.
12366 (avx512f_vcvtph2ps512): Ditto.
12367 (avx512f_vcvtps2ph512): Ditto.
12368 (VEC_EXTRACT_MODE): Extened with wider modes.
12369 (VEC_PERM_AVX2): Ditto.
12370 (VEC_PERM_CONST): Ditto.
12371
12372 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
12373
12374 * config/arc/arc.c (arc_ccfsm_post_advance):
12375 Add comment about TYPE_RETURN.
12376
12377 2013-10-28 Bin Cheng <bin.cheng@arm.com>
12378
12379 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
12380 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
12381 (strip_offset): Convert offset to unsigned number.
12382
12383 2013-10-27 Tom de Vries <tom@codesourcery.com>
12384
12385 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
12386 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
12387
12388 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
12389
12390 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
12391 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
12392 (TARGET_BIG_ENDIAN): New macro.
12393 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
12394 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
12395 * config/sh/sh.c: Likewise.
12396 * config/sh/sh.h: Likewise.
12397
12398 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
12399
12400 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
12401 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
12402
12403 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
12404
12405 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
12406 Fix formatting.
12407 (cmpstr_t, cmpstrsi): Fix formatting.
12408
12409 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
12410
12411 PR target/52483
12412 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
12413 addressing, do not use general_operand for memory operands.
12414
12415 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
12416
12417 Revert:
12418 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
12419 * lra-spills.c (lra_final_code_change): Remove useless move insns.
12420
12421 2013-10-26 Jeff Law <law@redhat.com>
12422
12423 * predict.c (PRED_MUDFLAP): Remove.
12424 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
12425
12426 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
12427 (OBJS): Remove tree-nomudflap.o
12428 (GTFILES): Remove tree-mudflap.c
12429 * builtins.c (expand_builtin_alloc): Remove mudflap support.
12430 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
12431 (mfwrap_spec, mflib_spec): Likewise.
12432 (cpp_unique_options, cc1_options, static_specs): Likewise.
12433 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
12434 * passes.def: Likewise.
12435 * toplev.c (compile_file, process_options): Likewise.
12436 * tree-inline.c (copy_tree_r): Likewise.
12437 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
12438 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
12439 (build_constant_desc, output_constant_def_contents): Likewise.
12440 (categorize_decl_for_section): Likewise.
12441 * tree-mudflap.c: Removed.
12442 * tree-mudflap.h: Removed.
12443 * tree-nomudflap.c: Removed.
12444 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
12445 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
12446 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
12447 * config/sol2.h (MFLIB_SPEC): Likewise.
12448 * doc/install.texi: Remove mudflap references.
12449 * doc/passes.texi: Similarly.
12450 * doc/sourcebuild.texi: Similarly.
12451 * doc/invoke.texi: Remove mudlfap related options.
12452
12453 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
12454
12455 PR rtl-optimization/58759
12456 * lra-constraints.c (lra_constraints): Remove wrong condition to
12457 remove insn setting up an equivalent pseudo.
12458
12459 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
12460
12461 * config/rs6000/rs6000-protos.h
12462 (rs6000_secondary_memory_needed_mode): New prototype.
12463 * config/rs6000/rs6000.c: Include ira.h.
12464 (TARGET_LRA_P): Redefine.
12465 (rs6000_legitimate_offset_address_p): Call
12466 legitimate_constant_pool_address_p in strict mode for LRA.
12467 (rs6000_legitimate_address_p): Ditto.
12468 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
12469 (rs6000_emit_move): Add LRA version of code to generate load/store
12470 of SDmode values.
12471 (rs6000_secondary_memory_needed_mode): New.
12472 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
12473 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
12474 constants, memory, and FP registers.
12475 (rs6000_lra_p): New.
12476 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
12477 * config/rs6000/rs6000.opt (mlra): New option.
12478 * lra-spills.c (lra_final_code_change): Remove useless move insns.
12479
12480 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
12481
12482 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
12483 has_single_use () and not do the conversion if has_single_use ()
12484 returns false for the multiplication result.
12485
12486 2013-10-25 David Malcolm <dmalcolm@redhat.com>
12487
12488 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
12489 to "NODE", since this works on a "tree", not an
12490 "enum tree_code".
12491 (CONSTANT_CLASS_P): Likewise.
12492 (TYPE_P): Likewise.
12493 (DECL_P): Likewise.
12494 (INDIRECT_REF_P): Likewise.
12495 (REFERENCE_CLASS_P): Likewise.
12496 (COMPARISON_CLASS_P): Likewise.
12497 (UNARY_CLASS_P): Likewise.
12498 (BINARY_CLASS_P): Likewise.
12499 (STATEMENT_CLASS_P): Likewise.
12500 (VL_EXP_CLASS_P): Likewise.
12501 (EXPRESSION_CLASS_P): Likewise.
12502 (IS_TYPE_OR_DECL_P): Likewise.
12503
12504 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
12505
12506 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
12507 ADDR_EXPR in the defining statement.
12508
12509 2013-10-25 Richard Biener <rguenther@suse.de>
12510
12511 PR tree-optimization/58626
12512 * tree-loop-distribution.c (enum rdg_dep_type): Remove
12513 anti_dd, output_dd and input_dd.
12514 (struct rdg_edge): Remove level and relation members.
12515 (RDGE_LEVEL, RDGE_RELATION): Remove.
12516 (dot_rdg_1): Adjust.
12517 (create_rdg_edge_for_ddr): Remove.
12518 (create_rdg_edges_for_scalar): Adjust.
12519 (create_edge_for_control_dependence): Likewise.
12520 (create_rdg_edges): Split into ...
12521 (create_rdg_flow_edges): ... this
12522 (create_rdg_cd_edges): ... and this.
12523 (free_rdg): Adjust.
12524 (build_rdg): Likewise, do not compute data dependences or
12525 add edges for them.
12526 (pg_add_dependence_edges): New function.
12527 (pgcmp): Likewise.
12528 (distribute_loop): First apply all non-dependence based
12529 partition mergings. Then compute dependences between partitions
12530 and merge and order partitions according to them.
12531
12532 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
12533
12534 PR rtl-optimization/58831
12535 * alias.c (init_alias_analysis): At the beginning of each iteration,
12536 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
12537
12538 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
12539
12540 * recog.c (search_ofs): New static variable moved from...
12541 (peep2_find_free_register): ...here.
12542 (peephole2_optimize): Initialize it.
12543
12544 2013-10-25 Tobias Burnus <burnus@net-b.de>
12545
12546 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
12547
12548 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
12549
12550 * config/i386/i386.h (TARGET_MPX): New define.
12551 (TARGET_MPX_P): Ditto.
12552
12553 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
12554
12555 * config/i386/constraints.md (B): New.
12556 (Ti): New.
12557 (Tb): New.
12558 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
12559 * config/i386/i386-modes.def (BND32): New.
12560 (BND64): New.
12561 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
12562 * config/i386/i386.c (isa_opts): Add mmpx.
12563 (regclass_map): Add bound registers.
12564 (dbx_register_map): Likewise.
12565 (dbx64_register_map): Likewise.
12566 (svr4_dbx_register_map): Likewise.
12567 (PTA_MPX): New.
12568 (ix86_option_override_internal): Support MPX ISA.
12569 (ix86_conditional_register_usage): Support bound registers.
12570 (print_reg): Likewise.
12571 (ix86_code_end): Add MPX bnd prefix.
12572 (output_set_got): Likewise.
12573 (ix86_output_call_insn): Likewise.
12574 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
12575 (ix86_print_operand_punct_valid_p): Likewise.
12576 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
12577 UNSPEC_BNDMK_ADDR.
12578 (ix86_class_likely_spilled_p): Add bound regs support.
12579 (ix86_hard_regno_mode_ok): Likewise.
12580 (x86_order_regs_for_local_alloc): Likewise.
12581 (ix86_bnd_prefixed_insn_p): New.
12582 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
12583 (FIXED_REGISTERS): Add bound registers.
12584 (CALL_USED_REGISTERS): Likewise.
12585 (REG_ALLOC_ORDER): Likewise.
12586 (HARD_REGNO_NREGS): Likewise.
12587 (TARGET_MPX): New.
12588 (VALID_BND_REG_MODE): New.
12589 (FIRST_BND_REG): New.
12590 (LAST_BND_REG): New.
12591 (reg_class): Add BND_REGS.
12592 (REG_CLASS_NAMES): Likewise.
12593 (REG_CLASS_CONTENTS): Likewise.
12594 (BND_REGNO_P): New.
12595 (ANY_BND_REG_P): New.
12596 (BNDmode): New.
12597 (HI_REGISTER_NAMES): Add bound registers.
12598 * config/i386/i386.md (UNSPEC_BNDMK): New.
12599 (UNSPEC_BNDMK_ADDR): New.
12600 (UNSPEC_BNDSTX): New.
12601 (UNSPEC_BNDLDX): New.
12602 (UNSPEC_BNDLDX_ADDR): New.
12603 (UNSPEC_BNDCL): New.
12604 (UNSPEC_BNDCU): New.
12605 (UNSPEC_BNDCN): New.
12606 (UNSPEC_MPX_FENCE): New.
12607 (BND0_REG): New.
12608 (BND1_REG): New.
12609 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
12610 (length_immediate): Likewise.
12611 (prefix_0f): Likewise.
12612 (memory): Likewise.
12613 (prefix_rep): Check for bnd prefix.
12614 (length_nobnd): New.
12615 (length): Use length_nobnd if specified.
12616 (BND): New.
12617 (bnd_ptr): New.
12618 (BNDCHECK): New.
12619 (bndcheck): New.
12620 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
12621 (*jcc_2): Likewise.
12622 (jump): Likewise.
12623 (simple_return_internal): Likewise.
12624 (simple_return_pop_internal): Likewise.
12625 (*indirect_jump): Add MPX bnd prefix.
12626 (*tablejump_1): Likewise.
12627 (simple_return_internal_long): Likewise.
12628 (simple_return_indirect_internal): Likewise.
12629 (<mode>_mk): New.
12630 (*<mode>_mk): New.
12631 (mov<mode>): New.
12632 (*mov<mode>_internal_mpx): New.
12633 (<mode>_<bndcheck>): New.
12634 (*<mode>_<bndcheck>): New.
12635 (<mode>_ldx): New.
12636 (*<mode>_ldx): New.
12637 (<mode>_stx): New.
12638 (*<mode>_stx): New.
12639 * config/i386/predicates.md (lea_address_operand): Rename to...
12640 (address_no_seg_operand): ... this.
12641 (address_mpx_no_base_operand): New.
12642 (address_mpx_no_index_operand): New.
12643 (bnd_mem_operator): New.
12644 * config/i386/i386.opt (mmpx): New.
12645 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
12646 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
12647
12648 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
12649
12650 * mode-classes.def (MODE_POINTER_BOUNDS): New.
12651 * tree.def (POINTER_BOUNDS_TYPE): New.
12652 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
12653 (POINTER_BOUNDS_MODE): New.
12654 (make_pointer_bounds_mode): New.
12655 * machmode.h (POINTER_BOUNDS_MODE_P): New.
12656 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
12657 (layout_type): Support POINTER_BOUNDS_TYPE.
12658 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
12659 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
12660 (type_contains_placeholder_1): Likewise.
12661 * tree.h (POINTER_BOUNDS_TYPE_P): New.
12662 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
12663 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
12664
12665 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
12666
12667 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
12668 mode of address computation when calling memory_address_addr_space.
12669
12670 2013-08-24 Richard Henderson <rth@twiddle.net>
12671
12672 PR rtl/58542
12673 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
12674 instead of create_convert_operand_to.
12675 (maybe_emit_sync_lock_test_and_set): Likewise.
12676 (expand_atomic_compare_and_swap): Likewise.
12677 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
12678
12679 2013-08-24 Sriraman Tallam <tmsriram@google.com>
12680
12681 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
12682 Change param_is to use the struct and not the pointer to the struct.
12683
12684 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
12685
12686 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
12687 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
12688 Move to targhooks.c.
12689 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
12690 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
12691 Relocate from gimplify.c.
12692 * targhooks.h: Add 2 prototypes.
12693 * tree.h: Delete 2 prototypes.
12694
12695 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
12696
12697 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
12698 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
12699
12700 2013-10-24 Cong Hou <congh@google.com>
12701
12702 * convert.c (convert_to_real): Guard those unsafe math function
12703 convertions with flag_unsafe_math_optimizations. Handle sqrt()
12704 specially.
12705
12706 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
12707
12708 PR ipa/58712
12709 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
12710 as argument.
12711 (cgraph_create_edge): Use the new argument.
12712 (cgraph_create_indirect_edge): Likewise.
12713
12714 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
12715
12716 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
12717 TYPE_UNCOND_BRANCH.
12718 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
12719 changes statep->state.
12720
12721 2013-10-24 Tobias Burnus <burnus@net-b.de>
12722
12723 PR other/33426
12724 * tree-cfg.c (replace_loop_annotate): New function.
12725 (execute_build_cfg): Call it.
12726 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
12727 * internal-fn.c (expand_ANNOTATE): New function.
12728 * internal-fn.def (ANNOTATE): Define as new internal function.
12729 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
12730 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
12731 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
12732 * doc/extend.texi (Pragmas): Document #pragma ivdep.
12733 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
12734
12735 2013-10-17 Ian Bolton <ian.bolton@arm.com>
12736 Marcus Shawcroft <marcus.shawcroft@arm.com>
12737
12738 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
12739 Special case reload SP+C into none GENERAL_REGS.
12740
12741 2013-10-24 Michael Matz <matz@suse.de>
12742
12743 * gengtype.c (is_file_equal): Check that files will be same length.
12744
12745 2013-10-25 Christian Bruel <christian.bruel@st.com>
12746
12747 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
12748 * config/sh/t-sh (sh-mem.o): New rule.
12749 * config/sh/sh-mem.cc (expand_block_move): Moved here.
12750 (sh_expand_cmpstr): New function.
12751 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
12752 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
12753 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
12754 (rotlhi3_8): Rename.
12755
12756 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12757
12758 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
12759 * Makefile.in (CXXDEPMODE): Assign and change users.
12760 (CCDEPMODE): Delete.
12761 * configure: Regenerate.
12762
12763 2013-10-23 David Malcolm <dmalcolm@redhat.com>
12764
12765 * gengtype-parse.c (require_without_advance): New.
12766 (type): For GTY-marked types that are not GTY((user)), parse any
12767 base classes, requiring them to be single-inheritance, and not
12768 be templates. For non-GTY-marked types and GTY((user)),
12769 continue to skip over any C++ inheritance specification.
12770 * gengtype-state.c (state_writer::write_state_struct_type):
12771 Write base class of type (if any).
12772 (read_state_struct_type): Read base class of type (if any).
12773 * gengtype.c (new_structure): Add a "base_class" parameter.
12774 (create_optional_field_): Update for new parameter to new_structure.
12775 (adjust_field_rtx_def): Likewise.
12776 (adjust_field_tree_exp): Likewise.
12777 * gengtype.h (struct type): Add "base_class" field to the s
12778 union field.
12779 (new_structure): Add "base" parameter.
12780
12781 2013-10-23 Sriraman Tallam <tmsriram@google.com>
12782
12783 PR target/57756
12784 * config/i386/i386.c (ix86_option_override_internal):
12785 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
12786 (ix86_valid_target_attribute_tree):
12787 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
12788 Change TARGET_SSE to TARGET_SSE_P (opts->...)
12789
12790 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
12791
12792 * tree-ssa-loop.h: Remove include files.
12793 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
12794 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
12795 * graphite-clast-to-gimple.c: Likewise.
12796 * graphite-scop-detection.c: Likewise.
12797 * graphite-sese-to-poly.c: Likewise.
12798 * ipa-inline-analysis.c: Likewise.
12799 * ipa-pure-const.c: Likewise.
12800 * loop-init.c: Likewise.
12801 * passes.c: Likewise.
12802 * predict.c: Likewise.
12803 * tree-cfg.c: Likewise.
12804 * tree-cfgcleanup.c: Likewise.
12805 * tree-chrec.c: Likewise.
12806 * tree-data-ref.c: Likewise.
12807 * tree-loop-distribution.c: Likewise.
12808 * tree-parloops.c: Likewise.
12809 * tree-predcom.c: Likewise.
12810 * tree-scalar-evolution.c: Likewise.
12811 * tree-ssa-address.c: Likewise.
12812 * tree-ssa.c: Likewise.
12813 * tree-ssa-dce.c: Likewise.
12814 * tree-ssa-loop.c: Likewise.
12815 * tree-ssa-loop-im.c: Likewise.
12816 * tree-ssa-loop-ivcanon.c: Likewise.
12817 * tree-ssa-loop-ivopts.c: Likewise.
12818 * tree-ssa-loop-manip.c: Likewise.
12819 * tree-ssa-loop-niter.c: Likewise.
12820 * tree-ssa-loop-prefetch.c: Likewise.
12821 * tree-ssa-loop-unswitch.c: Likewise.
12822 * tree-ssa-reassoc.c: Likewise.
12823 * tree-vect-data-refs.c: Likewise.
12824 * tree-vect-loop.c: Likewise.
12825 * tree-vect-loop-manip.c: Likewise.
12826 * tree-vectorizer.c: Likewise.
12827 * tree-vect-stmts.c: Likewise.
12828 * tree-vrp.c: Likewise.
12829
12830 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12831
12832 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
12833
12834 2013-10-23 Jakub Jelinek <jakub@redhat.com>
12835
12836 PR tree-optimization/58775
12837 PR tree-optimization/58791
12838 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
12839 (insert_stmt_after): Rewritten, don't move the stmt, but really
12840 insert it.
12841 (get_stmt_uid_with_default): Remove.
12842 (build_and_add_sum): Use insert_stmt_after and
12843 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
12844 (update_range_test): Set uid on stmts added by
12845 force_gimple_operand_gsi. Don't immediately modify statements
12846 in inter-bb optimization, just update oe->op values.
12847 (optimize_range_tests): Return bool whether any changed have been made.
12848 (update_ops): New function.
12849 (struct inter_bb_range_test_entry): New type.
12850 (maybe_optimize_range_tests): Perform statement changes here.
12851 (not_dominated_by, appears_later_in_bb, get_def_stmt,
12852 ensure_ops_are_available): Remove.
12853 (find_insert_point): Rewritten.
12854 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
12855 return LHS of the (new resp. old) stmt. Don't call
12856 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
12857 instead of last, move new stmt at the right place.
12858 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
12859 (negate_value): Likewise. Set uids.
12860 (break_up_subtract_bb): Initialize uids.
12861 (reassociate_bb): Adjust rewrite_expr_tree caller.
12862 (do_reassoc): Don't call renumber_gimple_stmt_uids.
12863
12864 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
12865
12866 PR target/58838
12867 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
12868 TARGET_32BIT final condition.
12869 (mulsi3_internal2 and splitter): Same.
12870
12871 2013-10-23 Jeff Law <law@redhat.com>
12872
12873 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
12874 through joiner blocks with abnormal outgoing edges.
12875
12876 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
12877 Add parameter JOINERS, to allow/disallow threading through joiner
12878 blocks.
12879 (thread_block): New. Call thread_block_1.
12880 (mark_threaded_blocks): Remove code to filter out certain cases
12881 of threading through joiner blocks.
12882 (thread_through_all_blocks): Document how we can have a dangling
12883 edge AUX field and clear it.
12884
12885 2013-10-23 Ian Lance Taylor <iant@google.com>
12886
12887 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
12888 (C++ Dialect Options): Likewise.
12889 (Optimize Options): Likewise.
12890
12891 2013-10-23 Tom de Vries <tom@codesourcery.com>
12892
12893 PR tree-optimization/58805
12894 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
12895
12896 2013-10-23 Jakub Jelinek <jakub@redhat.com>
12897
12898 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
12899 sequence based on get_range_info returned range.
12900
12901 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
12902
12903 * tree-ssa.h: Remove all #include's
12904 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
12905 * alias.c: Move required includes from tree-ssa.h.
12906 * asan.c: Likewise.
12907 * builtins.c: Likewise.
12908 * calls.c: Likewise.
12909 * cfgexpand.c: Likewise.
12910 * cfghooks.c: Likewise.
12911 * cfgloop.c: Likewise.
12912 * cfgloopmanip.c: Likewise.
12913 * cgraph.c: Likewise.
12914 * cgraphbuild.c: Likewise.
12915 * cgraphclones.c: Likewise.
12916 * cgraphunit.c: Likewise.
12917 * dse.c: Likewise.
12918 * except.c: Likewise.
12919 * expr.c: Likewise.
12920 * final.c: Likewise.
12921 * fold-const.c: Likewise.
12922 * ggc-page.c: Likewise.
12923 * gimple-builder.c: Likewise.
12924 * gimple-fold.c: Likewise.
12925 * gimple-iterator.c: Likewise.
12926 * gimple-low.c: Likewise.
12927 * gimple-pretty-print.c: Likewise.
12928 * gimple-ssa-strength-reduction.c: Likewise.
12929 * gimple-streamer-in.c: Likewise.
12930 * gimple-streamer-out.c: Likewise.
12931 * gimplify.c: Likewise.
12932 * graphite-blocking.c: Likewise.
12933 * graphite-clast-to-gimple.c: Likewise.
12934 * graphite-dependences.c: Likewise.
12935 * graphite-interchange.c: Likewise.
12936 * graphite-optimize-isl.c: Likewise.
12937 * graphite-poly.c: Likewise.
12938 * graphite-scop-detection.c: Likewise.
12939 * graphite-sese-to-poly.c: Likewise.
12940 * graphite.c: Likewise.
12941 * ipa-cp.c: Likewise.
12942 * ipa-inline-analysis.c: Likewise.
12943 * ipa-inline-transform.c: Likewise.
12944 * ipa-inline.c: Likewise.
12945 * ipa-prop.c: Likewise.
12946 * ipa-pure-const.c: Likewise.
12947 * ipa-reference.c: Likewise.
12948 * ipa-split.c: Likewise.
12949 * ipa-utils.c: Likewise.
12950 * loop-init.c: Likewise.
12951 * lto-cgraph.c: Likewise.
12952 * lto-section-in.c: Likewise.
12953 * lto-section-out.c: Likewise.
12954 * lto-streamer-in.c: Likewise.
12955 * lto-streamer-out.c: Likewise.
12956 * lto-streamer.c: Likewise.
12957 * omp-low.c: Likewise.
12958 * passes.c: Likewise.
12959 * predict.c: Likewise.
12960 * print-tree.c: Likewise.
12961 * profile.c: Likewise.
12962 * sese.c: Likewise.
12963 * targhooks.c: Likewise.
12964 * tracer.c: Likewise.
12965 * trans-mem.c: Likewise.
12966 * tree-call-cdce.c: Likewise.
12967 * tree-cfg.c: Likewise.
12968 * tree-cfgcleanup.c: Likewise.
12969 * tree-chrec.c: Likewise.
12970 * tree-complex.c: Likewise.
12971 * tree-data-ref.c: Likewise.
12972 * tree-dfa.c: Likewise.
12973 * tree-eh.c: Likewise.
12974 * tree-emutls.c: Likewise.
12975 * tree-if-conv.c: Likewise.
12976 * tree-inline.c: Likewise.
12977 * tree-into-ssa.c: Likewise.
12978 * tree-loop-distribution.c: Likewise.
12979 * tree-mudflap.c: Likewise.
12980 * tree-nested.c: Likewise.
12981 * tree-nrv.c: Likewise.
12982 * tree-object-size.c: Likewise.
12983 * tree-outof-ssa.c: Likewise.
12984 * tree-parloops.c: Likewise.
12985 * tree-phinodes.c: Likewise.
12986 * tree-predcom.c: Likewise.
12987 * tree-pretty-print.c: Likewise.
12988 * tree-profile.c: Likewise.
12989 * tree-scalar-evolution.c: Likewise.
12990 * tree-sra.c: Likewise.
12991 * tree-ssa-address.c: Likewise.
12992 * tree-ssa-alias.c: Likewise.
12993 * tree-ssa-ccp.c: Likewise.
12994 * tree-ssa-coalesce.c: Likewise.
12995 * tree-ssa-copy.c: Likewise.
12996 * tree-ssa-copyrename.c: Likewise.
12997 * tree-ssa-dce.c: Likewise.
12998 * tree-ssa-dom.c: Likewise.
12999 * tree-ssa-dse.c: Likewise.
13000 * tree-ssa-forwprop.c: Likewise.
13001 * tree-ssa-ifcombine.c: Likewise.
13002 * tree-ssa-live.c: Likewise.
13003 * tree-ssa-loop-ch.c: Likewise.
13004 * tree-ssa-loop-im.c: Likewise.
13005 * tree-ssa-loop-ivcanon.c: Likewise.
13006 * tree-ssa-loop-ivopts.c: Likewise.
13007 * tree-ssa-loop-manip.c: Likewise.
13008 * tree-ssa-loop-niter.c: Likewise.
13009 * tree-ssa-loop-prefetch.c: Likewise.
13010 * tree-ssa-loop-unswitch.c: Likewise.
13011 * tree-ssa-loop.c: Likewise.
13012 * tree-ssa-math-opts.c: Likewise.
13013 * tree-ssa-operands.c: Likewise.
13014 * tree-ssa-phiopt.c: Likewise.
13015 * tree-ssa-phiprop.c: Likewise.
13016 * tree-ssa-pre.c: Likewise.
13017 * tree-ssa-propagate.c: Likewise.
13018 * tree-ssa-reassoc.c: Likewise.
13019 * tree-ssa-sccvn.c: Likewise.
13020 * tree-ssa-sink.c: Likewise.
13021 * tree-ssa-strlen.c: Likewise.
13022 * tree-ssa-structalias.c: Likewise.
13023 * tree-ssa-tail-merge.c: Likewise.
13024 * tree-ssa-ter.c: Likewise.
13025 * tree-ssa-threadedge.c: Likewise.
13026 * tree-ssa-threadupdate.c: Likewise.
13027 * tree-ssa-uncprop.c: Likewise.
13028 * tree-ssa-uninit.c: Likewise.
13029 * tree-ssa.c: Likewise.
13030 * tree-ssanames.c: Likewise.
13031 * tree-stdarg.c: Likewise.
13032 * tree-streamer-in.c: Likewise.
13033 * tree-switch-conversion.c: Likewise.
13034 * tree-tailcall.c: Likewise.
13035 * tree-vect-data-refs.c: Likewise.
13036 * tree-vect-generic.c: Likewise.
13037 * tree-vect-loop-manip.c: Likewise.
13038 * tree-vect-loop.c: Likewise.
13039 * tree-vect-patterns.c: Likewise.
13040 * tree-vect-slp.c: Likewise.
13041 * tree-vect-stmts.c: Likewise.
13042 * tree-vectorizer.c: Likewise.
13043 * tree-vrp.c: Likewise.
13044 * tree.c: Likewise.
13045 * tsan.c: Likewise.
13046 * value-prof.c: Likewise.
13047 * var-tracking.c: Likewise.
13048 * varpool.c: Likewise.
13049 * vtable-verify.c: Likewise.
13050
13051 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13052
13053 * config/tilegx/tilegx.c: Include "tree.h".
13054
13055 2013-10-23 Jakub Jelinek <jakub@redhat.com>
13056
13057 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
13058 the info, not after it.
13059 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
13060 dump_ssaname_info call.
13061 (pp_gimple_stmt_1): Adjust caller.
13062 (dump_phi_nodes): Likewise. Don't print "# " here.
13063
13064 2013-10-22 Jan Hubicka <jh@suse.cz>
13065
13066 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
13067 tuning flag.
13068 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
13069 * i386.c (expand_small_movmem_or_setmem): New function.
13070 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
13071 function.
13072 (alg_usable_p): Add support for value ranges; cleanup.
13073 (ix86_expand_set_or_movmem): Add support for misaligned moves.
13074
13075 2013-10-22 Sterling Augustine <saugustine@google.com>
13076
13077 * doc/invoke.texi: Document -ggnu-pubnames.
13078 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
13079 logic.
13080 * dwarf2out.c: Include gdb/gdb-index.h.
13081 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
13082 debug_generate_pub_sections.
13083 (is_java, output_pubtables, output_pubname): New functions.
13084 (include_pubname_in_output): Handle debug_generate_pub_sections at
13085 level 2.
13086 (size_of_pubnames): Use new local space_for_flags based on
13087 debug_generate_pub_sections.
13088 (output_pubnames): Unify pubnames and pubtypes output logic.
13089 Genericize comments. Call output_pubname.
13090 (dwarf2out_finish): Move logic to output_pubnames and call it.
13091
13092 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
13093
13094 PR target/58779
13095 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
13096 Remove CCCmode handling.
13097 <case LTU>: Return 'c' suffix for CCCmode.
13098 <case GEU>: Return 'nc' suffix for CCCmode.
13099 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
13100 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
13101 (*sub<mode>3_cc_overflow): Ditto.
13102 (*subsi3_zext_cc_overflow): Ditto.
13103
13104 2013-10-22 Steve Ellcey <sellcey@mips.com>
13105
13106 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
13107 (AND (NOT OP1) (NOT OP2)).
13108
13109 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
13110
13111 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
13112 meaning of merge-high and merge-low masks for little endian; avoid
13113 use of vector-pack masks for little endian for mismatched modes.
13114
13115 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13116
13117 * config/tilepro/tilepro.c: Include "tree.h".
13118
13119 2013-10-22 Andreas Schwab <schwab@suse.de>
13120
13121 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
13122 with PRE_DEC.
13123
13124 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
13125
13126 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
13127 [Ed Smith-Rowland]): New entries.
13128 ([Stephen M. Webb]): Update.
13129
13130 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
13131
13132 * tree-ssa-ter.h: Remove duplicate copy of file contents.
13133
13134 2013-10-21 Marek Polacek <polacek@redhat.com>
13135
13136 PR middle-end/58809
13137 * fold-const.c (fold_range_test): Return 0 if the type is not
13138 an integral type.
13139
13140 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
13141
13142 * system.h: Move hwint.h include further down.
13143 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
13144 gcc_checking_asserts.
13145 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
13146
13147 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
13148
13149 Fix volatile issues in optimize_bit_field_compare.
13150 * fold-const.c (optimize_bit_field_compare): Bail out if
13151 lvolatilep or rvolatilep.
13152
13153 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
13154
13155 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
13156 and get_inner_reference returning different pmode for non-volatile
13157 bit-field members dependent on flag_strict_volatile_bitfields.
13158 * stor-layout.c (layout_decl): Remove special handling of
13159 flag_strict_volatile_bitfields.
13160 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
13161 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
13162
13163 2013-10-21 Paulo Matos <pmatos@broadcom.com>
13164
13165 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
13166 calculations.
13167
13168 2013-10-21 Jeff Law <law@redhat.com>
13169
13170 * tree-ssa-threadedge.c (thread_through_normal_block): New
13171 argument VISITED. Remove VISISTED as a local variable. When we
13172 have a threadable jump, verify the destination of the jump has not
13173 been visised.
13174 (thread_across_edge): Allocate VISITED bitmap once at function
13175 scope and use it throughout. Make sure to set appropriate bits in
13176 VISITED for E (start of jump thread path).
13177 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
13178 through a joiner if any edge on the path has a recorded jump thread.
13179
13180 2013-10-21 Ian Lance Taylor <iant@google.com>
13181
13182 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
13183 don't imply that attributes can solve all problems.
13184 (Directory Options): Fix typo.
13185
13186 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13187
13188 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
13189 extend and extend_add.
13190
13191 2013-10-21 Richard Biener <rguenther@suse.de>
13192
13193 PR tree-optimization/58794
13194 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
13195 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
13196
13197 2013-10-21 Richard Biener <rguenther@suse.de>
13198
13199 PR middle-end/58742
13200 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
13201 to (T) X for sign-changing conversions (or no conversion).
13202
13203 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
13204
13205 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
13206
13207 2013-10-20 Jan Hubicka <jh@suse.cz>
13208
13209 * config/i386/i386-tune.def: Add comment; organize into categories
13210
13211 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
13212
13213 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
13214 argument. Update function comment.
13215 (expand_set_or_movmem_via_rep): New function combining
13216 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
13217 (expand_movmem_via_rep_mov): Remove.
13218 expand_setmem_via_rep_stos): Remove.
13219 (expand_movmem_epilogue): Update calls correspondingly.
13220 (expand_setmem_epilogue_via_loop): Likewise.
13221 (emit_memset): New.
13222 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
13223 (expand_set_or_movmem_prologue): New function combining
13224 expand_movmem_prologue and expand_setmem_prologue.
13225 (expand_movmem_prologue): Remove.
13226 (expand_setmem_prologue): Remove.
13227 (expand_set_or_movmem_constant_prologue): New function combining
13228 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
13229 (expand_constant_movmem_prologue): Remove.
13230 (expand_constant_setmem_prologue): Remove.
13231 (promote_duplicated_reg): Allow vector-const0 value.
13232 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
13233 and ix86_expand_setmem.
13234 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
13235 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
13236
13237 2013-10-21 Diego Novillo <dnovillo@google.com>
13238
13239 * asan.c: Include tree.h
13240 * bb-reorder.c: Likewise.
13241 * cfgcleanup.c: Likewise.
13242 * cfgloopmanip.c: Likewise.
13243 * data-streamer-in.c: Likewise.
13244 * data-streamer-out.c: Likewise.
13245 * data-streamer.c: Likewise.
13246 * dwarf2cfi.c: Likewise.
13247 * graphite-blocking.c: Likewise.
13248 * graphite-clast-to-gimple.c: Likewise.
13249 * graphite-dependences.c: Likewise.
13250 * graphite-interchange.c: Likewise.
13251 * graphite-optimize-isl.c: Likewise.
13252 * graphite-poly.c: Likewise.
13253 * graphite-scop-detection.c: Likewise.
13254 * graphite-sese-to-poly.c: Likewise.
13255 * graphite.c: Likewise.
13256 * ipa-devirt.c: Likewise.
13257 * ipa-profile.c: Likewise.
13258 * ipa.c: Likewise.
13259 * ira.c: Likewise.
13260 * loop-init.c: Likewise.
13261 * loop-unroll.c: Likewise.
13262 * lower-subreg.c: Likewise.
13263 * lto/lto-object.c: Likewise.
13264 * recog.c: Likewise.
13265 * reginfo.c: Likewise.
13266 * tree-loop-distribution.c: Likewise.
13267 * tree-parloops.c: Likewise.
13268 * tree-ssa-strlen.c: Likewise.
13269 * tree-streamer.c: Likewise.
13270 * value-prof.c: Likewise.
13271 * target-globals.c: Likewise.
13272 * expr.h: Include tree-core.h instead of tree.h.
13273 * gimple.h: Likewise.
13274 * ipa-prop.h: Likewise.
13275 * ipa-utils.h: Likewise.
13276 * lto-streamer.h: Likewise.
13277 * streamer-hooks.h: Likewise.
13278 * ipa-reference.h: Include cgraph.h instead of tree.h.
13279 * cgraph.h: Include basic-block.h instead of tree.h.
13280 * tree-streamer.h: Do not include tree.h.
13281 * genattrtab.c (write_header): Generate inclusion of tree.h.
13282 * genautomata.c (main): Likewise.
13283 * genemit.c: Likewise.
13284 * genopinit.c: Likewise.
13285 * genoutput.c (output_prologue): Likewise.
13286 * genpeep.c: Likewise.
13287
13288 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13289
13290 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
13291 little endian.
13292 (vec_unpacku_hi_v8hi): Likewise.
13293 (vec_unpacku_lo_v16qi): Likewise.
13294 (vec_unpacku_lo_v8hi): Likewise.
13295
13296 2013-10-20 Jan Hubicka <jh@suse.cz>
13297
13298 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
13299 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
13300 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
13301
13302 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
13303
13304 * config/mips/mips.h (ISA_HAS_WSBH): Define.
13305 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
13306 constants.
13307 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
13308
13309 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
13310
13311 PR target/58603
13312 * system.h: Undef m_slot.
13313
13314 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13315
13316 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
13317 all elements for both endian flavors.
13318
13319 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
13320
13321 PR target/58792
13322 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
13323 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
13324 and SI_REG for 64bit SYSV ABI targets.
13325
13326 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
13327
13328 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
13329 to multi_reg_return. Clarify that we are skipping USEs of multiple
13330 return registers. Use bool type where appropriate.
13331
13332 2013-10-18 Jan Hubicka <jh@suse.cz>
13333
13334 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
13335 for cold functions.
13336 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
13337 (X86_TUNE_PUSH_MEMORY): Likewise.
13338 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
13339 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
13340 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
13341 New.
13342 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
13343 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
13344 Remove.
13345 (ix86_option_override_internal): Update to use tune features instead
13346 of variables.
13347
13348 2013-10-18 Cong Hou <congh@google.com>
13349
13350 PR tree-optimization/58508
13351 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
13352 statement that contains data refs with zero-step.
13353
13354 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
13355
13356 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
13357 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
13358 * gimple-low.c (gimple_check_call_arg,
13359 gimple_check_call_matching_types): Move to cgraph.c.
13360 * gimple-low.h: Remove prototype.
13361 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
13362 Relocate from gimple-low.c.
13363 * cgraph.h: Add prototype. Don't include basic-block.h.
13364 * gimplify.c: Add gimple-low to include list.
13365 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
13366 * tree-eh.c: Add gimple-low to include list.
13367 * tree-nested.c: Likewise.
13368 * cfgexpand.c: Add tree-ssa-address.h to include list.
13369 * expr.c: Likewise.
13370 * gimple-fold.c: Likewise.
13371 * gimple-ssa-strength-reduction.c: Likewise.
13372 * trans-mem.c: Likewise.
13373 * tree-mudflap.c: Likewise.
13374 * tree-ssa-loop-ivopts.c: Likewise.
13375 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
13376 (degenerate_phi_result): Move to tree-phinodes.c.
13377 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
13378 * tree-ssa-threadedge.c: Likewise.
13379 * tree-vrp.c: Likewise.
13380 * tree-phinodes.c (degenerate_phi_result): Relocate here.
13381 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
13382 * tree-phinodes.h (degenerate_phi_result): Add prototype.
13383 * tree-ssa-copy.c: Include tree-ssa-dom.h.
13384 * tree-ssa-forwprop.c: Likewise.
13385 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
13386 pass_data_cleanup_cfg_post_optimizing,
13387 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
13388 * tree-optimize.c: Delete File.
13389 * graphite.c: Include tree-cfgcleanup.h.
13390 * passes.c: Likewise.
13391 * tree-cfg.c: Likewise.
13392 * tree-profile.c: Likewise.
13393 * tree-ssa-dse.c: Likewise.
13394 * tree-ssa-loop-ivcanon.c: Likewise.
13395 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
13396 * tree-outof-ssa.c: Include sbitmap.h.
13397 * tree-ssa-live.c: Likewise.
13398 * tree-ssa-propagate.c: Likewise.
13399 * tree-ssa-structalias.c: Likewise.
13400 * tree-stdarg.c: Likewise.
13401 * Makefile.in (OBJS): Delete tree-optimize.o.
13402 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
13403 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
13404 * varasm.c: Include basic-block.h.
13405 * cfgloop.h: Include function.h instead of basic-block.h
13406 (bb_loop_depth): Move to cfgloop.c.
13407 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
13408
13409 2013-10-18 Teresa Johnson <tejohnson@google.com>
13410
13411 * predict.c (probably_never_executed): Compare frequency-based
13412 count to number of training runs.
13413 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
13414
13415 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13416
13417 * config/arm/arm.c (cortexa9_extra_costs): New table.
13418 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
13419
13420 2013-10-18 Jeff Law <law@redhat.com>
13421
13422 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
13423
13424 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
13425 (register_jump_thread): Add "registered_jump_thread" debug
13426 counter support.
13427 * dbgcnt.def (registered_jump_thread): New debug counter.
13428
13429 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
13430
13431 * config/rs6000/rs6000.c: Include cgraph.h.
13432
13433 2013-10-18 Teresa Johnson <tejohnson@google.com>
13434
13435 * tree-ssa-tail-merge.c (replace_block_by): Update edge
13436 weights during merging.
13437
13438 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
13439
13440 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
13441 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
13442 * tree-ssa-operands.h: Remove prototype.
13443 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
13444 * gimple.c (virtual_operand_p): Relocate from gimple.c.
13445 * gimple.h: Add prototype.
13446 * gimple-ssa.h: Include tree-ssa-operands.h.
13447 * tree-dump.c: Add tree-cfg.h to include list.
13448 * tree-ssa-alias.c: Add ipa-reference.h to include list.
13449 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
13450 * config/i386/i386.c: Don't include tree-flow.h.
13451 * config/rs6000/rs6000.c: Likewise.
13452
13453 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13454
13455 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
13456
13457 2013-10-18 Richard Biener <rguenther@suse.de>
13458
13459 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
13460 or TYPE_UNSIGNED of integral types.
13461 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
13462 NULL_TREE for zero-precision integral types.
13463
13464 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
13465
13466 * config/aarch64/arm_neon.h
13467 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
13468
13469 2013-10-17 Sriraman Tallam <tmsriram@google.com>
13470
13471 PR target/57756
13472 * opth-gen.awk: Define target_flags_explicit.
13473
13474 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
13475
13476 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
13477 fields to the reg_addr array that describes the valid addressing
13478 mode for any register, general purpose registers, floating point
13479 registers, and Altivec registers.
13480 (FIRST_RELOAD_REG_CLASS): Likewise.
13481 (LAST_RELOAD_REG_CLASS): Likewise.
13482 (struct reload_reg_map_type): Likewise.
13483 (reload_reg_map_type): Likewise.
13484 (RELOAD_REG_VALID): Likewise.
13485 (RELOAD_REG_MULTIPLE): Likewise.
13486 (RELOAD_REG_INDEXED): Likewise.
13487 (RELOAD_REG_OFFSET): Likewise.
13488 (RELOAD_REG_PRE_INCDEC): Likewise.
13489 (RELOAD_REG_PRE_MODIFY): Likewise.
13490 (reg_addr): Likewise.
13491 (mode_supports_pre_incdec_p): New helper functions to say whether
13492 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
13493 (mode_supports_pre_modify_p): Likewise.
13494 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
13495 print the valid address mode bits for each mode.
13496 (rs6000_debug_print_mode): Likewise.
13497 (rs6000_debug_reg_global): Likewise.
13498 (rs6000_setup_reg_addr_masks): New function to set up the address
13499 mask bits for each type.
13500 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
13501 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
13502 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
13503 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
13504 PRE_MODIFY are supported.
13505 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
13506 registers, instead of {src,dest}_av_p.
13507 (rs6000_print_options_internal): Tweak the debug output slightly.
13508
13509 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
13510
13511 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
13512 isa attribute.
13513
13514 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
13515
13516 * tree-flow.h (struct omp_region): Move to omp-low.c.
13517 Remove omp_ prototypes and variables.
13518 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
13519 (copy_var_decl): Relocate prototype from tree-flow.h.
13520 * gimple.c (copy_var_decl): Relocate from omp-low.c.
13521 * tree.h: Move prototype to omp-low.h.
13522 * omp-low.h: New File. Relocate prototypes here.
13523 * omp-low.c (struct omp_region): Make local here.
13524 (root_omp_region): Make static.
13525 (copy_var_decl) Move to gimple.c.
13526 (new_omp_region): Make static.
13527 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
13528 * tree-cfg.c: Include omp-low.h.
13529 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
13530 * gimplify.c: Include omp-low.h.
13531 * tree-parloops.c: Likewise.
13532
13533 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
13534
13535 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
13536 operands are in memory, prefer to force non-matched operand 1 to
13537 the register.
13538
13539 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
13540
13541 PR target/58673
13542 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
13543 restrict TImode addresses to single indirect registers if both
13544 -mquad-memory and -mvsx-timode are used.
13545 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
13546 we should emit load/store quad. Remove using %y for quad memory
13547 addresses.
13548
13549 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
13550 constraints to allow load/store quad on machines where TImode is
13551 not allowed in VSX registers. Use 'n' instead of 'F' constraint
13552 for TImode to load integer constants.
13553
13554 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13555
13556 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
13557
13558 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
13559
13560 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
13561 handling of STACK_REG.
13562
13563 2013-10-17 Richard Biener <rguenther@suse.de>
13564
13565 PR tree-optimization/58143
13566 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
13567 New function.
13568 (rewrite_to_defined_overflow): Likewise.
13569 (move_computations_dom_walker::before_dom): Rewrite stmts
13570 with undefined signed overflow that are not always executed
13571 into unsigned arithmetic.
13572
13573 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
13574
13575 PR target/57756
13576 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
13577 explicit isa flag to be an options variable, instead of using
13578 global_options_set. Remove define from rs6000.h.
13579 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
13580
13581 * config/rs6000/rs6000.c (rs6000_option_override_internal):
13582 Initialize rs6000_isa_flags_explicit.
13583 (rs6000_function_specific_save): Add gcc_options* parameter, so
13584 that the powerpc builds after the 2013-10-15 changes.
13585 (rs6000_function_specific_restore): Likewise.
13586
13587 2013-10-16 DJ Delorie <dj@redhat.com>
13588
13589 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
13590 op is a REG before checking REGNO.
13591 (rl78_alloc_physical_registers): Verify pattern is a SET before
13592 checking SET_SRC.
13593
13594 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13595
13596 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
13597 endianness.
13598 (vec_unpacks_lo_v4sf): Likewise.
13599 (vec_unpacks_float_hi_v4si): Likewise.
13600 (vec_unpacks_float_lo_v4si): Likewise.
13601 (vec_unpacku_float_hi_v4si): Likewise.
13602 (vec_unpacku_float_lo_v4si): Likewise.
13603
13604 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13605
13606 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
13607 (vsx_concat_v2sf): Likewise.
13608
13609 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
13610
13611 * config/aarch64/aarch64.md
13612 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
13613
13614 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
13615
13616 PR tree-optimization/58697
13617 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
13618 estimated_loop_iterations_int.
13619 (max_stmt_executions_int): Call get_max_loop_iterations_int.
13620 (get_max_loop_iterations_int): New. HWINT version of
13621 get_max_loop_iterations.
13622 * cfgloop.h: Add prototypes.
13623 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
13624 * loop-unroll.c (decide_peel_once_rolling): Call
13625 get_estimated_loop_iterations_int.
13626 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
13627 * tree-ssa-loop-niter.h: Tweak prototypes.
13628
13629 2013-10-16 David Malcolm <dmalcolm@redhat.com>
13630
13631 * gengtype-parse.c (struct_field_seq): Ignore access-control
13632 keywords ("public:" etc).
13633
13634 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
13635
13636 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
13637 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
13638
13639 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
13640
13641 * config/arm/arm.opt (mlra): New option.
13642 * config/arm/arm.c (arm_lra_p): New function.
13643 (TARGET_LRA_P): Define.
13644
13645 2013-10-16 Paulo Matos <pmatos@broadcom.com>
13646
13647 * tree-core.h (tree_code_name): Remove.
13648 * tree.h (get_tree_code_name): New prototype.
13649 * tree.c (tree_code_name): Make static.
13650 (get_tree_code_name): New function.
13651 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
13652 tree_class_check_failed, tree_range_check_failed,
13653 tree_not_class_check_failed, omp_clause_check_failed,
13654 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
13655 wrapper get_tree_code_name instead of calling tree_code_name directly.
13656 * tree-vrp.c (dump_asserts_for): Likewise.
13657 * tree-dump.c (dequeue_and_dump): Likewise.
13658 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
13659 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
13660 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
13661 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
13662 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
13663 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
13664 dump_gimple_omp_for): Likewise.
13665 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
13666 * tree-ssa-pre.c (print_pre_expr): Likewise.
13667 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
13668 * print-tree.c (print_node_brief, print_node): Likewise.
13669 * gimple.c (gimple_check_failed): Likewise.
13670 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
13671 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
13672 * config/mep/mep.c (mep_validate_vliw): Likewise.
13673 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
13674 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
13675
13676 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
13677
13678 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
13679 for AMD bdver3.
13680
13681 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
13682
13683 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
13684 (MULTILIB_MATCHES): Add multilib for -march=v8.
13685
13686 2013-10-15 Sriraman Tallam <tmsriram@google.com>
13687
13688 PR target/57756
13689 * optc-save-gen.awk: Add extra parameter to the save and restore
13690 target calls.
13691 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
13692 * tree.c (build_optimization_node): New parameter. Add extra parameter
13693 to call to cl_optimization_save.
13694 (build_target_option_node): New parameter. Add extra parameter
13695 to call to cl_target_option_save.
13696 * tree.h (build_optimization_node): New parameter.
13697 (build_target_option_node): New parameter.
13698 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
13699 build_optimization_node and build_target_option_node.
13700 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
13701 (handle_pragma_push_options): Ditto.
13702 * toplev.c (process_options): Ditto.
13703 * opts.c (init_options_struct): Check for opts_set non-null.
13704 * target.def (target_option.save): New parameter.
13705 (target_option.restore): New parameter.
13706 * tm.texi: Generate.
13707 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
13708 (ix86_pragma_target_parse): Ditto.
13709 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
13710 parameters.
13711 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
13712 to build_optimization_node and build_target_option_node.
13713 (rs6000_valid_attribute_p): Ditto.
13714 (rs6000_pragma_target_parse): Ditto.
13715 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
13716 data.
13717 * config/i386/i386.h:
13718 TARGET_64BIT_P: New Macro
13719 TARGET_MMX_P: New Macro.
13720 TARGET_3DNOW_P: New Macro.
13721 TARGET_3DNOW_A_P: New Macro.
13722 TARGET_SSE_P: New Macro.
13723 TARGET_SSE2_P: New Macro.
13724 TARGET_SSE3_P: New Macro.
13725 TARGET_SSSE3_P: New Macro.
13726 TARGET_SSE4_1_P: New Macro.
13727 TARGET_SSE4_2_P: New Macro.
13728 TARGET_AVX_P: New Macro.
13729 TARGET_AVX2_P: New Macro.
13730 TARGET_AVX512F_P: New Macro.
13731 TARGET_AVX512PF_P: New Macro.
13732 TARGET_AVX512ER_P: New Macro.
13733 TARGET_AVX512CD_P: New Macro.
13734 TARGET_FMA_P: New Macro.
13735 TARGET_SSE4A_P: New Macro.
13736 TARGET_FMA4_P: New Macro.
13737 TARGET_XOP_P: New Macro.
13738 TARGET_LWP_P: New Macro.
13739 TARGET_ABM_P: New Macro.
13740 TARGET_BMI_P: New Macro.
13741 TARGET_BMI2_P: New Macro.
13742 TARGET_LZCNT_P: New Macro.
13743 TARGET_TBM_P: New Macro.
13744 TARGET_POPCNT_P: New Macro.
13745 TARGET_SAHF_P: New Macro.
13746 TARGET_MOVBE_P: New Macro.
13747 TARGET_CRC32_P: New Macro.
13748 TARGET_AES_P: New Macro.
13749 TARGET_PCLMUL_P: New Macro.
13750 TARGET_CMPXCHG16B_P: New Macro.
13751 TARGET_FSGSBASE_P: New Macro.
13752 TARGET_RDRND_P: New Macro.
13753 TARGET_F16C_P: New Macro.
13754 TARGET_RTM_P: New Macro.
13755 TARGET_HLE_P: New Macro.
13756 TARGET_RDSEED_P: New Macro.
13757 TARGET_PRFCHW_P: New Macro.
13758 TARGET_ADX_P: New Macro.
13759 TARGET_FXSR_P: New Macro.
13760 TARGET_XSAVE_P: New Macro.
13761 TARGET_XSAVEOPT_P: New Macro.
13762 TARGET_LP64_P: New Macro.
13763 TARGET_X32_P: New Macro.
13764 TARGET_FPMATH_DEFAULT_P: New Macro.
13765 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
13766 * config/i386/i386.c (ix86_option_override_internal): New parameters.
13767 opts and opts_set.
13768 Change ix86_tune_string to access opts->x_ix86_tune_string.
13769 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
13770 Change ix86_arch_string to access opts->x_ix86_arch_string.
13771 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
13772 Change ix86_pmode to access opts->x_ix86_pmode.
13773 Change ix86_abi to access opts->x_ix86_abi.
13774 Change ix86_cmodel to access opts->x_ix86_cmodel.
13775 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
13776 Change ix86_isa_flags_explicit to access
13777 opts->x_ix86_isa_flags_explicit.
13778 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
13779 Change ix86_regparm to access opts->x_ix86_regparm.
13780 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
13781 Change ix86_preferred_stack_boundary_arg to access
13782 opts->x_ix86_preferred_stack_boundary_arg.
13783 Change ix86_force_align_arg_pointer to access
13784 opts->x_ix86_force_align_arg_pointer.
13785 Change ix86_incoming_stack_boundar_arg to access
13786 opts->x_ix86_incoming_stack_boundar_arg.
13787 Change ix86_fpmath to access opts->x_ix86_fpmath.
13788 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
13789 Change ix86_recip_name to access opts->x_ix86_recip_name.
13790 Change ix86_stack_protector_guard to access
13791 opts->x_ix86_stack_protector_guard.
13792 Change ix86_tune_memcpy_strategy to access
13793 opts->x_ix86_tune_memcpy_strategy.
13794 Change ix86_tune_memset_strategy to access
13795 opts->x_ix86_tune_memset_strategy.
13796 Change global_options to access opts.
13797 Change global_options_set to access opts_set.
13798 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
13799 Change TARGET_MMX to TARGET_MMX_P (opts->...).
13800 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
13801 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
13802 Change TARGET_SSE to TARGET_SSE_P (opts->...).
13803 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
13804 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
13805 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
13806 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
13807 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
13808 Change TARGET_AVX to TARGET_AVX_P (opts->...).
13809 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
13810 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
13811 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
13812 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
13813 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
13814 Change TARGET_FMA to TARGET_FMA_P (opts->...).
13815 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
13816 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
13817 Change TARGET_XOP to TARGET_XOP_P (opts->...).
13818 Change TARGET_LWP to TARGET_LWP_P (opts->...).
13819 Change TARGET_ABM to TARGET_ABM_P (opts->...).
13820 Change TARGET_BMI to TARGET_BMI_P (opts->...).
13821 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
13822 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
13823 Change TARGET_TBM to TARGET_TBM_P (opts->...).
13824 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
13825 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
13826 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
13827 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
13828 Change TARGET_AES to TARGET_AES_P (opts->...).
13829 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
13830 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
13831 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
13832 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
13833 Change TARGET_F16C to TARGET_F16C_P (opts->...).
13834 Change TARGET_RTM to TARGET_RTM_P (opts->...).
13835 Change TARGET_HLE to TARGET_HLE_P (opts->...).
13836 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
13837 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
13838 Change TARGET_ADX to TARGET_ADX_P (opts->...).
13839 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
13840 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
13841 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
13842 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
13843 Change TARGET_X32 to TARGET_X32_P (opts->...).
13844 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
13845 Change TARGET_FLOAT_RETURNS_IN_80387 to
13846 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
13847 (ix86_function_specific_save): New parameter. Use opts-> fields
13848 to replace global fields.
13849 (ix86_function_specific_restore): Ditto.
13850 (ix86_valid_target_attribute_inner_p): New parameters.
13851 Fix recursive call.
13852 Fix call to ix86_handle_option and set_option.
13853 (ix86_valid_target_attribute_tree): New parameters.
13854 Change global_options to access opts.
13855 Change global_options_set to access opts_set.
13856 Fix call to ix86_valid_target_attribute_inner_p.
13857 Change ix86_tune_string to access opts->x_ix86_tune_string.
13858 Change ix86_arch_string to access opts->x_ix86_arch_string.
13859 Change ix86_fpmath to access opts->x_ix86_fpmath
13860 Fix call to ix86_option_override_internal.
13861 Fix call to ix86_add_new_builtins.
13862 Fix calls to build_optimization_node and build_target_option_node.
13863 (ix86_valid_target_attribute_p): Remove access to global_options.
13864 Use new gcc_options structure func_options.
13865 Fix call to ix86_valid_target_attribute_tree.
13866 Fix call to build_optimization_node.
13867 (get_builtin_code_for_version): Fix call to
13868 ix86_valid_target_attribute_tree.
13869
13870 2013-10-15 David Malcolm <dmalcolm@redhat.com>
13871
13872 * Makefile.in (PICFLAG): New.
13873 (enable_host_shared): New.
13874 (INTERNAL_CFLAGS): Use PICFLAG.
13875 (LIBIBERTY): Use pic build of libiberty.a if configured with
13876 --enable-host-shared.
13877 * configure.ac: Add --enable-host-shared, setting up new
13878 PICFLAG variable.
13879 * configure: Regenerate.
13880 * doc/install.texi (--enable-shared): Add note contrasting it with ...
13881 (--enable-host-shared): New option.
13882
13883 2013-10-15 Richard Biener <rguenther@suse.de>
13884
13885 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
13886 for built-in functions.
13887
13888 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
13889
13890 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
13891 (optimize_range_tests_1): New function,
13892 extracted from optimize_range_tests.
13893 (optimize_range_tests_xor): Similarly.
13894 (optimize_range_tests_diff): New function.
13895 (optimize_range_tests): Use optimize_range_tests_1.
13896
13897 2013-10-15 Cong Hou <congh@google.com>
13898
13899 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
13900 requirement of the reduction pattern so that one operand of the
13901 reduction operation can come from outside of the loop.
13902
13903 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13904
13905 * config/arm/neon-schedgen.ml: Remove.
13906 * config/arm/cortex-a9-neon.md: Remove comment regarding
13907 neon-schedgen.ml.
13908
13909 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13910
13911 * config/arm/types: Remove old neon types.
13912
13913 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13914
13915 * config/arm/cortex-a7.md
13916 (cortex_a7_neon_type): New.
13917 (cortex_a7_neon_mul): Update for new types.
13918 (cortex_a7_neon_mla): Likewise.
13919 (cortex_a7_neon): Likewise.
13920
13921 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13922
13923 * config/arm/cortex-a15-neon.md
13924 (cortex_a15_neon_type): New,
13925
13926 (cortex_a15_neon_int_1): Remove.
13927 (cortex_a15_neon_int_2): Likewise.
13928 (cortex_a15_neon_int_3): Likewise.
13929 (cortex_a15_neon_int_4): Likewise.
13930 (cortex_a15_neon_int_5): Likewise.
13931 (cortex_a15_neon_vqneg_vqabs): Likewise.
13932 (cortex_a15_neon_vmov): Likewise.
13933 (cortex_a15_neon_vaba): Likewise.
13934 (cortex_a15_neon_vaba_qqq): Likewise.
13935 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13936 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13937 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
13938 Likewise.
13939 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13940 (cortex_a15_neon_mla_qqq_8_16): Likewise.
13941 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
13942 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13943 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13944 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
13945 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13946 (cortex_a15_neon_shift_1): Likewise.
13947 (cortex_a15_neon_shift_2): Likewise.
13948 (cortex_a15_neon_shift_3): Likewise.
13949 (cortex_a15_neon_vshl_ddd): Likewise.
13950 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13951 (cortex_a15_neon_vsra_vrsra): Likewise.
13952 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
13953 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
13954 (cortex_a15_neon_bp_3cycle): Likewise.
13955 (cortex_a15_neon_ldm_2): Likewise.
13956 (cortex_a15_neon_stm_2): Likewise.
13957 (cortex_a15_neon_mcr): Likewise.
13958 (cortex_a15_neon_mrc): Likewise.
13959 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
13960 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
13961 (cortex_a15_neon_fp_vmul_ddd): Likewise.
13962 (cortex_a15_neon_fp_vmul_qqd): Likewise.
13963 (cortex_a15_neon_fp_vmla_ddd): Likewise.
13964 (cortex_a15_neon_fp_vmla_qqq): Likewise.
13965 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
13966 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
13967 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
13968 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
13969 (cortex_a15_neon_bp_simple): Likewise.
13970 (cortex_a15_neon_bp_2cycle): Likewise.
13971 (cortex_a15_neon_bp_3cycle): Likewise.
13972 (cortex_a15_neon_vld1_1_2_regs): Likewise.
13973 (cortex_a15_neon_vld1_3_4_regs): Likewise.
13974 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
13975 (cortex_a15_neon_vld2_4_regs): Likewise.
13976 (cortex_a15_neon_vld3_vld4): Likewise.
13977 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
13978 (cortex_a15_neon_vst1_3_4_regs): Likewise.
13979 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
13980 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
13981 (cortex_a15_neon_vst3_vst4): Rename to...
13982 (cortex_a15_neon_vst4): This, update for new attributes.
13983 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
13984 (cortex_a15_neon_vld3_vld4_lane): Likewise.
13985 (cortex_a15_neon_vst1_vst2_lane): Likewise.
13986 (cortex_a15_neon_vst3_vst4_lane): Likewise.
13987 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
13988 (cortex_a15_neon_ldm_2): Likewise.
13989 (cortex_a15_neon_stm_2): Likewise.
13990 (cortex_a15_neon_mcr): Likewise.
13991 (cortex_a15_neon_mcr_2_mcrr): Likewise.
13992 (cortex_a15_neon_mrc): Likewise.
13993 (cortex_a15_neon_mrrc): Likewise.
13994
13995 (cortex_a15_neon_abd): New.
13996 (cortex_a15_neon_abd_q): Likewise.
13997 (cortex_a15_neon_aba): Likewise.
13998 (cortex_a15_neon_aba_q): Likewise.
13999 (cortex_a15_neon_acc): Likewise.
14000 (cortex_a15_neon_acc_q): Likewise.
14001 (cortex_a15_neon_arith_basic): Likewise.
14002 (cortex_a15_neon_arith_complex): Likewise.
14003 (cortex_a15_neon_multiply): Likewise.
14004 (cortex_a15_neon_multiply_q): Likewise.
14005 (cortex_a15_neon_mla): Likewise.
14006 (cortex_a15_neon_mla_q): Likewise.
14007 (cortex_a15_neon_sat_mla_long): Likewise.
14008 (cortex_a15_neon_shift_acc): Likewise.
14009 (cortex_a15_neon_shift_imm_basic): Likewise.
14010 (cortex_a15_neon_shift_imm_complex): Likewise.
14011 (cortex_a15_neon_shift_reg_basic): Likewise.
14012 (cortex_a15_neon_shift_reg_basic_q): Likewise.
14013 (cortex_a15_neon_shift_reg_complex): Likewise.
14014 (cortex_a15_neon_shift_reg_complex_q): Likewise.
14015 (cortex_a15_neon_fp_negabs): Likewise
14016 (cortex_a15_neon_fp_arith): Likewise
14017 (cortex_a15_neon_fp_arith_q): Likewise
14018 (cortex_a15_neon_fp_cvt_int): Likewise
14019 (cortex_a15_neon_fp_cvt_int_q): Likewise
14020 (cortex_a15_neon_fp_cvt_16): Likewise
14021 (cortex_a15_neon_fp_mul): Likewise
14022 (cortex_a15_neon_fp_mul_q): Likewise
14023 (cortex_a15_neon_fp_mla): Likewise
14024 (cortex_a15_neon_fp_mla_q): Likewise
14025 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
14026 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
14027 (cortex_a15_neon_bitops): Likewise.
14028 (cortex_a15_neon_bitops_q): Likewise.
14029 (cortex_a15_neon_from_gp): Likewise.
14030 (cortex_a15_neon_from_gp_q): Likewise.
14031 (cortex_a15_neon_tbl3_tbl4): Likewise.
14032 (cortex_a15_neon_zip_q): Likewise.
14033 (cortex_a15_neon_to_gp): Likewise.
14034 (cortex_a15_neon_load_a): Likewise.
14035 (cortex_a15_neon_load_b): Likewise.
14036 (cortex_a15_neon_load_c): Likewise.
14037 (cortex_a15_neon_load_d): Likewise.
14038 (cortex_a15_neon_load_e): Likewise.
14039 (cortex_a15_neon_load_f): Likewise.
14040 (cortex_a15_neon_store_a): Likewise.
14041 (cortex_a15_neon_store_b): Likewise.
14042 (cortex_a15_neon_store_c): Likewise.
14043 (cortex_a15_neon_store_d): Likewise.
14044 (cortex_a15_neon_store_e): Likewise.
14045 (cortex_a15_neon_store_f): Likewise.
14046 (cortex_a15_neon_store_g): Likewise.
14047 (cortex_a15_neon_store_h): Likewise.
14048 (cortex_a15_vfp_to_from_gp): Likewise.
14049
14050 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
14051
14052 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
14053
14054 (cortex_a9_neon_vshl_ddd): Remove.
14055 (cortex_a9_neon_vst3_vst4): Likewise.
14056 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
14057
14058 (cortex_a9_neon_bit_ops_q): New.
14059
14060 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
14061 (cortex_a9_neon_int_2): Likewise.
14062 (cortex_a9_neon_int_3): Likewise.
14063 (cortex_a9_neon_int_4): Likewise.
14064 (cortex_a9_neon_int_5): Likewise.
14065 (cortex_a9_neon_vqneg_vqabs): Likewise.
14066 (cortex_a9_neon_vmov): Likewise.
14067 (cortex_a9_neon_vaba): Likewise.
14068 (cortex_a9_neon_vaba_qqq): Likewise.
14069 (cortex_a9_neon_shift_1): Likewise.
14070 (cortex_a9_neon_shift_2): Likewise.
14071 (cortex_a9_neon_shift_3): Likewise.
14072 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
14073 (cortex_a9_neon_vsra_vrsra): Likewise.
14074 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14075 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
14076 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
14077 Likewise.
14078 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14079 (cortex_a9_neon_mla_qqq_8_16): Likewise.
14080 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
14081 Likewise.
14082 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
14083 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
14084 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
14085 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
14086 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
14087 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
14088 (cortex_a9_neon_fp_vsum): Likewise.
14089 (cortex_a9_neon_fp_vmul_ddd): Likewise.
14090 (cortex_a9_neon_fp_vmul_qqd): Likewise.
14091 (cortex_a9_neon_fp_vmla_ddd): Likewise.
14092 (cortex_a9_neon_fp_vmla_qqq): Likewise.
14093 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
14094 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
14095 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
14096 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
14097 (cortex_a9_neon_bp_simple): Likewise.
14098 (cortex_a9_neon_bp_2cycle): Likewise.
14099 (cortex_a9_neon_bp_3cycle): Likewise.
14100 (cortex_a9_neon_ldr): Likewise.
14101 (cortex_a9_neon_str): Likewise.
14102 (cortex_a9_neon_vld1_1_2_regs): Likewise.
14103 (cortex_a9_neon_vld1_3_4_regs): Likewise.
14104 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
14105 (cortex_a9_neon_vld2_4_regs): Likewise.
14106 (cortex_a9_neon_vld3_vld4): Likewise.
14107 (cortex_a9_neon_vld1_vld2_lane): Likewise.
14108 (cortex_a9_neon_vld3_vld4_lane): Likewise.
14109 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
14110 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
14111 (cortex_a9_neon_vst1_3_4_regs): Likewise.
14112 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
14113 (cortex_a9_neon_vst1_vst2_lane): Likewise.
14114 (cortex_a9_neon_vst3_vst4_lane): Likewise.
14115 (cortex_a9_neon_mcr): Likewise.
14116 (cortex_a9_neon_mcr_2_mcrr): Likewise.
14117 (cortex_a9_neon_mrc): Likewise.
14118 (cortex_a9_neon_mrrc): Likewise.
14119
14120 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
14121
14122 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
14123
14124 (cortex_a8_neon_vshl_ddd): Remove.
14125 (cortex_a8_neon_vst3_vst4): Likewise.
14126 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
14127
14128 (cortex_a8_neon_bit_ops_q): New.
14129
14130 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
14131 (cortex_a8_neon_int_2): Likewise..
14132 (cortex_a8_neon_int_3): Likewise.
14133 (cortex_a8_neon_int_5): Likewise.
14134 (cortex_a8_neon_vqneg_vqabs): Likewise.
14135 (cortex_a8_neon_int_4): Likewise.
14136 (cortex_a8_neon_vaba): Likewise.
14137 (cortex_a8_neon_vaba_qqq): Likewise.
14138 (cortex_a8_neon_shift_1): Likewise.
14139 (cortex_a8_neon_shift_2): Likewise.
14140 (cortex_a8_neon_shift_3): Likewise.
14141 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
14142 (cortex_a8_neon_vsra_vrsra): Likewise.
14143 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14144 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
14145 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
14146 Likewise.
14147 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14148 (cortex_a8_neon_mla_qqq_8_16): Likewise.
14149 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
14150 Likewise.
14151 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
14152 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
14153 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
14154 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
14155 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
14156 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
14157 (cortex_a8_neon_fp_vsum): Likewise.
14158 (cortex_a8_neon_fp_vmul_ddd): Likewise.
14159 (cortex_a8_neon_fp_vmul_qqd): Likewise.
14160 (cortex_a8_neon_fp_vmla_ddd): Likewise.
14161 (cortex_a8_neon_fp_vmla_qqq): Likewise.
14162 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
14163 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
14164 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
14165 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
14166 (cortex_a8_neon_bp_simple): Likewise.
14167 (cortex_a8_neon_bp_2cycle): Likewise.
14168 (cortex_a8_neon_bp_3cycle): Likewise.
14169 (cortex_a8_neon_ldr): Likewise.
14170 (cortex_a8_neon_str): Likewise.
14171 (cortex_a8_neon_vld1_1_2_regs): Likewise.
14172 (cortex_a8_neon_vld1_3_4_regs): Likewise.
14173 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
14174 (cortex_a8_neon_vld2_4_regs): Likewise.
14175 (cortex_a8_neon_vld3_vld4): Likewise.
14176 (cortex_a8_neon_vld1_vld2_lane): Likewise.
14177 (cortex_a8_neon_vld3_vld4_lane): Likewise.
14178 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
14179 (cortex_a8_neon_vst1_3_4_regs): Likewise.
14180 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
14181 (cortex_a8_neon_vst1_vst2_lane): Likewise.
14182 (cortex_a8_neon_vst3_vst4_lane): Likewise.
14183 (cortex_a8_neon_mcr): Likewise.
14184 (cortex_a8_neon_mcr_2_mcrr): Likewise.
14185 (cortex_a8_neon_mrc): Likewise.
14186 (cortex_a8_neon_mrrc): Likewise.
14187
14188 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
14189
14190 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
14191 (fp): New.
14192 * config/aarch64/aarch64-simd.md (neon_type): Remove.
14193 (aarch64_simd_dup<mode>): Add "type" attribute.
14194 (aarch64_dup_lane<mode>): Likewise.
14195 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
14196 (*aarch64_simd_mov<mode>): Likewise.
14197 (aarch64_simd_mov_from_<mode>low): Likewise.
14198 (aarch64_simd_mov_from_<mode>high): Likewise.
14199 (orn<mode>3): Likewise.
14200 (bic<mode>3): Likewise.
14201 (add<mode>3): Likewise.
14202 (sub<mode>3): Likewise.
14203 (mul<mode>3): Likewise.
14204 (*aarch64_mul3_elt<mode>): Likewise.
14205 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
14206 (*aarch64_mul3_elt_to_128df): Likewise.
14207 (*aarch64_mul3_elt_to_64v2df): Likewise.
14208 (neg<mode>2): Likewise.
14209 (abs<mode>2): Likewise.
14210 (abd<mode>_3): Likewise.
14211 (aba<mode>_3): Likewise.
14212 (fabd<mode>_3): Likewise.
14213 (*fabd_scalar<mode>3): Likewise.
14214 (and<mode>3): Likewise.
14215 (ior<mode>3): Likewise.
14216 (xor<mode>3): Likewise.
14217 (one_cmpl<mode>2): Likewise.
14218 (aarch64_simd_vec_set<mode>): Likewise.
14219 (aarch64_simd_lshr<mode>): Likewise.
14220 (aarch64_simd_ashr<mode>): Likewise.
14221 (aarch64_simd_imm_shl<mode>): Likewise.
14222 (aarch64_simd_reg_sshl<mode): Likewise.
14223 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
14224 (aarch64_simd_reg_shl<mode>_signed): Likewise.
14225 (aarch64_simd_vec_setv2di): Likewise.
14226 (aarch64_simd_vec_set<mode>): Likewise.
14227 (aarch64_mla<mode>): Likewise.
14228 (*aarch64_mla_elt<mode>): Likewise.
14229 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
14230 (aarch64_mls<mode>): Likewise.
14231 (*aarch64_mls_elt<mode>): Likewise.
14232 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
14233 (<su><maxmin><mode>3): Likewise.
14234 (move_lo_quad_<mode>): Likewise.
14235 (aarch64_simd_move_hi_quad_<mode>): Likewise.
14236 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
14237 (vec_pack_trunc_<mode>): Likewise.
14238 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
14239 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
14240 (*aarch64_<su>mlal_lo<mode>): Likewise.
14241 (*aarch64_<su>mlal_hi<mode>): Likewise.
14242 (*aarch64_<su>mlsl_lo<mode>): Likewise.
14243 (*aarch64_<su>mlsl_hi<mode>): Likewise.
14244 (*aarch64_<su>mlal<mode>): Likewise.
14245 (*aarch64_<su>mlsl<mode>): Likewise.
14246 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
14247 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
14248 (add<mode>3): Likewise.
14249 (sub<mode>3): Likewise.
14250 (mul<mode>3): Likewise.
14251 (div<mode>3): Likewise.
14252 (neg<mode>2): Likewise.
14253 (abs<mode>2): Likewise.
14254 (fma<mode>4): Likewise.
14255 (*aarch64_fma4_elt<mode>): Likewise.
14256 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
14257 (*aarch64_fma4_elt_to_128df): Likewise.
14258 (*aarch64_fma4_elt_to_64v2df): Likewise.
14259 (fnma<mode>4): Likewise.
14260 (*aarch64_fnma4_elt<mode>): Likewise.
14261 (*aarch64_fnma4_elt_<vswap_width_name><mode>
14262 (*aarch64_fnma4_elt_to_128df): Likewise.
14263 (*aarch64_fnma4_elt_to_64v2df): Likewise.
14264 (<frint_pattern><mode>2): Likewise.
14265 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
14266 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
14267 (vec_unpacks_lo_v4sf): Likewise.
14268 (aarch64_float_extend_lo_v2df): Likewise.
14269 (vec_unpacks_hi_v4sf): Likewise.
14270 (aarch64_float_truncate_lo_v2sf): Likewise.
14271 (aarch64_float_truncate_hi_v4sf): Likewise.
14272 (aarch64_vmls<mode>): Likewise.
14273 (<su><maxmin><mode>3): Likewise.
14274 (<maxmin_uns><mode>3): Likewise.
14275 (reduc_<sur>plus_<mode>): Likewise.
14276 (reduc_<sur>plus_v2di): Likewise.
14277 (reduc_<sur>plus_v2si): Likewise.
14278 (reduc_<sur>plus_<mode>): Likewise.
14279 (aarch64_addpv4sf): Likewise.
14280 (clz<mode>2): Likewise.
14281 (reduc_<maxmin_uns>_<mode>): Likewise.
14282 (reduc_<maxmin_uns>_v2di): Likewise.
14283 (reduc_<maxmin_uns>_v2si): Likewise.
14284 (reduc_<maxmin_uns>_<mode>): Likewise.
14285 (reduc_<maxmin_uns>_v4sf): Likewise.
14286 (aarch64_simd_bsl<mode>_internal): Likewise.
14287 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
14288 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
14289 (aarch64_get_lane<mode>): Likewise.
14290 (*aarch64_combinez<mode>): Likewise.
14291 (aarch64_combine<mode>): Likewise.
14292 (aarch64_simd_combine<mode>): Likewise.
14293 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
14294 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
14295 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
14296 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
14297 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
14298 (aarch64_<sur>h<addsub><mode>): Likewise.
14299 (aarch64_<sur><addsub>hn<mode>): Likewise.
14300 (aarch64_<sur><addsub>hn2<mode>): Likewise.
14301 (aarch64_pmul<mode>): Likewise.
14302 (aarch64_<su_optab><optab><mode>): Likewise.
14303 (aarch64_<sur>qadd<mode>): Likewise.
14304 (aarch64_sqmovun<mode>): Likewise.
14305 (aarch64_<sur>qmovn<mode>): Likewise.
14306 (aarch64_s<optab><mode>): Likewise.
14307 (aarch64_sq<r>dmulh<mode>): Likewise.
14308 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
14309 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
14310 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
14311 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
14312 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
14313 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
14314 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
14315 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
14316 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
14317 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
14318 (aarch64_sqdmull<mode>): Likewise.
14319 (aarch64_sqdmull_lane<mode>_internal): Likewise.
14320 (aarch64_sqdmull_n<mode>): Likewise.
14321 (aarch64_sqdmull2<mode>_internal): Likewise.
14322 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
14323 (aarch64_sqdmull2_n<mode>_internal): Likewise.
14324 (aarch64_<sur>shl<mode>): Likewise.
14325 (aarch64_<sur>q<r>shl<mode>
14326 (aarch64_<sur>shll_n<mode>): Likewise.
14327 (aarch64_<sur>shll2_n<mode>): Likewise.
14328 (aarch64_<sur>shr_n<mode>): Likewise.
14329 (aarch64_<sur>sra_n<mode>): Likewise.
14330 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
14331 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
14332 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
14333 (aarch64_cm<optab><mode>): Likewise.
14334 (aarch64_cm<optab>di): Likewise.
14335 (aarch64_cm<optab><mode>): Likewise.
14336 (aarch64_cm<optab>di): Likewise.
14337 (aarch64_cmtst<mode>): Likewise.
14338 (aarch64_cmtstdi): Likewise.
14339 (aarch64_cm<optab><mode>): Likewise.
14340 (*aarch64_fac<optab><mode>): Likewise.
14341 (aarch64_addp<mode>): Likewise.
14342 (aarch64_addpdi): Likewise.
14343 (sqrt<mode>2): Likewise.
14344 (vec_load_lanesoi<mode>): Likewise.
14345 (vec_store_lanesoi<mode>): Likewise.
14346 (vec_load_lanesci<mode>): Likewise.
14347 (vec_store_lanesci<mode>): Likewise.
14348 (vec_load_lanesxi<mode>): Likewise.
14349 (vec_store_lanesxi<mode>): Likewise.
14350 (*aarch64_mov<mode>): Likewise.
14351 (aarch64_ld2<mode>_dreg): Likewise.
14352 (aarch64_ld2<mode>_dreg): Likewise.
14353 (aarch64_ld3<mode>_dreg): Likewise.
14354 (aarch64_ld3<mode>_dreg): Likewise.
14355 (aarch64_ld4<mode>_dreg): Likewise.
14356 (aarch64_ld4<mode>_dreg): Likewise.
14357 (aarch64_tbl1<mode>): Likewise.
14358 (aarch64_tbl2v16qi): Likewise.
14359 (aarch64_combinev16qi): Likewise.
14360 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
14361 (aarch64_st2<mode>_dreg): Likewise.
14362 (aarch64_st2<mode>_dreg): Likewise.
14363 (aarch64_st3<mode>_dreg): Likewise.
14364 (aarch64_st3<mode>_dreg): Likewise.
14365 (aarch64_st4<mode>_dreg): Likewise.
14366 (aarch64_st4<mode>_dreg): Likewise.
14367 (*aarch64_simd_ld1r<mode>): Likewise.
14368 (aarch64_frecpe<mode>): Likewise.
14369 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
14370 (aarch64_frecps<mode>): Likewise.
14371
14372 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
14373
14374 * config/arm/iterators.md (V_elem_ch): New.
14375 (q): Likewise.
14376 (VQH_type): Likewise.
14377 * config/arm/arm.md (is_neon_type): New.
14378 (conds): Use is_neon_type.
14379 (anddi3_insn): Update type attribute.
14380 (xordi3_insn): Likewise.
14381 (one_cmpldi2): Likewise.
14382 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
14383 * config/arm/neon.md (neon_mov): Update type attribute.
14384 (*movmisalign<mode>_neon_store): Likewise.
14385 (*movmisalign<mode>_neon_load): Likewise.
14386 (vec_set<mode>_internal): Likewise.
14387 (vec_set<mode>_internal): Likewise.
14388 (vec_setv2di_internal): Likewise.
14389 (vec_extract<mode>): Likewise.
14390 (vec_extract<mode>): Likewise.
14391 (vec_extractv2di): Likewise.
14392 (*add<mode>3_neon): Likewise.
14393 (adddi3_neon): Likewise.
14394 (*sub<mode>3_neon): Likewise.
14395 (subdi3_neon): Likewise.
14396 (fma<VCVTF:mode>4): Likewise.
14397 (fma<VCVTF:mode>4_intrinsic): Likewise.
14398 (*fmsub<VCVTF:mode>4): Likewise.
14399 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
14400 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
14401 (ior<mode>3): Likewise.
14402 (and<mode>3): Likewise.
14403 (orn<mode>3_neon): Likewise.
14404 (orndi3_neon): Likewise.
14405 (bic<mode>3_neon): Likewise.
14406 (bicdi3_neon): Likewise.
14407 (xor<mode>3): Likewise.
14408 (one_cmpl<mode>2): Likewise.
14409 (abs<mode>2): Likewise.
14410 (neg<mode>2): Likewise.
14411 (negdi2_neon): Likewise.
14412 (*umin<mode>3_neon): Likewise.
14413 (*umax<mode>3_neon): Likewise.
14414 (*smin<mode>3_neon): Likewise.
14415 (*smax<mode>3_neon): Likewise.
14416 (vashl<mode>3): Likewise.
14417 (vashr<mode>3_imm): Likewise.
14418 (vlshr<mode>3_imm): Likewise.
14419 (ashl<mode>3_signed): Likewise.
14420 (ashl<mode>3_unsigned): Likewise.
14421 (neon_load_count): Likewise.
14422 (ashldi3_neon_noclobber): Likewise.
14423 (ashldi3_neon): Likewise.
14424 (signed_shift_di3_neon): Likewise.
14425 (unsigned_shift_di3_neon): Likewise.
14426 (ashrdi3_neon_imm_noclobber): Likewise.
14427 (lshrdi3_neon_imm_noclobber): Likewise.
14428 (<shift>di3_neon): Likewise.
14429 (widen_ssum<mode>3): Likewise.
14430 (widen_usum<mode>3): Likewise.
14431 (quad_halves_<code>v4si): Likewise.
14432 (quad_halves_<code>v4sf): Likewise.
14433 (quad_halves_<code>v8hi): Likewise.
14434 (quad_halves_<code>v16qi): Likewise.
14435 (reduc_splus_v2di): Likewise.
14436 (neon_vpadd_internal<mode>): Likewise.
14437 (neon_vpsmin<mode>): Likewise.
14438 (neon_vpsmax<mode>): Likewise.
14439 (neon_vpumin<mode>): Likewise.
14440 (neon_vpumax<mode>): Likewise.
14441 (*ss_add<mode>_neon): Likewise.
14442 (*us_add<mode>_neon): Likewise.
14443 (*ss_sub<mode>_neon): Likewise.
14444 (*us_sub<mode>_neon): Likewise.
14445 (neon_vadd<mode>_unspec): Likewise.
14446 (neon_vaddl<mode>): Likewise.
14447 (neon_vaddw<mode>): Likewise.
14448 (neon_vhadd<mode>): Likewise.
14449 (neon_vqadd<mode>): Likewise.
14450 (neon_vaddhn<mode>): Likewise.
14451 (neon_vmul<mode>): Likewise.
14452 (neon_vfms<VCVTF:mode>): Likewise.
14453 (neon_vmlal<mode>): Likewise.
14454 (neon_vmls<mode>): Likewise.
14455 (neon_vmlsl<mode>): Likewise.
14456 (neon_vqdmulh<mode>): Likewise.
14457 (neon_vqdmlal<mode>): Likewise.
14458 (neon_vqdmlsl<mode>): Likewise.
14459 (neon_vmull<mode>): Likewise.
14460 (neon_vqdmull<mode>): Likewise.
14461 (neon_vsub<mode>_unspec): Likewise.
14462 (neon_vsubl<mode>): Likewise.
14463 (neon_vsubw<mode>): Likewise.
14464 (neon_vqsub<mode>): Likewise.
14465 (neon_vhsub<mode>): Likewise.
14466 (neon_vsubhn<mode>): Likewise.
14467 (neon_vceq<mode>): Likewise.
14468 (neon_vcge<mode>): Likewise.
14469 (neon_vcgeu<mode>): Likewise.
14470 (neon_vcgt<mode>): Likewise.
14471 (neon_vcgtu<mode>): Likewise.
14472 (neon_vcle<mode>): Likewise.
14473 (neon_vclt<mode>): Likewise.
14474 (neon_vcage<mode>): Likewise.
14475 (neon_vcagt<mode>): Likewise.
14476 (neon_vtst<mode>): Likewise.
14477 (neon_vabd<mode>): Likewise.
14478 (neon_vabdl<mode>): Likewise.
14479 (neon_vaba<mode>): Likewise.
14480 (neon_vabal<mode>): Likewise.
14481 (neon_vmax<mode>): Likewise.
14482 (neon_vmin<mode>): Likewise.
14483 (neon_vpaddl<mode>): Likewise.
14484 (neon_vpadal<mode>): Likewise.
14485 (neon_vpmax<mode>): Likewise.
14486 (neon_vpmin<mode>): Likewise.
14487 (neon_vrecps<mode>): Likewise.
14488 (neon_vrsqrts<mode>): Likewise.
14489 (neon_vqabs<mode>): Likewise.
14490 (neon_vqneg<mode>): Likewise.
14491 (neon_vcls<mode>): Likewise.
14492 (clz<mode>2): Likewise.
14493 (popcount<mode>2): Likewise.
14494 (neon_vrecpe<mode>): Likewise.
14495 (neon_vrsqrte<mode>): Likewise.
14496 (neon_vget_lane<mode>_sext_internal): Likewise.
14497 (neon_vget_lane<mode>_zext_internal): Likewise.
14498 (neon_vdup_n<mode>): Likewise.
14499 (neon_vdup_n<mode>): Likewise.
14500 (neon_vdup_nv2di): Likewise.
14501 (neon_vdup_lane<mode>_interal): Likewise.
14502 (*neon_vswp<mode>): Likewise.
14503 (neon_vcombine<mode>): Likewise.
14504 (float<mode><V_cvtto>2): Likewise.
14505 (floatuns<mode><V_cvtto>2): Likewise.
14506 (fix_trunc<mode><V_cvtto>2): Likewise.
14507 (fixuns_trunc<mode><V_cvtto>2
14508 (neon_vcvt<mode>): Likewise.
14509 (neon_vcvt<mode>): Likewise.
14510 (neon_vcvtv4sfv4hf): Likewise.
14511 (neon_vcvtv4hfv4sf): Likewise.
14512 (neon_vcvt_n<mode>): Likewise.
14513 (neon_vcvt_n<mode>): Likewise.
14514 (neon_vmovn<mode>): Likewise.
14515 (neon_vqmovn<mode>): Likewise.
14516 (neon_vqmovun<mode>): Likewise.
14517 (neon_vmovl<mode>): Likewise.
14518 (neon_vmul_lane<mode>): Likewise.
14519 (neon_vmul_lane<mode>): Likewise.
14520 (neon_vmull_lane<mode>): Likewise.
14521 (neon_vqdmull_lane<mode>): Likewise.
14522 (neon_vqdmulh_lane<mode>): Likewise.
14523 (neon_vqdmulh_lane<mode>): Likewise.
14524 (neon_vmla_lane<mode>): Likewise.
14525 (neon_vmla_lane<mode>): Likewise.
14526 (neon_vmlal_lane<mode>): Likewise.
14527 (neon_vqdmlal_lane<mode>): Likewise.
14528 (neon_vmls_lane<mode>): Likewise.
14529 (neon_vmls_lane<mode>): Likewise.
14530 (neon_vmlsl_lane<mode>): Likewise.
14531 (neon_vqdmlsl_lane<mode>): Likewise.
14532 (neon_vext<mode>): Likewise.
14533 (neon_vrev64<mode>): Likewise.
14534 (neon_vrev32<mode>): Likewise.
14535 (neon_vrev16<mode>): Likewise.
14536 (neon_vbsl<mode>_internal): Likewise.
14537 (neon_vshl<mode>): Likewise.
14538 (neon_vqshl<mode>): Likewise.
14539 (neon_vshr_n<mode>): Likewise.
14540 (neon_vshrn_n<mode>): Likewise.
14541 (neon_vqshrn_n<mode>): Likewise.
14542 (neon_vqshrun_n<mode>): Likewise.
14543 (neon_vshl_n<mode>): Likewise.
14544 (neon_vqshl_n<mode>): Likewise.
14545 (neon_vqshlu_n<mode>): Likewise.
14546 (neon_vshll_n<mode>): Likewise.
14547 (neon_vsra_n<mode>): Likewise.
14548 (neon_vsri_n<mode>): Likewise.
14549 (neon_vsli_n<mode>): Likewise.
14550 (neon_vtbl1v8qi): Likewise.
14551 (neon_vtbl2v8qi): Likewise.
14552 (neon_vtbl3v8qi): Likewise.
14553 (neon_vtbl4v8qi): Likewise.
14554 (neon_vtbl1v16qi): Likewise.
14555 (neon_vtbl2v16qi): Likewise.
14556 (neon_vcombinev16qi): Likewise.
14557 (neon_vtbx1v8qi): Likewise.
14558 (neon_vtbx2v8qi): Likewise.
14559 (neon_vtbx3v8qi): Likewise.
14560 (neon_vtbx4v8qi): Likewise.
14561 (*neon_vtrn<mode>_insn): Likewise.
14562 (*neon_vzip<mode>_insn): Likewise.
14563 (*neon_vuzp<mode>_insn): Likewise.
14564 (neon_vld1<mode>): Likewise.
14565 (neon_vld1_lane<mode>): Likewise.
14566 (neon_vld1_lane<mode>): Likewise.
14567 (neon_vld1_dup<mode>): Likewise.
14568 (neon_vld1_dup<mode>): Likewise.
14569 (neon_vld1_dupv2di): Likewise.
14570 (neon_vst1<mode>): Likewise.
14571 (neon_vst1_lane<mode>): Likewise.
14572 (neon_vst1_lane<mode>): Likewise.
14573 (neon_vld2<mode>): Likewise.
14574 (neon_vld2<mode>): Likewise.
14575 (neon_vld2_lane<mode>): Likewise.
14576 (neon_vld2_lane<mode>): Likewise.
14577 (neon_vld2_dup<mode>): Likewise.
14578 (neon_vst2<mode>): Likewise.
14579 (neon_vst2<mode>): Likewise.
14580 (neon_vst2_lane<mode>): Likewise.
14581 (neon_vst2_lane<mode>): Likewise.
14582 (neon_vld3<mode>): Likewise.
14583 (neon_vld3qa<mode>): Likewise.
14584 (neon_vld3qb<mode>): Likewise.
14585 (neon_vld3_lane<mode>): Likewise.
14586 (neon_vld3_lane<mode>): Likewise.
14587 (neon_vld3_dup<mode>): Likewise.
14588 (neon_vst3<mode>): Likewise.
14589 (neon_vst3qa<mode>): Likewise.
14590 (neon_vst3qb<mode>): Likewise.
14591 (neon_vst3_lane<mode>): Likewise.
14592 (neon_vst3_lane<mode>): Likewise.
14593 (neon_vld4<mode>): Likewise.
14594 (neon_vld4qa<mode>): Likewise.
14595 (neon_vld4qb<mode>): Likewise.
14596 (neon_vld4_lane<mode>): Likewise.
14597 (neon_vld4_lane<mode>): Likewise.
14598 (neon_vld4_dup<mode>): Likewise.
14599 (neon_vst4<mode>): Likewise.
14600 (neon_vst4qa<mode>): Likewise.
14601 (neon_vst4qb<mode>): Likewise.
14602 (neon_vst4_lane<mode>): Likewise.
14603 (neon_vst4_lane<mode>): Likewise.
14604 (neon_vec_unpack<US>_lo_<mode>): Likewise.
14605 (neon_vec_unpack<US>_hi_<mode>): Likewise.
14606 (neon_vec_<US>mult_lo_<mode>): Likewise.
14607 (neon_vec_<US>mult_hi_<mode>): Likewise.
14608 (neon_vec_<US>shiftl_<mode>): Likewise.
14609 (neon_unpack<US>_<mode>): Likewise.
14610 (neon_vec_<US>mult_<mode>): Likewise.
14611 (vec_pack_trunc_<mode>): Likewise.
14612 (neon_vec_pack_trunc_<mode>): Likewise.
14613 (neon_vabd<mode>_2): Likewise.
14614 (neon_vabd<mode>_3): Likewise.
14615
14616 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
14617
14618 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
14619 (load_pair): Update type attribute.
14620 (store_pair): Update type attribute.
14621 * config/aarch64/iterators.md (q): New.
14622
14623 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
14624
14625 * config/arm/types.md: Add new types for Neon insns.
14626
14627 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
14628 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14629 Sergey Lega <sergey.s.lega@intel.com>
14630 Anna Tikhonova <anna.tikhonova@intel.com>
14631 Ilya Tocar <ilya.tocar@intel.com>
14632 Andrey Turetskiy <andrey.turetskiy@intel.com>
14633 Ilya Verbin <ilya.verbin@intel.com>
14634 Kirill Yukhin <kirill.yukhin@intel.com>
14635 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14636
14637 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
14638 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
14639 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
14640 (rcp14<mode>): New.
14641 (srcp14<mode>): Ditto.
14642 (rsqrt14<mode>): Ditto.
14643 (rsqrt14<mode>): Ditto.
14644 (avx512f_vmscalef<mode>): Ditto.
14645 (avx512f_scalef<mode>): Ditto.
14646 (avx512f_getexp<mode>): Ditto.
14647 (avx512f_sgetexp<mode>): Ditto.
14648 (avx512f_fixupimm<mode>): Ditto.
14649 (avx512f_sfixupimm<mode>): Ditto.
14650 (avx512f_rndscale<mode>): Ditto.
14651 (*avx512er_exp2<mode>): Ditto.
14652 (*avx512er_rcp28<mode>): Ditto.
14653 (avx512er_rsqrt28<mode>): Ditto.
14654 (avx512f_getmant<mode>): Ditto.
14655 (avx512f_getmant<mode>): Ditto.
14656 (avx512f_rndscale<mode>): Fix formatting.
14657
14658 2013-10-15 Martin Jambor <mjambor@suse.cz>
14659
14660 * ipa-utils.h (ipa_edge_within_scc): Declare.
14661 * ipa-cp.c (edge_within_scc): Moved...
14662 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
14663
14664 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
14665 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14666 Sergey Lega <sergey.s.lega@intel.com>
14667 Anna Tikhonova <anna.tikhonova@intel.com>
14668 Ilya Tocar <ilya.tocar@intel.com>
14669 Andrey Turetskiy <andrey.turetskiy@intel.com>
14670 Ilya Verbin <ilya.verbin@intel.com>
14671 Kirill Yukhin <kirill.yukhin@intel.com>
14672 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14673
14674 * config/i386/predicates.md (const_8_to_15_operand): New.
14675 (const_16_to_31_operand): Ditto.
14676 * config/i386/sse.md (V8FI): New.
14677 (V16FI): Ditto.
14678 (reduc_splus_v8df): Ditto.
14679 (reduc_splus_v16sf): Ditto.
14680 (avx512f_vextract<shuffletype>32x4_1): Ditto.
14681 (vec_extract_hi_<mode>): Ditto.
14682 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
14683 (vec_set_lo_<mode>): Ditto.
14684 (vec_set_hi_<mode>): Ditto.
14685 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
14686 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
14687 (avx512f_pshufd_1): Ditto.
14688 (avx512f_broadcast<mode>): Ditto.
14689 (avx512f_broadcast<mode>): Ditto.
14690 (define_split): Split vec_extract_lo into move.
14691 (ssequartermode): Ditto.
14692 (ssedoublemode): Extened with wider modes.
14693 (vec_extract_lo_<mode>): Ditto.
14694
14695 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
14696 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14697 Sergey Lega <sergey.s.lega@intel.com>
14698 Anna Tikhonova <anna.tikhonova@intel.com>
14699 Ilya Tocar <ilya.tocar@intel.com>
14700 Andrey Turetskiy <andrey.turetskiy@intel.com>
14701 Ilya Verbin <ilya.verbin@intel.com>
14702 Kirill Yukhin <kirill.yukhin@intel.com>
14703 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14704
14705 * config/i386/predicates.md (register_or_constm1_operand): New.
14706 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
14707 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
14708 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
14709 UNSPEC_SCATTER_PREFETCH
14710 (VI48_512): New.
14711 (avx512f_ucmp<mode>3): Ditto.
14712 (avx512f_vternlog<mode>): Ditto.
14713 (avx512f_align<mode>): Ditto.
14714 (<shift_insn><mode>3): Ditto.
14715 (avx512f_<rotate>v<mode>): Ditto.
14716 (avx512f_<rotate><mode>): Ditto.
14717 (avx512f_eq<mode>3): Ditto.
14718 (avx512f_eq<mode>3_1): Ditto.
14719 (avx512f_gt<mode>3): Ditto.
14720 (avx512f_testm<mode>3): Ditto.
14721 (avx512f_testnm<mode>3): Ditto.
14722 (avx512pf_gatherpf<mode>): Ditto.
14723 (*avx512pf_gatherpf<mode>_mask): Ditto.
14724 (*avx512pf_gatherpf<mode>): Ditto.
14725 (avx512pf_scatterpf<mode>): Ditto.
14726 (*avx512pf_scatterpf<mode>_mask): Ditto.
14727 (*avx512pf_scatterpf<mode>): Ditto.
14728 (avx512f_vec_dup_gpr<mode>): Ditto.
14729 (clz<mode>2): Ditto.
14730 (conflict<mode>): Ditto.
14731 (REDUC_SMINMAX_MODE): Extened with wider modes.
14732 (reduc_<code>_<mode>): Ditto.
14733 (vlshr<mode>3): Ditto.
14734 (vashl<mode>3): Ditto.
14735
14736 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
14737 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14738 Sergey Lega <sergey.s.lega@intel.com>
14739 Anna Tikhonova <anna.tikhonova@intel.com>
14740 Ilya Tocar <ilya.tocar@intel.com>
14741 Andrey Turetskiy <andrey.turetskiy@intel.com>
14742 Ilya Verbin <ilya.verbin@intel.com>
14743 Kirill Yukhin <kirill.yukhin@intel.com>
14744 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14745
14746 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
14747 UNSPEC_SCATTER.
14748 (VI48F_512): New.
14749 (avx512fmaskmode): Ditto.
14750 (bcstscalarsuff): Ditto.
14751 (avx512f_blendm<mode>): Ditto.
14752 (cmp_imm_predicate): Ditto.
14753 (avx512f_cmp<mode>3): Ditto.
14754 (avx512f_vec_dup<mode>): Ditto.
14755 (avx512f_vec_dup_mem<mode>): Ditto.
14756 (avx512f_vpermi2var<mode>3): Ditto.
14757 (avx512f_vpermt2var<mode>3): Ditto.
14758 (vec_init<mode>): Ditto.
14759 (avx512f_gathersi<mode>): Ditto.
14760 (*avx512f_gathersi<mode>): Ditto.
14761 (*avx512f_gathersi<mode>_2): Ditto.
14762 (avx512f_gatherdi<mode>): Ditto.
14763 (*avx512f_gatherdi<mode>): Ditto.
14764 (*avx512f_gatherdi<mode>_2): Ditto.
14765 (avx512f_scattersi<mode>): Ditto.
14766 (*avx512f_scattersi<mode>): Ditto.
14767 (avx512f_scatterdi<mode>): Ditto.
14768 (*avx512f_scatterdi<mode>): Ditto.
14769 (sseintprefix): Extened with wider modes.
14770 (VEC_GATHER_IDXSI): Ditto.
14771 (VEC_GATHER_IDXDI): Ditto.
14772 (VEC_GATHER_SRCDI): Ditto.
14773
14774 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
14775 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14776
14777 * config/arm/t-aprofile: New file.
14778 * config.gcc: Handle --with-multilib-list option.
14779
14780 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
14781
14782 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
14783 the input for r2.
14784
14785 2013-10-15 Richard Biener <rguenther@suse.de>
14786
14787 * tree-loop-distribution.c (build_empty_rdg): Inline into
14788 single user.
14789 (rdg_flag_vertex): Inline into single user.
14790 (rdg_flag_vertex_and_dependent): Likewise.
14791 (build_rdg_partition_for_vertex): Remove processed bitmap.
14792 (rdg_build_partitions): Simplify.
14793
14794 2013-10-15 Richard Biener <rguenther@suse.de>
14795
14796 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
14797 Restructure forwarding through conversions and copies to
14798 avoid performing copy-propagation the wrong way. Adjust
14799 recursion invocations.
14800 (forward_propagate_addr_expr): Add argument stating if we
14801 are recursing from a single-use.
14802 (ssa_forward_propagate_and_combine): Adjust.
14803
14804 2013-10-14 David Malcolm <dmalcolm@redhat.com>
14805
14806 * dumpfile.h (gcc::dump_manager): New class, to hold state
14807 relating to dumpfile management.
14808 (get_dump_file_name): Remove in favor of method of dump_manager.
14809 (dump_initialized_p): Likewise.
14810 (dump_start): Likewise.
14811 (dump_finish): Likewise.
14812 (dump_switch_p): Likewise.
14813 (dump_register): Likewise.
14814 (get_dump_file_info): Likewise.
14815 * context.c (gcc::context::context): Construct the dump_manager
14816 instance.
14817 * context.h (gcc::context::get_dumps): New.
14818 (gcc::context::m_dumps): New.
14819 * coverage.c (coverage_init): Port to dump_manager API.
14820 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
14821 (extra_dump_files_in_use): Likewise.
14822 (extra_dump_files_alloced): Likewise.
14823 (gcc::dump_manager::dump_manager): New.
14824 (dump_register): Convert to...
14825 (gcc::dump_manager::dump_register): ...method, replacing
14826 function-static next_dump with m_next_dump field.
14827 (get_dump_file_info): Convert to...
14828 (gcc::dump_manager::get_dump_file_info): ...method.
14829 (get_dump_file_name): Convert to...
14830 (gcc::dump_manager::get_dump_file_name): ...method.
14831 (dump_start): Convert to...
14832 (gcc::dump_manager::dump_start): ...method.
14833 (dump_finish): Convert to...
14834 (gcc::dump_manager::dump_finish): ...method.
14835 (dump_begin): Replace body with...
14836 (gcc::dump_manager::dump_begin): ...new method.
14837 (dump_phase_enabled_p): Convert to...
14838 (gcc::dump_manager::dump_phase_enabled_p): ...method.
14839 (dump_phase_enabled_p): Convert to...
14840 (gcc::dump_manager::dump_phase_enabled_p): ...method.
14841 (dump_initialized_p): Convert to...
14842 (gcc::dump_manager::dump_initialized_p): ...method.
14843 (dump_flag_name): Replace body with...
14844 (gcc::dump_manager::dump_flag_name): ...new method.
14845 (dump_enable_all): Convert to...
14846 (gcc::dump_manager::dump_enable_all): ...new method.
14847 (opt_info_enable_passes): Convert to...
14848 (gcc::dump_manager::opt_info_enable_passes): ...new method.
14849 (dump_switch_p_1): Convert to...
14850 (gcc::dump_manager::dump_switch_p_1): ...new method.
14851 (dump_switch_p): Convert to...
14852 (gcc::dump_manager::dump_switch_p): ...new method.
14853 (opt_info_switch_p): Port to dump_manager API.
14854 (enable_rtl_dump_file): Likewise.
14855 * opts-global.c (handle_common_deferred_options): Port to new
14856 dump_manager API.
14857 * passes.c (pass_manager::finish_optimization_passes): Likewise.
14858 (pass_manager::register_one_dump_file): Likewise.
14859 (pass_manager::register_pass): Likewise.
14860 (pass_init_dump_file): Likewise.
14861 (pass_fini_dump_file): Likewise.
14862 * statistics.c (statistics_early_init): Likewise.
14863
14864 2013-10-14 Richard Biener <rguenther@suse.de>
14865
14866 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
14867 iterative_hash_canonical_type, gimple_canonical_type_hash,
14868 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
14869 gimple_register_canonical_type, print_gimple_types_stats,
14870 free_gimple_type_tables): Move to lto/lto.c
14871 (gt-gimple.h): Do not include.
14872 * gimple.h (gimple_register_canonical_type,
14873 print_gimple_types_stats, free_gimple_type_tables): Remove.
14874 * Makefile.in (GTFILES): Remove gimple.c.
14875
14876 2013-10-14 Travis Snoozy <quandary@remstate.com>
14877
14878 PR target/58716
14879 * config/msp430/msp430.c (msp430_option_override): Correct thinko
14880 scanning for msp430x targets.
14881
14882 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
14883
14884 PR bootstrap/58509
14885 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
14886 (registers_ok_for_ldd_peep): Move around.
14887 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
14888 * config/sparc/sparc.md (widening peepholes): Use it.
14889
14890 2013-10-14 Richard Biener <rguenther@suse.de>
14891
14892 PR middle-end/58712
14893 PR middle-end/55358
14894 * gimple.c (iterative_hash_canonical_type): Make sure to
14895 record the hash into the correct hashtable slot.
14896
14897 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
14898
14899 PR rtl-optimization/58662
14900 * combine.c (try_combine): Take into account death nodes on I2 when
14901 splitting a PARALLEL of two independent SETs. Fix dump message.
14902
14903 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
14904
14905 PR target/51244
14906 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
14907 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
14908 extra_objs.
14909 * config/sh/t-sh (sh_treg_combine.o): New entry.
14910 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
14911 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
14912 (register_sh_passes): New function. Register sh_treg_combine pass.
14913 (sh_option_override): Invoke it.
14914 (sh_canonicalize_comparison): Handle op0_preserve_value.
14915 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
14916 opportunities. Canonicalize branch condition.
14917 (nott): Allow only if pseudos can be created for non-SH2A.
14918
14919 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
14920
14921 PR target/58690
14922 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
14923 (ix86_expand_movmem): Replace copy_addr_to_reg with
14924 ix86_copy_addr_to_reg.
14925 (ix86_expand_setmem): Likewise.
14926
14927 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
14928
14929 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
14930 provided by ix86_fp_compare_mode instead of CCFPUmode.
14931
14932 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
14933
14934 * config/aarch64/arm_neon.h
14935 (vtbx<1,3>_<psu>8): Fix register constriants.
14936
14937 2013-10-11 Jeff Law <law@redhat.com>
14938
14939 PR tree-optimization/58640
14940 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
14941 threading paths that cross over two loop entry points.
14942
14943 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14944
14945 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
14946 handle vector float as well.
14947 (*vsx_le_perm_load_v4si): Likewise.
14948 (*vsx_le_perm_store_v2di): Likewise.
14949 (*vsx_le_perm_store_v4si): Likewise.
14950
14951 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14952
14953 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
14954 directly to circumvent subtract from splat{31} workaround.
14955 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
14956 prototype.
14957 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
14958 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
14959 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
14960 (altivec_vperm_<mode>): Convert to define_insn_and_split to
14961 separate big and little endian logic.
14962 (*altivec_vperm_<mode>_internal): New define_insn.
14963 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
14964 separate big and little endian logic.
14965 (*altivec_vperm_<mode>_uns_internal): New define_insn.
14966 (vec_permv16qi): Add little endian logic.
14967
14968 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
14969
14970 * doc/extend.texi (returns_nonnull): Remove arguments.
14971
14972 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14973 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14974 Sergey Lega <sergey.s.lega@intel.com>
14975 Anna Tikhonova <anna.tikhonova@intel.com>
14976 Ilya Tocar <ilya.tocar@intel.com>
14977 Andrey Turetskiy <andrey.turetskiy@intel.com>
14978 Ilya Verbin <ilya.verbin@intel.com>
14979 Kirill Yukhin <kirill.yukhin@intel.com>
14980 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14981
14982 * config/i386/sse.md (VI48F_256_512): New.
14983 (avx2_permvar<mode>): Change to ...
14984 (<avx2_avx512f>_permvar<mode>): This.
14985
14986 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14987 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14988 Sergey Lega <sergey.s.lega@intel.com>
14989 Anna Tikhonova <anna.tikhonova@intel.com>
14990 Ilya Tocar <ilya.tocar@intel.com>
14991 Andrey Turetskiy <andrey.turetskiy@intel.com>
14992 Ilya Verbin <ilya.verbin@intel.com>
14993 Kirill Yukhin <kirill.yukhin@intel.com>
14994 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14995
14996 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
14997 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
14998 * config/i386/sse.md (VI4_AVX): New.
14999 (sf2simodelower): Ditto.
15000 (sse2_cvtps2dq): Change to ...
15001 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
15002
15003 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15004 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15005 Sergey Lega <sergey.s.lega@intel.com>
15006 Anna Tikhonova <anna.tikhonova@intel.com>
15007 Ilya Tocar <ilya.tocar@intel.com>
15008 Andrey Turetskiy <andrey.turetskiy@intel.com>
15009 Ilya Verbin <ilya.verbin@intel.com>
15010 Kirill Yukhin <kirill.yukhin@intel.com>
15011 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15012
15013 * config/i386/sse.md (V_512): New.
15014 (VI_512): Ditto.
15015 (vcond<V_512:mode><VF_512:mode>): Ditto.
15016 (vcond<V_512:mode><VI_512:mode>): Ditto.
15017 (vcondu<V_512:mode><VI_512:mode>): Ditto.
15018
15019 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15020 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15021 Sergey Lega <sergey.s.lega@intel.com>
15022 Anna Tikhonova <anna.tikhonova@intel.com>
15023 Ilya Tocar <ilya.tocar@intel.com>
15024 Andrey Turetskiy <andrey.turetskiy@intel.com>
15025 Ilya Verbin <ilya.verbin@intel.com>
15026 Kirill Yukhin <kirill.yukhin@intel.com>
15027 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15028
15029 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
15030 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
15031 (FMAMODE): Ditto.
15032 (fma<mode>4): Removed condition.
15033 (fms<mode>4): Ditto.
15034 (fnma<mode>4): Ditto.
15035 (fnms<mode>4): Ditto.
15036 (fma4i_fmadd_<mode>): Ditto.
15037 (*fma_fmadd_<mode>): Ditto.
15038 (*fma_fmsub_<mode>): Ditto.
15039 (*fma_fnmadd_<mode>): Ditto.
15040 (*fma_fnmsub_<mode>): Ditto.
15041 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
15042 (*fma_fmaddsub_<mode>): Ditto.
15043 (*fma_fmsubadd_<mode>): Ditto.
15044 (*fmai_fmadd_<mode>): Ditto.
15045 (*fmai_fmsub_<mode>): Ditto.
15046 (*fmai_fnmadd_<mode>): Ditto.
15047 (*fmai_fnmsub_<mode>): Ditto.
15048
15049 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15050 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15051 Sergey Lega <sergey.s.lega@intel.com>
15052 Anna Tikhonova <anna.tikhonova@intel.com>
15053 Ilya Tocar <ilya.tocar@intel.com>
15054 Andrey Turetskiy <andrey.turetskiy@intel.com>
15055 Ilya Verbin <ilya.verbin@intel.com>
15056 Kirill Yukhin <kirill.yukhin@intel.com>
15057 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15058
15059 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
15060 (VI124_256): Changed to ...
15061 (VI124_256_48_512): This.
15062 (ssepackmode): Extended with wider modes.
15063 (<code><mode>3): Changed iterator.
15064 (*avx2_<code><mode>3): Ditto.
15065 (vec_pack_trunc_<mode>): Ditto.
15066
15067 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15068 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15069 Sergey Lega <sergey.s.lega@intel.com>
15070 Anna Tikhonova <anna.tikhonova@intel.com>
15071 Ilya Tocar <ilya.tocar@intel.com>
15072 Andrey Turetskiy <andrey.turetskiy@intel.com>
15073 Ilya Verbin <ilya.verbin@intel.com>
15074 Kirill Yukhin <kirill.yukhin@intel.com>
15075 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15076
15077 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
15078 (VI8F_256_512): Ditto.
15079 (abs<mode>2): Changed iterator.
15080 (avx2_perm<mode>): Changed to ...
15081 (<avx2_avx512f>_perm<mode>): This.
15082 (avx2_perm<mode>_1): Changed to ...
15083 (<avx2_avx512f>_perm<mode>_1): This.
15084
15085 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15086 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15087 Sergey Lega <sergey.s.lega@intel.com>
15088 Anna Tikhonova <anna.tikhonova@intel.com>
15089 Ilya Tocar <ilya.tocar@intel.com>
15090 Andrey Turetskiy <andrey.turetskiy@intel.com>
15091 Ilya Verbin <ilya.verbin@intel.com>
15092 Kirill Yukhin <kirill.yukhin@intel.com>
15093 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15094
15095 * config/i386/sse.md (VI48_AVX512F): New.
15096 (VI48_AVX2): Changed to ...
15097 (VI48_AVX2_48_AVX512F): This.
15098 (avx2_ashrv<mode>): Changed to ...
15099 (<avx2_avx512f>_ashrv<mode>): This.
15100 (avx2_<shift_insn>v<mode>): Changed to ...
15101 (<avx2_avx512f>_<shift_insn>v<mode>): This.
15102
15103 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15104 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15105 Sergey Lega <sergey.s.lega@intel.com>
15106 Anna Tikhonova <anna.tikhonova@intel.com>
15107 Ilya Tocar <ilya.tocar@intel.com>
15108 Andrey Turetskiy <andrey.turetskiy@intel.com>
15109 Ilya Verbin <ilya.verbin@intel.com>
15110 Kirill Yukhin <kirill.yukhin@intel.com>
15111 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15112
15113 * config/i386/sse.md (VI4_AVX512F): New.
15114 (VI8_AVX2_AVX512F): Ditto.
15115 (mul<mode>3): Extended with wider modes.
15116 (*<sse4_1_avx2>_mul<mode>3): Ditto.
15117 (mul<mode>3): Ditto.
15118 (vec_widen_<s>mult_odd_<mode>): Ditto.
15119
15120 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15121 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15122 Sergey Lega <sergey.s.lega@intel.com>
15123 Anna Tikhonova <anna.tikhonova@intel.com>
15124 Ilya Tocar <ilya.tocar@intel.com>
15125 Andrey Turetskiy <andrey.turetskiy@intel.com>
15126 Ilya Verbin <ilya.verbin@intel.com>
15127 Kirill Yukhin <kirill.yukhin@intel.com>
15128 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15129
15130 * config/i386/sse.md (VI2_AVX512F): New.
15131 (VI124_AVX512F): Ditto.
15132 (sseunpackmode): Extended with wider modes.
15133 (sseunpackfltmode): Ditto.
15134 (vec_unpacks_float_hi_<mode>): Ditto.
15135 (vec_unpacks_float_lo_<mode>): Ditto.
15136 (vec_unpacku_float_hi_<mode>): Ditto.
15137 (vec_unpacku_float_lo_<mode>): Ditto.
15138 (vec_unpacks_lo_<mode>): Ditto.
15139 (vec_unpacks_hi_<mode>): Ditto.
15140 (vec_unpacku_lo_<mode>): Ditto.
15141 (vec_unpacku_hi_<mode>): Ditto.
15142
15143 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15144 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15145 Sergey Lega <sergey.s.lega@intel.com>
15146 Anna Tikhonova <anna.tikhonova@intel.com>
15147 Ilya Tocar <ilya.tocar@intel.com>
15148 Andrey Turetskiy <andrey.turetskiy@intel.com>
15149 Ilya Verbin <ilya.verbin@intel.com>
15150 Kirill Yukhin <kirill.yukhin@intel.com>
15151 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15152
15153 * config/i386/i386.md (multdiv): New.
15154 (multdiv_mnemonic): Ditto.
15155 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
15156 (<sse>_vm<multdiv_mnemonic><mode>3): This.
15157 (<sse>_vmdiv<mode>3): Removed.
15158
15159 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15160 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15161 Sergey Lega <sergey.s.lega@intel.com>
15162 Anna Tikhonova <anna.tikhonova@intel.com>
15163 Ilya Tocar <ilya.tocar@intel.com>
15164 Andrey Turetskiy <andrey.turetskiy@intel.com>
15165 Ilya Verbin <ilya.verbin@intel.com>
15166 Kirill Yukhin <kirill.yukhin@intel.com>
15167 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15168
15169 * config/i386/sse.md (V): Extended with wider modes.
15170 (VF2): Ditto.
15171 (ssehalfvecmode): Ditto.
15172 (i128): Ditto.
15173 (ssepackfltmode): Ditto.
15174 (avx_vec_concat<mode>): Ditto.
15175 (V_256_512): New iterator.
15176 (VF2_512_256): Ditto.
15177 (si2dfmode): New attribute.
15178 (si2dfmodelower): Ditto.
15179 (sf2dfmode): Ditto.
15180 (concat_tg_mode): Ditto.
15181 (floatv4siv4df2): Changed to ...
15182 (float<si2dfmodelower><mode>2): This.
15183 (avx_cvtps2pd256): Changed to ...
15184 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
15185 (vec_pack_trunc_v4df): Changed to ...
15186 (vec_pack_trunc_<mode>): This.
15187 (avx_vpermil<mode>): Changed to ...
15188 (<sse2_avx_avx512f>_vpermil<mode>): This.
15189 (<fixsuffix>fix_truncv8dfv8si2): New.
15190 (vec_pack_sfix_trunc_v8df): Ditto.
15191 (avx512f_rndscale<mode>): Ditto.
15192 (avx512f_roundpd512): Ditto.
15193 (vec_pack_ufix_trunc_<mode>): Updated iterator.
15194
15195 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15196 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15197 Sergey Lega <sergey.s.lega@intel.com>
15198 Anna Tikhonova <anna.tikhonova@intel.com>
15199 Ilya Tocar <ilya.tocar@intel.com>
15200 Andrey Turetskiy <andrey.turetskiy@intel.com>
15201 Ilya Verbin <ilya.verbin@intel.com>
15202 Kirill Yukhin <kirill.yukhin@intel.com>
15203 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15204
15205 * config/i386/i386.md (any_fix): New iterator.
15206 (fixsuffix): New attribute.
15207 * config/i386/sse.md (VF1): Extened with wider modes.
15208 (VI): Ditto.
15209 (VI_AVX2): Ditto.
15210 (VI8): Ditto.
15211 (sseintvecmodelower): Ditto.
15212 (ssescalarmode): Ditto.
15213 (ssescalarnum): Ditto.
15214 (VF1_128_256): New.
15215 (ssexmmmode): Ditto.
15216 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
15217 (<sse>_rcp<mode>2): Change iterator.
15218 (rsqrt<mode>2): Ditto.
15219 (<sse>_rsqrt<mode>2): Ditto.
15220 (avx2_vec_dup<mode>): Ditto.
15221 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
15222 (round<mode>2_sfix): Ditto.
15223 (avx2_pbroadcast<mode>): Ditto.
15224 (*andnot<mode>3): Handle XI mode.
15225 (*<code><mode>3): Ditto.
15226 (AVXTOSSEMODE): Removed.
15227 (avx_vpermil<mode>): Changed to ...
15228 (<sse2_avx_avx512f>_vpermil<mode>): This.
15229
15230 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15231 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15232 Sergey Lega <sergey.s.lega@intel.com>
15233 Anna Tikhonova <anna.tikhonova@intel.com>
15234 Ilya Tocar <ilya.tocar@intel.com>
15235 Andrey Turetskiy <andrey.turetskiy@intel.com>
15236 Ilya Verbin <ilya.verbin@intel.com>
15237 Kirill Yukhin <kirill.yukhin@intel.com>
15238 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15239
15240 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
15241 (<sse>_comi): Ditto.
15242 (<sse>_ucomi): Ditto.
15243 (sse_cvtss2siq_2): Ditto.
15244 (sse2_cvtsd2si): Ditto.
15245 (sse2_cvtsd2siq): Ditto.
15246 (sse2_cvttsd2si): Ditto.
15247 (sse2_cvttsd2siq): Ditto.
15248 (<shift_insn><mode>3): Ditto.
15249 (sse2_cvtsi2sdq): Update constraint and prefix.
15250 (sse_cvtsi2ss): Update prefix.
15251 (sse_cvtsi2ssq): Ditto.
15252
15253 2013-10-11 Jakub Jelinek <jakub@redhat.com>
15254
15255 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
15256 ignore internal calls.
15257
15258 2013-10-11 Richard Biener <rguenther@suse.de>
15259
15260 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
15261 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
15262 TREE_OVERFLOW is set.
15263
15264 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
15265
15266 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
15267
15268 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
15269 * gimple.h: Likewise.
15270
15271 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
15272
15273 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
15274 macros.
15275
15276 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
15277
15278 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
15279 * configure: Regenerate.
15280
15281 2013-10-11 Jakub Jelinek <jakub@redhat.com>
15282
15283 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
15284 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
15285 formatting fixes, use pp_colon instead of pp_character (..., ':'),
15286 similarly pp_right_paren.
15287 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
15288 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
15289 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
15290 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
15291 clauses.
15292 (omp_declare_simd_clauses_equal,
15293 omp_remove_redundant_declare_simd_attrs): New functions.
15294 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
15295 (walk_tree_1): Handle new OpenMP 4.0 clauses.
15296 * tree.h (OMP_LOOP_CHECK): Define.
15297 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
15298 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
15299 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
15300 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
15301 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
15302 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
15303 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
15304 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
15305 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
15306 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
15307 OMP_CLAUSE_SIMDLEN_EXPR): Define.
15308 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
15309 (omp_remove_redundant_declare_simd_attrs): New prototype.
15310 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
15311 GIMPLE_OMP_TEAMS): New codes.
15312 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
15313 * omp-low.c (struct omp_context): Add cancel_label and cancellable
15314 fields.
15315 (target_nesting_level): New variable.
15316 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
15317 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
15318 for collapse > 1 static schedule unless ordered.
15319 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
15320 (determine_parallel_type): Adjust get_ws_args_for caller.
15321 (install_var_field): Handle mask & 4 for double indirection.
15322 (scan_sharing_clauses): Ignore shared clause on teams construct.
15323 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
15324 (create_omp_child_function): If inside target or declare target
15325 constructs, set "omp declare target" attribute on the child function.
15326 (find_combined_for): New function.
15327 (scan_omp_parallel): Handle combined loops.
15328 (scan_omp_target, scan_omp_teams): New functions.
15329 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
15330 restrictions and set ctx->cancellable for cancellable constructs.
15331 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
15332 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
15333 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
15334 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
15335 (omp_clause_aligned_alignment): New function.
15336 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
15337 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
15338 on teams constructs. Handle user defined reductions and new
15339 OpenMP 4.0 clauses.
15340 (lower_reduction_clauses): Don't set placeholder to address of ref
15341 if it has already the right type.
15342 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
15343 (expand_parallel_call): Use the new non-_start suffixed builtins,
15344 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
15345 and GOMP_parallel_end after the call.
15346 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
15347 (expand_omp_for_init_counts): Handle combined loops.
15348 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
15349 loops.
15350 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
15351 end of cancellable loops.
15352 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
15353 Likewise. Handle collapse > 1 loops.
15354 (expand_omp_simd): Handle combined loops.
15355 (expand_omp_for): Add inner_stmt argument, adjust callers of
15356 expand_omp_for* functions, use expand_omp_for_static*chunk even
15357 for collapse > 1 unless ordered.
15358 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
15359 of cancellable sections.
15360 (expand_omp_single): Remove need_barrier variable, just rely on
15361 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
15362 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
15363 (expand_omp_atomic_load, expand_omp_atomic_store,
15364 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
15365 (expand_omp_target): New function.
15366 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
15367 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
15368 (build_omp_regions_1): Immediately close region for
15369 GF_OMP_TARGET_KIND_UPDATE.
15370 (maybe_add_implicit_barrier_cancel): New function.
15371 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
15372 cancellation.
15373 (lower_omp_single): Likewise. Add clobber after the barrier.
15374 (lower_omp_taskgroup): New function.
15375 (lower_omp_for): Handle combined loops. Adjust
15376 lower_rec_input_clauses caller. Handle cancellation.
15377 (lower_depend_clauses): New function.
15378 (lower_omp_taskreg): Lower depend clauses. Adjust
15379 lower_rec_input_clauses caller. Add clobber after the call. Handle
15380 cancellation.
15381 (lower_omp_target, lower_omp_teams): New functions.
15382 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
15383 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
15384 and GOMP_cancellation_point calls.
15385 (lower_omp): Fold stmts inside of target region.
15386 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
15387 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
15388 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
15389 (BT_FN_VOID_OMPFN_PTR_UINT,
15390 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
15391 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
15392 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
15393 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
15394 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
15395 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
15396 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
15397 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
15398 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
15399 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
15400 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
15401 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
15402 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
15403 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
15404 BUILT_IN_GOMP_PARALLEL_END.
15405 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
15406 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
15407 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
15408 GF_OMP_FOR_KIND_DISTRIBUTE.
15409 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
15410 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
15411 (dump_gimple_omp_return): Print lhs if it has any.
15412 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
15413 gimple_omp_atomic_seq_cst_p.
15414 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
15415 and GIMPLE_OMP_TEAMS.
15416 * langhooks.c (lhd_omp_mappable_type): New function.
15417 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
15418 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
15419 hook.
15420 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
15421 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
15422 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
15423 (struct gimplify_omp_ctx): Add combined_loop field.
15424 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
15425 on stmts inside of target region.
15426 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
15427 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
15428 ORT_TARGET and ORT_TARGET_DATA.
15429 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
15430 Handle GOVD_MAP.
15431 (omp_notice_threadprivate_variable): Complain about threadprivate
15432 variables in target region.
15433 (omp_notice_variable): Complain about vars with non-mappable type
15434 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
15435 (omp_check_private): Ignore ORT_TARGET* regions.
15436 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
15437 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
15438 (find_combined_omp_for): New function.
15439 (gimplify_omp_for): Handle gimplification of combined loops.
15440 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
15441 OMP_TEAMS.
15442 (gimplify_omp_target_update): New function.
15443 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
15444 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
15445 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
15446 (gimplify_body): If fndecl has "omp declare target" attribute, add
15447 implicit ORT_TARGET context around it.
15448 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
15449 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
15450 * tree-nested.c (convert_nonlocal_reference_stmt,
15451 convert_local_reference_stmt, convert_gimple_call): Handle
15452 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
15453 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
15454 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
15455 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
15456 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
15457 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
15458 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
15459 BUILT_IN_GOMP_LOOP_END_CANCEL,
15460 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
15461 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
15462 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
15463 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
15464 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
15465 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
15466 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
15467 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
15468 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
15469 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
15470 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
15471 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
15472 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
15473 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
15474 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
15475 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
15476 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
15477 gimple_build_omp_teams): New functions.
15478 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
15479 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
15480 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
15481 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
15482 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
15483 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
15484 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
15485 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
15486 GF_OMP_ATOMIC_SEQ_CST): New.
15487 (gimple_build_omp_taskgroup, gimple_build_omp_target,
15488 gimple_build_omp_teams): New prototypes.
15489 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
15490 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
15491 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
15492 GIMPLE_OMP_SINGLE as end of range.
15493 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
15494 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
15495 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
15496 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
15497 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
15498 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
15499 gimple_omp_target_kind, gimple_omp_target_set_kind,
15500 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
15501 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
15502 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
15503 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
15504 gimple_omp_teams_set_clauses): New inlines.
15505 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
15506 and GIMPLE_OMP_TASKGROUP.
15507 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
15508 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
15509 enum omp_clause_proc_bind_kind): New.
15510 (union omp_clause_subcode): Add depend_kind, map_kind and
15511 proc_bind_kind fields.
15512 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
15513 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
15514 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
15515 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
15516 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
15517
15518 2013-10-10 Teresa Johnson <tejohnson@google.com>
15519
15520 * predict.c (tree_estimate_probability): Add new parameter
15521 for estimate_bb_frequencies.
15522 (estimate_bb_frequencies): Add new parameter to force estimation.
15523 (rebuild_frequencies): When max frequency in function is small,
15524 recompute counts from frequencies.
15525 * predict.h (estimate_bb_frequencies): New parameter.
15526
15527 2013-10-10 David Malcolm <dmalcolm@redhat.com>
15528
15529 * ipa-inline.c (ipa_inline): Fix leak of "order" when
15530 optimizations are disabled.
15531
15532 2013-10-10 David Malcolm <dmalcolm@redhat.com>
15533
15534 * coverage.c (coverage_finish): Fix leak of da_file_name.
15535
15536 2013-10-10 Jan Hubicka <jh@suse.cz>
15537
15538 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
15539 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
15540 Bobcat and generic.
15541
15542 2013-10-10 Jakub Jelinek <jakub@redhat.com>
15543
15544 PR middle-end/58670
15545 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
15546 if any labels are in FALLTHRU_BB, use a special label emitted
15547 immediately after the asm goto insn rather than label_rtx
15548 of the LABEL_DECL.
15549 (expand_asm_stmt): Adjust caller.
15550 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
15551 edge if the last insn in predecessor is a jump with single successor,
15552 but it isn't simplejump_p.
15553
15554 2013-10-10 Richard Biener <rguenther@suse.de>
15555
15556 PR tree-optimization/58656
15557 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
15558
15559 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
15560
15561 * gimplify.c: Include expr.h and tm_p.h for targets with special
15562 va-arg padding requirements.
15563
15564 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
15565
15566 * tree-flow.h: Move some prototypes to gimple.h.
15567 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
15568 * gimple.h: Relocate some prototypes from tree-flow.h
15569 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
15570 Move to gimplify.c.
15571 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
15572 (build_va_arg_indirect_ref): Relocate and make static.
15573 (std_gimplify_va_arg_expr): Relocate here.
15574 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
15575 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
15576
15577 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15578
15579 * doc/md.texi: Document the mnemonic attribute.
15580
15581 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15582
15583 PR target/57377
15584 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
15585 (set_attr_alternative x ...) when searching for user defined
15586 mnemonic attribute.
15587
15588 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
15589
15590 * config/alpha/alpha.c: Add gimple-ssa.h to include list.
15591
15592 2013-10-09 Easwaran Raman <eraman@google.com>
15593
15594 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
15595 * cfgexpand.c (defer_stack_allocation): ...use here
15596 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
15597
15598 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
15599
15600 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
15601 (operand_equal_for_value_replacement): New function, extracted from
15602 value_replacement and enhanced to catch more cases.
15603 (value_replacement): Use operand_equal_for_value_replacement.
15604
15605 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
15606
15607 * loop-doloop.c (doloop_modify, doloop_optimize): Use
15608 get_max_loop_iterations.
15609
15610 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15611
15612 * config/arm/aarch-common.c (arm_early_load_addr_dep):
15613 Place comment above function.
15614
15615 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
15616
15617 * tree-flow.h: Remove all remaining prototypes, enums and structs that
15618 are not related to tree-cfg.c.
15619 * tree-ssa-address.h: New file. Relocate prototypes.
15620 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
15621 (addr_for_mem_ref): New. Combine call to get_address_description and
15622 return addr_for_mem_ref.
15623 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
15624 * tree-ssa-live.h: Adjust prototypes.
15625 * passes.c: Include tree-ssa-live.h.
15626 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
15627 * graphite.c (graphite_transform_loops): Make static.
15628 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
15629 make_pass_graphite, pass_data_graphite_transforms,
15630 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
15631 * ipa-pure-const.c (warn_function_noreturn): Make static.
15632 (execute_warn_function_noreturn, gate_warn_function_noreturn,
15633 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
15634 Relocate from tree-cfg.c
15635 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
15636 static.
15637 (execute_warn_function_noreturn, gate_warn_function_noreturn,
15638 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
15639 Move to ipa-pure-const.c.
15640 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
15641 Relocate from tree-optimize.c.
15642 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
15643 make_pass_fixup_cfg): Move to tree-cfg.c.
15644 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
15645 Relocate some prototypes.
15646 * tree-data-ref.h (tree_check_data_deps) Add prototype.
15647 * tree-dump.c (dump_function_to_file): Remove prototype.
15648 Add tree-flow.h to the include file.
15649 * tree-dump.h: Remove prototype.
15650 * tree-parloops.h: New File. Add prototypes.
15651 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
15652 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
15653 from tree-ssa-loop.c.
15654 * tree-predcom.c (run_tree_predictive_commoning,
15655 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
15656 Relocate here from tree-ssa-loop.c.
15657 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
15658 ssa_name_values.release ().
15659 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
15660 (ssa_name_values): Relocate from tree-flow.h.
15661 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
15662 * tree-ssa-loop.c (run_tree_predictive_commoning,
15663 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
15664 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
15665 make_pass_graphite, pass_data_graphite_transforms,
15666 make_pass_graphite_transforms, gate_tree_parallelize_loops,
15667 tree_parallelize_loops, pass_data_parallelize_loops,
15668 make_pass_parallelize_loops): Move to other files.
15669 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
15670 moved here.
15671 * tree.h: Remove prototypes from tree-address.c.
15672
15673 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
15674
15675 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
15676 (struct int_tree_map): Move to tree-hasher.h
15677 (SCALE, LABEL, PERCENT): Move to gimple.h
15678 * tree-flow-inline.h: Delete. Move functions to other files.
15679 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
15680 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
15681 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
15682 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
15683 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
15684 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
15685 * tree-hasher.h: Don't include tree-flow.h.
15686 (struct int_tree_map): Relocate from tree-flow.h.
15687 * tree-sra.c (contains_view_convert_expr_p): Relocate from
15688 tree-flow-inline.h and make static.
15689 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
15690 tree-flow-inline.h.
15691 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
15692 tree-flow-inline.h and make static.
15693 * tree.h (is_global_var, may_be_aliased): Relocate from
15694 tree-flow-inline.h.
15695 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
15696 * value-prof.c: No longer include tree-flow-inline.h.
15697 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
15698
15699 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
15700
15701 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
15702 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
15703 (enum move_pos): Move to tree-ssa-loop-im.h
15704 * cfgloop.h: Move some prototypes.
15705 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
15706 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
15707 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
15708 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
15709 (loop_containing_stmt): Relocate from tree-flow-inline.h.
15710 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
15711 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
15712 (enum move_pos): Relocate here.
15713 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
15714 tree-ssa-loop.c.
15715 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
15716 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
15717 make_pass_lim): Relocate here from tree-ssa-loop.c.
15718 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
15719 tree-ssa-loop.c.
15720 (loop_edge_to_cancel, unloop_loops): Make static.
15721 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
15722 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
15723 (tree_complete_unroll, gate_tree_complete_unroll,
15724 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
15725 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
15726 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
15727 * tree-ssa-loop-ivopts.c: Remove local prototypes.
15728 (stmt_invariant_in_loop_p): Remove unused function.
15729 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
15730 * tree-ssa-loop-manip.h: New file. Add prototypes.
15731 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
15732 (gcov_type_to_double_int): Move to cfgloop.h.
15733 (double_int_cmp, bound_index,
15734 estimate_numbers_of_iterations_loop): Make static.
15735 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
15736 (max_loop_iterations): Factor out get_max_loop_iterations.
15737 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
15738 cfgloop.c.
15739 * tree-ssa-loop-niter.h: New file. Add prototypes.
15740 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
15741 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
15742 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
15743 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
15744 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
15745 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
15746 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
15747 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
15748 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
15749 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
15750 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
15751 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
15752 pass_data_complete_unroll, make_pass_complete_unroll,
15753 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
15754 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
15755 tree-ssa-loop-ivcanon.c.
15756 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
15757 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
15758 tree-ssa-loop-prefetch.c.
15759 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
15760 tree-ssa-loop-im.c.
15761 (get_lsm_tmp_name): Relocate and add suffix parameter.
15762 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
15763 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
15764 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
15765 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
15766 (get_estimated_loop_iterations): Factor out accessor from
15767 estimated_loop_iterations in tree-ssa-loop-niter.c.
15768 (get_max_loop_iterations): Factor out accessor from
15769 _max_loop_iterations in tree-ssa-niter.c.
15770 * loop-unroll.c (decide_unroll_constant_iterations,
15771 decide_unroll_runtime_iterations, decide_peel_simple,
15772 decide_unroll_stupid): Use new get_* accessors.
15773
15774 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
15775
15776 PR tree-optimization/20318
15777 * doc/extend.texi (returns_nonnull): New function attribute.
15778 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
15779 attribute.
15780 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
15781 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
15782
15783 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
15784
15785 PR middle-end/58570
15786 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
15787 false if both components are bitfields.
15788
15789 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
15790
15791 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
15792 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
15793 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
15794 * config/aarch64/aarch64.h
15795 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
15796 * config/aarch64/aarch64-simd-builtins.def
15797 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
15798
15799 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
15800
15801 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
15802
15803 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
15804
15805 * config/aarch64/arm_neon.h (vdiv_f64): Added.
15806
15807 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
15808
15809 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
15810 (vneg_f64): New intrinsic.
15811 (vneg_s8): Asm replaced with C.
15812 (vneg_s16): Likewise.
15813 (vneg_s32): Likewise.
15814 (vneg_s64): New intrinsic.
15815 (vnegq_f32): Asm replaced with C.
15816 (vnegq_f64): Likewise.
15817 (vnegq_s8): Likewise.
15818 (vnegq_s16): Likewise.
15819 (vnegq_s32): Likewise.
15820 (vnegq_s64): Likewise.
15821
15822 2013-10-09 Renlin Li <Renlin.Li@arm.com>
15823
15824 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
15825
15826 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15827
15828 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
15829 packed stack special handling.
15830 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
15831 back to fixed stack slots for FPRs saved due to stdarg.
15832
15833 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15834
15835 * config/s390/s390.c (s390_frame_info): Restructure function.
15836
15837 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15838
15839 * config/s390/s390.c (struct s390_frame_layout): New field
15840 gpr_save_slots.
15841 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
15842 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
15843 regs_ever_clobbered to char*.
15844 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
15845 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
15846 (s390_register_info): Enable FPR save slots. Move/Copy some
15847 functionality into ...
15848 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
15849 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
15850 function.
15851 (s390_frame_info): Do gpr slot allocation here now. stdarg does
15852 not imply a stack frame.
15853 (s390_init_frame_layout): Remove variable clobbered_regs.
15854 (s390_update_register_info): Remove function.
15855 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
15856 cannot be used for register renaming.
15857 (s390_hard_regno_scratch_ok): New function.
15858 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
15859 (s390_initial_elimination_offset): Change offset calculation of
15860 the return address pointer.
15861 (save_gprs): Deal with only r6 being saved from the call-saved regs.
15862 (restore_gprs): Set frame related flag.
15863 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
15864 (s390_emit_prologue): Call s390_register_info instead of
15865 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
15866 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
15867 (s390_optimize_prologue): Call s390_optimize_register_info.
15868 Try to remove also FPR slot save/restore INSNs. Remove frame
15869 related flags from restore INSNs.
15870
15871 2013-10-08 DJ Delorie <dj@redhat.com>
15872
15873 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
15874 (movhi): Likewise.
15875
15876 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
15877 avoid conflict with the MI use of %c.
15878 * config/rl78/rl78-real.md: change %c to %C throughout.
15879 * config/rl78/rl78-virt.md: Likewise.
15880
15881 2013-10-08 Jan Hubicka <jh@suse.cz>
15882
15883 * config/i386/i386.c (ix86_option_override_internal): Switch
15884 to SSE math for -ffast-math when target ISA supports SSE2.
15885
15886 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
15887
15888 * tree-flow.h: Remove some prototypes.
15889 * tree.h: Remove some protypes, add a couple.
15890 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
15891 using_eh_for_cleanups_p): Add interface routines for front ends.
15892 * tree-eh.h: New file. Add protoptyes.
15893 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
15894 (add_stmt_to_eh_lp_fn): Make static.
15895 (lower_try_finally): Use new using_eh_for_cleanups_p.
15896 * emit-rtl.c: Include tree-eh.h.
15897 * gimple.h: Include tree-eh.h.
15898
15899 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
15900
15901 PR tree-optimization/58480
15902 * tree-vrp.c (infer_nonnull_range): New function.
15903 (infer_value_range): Call infer_nonnull_range.
15904
15905 2013-10-08 Dehao Chen <dehao@google.com>
15906
15907 PR tree-optimization/58619
15908 * tree-inline.c (copy_phis_for_bb): Combine location data
15909 only if non-null.
15910
15911 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15912
15913 PR target/58423
15914 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
15915 RTX_FRAME_RELATED_P on INSN.
15916
15917 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15918
15919 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
15920 (altivec_expand_vec_perm_const): Call it.
15921
15922 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15923
15924 * config/rs6000/vector.md (mov<mode>): Emit permuted move
15925 sequences for LE VSX loads and stores at expand time.
15926 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
15927 prototype.
15928 * config/rs6000/rs6000.c (rs6000_const_vec): New.
15929 (rs6000_gen_le_vsx_permute): New.
15930 (rs6000_gen_le_vsx_load): New.
15931 (rs6000_gen_le_vsx_store): New.
15932 (rs6000_gen_le_vsx_move): New.
15933 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
15934 (*vsx_le_perm_load_v4si): New.
15935 (*vsx_le_perm_load_v8hi): New.
15936 (*vsx_le_perm_load_v16qi): New.
15937 (*vsx_le_perm_store_v2di): New.
15938 (*vsx_le_perm_store_v4si): New.
15939 (*vsx_le_perm_store_v8hi): New.
15940 (*vsx_le_perm_store_v16qi): New.
15941 (*vsx_xxpermdi2_le_<mode>): New.
15942 (*vsx_xxpermdi4_le_<mode>): New.
15943 (*vsx_xxpermdi8_le_V8HI): New.
15944 (*vsx_xxpermdi16_le_V16QI): New.
15945 (*vsx_lxvd2x2_le_<mode>): New.
15946 (*vsx_lxvd2x4_le_<mode>): New.
15947 (*vsx_lxvd2x8_le_V8HI): New.
15948 (*vsx_lxvd2x16_le_V16QI): New.
15949 (*vsx_stxvd2x2_le_<mode>): New.
15950 (*vsx_stxvd2x4_le_<mode>): New.
15951 (*vsx_stxvd2x8_le_V8HI): New.
15952 (*vsx_stxvd2x16_le_V16QI): New.
15953
15954 2013-10-07 Renlin Li <Renlin.Li@arm.com>
15955
15956 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
15957
15958 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15959
15960 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
15961 loop to work also for 31bit ABI.
15962 Save the stack pointer for frame_size > 0.
15963
15964 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15965
15966 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
15967 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
15968 constraint letters from expanders.
15969 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
15970 retry count to general_operand.
15971 ("tabort"): Give operand 0 a mode.
15972 ("tabort_1"): Add mode and constraint letter for operand 0.
15973 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
15974
15975 2013-10-04 Jeff Law <law@redhat.com>
15976
15977 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
15978
15979 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
15980 out of ...
15981 (thread_across_edge): Here. Call it.
15982
15983 2013-10-04 Cary Coutant <ccoutant@google.com>
15984
15985 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
15986 discarding a location list expression (or a piece of one).
15987
15988 2013-10-03 Jan Hubicka <jh@suse.cz>
15989
15990 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
15991 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
15992 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
15993
15994 2013-10-03 Jan Hubicka <jh@suse.cz>
15995
15996 * config/i386/i386.c (ix86_option_override_internal): Do not enable
15997 accumulate-outgoing-args when producing unwind info.
15998
15999 2013-10-03 Wei Mi <wmi@google.com>
16000
16001 * lra-constraints.c (insert_move_for_subreg): New function
16002 extracted from simplify_operand_subreg.
16003 (simplify_operand_subreg): Add reload for paradoxical subreg.
16004
16005 2013-10-03 Rong Xu <xur@google.com>
16006
16007 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
16008 the candidate of builtin_expect such that we should fix the
16009 size/time estimation.
16010 (estimate_function_body_sizes): Do the acutally size/time fix-up
16011 for builtin_expect.
16012
16013 2013-10-03 Rong Xu <xur@google.com>
16014
16015 * predict.c (tree_predict_by_opcode): Get the probability
16016 for builtin_expect from param builtin_expect_probability.
16017 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
16018 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
16019 * doc/invoke.texi: Add documentation for builtin-expect-probability.
16020
16021 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
16022
16023 PR c++/19476
16024 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
16025 * calls.c (alloca_call_p): Use get_callee_fndecl.
16026 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
16027 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
16028 Likewise.
16029 (vrp_visit_stmt): Remove duplicated code.
16030
16031 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
16032
16033 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
16034 ceildf2, btruncdf2, instead of vsx_* name.
16035
16036 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
16037 iterators to only do V2DF and V4SF here. Move the DF code to
16038 rs6000.md where it is combined with SF mode. Replace <VSv> with
16039 just 'v' since only vector operations are handled with these insns
16040 after moving the DF support to rs6000.md.
16041 (vsx_sub<mode>3): Likewise.
16042 (vsx_mul<mode>3): Likewise.
16043 (vsx_div<mode>3): Likewise.
16044 (vsx_fre<mode>2): Likewise.
16045 (vsx_neg<mode>2): Likewise.
16046 (vsx_abs<mode>2): Likewise.
16047 (vsx_nabs<mode>2): Likewise.
16048 (vsx_smax<mode>3): Likewise.
16049 (vsx_smin<mode>3): Likewise.
16050 (vsx_sqrt<mode>2): Likewise.
16051 (vsx_rsqrte<mode>2): Likewise.
16052 (vsx_fms<mode>4): Likewise.
16053 (vsx_nfma<mode>4): Likewise.
16054 (vsx_copysign<mode>3): Likewise.
16055 (vsx_btrunc<mode>2): Likewise.
16056 (vsx_floor<mode>2): Likewise.
16057 (vsx_ceil<mode>2): Likewise.
16058 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
16059 (vsx_sminsf3): Likewise.
16060 (vsx_fmadf4): Likewise.
16061 (vsx_fmsdf4): Likewise.
16062 (vsx_nfmadf4): Likewise.
16063 (vsx_nfmsdf4): Likewise.
16064 (vsx_cmpdf_internal1): Likewise.
16065
16066 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
16067 simpler to select whether a target has SPE or traditional floating
16068 point support in iterators.
16069 (TARGET_DF_SPE): Likewise.
16070 (TARGET_SF_FPR): Likewise.
16071 (TARGET_DF_FPR): Likewise.
16072 (TARGET_SF_INSN): Macros to say whether floating point support
16073 exists for a given operation for expanders.
16074 (TARGET_DF_INSN): Likewise.
16075
16076 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
16077 combining of SF/DF mode operations, using both traditional and VSX
16078 registers.
16079 (Fvsx): Likewise.
16080 (Ff): Likewise.
16081 (Fv): Likewise.
16082 (Fs): Likewise.
16083 (Ffre): Likewise.
16084 (FFRE): Likewise.
16085 (abs<mode>2): Combine SF/DF modes using traditional floating point
16086 instructions. Add support for using the upper DF registers with
16087 VSX support, and SF registers with power8-vector support. Update
16088 expanders for operations supported by both the SPE and traditional
16089 floating point units.
16090 (abs<mode>2_fpr): Likewise.
16091 (nabs<mode>2): Likewise.
16092 (nabs<mode>2_fpr): Likewise.
16093 (neg<mode>2): Likewise.
16094 (neg<mode>2_fpr): Likewise.
16095 (add<mode>3): Likewise.
16096 (add<mode>3_fpr): Likewise.
16097 (sub<mode>3): Likewise.
16098 (sub<mode>3_fpr): Likewise.
16099 (mul<mode>3): Likewise.
16100 (mul<mode>3_fpr): Likewise.
16101 (div<mode>3): Likewise.
16102 (div<mode>3_fpr): Likewise.
16103 (sqrt<mode>3): Likewise.
16104 (sqrt<mode>3_fpr): Likewise.
16105 (fre<Fs>): Likewise.
16106 (rsqrt<mode>2): Likewise.
16107 (cmp<mode>_fpr): Likewise.
16108 (smax<mode>3): Likewise.
16109 (smin<mode>3): Likewise.
16110 (smax<mode>3_vsx): Likewise.
16111 (smin<mode>3_vsx): Likewise.
16112 (negsf2): Delete SF operations that are merged with DF.
16113 (abssf2): Likewise.
16114 (addsf3): Likewise.
16115 (subsf3): Likewise.
16116 (mulsf3): Likewise.
16117 (divsf3): Likewise.
16118 (fres): Likewise.
16119 (fmasf4_fpr): Likewise.
16120 (fmssf4_fpr): Likewise.
16121 (nfmasf4_fpr): Likewise.
16122 (nfmssf4_fpr): Likewise.
16123 (sqrtsf2): Likewise.
16124 (rsqrtsf_internal1): Likewise.
16125 (smaxsf3): Likewise.
16126 (sminsf3): Likewise.
16127 (cmpsf_internal1): Likewise.
16128 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
16129 (negdf2): Delete DF operations that are merged with SF.
16130 (absdf2): Likewise.
16131 (nabsdf2): Likewise.
16132 (adddf3): Likewise.
16133 (subdf3): Likewise.
16134 (muldf3): Likewise.
16135 (divdf3): Likewise.
16136 (fred): Likewise.
16137 (rsqrtdf_internal1): Likewise.
16138 (fmadf4_fpr): Likewise.
16139 (fmsdf4_fpr): Likewise.
16140 (nfmadf4_fpr): Likewise.
16141 (nfmsdf4_fpr): Likewise.
16142 (sqrtdf2): Likewise.
16143 (smaxdf3): Likewise.
16144 (smindf3): Likewise.
16145 (cmpdf_internal1): Likewise.
16146 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
16147 (btrunc<mode>2): Delete separate expander, and combine with the
16148 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
16149 (btrunc<mode>2_fpr): Likewise.
16150 (ceil<mode>2): Likewise.
16151 (ceil<mode>2_fpr): Likewise.
16152 (floor<mode>2): Likewise.
16153 (floor<mode>2_fpr): Likewise.
16154 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
16155 Add support for using the upper registers with VSX and
16156 power8-vector. Move insns to be closer to the define_expands. On
16157 VSX systems, prefer the traditional form of FMA over the VSX
16158 version, since the traditional form allows the target not to
16159 overlap with the inputs.
16160 (fms<mode>4_fpr): Likewise.
16161 (nfma<mode>4_fpr): Likewise.
16162 (nfms<mode>4_fpr): Likewise.
16163
16164 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16165 Richard Earnshaw <richard.earnshaw@arm.com>
16166
16167 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
16168 (struct mult_cost_table): Likewise.
16169 (struct mem_cost_table): Likewise.
16170 (struct fp_cost_table): Likewise.
16171 (struct vector_cost_table): Likewise.
16172 (cpu_cost_table): Likewise.
16173 * config/arm/arm.opt (mold-rts-costs): New option.
16174 (mnew-generic-costs): Likewise.
16175 * config/arm/arm.c (generic_extra_costs): New table.
16176 (cortexa15_extra_costs): Likewise.
16177 (arm_slowmul_tune): Use NULL as new costs.
16178 (arm_fastmul_tune): Likewise.
16179 (arm_strongarm_tune): Likewise.
16180 (arm_xscale_tune): Likewise.
16181 (arm_9e_tune): Likewise.
16182 (arm_v6t2_tune): Likewise.
16183 (arm_cortex_a5_tune): Likewise.
16184 (arm_cortex_a9_tune): Likewise.
16185 (arm_v6m_tune): Likewise.
16186 (arm_fa726te_tune): Likewise.
16187 (arm_cortex_a15_tune): Use cortex15_extra_costs.
16188 (arm_cortex_tune): Use generict_extra_costs.
16189 (shifter_op_p): New function.
16190 (arm_unspec_cost): Likewise.
16191 (LIBCALL_COST): Define.
16192 (arm_new_rtx_costs): New function.
16193 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
16194 table is available. Use old costs otherwise unless mnew-generic-costs
16195 is specified.
16196 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
16197 (cpu_cost_table): Declare.
16198
16199 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
16200
16201 PR target/58460
16202 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
16203 (*subs_mul_imm_<mode>)
16204 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
16205 (*sub_<shift>_<mode>)
16206 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
16207 Remove k constraint.
16208
16209 2013-10-03 Ian Bolton <ian.bolton@arm.com>
16210
16211 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
16212 code.
16213 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
16214
16215 2013-10-02 Teresa Johnson <tejohnson@google.com>
16216
16217 * predict.c (probably_never_executed): New function.
16218 (probably_never_executed_bb_p): Invoke probably_never_executed.
16219 (probably_never_executed_edge_p): Ditto.
16220 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
16221 Treat profile insanities conservatively.
16222
16223 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
16224
16225 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
16226
16227 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
16228
16229 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
16230 use it. Use smaller increase for scratch. Don't increase reject
16231 for early clobber scratch.
16232 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
16233 setting eliminated regs except setting fp from hfp.
16234 (lra_eliminate): Check lra_insn_recog_data on NULL.
16235
16236 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16237
16238 PR target/58587
16239 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
16240 setting -mvsx-timode by default until the underlying problem is fixed.
16241 (RS6000_CPU, power7 defaults): Likewise.
16242
16243 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
16244
16245 * config/x-linux (host-linux.o): Remove header dependencies.
16246 Use $(COMPILE) and $(POSTCOMPILE).
16247 * config/t-linux-android (linux-android.o): Ditto.
16248
16249 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
16250
16251 * Makefile.in (expmed.o-warn): Remove.
16252
16253 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
16254
16255 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
16256 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
16257
16258 2013-10-02 Teresa Johnson <tejohnson@google.com>
16259
16260 * dojump.c (do_jump_1): Divide probability between
16261 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
16262
16263 2013-10-02 Tom Tromey <tromey@redhat.com>
16264
16265 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
16266
16267 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
16268
16269 * tree-flow.h: Remove some prototypes.
16270 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
16271 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
16272 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
16273 mark_virtual_phi_result_for_renaming): Relocate here.
16274 * tree-into-ssa.h: Add prototypes.
16275 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
16276 single_pred_before_succ_order.
16277 (blocks_in_phiopt_order): Rename and move to cfganal.c.
16278 (nonfreeing_call_p) Move to gimple.c.
16279 * cfganal.c (single_pred_before_succ_order): Move and renamed from
16280 tree-ssa-phiopt.c.
16281 * basic-block.h (single_pred_before_succ_order): Add prototype.
16282 * gimple.c (nonfreeing_call_p): Relocate here.
16283 * gimple.h: Add prototype.
16284 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
16285 * tree-ssa-dom.h: New file. Relocate prototypes here.
16286 * tree-ssa.h: Include tree-ssa-dom.h.
16287
16288 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
16289
16290 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
16291 Use $(COMPILE) and $(POSTCOMPILE).
16292
16293 * config/alpha/x-alpha (driver-alpha.o): Ditto.
16294
16295 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
16296
16297 * tree-flow.h: Remove some prototypes.
16298 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
16299 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
16300 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
16301 propagate_tree_value*): Move from here to...
16302 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
16303 propagate_tree_value*): Relocate here.
16304 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
16305 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
16306 * gimple-fold.c: Remove gimple-fold.h from include list.
16307 * tree-vrp.c: Remove gimple-fold.h from include list.
16308 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
16309 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
16310 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
16311 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
16312 * sese.c: Add tree-ssa-propagate.h to include list.
16313
16314 2013-10-02 Richard Biener <rguenther@suse.de>
16315
16316 * tree-loop-distribution.c: Include tree-vectorizer.h for
16317 find_loop_location.
16318 (enum partition_kind): Remove PKIND_REDUCTION.
16319 (struct partition_s): Remove has_writes member, add reduction_p member.
16320 (partition_alloc): Adjust.
16321 (partition_builtin_p): Likewise.
16322 (partition_has_writes): Remove.
16323 (partition_reduction_p): New function.
16324 (partition_merge_into): Likewise.
16325 (generate_code_for_partition): Commonize builtin partition
16326 handling tail.
16327 (rdg_cannot_recompute_vertex_p): Remove.
16328 (already_processed_vertex_p): Likewise.
16329 (rdg_flag_vertex): Do not set has_writes.
16330 (classify_partition): Adjust.
16331 (rdg_build_partitions): Do not set has_writes, treat all
16332 partitions as useful.
16333 (distribute_loop): Record number of library calls generated. Adjust.
16334 (tree_loop_distribution): Report number of loops and library
16335 calls generated as opt-info.
16336
16337 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
16338
16339 * tree-flow.h: Include new .h files. Move prototypes.
16340 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
16341 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
16342 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
16343 * tree-pretty-print.h: Add prototypes from tree-flow.h.
16344 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
16345 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
16346 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
16347 * tree.h (get_ref_base_and_extent): Move prototype out.
16348 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
16349 tree-dfa.h.
16350 * gimple-low.h: New File. Add prototypes from tree-flow.h.
16351 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
16352 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
16353 * tree-scalar-evolution.c: Include tree.h.
16354 * sese.c: Include tree.h.
16355 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
16356 * dwarf2out.c: Include tree-dfa.h.
16357 * tree-chrec.c: Include tree.h.
16358 * tree-data-ref.c: Include tree.h.
16359
16360 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
16361
16362 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
16363 Fix whitespace.
16364
16365 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16366
16367 * config/t-sol2 (sol2-c.o): Remove header dependencies.
16368 Use $(COMPILE) and $(POSTCOMPILE).
16369 (sol2-cxx.o): Likewise.
16370 (sol2-stubs.o): Likewise.
16371 (sol2.o): Likewise.
16372 * config/x-solaris (host-solaris.o): Likewise.
16373
16374 * config/sparc/t-sparc (sparc.o): Remove.
16375 (sparc-c.o): Remove header dependencies.
16376 Use $(COMPILE) and $(POSTCOMPILE).
16377 * config/sparc/x-sparc: Likewise.
16378
16379 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
16380
16381 * config/arc/arc-opts.h: Add 2013 to Copyright years.
16382 * config/arc/arc700.md: Likewise.
16383 * config/arc/arc-modes.def: Likewise.
16384 * config/arc/arc-simd.h: Likewise.
16385 * config/arc/t-arc-uClibc: Likewise.
16386 * config/arc/t-arc-newlib: Likewise.
16387
16388 2013-10-02 Renlin Li <renlin.li@arm.com>
16389
16390 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
16391 plus_constant.
16392 (aarch64_expand_epilogue): Likewise.
16393
16394 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16395 Yufeng Zhang <yufeng.zhang@arm.com>
16396
16397 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
16398 declaration.
16399 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
16400 'base_in' represent a conversion and legal_cast_p_1 holds; set
16401 'base_in' with the returned value from get_unwidened.
16402
16403 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16404
16405 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
16406 plus_constant is not used.
16407
16408 2013-10-01 Wei Mi <wmi@google.com>
16409
16410 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
16411 * config/i386/i386.md: Add define_peephole2 to
16412 break partial reg stall for cvtss2sd/cvtsd2ss.
16413
16414 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
16415
16416 * config/arc/arc.c (pass_arc_ifcvt::clone):
16417 Update for ctxt_ -> m_ctxt change.
16418
16419 2013-10-01 Jeff Law <law@redhat.com>
16420
16421 * tree-ssa-threadupdate.c (struct redirection_data): Delete
16422 outgoing_edge and intermediate_edge fields. Instead store the path.
16423 (redirection_data::hash): Hash on the last edge's destination index.
16424 (redirection_data::equal): Check the entire thread path.
16425 (lookup_redirectio_data): Corresponding changes.
16426 (create_edge_and_update_destination_phis): Likewise.
16427 (thread_single_edge): Likewise.
16428
16429 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
16430 Diego Novillo <dnovillo@google.com>
16431
16432 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
16433 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
16434 (vld32wh_insn, vld32wl_insn): Delete commented-out old
16435 versions of these patterns.
16436
16437 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
16438 (__builtin_arc_aligned): Likewise.
16439
16440 * config/arc/arc.md: Expand adc_0 comment stating the intended
16441 purpose and why it isn't ready.
16442 Replace commented out call_value_via_label_mixed with a
16443 plain comment about bl_s.
16444
16445 * config/arc/arc.c (stdio.h): Don't include directly.
16446 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
16447 Remove if (1) condition.
16448 (arc_encode_section_info): Fix comment.
16449
16450 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
16451
16452 * config/arc/arc.c (arc_conditional_register_usage):
16453 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
16454 Also set reg_alloc_order for DMA config regs.
16455
16456 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
16457 Jeremy Bennett <jeremy.bennett@embecosm.com>
16458
16459 * doc/install.texi (--with-cpu): Mention ARC.
16460 (arc-*-elf32): New paragraph.
16461 (arc-linux-uclibc): Likewise.
16462 * doc/md.texi (Machine Constraints): Add ARC part.
16463 * doc/invoke.texi: (menu): Add ARC Options.
16464 (Machine Dependent Options) <ARC Options>: Add synopsis.
16465 (node ARC Options): Add.
16466 * doc/extend.texi (long_call / short_call attribute): Add ARC.
16467 (ARC Built-in Functions): New section defining
16468 generic ARC built-in functions.
16469 (ARC SIMD Built-in Functions): New section defining SIMD specific
16470 built-in functions.
16471 (Declaring Attributes of Functions): Extended
16472 description of short_call and long_call attributes for ARC and
16473 added index entries.
16474
16475 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
16476 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
16477 Joern Rennecke <joern.rennecke@embecosm.com>
16478 Muhammad Khurram Riaz <khurram.riaz@arc.com>
16479 Brendan Kehoe <brendan@zen.org>
16480 Michael Eager <eager@eagercon.com>
16481 Simon Cook <simon.cook@embecosm.com>
16482 Jeremy Bennett <jeremy.bennett@embecosm.com>
16483
16484 * config/arc, common/config/arc: New directories.
16485
16486 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
16487 Brendan Kehoe <brendan@zen.org>
16488 Simon Cook <simon.cook@embecosm.com>
16489
16490 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
16491
16492 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
16493
16494 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
16495 * tree-ssa-coalesce.h: New. Move prototype to here.
16496 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
16497 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
16498 (gimple_can_coalesce_p): Move to...
16499 * gimple.c (gimple_can_coalesce_p): Here.
16500
16501 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
16502
16503 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
16504 (dump_decl_set): Move to gimple.c.
16505 * gimple.h: Don't include tree-ssa-operands.h.
16506 (dump_decl_set): Add prototype.
16507 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
16508 Move to gimple-ssa.h.
16509 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
16510 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
16511 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
16512 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
16513 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
16514 than PHI_ARG_DEF.
16515 (dump_decl_set): Relocate here.
16516 * gimple-ssa.h: New file.
16517 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
16518 Relocate from gimple.h.
16519 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
16520 * tree-ssa-operands.c (swap_ssa_operands): Rename from
16521 swap_tree_operands and remove non-ssa path.
16522 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
16523 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
16524 swap_ssa_operands.
16525 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
16526 vect_is_simple_reduction_1): Use swap_ssa_operands.
16527 * tree-flow.h: Move various prototypes to tree-phinodes.h.
16528 (enum need_phi_state): Move to tree-into-ssa.c.
16529 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
16530 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
16531 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
16532 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
16533 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
16534 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
16535 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
16536 num_imm_uses): Move to ssa-iterators.h.
16537 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
16538 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
16539 tree-phinodes.h.
16540 (op_iter_done, op_iter_next_def, op_iter_next_tree,
16541 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
16542 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
16543 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
16544 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
16545 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
16546 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
16547 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
16548 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
16549 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
16550 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
16551 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
16552 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
16553 (set_phi_nodes): Move to tree-phinodes.h.
16554 * tree-ssa-operands.h (enum ssa_op_iter_type,
16555 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
16556 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
16557 (dump_decl_set): Remove prototype.
16558 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
16559 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
16560 (set_phi_nodes): Relocate from tree-flow-inline.h.
16561 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
16562 tree-flow-inline.h
16563 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
16564 include list. Temporarily add gimple.h to include list.
16565 * ssa-iterators.h: New file.
16566 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
16567 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
16568 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
16569 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
16570 Relocate from tree-ssa-operands.h.
16571 (delink_imm_use, link_imm_use_to_list, link_imm_use,
16572 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
16573 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
16574 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
16575 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
16576 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
16577 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
16578 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
16579 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
16580 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
16581 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
16582 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
16583 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
16584 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
16585 Relocate from tree-flow-inline.h.
16586 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
16587
16588 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
16589
16590 * aarch64-simd.md
16591 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
16592 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
16593 Insert '\t' to output template.
16594 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
16595 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
16596 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
16597 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
16598
16599 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
16600
16601 * doc/install.texi (Host/target specific installation notes for GCC):
16602 Put @anchor before @heading.
16603 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
16604 Use @email for email addresses.
16605
16606 2013-10-01 Jeff Law <law@redhat.com>
16607
16608 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
16609 a vec. Only delete the path if we create one without successfully
16610 registering a jump thread.
16611 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
16612 as a pointer.
16613 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
16614 (paths): New vector of jump threading paths.
16615 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
16616 (THREAD_PATH): New accessor macro for the entire thread path.
16617 (lookup_redirection_data): Get intermediate and final outgoing edge
16618 from the thread path.
16619 (create_edge_and_update_destination_phis): Copy the threading path.
16620 (ssa_fix_duplicate_block_edges): Get edges and block types from the
16621 jump threading path.
16622 (ssa_redirect_edges): Get edges and block types from the jump threading
16623 path. Free the path vector.
16624 (thread_block): Get edges from the jump threading path. Look at the
16625 entire path to see if we thread to a loop exit. If we cancel a jump
16626 thread request, then free the path vector.
16627 (thread_single_edge): Get edges and block types from the jump threading
16628 path. Free the path vector.
16629 (thread_through_loop_header): Get edges and block types from the jump
16630 threading path. Free the path vector.
16631 (mark_threaded_blocks): Iterate over the vector of paths and store
16632 the path on the appropriate edge. Get edges and block types from the
16633 jump threading path.
16634 (mark_threaded_blocks): Get edges and block types from the jump
16635 threading path. Free the path vector.
16636 (thread_through_all_blocks): Use the vector of paths rather than
16637 a vector of 3-edge sets.
16638 (register_jump_thread): Accept pointer to a path vector rather
16639 than the path vector itself. Store the path vector for later use.
16640 Simplify.
16641
16642 2013-10-01 Jakub Jelinek <jakub@redhat.com>
16643 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16644
16645 PR target/58574
16646 * config/s390/s390.c (s390_split_branches): Modify check for table
16647 jump insns.
16648 (s390_chunkify_start): Rearrange table jump insn check in order to
16649 deal with compare and branch insns correctly.
16650
16651 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
16652
16653 PR target/58578
16654 Revert
16655 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
16656 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
16657 define_insn_and_split.
16658 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
16659 (shiftsi3_compare): New pattern.
16660 (rrx): New pattern.
16661 * config/arm/unspecs.md (UNSPEC_RRX): New.
16662
16663 2013-10-01 Alan Modra <amodra@gmail.com>
16664
16665 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
16666 casing inout operands.
16667
16668 2013-10-01 Richard Biener <rguenther@suse.de>
16669
16670 PR tree-optimization/58553
16671 * tree-loop-distribution.c (struct partition_s): Add niter member.
16672 (classify_partition): Populate niter member for the partition
16673 and properly identify whether the relevant store happens before
16674 or after the loop exit.
16675 (generate_memset_builtin): Use niter member from the partition.
16676 (generate_memcpy_builtin): Likewise.
16677
16678 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
16679
16680 * vec.h (vec_prefix, vec): Prefix member names with "m_".
16681 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
16682
16683 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
16684
16685 * basic-block.h (edge_list): Prefix member names with "m_".
16686 * context.h (context): Likewise.
16687 * domwalk.h (dom_walker): Likewise.
16688 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
16689 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
16690 * hash-table.h (hash_table): Likewise.
16691 * machmode.h (bit_field_mode_iterator): Likewise.
16692 * pass_manager.h (pass_list): Likewise.
16693 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
16694 * tree-pass.h (pass_data): Likewise.
16695 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
16696 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
16697 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
16698 * asan.c (pass_data_asan): Update accordingly.
16699 * cfganal.c (control_dependences::find_control_dependence): Likewise.
16700 (control_dependences::control_dependences): Likewise.
16701 (control_dependences::~control_dependences): Likewise.
16702 (control_dependences::~control_dependences): Likewise.
16703 (control_dependences::get_edges_dependent_on): Likewise.
16704 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
16705 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
16706 * context.c (gcc::context::context): Likewise.
16707 * cprop.c (pass_rtl_cprop::clone): Likewise.
16708 * domwalk.c (dom_walker::walk): Likewise.
16709 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
16710 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
16711 * mode-switching.c (pass_mode_switching::clone): Likewise.
16712 * passes.c (opt_pass::opt_pass): Likewise.
16713 (pass_manager::pass_manager): Likewise.
16714 * predict.c (pass_strip_predict_hints::clone): Likewise.
16715 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
16716 (pass_split_all_insns::clone): Likewise.
16717 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
16718 Likewise.
16719 (bit_field_mode_iterator::next_mode): Likewise.
16720 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
16721 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
16722 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
16723 * tree-complex.c (pass_lower_complex::clone): Likewise.
16724 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
16725 * tree-object-size.c (pass_object_sizes::clone): Likewise.
16726 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
16727 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
16728 (pass_fold_builtins::clone): Likewise.
16729 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
16730 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
16731 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
16732 (pass_cd_dce::clone): Likewise.
16733 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
16734 (pass_phi_only_cprop::clone): Likewise.
16735 * tree-ssa-dse.c (pass_dse::clone): Likewise.
16736 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
16737 * tree-ssa-loop.c (pass_lim::clone): Likewise.
16738 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
16739 * tree-ssa-pre.c (pass_fre::clone): Likewise.
16740 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
16741 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
16742 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
16743 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
16744 * tree-vrp.c (pass_vrp::clone): Likewise.
16745 * tsan.c (pass_tsan::clone): Likewise.
16746
16747 2013-09-30 Jakub Jelinek <jakub@redhat.com>
16748
16749 PR middle-end/58564
16750 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
16751 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
16752
16753 PR middle-end/58564
16754 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
16755 optimization, punt if sign_bit_p looked through any zero extension.
16756
16757 2013-09-30 Teresa Johnson <tejohnson@google.com>
16758
16759 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
16760 Update redirected out edge count in joiner case.
16761 (ssa_redirect_edges): Common the joiner and non-joiner cases
16762 so that joiner case gets profile updates.
16763
16764 2013-09-30 Richard Biener <rguenther@suse.de>
16765
16766 PR tree-optimization/58554
16767 * tree-loop-distribution.c (classify_partition): Require
16768 unconditionally executed stores for memcpy and memset recognition.
16769 (tree_loop_distribution): Calculate dominance info.
16770
16771 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
16772
16773 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
16774 (NO_PROFILE_COUNTERS): Likewise.
16775 (PROFILE_HOOK): Likewise.
16776 (FUNCTION_PROFILER): Likewise.
16777 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
16778
16779 2013-09-30 Iain Sandoe <iain@codesourcery.com>
16780
16781 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
16782 calls and defines in TARGET_MACHO conditional.
16783 (load_macho_picbase_di): Likewise.
16784 (reload_macho_picbase): Likewise.
16785 (reload_macho_picbase_si): Likewise.
16786 (reload_macho_picbase_di): Likewise.
16787 (nonlocal_goto_receiver): Likewise.
16788
16789 2013-09-30 Nick Clifton <nickc@redhat.com>
16790
16791 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
16792 that use the MSP430X ISA.
16793 (msp430_option_override): Scan -mmcu command line option for any
16794 MCU name that supports the MSP430X ISA.
16795 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
16796 -mmcu options which enable the MSP430X ISA.
16797
16798 2013-09-30 Richard Biener <rguenther@suse.de>
16799
16800 PR middle-end/58532
16801 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
16802 before looking for setjmp-like calls.
16803
16804 2013-09-29 Iain Sandoe <iain@codesourcery.com>
16805
16806 PR target/10901
16807 * config/darwin-protos.h (machopic_get_function_picbase): New.
16808 * config/darwin.c (machopic_get_function_picbase): New.
16809 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
16810 label for a new func. (load_macho_picbase_di): Likewise.
16811 (reload_macho_picbase): New expand.
16812 (reload_macho_picbase_si): New insn.
16813 (reload_macho_picbase_di): New insn.
16814 (nonlocal_goto_receiver): New define and split.
16815 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
16816 (unspecv enum): Add UNSPECV_NLGR.
16817
16818 2013-09-29 Iain Sandoe <iain@codesourcery.com>
16819
16820 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
16821 that altivec registers are correctly sized on Darwin.
16822
16823 2013-09-29 Iain Sandoe <iain@codesourcery.com>
16824
16825 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
16826 darwin-driver.o): Use COMPILE and POSTCOMPILE.
16827 * config/x-darwin (host-darwin.o): Likewise.
16828 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
16829 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
16830 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
16831
16832 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
16833
16834 * doc/invoke.texi: Fix usage of @tie{} command.
16835
16836 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
16837
16838 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
16839
16840 2013-09-28 Jan Hubicka <jh@suse.cz>
16841
16842 * config/i386/x86-tune.def: Add documentation for each of the options;
16843 add whitespace.
16844
16845 2013-09-28 Jan Hubicka <jh@suse.cz>
16846
16847 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
16848 generic.
16849 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
16850 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
16851 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
16852 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
16853 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
16854
16855 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
16856
16857 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
16858 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
16859 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
16860 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
16861 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
16862 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
16863 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
16864 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
16865 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
16866 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
16867 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
16868 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
16869 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
16870 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
16871 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
16872 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
16873 gimple.h, godump.c, graphite-clast-to-gimple.c,
16874 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
16875 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
16876 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
16877 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
16878 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
16879 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
16880 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
16881 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
16882 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
16883 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
16884 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
16885 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
16886 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
16887 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
16888 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
16889 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
16890 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
16891 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
16892 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
16893 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
16894 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
16895 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
16896 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
16897 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
16898 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
16899 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16900 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
16901 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
16902 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
16903 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
16904 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
16905 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
16906 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
16907 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
16908 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
16909 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
16910 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
16911 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
16912 whitespace before "(".
16913
16914 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
16915
16916 * expr.h (extract_bit_field): Remove packedp parameter.
16917 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
16918 from forward declaration.
16919 (store_split_bit_field): Remove packedp arg from calls to
16920 extract_fixed_bit_field.
16921 (extract_bit_field_1): Remove packedp parameter and packedp
16922 argument from recursive calls and calls to extract_fixed_bit_field.
16923 (extract_bit_field): Remove packedp parameter and corresponding
16924 arg to extract_bit_field_1.
16925 (extract_fixed_bit_field): Remove packedp parameter. Remove code
16926 to issue warnings.
16927 (extract_split_bit_field): Remove packedp arg from call to
16928 extract_fixed_bit_field.
16929 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
16930 (copy_blkmode_from_reg): Likewise.
16931 (copy_blkmode_to_reg): Likewise.
16932 (read_complex_part): Likewise.
16933 (store_field): Likewise.
16934 (expand_expr_real_1): Likewise.
16935 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
16936 to extract_bit_field.
16937 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
16938 call to extract_bit_field.
16939 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
16940 call to extract_bit_field.
16941 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
16942 and special packedp behavior from -fstrict-volatile-bitfields
16943 documentation.
16944
16945 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16946
16947 * lra-eliminations.c (init_elim_table): Guard value_p.
16948
16949 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
16950
16951 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
16952 DFmode, DImode, and SFmode in the upper VSX registers based on the
16953 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
16954 if -mpower8-vector. Combine -mvsx-timode handling with the rest
16955 of the VSX register handling.
16956
16957 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
16958 (f32_sv): Likewise.
16959 (zero_extendsidi2_lfiwzx): Add support for loading into the
16960 Altivec registers with -mpower8-vector. Use wu/wv constraints to
16961 only do VSX memory options on Altivec registers.
16962 (extendsidi2_lfiwax): Likewise.
16963 (extendsfdf2_fpr): Likewise.
16964 (mov<mode>_hardfloat, SF/SD modes): Likewise.
16965 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
16966 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
16967 (movdi_internal64): Likewise.
16968
16969 2013-09-27 Xinliang David Li <davidxl@google.com>
16970
16971 * opts.c (finish_options): Adjust parameters
16972 according to vect cost model.
16973 (common_handle_option): Set dynamic vect cost
16974 model for FDO.
16975 targhooks.c (default_add_stmt_cost): Compute stmt cost
16976 unconditionally.
16977 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
16978 Use helper function.
16979 * tree-vectorizer.h (unlimited_cost_model): New function.
16980 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
16981 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
16982 function.
16983 (vect_enhance_data_refs_alignment): Ditto.
16984 * flag-types.h: New enum.
16985 * common/config/i386/i386-common.c (ix86_option_init_struct):
16986 No need to initialize vect_cost_model flag.
16987 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
16988 unconditionally.
16989
16990 2013-09-27 Diego Novillo <dnovillo@google.com>
16991
16992 * gimple.h (enum ssa_mode): Remove.
16993
16994 2013-09-27 Paulo Matos <pmatos@broadcom.com>
16995
16996 * cfgloop.h (number_of_loops): Fix typo in check for null.
16997
16998 2013-09-27 Jakub Jelinek <jakub@redhat.com>
16999
17000 PR middle-end/58551
17001 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
17002 are children of outermost saved_cfun's loop, and set it up to
17003 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
17004 if loop != loop0 and SESE region contains bbs that belong to loop0.
17005
17006 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
17007
17008 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
17009 (binary_scale_code_p, get_base_term, get_index_term): New functions.
17010 (set_address_segment, set_address_base, set_address_index)
17011 (set_address_disp): Accept the argument unconditionally.
17012 (baseness): Remove must_be_base_p and must_be_index_p checks.
17013 (decompose_normal_address): Classify as much as possible in the
17014 main loop.
17015
17016 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
17017
17018 * cse.c (count_reg_usage): Handle INT_LIST.
17019 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
17020 * reginfo.c (reg_scan_mark_refs): Likewise.
17021 * reload1.c (eliminate_regs_1): Likewise.
17022
17023 2013-09-27 Iain Sandoe <iain@codesourcery.com>
17024
17025 PR middle-end/58547
17026 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
17027 signed.
17028
17029 2013-09-27 Richard Biener <rguenther@suse.de>
17030
17031 PR tree-optimization/58459
17032 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
17033 restriction not propagating into loops.
17034
17035 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
17036
17037 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
17038 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
17039 * doc/tree-ssa.texi (Walking use-def chains): Delete.
17040
17041 2013-09-26 Richard Biener <rguenther@suse.de>
17042
17043 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
17044
17045 2013-09-26 Richard Biener <rguenther@suse.de>
17046
17047 * alias.h (component_uses_parent_alias_set): Rename to ...
17048 (component_uses_parent_alias_set_from): ... this.
17049 * alias.c (component_uses_parent_alias_set): Rename to ...
17050 (component_uses_parent_alias_set_from): ... this and return
17051 the desired parent.
17052 (reference_alias_ptr_type_1): Use the result from
17053 component_uses_parent_alias_set_from instead of stripping
17054 components one at a time.
17055 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
17056
17057 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
17058
17059 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
17060 Move prototypes to...
17061 * tree-ssa-ter.h: New File. Move prototypes here.
17062 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
17063 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
17064 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
17065 from is_replaceable_p.
17066 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
17067 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
17068 (process_replaceable): Use ter_is_replaceable_p.
17069 (find_replaceable_in_bb): Use ter_is_replaceable_p.
17070 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
17071 newly refactored ssa_is_replaceable_p.
17072 * cfgexpand.c: Include tree-outof-ssa.h.
17073 * ssaexpand.h: Delete.
17074
17075 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
17076
17077 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
17078 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
17079 tree-ssa.c
17080 (create_gimple_tmp): Delete.
17081 (get_expr_type, build_assign, build_type_cast): Move to...
17082 * gimple-builder.c: New File.
17083 (get_expr_type): Relocate from gimple.c.
17084 (build_assign, build_type_cast): Change to only create ssanames.
17085 * gimple.h: Move prototypes to...
17086 * gimple-builder.h: New File. Here.
17087 * tree-ssa.h: And here.
17088 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
17089 count_uses_and_derefs): Relocate from gimple.c.
17090 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
17091 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
17092 * tree-ssa-math-opts (execute_cse_reciprocals): Use
17093 gimple_replace_ssa_lhs.
17094 * asan.c: Include gimple-builder.h.
17095 * Makefile.in: Add gimple-builder.o.
17096
17097 2013-09-26 Richard Biener <rguenther@suse.de>
17098
17099 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
17100 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
17101 (loe_visit_block): Use gcc_checking_assert.
17102 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
17103 gimple_assign_ssa_name_copy_p.
17104 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
17105 change.
17106
17107 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
17108
17109 * config/rs6000/t-rs6000 (rs6000.o): Remove.
17110 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
17111
17112 2013-09-26 Richard Biener <rguenther@suse.de>
17113
17114 PR tree-optimization/58539
17115 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
17116 the fact that debug statements are not taking part in loop-closed
17117 SSA construction.
17118
17119 2013-09-26 Nick Clifton <nickc@redhat.com>
17120
17121 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
17122 time warning message.
17123 (msp430_print_operand_raw): Delete unused letter parameter.
17124 (TARGET_PRINT_OPERAND_ADDRESS): Define.
17125 (msp430_print_operand_address): New function.
17126 (msp430_print_operand): Move address printing code from here to
17127 new function.
17128 * config/msp430/msp430.md (movsipsi2): Add comment in generated
17129 assembler.
17130 (zero_extendpsisi2): Likewise.
17131 (extendpsisi2): New pattern.
17132 (andneghi3): New pattern.
17133
17134 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
17135
17136 * config/aarch64/aarch64.opt (mlra): New option.
17137 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
17138 (TARGET_LRA_P): Define.
17139
17140 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
17141
17142 * expr.c (expand_assignment): Remove obsolete comment.
17143
17144 2013-09-25 Jeff Law <law@redhat.com>
17145
17146 * tree-flow.h (thread_through_all_blocks): Prototype moved into
17147 tree-ssa-threadupdate.h.
17148 (register_jump_thread): Similarly.
17149 * tree-ssa-threadupdate.h: New header file.
17150 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
17151 * tree-vrp.c: Likewise.
17152 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
17153 (thread_around_empty_blocks): Change type of path vector argument to
17154 an edge,type pair from just an edge. Initialize both elements when
17155 appending to a jump threading path. Tweak references to elements
17156 appropriately.
17157 (thread_across_edge): Similarly. Release memory for the elements
17158 as needed.
17159 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
17160 (dump_jump_thread_path): New function broken out from
17161 register_jump_thread.
17162 (register_jump_thread): Use dump_jump_thread_path. Change type of
17163 path vector entries. Search the path for NULL edges and dump
17164 the path if one is found. Tweak the conversion of path to 3-edge
17165 form to use the block copy type information embedded in the path.
17166
17167 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
17168
17169 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
17170
17171 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
17172 Vladimir Makarov <vmakarov@redhat.com>
17173
17174 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
17175 from the least significant bit.
17176 (strip_address_mutations): Add bitfield operations handling.
17177 (must_be_index_p): Add shifting and rotate operations handling.
17178 (set_address_base): Use must_be_base_p predicate.
17179 (set_address_index): Use must_be_index_p predicate.
17180
17181 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
17182 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17183 Sergey Lega <sergey.s.lega@intel.com>
17184 Anna Tikhonova <anna.tikhonova@intel.com>
17185 Ilya Tocar <ilya.tocar@intel.com>
17186 Andrey Turetskiy <andrey.turetskiy@intel.com>
17187 Ilya Verbin <ilya.verbin@intel.com>
17188 Kirill Yukhin <kirill.yukhin@intel.com>
17189 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17190
17191 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
17192 Use new names.
17193 (ix86_expand_vector_move_misalign): Support new unaligned load and
17194 stores and use new names.
17195 (CODE_FOR_sse2_storedqu): Rename to ...
17196 (CODE_FOR_sse2_storedquv16qi): ... this.
17197 (CODE_FOR_sse2_loaddqu): Rename to ...
17198 (CODE_FOR_sse2_loaddquv16qi): ... this.
17199 (CODE_FOR_avx_loaddqu256): Rename to ...
17200 (CODE_FOR_avx_loaddquv32qi): ... this.
17201 (CODE_FOR_avx_storedqu256): Rename to ...
17202 (CODE_FOR_avx_storedquv32qi): ... this.
17203 * config/i386/i386.md (fpint_logic): New.
17204 * config/i386/sse.md (VMOVE): Extend for AVX512.
17205 (VF): Ditto.
17206 (VF_128_256): New.
17207 (VF_512): Ditto.
17208 (VI_UNALIGNED_LOADSTORE): Ditto.
17209 (sse2_avx_avx512f): Ditto.
17210 (sse2_avx2): Extend for AVX512.
17211 (sse4_1_avx2): Ditto.
17212 (avx2_avx512f): New.
17213 (sse): Extend for AVX512.
17214 (sse2): Ditto.
17215 (sse4_1): Ditto.
17216 (avxsizesuffix): Ditto.
17217 (sseintvecmode): Ditto.
17218 (ssePSmode): Ditto.
17219 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
17220 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
17221 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
17222 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
17223 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
17224 (<sse2_avx_avx512f>_storedqu<mode): ... this.
17225 (<sse>_movnt<mode>): Replace constraint "x" with "v".
17226 (STORENT_MODE): Extend for AVX512.
17227 (*absneg<mode>2): Replace constraint "x" with "v".
17228 (*mul<mode>3): Ditto.
17229 (*ieee_smin<mode>3): Ditto.
17230 (*ieee_smax<mode>3): Ditto.
17231 (avx_cmp<mode>3): Replace VF with VF_128_256.
17232 (*<sse>_maskcmp<mode>3_comm): Ditto.
17233 (<sse>_maskcmp<mode>3): Ditto.
17234 (<sse>_andnot<mode>3): Extend for AVX512.
17235 (<code><mode>3, anylogic): Replace VF with VF_128_256.
17236 (<code><mode>3, fpint_logic): New.
17237 (*<code><mode>3): Extend for AVX512.
17238 (avx512flogicsuff): New.
17239 (avx512f_<logic><mode>): Ditto.
17240 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
17241 VF_128_256.
17242 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
17243 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
17244 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
17245 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
17246 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
17247 (xop_vpermil2<mode>3): Ditto.
17248 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
17249 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
17250 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
17251 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
17252
17253 2013-09-25 Tom Tromey <tromey@redhat.com>
17254
17255 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
17256 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
17257 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
17258 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
17259 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
17260 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
17261 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
17262 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
17263 (GRAPHITE_HTAB_H): Remove.
17264
17265 2013-09-25 Tom Tromey <tromey@redhat.com>
17266
17267 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
17268
17269 2013-09-25 Tom Tromey <tromey@redhat.com>
17270
17271 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
17272
17273 2013-09-25 Tom Tromey <tromey@redhat.com>
17274
17275 * config/i386/t-i386 (i386.o): Remove.
17276 (i386-c.o): Use COMPILE and POSTCOMPILE.
17277
17278 2013-09-25 Tom Tromey <tromey@redhat.com>
17279
17280 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
17281
17282 2013-09-25 Tom Tromey <tromey@redhat.com>
17283
17284 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
17285 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
17286 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
17287 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
17288 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
17289 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
17290 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
17291 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
17292 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
17293 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
17294 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
17295 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
17296 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
17297 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
17298 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
17299 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
17300 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
17301 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
17302 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
17303 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
17304 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
17305 (tree-ssa-pre.o, tree-ssa-sccvn.o)
17306 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
17307 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
17308 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
17309 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
17310 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
17311 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
17312 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
17313 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
17314 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
17315 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
17316 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
17317 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
17318 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
17319 (graphite-clast-to-gimple.o, graphite-dependences.o)
17320 (graphite-interchange.o, graphite-poly.o)
17321 (graphite-scop-detection.o, graphite-sese-to-poly.o)
17322 (graphite-optimize-isl.o, tree-vect-loop.o)
17323 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
17324 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
17325 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
17326 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
17327 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
17328 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
17329 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
17330 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
17331 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
17332 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
17333 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
17334 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
17335 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
17336 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
17337 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
17338 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
17339 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
17340 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
17341 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
17342 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
17343 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
17344 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
17345 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
17346 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
17347 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
17348 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
17349 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
17350 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
17351 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
17352 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
17353 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
17354 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
17355 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
17356 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
17357 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
17358 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
17359 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
17360 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
17361 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
17362 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
17363 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
17364 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
17365 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
17366 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
17367 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
17368 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
17369 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
17370 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
17371 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
17372 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
17373 (gcov-dump.o): Remove.
17374 (default-c.o): Use COMPILE and POSTCOMPILE.
17375 (CFLAGS-gcc.o): New variable.
17376 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
17377
17378 2013-09-25 Tom Tromey <tromey@redhat.com>
17379
17380 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
17381 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
17382 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
17383 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
17384 (c-family/c-pragma.o, c-family/c-pretty-print.o)
17385 (c-family/c-semantics.o, c-family/c-ada-spec.o)
17386 (c-family/array-notation-common.o, c-family/stub-objc.o)
17387 (c-family/c-ubsan.o): Remove.
17388
17389 2013-09-25 Tom Tromey <tromey@redhat.com>
17390
17391 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
17392
17393 2013-09-25 Tom Tromey <tromey@redhat.com>
17394
17395 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
17396 to add -DENABLE_SHARED_LIBGCC.
17397 (gcc.o): Don't use subshell.
17398
17399 2013-09-25 Tom Tromey <tromey@redhat.com>
17400
17401 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
17402 * configure.ac: Don't invoke AM_PROG_CC_C_O.
17403 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
17404 * configure, config.in: Rebuild.
17405
17406 2013-09-25 Tom Tromey <tromey@redhat.com>
17407
17408 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
17409 (COMPILE, POSTCOMPILE): New variables.
17410 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
17411 (DEPFILES): New variable.
17412 Include ".Po" files.
17413 * configure.ac: Add checks for dependency checking.
17414 * configure, aclocal.m4: Regenerate.
17415
17416 2013-09-25 Tom Tromey <tromey@redhat.com>
17417
17418 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
17419 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
17420
17421 2013-09-25 Tom Tromey <tromey@redhat.com>
17422
17423 * Makefile.in (generated_files): Add options.h,
17424 target-hooks-def.h, insn-opinit.h,
17425 common/common-target-hooks-def.h, pass-instances.def,
17426 c-family/c-target-hooks-def.h.
17427
17428 2013-09-25 Jeff Law <law@redhat.com>
17429
17430 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
17431 than foo[foo.length () - 1] to access last member in a vec.
17432 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
17433
17434 2013-09-25 Richard Biener <rguenther@suse.de>
17435
17436 PR middle-end/58521
17437 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
17438
17439 2013-09-25 Jan Hubicka <jh@suse.cz>
17440
17441 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
17442 test.
17443
17444 2013-09-25 Marek Polacek <polacek@redhat.com>
17445
17446 PR sanitizer/58420
17447 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
17448 when determining the type name.
17449
17450 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
17451
17452 * config/sh/sh.md: Fix formatting.
17453
17454 2013-09-24 Xinliang David Li <davidxl@google.com>
17455
17456 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
17457 max peel iterations parameter.
17458 * param.def: New parameter.
17459 * doc/invoke.texi: Document New parameter.
17460
17461 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
17462
17463 * gimple-pretty-print.c: Various whitespace tweaks.
17464 * tree-core.h: Likewise.
17465 * tree-pretty-print.c: Likewise.
17466 * tree-ssa-alias.c: Likewise.
17467 * tree-ssa-copy.c: Likewise.
17468 * tree-ssanames.c: Likewise.
17469 * tree-ssanames.h: Likewise.
17470 * tree-vrp.c: Likewise.
17471
17472 2013-09-24 Alan Modra <amodra@gmail.com>
17473
17474 PR middle-end/57134
17475 PR middle-end/57586
17476 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
17477 for output operands that disallow regs. Don't use EXPAND_WRITE on
17478 inout operands.
17479
17480 2013-09-24 Richard Biener <rguenther@suse.de>
17481
17482 PR middle-end/58513
17483 * tree.c (reference_alias_ptr_type): Move ...
17484 * alias.c (reference_alias_ptr_type): ... here and implement
17485 in terms of the new reference_alias_ptr_type_1.
17486 (ref_all_alias_ptr_type_p): New helper.
17487 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
17488 use ref_all_alias_ptr_type_p.
17489 (get_deref_alias_set): Add flag_strict_aliasing check here.
17490 (reference_alias_ptr_type_1): New function, split out from ...
17491 (get_alias_set): ... here.
17492 (alias_ptr_types_compatible_p): New function.
17493 * alias.h (reference_alias_ptr_type): Declare.
17494 (alias_ptr_types_compatible_p): Likewise.
17495 * tree.h (reference_alias_ptr_type): Remove.
17496 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
17497 to compare MEM_REF alias types.
17498
17499 2013-09-24 Richard Biener <rguenther@suse.de>
17500
17501 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
17502
17503 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
17504
17505 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
17506 reload helper function arrays into a single array reg_addr.
17507 (reload_fpr_gpr): Likewise.
17508 (reload_gpr_vsx): Likewise.
17509 (reload_vsx_gpr): Likewise.
17510 (struct rs6000_reg_addr): Likewise.
17511 (reg_addr): Likewise.
17512 (rs6000_debug_reg_global): Change rs6000_vector_reload,
17513 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
17514 (rs6000_init_hard_regno_mode_ok): Likewise.
17515 (rs6000_secondary_reload_direct_move): Likewise.
17516 (rs6000_secondary_reload): Likewise.
17517
17518 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
17519 constraints: wu, ww, and wy. Repurpose wv constraint added during
17520 power8 changes. Put wg constraint in alphabetical order.
17521
17522 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
17523 for future work to add ISA 2.07 VSX single precision support.
17524 (-mvsx-scalar-double): Change default from -1 to 1, update
17525 documentation comment.
17526 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
17527 (-mupper-regs-df): New debug switch to control whether DF values
17528 can go in the traditional Altivec registers.
17529 (-mupper-regs-sf): New debug switch to control whether SF values
17530 can go in the traditional Altivec registers.
17531
17532 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
17533 and wy constraints.
17534 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
17535 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
17536 Add new constraints, wu/ww/wy. Repurpose wv constraint.
17537 (rs6000_debug_legitimate_address_p): Print if we are running
17538 before, during, or after reload.
17539 (rs6000_secondary_reload): Add a comment.
17540 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
17541
17542 * config/rs6000/constraints.md (wa constraint): Sort w<x>
17543 constraints. Update documentation string.
17544 (wd constraint): Likewise.
17545 (wf constraint): Likewise.
17546 (wg constraint): Likewise.
17547 (wn constraint): Likewise.
17548 (ws constraint): Likewise.
17549 (wt constraint): Likewise.
17550 (wx constraint): Likewise.
17551 (wz constraint): Likewise.
17552 (wu constraint): New constraint for ISA 2.07 SFmode scalar
17553 instructions.
17554 (ww constraint): Likewise.
17555 (wy constraint): Likewise.
17556 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
17557 in the previous submissions.
17558 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
17559
17560 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
17561
17562 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
17563 (REG_BR_PROB): Say that the probability is stored in an int_list.
17564 * reg-notes.def: Update commentary to mention INT_LIST.
17565 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
17566 (INT_LIST): New rtx.
17567 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
17568 * rtlanal.c (int_reg_note_p): New function.
17569 (alloc_reg_note): Assert that the note does not have an int argument.
17570 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
17571 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
17572 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
17573 rather than an INSN_LIST. Handle INT_LIST.
17574 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
17575 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
17576 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
17577 Manipulate them as ints rather than rtxes.
17578 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
17579 * regmove.c (copy_src_to_dest): Likewise.
17580 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
17581
17582 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
17583 into the cases that need it.
17584 * config/arm/arm.c (arm_unwind_emit): Likewise.
17585
17586 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
17587 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
17588 * loop-doloop.c (add_test, doloop_modify): Likewise.
17589 * loop-unswitch.c (compare_and_jump_seq): Likewise.
17590 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
17591 * predict.c (combine_predictions_for_insn): Likewise.
17592 * print-rtl.c (print_rtx): Handle INT_LIST.
17593 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
17594 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
17595 * config/arm/arm.c (emit_unlikely_jump): Likewise.
17596 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
17597 (ix86_split_fp_branch, predict_jump): Likewise.
17598 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
17599 * config/sh/sh.c (expand_cbranchsi4): Likewise.
17600 * config/spu/spu.c (ea_load_store_inline): Likewise.
17601
17602 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
17603 value of a REG_BR_PROB note.
17604 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
17605 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
17606 * emit-rtl.c (try_split): Likewise.
17607 * predict.c (br_prob_note_reliable_p): Likewise.
17608 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
17609 * reorg.c (mostly_true_jump): Likewise.
17610 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
17611 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
17612 * config/i386/i386.c (ix86_print_operand): Likewise.
17613 * config/ia64/ia64.c (ia64_print_operand): Likewise.
17614 * config/mmix/mmix.c (mmix_print_operand): Likewise.
17615 * config/rs6000/rs6000.c (output_cbranch): Likewise.
17616 * config/s390/s390.c (s390_expand_tbegin): Likewise.
17617 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
17618 * config/sparc/sparc.c (output_cbranch): Likewise.
17619 * config/spu/spu.c (get_branch_target): Likewise.
17620 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
17621 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
17622
17623 2013-09-23 Jan Hubicka <jh@suse.cz>
17624
17625 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
17626 for ipa-devirt.
17627 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
17628 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
17629 of external calls
17630 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
17631 (gimple_fold_call): Dump inconsistent devirtualizations; add
17632 sanity check for type based devirtualizations.
17633 * ipa-prop.c: Include ipa-utils.h
17634 (ipa_intraprocedural_devirtualization): Add sanity check.
17635 (try_make_edge_direct_virtual_call): Likewise.
17636
17637 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
17638
17639 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
17640 assignment statements.
17641
17642 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
17643
17644 * gimple-pretty-print.c (dump_ssaname_info): New function.
17645 (dump_gimple_phi): Call it.
17646 (pp_gimple_stmt_1): Likewise.
17647 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
17648 (range_info_def): Declare.
17649 * tree-pretty-print.c (pp_double_int): New function.
17650 (dump_generic_node): Call it.
17651 * tree-pretty-print.h (pp_double_int): Declare.
17652 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
17653 * tree-ssanames.h (range_info_def): New structure.
17654 (value_range_type): Move definition here.
17655 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
17656 Declare.
17657 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
17658 initialization.
17659 (set_range_info): New function.
17660 (get_range_info): Likewise.
17661 (duplicate_ssa_name_range_info): Likewise.
17662 (duplicate_ssa_name_fn): Check pointer type and call
17663 duplicate_ssa_name_range_info.
17664 * tree-ssa-copy.c (fini_copy_prop): Likewise.
17665 * tree-vrp.c (value_range_type): Remove definition, now in
17666 tree-ssanames.h.
17667 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
17668 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
17669 (SSA_NAME_RANGE_INFO): New macro.
17670
17671 2013-09-23 Richard Biener <rguenther@suse.de>
17672
17673 PR tree-optimization/58464
17674 * tree-ssa-pre.c (phi_trans_lookup): Remove.
17675 (phi_trans_add): Change to add conditionally on being not present.
17676 (phi_translate_1): Remove recursion detection here.
17677 (phi_translate): Pre-seed the cache with NULL to catch
17678 recursion here in a more generic way.
17679 (bitmap_find_leader): Adjust comment.
17680 (get_representative_for): Dump value-numbers.
17681 (create_expression_by_pieces): Likewise.
17682 (insert_into_preds_of_block): Likewise.
17683
17684 2013-09-23 Christian Bruel <christian.bruel@st.com>
17685
17686 PR target/58475
17687 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
17688 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
17689
17690 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
17691
17692 Revert r202780:
17693 2013-09-20 Renlin Li <renlin.li@arm.com>
17694
17695 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
17696 plus_constant.
17697 (aarch64_expand_epilogue): Likewise.
17698 (aarch64_legitimize_reload_address): Likewise.
17699
17700 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
17701
17702 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
17703 NULL_TREE before pushing them onto the vector. Likewise for labels.
17704
17705 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
17706
17707 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
17708 comparison operators when -fno-trapping-math is in effect.
17709 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
17710 comparison operators in TFmode and assert that unsupported operators
17711 cannot reach here.
17712 (ia64_print_operand): Likewise.
17713
17714 2013-09-21 Jan Hubicka <jh@suse.cz>
17715
17716 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
17717 (sse_typeless_stores): Enable for core
17718 (sse_load0_by_pxor): Likewise.
17719 (four_jump_limit): Disable for core.
17720 (pad_returns): Likewise.
17721 (avoid_vector_decode): Likewise.
17722 (fuse_cmp_and_branch): Enable for cores.
17723 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
17724
17725 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
17726
17727 PR middle-end/56791
17728 * config/pa/pa.c (pa_option_override): Disable auto increment and
17729 decrement instructions until reload is completed.
17730
17731 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
17732 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
17733 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
17734
17735 2013-09-20 DJ Delorie <dj@redhat.com>
17736 Nick Clifton <nickc@redhat.com>
17737
17738 * config/rl78/rl78.c: Various whitespace and comment tweaks.
17739 (need_to_save): Save bank 0 on interrupts.
17740 (characterize_address): Strip far address wrappers.
17741 (rl78_as_legitimate_address): Likewise.
17742 (transcode_memory_rtx): Likewise.
17743 (rl78_peep_movhi_p): Disable this peephole after devirt.
17744 (rl78_propogate_register_origins): Forget all origins when a
17745 CLOBBER is seen.
17746 * config/rl78/rl78-virt.md: Various whitespace tweaks.
17747 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
17748 peephole2's.
17749 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
17750 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
17751 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
17752 relocating.
17753 * config/rl78/constraints.md: Various whitespace and paren tweaks.
17754
17755 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
17756
17757 * config/pa/pa.md: In "scc" insn patterns, change output template to
17758 handle const0_rtx in reg_or_0_operand operands.
17759
17760 2013-09-20 Martin Husemann <martin@NetBSD.org>
17761
17762 PR target/56875
17763 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
17764 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
17765
17766 2013-09-20 Richard Biener <rguenther@suse.de>
17767
17768 PR middle-end/58484
17769 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
17770 remembering SSA name version and block index.
17771 (new_scev_info_str): Adjust.
17772 (hash_scev_info): Likewise. Also hash the block index.
17773 (eq_scev_info): Adjust.
17774 (find_var_scev_info): Likewise.
17775 (struct instantiate_cache_entry): Remove.
17776 (struct instantiate_cache_type): Use a htab to map name, block
17777 to chrec.
17778 (instantiate_cache_type::~instantiate_cache_type): Adjust.
17779 (get_instantiated_value_entry): Likewise.
17780 (hash_idx_scev_info, eq_idx_scev_info): New functions.
17781 (instantiate_scev_name): Adjust.
17782
17783 2013-09-20 Jeff Law <law@redhat.com>
17784
17785 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
17786
17787 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
17788
17789 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
17790 Call aarch64_simd_expand_args to update op[argc].
17791
17792 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
17793
17794 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
17795 plugin argument.
17796
17797 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
17798
17799 * gengtype.c (file_rules): Added rule for *.cc files.
17800 (get_output_file_with_visibility): Give fatal message when no
17801 rules found.
17802
17803 2013-09-20 Renlin Li <renlin.li@arm.com>
17804
17805 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
17806 (aarch64_expand_epilogue): Likewise.
17807 (aarch64_legitimize_reload_address): Likewise.
17808
17809 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
17810
17811 PR middle-end/57748
17812 * expr.c (expand_assignment): Remove misalignp code path.
17813
17814 2013-09-20 Marek Polacek <polacek@redhat.com>
17815
17816 PR sanitizer/58413
17817 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
17818 TYPE_PRECISION. Add asserts.
17819
17820 2013-09-20 Richard Biener <rguenther@suse.de>
17821
17822 PR tree-optimization/58453
17823 * tree-loop-distribution.c (distribute_loop): Apply the cost
17824 model for -ftree-loop-distribute-patterns, too.
17825
17826 2013-09-20 Richard Biener <rguenther@suse.de>
17827
17828 PR middle-end/58473
17829 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
17830 make type comparison less strict.
17831
17832 2013-09-20 Alan Modra <amodra@gmail.com>
17833
17834 * configure: Regenerate.
17835 * aclocal.m4: Regenerate.
17836
17837 2013-09-20 Marek Polacek <polacek@redhat.com>
17838
17839 PR other/58467
17840 * doc/extend.texi: Document that attribute used is meant to be used
17841 on variables with static storage duration.
17842
17843 2013-09-19 Jakub Jelinek <jakub@redhat.com>
17844
17845 PR tree-optimization/58472
17846 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
17847 simd_lane_access set inv_p = false.
17848 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
17849 the simduid magic VAR_DECL.
17850
17851 2013-09-19 Jan Hubicka <jh@suse.cz>
17852
17853 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
17854
17855 2013-09-17 Jeff Law <law@redhat.com>
17856
17857 * tree-ssa-dom.c (record_temporary_equivalences): New function
17858 split out of dom_opt_dom_walker::after_dom_children.
17859 (dom_opt_dom_walker::thread_across_edge): Move common code
17860 in here from dom_opt_dom_walker::after_dom_children.
17861 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
17862
17863 2013-09-19 Jan Hubicka <jh@suse.cz>
17864
17865 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
17866 (TARGET_GENERIC): Use PROCESOR_GENERIC
17867 (enum processor_type): Unify generic32 and 64.
17868 * i386.md (cpu): Likewise.
17869 * x86-tune.def (use_leave): Enable for generic32.
17870 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
17871 * athlon.md: Change generic64 to generic in all occurences.
17872 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
17873 (ix86_target_macros_internal): Likewise.
17874 * driver-i386.c (host_detect_local_cpu): Likewise.
17875 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
17876 to ..
17877 (generic_memcpy, generic_memset, generic_cost): This one.
17878 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
17879 (m_GENERIC32, m_GENERIC64): Remove.
17880 (m_GENERIC): Turn into one flag.
17881 (processor_target): Unify generic tunnings.
17882 (ix86_option_override_internal): Replace generic32/64 by generic.
17883 (ix86_issue_rate): Likewise.
17884 (ix86_adjust_cost): Likewise.
17885
17886 2013-09-19 Jan Hubicka <jh@suse.cz>
17887
17888 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
17889 of speculative flag.
17890
17891 2013-09-19 Jakub Jelinek <jakub@redhat.com>
17892
17893 * omp-low.c (expand_omp_sections): Always pass len - 1 to
17894 GOMP_sections_start, even if !exit_reachable.
17895
17896 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
17897
17898 * lra-constraints.c (need_for_all_save_p): Use macro
17899 HARD_REGNO_CALL_PART_CLOBBERED.
17900 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
17901 set up pseudo conflict hard regs.
17902
17903 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
17904
17905 PR target/58452
17906 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
17907 operands.
17908
17909 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
17910
17911 PR rtl-optimization/58438
17912 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
17913 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
17914 from previous subpasses.
17915
17916 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
17917
17918 * arm.c (arm_get_frame_offsets): Validate architecture supports
17919 LDRD/STRD before accepting the tuning preference.
17920 (arm_expand_prologue): Likewise.
17921 (arm_expand_epilogue): Likewise.
17922
17923 2013-09-18 Richard Biener <rguenther@suse.de>
17924
17925 PR tree-optimization/58417
17926 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
17927 have chrecs with symbols defined in the loop as operands.
17928 (chrec_fold_multiply): Likewise.
17929 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
17930 parameters before folding binary operations.
17931 (struct instantiate_cache_entry_hasher): Remove.
17932 (struct instantiate_cache_type): Use a pointer-map.
17933 (instantiate_cache_type::instantiate_cache_type): New function.
17934 (instantiate_cache_type::get): Likewise.
17935 (instantiate_cache_type::set): Likewise.
17936 (instantiate_cache_type::~instantiate_cache_type): Adjust.
17937 (get_instantiated_value_entry): Likewise.
17938 (global_cache): New global.
17939 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
17940 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
17941 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
17942 (instantiate_scev_name): Adjust.
17943 (instantiate_scev): Construct global instead of local cache.
17944 (resolve_mixers): Likewise.
17945
17946 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
17947 Paolo Carlini <paolo.carlini@oracle.com>
17948
17949 PR c++/58458
17950 * doc/implement-cxx.texi: Fix references to the C++ standards.
17951
17952 2013-09-18 Jakub Jelinek <jakub@redhat.com>
17953
17954 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
17955 * tree-vect-data-refs.c (vect_analyze_data_refs): For
17956 simd_lane_access drs, update also DR_ALIGNED_TO.
17957
17958 2013-09-18 Marek Polacek <polacek@redhat.com>
17959
17960 PR sanitizer/58411
17961 * doc/extend.texi: Document no_sanitize_undefined attribute.
17962 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
17963 no_sanitize_undefined attribute.
17964
17965 2013-09-18 Nick Clifton <nickc@redhat.com>
17966
17967 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
17968 (ASM_DECLARE_FUNCTION_NAME): Define.
17969
17970 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
17971
17972 * compare-elim.c (find_comparison_dom_walker): New class
17973 (find_comparisons_in_bb): Rename to
17974 find_comparison_dom_walker::before_dom_children
17975 (find_comparisons): Adjust
17976 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
17977 adjust.
17978 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
17979 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
17980 (init_walk_dominator_tree): Remove declaration.
17981 (fini_walk_dominator_tree): Remove declaration.
17982 * fwprop.c (single_def_use_dom_walker): New class
17983 (single_def_use_enter_block): Convert to
17984 single_def_use_dom_walker::before_dom_children.
17985 (single_def_use_leave_block): Convert to
17986 single_def_use_dom_walker::after_dom_children.
17987 (build_single_def_use_links): Adjust.
17988 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
17989 class.
17990 (find_candidates_in_block): Convert to
17991 find_candidates_dom_walker::before_dom_children.
17992 (execute_strength_reduction): Adjust.
17993 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
17994 (sese_dom_walker): New class.
17995 (sese_dom_walker::sese_dom_walker): New constructor.
17996 (sese_dom_walker::~sese_dom_walker): New destructor.
17997 (build_sese_conditions_before): Convert to
17998 sese_dom_walker::before_dom_children.
17999 (build_sese_conditions_after): Convert to
18000 sese_dom_walker::after_dom_children.
18001 (build_poly_scop): Adjust
18002 * tree-into-ssa.c (rewrite_dom_walker): New class
18003 (rewrite_enter_block): Convert to
18004 rewrite_dom_walker::before_dom_children.
18005 (rewrite_leave_block): Convert to
18006 rewrite_dom_walker::after_dom_children.
18007 (rewrite_update_dom_walker): New class.
18008 (rewrite_update_enter_block): Convert to
18009 rewrite_update_dom_walker::before_dom_children.
18010 (rewrite_update_leave_block): Convert to
18011 rewrite_update_dom_walker::after_dom_children.
18012 (rewrite_blocks, rewrite_into_ssa): Adjust.
18013 (mark_def_dom_walker): New class.
18014 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
18015 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
18016 (mark_def_sites_blocks): Convert to
18017 mark_def_dom_walker::before_dom_children.
18018 (mark_def_site_blocks): Remove.
18019 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
18020 (tree_ssa_dominator_optimize): Adjust.
18021 (dom_thread_across_edge): Convert to method
18022 dom_opt_dom_walker::thread_across_edge.
18023 (dom_opt_enter_block): Convert to member function
18024 dom_opt_dom_walker::before_dom_children.
18025 (dom_opt_leave_block): Convert to member function
18026 dom_opt_dom_walker::after_dom_children.
18027 * tree-ssa-dse.c (dse_dom_walker): New class.
18028 (dse_enter_block): Convert to member function
18029 dse_dom_walker::before_dom_children.
18030 (tree_ssa_dse): Adjust.
18031 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
18032 (determine_invariantness_stmt): Convert to method
18033 invariantness_dom_walker::before_dom_children.
18034 (determine_invariantness): Remove
18035 (move_computations_dom_walker): New class.
18036 (move_computations_stmt): Convert to method
18037 move_computations_dom_walker::before_dom_children.
18038 (move_computations, tree_ssa_lim): Adjust.
18039 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
18040 (nt_init_block): Convert to method
18041 notrappping_dom_walker::before_dom_children.
18042 (nt_fini_block): Convert to method
18043 method nontrapping_dom_walker::after_dom_children.
18044 (get_non_trapping): Adjust.
18045 * tree-ssa-pre.c (eliminate_dom_walker): New class.
18046 (eliminate_bb): Convert to method
18047 eliminate_dom_walker::before_dom_children.
18048 (eliminate_leave_block): Convert to method
18049 eliminate_dom_walker::after_dom_children.
18050 (eliminate): Adjust.
18051 * tree-ssa-strlen.c (strlen_dom_walker): New class.
18052 (strlen_enter_block): Convert to method
18053 strlen_dom_walker::before_dom_children.
18054 (strlen_leave_block): Convert to method
18055 method strlen_dom_walker::after_dom_children.
18056 (tree_ssa_strlen): Adjust.
18057 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
18058 (tree_ssa_uncprop): Adjust.
18059 (uncprop_leave_block): Convert to method
18060 uncprop_dom_walker::after_dom_children.
18061 (uncprop_leave_block): Convert to method
18062 uncprop_dom_walker::before_dom_children.
18063
18064 2013-09-18 Bin Cheng <bin.cheng@arm.com>
18065
18066 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
18067 branch in same basic block. Check both src and dest of the move insn.
18068
18069 2013-09-17 Nick Clifton <nickc@redhat.com>
18070
18071 * config/rl78/rl78-real.md (bf): New pattern.
18072 (bt): New pattern.
18073 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
18074 (rl78_print_operand): Do not put a # before a %B.
18075 * config/rl78/rl78.opt: Tweak doc strings.
18076
18077 2013-09-17 DJ Delorie <dj@redhat.com>
18078
18079 * config/rl78/constraints.md (Wcv): Allow up to $r31.
18080 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
18081 (rl78_option_override): Likewise, if -mallregs.
18082 (is_virtual_register): Likewise.
18083 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
18084 (REGNO_OK_FOR_BASE_P): Likewise.
18085 * config/rl78/rl78.opt (-mallregs): New.
18086
18087 2013-09-17 Nick Clifton <nickc@redhat.com>
18088
18089 * config/rl78/rl78.c (need_to_save): Change return type to bool.
18090 For interrupt functions: save all call clobbered registers if the
18091 interrupt handler is not a leaf function.
18092 (rl78_expand_prologue): Always recompute the frame information.
18093 For interrupt functions: only select bank 0 if one of the bank 0
18094 registers is going to be psuhed.
18095
18096 2013-09-17 DJ Delorie <dj@redhat.com>
18097
18098 * config/rl78/constraints.md: For each W* constraint, rename to C*
18099 and create a W* constraint that checks for an optional ES: prefix
18100 pattern also.
18101 * config/rl78/rl78.md (UNS_ES_ADDR): New.
18102 (es_addr): New. Used to wrap far addresses.
18103 * config/rl78/rl78-protos.h (rl78_es_addr): New.
18104 (rl78_es_base): New.
18105 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
18106 wrapped far addresses.
18107 (rl78_print_operand_1): Unwrap far addresses before processing.
18108 (rl78_lo16): Wrap far addresses in unspecs.
18109 (rl78_es_addr): New.
18110 (rl78_es_base): New.
18111 (insn_ok_now): Check for not-yet-wrapped far addresses.
18112 (transcode_memory_rtx): Properly re-wrap far addresses.
18113
18114 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
18115
18116 * config/sparc/t-rtems: Add leon3 multilibs.
18117
18118 2013-09-17 Cong Hou <congh@google.com>
18119
18120 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
18121 when checking the dot production pattern. The type of rhs operand
18122 of multiply is now checked correctly.
18123
18124 2013-09-17 Jeff Law <law@redhat.com>
18125
18126 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
18127 edge implied equivalences into successor phis.
18128 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
18129 here from tree-ssa-threadedge.c.
18130 (mark_threaded_blocks): When threading through a joiner, if both
18131 successors of the joiner's clone reach the same block, verify the
18132 PHI arguments are equal. If not, cancel the jump threading request.
18133 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
18134 tree-ssa-threadupdate.c
18135 (thread_across_edge): Don't check PHI argument equality when
18136 threading through joiner block here.
18137
18138 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
18139
18140 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
18141 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
18142 (warn_uninit, warn_uninitialized_vars,
18143 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
18144 Move to tree-ssa-uninit.c.
18145 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
18146 (has_undefined_value_p): New. Pass dependant parts of
18147 ssa_undefined_value_p.
18148 (uninit_undefined_value_p): Use has_undefined_value_p.
18149 (warn_uninit, warn_uninitialized_vars,
18150 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
18151 Move from tree-ssa.c.
18152 * tree-ssa.h: Adjust prototypes.
18153
18154 2013-09-17 Jan Hubicka <jh@suse.cz>
18155
18156 PR middle-end/58332
18157 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
18158 * ipa-inline.c (can_inline_edge_p): Do not downgrade
18159 FUNCTION_NOT_OPTIMIZED.
18160 * ipa-inline-analysis.c (compute_inline_parameters): Function
18161 not optimized is not inlinable unless it is alwaysinline.
18162 (inline_analyze_function): Force calls in not optimized
18163 function not inlinable.
18164
18165 2013-09-17 Jan Hubicka <jh@suse.cz>
18166
18167 PR middle-end/58329
18168 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
18169 to return NULL.
18170 * ipa.c (function_and_variable_visibility): Likewise.
18171 * ipa-profile.c (ipa_profile): Likewise.
18172
18173 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
18174
18175 PR ipa/58398
18176 * cgraph.c (cgraph_function_body_availability): Check for ifunc
18177 attribute, and don't inline the resolver in this case.
18178
18179 2013-09-17 Teresa Johnson <tejohnson@google.com>
18180
18181 * coverage.c (get_coverage_counts): Add missing newline.
18182
18183 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18184
18185 PR tree-optimization/58088
18186 * fold-const.c (mask_with_trailing_zeros): New function.
18187 (fold_binary_loc): Make sure we don't recurse infinitely
18188 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
18189 Use mask_with_trailing_zeros where appropriate.
18190
18191 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
18192
18193 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
18194 of 'prev' var to get better distance estimation.
18195
18196 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
18197
18198 * tree-inline.h (struct copy_body_data): Add transform_parameter.
18199 * tree-inline.c (is_parameter_of): New predicate.
18200 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
18201 a parameter has been remapped.
18202 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
18203 (optimize_inline_calls): Initialize transform_parameter.
18204 (copy_gimple_seq_and_replace_locals): Likewise.
18205 (tree_function_versioning): Likewise.
18206 (maybe_inline_call_in_expr): Likewise.
18207
18208 2013-09-17 Nick Clifton <nickc@redhat.com>
18209
18210 * config/msp430/msp430-protos.h: Add prototypes for new functions.
18211 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
18212 interrupt handlers.
18213 (is_attr_func): New function.
18214 (msp430_is_interrupt_func): New function.
18215 (is_naked_func): New function.
18216 (is_reentrant_func): New function.
18217 (is_critical_func): New function.
18218 (msp430_start_function): Add annotations for function attributes.
18219 (msp430_attr): New function.
18220 (msp430_attribute_table): New.
18221 (msp430_function_section): New function.
18222 (TARGET_ASM_FUNCTION_SECTION): Define.
18223 (msp430_builtin): New enum.
18224 (msp430_init_builtins): New function.
18225 (msp430_builtin_devl): New function.
18226 (msp430_expand_builtin): New function.
18227 (TARGET_INIT_BUILTINS): Define.
18228 (TARGET_EXPAND_BUILTINS): Define.
18229 (TARGET_BUILTIN_DECL): Define.
18230 (msp430_expand_prologue): Add support for naked, interrupt,
18231 critical and reentrant functions.
18232 (msp430_expand_epilogue): Likewise.
18233 (msp430_print_operand): Handle 'O' character.
18234 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
18235 NO_TRAMPOLINES.
18236 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
18237 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
18238 (pushm): Use a 'n' rather than an 'i' constraint.
18239 (msp_return): Add generation of the interrupt return instruction.
18240 (disable_interrupts): New pattern.
18241 (enable_interrupts): New pattern.
18242 (push_intr_state): New pattern.
18243 (pop_intr_state): New pattern.
18244 (bic_SR): New pattern.
18245 (bis_SR): New pattern.
18246 * doc/extend.texi: Document MSP430 function attributes and builtin
18247 functions.
18248
18249 2013-09-17 Richard Biener <rguenther@suse.de>
18250
18251 PR tree-optimization/58432
18252 * tree-loop-distribution.c (tree_loop_distribution): Also
18253 scan PHIs for outside loop uses and seed a partition from them.
18254
18255 2013-09-17 Bin Cheng <bin.cheng@arm.com>
18256
18257 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
18258 (restructure_reference): Call backtrace_base_for_ref.
18259
18260 2013-09-17 Alan Modra <amodra@gmail.com>
18261
18262 PR target/57589
18263 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
18264 patch.
18265
18266 2013-09-16 DJ Delorie <dj@redhat.com>
18267
18268 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
18269 vregs location for RL78/G10.
18270 (rl78_expand_prologue): Avoid SEL on G10.
18271 (rl78_expand_epilogue): Likewise.
18272 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
18273 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
18274 __RL78_G10__ when appropriate.
18275 (ASM_SPEC): Pass -mg10 along to the assembler.
18276 * config/rl78/rl78.md (sel_rb): Disable for G10.
18277 * config/rl78/rl78.opt: Add -mg10 option.
18278 * config/rl78/t-rl78: Add -mg10 multilib.
18279
18280 2013-09-16 Xinliang David Li <davidxl@google.com>
18281
18282 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
18283 * omp-low.c (omp_max_vf): Ditto.
18284 (expand_omp_simd): Ditto.
18285 * tree-vectorizer.c (vectorize_loops): Ditto.
18286 (gate_vect_slp): Ditto.
18287 (gate_increase_alignment): Ditto.
18288 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
18289 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
18290 (gate_tree_vectorize): Name change.
18291 (tree_vectorize): Ditto.
18292 (pass_vectorize::gate): Call new function.
18293 (pass_vectorize::execute): Ditto.
18294 * opts.c: O3 default setting change.
18295 (finish_options): Check new flag.
18296 * doc/invoke.texi: Document new flags.
18297 * common.opt: New flags.
18298
18299 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
18300
18301 * doc/tm.texi.in (Cond Exec Macros): Remove node.
18302 (Condition Code): Don't reference it.
18303 * doc/tm.texi: Regenerate.
18304
18305 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
18306
18307 PR middle-end/58418
18308 * lra-constraints.c (undo_optional_reloads): Consider all optional
18309 reload even if it did not get a hard reg.
18310
18311 2013-09-16 Teresa Johnson <tejohnson@google.com>
18312
18313 * dumpfile.c (dump_loc): Remove newline emission.
18314 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
18315 emission to dump_printf_loc calls where missing.
18316 (vect_mark_for_runtime_alias_test): Ditto.
18317 (vect_analyze_data_ref_dependence): Ditto.
18318 (vect_analyze_data_ref_dependences): Ditto.
18319 (vect_slp_analyze_data_ref_dependence): Ditto.
18320 (vect_slp_analyze_data_ref_dependences): Ditto.
18321 (vect_compute_data_ref_alignment): Ditto.
18322 (vect_update_misalignment_for_peel): Ditto.
18323 (vect_verify_datarefs_alignment): Ditto.
18324 (vector_alignment_reachable_p): Ditto.
18325 (vect_get_data_access_cost): Ditto.
18326 (vect_enhance_data_refs_alignment): Ditto.
18327 (vect_find_same_alignment_drs): Ditto.
18328 (vect_analyze_data_refs_alignment): Ditto.
18329 (vect_analyze_group_access): Ditto.
18330 (vect_analyze_data_ref_access): Ditto.
18331 (vect_analyze_data_ref_accesses): Ditto.
18332 (vect_prune_runtime_alias_test_list): Ditto.
18333 (vect_analyze_data_refs): Ditto.
18334 (vect_create_addr_base_for_vector_ref): Ditto.
18335 (vect_create_data_ref_ptr): Ditto.
18336 (vect_grouped_store_supported): Ditto.
18337 (vect_grouped_load_supported): Ditto.
18338 * value-prof.c (check_counter): Ditto.
18339 (check_ic_target): Ditto.
18340 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
18341 (vect_recog_widen_mult_pattern): Ditto.
18342 (vect_recog_widen_sum_pattern): Ditto.
18343 (vect_recog_over_widening_pattern): Ditto.
18344 (vect_recog_widen_shift_pattern): Ditto.
18345 (vect_recog_rotate_pattern): Ditto.
18346 (vect_recog_vector_vector_shift_pattern): Ditto.
18347 (vect_recog_divmod_pattern): Ditto.
18348 (vect_recog_mixed_size_cond_pattern): Ditto.
18349 (vect_recog_bool_pattern): Ditto.
18350 (vect_pattern_recog_1): Ditto.
18351 (vect_pattern_recog): Ditto.
18352 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
18353 (vect_is_simple_iv_evolution): Ditto.
18354 (vect_analyze_scalar_cycles_1): Ditto.
18355 (vect_get_loop_niters): Ditto.
18356 (vect_analyze_loop_1): Ditto.
18357 (vect_analyze_loop_form): Ditto.
18358 (vect_analyze_loop_operations): Ditto.
18359 (vect_analyze_loop_2): Ditto.
18360 (vect_analyze_loop): Ditto.
18361 (report_vect_op): Ditto.
18362 (vect_is_slp_reduction): Ditto.
18363 (vect_is_simple_reduction_1): Ditto.
18364 (vect_get_known_peeling_cost): Ditto.
18365 (vect_estimate_min_profitable_iters): Ditto.
18366 (vect_model_reduction_cost): Ditto.
18367 (vect_model_induction_cost): Ditto.
18368 (get_initial_def_for_induction): Ditto.
18369 (vect_create_epilog_for_reduction): Ditto.
18370 (vectorizable_reduction): Ditto.
18371 (vectorizable_induction): Ditto.
18372 (vectorizable_live_operation): Ditto.
18373 (vect_loop_kill_debug_uses): Ditto.
18374 (vect_transform_loop): Ditto.
18375 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
18376 (vect_stmt_relevant_p): Ditto.
18377 (process_use): Ditto.
18378 (vect_mark_stmts_to_be_vectorized): Ditto.
18379 (vect_model_simple_cost): Ditto.
18380 (vect_model_promotion_demotion_cost): Ditto.
18381 (vect_model_store_cost): Ditto.
18382 (vect_get_store_cost): Ditto.
18383 (vect_model_load_cost): Ditto.
18384 (vect_get_load_cost): Ditto.
18385 (vect_init_vector_1): Ditto.
18386 (vect_get_vec_def_for_operand): Ditto.
18387 (vect_finish_stmt_generation): Ditto.
18388 (vectorizable_call): Ditto.
18389 (vectorizable_conversion): Ditto.
18390 (vectorizable_assignment): Ditto.
18391 (vectorizable_shift): Ditto.
18392 (vectorizable_operation): Ditto.
18393 (vectorizable_store): Ditto.
18394 (vectorizable_load): Ditto.
18395 (vectorizable_condition): Ditto.
18396 (vect_analyze_stmt): Ditto.
18397 (vect_transform_stmt): Ditto.
18398 (vect_is_simple_use): Ditto.
18399 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
18400 (vect_can_advance_ivs_p): Ditto.
18401 (vect_update_ivs_after_vectorizer): Ditto.
18402 (vect_do_peeling_for_loop_bound): Ditto.
18403 (vect_gen_niters_for_prolog_loop): Ditto.
18404 (vect_update_inits_of_drs): Ditto.
18405 (vect_create_cond_for_alias_checks): Ditto.
18406 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
18407 (vect_build_slp_tree_1): Ditto.
18408 (vect_supported_load_permutation_p): Ditto.
18409 (vect_analyze_slp_instance): Ditto.
18410 (vect_analyze_slp): Ditto.
18411 (vect_make_slp_decision): Ditto.
18412 (vect_detect_hybrid_slp): Ditto.
18413 (vect_bb_vectorization_profitable_p): Ditto.
18414 (vect_slp_analyze_bb_1): Ditto.
18415 (vect_update_slp_costs_according_to_vf): Ditto.
18416 (vect_get_mask_element): Ditto.
18417 (vect_transform_slp_perm_load): Ditto.
18418 (vect_schedule_slp_instance): Ditto.
18419 (vect_schedule_slp): Ditto.
18420 (vect_slp_transform_bb): Ditto.
18421 * profile.c (read_profile_edge_counts): Ditto.
18422 (compute_branch_probabilities): Ditto.
18423 * coverage.c (get_coverage_counts): Ditto.
18424
18425 2013-09-16 Diego Novillo <dnovillo@google.com>
18426
18427 * tree-core.h: Add missing comment lines from refactoring of tree.h.
18428
18429 2013-09-16 Jan Hubicka <jh@suse.cz>
18430
18431 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
18432 abstract functions; for static functions check the presence of body.
18433
18434 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
18435
18436 * config/aarch64/aarch64-simd-builtins.def (fma): New.
18437 * config/aarch64/aarch64-simd.md
18438 (aarch64_mla_elt<mode>): New.
18439 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
18440 (aarch64_mls_elt<mode>): Likewise.
18441 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
18442 (aarch64_fma4_elt<mode>): Likewise.
18443 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
18444 (aarch64_fma4_elt_to_128v2df): Likewise.
18445 (aarch64_fma4_elt_to_64df): Likewise.
18446 (fnma<mode>4): Likewise.
18447 (aarch64_fnma4_elt<mode>): Likewise.
18448 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
18449 (aarch64_fnma4_elt_to_128v2df): Likewise.
18450 (aarch64_fnma4_elt_to_64df): Likewise.
18451 * config/aarch64/iterators.md (VDQSF): New.
18452 * config/aarch64/arm_neon.h
18453 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
18454 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
18455
18456 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
18457
18458 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
18459 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
18460 (aarch64_mul3_elt_to_128df): Likewise.
18461 (aarch64_mul3_elt_to_64v2df): Likewise.
18462 * config/aarch64/iterators.md (VEL): Also handle DFmode.
18463 (VMUL): New.
18464 (VMUL_CHANGE_NLANES) Likewise.
18465 (h_con): Likewise.
18466 (f): Likewise.
18467 * config/aarch64/arm_neon.h
18468 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
18469
18470 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
18471
18472 * config/aarch64/arm_neon.h
18473 (vcvtx_high_f32_f64): Fix parameters.
18474
18475 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18476 Uros Bizjak <ubizjak@gmail.com>
18477
18478 * config/alpha.c: Include tree-ssanames.h.
18479
18480 2013-09-16 Richard Biener <rguenther@suse.de>
18481
18482 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
18483 (dot_rdg_1): Handle control_dd.
18484 (create_edge_for_control_dependence): New function.
18485 (create_rdg_edges): Add control dependences if asked for.
18486 (build_rdg): Likewise.
18487 (generate_loops_for_partition): If there are not necessary
18488 control stmts remove all their dependencies.
18489 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
18490 (distribute_loop): Pass on control dependences.
18491 (tree_loop_distribution): Compute control dependences and remove
18492 restriction on number of loop nodes.
18493
18494 2013-09-16 Jakub Jelinek <jakub@redhat.com>
18495
18496 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
18497 for internal calls.
18498
18499 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
18500
18501 * cse.c (try_const_anchors): Punt on CC modes.
18502
18503 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18504
18505 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
18506
18507 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
18508
18509 PR target/58382
18510 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
18511 calls to word_mode.
18512
18513 2013-09-14 Iain Sandoe <iain@codesourcery.com>
18514
18515 PR target/48094
18516 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
18517 seen.
18518 (darwin_objc1_section): Likewise.
18519 (darwin_file_end): Emit Image Info section when required.
18520
18521 2013-09-14 Jan Hubicka <jh@suse.cz>
18522
18523 * tree-into-ssa.c (gate_into_ssa): New.
18524 (pass_data_build_ssa): Use it.
18525 * cgraph.h (expand_thunk): Update prototype.
18526 * cgraphunit.c (analyze_function): Expand thunks early.
18527 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
18528 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
18529 set lowered flag; do not add new function.
18530 (assemble_thunks_and_aliases): Update.
18531 * tree-ssa.c (gate_init_datastructures): New gate.
18532 (pass_data_init_datastructures): Use it.
18533
18534 2013-09-14 Iain Sandoe <iain@codesourcery.com>
18535
18536 PR target/58269
18537 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
18538 xmm register set described in the psABI.
18539
18540 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
18541
18542 * dwarf2out.c (should_emit_struct_debug): Add check
18543 for type_decl variable is not NULL.
18544
18545 2013-09-13 Jacek Caban <jacek@codeweavers.com>
18546
18547 * config.gcc: Use new winnt-c.c target hooks
18548 * config/t-winnt: New file
18549 * config/winnt-c.c: New file
18550 * doc/tm.texi.in: Document new hook
18551 * doc/tm.texi: Regenerated
18552
18553 2013-09-13 Jan Hubicka <jh@suse.cz>
18554
18555 PR middle-end/58094
18556 * ipa-inline.c (check_callers): New function.
18557 (check_caller_edge): Remove.
18558 (want_inline_function_to_all_callers_p): Also permit alises that are
18559 called dirrectly.
18560 (inline_to_all_callers): Terminate the walk when devirtualization
18561 introduce new calls.
18562
18563 2013-09-13 Jan Hubicka <jh@suse.cz>
18564
18565 * ipa-inline-analysis.c (struct growth_data): Add node.
18566 (do_estimate_growth_1): Fix detection of recursion.
18567
18568 2013-09-13 Jakub Jelinek <jakub@redhat.com>
18569
18570 PR tree-optimization/58392
18571 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
18572 to avoid shadowing of outer loop variable. If
18573 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
18574 replace_by_duplicate_decl simduid of loops that have it set and
18575 set dest_cfun->has_simduid_loops and/or
18576 dest_cfun->has_force_vect_loops.
18577 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
18578 instead of maybe_lookup_decl.
18579 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
18580 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
18581 call. Copy over force_vect and copy and remap simduid. Set
18582 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
18583 (copy_cfg_body): Remove blocks_to_copy argument. Use
18584 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
18585 caller. Don't set cfun->has_simduid_loops and/or
18586 cfun->has_force_vect_loops here.
18587 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
18588 caller.
18589 (expand_call_inline, tree_function_versioning): Adjust copy_body
18590 callers.
18591
18592 2013-09-13 Martin Jambor <mjambor@suse.cz>
18593
18594 PR bootstrap/58388
18595 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
18596 the assert if the edge was a speculative one.
18597
18598 2013-09-13 Richard Biener <rguenther@suse.de>
18599
18600 * tree-data-ref.h (known_dependences_p): Move here ...
18601 * tree-loop-distribution.c (known_dependences_p): ... from here.
18602 (dump_rdg_component, debug_rdg_component): Remove.
18603 (dump_rdg): Adjust.
18604 (generate_loops_for_partition): Use gimple_uid instead of
18605 relying on matching stmt visit order.
18606 (rdg_build_partitions): Take starting stmt vector.
18607 (ldist_gen): Merge into ...
18608 (distribute_loop): ... this function. Do not compute starting
18609 vertices vector.
18610 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
18611
18612 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18613
18614 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
18615 Set type attribute correctly. Set predicable_short_it attribute.
18616 (cmpsi_shiftsi): Remove %? from output template.
18617
18618 2013-09-13 Richard Biener <rguenther@suse.de>
18619
18620 * tree-loop-distribution.c (struct rdg_component,
18621 rdg_defs_used_in_other_loops_p, free_rdg_components,
18622 rdg_build_components): Remove.
18623 (stmts_from_loop): Do not record virtual PHIs.
18624 (generate_loops_for_partition): Skip virtual PHIs.
18625 (build_rdg_partition_for_component): Rename to ...
18626 (build_rdg_partition_for_vertex): ... this and adjust.
18627 (rdg_build_partitions): Take a vector of starting vertices
18628 instead of components. Remove unnecessary leftover handling.
18629 (ldist_gen): Do not build components or record other stores.
18630 (distribute_loop): Do not distribute loops containing stmts
18631 with side-effects.
18632
18633 2013-09-13 Christian Bruel <christian.bruel@st.com>
18634
18635 PR target/58314
18636 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
18637
18638 2013-09-13 Kai Tietz <ktietz@redhat.com>
18639
18640 * config.gcc: Separate cases for mingw and cygwin targets,
18641 and add 64-bit cygwin target case.
18642
18643 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
18644 dll-export inline-functions.
18645 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
18646
18647 2013-09-13 Jeff Law <law@redhat.com>
18648
18649 PR middle-end/58387
18650 Revert:
18651 2013-09-06 Jeff Law <law@redhat.com>
18652
18653 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
18654 edge implied equivalences into successor phis.
18655
18656 2013-09-12 DJ Delorie <dj@redhat.com>
18657
18658 * config/rl78/rl78-virt.md: Change from | to \; for asm line
18659 separators.
18660
18661 2013-09-12 Brooks Moses <bmoses@google.com>
18662
18663 PR driver/42955
18664 * Makefile.in: Do not install driver binaries in $(target)/bin.
18665
18666 2013-09-12 DJ Delorie <dj@redhat.com>
18667
18668 * config/rl78/rl78.opt (mrelax): New.
18669 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
18670 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
18671
18672 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
18673 between SP and FP.
18674 (rl78_expand_epilogue): Likewise.
18675
18676 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
18677
18678 PR middle-end/58335
18679 * lra-eliminations.c (remove_reg_equal_offset_note): New.
18680 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
18681 pointer elimination with using remove_reg_equal_offset_note.
18682
18683 2013-09-12 DJ Delorie <dj@redhat.com>
18684
18685 * config/msp430/: New port.
18686 * config.gcc (msp430): Added.
18687 * doc/invoke.texi: Document MSP430 options.
18688 * doc/install.texi: Document msp430-elf
18689 * doc/md.texi: Document msp430-elf
18690 * doc/contrib.texi: Document msp430-elf
18691
18692 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
18693 PSImode.
18694
18695 2013-09-12 Martin Jambor <mjambor@suse.cz>
18696
18697 PR ipa/58389
18698 * ipa-prop.c (remove_described_reference): Give up if the edge in the
18699 reference descriptor is NULL.
18700 (ipa_edge_removal_hook): If owning a reference descriptor, set its
18701 edge to NULL.
18702
18703 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
18704
18705 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
18706 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
18707 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
18708 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
18709 make_temp_ssa_name): move to tree-ssanames.h
18710 * tree-ssa-alias.h: Move prototype.
18711 * tree-ssa.h: Include tree-ssanames.h.
18712 * tree-ssanames.c (FREE_SSANAMES): Move to here.
18713 * tree-ssanames.h: New. Move items from tree-flow*.h
18714 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
18715
18716 2013-09-12 Richard Biener <rguenther@suse.de>
18717
18718 PR tree-optimization/58404
18719 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
18720 propagate non-invariant addresses into dereferences wrapped
18721 in component references.
18722
18723 2013-09-12 Richard Biener <rguenther@suse.de>
18724
18725 PR tree-optimization/58402
18726 * passes.def: Move pass_late_warn_uninitialized later.
18727
18728 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
18729
18730 * tree-ssa.h: New. Move content from tree-flow.h and
18731 tree-flow-inline.h.
18732 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
18733 Move prototypes belonging to tree-ssa.c.
18734 * tree-flow-inline.h (redirect_edge_var_map_def,
18735 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
18736 tree-ssa.h.
18737 * gimple.h: Adjust prototypes.
18738 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
18739 to...
18740 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
18741 * tree.h: Move prototype to tree-ssa.h.
18742 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
18743 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
18744 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
18745 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
18746 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
18747 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
18748 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
18749 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
18750 graphite-blocking.c, graphite-clast-to-gimple.c,
18751 graphite-dependences.c, graphite-interchange.c,
18752 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
18753 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
18754 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
18755 ipa-reference.c, ipa-split.c, ipa-utils.c,
18756 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
18757 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
18758 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
18759 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
18760 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
18761 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
18762 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
18763 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
18764 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
18765 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
18766 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
18767 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
18768 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
18769 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
18770 value-prof.c, var-tracking.c,
18771 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
18772
18773 2013-09-12 Richard Biener <rguenther@suse.de>
18774
18775 PR tree-optimization/58396
18776 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
18777 (build_rdg): Take a loop-nest parameter, fix memleaks.
18778 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
18779
18780 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
18781
18782 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
18783 for SLM.
18784
18785 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
18786
18787 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
18788 The FMA instruction names should have a 'v' prefix.
18789
18790 2013-09-12 Richard Biener <rguenther@suse.de>
18791
18792 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
18793 (dot_rdg): Use popen instead of system in optional code.
18794 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
18795 (already_processed_vertex_p): Adjust.
18796 (has_anti_or_output_dependence, predecessor_has_mem_write,
18797 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
18798 rdg_flag_uses): Remove.
18799 (rdg_flag_vertex): Simplify.
18800 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
18801 remove recursion.
18802 (build_rdg_partition_for_component): Process the first vertex
18803 of a component only.
18804 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
18805
18806 2013-09-12 Alan Modra <amodra@gmail.com>
18807
18808 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
18809
18810 2013-09-11 DJ Delorie <dj@redhat.com>
18811 Nick Clifton <nickc@redhat.com>
18812
18813 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
18814 (rl78_stack_based_mem): New.
18815 * config/rl78/constraints.md (Iv08): New.
18816 (Iv16): New.
18817 (Iv24): New.
18818 (Is09): New.
18819 (Is17): New.
18820 (Is25): New.
18821 (ISsi): New.
18822 (IShi): New.
18823 (ISqi): New.
18824 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
18825 (movhi): Likewise.
18826 (movsi): Change from expand to insn-and-split.
18827 (ashrsi3): Clobber AX.
18828 (lshrsi3): New.
18829 (ashlsi3): New.
18830 (cbranchsi4): New.
18831 * config/rl78/rl78.md (CC_REG): Fix.
18832 (addsi3): Allow memory and immediate operands.
18833 (addsi3_internal): Split into...
18834 (addsi3_internal_virt): ...new, and ...
18835 (addsi3_internal_real): ...new.
18836 (subsi): New.
18837 (subsi3_internal_virt): New.
18838 (subsi3_internal_real): New.
18839 (mulsi3): Add memory operand.
18840 (mulsi3_rl78): Likewise.
18841 (mulsi3_g13): Likewise.
18842 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
18843 (cbranchqi4_real): Add more constraint options.
18844 (cbranchhi4_real): Expand pattern.
18845 (cbranchhi4_real_signed): New.
18846 (cbranchhi4_real_inverted): New.
18847 (cbranchsi4_real_lt): New.
18848 (cbranchsi4_real_ge): New.
18849 (cbranchsi4_real_signed): New.
18850 (cbranchsi4_real): New.
18851 (peephole2): New.
18852 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
18853 constant shifts.
18854 (lshrsi3_virt): Likewise.
18855 (ashlsi3_virt): Likewise.
18856 (cbranchqi4_virt_signed): New.
18857 (cbranchhi4_virt_signed): New.
18858 (cbranchsi4_virt): New.
18859 * config/rl78/rl78.c: Whitespace fixes throughout.
18860 (move_elim_pass): New.
18861 (pass_data_rl78_move_elim): New.
18862 (pass_rl78_move_elim): New.
18863 (make_pass_rl78_move_elim): New.
18864 (rl78_devirt_info): Run devirt earlier.
18865 (rl78_move_elim_info): New.
18866 (rl78_asm_file_start): Register it.
18867 (rl78_split_movsi): New.
18868 (rl78_as_legitimate_address): Allow virtual base registers when
18869 appropriate.
18870 (rl78_addr_space_convert): Remove spurious debug stuff.
18871 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
18872 (rl78_print_operand): More cases for not printing '#'.
18873 (rl78_expand_compare): Remove most of the logic.
18874 (content_memory): New.
18875 (clear_content_memory): New.
18876 (get_content_index): New.
18877 (get_content_name): New.
18878 (display_content_memory): New.
18879 (update_content): New.
18880 (record_content): New.
18881 (already_contains): New.
18882 (insn_ok_now): Re-recog insns with virtual registers.
18883 (add_postponed_content_update): New.
18884 (process_postponed_content_update): New.
18885 (gen_and_emit_move): New.
18886 (transcode_memory_rtx): Record new location content.
18887 Use gen_and_emit_move.
18888 (force_into_acc): New.
18889 (move_to_acc): Use gen_and_emit_move.
18890 (move_from_acc): Likewise.
18891 (move_acc_to_reg): Likewise.
18892 (move_to_x): Likewise.
18893 (move_to_hl): Likewise.
18894 (move_to_de): Likewise.
18895 (rl78_alloc_physical_registers_op1): Record location content.
18896 (has_constraint): New.
18897 (rl78_alloc_physical_registers_op2): Record location content.
18898 Optimize use of HL.
18899 (rl78_alloc_physical_registers_ro1): Likewise.
18900 (rl78_alloc_physical_registers_cmp): Likewise.
18901 (rl78_alloc_physical_registers_umul): Likewise.
18902 (rl78_alloc_address_registers_macax): New.
18903 (rl78_alloc_physical_registers): Initialize and set location
18904 content memory as needed.
18905 (rl78_reorg): Make sure split2 is called.
18906 (rl78_rtx_costs): New.
18907
18908 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
18909
18910 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
18911 for (not (neg ...)) and (neg (not ...)) cases.
18912
18913 2013-09-11 Richard Biener <rguenther@suse.de>
18914
18915 PR middle-end/58377
18916 * passes.def: Split critical edges before late uninit warning passes.
18917 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
18918
18919 2013-09-11 Jakub Jelinek <jakub@redhat.com>
18920
18921 PR tree-optimization/58385
18922 * fold-const.c (build_range_check): If both low and high are NULL,
18923 use omit_one_operand_loc to preserve exp side-effects.
18924
18925 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18926
18927 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
18928
18929 2013-09-11 Richard Biener <rguenther@suse.de>
18930
18931 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
18932 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
18933 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
18934 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
18935 stmts_from_loop, known_dependences_p, build_empty_rdg,
18936 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
18937 * tree-loop-distribution.c: ... here.
18938 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
18939 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
18940 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
18941 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
18942 * tree-loop-distribution.c: ... here.
18943 * tree-loop-distribution.c: Include gimple-pretty-print.h.
18944 (struct partition_s): Add loops member.
18945 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
18946 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
18947 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
18948
18949 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
18950 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18951 Sergey Lega <sergey.s.lega@intel.com>
18952 Anna Tikhonova <anna.tikhonova@intel.com>
18953 Ilya Tocar <ilya.tocar@intel.com>
18954 Andrey Turetskiy <andrey.turetskiy@intel.com>
18955 Ilya Verbin <ilya.verbin@intel.com>
18956 Kirill Yukhin <kirill.yukhin@intel.com>
18957 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18958
18959 * config/i386/constraints.md (k): New.
18960 (Yk): Ditto.
18961 * config/i386/i386.c (const regclass_map): Add new mask registers.
18962 (dbx_register_map): Ditto.
18963 (dbx64_register_map): Ditto.
18964 (svr4_dbx_register_map): Ditto.
18965 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
18966 disabled.
18967 (ix86_preferred_reload_class): Disable constants for mask registers.
18968 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
18969 (ix86_hard_regno_mode_ok): Support new mask registers.
18970 (x86_order_regs_for_local_alloc): Ditto.
18971 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
18972 (FIXED_REGISTERS): Add new mask registers.
18973 (CALL_USED_REGISTERS): Ditto.
18974 (REG_ALLOC_ORDER): Ditto.
18975 (VALID_MASK_REG_MODE): New.
18976 (FIRST_MASK_REG): Ditto.
18977 (LAST_MASK_REG): Ditto.
18978 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
18979 (MAYBE_MASK_CLASS_P): New.
18980 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
18981 (REG_CLASS_CONTENTS): Ditto.
18982 (MASK_REGNO_P): New.
18983 (ANY_MASK_REG_P): Ditto.
18984 (HI_REGISTER_NAMES): Add new mask registers.
18985 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
18986 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
18987 mask registers.
18988 (attribute "type"): Add mskmov, msklog.
18989 (attribute "length_immediate"): Support them.
18990 (attribute "memory"): Ditto.
18991 (attribute "prefix_0f"): Ditto.
18992 (*movhi_internal): Support new mask registers.
18993 (*movqi_internal): Ditto.
18994 (define_split): Split out clobber pattern is a logic
18995 insn on mask registers.
18996 (*k<logic><mode>): New.
18997 (*andhi_1): Extend to support mask regs.
18998 (*andqi_1): Extend to support mask regs.
18999 (kandn<mode>): New.
19000 (define_split): Split and-not to and and not if operands
19001 are not mask regs.
19002 (*<code><mode>_1): Separate HI mode to new pattern...
19003 (*<code>hi_1): This.
19004 (*<code>qi_1): Extend to support mask regs.
19005 (kxnor<mode>): New.
19006 (kortestzhi): Ditto.
19007 (kortestchi): Ditto.
19008 (kunpckhi): Ditto.
19009 (*one_cmpl<mode>2_1): Remove HImode and handle it...
19010 (*one_cmplhi2_1): ...Here, now with mask registers support.
19011 (*one_cmplqi2_1): Support new mask registers.
19012 (HI/QImode arithmetics splitter): Don't split if mask registers
19013 are used.
19014 (HI/QImode not splitter): Ditto.
19015 * config/i386/predicated.md (mask_reg_operand): New.
19016 (general_reg_operand): Ditto.
19017
19018 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
19019
19020 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
19021 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
19022
19023 2013-09-10 Jeff Law <law@redhat.com>
19024
19025 PR tree-optimization/58380
19026 * tree-ssa-threadupdate.c (thread_block): Recognize another case
19027 of threading through a buried loop header.
19028
19029 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
19030 return value for single successor case.
19031
19032 2013-09-10 Jan Hubicka <jh@suse.cz>
19033
19034 * ipa-devirt.c (ipa_devirt): Enable with LTO.
19035
19036 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
19037
19038 PR target/58361
19039 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
19040 support conditional execution.
19041 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
19042
19043 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
19044
19045 * lra.c (lra): Clear lra_optional_reload_pseudos before every
19046 constraint pass.
19047 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
19048 Check destination too to check move insn.
19049 (undo_optional_reloads): Add check that the original peudo did not
19050 changed its allocation and the optional reload was inherited on last
19051 inheritance pass. Break loop after deciding to keep optional reload.
19052 (lra_undo_inheritance): Add check that inherited pseudo still in
19053 memory.
19054
19055 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
19056
19057 * config/aarch64/aarch64.md (generic_sched): New.
19058 * config/aarch64/aarch64-generic.md (load): Make conditional
19059 on generic_sched attribute.
19060 (nonload): Likewise.
19061
19062 2013-09-10 Jan Hubicka <jh@suse.cz>
19063
19064 * lto-cgraph.c: Include ipa-utils.h.
19065 (compute_ltrans_boundary): Also add possible targets into the boundary.
19066
19067 2013-09-10 Jan Hubicka <jh@suse.cz>
19068
19069 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
19070 VAR_DECL of vtable rather than full expression.
19071
19072 2013-09-10 Jan Hubicka <jh@suse.cz>
19073 Paolo Carlini <paolo.carlini@oracle.com>
19074
19075 * cgraphunit.c (analyze_functions): Save input_location, set it
19076 to UNKNOWN_LOCATION and restore it at the end.
19077
19078 2013-09-10 Martin Jambor <mjambor@suse.cz>
19079
19080 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
19081 represented by a thunk.
19082
19083 2013-09-10 Jeff Law <law@redhat.com>
19084
19085 PR tree-optimization/58343
19086 * tree-ssa-threadupdate.c (thread_block): Identify and disable
19087 jump threading requests through loop headers buried in the middle
19088 of a jump threading path.
19089
19090 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
19091 in return value/type.
19092
19093 2013-09-10 Jakub Jelinek <jakub@redhat.com>
19094
19095 PR rtl-optimization/58365
19096 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
19097 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
19098 it differs.
19099
19100 2013-09-10 Richard Biener <rguenther@suse.de>
19101
19102 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
19103 * tree-data-ref.c (create_rdg_vertices): Collect all data
19104 references, signal failure to the caller, use data-ref API.
19105 (build_rdg): Compute data references only once. Maintain lifetime
19106 of data references and data dependences from within RDG.
19107 (free_rdg): Free dependence relations.
19108 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
19109 inventing extra dependences.
19110 (distribute_loop): Update for RDG API changes.
19111
19112 2013-09-10 Kai Tietz <ktietz@redhat.com>
19113
19114 * doc/invoke.texi (fms-extensions): Document changed
19115 behavior for ms-abi targets.
19116 * config/i386/i386.c (ix86_option_override_internal):
19117 Set default value of option -fms-extension for ms-abi targets.
19118
19119 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
19120
19121 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
19122
19123 2013-09-10 Alan Modra <amodra@gmail.com>
19124
19125 PR target/58330
19126 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
19127
19128 2013-09-10 Alan Modra <amodra@gmail.com>
19129
19130 * config/rs6000/predicates.md (add_cint_operand): New.
19131 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
19132 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
19133 using add_cint_operand.
19134 (largetoc_high_plus_aix): Likewise.
19135
19136 2013-09-09 Jakub Jelinek <jakub@redhat.com>
19137
19138 PR tree-optimization/58364
19139 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
19140 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
19141 the current range can't be an unconditional true or false.
19142
19143 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
19144
19145 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
19146
19147 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
19148
19149 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
19150
19151 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
19152
19153 PR c++/43452
19154 * doc/invoke.texi (-Wdelete-incomplete): Document it.
19155
19156 2013-09-09 Ian Bolton <ian.bolton@arm.com>
19157
19158 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
19159 NO_REGS for immediate that can't be moved directly into FP_REGS.
19160
19161 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19162
19163 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
19164 comparison with negated operand.
19165 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
19166 RTL form.
19167
19168 2013-09-09 Richard Biener <rguenther@suse.de>
19169
19170 PR middle-end/58326
19171 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
19172 of a subloop record all its block as affecting loop-closed SSA form.
19173
19174 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
19175
19176 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
19177 of an rtx/bitpos pair.
19178 (store_fixed_bit_field): Update accordingly.
19179
19180 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
19181
19182 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
19183 GEN_INT.
19184 * builtins.c (expand_errno_check): Likewise.
19185 * dwarf2cfi.c (init_return_column_size): Likewise.
19186 * except.c (sjlj_mark_call_sites): Likewise.
19187 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
19188 * lra-constraints.c (emit_inc): Likewise.
19189 * ree.c (combine_set_extension): Likewise.
19190 * regmove.c (fixup_match_2): Likewise.
19191 * reload1.c (inc_for_reload): Likewise.
19192
19193 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
19194
19195 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
19196 (force_to_mode, simplify_shift_const_1, simplify_comparison):
19197 Use gen_int_mode with the mode of the associated simplify_* call.
19198 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
19199 * expmed.c (expand_shift_1): Likewise.
19200 * function.c (instantiate_virtual_regs_in_insn): Likewise.
19201 * loop-iv.c (iv_number_of_iterations): Likewise.
19202 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
19203 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
19204
19205 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
19206
19207 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
19208 of the associated expand_* call.
19209 (asan_emit_stack_protection): Likewise.
19210 * builtins.c (round_trampoline_addr): Likewise.
19211 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
19212 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
19213 (emit_store_flag): Likewise.
19214 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
19215 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
19216 Likewise.
19217 * function.c (instantiate_virtual_regs_in_insn): Likewise.
19218 * ifcvt.c (noce_try_store_flag_constants): Likewise.
19219 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
19220 * modulo-sched.c (generate_prolog_epilog): Likewise.
19221 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
19222 (expand_ctz, expand_ffs, expand_unop): Likewise.
19223
19224 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
19225
19226 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
19227 of the associated gen_rtx_* call.
19228 * caller-save.c (init_caller_save): Likewise.
19229 * combine.c (find_split_point, make_extraction): Likewise.
19230 (make_compound_operation): Likewise.
19231 * dwarf2out.c (mem_loc_descriptor): Likewise.
19232 * explow.c (plus_constant, probe_stack_range): Likewise.
19233 * expmed.c (expand_mult_const): Likewise.
19234 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
19235 * reload1.c (init_reload): Likewise.
19236 * valtrack.c (cleanup_auto_inc_dec): Likewise.
19237 * var-tracking.c (adjust_mems): Likewise.
19238 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
19239 rather than gen_rtx_fmt_ee.
19240
19241 2013-09-09 Jan Hubicka <jh@suse.cz>
19242
19243 PR middle-end/58294
19244 * value-prof.c (gimple_ic): Copy also abnormal edges.
19245
19246 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
19247
19248 * asan.c (asan_shadow_cst): Use gen_int_mode.
19249
19250 2013-09-08 Jan Hubicka <jh@suse.cz>
19251
19252 * ipa-profile.c: Add toplevel comment.
19253 (ipa_propagate_frequency_1): Be more conservative when profile is read.
19254 (contains_hot_call_p): New function.
19255 (ipa_propagate_frequency): Set frequencies based on counts when
19256 profile is read.
19257 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
19258 profile; do not tamper with profile after inlining if it is read.
19259
19260 2013-09-08 Jan Hubicka <jh@suse.cz>
19261
19262 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
19263 speculative edges.
19264
19265 2013-09-08 Jan Hubicka <jh@suse.cz>
19266
19267 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
19268 summary generation.
19269
19270 2013-09-08 Jeff Law <law@redhat.com>
19271
19272 PR bootstrap/58340
19273 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
19274 of 'found'.
19275
19276 2013-09-08 Andi Kleen <ak@linux.intel.com>
19277
19278 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
19279
19280 2013-09-08 Jan Hubicka <jh@suse.cz>
19281
19282 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
19283
19284 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
19285
19286 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
19287 for non-debug insns.
19288 * lra.c (new_insn_reg): Take the containing insn as a parameter.
19289 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
19290 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
19291 accordingly.
19292
19293 2013-09-08 Jan Hubicka <jh@suse.cz>
19294
19295 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
19296 targets and devirtualize to BUILT_IN_UNREACHABLE.
19297 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
19298 * ipa.c (walk_polymorphic_call_targets): New function.
19299 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
19300 functions; use the new timevar.
19301 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
19302 was removed from the program.
19303 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
19304 not consider it in the walk when its vtable is dead.
19305 (possible_polymorphic_call_targets_1): Pass anonymous flag to
19306 record_binfo.
19307 (devirt_variable_node_removal_hook): New function.
19308 (possible_polymorphic_call_targets): Also register
19309 devirt_variable_node_removal_hook.
19310 (ipa_devirt): Do not do non-speculative devirtualization.
19311 (gate_ipa_devirt): One execute if devirtualizing speculatively.
19312
19313 2013-09-08 Jan Hubicka <jh@suse.cz>
19314
19315 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
19316 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
19317 varpool_remove_variable_insertion_hook): Declare.
19318 * varpool.c (varpool_node_hook_list): New structure.
19319 (first_varpool_node_removal_hook,
19320 first_varpool_variable_insertion_hook): New variables.
19321 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
19322 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
19323 varpool_remove_variable_insertion_hook,
19324 varpool_call_variable_insertion_hooks): New functions.
19325 (varpool_remove_node): Use it.
19326
19327 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
19328
19329 PR c++/54941
19330 * diagnostic.c (diagnostic_build_prefix): When s.file is
19331 "<built-in>" don't output line and column numbers.
19332
19333 2013-09-06 Jan Hubicka <jh@suse.cz>
19334
19335 * cgraphunit.c (expand_thunk): Get body before touching arguments.
19336 * lto-streamer-out.c: Stream thunks, too.
19337 * lto-streamer-in.c (input_function): Pop cfun here
19338 (lto_read_body): Instead of here.
19339
19340 2013-09-06 Caroline Tice <cmtice@google.com>
19341
19342 * doc/install.texi: Add documentation for the --enable-vtable-verify
19343 and the --disable-libvtv configure options.
19344
19345 2013-09-06 Jeff Law <law@redhat.com>
19346
19347 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
19348 edge implied equivalences into successor phis.
19349
19350 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
19351
19352 * resource.c (mark_referenced_resources): Handle COND_EXEC.
19353
19354 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
19355
19356 * resource.c (mark_target_live_regs): Compute resources taking
19357 into account if a call is predicated or not.
19358
19359 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
19360
19361 * toplev.c (output_stack_usage): Be prepared for suffixes created by
19362 the compiler in the function names.
19363
19364 2013-09-06 Jan Hubicka <jh@suse.cz>
19365
19366 PR middle-end/58094
19367 * ipa-inline.c (has_caller_p): New function.
19368 (want_inline_function_to_all_callers_p): Use it.
19369 (sum_callers, inline_to_all_callers): Break out from ...
19370 (ipa_inline): ... here.
19371
19372 2013-09-06 Jan Hubicka <jh@suse.cz>
19373
19374 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
19375 only when AVX is enabled.
19376
19377 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
19378
19379 * config/aarch64/aarch64.md
19380 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
19381 is fpsimd_<load/store>2.
19382 (load_pair<mode>): Likewise.
19383 (store_pair<mode>): Likewise.
19384
19385 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
19386
19387 * config/arm/types.md (type): Add "mrs" type.
19388 * config/aarch64/aarch64.md
19389 (aarch64_load_tp_hard): Make type "mrs".
19390 * config/arm/arm.md
19391 (load_tp_hard): Make type "mrs".
19392 * config/arm/cortex-a15.md: Update with new attributes.
19393 * config/arm/cortex-a5.md: Update with new attributes.
19394 * config/arm/cortex-a53.md: Update with new attributes.
19395 * config/arm/cortex-a7.md: Update with new attributes.
19396 * config/arm/cortex-a8.md: Update with new attributes.
19397 * config/arm/cortex-a9.md: Update with new attributes.
19398 * config/arm/cortex-m4.md: Update with new attributes.
19399 * config/arm/cortex-r4.md: Update with new attributes.
19400 * config/arm/fa526.md: Update with new attributes.
19401 * config/arm/fa606te.md: Update with new attributes.
19402 * config/arm/fa626te.md: Update with new attributes.
19403 * config/arm/fa726te.md: Update with new attributes.
19404
19405 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
19406
19407 * config/aarch64/aarch64.md
19408 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
19409 (*movtf_aarch64): Likewise.
19410 * config/arm/arm.md
19411 (thumb1_movdi_insn): Use "multiple" for type where more than one
19412 instruction is used for a move.
19413 (*arm32_movhf): Likewise.
19414 (*thumb_movdf_insn): Likewise.
19415
19416 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
19417
19418 * config/arm/types.md (type): Rename fcpys to fmov.
19419 * config/arm/vfp.md
19420 (*arm_movsi_vfp): Rename type fcpys as fmov.
19421 (*thumb2_movsi_vfp): Likewise
19422 (*movhf_vfp_neon): Likewise
19423 (*movhf_vfp): Likewise
19424 (*movsf_vfp): Likewise
19425 (*thumb2_movsf_vfp): Likewise
19426 (*movsfcc_vfp): Likewise
19427 (*thumb2_movsfcc_vfp): Likewise
19428 * config/aarch64/aarch64-simd.md
19429 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
19430 * config/aarch64/aarch64.md
19431 (*movsi_aarch64): Replace type mov_reg with fmovs.
19432 (*movdi_aarch64): Likewise
19433 (*movsf_aarch64): Likewise
19434 (*movdf_aarch64): Likewise
19435 * config/arm/arm.c
19436 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
19437 * config/arm/iwmmxt.md
19438 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
19439 * config/arm/arm1020e.md: Update with new attributes.
19440 * config/arm/cortex-a15-neon.md: Update with new attributes.
19441 * config/arm/cortex-a5.md: Update with new attributes.
19442 * config/arm/cortex-a53.md: Update with new attributes.
19443 * config/arm/cortex-a7.md: Update with new attributes.
19444 * config/arm/cortex-a8-neon.md: Update with new attributes.
19445 * config/arm/cortex-a9.md: Update with new attributes.
19446 * config/arm/cortex-m4-fpu.md: Update with new attributes.
19447 * config/arm/cortex-r4f.md: Update with new attributes.
19448 * config/arm/marvell-pj4.md: Update with new attributes.
19449 * config/arm/vfp11.md: Update with new attributes.
19450
19451 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
19452
19453 * config/aarch64/aarch64.md
19454 (*madd<mode>): Fix type attribute.
19455 (*maddsi_uxtw): Likewise.
19456 (*msub<mode>): Likewise.
19457 (*msubsi_uxtw): Likewise.
19458 (<su_optab>maddsidi4): Likewise.
19459 (<su_optab>msubsidi4): Likewise.
19460
19461 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
19462
19463 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
19464 * config/arm/arm.md (core_cycles): Remove fdiv.
19465 * config/arm/vfp.md:
19466 (*sqrtsf2_vfp): Update for attribute changes.
19467 (*sqrtdf2_vfp): Likewise.
19468 * config/aarch64/aarch64.md:
19469 (sqrt<mode>2): Update for attribute changes.
19470 * config/arm/arm1020e.md: Update with new attributes.
19471 * config/arm/cortex-a15-neon.md: Update with new attributes.
19472 * config/arm/cortex-a5.md: Update with new attributes.
19473 * config/arm/cortex-a53.md: Update with new attributes.
19474 * config/arm/cortex-a7.md: Update with new attributes.
19475 * config/arm/cortex-a8-neon.md: Update with new attributes.
19476 * config/arm/cortex-a9.md: Update with new attributes.
19477 * config/arm/cortex-m4-fpu.md: Update with new attributes.
19478 * config/arm/cortex-r4f.md: Update with new attributes.
19479 * config/arm/marvell-pj4.md: Update with new attributes.
19480 * config/arm/vfp11.md: Update with new attributes.
19481
19482 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
19483
19484 * config/arm/types.md
19485 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
19486 * config/aarch64/aarch64.md
19487 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
19488 new attributes.
19489 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
19490 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
19491 (float<GPI:mode><GPF:mode>2): Likewise.
19492 * config/arm/vfp.md
19493 (*truncsisf2_vfp): Update with new attributes.
19494 (*truncsidf2_vfp): Likewise.
19495 (fixuns_truncsfsi2): Likewise.
19496 (fixuns_truncdfsi2): Likewise.
19497 (*floatsisf2_vfp): Likewise.
19498 (*floatsidf2_vfp): Likewise.
19499 (floatunssisf2): Likewise.
19500 (floatunssidf2): Likewise.
19501 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
19502 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
19503 * config/arm/arm1020e.md: Update with new attributes.
19504 * config/arm/cortex-a15-neon.md: Update with new attributes.
19505 * config/arm/cortex-a5.md: Update with new attributes.
19506 * config/arm/cortex-a53.md: Update with new attributes.
19507 * config/arm/cortex-a7.md: Update with new attributes.
19508 * config/arm/cortex-a8-neon.md: Update with new attributes.
19509 * config/arm/cortex-a9.md: Update with new attributes.
19510 * config/arm/cortex-m4-fpu.md: Update with new attributes.
19511 * config/arm/cortex-r4f.md: Update with new attributes.
19512 * config/arm/marvell-pj4.md: Update with new attributes.
19513 * config/arm/vfp11.md: Update with new attributes.
19514
19515 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
19516
19517 * config/aarch64/arm_neon.h
19518 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
19519 (vqtbx<1,2,3,4><q>_s8): Likewise.
19520
19521 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
19522
19523 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
19524 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
19525 (add<mode>3): Add type attribute.
19526 (add<mode>3): Likewise.
19527 (usadd<mode>3): Likewise.
19528 (ssadd<mode>3): Likewise.
19529 (sub<mode>3): Likewise.
19530 (sub<mode>3): Likewise.
19531 (ussub<mode>3): Likewise.
19532 (sssub<mode>3): Likewise.
19533 (ssmulsa3): Likewise.
19534 (usmulusa3): Likewise.
19535 (arm_usatsihi): Likewise.
19536 * config/arm/vfp.md
19537 (*movdi_vfp): Add types for all instructions.
19538 (*movdi_vfp_cortexa8): Likewise.
19539 (*movhf_vfp_neon): Likewise.
19540 (*movhf_vfp): Likewise.
19541 (*movdf_vfp): Likewise.
19542 (*thumb2_movdf_vfp): Likewise.
19543 (*thumb2_movdfcc_vfp): Likewise.
19544 * config/arm/arm.md: Add type attribute to all insn patterns.
19545 (*thumb1_adddi3): Add type attribute.
19546 (*arm_adddi3): Likewise.
19547 (*adddi_sesidi_di): Likewise.
19548 (*adddi_zesidi_di): Likewise.
19549 (*thumb1_addsi3): Likewise.
19550 (addsi3_compare0): Likewise.
19551 (*addsi3_compare0_scratch): Likewise.
19552 (*compare_negsi_si): Likewise.
19553 (cmpsi2_addneg): Likewise.
19554 (*addsi3_carryin_<optab>): Likewise.
19555 (*addsi3_carryin_alt2_<optab>): Likewise.
19556 (*addsi3_carryin_clobercc_<optab>): Likewise.
19557 (*subsi3_carryin): Likewise.
19558 (*subsi3_carryin_const): Likewise.
19559 (*subsi3_carryin_compare): Likewise.
19560 (*subsi3_carryin_compare_const): Likewise.
19561 (*arm_subdi3): Likewise.
19562 (*thumb_subdi3): Likewise.
19563 (*subdi_di_zesidi): Likewise.
19564 (*subdi_di_sesidi): Likewise.
19565 (*subdi_zesidi_di): Likewise.
19566 (*subdi_sesidi_di): Likewise.
19567 (*subdi_zesidi_ze): Likewise.
19568 (thumb1_subsi3_insn): Likewise.
19569 (*arm_subsi3_insn): Likewise.
19570 (*anddi3_insn): Likewise.
19571 (*anddi_zesidi_di): Likewise.
19572 (*anddi_sesdi_di): Likewise.
19573 (*ne_zeroextracts): Likewise.
19574 (*ne_zeroextracts): Likewise.
19575 (*ite_ne_zeroextr): Likewise.
19576 (*ite_ne_zeroextr): Likewise.
19577 (*anddi_notdi_di): Likewise.
19578 (*anddi_notzesidi): Likewise.
19579 (*anddi_notsesidi): Likewise.
19580 (andsi_notsi_si): Likewise.
19581 (thumb1_bicsi3): Likewise.
19582 (*iordi3_insn): Likewise.
19583 (*iordi_zesidi_di): Likewise.
19584 (*iordi_sesidi_di): Likewise.
19585 (*thumb1_iorsi3_insn): Likewise.
19586 (*xordi3_insn): Likewise.
19587 (*xordi_zesidi_di): Likewise.
19588 (*xordi_sesidi_di): Likewise.
19589 (*arm_xorsi3): Likewise.
19590 (*andsi_iorsi3_no): Likewise.
19591 (*smax_0): Likewise.
19592 (*smax_m1): Likewise.
19593 (*arm_smax_insn): Likewise.
19594 (*smin_0): Likewise.
19595 (*arm_smin_insn): Likewise.
19596 (*arm_umaxsi3): Likewise.
19597 (*arm_uminsi3): Likewise.
19598 (*minmax_arithsi): Likewise.
19599 (*minmax_arithsi_): Likewise.
19600 (*satsi_<SAT:code>): Likewise.
19601 (arm_ashldi3_1bit): Likewise.
19602 (arm_ashrdi3_1bit): Likewise.
19603 (arm_lshrdi3_1bit): Likewise.
19604 (*arm_negdi2): Likewise.
19605 (*thumb1_negdi2): Likewise.
19606 (*arm_negsi2): Likewise.
19607 (*thumb1_negsi2): Likewise.
19608 (*negdi_extendsid): Likewise.
19609 (*negdi_zero_extend): Likewise.
19610 (*arm_abssi2): Likewise.
19611 (*thumb1_abssi2): Likewise.
19612 (*arm_neg_abssi2): Likewise.
19613 (*thumb1_neg_abss): Likewise.
19614 (one_cmpldi2): Likewise.
19615 (extend<mode>di2): Likewise.
19616 (*compareqi_eq0): Likewise.
19617 (*arm_extendhisi2addsi): Likewise.
19618 (*arm_movdi): Likewise.
19619 (*thumb1_movdi_insn): Likewise.
19620 (*arm_movt): Likewise.
19621 (*thumb1_movsi_insn): Likewise.
19622 (pic_add_dot_plus_four): Likewise.
19623 (pic_add_dot_plus_eight): Likewise.
19624 (tls_load_dot_plus_eight): Likewise.
19625 (*thumb1_movhi_insn): Likewise.
19626 (*thumb1_movsf_insn): Likewise.
19627 (*movdf_soft_insn): Likewise.
19628 (*thumb_movdf_insn): Likewise.
19629 (cbranchsi4_insn): Likewise.
19630 (cbranchsi4_scratch): Likewise.
19631 (*negated_cbranchsi4): Likewise.
19632 (*tbit_cbranch): Likewise.
19633 (*tlobits_cbranch): Likewise.
19634 (*tstsi3_cbranch): Likewise.
19635 (*cbranchne_decr1): Likewise.
19636 (*addsi3_cbranch): Likewise.
19637 (*addsi3_cbranch_scratch): Likewise.
19638 (*arm_cmpdi_insn): Likewise.
19639 (*arm_cmpdi_unsig): Likewise.
19640 (*arm_cmpdi_zero): Likewise.
19641 (*thumb_cmpdi_zero): Likewise.
19642 (*deleted_compare): Likewise.
19643 (*mov_scc): Likewise.
19644 (*mov_negscc): Likewise.
19645 (*mov_notscc): Likewise.
19646 (*cstoresi_eq0_thumb1_insn): Likewise.
19647 (cstoresi_nltu_thumb1): Likewise.
19648 (cstoresi_ltu_thu): Likewise.
19649 (thumb1_addsi3_addgeu): Likewise.
19650 (*arm_jump): Likewise.
19651 (*thumb_jump): Likewise.
19652 (*check_arch2): Likewise.
19653 (arm_casesi_internal): Likewise.
19654 (thumb1_casesi_dispatch): Likewise.
19655 (*arm_indirect_jump): Likewise.
19656 (*thumb1_indirect_jump): Likewise.
19657 (nop): Likewise.
19658 (*and_scc): Likewise.
19659 (*ior_scc): Likewise.
19660 (*compare_scc): Likewise.
19661 (*cond_move): Likewise.
19662 (*cond_arith): Likewise.
19663 (*cond_sub): Likewise.
19664 (*cmp_ite0): Likewise.
19665 (*cmp_ite1): Likewise.
19666 (*cmp_and): Likewise.
19667 (*cmp_ior): Likewise.
19668 (*ior_scc_scc): Likewise.
19669 (*ior_scc_scc_cmp): Likewise.
19670 (*and_scc_scc): Likewise.
19671 (*and_scc_scc_cmp): Likewise.
19672 (*and_scc_scc_nod): Likewise.
19673 (*negscc): Likewise.
19674 (movcond_addsi): Likewise.
19675 (movcond): Likewise.
19676 (*ifcompare_plus_move): Likewise.
19677 (*if_plus_move): Likewise.
19678 (*ifcompare_move_plus): Likewise.
19679 (*if_move_plus): Likewise.
19680 (*ifcompare_arith_arith): Likewise.
19681 (*if_arith_arith): Likewise.
19682 (*ifcompare_arith_move): Likewise.
19683 (*if_arith_move): Likewise.
19684 (*ifcompare_move_arith): Likewise.
19685 (*if_move_arith): Likewise.
19686 (*ifcompare_move_not): Likewise.
19687 (*if_move_not): Likewise.
19688 (*ifcompare_not_move): Likewise.
19689 (*if_not_move): Likewise.
19690 (*ifcompare_shift_move): Likewise.
19691 (*if_shift_move): Likewise.
19692 (*ifcompare_move_shift): Likewise.
19693 (*if_move_shift): Likewise.
19694 (*ifcompare_shift_shift): Likewise.
19695 (*ifcompare_not_arith): Likewise.
19696 (*ifcompare_arith_not): Likewise.
19697 (*if_arith_not): Likewise.
19698 (*ifcompare_neg_move): Likewise.
19699 (*if_neg_move): Likewise.
19700 (*ifcompare_move_neg): Likewise.
19701 (*if_move_neg): Likewise.
19702 (prologue_thumb1_interwork): Likewise.
19703 (*cond_move_not): Likewise.
19704 (*sign_extract_onebit): Likewise.
19705 (*not_signextract_onebit): Likewise.
19706 (stack_tie): Likewise.
19707 (align_4): Likewise.
19708 (align_8): Likewise.
19709 (consttable_end): Likewise.
19710 (consttable_1): Likewise.
19711 (consttable_2): Likewise.
19712 (consttable_4): Likewise.
19713 (consttable_8): Likewise.
19714 (consttable_16): Likewise.
19715 (*thumb1_tablejump): Likewise.
19716 (prefetch): Likewise.
19717 (force_register_use): Likewise.
19718 (thumb_eh_return): Likewise.
19719 (load_tp_hard): Likewise.
19720 (load_tp_soft): Likewise.
19721 (tlscall): Likewise.
19722 (*arm_movtas_ze): Likewise.
19723 (*arm_rev): Likewise.
19724 (*arm_revsh): Likewise.
19725 (*arm_rev16): Likewise.
19726 * config/arm/thumb2.md
19727 (*thumb2_smaxsi3): Likewise.
19728 (*thumb2_sminsi3): Likewise.
19729 (*thumb32_umaxsi3): Likewise.
19730 (*thumb2_uminsi3): Likewise.
19731 (*thumb2_negdi2): Likewise.
19732 (*thumb2_abssi2): Likewise.
19733 (*thumb2_neg_abss): Likewise.
19734 (*thumb2_movsi_insn): Likewise.
19735 (tls_load_dot_plus_four): Likewise.
19736 (*thumb2_movhi_insn): Likewise.
19737 (*thumb2_mov_scc): Likewise.
19738 (*thumb2_mov_negs): Likewise.
19739 (*thumb2_mov_negs): Likewise.
19740 (*thumb2_mov_nots): Likewise.
19741 (*thumb2_mov_nots): Likewise.
19742 (*thumb2_movsicc_): Likewise.
19743 (*thumb2_movsfcc_soft_insn): Likewise.
19744 (*thumb2_indirect_jump): Likewise.
19745 (*thumb2_and_scc): Likewise.
19746 (*thumb2_ior_scc): Likewise.
19747 (*thumb2_ior_scc_strict_it): Likewise.
19748 (*thumb2_cond_move): Likewise.
19749 (*thumb2_cond_arith): Likewise.
19750 (*thumb2_cond_ari): Likewise.
19751 (*thumb2_cond_sub): Likewise.
19752 (*thumb2_negscc): Likewise.
19753 (*thumb2_movcond): Likewise.
19754 (thumb2_casesi_internal): Likewise.
19755 (thumb2_casesi_internal_pic): Likewise.
19756 (*thumb2_alusi3_short): Likewise.
19757 (*thumb2_mov<mode>_shortim): Likewise.
19758 (*thumb2_addsi_short): Likewise.
19759 (*thumb2_subsi_short): Likewise.
19760 (thumb2_addsi3_compare0): Likewise.
19761 (*thumb2_cbz): Likewise.
19762 (*thumb2_cbnz): Likewise.
19763 (*thumb2_one_cmplsi2_short): Likewise.
19764 (*thumb2_negsi2_short): Likewise.
19765 (*orsi_notsi_si): Likewise.
19766 * config/arm/arm1020e.md: Update with new attributes.
19767 * config/arm/arm1026ejs.md: Update with new attributes.
19768 * config/arm/arm1136jfs.md: Update with new attributes.
19769 * config/arm/arm926ejs.md: Update with new attributes.
19770 * config/arm/cortex-a15.md: Update with new attributes.
19771 * config/arm/cortex-a5.md: Update with new attributes.
19772 * config/arm/cortex-a53.md: Update with new attributes.
19773 * config/arm/cortex-a7.md: Update with new attributes.
19774 * config/arm/cortex-a8.md: Update with new attributes.
19775 * config/arm/cortex-a9.md: Update with new attributes.
19776 * config/arm/cortex-m4.md: Update with new attributes.
19777 * config/arm/cortex-r4.md: Update with new attributes.
19778 * config/arm/fa526.md: Update with new attributes.
19779 * config/arm/fa606te.md: Update with new attributes.
19780 * config/arm/fa626te.md: Update with new attributes.
19781 * config/arm/fa726te.md: Update with new attributes.
19782
19783 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
19784
19785 * config/aarch64/aarch64-simd.md
19786 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
19787 <vwx> iterator to ensure correct register choice.
19788 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
19789 (aarch64_sqdmull_n<mode>): Likewise.
19790 (aarch64_sqdmull2_n<mode>_internal): Likewise.
19791 * config/aarch64/arm_neon.h
19792 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
19793 (vml<as><q>_n_<su>16): Likewise.
19794 (vml<as>l_high_lane<q>_<su>16): Likewise.
19795 (vml<as>l_high_n_<su>16): Likewise.
19796 (vml<as>l_lane<q>_<su>16): Likewise.
19797 (vml<as>l_n_<su>16): Likewise.
19798 (vmul<q>_lane<q>_<su>16): Likewise.
19799 (vmul<q>_n_<su>16): Likewise.
19800 (vmull_lane<q>_<su>16): Likewise.
19801 (vmull_n_<su>16): Likewise.
19802 (vmull_high_lane<q>_<su>16): Likewise.
19803 (vmull_high_n_<su>16): Likewise.
19804 (vqrdmulh<q>_n_s16): Likewise.
19805
19806 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
19807
19808 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
19809 have the correct lane parameter.
19810
19811 2013-09-06 Richard Biener <rguenther@suse.de>
19812
19813 * cfganal.c (control_dependences::~control_dependences):
19814 Properly free all of the vector.
19815
19816 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
19817
19818 PR target/58269
19819 * config/i386/i386.c (ix86_conditional_register_usage):
19820 Proper initialize extended SSE registers.
19821
19822 2013-09-06 Jan Hubicka <jh@suse.cz>
19823
19824 PR tree-optimization/58311
19825 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
19826
19827 2013-09-06 Jan Hubicka <jh@suse.cz>
19828
19829 * Makefile.in (tree-sra.o): Update dependencies.
19830 * tree-sra.c: Include ipa-utils.h
19831 (scan_function): Use recursive_call_p.
19832 (has_caller_p): New function.
19833 (cgraph_for_node_and_aliases): Count also callers of aliases.
19834
19835 2013-09-06 Jan Hubicka <jh@suse.cz>
19836
19837 PR middle-end/58094
19838 * cgraph.h (symtab_semantically_equivalent_p): Declare.
19839 * tree-tailcall.c: Include ipa-utils.h.
19840 (find_tail_calls): Use it.
19841 * ipa-pure-const.c (check_call): Likewise.
19842 * ipa-utils.c (recursive_call_p): New function.
19843 * ipa-utils.h (recursive_call_p): Dclare.
19844 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
19845 (symtab_semantically_equivalent_p): New function.
19846 * Makefile.in (tree-tailcall.o): Update dependencies.
19847
19848 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
19849
19850 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
19851 non-inlinable part.
19852
19853 2013-09-06 Richard Biener <rguenther@suse.de>
19854
19855 * lto-streamer.h (lto_global_var_decls): Remove.
19856 * Makefile.in (OBJS): Remove lto-symtab.o.
19857 (lto-symtab.o): Remove.
19858 (GTFILES): Remove lto-symtab.c
19859 * lto-symtab.c: Move to lto/
19860
19861 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19862
19863 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
19864 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
19865 (UNSPEC_FPINT_RINT): New constant definitions.
19866 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
19867 definition with 2 attributes.
19868 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
19869 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
19870 definitions.
19871
19872 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19873
19874 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
19875 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
19876 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
19877 attribute to "z196_alone".
19878 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
19879 "zEC12_simple".
19880
19881 2013-09-06 Richard Biener <rguenther@suse.de>
19882
19883 * basic-block.h (class control_dependences): New.
19884 * tree-ssa-dce.c (control_dependence_map): Remove.
19885 (cd): New global.
19886 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
19887 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
19888 find_pdom, find_control_dependence, find_all_control_dependences):
19889 Move to cfganal.c.
19890 (mark_control_dependent_edges_necessary,
19891 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
19892 tree_dce_done, perform_tree_ssa_dce): Adjust.
19893 * cfganal.c (set_control_dependence_map_bit,
19894 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
19895 find_all_control_dependences): Move from tree-ssa-dce.c and
19896 implement as methods of control_dependences class.
19897 (control_dependences::control_dependences): New.
19898 (control_dependences::~control_dependences): Likewise.
19899 (control_dependences::get_edges_dependent_on): Likewise.
19900 (control_dependences::get_edge): Likewise.
19901
19902 2013-09-04 Jan Hubicka <jh@suse.cz>
19903
19904 * tree.c (types_same_for_odr): Drop overactive check.
19905 * ipa-devirt.c (hash_type_name): Likewise.
19906
19907 2013-09-04 Jan Hubicka <jh@suse.cz>
19908
19909 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
19910 (analyze_functions): ... here.
19911
19912 2013-09-04 Jan Hubicka <jh@suse.cz>
19913
19914 PR middle-end/58201
19915 * cgraphunit.c (analyze_functions): Clear AUX fields
19916 after processing; initialize assembler name has.
19917
19918 2013-09-05 Jeff Law <law@redhat.com>
19919
19920 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
19921 from thread_around_empty_block. Record threading path into PATH.
19922 Recurse if threading through the initial block is successful.
19923 (thread_across_edge): Corresponding changes to slightly simplify.
19924
19925 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
19926
19927 * config/aarch64/aarch64.md
19928 (type): Remove frecpe, frecps, frecpx.
19929 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
19930 fix to be a TARGET_SIMD instruction.
19931 (aarch64_frecps): Remove.
19932 * config/aarch64/aarch64-simd.md
19933 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
19934 (aarch64_frecps<mode>): Handle all float/vector of float modes.
19935
19936 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
19937 Sofiane Naci <sofiane.naci@arm.com>
19938
19939 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
19940 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
19941 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
19942 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
19943 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
19944 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
19945 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
19946 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
19947 into "clz, "rbit". Rename "shift" to "shift_imm".
19948 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
19949 changes. Update for attribute changes all occurrences of arlo_* and
19950 shift* types.
19951 * config/arm/arm-fixed.md: Update for attribute changes
19952 all occurrences of arlo_* types.
19953 * config/arm/thumb2.md: Update for attribute changes all occurrences
19954 of arlo_* types.
19955 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
19956 (cortexa7_older_only): Likewise.
19957 (cortexa7_younger): Likewise.
19958 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
19959 (1020alu_shift_op): Likewise.
19960 (1020alu_shift_reg_op): Likewise.
19961 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
19962 (alu_shift_op): Likewise.
19963 (alu_shift_reg_op): Likewise.
19964 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
19965 (11_alu_shift_op): Likewise.
19966 (11_alu_shift_reg_op): Likewise.
19967 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
19968 (9_alu_shift_reg_op): Likewise.
19969 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
19970 attribute changes.
19971 (cortex_a15_alu_shift): Likewise.
19972 (cortex_a15_alu_shift_reg): Likewise.
19973 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
19974 attribute changes.
19975 (cortex_a5_alu_shift): Likewise.
19976 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
19977 attribute changes.
19978 (cortex_a53_alu_shift): Likewise.
19979 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
19980 attribute changes.
19981 (cortex_a7_alu_reg): Likewise.
19982 (cortex_a7_alu_shift): Likewise.
19983 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
19984 attribute changes.
19985 (cortex_a8_alu_shift): Likewise.
19986 (cortex_a8_alu_shift_reg): Likewise.
19987 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
19988 (cortex_a9_dp_shift): Likewise.
19989 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
19990 attribute changes.
19991 * config/arm/cortex-r4.md
19992 (cortex_r4_alu): Update for attribute changes.
19993 (cortex_r4_mov): Likewise.
19994 (cortex_r4_alu_shift_reg): Likewise.
19995 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
19996 (526_alu_shift_op): Likewise.
19997 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
19998 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
19999 (626te_alu_shift_op): Likewise.
20000 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
20001 (726te_alu_shift_op): Likewise.
20002 (726te_alu_shift_reg_op): Likewise.
20003 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
20004 (mp626_alu_shift_op): Likewise.
20005 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
20006 (pj4_alu_conds): Likewise.
20007 (pj4_shift): Likewise.
20008 (pj4_shift_conds): Likewise.
20009 (pj4_alu_shift): Likewise.
20010 (pj4_alu_shift_conds): Likewise.
20011 * config/aarch64/aarch64.md: Update for attribute change
20012 all occurrences of arlo_* and shift* types.
20013
20014 2013-09-05 Mike Stump <mikestump@comcast.net>
20015
20016 * tree.h: Move documentation for tree_function_decl to tree-core.h
20017 with the declaration.
20018
20019 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
20020
20021 PR target/58139
20022 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
20023 looking for widest mode.
20024
20025 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
20026
20027 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
20028
20029 2013-09-05 Richard Biener <rguenther@suse.de>
20030
20031 PR tree-optimization/58137
20032 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
20033 Do not create vectors of pointers.
20034 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
20035 types for the components of the vector initializer.
20036 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
20037 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
20038
20039 2013-09-05 Martin Jambor <mjambor@suse.cz>
20040
20041 * ipa-prop.c (remove_described_reference): Accept missing references,
20042 return false if that hppens, otherwise return true.
20043 (cgraph_node_for_jfunc): New function.
20044 (try_decrement_rdesc_refcount): Likewise.
20045 (try_make_edge_direct_simple_call): Use them.
20046 (ipa_edge_removal_hook): Remove references from rdescs.
20047 (ipa_edge_duplication_hook): Clone rdescs and their references
20048 when the new edge has the same caller as the old one.
20049 * cgraph.c (cgraph_resolve_speculation): Remove speculative
20050 reference before removing any edges.
20051
20052 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
20053
20054 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
20055 initial store.
20056 * thumb2.md (thumb2_storewb_parisi): New pattern.
20057
20058 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
20059
20060 * config/aarch64/aarch64-option-extensions.def: Add
20061 AARCH64_OPT_EXTENSION of 'crc'.
20062 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
20063 (AARCH64_ISA_CRC): Ditto.
20064 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
20065 description of the CRC extension.
20066
20067 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
20068
20069 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
20070 * config/rs6000/linux.h: Ditto.
20071 * alpha/linux.h: Ditto.
20072 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
20073 no_c99_libc_has_function.
20074 * config/c6x/uclinux-elf.h: Ditto.
20075 * config/lm32/uclinux-elf.h: Ditto.
20076 * config/m68k/uclinux.h: Ditto.
20077 * config/moxie/uclinux.h: Ditto.
20078 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
20079 (crisv32-*-linux*, cris-*-linux*): Ditto.
20080 * config/bfin/bfin.c: Include "tm_p.h".
20081
20082 2013-09-05 Richard Biener <rguenther@suse.de>
20083
20084 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
20085 check for a definition without a basic-block.
20086
20087 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
20088 Sofiane Naci <sofiane.naci@arm.com>
20089
20090 * config/aarch64/aarch64.md
20091 (*movti_aarch64): Rename r_2_f and f_2_r.
20092 (*movsf_aarch64): Likewise.
20093 (*movdf_aarch64): Likewise.
20094 (*movtf_aarch64): Likewise.
20095 (aarch64_movdi_<mode>low): Likewise.
20096 (aarch64_movdi_<mode>high): Likewise.
20097 (aarch64_mov<mode>high_di): Likewise.
20098 (aarch64_mov<mode>low_di): Likewise.
20099 (aarch64_movtilow_tilow): Likewise.
20100 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
20101 values to config/arm/types.md
20102 (attribute "conds"): Update for attribute change.
20103 (anddi3_insn): Likewise.
20104 (iordi3_insn): Likewise.
20105 (xordi3_insn): Likewise.
20106 (one_cmpldi2): Likewise.
20107 * config/arm/types.md (type): Add Neon types.
20108 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
20109 use "type" attribute.
20110 (movmisalign<mode>_neon_store): Likewise.
20111 (movmisalign<mode>_neon_load): Likewise.
20112 (vec_set<mode>_internal): Likewise.
20113 (vec_setv2di_internal): Likewise.
20114 (vec_extract<mode>): Likewise.
20115 (vec_extractv2di): Likewise.
20116 (add<mode>3_neon): Likewise.
20117 (adddi3_neon): Likewise.
20118 (sub<mode>3_neon): Likewise.
20119 (subdi3_neon): Likewise.
20120 (mul<mode>3_neon): Likewise.
20121 (mul<mode>3add<mode>_neon): Likewise.
20122 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
20123 (fma<VCVTF:mode>4)): Likewise.
20124 (fma<VCVTF:mode>4_intrinsic): Likewise.
20125 (fmsub<VCVTF:mode>4)): Likewise.
20126 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
20127 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
20128 (ior<mode>3): Likewise.
20129 (and<mode>3): Likewise.
20130 (anddi3_neon): Likewise.
20131 (orn<mode>3_neon): Likewise.
20132 (orndi3_neon): Likewise.
20133 (bic<mode>3_neon): Likewise.
20134 (bicdi3_neon): Likewise.
20135 (xor<mode>3): Likewise.
20136 (one_cmpl<mode>2): Likewise.
20137 (abs<mode>2): Likewise.
20138 (neg<mode>2): Likewise.
20139 (umin<mode>3_neon): Likewise.
20140 (umax<mode>3_neon): Likewise.
20141 (smin<mode>3_neon): Likewise.
20142 (smax<mode>3_neon): Likewise.
20143 (vashl<mode>3): Likewise.
20144 (vashr<mode>3_imm): Likewise.
20145 (vlshr<mode>3_imm): Likewise.
20146 (ashl<mode>3_signed): Likewise.
20147 (ashl<mode>3_unsigned): Likewise.
20148 (neon_load_count): Likewise.
20149 (ashldi3_neon_noclobber): Likewise.
20150 (signed_shift_di3_neon): Likewise.
20151 (unsigned_shift_di3_neon): Likewise.
20152 (ashrdi3_neon_imm_noclobber): Likewise.
20153 (lshrdi3_neon_imm_noclobber): Likewise.
20154 (widen_ssum<mode>3): Likewise.
20155 (widen_usum<mode>3): Likewise.
20156 (quad_halves_<code>v4si): Likewise.
20157 (quad_halves_<code>v4sf): Likewise.
20158 (quad_halves_<code>v8hi): Likewise.
20159 (quad_halves_<code>v16qi): Likewise.
20160 (reduc_splus_v2di): Likewise.
20161 (neon_vpadd_internal<mode>): Likewise.
20162 (neon_vpsmin<mode>): Likewise.
20163 (neon_vpsmax<mode>): Likewise.
20164 (neon_vpumin<mode>): Likewise.
20165 (neon_vpumax<mode>): Likewise.
20166 (ss_add<mode>_neon): Likewise.
20167 (us_add<mode>_neon): Likewise.
20168 (ss_sub<mode>_neon): Likewise.
20169 (us_sub<mode>_neon): Likewise.
20170 (neon_vadd<mode>_unspec): Likewise.
20171 (neon_vaddl<mode>): Likewise.
20172 (neon_vaddw<mode>): Likewise.
20173 (neon_vhadd<mode>): Likewise.
20174 (neon_vqadd<mode>): Likewise.
20175 (neon_vaddhn<mode>): Likewise.
20176 (neon_vmul<mode>): Likewise.
20177 (neon_vmla<mode>): Likewise.
20178 (neon_vmlal<mode>): Likewise.
20179 (neon_vmls<mode>): Likewise.
20180 (neon_vmlsl<mode>): Likewise.
20181 (neon_vqdmulh<mode>): Likewise.
20182 (neon_vqdmlal<mode>): Likewise.
20183 (neon_vqdmlsl<mode>): Likewise.
20184 (neon_vmull<mode>): Likewise.
20185 (neon_vqdmull<mode>): Likewise.
20186 (neon_vsub<mode>_unspec): Likewise.
20187 (neon_vsubl<mode>): Likewise.
20188 (neon_vsubw<mode>): Likewise.
20189 (neon_vqsub<mode>): Likewise.
20190 (neon_vhsub<mode>): Likewise.
20191 (neon_vsubhn<mode>): Likewise.
20192 (neon_vceq<mode>): Likewise.
20193 (neon_vcge<mode>): Likewise.
20194 (neon_vcgeu<mode>): Likewise.
20195 (neon_vcgt<mode>): Likewise.
20196 (neon_vcgtu<mode>): Likewise.
20197 (neon_vcle<mode>): Likewise.
20198 (neon_vclt<mode>): Likewise.
20199 (neon_vcage<mode>): Likewise.
20200 (neon_vcagt<mode>): Likewise.
20201 (neon_vtst<mode>): Likewise.
20202 (neon_vabd<mode>): Likewise.
20203 (neon_vabdl<mode>): Likewise.
20204 (neon_vaba<mode>): Likewise.
20205 (neon_vabal<mode>): Likewise.
20206 (neon_vmax<mode>): Likewise.
20207 (neon_vmin<mode>): Likewise.
20208 (neon_vpaddl<mode>): Likewise.
20209 (neon_vpadal<mode>): Likewise.
20210 (neon_vpmax<mode>): Likewise.
20211 (neon_vpmin<mode>): Likewise.
20212 (neon_vrecps<mode>): Likewise.
20213 (neon_vrsqrts<mode>): Likewise.
20214 (neon_vqabs<mode>): Likewise.
20215 (neon_vqneg<mode>): Likewise.
20216 (neon_vcls<mode>): Likewise.
20217 (clz<mode>2): Likewise.
20218 (popcount<mode>2): Likewise.
20219 (neon_vrecpe): Likewise.
20220 (neon_vrsqrte): Likewise.
20221 (neon_vget_lane<mode>_sext_internal): Likewise.
20222 (neon_vget_lane<mode>_zext_internal): Likewise.
20223 (neon_vdup_n<mode>): Likewise.
20224 (neon_vdup_nv2di): Likewise.
20225 (neon_vdpu_lane<mode>_internal): Likewise.
20226 (neon_vswp<mode>): Likewise.
20227 (float<mode><V_cvtto>2): Likewise.
20228 (floatuns<mode><V_cvtto>2): Likewise.
20229 (fix_trunc<mode><V_cvtto>)2): Likewise
20230 (fixuns_trunc<mode><V_cvtto)2): Likewise.
20231 (neon_vcvt<mode>): Likewise.
20232 (neon_vcvtv4sfv4hf): Likewise.
20233 (neon_vcvtv4hfv4sf): Likewise.
20234 (neon_vcvt_n<mode>): Likewise.
20235 (neon_vmovn<mode>): Likewise.
20236 (neon_vqmovn<mode>): Likewise.
20237 (neon_vqmovun<mode>): Likewise.
20238 (neon_vmovl<mode>): Likewise.
20239 (neon_vmul_lane<mode>): Likewise.
20240 (neon_vmull_lane<mode>): Likewise.
20241 (neon_vqdmull_lane<mode>): Likewise.
20242 (neon_vqdmulh_lane<mode>): Likewise.
20243 (neon_vmla_lane<mode>): Likewise.
20244 (neon_vmlal_lane<mode>): Likewise.
20245 (neon_vqdmlal_lane<mode>): Likewise.
20246 (neon_vmls_lane<mode>): Likewise.
20247 (neon_vmlsl_lane<mode>): Likewise.
20248 (neon_vqdmlsl_lane<mode>): Likewise.
20249 (neon_vext<mode>): Likewise.
20250 (neon_vrev64<mode>): Likewise.
20251 (neon_vrev32<mode>): Likewise.
20252 (neon_vrev16<mode>): Likewise.
20253 (neon_vbsl<mode>_internal): Likewise.
20254 (neon_vshl<mode>): Likewise.
20255 (neon_vqshl<mode>): Likewise.
20256 (neon_vshr_n<mode>): Likewise.
20257 (neon_vshrn_n<mode>): Likewise.
20258 (neon_vqshrn_n<mode>): Likewise.
20259 (neon_vqshrun_n<mode>): Likewise.
20260 (neon_vshl_n<mode>): Likewise.
20261 (neon_vqshl_n<mode>): Likewise.
20262 (neon_vqshlu_n<mode>): Likewise.
20263 (neon_vshll_n<mode>): Likewise.
20264 (neon_vsra_n<mode>): Likewise.
20265 (neon_vsri_n<mode>): Likewise.
20266 (neon_vsli_n<mode>): Likewise.
20267 (neon_vtbl1v8qi): Likewise.
20268 (neon_vtbl2v8qi): Likewise.
20269 (neon_vtbl3v8qi): Likewise.
20270 (neon_vtbl4v8qi): Likewise.
20271 (neon_vtbx1v8qi): Likewise.
20272 (neon_vtbx2v8qi): Likewise.
20273 (neon_vtbx3v8qi): Likewise.
20274 (neon_vtbx4v8qi): Likewise.
20275 (neon_vtrn<mode>_internal): Likewise.
20276 (neon_vzip<mode>_internal): Likewise.
20277 (neon_vuzp<mode>_internal): Likewise.
20278 (neon_vld1<mode>): Likewise.
20279 (neon_vld1_lane<mode>): Likewise.
20280 (neon_vld1_dup<mode>): Likewise.
20281 (neon_vld1_dupv2di): Likewise.
20282 (neon_vst1<mode>): Likewise.
20283 (neon_vst1_lane<mode>): Likewise.
20284 (neon_vld2<mode>): Likewise.
20285 (neon_vld2_lane<mode>): Likewise.
20286 (neon_vld2_dup<mode>): Likewise.
20287 (neon_vst2<mode>): Likewise.
20288 (neon_vst2_lane<mode>): Likewise.
20289 (neon_vld3<mode>): Likewise.
20290 (neon_vld3qa<mode>): Likewise.
20291 (neon_vld3qb<mode>): Likewise.
20292 (neon_vld3_lane<mode>): Likewise.
20293 (neon_vld3_dup<mode>): Likewise.
20294 (neon_vst3<mode>): Likewise.
20295 (neon_vst3qa<mode>): Likewise.
20296 (neon_vst3qb<mode>): Likewise.
20297 (neon_vst3_lane<mode>): Likewise.
20298 (neon_vld4<mode>): Likewise.
20299 (neon_vld4qa<mode>): Likewise.
20300 (neon_vld4qb<mode>): Likewise.
20301 (neon_vld4_lane<mode>): Likewise.
20302 (neon_vld4_dup<mode>): Likewise.
20303 (neon_vst4<mode>): Likewise.
20304 (neon_vst4qa<mode>): Likewise.
20305 (neon_vst4qb<mode>): Likewise.
20306 (neon_vst4_lane<mode>): Likewise.
20307 (neon_vec_unpack<US>_lo_<mode>): Likewise.
20308 (neon_vec_unpack<US>_hi_<mode>): Likewise.
20309 (neon_vec_<US>mult_lo_<mode>): Likewise.
20310 (neon_vec_<US>mult_hi_<mode>): Likewise.
20311 (neon_vec_<US>shiftl_<mode>): Likewise.
20312 (neon_unpack<US>_<mode>): Likewise.
20313 (neon_vec_<US>mult_<mode>): Likewise.
20314 (vec_pack_trunc_<mode>): Likewise.
20315 (neon_vec_pack_trunk_<mode>): Likewise.
20316 (neon_vabd<mode>_2): Likewise.
20317 (neon_vabd<mode>_3): Likewise.
20318 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
20319 (thumb2_movsi_vfp): Likewise.
20320 (movdi_vfp): Likewise.
20321 (movdi_vfp_cortexa8): Likewise.
20322 (movhf_vfp_neon): Likewise.
20323 (movhf_vfp): Likewiwse.
20324 (movsf_vfp): Likewiwse.
20325 (thumb2_movsf_vfp): Likewiwse.
20326 (movdf_vfp): Likewise.
20327 (thumb2_movdf_vfp): Likewise.
20328 (movsfcc_vfp): Likewise.
20329 (thumb2_movsfcc_vfp): Likewise.
20330 (movdfcc_vfp): Likewise.
20331 (thumb2_movdfcc_vfp): Likewise.
20332 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
20333 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
20334 (v10_v2c): Likewise.
20335 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
20336 attribute change.
20337 (cortex_a15_neon_int_2): Likewise.
20338 (cortex_a15_neon_int_3): Likewise.
20339 (cortex_a15_neon_int_4): Likewise.
20340 (cortex_a15_neon_int_5): Likewise.
20341 (cortex_a15_neon_vqneg_vqabs): Likewise.
20342 (cortex_a15_neon_vmov): Likewise.
20343 (cortex_a15_neon_vaba): Likewise.
20344 (cortex_a15_neon_vaba_qqq): Likewise.
20345 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
20346 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
20347 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
20348 scalar_64_32_long_scalar): Likewise.
20349 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
20350 (cortex_a15_neon_mla_qqq_8_16): Likewise.
20351 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
20352 lotype_qdd_64_32_long): Likewise.
20353 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
20354 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
20355 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
20356 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
20357 (cortex_a15_neon_shift_1): Likewise.
20358 (cortex_a15_neon_shift_2): Likewise.
20359 (cortex_a15_neon_shift_3): Likewise.
20360 (cortex_a15_neon_vshl_ddd): Likewise.
20361 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
20362 (cortex_a15_neon_vsra_vrsra): Likewise.
20363 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
20364 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
20365 (cortex_a15_neon_fp_vmul_ddd): Likewise.
20366 (cortex_a15_neon_fp_vmul_qqd): Likewise.
20367 (cortex_a15_neon_fp_vmla_ddd): Likewise.
20368 (cortex_a15_neon_fp_vmla_qqq): Likewise.
20369 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
20370 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
20371 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
20372 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
20373 (cortex_a15_neon_bp_simple): Likewise.
20374 (cortex_a15_neon_bp_2cycle): Likewise.
20375 (cortex_a15_neon_bp_3cycle): Likewise.
20376 (cortex_a15_neon_vld1_1_2_regs): Likewise.
20377 (cortex_a15_neon_vld1_3_4_regs): Likewise.
20378 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
20379 (cortex_a15_neon_vld2_4_regs): Likewise.
20380 (cortex_a15_neon_vld3_vld4): Likewise.
20381 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
20382 (cortex_a15_neon_vst1_3_4_regs): Likewise.
20383 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
20384 (cortex_a15_neon_vst3_vst4): Likewise.
20385 (cortex_a15_neon_vld1_vld2_lane): Likewise.
20386 (cortex_a15_neon_vld3_vld4_lane" 10
20387 (cortex_a15_neon_vst1_vst2_lane): Likewise.
20388 (cortex_a15_neon_vst3_vst4_lane): Likewise.
20389 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
20390 (cortex_a15_neon_ldm_2): Likewise.0
20391 (cortex_a15_neon_stm_2): Likewise.
20392 (cortex_a15_neon_mcr): Likewise.
20393 (cortex_a15_neon_mcr_2_mcrr): Likewise.
20394 (cortex_a15_neon_mrc): Likewise.
20395 (cortex_a15_neon_mrrc): Likewise.
20396 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
20397 change.
20398 (cortex_a15_alu_shift): Likewise.
20399 (cortex_a15_alu_shift_reg): Likewise.
20400 (cortex_a15_mult32): Likewise.
20401 (cortex_a15_mult64): Likewise.
20402 (cortex_a15_block): Likewise.
20403 (cortex_a15_branch): Likewise.
20404 (cortex_a15_load1): Likewise.
20405 (cortex_a15_load3): Likewise.
20406 (cortex_a15_store1): Likewise.
20407 (cortex_a15_store3): Likewise.
20408 (cortex_a15_call): Likewise.
20409 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
20410 (cortex_a5_f2r): Likewise.
20411 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
20412 change.
20413 (cortex_a53_f2r): Likewise.
20414 * config/arm/cortex-a7.md
20415 (cortex_a7_branch): Update for attribute change.
20416 (cortex_a7_call): Likewise.
20417 (cortex_a7_alu_imm): Likewise.
20418 (cortex_a7_alu_reg): Likewise.
20419 (cortex_a7_alu_shift): Likewise.
20420 (cortex_a7_mul): Likewise.
20421 (cortex_a7_load1): Likewise.
20422 (cortex_a7_store1): Likewise.
20423 (cortex_a7_load2): Likewise.
20424 (cortex_a7_store2): Likewise.
20425 (cortex_a7_load3): Likewise.
20426 (cortex_a7_store3): Likewise.
20427 (cortex_a7_load4): Likewise.
20428 (cortex_a7_store4): Likewise.
20429 (cortex_a7_fpalu): Likewise.
20430 (cortex_a7_fconst): Likewise.
20431 (cortex_a7_fpmuls): Likewise.
20432 (cortex_a7_neon_mul): Likewise.
20433 (cortex_a7_fpmacs): Likewise.
20434 (cortex_a7_neon_mla: Likewise.
20435 (cortex_a7_fpmuld: Likewise.
20436 (cortex_a7_fpmacd: Likewise.
20437 (cortex_a7_fpfmad: Likewise.
20438 (cortex_a7_fdivs: Likewise.
20439 (cortex_a7_fdivd: Likewise.
20440 (cortex_a7_r2f: Likewise.
20441 (cortex_a7_f2r: Likewise.
20442 (cortex_a7_f_flags: Likewise.
20443 (cortex_a7_f_loads: Likewise.
20444 (cortex_a7_f_loadd: Likewise.
20445 (cortex_a7_f_stores: Likewise.
20446 (cortex_a7_f_stored: Likewise.
20447 (cortex_a7_neon): Likewise.
20448 * config/arm/cortex-a8-neon.md
20449 (cortex_a8_neon_mrc): Update for attribute change.
20450 (cortex_a8_neon_mrrc): Likewise.
20451 (cortex_a8_neon_int_1): Likewise.
20452 (cortex_a8_neon_int_2): Likewise.
20453 (cortex_a8_neon_int_3): Likewise.
20454 (cortex_a8_neon_int_4): Likewise.
20455 (cortex_a8_neon_int_5): Likewise.
20456 (cortex_a8_neon_vqneg_vqabs): Likewise.
20457 (cortex_a8_neon_vmov): Likewise.
20458 (cortex_a8_neon_vaba): Likewise.
20459 (cortex_a8_neon_vaba_qqq): Likewise.
20460 (cortex_a8_neon_vsma): Likewise.
20461 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
20462 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
20463 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
20464 long_scalar): Likewise.
20465 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
20466 (cortex_a8_neon_mla_qqq_8_16): Likewise.
20467 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
20468 long_scalar_qdd_64_32_long): Likewise.
20469 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
20470 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
20471 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
20472 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
20473 (cortex_a8_neon_shift_1): Likewise.
20474 (cortex_a8_neon_shift_2): Likewise.
20475 (cortex_a8_neon_shift_3): Likewise.
20476 (cortex_a8_neon_vshl_ddd): Likewise.
20477 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
20478 (cortex_a8_neon_vsra_vrsra): Likewise.
20479 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
20480 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
20481 (cortex_a8_neon_fp_vsum): Likewise.
20482 (cortex_a8_neon_fp_vmul_ddd): Likewise.
20483 (cortex_a8_neon_fp_vmul_qqd): Likewise.
20484 (cortex_a8_neon_fp_vmla_ddd): Likewise.
20485 (cortex_a8_neon_fp_vmla_qqq): Likewise.
20486 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
20487 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
20488 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
20489 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
20490 (cortex_a8_neon_bp_simple): Likewise.
20491 (cortex_a8_neon_bp_2cycle): Likewise.
20492 (cortex_a8_neon_bp_3cycle): Likewise.
20493 (cortex_a8_neon_ldr): Likewise.
20494 (cortex_a8_neon_str): Likewise.
20495 (cortex_a8_neon_vld1_1_2_regs): Likewise.
20496 (cortex_a8_neon_vld1_3_4_regs): Likewise.
20497 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
20498 (cortex_a8_neon_vld2_4_regs): Likewise.
20499 (cortex_a8_neon_vld3_vld4): Likewise.
20500 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
20501 (cortex_a8_neon_vst1_3_4_regs): Likewise.
20502 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
20503 (cortex_a8_neon_vst3_vst4): Likewise.
20504 (cortex_a8_neon_vld1_vld2_lane): Likewise.
20505 (cortex_a8_neon_vld3_vld4_lane): Likewise.
20506 (cortex_a8_neon_vst1_vst2_lane): Likewise.
20507 (cortex_a8_neon_vst3_vst4_lane): Likewise.
20508 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
20509 (cortex_a8_neon_mcr): Likewise.
20510 (cortex_a8_neon_mcr_2_mcrr): Likewise.
20511 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
20512 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
20513 change.
20514 (ca9_neon_mrrc): Likewise.
20515 (cortex_a9_neon_int_1): Likewise.
20516 (cortex_a9_neon_int_2): Likewise.
20517 (cortex_a9_neon_int_3): Likewise.
20518 (cortex_a9_neon_int_4): Likewise.
20519 (cortex_a9_neon_int_5): Likewise.
20520 (cortex_a9_neon_vqneg_vqabs): Likewise.
20521 (cortex_a9_neon_vmov): Likewise.
20522 (cortex_a9_neon_vaba): Likewise.
20523 (cortex_a9_neon_vaba_qqq): Likewise.
20524 (cortex_a9_neon_vsma): Likewise.
20525 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
20526 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
20527 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
20528 long_scalar): Likewise.
20529 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
20530 (cortex_a9_neon_mla_qqq_8_16): Likewise.
20531 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
20532 long_scalar_qdd_64_32_long): Likewise.
20533 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
20534 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
20535 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
20536 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
20537 (cortex_a9_neon_shift_1): Likewise.
20538 (cortex_a9_neon_shift_2): Likewise.
20539 (cortex_a9_neon_shift_3): Likewise.
20540 (cortex_a9_neon_vshl_ddd): Likewise.
20541 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
20542 (cortex_a9_neon_vsra_vrsra): Likewise.
20543 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
20544 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
20545 (cortex_a9_neon_fp_vsum): Likewise.
20546 (cortex_a9_neon_fp_vmul_ddd): Likewise.
20547 (cortex_a9_neon_fp_vmul_qqd): Likewise.
20548 (cortex_a9_neon_fp_vmla_ddd): Likewise.
20549 (cortex_a9_neon_fp_vmla_qqq): Likewise.
20550 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
20551 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
20552 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
20553 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
20554 (cortex_a9_neon_bp_simple): Likewise.
20555 (cortex_a9_neon_bp_2cycle): Likewise.
20556 (cortex_a9_neon_bp_3cycle): Likewise.
20557 (cortex_a9_neon_ldr): Likewise.
20558 (cortex_a9_neon_str): Likewise.
20559 (cortex_a9_neon_vld1_1_2_regs): Likewise.
20560 (cortex_a9_neon_vld1_3_4_regs): Likewise.
20561 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
20562 (cortex_a9_neon_vld2_4_regs): Likewise.
20563 (cortex_a9_neon_vld3_vld4): Likewise.
20564 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
20565 (cortex_a9_neon_vst1_3_4_regs): Likewise.
20566 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
20567 (cortex_a9_neon_vst3_vst4): Likewise.
20568 (cortex_a9_neon_vld1_vld2_lane): Likewise.
20569 (cortex_a9_neon_vld3_vld4_lane): Likewise.
20570 (cortex_a9_neon_vst1_vst2_lane): Likewise.
20571 (cortex_a9_neon_vst3_vst4_lane): Likewise.
20572 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
20573 (cortex_a9_neon_mcr): Likewise.
20574 (cortex_a9_neon_mcr_2_mcrr): Likewise.
20575 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
20576 (cortex_a9_fps): Likewise.
20577 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
20578 change.
20579 (cortex_m4_fmuls): Likewise.
20580 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
20581 change.
20582 (cortex_r4_mrc): Likewise.
20583 * config/arm/iterators.md: Update comment referring to neon_type.
20584 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
20585 (iwmmxt_movsi_insn): Likewise.
20586 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
20587 attribute change.
20588 (pj4_core_to_vfp): Likewise.
20589 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
20590 attribute change.
20591 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
20592 (vfp_fstore): Likewise.
20593 * doc/md.texi: Change references to neon_type to refer to type.
20594
20595 2013-09-04 Dodji Seketeli <dodji@redhat.com>
20596
20597 * tree.h (DECL_BUILT_IN): Fix typo in comment.
20598
20599 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
20600
20601 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
20602 lglobl if not weak.
20603
20604 2013-09-04 Easwaran Raman <eraman@google.com>
20605
20606 PR middle-end/57370
20607 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
20608 (build_and_add_sum): Use it.
20609 (appears_later_in_bb): Simplify code.
20610
20611 2013-09-04 Teresa Johnson <tejohnson@google.com>
20612
20613 * dumpfile.c (dump_finish): Don't close stderr/stdout.
20614
20615 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
20616
20617 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
20618
20619 2013-09-04 Jan Hubicka <jh@suse.cz>
20620
20621 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
20622 * ipa-devirt.c: Include diganostic.h
20623 (odr_type_d): Add types and types_set.
20624 (hash_type_name): Work for types with vtables during LTO.
20625 (odr_hasher::remove): Fix comment; destroy types_set.
20626 (add_type_duplicate): New function,
20627 (get_odr_type): Use it.
20628 (dump_type_inheritance_graph): Dump type duplicates.
20629 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
20630 graph.
20631 * tree.c (types_same_for_odr): Give exact answers on types with
20632 virtual tables.
20633
20634 2013-09-04 Dodji Seketeli <dodji@redhat.com>
20635
20636 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
20637 explaining their differences.
20638
20639 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
20640
20641 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
20642
20643 2013-09-03 Jeff Law <law@redhat.com>
20644
20645 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
20646 when not threading through a joiner block. Pass joiner/no joiner
20647 state to register_jump_thread.
20648 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
20649 state from argument rather than implying on path length.
20650 Dump the entire jump thread path into debugging dump.
20651 * tree-flow.h (register_jump_thread): Update prototype.
20652
20653 2013-08-29 Xinliang David Li <davidxl@google.com>
20654
20655 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
20656 Remove a trivial gcc_assert.
20657
20658 2013-08-29 Xinliang David Li <davidxl@google.com>
20659
20660 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
20661 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
20662 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
20663 Delay base decl alignment adjustment.
20664 * tree-vectorizer.c (vect_destroy_datarefs): New function.
20665 * tree-vectorizer.h: New data structure.
20666 (set_dr_misalignment): New function.
20667 (dr_misalignment): Ditto.
20668 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
20669 (vectorizable_load): Ditto.
20670 (ensure_base_align): New function.
20671 (vectorize_loops): Add dbg_cnt support.
20672 (execute_vect_slp): Ditto.
20673 * dbgcnt.def: New debug counter.
20674 * Makefile: New dependency.
20675
20676 2013-09-03 Meador Inge <meadori@codesourcery.com>
20677
20678 Revert:
20679
20680 2013-08-30 Meador Inge <meadori@codesourcery.com>
20681
20682 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
20683
20684 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
20685
20686 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
20687 function descriptor.
20688
20689 2013-09-03 Richard Biener <rguenther@suse.de>
20690
20691 * tree-affine.c (add_elt_to_tree): Fix association issue,
20692 avoid useless converts and make sure to always return a
20693 properly typed result.
20694
20695 2013-09-03 Richard Biener <rguenther@suse.de>
20696
20697 PR middle-end/57656
20698 * fold-const.c (negate_expr_p): Fix division case.
20699 (negate_expr): Likewise.
20700
20701 2013-09-03 Richard Biener <rguenther@suse.de>
20702
20703 PR lto/58285
20704 * tree-streamer-out.c: Include tm.h.
20705 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
20706
20707 2013-09-03 Jan Hubicka <jh@suse.cz>
20708
20709 * tree-profile.c (tree_profiling): Cleanup CFG when done.
20710
20711 2013-09-03 Alan Modra <amodra@gmail.com>
20712
20713 * config.gcc (powerpc*-*-linux*): Add support for little-endian
20714 multilibs to big-endian target and vice versa.
20715 * config/rs6000/t-linux64: Use := assignment on all vars.
20716 (MULTILIB_EXTRA_OPTS): Remove fPIC.
20717 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
20718 * config/rs6000/t-linux64le: New file.
20719 * config/rs6000/t-linux64bele: New file.
20720 * config/rs6000/t-linux64lebe: New file.
20721
20722 2013-09-02 Jan Hubicka <jh@suse.cz>
20723
20724 * ipa-inline-transform.c (inline_transform): Do not
20725 optimize_inline_calls when not optimizing.
20726
20727 2013-09-02 Jan Hubicka <jh@suse.cz>
20728
20729 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
20730 duplicated nodes for assembler names.
20731 * symtab.c (symtab_unregister_node): Do not attempt to unlink
20732 hard registers from assembler name hash.
20733
20734 2013-09-02 Jan Hubicka <jh@suse.cz>
20735
20736 * ipa-split.c (execute_split_functions): Split externally visible
20737 functions called once.
20738
20739 2013-09-02 Martin Jambor <mjambor@suse.cz>
20740
20741 PR ipa/58106
20742 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
20743 linked list. When finding the correct duplicate, also consider also
20744 the caller in additon to its inlined_to node.
20745
20746 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
20747
20748 * config/aarch64/aarch64-simd-builtins.def
20749 (dup_lane_scalar): Remove.
20750 * config/aarch64/aarch64-simd.md
20751 (aarch64_simd_dup): Add 'w->w' alternative.
20752 (aarch64_dup_lane<mode>): Allow for VALL.
20753 (aarch64_dup_lane_scalar<mode>): Remove.
20754 (aarch64_dup_lane_<vswap_width_name><mode>): New.
20755 (aarch64_get_lane_signed<mode>): Add w->w altenative.
20756 (aarch64_get_lane_unsigned<mode>): Likewise.
20757 (aarch64_get_lane<mode>): Likewise.
20758 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
20759 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
20760 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
20761 (VCON): Change container of V2SF.
20762 (vswap_width_name): Likewise.
20763 * config/aarch64/arm_neon.h
20764 (__aarch64_vdup_lane_any): New.
20765 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
20766 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
20767 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
20768
20769 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
20770
20771 PR middle-end/56382
20772 * expr.c (emit_move_complex): Do not move complex FP values as parts if
20773 the source or the destination is a single hard register.
20774
20775 2013-09-02 Richard Biener <rguenther@suse.de>
20776
20777 PR middle-end/57511
20778 * tree-scalar-evolution.c (instantiate_scev_name): Allow
20779 non-linear SCEVs.
20780
20781 2013-09-02 Richard Biener <rguenther@suse.de>
20782
20783 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
20784 arithmetic to sizetype.
20785
20786 2013-09-02 Bin Cheng <bin.cheng@arm.com>
20787
20788 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
20789 Find auto-increment use both before and after candidate.
20790
20791 2013-09-02 Marek Polacek <polacek@redhat.com>
20792
20793 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
20794
20795 2013-09-01 Jan Hubicka <jh@suse.cz>
20796
20797 * Makefile.in: Add ipa-profile.o
20798 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
20799 * cgraph.c (struct cgraph_propagate_frequency_data,
20800 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
20801 ipa-profile.c; replace cgraph_ by ipa_ prefix.
20802 * cgraph.h (cgraph_propagate_frequency): Remove.
20803 * ipa-inline-analysis.c: Include ipa-utils.h;
20804 drop duplicated cfgloop.h.
20805 (inline_update_callee_summaries): Update.
20806 * ipa-profile.c: New file.
20807 * ipa-utils.h (ipa_propagate_frequency): Declare.
20808 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
20809 data-streamer.h, value-prof.h.
20810 (symtab_remove_unreachable_nodes): Update profile.
20811 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
20812 account_time_size, cmp_counts, dump_histogram,
20813 ipa_profile_generate_summary, ipa_profile_write_summary,
20814 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
20815 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
20816 Move to ipa-profile.c.
20817
20818 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
20819
20820 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
20821
20822 2013-09-01 Jan Hubicka <jh@suse.cz>
20823
20824 * common.opt (fdevirtualize-speculatively): New function.
20825 * invoke.texi (fdevirtualize-speculatively): Document.
20826 * ipa-devirt.c: Include ipa-inline.h
20827 (likely_target_p): New function.
20828 (ipa_devirt): New function.
20829 (gate_ipa_devirt): New function.
20830 (pass_data_ipa_devirt): New static var.
20831 (pass_ipa_devirt): Likewise.
20832 (make_pass_ipa_devirt): New function.
20833 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
20834 (common_handle_option): Disable devirtualization when
20835 value range profiling is available.
20836 * passes.def (pass_ipa_devirt): Add.
20837 * timever.def (TV_IPA_DEVIRT): New timevar.
20838 * tree-pass.h (make_pass_ipa_devirt):
20839
20840 2013-09-01 Iain Sandoe <iain@codesourcery.com>
20841
20842 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
20843 include sanitize(undefined).
20844
20845 2013-08-31 Diego Novillo <dnovillo@google.com>
20846
20847 * Makefile.in (TREE_CORE_H): Define.
20848 (TREE_H): Use.
20849 (GTFILES): Add tree-core.h.
20850 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
20851 size the array.
20852 * tree-core.h: New file.
20853 Move all data structures, enum, typedefs, global
20854 declarations and constants from ...
20855 * tree.h: ... here.
20856
20857 2013-08-31 Jan Hubicka <jh@suse.cz>
20858
20859 * bulitins.c (expand_builtin): Do not early exit for gcov
20860 instrumented functions.
20861
20862 2013-08-31 Marek Polacek <polacek@redhat.com>
20863
20864 * ubsan.c: Include tm_p.h.
20865
20866 2013-08-31 Jan Hubicka <jh@suse.cz>
20867
20868 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
20869 warning.
20870
20871 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
20872 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
20873 * tree-cfg.c (verify_gimple_label): ... here.
20874 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
20875 (ipa_merge_profiles): New function.
20876 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
20877 (lto_input_function_body): Likewise.
20878 * ipa-utils.h (ipa_merge_profiles): Declare.
20879 * lto-streamer.h (lto_input_function_body): Update prototype.
20880 (emit_label_in_global_context_p): Remove.
20881 * lto-symtab.c: Include ipa-utils.h
20882 (lto_cgraph_replace_node): Use ipa_merge_profiles.
20883
20884 2013-08-31 Jan Hubicka <jh@suse.cz>
20885
20886 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
20887
20888 2013-08-31 Jan Hubicka <jh@suse.cz>
20889
20890 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
20891
20892 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
20893
20894 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
20895 "cmp" RTX before signed_comparison_operator check to account
20896 for "code" changes.
20897
20898 2013-08-30 Jan Hubicka <jh@suse.cz>
20899
20900 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
20901 (detect_type_change_1): Rename to ...
20902 (detect_type_change): ... this one; early return on non-polymorphic
20903 types.
20904 (detect_type_change_ssa): Add comp_type parameter; update
20905 use of detect_type_change.
20906 (compute_complex_assign_jump_func): Add param_type parameter;
20907 update use of detect_type_change_ssa.
20908 (compute_complex_ancestor_jump_func): Likewise.
20909 (ipa_get_callee_param_type): New function.
20910 (ipa_compute_jump_functions_for_edge): Compute parameter type;
20911 update calls to the jump function computation functions.
20912
20913 2013-08-30 Teresa Johnson <tejohnson@google.com>
20914 Steven Bosscher <steven@gcc.gnu.org>
20915
20916 * cfgrtl.c (fixup_new_cold_bb): New routine.
20917 (commit_edge_insertions): Invoke fixup_partitions.
20918 (find_partition_fixes): New routine.
20919 (fixup_partitions): Ditto.
20920 (verify_hot_cold_block_grouping): Update comments.
20921 (rtl_verify_edges): Invoke find_partition_fixes.
20922 (rtl_verify_bb_pointers): Update comments.
20923 (rtl_verify_bb_layout): Ditto.
20924 * basic-block.h (probably_never_executed_edge_p): Declare.
20925 (fixup_partitions): Ditto.
20926 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
20927 * bb-reorder.c (sanitize_hot_paths): New function.
20928 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
20929 sanitize_hot_paths.
20930 * predict.c (probably_never_executed_edge_p): New routine.
20931 * cfg.c (check_bb_profile): Add partition insanity warnings.
20932
20933 2013-08-30 Meador Inge <meadori@codesourcery.com>
20934
20935 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
20936
20937 2013-08-30 Marek Polacek <polacek@redhat.com>
20938
20939 * Makefile.in (ubsan.o): Add.
20940 (c-family/c-ubsan.o): Add.
20941 (builtins.o): Add ubsan.h dependency.
20942 * ubsan.h: New file.
20943 * ubsan.c: New file.
20944 * common.opt: Add -fsanitize=undefined option.
20945 (flag_sanitize): Add variable.
20946 (fsanitize=): Add option. Add Driver.
20947 (fsanitize=thread): Remove option.
20948 (fsanitize=address): Likewise.
20949 (static-libubsan): New option.
20950 * doc/invoke.texi: Document the new flag and -static-libubsan.
20951 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
20952 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
20953 * builtin-attrs.def (ATTR_COLD): Define.
20954 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
20955 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
20956 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
20957 * flag-types.h (sanitize_code): New enum.
20958 * opts.c (common_handle_option): Parse command line arguments
20959 of -fsanitize=. Add -fsanitize=unreachable option.
20960 * varasm.c (get_variable_section): Adjust.
20961 (assemble_noswitch_variable): Likewise.
20962 (assemble_variable): Likewise.
20963 (output_constant_def_contents): Likewise.
20964 (categorize_decl_for_section): Likewise.
20965 (place_block_symbol): Likewise.
20966 (output_object_block): Likewise.
20967 * builtins.def: Likewise.
20968 * toplev.c (compile_file): Likewise.
20969 (process_options): Likewise.
20970 * cppbuiltin.c: Likewise.
20971 * tsan.c (tsan_pass): Likewise.
20972 (tsan_gate): Likewise.
20973 (tsan_gate_O0): Likewise.
20974 * cfgexpand.c (partition_stack_vars): Likewise.
20975 (expand_stack_vars): Likewise.
20976 (defer_stack_allocation): Likewise.
20977 (expand_used_vars): Likewise.
20978 * cfgcleanup.c (old_insns_match_p): Likewise.
20979 * asan.c (asan_finish_file): Likewise.
20980 (asan_instrument): Likewise.
20981 (gate_asan): Likewise.
20982 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
20983 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
20984 (asan_global_struct): Use pointer_sized_int_node instead
20985 calling build_nonstandard_integer_type.
20986 (initialize_sanitizer_builtins): Likewise.
20987 (asan_finish_file): Likewise.
20988 * gcc.c: Document %{%:function(args):X}.
20989 (static_spec_functions): Add sanitize.
20990 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
20991 store funcval != NULL there.
20992 (do_spec_1): Adjust handle_spec_function caller.
20993 (handle_braces): Allow %:function(args) as condition.
20994 (sanitize_spec_function): New function.
20995 (ADD_STATIC_LIBUBSAN_LIBS): Define.
20996 (LIBUBSAN_SPEC): Likewise.
20997 (LIBUBSAN_EARLY_SPEC): Likewise.
20998 (SANITIZER_SPEC): Handle libubsan.
20999 (SANITIZER_EARLY_SPEC): Likewise.
21000 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
21001 instead of fsanitize=address.
21002 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
21003 instead of fsanitize=address*.
21004 * builtins.c: Include ubsan.h.
21005 (fold_builtin_0): Instrument __builtin_unreachable.
21006 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
21007 instead of flag_asan.
21008 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
21009 (pointer_sized_int_node): Define.
21010 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
21011
21012 2013-08-30 Mike Stump <mikestump@comcast.net>
21013
21014 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
21015 with RE patterns.
21016
21017 2013-08-29 Jan Hubicka <jh@suse.cz>
21018
21019 * cgraph.c (cgraph_function_body_availability): Handle weakref
21020 correctly.
21021 * passes.def: Remove pass_fixup_cfg.
21022 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
21023 track when we need to remove functions.
21024 (gate_ipa_inline): Execute inlining always; add comment why.
21025 (pass_data_ipa_inline): Remove TODO_remove_functions.
21026 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
21027 do not produce summaries.
21028 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
21029 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
21030 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
21031 constant pool and vtable.
21032
21033 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
21034
21035 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
21036 New arm_neon.h's internal macros to specify 64-bit constants.
21037 Avoid using stdint.h's macros.
21038
21039 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
21040
21041 * recog.c (verify_changes): Verify that changes[i].old is non-zero
21042 before applying REG_P.
21043
21044 2013-08-30 Jakub Jelinek <jakub@redhat.com>
21045
21046 PR tree-optimization/58277
21047 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
21048 after seeing too many stmts with vdef in between dombb and current
21049 bb, invalidate everything.
21050
21051 2013-08-30 Richard Biener <rguenther@suse.de>
21052
21053 * fold-const.c (fold_single_bit_test): Fix overflow test.
21054
21055 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
21056
21057 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
21058 and which can live in a register, always retrieve the value on entry.
21059 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
21060 passed by invisible reference specially.
21061 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
21062 (vt_add_function_parameter): Correctly deal with a parameter passed by
21063 invisible reference.
21064
21065 2013-08-30 Jan Hubicka <jh@suse.cz>
21066
21067 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
21068
21069 2013-08-30 Richard Biener <rguenther@suse.de>
21070
21071 PR tree-optimization/58228
21072 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
21073 allow invariant loads in nested loop vectorization.
21074
21075 2013-08-30 Richard Biener <rguenther@suse.de>
21076
21077 PR tree-optimization/58223
21078 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
21079 (has_anti_or_output_dependence): ... this and adjust to also
21080 look for output dependences.
21081 (mark_nodes_having_upstream_mem_writes): Adjust.
21082 (rdg_flag_uses): Likewise.
21083
21084 2013-08-30 Richard Biener <rguenther@suse.de>
21085
21086 PR tree-optimization/58010
21087 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
21088 assert that we have a loop-closed PHI.
21089
21090 2013-08-29 Jan Hubicka <jh@suse.cz>
21091
21092 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
21093 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
21094 * lto-section-in.c (lto_free_function_in_decl_state): New function.
21095 (lto_free_function_in_decl_state_for_node): New function.
21096
21097 2013-08-29 Xinliang David Li <davidxl@google.com>
21098
21099 * loop-unroll.c (report_unroll_peel): Minor message change.
21100 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
21101 Emit alignment peeling message with default -fopt-info.
21102 (vect_loop_versioning): Emit loop version info message.
21103 * tree-vectorizer.c (vectorize_loops): Minor message change.
21104 (execute_vect_slp): Ditto.
21105
21106 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
21107
21108 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
21109 of the clone from the DECL_NAME of the original function.
21110
21111 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
21112
21113 * passes.c (register_pass): Add overload.
21114 * tree-pass.h (register_pass): Forward declare it. Add comment.
21115
21116 2013-08-29 Jan Hubicka <jh@suse.cz>
21117
21118 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
21119 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
21120 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
21121 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
21122 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
21123 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
21124 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
21125 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
21126
21127 2013-08-29 Teresa Johnson <tejohnson@google.com>
21128
21129 * dumpfile.c (dump_loc): Output column number.
21130 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
21131 * doc/invoke.texi: Document optall -fopt-info flag.
21132 * profile.c (read_profile_edge_counts): Use new dump framework.
21133 (compute_branch_probabilities): Ditto.
21134 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
21135 when pass not in any opt group.
21136 * pass_manager.h (pass_manager::get_pass_profile): New method.
21137 * value-prof.c (check_counter): Use new dump framework.
21138 (check_ic_target): Ditto.
21139 * coverage.c (get_coverage_counts): Ditto.
21140 (coverage_init): Setup new dump framework.
21141
21142 2013-08-29 Richard Biener <rguenther@suse.de>
21143
21144 PR tree-optimization/58246
21145 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
21146 handle the dominance check inside a basic-block.
21147
21148 2013-08-29 Richard Biener <rguenther@suse.de>
21149
21150 PR middle-end/57287
21151 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
21152 of default defs that appear in abnormal PHI nodes.
21153
21154 2013-08-29 Richard Biener <rguenther@suse.de>
21155
21156 PR tree-optimization/57685
21157 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
21158 single-use operands to avoid exponential complexity.
21159
21160 2013-08-28 Dehao Chen <dehao@google.com>
21161
21162 * ipa-inline.c (edge_badness): Fix integer underflow.
21163
21164 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
21165
21166 * gtm-builtins.def (_ITM_free): Declare leaf.
21167
21168 2013-08-28 Jakub Jelinek <jakub@redhat.com>
21169
21170 PR target/58067
21171 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
21172 (*tls_local_dynamic_base_64_largepic): Likewise.
21173 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
21174 Remove predicate from call operand.
21175 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
21176 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
21177
21178 2013-08-28 Jeff Law <law@redhat.com>
21179
21180 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
21181 checks for the number of predecessors and successors allowed.
21182 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
21183 which require copying a joiner block if there is a request which
21184 is a subpath that requires no joiner block copying.
21185
21186 2013-08-28 Jan Hubicka <jh@suse.cz>
21187
21188 * lto-streamer-out.c (DFS_write_tree_body): Drop
21189 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
21190 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
21191 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
21192 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
21193 Do not read DECL_ERROR_ISSUED.
21194 (unpack_ts_decl_with_vis_value_fields): Do not read
21195 DECL_DEFER_OUTPUT.
21196 (lto_input_ts_binfo_tree_pointers): Do not read
21197 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
21198 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
21199 write DECL_ERROR_ISSUED..
21200 (pack_ts_decl_with_vis_value_fields): Do not write
21201 DECL_DEFER_OUTPUT.
21202 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
21203 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
21204 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
21205 * tree.h (tree_decl_common): Update comment.
21206 (DECL_ERROR_ISSUED): Remove.
21207
21208 2013-08-28 Jakub Jelinek <jakub@redhat.com>
21209
21210 PR middle-end/58257
21211 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
21212
21213 2013-08-28 Jan Hubicka <jh@suse.cz>
21214
21215 * builtins.def (free): Declare leaf.
21216
21217 2013-08-27 David Malcolm <dmalcolm@redhat.com>
21218
21219 * gdbhooks.py: New.
21220 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
21221 * configure: Regenerate.
21222
21223 2013-08-27 Martin Jambor <mjambor@suse.cz>
21224
21225 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
21226 (ipa_ancestor_jf_data): Likewise.
21227 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
21228 (ipa_get_jf_pass_through_type_preserved): New function.
21229 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
21230 (ipa_get_jf_ancestor_type_preserved): New function.
21231 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
21232 (ipa_get_jf_ancestor_result): Likewise.
21233 (propagate_vals_accross_pass_through): Use
21234 ipa_get_jf_pass_through_result to do all the value mappings.
21235 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
21236 type_preserved flag.
21237 (ipa_set_jf_cst_copy): New function.
21238 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
21239 (ipa_set_jf_arith_pass_through): Likewise.
21240 (ipa_set_ancestor_jf): Likewise.
21241 (compute_complex_assign_jump_func): Set type_preserved instead of
21242 punting.
21243 (ipa_compute_jump_functions_for_edge): Likewise.
21244 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
21245 (update_jump_functions_after_inlining): Update type_preserved.
21246 Explicitely create jump functions when combining one with pass_through.
21247 (ipa_write_jump_function): Stream the type_preserved flags.
21248 (ipa_read_jump_function): Likewise.
21249
21250 2013-08-27 Jakub Jelinek <jakub@redhat.com>
21251 Aldy Hernandez <aldyh@redhat.com>
21252
21253 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
21254 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
21255 * function.h (struct function): Add has_force_vect_loops and
21256 has_simduid_loops.
21257 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
21258 * gimple.c (gimple_build_omp_critical): Add KIND argument and
21259 handle it.
21260 * gimple.def: Update CLAUSES comments.
21261 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
21262 (gimple_build_omp_for): Add argument to prototype.
21263 (gimple_omp_for_kind): New.
21264 (gimple_omp_for_set_kind): New.
21265 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
21266 GOVD_DATA_SHARE_CLASS.
21267 (enum omp_region_type): Add ORT_SIMD.
21268 (gimple_add_tmp_var): Handle ORT_SIMD.
21269 (gimplify_var_or_parm_decl): Same.
21270 (is_gimple_stmt): Same.
21271 (omp_firstprivatize_variable): Same.
21272 (omp_add_variable): Only use splay_tree_insert if lookup failed.
21273 (omp_notice_variable): Handle ORT_SIMD.
21274 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
21275 (omp_check_private): Handle ORT_SIMD.
21276 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
21277 OMP_CLAUSE_SAFELEN.
21278 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
21279 Handle OMP_CLAUSE_LASTPRIVATE.
21280 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
21281 OMP_CLAUSE_SAFELEN.
21282 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
21283 (gimplify_expr): Handle OMP_SIMD.
21284 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
21285 (expand_GOMP_SIMD_VF): New.
21286 (expand_GOMP_SIMD_LAST_LANE): New.
21287 * internal-fn.def (GOMP_SIMD_LANE): New.
21288 (GOMP_SIMD_VF): New.
21289 (GOMP_SIMD_LAST_LANE): New.
21290 * omp-low.c: Include target.h.
21291 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
21292 OMP_CLAUSE_SAFELEN.
21293 (check_omp_nesting_restrictions): Same.
21294 (omp_max_vf): New.
21295 (lower_rec_simd_input_clauses): New.
21296 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
21297 OMP_CLAUSE_LINEAR.
21298 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
21299 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
21300 (expand_omp_build_assign): New.
21301 (expand_omp_for_init_counts): New.
21302 (expand_omp_for_init_vars): New.
21303 (extract_omp_for_update_vars): New.
21304 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
21305 and rewrite accordingly.
21306 (expand_omp_simd): New.
21307 (expand_omp_for): Use expand_omp_simd.
21308 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
21309 (lower_omp_for): Do not lower the body.
21310 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
21311 in their own loops.
21312 * tree-flow.h (find_omp_clause): Remove prototype.
21313 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
21314 forcing vectorization of the loop, or if flag_tree_vectorize.
21315 (gate_tree_if_conversion): Similarly.
21316 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
21317 gimple_build_omp_for.
21318 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
21319 * tree-parloops (create_parallel_loop): Pass kind argument to
21320 gimple_build_omp_for.
21321 * tree-pretty-print.c (dump_omp_clause): Add cases for
21322 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
21323 OMP_CLAUSE__SIMDUID_.
21324 (dump_generic_node): Handle OMP_SIMD.
21325 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
21326 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
21327 unroll OMP_SIMD loops here.
21328 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
21329 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
21330 loop->safelen.
21331 (vect_analyze_data_refs): Handle simd loops.
21332 * tree-vect-loop.c (vectorizable_live_operation): Handle
21333 IFN_GOMP_SIMD*.
21334 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
21335 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
21336 (vectorizable_load): Same.
21337 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
21338 (struct simduid_to_vf): New.
21339 (simduid_to_vf::hash): New.
21340 (simduid_to-vf::equal): New.
21341 (struct simd_array_to_simduid): New.
21342 (simd_array_to_simduid::hash): New.
21343 (simd_array_to_simduid::equal): New.
21344 (adjust_simduid_builtins): New.
21345 (struct note_simd_array_uses_struct): New.
21346 (note_simd_array_uses_cb): New.
21347 (note_simd_array_uses): New.
21348 (vectorize_loops): Handle simd hints and adjust simd builtins
21349 accordingly.
21350 * tree-vectorizer.h (struct _stmt_vec_info): Add
21351 simd_lane_access_p field.
21352 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
21353 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
21354 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
21355 (omp_clause_code_name): Same.
21356 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
21357 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
21358 * tree.def (OMP_SIMD): New entry.
21359 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
21360 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
21361 (OMP_CLAUSE_DECL): Adjust range for new clauses.
21362 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
21363 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
21364 (OMP_CLAUSE_LINEAR_STEP): New.
21365 (OMP_CLAUSE_SAFELEN_EXPR): New.
21366 (OMP_CLAUSE__SIMDUID__DECL): New.
21367 (find_omp_clause): New prototype.
21368
21369 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
21370
21371 * config/i386/driver-i386.c (host_detect_local_cpu): Update
21372 Haswell processor detection.
21373
21374 2013-08-27 Christian Widmer <shadow@umbrox.de>
21375
21376 PR target/57927
21377 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
21378 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
21379 AVX2 capable processors.
21380
21381 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
21382
21383 * config/aarch64/arm_neon.h: Replace all inline asm implementations
21384 of vget_low_* with implementations in terms of other intrinsics.
21385
21386 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
21387
21388 PR middle-end/57219
21389 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
21390 values to -1, 0 and 1.
21391
21392 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
21393
21394 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
21395 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
21396 (<optab><mode>3_insn): Remove.
21397 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
21398 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
21399 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
21400 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
21401 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
21402 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
21403 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
21404 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
21405 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
21406 (ror<mode>3_insn): Likewise.
21407 * config/aarch64/predicates.md (aarch64_simd_register): New.
21408
21409 2013-08-27 Richard Biener <rguenther@suse.de>
21410
21411 PR tree-optimization/57521
21412 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
21413 one edge is non-critical.
21414 (find_phi_replacement_condition): Make sure to use a non-critical
21415 edge. Cleanup and remove old bug workarounds.
21416 (bb_postdominates_preds): Remove.
21417 (if_convertible_loop_p_1): Do not compute post-dominators.
21418 (combine_blocks): Do not free post-dominators.
21419 (main_tree_if_conversion): Likewise.
21420 (pass_data_if_conversion): Add TODO_verify_ssa.
21421
21422 2013-08-27 DJ Delorie <dj@redhat.com>
21423
21424 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
21425
21426 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
21427
21428 * function.c (assign_parm_find_data_types): Set passed_mode and
21429 nominal_mode to the TYPE_MODE of nominal_type for the built
21430 pointer type in case of the struct-pass-by-reference.
21431
21432 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
21433
21434 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
21435 (UINT16_TYPE): Change default to "unsigned int".
21436
21437 * config/avr/avr.opt (mfract-convert-truncate): New option.
21438 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
21439 is set, round negative fractional integers according to n1169
21440 when converting to integer types.
21441
21442 2013-08-26 Jan Hubicka <jh@suse.cz>
21443
21444 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
21445 methods can not be called indirectly when their address is not taken.
21446
21447 2013-08-26 Jan Hubicka <jh@suse.cz>
21448
21449 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
21450 ctor_for_folding.
21451
21452 2013-08-26 Jan Hubicka <jh@suse.cz>
21453
21454 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
21455 can be unshared.
21456
21457 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
21458
21459 * reload.c (find_valid_class): Allow classes that do not include
21460 FIRST_PSEUDO_REGISTER - 1.
21461
21462 2013-08-26 Jan Hubicka <jh@suse.cz>
21463
21464 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
21465 fix edge count/frequency when speculation failed; fix type check
21466 for the direct call.
21467
21468 2013-08-26 Jan Hubicka <jh@suse.cz>
21469
21470 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
21471
21472 2013-08-26 Jan Hubicka <jh@suse.cz>
21473
21474 * ipa-inline-transform.c (inline_transform): Be ready for basic block
21475 to be changed by edge redirection.
21476
21477 2013-08-26 Jan Hubicka <jh@suse.cz>
21478
21479 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
21480 formating; add sanity check.
21481 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
21482 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
21483 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
21484 (resolve_noninline_speculation): Update callee keys, too.
21485
21486 2013-08-26 Jan Hubicka <jh@suse.cz>
21487
21488 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
21489 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
21490
21491 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
21492
21493 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
21494 into proper place.
21495
21496 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
21497
21498 * config/i386/i386.c (ix86_debug_options): Remove prototype.
21499 (x86_64_elf_select_section): Ditto.
21500 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
21501 arguments.
21502 (ix86_pass_by_reference): Ditto.
21503 (output_set_got): Ditto.
21504 (ix86_unary_operator_ok): Ditto.
21505 (ix86_expand_builtin): Ditto.
21506
21507 2013-08-23 Jan Hubicka <jh@suse.cz>
21508
21509 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
21510
21511 2013-08-23 Jan Hubicka <jh@suse.cz>
21512
21513 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
21514 (tree_decl_with_vis): Add FINAL field.
21515
21516 2013-08-23 Jeff Law <law@redhat.com>
21517
21518 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
21519 the debugging dump when the expression is fully redundant.
21520
21521 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
21522
21523 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
21524 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
21525 * pretty-print.c (pp_formatted_text_data): Likewise.
21526 (pp_write_text_to_stream): Likewise.
21527 (pp_write_text_as_dot_label_to_stream): Likewise.
21528 (pp_append_r): Likewise.
21529 (pp_format): Likewise.
21530 (pp_flush): Likewise.
21531 (pp_clear_output_area): Likewise.
21532 (pp_append_text): Likewise.
21533 (pp_formatted_text): Likewise.
21534 (pp_remaining_character_count_for_line): Likewise.
21535 (pp_newline): Likewise.
21536 (pp_character): Likewise.
21537 (output_buffer::~output_buffer): Define.
21538 (pretty_printer::~pretty_printer): Destruct output buffer.
21539 * pretty-print.h (output_buffer::~output_buffer): Declare.
21540 (pretty_printer::~pretty_printer): Declare virtual.
21541
21542 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
21543
21544 PR other/57324
21545 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
21546 HOST_WIDE_INT_M1U): New macros.
21547 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
21548 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
21549 unsigned -1 for lshift.
21550 * cse.c (cse_insn): Likewise.
21551 * double-int.c (rshift_double, lshift_double): Likewise.
21552 * builtins.c (fold_builtin_bitop): Likewise.
21553 * combine.c (force_to_mode): Likewise.
21554 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
21555 * simplify-rtx.c (simplify_const_unary_operation,
21556 simplify_const_binary_operation): Likewise.
21557 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
21558 check_va_list_escapes): Likewise.
21559 * rtlanal.c (nonzero_bits1): Likewise.
21560 * expmed.c (expand_smod_pow2): Likewise.
21561 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
21562
21563 2013-08-23 Jan Hubicka <jh@suse.cz>
21564
21565 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
21566 as having address taken.
21567
21568 2013-08-23 Jan Hubicka <jh@suse.cz>
21569
21570 * ipa-utils.h (method_class_type): Declare.
21571 * ipa-devirt.c (method_class_type): Export.
21572
21573 * cgraphunit.c (analyze_functions): Do basic devirtualization;
21574 do not walk base classes of anonymous types.
21575
21576 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
21577
21578 PR rtl-optimization/58220
21579 PR regression/58221
21580 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
21581 handle SEQUENCE insns properly.
21582
21583 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
21584
21585 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
21586 definition.
21587 (pp_newline_and_indent): Likewise.
21588 (pp_separate_with): Likewise.
21589 * pretty-print.c (pp_newline_and_flush): Define.
21590 (pp_newline_and_indent): Likewise.
21591 (pp_separate_with): Likewise.
21592
21593 2013-08-23 Jakub Jelinek <jakub@redhat.com>
21594
21595 PR target/58218
21596 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
21597 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
21598
21599 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
21600
21601 * config/i386/predicates.md (ext_sse_reg_operand): New.
21602 * config/i386/i386.md (*movti_internal): Use
21603 predicate to determine if EVEX is needed.
21604 (*movsi_internal): Ditto.
21605 (*movdf_internal): Ditto.
21606 (*movsf_internal): Ditto.
21607 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
21608
21609 2013-08-23 Jakub Jelinek <jakub@redhat.com>
21610
21611 PR tree-optimization/58209
21612 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
21613 (find_tail_calls): Give up for pointer result types if m is non-NULL.
21614 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
21615 emit POINTER_PLUS_EXPR.
21616 (create_tailcall_accumulator): For pointer result type accumulate in
21617 sizetype type.
21618
21619 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
21620
21621 * configure.ac: Add backslashes missing from the last change.
21622 * configure: Regenerate.
21623
21624 2013-08-22 Jan Hubicka <jh@susue.cz>
21625
21626 * ipa.c (function_and_variable_visibility): First remember function
21627 was global and then make it local.
21628
21629 2013-08-22 Julian Brown <julian@codesourcery.com>
21630
21631 * configure.ac: Add aarch64 to list of arches which use "nop" in
21632 debug_line test.
21633 * configure: Regenerate.
21634
21635 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21636
21637 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
21638 gnu_libc_has_function.
21639 * config/s390/tpf.h: Likewise.
21640
21641 2013-08-22 Jan Hubicka <jh@susue.cz>
21642
21643 * timevar.c (validate_phases): Add cast.
21644
21645 2013-08-22 Jan Hubicka <jh@susue.cz>
21646
21647 * timevar.c (validate_phases): Use size_t for memory.
21648 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
21649
21650 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
21651
21652 * pretty-print.h (output_buffer::output_buffer): Declare.
21653 (pretty_printer::pretty_printer): Likewise.
21654 (pp_construct): Remove.
21655 * pretty-print.c (output_buffer::output_buffer): Define.
21656 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
21657 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
21658 (print_gimple_expr): Likewise.
21659 (print_gimple_seq): Likewise.
21660 (gimple_dump_bb): Likewise.
21661 * sched-vis.c (dump_value_slim): Likewise.
21662 (dump_insn_slim): Likewise.
21663 (dump_rtl_slim): Likewise.
21664 (str_pattern_slim): Likewise.
21665 * tree-mudflap.c (mf_varname_tree): Likewise.
21666 * graph.c (print_graph_cfg): Likewise.
21667 (start_graph_dump): Likewise.
21668 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
21669 placement-new.
21670 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
21671 pretty printer initialization.
21672 * coretypes.h (diagnostic_context): Remove superflous type alias
21673 declaration.
21674 (pretty_printer): Likewise. Declare directly as a class.
21675 (pretty_print_info): Remove declaration as class.
21676 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
21677 and pp_clear_output_area.
21678 (asan_add_global): Likewise.
21679
21680 2013-08-22 Jan Hubicka <jh@suse.cz>
21681
21682 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
21683 * ipa-utils.h (update_type_inheritance_graph): Declare.
21684 (possible_polymorphic_call_target_p): Declare.
21685 (possible_polymorphic_call_target_p): New.
21686 * ipa-devirt.c: Update toplevel comments.
21687 (cached_polymorphic_call_targets): Move up.
21688 (odr_type_d): Move ID down.
21689 (polymorphic_type_binfo_p): Update comment.
21690 (odr_hasher::remove): Likewise;
21691 (get_odr_type): Set anonymous_namespace.
21692 (dump_odr_type): Dump it.
21693 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
21694 (maybe_record_node): Record node in cached_polymorphic_call_targets.
21695 (record_binfo): Add comment.
21696 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
21697 built.
21698 (devirt_node_removal_hook): Do not iCE when cache is freed.
21699 (possible_polymorphic_call_target_p): New predicate.
21700 (update_type_inheritance_graph): New function.
21701
21702 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
21703 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21704 Sergey Lega <sergey.s.lega@intel.com>
21705 Anna Tikhonova <anna.tikhonova@intel.com>
21706 Ilya Tocar <ilya.tocar@intel.com>
21707 Andrey Turetskiy <andrey.turetskiy@intel.com>
21708 Ilya Verbin <ilya.verbin@intel.com>
21709 Kirill Yukhin <kirill.yukhin@intel.com>
21710 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21711
21712 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
21713 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
21714 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
21715 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
21716 (OPTION_MASK_ISA_AVX2_UNSET): Update.
21717 (OPTION_MASK_ISA_AVX512F_UNSET): New.
21718 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
21719 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
21720 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
21721 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
21722 OPT_mavx512pf, OPT_mavx512er cases.
21723 * config/i386/constraints.md (v): New constraint.
21724 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
21725 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
21726 (bit_AVX512CD): New.
21727 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
21728 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
21729 * config/i386/i386-c.c (ix86_target_macros_internal):
21730 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
21731 __AVX512PF__.
21732 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
21733 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
21734 * config/i386/i386.c (regclass_map, dbx_register_map)
21735 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
21736 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
21737 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
21738 -mavx512pf options.
21739 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
21740 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
21741 -mavx512pf options. Fix formatting.
21742 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
21743 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
21744 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
21745 -mavx512cd, -mavx512pf options.
21746 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
21747 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
21748 (ix86_preferred_output_reload_class): Replace SSE_REGS with
21749 ALL_SSE_REGS.
21750 (ix86_hard_regno_mode_ok): Support 512-bit registers.
21751 (ix86_set_reg_reg_cost): Ditto.
21752 (x86_order_regs_for_local_alloc): Ditto.
21753 (MAX_VECT_LEN): Extend to 64-byte.
21754 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
21755 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
21756 (TARGET_AVX512ER, TARGET_AVX512CD): New.
21757 (BIGGEST_ALIGNMENT): Extend to 512-bits.
21758 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
21759 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
21760 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
21761 (SSE_REG_MODE_P): Support new modes.
21762 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
21763 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
21764 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
21765 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
21766 (REG_CLASS_CONTENTS): Add new registers.
21767 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
21768 (EXT_REX_SSE_REGNO_P): New.
21769 (HI_REGISTER_NAMES): Add new registers.
21770 * config/i386/i386.md: Define constants for new registers.
21771 (mode): Add new 512-bit modes.
21772 (prefix): Support evex prefix.
21773 (isa): Support avx512f, noavx512f, fma_avx512f.
21774 (ssemodesuffix): Add new 512-bit modes.
21775 (movxi): New.
21776 (*movxi_internal_avx512f): Ditto.
21777 (*movdi_internal): Replace constraint "x" with the new constraint "v".
21778 Support MODE_XI.
21779 (*movsi_internal): Likewise.
21780 (*movdf_internal): Likewise.
21781 (*movsf_internal): Likewise.
21782 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
21783 (<code><mode>3): Likewise.
21784 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
21785 New.
21786 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
21787 with the new constraint "v".
21788 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
21789 modes.
21790 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
21791 with the new constraint "v".
21792 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
21793 (<sse2>_storedqu<avxsizesuffix>): Likewise.
21794 (*<plusminus_insn><mode>3): Likewise.
21795 (<sse>_vm<plusminus_insn><mode>3): Likewise.
21796 (*mul<mode>3): Likewise.
21797 (<sse>_vmmul<mode>3): Likewise.
21798 (<sse>_div<mode>3): Likewise.
21799 (<sse>_vmdiv<mode>3): Likewise.
21800 (<sse>_sqrt<mode>2): Likewise.
21801 (<sse>_vmsqrt<mode>2): Likewise.
21802 (*<code><mode>3_finite): Likewise.
21803 (*<code><mode>3) <smaxmin>: Likewise.
21804 (<sse>_vm<code><mode>3): Likewise.
21805 (*<code><mode>3) <any_logic>: Likewise.
21806 (*fma_fmadd_<mode>): Likewise.
21807 (*fma_fmsub_<mode>): Likewise.
21808 (*fma_fnmadd_<mode>): Likewise.
21809 (*fma_fnmsub_<mode>): Likewise.
21810 (*fma_fmaddsub_<mode>): Likewise.
21811 (*fma_fmsubadd_<mode>): Likewise.
21812 (*fmai_fmadd_<mode>): Likewise.
21813 (*fmai_fmsub_<mode>): Likewise.
21814 (*fmai_fnmadd_<mode>): Likewise.
21815 (*fmai_fnmsub_<mode>): Likewise.
21816 (sse_cvtsi2ss): Likewise.
21817 (sse_cvtsi2ssq): Likewise.
21818 (sse_cvtss2si): Likewise.
21819 (sse_cvtss2si_2): Likewise.
21820 (sse_cvtss2siq): Likewise.
21821 (sse_cvtss2siq_2): Likewise.
21822 (sse_cvttss2si): Likewise.
21823 (sse_cvtss2siq_2): Likewise.
21824 (float<sseintvecmodelower><mode>2): Likewise.
21825 (sse2_cvtsd2si_2): Likewise.
21826 (sse2_cvtsd2siq_2): Likewise.
21827 (*<plusminus_insn><mode>3): Likewise.
21828 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
21829 (*<sse4_1_avx2>_mul<mode>3): Likewise.
21830 (ashr<mode>3): Likewise.
21831 (<shift_insn><mode>3): Likewise.
21832 (avx2_<code><mode>3): Likewise.
21833 (*avx2_<code><mode>3): Likewise.
21834 (*andnot<mode>3): Likewise.
21835 (*<code><mode>3) <any_logic>: Likewise.
21836 (abs<mode>2): Likewise.
21837 (avx2_permvar<mode>): Likewise.
21838 (avx2_perm<mode>_1): Likewise.
21839 (*avx_vpermilp<mode>): Likewise.
21840 (avx_vpermilvar<mode>3): Likewise.
21841 (avx2_ashrv<mode>): Likewise.
21842 (avx2_<shift_insn>v<mode>): Likewise.
21843 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
21844 -mavx512cd.
21845 * doc/rtl.texi: Document XImode.
21846
21847 2013-08-21 Jeff Law <law@redhat.com>
21848
21849 * tree-flow.h (register_jump_thread): Pass vector of edges
21850 instead of each important edge.
21851 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
21852 thread path into a vector and pass that to register_jump_thread.
21853 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
21854 passed in edge vector to the current 3-edge form.
21855
21856 Revert:
21857 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
21858
21859 * dce.c (fini_dce): Call df_analyze again just in case
21860 delete_unmarked_insns removed anything.
21861
21862 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
21863
21864 * reload.h (struct reg_equivs): Rename to ..
21865 (struct reg_equivs_s): .. this.
21866
21867 2013-08-20 Martin Liska <marxin.liska@gmail.com>
21868
21869 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
21870
21871 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21872
21873 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
21874
21875 2013-08-21 Jeff Law <law@redhat.com>
21876
21877 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
21878 simplify assignments too. If the RHS collapses to a singleton
21879 range, then return the value for the range.
21880
21881 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
21882
21883 * config/i386/sse.md (V16): Rename to...
21884 (VMOVE): this.
21885 (mov<mode>): Update iterator name.
21886 (*mov<mode>_internal): Ditto.
21887 (push<mode>1): Ditto.
21888 (movmisalign<mode>): Ditto.
21889
21890 2013-08-20 Jan Hubicka <jh@suse.cz>
21891
21892 PR bootstrap/58186
21893 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
21894 entry for direct edges.
21895 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
21896
21897 2013-08-20 David Malcolm <dmalcolm@redhat.com>
21898
21899 Revert my last two changes, r201865 and r201864:
21900
21901 Revert r201865:
21902 2013-08-20 David Malcolm <dmalcolm@redhat.com>
21903
21904 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
21905 instances can own GC refs.
21906
21907 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
21908 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
21909 (gcc::context::gt_pch_nx): Likewise.
21910 (gcc::context::gt_pch_nx): Likewise.
21911 * ggc.h (gt_ggc_mx <T>): New.
21912 (gt_pch_nx_with_op <T>): New.
21913 (gt_pch_nx <T>): New.
21914 * passes.c (opt_pass::gt_ggc_mx): New.
21915 (opt_pass::gt_pch_nx): New.
21916 (opt_pass::gt_pch_nx_with_op): New.
21917 (pass_manager::gt_ggc_mx): New.
21918 (pass_manager::gt_pch_nx): New.
21919 (pass_manager::gt_pch_nx_with_op): New.
21920 (pass_manager::operator new): Use
21921 ggc_internal_cleared_alloc_stat rather than xcalloc.
21922 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
21923 (pass_manager::gt_ggc_mx): New.
21924 (pass_manager::gt_pch_nx): New.
21925 (pass_manager::gt_pch_nx_with_op): New.
21926 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
21927 (opt_pass::operator new): New.
21928 (opt_pass::gt_ggc_mx): New.
21929 (opt_pass::gt_pch_nx): New.
21930 (opt_pass::gt_pch_nx_with_op): New.
21931
21932 Revert r201864:
21933 2013-08-20 David Malcolm <dmalcolm@redhat.com>
21934
21935 * Makefile.in (GTFILES): Add context.h.
21936 * context.c (gcc::context::operator new): New.
21937 (gcc::context::gt_ggc_mx): New.
21938 (gcc::context::gt_pch_nx): New.
21939 (gcc::context::gt_pch_nx): New.
21940 * context.h (gcc::context): Add GTY((user)) marking.
21941 (gcc::context::operator new): New.
21942 (gcc::context::gt_ggc_mx): New.
21943 (gcc::context::gt_pch_nx): New.
21944 (gcc::context::gt_pch_nx): New.
21945 (g): Add GTY marking.
21946 (gt_ggc_mx (gcc::context *)): New.
21947 (gt_pch_nx (gcc::context *)): New.
21948 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
21949 void *cookie)): New.
21950 * gengtype.c (open_base_files) <ifiles>: Add context.h.
21951
21952 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
21953
21954 * dce.c (fini_dce): Call df_analyze again just in case
21955 delete_unmarked_insns removed anything.
21956
21957 2013-08-20 Teresa Johnson <tejohnson@google.com>
21958
21959 PR rtl-optimizations/57451
21960 * final.c (reemit_insn_block_notes): Prevent lexical blocks
21961 from crossing split section boundaries.
21962
21963 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
21964
21965 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
21966 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
21967 with MULTLIB_DEFAULTS.
21968
21969 2013-08-20 Nick Clifton <nickc@redhat.com>
21970
21971 * target.def (narrow_volatile_bitfield): Note that the default
21972 value is false, not !TARGET_STRICT_ALIGN.
21973 * doc/tm.texi: Regenerate.
21974
21975 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
21976
21977 Fix LIB_SPEC for systems without libpthread.
21978
21979 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
21980 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
21981 for Android.
21982 * config/i386/linux-common.h: Likewise.
21983 * config/mips/linux-common.h: Likewise.
21984
21985 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
21986
21987 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
21988 checks.
21989
21990 2013-08-20 David Malcolm <dmalcolm@redhat.com>
21991
21992 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
21993 instances can own GC refs.
21994
21995 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
21996 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
21997 (gcc::context::gt_pch_nx): Likewise.
21998 (gcc::context::gt_pch_nx): Likewise.
21999 * ggc.h (gt_ggc_mx <T>): New.
22000 (gt_pch_nx_with_op <T>): New.
22001 (gt_pch_nx <T>): New.
22002 * passes.c (opt_pass::gt_ggc_mx): New.
22003 (opt_pass::gt_pch_nx): New.
22004 (opt_pass::gt_pch_nx_with_op): New.
22005 (pass_manager::gt_ggc_mx): New.
22006 (pass_manager::gt_pch_nx): New.
22007 (pass_manager::gt_pch_nx_with_op): New.
22008 (pass_manager::operator new): Use
22009 ggc_internal_cleared_alloc_stat rather than xcalloc.
22010 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
22011 (pass_manager::gt_ggc_mx): New.
22012 (pass_manager::gt_pch_nx): New.
22013 (pass_manager::gt_pch_nx_with_op): New.
22014 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
22015 (opt_pass::operator new): New.
22016 (opt_pass::gt_ggc_mx): New.
22017 (opt_pass::gt_pch_nx): New.
22018 (opt_pass::gt_pch_nx_with_op): New.
22019
22020 2013-08-20 David Malcolm <dmalcolm@redhat.com>
22021
22022 * Makefile.in (GTFILES): Add context.h.
22023 * context.c (gcc::context::operator new): New.
22024 (gcc::context::gt_ggc_mx): New.
22025 (gcc::context::gt_pch_nx): New.
22026 (gcc::context::gt_pch_nx): New.
22027 * context.h (gcc::context): Add GTY((user)) marking.
22028 (gcc::context::operator new): New.
22029 (gcc::context::gt_ggc_mx): New.
22030 (gcc::context::gt_pch_nx): New.
22031 (gcc::context::gt_pch_nx): New.
22032 (g): Add GTY marking.
22033 (gt_ggc_mx (gcc::context *)): New.
22034 (gt_pch_nx (gcc::context *)): New.
22035 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
22036 void *cookie)): New.
22037 * gengtype.c (open_base_files) <ifiles>: Add context.h.
22038
22039 2013-08-20 Alan Modra <amodra@gmail.com>
22040
22041 PR target/57865
22042 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
22043 (rs6000_emit_epilogue): Likewise.
22044
22045 2013-08-19 Dehao Chen <dehao@google.com>
22046
22047 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
22048
22049 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
22050 Jakub Jelinek <jakub@redhat.com>
22051
22052 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
22053 (BUILT_IN_FABSD64): Likewise.
22054 (BUILT_IN_FABSD128): Likewise.
22055 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
22056 (fold_builtin_1): Likewise.
22057 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
22058 destination and source operands.
22059 (*abstd2_fpr): Likewise.
22060 (*nabstd2_fpr): Likewise.
22061
22062 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
22063
22064 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
22065 JUMP_P and INSN_P.
22066
22067 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
22068
22069 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
22070 incomplete.
22071
22072 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
22073
22074 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
22075 * builtins.c (default_libc_has_function): New.
22076 (gnu_libc_has_function): Ditto.
22077 (no_c99_libc_has_function): Ditto.
22078 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
22079 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
22080 (fold_builtin_sincos): Likewise.
22081 (fold_builtin_cexp): Likewise.
22082 * builtins.def (DEF_C94_BUILTIN): Likewise.
22083 (DEF_C99_BUILTIN): Likewise.
22084 (DEF_C99_C90RES_BUILTIN): Likewise.
22085 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
22086 definitions to using this define.
22087 * config/darwin-protos.h (darwin_libc_has_function): New.
22088 * config/darwin.c (darwin_libc_has_function): Ditto.
22089 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
22090 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
22091 * config/darwin.h: Ditto.
22092 * config/elfos.h: Ditto.
22093 * config/freebsd.h: Ditto.
22094 * config/i386/cygming.h: Ditto.
22095 * config/i386/djgpp.h: Ditto.
22096 * config/i386/i386-interix.h: Ditto.
22097 * config/microblaze/microblaze.h: Ditto.
22098 * config/mmix/mmix.h: Ditto.
22099 * config/gnu-user.h: Ditto.
22100 * config/ia64/hpux.h: Ditto.
22101 * config/pa/pa-hpux.h: Ditto.
22102 * config/pdp11/pdp11.h: Ditto.
22103 * config/picochip/picochip.h: Ditto.
22104 * config/linux.h: Ditto.
22105 * config/netbsd.h: Ditto.
22106 * config/openbsd.h: Ditto.
22107 * config/rs6000/aix43.h: Ditto.
22108 * config/rs6000/aix51.h: Ditto.
22109 * config/rs6000/aix52.h: Ditto.
22110 * config/rs6000/aix53.h: Ditto.
22111 * config/rs6000/aix61.h: Ditto.
22112 * config/rs6000/darwin.h: Ditto.
22113 * config/rs6000/linux.h: Ditto.
22114 * config/rs6000/linux64.h: Ditto.
22115 * config/s390/tpf.h: Ditto.
22116 * config/sol2-10.h: Ditto.
22117 * config/sol2.h: Ditto.
22118 * config/vms/vms.h: Ditto.
22119 * config/vxworks.h: Ditto.
22120 * config/linux-android.c (linux_android_libc_has_function):
22121 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
22122 * config/linux-protos.h (linux_android_libc_has_function):
22123 New declaration.
22124 * config/i386/i386.c (ix86_libc_has_function): New.
22125 * config/i386/i386-protos.h
22126 (ix86_libc_has_function): New declaration.
22127 * config/i386/i386.md
22128 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
22129 ("isinf<mode>2): Likewise.
22130 * convert.c (convert_to_integer): Using new target hook
22131 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
22132 TARGET_C99_FUNCTIONS.
22133 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
22134 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
22135 * coretypes.h (function_class): New enum for different
22136 classes of functions.
22137 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
22138 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
22139 (TARGET_HAS_SINCOS): Likewise.
22140 (TARGET_LIBC_HAS_FUNCTION): New.
22141 * doc/tm.texi: Regenerated.
22142 * targhooks.h (default_libc_has_function): New declaration.
22143 (no_c99_libc_has_function): Ditto.
22144 (gnu_libc_has_function): Ditto.
22145 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
22146 and TARGET_HAS_SINCOS.
22147
22148 2013-08-18 Jan Hubicka <jh@suse.cz>
22149
22150 * Makeifle-in (ipa-devirt.o): New.
22151 (GTFILES): Add ipa-utils.h and ipa-devirt.c
22152 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
22153 (analyze_functions): Look into possible targets of polymorphic call.
22154 * dumpfile.c (dump_files): Add type-inheritance dump.
22155 * dumpfile.h (TDI_inheritance): New.
22156 * ipa-devirt.c: New file.
22157 * ipa-utils.h (odr_type_d): Forward declare.
22158 (odr_type): New type.
22159 (build_type_inheritance_graph): Declare.
22160 (possible_polymorphic_call_targets): Declare and introduce inline
22161 variant when only edge is pased.
22162 (dump_possible_polymorphic_call_targets): Likewise.
22163 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
22164 * tree.c (type_in_anonymous_namespace_p): Break out from ...
22165 (types_same_for_odr): ... here.
22166 * tree.h (type_in_anonymous_namespace_p): Declare.
22167
22168 2013-08-18 Jakub Jelinek <jakub@redhat.com>
22169
22170 PR tree-optimization/58006
22171 * tree-parloops.c (take_address_of): Don't ICE if get_name
22172 returns NULL.
22173 (eliminate_local_variables_stmt): Remove clobber stmts.
22174
22175 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
22176
22177 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
22178 error message is issued for an alias to undefined symbol.
22179
22180 2013-08-18 Jan Hubicka <jh@suse.cz>
22181
22182 * cgraph.c (cgraph_create_indirect_edge): Discover
22183 polymorphic calls and record basic info into indirect_info.
22184 * gimple-fold.c (gimple_fold_call): When doing BINFO based
22185 devirtualization, ignore objc function calls.
22186 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
22187 call with no parm index info.
22188 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
22189 * tree.c (virtual_method_call_p): New function.
22190 * tree.h (virtual_method_call_p): Declare.
22191
22192 2013-08-16 Jan Hubicka <jh@suse.cz>
22193
22194 PR middle-end/58179
22195 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
22196
22197 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
22198
22199 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
22200 attribute.
22201
22202 2013-08-16 David Malcolm <dmalcolm@redhat.com>
22203
22204 * gengtype.c (type_for_name): Add special-case support for
22205 locating types within the "gcc::" namespace.
22206 (open_base_files): Emit a "using namespace gcc" directive.
22207
22208 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
22209
22210 PR target/58160
22211 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
22212 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
22213
22214 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
22215 array instead of each individual operand as a separate argument.
22216 (emit_fusion_gpr_load): Likewise.
22217 (expand_fusion_gpr_load): Add new function declaration.
22218
22219 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
22220 signature to have the operands passed as an array, instead of as
22221 separate arguments. Allow ZERO_EXTEND to be in the memory
22222 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
22223 depend on the register live/dead flags when peepholes are run.
22224 (expand_fusion_gpr_load): New function to be called from the
22225 peephole2 pass, to change the register that addis sets to be the
22226 target register.
22227 (emit_fusion_gpr_load): Change the calling signature to have the
22228 operands passed as an array, instead of as separate arguments.
22229 Allow ZERO_EXTEND to be in the memory address, and also
22230 SIGN_EXTEND if -mpower8-fusion-sign.
22231
22232 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
22233 unspec enumeration.
22234 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
22235 adjust the register addis loads up in the peephole2 pass. Do not
22236 depend on the register live/dead state when the peephole pass is done.
22237
22238 2013-08-16 David Malcolm <dmalcolm@redhat.com>
22239
22240 * gengtype.c (create_user_defined_type): Ensure that the kind
22241 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
22242 declaration is seen before the GTY((user)) marking.
22243
22244 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
22245
22246 PR target/58105
22247 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
22248
22249 2013-08-16 Jan Hubicka <jh@suse.cz>
22250
22251 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
22252 arugment expected_type.
22253 (gimple_fold_call): Use it.
22254 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
22255 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
22256 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
22257 (try_make_edge_direct_virtual_call): Likewise.
22258 * tree.c (obj_type_ref_class): New.
22259 * tree.h (obj_type_ref_class): Use it.
22260
22261 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
22262
22263 * sched-vis.c (rtl_slim_pp_initialized): Remove.
22264 (rtl_slim_pp): Likewise.
22265 (init_rtl_slim_pretty_print): Likewise.
22266 (dump_value_slim): Don't call it. Use local pretty printer.
22267 (dump_insn_slim): Likewise.
22268 (dump_rtl_slim): Likewise.
22269 (str_pattern_slim): Likewise.
22270 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
22271 Simplify.
22272
22273 2013-08-16 Jakub Jelinek <jakub@redhat.com>
22274
22275 PR tree-optimization/58164
22276 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
22277 walk gimple_goto_dest of GIMPLE_GOTO.
22278
22279 PR tree-optimization/58165
22280 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
22281 bi_call must be the last stmt in a bb, don't split_block, instead
22282 use fallthru edge from it and give up if there is none.
22283 Release conds vector when returning early.
22284
22285 2013-08-14 Xinliang David Li <davidxl@google.com>
22286
22287 * config/i386/i386.c (ix86_option_override_internal):
22288 Remove unused variable and field.
22289
22290 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22291
22292 PR target/57949
22293 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
22294 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
22295 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
22296 and Linux, correct BLKmode alignment when 128-bit alignment is
22297 required and compatibility flag is not set.
22298 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
22299 for zero-size arguments when compatibility flag is not set.
22300
22301 2013-08-14 Jakub Jelinek <jakub@redhat.com>
22302
22303 PR tree-optimization/58145
22304 * tree-sra.c (build_ref_for_offset): If prev_base has
22305 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
22306
22307 2013-08-14 Xinliang David Li <davidxl@google.com>
22308
22309 * config/i386/i386.c (ix86_option_override_internal):
22310 Fix uninitialized variable error.
22311
22312 2013-08-14 Xinliang David Li <davidxl@google.com>
22313
22314 * config/i386/i386.opt: Define two new options.
22315 * config/i386/x86-tune.def: Add arch selector field in macros.
22316 * config/i386/i386.h: Adjust macro definition.
22317 * config/i386/i386.c (ix86_option_override_internal):
22318 Refactor the code.
22319 (parse_mtune_ctrl_str): New function.
22320 (set_ix86_tune_features): New function.
22321 (ix86_function_specific_restore): Call the new helper function.
22322
22323 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
22324
22325 PR rtl-optimization/57662
22326 * sel-sched.c (code_motion_process_successors): When the current insn
22327 is removed after the recursive traversal, break from the loop.
22328 Add comments and debug printouts.
22329
22330 2013-08-14 Jakub Jelinek <jakub@redhat.com>
22331 Alexandre Oliva <aoliva@redhat.com>
22332
22333 PR target/58067
22334 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
22335 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
22336 there also UNSPEC_PLTOFF.
22337
22338 2013-08-14 Marek Polacek <polacek@redhat.com>
22339
22340 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
22341 NUM_CONDITIONS bit positions.
22342
22343 2013-08-13 Cary Coutant <ccoutant@google.com>
22344
22345 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
22346 (attr_checksum): Hash vector contents instead of pointer.
22347 (attr_checksum_ordered): Likewise.
22348
22349 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
22350
22351 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
22352 when Pmode != word_mode. Add length_address attribute.
22353 (sse3_monitor_<mode>): Merge from sse3_monitor and
22354 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
22355 Pmode != word_mode. Update insn length attribute.
22356 * config/i386/i386.c (ix86_option_override_internal): Update
22357 ix86_gen_monitor selection for merged sse3_monitor insn.
22358
22359 2013-08-13 Julian Brown <julian@codesourcery.com>
22360
22361 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
22362 perform invalid legitimization on greater-than-word-size modes for
22363 TARGET_E500_DOUBLE.
22364
22365 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
22366
22367 * ira.c (setup_class_translate_array): Use aclass instead of cl
22368 for classes not fully covered by allocno classes.
22369
22370 2013-08-13 Jakub Jelinek <jakub@redhat.com>
22371
22372 PR tree-optimization/57661
22373 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
22374 * tree-inline.c (tree_function_versioning): Initialize it.
22375 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
22376 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
22377 that is not being copied.
22378
22379 PR sanitizer/56417
22380 * asan.c (instrument_strlen_call): Fix typo in comment.
22381 Use char * type even for the lhs of POINTER_PLUS_EXPR.
22382
22383 2013-08-13 Steve Ellcey <sellcey@mips.com>
22384
22385 * config/mips/mips.md (prefetch): Use lw instead of ld on
22386 loongson in 32bit mode.
22387
22388 2013-08-13 Nick Clifton <nickc@redhat.com>
22389
22390 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
22391
22392 2013-08-13 Jan Hubicka <jh@suse.cz>
22393
22394 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
22395 introduced edge; fix typo in sanity check.
22396 (cgraph_resolve_speculation): Export; improve diagnostic.
22397 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
22398 speculation at type mismatch.
22399 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
22400 (cgraph_resolve_speculation): Declare.
22401 (symtab_can_be_discarded): New function.
22402 * value-prof.c (gimple_ic_transform): Remove actual transform code.
22403 * ipa-inline-transform.c (speculation_removed): New global var.
22404 (clone_inlined_nodes): See if speculation can be removed.
22405 (inline_call): If speculations was removed, we growths may not match.
22406 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
22407 (speculation_useful_p): New function.
22408 (resolve_noninline_speculation): New function.
22409 (inline_small_functions): Resolve useless speculations.
22410 * ipa-inline.h (speculation_useful_p): Declare
22411 * ipa.c (can_replace_by_local_alias): Simplify.
22412 (ipa_profile): Produce speculative calls in non-lto, too;
22413 add simple cost model; produce local aliases.
22414
22415 2013-08-13 David Malcolm <dmalcolm@redhat.com>
22416
22417 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
22418 PASS_MANAGER_H.
22419
22420 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
22421
22422 * config/i386/i386.c (ix86_function_versions): Use error + inform.
22423
22424 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
22425
22426 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
22427 iterator instead of X87MODEF.
22428
22429 2013-08-12 Perez Read <netfirewall@gmail.com>
22430
22431 PR target/58132
22432 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
22433 operand 0 for intel asm alternative.
22434 (*movabs<mode>_2): Ditto for operand 1.
22435
22436 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
22437
22438 * config/aarch64/arm_none.h
22439 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
22440
22441 2013-08-12 Nick Clifton <nickc@redhat.com>
22442
22443 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
22444
22445 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
22446
22447 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
22448 expand for QI/HImode operand to produce more effictive code for
22449 unsigned char(short) --> float(double) conversion.
22450
22451 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
22452
22453 * doc/invoke.texi: Mention that -ftls-model does not force the final
22454 model.
22455
22456 2013-08-12 Marek Polacek <polacek@redhat.com>
22457 Marc Glisse <marc.glisse@inria.fr>
22458
22459 PR tree-optimization/57980
22460 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
22461 when creating -1 constant.
22462
22463 2013-08-10 Jan Hubicka <jh@suse.cz>
22464
22465 Workaround binutils PR14342.
22466 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
22467 (gimple_init_edge_profiler): Likewise.
22468 (gimple_gen_ic_func_profiler): Likewise.
22469
22470 2013-08-09 Jan Hubicka <jh@suse.cz>
22471
22472 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
22473
22474 2013-08-09 Xinliang David Li <davidxl@google.com>
22475
22476 * config/i386/stringop.def: New file.
22477 * config/i386/stringop.opt: New file.
22478 * config/i386/i386-opts.h: Include stringopt.def.
22479 * config/i386/i386.opt: Include stringopt.opt.
22480 * config/i386/i386.c (ix86_option_override_internal):
22481 Override default size based stringop inline strategies with options.
22482 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
22483 New function.
22484
22485 2013-08-09 Jan Hubicka <jh@suse.cz>
22486
22487 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
22488
22489 2013-08-09 Jan Hubicka <jh@suse.cz>
22490
22491 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
22492 CGRAPH_FREQ_MAX.
22493 (dump_cgraph_node): Dump profile-id.
22494 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
22495 and common_target_probability.
22496 * lto-cgraph.c (lto_output_edge): Stream common targets.
22497 (lto_output_node): Stream profile ids.
22498 (input_node): Stream profile ids.
22499 (input_edge): Stream common targets.
22500 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
22501 * ipa.c: Include value-prof.h
22502 (ipa_profile_generate_summary): Turn indirect call statement histograms
22503 into common targets.
22504 (ipa_profile): Turn common targets into speculative edges.
22505
22506 2013-08-09 Jan Hubicka <jh@suse.cz>
22507
22508 * cgraph.h (cgraph_node): Add profile_id.
22509 * value-prof.c (cgraph_node_map): Turn into pointer_map.
22510 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
22511 (del_node_map): Update.
22512 (find_func_by_funcdef_no): Replace by ...
22513 (find_func_by_profile_id): ... this one.
22514 (gimple_ic_transform): Do not remove useful histograms when
22515 speculation is not done; dump info when indirect call removal
22516 can happen at LTO.
22517 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
22518 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
22519 (__gcov_indirect_call_profiler_v2): .. this one.
22520 * profile.h (init_node_map): Update.
22521 * coverage.c (coverage_compute_profile_id): New function.
22522 * coverage.h (coverage_compute_profile_id): Declare.
22523 * tree-profile.c (init_ic_make_global_vars): Make
22524 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
22525 (gimple_init_edge_profiler): Update prototype of
22526 __gcov_indirect_call_profiler.
22527 (gimple_gen_ic_func_profiler): Simplify.
22528 (tree_profiling): Use init_node_map
22529
22530 2013-08-09 Jan Hubicka <jh@suse.cz>
22531
22532 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
22533 non-speculative refs.
22534 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
22535 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
22536 (cgraph_set_call_stmt): Likewise.
22537 (cgraph_create_edge_1): Fix release checking compilatoin;
22538 clear lto_stmt_uid.
22539 (cgraph_free_edge): Free indirect info.
22540 (cgraph_turn_edge_to_speculative): New function.
22541 (cgraph_speculative_call_info): New function.
22542 (cgraph_make_edge_direct): Return direct edge; handle speculation.
22543 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
22544 (dump_cgraph_node): Dump speculation.
22545 (verify_edge_count_and_frequency): Accept speculative edges.
22546 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
22547 (verify_cgraph_node): Handle speculation.
22548 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
22549 (cgraph_set_call_stmt): Update prototype.
22550 (cgraph_make_edge_direct): Update prototype.
22551 (cgraph_speculative_call_info): Declare.
22552 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
22553 to change; update call of ipa_find_references.
22554 * ipa-ref.c (ipa_record_reference): Fix return value; clear
22555 lto_stmt_uid and speculative flags.
22556 (ipa_dump_references): Dump speculation.
22557 (ipa_clone_references): Clone speculative flag.
22558 (ipa_clone_referring): Likewise.
22559 (ipa_clone_ref): New function.
22560 (ipa_find_reference): Look into lto_stmt_uids
22561 (ipa_clear_stmts_in_references): Do not clear speculative calls.
22562 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
22563 (ipa_find_reference): Update declaration.
22564 (ipa_clone_ref): Declare.
22565 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
22566 stream speculative flag.
22567 (lto_output_ref): Stream statements uids and speculation.
22568 (input_ref): Likewise.
22569 (input_edge): Stream speuclation.
22570 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
22571 (cgraph_set_call_stmt_including_clones): Handle speculation.
22572 * ipa-inline.c (heap_edge_removal_hook): New function.
22573 (inline_small_functions): Register it.
22574 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
22575 also initialize refs.
22576 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
22577 edge to change.
22578 (try_make_edge_direct_simple_call): Likewise.
22579 (try_make_edge_direct_simple_call): Likewise.
22580 (update_indirect_edges_after_inlining): Likewise.
22581 (remove_described_reference): Look proper lto_stmt_uid.
22582 (propagate_controlled_uses): Likewise.
22583 (propagate_controlled_uses): Liekwise.
22584 * tree-inline.c (copy_bb): Copy speculative edges.
22585 (redirect_all_calls): New function.
22586 (copy_cfg_body): Do redirection after loop info is updated.
22587 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
22588
22589 2013-08-09 Jan Hubicka <jh@suse.cz>
22590
22591 * lto-streamer-out.c (output_function): Renumber PHIs.
22592 * lto-streamer-in.c (input_function): Likewise.
22593
22594 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
22595
22596 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
22597 (get_lane_unsigned): Likewise.
22598 (dup_lane_scalar): Likewise.
22599 (get_lane): enable for VALL.
22600 * config/aarch64/aarch64-simd.md
22601 (aarch64_dup_lane_scalar<mode>): Remove.
22602 (aarch64_get_lane_signed<mode>): Likewise.
22603 (aarch64_get_lane_unsigned<mode>): Likewise.
22604 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
22605 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
22606 (aarch64_get_lane<mode>): Enable for all vector modes.
22607 (aarch64_get_lanedi): Remove misleading constraints.
22608 * config/aarch64/arm_neon.h
22609 (__aarch64_vget_lane_any): Define.
22610 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
22611 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
22612 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
22613 * config/aarch64/iterators.md (VDQQH): New.
22614 (VDQQHS): Likewise.
22615 (vwcore): Likewise.
22616
22617 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
22618
22619 * configure.ac: Add GAS check for LEON instructions on SPARC.
22620 * configure: Regenerate.
22621 * config.in: Likewise.
22622 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
22623 sparc*-*-* block.
22624 * config/sparc/sparc.opt (LEON, LEON3): New masks.
22625 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
22626 for LEON or LEON3.
22627 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
22628 (AS_LEON_FLAG): New macro.
22629 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
22630 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
22631 Deal with LEON and LEON3 for the memory model.
22632 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
22633 (atomic_compare_and_swap<mode>_1): Likewise.
22634 (*atomic_compare_and_swap<mode>_1): Likewise.
22635
22636 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22637
22638 * config/arm/neon.md (vcond): Fix floating-point vector
22639 comparisons against 0.
22640
22641 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
22642
22643 * lra-constraints.c (emit_spill_move): Remove assert.
22644 (process_alt_operands): Add more debugging
22645 output. Increase reject for spilling into memory. Decrease
22646 reject for reloading scratch.
22647 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
22648
22649 2013-08-08 Steve Ellcey <sellcey@mips.com>
22650
22651 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
22652 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
22653 micromips incompatible. Add nan2008.
22654 (MULTILIB_DIRNAMES): Add nan2008.
22655 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
22656 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
22657 and micromips incompatible. Add nan2008.
22658 (MULTILIB_DIRNAMES): Add nan2008.
22659 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
22660
22661 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
22662
22663 PR rtl-optimization/58079
22664 * combine.c (combine_simplify_rtx): Avoid using SUBST if
22665 simplify_comparison has widened a comparison with an integer.
22666
22667 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22668
22669 * config/arm/neon.md (movmisalign<mode>): Disable when we
22670 don't allow unaligned accesses.
22671 (*movmisalign<mode>_neon_store): Likewise.
22672 (*movmisalign<mode>_neon_load): Likewise.
22673 (*movmisalign<mode>_neon_store): Likewise.
22674 (*movmisalign<mode>_neon_load): Likewise.
22675
22676 2013-08-08 Jan Hubicka <jh@suse.cz>
22677
22678 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
22679 (make_pass_rebuild_cgraph_edges): Also clear references.
22680 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
22681 * ipa-inline-transform.c (inline_transform): Remove all references
22682 after inlining.
22683 * cgraphunit.c (expand_function): Remove all references after
22684 expansion.
22685 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
22686 (ipa_find_reference): Rewrite to iterator.
22687 (remove_stmt_references): Likewise.
22688 (ipa_clear_stmts_in_references): New function.
22689 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
22690 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
22691 clear references.
22692 * ipa-split.c (split_function): Remove references in split function.
22693
22694 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
22695
22696 PR target/57431
22697 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
22698 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
22699
22700 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
22701
22702 PR target/56979
22703 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
22704 suggested mode for the assignment isn't compatible with the
22705 registers required.
22706
22707 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
22708
22709 PR target/58065
22710 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
22711
22712 2013-08-07 Xinliang David Li <davidxl@google.com>
22713
22714 * config/i386/i386.opt: New option -mtune-ctrl=.
22715 * config/i386/x86-tune.def: New file.
22716 * config/i386/i386.h: include x86-tune.def.
22717 * config/i386/i386.c (ix86_option_override_internal):
22718 Parsing -mtune-ctrl= option and set tune features.
22719
22720 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
22721
22722 PR other/12081
22723 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
22724 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
22725 to gen_2arg_fn_t.
22726
22727 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
22728
22729 * rtl.h (update_alignments): Declare.
22730 * final.c (grow_label_align): New function extracted from...
22731 (shorten_branches): ...here. Call it.
22732 (update_alignments): New function.
22733 * reorg.c (sibling_labels): New variable.
22734 (get_label_before): Add SIBLING parameter. If it is non-zero, push
22735 the new label along with it onto the sibling_labels vector.
22736 (fill_simple_delay_slots): Adjust call to get_label_before.
22737 (fill_slots_from_thread): Likewise.
22738 (relax_delay_slots): Likewise.
22739 (make_return_insns): Likewise.
22740 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
22741
22742 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
22743
22744 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
22745 document its semantics.
22746 (diagnostic_report_diagnostic): Adjust accordingly.
22747
22748 2013-08-07 David Malcolm <dmalcolm@redhat.com>
22749
22750 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
22751 (sparc_option_override): ...and port to new C++ pass API.
22752 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
22753
22754 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
22755
22756 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
22757
22758 2013-08-06 Caroline Tice <cmtice@google.com>
22759
22760 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
22761 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
22762 * tree-pass.h: Add pass_vtable_verify.
22763 * varasm.c (assemble_variable): Add code to properly set the comdat
22764 section and name for the .vtable_map_vars section.
22765 (assemble_vtyv_preinit_initializer): New function.
22766 (default_sectin_type_flags): Make sure .vtable_map_vars section has
22767 LINK_ONCE flag.
22768 * output.h: Add function decl for assemble_vtv_preinit_initializer.
22769 * vtable-verify.c: New file.
22770 * vtable-verify.h: New file.
22771 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
22772 initialiation levels.
22773 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
22774 * passes.def: Insert pass_vtable_verify.
22775 * aclocal.m4: Reorder includes.
22776 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
22777 -fvtv-counts options.
22778 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
22779 as appropriate, if -fvtable-verify=... is used.
22780 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
22781 -fvtable-verify=... is used.
22782 * Makefile.in (OBJS): Add vtable-verify.o to list.
22783 (vtable-verify.o): Add new build rule.
22784 (GTFILES): Add vtable-verify.c to list.
22785 * common.opt (fvtable-verify=): New flag.
22786 (vtv_priority): Values for fvtable-verify= flag.
22787 (fvtv-counts): New flag.
22788 (fvtv-debug): New flag.
22789 * tree.h (save_vtable_map_decl): New extern function decl.
22790
22791 2013-08-07 David Malcolm <dmalcolm@redhat.com>
22792
22793 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
22794 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
22795 (pass_data_rl78_devirt): ...new pass_data instance and...
22796 (make_pass_rl78_devirt): ...new function.
22797 (rl78_asm_file_start): Port pass registration to new C++ API.
22798
22799 2013-08-07 David Malcolm <dmalcolm@redhat.com>
22800
22801 * coretypes.h (rtl_opt_pass): Add.
22802 (gcc::context): Add.
22803 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
22804 (epiphany_init): Port to new C++ pass API.
22805 (epiphany_optimize_mode_switching): Likewise.
22806 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
22807 (pass_manager::get_pass_mode_switching): New.
22808 (pass_manager::get_pass_peephole2): New.
22809 * mode-switching.c (pass_mode_switching): Add clone method.
22810 * recog.c (pass_peephole2): Add clone method.
22811 (pass_split_all_insns): Add clone method.
22812
22813 2013-08-06 David Malcolm <dmalcolm@redhat.com>
22814
22815 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
22816 (mips_option_override): ...here, porting to new C++ API for passes.
22817
22818 2013-08-06 Jan Hubicka <jh@suse.cz>
22819
22820 * cgraph.c (cgraph_get_body): New function based on lto.c
22821 implementation.
22822 * cgraph.h (cgraph_get_body): Declare.
22823 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
22824 LTO paths.
22825 * cgraphunit.c (expand_function): Get body prior expanding.
22826 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
22827 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
22828 really need.
22829 * passes.c (do_per_function_toporder): Get body.
22830 * tree-inline.c (expand_call_inline): Get body prior inlining it.
22831 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
22832
22833 2013-08-06 Martin Jambor <mjambor@suse.cz>
22834
22835 PR fortran/57987
22836 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
22837 is not re-finalized. Rename second parameter to no_collect.
22838
22839 2013-08-06 Martin Jambor <mjambor@suse.cz>
22840
22841 PR middle-end/58041
22842 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
22843 MEM_REF has proper alignment information.
22844
22845 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
22846
22847 PR other/12081
22848 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
22849 class insn_gen_fn.
22850 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
22851 rtx (*) (rtx, ...) with insn_gen_fn.
22852 * genoutput.c (output_insn_data): Cast gen_? function pointers to
22853 insn_gen_fn::stored_funcptr. Add initializer braces.
22854
22855 2013-08-05 David Malcolm <dmalcolm@redhat.com>
22856
22857 Rewrite how instances of passes are cloned to remove assumptions
22858 about their sizes (thus allowing pass subclasses to have
22859 additional data fields, albeit non-GC-managed ones at this point).
22860
22861 * passes.c (make_pass_instance): Now that passes have clone
22862 methods, rewrite this function to eliminate XNEW and memcpy
22863 calls that used hardcoded sizes. Since this function no longer
22864 creates pass instances, rename it to...
22865 (add_pass_instance): ...this. Document the old way that passes were
22866 numbered and flagged, and rework this function to continue using it.
22867 (next_pass_1): Add an initial_pass argument for use by
22868 add_pass_instance.
22869 (position_pass): When adding multiple instances of a pass, use
22870 the pass's clone method, rather than relying on the XNEW/memcpy
22871 within the former make_pass_instance (now add_pass_instance).
22872 (pass_manager::pass_manager): When invoking next_pass_1, also supply
22873 the initial instance of the current pass within the pass manager.
22874
22875 2013-08-05 David Malcolm <dmalcolm@redhat.com>
22876
22877 This is the automated part of the conversion of passes from C
22878 structs to C++ classes.
22879
22880 Patch autogenerated by refactor_passes.py from
22881 https://github.com/davidmalcolm/gcc-refactoring-scripts
22882 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
22883
22884 * asan.c (pass_asan): Convert from a global struct to a subclass of
22885 gimple_opt_pass along with...
22886 (pass_data_asan): ...new pass_data instance and...
22887 (make_pass_asan): ...new function.
22888 (pass_asan_O0): Convert from a global struct to a subclass of
22889 gimple_opt_pass along with...
22890 (pass_data_asan_O0): ...new pass_data instance and...
22891 (make_pass_asan_O0): ...new function.
22892 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
22893 subclass of rtl_opt_pass along with...
22894 (pass_data_inc_dec): ...new pass_data instance and...
22895 (make_pass_inc_dec): ...new function.
22896 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
22897 a subclass of rtl_opt_pass along with...
22898 (pass_data_reorder_blocks): ...new pass_data instance and...
22899 (make_pass_reorder_blocks): ...new function.
22900 (pass_duplicate_computed_gotos): Convert from a global struct to a
22901 subclass of rtl_opt_pass along with...
22902 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
22903 (make_pass_duplicate_computed_gotos): ...new function.
22904 (pass_partition_blocks): Convert from a global struct to a subclass of
22905 rtl_opt_pass along with...
22906 (pass_data_partition_blocks): ...new pass_data instance and...
22907 (make_pass_partition_blocks): ...new function.
22908 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
22909 struct to a subclass of rtl_opt_pass along with...
22910 (pass_data_branch_target_load_optimize1): ...new pass_data instance
22911 and...
22912 (make_pass_branch_target_load_optimize1): ...new function.
22913 (pass_branch_target_load_optimize2): Convert from a global struct to a
22914 subclass of rtl_opt_pass along with...
22915 (pass_data_branch_target_load_optimize2): ...new pass_data instance
22916 and...
22917 (make_pass_branch_target_load_optimize2): ...new function.
22918 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
22919 of rtl_opt_pass along with...
22920 (pass_data_jump): ...new pass_data instance and...
22921 (make_pass_jump): ...new function.
22922 (pass_jump2): Convert from a global struct to a subclass of
22923 rtl_opt_pass along with...
22924 (pass_data_jump2): ...new pass_data instance and...
22925 (make_pass_jump2): ...new function.
22926 * cfgexpand.c (pass_expand): Convert from a global struct to a
22927 subclass of rtl_opt_pass along with...
22928 (pass_data_expand): ...new pass_data instance and...
22929 (make_pass_expand): ...new function.
22930 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
22931 of rtl_opt_pass along with...
22932 (pass_data_free_cfg): ...new pass_data instance and...
22933 (make_pass_free_cfg): ...new function.
22934 (pass_into_cfg_layout_mode): Convert from a global struct to a
22935 subclass of rtl_opt_pass along with...
22936 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
22937 (make_pass_into_cfg_layout_mode): ...new function.
22938 (pass_outof_cfg_layout_mode): Convert from a global struct to a
22939 subclass of rtl_opt_pass along with...
22940 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
22941 (make_pass_outof_cfg_layout_mode): ...new function.
22942 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
22943 struct to a subclass of gimple_opt_pass along with...
22944 (pass_data_build_cgraph_edges): ...new pass_data instance and...
22945 (make_pass_build_cgraph_edges): ...new function.
22946 (pass_rebuild_cgraph_edges): Convert from a global struct to a
22947 subclass of gimple_opt_pass along with...
22948 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
22949 (make_pass_rebuild_cgraph_edges): ...new function.
22950 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
22951 subclass of gimple_opt_pass along with...
22952 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
22953 and...
22954 (make_pass_remove_cgraph_callee_edges): ...new function.
22955 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
22956 struct to a subclass of rtl_opt_pass along with...
22957 (pass_data_stack_adjustments): ...new pass_data instance and...
22958 (make_pass_stack_adjustments): ...new function.
22959 * combine.c (pass_combine): Convert from a global struct to a subclass
22960 of rtl_opt_pass along with...
22961 (pass_data_combine): ...new pass_data instance and...
22962 (make_pass_combine): ...new function.
22963 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
22964 global struct to a subclass of rtl_opt_pass along with...
22965 (pass_data_compare_elim_after_reload): ...new pass_data instance
22966 and...
22967 (make_pass_compare_elim_after_reload): ...new function.
22968 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
22969 of rtl_opt_pass along with...
22970 (pass_data_rtl_cprop): ...new pass_data instance and...
22971 (make_pass_rtl_cprop): ...new function.
22972 * cse.c (pass_cse): Convert from a global struct to a subclass of
22973 rtl_opt_pass along with...
22974 (pass_data_cse): ...new pass_data instance and...
22975 (make_pass_cse): ...new function.
22976 (pass_cse2): Convert from a global struct to a subclass of
22977 rtl_opt_pass along with...
22978 (pass_data_cse2): ...new pass_data instance and...
22979 (make_pass_cse2): ...new function.
22980 (pass_cse_after_global_opts): Convert from a global struct to a
22981 subclass of rtl_opt_pass along with...
22982 (pass_data_cse_after_global_opts): ...new pass_data instance and...
22983 (make_pass_cse_after_global_opts): ...new function.
22984 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
22985 of rtl_opt_pass along with...
22986 (pass_data_ud_rtl_dce): ...new pass_data instance and...
22987 (make_pass_ud_rtl_dce): ...new function.
22988 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
22989 rtl_opt_pass along with...
22990 (pass_data_fast_rtl_dce): ...new pass_data instance and...
22991 (make_pass_fast_rtl_dce): ...new function.
22992 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
22993 a subclass of rtl_opt_pass along with...
22994 (pass_data_df_initialize_opt): ...new pass_data instance and...
22995 (make_pass_df_initialize_opt): ...new function.
22996 (pass_df_initialize_no_opt): Convert from a global struct to a
22997 subclass of rtl_opt_pass along with...
22998 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
22999 (make_pass_df_initialize_no_opt): ...new function.
23000 (pass_df_finish): Convert from a global struct to a subclass of
23001 rtl_opt_pass along with...
23002 (pass_data_df_finish): ...new pass_data instance and...
23003 (make_pass_df_finish): ...new function.
23004 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
23005 rtl_opt_pass along with...
23006 (pass_data_rtl_dse1): ...new pass_data instance and...
23007 (make_pass_rtl_dse1): ...new function.
23008 (pass_rtl_dse2): Convert from a global struct to a subclass of
23009 rtl_opt_pass along with...
23010 (pass_data_rtl_dse2): ...new pass_data instance and...
23011 (make_pass_rtl_dse2): ...new function.
23012 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
23013 subclass of rtl_opt_pass along with...
23014 (pass_data_dwarf2_frame): ...new pass_data instance and...
23015 (make_pass_dwarf2_frame): ...new function.
23016 * except.c (pass_set_nothrow_function_flags): Convert from a global
23017 struct to a subclass of rtl_opt_pass along with...
23018 (pass_data_set_nothrow_function_flags): ...new pass_data instance
23019 and...
23020 (make_pass_set_nothrow_function_flags): ...new function.
23021 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
23022 subclass of rtl_opt_pass along with...
23023 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
23024 and...
23025 (make_pass_convert_to_eh_region_ranges): ...new function.
23026 * final.c (pass_compute_alignments): Convert from a global struct to a
23027 subclass of rtl_opt_pass along with...
23028 (pass_data_compute_alignments): ...new pass_data instance and...
23029 (make_pass_compute_alignments): ...new function.
23030 (pass_final): Convert from a global struct to a subclass of
23031 rtl_opt_pass along with...
23032 (pass_data_final): ...new pass_data instance and...
23033 (make_pass_final): ...new function.
23034 (pass_shorten_branches): Convert from a global struct to a subclass of
23035 rtl_opt_pass along with...
23036 (pass_data_shorten_branches): ...new pass_data instance and...
23037 (make_pass_shorten_branches): ...new function.
23038 (pass_clean_state): Convert from a global struct to a subclass of
23039 rtl_opt_pass along with...
23040 (pass_data_clean_state): ...new pass_data instance and...
23041 (make_pass_clean_state): ...new function.
23042 * function.c (pass_instantiate_virtual_regs): Convert from a global
23043 struct to a subclass of rtl_opt_pass along with...
23044 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
23045 (make_pass_instantiate_virtual_regs): ...new function.
23046 (pass_leaf_regs): Convert from a global struct to a subclass of
23047 rtl_opt_pass along with...
23048 (pass_data_leaf_regs): ...new pass_data instance and...
23049 (make_pass_leaf_regs): ...new function.
23050 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
23051 subclass of rtl_opt_pass along with...
23052 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
23053 and...
23054 (make_pass_thread_prologue_and_epilogue): ...new function.
23055 (pass_match_asm_constraints): Convert from a global struct to a
23056 subclass of rtl_opt_pass along with...
23057 (pass_data_match_asm_constraints): ...new pass_data instance and...
23058 (make_pass_match_asm_constraints): ...new function.
23059 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
23060 subclass of rtl_opt_pass along with...
23061 (pass_data_rtl_fwprop): ...new pass_data instance and...
23062 (make_pass_rtl_fwprop): ...new function.
23063 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
23064 rtl_opt_pass along with...
23065 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
23066 (make_pass_rtl_fwprop_addr): ...new function.
23067 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
23068 rtl_opt_pass along with...
23069 (pass_data_rtl_pre): ...new pass_data instance and...
23070 (make_pass_rtl_pre): ...new function.
23071 (pass_rtl_hoist): Convert from a global struct to a subclass of
23072 rtl_opt_pass along with...
23073 (pass_data_rtl_hoist): ...new pass_data instance and...
23074 (make_pass_rtl_hoist): ...new function.
23075 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
23076 subclass of gimple_opt_pass along with...
23077 (pass_data_lower_cf): ...new pass_data instance and...
23078 (make_pass_lower_cf): ...new function.
23079 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
23080 from a global struct to a subclass of gimple_opt_pass along with...
23081 (pass_data_strength_reduction): ...new pass_data instance and...
23082 (make_pass_strength_reduction): ...new function.
23083 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
23084 of rtl_opt_pass along with...
23085 (pass_data_rtl_ifcvt): ...new pass_data instance and...
23086 (make_pass_rtl_ifcvt): ...new function.
23087 (pass_if_after_combine): Convert from a global struct to a subclass of
23088 rtl_opt_pass along with...
23089 (pass_data_if_after_combine): ...new pass_data instance and...
23090 (make_pass_if_after_combine): ...new function.
23091 (pass_if_after_reload): Convert from a global struct to a subclass of
23092 rtl_opt_pass along with...
23093 (pass_data_if_after_reload): ...new pass_data instance and...
23094 (make_pass_if_after_reload): ...new function.
23095 * init-regs.c (pass_initialize_regs): Convert from a global struct to
23096 a subclass of rtl_opt_pass along with...
23097 (pass_data_initialize_regs): ...new pass_data instance and...
23098 (make_pass_initialize_regs): ...new function.
23099 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
23100 of ipa_opt_pass_d along with...
23101 (pass_data_ipa_cp): ...new pass_data instance and...
23102 (make_pass_ipa_cp): ...new function.
23103 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
23104 global struct to a subclass of gimple_opt_pass along with...
23105 (pass_data_inline_parameters): ...new pass_data instance and...
23106 (make_pass_inline_parameters): ...new function.
23107 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
23108 subclass of gimple_opt_pass along with...
23109 (pass_data_early_inline): ...new pass_data instance and...
23110 (make_pass_early_inline): ...new function.
23111 (pass_ipa_inline): Convert from a global struct to a subclass of
23112 ipa_opt_pass_d along with...
23113 (pass_data_ipa_inline): ...new pass_data instance and...
23114 (make_pass_ipa_inline): ...new function.
23115 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
23116 struct to a subclass of gimple_opt_pass along with...
23117 (pass_data_local_pure_const): ...new pass_data instance and...
23118 (make_pass_local_pure_const): ...new function.
23119 (pass_ipa_pure_const): Convert from a global struct to a subclass of
23120 ipa_opt_pass_d along with...
23121 (pass_data_ipa_pure_const): ...new pass_data instance and...
23122 (make_pass_ipa_pure_const): ...new function.
23123 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
23124 to a subclass of ipa_opt_pass_d along with...
23125 (pass_data_ipa_reference): ...new pass_data instance and...
23126 (make_pass_ipa_reference): ...new function.
23127 * ipa-split.c (pass_split_functions): Convert from a global struct to
23128 a subclass of gimple_opt_pass along with...
23129 (pass_data_split_functions): ...new pass_data instance and...
23130 (make_pass_split_functions): ...new function.
23131 (pass_feedback_split_functions): Convert from a global struct to a
23132 subclass of gimple_opt_pass along with...
23133 (pass_data_feedback_split_functions): ...new pass_data instance and...
23134 (make_pass_feedback_split_functions): ...new function.
23135 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
23136 global struct to a subclass of simple_ipa_opt_pass along with...
23137 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
23138 instance and...
23139 (make_pass_ipa_function_and_variable_visibility): ...new function.
23140 (pass_ipa_free_inline_summary): Convert from a global struct to a
23141 subclass of simple_ipa_opt_pass along with...
23142 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
23143 (make_pass_ipa_free_inline_summary): ...new function.
23144 (pass_ipa_whole_program_visibility): Convert from a global struct to a
23145 subclass of ipa_opt_pass_d along with...
23146 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
23147 and...
23148 (make_pass_ipa_whole_program_visibility): ...new function.
23149 (pass_ipa_profile): Convert from a global struct to a subclass of
23150 ipa_opt_pass_d along with...
23151 (pass_data_ipa_profile): ...new pass_data instance and...
23152 (make_pass_ipa_profile): ...new function.
23153 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
23154 ipa_opt_pass_d along with...
23155 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
23156 (make_pass_ipa_cdtor_merge): ...new function.
23157 * ira.c (pass_ira): Convert from a global struct to a subclass of
23158 rtl_opt_pass along with...
23159 (pass_data_ira): ...new pass_data instance and...
23160 (make_pass_ira): ...new function.
23161 (pass_reload): Convert from a global struct to a subclass of
23162 rtl_opt_pass along with...
23163 (pass_data_reload): ...new pass_data instance and...
23164 (make_pass_reload): ...new function.
23165 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
23166 subclass of rtl_opt_pass along with...
23167 (pass_data_cleanup_barriers): ...new pass_data instance and...
23168 (make_pass_cleanup_barriers): ...new function.
23169 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
23170 of rtl_opt_pass along with...
23171 (pass_data_loop2): ...new pass_data instance and...
23172 (make_pass_loop2): ...new function.
23173 (pass_rtl_loop_init): Convert from a global struct to a subclass of
23174 rtl_opt_pass along with...
23175 (pass_data_rtl_loop_init): ...new pass_data instance and...
23176 (make_pass_rtl_loop_init): ...new function.
23177 (pass_rtl_loop_done): Convert from a global struct to a subclass of
23178 rtl_opt_pass along with...
23179 (pass_data_rtl_loop_done): ...new pass_data instance and...
23180 (make_pass_rtl_loop_done): ...new function.
23181 (pass_rtl_move_loop_invariants): Convert from a global struct to a
23182 subclass of rtl_opt_pass along with...
23183 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
23184 (make_pass_rtl_move_loop_invariants): ...new function.
23185 (pass_rtl_unswitch): Convert from a global struct to a subclass of
23186 rtl_opt_pass along with...
23187 (pass_data_rtl_unswitch): ...new pass_data instance and...
23188 (make_pass_rtl_unswitch): ...new function.
23189 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
23190 subclass of rtl_opt_pass along with...
23191 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
23192 and...
23193 (make_pass_rtl_unroll_and_peel_loops): ...new function.
23194 (pass_rtl_doloop): Convert from a global struct to a subclass of
23195 rtl_opt_pass along with...
23196 (pass_data_rtl_doloop): ...new pass_data instance and...
23197 (make_pass_rtl_doloop): ...new function.
23198 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
23199 a subclass of rtl_opt_pass along with...
23200 (pass_data_lower_subreg): ...new pass_data instance and...
23201 (make_pass_lower_subreg): ...new function.
23202 (pass_lower_subreg2): Convert from a global struct to a subclass of
23203 rtl_opt_pass along with...
23204 (pass_data_lower_subreg2): ...new pass_data instance and...
23205 (make_pass_lower_subreg2): ...new function.
23206 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
23207 struct to a subclass of ipa_opt_pass_d along with...
23208 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
23209 (make_pass_ipa_lto_gimple_out): ...new function.
23210 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
23211 of ipa_opt_pass_d along with...
23212 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
23213 (make_pass_ipa_lto_finish_out): ...new function.
23214 * mode-switching.c (pass_mode_switching): Convert from a global struct
23215 to a subclass of rtl_opt_pass along with...
23216 (pass_data_mode_switching): ...new pass_data instance and...
23217 (make_pass_mode_switching): ...new function.
23218 * modulo-sched.c (pass_sms): Convert from a global struct to a
23219 subclass of rtl_opt_pass along with...
23220 (pass_data_sms): ...new pass_data instance and...
23221 (make_pass_sms): ...new function.
23222 * omp-low.c (pass_expand_omp): Convert from a global struct to a
23223 subclass of gimple_opt_pass along with...
23224 (pass_data_expand_omp): ...new pass_data instance and...
23225 (make_pass_expand_omp): ...new function.
23226 (pass_lower_omp): Convert from a global struct to a subclass of
23227 gimple_opt_pass along with...
23228 (pass_data_lower_omp): ...new pass_data instance and...
23229 (make_pass_lower_omp): ...new function.
23230 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
23231 of gimple_opt_pass along with...
23232 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
23233 (make_pass_diagnose_omp_blocks): ...new function.
23234 * passes.c (pass_early_local_passes): Convert from a global struct to
23235 a subclass of simple_ipa_opt_pass along with...
23236 (pass_data_early_local_passes): ...new pass_data instance and...
23237 (make_pass_early_local_passes): ...new function.
23238 (pass_all_early_optimizations): Convert from a global struct to a
23239 subclass of gimple_opt_pass along with...
23240 (pass_data_all_early_optimizations): ...new pass_data instance and...
23241 (make_pass_all_early_optimizations): ...new function.
23242 (pass_all_optimizations): Convert from a global struct to a subclass
23243 of gimple_opt_pass along with...
23244 (pass_data_all_optimizations): ...new pass_data instance and...
23245 (make_pass_all_optimizations): ...new function.
23246 (pass_all_optimizations_g): Convert from a global struct to a subclass
23247 of gimple_opt_pass along with...
23248 (pass_data_all_optimizations_g): ...new pass_data instance and...
23249 (make_pass_all_optimizations_g): ...new function.
23250 (pass_rest_of_compilation): Convert from a global struct to a subclass
23251 of rtl_opt_pass along with...
23252 (pass_data_rest_of_compilation): ...new pass_data instance and...
23253 (make_pass_rest_of_compilation): ...new function.
23254 (pass_postreload): Convert from a global struct to a subclass of
23255 rtl_opt_pass along with...
23256 (pass_data_postreload): ...new pass_data instance and...
23257 (make_pass_postreload): ...new function.
23258 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
23259 subclass of rtl_opt_pass along with...
23260 (pass_data_gcse2): ...new pass_data instance and...
23261 (make_pass_gcse2): ...new function.
23262 * postreload.c (pass_postreload_cse): Convert from a global struct to
23263 a subclass of rtl_opt_pass along with...
23264 (pass_data_postreload_cse): ...new pass_data instance and...
23265 (make_pass_postreload_cse): ...new function.
23266 * predict.c (pass_profile): Convert from a global struct to a subclass
23267 of gimple_opt_pass along with...
23268 (pass_data_profile): ...new pass_data instance and...
23269 (make_pass_profile): ...new function.
23270 (pass_strip_predict_hints): Convert from a global struct to a subclass
23271 of gimple_opt_pass along with...
23272 (pass_data_strip_predict_hints): ...new pass_data instance and...
23273 (make_pass_strip_predict_hints): ...new function.
23274 * recog.c (pass_peephole2): Convert from a global struct to a subclass
23275 of rtl_opt_pass along with...
23276 (pass_data_peephole2): ...new pass_data instance and...
23277 (make_pass_peephole2): ...new function.
23278 (pass_split_all_insns): Convert from a global struct to a subclass of
23279 rtl_opt_pass along with...
23280 (pass_data_split_all_insns): ...new pass_data instance and...
23281 (make_pass_split_all_insns): ...new function.
23282 (pass_split_after_reload): Convert from a global struct to a subclass
23283 of rtl_opt_pass along with...
23284 (pass_data_split_after_reload): ...new pass_data instance and...
23285 (make_pass_split_after_reload): ...new function.
23286 (pass_split_before_regstack): Convert from a global struct to a
23287 subclass of rtl_opt_pass along with...
23288 (pass_data_split_before_regstack): ...new pass_data instance and...
23289 (make_pass_split_before_regstack): ...new function.
23290 (pass_split_before_sched2): Convert from a global struct to a subclass
23291 of rtl_opt_pass along with...
23292 (pass_data_split_before_sched2): ...new pass_data instance and...
23293 (make_pass_split_before_sched2): ...new function.
23294 (pass_split_for_shorten_branches): Convert from a global struct to a
23295 subclass of rtl_opt_pass along with...
23296 (pass_data_split_for_shorten_branches): ...new pass_data instance
23297 and...
23298 (make_pass_split_for_shorten_branches): ...new function.
23299 * ree.c (pass_ree): Convert from a global struct to a subclass of
23300 rtl_opt_pass along with...
23301 (pass_data_ree): ...new pass_data instance and...
23302 (make_pass_ree): ...new function.
23303 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
23304 subclass of rtl_opt_pass along with...
23305 (pass_data_stack_regs): ...new pass_data instance and...
23306 (make_pass_stack_regs): ...new function.
23307 (pass_stack_regs_run): Convert from a global struct to a subclass of
23308 rtl_opt_pass along with...
23309 (pass_data_stack_regs_run): ...new pass_data instance and...
23310 (make_pass_stack_regs_run): ...new function.
23311 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
23312 subclass of rtl_opt_pass along with...
23313 (pass_data_cprop_hardreg): ...new pass_data instance and...
23314 (make_pass_cprop_hardreg): ...new function.
23315 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
23316 subclass of rtl_opt_pass along with...
23317 (pass_data_reginfo_init): ...new pass_data instance and...
23318 (make_pass_reginfo_init): ...new function.
23319 * regmove.c (pass_regmove): Convert from a global struct to a subclass
23320 of rtl_opt_pass along with...
23321 (pass_data_regmove): ...new pass_data instance and...
23322 (make_pass_regmove): ...new function.
23323 * regrename.c (pass_regrename): Convert from a global struct to a
23324 subclass of rtl_opt_pass along with...
23325 (pass_data_regrename): ...new pass_data instance and...
23326 (make_pass_regrename): ...new function.
23327 * reorg.c (pass_delay_slots): Convert from a global struct to a
23328 subclass of rtl_opt_pass along with...
23329 (pass_data_delay_slots): ...new pass_data instance and...
23330 (make_pass_delay_slots): ...new function.
23331 (pass_machine_reorg): Convert from a global struct to a subclass of
23332 rtl_opt_pass along with...
23333 (pass_data_machine_reorg): ...new pass_data instance and...
23334 (make_pass_machine_reorg): ...new function.
23335 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
23336 of rtl_opt_pass along with...
23337 (pass_data_sched): ...new pass_data instance and...
23338 (make_pass_sched): ...new function.
23339 (pass_sched2): Convert from a global struct to a subclass of
23340 rtl_opt_pass along with...
23341 (pass_data_sched2): ...new pass_data instance and...
23342 (make_pass_sched2): ...new function.
23343 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
23344 to a subclass of rtl_opt_pass along with...
23345 (pass_data_stack_ptr_mod): ...new pass_data instance and...
23346 (make_pass_stack_ptr_mod): ...new function.
23347 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
23348 to a subclass of rtl_opt_pass along with...
23349 (pass_data_rtl_store_motion): ...new pass_data instance and...
23350 (make_pass_rtl_store_motion): ...new function.
23351 * tracer.c (pass_tracer): Convert from a global struct to a subclass
23352 of gimple_opt_pass along with...
23353 (pass_data_tracer): ...new pass_data instance and...
23354 (make_pass_tracer): ...new function.
23355 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
23356 to a subclass of gimple_opt_pass along with...
23357 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
23358 (make_pass_diagnose_tm_blocks): ...new function.
23359 (pass_lower_tm): Convert from a global struct to a subclass of
23360 gimple_opt_pass along with...
23361 (pass_data_lower_tm): ...new pass_data instance and...
23362 (make_pass_lower_tm): ...new function.
23363 (pass_tm_init): Convert from a global struct to a subclass of
23364 gimple_opt_pass along with...
23365 (pass_data_tm_init): ...new pass_data instance and...
23366 (make_pass_tm_init): ...new function.
23367 (pass_tm_mark): Convert from a global struct to a subclass of
23368 gimple_opt_pass along with...
23369 (pass_data_tm_mark): ...new pass_data instance and...
23370 (make_pass_tm_mark): ...new function.
23371 (pass_tm_edges): Convert from a global struct to a subclass of
23372 gimple_opt_pass along with...
23373 (pass_data_tm_edges): ...new pass_data instance and...
23374 (make_pass_tm_edges): ...new function.
23375 (pass_tm_memopt): Convert from a global struct to a subclass of
23376 gimple_opt_pass along with...
23377 (pass_data_tm_memopt): ...new pass_data instance and...
23378 (make_pass_tm_memopt): ...new function.
23379 (pass_ipa_tm): Convert from a global struct to a subclass of
23380 simple_ipa_opt_pass along with...
23381 (pass_data_ipa_tm): ...new pass_data instance and...
23382 (make_pass_ipa_tm): ...new function.
23383 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
23384 subclass of gimple_opt_pass along with...
23385 (pass_data_call_cdce): ...new pass_data instance and...
23386 (make_pass_call_cdce): ...new function.
23387 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
23388 subclass of gimple_opt_pass along with...
23389 (pass_data_build_cfg): ...new pass_data instance and...
23390 (make_pass_build_cfg): ...new function.
23391 (pass_split_crit_edges): Convert from a global struct to a subclass of
23392 gimple_opt_pass along with...
23393 (pass_data_split_crit_edges): ...new pass_data instance and...
23394 (make_pass_split_crit_edges): ...new function.
23395 (pass_warn_function_return): Convert from a global struct to a
23396 subclass of gimple_opt_pass along with...
23397 (pass_data_warn_function_return): ...new pass_data instance and...
23398 (make_pass_warn_function_return): ...new function.
23399 (pass_warn_function_noreturn): Convert from a global struct to a
23400 subclass of gimple_opt_pass along with...
23401 (pass_data_warn_function_noreturn): ...new pass_data instance and...
23402 (make_pass_warn_function_noreturn): ...new function.
23403 (pass_warn_unused_result): Convert from a global struct to a subclass
23404 of gimple_opt_pass along with...
23405 (pass_data_warn_unused_result): ...new pass_data instance and...
23406 (make_pass_warn_unused_result): ...new function.
23407 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
23408 a subclass of gimple_opt_pass along with...
23409 (pass_data_merge_phi): ...new pass_data instance and...
23410 (make_pass_merge_phi): ...new function.
23411 * tree-complex.c (pass_lower_complex): Convert from a global struct to
23412 a subclass of gimple_opt_pass along with...
23413 (pass_data_lower_complex): ...new pass_data instance and...
23414 (make_pass_lower_complex): ...new function.
23415 (pass_lower_complex_O0): Convert from a global struct to a subclass of
23416 gimple_opt_pass along with...
23417 (pass_data_lower_complex_O0): ...new pass_data instance and...
23418 (make_pass_lower_complex_O0): ...new function.
23419 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
23420 subclass of gimple_opt_pass along with...
23421 (pass_data_lower_eh): ...new pass_data instance and...
23422 (make_pass_lower_eh): ...new function.
23423 (pass_refactor_eh): Convert from a global struct to a subclass of
23424 gimple_opt_pass along with...
23425 (pass_data_refactor_eh): ...new pass_data instance and...
23426 (make_pass_refactor_eh): ...new function.
23427 (pass_lower_resx): Convert from a global struct to a subclass of
23428 gimple_opt_pass along with...
23429 (pass_data_lower_resx): ...new pass_data instance and...
23430 (make_pass_lower_resx): ...new function.
23431 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
23432 of gimple_opt_pass along with...
23433 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
23434 (make_pass_lower_eh_dispatch): ...new function.
23435 (pass_cleanup_eh): Convert from a global struct to a subclass of
23436 gimple_opt_pass along with...
23437 (pass_data_cleanup_eh): ...new pass_data instance and...
23438 (make_pass_cleanup_eh): ...new function.
23439 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
23440 to a subclass of simple_ipa_opt_pass along with...
23441 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
23442 (make_pass_ipa_lower_emutls): ...new function.
23443 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
23444 a subclass of gimple_opt_pass along with...
23445 (pass_data_if_conversion): ...new pass_data instance and...
23446 (make_pass_if_conversion): ...new function.
23447 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
23448 subclass of gimple_opt_pass along with...
23449 (pass_data_build_ssa): ...new pass_data instance and...
23450 (make_pass_build_ssa): ...new function.
23451 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
23452 global struct to a subclass of gimple_opt_pass along with...
23453 (pass_data_loop_distribution): ...new pass_data instance and...
23454 (make_pass_loop_distribution): ...new function.
23455 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
23456 subclass of gimple_opt_pass along with...
23457 (pass_data_mudflap_1): ...new pass_data instance and...
23458 (make_pass_mudflap_1): ...new function.
23459 (pass_mudflap_2): Convert from a global struct to a subclass of
23460 gimple_opt_pass along with...
23461 (pass_data_mudflap_2): ...new pass_data instance and...
23462 (make_pass_mudflap_2): ...new function.
23463 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
23464 subclass of gimple_opt_pass along with...
23465 (pass_data_mudflap_1): ...new pass_data instance and...
23466 (make_pass_mudflap_1): ...new function.
23467 (pass_mudflap_2): Convert from a global struct to a subclass of
23468 gimple_opt_pass along with...
23469 (pass_data_mudflap_2): ...new pass_data instance and...
23470 (make_pass_mudflap_2): ...new function.
23471 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
23472 gimple_opt_pass along with...
23473 (pass_data_nrv): ...new pass_data instance and...
23474 (make_pass_nrv): ...new function.
23475 (pass_return_slot): Convert from a global struct to a subclass of
23476 gimple_opt_pass along with...
23477 (pass_data_return_slot): ...new pass_data instance and...
23478 (make_pass_return_slot): ...new function.
23479 * tree-object-size.c (pass_object_sizes): Convert from a global struct
23480 to a subclass of gimple_opt_pass along with...
23481 (pass_data_object_sizes): ...new pass_data instance and...
23482 (make_pass_object_sizes): ...new function.
23483 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
23484 global struct to a subclass of gimple_opt_pass along with...
23485 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
23486 and...
23487 (make_pass_cleanup_cfg_post_optimizing): ...new function.
23488 (pass_fixup_cfg): Convert from a global struct to a subclass of
23489 gimple_opt_pass along with...
23490 (pass_data_fixup_cfg): ...new pass_data instance and...
23491 (make_pass_fixup_cfg): ...new function.
23492 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
23493 (make_pass_mudflap_1): ...new function.
23494 (pass_mudflap_2): Replace declaration with that of...
23495 (make_pass_mudflap_2): ...new function.
23496 (pass_asan): Replace declaration with that of...
23497 (make_pass_asan): ...new function.
23498 (pass_asan_O0): Replace declaration with that of...
23499 (make_pass_asan_O0): ...new function.
23500 (pass_tsan): Replace declaration with that of...
23501 (make_pass_tsan): ...new function.
23502 (pass_tsan_O0): Replace declaration with that of...
23503 (make_pass_tsan_O0): ...new function.
23504 (pass_lower_cf): Replace declaration with that of...
23505 (make_pass_lower_cf): ...new function.
23506 (pass_refactor_eh): Replace declaration with that of...
23507 (make_pass_refactor_eh): ...new function.
23508 (pass_lower_eh): Replace declaration with that of...
23509 (make_pass_lower_eh): ...new function.
23510 (pass_lower_eh_dispatch): Replace declaration with that of...
23511 (make_pass_lower_eh_dispatch): ...new function.
23512 (pass_lower_resx): Replace declaration with that of...
23513 (make_pass_lower_resx): ...new function.
23514 (pass_build_cfg): Replace declaration with that of...
23515 (make_pass_build_cfg): ...new function.
23516 (pass_early_tree_profile): Replace declaration with that of...
23517 (make_pass_early_tree_profile): ...new function.
23518 (pass_cleanup_eh): Replace declaration with that of...
23519 (make_pass_cleanup_eh): ...new function.
23520 (pass_sra): Replace declaration with that of...
23521 (make_pass_sra): ...new function.
23522 (pass_sra_early): Replace declaration with that of...
23523 (make_pass_sra_early): ...new function.
23524 (pass_early_ipa_sra): Replace declaration with that of...
23525 (make_pass_early_ipa_sra): ...new function.
23526 (pass_tail_recursion): Replace declaration with that of...
23527 (make_pass_tail_recursion): ...new function.
23528 (pass_tail_calls): Replace declaration with that of...
23529 (make_pass_tail_calls): ...new function.
23530 (pass_tree_loop): Replace declaration with that of...
23531 (make_pass_tree_loop): ...new function.
23532 (pass_tree_loop_init): Replace declaration with that of...
23533 (make_pass_tree_loop_init): ...new function.
23534 (pass_lim): Replace declaration with that of...
23535 (make_pass_lim): ...new function.
23536 (pass_tree_unswitch): Replace declaration with that of...
23537 (make_pass_tree_unswitch): ...new function.
23538 (pass_predcom): Replace declaration with that of...
23539 (make_pass_predcom): ...new function.
23540 (pass_iv_canon): Replace declaration with that of...
23541 (make_pass_iv_canon): ...new function.
23542 (pass_scev_cprop): Replace declaration with that of...
23543 (make_pass_scev_cprop): ...new function.
23544 (pass_empty_loop): Replace declaration with that of...
23545 (make_pass_empty_loop): ...new function.
23546 (pass_record_bounds): Replace declaration with that of...
23547 (make_pass_record_bounds): ...new function.
23548 (pass_graphite): Replace declaration with that of...
23549 (make_pass_graphite): ...new function.
23550 (pass_graphite_transforms): Replace declaration with that of...
23551 (make_pass_graphite_transforms): ...new function.
23552 (pass_if_conversion): Replace declaration with that of...
23553 (make_pass_if_conversion): ...new function.
23554 (pass_loop_distribution): Replace declaration with that of...
23555 (make_pass_loop_distribution): ...new function.
23556 (pass_vectorize): Replace declaration with that of...
23557 (make_pass_vectorize): ...new function.
23558 (pass_slp_vectorize): Replace declaration with that of...
23559 (make_pass_slp_vectorize): ...new function.
23560 (pass_complete_unroll): Replace declaration with that of...
23561 (make_pass_complete_unroll): ...new function.
23562 (pass_complete_unrolli): Replace declaration with that of...
23563 (make_pass_complete_unrolli): ...new function.
23564 (pass_parallelize_loops): Replace declaration with that of...
23565 (make_pass_parallelize_loops): ...new function.
23566 (pass_loop_prefetch): Replace declaration with that of...
23567 (make_pass_loop_prefetch): ...new function.
23568 (pass_iv_optimize): Replace declaration with that of...
23569 (make_pass_iv_optimize): ...new function.
23570 (pass_tree_loop_done): Replace declaration with that of...
23571 (make_pass_tree_loop_done): ...new function.
23572 (pass_ch): Replace declaration with that of...
23573 (make_pass_ch): ...new function.
23574 (pass_ccp): Replace declaration with that of...
23575 (make_pass_ccp): ...new function.
23576 (pass_phi_only_cprop): Replace declaration with that of...
23577 (make_pass_phi_only_cprop): ...new function.
23578 (pass_build_ssa): Replace declaration with that of...
23579 (make_pass_build_ssa): ...new function.
23580 (pass_build_alias): Replace declaration with that of...
23581 (make_pass_build_alias): ...new function.
23582 (pass_build_ealias): Replace declaration with that of...
23583 (make_pass_build_ealias): ...new function.
23584 (pass_dominator): Replace declaration with that of...
23585 (make_pass_dominator): ...new function.
23586 (pass_dce): Replace declaration with that of...
23587 (make_pass_dce): ...new function.
23588 (pass_dce_loop): Replace declaration with that of...
23589 (make_pass_dce_loop): ...new function.
23590 (pass_cd_dce): Replace declaration with that of...
23591 (make_pass_cd_dce): ...new function.
23592 (pass_call_cdce): Replace declaration with that of...
23593 (make_pass_call_cdce): ...new function.
23594 (pass_merge_phi): Replace declaration with that of...
23595 (make_pass_merge_phi): ...new function.
23596 (pass_split_crit_edges): Replace declaration with that of...
23597 (make_pass_split_crit_edges): ...new function.
23598 (pass_pre): Replace declaration with that of...
23599 (make_pass_pre): ...new function.
23600 (pass_profile): Replace declaration with that of...
23601 (make_pass_profile): ...new function.
23602 (pass_strip_predict_hints): Replace declaration with that of...
23603 (make_pass_strip_predict_hints): ...new function.
23604 (pass_lower_complex_O0): Replace declaration with that of...
23605 (make_pass_lower_complex_O0): ...new function.
23606 (pass_lower_complex): Replace declaration with that of...
23607 (make_pass_lower_complex): ...new function.
23608 (pass_lower_vector): Replace declaration with that of...
23609 (make_pass_lower_vector): ...new function.
23610 (pass_lower_vector_ssa): Replace declaration with that of...
23611 (make_pass_lower_vector_ssa): ...new function.
23612 (pass_lower_omp): Replace declaration with that of...
23613 (make_pass_lower_omp): ...new function.
23614 (pass_diagnose_omp_blocks): Replace declaration with that of...
23615 (make_pass_diagnose_omp_blocks): ...new function.
23616 (pass_expand_omp): Replace declaration with that of...
23617 (make_pass_expand_omp): ...new function.
23618 (pass_expand_omp_ssa): Replace declaration with that of...
23619 (make_pass_expand_omp_ssa): ...new function.
23620 (pass_object_sizes): Replace declaration with that of...
23621 (make_pass_object_sizes): ...new function.
23622 (pass_strlen): Replace declaration with that of...
23623 (make_pass_strlen): ...new function.
23624 (pass_fold_builtins): Replace declaration with that of...
23625 (make_pass_fold_builtins): ...new function.
23626 (pass_stdarg): Replace declaration with that of...
23627 (make_pass_stdarg): ...new function.
23628 (pass_early_warn_uninitialized): Replace declaration with that of...
23629 (make_pass_early_warn_uninitialized): ...new function.
23630 (pass_late_warn_uninitialized): Replace declaration with that of...
23631 (make_pass_late_warn_uninitialized): ...new function.
23632 (pass_cse_reciprocals): Replace declaration with that of...
23633 (make_pass_cse_reciprocals): ...new function.
23634 (pass_cse_sincos): Replace declaration with that of...
23635 (make_pass_cse_sincos): ...new function.
23636 (pass_optimize_bswap): Replace declaration with that of...
23637 (make_pass_optimize_bswap): ...new function.
23638 (pass_optimize_widening_mul): Replace declaration with that of...
23639 (make_pass_optimize_widening_mul): ...new function.
23640 (pass_warn_function_return): Replace declaration with that of...
23641 (make_pass_warn_function_return): ...new function.
23642 (pass_warn_function_noreturn): Replace declaration with that of...
23643 (make_pass_warn_function_noreturn): ...new function.
23644 (pass_cselim): Replace declaration with that of...
23645 (make_pass_cselim): ...new function.
23646 (pass_phiopt): Replace declaration with that of...
23647 (make_pass_phiopt): ...new function.
23648 (pass_forwprop): Replace declaration with that of...
23649 (make_pass_forwprop): ...new function.
23650 (pass_phiprop): Replace declaration with that of...
23651 (make_pass_phiprop): ...new function.
23652 (pass_tree_ifcombine): Replace declaration with that of...
23653 (make_pass_tree_ifcombine): ...new function.
23654 (pass_dse): Replace declaration with that of...
23655 (make_pass_dse): ...new function.
23656 (pass_nrv): Replace declaration with that of...
23657 (make_pass_nrv): ...new function.
23658 (pass_rename_ssa_copies): Replace declaration with that of...
23659 (make_pass_rename_ssa_copies): ...new function.
23660 (pass_sink_code): Replace declaration with that of...
23661 (make_pass_sink_code): ...new function.
23662 (pass_fre): Replace declaration with that of...
23663 (make_pass_fre): ...new function.
23664 (pass_check_data_deps): Replace declaration with that of...
23665 (make_pass_check_data_deps): ...new function.
23666 (pass_copy_prop): Replace declaration with that of...
23667 (make_pass_copy_prop): ...new function.
23668 (pass_vrp): Replace declaration with that of...
23669 (make_pass_vrp): ...new function.
23670 (pass_uncprop): Replace declaration with that of...
23671 (make_pass_uncprop): ...new function.
23672 (pass_return_slot): Replace declaration with that of...
23673 (make_pass_return_slot): ...new function.
23674 (pass_reassoc): Replace declaration with that of...
23675 (make_pass_reassoc): ...new function.
23676 (pass_rebuild_cgraph_edges): Replace declaration with that of...
23677 (make_pass_rebuild_cgraph_edges): ...new function.
23678 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
23679 (make_pass_remove_cgraph_callee_edges): ...new function.
23680 (pass_build_cgraph_edges): Replace declaration with that of...
23681 (make_pass_build_cgraph_edges): ...new function.
23682 (pass_local_pure_const): Replace declaration with that of...
23683 (make_pass_local_pure_const): ...new function.
23684 (pass_tracer): Replace declaration with that of...
23685 (make_pass_tracer): ...new function.
23686 (pass_warn_unused_result): Replace declaration with that of...
23687 (make_pass_warn_unused_result): ...new function.
23688 (pass_diagnose_tm_blocks): Replace declaration with that of...
23689 (make_pass_diagnose_tm_blocks): ...new function.
23690 (pass_lower_tm): Replace declaration with that of...
23691 (make_pass_lower_tm): ...new function.
23692 (pass_tm_init): Replace declaration with that of...
23693 (make_pass_tm_init): ...new function.
23694 (pass_tm_mark): Replace declaration with that of...
23695 (make_pass_tm_mark): ...new function.
23696 (pass_tm_memopt): Replace declaration with that of...
23697 (make_pass_tm_memopt): ...new function.
23698 (pass_tm_edges): Replace declaration with that of...
23699 (make_pass_tm_edges): ...new function.
23700 (pass_split_functions): Replace declaration with that of...
23701 (make_pass_split_functions): ...new function.
23702 (pass_feedback_split_functions): Replace declaration with that of...
23703 (make_pass_feedback_split_functions): ...new function.
23704 (pass_strength_reduction): Replace declaration with that of...
23705 (make_pass_strength_reduction): ...new function.
23706 (pass_ipa_lower_emutls): Replace declaration with that of...
23707 (make_pass_ipa_lower_emutls): ...new function.
23708 (pass_ipa_function_and_variable_visibility): Replace declaration with
23709 that of...
23710 (make_pass_ipa_function_and_variable_visibility): ...new function.
23711 (pass_ipa_tree_profile): Replace declaration with that of...
23712 (make_pass_ipa_tree_profile): ...new function.
23713 (pass_early_local_passes): Replace declaration with that of...
23714 (make_pass_early_local_passes): ...new function.
23715 (pass_ipa_whole_program_visibility): Replace declaration with that
23716 of...
23717 (make_pass_ipa_whole_program_visibility): ...new function.
23718 (pass_ipa_lto_gimple_out): Replace declaration with that of...
23719 (make_pass_ipa_lto_gimple_out): ...new function.
23720 (pass_ipa_increase_alignment): Replace declaration with that of...
23721 (make_pass_ipa_increase_alignment): ...new function.
23722 (pass_ipa_inline): Replace declaration with that of...
23723 (make_pass_ipa_inline): ...new function.
23724 (pass_ipa_free_lang_data): Replace declaration with that of...
23725 (make_pass_ipa_free_lang_data): ...new function.
23726 (pass_ipa_free_inline_summary): Replace declaration with that of...
23727 (make_pass_ipa_free_inline_summary): ...new function.
23728 (pass_ipa_cp): Replace declaration with that of...
23729 (make_pass_ipa_cp): ...new function.
23730 (pass_ipa_reference): Replace declaration with that of...
23731 (make_pass_ipa_reference): ...new function.
23732 (pass_ipa_pure_const): Replace declaration with that of...
23733 (make_pass_ipa_pure_const): ...new function.
23734 (pass_ipa_pta): Replace declaration with that of...
23735 (make_pass_ipa_pta): ...new function.
23736 (pass_ipa_lto_finish_out): Replace declaration with that of...
23737 (make_pass_ipa_lto_finish_out): ...new function.
23738 (pass_ipa_tm): Replace declaration with that of...
23739 (make_pass_ipa_tm): ...new function.
23740 (pass_ipa_profile): Replace declaration with that of...
23741 (make_pass_ipa_profile): ...new function.
23742 (pass_ipa_cdtor_merge): Replace declaration with that of...
23743 (make_pass_ipa_cdtor_merge): ...new function.
23744 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
23745 of...
23746 (make_pass_cleanup_cfg_post_optimizing): ...new function.
23747 (pass_init_datastructures): Replace declaration with that of...
23748 (make_pass_init_datastructures): ...new function.
23749 (pass_fixup_cfg): Replace declaration with that of...
23750 (make_pass_fixup_cfg): ...new function.
23751 (pass_expand): Replace declaration with that of...
23752 (make_pass_expand): ...new function.
23753 (pass_instantiate_virtual_regs): Replace declaration with that of...
23754 (make_pass_instantiate_virtual_regs): ...new function.
23755 (pass_rtl_fwprop): Replace declaration with that of...
23756 (make_pass_rtl_fwprop): ...new function.
23757 (pass_rtl_fwprop_addr): Replace declaration with that of...
23758 (make_pass_rtl_fwprop_addr): ...new function.
23759 (pass_jump): Replace declaration with that of...
23760 (make_pass_jump): ...new function.
23761 (pass_jump2): Replace declaration with that of...
23762 (make_pass_jump2): ...new function.
23763 (pass_lower_subreg): Replace declaration with that of...
23764 (make_pass_lower_subreg): ...new function.
23765 (pass_cse): Replace declaration with that of...
23766 (make_pass_cse): ...new function.
23767 (pass_fast_rtl_dce): Replace declaration with that of...
23768 (make_pass_fast_rtl_dce): ...new function.
23769 (pass_ud_rtl_dce): Replace declaration with that of...
23770 (make_pass_ud_rtl_dce): ...new function.
23771 (pass_rtl_dce): Replace declaration with that of...
23772 (make_pass_rtl_dce): ...new function.
23773 (pass_rtl_dse1): Replace declaration with that of...
23774 (make_pass_rtl_dse1): ...new function.
23775 (pass_rtl_dse2): Replace declaration with that of...
23776 (make_pass_rtl_dse2): ...new function.
23777 (pass_rtl_dse3): Replace declaration with that of...
23778 (make_pass_rtl_dse3): ...new function.
23779 (pass_rtl_cprop): Replace declaration with that of...
23780 (make_pass_rtl_cprop): ...new function.
23781 (pass_rtl_pre): Replace declaration with that of...
23782 (make_pass_rtl_pre): ...new function.
23783 (pass_rtl_hoist): Replace declaration with that of...
23784 (make_pass_rtl_hoist): ...new function.
23785 (pass_rtl_store_motion): Replace declaration with that of...
23786 (make_pass_rtl_store_motion): ...new function.
23787 (pass_cse_after_global_opts): Replace declaration with that of...
23788 (make_pass_cse_after_global_opts): ...new function.
23789 (pass_rtl_ifcvt): Replace declaration with that of...
23790 (make_pass_rtl_ifcvt): ...new function.
23791 (pass_into_cfg_layout_mode): Replace declaration with that of...
23792 (make_pass_into_cfg_layout_mode): ...new function.
23793 (pass_outof_cfg_layout_mode): Replace declaration with that of...
23794 (make_pass_outof_cfg_layout_mode): ...new function.
23795 (pass_loop2): Replace declaration with that of...
23796 (make_pass_loop2): ...new function.
23797 (pass_rtl_loop_init): Replace declaration with that of...
23798 (make_pass_rtl_loop_init): ...new function.
23799 (pass_rtl_move_loop_invariants): Replace declaration with that of...
23800 (make_pass_rtl_move_loop_invariants): ...new function.
23801 (pass_rtl_unswitch): Replace declaration with that of...
23802 (make_pass_rtl_unswitch): ...new function.
23803 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
23804 (make_pass_rtl_unroll_and_peel_loops): ...new function.
23805 (pass_rtl_doloop): Replace declaration with that of...
23806 (make_pass_rtl_doloop): ...new function.
23807 (pass_rtl_loop_done): Replace declaration with that of...
23808 (make_pass_rtl_loop_done): ...new function.
23809 (pass_web): Replace declaration with that of...
23810 (make_pass_web): ...new function.
23811 (pass_cse2): Replace declaration with that of...
23812 (make_pass_cse2): ...new function.
23813 (pass_df_initialize_opt): Replace declaration with that of...
23814 (make_pass_df_initialize_opt): ...new function.
23815 (pass_df_initialize_no_opt): Replace declaration with that of...
23816 (make_pass_df_initialize_no_opt): ...new function.
23817 (pass_reginfo_init): Replace declaration with that of...
23818 (make_pass_reginfo_init): ...new function.
23819 (pass_inc_dec): Replace declaration with that of...
23820 (make_pass_inc_dec): ...new function.
23821 (pass_stack_ptr_mod): Replace declaration with that of...
23822 (make_pass_stack_ptr_mod): ...new function.
23823 (pass_initialize_regs): Replace declaration with that of...
23824 (make_pass_initialize_regs): ...new function.
23825 (pass_combine): Replace declaration with that of...
23826 (make_pass_combine): ...new function.
23827 (pass_if_after_combine): Replace declaration with that of...
23828 (make_pass_if_after_combine): ...new function.
23829 (pass_ree): Replace declaration with that of...
23830 (make_pass_ree): ...new function.
23831 (pass_partition_blocks): Replace declaration with that of...
23832 (make_pass_partition_blocks): ...new function.
23833 (pass_match_asm_constraints): Replace declaration with that of...
23834 (make_pass_match_asm_constraints): ...new function.
23835 (pass_regmove): Replace declaration with that of...
23836 (make_pass_regmove): ...new function.
23837 (pass_split_all_insns): Replace declaration with that of...
23838 (make_pass_split_all_insns): ...new function.
23839 (pass_fast_rtl_byte_dce): Replace declaration with that of...
23840 (make_pass_fast_rtl_byte_dce): ...new function.
23841 (pass_lower_subreg2): Replace declaration with that of...
23842 (make_pass_lower_subreg2): ...new function.
23843 (pass_mode_switching): Replace declaration with that of...
23844 (make_pass_mode_switching): ...new function.
23845 (pass_sms): Replace declaration with that of...
23846 (make_pass_sms): ...new function.
23847 (pass_sched): Replace declaration with that of...
23848 (make_pass_sched): ...new function.
23849 (pass_ira): Replace declaration with that of...
23850 (make_pass_ira): ...new function.
23851 (pass_reload): Replace declaration with that of...
23852 (make_pass_reload): ...new function.
23853 (pass_clean_state): Replace declaration with that of...
23854 (make_pass_clean_state): ...new function.
23855 (pass_branch_prob): Replace declaration with that of...
23856 (make_pass_branch_prob): ...new function.
23857 (pass_value_profile_transformations): Replace declaration with that
23858 of...
23859 (make_pass_value_profile_transformations): ...new function.
23860 (pass_postreload_cse): Replace declaration with that of...
23861 (make_pass_postreload_cse): ...new function.
23862 (pass_gcse2): Replace declaration with that of...
23863 (make_pass_gcse2): ...new function.
23864 (pass_split_after_reload): Replace declaration with that of...
23865 (make_pass_split_after_reload): ...new function.
23866 (pass_branch_target_load_optimize1): Replace declaration with that
23867 of...
23868 (make_pass_branch_target_load_optimize1): ...new function.
23869 (pass_thread_prologue_and_epilogue): Replace declaration with that
23870 of...
23871 (make_pass_thread_prologue_and_epilogue): ...new function.
23872 (pass_stack_adjustments): Replace declaration with that of...
23873 (make_pass_stack_adjustments): ...new function.
23874 (pass_peephole2): Replace declaration with that of...
23875 (make_pass_peephole2): ...new function.
23876 (pass_if_after_reload): Replace declaration with that of...
23877 (make_pass_if_after_reload): ...new function.
23878 (pass_regrename): Replace declaration with that of...
23879 (make_pass_regrename): ...new function.
23880 (pass_cprop_hardreg): Replace declaration with that of...
23881 (make_pass_cprop_hardreg): ...new function.
23882 (pass_reorder_blocks): Replace declaration with that of...
23883 (make_pass_reorder_blocks): ...new function.
23884 (pass_branch_target_load_optimize2): Replace declaration with that
23885 of...
23886 (make_pass_branch_target_load_optimize2): ...new function.
23887 (pass_leaf_regs): Replace declaration with that of...
23888 (make_pass_leaf_regs): ...new function.
23889 (pass_split_before_sched2): Replace declaration with that of...
23890 (make_pass_split_before_sched2): ...new function.
23891 (pass_compare_elim_after_reload): Replace declaration with that of...
23892 (make_pass_compare_elim_after_reload): ...new function.
23893 (pass_sched2): Replace declaration with that of...
23894 (make_pass_sched2): ...new function.
23895 (pass_stack_regs): Replace declaration with that of...
23896 (make_pass_stack_regs): ...new function.
23897 (pass_stack_regs_run): Replace declaration with that of...
23898 (make_pass_stack_regs_run): ...new function.
23899 (pass_df_finish): Replace declaration with that of...
23900 (make_pass_df_finish): ...new function.
23901 (pass_compute_alignments): Replace declaration with that of...
23902 (make_pass_compute_alignments): ...new function.
23903 (pass_duplicate_computed_gotos): Replace declaration with that of...
23904 (make_pass_duplicate_computed_gotos): ...new function.
23905 (pass_variable_tracking): Replace declaration with that of...
23906 (make_pass_variable_tracking): ...new function.
23907 (pass_free_cfg): Replace declaration with that of...
23908 (make_pass_free_cfg): ...new function.
23909 (pass_machine_reorg): Replace declaration with that of...
23910 (make_pass_machine_reorg): ...new function.
23911 (pass_cleanup_barriers): Replace declaration with that of...
23912 (make_pass_cleanup_barriers): ...new function.
23913 (pass_delay_slots): Replace declaration with that of...
23914 (make_pass_delay_slots): ...new function.
23915 (pass_split_for_shorten_branches): Replace declaration with that of...
23916 (make_pass_split_for_shorten_branches): ...new function.
23917 (pass_split_before_regstack): Replace declaration with that of...
23918 (make_pass_split_before_regstack): ...new function.
23919 (pass_convert_to_eh_region_ranges): Replace declaration with that
23920 of...
23921 (make_pass_convert_to_eh_region_ranges): ...new function.
23922 (pass_shorten_branches): Replace declaration with that of...
23923 (make_pass_shorten_branches): ...new function.
23924 (pass_set_nothrow_function_flags): Replace declaration with that of...
23925 (make_pass_set_nothrow_function_flags): ...new function.
23926 (pass_dwarf2_frame): Replace declaration with that of...
23927 (make_pass_dwarf2_frame): ...new function.
23928 (pass_final): Replace declaration with that of...
23929 (make_pass_final): ...new function.
23930 (pass_rtl_seqabstr): Replace declaration with that of...
23931 (make_pass_rtl_seqabstr): ...new function.
23932 (pass_release_ssa_names): Replace declaration with that of...
23933 (make_pass_release_ssa_names): ...new function.
23934 (pass_early_inline): Replace declaration with that of...
23935 (make_pass_early_inline): ...new function.
23936 (pass_inline_parameters): Replace declaration with that of...
23937 (make_pass_inline_parameters): ...new function.
23938 (pass_update_address_taken): Replace declaration with that of...
23939 (make_pass_update_address_taken): ...new function.
23940 (pass_convert_switch): Replace declaration with that of...
23941 (make_pass_convert_switch): ...new function.
23942 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
23943 to a subclass of simple_ipa_opt_pass along with...
23944 (pass_data_ipa_tree_profile): ...new pass_data instance and...
23945 (make_pass_ipa_tree_profile): ...new function.
23946 * tree-sra.c (pass_sra_early): Convert from a global struct to a
23947 subclass of gimple_opt_pass along with...
23948 (pass_data_sra_early): ...new pass_data instance and...
23949 (make_pass_sra_early): ...new function.
23950 (pass_sra): Convert from a global struct to a subclass of
23951 gimple_opt_pass along with...
23952 (pass_data_sra): ...new pass_data instance and...
23953 (make_pass_sra): ...new function.
23954 (pass_early_ipa_sra): Convert from a global struct to a subclass of
23955 gimple_opt_pass along with...
23956 (pass_data_early_ipa_sra): ...new pass_data instance and...
23957 (make_pass_early_ipa_sra): ...new function.
23958 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
23959 subclass of gimple_opt_pass along with...
23960 (pass_data_ccp): ...new pass_data instance and...
23961 (make_pass_ccp): ...new function.
23962 (pass_fold_builtins): Convert from a global struct to a subclass of
23963 gimple_opt_pass along with...
23964 (pass_data_fold_builtins): ...new pass_data instance and...
23965 (make_pass_fold_builtins): ...new function.
23966 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
23967 subclass of gimple_opt_pass along with...
23968 (pass_data_copy_prop): ...new pass_data instance and...
23969 (make_pass_copy_prop): ...new function.
23970 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
23971 global struct to a subclass of gimple_opt_pass along with...
23972 (pass_data_rename_ssa_copies): ...new pass_data instance and...
23973 (make_pass_rename_ssa_copies): ...new function.
23974 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
23975 subclass of gimple_opt_pass along with...
23976 (pass_data_dce): ...new pass_data instance and...
23977 (make_pass_dce): ...new function.
23978 (pass_dce_loop): Convert from a global struct to a subclass of
23979 gimple_opt_pass along with...
23980 (pass_data_dce_loop): ...new pass_data instance and...
23981 (make_pass_dce_loop): ...new function.
23982 (pass_cd_dce): Convert from a global struct to a subclass of
23983 gimple_opt_pass along with...
23984 (pass_data_cd_dce): ...new pass_data instance and...
23985 (make_pass_cd_dce): ...new function.
23986 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
23987 subclass of gimple_opt_pass along with...
23988 (pass_data_dominator): ...new pass_data instance and...
23989 (make_pass_dominator): ...new function.
23990 (pass_phi_only_cprop): Convert from a global struct to a subclass of
23991 gimple_opt_pass along with...
23992 (pass_data_phi_only_cprop): ...new pass_data instance and...
23993 (make_pass_phi_only_cprop): ...new function.
23994 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
23995 subclass of gimple_opt_pass along with...
23996 (pass_data_dse): ...new pass_data instance and...
23997 (make_pass_dse): ...new function.
23998 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
23999 a subclass of gimple_opt_pass along with...
24000 (pass_data_forwprop): ...new pass_data instance and...
24001 (make_pass_forwprop): ...new function.
24002 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
24003 struct to a subclass of gimple_opt_pass along with...
24004 (pass_data_tree_ifcombine): ...new pass_data instance and...
24005 (make_pass_tree_ifcombine): ...new function.
24006 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
24007 subclass of gimple_opt_pass along with...
24008 (pass_data_ch): ...new pass_data instance and...
24009 (make_pass_ch): ...new function.
24010 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
24011 subclass of gimple_opt_pass along with...
24012 (pass_data_tree_loop): ...new pass_data instance and...
24013 (make_pass_tree_loop): ...new function.
24014 (pass_tree_loop_init): Convert from a global struct to a subclass of
24015 gimple_opt_pass along with...
24016 (pass_data_tree_loop_init): ...new pass_data instance and...
24017 (make_pass_tree_loop_init): ...new function.
24018 (pass_lim): Convert from a global struct to a subclass of
24019 gimple_opt_pass along with...
24020 (pass_data_lim): ...new pass_data instance and...
24021 (make_pass_lim): ...new function.
24022 (pass_tree_unswitch): Convert from a global struct to a subclass of
24023 gimple_opt_pass along with...
24024 (pass_data_tree_unswitch): ...new pass_data instance and...
24025 (make_pass_tree_unswitch): ...new function.
24026 (pass_predcom): Convert from a global struct to a subclass of
24027 gimple_opt_pass along with...
24028 (pass_data_predcom): ...new pass_data instance and...
24029 (make_pass_predcom): ...new function.
24030 (pass_vectorize): Convert from a global struct to a subclass of
24031 gimple_opt_pass along with...
24032 (pass_data_vectorize): ...new pass_data instance and...
24033 (make_pass_vectorize): ...new function.
24034 (pass_graphite): Convert from a global struct to a subclass of
24035 gimple_opt_pass along with...
24036 (pass_data_graphite): ...new pass_data instance and...
24037 (make_pass_graphite): ...new function.
24038 (pass_graphite_transforms): Convert from a global struct to a subclass
24039 of gimple_opt_pass along with...
24040 (pass_data_graphite_transforms): ...new pass_data instance and...
24041 (make_pass_graphite_transforms): ...new function.
24042 (pass_check_data_deps): Convert from a global struct to a subclass of
24043 gimple_opt_pass along with...
24044 (pass_data_check_data_deps): ...new pass_data instance and...
24045 (make_pass_check_data_deps): ...new function.
24046 (pass_iv_canon): Convert from a global struct to a subclass of
24047 gimple_opt_pass along with...
24048 (pass_data_iv_canon): ...new pass_data instance and...
24049 (make_pass_iv_canon): ...new function.
24050 (pass_scev_cprop): Convert from a global struct to a subclass of
24051 gimple_opt_pass along with...
24052 (pass_data_scev_cprop): ...new pass_data instance and...
24053 (make_pass_scev_cprop): ...new function.
24054 (pass_record_bounds): Convert from a global struct to a subclass of
24055 gimple_opt_pass along with...
24056 (pass_data_record_bounds): ...new pass_data instance and...
24057 (make_pass_record_bounds): ...new function.
24058 (pass_complete_unroll): Convert from a global struct to a subclass of
24059 gimple_opt_pass along with...
24060 (pass_data_complete_unroll): ...new pass_data instance and...
24061 (make_pass_complete_unroll): ...new function.
24062 (pass_complete_unrolli): Convert from a global struct to a subclass of
24063 gimple_opt_pass along with...
24064 (pass_data_complete_unrolli): ...new pass_data instance and...
24065 (make_pass_complete_unrolli): ...new function.
24066 (pass_parallelize_loops): Convert from a global struct to a subclass
24067 of gimple_opt_pass along with...
24068 (pass_data_parallelize_loops): ...new pass_data instance and...
24069 (make_pass_parallelize_loops): ...new function.
24070 (pass_loop_prefetch): Convert from a global struct to a subclass of
24071 gimple_opt_pass along with...
24072 (pass_data_loop_prefetch): ...new pass_data instance and...
24073 (make_pass_loop_prefetch): ...new function.
24074 (pass_iv_optimize): Convert from a global struct to a subclass of
24075 gimple_opt_pass along with...
24076 (pass_data_iv_optimize): ...new pass_data instance and...
24077 (make_pass_iv_optimize): ...new function.
24078 (pass_tree_loop_done): Convert from a global struct to a subclass of
24079 gimple_opt_pass along with...
24080 (pass_data_tree_loop_done): ...new pass_data instance and...
24081 (make_pass_tree_loop_done): ...new function.
24082 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
24083 struct to a subclass of gimple_opt_pass along with...
24084 (pass_data_cse_reciprocals): ...new pass_data instance and...
24085 (make_pass_cse_reciprocals): ...new function.
24086 (pass_cse_sincos): Convert from a global struct to a subclass of
24087 gimple_opt_pass along with...
24088 (pass_data_cse_sincos): ...new pass_data instance and...
24089 (make_pass_cse_sincos): ...new function.
24090 (pass_optimize_bswap): Convert from a global struct to a subclass of
24091 gimple_opt_pass along with...
24092 (pass_data_optimize_bswap): ...new pass_data instance and...
24093 (make_pass_optimize_bswap): ...new function.
24094 (pass_optimize_widening_mul): Convert from a global struct to a
24095 subclass of gimple_opt_pass along with...
24096 (pass_data_optimize_widening_mul): ...new pass_data instance and...
24097 (make_pass_optimize_widening_mul): ...new function.
24098 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
24099 subclass of gimple_opt_pass along with...
24100 (pass_data_phiopt): ...new pass_data instance and...
24101 (make_pass_phiopt): ...new function.
24102 (pass_cselim): Convert from a global struct to a subclass of
24103 gimple_opt_pass along with...
24104 (pass_data_cselim): ...new pass_data instance and...
24105 (make_pass_cselim): ...new function.
24106 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
24107 subclass of gimple_opt_pass along with...
24108 (pass_data_phiprop): ...new pass_data instance and...
24109 (make_pass_phiprop): ...new function.
24110 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
24111 subclass of gimple_opt_pass along with...
24112 (pass_data_pre): ...new pass_data instance and...
24113 (make_pass_pre): ...new function.
24114 (pass_fre): Convert from a global struct to a subclass of
24115 gimple_opt_pass along with...
24116 (pass_data_fre): ...new pass_data instance and...
24117 (make_pass_fre): ...new function.
24118 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
24119 subclass of gimple_opt_pass along with...
24120 (pass_data_reassoc): ...new pass_data instance and...
24121 (make_pass_reassoc): ...new function.
24122 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
24123 subclass of gimple_opt_pass along with...
24124 (pass_data_sink_code): ...new pass_data instance and...
24125 (make_pass_sink_code): ...new function.
24126 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
24127 subclass of gimple_opt_pass along with...
24128 (pass_data_strlen): ...new pass_data instance and...
24129 (make_pass_strlen): ...new function.
24130 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
24131 struct to a subclass of gimple_opt_pass along with...
24132 (pass_data_build_alias): ...new pass_data instance and...
24133 (make_pass_build_alias): ...new function.
24134 (pass_build_ealias): Convert from a global struct to a subclass of
24135 gimple_opt_pass along with...
24136 (pass_data_build_ealias): ...new pass_data instance and...
24137 (make_pass_build_ealias): ...new function.
24138 (pass_ipa_pta): Convert from a global struct to a subclass of
24139 simple_ipa_opt_pass along with...
24140 (pass_data_ipa_pta): ...new pass_data instance and...
24141 (make_pass_ipa_pta): ...new function.
24142 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
24143 subclass of gimple_opt_pass along with...
24144 (pass_data_uncprop): ...new pass_data instance and...
24145 (make_pass_uncprop): ...new function.
24146 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
24147 global struct to a subclass of gimple_opt_pass along with...
24148 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
24149 (make_pass_late_warn_uninitialized): ...new function.
24150 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
24151 to a subclass of gimple_opt_pass along with...
24152 (pass_data_init_datastructures): ...new pass_data instance and...
24153 (make_pass_init_datastructures): ...new function.
24154 (pass_early_warn_uninitialized): Convert from a global struct to a
24155 subclass of gimple_opt_pass along with...
24156 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
24157 (make_pass_early_warn_uninitialized): ...new function.
24158 (pass_update_address_taken): Convert from a global struct to a
24159 subclass of gimple_opt_pass along with...
24160 (pass_data_update_address_taken): ...new pass_data instance and...
24161 (make_pass_update_address_taken): ...new function.
24162 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
24163 struct to a subclass of gimple_opt_pass along with...
24164 (pass_data_release_ssa_names): ...new pass_data instance and...
24165 (make_pass_release_ssa_names): ...new function.
24166 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
24167 subclass of gimple_opt_pass along with...
24168 (pass_data_stdarg): ...new pass_data instance and...
24169 (make_pass_stdarg): ...new function.
24170 * tree-switch-conversion.c (pass_convert_switch): Convert from a
24171 global struct to a subclass of gimple_opt_pass along with...
24172 (pass_data_convert_switch): ...new pass_data instance and...
24173 (make_pass_convert_switch): ...new function.
24174 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
24175 to a subclass of gimple_opt_pass along with...
24176 (pass_data_tail_recursion): ...new pass_data instance and...
24177 (make_pass_tail_recursion): ...new function.
24178 (pass_tail_calls): Convert from a global struct to a subclass of
24179 gimple_opt_pass along with...
24180 (pass_data_tail_calls): ...new pass_data instance and...
24181 (make_pass_tail_calls): ...new function.
24182 * tree-vect-generic.c (pass_lower_vector): Convert from a global
24183 struct to a subclass of gimple_opt_pass along with...
24184 (pass_data_lower_vector): ...new pass_data instance and...
24185 (make_pass_lower_vector): ...new function.
24186 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
24187 gimple_opt_pass along with...
24188 (pass_data_lower_vector_ssa): ...new pass_data instance and...
24189 (make_pass_lower_vector_ssa): ...new function.
24190 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
24191 to a subclass of gimple_opt_pass along with...
24192 (pass_data_slp_vectorize): ...new pass_data instance and...
24193 (make_pass_slp_vectorize): ...new function.
24194 (pass_ipa_increase_alignment): Convert from a global struct to a
24195 subclass of simple_ipa_opt_pass along with...
24196 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
24197 (make_pass_ipa_increase_alignment): ...new function.
24198 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
24199 gimple_opt_pass along with...
24200 (pass_data_vrp): ...new pass_data instance and...
24201 (make_pass_vrp): ...new function.
24202 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
24203 subclass of simple_ipa_opt_pass along with...
24204 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
24205 (make_pass_ipa_free_lang_data): ...new function.
24206 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
24207 gimple_opt_pass along with...
24208 (pass_data_tsan): ...new pass_data instance and...
24209 (make_pass_tsan): ...new function.
24210 (pass_tsan_O0): Convert from a global struct to a subclass of
24211 gimple_opt_pass along with...
24212 (pass_data_tsan_O0): ...new pass_data instance and...
24213 (make_pass_tsan_O0): ...new function.
24214 * var-tracking.c (pass_variable_tracking): Convert from a global
24215 struct to a subclass of rtl_opt_pass along with...
24216 (pass_data_variable_tracking): ...new pass_data instance and...
24217 (make_pass_variable_tracking): ...new function.
24218 * web.c (pass_web): Convert from a global struct to a subclass of
24219 rtl_opt_pass along with...
24220 (pass_data_web): ...new pass_data instance and...
24221 (make_pass_web): ...new function.
24222 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
24223 declaration with that of...
24224 (make_pass_mode_switch_use): ...new function.
24225 (pass_resolve_sw_modes): Replace declaration with that of...
24226 (make_pass_resolve_sw_modes): ...new function.
24227 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
24228 from a global struct to a subclass of rtl_opt_pass along with...
24229 (pass_data_mode_switch_use): ...new pass_data instance and...
24230 (make_pass_mode_switch_use): ...new function.
24231 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
24232 from a global struct to a subclass of rtl_opt_pass along with...
24233 (pass_data_resolve_sw_modes): ...new pass_data instance and...
24234 (make_pass_resolve_sw_modes): ...new function.
24235 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
24236 struct to a subclass of rtl_opt_pass along with...
24237 (pass_data_insert_vzeroupper): ...new pass_data instance and...
24238 (make_pass_insert_vzeroupper): ...new function.
24239 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
24240 global struct to a subclass of rtl_opt_pass along with...
24241 (pass_data_work_around_errata): ...new pass_data instance and...
24242 (make_pass_work_around_errata): ...new function.
24243 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
24244 struct to a subclass of rtl_opt_pass along with...
24245 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
24246 (make_pass_mips_machine_reorg2): ...new function.
24247
24248 2013-08-05 David Malcolm <dmalcolm@redhat.com>
24249
24250 * passes.c (pass_manager::operator new): New.
24251
24252 2013-08-05 David Malcolm <dmalcolm@redhat.com>
24253
24254 Handwritten part of conversion of passes to C++ classes.
24255
24256 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
24257 (toplev.o): Add dep on PASS_MANAGER_H.
24258 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
24259 of early local pases to reflect this moving from a global to a
24260 member of gcc::pass_manager.
24261 (cgraph_add_new_function): Likewise.
24262 * lto-cgraph.c (lto_output_node): Update for conversion of
24263 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
24264 * passes.c (opt_pass::clone): New.
24265 (opt_pass::gate): New.
24266 (opt_pass::execute): New.
24267 (opt_pass::opt_pass): New.
24268 (pass_manager::execute_early_local_passes): New.
24269 (pass_manager::execute_pass_mode_switching): new.
24270 (finish_optimization_passes): Convert to...
24271 (pass_manager::finish_optimization_passes): ...this.
24272 (finish_optimization_passes): Update for conversion of passes to
24273 C++ classes.
24274 (register_dump_files_1): Use has_gate since we cannot portably
24275 check a vtable entry against NULL.
24276 (dump_one_pass): Likewise.
24277 (ipa_write_summaries_2): Likewise.
24278 (ipa_write_optimization_summaries_1): Likewise.
24279 (ipa_read_summaries_1): Likewise.
24280 (ipa_read_optimization_summaries_1): Likewise.
24281 (execute_ipa_stmt_fixups): Likewise.
24282 (pass_manager::pass_manager): Rewrite pass-creation, invoking
24283 pass-creation functions rather than wiring up globals, and
24284 storing the results in fields of pass_manager generated using
24285 pass-instances.def.
24286 (pass_manager::dump_profile_report): Update for conversion of
24287 passes to C++ classes.
24288 (pass_manager::execute_ipa_summary_passes): Likewise.
24289 (execute_one_ipa_transform_pass): Likewise.
24290 (execute_one_pass): Use has_gate and has_execute since we cannot
24291 portably check a vtable entry against NULL.
24292 * pass_manager.h (pass_manager::finish_optimization_passes): New.
24293 (pass_manager): Use pass-instances.def to add fields for the
24294 various pass instances.
24295 * toplev.c (finalize): Update for move of
24296 finish_optimization_passes to a method of gcc::pass_manager.
24297 * toplev.h (finish_optimization_passes): Move to method of class
24298 pass_manager.
24299 * tree-pass.h (struct pass_data): New.
24300 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
24301 (opt_pass::gate): Convert to virtual function.
24302 (opt_pass::~opt_pass): New.
24303 (opt_pass::clone): New.
24304 (opt_pass::execute): Convert to virtual function.
24305 (opt_pass::opt_pass): New.
24306 (opt_pass::ctxt_): new.
24307 (gimple_opt_pass): Convert to subclass of opt_pass.
24308 (gimple_opt_pass::gimple_opt_pass): New.
24309 (rtl_opt_pass): Convert to subclass of opt_pass.
24310 (rtl_opt_pass::rtl_opt_pass): New.
24311 (ipa_opt_pass_d): Convert to subclass of opt_pass.
24312 (ipa_opt_pass_d::ipa_opt_pass_d): New.
24313 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
24314 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
24315 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
24316 invocation of pass_mode_switching to reflect this moving from a
24317 global to a member of gcc::pass_manager.
24318 (ix86_option_override): Rework how pass_insert_vzeroupper is
24319 added to the pass_manager to reflect autogenerated changes.
24320 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
24321
24322 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
24323
24324 PR rtl-optimization/57708
24325 * recog.c (peep2_find_free_register): Validate all regs in a
24326 multi-reg mode.
24327
24328 2013-08-05 Jan Hubicka <jh@suse.cz>
24329
24330 PR lto/57602
24331 * cgraph.c (verify_cgraph_node): Accept local flags from other
24332 partitions.
24333 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
24334 (function_and_variable_visibility): Likewise.
24335 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
24336
24337 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
24338
24339 * graph.c (init_graph_slim_pretty_print): Remove.
24340 (print_graph_cfg): Do not call it. Use local pretty printer.
24341 (start_graph_dump): Likewise.
24342
24343 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
24344
24345 * gimple-pretty-print.c (buffer): Remove.
24346 (initialized): Likewise.
24347 (maybe_init_pretty_print): Likewise.
24348 (print_gimple_stmt): Do not call it. Use non-static local
24349 pretty_printer variable.
24350 (print_gimple_expr): Likewise.
24351 (print_gimple_seq): Likewise.
24352 (gimple_dump_bb): Likewise.
24353
24354 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
24355
24356 * asan.c (asan_pp): Remove.
24357 (asan_pp_initialized): Likewise.
24358 (asan_pp_initialize): Likewise.
24359 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
24360 (asan_emit_stack_protection): Tidy. Use local pretty printer.
24361 (asan_add_global): Likewise.
24362
24363 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
24364
24365 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
24366 * diagnostic.h (diagnostic_flush_buffer): Adjust.
24367 * pretty-print.c (pp_formatted_text_data): Likewise.
24368 (pp_indent): Rename from pp_base_indent.
24369 (pp_format): Rename from pp_base_format.
24370 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
24371 (pp_format_verbatim): Rename from pp_base_format_verbatim.
24372 (pp_flush): Rename from pp_base_flush.
24373 (pp_set_line_maximum_length): Rename from
24374 pp_base_set_line_maximum_length.
24375 (pp_clear_output_area): Rename from pp_base_clear_output_area.
24376 (pp_set_prefix): Rename from pp_base_set_prefix.
24377 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
24378 (pp_emit_prefix): Rename from pp_base_emit_prefix.
24379 (pp_append_text): Rename from pp_base_append_text.
24380 (pp_formatted_text): Rename from pp_base_formatted_text.
24381 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
24382 (pp_remaining_character_count_for_line): Rename from
24383 pp_base_remaining_character_count_for_line.
24384 (pp_newline): Rename from pp_base_newline.
24385 (pp_character): Rename from pp_base_character.
24386 (pp_string): Rename from pp_base_string.
24387 (pp_maybe_space): Rename from pp_base_maybe_space.
24388 * asan.c (asan_pp_string): Adjust.
24389 (asan_emit_stack_protection): Likewise.
24390 (asan_add_global): Likewise.
24391 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
24392 * tree-mudflap.c (mf_varname_tree): Likewise.
24393 * tree-pretty-print.c (pp_tree_identifier): Rename from
24394 pp_base_tree_identifier.
24395 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
24396 Declare as function.
24397
24398 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
24399
24400 * pretty-print.h (pp_bar_bar): New.
24401 (pp_ampersand_ampersand): Likewise.
24402 (pp_less_equal): Likewise.
24403 (pp_greater_equal): Likewise.
24404 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
24405 printer functions instead of pp_string or operators and punctuators.
24406 (dump_gimple_call): Likewise.
24407 (dump_gimple_omp_for): Likewise.
24408 (dump_gimple_transaction): Likewise.
24409 (dump_gimple_phi): Likewise.
24410 (pp_gimple_stmt_1): Likewise.
24411 * sched-vis.c (print_insn): Likewise.
24412 * tree-mudflap.c (mf_varname_tree): Likewise.
24413 * tree-pretty-print.c (dump_block_node): Likewise.
24414 (dump_generic_node): Likewise.
24415
24416 2013-08-02 Jan Hubicka <jh@suse.cz>
24417
24418 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
24419 boundaries.
24420 * lto-streamer-out.c (tree_is_indexable): Results decls and
24421 parm decls are not indexable.
24422 (DFS_write_tree_body): Do not follow args and results.
24423 (hash_tree): Likewise.
24424 (output_functions): Rearrange so struct function is needed
24425 only when real body is output; be able to also ouptut abstract
24426 functions; output DECL_ARGUMENTS and DECL_RESULT.
24427 (lto_output): When not in WPA, ale store abstract functions.
24428 (write_symbol): Do not care about RESULT_DECL.
24429 (output_symbol_p): Handle correctly sbtract decls.
24430 * lto-streamer-in.c (input_function): Rearrange so struct
24431 function can be NULL at entry; allow streaming of
24432 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
24433 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
24434 sanity check during LTO.
24435 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
24436 RESULT_DECl and DECL_ARGUMENTS.
24437 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
24438 Likewise.
24439
24440 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
24441
24442 * pretty-print.h (pp_underscore): New.
24443 (pp_comma): Tidy.
24444 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
24445 printer functions instead of pp_character.
24446 (dump_binary_rhs): Likewise.
24447 (dump_ternary_rhs): Likewise.
24448 (dump_gimple_call_args): Likewise.
24449 (pp_points_to_solution): Likewise.
24450 (dump_gimple_call): Likewise.
24451 (dump_gimple_switch): Likewise.
24452 (dump_gimple_cond): Likewise.
24453 (dump_gimple_bind): Likewise.
24454 (dump_gimple_try): Likewise.
24455 (dump_gimple_omp_for): Likewise.
24456 (dump_gimple_omp_continue): Likewise.
24457 (dump_gimple_omp_single): Likewise.
24458 (dump_gimple_omp_sections): Likewise.
24459 (dump_gimple_omp_block): Likewise.
24460 (dump_gimple_omp_critical): Likewise.
24461 (dump_gimple_transaction): Likewise.
24462 (dump_gimple_asm): Likewise.
24463 (dump_gimple_phi): Likewise.
24464 (dump_gimple_omp_parallel): Likewise.
24465 (dump_gimple_omp_task): Likewise.
24466 (dump_gimple_omp_atomic_load): Likewise.
24467 (dump_gimple_omp_atomic_store): Likewise.
24468 (dump_gimple_mem_ops): Likewise.
24469 (pp_gimple_stmt_1): Likewise.
24470 (pp_cfg_jump): Likewise.
24471 (dump_implicit_edges): Likewise.
24472 (gimple_dump_bb_for_graph): Likewise.
24473 * graph.c (draw_cfg_node): Likewise.
24474 * langhooks.c (lhd_print_error_function): Likewise.
24475 * sched-vis.c (print_exp): Likewise.
24476 (print_value): Likewise.
24477 (print_pattern): Likewise.
24478 (print_insn): Likewise.
24479 (rtl_dump_bb_for_graph): Likewise.
24480 * tree-pretty-print.c (dump_function_declaration): Likewise.
24481 (dump_array_domain): Likewise.
24482 (dump_omp_clause): Likewise.
24483 (dump_location): Likewise.
24484 (dump_generic_node): Likewise.
24485 (print_struct_decl): Likewise.
24486 * diagnostic.c (diagnostic_show_locus): Use pp_space.
24487
24488 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
24489
24490 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
24491 candidate table when replacing a candidate statement.
24492 (replace_rhs_if_not_dup): Likewise.
24493 (replace_one_candidate): Likewise.
24494
24495 2013-08-02 Jan Hubicka <jh@suse.cz>
24496 Martin Liska <marxin.liska@gmail.com>
24497
24498 * cgraphunit.c (add_new_function): Fix logic when adding from
24499 late IPA pass.
24500 (assemble_thunk): Rename to ...
24501 (expand_thunk); .. this one; export; get it working with
24502 general functions; make produced gimple valid.
24503 * cgraph.h (expand_thunk): Declare.
24504
24505 2013-08-02 Jan Hubicka <jh@suse.cz>
24506
24507 * ipa-cp.c (gather_context_independent_values): Use
24508 ipa_get_param_move_cost.
24509 (get_replacement_map): Remove PARAM; move parameter folding
24510 into tree-inline.c
24511 (create_specialized_node): Update.
24512 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
24513 assert that we have gimple body; update move_cost.
24514 (count_formal_params): Assert that we have gimple body.
24515 (ipa_dump_param): New function.
24516 (ipa_alloc_node_params): Break out from ...
24517 (ipa_initialize_node_params): ... here.
24518 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
24519 (ipa_write_node_info): Stream move costs.
24520 (ipa_read_node_info): Read move costs.
24521 (ipa_update_after_lto_read): Do not recompute node params.
24522 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
24523 (ipa_get_param): Check we are not in WPA.
24524 (ipa_get_param_move_cost): New.
24525 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
24526 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
24527 parm numbers to be present.
24528
24529 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
24530
24531 PR rtl-optimization/58048
24532 * lra-constraints.c (process_alt_operands): Don't check asm
24533 operand on register.
24534
24535 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
24536
24537 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
24538 the implied StoreLoad barrier for atomic operations if before.
24539
24540 2013-08-02 Jan Hubicka <jh@suse.cz>
24541 Martin Liska <marxin.liska@gmail.com>
24542
24543 * cgraph.c (cgraph_function_body_availability): Do not check
24544 cgraph flags.
24545 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
24546 symtab_node_availability): Declare.
24547 * ipa.c (can_replace_by_local_alias): New.
24548 (function_and_variable_visibility): Use it.
24549 * symtab.c (symtab_for_node_and_aliases,
24550 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
24551
24552 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
24553
24554 PR rtl-optimization/57963
24555 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
24556 (lra_constraints): Use them.
24557
24558 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
24559
24560 * config/arm/types.md (define_attr "type"): Add "load_acq"
24561 and "store_rel".
24562 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
24563 changes.
24564 (cortex_a53_store1): Likewise.
24565
24566 2013-08-01 Jan Hubicka <jh@suse.cz>
24567
24568 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
24569 partitions are not needed.
24570
24571 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
24572
24573 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
24574 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
24575 MAYBE_NON_Q_CLASS_P where appropriate.
24576
24577 2013-08-01 Jan Hubicka <jh@suse.cz>
24578
24579 * cgraph.h (release_function_body): Declare.
24580 * tree.c (free_lang_data_in_decl): Free, parameters and return values
24581 of unused delcarations.
24582
24583 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24584
24585 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
24586 RTL form when subtracting a constant.
24587
24588 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24589
24590 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
24591 Generate canonical plus rtx with negated immediate instead of minus
24592 where appropriate.
24593 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
24594
24595 2013-08-01 Jan Hubicka <jh@suse.cz>
24596
24597 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
24598 (cgraph_release_function_body): Likewise.
24599 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
24600 * cgraph.h (cgrpah_node): Rename abstract_and_needed
24601 to used_as_abstract_origin.
24602 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
24603 symbols used as abstract origins.
24604 * cgraphunit.c (analyze_functions): Update.
24605 * ipa.c (symtab_remove_unreachable_nodes): Recompute
24606 used_as_abstract_origin.
24607 * tree-inline.c (tree_function_versioning): Update
24608 used_as_abstract_origin; be ready for DECL_RESULT and
24609 DECL_ARGUMENTS to be NULL.
24610
24611 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
24612 for abstract functions.
24613 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
24614 real symbols.
24615
24616 2013-08-01 Jan Hubicka <jh@suse.cz>
24617
24618 * profile.c (compute_value_histograms): Fix thinko.
24619
24620 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
24621
24622 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
24623 aarch-common-protos.h to extra_headers.
24624 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
24625 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
24626 * config/aarch64/t-aarch64 (aarch-common.o): Define.
24627
24628 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
24629
24630 * config/aarch64/aarch64.md (define_attr "type"): Delete.
24631 Include "../arm/types.md". Define "type" attribute for all patterns.
24632 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
24633 attribute changes.
24634
24635 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
24636
24637 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
24638 to support power8 load fusion.
24639 (fusion_gpr_mem_load): Likewise.
24640
24641 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
24642
24643 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
24644 declarations for power8 load fusion.
24645 (emit_fusion_gpr_load): Likewise.
24646
24647 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
24648 tuning for power8, turn on fusion mode by default. Turn on sign
24649 extending fusion mode if normal fusion mode is on, and we are at
24650 -O2 or -O3.
24651 (fusion_gpr_load_p): New function, return true if we can fuse an
24652 addis instruction with a dependent load to a GPR.
24653 (emit_fusion_gpr_load): Emit the instructions for power8 load
24654 fusion to GPRs.
24655
24656 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
24657 (VSX load fusion peepholes): New peepholes to fuse together an
24658 addi instruction with a VSX load instruction.
24659
24660 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
24661 peepholes to fuse an addis instruction with a load to a GPR base
24662 register. If we are supporting sign extending fusions, convert
24663 sign extending loads to zero extending loads and add an explicit
24664 sign extension.
24665
24666 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
24667
24668 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
24669 aarch-common-protos.h to extra_headers.
24670 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
24671 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
24672 (arm_early_store_addr_dep): Likewise.
24673 (arm_no_early_alu_shift_dep): Likewise.
24674 (arm_no_early_alu_shift_value_dep): Likewise.
24675 (arm_no_early_mul_dep): Likewise.
24676 (arm_no_early_store_addr_dep): Likewise.
24677 (arm_mac_accumulator_is_mul_result): Likewise.
24678 (arm_mac_accumulator_is_result): Likewise.
24679 * config/arm/aarch-common.c: ... here. New file.
24680 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
24681 here to ...
24682 (arm_early_store_addr_dep): Likewise.
24683 (arm_no_early_alu_shift_dep): Likewise.
24684 (arm_no_early_alu_shift_value_dep): Likewise.
24685 (arm_no_early_mul_dep): Likewise.
24686 (arm_no_early_store_addr_dep): Likewise.
24687 (arm_mac_accumulator_is_mul_result): Likewise.
24688 (arm_mac_accumulator_is_result): Likewise.
24689 * config/arm/aarch-common-protos.h: ... here. New file.
24690 * config/arm/t-arm (aarch-common.o): Define.
24691
24692 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
24693
24694 * config/arm/arm.md: Include new file "types.md".
24695 (define_attr "type"): Move from here to ...
24696 (define_attr "mul32"): Likewise.
24697 (define_attr "mul64"): Likewise.
24698 * config/arm/types.md: ... here. New file.
24699
24700 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
24701
24702 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
24703 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
24704
24705 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24706
24707 * gen-pass-instances.awk: Fix offset of substr().
24708
24709 2013-07-31 David Malcolm <dmalcolm@redhat.com>
24710
24711 * Makefile.in (pass-instances.def): New.
24712 (passes.o): Replace dependency on passes.def with one on
24713 pass-instances.def
24714
24715 * gen-pass-instances.awk: New.
24716
24717 * passes.c (pass_manager::pass_manager): Use pass-instances.def
24718 rather than passes.def, updating local definition of NEXT_PASS
24719 macro to add an extra NUM parameter (currently unused).
24720
24721 2013-07-30 David Malcolm <dmalcolm@redhat.com>
24722
24723 * Makefile.in (PASS_MANAGER_H): New.
24724 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
24725 (passes.o): Likewise.
24726 (statistics.o): Likewise.
24727 (cgraphunit.o): Likewise.
24728 (context.o): Depend on PASS_MANAGER_H.
24729
24730 * pass_manager.h: New.
24731
24732 * cgraphunit.c (cgraph_add_new_function): Update for moves
24733 of globals to fields of pass_manager.
24734 (analyze_function): Likewise.
24735 (expand_function): Likewise.
24736 (ipa_passes): Likewise.
24737 (compile): Likewise.
24738
24739 * context.c (context::context): New.
24740 * context.h (context::context): New.
24741 (context::get_passes): New.
24742 (context::passes_): New.
24743
24744 * lto-cgraph.c (input_node): Update for moves of globals to
24745 fields of pass_manager.
24746
24747 * passes.c (all_passes): Remove, in favor of a field of the
24748 same name within the new class pass_manager.
24749 (all_small_ipa_passes): Likewise.
24750 (all_lowering_passes): Likewise.
24751 (all_regular_ipa_passes): Likewise.
24752 (all_late_ipa_passes): Likewise.
24753 (all_lto_gen_passes): Likewise.
24754 (passes_by_id): Likewise.
24755 (passes_by_id_size): Likewise.
24756 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
24757 the new class pass_manager.
24758 (set_pass_for_id): Convert to...
24759 (pass_manager::set_pass_for_id): ...method.
24760 (get_pass_for_id): Convert to...
24761 (pass_manager::get_pass_for_id): ...method.
24762 (register_one_dump_file): Move body of implementation into...
24763 (pass_manager::register_one_dump_file): ...here.
24764 (register_dump_files_1): Convert to...
24765 (pass_manager::register_dump_files_1): ...method.
24766 (register_dump_files): Convert to...
24767 (pass_manager::register_dump_files): ...method.
24768 (create_pass_tab): Update for moves of globals to fields of
24769 pass_manager.
24770 (dump_passes): Move body of implementation into...
24771 (pass_manager::dump_passes): ...here.
24772 (register_pass): Move body of implementation into...
24773 (pass_manager::register_pass): ...here.
24774 (init_optimization_passes): Convert into...
24775 (pass_manager::pass_manager): ...constructor for new
24776 pass_manager class, and initialize the pass_lists array.
24777 (check_profile_consistency): Update for moves of globals to
24778 fields of pass_manager.
24779 (dump_profile_report): Move body of implementation into...
24780 (pass_manager::dump_profile_report): ...here.
24781 (ipa_write_summaries_1): Update for moves of pass lists from
24782 being globals to fields of pass_manager.
24783 (ipa_write_optimization_summaries): Likewise.
24784 (ipa_read_summaries): Likewise.
24785 (ipa_read_optimization_summaries): Likewise.
24786 (execute_all_ipa_stmt_fixups): Likewise.
24787
24788 * statistics.c (statistics_fini): Update for moves of globals to
24789 fields of pass_manager.
24790
24791 * toplev.c (general_init): Replace call to
24792 init_optimization_passes with construction of the pass_manager
24793 instance.
24794
24795 * tree-pass.h (all_passes): Remove, in favor of a field of the
24796 same name within the new class pass_manager.
24797 (all_small_ipa_passes): Likewise.
24798 (all_lowering_passes): Likewise.
24799 (all_regular_ipa_passes): Likewise.
24800 (all_lto_gen_passes): Likewise.
24801 (all_late_ipa_passes): Likewise.
24802 (passes_by_id): Likewise.
24803 (passes_by_id_size): Likewise.
24804 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
24805 the new class pass_manager.
24806 (get_pass_for_id): Remove.
24807
24808 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
24809
24810 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
24811 configs.
24812
24813 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
24814
24815 * arm.md (mulhi3): New expand pattern.
24816
24817 2013-07-30 Jan Hubicka <jh@suse.cz>
24818 Martin Liska <marxin.liska@gmail.com>
24819
24820 * profile.c (compute_value_histograms): Do not ICE when
24821 there is mismatch only on some counters.
24822
24823 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24824
24825 PR rtl-optimization/57637
24826 * function.c (move_insn_for_shrink_wrap): Also check the
24827 GEN set of the LIVE problem for the liveness analysis
24828 if it exists, otherwise give up.
24829
24830 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
24831
24832 PR tree-optimization/57993
24833 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
24834 replaced statement in the candidate table.
24835 (phi_add_costs): Return infinite cost when the hidden basis does
24836 not dominate all phis on which the candidate is dependent.
24837 (replace_one_candidate): Record replaced statement in the
24838 candidate table.
24839
24840 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
24841
24842 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
24843 (ashlv2si3): New expander.
24844 (*ashlv2si3_i): New define_insn_and_split.
24845 * predicates.md (float_operation): Allow patterns with three
24846 basic sub-patterns.
24847
24848 PR rtl-optimization/58021
24849 * mode-switching.c (create_pre_exit): Always split off preceding
24850 insns if we are not at the basic block head.
24851
24852 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
24853
24854 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
24855 (UCLIBC_DYNAMIC_LINKER): New macro.
24856 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
24857 `-mnan=2008'.
24858 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
24859 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
24860 `-mnan=2008'.
24861 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
24862 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
24863 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
24864 for SF and DF modes. Use ieee_quad_format for TF mode.
24865 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
24866 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
24867 (mips_option_override): Handle `-mnan=legacy'.
24868 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
24869 `-mabs=2008' and `-mnan=2008'.
24870 (OPTION_DEFAULT_SPECS): Add "nan" default.
24871 (ASM_SPEC): Handle `-mnan='.
24872 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
24873 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
24874 comment accordingly.
24875 (neg<mode>2): Likewise.
24876 * config/mips/mips.opt (mabs, mnan): New options.
24877 * doc/install.texi (Configuration): Document `--with-nan=' option.
24878 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
24879 `-mnan=' options.
24880 (MIPS Options): Document them.
24881 * config.gcc <mips*-*-*>: Handle `--with-nan='.
24882 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
24883 * configure: Regenerate.
24884 * config.in: Regenerate.
24885
24886 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
24887
24888 * config/i386/i386.md (float post-reload splitters): Do not check
24889 for subregs of SSE registers.
24890
24891 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
24892 H.J. Lu <hongjiu.lu@intel.com>
24893
24894 PR target/57954
24895 PR target/57988
24896 * config/i386/i386.md (post-reload splitter
24897 to avoid partial SSE reg dependency stalls): New pattern.
24898
24899 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
24900
24901 * config/s390/s390.md ("movcc"): Swap load and store instructions.
24902
24903 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
24904
24905 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
24906 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
24907
24908 2013-07-26 Cary Coutant <ccoutant@google.com>
24909
24910 * dwarf2out.c (die_checksum_ordered): Don't include template
24911 instantiations in signature.
24912 (is_template_parameter): New function.
24913 (is_template_instantiation): New function.
24914 (generate_skeleton_bottom_up): Don't include template instantiations
24915 in type unit DIE.
24916 (generate_skeleton): Likewise.
24917 (break_out_comdat_types): Move recursive call to break out nested
24918 types earlier.
24919 (prune_unused_types_mark_generic_parms_dies): Call
24920 is_template_parameter.
24921
24922 2013-07-26 Ian Bolton <ian.bolton@arm.com>
24923
24924 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
24925 uses vector registers.
24926 * config/aarch64/iterators.md: Add attributes rtn and vas.
24927
24928 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24929 Richard Earnshaw <richard.earnshaw@arm.com>
24930
24931 * combine.c (simplify_comparison): Re-canonicalize operands
24932 where appropriate.
24933 * config/arm/arm.md (movcond_addsi): New splitter.
24934
24935 2013-07-25 Sterling Augustine <saugustine@google.com>
24936
24937 * dwarf2out.c (size_of_pubnames): Move code to...
24938 (include_pubname_in_output): ...here. New.
24939 (want_pubnames): Rearrange.
24940 (output_pubnames): Call include_pubname_in_output. Move assertion.
24941
24942 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
24943
24944 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
24945
24946 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
24947
24948 PR target/38836
24949 * doc/extend.texi: Remove obsolete builtins. Fix
24950 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
24951
24952 2013-07-25 Jan Hubicka <jh@suse.cz>
24953
24954 * cgraph.c (release_function_body): Break out from ...
24955 (cgraph_release_function_body): ... this one; also release DECL_RESULT
24956 and DECL_ARGUMENTS.
24957 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
24958 old_tree in the map.
24959 (create_specialized_node): Update.
24960 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
24961 into index.
24962 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
24963 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
24964 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
24965 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
24966 DECL_RESULT.
24967
24968 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24969
24970 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
24971 addsi3_carryin_alt2_<optab>): Correct output template.
24972
24973 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24974
24975 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
24976 Adjust for arm_restrict_it.
24977 Remove trailing whitespace.
24978
24979 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
24980
24981 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
24982 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
24983
24984 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
24985
24986 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
24987
24988 PR rtl-optimization/57960
24989 * lra-constraints.c (process_alt_operands): Use the right mode
24990 when checking strict_low.
24991
24992 2013-07-25 Jan Hubicka <jh@suse.cz>
24993
24994 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
24995 * cgraph.c (cgraph_remove_node): Do not release function body
24996 when in cgraph streaming.
24997 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
24998 in other partitions are not considered reachable; fix handling of
24999 clones.
25000
25001 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25002
25003 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
25004
25005 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25006
25007 PR target/19599
25008 PR target/57731
25009 PR target/57837
25010 * config/arm/arm.md ("*sibcall_insn): Replace use of
25011 Ss with US. Adjust output for v5 and v4t.
25012 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
25013
25014 * config/arm/constraints.md ("Ss"): Rename to US.
25015
25016 2013-07-25 Terry Guo <terry.guo@arm.com>
25017
25018 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
25019 shift_add/shift_sub0/shift_sub1 RTXs.
25020
25021 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
25022 Anton Blanchard <anton@au1.ibm.com>
25023
25024 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
25025 (altivec_vpks<VI_char>ss): Likewise.
25026 (altivec_vpks<VI_char>us): Likewise.
25027 (altivec_vpku<VI_char>us): Likewise.
25028 (altivec_vpku<VI_char>um): Likewise.
25029
25030 2013-07-24 David Malcolm <dmalcolm@redhat.com>
25031
25032 Introduce context class.
25033
25034 * Makefile.in (CONTEXT_H): New.
25035 (OBJS): Add context.o.
25036 (toplev.o): Add CONTEXT_H to dependencies.
25037 (context.o): New.
25038
25039 * toplev.c (general_init): Create the singleton gcc::context instance.
25040
25041 * context.c: New.
25042
25043 * context.h: New.
25044
25045 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
25046
25047 PR rtl-optimization/57968
25048 * mode-switching.c (create_pre_exit): Allow instructions that
25049 don't set a return register to need a non-exit mode.
25050
25051 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
25052 Anton Blanchard <anton@au1.ibm.com>
25053
25054 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
25055 operands to vperm for little endian.
25056 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
25057 of lvsl to create the control mask for a vperm for little endian.
25058
25059 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25060 Anton Blanchard <anton@au1.ibm.com>
25061
25062 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
25063 two operands for little-endian.
25064
25065 2013-07-23 Steve Ellcey <sellcey@mips.com>
25066
25067 * config/mips/mips.c (mips_case_values_threshold): New.
25068 (TARGET_CASE_VALUES_THRESHOLD): Define.
25069
25070 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25071 Anton Blanchard <anton@au1.ibm.com>
25072
25073 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
25074 selection of field for vector splat in little endian mode.
25075
25076 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25077
25078 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
25079 expanders to rs6000.md.
25080 (ior<mode>3): Likewise.
25081 (and<mode>3): Likewise.
25082 (one_cmpl<mode>2): Likewise.
25083 (nor<mode>3): Likewise.
25084 (andc<mode>3): Likewise.
25085 (eqv<mode>3): Likewise.
25086 (nand<mode>3): Likewise.
25087 (orc<mode>3): Likewise.
25088
25089 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
25090 declaration.
25091
25092 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
25093 to split multi-word logical operations.
25094 (rs6000_split_logical_di): Likewise.
25095 (rs6000_split_logical): Likewise.
25096
25097 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
25098 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
25099 and allow TImode operations in 32-bit.
25100 (vsx_and<mode>3_64bit): Likewise.
25101 (vsx_ior<mode>3_32bit): Likewise.
25102 (vsx_ior<mode>3_64bit): Likewise.
25103 (vsx_xor<mode>3_32bit): Likewise.
25104 (vsx_xor<mode>3_64bit): Likewise.
25105 (vsx_one_cmpl<mode>2_32bit): Likewise.
25106 (vsx_one_cmpl<mode>2_64bit): Likewise.
25107 (vsx_nor<mode>3_32bit): Likewise.
25108 (vsx_nor<mode>3_64bit): Likewise.
25109 (vsx_andc<mode>3_32bit): Likewise.
25110 (vsx_andc<mode>3_64bit): Likewise.
25111 (vsx_eqv<mode>3_32bit): Likewise.
25112 (vsx_eqv<mode>3_64bit): Likewise.
25113 (vsx_nand<mode>3_32bit): Likewise.
25114 (vsx_nand<mode>3_64bit): Likewise.
25115 (vsx_orc<mode>3_32bit): Likewise.
25116 (vsx_orc<mode>3_64bit): Likewise.
25117
25118 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
25119 logical types in GPRs.
25120
25121 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
25122 logical insns to rs6000.md, and allow TImode operations in
25123 32-bit.
25124 (altivec_ior<mode>3): Likewise.
25125 (altivec_xor<mode>3): Likewise.
25126 (altivec_one_cmpl<mode>2): Likewise.
25127 (altivec_nor<mode>3): Likewise.
25128 (altivec_andc<mode>3): Likewise.
25129
25130 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
25131 attributes for moving the 128-bit logical operations into
25132 rs6000.md.
25133 (BOOL_REGS_OUTPUT): Likewise.
25134 (BOOL_REGS_OP1): Likewise.
25135 (BOOL_REGS_OP2): Likewise.
25136 (BOOL_REGS_UNARY): Likewise.
25137 (BOOL_REGS_AND_CR0): Likewise.
25138 (one_cmpl<mode>2): Add support for DI logical operations on
25139 32-bit, splitting the operations to 32-bit.
25140 (anddi3): Likewise.
25141 (iordi3): Likewise.
25142 (xordi3): Likewise.
25143 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
25144 changes to combine the 32/64-bit code, allow logical operations on
25145 TI mode in 32-bit, and to use similar match_operator patterns like
25146 scalar mode uses. Combine the Altivec and VSX code for logical
25147 operations, and move it here.
25148 (ior<mode>3, 128-bit types): Likewise.
25149 (xor<mode>3, 128-bit types): Likewise.
25150 (one_cmpl<mode>3, 128-bit types): Likewise.
25151 (nor<mode>3, 128-bit types): Likewise.
25152 (andc<mode>3, 128-bit types): Likewise.
25153 (eqv<mode>3, 128-bit types): Likewise.
25154 (nand<mode>3, 128-bit types): Likewise.
25155 (orc<mode>3, 128-bit types): Likewise.
25156 (and<mode>3_internal): Likewise.
25157 (bool<mode>3_internal): Likewise.
25158 (boolc<mode>3_internal1): Likewise.
25159 (boolc<mode>3_internal2): Likewise.
25160 (boolcc<mode>3_internal1): Likewise.
25161 (boolcc<mode>3_internal2): Likewise.
25162 (eqv<mode>3_internal1): Likewise.
25163 (eqv<mode>3_internal2): Likewise.
25164 (one_cmpl1<mode>3_internal): Likewise.
25165
25166 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
25167
25168 * config/microblaze/microblaze.c (microblaze_expand_prologue):
25169 Rename flag_stack_usage to flag_stack_usage_info.
25170
25171 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
25172
25173 * config/microblaze/sync.md: New file.
25174 * config/microblaze/microblaze.md: Include sync.md
25175 * config/microblaze/microblaze.c: Add print_operand 'y'.
25176 * config/microblaze/constraints.md: Add memory_contraint
25177 'Q' which is a single register.
25178
25179 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
25180
25181 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
25182
25183 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
25184
25185 * reload.c (find_reloads): Exit loop once we find this operand
25186 cannot be reloaded somehow for this alternative.
25187
25188 * reload.c (find_reloads): Exit loop once we find a hard register.
25189
25190 * rtlanal.c (computed_jump_p): Exit loop once we find label
25191 reference is used.
25192
25193 * i386.c (ix86_pad_returns): Exit loop after setting replace.
25194
25195 * cfgloopmanip.c (remove_path): Exit loop after setting
25196 irred_invalidated.
25197
25198 * gensupport.c (subst_dup): Avoid loop if code is not
25199 MATCH_DUP nor MATCH_OP_DUP.
25200
25201 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
25202
25203 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
25204
25205 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
25206
25207 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
25208 true for SP_REGNUM if mode == ptr_mode.
25209 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
25210 with value R0_REGNUM + 31.
25211
25212 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
25213
25214 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
25215 pad pointer-typed argument downward.
25216
25217 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
25218
25219 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
25220 and __ILP32__ when the ILP32 model is in use.
25221
25222 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
25223
25224 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
25225 (aarch64_load_symref_appropriately): In the case of
25226 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
25227 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
25228 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
25229 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
25230 if 'mode' doesn't equal to 'ptr_mode'.
25231 (aarch64_output_mi_thunk): Add an assertion on the alignment of
25232 'vcall_offset'; change to call aarch64_emit_move differently depending
25233 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
25234 to calculate the upper bound of 'vcall_offset'.
25235 (aarch64_cannot_force_const_mem): Change to also return true if
25236 mode != ptr_mode.
25237 (aarch64_legitimize_reload_address): In the case of large
25238 displacements, add new local variable 'xmode' and an assertion
25239 based on it; change to use 'xmode' to generate the new rtx and
25240 reload.
25241 (aarch64_asm_trampoline_template): Change to generate the template
25242 differently depending on TARGET_ILP32 or not; change to use
25243 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
25244 (aarch64_trampoline_size): Removed.
25245 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
25246 and replace immediate literals with it. Change to use 'ptr_mode'
25247 instead of 'DImode' and call convert_memory_address if the mode
25248 of 'fnaddr' doesn't equal to 'ptr_mode'.
25249 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
25250 to output symbol.
25251 (aarch64_elf_asm_destructor): Likewise.
25252 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
25253 on TARGET_ILP32 instead of aarch64_trampoline_size.
25254 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
25255 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
25256 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
25257 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
25258 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
25259 (storewb_pair<GPI:mode>_<P:mode>): ... this.
25260 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
25261 depending on the value of 'mode'.
25262 (add_losym_<mode>): New.
25263 (ldr_got_small_<mode>): New, based on ldr_got_small.
25264 (ldr_got_small): Remove.
25265 (ldr_got_small_sidi): New.
25266 * config/aarch64/iterators.md (P): New.
25267 (PTR): Change to 'ptr_mode' in the condition.
25268
25269 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
25270
25271 * config.gcc (aarch64*-*-*): Support --with-abi.
25272 (aarch64*-*-elf): Support --with-multilib-list.
25273 (aarch64*-*-linux*): Likewise.
25274 (supported_defaults): Add abi to aarch64*-*-*.
25275 * configure.ac: Mention AArch64 for --with-multilib-list.
25276 * configure: Re-generated.
25277 * config/aarch64/biarchilp32.h: New file.
25278 * config/aarch64/biarchlp64.h: New file.
25279 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
25280 (ABI_SPEC): Ditto.
25281 (MULTILIB_DEFAULTS): Ditto.
25282 (DRIVER_SELF_SPECS): Ditto.
25283 (ASM_SPEC): Update to also substitute -mabi.
25284 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
25285 file whose name depends on -mabi= and -mbig-endian.
25286 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
25287 TARGET_ILP32.
25288 (POINTER_SIZE): New define.
25289 (POINTERS_EXTEND_UNSIGNED): Ditto.
25290 (enum aarch64_abi_type): New enumeration tag.
25291 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
25292 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
25293 (TARGET_ILP32): New define.
25294 * config/aarch64/aarch64.opt (mabi): New.
25295 (aarch64_abi): New.
25296 (ilp32, lp64): New values for -mabi.
25297 * config/aarch64/t-aarch64 (comma): New define.
25298 (MULTILIB_OPTIONS): Ditto.
25299 (MULTILIB_DIRNAMES): Ditto.
25300 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
25301 * doc/invoke.texi: Document -mabi for AArch64.
25302
25303 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
25304
25305 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
25306
25307 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
25308 Anton Blanchard <anton@au1.ibm.com>
25309
25310 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
25311 endianness when selecting field to splat.
25312
25313 2013-07-22 Eric Christopher <echristo@gmail.com>
25314
25315 * dwarf2out.c (die_odr_checksum): New function to use
25316 CHECKSUM_ macros and ULEB128 for DIE tag.
25317 (generate_type_signature): Use.
25318
25319 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
25320
25321 * config.gcc (sparc*-*-*): Accept leon3 processor.
25322 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
25323 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
25324 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
25325 * config/sparc/sparc.opt (enum processor_type): Add leon3.
25326 (mfix-ut699): Adjust comment.
25327 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
25328 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
25329 (CPP_CPU_SPEC): Likewise.
25330 (ASM_CPU_SPEC): Likewise.
25331 * config/sparc/sparc.c (leon3_cost): New constant.
25332 (sparc_option_override): Add leon3 support.
25333 (mem_ref): New function.
25334 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
25335 (sparc_do_work_around_errata): Look into the instruction in the delay
25336 slot and adjust accordingly. Add fix for the data cache nullify issues
25337 of the UT699. Change insertion position for the NOP.
25338 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
25339 (leon3_load): New reservation.
25340 (leon_store): Bump latency to 2.
25341 (grfpu): New automaton.
25342 (grfpu_alu): New unit.
25343 (grfpu_ds): Likewise.
25344 (leon_fp_alu): Adjust.
25345 (leon_fp_mult): Delete.
25346 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
25347 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
25348 * config/sparc/sparc.md (cpu): Add leon3.
25349 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
25350 (swapsi): Likewise.
25351 (atomic_test_and_set): Likewise.
25352 (ldstub): Likewise.
25353
25354 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
25355
25356 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
25357 default for R5900 targets.
25358 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
25359 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
25360 * config/mips/mips.c (mips_option_override): Report an error for
25361 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
25362 for -march=r5900 -mhard-float.
25363
25364 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
25365
25366 * df-problems.c (can_move_insns_across): Exit loop once we
25367 find a non-fixed, non-global register.
25368
25369 * ipa-pure-const.c (propagate_nothrow): Exit loop after
25370 setting can_throw.
25371
25372 * omega.c (omega_eliminate_red): Break after setting red_found.
25373 (omega_problem_has_red_equations): Similarly after setting found.
25374 (omega_query_variable): Similarly after setting coupled.
25375
25376 2013-07-22 Marek Polacek <polacek@redhat.com>
25377
25378 * gimplify.c: Don't include gimple.h twice.
25379
25380 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25381
25382 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
25383 instead of TARGET_THUMB1.
25384 (Pz): New constraint.
25385 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
25386 encodings.
25387 (compare_negsi_si): Likewise.
25388 (compare_addsi2_op0): Likewise.
25389 (compare_addsi2_op1): Likewise.
25390 (addsi3_carryin_<optab>): Likewise.
25391 (addsi3_carryin_alt2_<optab>): Likewise.
25392 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
25393 for arm_restrict_it.
25394 (subsi3_carryin): Likewise.
25395 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
25396 (minmax_arithsi): Disable for arm_restrict_it.
25397 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
25398 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
25399 (satsi_<SAT:code>_shift): Likewise.
25400 (arm_shiftsi3): Add alternative for 16-bit encoding.
25401 (arm32_movhf): Disable for arm_restrict_it.
25402 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
25403 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
25404
25405 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
25406
25407 * config/arm/arm.md (attribute "insn"): Delete.
25408 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
25409 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
25410 (not_shiftsi): Update for attribute change.
25411 (not_shiftsi_compare0): Likewise.
25412 (not_shiftsi_compare0_scratch): Likewise.
25413 (arm_one_cmplsi2): Likewise.
25414 (thumb1_one_cmplsi2): Likewise.
25415 (notsi_compare0): Likewise.
25416 (notsi_compare0_scratch): Likewise.
25417 (thumb1_movdi_insn): Likewise.
25418 (arm_movsi_insn): Likewise.
25419 (movhi_insn_arch4): Likewise.
25420 (movhi_bytes): Likewise.
25421 (arm_movqi_insn): Likewise.
25422 (thumb1_movqi_insn): Likewise.
25423 (arm32_movhf): Likewise.
25424 (thumb1_movhf): Likewise.
25425 (arm_movsf_soft_insn): Likewise.
25426 (thumb1_movsf_insn): Likewise.
25427 (thumb_movdf_insn): Likewise.
25428 (movsicc_insn): Likewise.
25429 (movsfcc_soft_insn): Likewise.
25430 (and_scc): Likewise.
25431 (cond_move): Likewise.
25432 (if_move_not): Likewise.
25433 (if_not_move): Likewise.
25434 (if_shift_move): Likewise.
25435 (if_move_shift): Likewise.
25436 (if_shift_shift): Likewise.
25437 (if_not_arith): Likewise.
25438 (if_arith_not): Likewise.
25439 (cond_move_not): Likewise.
25440 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
25441 (neon_mov<mode>): Likewise.
25442 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
25443 (thumb2_movsi_vfp): Likewise.
25444 (movsf_vfp): Likewise.
25445 (thumb2_movsf_vfp): Likewise.
25446 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
25447 change.
25448 (cortexa7_older_only): Likewise.
25449 (cortexa7_younger): Likewise.
25450 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
25451 (1020alu_shift_op): Likewise.
25452 (1020alu_shift_reg_op): Likewise.
25453 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
25454 (alu_shift_op): Likewise.
25455 (alu_shift_reg_op): Likewise.
25456 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
25457 (11_alu_shift_op): Likewise.
25458 (11_alu_shift_reg_op): Likewise.
25459 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
25460 (9_alu_shift_reg_op): Likewise.
25461 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
25462 change.
25463 (cortex_a15_alu_shift): Likewise.
25464 (cortex_a15_alu_shift_reg): Likewise.
25465 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
25466 (cortex_a5_alu_shift): Likewise.
25467 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
25468 change.
25469 (cortex_a53_alu_shift): Likewise.
25470 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
25471 change.
25472 (cortex_a7_alu_reg): Likewise.
25473 (cortex_a7_alu_shift): Likewise.
25474 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
25475 (cortex_a8_alu_shift): Likewise.
25476 (cortex_a8_alu_shift_reg): Likewise.
25477 (cortex_a8_mov): Likewise.
25478 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
25479 (cortex_a9_dp_shift): Likewise.
25480 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
25481 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
25482 (cortex_r4_mov): Likewise.
25483 (cortex_r4_alu_shift): Likewise.
25484 (cortex_r4_alu_shift_reg): Likewise.
25485 * config/arm/fa526.md (526_alu_op): Update for attribute change.
25486 (526_alu_shift_op): Likewise.
25487 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
25488 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
25489 (626te_alu_shift_op): Likewise.
25490 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
25491 (726te_alu_op): Likewise.
25492 (726te_alu_shift_op): Likewise.
25493 (726te_alu_shift_reg_op): Likewise.
25494 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
25495 (mp626_alu_shift_op): Likewise.
25496 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
25497 (pj4_alu_e1_conds): Likewise.
25498 (pj4_alu): Likewise.
25499 (pj4_alu_conds): Likewise.
25500 (pj4_shift): Likewise.
25501 (pj4_shift_conds): Likewise.
25502 (pj4_alu_shift): Likewise.
25503 (pj4_alu_shift_conds): Likewise.
25504
25505 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25506
25507 * config/arm/predicates.md (shiftable_operator_strict_it):
25508 New predicate.
25509 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
25510 Disable cond_exec version for arm_restrict_it.
25511 (thumb2_smaxsi3): Convert to generate cond_exec.
25512 (thumb2_sminsi3): Likewise.
25513 (thumb32_umaxsi3): Likewise.
25514 (thumb2_uminsi3): Likewise.
25515 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
25516 (thumb2_neg_abssi2): Likewise.
25517 (thumb2_mov_scc): Add alternative for 16-bit encoding.
25518 (thumb2_movsicc_insn): Adjust alternatives.
25519 (thumb2_mov_negscc): Disable for arm_restrict_it.
25520 (thumb2_mov_negscc_strict_it): New pattern.
25521 (thumb2_mov_notscc_strict_it): New pattern.
25522 (thumb2_mov_notscc): Disable for arm_restrict_it.
25523 (thumb2_ior_scc): Likewise.
25524 (thumb2_ior_scc_strict_it): New pattern.
25525 (thumb2_cond_move): Adjust for arm_restrict_it.
25526 (thumb2_cond_arith): Disable for arm_restrict_it.
25527 (thumb2_cond_arith_strict_it): New pattern.
25528 (thumb2_cond_sub): Adjust for arm_restrict_it.
25529 (thumb2_movcond): Likewise.
25530 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
25531 (thumb2_zero_extendhisi2_v6): Likewise.
25532 (thumb2_zero_extendqisi2_v6): Likewise.
25533 (orsi_notsi_si): Likewise.
25534 (orsi_not_shiftsi_si): Likewise.
25535
25536 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
25537
25538 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
25539 instruction sequence is 1 byte shorter.
25540
25541 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
25542
25543 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
25544 it is not needed after split.
25545
25546 2013-07-20 Iain Sandoe <iain@codesourcery.com>
25547
25548 PR target/51784
25549 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
25550 second label for nonlocal goto receivers. Don't output pic base labels
25551 unless we're producing PIC; mark that action unreachable().
25552 (ix86_save_reg): If the function contains a nonlocal label, save the
25553 PIC base reg.
25554 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
25555 * config/darwin.c (emitted_pic_label_num): New GTY.
25556 (update_pic_label_number_if_needed): New.
25557 (machopic_output_function_base_name): Adjust for nonlocal receiver
25558 case.
25559 (machopic_should_output_picbase_label): New.
25560 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
25561 (nonlocal_goto_receiver): New insn and split.
25562
25563 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
25564
25565 * config/aarch64/aarch64-builtins.c
25566 (aarch64_fold_builtin): Fold abs in all modes.
25567 * config/aarch64/aarch64-simd-builtins.def
25568 (abs): Enable for all modes.
25569 * config/aarch64/arm_neon.h
25570 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
25571 (vabs_f64): Add missing intrinsic.
25572
25573 2013-07-19 Ian Bolton <ian.bolton@arm.com>
25574
25575 * config/aarch64/arm_neon.h (vabs_s64): New function
25576
25577 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
25578
25579 PR target/57516
25580 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
25581 * config/avr/avr.md (adjust_len): Add `round'.
25582 * config/avr/avr-protos.h (avr_out_round): New prototype.
25583 (avr_out_plus): Add `out_label' argument.
25584 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
25585 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
25586 Handle the case where `insn' is just a pattern.
25587 (avr_out_bitop): Handle the case where `insn' is just a pattern.
25588 (avr_out_round): New function.
25589 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
25590
25591 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
25592
25593 * config/microblaze/microblaze.c (microblaze_expand_prologue):
25594 Add check for flag_stack_usage to handle -fstack-usage support
25595
25596 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
25597
25598 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
25599 interaction for new Power8 flags and VSX.
25600
25601 2013-07-18 Sriraman Tallam <tmsriram@google.com>
25602
25603 PR middle-end/57698
25604 * tree-inline.c (expand_call_inline): Emit errors during
25605 early_inlining only if optimization is not turned on.
25606
25607 2013-07-18 David Malcolm <dmalcolm@redhat.com>
25608
25609 * passes.def: New.
25610
25611 * passes.c (init_optimization_passes): Move the construction of
25612 the pass hierarchy into a new passes.def file.
25613
25614 * Makefile.in (passes.o): Add dependency on passes.def.
25615
25616 2013-07-18 David Malcolm <dmalcolm@redhat.com>
25617
25618 * passes.c (init_optimization_passes): Introduce macros for
25619 constructing the tree of passes (INSERT_PASSES_AFTER,
25620 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
25621 TERMINATE_PASS_LIST).
25622
25623 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
25624 Wei Mi <wmi@google.com>
25625
25626 PR rtl-optimization/57878
25627 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
25628 top.
25629 (reload_pseudo_compare_func): Check nregs first for reload
25630 pseudos.
25631
25632 2013-07-18 David Malcolm <dmalcolm@redhat.com>
25633
25634 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
25635
25636 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
25637
25638 * read-rtl.c (validate_const_int): Once an invalid character is
25639 seen, quit the loop.
25640
25641 * gengtype.c (write_roots): Similarly once we find the "deletable"
25642 or "if_marked" option.
25643
25644 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
25645
25646 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
25647 "xtab" and "sat". Move value "clz" from here to ...
25648 (attriubte "type"): ... here.
25649 (satsi_<SAT:code>): Delete "insn" attribute.
25650 (satsi_<SAT:code>_shift): Likewise.
25651 (arm_zero_extendqisi2addsi): Likewise.
25652 (arm_extendqisi2addsi): Likewise.
25653 (clzsi2): Update for attribute changes.
25654 (rbitsi2): Likewise.
25655 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
25656 attribute.
25657 (arm_usatsihi): Likewise.
25658 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
25659
25660 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
25661
25662 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
25663 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
25664 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
25665 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
25666 in alphabetical order.
25667 (attribute "core_cycles"): Update for attribute changes.
25668 (arm_addsi3): Likewise.
25669 (addsi3_compare0): Likewise.
25670 (addsi3_compare0_scratch): Likewise.
25671 (addsi3_compare_op1): Likewise.
25672 (addsi3_compare_op2): Likewise.
25673 (compare_addsi2_op0): Likewise.
25674 (compare_addsi2_op1): Likewise.
25675 (addsi3_carryin_shift_<optab>): Likewise.
25676 (subsi3_carryin_shift): Likewise.
25677 (rsbsi3_carryin_shift): Likewise.
25678 (arm_subsi3_insn): Likewise.
25679 (subsi3_compare0): Likewise.
25680 (subsi3_compare): Likewise.
25681 (arm_andsi3_insn): Likewise.
25682 (thumb1_andsi3_insn): Likewise.
25683 (andsi3_compare0): Likewise.
25684 (andsi3_compare0_scratch): Likewise.
25685 (zeroextractsi_compare0_scratch
25686 (andsi_not_shiftsi_si): Likewise.
25687 (iorsi3_insn): Likewise.
25688 (iorsi3_compare0): Likewise.
25689 (iorsi3_compare0_scratch): Likewise.
25690 (arm_xorsi3): Likewise.
25691 (thumb1_xorsi3_insn): Likewise.
25692 (xorsi3_compare0): Likewise.
25693 (xorsi3_compare0_scratch): Likewise.
25694 (satsi_<SAT:code>_shift): Likewise.
25695 (rrx): Likewise.
25696 (arm_shiftsi3): Likewise.
25697 (shiftsi3_compare0): Likewise.
25698 (not_shiftsi): Likewise.
25699 (not_shiftsi_compare0): Likewise.
25700 (not_shiftsi_compare0_scratch): Likewise.
25701 (arm_one_cmplsi2): Likewise.
25702 (thumb_one_complsi2): Likewise.
25703 (notsi_compare0): Likewise.
25704 (notsi_compare0_scratch): Likewise.
25705 (thumb1_zero_extendhisi2): Likewise.
25706 (arm_zero_extendhisi2): Likewise.
25707 (arm_zero_extendhisi2_v6): Likewise.
25708 (arm_zero_extendhisi2addsi): Likewise.
25709 (thumb1_zero_extendqisi2): Likewise.
25710 (thumb1_zero_extendqisi2_v6): Likewise.
25711 (arm_zero_extendqisi2): Likewise.
25712 (arm_zero_extendqisi2_v6): Likewise.
25713 (arm_zero_extendqisi2addsi): Likewise.
25714 (thumb1_extendhisi2): Likewise.
25715 (arm_extendhisi2): Likewise.
25716 (arm_extendhisi2_v6): Likewise.
25717 (arm_extendqisi): Likewise.
25718 (arm_extendqisi_v6): Likewise.
25719 (arm_extendqisi2addsi): Likewise.
25720 (thumb1_extendqisi2): Likewise.
25721 (thumb1_movdi_insn): Likewise.
25722 (arm_movsi_insn): Likewise.
25723 (movsi_compare0): Likewise.
25724 (movhi_insn_arch4): Likewise.
25725 (movhi_bytes): Likewise.
25726 (arm_movqi_insn): Likewise.
25727 (thumb1_movqi_insn): Likewise.
25728 (arm32_movhf): Likewise.
25729 (thumb1_movhf): Likewise.
25730 (arm_movsf_soft_insn): Likewise.
25731 (thumb1_movsf_insn): Likewise.
25732 (movdf_soft_insn): Likewise.
25733 (thumb_movdf_insn): Likewise.
25734 (arm_cmpsi_insn): Likewise.
25735 (cmpsi_shiftsi): Likewise.
25736 (cmpsi_shiftsi_swp): Likewise.
25737 (arm_cmpsi_negshiftsi_si): Likewise.
25738 (movsicc_insn): Likewise.
25739 (movsfcc_soft_insn): Likewise.
25740 (arith_shiftsi): Likewise.
25741 (arith_shiftsi_compare0
25742 (arith_shiftsi_compare0_scratch
25743 (sub_shiftsi): Likewise.
25744 (sub_shiftsi_compare0
25745 (sub_shiftsi_compare0_scratch
25746 (and_scc): Likewise.
25747 (cond_move): Likewise.
25748 (if_plus_move): Likewise.
25749 (if_move_plus): Likewise.
25750 (if_move_not): Likewise.
25751 (if_not_move): Likewise.
25752 (if_shift_move): Likewise.
25753 (if_move_shift): Likewise.
25754 (if_shift_shift): Likewise.
25755 (if_not_arith): Likewise.
25756 (if_arith_not): Likewise.
25757 (cond_move_not): Likewise.
25758 (thumb1_ashlsi3): Set type attribute.
25759 (thumb1_ashrsi3): Likewise.
25760 (thumb1_lshrsi3): Likewise.
25761 (thumb1_rotrsi3): Likewise.
25762 (shiftsi3_compare0_scratch): Likewise.
25763 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
25764 (neon_mov<mode>): Likewise.
25765 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
25766 attribute changes.
25767 (thumb2_movsi_insn): Likewise.
25768 (thumb2_cmpsi_neg_shiftsi): Likewise.
25769 (thumb2_extendqisi_v6): Likewise.
25770 (thumb2_zero_extendhisi2_v6): Likewise.
25771 (thumb2_zero_extendqisi2_v6): Likewise.
25772 (thumb2_shiftsi3_short): Likewise.
25773 (thumb2_addsi3_compare0_scratch): Likewise.
25774 (orsi_not_shiftsi_si): Likewise.
25775 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
25776 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
25777 changes.
25778 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
25779 (1020alu_shift_op): Likewise.
25780 (1020alu_shift_reg_op): Likewise.
25781 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
25782 (alu_shift_op): Likewise.
25783 (alu_shift_reg_op): Likewise.
25784 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
25785 (11_alu_shift_op): Likewise.
25786 (11_alu_shift_reg_op): Likewise.
25787 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
25788 (9_alu_shift_reg_op): Likewise.
25789 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
25790 changes.
25791 (cortex_a15_alu_shift): Likewise.
25792 (cortex_a15_alu_shift_reg): Likewise.
25793 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
25794 changes.
25795 (cortex_a5_alu_shift): Likewise.
25796 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
25797 changes.
25798 (cortex_a53_alu_shift): Likewise.
25799 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
25800 changes.
25801 (cortex_a7_alu_reg): Likewise.
25802 (cortex_a7_alu_shift): Likewise.
25803 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
25804 changes.
25805 (cortex_a8_alu_shift): Likewise.
25806 (cortex_a8_alu_shift_reg): Likewise.
25807 (cortex_a8_mov): Likewise.
25808 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
25809 (cortex_a9_dp_shift): Likewise.
25810 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
25811 changes.
25812 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
25813 changes.
25814 (cortex_r4_mov): Likewise.
25815 (cortex_r4_alu_shift): Likewise.
25816 (cortex_r4_alu_shift_reg): Likewise.
25817 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
25818 (526_alu_shift_op): Likewise.
25819 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
25820 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
25821 (626te_alu_shift_op): Likewise.
25822 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
25823 (726te_alu_op): Likewise.
25824 (726te_alu_shift_op): Likewise.
25825 (726te_alu_shift_reg_op): Likewise.
25826 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
25827 (mp626_alu_shift_op): Likewise.
25828 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
25829 (pj4_alu_e1_conds): Likewise.
25830 (pj4_alu): Likewise.
25831 (pj4_alu_conds): Likewise.
25832 (pj4_shift): Likewise.
25833 (pj4_shift_conds): Likewise.
25834 (pj4_alu_shift): Likewise.
25835 (pj4_alu_shift_conds): Likewise.
25836 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
25837 changes.
25838 (cortexa7_older_only): Likewise.
25839 (cortexa7_younger): Likewise.
25840
25841 2013-07-18 David Malcolm <dmalcolm@redhat.com>
25842
25843 * ipa-pure-const.c (generate_summary): Rename to...
25844 (pure_const_generate_summary): ... this.
25845
25846 2013-07-17 Iain Sandoe <iain@codesourcery.com>
25847
25848 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
25849
25850 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
25851
25852 PR target/57909
25853 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
25854 usage in HI mode.
25855
25856 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25857
25858 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
25859 enabled without -march=zEC12.
25860 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
25861 flags to be set.
25862
25863 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
25864
25865 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
25866 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
25867 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
25868 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
25869 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
25870 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
25871 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
25872 ISA_HAS_FP4.
25873 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
25874 and ISA_HAS_NMADD3_NMSUB3.
25875 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
25876 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
25877 (nmsub4<mode>, nmsub3<mode>): Likewise.
25878 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
25879
25880 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
25881
25882 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
25883 TARGET_MIPS5400 checking.
25884
25885 2013-07-16 Jakub Jelinek <jakub@redhat.com>
25886 Peter Bergner <bergner@vnet.ibm.com>
25887
25888 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
25889 registers in the comment.
25890 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
25891 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
25892 rather than FIRST_PSEUDO_REGISTERS.
25893
25894 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
25895
25896 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
25897 enable extra ISA flags with TARGET_HTM.
25898
25899 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
25900
25901 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
25902 Fix comment typos.
25903
25904 2013-07-15 Cong Hou <congh@google.com>
25905
25906 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
25907 in compare function for sorting.
25908
25909 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
25910
25911 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
25912 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
25913 * config/rs6000/rs6000.opt: Add -mhtm option.
25914 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
25915 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
25916 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
25917 __HTM__ if the HTM instructions are available.
25918 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
25919 htm_spr_reg_operand): New define_predicates.
25920 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
25921 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
25922 Include htm.md.
25923 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
25924 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
25925 HTM builtin functions.
25926 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
25927 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
25928 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
25929 (rs6000_builtin_mask_calculate): Likewise.
25930 (rs6000_option_override_internal): Likewise.
25931 (bdesc_htm): Add new HTM builtin support.
25932 (htm_spr_num): New function.
25933 (htm_spr_regno): Likewise.
25934 (rs6000_htm_spr_icode): Likewise.
25935 (htm_expand_builtin): Likewise.
25936 (htm_init_builtins): Likewise.
25937 (rs6000_expand_builtin): Add support for HTM builtin functions.
25938 (rs6000_init_builtins): Likewise.
25939 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
25940 option.
25941 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
25942 (TARGET_HTM, MASK_HTM): Define macros.
25943 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
25944 (FIXED_REGISTERS): Likewise.
25945 (CALL_USED_REGISTERS): Likewise.
25946 (CALL_REALLY_USED_REGISTERS): Likewise.
25947 (REG_ALLOC_ORDER): Likewise.
25948 (enum reg_class): Likewise.
25949 (REG_CLASS_NAMES): Likewise.
25950 (REG_CLASS_CONTENTS): Likewise.
25951 (REGISTER_NAMES): Likewise.
25952 (ADDITIONAL_REGISTER_NAMES): Likewise.
25953 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
25954 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
25955 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
25956 * config/rs6000/htm.md: New file.
25957 * config/rs6000/htmintrin.h: New file.
25958 * config/rs6000/htmxlintrin.h: New file.
25959
25960 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
25961
25962 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
25963 Define SYMBOL_TINY_GOT, update comment.
25964 * config/aarch64/aarch64.c
25965 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
25966 (aarch64_expand_mov_immediate): Likewise.
25967 (aarch64_print_operand): Likewise.
25968 (aarch64_classify_symbol): Likewise.
25969 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
25970 (ldr_got_tiny): Define.
25971
25972 2013-07-13 Tobias Grosser <tobias@grosser.es>
25973
25974 PR tree-optimization/54094
25975 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
25976 scheduling dimension for the parallelism check from the polyhedral
25977 information in the AST.
25978 * graphite-dependences.c (carries_deps): Do not assume the schedule is
25979 in 2D + 1 form.
25980
25981 2013-07-13 Jason Merrill <jason@redhat.com>
25982
25983 * print-tree.c (debug_vec_tree): Use debug_raw.
25984 (debug_raw (vec<tree, va_gc> &)): New.
25985 (debug_raw (vec<tree, va_gc> *)): New.
25986 * tree.h: Declare them.
25987
25988 2013-07-13 Bin Cheng <bin.cheng@arm.com>
25989
25990 * ifcvt.c (ifcvt_after_combine): New static variable.
25991 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
25992 for size.
25993 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
25994 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
25995 rest_of_handle_if_after_reload): Pass new argument for if_convert.
25996
25997 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
25998
25999 * config/mips/mips.c (mips_expand_call): Remove empty statement.
26000
26001 2013-07-12 Michael Matz <matz@suse.de>
26002
26003 PR middle-end/55771
26004 * convert.c (convert_to_real): Reject non-float inner types.
26005
26006 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
26007
26008 * config/aarch64/aarch64-protos.h
26009 (aarch64_simd_immediate_valid_for_move): Remove.
26010 * config/aarch64/aarch64.c (simd_immediate_info): New member.
26011 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
26012 cases.
26013 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
26014
26015 2013-07-11 Steve Ellcey <sellcey@mips.com>
26016
26017 * config/mips/mips.c (mips_conditional_register_usage): Do not
26018 use t[0-7] registers in MIPS16 mode when optimizing for size.
26019
26020 2013-07-11 Sriraman Tallam <tmsriram@google.com>
26021
26022 * config/i386/i386.c (dispatch_function_versions): Fix array
26023 indexing of function_version_info to match actual_versions.
26024
26025 2013-07-11 Teresa Johnson <tejohnson@google.com>
26026
26027 * vec.h (struct va_gc): Move release out-of-line.
26028 (va_gc::release): Call ggc_free on released vec.
26029
26030 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26031
26032 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
26033 Require GOT register as additional operand in UNSPEC.
26034 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
26035 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
26036 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
26037 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
26038 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
26039 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
26040 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
26041
26042 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
26043
26044 PR target/57631
26045 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
26046 name seen by assembler/linker rather if available.
26047
26048 2013-07-11 Andreas Schwab <schwab@suse.de>
26049
26050 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
26051
26052 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
26053
26054 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
26055
26056 2013-07-10 Joseph Myers <joseph@codesourcery.com>
26057
26058 * doc/tm.texi.in: Move hook documentation to ....
26059 * target.def: ... here.
26060
26061 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
26062 text on @hook line.
26063 * doc/tm.texi: Regenerate.
26064
26065 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
26066
26067 PR c++/57869
26068 * doc/invoke.texi: Document -Wconditionally-supported.
26069
26070 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
26071
26072 PR target/57844
26073 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
26074 of my_fp.
26075
26076 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
26077
26078 PR target/57506
26079 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
26080 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
26081 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
26082 Remove duplicate devices.
26083 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
26084 * config/avr/t-multilib: Regenerate.
26085 * config/avr/avr-tables.opt: Regenerate.
26086 * doc/avr-mmcu.texi: Regenerate.
26087
26088 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
26089
26090 PR target/56987
26091 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
26092
26093 2013-07-10 Graham Stott <graham.stott@btinternet.com>
26094
26095 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
26096 the cost of MULT when optimizing for size.
26097
26098 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26099
26100 * config/cr16/cr16-protos.h: Don't include target.h.
26101
26102 2013-07-09 Joseph Myers <joseph@codesourcery.com>
26103
26104 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
26105 adjust register size for TDmode and TFmode for VSX registers.
26106
26107 2013-07-08 Kai Tietz <ktietz@redhat.com>
26108
26109 PR target/56892
26110 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
26111 hook_bool_const_tree_true.
26112
26113 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26114
26115 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
26116 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
26117 * config/s390/s390.md: Define FPR*_REGNUM constants.
26118 Fix FPR2_REGNUM constant (18 -> 17).
26119 ("*trunc<BFP:mode><DFP_ALL:mode>2")
26120 ("*trunc<DFP_ALL:mode><BFP:mode>2")
26121 ("trunc<BFP:mode><DFP_ALL:mode>2")
26122 ("trunc<DFP_ALL:mode><BFP:mode>2")
26123 ("*extend<BFP:mode><DFP_ALL:mode>2")
26124 ("*extend<DFP_ALL:mode><BFP:mode>2")
26125 ("extend<BFP:mode><DFP_ALL:mode>2")
26126 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
26127 FPR4_REGNUM.
26128
26129 2013-07-08 Graham Stott <graham.stott@btinternet.com>
26130
26131 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
26132
26133 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26134
26135 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
26136 and cfun_fpr_bit_p to cfun_fpr_save_p.
26137 (s390_frame_area, s390_register_info, s390_frame_info)
26138 (s390_emit_prologue, s390_emit_epilogue)
26139 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
26140 register numbers.
26141 * config/s390/s390.h: Define *_REGNUM macros for floating point
26142 register numbers.
26143
26144 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
26145
26146 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
26147
26148 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
26149
26150 PR rtl-optimization/57786
26151 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
26152 and break out of the loop when it is set to false.
26153
26154 2013-07-08 Jakub Jelinek <jakub@redhat.com>
26155
26156 PR target/57819
26157 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
26158 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
26159 (const_int 63)) 0)).
26160 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
26161 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
26162 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
26163
26164 PR rtl-optimization/57829
26165 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
26166 mask bits outside of mode are just sign-extension from mode to HWI.
26167
26168 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
26169
26170 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
26171 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
26172 adjust_address instead of change_address to keep info about alignment.
26173 (emit_strmov): Remove.
26174 (emit_memmov): New function.
26175 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
26176 (expand_movmem_epilogue): Likewise and return updated rtx for
26177 destination.
26178 (expand_constant_movmem_prologue): Likewise and return updated rtx for
26179 destination and source.
26180 (decide_alignment): Refactor, handle vector_loop.
26181 (ix86_expand_movmem): Likewise.
26182 (ix86_expand_setmem): Likewise.
26183 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
26184
26185 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
26186
26187 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
26188 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
26189
26190 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
26191
26192 * config/i386/sse.md (sse_movlhps): Change alternative 3
26193 of operand 2 to "m".
26194
26195 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
26196
26197 PR target/57807
26198 * config/i386/sse.md (iptr): New mode attribute.
26199 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
26200 (<sse>_vm<plusminus_insn><mode>3): Ditto.
26201 (<sse>_vmmul<mode>3): Ditto.
26202 (<sse>_vmdiv<mode>3): Ditto.
26203 (sse_vmrcpv4sf2): Ditto.
26204 (<sse>_vmsqrt<mode>2): Ditto.
26205 (sse_vmrsqrtv4sf2): Ditto.
26206 (<sse>_vm<code><mode>3): Ditto.
26207 (avx_vmcmp<mode>3): Ditto.
26208 (<sse>_vmmaskcmp<mode>3): Ditto.
26209 (<sse>_comi): Ditto.
26210 (<sse>_ucomi): Ditto.
26211 (*xop_vmfrcz_<mode>): Ditto.
26212 (*fmai_fmadd_<mode>): Ditto.
26213 (*fmai_fmsub_<mode>): Ditto.
26214 (*fmai_fnmadd_<mode>): Ditto.
26215 (*fmai_fnmsub_<mode>): Ditto.
26216 (*fma4i_vmfmadd_<mode>): Ditto.
26217 (*fma4i_vmfmsub_<mode>): Ditto.
26218 (*fma4i_vmfnmadd_<mode>): Ditto.
26219 (*fma4i_vmfnmsub_<mode>): Ditto.
26220 (*xop_vmfrcz_<mode>): Ditto.
26221 (sse_cvtps2pi): Ditto.
26222 (sse_cvttps2pi): Ditto.
26223 (sse_cvtss2si): Ditto.
26224 (sse_cvtss2si_2): Ditto.
26225 (sse_cvtss2siq_2): Ditto.
26226 (sse_cvttss2si): Ditto.
26227 (sse_cvttss2siq): Ditto.
26228 (sse_cvtsd2si): Ditto.
26229 (sse_cvtsd2si_2): Ditto.
26230 (sse_cvtsd2siq_2): Ditto.
26231 (sse_cvttsd2si): Ditto.
26232 (sse_cvttsd2siq): Ditto.
26233 (sse_cvtsd2ss): Ditto.
26234 (sse_cvtss2sd): Ditto.
26235 (avx2_pbroadcast<mode>): Ditto.
26236 (avx2_pbroadcast<mode>_1): Ditto.
26237 (*avx_vperm_broadcast_v4sf): Ditto.
26238
26239 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
26240 (sse_movlhps): Ditto.
26241 (sse_storehps): Ditto.
26242 (sse_loadhps): Ditto.
26243 (sse_storelps): Ditto.
26244 (sse_loadlps): Ditto.
26245 (*vec_concatv4sf): Ditto.
26246 (*vec_interleave_highv2df): Ditto.
26247 (*vec_interleave_lowv2df): Ditto.
26248 (*vec_extractv2df_1_sse): Ditto.
26249 (*vec_extractv2df_0_sse): Ditto.
26250 (sse2_storelpd): Ditto.
26251 (sse2_loadlpd): Ditto.
26252 (sse2_movsd): Ditto.
26253 (*vec_concatv4si): Ditto.
26254 (vec_concatv2di): Ditto.
26255
26256 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
26257 for Intel asm dialect.
26258 (mmx_punpcklwd): Ditto.
26259 (mmx_punpckldq): Ditto.
26260
26261 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
26262 for intel assembler dialect.
26263
26264 2013-07-06 Jakub Jelinek <jakub@redhat.com>
26265
26266 PR target/29776
26267 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
26268 for BUILT_IN_C{LZ,LRSB}*.
26269 * tree.h (CASE_INT_FN): Add FN##IMAX case.
26270 * tree-vrp.c (extract_range_basic): Handle
26271 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
26272 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
26273 fall thru to code calling set_value*.
26274 * builtins.c (expand_builtin): Remove *IMAX cases.
26275 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
26276 if width is bigger than 2*HWI.
26277
26278 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
26279
26280 PR rtl-optimization/55342
26281 * lra-int.h (lra_subreg_reload_pseudos): New.
26282 * lra.c: Add undoing optional reloads to the block diagram.
26283 (lra_subreg_reload_pseudos): New.
26284 (lra_optional_reload_pseudos): Change comments.
26285 (lra): Init and clear lra_subreg_reload_pseudos. Clear
26286 lra_optional_reload_pseudos after undo transformations.
26287 * lra-assigns.c (pseudo_prefix_title): New.
26288 (lra_setup_reg_renumber): Use it.
26289 (spill_for): Ditto. Check subreg reload pseudos too.
26290 (assign_by_spills): Consider subreg reload pseudos too.
26291 * lra-constraints.c (simplify_operand_subreg): Use
26292 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
26293 (curr_insn_transform): Recognize and do optional reloads.
26294 (undo_optional_reloads): New.
26295 (lra_undo_inheritance): Call undo_optional_reloads.
26296
26297 2013-07-05 Thomas Quinot <quinot@adacore.com>
26298
26299 * tree-complex.c (expand_complex_operations_1): Fix typo.
26300
26301 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
26302
26303 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
26304 (tune_params): New member 'const vec_costs'.
26305 * config/aarch64/aarch64.c (generic_vector_cost): New.
26306 (generic_tunings): New member 'generic_vector_cost'.
26307 (aarch64_builtin_vectorization_cost): New.
26308 (aarch64_add_stmt_cost): New.
26309 (TARGET_VECTORIZE_ADD_STMT_COST): New.
26310 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
26311
26312 2013-07-03 Jakub Jelinek <jakub@redhat.com>
26313
26314 PR target/57777
26315 * config/i386/predicates.md (vsib_address_operand): Disallow
26316 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
26317
26318 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
26319
26320 PR middle-end/55030
26321 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
26322 expand_builtin_setjmp_receiver.
26323 (expand_label): Adjust, call expand_builtin_setjmp_receiver
26324 with NULL for the label parameter.
26325 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
26326 the frame-pointer. Adjust comments.
26327 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
26328 only if LABEL is non-NULL.
26329
26330 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
26331
26332 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
26333 (ARM_ABI_AAPCS64): Ditto.
26334 (arm_abi): Ditto.
26335 (ARM_DEFAULT_ABI): Ditto.
26336
26337 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
26338
26339 * config/aarch64/aarch64-builtins.c
26340 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
26341 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
26342 (st1): Likewise.
26343 * config/aarch64/aarch64-simd.md
26344 (aarch64_ld1<VALL:mode>): New.
26345 (aarch64_st1<VALL:mode>): Likewise.
26346 * config/aarch64/arm_neon.h
26347 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
26348
26349 2013-07-02 Sriraman Tallam <tmsriram@google.com>
26350
26351 * config/i386/i386.c (gate_insert_vzeroupper): Check if
26352 target ISA is AVX.
26353 (ix86_option_override_internal):Turn on all -mavx target flags by
26354 default as they are dependent on AVX anyway.
26355
26356 2013-07-02 Cary Coutant <ccoutant@google.com>
26357
26358 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
26359 deterministic hash.
26360 (loc_checksum_ordered): Likewise.
26361 (hash_loc_operands): Remove inline keyword.
26362
26363 2013-07-02 Jakub Jelinek <jakub@redhat.com>
26364
26365 PR tree-optimization/57741
26366 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
26367 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
26368 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
26369 Allow REAL_CST step_exprs if flag_associative_math.
26370 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
26371
26372 2013-07-02 Ian Bolton <ian.bolton@arm.com>
26373
26374 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
26375
26376 2013-07-02 Ian Bolton <ian.bolton@arm.com>
26377
26378 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
26379
26380 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26381
26382 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
26383 encoding.
26384 (iorsi3_insn): Likewise.
26385 (arm_xorsi3): Likewise.
26386
26387 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
26388
26389 * arm.md (attribute "wtype"): Delete. Move attribute values from here
26390 to ...
26391 (attribute "type"): ... here, and prefix with "wmmx_".
26392 (attribute "core_cycles"): Update for attribute changes.
26393 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
26394 (tbcstv4hi): Likewise.
26395 (tbcstv2si): Likewise.
26396 (iwmmxt_iordi3): Likewise.
26397 (iwmmxt_xordi3): Likewise.
26398 (iwmmxt_anddi3): Likewise.
26399 (iwmmxt_nanddi3): Likewise.
26400 (iwmmxt_arm_movdi): Likewise.
26401 (iwmmxt_movsi_insn): Likewise.
26402 (mov<mode>_internal): Likewise.
26403 (and<mode>3_iwmmxt): Likewise.
26404 (ior<mode>3_iwmmxt): Likewise.
26405 (xor<mode>3_iwmmxt): Likewise.
26406 (add<mode>3_iwmmxt): Likewise.
26407 (ssaddv8qi3): Likewise.
26408 (ssaddv4hi3): Likewise.
26409 (ssaddv2si3): Likewise.
26410 (usaddv8qi3): Likewise.
26411 (usaddv4hi3): Likewise.
26412 (usaddv2si3): Likewise.
26413 (sub<mode>3_iwmmxt): Likewise.
26414 (sssubv8qi3): Likewise.
26415 (sssubv4hi3): Likewise.
26416 (sssubv2si3): Likewise.
26417 (ussubv8qi3): Likewise.
26418 (ussubv4hi3): Likewise.
26419 (ussubv2si3): Likewise.
26420 (mulv4hi3_iwmmxt): Likewise.
26421 (smulv4hi3_highpart): Likewise.
26422 (umulv4hi3_highpart): Likewise.
26423 (iwmmxt_wmacs): Likewise.
26424 (iwmmxt_wmacsz): Likewise.
26425 (iwmmxt_wmacu): Likewise.
26426 (iwmmxt_wmacuz): Likewise.
26427 (iwmmxt_clrdi): Likewise.
26428 (iwmmxt_clrv8qi): Likewise.
26429 (iwmmxt_clr4hi): Likewise.
26430 (iwmmxt_clr2si): Likewise.
26431 (iwmmxt_uavgrndv8qi3): Likewise.
26432 (iwmmxt_uavgrndv4hi3): Likewise.
26433 (iwmmxt_uavgv8qi3): Likewise.
26434 (iwmmxt_uavgv4hi3): Likewise.
26435 (iwmmxt_tinsrb): Likewise.
26436 (iwmmxt_tinsrh): Likewise.
26437 (iwmmxt_tinsrw): Likewise.
26438 (iwmmxt_textrmub): Likewise.
26439 (iwmmxt_textrmsb): Likewise.
26440 (iwmmxt_textrmuh): Likewise.
26441 (iwmmxt_textrmsh): Likewise.
26442 (iwmmxt_textrmw): Likewise.
26443 (iwmxxt_wshufh): Likewise.
26444 (eqv8qi3): Likewise.
26445 (eqv4hi3): Likewise.
26446 (eqv2si3): Likewise.
26447 (gtuv8qi3): Likewise.
26448 (gtuv4hi3): Likewise.
26449 (gtuv2si3): Likewise.
26450 (gtv8qi3): Likewise.
26451 (gtv4hi3): Likewise.
26452 (gtv2si3): Likewise.
26453 (smax<mode>3_iwmmxt): Likewise.
26454 (umax<mode>3_iwmmxt): Likewise.
26455 (smin<mode>3_iwmmxt): Likewise.
26456 (umin<mode>3_iwmmxt): Likewise.
26457 (iwmmxt_wpackhss): Likewise.
26458 (iwmmxt_wpackwss): Likewise.
26459 (iwmmxt_wpackdss): Likewise.
26460 (iwmmxt_wpackhus): Likewise.
26461 (iwmmxt_wpackwus): Likewise.
26462 (iwmmxt_wpackdus): Likewise.
26463 (iwmmxt_wunpckihb): Likewise.
26464 (iwmmxt_wunpckihh): Likewise.
26465 (iwmmxt_wunpckihw): Likewise.
26466 (iwmmxt_wunpckilb): Likewise.
26467 (iwmmxt_wunpckilh): Likewise.
26468 (iwmmxt_wunpckilw): Likewise.
26469 (iwmmxt_wunpckehub): Likewise.
26470 (iwmmxt_wunpckehuh): Likewise.
26471 (iwmmxt_wunpckehuw): Likewise.
26472 (iwmmxt_wunpckehsb): Likewise.
26473 (iwmmxt_wunpckehsh): Likewise.
26474 (iwmmxt_wunpckehsw): Likewise.
26475 (iwmmxt_wunpckelub): Likewise.
26476 (iwmmxt_wunpckeluh): Likewise.
26477 (iwmmxt_wunpckeluw): Likewise.
26478 (iwmmxt_wunpckelsb): Likewise.
26479 (iwmmxt_wunpckelsh): Likewise.
26480 (iwmmxt_wunpckelsw): Likewise.
26481 (ror<mode>3): Likewise.
26482 (ashr<mode>3_iwmmxt): Likewise.
26483 (lshr<mode>3_iwmmxt): Likewise.
26484 (ashl<mode>3_iwmmxt): Likewise.
26485 (ror<mode>3_di): Likewise.
26486 (ashr<mode>3_di): Likewise.
26487 (lshr<mode>3_di): Likewise.
26488 (ashl<mode>3_di): Likewise.
26489 (iwmmxt_wmadds): Likewise.
26490 (iwmmxt_wmaddu): Likewise.
26491 (iwmmxt_tmia): Likewise.
26492 (iwmmxt_tmiaph): Likewise.
26493 (iwmmxt_tmiabb): Likewise.
26494 (iwmmxt_tmiatb): Likewise.
26495 (iwmmxt_tmiabt): Likewise.
26496 (iwmmxt_tmiatt): Likewise.
26497 (iwmmxt_tmovmskb): Likewise.
26498 (iwmmxt_tmovmskh): Likewise.
26499 (iwmmxt_tmovmskw): Likewise.
26500 (iwmmxt_waccb): Likewise.
26501 (iwmmxt_wacch): Likewise.
26502 (iwmmxt_waccw): Likewise.
26503 (iwmmxt_waligni): Likewise.
26504 (iwmmxt_walignr): Likewise.
26505 (iwmmxt_walignr0): Likewise.
26506 (iwmmxt_walignr1): Likewise.
26507 (iwmmxt_walignr2): Likewise.
26508 (iwmmxt_walignr3): Likewise.
26509 (iwmmxt_wsadb): Likewise.
26510 (iwmmxt_wsadh): Likewise.
26511 (iwmmxt_wsadbz): Likewise.
26512 (iwmmxt_wsadhz): Likewise.
26513 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
26514 (iwmmxt_wabsdiffb): Likewise.
26515 (iwmmxt_wabsdiffh): Likewise.
26516 (iwmmxt_wabsdiffw): Likewise.
26517 (iwmmxt_waddsubhx): Likewise
26518 (iwmmxt_wsubaddhx): Likewise.
26519 (addc<mode>3): Likewise.
26520 (iwmmxt_avg4): Likewise.
26521 (iwmmxt_avg4r): Likewise.
26522 (iwmmxt_wmaddsx): Likewise.
26523 (iwmmxt_wmaddux): Likewise.
26524 (iwmmxt_wmaddsn): Likewise.
26525 (iwmmxt_wmaddun): Likewise.
26526 (iwmmxt_wmulwsm): Likewise.
26527 (iwmmxt_wmulwum): Likewise.
26528 (iwmmxt_wmulsmr): Likewise.
26529 (iwmmxt_wmulumr): Likewise.
26530 (iwmmxt_wmulwsmr): Likewise.
26531 (iwmmxt_wmulwumr): Likewise.
26532 (iwmmxt_wmulwl): Likewise.
26533 (iwmmxt_wqmulm): Likewise.
26534 (iwmmxt_wqmulwm): Likewise.
26535 (iwmmxt_wqmulmr): Likewise.
26536 (iwmmxt_wqmulwmr): Likewise.
26537 (iwmmxt_waddbhusm): Likewise.
26538 (iwmmxt_waddbhusl): Likewise.
26539 (iwmmxt_wqmiabb): Likewise.
26540 (iwmmxt_wqmiabt): Likewise.
26541 (iwmmxt_wqmiatb): Likewise.
26542 (iwmmxt_wqmiatt): Likewise.
26543 (iwmmxt_wqmiabbn): Likewise.
26544 (iwmmxt_wqmiabtn): Likewise.
26545 (iwmmxt_wqmiatbn): Likewise.
26546 (iwmmxt_wqmiattn): Likewise.
26547 (iwmmxt_wmiabb): Likewise.
26548 (iwmmxt_wmiabt): Likewise.
26549 (iwmmxt_wmiatb): Likewise.
26550 (iwmmxt_wmiatt): Likewise.
26551 (iwmmxt_wmiabbn): Likewise.
26552 (iwmmxt_wmiabtn): Likewise.
26553 (iwmmxt_wmiatbn): Likewise.
26554 (iwmmxt_wmiattn): Likewise.
26555 (iwmmxt_wmiawbb): Likewise.
26556 (iwmmxt_wmiawbt): Likewise.
26557 (iwmmxt_wmiawtb): Likewise.
26558 (iwmmxt_wmiawtt): Likewise.
26559 (iwmmxt_wmiawbbn): Likewise.
26560 (iwmmxt_wmiawbtn): Likewise.
26561 (iwmmxt_wmiawtbn): Likewise.
26562 (iwmmxt_wmiawttn): Likewise.
26563 (iwmmxt_wmerge): Likewise.
26564 (iwmmxt_tandc<mode>3): Likewise.
26565 (iwmmxt_torc<mode>3): Likewise.
26566 (iwmmxt_torvsc<mode>3): Likewise.
26567 (iwmmxt_textrc<mode>3): Likewise.
26568 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
26569 (wmmxt_pack): Likewise.
26570 (wmmxt_mult_c1): Likewise.
26571 (wmmxt_mult_c2): Likewise.
26572 (wmmxt_alu_c1): Likewise.
26573 (wmmxt_alu_c2): Likewise.
26574 (wmmxt_alu_c3): Likewise.
26575 (wmmxt_transfer_c1): Likewise.
26576 (wmmxt_transfer_c2): Likewise.
26577 (wmmxt_transfer_c3): Likewise.
26578 (marvell_f_iwmmxt_wstr): Likewise.
26579 (marvell_f_iwmmxt_wldr): Likewise.
26580
26581 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
26582
26583 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
26584
26585 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
26586
26587 Revert:
26588 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
26589 * lra-constraints.c (need_for_split_p): Check call used hard regs
26590 living through calls.
26591
26592 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
26593 call used regs for call insn.
26594
26595 2013-06-28 Jakub Jelinek <jakub@redhat.com>
26596
26597 PR target/57736
26598 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
26599 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
26600
26601 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
26602
26603 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
26604
26605 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
26606
26607 * lra-constraints.c (need_for_split_p): Check call used hard regs
26608 living through calls.
26609
26610 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
26611
26612 PR target/57744
26613 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
26614 to tie with any other modes. Eliminate Altivec vector mode tests,
26615 since these are a subset of ALTIVEC or VSX vector modes. Simplify
26616 code, to return 0 if testing MODE2 for a condition, if we've
26617 already tested MODE1 for the same condition.
26618
26619 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
26620
26621 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
26622 layout.
26623
26624 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
26625
26626 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
26627 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
26628
26629 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
26630
26631 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
26632 Define.
26633 (aarch64_symbolic_constant_p): Remove.
26634 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
26635 static. Fix line length and white space.
26636 (aarch64_symbolic_constant_p): Remove.
26637 * config/aarch64/predicates.md (aarch64_valid_symref):
26638 Use aarch64_classify_symbol_expression.
26639
26640 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26641
26642 * config/arm/constraints.md (Ts): New constraint.
26643 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
26644 16-bit encodings.
26645 (compare_scc): Use "Ts" constraint for operand 0.
26646 (ior_scc_scc): Likewise.
26647 (and_scc_scc): Likewise.
26648 (and_scc_scc_nodom): Likewise.
26649 (ior_scc_scc_cmp): Likewise for operand 7.
26650 (and_scc_scc_cmp): Likewise.
26651 * config/arm/thumb2.md (thumb2_movsi_insn):
26652 Add alternatives for 16-bit encodings.
26653 (thumb2_movhi_insn): Likewise.
26654 (thumb2_movsicc_insn): Likewise.
26655 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
26656 (thumb2_negscc): Use "Ts" constraint.
26657 Move mvn instruction outside cond_exec block.
26658 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
26659 for 16-bit encodings.
26660
26661 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26662
26663 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
26664 encoding.
26665 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
26666 (mulsi3subsi): Likewise.
26667 (mulsidi3adddi): Likewise.
26668 (mulsidi3_v6): Likewise.
26669 (umulsidi3_v6): Likewise.
26670 (umulsidi3adddi_v6): Likewise.
26671 (smulsi3_highpart_v6): Likewise.
26672 (umulsi3_highpart_v6): Likewise.
26673 (mulhisi3tb): Likewise.
26674 (mulhisi3bt): Likewise.
26675 (mulhisi3tt): Likewise.
26676 (maddhisi4): Likewise.
26677 (maddhisi4tb): Likewise.
26678 (maddhisi4tt): Likewise.
26679 (maddhidi4): Likewise.
26680 (maddhidi4tb): Likewise.
26681 (maddhidi4tt): Likewise.
26682 (zeroextractsi_compare0_scratch): Likewise.
26683 (insv_zero): Likewise.
26684 (insv_t2): Likewise.
26685 (anddi_notzesidi_di): Likewise.
26686 (anddi_notsesidi_di): Likewise.
26687 (andsi_notsi_si): Likewise.
26688 (iordi_zesidi_di): Likewise.
26689 (xordi_zesidi_di): Likewise.
26690 (andsi_iorsi3_notsi): Likewise.
26691 (smax_0): Likewise.
26692 (smax_m1): Likewise.
26693 (smin_0): Likewise.
26694 (not_shiftsi): Likewise.
26695 (unaligned_loadsi): Likewise.
26696 (unaligned_loadhis): Likewise.
26697 (unaligned_loadhiu): Likewise.
26698 (unaligned_storesi): Likewise.
26699 (unaligned_storehi): Likewise.
26700 (extv_reg): Likewise.
26701 (extzv_t2): Likewise.
26702 (divsi3): Likewise.
26703 (udivsi3): Likewise.
26704 (arm_zero_extendhisi2addsi): Likewise.
26705 (arm_zero_extendqisi2addsi): Likewise.
26706 (compareqi_eq0): Likewise.
26707 (arm_extendhisi2_v6): Likewise.
26708 (arm_extendqisi2addsi): Likewise.
26709 (arm_movt): Likewise.
26710 (thumb2_ldrd): Likewise.
26711 (thumb2_ldrd_base): Likewise.
26712 (thumb2_ldrd_base_neg): Likewise.
26713 (thumb2_strd): Likewise.
26714 (thumb2_strd_base): Likewise.
26715 (thumb2_strd_base_neg): Likewise.
26716 (arm_negsi2): Add alternative for 16-bit encoding.
26717 (arm_one_cmplsi2): Likewise.
26718
26719 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26720
26721 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
26722 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
26723 (movdfcc): Likewise.
26724 * config/arm/vfp.md (*thumb2_movsf_vfp):
26725 Disable predication for arm_restrict_it.
26726 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
26727 (*thumb2_movdfcc_vfp): Likewise.
26728 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
26729 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
26730 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
26731 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
26732 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
26733 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
26734 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
26735 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
26736 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
26737 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
26738 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
26739 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
26740 Disable predication for arm_restrict_it.
26741
26742 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
26743
26744 * config/i386/bmiintrin.h (_bextr_u32): New.
26745 (_bextr_u64): Ditto.
26746
26747 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
26748
26749 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
26750 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
26751 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
26752 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
26753 * config/mips/n32-elf.h: ...this new file.
26754
26755 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
26756
26757 PR target/57224
26758 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
26759 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
26760
26761 2013-06-27 Catherine Moore <clm@codesourcery.com>
26762
26763 * config/mips/mips-tables.opt: Regenerate.
26764 * config/mips/mips-cpus.def: Add m14ke and m14kec.
26765 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
26766 * doc/invoke.texi: Add -m14kc.
26767
26768 2013-06-27 Jakub Jelinek <jakub@redhat.com>
26769
26770 PR target/57623
26771 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
26772 constraints of operand 1 and 2.
26773
26774 PR target/57623
26775 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
26776 to match RTL canonicalization. Swap predicates and
26777 constraints of operand 1 and 2.
26778
26779 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
26780
26781 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
26782 Process OP_INOUT regs for splitting too.
26783
26784 2013-06-27 Jakub Jelinek <jakub@redhat.com>
26785
26786 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
26787 decl before the loop, initialize to NULL.
26788 (vectorizable_load): Initialize ptr_incr to NULL.
26789
26790 2013-06-27 Martin Jambor <mjambor@suse.cz>
26791
26792 PR lto/57208
26793 * ipa-ref.h (ipa_maybe_record_reference): Declare.
26794 * ipa-ref.c (ipa_maybe_record_reference): New function.
26795 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
26796 * ipa-cp.c (create_specialized_node): Record potential references from
26797 aggvals.
26798 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
26799
26800 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
26801
26802 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
26803 parameter 'mode' of type 'enum machine_mode mode'; change to pass
26804 'mode' to force_reg.
26805 (aarch64_add_offset): Update calls to aarch64_force_temporary.
26806 (aarch64_expand_mov_immediate): Likewise.
26807
26808 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
26809
26810 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
26811 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
26812
26813 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26814
26815 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
26816 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
26817 (struct machine_function): Add tbegin_p.
26818 (s390_canonicalize_comparison): Fold CC mode compares to
26819 conditional jump if possible.
26820 (s390_emit_jump): Return the emitted jump.
26821 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
26822 Handle CCRAWmode compares.
26823 (s390_option_override): Default to -mhtm if available.
26824 (s390_reg_clobbered_rtx): Handle floating point regs as well.
26825 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
26826 FPRs instead of df_regs_ever_live_p.
26827 (s390_optimize_nonescaping_tx): New function.
26828 (s390_init_frame_layout): Extend clobbered_regs array to cover
26829 FPRs as well.
26830 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
26831 (s390_expand_tbegin): New function.
26832 (enum s390_builtin): New enum definition.
26833 (code_for_builtin): New array definition.
26834 (s390_init_builtins): New function.
26835 (s390_expand_builtin): New function.
26836 (TARGET_INIT_BUILTINS): Define.
26837 (TARGET_EXPAND_BUILTIN): Define.
26838 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
26839 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
26840 (s390_alc_comparison): Likewise.
26841 * config/s390/s390-modes.def: Add CCRAWmode.
26842 * config/s390/s390.h (processor_flags): Add PF_TX.
26843 (TARGET_CPU_HTM): Define macro.
26844 (TARGET_HTM): Define macro.
26845 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
26846 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
26847 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
26848 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
26849 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
26850 (TBEGIN_MASK, TBEGINC_MASK): New constants.
26851 ("*cc_to_int"): Move up.
26852 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
26853 constants other than 0.
26854 ("*ccraw_to_int"): New insn and splitter definition.
26855 ("tbegin", "tbegin_nofloat", "tbegin_retry")
26856 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
26857 ("tx_assist"): New expander.
26858 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
26859 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
26860 * config/s390/s390.opt: Add -mhtm option.
26861 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
26862 * config/s390/htmxlintrin.h: New file.
26863 * config/s390/htmintrin.h: New file.
26864 * config/s390/s390intrin.h: New file.
26865 * doc/extend.texi: Document htm builtins.
26866 * config.gcc: Add the new header files to extra_headers.
26867
26868 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
26869
26870 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
26871 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
26872
26873 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
26874 Pat Haugen <pthaugen@us.ibm.com>
26875 Peter Bergner <bergner@vnet.ibm.com>
26876
26877 * config/rs6000/power8.md: New.
26878 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
26879 setting for power8 entry.
26880 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
26881 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
26882 test for Power4/Power5 only.
26883 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
26884 support.
26885 (force_new_group): Adjust comment.
26886 * config/rs6000/rs6000.md: Include power8.md.
26887
26888 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
26889
26890 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
26891 * config/arm/arm-protos.h (arm_max_conditional_execute): New
26892 declaration.
26893 (tune_params): Update comment.
26894 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
26895 (arm_max_conditional_execute): New function.
26896 (thumb2_final_prescan_insn): Use max_insn_skipped and
26897 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
26898
26899 2013-06-25 Jakub Jelinek <jakub@redhat.com>
26900
26901 PR tree-optimization/57705
26902 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
26903 SSA_NAME step, provided that it is not defined inside the loop.
26904 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
26905 (get_initial_def_for_induction): Handle SSA_NAME IV step.
26906
26907 2013-06-25 Martin Jambor <mjambor@suse.cz>
26908
26909 PR middle-end/57670
26910 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
26911 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
26912 calls in the dump.
26913 (ipa_note_param_call): Initialize member_ptr flag.
26914 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
26915 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
26916 (ipa_write_indirect_edge_info): Stream member_ptr flag.
26917 (ipa_read_indirect_edge_info): Likewise.
26918
26919 2013-06-25 Richard Biener <rguenther@suse.de>
26920
26921 PR middle-end/56977
26922 * passes.c (init_optimization_passes): Move pass_fold_builtins
26923 and pass_dce earlier with -Og.
26924
26925 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
26926
26927 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
26928 <BIT_FIELD_REF>: Remove trailing TAB.
26929 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
26930 remove blank line.
26931
26932 2013-06-24 Martin Jambor <mjambor@suse.cz>
26933
26934 PR tree-optimization/57358
26935 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
26936 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
26937 (ipa_analyze_params_uses): Generate pessimistic info when true.
26938
26939 2013-06-24 Martin Jambor <mjambor@suse.cz>
26940
26941 PR tree-optimization/57539
26942 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
26943 global.inlined_to of the new node to it. All callers changed.
26944 * ipa-inline-transform.c (clone_inlined_nodes): New variable
26945 inlining_into, pass it to cgraph_clone_node.
26946 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
26947 ipa_free_edge_args_substructures.
26948 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
26949 rdesc linked list. Do not assert rdesc edges have inlined caller.
26950 Assert we have found an rdesc in the rdesc list.
26951
26952 2013-06-24 Richard Biener <rguenther@suse.de>
26953
26954 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
26955 (pointer_set_lookup): Declare.
26956 (class pointer_map): New template class implementing a
26957 generic pointer to T map.
26958 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
26959 pointer_map<T>::contains, pointer_map<T>::insert,
26960 pointer_map<T>::traverse): New functions.
26961 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
26962 (pointer_set_lookup): New function.
26963 (pointer_set_contains): Use pointer_set_lookup.
26964 (pointer_set_insert): Likewise.
26965 (insert_aux): Remove.
26966 (struct pointer_map_t): Embed a pointer_set_t.
26967 (pointer_map_create): Adjust.
26968 (pointer_map_destroy): Likewise.
26969 (pointer_map_contains): Likewise.
26970 (pointer_map_insert): Likewise.
26971 (pointer_map_traverse): Likewise.
26972 * tree-streamer.h (struct streamer_tree_cache_d): Use a
26973 pointer_map<unsigned> instead of a pointer_map_t.
26974 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
26975 (streamer_tree_cache_lookup): Likewise.
26976 (streamer_tree_cache_create): Likewise.
26977 (streamer_tree_cache_delete): Likewise.
26978 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
26979 pointer_map<unsigned> instead of a pointer_map_t.
26980 (lto_init_tree_ref_encoder): Adjust.
26981 (lto_destroy_tree_ref_encoder): Likewise.
26982 * lto-section-out.c (lto_output_decl_index): Likewise.
26983 (lto_record_function_out_decl_state): Likewise.
26984 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
26985
26986 2013-06-24 Richard Biener <rguenther@suse.de>
26987
26988 PR tree-optimization/57488
26989 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
26990
26991 2013-06-24 Alan Modra <amodra@gmail.com>
26992
26993 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
26994 (gen_easy_altivec_constant): Likewise.
26995 * config/rs6000/predicates.md (easy_vector_constant_add_self,
26996 easy_vector_constant_msb): Likewise.
26997
26998 2013-06-23 Jakub Jelinek <jakub@redhat.com>
26999
27000 PR target/57688
27001 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
27002 add missing return true.
27003
27004 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
27005
27006 PR target/52483
27007 * config/sh/predicates.md (general_extend_operand): Invoke
27008 general_movsrc_operand for memory operands.
27009 (general_movsrc_operand): Allow reg+reg addressing, do not use
27010 general_operand for memory operands.
27011
27012 2013-06-23 Sriraman Tallam <tmsriram@google.com>
27013
27014 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
27015 when current target options does not apply.
27016 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
27017 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
27018 * config/i386/bmiintrin.h: Pass appropriate target
27019 attributes to header.
27020 * config/i386/mmintrin.h: Ditto.
27021 * config/i386/nmmintrin.h: Ditto.
27022 * config/i386/avx2intrin.h: Ditto.
27023 * config/i386/fxsrintrin.h: Ditto.
27024 * config/i386/tbmintrin.h: Ditto.
27025 * config/i386/xsaveintrin.h: Ditto.
27026 * config/i386/f16cintrin.h: Ditto.
27027 * config/i386/xtestintrin.h: Ditto.
27028 * config/i386/xsaveoptintrin.h: Ditto.
27029 * config/i386/bmi2intrin.h: Ditto.
27030 * config/i386/lzcntintrin.h: Ditto.
27031 * config/i386/smmintrin.h: Ditto.
27032 * config/i386/wmmintrin.h: Ditto.
27033 * config/i386/x86intrin.h: Remove all header include guards.
27034 * config/i386/prfchwintrin.h: Ditto.
27035 * config/i386/pmmintrin.h: Ditto.
27036 * config/i386/tmmintrin.h: Ditto.
27037 * config/i386/xmmintrin.h: Ditto.
27038 * config/i386/popcntintrin.h: Ditto.
27039 * config/i386/rdseedintrin.h: Ditto.
27040 * config/i386/ammintrin.h: Ditto.
27041 * config/i386/emmintrin.h: Ditto.
27042 * config/i386/immintrin.h: Remove all header include guards.
27043 * config/i386/fma4intrin.h: Ditto.
27044 * config/i386/lwpintrin.h: Ditto.
27045 * config/i386/xopintrin.h: Ditto.
27046 * config/i386/ia32intrin.h: Ditto.
27047 * config/i386/avxintrin.h: Ditto.
27048 * config/i386/rtmintrin.h: Ditto.
27049 * config/i386/fmaintrin.h: Ditto.
27050 * config/i386/mm3dnow.h: Ditto.
27051
27052 2013-06-22 Sriraman Tallam <tmsriram@google.com>
27053
27054 * common/config/i386/i386-common.c: Handle LZCNT.
27055
27056 2013-06-22 Andi Kleen <ak@linux.intel.com>
27057
27058 * doc/extend.texi: Use __atomic_store_n instead of
27059 __atomic_store in HLE example.
27060
27061 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
27062
27063 * config/sh/sh.c: Remove <cstdlib> workaround.
27064
27065 2013-06-21 Andi Kleen <ak@linux.intel.com>
27066
27067 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
27068
27069 2013-06-21 Andi Kleen <ak@linux.intel.com>
27070
27071 * doc/extend.texi: Document that __atomic_clear and
27072 __atomic_test_and_set should only be used with bool.
27073
27074 2013-06-20 Jan Hubicka <jh@suse.cz>
27075
27076 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
27077 types_same_for_odr.
27078 * tree.c (decls_same_for_odr): New function.
27079 (same_for_edr): New function.
27080 (types_same_for_odr): New function.
27081 (get_binfo_at_offset): Use it.
27082 * tree.h (types_same_for_odr): Declare.
27083
27084 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
27085 Jason Merrill <jason@redhat.com>
27086
27087 * system.h: Include <cstdlib> as well as <stdlib.h>.
27088
27089 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
27090
27091 PR target/57655
27092 * config/i386/i386.c (construct_container): Report error if
27093 long double is used with disabled x87 float returns.
27094
27095 2013-06-20 Jan Hubicka <jh@suse.cz>
27096
27097 * lto-cgraph.c (input_symtab): Do not set cgraph state.
27098
27099 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
27100
27101 PR rtl-optimization/57425
27102 PR rtl-optimization/57569
27103 * alias.c (write_dependence_p): Remove parameters mem_mode and
27104 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
27105 Changed all callers.
27106 (canon_anti_dependence): Get comments and semantics in sync.
27107 Add parameter mem_canonicalized. Changed all callers.
27108 * rtl.h (canon_anti_dependence): Update prototype.
27109
27110 2013-06-20 Richard Biener <rguenther@suse.de>
27111
27112 * data-streamer-in.c (streamer_read_uhwi): Optimize single
27113 byte case, inline streamer_read_uchar and defer section
27114 overrun check.
27115
27116 2013-06-20 Richard Biener <rguenther@suse.de>
27117
27118 PR tree-optimization/57584
27119 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
27120 SSA names into the expanded expression that take part in
27121 abnormal coalescing.
27122
27123 2013-06-19 Sharad Singhai <singhai@google.com>
27124
27125 * gcov.c (print_usage): Handle new option.
27126 (process_args): Ditto.
27127 (get_gcov_intermediate_filename): New function.
27128 (output_intermediate_file): New function.
27129 (output_gcov_file): New function
27130 (generate_results): Handle new option.
27131 (release_function): Relase demangled name.
27132 (read_graph_file): Handle demangled name.
27133 (output_lines): Ditto.
27134 * doc/gcov.texi: Document gcov intermediate format.
27135
27136 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
27137
27138 PR bootstrap/57604
27139 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
27140 (lra_emit_add): Use the functions. Add comment about Y as an
27141 address segment.
27142
27143 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
27144
27145 PR driver/57652
27146 * collect2.c (collect_atexit): New.
27147 (collect_exit): Delete.
27148 (main): Register collect_atexit with atexit.
27149 (collect_wait): Change collect_exit to exit.
27150 (do_wait): Same.
27151 * collect2.h (collect_exit): Delete.
27152 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
27153
27154 2013-06-19 Wei Mi <wmi@google.com>
27155
27156 PR rtl-optimization/57518
27157 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
27158 if regno is used in paradoxical subreg.
27159 (update_equiv_regs): Check pdx_subregs[regno] before
27160 set a reg to be equivalent with a mem.
27161
27162 2013-06-19 Matthias Klose <doko@ubuntu.com>
27163
27164 PR driver/57651
27165 * file-find.h (find_a_file): Add a mode parameter.
27166 * file-find.c (find_a_file): Likewise.
27167 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
27168 with X_OK for the executables.
27169 * collect2.c (main): Call find_a_file with X_OK.
27170
27171 2013-06-19 Steve Ellcey <sellcey@mips.com>
27172
27173 PR target/56942
27174 * config/mips/mips.md (casesi_internal_mips16_<mode>):
27175 Use NEXT_INSN instead of next_real_insn.
27176
27177 2013-06-19 Jan Hubicka <jh@suse.cz>
27178
27179 * cgraph.h (const_value_known_p): Replace by ...
27180 (ctor_for_folding): .. this one.
27181 * cgraphunit.c (process_function_and_variable_attributes): Use it.
27182 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
27183 * expr.c (expand_expr_real_1): Likewise.
27184 (string_constant): Likewise.
27185 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
27186 * ipa.c (process_references): Likewise.
27187 (symtab_remove_unreachable_nodes): Likewise.
27188 * ipa-inline-analysis.c (param_change_prob): Likewise.
27189 * gimple-fold.c (canonicalize_constructor_val): Likewise.
27190 (get_base_constructor): Likwise.
27191 * varpool.c (varpool_remove_node): Likewise.
27192 (varpool_remove_initializer): LIkewise.
27193 (dump_varpool_node): LIkwise.
27194 (const_value_known_p): Rewrite to ...
27195 (ctor_for_folding): ... this one.
27196
27197 2013-06-19 Jakub Jelinek <jakub@redhat.com>
27198
27199 PR driver/57651
27200 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
27201 PERSONALITY in $PATH derived prefixes.
27202
27203 2013-06-19 Jeff Law <law@redhat.com>
27204
27205 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
27206 in comment.
27207
27208 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
27209 (simplify_bitwise_binary): Use it to simpify certain binary ops on
27210 booleans.
27211
27212 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
27213
27214 * config/arm/vfp.md: Move VFP instruction classification documentation
27215 to ...
27216 * config/arm/arm.md: ... here. Update instruction classification
27217 documentation.
27218
27219 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
27220
27221 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
27222 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
27223 pattern. Use more efficient sequences on ARMv5 and Thumb2.
27224
27225 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
27226
27227 PR target/57609
27228 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
27229 with NEXT_INSN. Use tablejump_p to check for jump table data
27230 insns.
27231
27232 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
27233
27234 PR c++/56544
27235 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
27236 that now in C++ the value is correct per the C++ standards.
27237
27238 2013-06-19 Richard Biener <rguenther@suse.de>
27239
27240 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
27241 for global context.
27242
27243 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27244
27245 Revert:
27246 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27247
27248 PR target/57609
27249 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
27250 with next_active_insn.
27251
27252 2013-06-18 Sriraman Tallam <tmsriram@google.com>
27253
27254 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
27255 functions are inlined during failures to flag an error.
27256 * tree-inline.c (expand_call_inline): Allow the error to be flagged
27257 in early inline pass.
27258
27259 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
27260
27261 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
27262 in comments.
27263
27264 2013-06-18 Julian Brown <julian@codesourcery.com>
27265
27266 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
27267 Permit virtual register pre-reload if !strict.
27268 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
27269 change.
27270 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
27271 prototype.
27272 * config/arm/neon.md (movmisalign<mode>): Use
27273 neon_perm_struct_or_reg_operand instead of
27274 neon_struct_or_register_operand.
27275 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
27276 neon_permissive_struct_operand instead of neon_struct_operand.
27277 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
27278 neon_vector_mem_operand.
27279 * config/arm/predicates.md (neon_struct_operand): Adjust call to
27280 neon_vector_mem_operand.
27281 (neon_permissive_struct_operand): New.
27282 (neon_struct_or_register_operand): Rename to...
27283 (neon_perm_struct_or_reg_operand): This. Adjust call to
27284 neon_vector_mem_operand.
27285
27286 2013-06-18 Richard Biener <rguenther@suse.de>
27287
27288 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
27289 * lto-streamer.h: Include pointer-set.h.
27290 (struct lto_decl_slot): Remove.
27291 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
27292 Remove next_index entry.
27293 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
27294 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
27295 (lto_init_tree_ref_encoder): Adjust.
27296 (lto_destroy_tree_ref_encoder): Likewise.
27297 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
27298 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
27299 (lto_output_decl_index): Adjust.
27300 (lto_new_out_decl_state): Likewise.
27301 (lto_record_function_out_decl_state): Likewise.
27302 * lto-streamer-out.c (copy_function): Likewise.
27303
27304 2013-06-18 Richard Biener <rguenther@suse.de>
27305
27306 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
27307 * cgraphunit.c: Include cfgloop.h.
27308 (init_lowered_empty_function): Initialize the loop tree.
27309 (assemble_thunk): Insert new BBs into loops.
27310
27311 2013-06-18 Richard Biener <rguenther@suse.de>
27312
27313 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
27314 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
27315 the map from cache entry to cache index optional.
27316 (streamer_tree_cache_replace_tree): Adjust accordingly.
27317 (streamer_tree_cache_append): Likewise.
27318 (streamer_tree_cache_delete): Likewise.
27319 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
27320 streamer cache map from cache entry to cache index.
27321 * lto-streamer-out.c (create_output_block): Adjust.
27322
27323 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
27324
27325 * config/arm/arm.md (attribute "insn"): Move multiplication and
27326 division attributes to...
27327 (attribute "type"): ... here. Remove mult.
27328 (attribute "mul32"): New attribute.
27329 (attribute "mul64"): Add umaal.
27330 (*arm_mulsi3): Update attributes.
27331 (*arm_mulsi3_v6): Likewise.
27332 (*thumb_mulsi3): Likewise.
27333 (*thumb_mulsi3_v6): Likewise.
27334 (*mulsi3_compare0): Likewise.
27335 (*mulsi3_compare0_v6): Likewise.
27336 (*mulsi_compare0_scratch): Likewise.
27337 (*mulsi_compare0_scratch_v6): Likewise.
27338 (*mulsi3addsi): Likewise.
27339 (*mulsi3addsi_v6): Likewise.
27340 (*mulsi3addsi_compare0): Likewise.
27341 (*mulsi3addsi_compare0_v6): Likewise.
27342 (*mulsi3addsi_compare0_scratch): Likewise.
27343 (*mulsi3addsi_compare0_scratch_v6): Likewise.
27344 (*mulsi3subsi): Likewise.
27345 (*mulsidi3adddi): Likewise.
27346 (*mulsi3addsi_v6): Likewise.
27347 (*mulsidi3adddi_v6): Likewise.
27348 (*mulsidi3_nov6): Likewise.
27349 (*mulsidi3_v6): Likewise.
27350 (*umulsidi3_nov6): Likewise.
27351 (*umulsidi3_v6): Likewise.
27352 (*umulsidi3adddi): Likewise.
27353 (*umulsidi3adddi_v6): Likewise.
27354 (*smulsi3_highpart_nov6): Likewise.
27355 (*smulsi3_highpart_v6): Likewise.
27356 (*umulsi3_highpart_nov6): Likewise.
27357 (*umulsi3_highpart_v6): Likewise.
27358 (mulhisi3): Likewise.
27359 (*mulhisi3tb): Likewise.
27360 (*mulhisi3bt): Likewise.
27361 (*mulhisi3tt): Likewise.
27362 (maddhisi4): Likewise.
27363 (*maddhisi4tb): Likewise.
27364 (*maddhisi4tt): Likewise.
27365 (maddhidi4): Likewise.
27366 (*maddhidi4tb): Likewise.
27367 (*maddhidi4tt): Likewise.
27368 (divsi3): Likewise.
27369 (udivsi3): Likewise.
27370 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
27371 (thumb2_mulsi_short_compare0): Likewise.
27372 (thumb2_mulsi_short_compare0_scratch): Likewise.
27373 * config/arm/arm1020e.md (1020mult1): Update attribute change.
27374 (1020mult2): Likewise.
27375 (1020mult3): Likewise.
27376 (1020mult4): Likewise.
27377 (1020mult5): Likewise.
27378 (1020mult6): Likewise.
27379 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
27380 change.
27381 (cortex_a15_mult64): Likewise.
27382 (cortex_a15_sdiv): Likewise.
27383 (cortex_a15_udiv): Likewise.
27384 * config/arm/arm1026ejs.md (mult1): Update attribute change.
27385 (mult2): Likewise.
27386 (mult3): Likewise.
27387 (mult4): Likewise.
27388 (mult5): Likewise.
27389 (mult6): Likewise.
27390 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
27391 (pj4_ir_div): Likewise.
27392 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
27393 (11_mult2): Likewise.
27394 (11_mult3): Likewise.
27395 (11_mult4): Likewise.
27396 (11_mult5): Likewise.
27397 (11_mult6): Likewise.
27398 (11_mult7): Likewise.
27399 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
27400 (cortex_a8_mla): Likewise.
27401 (cortex_a8_mull): Likewise.
27402 (cortex_a8_smulwy): Likewise.
27403 (cortex_a8_smlald): Likewise.
27404 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
27405 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
27406 (cortex_r4_mul_3): Likewise.
27407 (cortex_r4_mla_4): Likewise.
27408 (cortex_r4_mla_3): Likewise.
27409 (cortex_r4_smlald): Likewise.
27410 (cortex_r4_mull): Likewise.
27411 (cortex_r4_sdiv): Likewise.
27412 (cortex_r4_udiv): Likewise.
27413 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
27414 (cortex_a7_idiv): Likewise.
27415 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
27416 (9_mult2): Likewise.
27417 (9_mult3): Likewise.
27418 (9_mult4): Likewise.
27419 (9_mult5): Likewise.
27420 (9_mult6): Likewise.
27421 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
27422 (cortex_a53_sdiv): Likewise.
27423 (cortex_a53_udiv): Likewise.
27424 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
27425 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
27426 (mp626_mult2): Likewise.
27427 (mp626_mult3): Likewise.
27428 (mp626_mult4): Likewise.
27429 * config/arm/fa526.md (526_mult1): Update attribute change.
27430 (526_mult2): Likewise.
27431 * config/arm/arm-generic.md (mult): Update attribute change.
27432 (mult_ldsched_strongarm): Likewise.
27433 (mult_ldsched): Likewise.
27434 (multi_cycle): Likewise.
27435 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
27436 * config/arm/fa606te.md (606te_mult1): Update attribute change.
27437 (606te_mult2): Likewise.
27438 (606te_mult3): Likewise.
27439 (606te_mult4): Likewise.
27440 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
27441 (cortex_a9_mac16): Likewise.
27442 (cortex_a9_multiply): Likewise.
27443 (cortex_a9_mac): Likewise.
27444 (cortex_a9_multiply_long): Likewise.
27445 * config/arm/fa626te.md (626te_mult1): Update attribute change.
27446 (626te_mult2): Likewise.
27447 (626te_mult3): Likewise.
27448 (626te_mult4): Likewise.
27449
27450 2013-06-18 Richard Biener <rguenther@suse.de>
27451
27452 PR lto/57334
27453 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
27454
27455 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27456
27457 PR target/57609
27458 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
27459 with next_active_insn.
27460
27461 2013-06-18 Alan Modra <amodra@gmail.com>
27462
27463 * config/rs6000/rs6000.h (enum data_align): New.
27464 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
27465 (DATA_ABI_ALIGNMENT): Define.
27466 (CONSTANT_ALIGNMENT): Correct comment.
27467 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
27468 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
27469
27470 2013-06-17 David Malcolm <dmalcolm@redhat.com>
27471
27472 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
27473 ATTRIBUTE_UNUSED marking.
27474
27475 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
27476
27477 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
27478 alternative and update.
27479 (aarch64_dup_lanedi): Delete.
27480 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
27481 * config/aarch64/aarch64-simd-builtins.def: Update.
27482
27483 2013-06-17 Richard Biener <rguenther@suse.de>
27484
27485 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
27486 (lto_input_scc): Declare.
27487 (lto_input_tree_1): Likewise.
27488 (struct lto_stats_d): Add num_tree_bodies_output and
27489 num_pickle_refs_output.
27490 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
27491 (lto_read_tree_1): Split out from ...
27492 (lto_read_tree): ... this.
27493 (lto_input_scc): New function.
27494 (lto_input_tree_1): Split out from ...
27495 (lto_input_tree): ... this. Handle LTO_tree_scc.
27496 (lto_data_in_create): Create the streamer cache without hashes.
27497 * lto-streamer-out.c (create_output_block): Create the streamer
27498 cache with hashes when not doing WPA.
27499 (lto_write_tree_1): Split out from ...
27500 (lto_write_tree): ... this.
27501 (get_symbol_initial_value): New function.
27502 (lto_output_tree_1): Split out from ...
27503 (lto_output_tree): ... this. Write trees as series of SCCs
27504 using a DFS walk via DFS_write_tree.
27505 (struct sccs, struct scc_entry): New types.
27506 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
27507 (DFS_write_tree_body): New function.
27508 (DFS_write_tree): Likewise.
27509 (hash_tree): Likewise.
27510 (scc_entry_compare): Likewise.
27511 (hash_scc): Likewise.
27512 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
27513 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
27514 TREE_CHAIN as regular reference.
27515 (streamer_read_integer_cst): Remove.
27516 (streamer_get_pickled_tree): Adjust.
27517 * tree-streamer-out.c (streamer_write_chain): Disable streaming
27518 of DECL_EXTERNALs in BLOCK_VARS for now.
27519 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
27520 reference.
27521 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
27522 Add hash value argument and record that if hashes are recorded
27523 in the cache.
27524 (streamer_tree_cache_insert_1): Adjust.
27525 (streamer_tree_cache_insert): Likewise.
27526 (streamer_tree_cache_insert_at): Rename to ...
27527 (streamer_tree_cache_replace_tree): ... this and adjust.
27528 (streamer_tree_cache_append): Adjust.
27529 (record_common_node): Likewise.
27530 (streamer_tree_cache_create): Add argument whether to
27531 record hash values together with trees.
27532 (streamer_tree_cache_delete): Adjust.
27533 * tree-streamer.h (struct streamer_tree_cache_d): Add
27534 vector of hashes.
27535 (streamer_read_integer_cst): Remove.
27536 (streamer_tree_cache_insert): Adjust.
27537 (streamer_tree_cache_append): Likewise.
27538 (streamer_tree_cache_insert_at): Rename to ...
27539 (streamer_tree_cache_replace_tree): ... this and adjust.
27540 (streamer_tree_cache_create): Add argument whether to record hashes.
27541 (streamer_tree_cache_get): Rename to ...
27542 (streamer_tree_cache_get_tree): ... this.
27543 (streamer_tree_cache_get_hash): New function.
27544 * tree.c (cache_integer_cst): New function.
27545 * tree.h (cache_integer_cst): Declare.
27546 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
27547 * lto-symtab.c (lto_varpool_replace_node): Only release
27548 DECL_INITIAL of non-prevailing decls.
27549 * varpool.c (varpool_remove_initializer): Do not release
27550 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
27551
27552 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
27553
27554 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
27555 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
27556 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
27557 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
27558 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
27559 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
27560 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
27561 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
27562 instead of TARGET_64BIT.
27563 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
27564 Require ISA_HAS_<D>DIV.
27565
27566 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
27567
27568 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
27569 (mips*-*-linux*): Move default with_llsc setting to where other
27570 defaults are set.
27571 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
27572 with_arch block.
27573 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
27574 Likewise. Remove default with_tune setting. Move default float
27575 setting to its own block. Handle with_llsc in the same block as above.
27576
27577 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
27578
27579 PR rtl-optimization/57425
27580 PR rtl-optimization/57569
27581 * alias.c (write_dependence_p): Add new parameters mem_mode,
27582 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
27583 Changed all callers.
27584 (canon_anti_dependence): New function.
27585 * cse.c (check_dependence): Use canon_anti_dependence.
27586 * cselib.c (cselib_invalidate_mem): Likewise.
27587 * rtl.h (canon_anti_dependence): Declare.
27588
27589 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
27590
27591 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
27592 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
27593 ".set mips3" for 64-bit targets.
27594
27595 2013-06-15 Dehao Chen <dehao@google.com>
27596
27597 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
27598 * gimple-low.c (gimple_check_call_matching_types): Likewise.
27599 (gimple_check_call_args): Likewise.
27600 * value-prof.c (check_ic_target): Likewise.
27601 * ipa-inline.c (early_inliner): Likewise.
27602 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
27603 * cgraph.c (cgraph_create_edge_1): Likewise.
27604 (cgraph_make_edge_direct): Likewise.
27605
27606 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
27607
27608 PR target/57615
27609 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
27610 rs6000_output_move_128bit to handle emitting quad memory
27611 operations. Set attribute length to 8 bytes.
27612
27613 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
27614
27615 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
27616 New pattern.
27617 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
27618 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
27619 (aarch64_<su>mlsl<mode>): Likewise.
27620
27621 2013-06-14 Mike Stump <mikestump@comcast.net>
27622
27623 * Makefile.in (TARGET_H): Add insn-codes.h.
27624
27625 2013-06-14 Alan Modra <amodra@gmail.com>
27626
27627 PR middle-end/57134
27628 PR middle-end/57586
27629 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
27630 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
27631 bitfield expansion when EXPAND_MEMORY.
27632 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
27633
27634 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
27635
27636 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
27637 test for clearing quad memory on 32-bit later.
27638
27639 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
27640
27641 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
27642 (fold_negate_expr): Likewise.
27643 (fold_real_zero_addition_p): Handle vectors.
27644 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
27645
27646 2013-06-14 Alan Modra <amodra@gmail.com>
27647
27648 * varasm.c (force_const_mem): Revert 2013-06-07 change.
27649
27650 2013-06-13 Jan Hubicka <jh@suse.cz>
27651
27652 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
27653 Local comdats are not externally visible.
27654 * symtab.c (dump_symtab_base): Dump externally visible.
27655 (verify_symtab_base): Verify back links in the symtab hash.
27656
27657 2013-06-13 Bin Cheng <bin.cheng@arm.com>
27658
27659 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
27660 CONVERT_EXPR as equal nodes.
27661
27662 2013-06-13 Bin Cheng <bin.cheng@arm.com>
27663
27664 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
27665
27666 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
27667
27668 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
27669 Generalize to complex and vector.
27670 * tree.c (build_all_ones_cst): New function.
27671 * tree.h (build_all_ones_cst): Declare it.
27672
27673 2013-06-13 Alan Modra <amodra@gmail.com>
27674
27675 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
27676 * config/rs6000/rs6000.md (signbittf2): New insn.
27677 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
27678 (abstf2_internal, cmptf_internal2): Likewise.
27679 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
27680
27681 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
27682 Pat Haugen <pthaugen@us.ibm.com>
27683 Peter Bergner <bergner@vnet.ibm.com>
27684
27685 * config/rs6000/rs6000.c (emit_load_locked): Add support for
27686 power8 byte, half-word, and quad-word atomic instructions.
27687 (emit_store_conditional): Likewise.
27688 (rs6000_expand_atomic_compare_and_swap): Likewise.
27689 (rs6000_expand_atomic_op): Likewise.
27690
27691 * config/rs6000/sync.md (larx): Add new modes for power8.
27692 (stcx): Likewise.
27693 (AINT): New mode iterator to include TImode as well as normal
27694 integer modes on power8.
27695 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
27696 that VSX registers are not considered. Use AINT mode iterator
27697 instead of INT1 to allow inclusion of quad word atomic operations
27698 on power8.
27699 (load_locked<mode>): Likewise.
27700 (store_conditional<mode>): Likewise.
27701 (atomic_compare_and_swap<mode>): Likewise.
27702 (atomic_exchange<mode>): Likewise.
27703 (atomic_nand<mode>): Likewise.
27704 (atomic_fetch_<fetchop_name><mode>): Likewise.
27705 (atomic_nand_fetch<mode>): Likewise.
27706 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
27707 each type.
27708 (ATOMIC): On power8, add QImode, HImode modes.
27709 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
27710 modes that promote to SImode.
27711 (load_lockedti): Convert TImode arguments to PTImode, so that we
27712 get a guaranteed even/odd register pair.
27713 (load_lockedpti): Likewise.
27714 (store_conditionalti): Likewise.
27715 (store_conditionalpti): Likewise.
27716
27717 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
27718 atomic load/store instructions.
27719 (HSI): Likewise.
27720
27721 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
27722
27723 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
27724 loads.
27725 (insn_count): New attribute, with most cases extracted from...
27726 (length): ...here. Redefine most cases in terms of insn_count.
27727 (single_insn): Delete.
27728 (can_delay): Use insn_count to check for single instructions.
27729 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
27730 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
27731 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
27732 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
27733 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
27734 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
27735 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
27736 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
27737 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
27738 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
27739 rather than "length".
27740 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
27741 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
27742 Use "insn_count" rather than "length".
27743 * config/mips/mips-dsp.md
27744 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
27745 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
27746 length attributes.
27747
27748 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
27749
27750 PR tree-optimization/57361
27751 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
27752
27753 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
27754
27755 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
27756 to split.
27757 (aarch64_simd_combine<mode>): New instruction expansion.
27758 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
27759 function prototype.
27760 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
27761 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
27762
27763 2013-06-12 Jan Hubicka <jh@suse.cz>
27764
27765 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
27766 decl has when in streaming stage.
27767 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
27768 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
27769
27770 2013-06-12 Roland Stigge <stigge@antcom.de>
27771
27772 PR target/57578
27773 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
27774
27775 2013-06-12 Jakub Jelinek <jakub@redhat.com>
27776
27777 PR tree-optimization/57537
27778 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
27779 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
27780
27781 2013-06-12 Richard Biener <rguenther@suse.de>
27782
27783 * data-streamer.h (streamer_write_char_stream): CSE
27784 obs->current_pointer.
27785 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
27786 streamer_write_char_stream manually and optimize the resulting loop.
27787 (streamer_write_hwi_stream): Likewise.
27788
27789 2013-06-12 Jan Hubicka <jh@suse.cz>
27790
27791 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
27792 * cgraph.h (varpool_create_empty_node): Declare.
27793 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
27794 duplicated nodes.
27795 * symtab.c (symtab_unregister_node): Be lax about missin entries
27796 in node hash.
27797 (symtab_get_node): Update comment.
27798 * varpool.c (varpool_create_empty_node): Break out from ...
27799 (varpool_node_for_decl): ... here.
27800 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
27801
27802 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
27803
27804 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
27805 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
27806 part. Use straight-line flow at the end.
27807 <COMPONENT_REF>: Remove superfluous else.
27808 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
27809
27810 2013-06-12 Jakub Jelinek <jakub@redhat.com>
27811
27812 PR target/56564
27813 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
27814 target hook even for !TREE_PUBLIC decls. If no resolution info
27815 is available, return false for common and external decls.
27816
27817 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27818
27819 * config/rl78/constraints.md (U): New constraint.
27820 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
27821 valloc attribute.
27822
27823 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
27824
27825 PR target/57589
27826 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
27827 to allow returning address to AT_PLATFORM name.
27828
27829 2013-06-11 Jan Hubicka <jh@suse.cz>
27830
27831 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
27832 * cgraph.h (symtab_node_base): Add weakref flag.
27833 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
27834 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
27835 (output_weakrefs): Use weakref flag.
27836 * fold-const.c (simple_operand_p): Handle WEAK.
27837 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
27838 * ipa.c (varpool_externally_visible_p): Drop weakref.
27839 (function_and_variable_visibility): Update comment; fix weakref
27840 sanity checks; do not clear DECL_WEAK on them.
27841 * lto-cgraph.c (lto_output_node): update.
27842 (lto_output_varpool_node): Update.
27843 (input_overwrite_node): Update.
27844 (input_node): Update.
27845 (input_varpool_node): Update.
27846 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
27847 (lto_symtab_merge_symbols): Add sanity check.
27848 (lto_symtab_prevailing_decl): Do not special case weakrefs.
27849 * passes.c (rest_of_decl_compilation): Set static flag, too.
27850 * symtab.c (dump_symtab_base): Dump weakref.
27851 (verify_symtab_base): Sanity check weakrefs.
27852 (symtab_make_decl_local): Remove duplicated code.
27853 (symtab_alias_ultimate_target): Simplify.
27854 * varpool.c (varpool_create_variable_alias): Set weakref flag.
27855
27856 2013-06-11 Tom de Vries <tom@codesourcery.com>
27857
27858 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
27859 sequence_vect == NULL.
27860
27861 2013-06-11 DJ Delorie <dj@redhat.com>
27862
27863 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
27864 (rl78_unwind_word_mode): New.
27865
27866 2013-06-11 David Malcolm <dmalcolm@redhat.com>
27867
27868 * final.c (debug_prefix_maps): Make static.
27869
27870 2013-06-11 David Malcolm <dmalcolm@redhat.com>
27871
27872 * function.c (initial_trampoline): Remove stray copy.
27873
27874 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
27875
27876 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
27877
27878 2013-06-11 Martin Jambor <mjambor@suse.cz>
27879
27880 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
27881 within bounds at the beginning of the function.
27882
27883 2013-06-11 Alan Modra <amodra@gmail.com>
27884
27885 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
27886 reporting.
27887 (get_named_section): Don't NULL !DECL_P decl.
27888
27889 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
27890
27891 * doc/invoke.texi (core-avx2): Document.
27892 (slm): Likewise.
27893 (atom): Updated with MOVBE.
27894
27895 2013-06-11 Richard Biener <rguenther@suse.de>
27896
27897 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
27898
27899 2013-06-11 Anton Blanchard <anton@samba.org>
27900
27901 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
27902 correct shift value in little-endian mode.
27903
27904 2013-06-11 Jakub Jelinek <jakub@redhat.com>
27905
27906 PR target/56564
27907 * varasm.c (get_variable_align): Move #endif to the right place.
27908
27909 2013-06-10 Cary Coutant <ccoutant@google.com>
27910
27911 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
27912 for hash so that hash table traversal order is deterministic.
27913
27914 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
27915 Pat Haugen <pthaugen@us.ibm.com>
27916 Peter Bergner <bergner@vnet.ibm.com>
27917
27918 * config/rs6000/vector.md (GPR move splitter): Do not split moves
27919 of vectors in GPRS if they are direct moves or quad word load or
27920 store moves.
27921
27922 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
27923 declaration.
27924 (direct_move_p): Likewise.
27925 (quad_load_store_p): Likewise.
27926
27927 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
27928 classes into bins based on the physical register type.
27929 (reg_class_to_reg_type): Likewise.
27930 (IS_STD_REG_TYPE): Likewise.
27931 (IS_FP_VECT_REG_TYPE): Likewise.
27932 (reload_fpr_gpr): Arrays to determine what insn to use if we can
27933 use direct move instructions.
27934 (reload_gpr_vsx): Likewise.
27935 (reload_vsx_gpr): Likewise.
27936 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
27937 information that is a simplification of register classes. Also
27938 precalculate direct move reload helpers.
27939 (direct_move_p): New function to return true if the operation can
27940 be done as a direct move instruciton.
27941 (quad_load_store_p): New function to return true if the operation
27942 is a quad memory operation.
27943 (rs6000_legitimize_address): If quad memory, only allow register
27944 indirect for TImode addresses.
27945 (rs6000_legitimate_address_p): Likewise.
27946 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
27947 (rs6000_reload_register_type): Likewise.
27948 (register_to_reg_type): Return register type.
27949 (rs6000_secondary_reload_simple_move): New helper function for
27950 secondary reload and secondary memory needed to identify anything
27951 that is a simple move, and does not need reloading.
27952 (rs6000_secondary_reload_direct_move): New helper function for
27953 secondary reload to identify cases that can be done with several
27954 instructions via the direct move instructions.
27955 (rs6000_secondary_reload_move): New helper function for secondary
27956 reload to identify moves between register types that can be done.
27957 (rs6000_secondary_reload): Add support for quad memory operations
27958 and for direct move.
27959 (rs6000_secondary_memory_needed): Likewise.
27960 (rs6000_debug_secondary_memory_needed): Change argument names.
27961 (rs6000_output_move_128bit): New function to return the move to
27962 use for 128-bit moves, including knowing about the various
27963 limitations of quad memory operations.
27964
27965 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
27966 memory operations. call rs6000_output_move_128bit for the actual
27967 instruciton(s) to generate.
27968 (vsx_movti_64bit): Likewise.
27969
27970 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
27971 (UNSPEC_P8V_MTVSRWZ): Likewise.
27972 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
27973 (UNSPEC_P8V_MTVSRD): Likewise.
27974 (UNSPEC_P8V_XXPERMDI): Likewise.
27975 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
27976 (UNSPEC_FUSION_GPR): Likewise.
27977 (FMOVE128_GPR): New iterator for direct move.
27978 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
27979 (f32_sv): Likewise.
27980 (f32_dm): Likewise.
27981 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
27982 loads and direct move instructions.
27983 (zero_extendsidi2_lfiwzx): Likewise.
27984 (extendsidi2_lfiwax): Likewise.
27985 (extendsidi2_nocell): Likewise.
27986 (floatsi<mode>2_lfiwax): Likewise.
27987 (lfiwax): Likewise.
27988 (floatunssi<mode>2_lfiwzx): Likewise.
27989 (lfiwzx): Likewise.
27990 (fix_trunc<mode>_stfiwx): Likewise.
27991 (fixuns_trunc<mode>_stfiwx): Likewise.
27992 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
27993 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
27994 (parity<mode>2_cmpb): Set length/type attr.
27995 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
27996 for 'mr.' to fast_compare.
27997 (bpermd_<mode>): Change type attr to popcnt.
27998 (p8_fmrgow_<mode>): New insns for power8 direct move support.
27999 (p8_mtvsrwz_1): Likewise.
28000 (p8_mtvsrwz_2): Likewise.
28001 (reload_fpr_from_gpr<mode>): Likewise.
28002 (p8_mtvsrd_1): Likewise.
28003 (p8_mtvsrd_2): Likewise.
28004 (p8_xxpermdi_<mode>): Likewise.
28005 (reload_vsx_from_gpr<mode>): Likewise.
28006 (reload_vsx_from_gprsf): Likewise.
28007 (p8_mfvsrd_3_<mode>): LIkewise.
28008 (reload_gpr_from_vsx<mode>): Likewise.
28009 (reload_gpr_from_vsxsf): Likewise.
28010 (p8_mfvsrd_4_disf): Likewise.
28011 (multi-word GPR splits): Do not split direct moves or quad memory
28012 operations.
28013
28014 2013-06-10 David Malcolm <dmalcolm@redhat.com>
28015
28016 * tree-into-ssa.c (interesting_blocks): Make static.
28017
28018 2013-06-10 Jakub Jelinek <jakub@redhat.com>
28019
28020 PR target/56564
28021 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
28022 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
28023 Use DATA_ABI_ALIGNMENT for that case instead if defined.
28024 (get_variable_align): New function.
28025 (get_variable_section, emit_bss, emit_common,
28026 assemble_variable_contents, place_block_symbol): Use
28027 get_variable_align instead of DECL_ALIGN.
28028 (assemble_noswitch_variable): Add align argument, use it
28029 instead of DECL_ALIGN.
28030 (assemble_variable): Adjust caller. Use get_variable_align
28031 instead of DECL_ALIGN.
28032 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
28033 caller.
28034 (DATA_ABI_ALIGNMENT): Define.
28035 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
28036 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
28037 opt is false, only return the psABI mandated alignment increase.
28038 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
28039 (DATA_ABI_ALIGNMENT): ... this.
28040 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
28041 (DATA_ABI_ALIGNMENT): ... this.
28042 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
28043 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
28044 (DATA_ABI_ALIGNMENT): ... this.
28045 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
28046 * doc/tm.texi: Regenerated.
28047
28048 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
28049
28050 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
28051 cmp_code to construct REG_EQUAL note.
28052
28053 2013-06-09 Jakub Jelinek <jakub@redhat.com>
28054
28055 PR target/57568
28056 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
28057 that operands[2] doesn't overlap with operands[0].
28058
28059 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
28060 Jan Hubicka <jh@suse.cz>
28061
28062 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
28063 hack to mark symbols as used.
28064
28065 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
28066
28067 PR rtl-optimization/57559
28068 * lra-constraints.c (process_alt_operands): Don't discourage
28069 memory with known offset for offsetable memory constraint.
28070 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
28071
28072 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
28073
28074 * varasm.c (struct oc_local_state): Reorder fields.
28075 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
28076 and adjust accordingly.
28077 (output_constructor): Reorder initialization code and adjust call to
28078 output_constructor_bitfield.
28079
28080 2013-06-07 Jan Hubicka <jh@suse.cz>
28081
28082 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
28083
28084 2013-06-07 David Malcolm <dmalcolm@redhat.com>
28085
28086 * tree-object-size.c (unknown): Make const.
28087
28088 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28089
28090 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
28091 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
28092 for last alternative in the cpu_facility attribute.
28093
28094 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28095
28096 PR target/56315
28097 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
28098 (xordi3): Change operand 2 constraint to arm_xordi_operand.
28099 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
28100 * config/arm/constraints.md (Dg): New constraint.
28101 * config/arm/neon.md (xordi3_neon): Remove.
28102 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
28103 * config/arm/predicates.md (arm_xordi_operand): New predicate.
28104
28105 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28106
28107 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
28108 Clean up alternatives.
28109
28110 2013-06-07 Alan Modra <amodra@gmail.com>
28111
28112 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
28113 va_list_gpr_size.
28114
28115 2013-06-07 Alan Modra <amodra@gmail.com>
28116
28117 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
28118
28119 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28120
28121 * config/arm/constraints.md (Df): New constraint.
28122 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
28123 Correct length attribute for last two alternatives.
28124
28125 2013-06-07 Alan Modra <amodra@gmail.com>
28126
28127 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
28128 override user -mfp-in-toc.
28129 (offsettable_ok_by_alignment): Consider just the current access
28130 rather than the whole object, unless BLKmode. Handle
28131 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
28132 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
28133 for -mcmodel=medium.
28134 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
28135 override user -mfp-in-toc or -msum-in-toc. Default to
28136 -mno-fp-in-toc for -mcmodel=medium.
28137
28138 2013-06-06 DJ Delorie <dj@redhat.com>
28139
28140 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
28141 TARGET_VALID_POINTER_MODE.
28142
28143 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
28144 Pat Haugen <pthaugen@us.ibm.com>
28145 Peter Bergner <bergner@vnet.ibm.com>
28146
28147 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
28148 Document new power8 builtins.
28149
28150 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
28151 condition code register, to allow 128-bit logical operations to be
28152 done in the VSX or GPR registers.
28153 (nor<mode>3): Use the canonical form for nor.
28154 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
28155 vclz*, and vpopcnt* vector instructions.
28156 (nand<mode>3): Likewise.
28157 (orc<mode>3): Likewise.
28158 (clz<mode>2): LIkewise.
28159 (popcount<mode>2): Likewise.
28160
28161 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
28162 that only the GPRs are recognized.
28163
28164 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
28165 support for new power8 builtins.
28166
28167 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
28168 builtin functions.
28169 (xscvdpspn): Likewise.
28170 (vclz): Likewise.
28171 (vclzb): Likewise.
28172 (vclzh): Likewise.
28173 (vclzw): Likewise.
28174 (vclzd): Likewise.
28175 (vpopcnt): Likewise.
28176 (vpopcntb): Likewise.
28177 (vpopcnth): Likewise.
28178 (vpopcntw): Likewise.
28179 (vpopcntd): Likewise.
28180 (vgbbd): Likewise.
28181 (vmrgew): Likewise.
28182 (vmrgow): Likewise.
28183 (eqv): Likewise.
28184 (eqv_v16qi3): Likewise.
28185 (eqv_v8hi3): Likewise.
28186 (eqv_v4si3): Likewise.
28187 (eqv_v2di3): Likewise.
28188 (eqv_v4sf3): Likewise.
28189 (eqv_v2df3): Likewise.
28190 (nand): Likewise.
28191 (nand_v16qi3): Likewise.
28192 (nand_v8hi3): Likewise.
28193 (nand_v4si3): Likewise.
28194 (nand_v2di3): Likewise.
28195 (nand_v4sf3): Likewise.
28196 (nand_v2df3): Likewise.
28197 (orc): Likewise.
28198 (orc_v16qi3): Likewise.
28199 (orc_v8hi3): Likewise.
28200 (orc_v4si3): Likewise.
28201 (orc_v2di3): Likewise.
28202 (orc_v4sf3): Likewise.
28203 (orc_v2df3): Likewise.
28204
28205 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
28206 allow power8 quad mode in 64-bit.
28207 (rs6000_builtin_vectorized_function): Add support to vectorize
28208 ISA 2.07 count leading zeros, population count builtins.
28209 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
28210 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
28211 (builtin_function_type): Add vgbbd builtin function which takes an
28212 unsigned argument.
28213 (altivec_expand_vec_perm_const): Add support for new power8 merge
28214 instructions.
28215
28216 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
28217 that does not include TImdoe for use with 32-bit.
28218 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
28219 instructions.
28220 (UNSPEC_VSX_CVDPSPN): Likewise.
28221 (vsx_xscvdpspn): Likewise.
28222 (vsx_xscvspdpn): Likewise.
28223 (vsx_xscvdpspn_scalar): Likewise.
28224 (vsx_xscvspdpn_directmove): Likewise.
28225 (vsx_and<mode>3): Split logical operations into 32-bit and
28226 64-bit. Add support to do logical operations on TImode as well as
28227 VSX vector types. Allow logical operations to be done in either
28228 VSX registers or in general purpose registers in 64-bit mode. Add
28229 splitters if GPRs were used. For AND, add clobber of CCmode to
28230 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
28231 encoding.
28232 (vsx_and<mode>3_32bit): Likewise.
28233 (vsx_and<mode>3_64bit): Likewise.
28234 (vsx_ior<mode>3): Likewise.
28235 (vsx_ior<mode>3_32bit): Likewise.
28236 (vsx_ior<mode>3_64bit): Likewise.
28237 (vsx_xor<mode>3): Likewise.
28238 (vsx_xor<mode>3_32bit): Likewise.
28239 (vsx_xor<mode>3_64bit): Likewise.
28240 (vsx_one_cmpl<mode>2): Likewise.
28241 (vsx_one_cmpl<mode>2_32bit): Likewise.
28242 (vsx_one_cmpl<mode>2_64bit): Likewise.
28243 (vsx_nor<mode>3): Likewise.
28244 (vsx_nor<mode>3_32bit): Likewise.
28245 (vsx_nor<mode>3_64bit): Likewise.
28246 (vsx_andc<mode>3): Likewise.
28247 (vsx_andc<mode>3_32bit): Likewise.
28248 (vsx_andc<mode>3_64bit): Likewise.
28249 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
28250 and xxlorc instructions.
28251 (vsx_eqv<mode>3_64bit): Likewise.
28252 (vsx_nand<mode>3_32bit): Likewise.
28253 (vsx_nand<mode>3_64bit): Likewise.
28254 (vsx_orc<mode>3_32bit): Likewise.
28255 (vsx_orc<mode>3_64bit): Likewise.
28256
28257 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
28258
28259 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
28260 instruction.
28261 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
28262 (p8_vmrgow): Likewise.
28263 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
28264 GPRs to be split under VSX.
28265 (p8v_clz<mode>2): Add power8 count leading zero support.
28266 (p8v_popcount<mode>2): Add power8 population count support.
28267 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
28268 support.
28269
28270 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
28271 instruction.
28272
28273 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
28274 builtin functions.
28275 (vec_nand): Likewise.
28276 (vec_vclz): Likewise.
28277 (vec_vclzb): Likewise.
28278 (vec_vclzd): Likewise.
28279 (vec_vclzh): Likewise.
28280 (vec_vclzw): Likewise.
28281 (vec_vgbbd): Likewise.
28282 (vec_vmrgew): Likewise.
28283 (vec_vmrgow): Likewise.
28284 (vec_vpopcnt): Likewise.
28285 (vec_vpopcntb): Likewise.
28286 (vec_vpopcntd): Likewise.
28287 (vec_vpopcnth): Likewise.
28288 (vec_vpopcntw): Likewise.
28289
28290 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
28291
28292 PR rtl-optimization/57468
28293 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
28294 spilled pseudos.
28295
28296 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
28297
28298 PR rtl-optimization/57459
28299 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
28300 type when setting live regs.
28301
28302 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
28303
28304 * config/s390/s390.opt (mlra): New option.
28305 * config/s390/s390.c (s390_decompose_address): Check displacement
28306 for all registers for LRA.
28307 (s390_secondary_reload): Don't used secondary reloads for LRA.
28308 (s390_lra_p): New function.
28309 (TARGET_LRA_P): Define.
28310 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
28311 of attribute cpu_facility to zarch for the last alternative.
28312 (*cmpmem_short): Ditto.
28313
28314 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
28315
28316 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
28317 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
28318 (arm_expand_prologue): Likewise.
28319
28320 2013-06-06 Teresa Johnson <tejohnson@google.com>
28321
28322 PR c++/53743
28323 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
28324 as this is now done by redirect_edge_and_branch_force.
28325 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
28326 barriers, and fix interaction with splitting.
28327 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
28328 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
28329 reflect changes made in the routine.
28330 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
28331 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
28332 since this is called in cfglayout mode, and replace partition fixup
28333 with assert as that is now done by force_nonfallthru_and_redirect.
28334 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
28335 already be marked with region crossing note.
28336 (insert_section_boundary_note): Make non-static, gate on flag
28337 has_bb_partition, rewrite to also check for multiple partitions.
28338 (rest_of_handle_reorder_blocks): Remove call to
28339 insert_section_boundary_note, now done later during free_cfg.
28340 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
28341 * bb-reorder.h (insert_section_boundary_note): Declare.
28342 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
28343 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
28344 invoke insert_section_boundary_note.
28345 (try_redirect_by_replacing_jump): Remove unnecessary
28346 check for region crossing note.
28347 (fixup_partition_crossing): New function.
28348 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
28349 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
28350 in non-cfglayout mode.
28351 (force_nonfallthru_and_redirect): Fixup partition boundaries,
28352 remove old code that tried to do this. Emit barrier correctly
28353 when we are in cfglayout mode.
28354 (last_bb_in_partition): New function.
28355 (rtl_split_edge): Correctly fixup partition boundaries.
28356 (commit_one_edge_insertion): Remove old code that tried to
28357 fixup region crossing edge since this is now handled in
28358 split_block, and set up insertion point correctly since
28359 block may now end in a jump.
28360 (verify_hot_cold_block_grouping): Guard against checking when not in
28361 linearized RTL mode.
28362 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
28363 notes.
28364 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
28365 rtl_verify_flow_info, so not called in cfglayout mode.
28366 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
28367 (fixup_reorder_chain): Remove old code that attempted to fixup region
28368 crossing note as this is now handled in force_nonfallthru_and_redirect.
28369 (duplicate_insn_chain): Don't duplicate switch section notes.
28370 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
28371 note.
28372 * basic-block.h (emit_barrier_after_bb): Declare.
28373
28374 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28375
28376 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
28377 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
28378 arm_usatsihi): Adjust alternatives for arm_restrict_it.
28379
28380 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28381
28382 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
28383 where appropriate.
28384 * config/arm/ldmstm.md: Regenerate.
28385
28386 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28387
28388 * config/arm/sync.md (atomic_loaddi_1):
28389 Disable predication for arm_restrict_it.
28390 (arm_load_exclusive<mode>): Likewise.
28391 (arm_load_exclusivesi): Likewise.
28392 (arm_load_exclusivedi): Likewise.
28393 (arm_load_acquire_exclusive<mode>): Likewise.
28394 (arm_load_acquire_exclusivesi): Likewise.
28395 (arm_load_acquire_exclusivedi): Likewise.
28396 (arm_store_exclusive<mode>): Likewise.
28397 (arm_store_exclusive<mode>): Likewise.
28398 (arm_store_release_exclusivedi): Likewise.
28399 (arm_store_release_exclusive<mode>): Likewise.
28400
28401 2013-06-06 Richard Biener <rguenther@suse.de>
28402
28403 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
28404 after LTO_null.
28405 (lto_tag_is_tree_code_p): Adjust.
28406 (lto_tag_is_gimple_code_p): Likewise.
28407 (lto_gimple_code_to_tag): Likewise.
28408 (lto_tag_to_gimple_code): Likewise.
28409 (lto_tree_code_to_tag): Likewise.
28410 (lto_tag_to_tree_code): Likewise.
28411 * data-streamer.h (streamer_write_hwi_in_range): Use
28412 uhwi streaming to stream the normalized range.
28413 (streamer_read_hwi_in_range): Likewise.
28414
28415 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28416
28417 * config/arm/arm.md (enabled_for_depr_it): New attribute.
28418 (predicable_short_it): Likewise.
28419 (predicated): Likewise.
28420 (enabled): Handle above.
28421 (define_cond_exec): Set predicated attribute to yes.
28422
28423 2013-06-05 Mike Stump <mikestump@comcast.net>
28424
28425 * gdbinit.in (__FUNCTION__): Add.
28426
28427 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
28428
28429 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
28430 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
28431
28432 2013-06-05 Jan Hubicka <jh@suse.cz>
28433
28434 * varasm.c (mark_decl_referenced): Revert the removal until targets
28435 are fixed.
28436
28437 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
28438
28439 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
28440 instead of mark_decl_referenced.
28441
28442 2013-06-05 Jan Hubicka <jh@suse.cz>
28443
28444 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
28445 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
28446 and symtab_used_from_object_file_p.
28447 (cgraph_make_node_local_1): Clear forced_by_abi.
28448 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
28449 * cgraph.h (symtab_node_base): Add forced_by_abi.
28450 (decide_is_variable_needed): Remove.
28451 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
28452 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
28453 (decide_is_symbol_needed): ... this one; handle symbols in general;
28454 always analyze virtuals; honnor forced_by_abi.
28455 (cgraph_finalize_function): Update.
28456 (varpool_finalize_decl): Update.
28457 (symbol_defined_and_needed): Remove.
28458 (analyze_functions): Update.
28459 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
28460 output_refs, input_overwrite_node): Handle forced_by_abi.
28461 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
28462 (address_taken_from_non_vtable_p): ... this one.
28463 (comdat_can_be_unshared_p_1): New function.
28464 (cgraph_comdat_can_be_unshared_p): Rename to ...
28465 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
28466 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
28467 (function_and_variable_visibility): Clear forced_by_abi as needed.
28468 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
28469 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
28470 * symtab.c (dump_symtab_base): Dump forced_by_abi.
28471 * varpool.c (decide_is_variable_needed): Remove.
28472
28473 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28474
28475 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
28476 (arm_option_override): Override arm_restrict_it where appropriate.
28477 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
28478 * config/arm/arm.opt (mrestrict-it): New command-line option.
28479 * doc/invoke.texi: Document -mrestrict-it.
28480
28481 2013-06-05 David Malcolm <dmalcolm@redhat.com>
28482
28483 * tsan.c (tsan_atomic_table): Make const.
28484
28485 2013-06-05 Richard Biener <rguenther@suse.de>
28486
28487 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
28488 index associated with the tree we are supposed to replace.
28489 * tree-streamer-out.c (pack_ts_base_value_fields): Output
28490 TREE_ASM_WRITTEN as zero for everything but SSA names.
28491
28492 2013-06-05 David Malcolm <dmalcolm@redhat.com>
28493
28494 * tree-ssa-structalias.c (call_stmt_vars): Make static.
28495
28496 2013-06-04 Jan Hubicka <jh@suse.cz>
28497
28498 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
28499 (input_node, input_varpool_node): Handle correctly external same
28500 body aliases.
28501 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
28502 nodes at ltrans stage.
28503
28504 2013-06-04 Jan Hubicka <jh@suse.cz>
28505
28506 * ipa-inline.c (update_caller_keys): Fix availability test.
28507 (update_callee_keys): Likewise.
28508 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
28509 to follow ELF standard.
28510
28511 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
28512
28513 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
28514 (mips64r5900el-*-elf*): New configurations.
28515 * config/mips/mips-cpus.def (r5900): New processor.
28516 * config/mips/mips-tables.opt: Regenerate.
28517 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
28518 (mips_issue_rate): Handle PROCESSOR_R5900.
28519 (mips_reorg_process_insns): Force reorder mode for the R5900.
28520 * config/mips/mips.h (TARGET_MIPS5900): Define.
28521 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
28522 TARGET_MIPS5900.
28523 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
28524 TARGET_MIPS5900.
28525 * config/mips/mips.md (processor): Add r5900.
28526 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
28527
28528 2013-06-04 Ian Bolton <ian.bolton@arm.com>
28529
28530 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
28531 into function to generate MOVI instruction.
28532 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
28533 (aarch64_preferred_simd_mode): Turn into wrapper.
28534 (aarch64_output_scalar_simd_mov_immediate): New function.
28535 * config/aarch64/aarch64-protos.h: Add prototype for above.
28536
28537 2013-06-04 Ian Bolton <ian.bolton@arm.com>
28538
28539 * config/aarch64/aarch64.c (simd_immediate_info): Remove
28540 element_char member.
28541 (sizetochar): Return signed char.
28542 (aarch64_simd_valid_immediate): Remove elchar and other
28543 unnecessary variables.
28544 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
28545 Calculate element_char as required.
28546 * config/aarch64/aarch64-protos.h: Update and move prototype
28547 for aarch64_output_simd_mov_immediate.
28548 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
28549 Update arguments.
28550
28551 2013-06-04 Ian Bolton <ian.bolton@arm.com>
28552
28553 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
28554 information completed by aarch64_simd_valid_immediate.
28555 (aarch64_legitimate_constant_p): Update arguments.
28556 (aarch64_simd_valid_immediate): Work with struct rather than many
28557 pointers.
28558 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
28559 (aarch64_simd_make_constant): Update arguments.
28560 (aarch64_output_simd_mov_immediate): Work with struct rather than
28561 many pointers. Output immediate directly rather than as operand.
28562 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
28563 Update prototype.
28564 * config/aarch64/constraints.md (Dn): Update arguments.
28565
28566 2013-06-04 Ian Bolton <ian.bolton@arm.com>
28567
28568 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
28569 longer static.
28570 (aarch64_simd_immediate_valid_for_move): Remove.
28571 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
28572 (aarch64_simd_make_constant): Update call.
28573 (aarch64_output_simd_mov_immediate): Update call.
28574 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
28575 Add prototype.
28576 * config/aarch64/constraints.md (Dn): Update call.
28577
28578 2013-06-04 Ian Bolton <ian.bolton@arm.com>
28579
28580 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
28581 return type to bool for prototype.
28582 (aarch64_legitimate_constant_p): Check for true instead of not -1.
28583 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
28584 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
28585
28586 2013-06-04 Catherine Moore <clm@codesourcery.com>
28587
28588 * config/mips/mips.opt (meva): New.
28589 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
28590 (ASM_SPEC): Handle -meva.
28591 * doc/invoke.texi (meva): Document.
28592
28593 2013-06-04 Alan Modra <amodra@gmail.com>
28594
28595 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
28596 constant output.
28597
28598 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28599
28600 * rtl.def: Add extra fourth optional field to define_cond_exec.
28601 * gensupport.c (process_one_cond_exec): Process attributes from
28602 define_cond_exec.
28603 * doc/md.texi: Document fourth field in define_cond_exec.
28604
28605 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
28606
28607 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
28608 out the processing order as in store_bit_field_1.
28609
28610 2013-06-04 Jan Hubicka <jh@suse.cz>
28611
28612 PR middle-end/57500
28613 * cgraphunit.c (cgraph_process_same_body_aliases): Create
28614 non-VAR_DECL node if it does not exist yet.
28615
28616 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
28617
28618 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
28619 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
28620 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
28621 target_cpu_default setting.
28622
28623 2013-06-03 Teresa Johnson <tejohnson@google.com>
28624
28625 * dumpfile.c (opt_info_switch_p): Change -fopt-info
28626 default to -fopt-info=optimized instead of all.
28627 * doc/invoke.texi: Ditto.
28628 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
28629 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
28630 (execute_vect_slp): Emit BB vectorization success under
28631 MSG_OPTIMIZED_LOCATIONS.
28632 * tree-vect-slp.c (vect_slp_transform_bb): Change
28633 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
28634 * tree-vect-loop.c (vect_transform_loop): Ditto.
28635
28636 2013-06-03 Jason Merrill <jason@redhat.com>
28637
28638 PR c++/57415
28639 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28640 Use TARGET_EXPR for C++.
28641
28642 2013-06-03 Jakub Jelinek <jakub@redhat.com>
28643
28644 PR rtl-optimization/57268
28645 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
28646 if DEBUG_INSN_P (insn).
28647
28648 Reapply
28649 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
28650
28651 PR rtl-optimization/57268
28652 * sched-deps.c (sched_analyze_2): Flush dependence lists if
28653 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
28654
28655 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
28656
28657 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
28658 (ix86_avoid_lea_for_addr): Likewise.
28659 (exact_dependency_1): Likewise.
28660 (ix86_adjust_cost): Likewise.
28661 (swap_top_of_ready_list): Fix formatting and !reload_completed check
28662 removed.
28663 (do_reorder_for_imul): Fix typo, formatting and
28664 !reload_completed check removed.
28665 (ix86_sched_reorder): Fix typo and formatting.
28666 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
28667 list.
28668
28669 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
28670
28671 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
28672
28673 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
28674
28675 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
28676 <STRING_CST>: Likewise.
28677 <VECTOR_CST>: Likewise.
28678
28679 2013-06-01 Janus Weil <janus@gcc.gnu.org>
28680 Mikael Morin <mikael@gcc.gnu.org>
28681
28682 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
28683 * config.in: Regenerated.
28684 * configure: Regenerated.
28685
28686 2013-06-01 Jan Hubicka <jh@suse.cz>
28687
28688 PR middle-end/57366
28689 * cgraphunit.c (compile): When weakref is not supported,
28690 set up transparent aliases before final output pass.
28691 * varasm.c (assemble_alias): Do not try to do it here.
28692
28693 2013-06-01 Jan Hubicka <jh@suse.cz>
28694
28695 PR middle-end/57467
28696 * passes.c (for_per_function): Skip unanalyzed functions.
28697
28698 2013-06-01 Jan Hubicka <jh@suse.cz>
28699
28700 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
28701 (lto_symtab_merge_symbols_1): ... this one.
28702 (lto_symtab_merge_cgraph_nodes): Rename to ...
28703 (lto_symtab_merge_symbols): ... this one; simplify.
28704 * cgraph.c (same_body_aliases_done): Rename to ...
28705 (cpp_implicit_aliases_done): ... this one.
28706 (cgraph_create_function_alias): Update.
28707 (cgraph_same_body_alias): Update.
28708 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
28709 (verify_edge_corresponds_to_fndecl): Simplify.
28710 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
28711 (cgraph_node): Remove same_body_alias.
28712 (varpool_node): Remove alias_of and extra_name_alias.
28713 (same_body_aliases_done): Rename to ..
28714 (cpp_implicit_aliases_done): ... this one.
28715 (symtab_alias_ultimate_target): Add default parameter.
28716 (symtab_resolve_alias): New function.
28717 (fixup_same_cpp_alias_visibility): Declare.
28718 (cgraph_function_node): Add default parameter.
28719 (cgraph_node_asm_name): Likewise.
28720 (cgraph_function_or_thunk_node): Add default parameter; do
28721 not ICE when it is NULL.
28722 (varpool_variable_node): Likewise.
28723 * tree-emutls.c (create_emultls_var): Update.
28724 (ipa_lower_emutls): Update.
28725 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
28726 (cgraph_reset_node): Reset alias info.
28727 (cgraph_finalize_function): Update.
28728 (fixup_same_cpp_alias_visibility): Move to symtab.c.
28729 (analyze_function): Simplify.
28730 (cgraph_process_same_body_aliases): Simplify.
28731 (analyze_functions): Fixup same body aliases.
28732 (handle_alias_pairs): Simplify.
28733 (assemble_thunk): Update.
28734 (assemble_thunks_and_aliases): Update.
28735 (output_weakrefs): Rewrite.
28736 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
28737 (lto_output_varpool_node): Likewise.
28738 (compute_ltrans_boundary): Remve assert.
28739 (get_alias_symbol): New functoin.
28740 (input_node): Rewrite alias handling.
28741 (input_varpool_node): Likewise.
28742 * ipa-pure-const.c (propagate_pure_const): Fix formating.
28743 * ipa.c (process_references): Handle weakrefs correctly.
28744 (symtab_remove_unreachable_nodes): Likewise.
28745 * trans-mem.c (get_cg_data): Update.
28746 (ipa_tm_create_version_alias): Update.
28747 (ipa_tm_execute): Update.
28748 * symtab.c (dump_symtab_base): Dump aliases.
28749 (verify_symtab_base): Verify aliases.
28750 (symtab_node_availability): New function.
28751 (symtab_alias_ultimate_target): Simplify.
28752 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
28753 handle all the fixup cases.
28754 (symtab_resolve_alias): New function.
28755 * passes.c (ipa_write_summaries): Handle weakrefs.
28756 * varpool.c (varpool_analyze_node): Simplify.
28757 (assemble_aliases): Update.
28758 (varpool_create_variable_alias): Simplify.
28759 (varpool_extra_name_alias): Simplify.
28760 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
28761 (lto_symtab_merge_symbols): ... this one.
28762
28763 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
28764
28765 Revert
28766 PR rtl-optimization/57268
28767 * sched-deps.c (sched_analyze_2): Flush dependence lists if
28768 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
28769
28770 2013-06-01 Tobias Burnus <burnus@net-b.de>
28771
28772 Partially reverted:
28773 2013-05-31 Tobias Burnus <burnus@net-b.de>
28774
28775 PR middle-end/57073
28776 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
28777 further up.
28778
28779 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
28780
28781 PR rtl-optimization/57268
28782 * sched-deps.c (sched_analyze_2): Flush dependence lists if
28783 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
28784
28785 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
28786
28787 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
28788 unordered comparison operators when -fno-trapping-math is in effect
28789 on the e500.
28790 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
28791 and implement unordered comparison operators properly on the e500.
28792
28793 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
28794
28795 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
28796 for constant scalar integers.
28797 (simplify_relational_operation_1): Likewise.
28798
28799 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
28800
28801 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
28802 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
28803 Fix comment.
28804
28805 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
28806 Igor Zamyatin <igor.zamyatin@intel.com>
28807
28808 Silvermont (SLM) architecture performance tuning.
28809 * config/i386/i386.h (enum ix86_tune_indices): Add
28810 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
28811 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
28812
28813 * config/i386/i386.c (initial_ix86_tune_features)
28814 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
28815 (ix86_lea_outperforms): Handle Silvermont tuning.
28816 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
28817 call.
28818 (ix86_use_lea_for_mov): Likewise.
28819 (ix86_avoid_lea_for_addr): Likewise.
28820 (ix86_lea_for_add_ok): Likewise.
28821 (exact_dependency_1): New function.
28822 (exact_store_load_dependency): Likewise.
28823 (ix86_adjust_cost): Handle Silvermont tuning.
28824 (do_reoder_for_imul): Likewise.
28825 (swap_top_of_ready_list): New function.
28826 (ix86_sched_reorder): Changed to handle Silvermont tuning.
28827
28828 * config/i386/i386.md (peepholes that split memory operand in fp
28829 converts): New.
28830
28831 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
28832
28833 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
28834 Remove un-necessary braces.
28835
28836 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
28837
28838 * config/aarch64/aarch64.c (aarch64_classify_symbol):
28839 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
28840
28841 2013-05-31 Tobias Burnus <burnus@net-b.de>
28842
28843 PR middle-end/57073
28844 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
28845
28846 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28847
28848 PR target/56315
28849 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
28850 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
28851 * config/arm/neon.md (iordi3_neon): Remove.
28852 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
28853 * config/arm/predicates.md (imm_for_neon_logic_operand):
28854 Move to earlier in the file.
28855 (neon_logic_op2): Likewise.
28856 (arm_iordi_operand_neon): New predicate.
28857
28858 2013-05-31 Richard Biener <rguenther@suse.de>
28859
28860 PR tree-optimization/57478
28861 PR tree-optimization/57453
28862 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
28863 are life as well.
28864
28865 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
28866
28867 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
28868 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
28869
28870 2013-05-30 Tobias Burnus <burnus@net-b.de>
28871 Thomas Koenig <tkoenig@gcc.gnu.org>
28872
28873 PR middle-end/57073
28874 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
28875 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
28876
28877 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
28878
28879 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
28880
28881 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
28882
28883 * target.def (register_usage_leveling_p): New hook.
28884 * targhooks.c (default_register_usage_leveling_p): New.
28885 * targhooks.h (default_register_usage_leveling_p): New prototype.
28886 * lra-assigns.c (register_usage_leveling_p): Use the hook.
28887 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
28888 * doc/tm.texi: Update.
28889 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
28890
28891 2013-05-30 Ian Bolton <ian.bolton@arm.com>
28892
28893 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
28894 (*insv_reg<mode>): New define_insn.
28895
28896 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
28897
28898 PR rtl-optimization/57439
28899 * postreload.c (move2add_valid_value_p): Check that we have
28900 a zero subreg_regno_offset when accessing the register in
28901 the requested mode.
28902
28903 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
28904 Igor Zamyatin <igor.zamyatin@intel.com>
28905
28906 Silvermont (SLM) architecture pipeline model, tuning and
28907 insn selection.
28908 * config.gcc: Add slm config options and target.
28909
28910 * config/i386/slm.md: New.
28911
28912 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
28913
28914 * config/i386/i386-c.c (ix86_target_macros_internal): New case
28915 PROCESSOR_SLM.
28916 (ix86_target_macros_internal): Likewise.
28917
28918 * config/i386/i386.c (slm_cost): New cost.
28919 (m_SLM): New macro flag.
28920 (initial_ix86_tune_features): Set m_SLM.
28921 (x86_accumulate_outgoing_args): Likewise.
28922 (x86_arch_always_fancy_math_387): Likewise.
28923 (processor_target_table): Add slm cost.
28924 (cpu_names): Add slm cpu name.
28925 (x86_option_override_internal): Set SLM ISA.
28926 (ix86_issue_rate): New case PROCESSOR_SLM.
28927 (ia32_multipass_dfa_lookahead): Likewise.
28928 (fold_builtin_cpu): Add slm.
28929
28930 * config/i386/i386.h (TARGET_SLM): New target macro.
28931 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
28932 (processor_type): Add PROCESSOR_SLM.
28933
28934 * config/i386/i386.md (cpu): Add new value "slm".
28935 (slm.md): Include slm.md.
28936
28937 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
28938 Zhenqiang Chen <zhenqiang.chen@linaro.org>
28939
28940 * config/arm/arm-protos.h: Add and update function protos.
28941 * config/arm/arm.c (use_simple_return_p): New added.
28942 (thumb2_expand_return): Check simple_return flag.
28943 * config/arm/arm.md: Add simple_return and conditional simple_return.
28944 * config/arm/iterators.md: Add iterator for return and simple_return.
28945
28946 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
28947
28948 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
28949 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
28950 (arm_emit_vfp_multi_reg_pop): Likewise.
28951 (thumb2_emit_ldrd_pop): Likewise.
28952 (arm_expand_epilogue): Add misc REG_CFA notes.
28953 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
28954
28955 2013-05-29 Lawrence Crowl <crowl@google.com>
28956
28957 * config/arm/t-arm: Update for below.
28958
28959 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
28960 Change type to hash_table. Update dependent calls and types.
28961
28962 * config/i386/t-cygming: Update for below.
28963
28964 * config/i386/t-interix: Update for below.
28965
28966 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
28967 Change type to hash_table. Update dependent calls and types.
28968 (i386_find_on_wrapper_list::wrappers): Likewise.
28969
28970 * config/ia64/t-ia64: Update for below.
28971
28972 * config/ia64/ia64.c (bundle_state_table):
28973 Change type to hash_table. Update dependent calls and types.
28974
28975 * config/mips/mips.c (mips_reorg_process_insns::htab):
28976 Change type to hash_table. Update dependent calls and types.
28977
28978 * config/sol2.c (solaris_comdat_htab):
28979 Change type to hash_table. Update dependent calls and types.
28980
28981 * config/t-sol2: Update for above.
28982
28983 2013-05-29 Teresa Johnson <tejohnson@google.com>
28984
28985 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
28986 functions are not yet marked as defined.
28987
28988 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
28989 Pat Haugen <pthaugen@us.ibm.com>
28990 Peter Bergner <bergner@vnet.ibm.com>
28991
28992 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
28993 instructions.
28994 (VEC_A): Likewise.
28995 (VEC_C): Likewise.
28996 (vrotl<mode>3): Likewise.
28997 (vashl<mode>3): Likewise.
28998 (vlshr<mode>3): Likewise.
28999 (vashr<mode>3): Likewise.
29000
29001 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
29002 support for power8 V2DI builtins.
29003
29004 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
29005 power8 V2DI builtins.
29006 (vupkhsw): Likewise.
29007 (vupklsw): Likewise.
29008 (vaddudm): Likewise.
29009 (vminsd): Likewise.
29010 (vmaxsd): Likewise.
29011 (vminud): Likewise.
29012 (vmaxud): Likewise.
29013 (vpkudum): Likewise.
29014 (vpksdss): Likewise.
29015 (vpkudus): Likewise.
29016 (vpksdus): Likewise.
29017 (vrld): Likewise.
29018 (vsld): Likewise.
29019 (vsrd): Likewise.
29020 (vsrad): Likewise.
29021 (vsubudm): Likewise.
29022 (vcmpequd): Likewise.
29023 (vcmpgtsd): Likewise.
29024 (vcmpgtud): Likewise.
29025 (vcmpequd_p): Likewise.
29026 (vcmpgtsd_p): Likewise.
29027 (vcmpgtud_p): Likewise.
29028 (vupkhsw): Likewise.
29029 (vupklsw): Likewise.
29030 (vaddudm): Likewise.
29031 (vmaxsd): Likewise.
29032 (vmaxud): Likewise.
29033 (vminsd): Likewise.
29034 (vminud): Likewise.
29035 (vpksdss): Likewise.
29036 (vpksdus): Likewise.
29037 (vpkudum): Likewise.
29038 (vpkudus): Likewise.
29039 (vrld): Likewise.
29040 (vsld): Likewise.
29041 (vsrad): Likewise.
29042 (vsrd): Likewise.
29043 (vsubudm): Likewise.
29044
29045 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
29046 support for power8 V2DI instructions.
29047
29048 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
29049 power8 V2DI instructions. Combine pack and unpack insns to use an
29050 iterator for each mode. Check whether a particular mode supports
29051 Altivec instructions instead of just checking TARGET_ALTIVEC.
29052 (UNSPEC_VPKUWUM): Likewise.
29053 (UNSPEC_VPKSHSS): Likewise.
29054 (UNSPEC_VPKSWSS): Likewise.
29055 (UNSPEC_VPKUHUS): Likewise.
29056 (UNSPEC_VPKSHUS): Likewise.
29057 (UNSPEC_VPKUWUS): Likewise.
29058 (UNSPEC_VPKSWUS): Likewise.
29059 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
29060 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
29061 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
29062 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
29063 (UNSPEC_VUPKHSB): Likewise.
29064 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
29065 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
29066 (UNSPEC_VUPKHSH): Likewise.
29067 (UNSPEC_VUPKLSB): Likewise.
29068 (UNSPEC_VUPKLSH): Likewise.
29069 (VI2): Likewise.
29070 (VI_char): Likewise.
29071 (VI_scalar): Likewise.
29072 (VI_unit): Likewise.
29073 (VP): Likewise.
29074 (VP_small): Likewise.
29075 (VP_small_lc): Likewise.
29076 (VU_char): Likewise.
29077 (add<mode>3): Likewise.
29078 (altivec_vaddcuw): Likewise.
29079 (altivec_vaddu<VI_char>s): Likewise.
29080 (altivec_vadds<VI_char>s): Likewise.
29081 (sub<mode>3): Likewise.
29082 (altivec_vsubcuw): Likewise.
29083 (altivec_vsubu<VI_char>s): Likewise.
29084 (altivec_vsubs<VI_char>s): Likewise.
29085 (altivec_vavgs<VI_char>): Likewise.
29086 (altivec_vcmpbfp): Likewise.
29087 (altivec_eq<mode>): Likewise.
29088 (altivec_gt<mode>): Likewise.
29089 (altivec_gtu<mode>): Likewise.
29090 (umax<mode>3): Likewise.
29091 (smax<mode>3): Likewise.
29092 (umin<mode>3): Likewise.
29093 (smin<mode>3): Likewise.
29094 (altivec_vpkuhum): Likewise.
29095 (altivec_vpkuwum): Likewise.
29096 (altivec_vpkshss): Likewise.
29097 (altivec_vpkswss): Likewise.
29098 (altivec_vpkuhus): Likewise.
29099 (altivec_vpkshus): Likewise.
29100 (altivec_vpkuwus): Likewise.
29101 (altivec_vpkswus): Likewise.
29102 (altivec_vpks<VI_char>ss): Likewise.
29103 (altivec_vpks<VI_char>us): Likewise.
29104 (altivec_vpku<VI_char>us): Likewise.
29105 (altivec_vpku<VI_char>um): Likewise.
29106 (altivec_vrl<VI_char>): Likewise.
29107 (altivec_vsl<VI_char>): Likewise.
29108 (altivec_vsr<VI_char>): Likewise.
29109 (altivec_vsra<VI_char>): Likewise.
29110 (altivec_vsldoi_<mode>): Likewise.
29111 (altivec_vupkhsb): Likewise.
29112 (altivec_vupkhs<VU_char>): Likewise.
29113 (altivec_vupkls<VU_char>): Likewise.
29114 (altivec_vupkhsh): Likewise.
29115 (altivec_vupklsb): Likewise.
29116 (altivec_vupklsh): Likewise.
29117 (altivec_vcmpequ<VI_char>_p): Likewise.
29118 (altivec_vcmpgts<VI_char>_p): Likewise.
29119 (altivec_vcmpgtu<VI_char>_p): Likewise.
29120 (abs<mode>2): Likewise.
29121 (vec_unpacks_hi_v16qi): Likewise.
29122 (vec_unpacks_hi_v8hi): Likewise.
29123 (vec_unpacks_lo_v16qi): Likewise.
29124 (vec_unpacks_hi_<VP_small_lc>): Likewise.
29125 (vec_unpacks_lo_v8hi): Likewise.
29126 (vec_unpacks_lo_<VP_small_lc>): Likewise.
29127 (vec_pack_trunc_v8h): Likewise.
29128 (vec_pack_trunc_v4si): Likewise.
29129 (vec_pack_trunc_<mode>): Likewise.
29130
29131 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
29132 V2DI builtins.
29133 (vec_vmaxsd): Likewise.
29134 (vec_vmaxud): Likewise.
29135 (vec_vminsd): Likewise.
29136 (vec_vminud): Likewise.
29137 (vec_vpksdss): Likewise.
29138 (vec_vpksdus): Likewise.
29139 (vec_vpkudum): Likewise.
29140 (vec_vpkudus): Likewise.
29141 (vec_vrld): Likewise.
29142 (vec_vsld): Likewise.
29143 (vec_vsrad): Likewise.
29144 (vec_vsrd): Likewise.
29145 (vec_vsubudm): Likewise.
29146 (vec_vupkhsw): Likewise.
29147 (vec_vupklsw): Likewise.
29148
29149 2013-05-29 Jan Hubicka <jh@suse.cz>
29150
29151 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
29152 flags; reorder rest of fields in more consistent way.
29153 (varpool_node): Remove analyzed, finalized and alias.
29154 (cgraph_ndoe): Likewise.
29155 (symtab_alias_ultimate_target): New function.
29156 (cgraph_function_node): Move offline.
29157 (cgraph_reset_node): Declare.
29158 (cgraph_comdat_can_be_unshared_p): Remove.
29159 (varpool_remove_initializer): Declare.
29160 (varpool_first_defined_variable, varpool_next_defined_variable
29161 cgraph_first_defined_function, cgraph_next_defined_function): Update.
29162 (cgraph_function_with_gimple_body_p): Update.
29163 (varpool_all_refs_explicit_p): Update.
29164 (symtab_alias_target): New function.
29165 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
29166 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
29167 (cgraph_function_or_thunk_node): Simplify using
29168 symtab_alias_ultimate_target.
29169 (varpool_variable_node): Likewise.
29170 * cgraph.c (cgraph_create_function_alias): Update.
29171 (cgraph_add_thunk): Update.
29172 (cgraph_remove_node): Update.
29173 (dump_cgraph_node): Do not dump removed flags.
29174 (cgraph_function_body_availability): Update.
29175 (cgraph_propagate_frequency): Update.
29176 (verify_cgraph_node): Check sanity of local flag.
29177 (cgraph_function_node): Move here from cgraph.h; revamp for
29178 cgraph_function_or_thunk_node.
29179 * lto-symtab.c (lto_varpool_replace_node): Update.
29180 (lto_symtab_resolve_can_prevail_p): Update.
29181 (lto_symtab_merge_cgraph_nodes): Update.
29182 * ipa-cp.c (determine_versionability, initialize_node_lattices,
29183 propagate_constants_accross_call, devirtualization_time_bonus,
29184 ipcp_propagate_stage): Update.
29185 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
29186 * ipa-inline-transform.c (clone_inlined_nodes,
29187 preserve_function_body_p): Update.
29188 * ipa-reference.c (propagate): Update.
29189 (write_node_summary_p): Update.
29190 * toplev.c (wrapup_global_declaration_2): Update.
29191 * cgraphunit.c (cgraph_analyze_function): Rename to ...
29192 (analyze_function) ... this one.
29193 (cgraph_process_new_functions): Update.
29194 (cgraph_reset_node): Export.
29195 (cgraph_finalize_function): Update.
29196 (cgraph_add_new_function): Update.
29197 (process_function_and_variable_attributes): Update.
29198 (varpool_finalize_decl): Update.
29199 (symbol_finalized): Remove.
29200 (symbol_finalized_and_needed): Rename to ...
29201 (symbol_defined_and_needed): ... update.
29202 (cgraph_analyze_functions): Update.
29203 (handle_alias_pairs): Update.
29204 (mark_functions_to_output): Update.
29205 (assemble_thunk): Update.
29206 (output_in_order): Update.
29207 (output_weakrefs): Update.
29208 (finalize_compilation_unit): Update.
29209 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
29210 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
29211 input_node, input_varpool_node): Update.
29212 * dbxout.c (dbxout_expand_expr): Update.
29213 * cgraphclones.c (cgraph_clone_node): Update.
29214 (cgraph_copy_node_for_versioning): Update.
29215 (cgraph_materialize_clone): Update.
29216 (cgraph_materialize_all_clones): Update.
29217 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
29218 propagate_pure_const, propagate_nothrow): Update.
29219 * lto-streamer-out.c (lto_output, write_symbol): Update.
29220 * ipa-utils.c (ipa_reverse_postorder): Update.
29221 * ipa-inline.c (can_inline_edge_p): Update.
29222 (update_caller_keys, ipa_inline): Update.
29223 * dwarf2out.c (reference_to_unused,
29224 premark_types_used_by_global_vars_helper): Update.
29225 * tree-eh.c (tree_could_trap_p): Update.
29226 * ipa-split.c (consider_split, execute_split_functions): Update.
29227 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
29228 has_addr_references_p): Update; move ahead in file for better
29229 readability.
29230 (process_references): Simplify.
29231 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
29232 bodies are removed.
29233 (cgraph_comdat_can_be_unshared_p): Make static.
29234 (cgraph_externally_visible_p): Update.
29235 (varpool_externally_visible_p): Update.
29236 (function_and_variable_visibility): Update.
29237 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
29238 ipa_tm_mark_force_output_node): Update.
29239 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
29240 estimate_edge_devirt_benefit, inline_generate_summary,
29241 inline_write_summary): Update.
29242 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
29243 * ipa-prop.c (ipa_compute_jump_functions): Update.
29244 (ipa_print_node_params, ipa_prop_read_section,
29245 ipa_update_after_lto_read, read_replacements_section): Update.
29246 * varasm.c (mark_decl_referenced): Update.
29247 (assemble_alias, dump_tm_clone_pairs): Update.
29248 * tree-inline.c (copy_bb): Update.
29249 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
29250 Update.
29251 * symtab.c (dump_symtab_base): Print new flags.
29252 (verify_symtab_base): Verify new flags.
29253 (symtab_alias_ultimate_target): New function.
29254 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
29255 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
29256 Update.
29257 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
29258 Update.
29259 * i386.c (ix86_get_function_versions_dispatcher,
29260 ix86_generate_version_dispatcher_body): Update.
29261 (fold_builtin_cpu): Use varpool_add_new_variable.
29262 * varpool.c (varpool_remove_initializer): Break out from ...
29263 (varpool_remove_node): ... this one.
29264 (dump_varpool_node, varpool_node_for_asm,
29265 cgraph_variable_initializer_availability, varpool_analyze_node,
29266 varpool_assemble_decl, varpool_remove_unreferenced_decls,
29267 varpool_finalize_named_section_flags, varpool_create_variable_alias):
29268 Update.
29269
29270 2013-05-29 Jan Hubicka <jh@suse.cz>
29271
29272 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
29273
29274 2013-05-29 Easwaran Raman <eraman@google.com>
29275
29276 PR tree-optimization/57442
29277 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
29278 when control exits the main loop.
29279
29280 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
29281
29282 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
29283 and RX600.
29284 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
29285 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
29286 * rx/t-rx: Add rx100 under multi library matches option for nofpu
29287 option.
29288
29289 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29290
29291 PR tree-optimization/57441
29292 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
29293 Don't limit size of incr_vec to number of candidates.
29294
29295 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
29296
29297 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
29298 and mips16 directories.
29299 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
29300 (MULTILIB_DIRNAMES): Ditto.
29301 (MULTILIB_EXCEPTIONS): Add new exceptions.
29302 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
29303 (MULTILIB_DIRNAMES): Ditto.
29304 (MULTILIB_EXCEPTIONS): Add new exceptions.
29305
29306 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
29307 Marcus Shawcroft <marcus.shawcroft@arm.com>
29308
29309 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
29310 SYMBOL_TINY_ABSOLUTE.
29311 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
29312 SYMBOL_TINY_ABSOLUTE.
29313 (aarch64_expand_mov_immediate): Likewise.
29314 (aarch64_classify_symbol): Likewise.
29315 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
29316 Permit SYMBOL_TINY_ABSOLUTE.
29317 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
29318
29319 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
29320 Marcus Shawcroft <marcus.shawcroft@arm.com>
29321
29322 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
29323 Refactor if/switch. Replace gcc_assert with if.
29324
29325 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29326
29327 * config/i386/i386.c (initial_ix86_tune_features): Enable
29328 FP Reassociation for AMD bdver1 and bdver2.
29329
29330 2013-05-29 Martin Jambor <mjambor@suse.cz>
29331
29332 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
29333 and IMAGPART_EXPR do not occur within other handled_components.
29334
29335 2013-05-29 Richard Biener <rguenther@suse.de>
29336
29337 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
29338 access on whether the use is in the BB we currently try to
29339 vectorize.
29340 (vect_bb_vectorization_profitable_p): Pass the BB we currently
29341 vectorize to vect_bb_slp_scalar_cost.
29342
29343 2013-05-29 Richard Biener <rguenther@suse.de>
29344
29345 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
29346 computing scalar cost offsetted by stmts that are kept live
29347 by scalar uses.
29348 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
29349 for computation of scalar cost.
29350
29351 2013-05-28 Steve Ellcey <sellcey@mips.com>
29352
29353 * config/mips/mips-cpus.def (mips32r2): Change processor type.
29354
29355 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
29356
29357 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
29358 array notation built-in reduction functions.
29359 * doc/passes.texi (Passes): Added documentation about changes done
29360 for Cilk Plus.
29361 * doc/invoke.texi (C Dialect Options): Added documentation about
29362 the -fcilkplus flag.
29363 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
29364 (BUILTINS_DEF): Depend on cilkplus.def.
29365 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
29366 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
29367 * cilkplus.def: New file.
29368
29369 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
29370
29371 PR rtl-optimization/57439
29372 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
29373
29374 2013-05-28 Easwaran Raman <eraman@google.com>
29375
29376 PR tree-optimization/57337
29377 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
29378 (find_insert_point): Correctly identify the insertion point
29379 when two statements with the same UID is compared.
29380
29381 2013-05-28 Richard Biener <rguenther@suse.de>
29382
29383 PR tree-optimization/56787
29384 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
29385 from the list of data references.
29386 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
29387 clobbers.
29388 (vect_analyze_loop_operations): Likewise.
29389 (vect_transform_loop): Remove clobbers.
29390
29391 2013-05-28 Martin Jambor <mjambor@suse.cz>
29392
29393 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
29394 and REALPART_EXPRs have scalar type.
29395
29396 2013-05-28 Richard Biener <rguenther@suse.de>
29397
29398 PR tree-optimization/57411
29399 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
29400 virtual operands.
29401 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
29402 virtual operand propagation.
29403
29404 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
29405
29406 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
29407 destination register for bmasksi_vis.
29408 (vector_init_bshuffle): Likewise.
29409 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
29410
29411 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
29412
29413 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
29414 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
29415 mode if the instruction isn't available in the original mode.
29416 * config/sparc/sparc.opt (mfix-ut699): New option.
29417 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
29418 (divdf3): Turn into expander.
29419 (divdf3_nofix): New insn.
29420 (divdf3_fix): Likewise.
29421 (divsf3): Disable if -mfix-ut699.
29422 (sqrtdf2): Turn into expander.
29423 (sqrtdf2_nofix): New insn.
29424 (sqrtdf2_fix): Likewise.
29425 (sqrtsf2): Disable if -mfix-ut699.
29426
29427 2013-05-27 Richard Biener <rguenther@suse.de>
29428
29429 PR middle-end/57412
29430 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
29431 block for the new loop.
29432
29433 2013-05-27 Richard Biener <rguenther@suse.de>
29434
29435 PR tree-optimization/57343
29436 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
29437 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
29438 (number_of_iterations_cond): Do not build the folded tree.
29439
29440 2013-05-27 Richard Biener <rguenther@suse.de>
29441
29442 Revert
29443 PR middle-end/57381
29444 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
29445 OEP_CONSTANT_ADDRESS_OF retained.
29446
29447 PR tree-optimization/57417
29448 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
29449 for unchanged base.
29450 (set_ssa_val_to): Compare addresses using
29451 get_addr_base_and_unit_offset.
29452
29453 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
29454
29455 PR rtl-optimization/56833
29456 * postreload.c (move2add_record_mode): New function.
29457 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
29458 (move2add_use_add2_insn): Use move2add_record_sym_value.
29459 (move2add_use_add3_insn): Likewise.
29460 (reload_cse_move2add): Use move2add_valid_value_p and
29461 move2add_record_mode. Invalidate call-clobbered and REG_INC
29462 affected regs by setting reg_mode to VOIDmode.
29463 (move2add_note_store): Don't pretend the inside of a SUBREG is
29464 the actual destination. Invalidate single/leading registers by
29465 setting reg_mode to VOIDmode.
29466 Use move2add_record_sym_value, move2add_valid_value_p and
29467 move2add_record_mode.
29468
29469 2013-05-27 Richard Biener <rguenther@suse.de>
29470
29471 PR tree-optimization/57396
29472 * tree-affine.c (double_int_constant_multiple_p): Properly
29473 return false for val == 0 and div != 0.
29474
29475 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
29476
29477 * config/mips/mips.h: Use #elif in preprocessor conditions.
29478
29479 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
29480
29481 PR target/53916
29482 * config/mips/constraints.md (kl): New constraint.
29483 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
29484 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
29485 constraint for operand 0. Split after CSE for MIPS16. Emit a move
29486 from LO for MIPS16.
29487 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
29488
29489 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
29490
29491 PR target/55777
29492 * config/mips/mips.c (mips_can_inline_p): New function.
29493 (TARGET_CAN_INLINE_P): Define.
29494
29495 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
29496
29497 * sched-int.h (ds_t, dw_t): Make unsigned int.
29498 Fix documentation that describes how all the ds_t bits are used.
29499 Reserve the last bit for delayed-branch scheduling.
29500 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
29501 (BITS_PER_DEP_WEAK): Fix definition and documentation.
29502 (gen_dep_weak_1): Remove prototype.
29503 * sched-deps.c (get_dep_weak_1): Make static.
29504 * target.def (speculate_insn, needs_block_p, gen_spec_check,
29505 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
29506 * doc/tm.texi: Regenerate.
29507 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
29508
29509 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
29510
29511 PR debug/56950
29512 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
29513
29514 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
29515 Sandra Loosemore <sandra@codesourcery.com>
29516
29517 * config.gcc (powerpc-*): Allow native for with-cpu.
29518
29519 2013-05-24 Jeff Law <law@redhat.com>
29520
29521 PR tree-optimization/57124
29522 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
29523 conversion feeding a condition if the range has an overflow
29524 if -fstrict-overflow. Add warnings for when we do make the
29525 transformation.
29526
29527 2013-05-24 Dehao Chen <dehao@google.com>
29528
29529 * tree-cfg.c (locus_discrim_map): Fix the typo.
29530 (locus_discrim_hasher): Likewise.
29531 (locus_discrim_hasher::hash): Likewise.
29532 (locus_discrim_hasher::equal): Likewise.
29533
29534 2013-05-24 Martin Jambor <mjambor@suse.cz>
29535
29536 PR tree-optimization/57294
29537 * cgraph.h (ipa_record_stmt_references): Declare.
29538 * cgraphbuild.c (ipa_record_stmt_references): New function.
29539 (build_cgraph_edges): Use ipa_record_stmt_references.
29540 (rebuild_cgraph_edges): Likewise.
29541 (cgraph_rebuild_references): Likewise.
29542 * ipa-prop.c (ipa_modify_call_arguments): Discard references
29543 associated with the old statement and build references from the
29544 newly built statements.
29545 * ipa-ref.c (ipa_remove_stmt_references): New function.
29546 * ipa-ref.h (ipa_remove_stmt_references): Declare.
29547
29548 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
29549
29550 * lra-constraints.c (emit_spill_move): Use smaller mode for
29551 mem-mem moves.
29552 (check_and_process_move): Consider mem-reg moves for secondary
29553 too.
29554 (curr_insn_transform): Don't lose insns emitted before for
29555 secondary memory moves.
29556 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
29557 reg set up in the current insn.
29558
29559 2013-05-24 Dehao Chen <dehao@google.com>
29560
29561 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
29562 hash function.
29563 (locus_descrim_hasher::equal): Likewise.
29564 (build_gimple_cfg): New discriminator assignment algorithm.
29565 (make_edges): Likewise.
29566 (next_discriminator_for_locus): Likewise.
29567 (same_line_p): Likewise.
29568 (assign_discriminators): Likewise.
29569 (make_cond_expr_edges): Likewise.
29570 (make_gimple_switch_edges): Likewise.
29571 (make_goto_expr_edges): Likewise.
29572 (make_gimple_asm_edges): Likewise.
29573
29574 2013-05-24 Ian Bolton <ian.bolton@arm.com>
29575
29576 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
29577 X format specifier to only display bottom 16 bits.
29578 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
29579 immediate to match for operand 2, since it will be masked.
29580
29581 2013-05-24 Richard Biener <rguenther@suse.de>
29582
29583 PR tree-optimization/57287
29584 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
29585 all SSA names that occur in abnormal PHIs.
29586
29587 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
29588
29589 PR tree-ssa/57385
29590 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
29591 that index is not negative.
29592
29593 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
29594
29595 PR rtl-optimization/55177
29596 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
29597 (simplify_byte_swapping_operation): New.
29598 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
29599 (simplify_relational_operation_1): Deal with BSWAP.
29600
29601 2013-05-23 Richard Henderson <rth@redhat.com>
29602
29603 PR target/56742
29604 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
29605 (ix86_reorg): Call it.
29606
29607 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
29608
29609 PR target/57379
29610 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
29611 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
29612 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
29613
29614 2013-05-23 Christian Bruel <christian.bruel@st.com>
29615
29616 PR debug/57351
29617 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
29618
29619 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
29620 Marcus Shawcroft <marcus.shawcroft@arm.com>
29621
29622 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
29623 * config/aarch64/constraints.md (Usa): Remove.
29624 * doc/md.texi (AArch64 Usa): Remove.
29625
29626 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
29627 Marcus Shawcroft <marcus.shawcroft@arm.com>
29628
29629 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
29630 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
29631 * config/aarch64/predicates.md (aarch64_const_address): Remove.
29632 (aarch64_mov_operand): Use aarch64_mov_operand_p.
29633
29634 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
29635
29636 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
29637 instruction (AdvSIMD).
29638 * config/aarch64/aarch64-builtins.c
29639 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
29640 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
29641
29642 2013-05-23 Martin Jambor <mjambor@suse.cz>
29643
29644 PR middle-end/57347
29645 * tree.h (contains_bitfld_component_ref_p): Declare.
29646 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
29647 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
29648 caller.
29649 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
29650 not access a bit-field. Assert all final offsets are byte-aligned.
29651
29652 2013-05-23 Richard Biener <rguenther@suse.de>
29653
29654 PR tree-optimization/57380
29655 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
29656 least one invariant or re-used load.
29657 * passes.c (init_optimization_passes): Move pass_phiprop before
29658 pass_forwprop.
29659
29660 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
29661
29662 * config/aarch64/aarch64-simd.md
29663 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
29664
29665 2013-05-23 Richard Biener <rguenther@suse.de>
29666
29667 PR middle-end/57381
29668 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
29669 OEP_CONSTANT_ADDRESS_OF retained.
29670
29671 2013-05-23 Jakub Jelinek <jakub@redhat.com>
29672
29673 PR middle-end/57344
29674 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
29675 don't lower unit. Handle unit not being always BITS_PER_WORD.
29676
29677 2013-05-23 Richard Biener <rguenther@suse.de>
29678
29679 PR rtl-optimization/57341
29680 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
29681 instead of true_dependence.
29682
29683 2013-05-22 David Malcolm <dmalcolm@redhat.com>
29684
29685 * bb-reorder.c (branch_threshold): Make const.
29686 (exec_threshold): Ditto.
29687
29688 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
29689 Pat Haugen <pthaugen@us.ibm.com>
29690 Peter Bergner <bergner@vnet.ibm.com>
29691
29692 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
29693 documentation for the power8 crypto builtins.
29694
29695 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
29696
29697 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
29698 macros for defining power8 builtin functions.
29699 (BU_P8V_AV_2): Likewise.
29700 (BU_P8V_AV_P): Likewise.
29701 (BU_P8V_VSX_1): Likewise.
29702 (BU_P8V_OVERLOAD_1): Likewise.
29703 (BU_P8V_OVERLOAD_2): Likewise.
29704 (BU_CRYPTO_1): Likewise.
29705 (BU_CRYPTO_2): Likewise.
29706 (BU_CRYPTO_3): Likewise.
29707 (BU_CRYPTO_OVERLOAD_1): Likewise.
29708 (BU_CRYPTO_OVERLOAD_2): Likewise.
29709 (XSCVSPDP): Fix typo, point to the correct instruction.
29710 (VCIPHER): Add power8 crypto builtins.
29711 (VCIPHERLAST): Likewise.
29712 (VNCIPHER): Likewise.
29713 (VNCIPHERLAST): Likewise.
29714 (VPMSUMB): Likewise.
29715 (VPMSUMH): Likewise.
29716 (VPMSUMW): Likewise.
29717 (VPERMXOR_V2DI): Likewise.
29718 (VPERMXOR_V4SI: Likewise.
29719 (VPERMXOR_V8HI: Likewise.
29720 (VPERMXOR_V16QI: Likewise.
29721 (VSHASIGMAW): Likewise.
29722 (VSHASIGMAD): Likewise.
29723 (VPMSUM): Likewise.
29724 (VPERMXOR): Likewise.
29725 (VSHASIGMA): Likewise.
29726
29727 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
29728 __CRYPTO__ if the crypto instructions are available.
29729 (altivec_overloaded_builtins): Add support for overloaded power8
29730 builtins.
29731
29732 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
29733 support for power8 crypto builtins.
29734 (builtin_function_type): Likewise.
29735 (altivec_init_builtins): Add support for builtins that take vector
29736 long long (V2DI) arguments.
29737
29738 * config/rs6000/crypto.md: New file, define power8 crypto
29739 instructions.
29740
29741 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
29742 Pat Haugen <pthaugen@us.ibm.com>
29743 Peter Bergner <bergner@vnet.ibm.com>
29744
29745 * doc/invoke.texi (Option Summary): Add power8 options.
29746 (RS/6000 and PowerPC Options): Likewise.
29747
29748 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
29749 constraints.md instead of rs6000.h. Reorder w* constraints. Add
29750 wm, wn, wr documentation.
29751
29752 * config/rs6000/constraints.md (wm): New constraint for VSX
29753 registers if direct move instructions are enabled.
29754 (wn): New constraint for no registers.
29755 (wq): New constraint for quad word even GPR registers.
29756 (wr): New constraint if 64-bit instructions are enabled.
29757 (wv): New constraint if power8 vector instructions are enabled.
29758 (wQ): New constraint for quad word memory locations.
29759
29760 * config/rs6000/predicates.md (const_0_to_15_operand): New
29761 constraint for 0..15 for crypto instructions.
29762 (gpc_reg_operand): If VSX allow registers in VSX registers as well
29763 as GPR and floating point registers.
29764 (int_reg_operand): New predicate to match only GPR registers.
29765 (base_reg_operand): New predicate to match base registers.
29766 (quad_int_reg_operand): New predicate to match even GPR registers
29767 for quad memory operations.
29768 (vsx_reg_or_cint_operand): New predicate to allow vector logical
29769 operations in both GPR and VSX registers.
29770 (quad_memory_operand): New predicate for quad memory operations.
29771 (reg_or_indexed_operand): New predicate for direct move support.
29772
29773 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
29774 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
29775 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
29776 (POWERPC_MASKS): Add power8 options.
29777 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
29778 various options.
29779
29780 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
29781 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
29782
29783 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
29784 (-mpower8-fusion): New power8 options.
29785 (-mpower8-fusion-sign): Likewise.
29786 (-mpower8-vector): Likewise.
29787 (-mcrypto): Likewise.
29788 (-mdirect-move): Likewise.
29789 (-mquad-memory): Likewise.
29790
29791 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
29792 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
29793 registers.
29794 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
29795 (rs6000_debug_vector_unit): Add p8_vector.
29796 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
29797 definitions. Also print fusion state.
29798 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
29799 (rs6000_builtin_mask_calculate): Add power8 builtin support.
29800 (rs6000_option_override_internal): Add support for power8.
29801 (rs6000_common_init_builtins): Add debugging for skipped builtins
29802 if -mdebug=builtin.
29803 (rs6000_adjust_cost): Add power8 support.
29804 (rs6000_issue_rate): Likewise.
29805 (insn_must_be_first_in_group): Likewise.
29806 (insn_must_be_last_in_group): Likewise.
29807 (force_new_group): Likewise.
29808 (rs6000_register_move_cost): Likewise.
29809 (rs6000_opt_masks): Likewise.
29810
29811 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
29812 power8 capable assembler, default to power7 options.
29813 (TARGET_DIRECT_MOVE): Likewise.
29814 (TARGET_CRYPTO): Likewise.
29815 (TARGET_P8_VECTOR): Likewise.
29816 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
29817 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
29818 (VECTOR_MEM_P8_VECTOR_P): Likewise.
29819 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
29820 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
29821 (TARGET_XSCVDPSPN): Likewise.
29822 (TARGET_XSCVSPDPN): Likewsie.
29823 (TARGET_SYNC_HI_QI): Likewise.
29824 (TARGET_SYNC_TI): Likewise.
29825 (MASK_CRYPTO): Likewise.
29826 (MASK_DIRECT_MOVE): Likewise.
29827 (MASK_P8_FUSION): Likewise.
29828 (MASK_P8_VECTOR): Likewise.
29829 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
29830 temporary used by some of the direct move instructions to get two FP
29831 temporary registers does not force creation of a stack frame.
29832 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
29833 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
29834 that any VSX registers are tieable, even if they are also an
29835 Altivec vector mode.
29836 (r6000_reg_class_enum): Add wm, wr, wv constraints.
29837 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
29838 (RS6000_BTM_CRYPTO): Likewise.
29839 (RS6000_BTM_COMMON): Likewise.
29840
29841 * config/rs6000/rs6000.md (cpu attribute): Add power8.
29842 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
29843 (enum rs6000_vector): Add power8 vector support.
29844
29845 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29846
29847 PR target/19599
29848 PR target/57340
29849 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
29850 (any_sibcall_could_use_r3): this and handle indirect calls.
29851 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
29852
29853 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29854
29855 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
29856
29857 2013-05-22 Richard Biener <rguenther@suse.de>
29858
29859 PR middle-end/57349
29860 * profile.c (branch_prob): Do not split blocks that are
29861 abnormally receiving from ECF_RETURNS_TWICE functions.
29862
29863 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
29864
29865 * recog.c (offsettable_address_addr_space_p): Fix calculation of
29866 address mode. Move pointer mode initialization to the same place.
29867
29868 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
29869
29870 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
29871 while it has any effect.
29872
29873 2013-05-21 Easwaran Raman <eraman@google.com>
29874
29875 PR tree-optimization/57322
29876 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
29877 UID of the statement added to the BB to be 1.
29878
29879 2013-05-21 Jakub Jelinek <jakub@redhat.com>
29880
29881 PR tree-optimization/57331
29882 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
29883 of conversion from pointer type to integral type with integer.
29884
29885 2013-05-21 Martin Jambor <mjambor@suse.cz>
29886
29887 PR lto/57289
29888 * ipa-prop.c (ipa_read_node_info): Process param_used and
29889 controlled_uses in the same order as when writing.
29890
29891 2013-05-21 Magnus Granberg <baldrick@free.fr>
29892
29893 PR plugins/56754
29894 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
29895
29896 2013-05-21 Richard Biener <rguenther@suse.de>
29897
29898 PR tree-optimization/57318
29899 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
29900 estimate stmts with side-effects as likely eliminated.
29901
29902 2013-05-21 Richard Biener <rguenther@suse.de>
29903
29904 PR tree-optimization/57330
29905 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
29906 preserve the call stmts fntype.
29907
29908 2013-05-21 Richard Biener <rguenther@suse.de>
29909
29910 PR tree-optimization/57303
29911 * tree-ssa-sink.c (statement_sink_location): Improve killing
29912 stmt detection and properly handle self-assignments.
29913
29914 2013-05-21 Christian Bruel <christian.bruel@st.com>
29915
29916 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
29917 spanning registers. LEAF_REG_REMAP is supported only for contiguous
29918 registers. Set register size out of the PARALLEL loop.
29919
29920 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
29921
29922 PR target/56547
29923 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
29924 (*fmasf4, *fmasf4_media): New insns.
29925
29926 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
29927
29928 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
29929 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
29930 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
29931 (mips_idiv_insns): Update the comments to say that the returned
29932 instruction counts are in units of BASE_INSN_LENGTH.
29933 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
29934 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
29935 using 2 rather than 4 as the length of indirect MIPS16 and
29936 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
29937 length of a NOP. Don't divide MIPS16 lengths by 2.
29938 (mips16_split_long_branches): Assume a branch is long if the
29939 length is greater than 4 rather than 8.
29940 * config/mips/mips.md (length): Give MIPS16 lengths directly,
29941 rather than multiplying them by 2. Multiply instruction counts
29942 by BASE_INSN_LENGTH rather than 4.
29943 (*jump_mips16, tls_get_tp_mips16_<mode>)
29944 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
29945
29946 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
29947
29948 * config/mips/mips.md (extended_mips16): Remove branch case.
29949 (length): Remove duplicated extended_mips16 test.
29950
29951 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
29952
29953 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
29954
29955 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
29956
29957 * recog.h (Recog_data): Rename to...
29958 (recog_data_d): ...this.
29959 (recog_data): Update accordingly.
29960 * recog.c (recog_data): Likewise.
29961 * reload.c (save_recog_data): Likewise.
29962 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
29963 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
29964
29965 2013-05-17 Julian Brown <julian@codesourcery.com>
29966
29967 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
29968 found in a REG_EQUAL note, invalidate it.
29969
29970 2013-05-17 Easwaran Raman <eraman@google.com>
29971
29972 * tree-ssa-reassoc.c (find_insert_point): New function.
29973 (insert_stmt_after): Likewise.
29974 (get_def_stmt): Likewise.
29975 (ensure_ops_are_available): Likewise.
29976 (not_dominated_by): Likewise.
29977 (rewrite_expr_tree): Do not move statements beyond what is
29978 necessary. Remove call to swap_ops_for_binary_stmt...
29979 (reassociate_bb): ... and move it here.
29980 (build_and_add_sum): Assign UIDs for new statements.
29981 (linearize_expr): Likewise.
29982 (do_reassoc): Renumber gimple statement UIDs.
29983
29984 2013-05-17 Jan Hubicka <jh@suse.cz>
29985
29986 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
29987 weakrefs.
29988 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
29989 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
29990 weakrefs.
29991 (output_weakrefs): Update.
29992
29993 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
29994 Martin Jambor <mjambor@suse.cz>
29995
29996 PR middle-end/57276
29997 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
29998 value that corresponds to the given aggval is found in values vector.
29999
30000 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
30001
30002 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
30003 sse, sse2, sse3, ssse3 and sse4a flags to options.
30004
30005 2013-05-17 David Malcolm <dmalcolm@redhat.com>
30006
30007 * gengtype-state.c: (s_expr_writer): New class, to handle
30008 prettifying of output layout of s-expressions.
30009 (state_writer): New class, to write out gtype.state.
30010 (state_written_type_count): Move this variable into member data of
30011 state_writer.
30012 (s_expr_writer::s_expr_writer): New code: constructor for new class
30013 (state_writer::state_writer(): ditto
30014 (s_expr_writer::write_new_line): New function
30015 (s_expr_writer::write_any_indent): ditto
30016 (s_expr_writer::begin_s_expr): ditto
30017 (s_expr_writer::end_s_expr): ditto
30018 (write_state_fileloc): convert to method of state_writer...
30019 (state_writer:: write_state_fileloc): ...and use methods of
30020 s_expr_writer to write indentation into the gtype.state output file
30021 to visually represent the hierarchical structure of the list
30022 structures
30023 (write_state_fields): ditto, renaming to...
30024 (state_writer::write_state_fields)
30025 (write_state_a_string): ditto, renaming to...
30026 (state_writer::write_state_a_string)
30027 (write_state_string_option): ditto, renaming to...
30028 (state_writer::write_state_string_option)
30029 (write_state_type_option): ditto, renaming to...
30030 (state_writer::write_state_type_option)
30031 (write_state_nested_option): ditto, renaming to...
30032 (state_writer::write_state_nested_option)
30033 (write_state_option): ditto, renaming to...
30034 (state_writer::write_state_option)
30035 (write_state_options): ditto, renaming to...
30036 (state_writer::write_state_options)
30037 (write_state_lang_bitmap): ditto, renaming to...
30038 (state_writer::write_state_lang_bitmap)
30039 (write_state_version): ditto, renaming to...
30040 (state_writer::write_state_version)
30041 (write_state_scalar_type): ditto, renaming to...
30042 (state_writer::write_state_scalar_type)
30043 (write_state_string_type): ditto, renaming to...
30044 (state_writer::write_state_string_type)
30045 (write_state_undefined_type): ditto, renaming to...
30046 (state_writer::write_state_undefined_type)
30047 (write_state_struct_union_type): ditto, renaming to...
30048 (state_writer::write_state_struct_union_type)
30049 (write_state_struct_type): ditto, renaming to...
30050 (state_writer::write_state_struct_type)
30051 (write_state_user_struct_type): ditto, renaming to...
30052 (state_writer::write_state_user_struct_type)
30053 (write_state_lang_struct_type): ditto, renaming to...
30054 (state_writer::write_state_lang_struct_type)
30055 (write_state_param_struct_type): ditto, renaming to...
30056 (state_writer::write_state_param_struct_type)
30057 (write_state_pointer_type): ditto, renaming to...
30058 (state_writer::write_state_pointer_type)
30059 (write_state_array_type): ditto, renaming to...
30060 (state_writer::write_state_array_type)
30061 (write_state_gc_used): ditto, renaming to...
30062 (state_writer::write_state_gc_used)
30063 (write_state_common_type_content): ditto, renaming to...
30064 (state_writer::write_state_common_type_content)
30065 (write_state_type): ditto, renaming to...
30066 (state_writer::write_state_type)
30067 (write_state_pair_list): ditto, renaming to...
30068 (state_writer::write_state_pair_list)
30069 (write_state_pair): ditto, renaming to...
30070 (state_writer::write_state_pair)
30071 (write_state_typedefs): ditto, renaming to...
30072 (state_writer::write_state_typedefs)
30073 (write_state_structures): ditto, renaming to...
30074 (state_writer::write_state_structures)
30075 (write_state_param_structs): ditto, renaming to...
30076 (state_writer::write_state_param_structs)
30077 (write_state_variables): ditto, renaming to...
30078 (state_writer::write_state_variables)
30079 (write_state_srcdir): ditto, renaming to...
30080 (state_writer::write_state_srcdir)
30081 (write_state_files_list): ditto, renaming to...
30082 (state_writer::write_state_files_list)
30083 (write_state_languages): ditto, renaming to...
30084 (state_writer::write_state_languages)
30085 (write_state): create a state_writer instance and use it when
30086 writing out the state file
30087
30088 2013-05-17 Mike Stump <mikestump@comcast.net>
30089
30090 PR rtl-optimization/57304
30091 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
30092 accessing DF_REF_REAL_LOC.
30093
30094 2013-05-17 Jakub Jelinek <jakub@redhat.com>
30095
30096 PR rtl-optimization/57281
30097 PR rtl-optimization/57300
30098 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
30099 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
30100 what the other splitter did if the registers are dead.
30101
30102 2013-05-17 Richard Biener <rguenther@suse.de>
30103
30104 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
30105 MEM_REF offsets.
30106
30107 2013-05-17 Jakub Jelinek <jakub@redhat.com>
30108
30109 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
30110 linking.
30111
30112 2013-05-17 Marek Polacek <polacek@redhat.com>
30113
30114 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
30115 length when doing non-zero store of storing '\0' to '\0'.
30116
30117 2013-05-17 Jakub Jelinek <jakub@redhat.com>
30118
30119 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
30120 vect_external_def oprnd1 with loop_vinfo, try to emit
30121 optional cast, negation and and stmts on the loop preheader
30122 edge instead of into the pattern def seq.
30123
30124 PR tree-optimization/57051
30125 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
30126 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
30127
30128 2013-05-16 Nick Clifton <nickc@redhat.com>
30129
30130 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
30131 (rl78_is_naked_func): New function.
30132 (rl78_expand_prologue): Skip prologue generation for naked functions.
30133 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
30134 * doc/extend.texi (naked): Add RL78 to the list of processors
30135 that supports this attribute.
30136
30137 2013-05-16 Jeff Law <law@redhat.com>
30138
30139 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
30140
30141 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
30142
30143 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
30144 cache parameters using detect_caches_amd also for CYRIX,
30145 NSC and TM2 signatures.
30146
30147 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
30148 Dzianis Kahanovich <mahatma@eu.by>
30149
30150 PR target/45359
30151 PR target/46396
30152 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
30153 VIA/Centaur processors and determine their cache parameters
30154 using detect_caches_amd.
30155
30156 2013-05-16 Teresa Johnson <tejohnson@google.com>
30157
30158 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
30159 (rtl_verify_edges): New function.
30160 (rtl_verify_bb_insns): Ditto.
30161 (rtl_verify_bb_pointers): Ditto.
30162 (rtl_verify_bb_insn_chain): Ditto.
30163 (rtl_verify_fallthru): Ditto.
30164 (rtl_verify_bb_layout): Ditto.
30165 (rtl_verify_flow_info_1): Outline checks into new functions.
30166 (rtl_verify_flow_info): Ditto.
30167
30168 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
30169
30170 * cfghooks.c (copy_bbs): Add update_dominance argument.
30171 * cfghooks.h (copy_bbs): Update prototype.
30172 * tree-cfg.c (gimple_duplicate_sese_region):
30173 Add update_dominance argument.
30174 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
30175 * tree-ssa-loop-ch.c (copy_loop_headers): Update
30176 gimple_duplicate_sese_region call.
30177 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
30178 Update copy_bbs call.
30179 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
30180 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
30181
30182 2013-05-16 Jakub Jelinek <jakub@redhat.com>
30183
30184 * tree-vectorizer.h (NUM_PATTERNS): Increment.
30185 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
30186 vect_recog_rotate_pattern.
30187 (vect_recog_rotate_pattern): New function.
30188
30189 2013-05-16 Jason Merrill <jason@redhat.com>
30190
30191 * Makefile.in (LLINKER): New variable.
30192 (mostlyclean): Remove link mutex.
30193 * configure.ac: Handle --enable-link-mutex.
30194 * lock-and-run.sh: New script.
30195
30196 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30197
30198 PR target/19599
30199 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
30200 for NULL decl.
30201
30202 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30203
30204 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
30205
30206 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
30207
30208 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
30209 * config/arm/arm.c (next_consecutive_mem): New function.
30210 (gen_movmem_ldrd_strd): Likewise.
30211 * config/arm/arm.md (movmemqi): Update condition and code.
30212 (unaligned_loaddi, unaligned_storedi): New patterns.
30213
30214 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30215
30216 * config.gcc: Obsolete *-*-solaris2.9*.
30217 * doc/install.texi (Specific, *-*-solaris2*): Document it.
30218
30219 2013-05-16 Richard Biener <rguenther@suse.de>
30220
30221 * passes.c (init_optimization_passes): Move pass_parallelize_loops
30222 earlier, after GRAPHITE transforms and IV canonicalization.
30223
30224 2013-05-16 Jakub Jelinek <jakub@redhat.com>
30225
30226 * omp-low.c (extract_omp_for_data): For collapsed loops,
30227 if at least one of the loops is known at compile time to
30228 iterate zero times, set count to 0.
30229 (expand_omp_regimplify_p): New function.
30230 (expand_omp_for_generic): For collapsed loops, if at least
30231 one of the loops isn't known to iterate at least once,
30232 add runtime check with setting count to 0.
30233 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
30234 For unsigned types if it isn't known at compile time that
30235 the loop will iterate at least once, add runtime check to bypass
30236 the whole loop if initial condition isn't true.
30237
30238 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
30239
30240 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
30241
30242 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
30243
30244 PR middle-end/57286
30245 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
30246 transformations to avoid an infinite loop.
30247
30248 2013-05-16 Marek Polacek <polacek@redhat.com>
30249
30250 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
30251
30252 2013-05-15 Leif Ekblad <leif@rdos.net>
30253
30254 * config/i386/i386.c (ix86_decompose_address): Use
30255 DEFAULT_TLS_SEG_REG to access TLS segment register.
30256 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
30257 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
30258 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
30259
30260 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
30261
30262 PR target/57260
30263 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
30264 sibling calls to functions that would normally be lazily bound,
30265 unless $gp is call-clobbered.
30266
30267 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
30268
30269 * config/i386/i386.c (ix86_option_override_internal): Update
30270 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
30271 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
30272 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
30273 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
30274 of TARGET_3DNOW.
30275 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
30276
30277 2013-05-15 Andreas Schwab <schwab@suse.de>
30278
30279 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
30280 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
30281 third operand.
30282
30283 2013-05-15 Teresa Johnson <tejohnson@google.com>
30284
30285 * loop-unroll.c (report_unroll_peel): Check decision before
30286 emitting unroll/peel message.
30287
30288 2013-05-15 Teresa Johnson <tejohnson@google.com>
30289
30290 * function.h (has_bb_partition): New rtl_data flag.
30291 (bb_reorder_complete): Ditto.
30292 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
30293 instead of flag_reorder_blocks_and_partition.
30294 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
30295 with some enhancements.
30296 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
30297 * bb-reorder.c (connect_traces): Check for has_bb_partition
30298 instead of flag_reorder_blocks_and_partition.
30299 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
30300 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
30301 verify_hot_cold_block_grouping.
30302 (partition_hot_cold_basic_blocks): Set has_bb_partition.
30303
30304 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30305
30306 PR target/19599
30307 * config/arm/predicates.md (call_insn_operand): New predicate.
30308 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
30309 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
30310 if insn is not a tail call.
30311 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
30312 registers.
30313 * config/arm/arm.h (enum reg_class): New caller save register class.
30314 (REG_CLASS_NAMES): Likewise.
30315 (REG_CLASS_CONTENTS): Likewise.
30316 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
30317 without decls.
30318
30319 2013-05-15 Richard Biener <rguenther@suse.de>
30320
30321 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
30322 of MSG_OPTIMIZED_LOCATIONS.
30323 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
30324 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
30325 message.
30326 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
30327 of MSG_OPTIMIZED_LOCATIONS.
30328 (execute_vect_slp): Likewise.
30329 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
30330 (vect_create_cond_for_alias_checks): Likewise.
30331 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
30332 (vect_recog_widen_mult_pattern): Likewise.
30333 (vect_recog_widen_sum_pattern): Likewise.
30334 (vect_recog_over_widening_pattern): Likewise.
30335 (vect_recog_widen_shift_pattern): Likewise.
30336 (vect_recog_vector_vector_shift_pattern): Likewise.
30337 (vect_recog_divmod_pattern): Likewise.
30338 (vect_recog_mixed_size_cond_pattern): Likewise.
30339 (vect_recog_bool_pattern): Likewise.
30340 (vect_pattern_recog_1): Likewise.
30341
30342 2013-05-15 Martin Jambor <mjambor@suse.cz>
30343
30344 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
30345 non-functions to builtin_unreachable.
30346 * ipa-inline-transform.c (inline_call): Do not assert estimates were
30347 correct when new direct edges were discovered.
30348
30349 2013-05-15 Martin Jambor <mjambor@suse.cz>
30350
30351 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
30352 header, print symbol order instead of node uid, print more information
30353 about indirect edge targets.
30354 (ipa_make_edge_direct_to_target): Print symbol order instead of node
30355 uids.
30356 (ipa_make_edge_direct_to_target): Likewise.
30357 (remove_described_reference): Likewise.
30358 (propagate_controlled_uses): Likewise.
30359 (ipa_print_node_params): Also print symbol order.
30360 (ipcp_transform_function): Print symbol order instead of node uids.
30361 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
30362 (cgraph_get_create_real_symbol_node): Likewise.
30363 * ipa-cp.c (print_lattice): Likewise.
30364 (print_all_lattices): Likewise.
30365 (determine_versionability): Likewise.
30366 (initialize_node_lattices): Likewise.
30367 (estimate_local_effects): Likewise.
30368 (update_profiling_info): Likewise.
30369 (create_specialized_node): Likewise.
30370 (perhaps_add_new_callers): Likewise.
30371 (decide_about_value): Likewise.
30372 (decide_whether_version_node): Likewise.
30373 (identify_dead_nodes): Likewise.
30374 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
30375 (dump_inline_summary): Likewise.
30376 (estimate_node_size_and_time): Likewise.
30377 (inline_analyze_function): Likewise.
30378 * ipa-inline.c (report_inline_failed_reason): Likewise.
30379 (want_early_inline_function_p): Likewise.
30380 (edge_badness): Likewise.
30381 (update_edge_key): Likewise.
30382 (inline_small_functions): Likewise. Add dumping of order to two other
30383 dumps.
30384 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
30385 instead of node uids.
30386 (propagate_pure_const): Likewise.
30387 (propagate_pure_const): Likewise.
30388 * ipa-utils.c (dump_cgraph_node_set): Likewise.
30389 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
30390 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
30391 of node uids.
30392 * tree-pretty-print.c (dump_function_header): Likewise.
30393 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
30394 Print symbol order instead of node uids.
30395
30396 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30397
30398 * config/s390/s390.c (s390_register_move_cost): Don't impose the
30399 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
30400
30401 2013-05-15 Richard Biener <rguenther@suse.de>
30402
30403 PR tree-optimization/57275
30404 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
30405 return value for fail to do runtime alias checks for gather loads.
30406
30407 2013-05-15 Jan Hubicka <jh@suse.cz>
30408
30409 PR lto/57038
30410 PR lto/47375
30411 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
30412 weakrefs are not external.
30413 (lto_symtab_merge_decls): Fix thinko when dealing with
30414 non-lto_symtab decls.
30415 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
30416 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
30417 * varpool.c (dump_varpool_node): Dump more flags.
30418
30419 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
30420
30421 * config/i386/i386.c (processor_alias_table): Add instruction
30422 FSGSBASE for AMD bdver3 architecture.
30423
30424 2013-05-14 Jakub Jelinek <jakub@redhat.com>
30425
30426 * tree.c (warn_deprecated_use): Print file:line using locus color.
30427 * diagnostic.c (diagnostic_report_current_module): Print file:line
30428 and file:line:column using locus color.
30429
30430 2013-05-14 Mike Stump <mikestump@comcast.net>
30431
30432 * gdbinit.in: Add __null.
30433
30434 2013-05-14 Mike Stump <mikestump@comcast.net>
30435
30436 * recog.h: Rename struct recog_data to Recog_data.
30437 * recog.c: Likewise.
30438 * reload.c (can_reload_into): Likewise.
30439 * config/picochip/picochip.c: Likewise.
30440
30441 2013-05-14 Mike Stump <mikestump@comcast.net>
30442
30443 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
30444
30445 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
30446
30447 * resource.h (struct resources): Remove unch_memory member.
30448 (CLEAR_RESOURCE): Don't clear unch_memory.
30449 * resource.c (mark_referenced_resources): Don't set it.
30450 (mark_set_resources): Likewise.
30451 (mark_target_live_regs): Don't clear it.
30452 (init_resource_info): Likewise.
30453 * reorg.c (resource_conflicts_p): Don't compare it.
30454 (redundant_insn): Don't set it.
30455
30456 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
30457 Remove prototypes.
30458 * emit-rtl.c (next_label): Remove unused function.
30459 (skip_consecutive_labels, link_cc0_insns): Move to ...
30460 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
30461 only place where these functions are used, and make them static.
30462
30463 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
30464
30465 * fold-const.c (fold_negate_expr): Handle vectors.
30466 (fold_truth_not_expr): Make it static.
30467 (fold_invert_truthvalue): New static function.
30468 (invert_truthvalue_loc): Handle vectors. Do not call
30469 fold_truth_not_expr directly.
30470 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
30471 <TRUTH_NOT_EXPR>: Do not cast to boolean.
30472 (fold_comparison): Handle vector constants.
30473 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
30474 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
30475 * tree.h (fold_truth_not_expr): Remove declaration.
30476
30477 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
30478
30479 * config/aarch64/aarch64-simd.md
30480 (aarch64_vcond_internal<mode>): Rename to...
30481 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
30482 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
30483 float modes. Clarify all iterator modes.
30484 (vcond<mode><mode>): Use new name for vcond expanders.
30485 (vcond<v_cmp_result><mode>): Likewise.
30486 (vcondu<mode><mode>: Likewise.
30487 * config/aarch64/iterators.md (VDQF_COND): New.
30488
30489 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
30490
30491 PR bootstrap/57266
30492 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
30493 variable for the shift amount. Check that we shift by non-negative
30494 amounts.
30495
30496 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
30497
30498 PR target/42017
30499 * config/arm/arm.h (EPILOGUE_USES): Only return true
30500 for LR_REGNUM after epilogue_completed.
30501
30502 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
30503
30504 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
30505 is error_mark_node.
30506
30507 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30508
30509 PR target/57261
30510 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
30511 and Solaris 11+/x86 with gld.
30512 * configure: Regenerate.
30513
30514 2013-05-14 Jakub Jelinek <jakub@redhat.com>
30515
30516 * expmed.c (expand_shift_1): Canonicalize rotates by
30517 constant bitsize / 2 to bitsize - 1.
30518 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
30519 case ROTATERT>: Likewise.
30520
30521 Revert:
30522 2013-05-10 Jakub Jelinek <jakub@redhat.com>
30523
30524 * config/i386/i386.md (rotateinv): New code attr.
30525 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
30526 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
30527 roll $31, %eax, etc.
30528
30529 2013-05-14 Richard Biener <rguenther@suse.de>
30530
30531 PR middle-end/57235
30532 * tree-eh.c (sink_clobbers): Give up for successors with
30533 multiple predecessors and no virtual uses.
30534
30535 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
30536
30537 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
30538 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
30539
30540 2013-05-14 Jakub Jelinek <jakub@redhat.com>
30541
30542 PR middle-end/57251
30543 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
30544 the case when both op0 and op1 have VOIDmode.
30545
30546 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
30547
30548 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
30549 in multiply-accumulate mode.
30550
30551 2013-05-13 Guozhi Wei <carrot@google.com>
30552
30553 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
30554
30555 2013-05-13 Kai Tietz <ktietz@redhat.com>
30556
30557 PR target/56975
30558 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
30559 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
30560 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
30561 * config/i386/i386.c (ix86_option_override_internal): Likewise.
30562 (ix86_expand_prologue): Likewise.
30563 (ix86_expand_split_stack_prologue): Likewise.
30564 (legitimate_pic_address_disp_p): Likewise.
30565 (legitimize_pic_address): Likewise.
30566 (legitimize_tls_address): Likewise.
30567 (legitimize_pe_coff_symbol): Likewise.
30568 (output_pic_addr_const): Likewise.
30569 (construct_plt_address): Likewise.
30570 (ix86_expand_call): Likewise.
30571 (x86_output_mi_thunk): Likewise.
30572 (x86_function_profiler): Likewise.
30573
30574 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
30575
30576 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
30577 similar switch cases.
30578 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
30579 (aarch64_simd_mov_to_<mode>low): Delete.
30580 (aarch64_simd_mov_to_<mode>high): Delete.
30581 (move_lo_quad_<mode>): Add w<-r alternative.
30582 (aarch64_simd_move_hi_quad_<mode>): Likewise.
30583 (aarch64_simd_mov_from_*): Update type attribute.
30584 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
30585 statement.
30586
30587 2013-05-13 Jan Hubicka <jh@suse.cz>
30588
30589 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
30590 * config/i386/i386.c (ix86_compute_frame_layout,
30591 ix86_expand_epilogue, emit_i387_cw_initialization,
30592 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
30593 ix86_local_alignment): Fix use of size/speed predicates.
30594
30595 2013-05-13 Jakub Jelinek <jakub@redhat.com>
30596
30597 PR tree-optimization/45216
30598 PR tree-optimization/57157
30599 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
30600 the (-Y) & (B - 1) variant if OP is |.
30601 * expmed.c (expand_shift_1): For rotations by const0_rtx just
30602 return shifted. Use (-op1) & (prec - 1) as other_amount
30603 instead of prec - op1.
30604
30605 2013-05-13 Martin Jambor <mjambor@suse.cz>
30606
30607 PR middle-end/42371
30608 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
30609 (ipa_constant_data): New type.
30610 (ipa_jump_func): Use ipa_constant_data to hold information about
30611 constant jump functions.
30612 (ipa_get_jf_constant): Adjust to jump function type changes.
30613 (ipa_get_jf_constant_rdesc): New function.
30614 (ipa_param_descriptor): New field controlled_uses.
30615 (ipa_get_controlled_uses): New function.
30616 (ipa_set_controlled_uses): Likewise.
30617 * ipa-ref.h (ipa_find_reference): Declare.
30618 * ipa-prop.c (ipa_cst_ref_desc): New type.
30619 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
30620 changes.
30621 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
30622 New parameter cs. Adjust all callers.
30623 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
30624 (remove_described_reference): New function.
30625 (jfunc_rdesc_usable): Likewise.
30626 (try_make_edge_direct_simple_call): Decrement controlled use count,
30627 attempt to remove reference if it hits zero.
30628 (combine_controlled_uses_counters): New function.
30629 (propagate_controlled_uses): Likewise.
30630 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
30631 (ipa_edge_duplication_hook): Duplicate reference descriptions.
30632 (ipa_print_node_params): Print described use counter.
30633 (ipa_write_jump_function): Adjust to jump function type changes.
30634 (ipa_read_jump_function): New parameter CS, pass it to
30635 ipa_set_jf_constant. Adjust caller.
30636 (ipa_write_node_info): Stream controlled use count
30637 (ipa_read_node_info): Likewise.
30638 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
30639 asserting.
30640 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
30641 count. Remove cloning-added reference if it reaches zero.
30642 * ipa-ref.c (ipa_find_reference): New function.
30643
30644 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
30645
30646 * config/i386/i386.c (processor_target_table): Modified default
30647 alignment values for AMD BD and BT architectures.
30648
30649 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
30650
30651 * tree-vect-generic.c (uniform_vector_p): Move ...
30652 * tree.c (uniform_vector_p): ... here.
30653 * tree.h (uniform_vector_p): Declare it.
30654 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
30655 into a scalar.
30656
30657 2013-05-13 Jakub Jelinek <jakub@redhat.com>
30658
30659 PR tree-optimization/57230
30660 * tree-ssa-strlen.c (handle_char_store): Record length for
30661 array store from STRING_CST.
30662
30663 PR tree-optimization/57230
30664 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
30665 check.
30666
30667 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
30668
30669 * config/epiphany/epiphany.c (epiphany_init): Check size of
30670 NUM_MODES_FOR_MODE_SWITCHING.
30671 (epiphany_expand_prologue):
30672 Remove CONFIG_REGNUM initial value handling code.
30673 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
30674 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
30675 (emit_set_fp_mode, epiphany_mode_after): Likewise.
30676 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
30677 Don't return 1 for FP_MODE_NONE.
30678 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
30679 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
30680 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
30681 * config/epiphany/epiphany.md (save_config): New pattern.
30682
30683 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
30684
30685 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
30686
30687 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
30688
30689 * config/i386/i386.md (memory): Handle sseishft1.
30690 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
30691 (*vec_extractv2di_1): Ditto.
30692
30693 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
30694
30695 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
30696 saved registers.
30697
30698 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
30699
30700 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
30701 Add mthumb/march=armv7-a multilib.
30702 Add mthumb/march=armv7-r multilib.
30703 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
30704
30705 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
30706
30707 * config/v850/t-rtems: Add more multilibs.
30708
30709 2013-05-10 Richard Biener <rguenther@suse.de>
30710
30711 PR tree-optimization/57214
30712 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
30713 not propagate from SSA names that occur in abnormal PHI nodes.
30714
30715 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
30716
30717 * stor-layout.c (element_precision): New function.
30718 * machmode.h (element_precision): Declare it.
30719 * tree.c (build_minus_one_cst): New function.
30720 (element_precision): Likewise.
30721 * tree.h (build_minus_one_cst): Declare new function.
30722 (element_precision): Likewise.
30723 * fold-const.c (operand_equal_p): Use element_precision.
30724 (fold_binary_loc): Handle vector types.
30725 * convert.c (convert_to_integer): Use element_precision.
30726 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
30727 separately.
30728
30729 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
30730
30731 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
30732 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
30733 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
30734 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
30735 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
30736 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
30737 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
30738 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
30739 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
30740 (Uuw8): New constraints.
30741 (Usb4): Move into alphabetical order.
30742 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
30743 (sd8_operand, ub8_operand, uw8_operand): New predicates.
30744 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
30745 previously unnamed patterns.
30746 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
30747 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
30748 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
30749 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
30750 of set_attr_alternative/if_then_else. Use extended_mips16 instead
30751 of specific lengths.
30752
30753 2013-05-10 Jakub Jelinek <jakub@redhat.com>
30754
30755 * config/i386/i386.md (rotateinv): New code attr.
30756 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
30757 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
30758 roll $31, %eax, etc.
30759
30760 PR tree-optimization/45216
30761 PR tree-optimization/57157
30762 * tree-ssa-forwprop.c (simplify_rotate): New function.
30763 (ssa_forward_propagate_and_combine): Call it.
30764
30765 2013-05-10 Richard Biener <rguenther@suse.de>
30766
30767 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
30768 disable peeling when we version for aliasing.
30769 (vector_alignment_reachable_p): Honor explicit user alignment.
30770 (vect_supportable_dr_alignment): Likewise.
30771 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
30772 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
30773 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
30774 then peeling to arrange for the cost-model check to come first.
30775
30776 2013-05-10 Alan Modra <amodra@gmail.com>
30777
30778 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
30779 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
30780 * configure: Regenerate.
30781
30782 2013-05-10 Alan Modra <amodra@gmail.com>
30783
30784 PR target/55033
30785 * varasm.c (default_elf_select_section): Move !DECL_P check..
30786 (get_named_section): ..to here before calling get_section_name.
30787 Adjust assertion.
30788 (default_section_type_flags): Add DECL_P check.
30789 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
30790 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
30791
30792 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
30793
30794 * config/epiphany/epiphany.c (epiphany_expand_prologue):
30795 When using gen_stack_adjust_str with a register offset, add a
30796 REG_FRAME_RELATED_EXPR note.
30797
30798 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
30799
30800 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
30801 (*vec_extractv4si_zext_mem): Ditto.
30802 (*vec_extractv2di): Add 0->x and x->x alternatives.
30803 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
30804 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
30805
30806 2013-05-09 Jason Merrill <jason@redhat.com>
30807
30808 N3639 C++1y VLA support
30809 * gimplify.c (gimplify_vla_decl): Don't touch an existing
30810 DECL_VALUE_EXPR.
30811
30812 * tree.c (build_constructor_va): New.
30813 * tree.h: Declare it.
30814
30815 2013-05-09 Martin Jambor <mjambor@suse.cz>
30816
30817 PR lto/57084
30818 * gimple-fold.c (canonicalize_constructor_val): Call
30819 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
30820
30821 2013-05-09 Jan Hubicka <jh@suse.cz>
30822 Richard Biener <rguenther@suse.de>
30823
30824 PR lto/54095
30825 * symtab.c (symtab_make_decl_local): Do not add private names.
30826
30827 2013-05-09 Jan Hubicka <jh@suse.cz>
30828
30829 PR lto/54095
30830 * symtab.c (insert_to_assembler_name_hash): Handle clones.
30831 (unlink_from_assembler_name_hash): Likewise.
30832 (symtab_prevail_in_asm_name_hash, symtab_register_node,
30833 symtab_unregister_node, symtab_initialize_asm_name_hash,
30834 change_decl_assembler_name): Update.
30835
30836 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
30837
30838 * config/aarch64/aarch64.md: New movtf split.
30839 (*movtf_aarch64): Update.
30840 (aarch64_movdi_tilow): Handle TF modes and rename to
30841 aarch64_movdi_<mode>low.
30842 (aarch64_movdi_tihigh): Handle TF modes and rename to
30843 aarch64_movdi_<mode>high
30844 (aarch64_movtihigh_di): Handle TF modes and rename to
30845 aarch64_mov<mode>high_di
30846 (aarch64_movtilow_di): Handle TF modes and rename to
30847 aarch64_mov<mode>low_di
30848 (aarch64_movtilow_tilow): Remove spurious whitespace.
30849 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
30850 splits.
30851 (aarch64_print_operand): Update.
30852
30853 2013-05-09 Alan Modra <amodra@gmail.com>
30854
30855 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
30856 powerpc64le.
30857 * configure: Regenerate.
30858
30859 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
30860
30861 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
30862 splitter preparation statements.
30863 * config/i386/sse.md (*vec_extract* splitters): Ditto.
30864 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
30865 adjust_address_nv.
30866
30867 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30868
30869 * gimple-ssa-strength-reduction.c (count_candidates): Change
30870 return value to int.
30871 (analyze_candidates_and_replace): Change type of length to int.
30872
30873 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
30874
30875 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
30876 (*vec_extract<mode>): Use VI12_128 mode iterator.
30877 (*vec_extract<mode>_mem): Ditto.
30878 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
30879 attribute.
30880
30881 2013-05-08 Diego Novillo <dnovillo@google.com>
30882
30883 PR bootstrap/54659
30884
30885 Revert:
30886 2012-08-17 Diego Novillo <dnovillo@google.com>
30887
30888 PR bootstrap/54281
30889 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
30890 * config.in: Regenerate.
30891 * configure: Regenerate.
30892 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
30893
30894 2013-05-08 Jan Hubicka <jh@suse.cz>
30895
30896 PR lto/54095
30897 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
30898 * cgraph.h (symtab_node_base): Add unique_name.
30899 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
30900 input_overwrite_node, input_varpool_node): Stream unique_name.
30901 * cgraphclones.c (cgraph_create_virtual_clone,
30902 cgraph_function_versioning): Set unique_name.
30903 * ipa.c (function_and_variable_visibility): Set unique_name.
30904
30905 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30906
30907 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
30908 (alloc_cand_and_find_basis): Restrict conditional candidate
30909 processing to CAND_MULTs.
30910
30911 2013-05-08 Jan Hubicka <jh@suse.cz>
30912
30913 PR lto/54095
30914 lto-symtab.c (lto_symtab_symbol_p): New function.
30915 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
30916 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
30917 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
30918 Skip static symbols.
30919
30920 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
30921
30922 PR tree-optimization/57200
30923 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
30924 Only call inform if the preceding warning_at returns true.
30925
30926 2013-05-07 Han Shen <shenhan@google.com>
30927
30928 * cfgexpand.c (record_or_union_type_has_array_p): New function.
30929 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
30930 * common.opt (fstack-protector-strong): New option.
30931 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
30932 * doc/invoke.texi (Optimization Options): Document
30933 "-fstack-protector-strong".
30934 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
30935
30936 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
30937
30938 * config/mips/mips.c (mips_machine_reorg2): Return 0.
30939
30940 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
30941
30942 * ira.c (update_equiv_regs): Add insn having equiv memory even if
30943 it is not lhs of the insn.
30944 (setup_reg_equiv): Remove insn having equiv memory which it is not
30945 lhs of the insn.
30946 * lra-constraints.c (process_address): Try to improve generation
30947 code for address base + disp.
30948 (lra_constraints): Make correct the code for checking insn setting
30949 up backward equivalence. Remove insn only if it is in the init
30950 insn list.
30951 * lra-eliminations.c (update_reg_eliminate): Change return value.
30952 (lra_eliminate): Use the result.
30953
30954 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
30955
30956 * config/i386/sse.md (ssescalarnummask): New mode attribute.
30957 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
30958 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
30959 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
30960 register target operands.
30961 (*vec_extractv8hi_sse2): New pattern.
30962 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
30963 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
30964 (*vec_extract<mode>_mem): New insn and split pattern.
30965
30966 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
30967
30968 * config/arm/arm.c (arm_asan_shadow_offset): New function.
30969 (TARGET_ASAN_SHADOW_OFFSET): Define.
30970 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
30971 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
30972
30973 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30974
30975 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
30976 (incr_vec_index): Return -1 if increment not found.
30977 (create_add_on_incoming_edge): Assert if increment not found.
30978 (record_increment): Limit number of increments recorded.
30979 (all_phi_incrs_profitable): Return false if an increment not found.
30980 (replace_profitable_candidates): Don't process increments that were
30981 not recorded.
30982 (analyze_candidates_and_replace): Limit size of incr_vec.
30983
30984 2013-05-07 Richard Biener <rguenther@suse.de>
30985
30986 * calls.c (special_function_p): setjmp-like functions are leaf.
30987 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
30988 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
30989
30990 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
30991
30992 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
30993 (aarch64_simd_mov<mode>): New expander.
30994 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
30995 (aarch64_simd_mov_to_<mode>high): Likewise.
30996 (aarch64_simd_mov_from_<mode>low): Likewise.
30997 (aarch64_simd_mov_from_<mode>high): Likewise.
30998 (aarch64_dup_lane<mode>): Update.
30999 (aarch64_dup_lanedi): New instruction pattern.
31000 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
31001 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
31002
31003 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31004
31005 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
31006 (replace_mult_candidate): Remove unnecessary argument; remove
31007 unnecessary parameter from call to introduce_cast_before_cand.
31008 (replace_unconditional_candidate): Remove unnecessary parameter
31009 from call to replace_mult_candidate.
31010 (replace_conditional_candidate): Likewise.
31011 (insert_initializers): Use make_temp_ssa_name.
31012 (introduce_cast_before_cand): Remove unnecessary argument; use
31013 make_temp_ssa_name.
31014 (replace_one_candidate): Remove unnecessary argument; remove
31015 unnecessary parameter from calls to introduce_cast_before_cand.
31016 (replace_profitable_candidates): Remove unnecessary parameters
31017 from calls to replace_one_candidate.
31018
31019 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31020
31021 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
31022 phi def as possibly hiding a basis for a CAND_ADD whose operands
31023 have been commuted in the analysis.
31024 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
31025
31026 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31027
31028 * config/aarch64/aarch64.md
31029 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
31030 shift value between 0-4.
31031
31032 2013-05-07 Richard Biener <rguenther@suse.de>
31033
31034 * double-int.h (rshift): New overload.
31035 * double-int.c (rshift): New function.
31036 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
31037 (create_reference_ops_from_ref): Remove.
31038 (vn_reference_insert): Use shared ops for constructing the
31039 reference and copy it.
31040
31041 2013-05-07 Richard Biener <rguenther@suse.de>
31042
31043 PR middle-end/57190
31044 * tree-eh.c (sink_clobbers): Properly propagate
31045 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
31046
31047 2013-05-07 Jakub Jelinek <jakub@redhat.com>
31048
31049 PR tree-optimization/57149
31050 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
31051 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
31052 collect_phi_def_edges, execute_late_warn_uninitialized): Use
31053 uninit_undefined_value_p instead of ssa_undefined_value_p.
31054
31055 PR debug/57184
31056 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
31057 for modifier == EXPAND_INITIALIZER.
31058
31059 2013-05-07 Anton Blanchard <anton@samba.org>
31060
31061 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
31062 for powerpc64 little endian.
31063 * configure: Regenerate.
31064
31065 2013-05-06 Graham Stott <grahams@btinternet.com>
31066
31067 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
31068 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
31069 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
31070 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
31071
31072 2013-05-06 Graham Stott <grahams@btinternet.com>
31073
31074 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
31075 codes which allow non-lvalues.
31076
31077 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
31078
31079 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
31080 components are all 1s.
31081 (integer_minus_onep): New function.
31082 * tree.h (integer_minus_onep): Declare it.
31083 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
31084 integer_minus_onep instead of integer_all_onesp.
31085
31086 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
31087
31088 PR target/52933
31089 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
31090 variations of these patterns.
31091
31092 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
31093
31094 * config/i386/i386.md (isa): Add x64_sse4 member.
31095 (enabled): Handle x64_sse4.
31096 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
31097 instruction for 64bit SSE4_1 targets. Update insn attributes.
31098 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
31099 instruction for SSE4_1 targets. Update insn attributes.
31100 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
31101 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
31102 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
31103 const_1 selector.
31104 (*vec_extractv4si): Rename from *sse4_1_pextrd.
31105 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
31106 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
31107
31108 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
31109
31110 PR target/57108
31111 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
31112
31113 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
31114
31115 * final.c (do_assembler_dialects): Don't handle curly braces and
31116 vertical bar escaped by % as dialect delimiters.
31117 (output_asm_insn): Print curly braces and vertical bar if escaped
31118 by % and ASSEMBLER_DIALECT defined.
31119 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
31120 * doc/tm.texi: Regenerated.
31121
31122 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
31123
31124 * config/mips/mips.c: Include tree-pass.h.
31125 (mips_reorg): Split in pre- and post-dbr_schedule parts.
31126 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
31127 (pass_mips_machine_reorg2): New machine specific pass.
31128 (insert_pass_mips_machine_reorg2): New pass plugin definition.
31129 (mips_option_override): Register the new pass.
31130 * rtl.h (cleanup_barriers): Remove prototype.
31131 (dbr_schedule): Likewise.
31132 * jump.c (cleanup_barriers): Make static.
31133 * reorg.c (dbr_schedule): Likewise.
31134
31135 2013-05-06 Richard Biener <rguenther@suse.de>
31136
31137 PR tree-optimization/57185
31138 * tree-parloops.c (add_field_for_reduction): Handle anonymous
31139 SSA names properly.
31140
31141 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
31142
31143 PR target/57106
31144 * config/i386/i386.c (add_parameter_dependencies): Add dependence
31145 between "first_arg" and "insn", not "last" and "insn".
31146
31147 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31148
31149 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
31150 (find_candidates_in_block): Re-enable slsr_process_phi.
31151 (create_phi_basis): Fix double counting of candidate adjustment.
31152
31153 2013-05-06 Richard Biener <rguenther@suse.de>
31154
31155 PR middle-end/57147
31156 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
31157 the edge is also fallthru, preserve it and just clear the
31158 abnormal flag.
31159 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
31160 also complex, preserve that and just clear the fallthru flag.
31161 * tree-inline.c (update_ssa_across_abnormal_edges): Also
31162 update virtual operands.
31163
31164 2013-05-06 Alan Modra <amodra@gmail.com>
31165
31166 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
31167 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
31168 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
31169 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
31170 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
31171 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
31172
31173 2013-05-06 Alan Modra <amodra@gmail.com>
31174
31175 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
31176 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
31177 (DEFAULT_ASM_ENDIAN): Define.
31178 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
31179 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
31180 Update -K PIC clause from sysv4.h.
31181 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
31182 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
31183
31184 2013-05-06 Alan Modra <amodra@gmail.com>
31185
31186 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
31187 twice for little-endian.
31188 (ashrdi3_no_power, ashrdi3): Support little-endian.
31189
31190 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
31191
31192 PR target/55303
31193 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
31194 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
31195 related expanders.
31196 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
31197 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
31198 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
31199 New predicates.
31200
31201 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
31202 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31203
31204 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
31205 * config/pa/pa.opt: Make mbig-switch a no-op.
31206 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
31207 (CASE_VECTOR_MODE): Always return SImode.
31208 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
31209 for the !TARGET_BIG_SWITCH case.
31210 * config/pa/pa-linux.h: Likewise.
31211 * config/pa/pa-openbsd.h: Likewise.
31212 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
31213 * config/pa/pa.md (short_jump): Remove define_insn.
31214 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
31215 (casesi0): Remove define_insn.
31216 (type): Remove btable_branch.
31217 (pa_combine_type): Likewise.
31218 (in_nullified_branch_delay): Likewise.
31219 (in_call_delay): Likewise.
31220 (define_delay): Likewise.
31221 (define_insn_reservation "Z3"): Likewise.
31222 (define_insn_reservation "Z4"): Likewise.
31223 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
31224 (pa_adjust_insn_length): Remove adjustment for btable branches.
31225 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
31226 and mno-big-switch
31227
31228 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
31229
31230 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
31231 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
31232 Add m->r,x alternatives.
31233 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
31234 splitters using SWI48x mode iterator.
31235 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
31236 TARGET_64BIT. Add m->x alternative.
31237 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
31238 Add o->x alternative. Enable for TARGET_SSE.
31239 (sse_storeq): Remove expander.
31240 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
31241 with memory input operand.
31242 (*vec_extractv2di_1 splitter): New.
31243 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
31244 * config/i386/i386.md (ssevecmodelower): New mode attribute.
31245
31246 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
31247
31248 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
31249 (INT_LOWPART): Delete.
31250 (extract_MB): Adjust.
31251 (extract_ME): Adjust.
31252 (print_operand): Adjust.
31253
31254 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
31255
31256 * config/rs6000/predicates.md (reg_or_add_cint_operand,
31257 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
31258 (reg_or_logical_cint_operand, easy_fp_constant,
31259 logical_const_operand): Delete "CONST_DOUBLE" case.
31260 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
31261 "HOST_BITS_PER_WIDE_INT == 64" test.
31262 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
31263 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
31264 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
31265 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
31266 test.
31267 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
31268 CONST_DOUBLE DImode/VOIDmode case.
31269 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
31270 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
31271 CONST_DOUBLE VOIDmode case.
31272 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
31273 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
31274 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
31275 Delete CONST_DOUBLE case.
31276 (splitters for mov FMOVE64 const_double): Delete
31277 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
31278 "HOST_BITS_PER_WIDE_INT >= 64" test.
31279 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
31280 case.
31281 (mov DI const_double): Delete.
31282
31283 2013-05-04 Jakub Jelinek <jakub@redhat.com>
31284
31285 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
31286 on op shows all bits zero in mode of a lowpart subreg, return zero.
31287
31288 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
31289
31290 PR target/57150
31291 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
31292 to save TFmode registers and DImode to save TImode registers for
31293 caller save operations.
31294 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
31295 mark being partially clobbered since they only use the first
31296 double word.
31297
31298 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
31299 and TDmode only use the upper 64-bits of each VSX register.
31300
31301 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31302
31303 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
31304 (find_candidates_in_block): Disable slsr_process_phi.
31305
31306 2013-05-03 Guozhi Wei <carrot@google.com>
31307
31308 * coverage.c (coverage_obj_init): Move the construction of gcov
31309 constructor to ...
31310 (build_init_ctor): ... here.
31311
31312 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31313
31314 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
31315 (slsr_cand_d): Redefine def_phi.
31316 (stride_status, phi_adjust_status, count_phis_status): New enums.
31317 (find_phi_def): New.
31318 (find_basis_for_base_expr): New.
31319 (find_basis_for_candidate): Handle hidden bases.
31320 (alloc_cand_and_find_basis): Handle phi candidates.
31321 (slsr_process_phi): New.
31322 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
31323 (create_mul_imm_cand): Likewise.
31324 (create_add_ssa_cand): Exclude phi base candidates.
31325 (create_add_imm_cand): Likewise.
31326 (slsr_process_cast): Likewise.
31327 (slsr_process_copy): Likewise.
31328 (find_candidates_in_block): Handle phi candidates.
31329 (dump_candidate): Likewise.
31330 (unconditional_cands): Delete.
31331 (unconditional_cands_with_known_stride_p): Delete.
31332 (phi_dependent_cand_p): New.
31333 (cand_increment): Handle phi-dependent candidates.
31334 (replace_dependent): Delete.
31335 (replace_mult_candidate): New.
31336 (replace_unconditional_candidate): New.
31337 (incr_vec_index): Move to avoid forward reference.
31338 (create_add_on_incoming_edge): New.
31339 (create_phi_basis): New.
31340 (replace_dependents): Delete.
31341 (replace_conditional_candidate): New.
31342 (phi_add_costs): New.
31343 (replace_uncond_cands_and_profitable_phis): New.
31344 (record_increment): Handle phi adjustments.
31345 (record_phi_increments): New.
31346 (record_increments): Handle phi adjustments.
31347 (phi_incr_cost): New.
31348 (lowest_cost_path): Handle phis.
31349 (total_savings): Likewise.
31350 (analyze_increments): Likewise.
31351 (ncd_with_phi): New.
31352 (ncd_of_cand_and_phis): New.
31353 (nearest_common_dominator_for_cands): Handle phi increments.
31354 (all_phi_incrs_profitable): New.
31355 (replace_profitable_candidates): Handle phi-dependent candidates.
31356 (analyze_candidates_and_replace): Likewise.
31357
31358 2013-05-03 Teresa Johnson <tejohnson@google.com>
31359
31360 PR bootstrap/57154
31361 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
31362 do not exceed REG_BR_PROB_BASE.
31363
31364 2013-05-03 Jeff Law <law@redhat.com>
31365
31366 PR tree-optimization/57144
31367 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
31368 operand of the condition will bit into the new type when eliminating
31369 a cast feeding a condition.
31370
31371 2013-05-03 Jakub Jelinek <jakub@redhat.com>
31372
31373 PR rtl-optimization/57130
31374 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
31375 of COMPARE as in_code to the recursive call if needed.
31376
31377 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
31378
31379 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
31380 (enabled): Handle new members.
31381 * config/i386/sse.md (*vec_concatv2si): Merge from
31382 *vec_concatv2si_sse2 and vec_concatv2si_sse.
31383 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
31384
31385 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
31386
31387 PR tree-optimization/57027
31388 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
31389 for fnms opportunity, check we got the prerequisite kind
31390 of tree / gimple before using accessor functions.
31391
31392 2013-05-03 Richard Biener <rguenther@suse.de>
31393
31394 * double-int.h (lshift): New overload without precision
31395 and arith argument.
31396 (operator *=, operator +=, operator -=): Move ...
31397 * double-int.c (operator *=, operator +=, operator -=): ... here
31398 and implement more efficiently.
31399 (mul_double_with_sign): Remove.
31400 (lshift_double): Adjust to take unsinged shift argument, push
31401 dispatching code to callers.
31402 (mul_double_wide_with_sign): Add early out for callers that
31403 are not interested in high parts or overflow.
31404 (lshift): New function.
31405 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
31406 dispatch code here.
31407 (lrotate, rrotate): Use logical shifts.
31408 * expr.c (get_inner_reference): Use lshift.
31409 * fixed-value.c (do_fixed_divide): Likewise.
31410 * tree-dfa.c (get_ref_base_and_extent): Likewise.
31411 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
31412 (indirect_refs_may_alias_p): Likewise.
31413 (stmt_kills_ref_p_1): Likewise.
31414
31415 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
31416
31417 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
31418
31419 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
31420
31421 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
31422 scalar form of FABD instruction.
31423
31424 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
31425
31426 * lra-constraints.c (process_alt_operands): Add checking alt
31427 number to choose the best alternative.
31428
31429 2013-05-02 Richard Biener <rguenther@suse.de>
31430
31431 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
31432 bitmap and its handling.
31433 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
31434
31435 2013-05-02 Richard Biener <rguenther@suse.de>
31436
31437 PR middle-end/57140
31438 * tree-inline.c (copy_loops): Properly handle removed loops.
31439 (copy_cfg_body): Mark destination loops for fixup if source
31440 loops needed fixup.
31441
31442 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
31443
31444 PR target/56732
31445 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
31446 generating simple_return for naked functions.
31447
31448 2013-05-02 Martin Jambor <mjambor@suse.cz>
31449
31450 PR middle-end/56988
31451 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
31452 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
31453 flags match.
31454 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
31455 ipa_agg_replacement_value structures.
31456 (known_aggs_to_agg_replacement_list): Likewise.
31457 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
31458 (read_agg_replacement_chain): Likewise.
31459 (ipcp_transform_function): Also check that by_ref flags match.
31460
31461 2013-05-02 Richard Biener <rguenther@suse.de>
31462
31463 * graphds.h (struct graph): Add obstack member.
31464 * graphds.c (new_graph): Initialize obstack and allocate
31465 vertices from it.
31466 (add_edge): Allocate edge from the obstack.
31467 (free_graph): Free the obstack instead of all edges and vertices.
31468
31469 2013-05-02 Teresa Johnson <tejohnson@google.com>
31470
31471 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
31472 divides.
31473 * cfg.c (update_bb_profile_for_threading): Ditto.
31474 * tree-inline.c (copy_bb): Ditto.
31475 (copy_edges_for_bb): Ditto.
31476 (initialize_cfun): Ditto.
31477 (copy_cfg_body): Ditto.
31478 (expand_call_inline): Ditto.
31479 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
31480 (estimate_node_size_and_time): Ditto.
31481 (inline_merge_summary): Ditto.
31482 * cgraphclones.c (cgraph_clone_edge): Ditto.
31483 (cgraph_clone_node): Ditto.
31484 * sched-rgn.c (compute_dom_prob_ps): Ditto.
31485 (compute_trg_info): Ditto.
31486
31487 2013-05-02 Ian Bolton <ian.bolton@arm.com>
31488
31489 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
31490 S reg when fp attribute set.
31491 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
31492
31493 2013-05-02 Ian Bolton <ian.bolton@arm.com>
31494
31495 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
31496 New pattern.
31497 (*and_one_cmplsi3_compare0_uxtw): Likewise.
31498 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
31499 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
31500
31501 2013-05-02 Richard Biener <rguenther@suse.de>
31502
31503 * tree-scalar-evolution.c (scev_info_hasher): Remove.
31504 (struct instantiate_cache_entry): New type.
31505 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
31506 (struct instantiate_cache_type): New type.
31507 (set_instantiated_value, get_instantiated_value): Remove.
31508 (get_instantiated_value_entry): New function.
31509 (instantiate_scev_name): Use the new cache and adjust.
31510 (instantiate_scev_poly): Adjust.
31511 (instantiate_scev_binary): Likewise.
31512 (instantiate_array_ref): Likewise.
31513 (instantiate_scev_convert): Likewise.
31514 (instantiate_scev_not): Likewise.
31515 (instantiate_scev_3): Likewise.
31516 (instantiate_scev_2): Likewise.
31517 (instantiate_scev_r): Likewise.
31518 (instantiate_scev): Likewise.
31519 (resolve_mixers): Likewise.
31520
31521 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
31522
31523 PR target/57091
31524 * lra-constraints.c (best_small_class_operands_num): Remove.
31525 (process_alt_operands): Remove small_class_operands_num. Take
31526 small classes operands into losers and only if the operand is not
31527 matched. Modify debugging output.
31528 (curr_insn_transform): Remove best_small_class_operands_num.
31529 Print insn name.
31530
31531 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
31532
31533 * config/aarch64/aarch64-builtins.c
31534 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
31535 * config/aarch64/aarch64-simd-builtins.def
31536 (reduc_splus_): Add new modes.
31537 (reduc_uplus_): New.
31538 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
31539 (reduc_uplus_v4sf): Likewise.
31540 (reduc_splus_v4sf): Likewise.
31541 (aarch64_addv<mode>): Likewise.
31542 (reduc_uplus_<mode>): Likewise.
31543 (reduc_splus_<mode>): Likewise.
31544 (aarch64_addvv2di): Likewise.
31545 (reduc_uplus_v2di): Likewise.
31546 (reduc_splus_v2di): Likewise.
31547 (aarch64_addvv2si): Likewise.
31548 (reduc_uplus_v2si): Likewise.
31549 (reduc_splus_v2si): Likewise.
31550 (reduc_<sur>plus_<mode>): New.
31551 (reduc_<sur>plus_v2di): Likewise.
31552 (reduc_<sur>plus_v2si): Likewise.
31553 (reduc_<sur>plus_v4sf): Likewise.
31554 (aarch64_addpv4sf): Likewise.
31555 * config/aarch64/arm_neon.h
31556 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
31557 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
31558 add UNSPEC_SADDV, UNSPEC_UADDV.
31559 (SUADDV): New.
31560 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
31561
31562 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
31563
31564 * config/aarch64/arm_neon.h
31565 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
31566
31567 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
31568
31569 * config/aarch64/aarch64-builtins
31570 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
31571
31572 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
31573
31574 * config/aarch64/aarch64-simd-builtins.def
31575 (reduc_smax_): New.
31576 (reduc_smin_): Likewise.
31577 (reduc_umax_): Likewise.
31578 (reduc_umin_): Likewise.
31579 (reduc_smax_nan_): Likewise.
31580 (reduc_smin_nan_): Likewise.
31581 (fmax): Remove.
31582 (fmin): Likewise.
31583 (smax): Update for V2SF, V4SF and V2DF modes.
31584 (smin): Likewise.
31585 (smax_nan): New.
31586 (smin_nan): Likewise.
31587 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
31588 (<su><maxmin><mode>3): ...This, refactor.
31589 (s<maxmin><mode>3): New.
31590 (<maxmin_uns><mode>3): Likewise.
31591 (reduc_<maxmin_uns>_<mode>): Refactor.
31592 (reduc_<maxmin_uns>_v4sf): Likewise.
31593 (reduc_<maxmin_uns>_v2si): Likewise.
31594 (aarch64_<fmaxmin><mode>: Remove.
31595 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
31596 new builtin names.
31597 (vmin<q>_f<32,64>): Likewise.
31598 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
31599 (FMAXMIN): New.
31600 (su): Add mappings for smax, smin, umax, umin.
31601 (maxmin): New.
31602 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
31603 (FMAXMIN): Rename as...
31604 (FMAXMIN_UNS): ...This.
31605 (maxminv): Remove.
31606 (fmaxminv): Likewise.
31607 (fmaxmin): Likewise.
31608 (maxmin_uns): New.
31609 (maxmin_uns_op): Likewise.
31610
31611 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
31612
31613 * config/aarch64/arm_neon.h
31614 (vac<ge, gt><sd>_f<32, 64>): Rename to...
31615 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
31616 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
31617
31618 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
31619
31620 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
31621 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
31622
31623 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
31624
31625 * config/aarch64/aarch64-simd.md
31626 (vcond<mode>_internal): Handle special cases for constant masks.
31627 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
31628 (vcondu<mode><mode>): Likewise.
31629 (vcond<v_cmp_result><mode>): New.
31630
31631 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
31632
31633 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
31634 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
31635 * config/aarch64/aarch64-simd-builtins.def
31636 (cmeq): Update to BUILTIN_VALLDI.
31637 (cmgt): Likewise.
31638 (cmge): Likewise.
31639 (cmle): Likewise.
31640 (cmlt): Likewise.
31641 * config/aarch64/arm_neon.h
31642 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
31643 to builtins or C as appropriate.
31644
31645 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
31646
31647 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
31648 (cmgeu): ...This.
31649 (cmhi): Rename to...
31650 (cmgtu): ...This.
31651 * config/aarch64/aarch64-simd.md
31652 (simd_mode): Add SF.
31653 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
31654 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
31655 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
31656 (cstore<mode>_neg): ...This.
31657 * config/aarch64/iterators.md
31658 (VALLF): new.
31659 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
31660 (COMPARISONS): New.
31661 (UCOMPARISONS): Likewise.
31662 (optab): Add missing comparisons.
31663 (n_optab): New.
31664 (cmp_1): Likewise.
31665 (cmp_2): Likewise.
31666 (CMP): Likewise.
31667 (cmp): Remove.
31668 (VCMP_S): Likewise.
31669 (VCMP_U): Likewise.
31670 (V_cmp_result): Add DF, SF modes.
31671 (v_cmp_result): Likewise.
31672 (v): Likewise.
31673 (vmtype): Likewise.
31674 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
31675
31676 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
31677
31678 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
31679 define_insn to define_insn_and_split.
31680 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
31681 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
31682 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
31683 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
31684 (thumb2_negscc): Likewise.
31685
31686 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
31687
31688 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
31689
31690 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
31691
31692 * config/arm/thumb2.md: Remove trailing whitespaces.
31693
31694 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
31695
31696 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
31697 Use gen_int_mode rather than GEN_INT.
31698
31699 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
31700
31701 * value-prof.c (stream_in_histogram_value): Remove the strayed
31702 debug_gimple_stmt.
31703
31704 2013-04-30 Richard Biener <rguenther@suse.de>
31705
31706 PR middle-end/57122
31707 * cfghooks.c (split_edge): Properly check for the loop latch edge.
31708
31709 2013-04-30 Richard Biener <rguenther@suse.de>
31710
31711 PR middle-end/57107
31712 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
31713
31714 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
31715
31716 PR rtl-optimization/56957
31717 PR rtl-optimization/57105
31718 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
31719 variable. Use just INSN_UID for determining whether an insn
31720 should be only disconnected from the insn stream.
31721 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
31722
31723 2013-04-30 Jakub Jelinek <jakub@redhat.com>
31724
31725 PR tree-optimization/57104
31726 * tsan.c (instrument_expr): Don't instrument accesses to
31727 DECL_HARD_REGISTER VAR_DECLs.
31728
31729 2013-04-30 Richard Biener <rguenther@suse.de>
31730
31731 * function.h (loops_for_fn): New inline function.
31732 (set_loops_for_fn): Likewise.
31733 * cfgloop.h (place_new_loop): Add struct function parameter.
31734 (get_loop): Likewise.
31735 (get_loops): Likewise.
31736 (number_of_loops): Likewise.
31737 (fel_next): Adjust.
31738 (fel_init): Likewise.
31739 * cfg.c (get_loop_copy): Adjust.
31740 * cfgloop.c (flow_loops_dump): Likewise.
31741 (record_loop_exits): Likewise.
31742 (verify_loop_structure): Likewise.
31743 * cfgloopanal.c (mark_irreducible_loops): Likewise.
31744 (estimate_reg_pressure_cost): Likewise.
31745 (mark_loop_exit_edges): Likewise.
31746 * cfgloopmanip.c (place_new_loop): Likewise.
31747 (add_loop): Likewise.
31748 (duplicate_loop): Likewise.
31749 * graph.c (draw_cfg_nodes): Likewise.
31750 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
31751 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
31752 (extract_affine_chrec): Likewise.
31753 (build_scop_iteration_domain): Likewise.
31754 * graphite.c (graphite_initialize): Likewise.
31755 * ira-build.c (create_loop_tree_nodes): Likewise.
31756 (more_one_region_p): Likewise.
31757 (rebuild_regno_allocno_maps): Likewise.
31758 (mark_loops_for_removal): Likewise.
31759 (mark_all_loops_for_removal): Likewise.
31760 (remove_unnecessary_regions): Likewise.
31761 (ira_build): Likewise.
31762 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
31763 * loop-init.c (fix_loop_structure): Likewise.
31764 (gate_rtl_move_loop_invariants): Likewise.
31765 (gate_rtl_unswitch): Likewise.
31766 (gate_rtl_unroll_and_peel_loops): Likewise.
31767 (rtl_doloop): Likewise.
31768 * lto-streamer-in.c (input_cfg): Likewise.
31769 * lto-streamer-out.c (output_cfg): Likewise.
31770 * modulo-sched.c (sms_schedule): Likewise.
31771 * predict.c (tree_estimate_probability): Likewise.
31772 (tree_estimate_probability_driver): Likewise.
31773 (estimate_loops): Likewise.
31774 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
31775 (move_sese_region_to_fn): Likewise.
31776 (debug_loop_num): Likewise.
31777 * tree-chrec.c (chrec_evaluate): Likewise.
31778 (hide_evolution_in_other_loops_than_loop): Likewise.
31779 (chrec_component_in_loop_num): Likewise.
31780 (reset_evolution_in_loop): Likewise.
31781 (evolution_function_is_invariant_rec_p): Likewise.
31782 * tree-if-conv.c (main_tree_if_conversion): Likewise.
31783 * tree-inline.c (copy_loops): Likewise.
31784 (copy_cfg_body): Likewise.
31785 (tree_function_versioning): Likewise.
31786 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
31787 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
31788 Likewise.
31789 (add_to_evolution_1): Likewise.
31790 (scev_const_prop): Likewise.
31791 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
31792 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
31793 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
31794 (tree_ssa_lim_initialize): Likewise.
31795 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
31796 (verify_loop_closed_ssa): Likewise.
31797 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
31798 (tree_ssa_loop_im): Likewise.
31799 (tree_ssa_loop_unswitch): Likewise.
31800 (tree_vectorize): Likewise.
31801 (check_data_deps): Likewise.
31802 (tree_ssa_loop_ivcanon): Likewise.
31803 (tree_ssa_loop_bounds): Likewise.
31804 (tree_complete_unroll): Likewise.
31805 (tree_complete_unroll_inner): Likewise.
31806 (tree_parallelize_loops): Likewise.
31807 (tree_ssa_loop_prefetch): Likewise.
31808 (tree_ssa_loop_ivopts): Likewise.
31809 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
31810 * tree-vectorizer.c (vectorize_loops): Likewise.
31811
31812 2013-04-29 Mike Frysinger <vapier@gentoo.org>
31813
31814 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
31815 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
31816 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
31817 with EABI_LINK_SPEC.
31818
31819 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
31820
31821 PR target/44578
31822 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
31823 alternative.
31824
31825 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
31826
31827 PR target/57097
31828 * lra-constraints.c (process_alt_operands): Discourage a bit more
31829 using memory for pseudos. Print cost dump for alternatives.
31830 Modify cost values for conflicts with early clobbers.
31831 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
31832
31833 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
31834
31835 PR target/57098
31836 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
31837
31838 2013-04-29 Ian Bolton <ian.bolton@arm.com>
31839
31840 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
31841 from/to S register.
31842 (movdi_aarch64): Support LDR/STR from/to D register.
31843
31844 2013-04-29 Ian Bolton <ian.bolton@arm.com>
31845
31846 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
31847 or higher by default.
31848
31849 2013-04-29 Richard Biener <rguenther@suse.de>
31850
31851 PR middle-end/57075
31852 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
31853 even if not adding abnormal edges for calls that can make
31854 abnormal gotos.
31855
31856 2013-04-29 Richard Biener <rguenther@suse.de>
31857
31858 PR middle-end/57103
31859 * tree-cfg.c (move_stmt_op): Fix condition under which to update
31860 TREE_BLOCK.
31861 (move_stmt_r): Remove redundant checking.
31862
31863 2013-04-29 Teresa Johnson <tejohnson@google.com>
31864
31865 PR bootstrap/57077
31866 * basic-block.h (apply_scale): New function.
31867 (apply_probability): Use apply_scale.
31868 * gimple-streamer-in.c (input_bb): Ditto.
31869 * lto-streamer-in.c (input_cfg): Ditto.
31870 * lto-cgraph.c (merge_profile_summaries): Ditto.
31871 * tree-optimize.c (execute_fixup_cfg): Ditto.
31872 * tree-inline.c (copy_bb): Update comment to use apply_scale.
31873 (copy_edges_for_bb): Ditto.
31874 (copy_cfg_body): Ditto.
31875
31876 2013-04-29 Tom de Vries <tom@codesourcery.com>
31877
31878 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
31879 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
31880 (tail_merge_optimize): Handle current_loops == NULL.
31881
31882 2013-04-26 Jeff Law <law@redhat.com>
31883
31884 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
31885 (simplify_cond_using_ranges): Generalize code to simplify
31886 COND_EXPRs where one argument is a constant and the other
31887 is an SSA_NAME created by an integral type conversion.
31888
31889 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31890
31891 * config/arm/arm.md (store_minmaxsi): Use only when
31892 optimize_insn_for_size_p.
31893
31894 2013-04-29 Christian Bruel <christian.bruel@st.com>
31895
31896 PR target/57108
31897 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
31898
31899 2013-04-29 Richard Biener <rguenther@suse.de>
31900
31901 PR middle-end/57089
31902 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
31903 loop tree make sure to schedule a fixup for the child as well.
31904 (expand_omp_for_generic): Properly add loops.
31905 (expand_omp_for_static_nochunk): Likewise.
31906 (expand_omp_for_static_chunk): Likewise.
31907 (expand_omp_for): For the degenerate case fixup loops.
31908 (expand_omp_sections): Fix default bb placement in loops.
31909 (expand_omp_atomic_pipeline): Properly add loops.
31910
31911 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31912
31913 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
31914
31915 2013-04-29 Tom de Vries <tom@codesourcery.com>
31916
31917 * tree-ssa-tail-merge.c: Update header comment.
31918
31919 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31920
31921 * config/aarch64/arm_neon.h
31922 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
31923 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
31924 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
31925 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
31926 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
31927 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
31928 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
31929 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
31930
31931 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31932
31933 * config/aarch64/aarch64-simd.md
31934 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
31935 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
31936 fix_trunc, fixuns_trunc.
31937 (ftrunc<VDQF:mode>2): New.
31938 * config/aarch64/iterators.md (optab): Add fix, fixuns.
31939 (fix_trunc_optab): New.
31940
31941 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31942
31943 * config/aarch64/aarch64-builtins.c
31944 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
31945 iceilf, lround, iroundf.
31946
31947 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
31948
31949 PR target/54349
31950 * config/i386/i386.h (enum ix86_tune_indices)
31951 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
31952 New, split from X86_TUNE_INTER_UNIT_MOVES.
31953 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
31954 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
31955 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
31956 (TARGET_INTER_UNIT_MOVES): Remove.
31957 * config/i386/i386.c (initial_ix86_tune_features): Update.
31958 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
31959 (ix86_expand_convert_uns_didf_sse): Use
31960 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
31961 (ix86_expand_vector_init_one_nonzero): Ditto.
31962 (ix86_expand_vector_init_interleave): Ditto.
31963 (inline_secondary_memory_needed): Return true for moves from SSE class
31964 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
31965 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
31966 * config/i386/constraints.md (Yi, Ym): Depend on
31967 TARGET_INTER_UNIT_MOVES_TO_VEC.
31968 (Yj, Yn): New constraints.
31969 * config/i386/i386.md (*movdi_internal): Change constraints of
31970 operand 1 from Yi to Yj and from Ym to Yn.
31971 (*movsi_internal): Ditto.
31972 (*movdf_internal): Ditto.
31973 (*movsf_internal): Ditto.
31974 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
31975 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
31976 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
31977 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
31978 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
31979 * config/i386/sse.md (movdi_to_sse): Ditto.
31980 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
31981 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
31982 TARGET_INTER_UNIT_MOVES.
31983 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
31984 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
31985 instead of TARGET_INTER_UNIT_MOVES.
31986 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
31987 operand 1 from Yi to Yj and from Ym to Yn.
31988
31989 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31990
31991 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
31992 (float_truncate_hi_): Likewise.
31993 (float_extend_lo_): Likewise.
31994 (float_truncate_lo_): Likewise.
31995 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
31996 (aarch64_float_extend_lo_v2df): Likewise.
31997 (vec_unpacks_hi_v4sf): Likewise.
31998 (aarch64_float_truncate_lo_v2sf): Likewise.
31999 (aarch64_float_truncate_hi_v4sf): Likewise.
32000 (vec_pack_trunc_v2df): Likewise.
32001 (vec_pack_trunc_df): Likewise.
32002
32003 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
32004
32005 * config/aarch64/aarch64-builtins.c
32006 (aarch64_fold_builtin): Fold float conversions.
32007 * config/aarch64/aarch64-simd-builtins.def
32008 (floatv2si, floatv4si, floatv2di): New.
32009 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
32010 * config/aarch64/aarch64-simd.md
32011 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
32012 * config/aarch64/iterators.md (FLOATUORS): New.
32013 (optab): Add float, floatuns.
32014 (su_optab): Likewise.
32015
32016 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
32017
32018 * config/aarch64/aarch64-builtins.c
32019 (aarch64_builtin_vectorized_function): Use new names for
32020 fcvt builtins.
32021 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
32022 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
32023 (fcvtzu): Split as...
32024 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
32025 (fcvtas): Split as...
32026 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
32027 (fcvtau): Split as...
32028 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
32029 (fcvtps): Split as...
32030 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
32031 (fcvtpu): Split as...
32032 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
32033 (fcvtms): Split as...
32034 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
32035 (fcvtmu): Split as...
32036 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
32037 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
32038 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
32039 (lfrintnusf, lfrintnudf): Likewise.
32040 * config/aarch64/aarch64-simd.md
32041 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
32042 define_insn.
32043 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
32044 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
32045 (fcvt_pattern): Likewise.
32046
32047 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
32048
32049 * config/aarch64/aarch64-simd.md
32050 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
32051 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
32052
32053 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
32054
32055 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
32056 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
32057 (vrnd<a,m,n,p>_f32): Implement using builtins.
32058 (vrnd<i,x><q>_f<32, 64>): New.
32059
32060 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
32061
32062 * config/aarch64/aarch64-builtins.c
32063 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
32064 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
32065 (frintz): Rename to...
32066 (btrunc): ...this.
32067 (frintp): Rename to...
32068 (ceil): ...this.
32069 (frintm): Rename to...
32070 (floor): ...this.
32071 (frinti): Rename to...
32072 (nearbyint): ...this.
32073 (frintx): Rename to...
32074 (rint): ...this.
32075 (frinta): Rename to...
32076 (round): ...this.
32077 * config/aarch64/aarch64-simd.md
32078 (aarch64_frint<frint_suffix><mode>): Delete.
32079 (<frint_pattern><mode>2): Convert to insn.
32080 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
32081 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
32082 (frint_pattern): Likewise.
32083 (frint_suffix): Likewise.
32084
32085 2013-04-29 Richard Biener <rguenther@suse.de>
32086
32087 PR tree-optimization/57081
32088 * loop-init.c: Include tree-flow.h.
32089 (loop_optimizer_finalize): Free number of iteration estimates.
32090 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
32091
32092 2013-04-29 Jakub Jelinek <jakub@redhat.com>
32093
32094 PR tree-optimization/57083
32095 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
32096 non-singleton shift count range, zero extend low_bound for uns case.
32097
32098 * config/i386/predicates.md (general_vector_operand): New predicate.
32099 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
32100 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
32101 if they aren't nonimmediate operands. If their original values
32102 satisfy const_vector_equal_evenodd_p, don't shift them.
32103 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
32104 predicates. For the SSE4.1 case force operands[{1,2}] into registers
32105 if not nonimmediate_operand.
32106 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
32107 instead of register_operand.
32108 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
32109
32110 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
32111
32112 * stor-layout.c (finalize_size_functions): Allocate a structure and
32113 reset cfun before dumping the functions.
32114
32115 2013-04-27 Jakub Jelinek <jakub@redhat.com>
32116
32117 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
32118
32119 PR target/56866
32120 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
32121 use xop_pmacsdqh if uns_p.
32122 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
32123 the immediate rotate count.
32124
32125 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
32126
32127 * rtl.h (struct rtx_def): Add comment for field jump.
32128 (LRA_SUBREG_P): New macro.
32129 * recog.c (register_operand): Check LRA_SUBREG_P.
32130 * lra.c (lra): Add note at the end of RTL code. Align non-empty
32131 stack frame.
32132 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
32133 (lra_final_code_change): Skip subreg change for operators.
32134 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
32135 if there are no operand changes.
32136 * lra-constraints.c (curr_insn_set): New.
32137 (match_reload): Set LRA_SUBREG_P.
32138 (emit_spill_move): Ditto.
32139 (check_and_process_move): Use curr_insn_set. Process only single
32140 set insns. Don't initialize sec_mem_p and change_p.
32141 (simplify_operand_subreg): Use LRA_SUBREG_P.
32142 (reg_in_class_p): New function.
32143 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
32144 of #ifdef. Add code to remove cycling.
32145 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
32146 non-null disp. Reload inner instead of disp when base and index
32147 are null. Try to put lo_sum into register.
32148 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
32149 (check_and_process_move): Move code for move cost check to
32150 simple_move_p. Remove equiv_substitution.
32151 (simple_move_p): New function.
32152 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
32153 curr_insn_set. Call check_and_process_move only for single set
32154 insns. Use the new function. Move call of check_and_process_move
32155 after operand equiv substitution and address process.
32156
32157 2013-04-26 Jakub Jelinek <jakub@redhat.com>
32158
32159 PR go/57045
32160 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
32161 with nonlocal goto receivers or returns twice calls, ignore
32162 unininitialized values from abnormal edges to nl goto receiver
32163 or returns twice call.
32164
32165 2013-04-26 Jakub Jelinek <jakub@redhat.com>
32166
32167 PR tree-optimization/57051
32168 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
32169 and VEC_RSHIFT_EXPR if shift count is a multiple of element
32170 bitsize.
32171
32172 2013-04-26 Richard Biener <rguenther@suse.de>
32173
32174 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
32175 (expand_omp_taskreg): Likewise. Mark loops for fixup.
32176 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
32177 (fixup_loop_arrays_after_move): New function.
32178 (move_sese_region_to_fn): Properly outline the loop tree parts
32179 of the SESE region.
32180
32181 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
32182
32183 * config/i386/i386.md (type, unit): Fix long lines.
32184
32185 2013-04-26 Richard Biener <rguenther@suse.de>
32186
32187 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
32188 (lto-streamer-out.o): Likewise.
32189 * cfgloop.c (init_loops_structure): Export, add struct function
32190 argument and adjust.
32191 (flow_loops_find): Adjust.
32192 * cfgloop.h (enum loop_estimation): Add EST_LAST.
32193 (init_loops_structure): Declare.
32194 * lto-streamer-in.c: Include cfgloop.h.
32195 (input_cfg): Input the loop tree.
32196 * lto-streamer-out.c: Include cfgloop.h.
32197 (output_cfg): Output the loop tree.
32198 (output_struct_function_base): Do not drop PROP_loops.
32199
32200 2013-03-26 Richard Biener <rguenther@suse.de>
32201
32202 * tree-cfg.c (execute_build_cfg): Build the loop tree.
32203 (pass_build_cfg): Provide PROP_loops.
32204 (move_sese_region_to_fn): Remove loops that are outlined into fn
32205 for now.
32206 * tree-inline.c: Include cfgloop.h.
32207 (initialize_cfun): Do not drop PROP_loops.
32208 (copy_loops): New function.
32209 (copy_cfg_body): Copy loop structure.
32210 (tree_function_versioning): Initialize destination loop tree.
32211 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
32212 (pass_parallelize_loops): Do IL verification.
32213 * loop-init.c (loop_optimizer_init): Fixup loops if required.
32214 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
32215 the CFG make sure we fixup loops as well.
32216 * tree-ssa-tail-merge.c: Include cfgloop.h.
32217 (replace_block_by): When merging loop latches mark loops for fixup.
32218 * lto-streamer-out.c (output_struct_function_base): Drop
32219 PROP_loops for now.
32220 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
32221 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
32222 * ipa-split.c: Include cfgloop.h.
32223 (split_function): Add the new return block to the loop tree root.
32224 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
32225 whether we have removed the forwarder block.
32226 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
32227 * cfgloop.h (place_new_loop): Declare.
32228 * cfgloopmanip.c (place_new_loop): Export.
32229 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
32230 (tree-switch-conversion.o): Likewise.
32231 (tree-complex.o): Likewise.
32232 (tree-inline.o): Likewise.
32233 (tree-ssa-tailmerge.o): Likewise.
32234 (ipa-split.o): Likewise.
32235 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
32236 (tree-ssa-copy.o): Likewise.
32237 * tree-switch-conversion.c: Include cfgloop.h
32238 (process_switch): If we emit a bit-test cascade, schedule loops
32239 for fixup.
32240 * tree-complex.c: Include cfgloop.h.
32241 (expand_complex_div_wide): Properly add new basic-blocks to loops.
32242 * asan.c: Include cfgloop.h.
32243 (create_cond_insert_point): Properly add new basic-blocks to
32244 loops, schedule loop fixup.
32245 * cfgloop.c (verify_loop_structure): Check that looks are not
32246 marked for fixup.
32247 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
32248 to loops.
32249 (expand_omp_for_generic): Likewise.
32250 (expand_omp_sections): Likewise.
32251 (expand_omp_atomic_pipeline): Schedule loops for fixup.
32252 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
32253 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
32254 is initialized, not when loops are present.
32255 * tree-parloops.c (parallelize_loops): Remove checking here.
32256 * passes.c (init_optimization_passes): Schedule a copy-propagation
32257 pass before complete unrolling of inner loops.
32258
32259 2013-04-26 Jakub Jelinek <jakub@redhat.com>
32260
32261 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
32262 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
32263 (colorize_init): Add argument to _WIN32 version.
32264 * toplev.c: Include diagnostic-color.h.
32265 (process_options): Default to -fdiagnostics-color=auto if
32266 GCC_COLORS env var is in the environment.
32267 * common.opt (fdiagnostics-color=): Add Var and Init.
32268 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
32269 env var is in the environment, the default is auto rather than never.
32270
32271 * diagnostic.h (file_name_as_prefix): Add context argument.
32272 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
32273 the string as locus.
32274 * langhooks.c (lhd_print_error_function): Adjust caller.
32275
32276 2013-04-25 Lawrence Crowl <crowl@google.com>
32277
32278 * var-tracking.c (shared_hash_def::htab):
32279 Change type to hash_table. Update dependent calls and types.
32280
32281 2013-04-25 Lawrence Crowl <crowl@google.com>
32282
32283 * Makefile.in: Update as needed below.
32284
32285 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
32286 Move declaration to after the type's method definitons.
32287
32288 * attribs.c (htab_t scoped_attributes::attribute_hash):
32289 Change type to hash_table. Update dependent calls and types.
32290
32291 * bitmap.c (htab_t bitmap_desc_hash):
32292 Change type to hash_table. Update dependent calls and types.
32293
32294 * cselib.c (htab_t cselib_hash_table):
32295 Change type to hash_table. Update dependent calls and types.
32296
32297 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
32298 (hash_string_slot_node): Move implementation into lto-streamer.h
32299 struct string_slot_hasher.
32300 (eq_string_slot_node): Likewise.
32301
32302 * data-streamer-out.c: Update output_block::string_hash_table
32303 dependent calls and types.
32304
32305 * dwarf2cfi.c (htab_t trace_index):
32306 Change type to hash_table. Update dependent calls and types.
32307
32308 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
32309 Change type to hash_table. Update dependent calls and types.
32310 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
32311 (htab_t optimize_external_refs::map): Likewise.
32312 (htab_t output_comp_unit::extern_map): Likewise.
32313 (htab_t output_comdat_type_unit::extern_map): Likewise.
32314 (htab_t output_macinfo::macinfo_htab): Likewise.
32315 (htab_t optimize_location_lists::htab): Likewise.
32316 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
32317
32318 * except.c (htab_t ehspec_hash_type):
32319 Change type to hash_table. Update dependent calls and types.
32320 (assign_filter_values::ttypes): Likewise.
32321 (assign_filter_values::ehspec): Likewise.
32322 (sjlj_assign_call_site_values::ar_hash): Likewise.
32323 (convert_to_eh_region_ranges::ar_hash): Likewise.
32324
32325 * gcse.c (htab_t pre_ldst_table):
32326 Change type to hash_table. Update dependent calls and types.
32327
32328 * ggc-common.c (htab_t saving_htab):
32329 Change type to hash_table. Update dependent calls and types.
32330 (htab_t loc_hash): Likewise.
32331 (htab_t ptr_hash): Likewise.
32332 (call_count): Rename ggc_call_count.
32333 (call_alloc): Rename ggc_call_alloc.
32334 (loc_descriptor): Rename make_loc_descriptor.
32335 (add_statistics): Rename ggc_add_statistics.
32336
32337 * ggc-common.c (saving_htab):
32338 Change type to hash_table. Update dependent calls and types.
32339
32340 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
32341 (push_gimplify_context): Likewise.
32342 (pop_gimplify_context): Likewise.
32343 (struct gimple_temp_hash_elt): Added.
32344 (struct gimplify_hasher): Likewise.
32345 (struct gimplify_ctx.temp_htab):
32346 Change type to hash_table. Update dependent calls and types.
32347
32348 * gimple-fold.c: Include gimplify-ctx.h.
32349
32350 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
32351 Change type to hash_table. Update dependent calls and types.
32352 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
32353 avoid potential global name collision.
32354
32355 * gimplify.c: Include gimplify-ctx.h.
32356 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
32357 (htab_t gimplify_ctx::temp_htab):
32358 Update dependent calls and types for new type hash_table.
32359 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
32360 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
32361
32362 * gimplify-ctx.h: New.
32363 (struct gimple_temp_hash_elt): Move from gimplify.c.
32364 (class gimplify_hasher): New.
32365 (struct gimplify_ctx): Move from gimple.h.
32366 (htab_t gimplify_ctx::temp_htab):
32367 Change type to hash_table. Update dependent calls and types.
32368
32369 * graphite-clast-to-gimple.c: Include graphite-htab.h.
32370 (htab_t ivs_params::newivs_index):
32371 Change type to hash_table. Update dependent calls and types.
32372 (htab_t ivs_params::params_index): Likewise.
32373 (htab_t print_generated_program::params_index): Likewise.
32374 (htab_t gloog::newivs_index): Likewise.
32375 (htab_t gloog::params_index): Likewise.
32376
32377 * graphite.c: Include graphite-htab.h.
32378 4htab_t graphite_transform_loops::bb_pbb_mapping):
32379 Change type to hash_table. Update dependent calls and types.
32380
32381 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
32382 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
32383 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
32384
32385 * graphite-dependences.c: Include graphite-htab.h.
32386 (loop_is_parallel_p): Change hash table type of parameter.
32387
32388 * graphite-htab.h: New.
32389 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
32390 (extern find_pbb_via_hash): Move from graphite-poly.h.
32391 (extern loop_is_parallel_p): Move from graphite-poly.h.
32392 (extern get_loop_body_pbbs): Move from graphite-poly.h.
32393
32394 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
32395 (extern loop_is_parallel_p): Move to graphite-htab.h.
32396 (extern get_loop_body_pbbs): Move to graphite-htab.h.
32397
32398 * haifa-sched.c (htab_t delay_htab):
32399 Change type to hash_table. Update dependent calls and types.
32400 (htab_t delay_htab_i2): Likewise.
32401
32402 * ira-color.c (htab_t allocno_hard_regs_htab):
32403 Change type to hash_table. Update dependent calls and types.
32404
32405 * ira-costs.c (htab_t cost_classes_htab):
32406 Change type to hash_table. Update dependent calls and types.
32407
32408 * loop-invariant.c (htab_t merge_identical_invariants::eq):
32409 Change type to hash_table. Update dependent calls and types.
32410
32411 * loop-iv.c (htab_t bivs):
32412 Change type to hash_table. Update dependent calls and types.
32413
32414 * loop-unroll.c (htab_t opt_info::insns_to_split):
32415 Change type to hash_table. Update dependent calls and types.
32416 (htab_t opt_info::insns_with_var_to_expand): Likewise.
32417
32418 * lto-streamer.h (struct string_slot): Move from data-streamer.h
32419 (struct string_slot_hasher): New.
32420 (htab_t output_block::string_hash_table):
32421 Change type to hash_table. Update dependent calls and types.
32422
32423 * lto-streamer-in.c (freeing_string_slot_hasher): New.
32424 (htab_t file_name_hash_table):
32425 Change type to hash_table. Update dependent calls and types.
32426
32427 * lto-streamer-out.c: Update output_block::string_hash_table dependent
32428 calls and types.
32429
32430 * lto-streamer.c (htab_t tree_htab):
32431 Change type to hash_table. Update dependent calls and types.
32432
32433 * omp-low.c: Include gimplify-ctx.h.
32434
32435 * passes.c (htab_t name_to_pass_map):
32436 Change type to hash_table. Update dependent calls and types.
32437 (pass_traverse): Rename to passes_pass_traverse.
32438
32439 * plugin.c (htab_t event_tab):
32440 Change type to hash_table. Update dependent calls and types.
32441
32442 * postreload-gcse.c (htab_t expr_table):
32443 Change type to hash_table. Update dependent calls and types.
32444 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
32445
32446 * sese.c (debug_rename_map_1): Make extern.
32447 (htab_t copy_bb_and_scalar_dependences::rename_map):
32448 Change type to hash_table. Update dependent calls and types.
32449
32450 * sese.h (extern debug_rename_map): Move to .c file.
32451
32452 * store-motion.c (htab_t store_motion_mems_table):
32453 Change type to hash_table. Update dependent calls and types.
32454
32455 * trans-mem.c (htab_t tm_new_mem_hash):
32456 Change type to hash_table. Update dependent calls and types.
32457
32458 * tree-browser.c (htab_t TB_up_ht):
32459 Change type to hash_table. Update dependent calls and types.
32460
32461 * tree-cfg.c (htab_t discriminator_per_locus):
32462 Change type to hash_table. Update dependent calls and types.
32463
32464 * tree-complex.c: Include tree-hasher.h
32465 (htab_t complex_variable_components):
32466 Change type to hash_table. Update dependent calls and types.
32467
32468 * tree-eh.c (htab_t finally_tree):
32469 Change type to hash_table. Update dependent calls and types.
32470
32471 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
32472 struct int_tree_hasher.
32473 (extern int_tree_map_eq): Likewise.
32474 (uid_decl_map_hash): Removed.
32475 (extern decl_tree_map_eq): Likewise.
32476
32477 * tree-hasher.h: New.
32478 (struct int_tree_hasher): New.
32479 (typedef int_tree_htab_type): New.
32480
32481 * tree-inline.c: Include gimplify-ctx.h.
32482
32483 * tree-mudflap.c: Include gimplify-ctx.h.
32484
32485 * tree-parloops.c: Include tree-hasher.h.
32486 (htab_t eliminate_local_variables_stmt::decl_address):
32487 Change type to hash_table. Update dependent calls and types.
32488 (htab_t separate_decls_in_region::decl_copies): Likewise.
32489
32490 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
32491 Change type to hash_table. Update dependent calls and types.
32492
32493 * tree-sra.c (candidates):
32494 Change type to hash_table. Update dependent calls and types.
32495
32496 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
32497 in tree-flow.h.
32498 (int_tree_map_hash): Likewise.
32499
32500 * tree-ssa-dom.c (htab_t avail_exprs):
32501 Change type to hash_table. Update dependent calls and types.
32502
32503 * tree-ssa-live.c (var_map_base_init::tree_to_index):
32504 Change type to hash_table. Update dependent calls and types.
32505
32506 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
32507 Change type to hash_table. Update dependent calls and types.
32508
32509 * tree-ssa-phiopt.c (seen_ssa_names):
32510 Change type to hash_table. Update dependent calls and types.
32511
32512 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
32513 Change type to hash_table. Update dependent calls and types.
32514
32515 * tree-ssa-uncprop.c (equiv):
32516 Change type to hash_table. Update dependent calls and types.
32517
32518 2013-04-25 Jakub Jelinek <jakub@redhat.com>
32519
32520 PR rtl-optimization/57003
32521 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
32522 call note_stores with kill_clobbered_value callback again after
32523 killing regs_invalidated_by_call.
32524
32525 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
32526
32527 * config/aarch64/aarch64-simd.md
32528 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
32529 (aarch64_simd_bsl<mode>): Likewise.
32530 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
32531
32532 2013-04-25 Marek Polacek <polacek@redhat.com>
32533
32534 PR tree-optimization/57066
32535 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
32536
32537 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
32538
32539 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
32540
32541 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
32542
32543 * config/aarch64/aarch64-builtins.c
32544 (aarch64_fold_builtin): New.
32545 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
32546 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
32547 * config/aarch64/aarch64-simd-builtins.def (abs): New.
32548 * config/aarch64/arm_neon.h
32549 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
32550
32551 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
32552 Tejas Belagod <tejas.belagod@arm.com>
32553
32554 * config/aarch64/aarch64-builtins.c
32555 (aarch64_gimple_fold_builtin): New.
32556 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
32557 * config/aarch64/aarch64-simd-builtins.def (addv): New.
32558 * config/aarch64/aarch64-simd.md (addpv4sf): New.
32559 (addvv4sf): Update.
32560 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
32561
32562 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32563
32564 * config/aarch64/aarch64.md
32565 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
32566
32567 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32568
32569 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
32570 (*ngcsi_uxtw): New pattern.
32571
32572 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32573 Julian Brown <julian@codesourcery.com>
32574
32575 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
32576 (TB_DREG): Add T_V4HF.
32577 (v4hf_UP): New macro.
32578 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
32579 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
32580 Handle initialisation of V4HF. Adjust initialisation of reinterpret
32581 built-ins.
32582 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
32583 (arm_vector_mode_supported_p): Handle V4HF.
32584 (arm_mangle_map): Handle V4HFmode.
32585 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
32586 * config/arm/arm_neon_builtins.def: Add entries for
32587 vcvtv4hfv4sf, vcvtv4sfv4hf.
32588 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
32589 (neon_vcvtv4hfv4sf): Likewise.
32590 * config/arm/neon-gen.ml: Handle half-precision floating point
32591 features.
32592 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
32593 * config/arm/arm_neon.h: Regenerate.
32594 * config/arm/neon.ml (type elts): Add F16.
32595 (type vectype): Add T_float16x4, T_floatHF.
32596 (type vecmode): Add V4HF.
32597 (type features): Add Requires_FP_bit feature.
32598 (elt_width): Handle F16.
32599 (elt_class): Likewise.
32600 (elt_of_class_width): Likewise.
32601 (mode_of_elt): Refactor.
32602 (type_for_elt): Handle F16, fix error messages.
32603 (vectype_size): Handle T_float16x4.
32604 (vcvt_sh): New function.
32605 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
32606 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
32607 (string_of_mode): Handle V4HF.
32608 * doc/arm-neon-intrinsics.texi: Regenerate.
32609
32610 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
32611
32612 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
32613 format specifier in 'X' case.
32614
32615 2013-04-25 Alan Modra <amodra@gmail.com>
32616
32617 PR target/57052
32618 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
32619 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
32620 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
32621 Repeat for many other rotate/shift and mask patterns using subregs.
32622 Name lshiftrt insns.
32623 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
32624 on WORDS_BIG_ENDIAN.
32625
32626 2013-04-25 Alan Modra <amodra@gmail.com>
32627
32628 * config.gcc: Support little-endian powerpc-linux targets.
32629 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
32630 (LINK_OS_LINUX_SPEC): Define.
32631 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
32632 Preserve MASK_LITTLE_ENDIAN.
32633 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
32634 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
32635 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
32636 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
32637 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
32638 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
32639 Correct fp word order for little-endian. Don't shift toc entries
32640 smaller than a word for little-endian.
32641 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
32642 (bswapdi2 splits): Correct low-part subreg for little-endian.
32643 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
32644 low/high where such is correct only for be.
32645 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
32646 little-endian for -mcall-aixdesc.
32647
32648 2013-04-25 Alan Modra <amodra@gmail.com>
32649
32650 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
32651 replace_equiv_address_nv.
32652
32653 2013-04-25 Alan Modra <amodra@gmail.com>
32654
32655 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
32656
32657 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
32658
32659 Revert:
32660 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
32661 * rtl.h (struct rtx_def): ...
32662
32663 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
32664
32665 PR rtl-optimizations/57046
32666 * lra-constraints (split_reg): Set up lra_risky_transformations_p
32667 for multi-reg splits.
32668
32669 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
32670
32671 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
32672
32673 2013-04-24 Sterling Augustine <saugustine@google.com>
32674
32675 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
32676 (comp_dir_string, debug_str_dwo_section): New.
32677 (DEBUG_STR_DWO_SECTION): Rename to ...
32678 (DEBUG_DWO_STR_SECTION): ... this.
32679 (DEBUG_NORM_STR_SECTION): Delete.
32680 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
32681 (DEBUG_STR_DWO_SECTION_FLAGS): New.
32682 (find_AT_string): Move most logic to ...
32683 (find_AT_string_in_table): ... here. New.
32684 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
32685 add_skeleton_AT_string. Delete logic.
32686 (output_skeleton_debug_sections): Remove call to
32687 add_top_level_skeleton_die_attrs.
32688 (add_comp_dir_attribute): Move logic to comp_dir_string.
32689 (dwarf2out_init): Initialize debug_str_dwo_section.
32690 (output_indirect_string): Call find_string_form.
32691 (output_indirect_strings): Rewrite.
32692 (prune_unused_types): Empty skeleton_debug_str_hash.
32693 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
32694 (dwarf2out_finish): Call output_indirect_strings.
32695
32696 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
32697
32698 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
32699
32700 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
32701
32702 * rtl.h (struct rtx_def): Add comment for field jump.
32703 (LRA_SUBREG_P): New macro.
32704 * recog.c (register_operand): Check LRA_SUBREG_P.
32705 * lra.c (lra): Add note at the end of RTL code. Align non-empty
32706 stack frame.
32707 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
32708 (lra_final_code_change): Skip subreg change for operators.
32709 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
32710 if there are no operand changes.
32711 * lra-constraints.c (curr_insn_set): New.
32712 (match_reload): Set LRA_SUBREG_P.
32713 (emit_spill_move): Ditto.
32714 (check_and_process_move): Use curr_insn_set. Process only single
32715 set insns. Don't initialize sec_mem_p and change_p.
32716 (simplify_operand_subreg): Use LRA_SUBREG_P.
32717 (reg_in_class_p): New function.
32718 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
32719 of #ifdef. Add code to remove cycling.
32720 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
32721 non-null disp. Reload inner instead of disp when base and index
32722 are null. Try to put lo_sum into register.
32723 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
32724 (check_and_process_move): Move code for move cost check to
32725 simple_move_p. Remove equiv_substitution.
32726 (simple_move_p): New function.
32727 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
32728 curr_insn_set. Call check_and_process_move only for single set
32729 insns. Use the new function. Move call of check_and_process_move
32730 after operand equiv substitution and address process.
32731
32732 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
32733
32734 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
32735 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
32736 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
32737
32738 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
32739
32740 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
32741
32742 2013-04-24 Marek Polacek <polacek@redhat.com>
32743
32744 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
32745 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
32746 (select_loops_exit_conditions): Likewise.
32747 (number_of_iterations_for_all_loops): Likewise.
32748 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
32749 (scev_analysis): Likewise.
32750
32751 2013-04-02 Catherine Moore <clm@codesourcery.com>
32752 Chao-ying Fu <fu@mips.com>
32753
32754 * config/mips/micromips.md (jraddiusp): New pattern.
32755 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
32756 instruction if possible.
32757
32758 2013-04-24 Alan Modra <amodra@gmail.com>
32759
32760 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
32761
32762 2013-04-24 Julian Brown <julian@codesourcery.com>
32763 Chung-Lin Tang <cltang@codesourcery.com>
32764
32765 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
32766 dependency behavior in enumeration type DIE generation. Add TODO note
32767 to comments about future DW_FORM_sdata/udata re-work of related code.
32768
32769 2013-04-23 Lawrence Crowl <crowl@google.com>
32770
32771 * Makefile.in: Update as needed below.
32772
32773 * hash-table.h (class hash_table):
32774 Correct many methods with parameter types compare_type to the correct
32775 value_type. (Correct code was unlikely to notice the change.)
32776 (hash_table::elements_with_deleted) New.
32777 (class hashtable::iterator): New.
32778 (hashtable::begin()): New.
32779 (hashtable::end()): New.
32780 (FOR_EACH_HASH_TABLE_ELEMENT): New.
32781
32782 * statistics.c (statistics_hashes):
32783 Change type to hash_table. Update dependent calls and types.
32784
32785 * tree-into-ssa.c (var_infos):
32786 Change type to hash_table. Update dependent calls and types.
32787
32788 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
32789 Change type to hash_table. Update dependent calls and types.
32790
32791 * tree-ssa-loop-im.c (struct mem_ref.refs):
32792 Change type to hash_table. Update dependent calls and types.
32793
32794 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
32795 Change type to hash_table. Update dependent calls and types.
32796
32797 * tree-ssa-sccvn.c (vn_tables_s::nary):
32798 Change type to hash_table. Update dependent calls and types.
32799 (vn_tables_s::phis): Likewise.
32800 (vn_tables_s::references): Likewise.
32801
32802 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
32803 (vn_reference_eq): Update parameter and return types.
32804
32805 * tree-ssa-structalias.c (pointer_equiv_class_table):
32806 Change type to hash_table. Update dependent calls and types.
32807 (location_equiv_class_table): Likewise.
32808
32809 * tree-vect-data-refs.c: Consequential changes for making
32810 peeling a hash_table.
32811
32812 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
32813 (destroy_loop_vec_info): Dependent hash_table update.
32814
32815 * tree-vectorizer.h (peeling_htab):
32816 Change type to hash_table. Update dependent calls and types.
32817
32818 2013-04-23 Shiva Chen <shiva0217@gmail.com>
32819
32820 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
32821 to check the register content is equal or not.
32822 * lra-constraints.c (match_reload): Use lra_assign_reg_val
32823 to assign register content record.
32824 * lra-eliminations.c (update_reg_eliminate): Use
32825 lra_update_reg_val_offset to update register content offset.
32826 * lra-int.h (struct lra_reg): Add offset member.
32827 (lra_reg_val_equal_p): New static inline function.
32828 (lra_update_reg_val_offset): New static inline function.
32829 (lra_assign_reg_val): New static inline function.
32830 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
32831 to assign register content record.
32832 (initialize_lra_reg_info_element): Initial offset to zero.
32833
32834 2013-04-23 Catherine Moore <clm@codesourcery.com>
32835
32836 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
32837 operands. Record compression.
32838
32839 2013-04-23 Xinliang David Li <davidxl@google.com>
32840
32841 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
32842
32843 2013-04-23 Richard Biener <rguenther@suse.de>
32844
32845 PR middle-end/57036
32846 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
32847 parameter, only add abnormal goto edges from the copied body
32848 if the call could perform abnormal gotos.
32849 (copy_cfg_body): Adjust.
32850
32851 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
32852
32853 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
32854
32855 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
32856
32857 * coretypes.h (gimple_stmt_iterator): Add struct to make
32858 compatible with C.
32859
32860 2013-04-23 Richard Biener <rguenther@suse.de>
32861
32862 PR tree-optimization/57026
32863 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
32864 from SSA names occuring in abnormal PHI nodes.
32865
32866 2013-04-22 Andi Kleen <ak@linux.intel.com>
32867
32868 * lto/lto.c (print_lto_report_1): Fix LTO report names.
32869
32870 2013-04-22 Andi Kleen <ak@linux.intel.com>
32871
32872 * lto/lto.c (print_lto_report_1): Declare early.
32873 (read_cgraph_and_symbols): Call print_lto_report_1 early.
32874
32875 2013-04-22 Andi Kleen <ak@linux.intel.com>
32876
32877 * common.opt (-flto-report-wpa): Add.
32878 * doc/invoke.texi (-flto-report-wpa): Add.
32879 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
32880 (lto_main): dito.
32881
32882 2013-04-22 Xinliang David Li <davidxl@google.com>
32883
32884 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
32885 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
32886 * Makefile.in: New dependency
32887
32888 David Daney <ddaney.cavm@gmail.com>
32889
32890 * configure.ac (gcc_cv_as_micromips_support): Use the
32891 --fatal-warnings option.
32892 * configure: Regenerate.
32893
32894 2013-04-22 Marek Polacek <polacek@redhat.com>
32895
32896 PR sanitizer/56990
32897 * tsan.c (instrument_expr): Don't instrument expression
32898 in case its size is zero.
32899
32900 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
32901
32902 PR target/57032
32903 Revert:
32904 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
32905
32906 * config/alpha/alpha.c (TARGET_LRA_P): New define.
32907
32908 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
32909
32910 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
32911 (gimple_stmt_iterator): New typedef.
32912 * gimple.h (gimple_stmt_iterator): Rename to...
32913 (gimple_stmt_iterator_d): ... This.
32914 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
32915 trees be valid for GIMPLE and GENERIC.
32916 (TARGET_GIMPLE_FOLD_BUILTIN): New.
32917 * gimple-fold.c (gimple_fold_call): Call target hook
32918 gimple_fold_builtin.
32919 * hooks.c (hook_bool_gsiptr_false): New.
32920 * hooks.h (hook_bool_gsiptr_false): New.
32921 * target.def (fold_stmt): New.
32922 * doc/tm.texi: Regenerate.
32923
32924 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
32925
32926 PR target/57018
32927 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
32928 a set sp if no stack realignment.
32929
32930 2013-04-22 Nick Clifton <nickc@redhat.com>
32931
32932 * config.gcc (tilegx-linux): Extend extra_objs rather than
32933 overwriting it.
32934 (tilepro-linux): Likewise.
32935
32936 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
32937
32938 * config/aarch64/aarch64-builtins.c
32939 (CF): Remove.
32940 (CF0, CF1, CF2, CF3, CF4, CF10): New.
32941 (VAR<1-12>): Add MAP parameter.
32942 (BUILTIN_*): Likewise.
32943 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
32944 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
32945 (aarch64_ushl_n<mode>): Likewise.
32946 (aarch64_sshr_n<mode>): Likewise.
32947 (aarch64_ushr_n<mode>): Likewise.
32948 (aarch64_<maxmin><mode>): Likewise.
32949 (aarch64_sqrt<mode>): Likewise.
32950 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
32951 (vshr<q>_n_*): Likewise.
32952
32953 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
32954
32955 * config/aarch64/aarch64-builtins.c
32956 (aarch64_simd_builtin_type_mode): Handle SF types.
32957 (sf_UP): Define.
32958 (BUILTIN_GPF): Define.
32959 (aarch64_init_simd_builtins): Handle SF types.
32960 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
32961 (frecps): Likewise.
32962 (frecpx): Likewise.
32963 * config/aarch64/aarch64-simd.md
32964 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
32965 (aarch64_frecpe<mode>): New.
32966 (aarch64_frecps<mode>): Likewise.
32967 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
32968 (v8type): Add frecp<esx>.
32969 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
32970 (aarch64_frecps<mode>): Likewise.
32971 * config/aarch64/iterators.md (FRECP): New.
32972 (frecp_suffix): Likewise.
32973 * config/aarch64/arm_neon.h
32974 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
32975
32976 2013-04-22 Christian Bruel <christian.bruel@st.com>
32977
32978 PR target/56995
32979 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
32980 (REG_CLASS_NAMES): Idem.
32981 (REG_CLASS_CONTENTS): Idem.
32982 (REGCLASS_HAS_FP_REG): Idem.
32983 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
32984 (sh_conditional_register_usage): Idem.
32985
32986 2013-04-21 Jeff Law <law@redhat.com>
32987
32988 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
32989 (ssa_forward_propagate_and_combine): Use it.
32990
32991 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
32992
32993 * lra.c: Update the flow chart diagram.
32994
32995 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
32996
32997 PR rtl-optimization/56847
32998 * lra-constraints.c (process_alt_operands): Discourage alternative
32999 with non-matche doffsettable memory constraint fro memory with
33000 known offset.
33001
33002 2013-04-19 Richard Biener <rguenther@suse.de>
33003
33004 PR tree-optimization/56982
33005 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
33006 function.
33007 * gimplify.c (gimplify_call_expr): Notice special calls.
33008 (gimplify_modify_expr): Likewise.
33009 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
33010 abnormal control flow receivers.
33011 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
33012 in the same way as cfun->has_nonlocal_labels.
33013 (gimple_purge_dead_abnormal_call_edges): Likewise.
33014 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
33015 receivers start a basic-block.
33016
33017 2013-04-19 Richard Biener <rguenther@suse.de>
33018
33019 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
33020 member ...
33021 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
33022 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
33023 (SLP_TREE_LOAD_PERMUTATION): Add.
33024 (vect_transform_slp_perm_load): Adjust prototype.
33025 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
33026 (vect_free_slp_instance): Likewise.
33027 (vect_create_new_slp_node): Likewise.
33028 (vect_supported_slp_permutation_p): Remove.
33029 (vect_slp_rearrange_stmts): Adjust.
33030 (vect_supported_load_permutation_p): Likewise. Inline
33031 vect_supported_slp_permutation_p here.
33032 (vect_analyze_slp_instance): Compute load permutations per
33033 slp node instead of per instance.
33034 (vect_get_slp_defs): Adjust.
33035 (vect_transform_slp_perm_load): Likewise.
33036 (vect_schedule_slp_instance): Remove redundant code.
33037 (vect_schedule_slp): Remove hack for PR56270, add it ...
33038 * tree-vect-stmts.c (vectorizable_load): ... here, do not
33039 CSE loads for SLP. Adjust.
33040
33041 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
33042
33043 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
33044 spelling in two comments.
33045
33046 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
33047
33048 PR target/56797
33049 * config/arm/arm.c (load_multiple_sequence): Require SP
33050 as base register for loads if SP is in the register list.
33051
33052 2013-04-19 Martin Jambor <mjambor@suse.cz>
33053
33054 PR tree-optimization/56718
33055 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
33056 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
33057 and made public. Adjusted all callers.
33058 (ipa_intraprocedural_devirtualization): New function.
33059 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
33060 (ipa_intraprocedural_devirtualization): Likewise.
33061 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
33062
33063 2013-04-19 Richard Biener <rguenther@suse.de>
33064
33065 PR tree-optimization/57000
33066 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
33067
33068 2013-04-19 Terry Guo <terry.guo@arm.com>
33069
33070 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
33071 Replace with ...
33072 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
33073 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
33074 (cortex_m4_fmacs): Use new reservations.
33075 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
33076
33077 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
33078
33079 PR rtl-optimization/56999
33080 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
33081 related code.
33082 (lra_coalesce): Remove split_origin_bitmap and related code.
33083 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
33084 ranges if necessary.
33085
33086 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
33087
33088 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
33089 New array.
33090 (ix86_expand_call): Remove clobbered_registers array and use
33091 x86_64_ms_sysv_extra_clobbered_registers instead.
33092 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
33093 Declare here.
33094 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
33095 predicate.
33096 * config/i386/i386.md (*call_rex64_ms_sysv): Use
33097 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
33098 (*call_value_rex64_ms_sysv): Ditto.
33099
33100 2013-04-18 Cary Coutant <ccoutant@google.com>
33101
33102 * dwarf2out.c (output_pubnames): Check die_perennial_p of
33103 parent instead of die_mark.
33104
33105 2013-04-18 Diego Novillo <dnovillo@google.com>
33106
33107 * gimple.c (create_gimple_tmp): New.
33108 (get_expr_type): New.
33109 (build_assign): New.
33110 (build_type_cast): New.
33111 * gimple.h (enum ssa_mode): Define.
33112 (gimple_seq_set_location): New.
33113 * asan.c (build_check_stmt): Change some gimple_build_* calls
33114 to use build_assign and build_type_cast.
33115
33116 2013-04-18 Richard Biener <rguenther@suse.de>
33117
33118 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
33119 handle negative step. Remove redundant checks.
33120 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
33121 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
33122 for negative step and grouped loads fail to vectorize.
33123
33124 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
33125
33126 * emit-rtl.c (reset_insn_used_flags): New function.
33127 (reset_all_used_flags): Use it.
33128 (verify_insn_sharing): New function.
33129 (verify_rtl_sharing): Fix verification for SEQUENCEs.
33130
33131 2013-04-18 Jakub Jelinek <jakub@redhat.com>
33132
33133 PR tree-optimization/56984
33134 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
33135 and (x >> M) >= N don't register any assertion if N << M is the
33136 minimum value.
33137
33138 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
33139
33140 * lower-subreg.c (resolve_simple_move): If called self-recursive,
33141 do not delete_insn insns that have not yet been emitted, only
33142 unlink them with remove_insn.
33143 * df-scan.c (df_insn_delete): Revert r197492.
33144
33145 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
33146
33147 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
33148 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
33149
33150 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
33151
33152 * config/arm/arm.md (movsicc_insn): Convert define_insn into
33153 define_insn_and_split.
33154 (and_scc,ior_scc,negscc): Likewise.
33155 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
33156
33157 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
33158
33159 * config/arm/arm.c (use_return_insn): Return 0 for targets that
33160 can benefit from using a sequence of LDRD instructions in epilogue
33161 instead of a single LDM instruction.
33162
33163 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
33164
33165 PR 45688
33166 * doc/extend.texi: Fix typo.
33167
33168 2013-04-17 Richard Biener <rguenther@suse.de>
33169
33170 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
33171 (vect_build_slp_tree): ... here.
33172 (vect_build_slp_tree_1): Compute which stmts of the SLP group
33173 match. Remove special-casing of mismatched complex loads.
33174 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
33175 re-try the match with swapped commutative operands.
33176 (vect_supported_load_permutation_p): Remove special-casing of
33177 mismatched complex loads.
33178 (vect_analyze_slp_instance): Adjust.
33179
33180 2013-04-17 Richard Biener <rguenther@suse.de>
33181
33182 PR rtl-optimization/56921
33183 * cfgloop.h (struct loop): Add simple_loop_desc member.
33184 (struct niter_desc): Mark with GTY(()).
33185 (simple_loop_desc): Do not use aux field but simple_loop_desc.
33186 * loop-iv.c (get_simple_loop_desc): Likewise.
33187 (free_simple_loop_desc): Likewise.
33188
33189 Revert
33190 2013-04-16 Richard Biener <rguenther@suse.de>
33191
33192 PR rtl-optimization/56921
33193 * loop-init.c (pass_rtl_move_loop_invariants): Add
33194 TODO_do_not_ggc_collect to todo_flags_finish.
33195 (pass_rtl_unswitch): Same.
33196 (pass_rtl_unroll_and_peel_loops): Same.
33197 (pass_rtl_doloop): Same.
33198
33199 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
33200
33201 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
33202 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
33203 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
33204 references.
33205 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
33206 * tree-streamer.c (record_common_node): Adjust reference in comment.
33207
33208 2013-04-17 Terry Guo <terry.guo@arm.com>
33209
33210 * config/arm/cortex-m4.md: Add a new bypass.
33211
33212 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33213
33214 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
33215 New pattern.
33216 (*subs_<optab><mode>_multp2): New pattern.
33217 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
33218 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
33219
33220 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33221
33222 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
33223 (*subs_mul_imm_<mode>): New pattern.
33224
33225 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
33226
33227 PR target/56948
33228 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
33229 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
33230 (vsx_movti_32bit): Change j->wa to O->wa.
33231
33232 2013-04-16 Richard Biener <rguenther@suse.de>
33233
33234 PR rtl-optimization/56921
33235 * loop-init.c (pass_rtl_move_loop_invariants): Add
33236 TODO_do_not_ggc_collect to todo_flags_finish.
33237 (pass_rtl_unswitch): Same.
33238 (pass_rtl_unroll_and_peel_loops): Same.
33239 (pass_rtl_doloop): Same.
33240
33241 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
33242
33243 * config/arm/arm.c (emit_multi_reg_push): New declaration
33244 for an existing function.
33245 (arm_emit_strd_push): New function.
33246 (arm_expand_prologue): Used here.
33247 (arm_emit_ldrd_pop): New function.
33248 (arm_expand_epilogue): Used here.
33249 (arm_get_frame_offsets): Update condition.
33250 (arm_emit_multi_reg_pop): Add a special case for load of a single
33251 register with writeback.
33252
33253 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
33254
33255 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
33256 description.
33257
33258 2013-04-16 Richard Biener <rguenther@suse.de>
33259
33260 PR tree-optimization/56756
33261 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
33262 (first_mem_ref_loc): New.
33263 (execute_sm): Place the load temporarily before a previous
33264 access instead of in the latch edge to ensure its SSA dependencies
33265 are defined at points dominating the load.
33266
33267 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
33268
33269 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
33270 correct fix by moving header and footer insn to the footer of
33271 the merged basic block. Clear BB_END of the merged-away block.
33272
33273 PR middle-end/43631
33274 * emit-rtl.c (make_note_raw): New function.
33275 (link_insn_into_chain): New static inline function.
33276 (add_insn): Use it.
33277 (add_insn_before, add_insn_after): Factor insn chain linking code...
33278 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
33279 using link_insn_into_chain.
33280 (note_outside_basic_block_p): New helper function for emit_note_after
33281 and emit_note_before.
33282 (emit_note_after): Use nobb variant of add_insn_after if the note
33283 should not be contained in a basic block.
33284 (emit_note_before): Use nobb variant of add_insn_before if the note
33285 should not be contained in a basic block.
33286 (emit_note_copy): Use make_note_raw.
33287 (emit_note): Likewise.
33288 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
33289 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
33290 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
33291 the moved barrier the tail of the basic block it follows.
33292 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
33293
33294 2013-04-15 Jakub Jelinek <jakub@redhat.com>
33295
33296 PR tree-optimization/56962
33297 * gimple-ssa-strength-reduction.c (record_increment): Only set
33298 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
33299 either rhs1 or rhs2 is equal to c->base_expr.
33300
33301 2013-04-15 Richard Biener <rguenther@suse.de>
33302
33303 PR tree-optimization/56933
33304 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
33305 member.
33306 (GROUP_READ_WRITE_DEPENDENCE): Remove.
33307 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
33308 * tree-vect-data-refs.c (vect_analyze_group_access): Move
33309 dependence check ...
33310 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
33311 ... here.
33312 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
33313 GROUP_READ_WRITE_DEPENDENCE.
33314
33315 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33316
33317 * emit-rtl.c (reset_all_used_flags): New function.
33318 (verify_rtl_sharing): Call reset_all_used_flags before and after
33319 performing the checks.
33320
33321 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33322
33323 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
33324 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
33325 * config/arm/constraints.md (De): New constraint.
33326 * config/arm/neon.md (anddi3_neon): Delete.
33327 (neon_vand<mode>): Expand to standard anddi3 pattern.
33328 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
33329 Move earlier in the file.
33330 (neon_inv_logic_op2): Likewise.
33331 (arm_anddi_operand_neon): New predicate.
33332
33333 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33334
33335 * configure.ac (gcc_cv_ld_as_needed): Set
33336 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
33337 Use -z ignore, -z record on *-*-solaris2*.
33338 (HAVE_LD_AS_NEEDED): Update comment.
33339 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
33340 * configure: Regenerate.
33341 * config.in: Regenerate.
33342 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
33343 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
33344 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
33345 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
33346 equivalents. Fix markup.
33347 * doc/tm.texi: Regenerate.
33348
33349 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
33350
33351 * config/i386/i386.opt: New option mstack-protector-guard=.
33352 * config/i386/i386-opts.h: Add enum stack_protector_guard.
33353 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
33354 TARGET_SSP_TLS_GUARD.
33355 * config/i386/i386.c (ix86_option_override_internal): Set
33356 ix86_stack_protector_guard.
33357 * config/i386/i386.md (stack_protect_set): Enable for
33358 TARGET_SSP_TLS_GUARD only.
33359 (stack_protect_set_<mode>): Ditto.
33360 (stack_protect_test): Ditto.
33361 (stack_protect_test_<mode>): Ditto.
33362 * doc/invoke.texi (i386 Option): Document.
33363
33364 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
33365
33366 PR target/56890
33367 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
33368 (S_MODES): Set H_MODE bit.
33369 (SF_MODES): Set only S_MODE and SF_MODE bits.
33370 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
33371 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
33372 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
33373 <MODE_FLOAT>: Likewise.
33374
33375 2013-04-15 Joey Ye <joey.ye@arm.com>
33376
33377 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
33378
33379 2013-04-15 Joey Ye <joey.ye@arm.com>
33380
33381 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
33382 for real far jump.
33383 (thumb_far_jump_used_p): Count instruction size and set
33384 far_jump_used.
33385
33386 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
33387
33388 * reorg.c (fill_simple_delay_slots): Reindent block of code.
33389 * resource.c (mark_target_live_regs): Reformat conditional block.
33390
33391 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
33392
33393 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
33394 notes, they are emitted only just before final.
33395 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
33396
33397 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
33398
33399 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
33400 * cfgrtl.c (delete_insn): Call it here instead.
33401 * lra-spills.c (lra_final_code_change): Use delete_insn.
33402 * haifa-sched.c (sched_remove_insn): Likewise.
33403 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
33404 returning to the nop pool.
33405 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
33406 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
33407
33408 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
33409
33410 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
33411 * doc/tm.texi: Regenerated.
33412
33413 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
33414
33415 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
33416 QImode checks.
33417
33418 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
33419
33420 * df-core.c (df_find_def): Compare register numbers.
33421 (df_find_use): Likewise.
33422
33423 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
33424
33425 PR target/56903
33426 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
33427 lra_in_progress for return.
33428
33429 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
33430
33431 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
33432 define_insn into define_insn_and_split and emit movsicc patterns.
33433
33434 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
33435
33436 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
33437
33438 2013-04-12 Richard Biener <rguenther@suse.de>
33439
33440 * tree-pass.h (TODO_do_not_ggc_collect): New.
33441 * passes.c (execute_one_ipa_transform_pass): Honor
33442 TODO_do_not_ggc_collect.
33443 (execute_one_pass): Likewise.
33444
33445 Revert
33446 2013-04-10 Richard Biener <rguenther@suse.de>
33447
33448 * passes.c (init_optimization_passes): Remove reload pass.
33449 * ira.c (do_reload): Merge into ...
33450 (ira): ... this.
33451 (rest_of_handle_reload): Remove.
33452 (pass_reload): Likewise.
33453 * config/i386/i386.c (ix86_option_override): Refer to ira instead
33454 of reload for vzeroupper pass placement.
33455
33456 2013-04-12 Jakub Jelinek <jakub@redhat.com>
33457
33458 PR tree-optimization/56918
33459 PR tree-optimization/56920
33460 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
33461 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
33462 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
33463 use wide_mul_with_sign method.
33464
33465 2013-04-12 Richard Biener <rguenther@suse.de>
33466
33467 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
33468 not be considered a gimple constant.
33469
33470 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
33471
33472 * fold-const.c (const_binop): Handle vector shifts by a scalar.
33473 (fold_binary_loc): Call const_binop also for mixed vector-scalar
33474 operations.
33475
33476 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
33477 Jakub Jelinek <jakub@redhat.com>
33478
33479 * opts.c: Include diagnostic-color.h.
33480 (common_handle_option): Handle OPT_fdiagnostics_color_.
33481 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
33482 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
33483 (diagnostic-color.o): New.
33484 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
33485 (diagnostic_color_rule): New enum.
33486 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
33487 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
33488 the location string.
33489 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
33490 either NULL, or color kind.
33491 * diagnostic-color.c: New file.
33492 * diagnostic-color.h: New file.
33493 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
33494 arguments.
33495 * doc/invoke.texi (-fdiagnostics-color): Document.
33496 * pretty-print.h (pp_show_color): Define.
33497 (struct pretty_print_info): Add show_color field.
33498 * diagnostic.c: Include diagnostic-color.h.
33499 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
33500 macros. Colorize error:, warning: etc. strings and also the location
33501 string.
33502 (diagnostic_show_locus): Colorize the caret line.
33503 * pretty-print.c: Include diagnostic-color.h.
33504 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
33505 inside of %< %> quotes or quoted through q format modifier.
33506
33507 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33508
33509 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
33510
33511 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33512
33513 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
33514 code in CC_NZ mode.
33515 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
33516 pattern.
33517
33518 2013-04-11 Marek Polacek <polacek@redhat.com>
33519
33520 PR tree-optimization/48184
33521 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
33522
33523 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
33524
33525 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
33526 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
33527 (skip_simple_arithmetic): Tidy up.
33528 * tree.h (skip_simple_constant_arithmetic): Declare.
33529
33530 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33531
33532 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
33533
33534 2013-04-11 Richard Biener <rguenther@suse.de>
33535
33536 * tree-vect-loop.c (get_initial_def_for_induction): Properly
33537 generate vector constants.
33538
33539 2013-04-11 Richard Biener <rguenther@suse.de>
33540
33541 PR tree-optimization/56878
33542 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
33543 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
33544 New function.
33545 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
33546 Prefer to align the DR with the most invariant base address.
33547
33548 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33549
33550 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
33551 comment.
33552
33553 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
33554
33555 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
33556 floating-point vector comparisons against 0.
33557
33558 2013-04-11 Jakub Jelinek <jakub@redhat.com>
33559
33560 PR tree-optimization/56899
33561 * fold-const.c (extract_muldiv_1): Apply distributive law
33562 only if TYPE_OVERFLOW_WRAPS (ctype).
33563
33564 2013-04-11 Bin Cheng <bin.cheng@arm.com>
33565
33566 PR target/56124
33567 * ira-costs.c (scan_one_insn): Check whether the source rtx of
33568 loading has side effect.
33569
33570 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
33571
33572 * config/sparc/sparc.c: Include tree-pass.h.
33573 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
33574 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
33575 head of file. Change return type. Split off gate function.
33576 (sparc_gate_work_around_errata): New function.
33577 (pass_work_around_errata): New pass definition.
33578 (insert_pass_work_around_errata) New pass insert definition to
33579 insert pass_work_around_errata just after delayed-branch scheduling.
33580 (sparc_option_override): Insert the pass.
33581 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
33582
33583 2013-04-10 David S. Miller <davem@davemloft.net>
33584
33585 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
33586 or -mcpu=hypersparc.
33587
33588 * target.def (cstore_mode): New hook.
33589 * target.h: Include insn-codes.h
33590 * targhooks.c: Likewise.
33591 (default_cstore_mode): New function.
33592 * targhooks.h: Declare it.
33593 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
33594 * doc/tm.texi: Rebuild.
33595 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
33596 target hook, rather than inspecting the insn_data.
33597 * config/sparc/sparc.c (sparc_cstore_mode): New function.
33598 (TARGET_CSTORE_MODE): Redefine.
33599 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
33600 result patterns.
33601 * config/sparc/predicates.md (cstore_result_operand): New special
33602 predicate.
33603 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
33604 Use it for operand 0.
33605 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
33606 (*snesi_special): Likewise.
33607 (*snesi_zero): Likewise.
33608 (*seqsi_zero): Likewise.
33609 (*sltu_insn): Likewise.
33610 (*sgeu_insn): Likewise.
33611 (*seqdi_special): Make operand 0 and comparison operation be of
33612 DImode.
33613 (*snedi_special): Likewise.
33614 (*snedi_special_vis3): Likewise.
33615 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
33616 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
33617 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
33618 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
33619 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
33620 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
33621 (*sltu_extend_sp64): Likewise.
33622 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
33623 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
33624 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
33625 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
33626 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
33627
33628 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
33629
33630 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
33631 (aarch64_start_file): Use the new function.
33632
33633 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33634 Jason Merrill <jason@redhat.com>
33635
33636 * common.opt: Add -gdwarf.
33637 * opts.c (common_handle_option): Handle it.
33638 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
33639
33640 2013-04-10 Richard Biener <rguenther@suse.de>
33641
33642 * passes.c (execute_todo): Do not call ggc_collect conditional here.
33643 (execute_one_ipa_transform_pass): But unconditionally here.
33644 (execute_one_pass): And here.
33645 (init_optimization_passes): Remove reload pass.
33646 * tree-pass.h (TODO_ggc_collect): Remove.
33647 (pass_reload): Likewise.
33648 * ira.c (do_reload): Merge into ...
33649 (ira): ... this.
33650 (rest_of_handle_reload): Remove.
33651 (pass_reload): Likewise.
33652 * config/i386/i386.c (ix86_option_override): Refer to ira instead
33653 of reload for vzeroupper pass placement.
33654 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
33655 and todo_flags_finish of all passes.
33656
33657 2013-04-10 Richard Biener <rguenther@suse.de>
33658
33659 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
33660 first_const_oprnd field, rename first_def_type to first_op_type.
33661 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
33662 (vect_get_and_check_slp_defs): Always use the type of the
33663 operand. Allow mixed vect_external_def, vect_constant_def types.
33664 (vect_get_constant_vectors): Handle mixed vect_external_def,
33665 vect_constant_def types.
33666
33667 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
33668
33669 PR tree-optimization/55524
33670 * tree-ssa-math-opts.c
33671 (convert_mult_to_fma): Don't use an fms construct
33672 when we don't have an fms operation, but fnma, and it looks
33673 likely that we'll be able to use the latter.
33674
33675 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
33676
33677 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
33678 function.
33679 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
33680 inline fail caused by overwritable functions.
33681
33682 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
33683
33684 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
33685 unnecessary bits in the constant power of two case.
33686
33687 2013-04-10 Richard Biener <rguenther@suse.de>
33688
33689 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
33690 broken code swapping operands.
33691 (vect_build_slp_tree): Do not compute load permutations here.
33692 (vect_analyze_slp_instance): Compute load permutations here,
33693 after building the SLP tree.
33694
33695 2013-04-09 Christian Bruel <christian.bruel@st.com>
33696
33697 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
33698 of next/prev_real_insn.
33699
33700 2013-04-09 Jan Hubicka <jh@suse.cz>
33701
33702 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
33703 Drop aliased parameter.
33704 (function_and_variable_visibility): Do not handle alias pairs.
33705 * cgraph.c (varpool_externally_visible_p): Update prototype.
33706 * varpool.c (varpool_add_new_variable): Update.
33707
33708 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33709
33710 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
33711
33712 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
33713
33714 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
33715
33716 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
33717
33718 2013-04-09 Marek Polacek <polacek@redhat.com>
33719
33720 PR tree-optimization/48762
33721 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
33722
33723 2013-04-09 Richard Biener <rguenther@suse.de>
33724
33725 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
33726 dealing with cost.
33727 (vect_build_slp_tree): Likewise.
33728 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
33729 calculating the cost of a SLP instance.
33730 (vect_analyze_slp_instance): Use it from here, after building
33731 the SLP tree.
33732
33733 2013-04-09 Jakub Jelinek <jakub@redhat.com>
33734
33735 PR middle-end/56883
33736 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
33737 expand_omp_for_static_chunk): Use simple_p = true in
33738 force_gimple_operand_gsi calls when assigning to addressable decls.
33739
33740 2013-04-09 Jeff Law <law@redhat.com>
33741
33742 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
33743 when the boolean was created by converting a wider object which
33744 had a boolean range.
33745
33746 2013-04-09 Richard Biener <rguenther@suse.de>
33747
33748 * tree-vectorizer.h (slp_void_p): Remove.
33749 (slp_tree): Typedef before _slp_tree declaration.
33750 (struct _slp_tree): Use a vector of slp_tree as children.
33751 (vect_get_place_in_interleaving_chain): Remove.
33752 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
33753 Move ...
33754 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
33755 and make static.
33756 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
33757 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
33758 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
33759 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
33760 Use slp_node instead of slp_void_p and adjust.
33761
33762 2013-04-09 Richard Biener <rguenther@suse.de>
33763
33764 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
33765 work that is not necessary.
33766
33767 2013-04-09 Jakub Jelinek <jakub@redhat.com>
33768
33769 PR tree-optimization/56854
33770 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
33771 forward into clobber stmts if it would change MEM_REF lhs into
33772 non-MEM_REF.
33773
33774 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
33775
33776 * tree.c (type_hash_lookup, type_hash_add): Make static.
33777 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
33778
33779 2013-04-09 Richard Biener <rguenther@suse.de>
33780
33781 * tree.h (unsave_expr_now): Remove.
33782 * tree-inline.c (mark_local_for_remap_r): Remove.
33783 (unsave_expr_1): Likewise.
33784 (unsave_r): Likewise.
33785 (unsave_expr_now): Likewise.
33786 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
33787 (propagate_tree_value): Likewise.
33788
33789 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
33790
33791 * doc/rtl.texi (sequence): Rewrite documentation to match the
33792 current use of SEQUENCE rtl objects.
33793 * rtl.def (SEQUENCE): Likewise.
33794
33795 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
33796 Update documentation.
33797 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
33798 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
33799
33800 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
33801
33802 2013-04-08 Teresa Johnson <tejohnson@google.com>
33803
33804 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
33805 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33806 methods.
33807 (estimate_edge_size_and_time): Add comment to suggest using rounding
33808 methods.
33809 (estimate_node_size_and_time): Ditto.
33810 (remap_edge_change_prob): Use helper rounding divide methods.
33811 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
33812 (gimple_mod_pow2_value_transform): Ditto.
33813 (gimple_mod_subtract_transform): Ditto.
33814 (gimple_ic_transform): Ditto.
33815 (gimple_stringops_transform): Ditto.
33816 * stmt.c (conditional_probability): Ditto.
33817 (emit_case_dispatch_table): Ditto.
33818 * lto-cgraph.c (merge_profile_summaries): Ditto.
33819 * tree-optimize.c (execute_fixup_cfg): Ditto.
33820 * cfgcleanup.c (try_forward_edges): Ditto.
33821 * cfgloopmanip.c (scale_loop_profile): Ditto.
33822 (loopify): Ditto.
33823 (duplicate_loop_to_header_edge): Ditto.
33824 (lv_adjust_loop_entry_edge): Ditto.
33825 * tree-vect-loop.c (vect_transform_loop): Ditto.
33826 * profile.c (compute_branch_probabilities): Ditto.
33827 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
33828 * lto-streamer-in.c (input_cfg): Ditto.
33829 * gimple-streamer-in.c (input_bb): Ditto.
33830 * ipa-cp.c (update_profiling_info): Ditto.
33831 (update_specialized_profile): Ditto.
33832 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
33833 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33834 rounding methods.
33835 * sched-rgn.c (compute_dom_prob_ps): Ditto.
33836 (compute_trg_info): Ditto.
33837 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
33838 (purge_dead_edges): Ditto.
33839 * loop-unswitch.c (unswitch_loop): Ditto.
33840 * cgraphclones.c (cgraph_clone_edge): Ditto.
33841 (cgraph_clone_node): Ditto.
33842 * tree-inline.c (copy_bb): Ditto.
33843 (copy_edges_for_bb): Ditto.
33844 (initialize_cfun): Ditto.
33845 (copy_cfg_body): Ditto.
33846 (expand_call_inline): Ditto.
33847
33848 2013-04-08 Kai Tietz <ktietz@redhat.com>
33849
33850 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
33851 TARGET_CYGWIN64 by TARGET_64BIT.
33852
33853 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
33854
33855 * config/epiphany/epiphany.md (GPR_1): New constant.
33856 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
33857 * config/epiphany/epiphany.c (gen_compare_reg):
33858 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
33859 is already in place.
33860 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
33861 Don't require being called during rtl expansion; If y operlaps r0,
33862 return 0.
33863 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
33864 (epiphany_expand_epilogue): Likewise.
33865
33866 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
33867 Don't use CC_FPmode for ORDERED / UNORDERED.
33868 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
33869
33870 * config/epiphany/constraints.md (CnL): New constraint.
33871 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
33872 * config/epiphany/predicates.md (add_operand): Allow 1024.
33873
33874 * config/epiphany/epiphany.md (logical_op): New code iterator.
33875 (op_mnc): New code attribute.
33876 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
33877 (mov_f+1, mov_f+2): New peephole2 patterns.
33878
33879 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
33880 (cstoresi4): Also allow re-use of zero result when doing a NE
33881 comparison to a non-zero operand.
33882 Use (clobber (scratch)) for first insn if the gpr output is not needed.
33883
33884 * config/epiphany/epiphany.md (<insn_opname>v2si3):
33885 Use gen_addsi3_i / gen_subsi3_i.
33886
33887 2013-04-08 Jakub Jelinek <jakub@redhat.com>
33888
33889 PR c++/34949
33890 PR c++/50243
33891 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
33892 contain anything but clobbers, at most one __builtin_stack_restore,
33893 optionally debug stmts and final resx, and if it has at least one
33894 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
33895 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
33896 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
33897 which isn't defaut definition, remove them.
33898 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
33899 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
33900 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
33901 with MEM_REF LHS with SSA_NAME address.
33902
33903 2013-04-08 Jeff Law <law@redhat.com>
33904
33905 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
33906
33907 2013-04-08 Richard Biener <rguenther@suse.de>
33908
33909 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
33910 extra newline.
33911 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
33912 determined vector type.
33913 (vect_analyze_data_refs): Likewise.
33914 (vect_get_new_vect_var): Adjust.
33915 (vect_create_destination_var): Preserve SSA name versions.
33916 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
33917 not dump anything here.
33918
33919 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
33920
33921 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
33922 Add member lr_slot_known.
33923 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
33924 if necessary.
33925 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
33926 Remove code that sets lr_slot_offset according to what a previous
33927 version of epiphany_emit_save_restore used to do.
33928 (epiphany_emit_save_restore): When doing an lr save or restore,
33929 set/verify lr_slot_known and lr_slot_offset.
33930
33931 2013-04-08 Xinyu Qi <xyqi@marvell.com>
33932
33933 PR target/54338
33934 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
33935 in ALL_REGS.
33936
33937 2013-04-08 Richard Biener <rguenther@suse.de>
33938
33939 * alias.c (find_base_term): Fix thinko in previous change.
33940
33941 2013-04-08 Jakub Jelinek <jakub@redhat.com>
33942
33943 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
33944 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
33945 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
33946 if possible to compute val.
33947 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
33948 For QImode integers don't require anything about precision. Use
33949 const_with_all_bytes_same to find out if the constant doesn't have
33950 repeated bytes in it.
33951
33952 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33953
33954 * config/s390/s390.c (s390_expand_insv): Only accept insertions
33955 within mode size.
33956
33957 2013-04-08 Marek Polacek <polacek@redhat.com>
33958
33959 PR rtl-optimization/48182
33960 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
33961 value to 1.
33962
33963 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33964
33965 PR target/55487
33966 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
33967 nuses, make sure we have a label.
33968
33969 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33970
33971 PR target/56843
33972 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
33973 (rs6000_emit_swdiv_low_precision): Remove.
33974 (rs6000_emit_swdiv): Rewrite to handle between one and four
33975 iterations of Newton-Raphson generally; modify required number of
33976 iterations for some cases.
33977 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
33978
33979 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
33980
33981 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
33982 set-but-unused variable.
33983
33984 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
33985 basic blocks of released function bodies garbage-collectable.
33986
33987 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
33988 (struct rtl_opt_pass): Add TODO_df_finish.
33989
33990 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
33991
33992 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33993
33994 * config/arm/constraints.md (q): New constraint.
33995 * config/arm/ldrdstrd.md: New file.
33996 * config/arm/arm.md (ldrdstrd.md) New include.
33997 (arm_movdi): Use "q" instead of "r" constraint
33998 for double-word memory access.
33999 (movdf_soft_insn): Likewise.
34000 * config/arm/vfp.md (movdi_vfp): Likewise.
34001 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
34002 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
34003 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
34004 (mem_ok_for_ldrd_strd): Likewise.
34005 (output_move_double): Update assertion.
34006
34007 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
34008
34009 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
34010
34011 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
34012
34013 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
34014 define_insn_and_split.
34015 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
34016
34017 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
34018
34019 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
34020 define_insn_and_split.
34021 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
34022 (shiftsi3_compare): New pattern.
34023 (rrx): New pattern.
34024 * config/arm/unspecs.md (UNSPEC_RRX): New.
34025
34026 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
34027
34028 * config/arm/arm.md (negdi_extendsidi): New pattern.
34029 (negdi_zero_extendsidi): Likewise.
34030
34031 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
34032
34033 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
34034 define_insn_and_split.
34035 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
34036 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
34037
34038 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
34039
34040 * config/arm/arm.md (arm_subdi3): Convert define_insn into
34041 define_insn_and_split.
34042 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
34043 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
34044
34045 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
34046
34047 * config/arm/arm.md (subsi3_carryin): New pattern.
34048 (subsi3_carryin_const): Likewise.
34049 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
34050 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
34051
34052 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
34053
34054 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
34055
34056 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
34057
34058 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
34059 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
34060
34061 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34062
34063 * config/arm/arm.c (arm_expand_builtin): Change fcode
34064 type to unsigned int.
34065
34066 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34067
34068 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
34069
34070 2013-04-04 Ian Lance Taylor <iant@google.com>
34071
34072 * doc/standards.texi (Standards): The Go frontend supports the Go 1
34073 language standard.
34074
34075 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
34076
34077 PR middle-end/56729
34078 * df-scan.c (df_insn_delete): Disable failing assert.
34079
34080 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34081
34082 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
34083 New function prototype.
34084 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
34085 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
34086 (arm_builtin_vectorized_function): New function.
34087
34088 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34089
34090 * config/arm/arm_neon_builtins.def: New file.
34091 * config/arm/arm.c (neon_builtin_data): Move contents to
34092 arm_neon_builtins.def.
34093 (enum arm_builtins): Include neon builtin definitions.
34094 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
34095 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
34096
34097 2013-04-04 Marek Polacek <polacek@redhat.com>
34098
34099 PR tree-optimization/48186
34100 * predict.c (maybe_hot_frequency_p): Return false if
34101 HOT_BB_FREQUENCY_FRACTION is 0.
34102 (cgraph_maybe_hot_edge_p): Likewise.
34103
34104 2013-04-04 Richard Biener <rguenther@suse.de>
34105
34106 PR tree-optimization/56826
34107 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
34108 more accurately.
34109
34110 2013-04-04 Richard Biener <rguenther@suse.de>
34111
34112 PR tree-optimization/56213
34113 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
34114 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
34115
34116 2013-04-04 Richard Biener <rguenther@suse.de>
34117
34118 PR tree-optimization/56837
34119 * tree-loop-distribution.c (classify_partition): For non-zero
34120 values require that the value has the same precision as its
34121 mode to be useful as memset value.
34122
34123 2013-04-03 Nick Clifton <nickc@redhat.com>
34124
34125 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
34126 (fmssf4): Use fmsf.s on E3V5 architectures.
34127 (fnmasf4): Use fnmaf.s on E3V5 architectures.
34128 (fnmssf4): Use fnmsf.s on E3V5 architectures.
34129
34130 2013-04-03 Jeff Law <law@redhat.com>
34131
34132 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
34133 (lra-eliminations.o): Likewise.
34134
34135 2013-04-03 Teresa Johnson <tejohnson@google.com>
34136
34137 * gcov-io.c (compute_working_sets): Moved most of body of old
34138 compute_working_sets here from profile.c.
34139 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
34140 (gcov_working_set_t): Moved typedef here from basic-block.h
34141 (compute_working_set): Declare.
34142 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
34143 (get_working_sets): Renamed from compute_working_set,
34144 replace most of body with call to new compute_working_sets.
34145 (get_exec_counts): Replace call to compute_working_sets
34146 to get_working_sets.
34147 * profile.h (get_working_sets): Renamed from compute_working_set.
34148 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
34149 to get_working_sets.
34150 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
34151 * gcov-dump.c (dump_working_sets): New function.
34152
34153 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
34154
34155 * hwint.c (sext_hwi, zext_hwi): New functions.
34156 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
34157 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
34158 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
34159 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
34160 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
34161 (sext_hwi, zext_hwi): New functions.
34162
34163 2013-04-03 Jeff Law <law@redhat.com>
34164
34165 PR tree-optimization/56799
34166 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
34167 back test for widening conversion erroneously dropped in prior change.
34168
34169 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34170
34171 PR target/56809
34172 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
34173 instead of next_real_insn.
34174
34175 2013-04-03 Marek Polacek <polacek@redhat.com>
34176
34177 PR sanitizer/55702
34178 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
34179
34180 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34181
34182 PR target/56809
34183 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
34184 next_real_insn.
34185 (thumb1_output_casesi): Likewise.
34186 (thumb2_output_casesi): Likewise.
34187
34188 2013-04-03 Richard Biener <rguenther@suse.de>
34189
34190 PR tree-optimization/56817
34191 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
34192 Split out ...
34193 (tree_unroll_loops_completely_1): ... new function to manually
34194 walk the loop tree, properly defering outer loops of unrolled
34195 loops to later iterations.
34196
34197 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
34198
34199 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
34200 (vectorizable_load): Likewise.
34201 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
34202 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
34203
34204 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
34205
34206 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
34207 BIT_FIELD_REF.
34208
34209 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
34210
34211 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
34212
34213 2013-04-03 Bin Cheng <bin.cheng@arm.com>
34214
34215 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
34216
34217 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
34218
34219 PR tree-optimization/56790
34220 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
34221 folding.
34222
34223 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
34224
34225 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
34226 Handle VEC_MERGE.
34227 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
34228 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
34229 equal arguments.
34230
34231 2013-04-03 Jakub Jelinek <jakub@redhat.com>
34232
34233 PR c/19449
34234 * tree.h (force_folding_builtin_constant_p): New decl.
34235 * builtins.c (force_folding_builtin_constant_p): New variable.
34236 (fold_builtin_constant_p): Fold immediately also if
34237 force_folding_builtin_constant_p.
34238
34239 2013-04-03 Richard Biener <rguenther@suse.de>
34240
34241 PR tree-optimization/56812
34242 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
34243 DRs of the same interleaving chain are independent.
34244
34245 2013-04-02 Jason Merrill <jason@redhat.com>
34246
34247 * gdbinit.in (pbb): Use debug fn.
34248
34249 2013-04-02 Lawrence Crowl <crowl@google.com>
34250
34251 * sese.h (struct ivtype_map_elt_s): Remove unused.
34252 (extern debug_ivtype_map): Remove unused.
34253 (extern eq_ivtype_map_elts): Remove unused.
34254 * sese.c (debug_ivtype_map): Removed unused.
34255 (debug_ivtype_map_1): Removed unused.
34256 (debug_ivtype_elt): Remove unused.
34257 (eq_ivtype_map_elts): Remove unused.
34258
34259 2013-04-02 Kai Tietz <ktietz@redhat.com>
34260
34261 PR target/52790
34262 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
34263 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
34264 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
34265 function.
34266 (legitimize_pe_coff_symbol): Likewise.
34267 (is_imported_p): New helper-function.
34268 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
34269 for Windows x64 targets.
34270 (ix86_expand_prologue): Optimize for pe-coff targets.
34271 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
34272 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
34273 medium/large code-model.
34274 (legitimize_pic_address): Likewise.
34275 (legitimize_tls_address): Likewise.
34276 (ix86_expand_call): Likewise.
34277 (x86_output_mi_thunk): Likewise.
34278 (get_dllimport_decl): Add new beimport argument.
34279 (construct_plt_address): Don't assert for x64 pe-coff targets.
34280 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
34281 targets.
34282 (SYMBOL_FLAG_STUBVAR): New macro.
34283 (SYMBOL_REF_STUBVAR_P): Likewise.
34284 * config/i386/winnt.c (stub_list): New structure.
34285 (stub_head): New local variable.
34286 (i386_pe_record_stub): New function.
34287 (i386_pe_file_end): Emit refptr-stubs.
34288
34289 2013-04-02 Jakub Jelinek <jakub@redhat.com>
34290
34291 PR rtl-optimization/56745
34292 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
34293 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
34294
34295 PR c++/34949
34296 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
34297 and both of them are MEM_REFs, just compare first argument for
34298 equality and attempt to deal even with differing offsets.
34299
34300 PR c++/34949
34301 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
34302 of gimple_clobber_p to be MEM_REF.
34303 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
34304 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
34305 after gimplification.
34306 * asan.c (get_mem_ref_of_assignment): Don't instrument
34307 gimple_clobber_p stmts.
34308 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
34309 gimple_clobber_p stmt if they have MEM_REF lhs and
34310 are dead because of another gimple_clobber_p stmt.
34311 * tree-ssa-live.c (clear_unused_block_pointer): Treat
34312 gimple_clobber_p stmts like debug stmts.
34313 (remove_unused_locals): Remove clobbers with MEM_REF lhs
34314 that refer to unused VAR_DECLs or uninitialized values.
34315 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
34316 gimple_clobber_p stmts if they refer to removed parameters.
34317 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
34318 formatting.
34319
34320 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
34321
34322 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
34323 using SWI48 mode attribute.
34324
34325 2013-04-02 Wei Mi <wmi@google.com>
34326
34327 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
34328 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
34329 *<rotate_insn><mode>3_mask in i386.md.
34330
34331 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
34332
34333 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
34334
34335 2013-04-02 Richard Biener <rguenther@suse.de>
34336
34337 PR tree-optimization/56778
34338 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
34339 Runtime alias tests are not supported for gather loads.
34340 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
34341 stmts referenced from SSA operands before updating SSA form.
34342
34343 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
34344 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34345
34346 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
34347 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
34348 * config/arm/cortex-a53.md: New file.
34349 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
34350 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
34351 * config/arm/arm.c (arm_issue_rate): Likewise.
34352 * config/arm/arm-tune.md: Regenerate
34353 * config/arm/arm-tables.opt: Regenerate.
34354 * config/arm/arm-cores.def: Add cortex-a53.
34355
34356 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
34357
34358 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
34359 non-static link.
34360
34361 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
34362
34363 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
34364 scalar load/store operations using B/H registers.
34365 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
34366
34367 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
34368
34369 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
34370 scalar move.
34371 * config/aarch64/aarch64.c
34372 (aarch64_simd_scalar_immediate_valid_for_move): New.
34373 * config/aarch64/aarch64-protos.h
34374 (aarch64_simd_scalar_immediate_valid_for_move): New.
34375 * config/aarch64/constraints.md (Dh, Dq): New.
34376 * config/aarch64/iterators.md (hq): New.
34377
34378 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
34379
34380 * reorg.c (get_branch_condition): Deal with conditional returns.
34381 (fill_simple_delay_slots): Remove dead code dealing with jumps.
34382
34383 2013-04-01 Wei Mi <wmi@google.com>
34384
34385 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
34386 Truncate operand 2 using %b asm operand modifier.
34387 (*<shift_insn><mode>3_mask): Ditto.
34388 (*<rotate_insn><mode>3_mask): Ditto.
34389
34390 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
34391
34392 PR middle-end/56798
34393 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
34394
34395 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
34396
34397 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
34398 of next_real_insn.
34399 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
34400
34401 2013-03-30 Lawrence Crowl <crowl@google.com>
34402
34403 * dse.c (clear_alias_sets): Remove never set.
34404 (disqualified_clear_alias_sets): Remove never set.
34405 (clear_alias_mode_pool): Remove never set.
34406 (dse_step0): Remove condition that is never true.
34407 (canon_address): Remove condition that is never true.
34408 (dse_step7): Remove condition that is never true.
34409 (rest_of_handle_dse): Remove condition that is never true.
34410 (rest_of_handle_dse::did_global): Remove never read from above.
34411 (dse_step2_spill): Remove never called from above.
34412 (dse_step5_spill): Remove never called from above.
34413
34414 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
34415
34416 * doc/md.texi (Standard Names) <casesi>: Update documentation for
34417 JUMP_TABLE_DATA changes.
34418 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
34419 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
34420 (Insns) <jump_table_data>: New entry.
34421 * doc/tm.texi: Regenerate.
34422
34423 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
34424
34425 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
34426 for table jump at the end of a basic block using tablejump_p.
34427 * targhooks.c (default_invalid_within_doloop): Likewise.
34428 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
34429 target hook implementation that is identical to the default hook.
34430 (rs6000_invalid_within_doloop): Remove.
34431
34432 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
34433 unused variable from tablejump_p call.
34434
34435 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
34436 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
34437 (INSN_DELETED_P): Likewise.
34438 (emit_jump_table_data): New prototype.
34439 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
34440 after 4th as unused.
34441 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
34442 * sched-vis.c (print_insn): Likewise.
34443 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
34444 insn for compatibility with back ends that use next_active_insn to
34445 identify jump table data.
34446 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
34447 (remove_insn): Likewise.
34448 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
34449 to be emitted.
34450 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
34451 (emit_jump_table_data): New function.
34452
34453 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
34454 basic block, a JUMP_TABLE_DATA never is.
34455 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
34456 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
34457 off from code handling real insns.
34458 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
34459 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
34460 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
34461 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
34462 is not a NONDEBUG_INSN_P.
34463 * ira-costs.c (scan_one_insn): Likewise.
34464 * jump.c (mark_all_labels): Likewise.
34465 (mark_jump_label_1): Likewise.
34466 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
34467 * lra.c (get_insn_freq): Expect all insns reaching here to be in
34468 a basic block.
34469 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
34470 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
34471 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
34472 JUMP_TABLE_DATA_P insns.
34473 (calculate_elim_costs_all_insns): Likewise.
34474 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
34475 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
34476 (delete_output_reload): Code style fixups.
34477 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
34478 insn flags on this non-insn.
34479 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
34480 as scheduling barriers, for pre-change compatibility.
34481 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
34482 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
34483
34484 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
34485 redundant JUMP_TABLE_DATA_P test.
34486 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
34487 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
34488 (frv_for_each_packet): Likewise.
34489 * config/i386/i386.c (min_insn_size): Likewise.
34490 (ix86_avoid_jump_mispredicts): Likewise.
34491 * config/m32r/m32r.c (m32r_is_insn): Likewise.
34492 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
34493 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
34494 (mips16_insn_length): Robustify.
34495 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
34496 (mips16_split_long_branches): Likewise.
34497 * config/pa/pa.c (pa_combine_instructions): Likewise.
34498 * config/rs6000/rs6000.c (get_next_active_insn): Treat
34499 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
34500 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
34501 as contributing to pool range lengths.
34502 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
34503 Remove redundant JUMP_TABLE_DATA_P test.
34504 (sh_loop_align): Likewise.
34505 (split_branches): Likewise.
34506 (sh_insn_length_adjustment): Likewise.
34507 * config/spu/spu.c (get_branch_target): Likewise.
34508
34509 2013-03-29 Jan Hubicka <jh@suse.cz>
34510
34511 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
34512 gcov streaming; stream hot bb threshold to ltrans.
34513 * predict.c (get_hot_bb_threshold): Break out from ....
34514 (maybe_hot_count_p): ... here.
34515 (set_hot_bb_threshold): New function.
34516 * lto-section-in.c (lto_section_name): Add profile.
34517 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
34518 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
34519 and data-streamer.h
34520 (histogram_entry): New structure.
34521 (histogram, histogram_pool): New global vars.
34522 (histogram_hash): New structure.
34523 (histogram_hash::hash): New method.
34524 (histogram_hash::equal): Likewise.
34525 (account_time_size): New function.
34526 (cmp_counts): New function.
34527 (dump_histogram): New function.
34528 (ipa_profile_generate_summary): New function.
34529 (ipa_profile_write_summary): New function.
34530 (ipa_profile_read_summary): New function.
34531 (ipa_profile): Decide on threshold.
34532 (pass_ipa_profile): Add ipa_profile_write_summary and
34533 ipa_profile_read_summary.
34534 * Makefile.in (ipa.o): Update dependencies.
34535 * lto-streamer.h (LTO_section_ipa_profile): New section.
34536
34537 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
34538
34539 * tree.h (VAR_P): New.
34540
34541 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
34542
34543 PR lto/56777
34544 * doc/invoke.texi ([-fwhole-program]): Fix typo.
34545
34546 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
34547
34548 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
34549 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
34550 (control_flow_insn_p): Likewise.
34551 * cfgrtl.c (duplicate_insn_chain): Likewise.
34552 * final.c (get_attr_length_1): Likewise.
34553 (shorten_branches): Likewise.
34554 (final_scan_insn): Likewise.
34555 * function.c (instantiate_virtual_regs): Likewise.
34556 * gcse.c (insert_insn_end_basic_block): Likewise.
34557 * ira-costs.c (scan_one_insn): Likewise.
34558 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
34559 * lra.c (check_rtl): Likewise.
34560 * reload1.c (elimination_costs_in_insn): Likewise.
34561 * reorg.c (follow_jumps): Likewise.
34562
34563 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
34564 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
34565 (thumb_far_jump_used_p): Likewise.
34566 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
34567 (workaround_speculation): Likewise.
34568 (add_sched_insns_for_speculation): Likewise.
34569 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
34570 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
34571 (frv_for_each_packet): Likewise.
34572 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
34573 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
34574 (final_emit_insn_group_barriers): Likewise.
34575 * config/m32r/m32r.c (m32r_is_insn): Likewise.
34576 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
34577 (mips16_insn_length): Likewise.
34578 * config/pa/pa.c (pa_reorg): Likewise.
34579 (pa_combine_instructions): Likewise.
34580 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
34581 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
34582 (sh_reorg): Likewise.
34583 (split_branches): Likewise.
34584 * config/spu/spu.c (get_branch_target): Likewise.
34585
34586 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
34587 JUMP_TABLE_DATA_P.
34588
34589 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
34590
34591 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
34592 Fix declaration name.
34593
34594 2013-03-28 Lawrence Crowl <crowl@google.com>
34595
34596 * graphds.h (struct graph.indicies): Remove unused.
34597 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
34598 (SCOP_ORIGINAL_PDDRS): Remove unused.
34599 * sese.h (extern insert_loop_close_phis): Removed unused.
34600 (extern insert_guard_phis): Removed unused.
34601 (extern ivtype_map_elt_info): Removed unused.
34602 (new_ivtype_map_elt): Removed unused.
34603 * sese.c (ivtype_map_elt_info): Removed unused.
34604
34605 2013-03-28 Lawrence Crowl <crowl@google.com>
34606
34607 * Makefile.in: Add several missing include dependences.
34608 (DUMPFILE_H): New.
34609 (test-dump.o): New. This object is not added to any executable,
34610 but is present for ad-hoc testing.
34611 * bitmap.c
34612 (debug (const bitmap_head_def &)): New.
34613 (debug (const bitmap_head_def *)): New.
34614 * bitmap.h
34615 (extern debug (const bitmap_head_def &)): New.
34616 (extern debug (const bitmap_head_def *)): New.
34617 * cfg.c
34618 (debug (edge_def &)): New.
34619 (debug (edge_def *)): New.
34620 * cfghooks.c
34621 (debug (basic_block_def &)): New.
34622 (debug (basic_block_def *)): New.
34623 * dumpfile.h
34624 (dump_node (const_tree, int, FILE *)): Correct source file.
34625 * dwarf2out.c
34626 (debug (die_struct &)): New.
34627 (debug (die_struct *)): New.
34628 * dwarf2out.h
34629 (extern debug (die_struct &)): New.
34630 (extern debug (die_struct *)): New.
34631 * gimple-pretty-print.c
34632 (debug (gimple_statement_d &)): New.
34633 (debug (gimple_statement_d *)): New.
34634 * gimple-pretty-print.h
34635 (extern debug (gimple_statement_d &)): New.
34636 (extern debug (gimple_statement_d *)): New.
34637 * ira-build.c
34638 (debug (ira_allocno_copy &)): New.
34639 (debug (ira_allocno_copy *)): New.
34640 (debug (ira_allocno &)): New.
34641 (debug (ira_allocno *)): New.
34642 * ira-int.h
34643 (extern debug (ira_allocno_copy &)): New.
34644 (extern debug (ira_allocno_copy *)): New.
34645 (extern debug (ira_allocno &)): New.
34646 (extern debug (ira_allocno *)): New.
34647 * ira-lives.c
34648 (debug (live_range &)): New.
34649 (debug (live_range *)): New.
34650 * lra-int.h
34651 (debug (lra_live_range &)): New.
34652 (debug (lra_live_range *)): New.
34653 * lra-lives.c
34654 (debug (lra_live_range &)): New.
34655 (debug (lra_live_range *)): New.
34656 * omega.c
34657 (debug (omega_pb_d &)): New.
34658 (debug (omega_pb_d *)): New.
34659 * omega.h
34660 (extern debug (omega_pb_d &)): New.
34661 (extern debug (omega_pb_d *)): New.
34662 * print-rtl.c
34663 (debug (const rtx_def &)): New.
34664 (debug (const rtx_def *)): New.
34665 * print-tree.c
34666 (debug_tree (tree): Move within file.
34667 (debug_raw (const tree_node &)): New.
34668 (debug_raw (const tree_node *)): New.
34669 (dump_tree_via_hooks (const tree_node *, int)): New.
34670 (debug (const tree_node &)): New.
34671 (debug (const tree_node *)): New.
34672 (debug_verbose (const tree_node &)): New.
34673 (debug_verbose (const tree_node *)): New.
34674 (debug_head (const tree_node &)): New.
34675 (debug_head (const tree_node *)): New.
34676 (debug_body (const tree_node &)): New.
34677 (debug_body (const tree_node *)): New.
34678 (debug_vec_tree (tree): Move and reimplement in terms of dump.
34679 (debug (vec<tree, va_gc> &)): New.
34680 (debug (vec<tree, va_gc> *)): New.
34681 * rtl.h
34682 (extern debug (const rtx_def &)): New.
34683 (extern debug (const rtx_def *)): New.
34684 * sbitmap.c
34685 (debug_raw (simple_bitmap_def &)): New.
34686 (debug_raw (simple_bitmap_def *)): New.
34687 (debug (simple_bitmap_def &)): New.
34688 (debug (simple_bitmap_def *)): New.
34689 * sbitmap.h
34690 (extern debug (simple_bitmap_def &)): New.
34691 (extern debug (simple_bitmap_def *)): New.
34692 (extern debug_raw (simple_bitmap_def &)): New.
34693 (extern debug_raw (simple_bitmap_def *)): New.
34694 * sel-sched-dump.c
34695 (debug (vinsn_def &)): New.
34696 (debug (vinsn_def *)): New.
34697 (debug_verbose (vinsn_def &)): New.
34698 (debug_verbose (vinsn_def *)): New.
34699 (debug (expr_def &)): New.
34700 (debug (expr_def *)): New.
34701 (debug_verbose (expr_def &)): New.
34702 (debug_verbose (expr_def *)): New.
34703 (debug (vec<rtx> &)): New.
34704 (debug (vec<rtx> *)): New.
34705 * sel-sched-dump.h
34706 (extern debug (vinsn_def &)): New.
34707 (extern debug (vinsn_def *)): New.
34708 (extern debug_verbose (vinsn_def &)): New.
34709 (extern debug_verbose (vinsn_def *)): New.
34710 (extern debug (expr_def &)): New.
34711 (extern debug (expr_def *)): New.
34712 (extern debug_verbose (expr_def &)): New.
34713 (extern debug_verbose (expr_def *)): New.
34714 (extern debug (vec<rtx> &)): New.
34715 (extern debug (vec<rtx> *)): New.
34716 * sel-sched-ir.h
34717 (_list_iter_cond_expr): Make inline instead of static.
34718 * sreal.c
34719 (debug (sreal &)): New.
34720 (debug (sreal *)): New.
34721 * sreal.h
34722 (extern debug (sreal &)): New.
34723 (extern debug (sreal *)): New.
34724 * tree.h
34725 (extern debug_raw (const tree_node &)): New.
34726 (extern debug_raw (const tree_node *)): New.
34727 (extern debug (const tree_node &)): New.
34728 (extern debug (const tree_node *)): New.
34729 (extern debug_verbose (const tree_node &)): New.
34730 (extern debug_verbose (const tree_node *)): New.
34731 (extern debug_head (const tree_node &)): New.
34732 (extern debug_head (const tree_node *)): New.
34733 (extern debug_body (const tree_node &)): New.
34734 (extern debug_body (const tree_node *)): New.
34735 (extern debug (vec<tree, va_gc> &)): New.
34736 (extern debug (vec<tree, va_gc> *)): New.
34737 * tree-cfg.c
34738 (debug (struct loop &)): New.
34739 (debug (struct loop *)): New.
34740 (debug_verbose (struct loop &)): New.
34741 (debug_verbose (struct loop *)): New.
34742 * tree-dump.c: Add header dependence.
34743 * tree-flow.h
34744 (extern debug (struct loop &)): New.
34745 (extern debug (struct loop *)): New.
34746 (extern debug_verbose (struct loop &)): New.
34747 (extern debug_verbose (struct loop *)): New.
34748 * tree-data-ref.c
34749 (debug (data_reference &)): New.
34750 (debug (data_reference *)): New.
34751 (debug (vec<data_reference_p> &)): New.
34752 (debug (vec<data_reference_p> *)): New.
34753 (debug (vec<ddr_p> &)): New.
34754 (debug (vec<ddr_p> *)): New.
34755 * tree-data-ref.h
34756 (extern debug (data_reference &)): New.
34757 (extern debug (data_reference *)): New.
34758 (extern debug (vec<data_reference_p> &)): New.
34759 (extern debug (vec<data_reference_p> *)): New.
34760 (extern debug (vec<ddr_p> &)): New.
34761 (extern debug (vec<ddr_p> *)): New.
34762 * tree-ssa-alias.c
34763 (debug (pt_solution &)): New.
34764 (debug (pt_solution *)): New.
34765 * tree-ssa-alias.h
34766 (extern debug (pt_solution &)): New.
34767 (extern debug (pt_solution *)): New.
34768 * tree-ssa-alias.c
34769 (debug (_var_map &)): New.
34770 (debug (_var_map *)): New.
34771 (debug (tree_live_info_d &)): New.
34772 (debug (tree_live_info_d *)): New.
34773 * tree-ssa-alias.h
34774 (extern debug (_var_map &)): New.
34775 (extern debug (_var_map *)): New.
34776 (extern debug (tree_live_info_d &)): New.
34777 (extern debug (tree_live_info_d *)): New.
34778
34779 2013-03-28 Jan Hubicka <jh@suse.cz>
34780
34781 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
34782
34783 2013-03-28 Ian Bolton <ian.bolton@arm.com>
34784
34785 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
34786 record only when desired or required.
34787
34788 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
34789
34790 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
34791 *vec_extractv2di_1_rex64. Use x64 isa attribute.
34792
34793 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34794
34795 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
34796 (*andsi3_compare0_uxtw): New pattern.
34797 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
34798 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
34799
34800 2013-03-28 Jan Hubicka <jh@suse.cz>
34801
34802 * data-streamer-in.c (streamer_read_gcov_count): New function.
34803 * gimple-streamer-out.c: Include value-prof.h.
34804 (output_gimple_stmt): Output histogram.
34805 (output_bb): Use streamer_write_gcov_count.
34806 * value-prof.c: Include data-streamer.h
34807 (dump_histogram_value): Add HIST_TYPE_MAX.
34808 (stream_out_histogram_value): New function.
34809 (stream_in_histogram_value): New function.
34810 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
34811 (stream_out_histogram_value, stream_in_histogram_value): Declare.
34812 * data-streamer-out.c (streamer_write_gcov_count): New function.
34813 (streamer_write_gcov_count_stream): New function.
34814 * lto-cgraph.c (lto_output_edge): Update counter streaming.
34815 (lto_output_node): Likewise.
34816 (input_node, input_edge): Likewise.
34817 * lto-streamer-out.c (output_cfg): Update streaming.
34818 * lto-streamer-in.c (input_cfg): Likewise.
34819 * data-streamer.h (streamer_write_gcov_count,
34820 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
34821 * gimple-streamer-in.c: Include value-prof.h
34822 (input_gimple_stmt): Input histograms.
34823 (input_bb): Update profile streaming.
34824
34825 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
34826
34827 * genmodes.c (emit_max_int): New function.
34828 (emit_insn_modes_h): Added call to emit_max_function.
34829 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
34830 Added doc.
34831 * machmode.def: Fixed comment.
34832
34833 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
34834
34835 * combine.c (try_combine): Removed useless assert.
34836 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
34837
34838 2013-03-28 Marek Polacek <polacek@redhat.com>
34839 Richard Biener <rguenther@suse.de>
34840
34841 PR tree-optimization/56695
34842 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
34843 build signed result of a vector comparison.
34844 * tree-cfg.c (verify_gimple_comparison): Check that a result
34845 of a vector comparison has signed type.
34846
34847 2013-03-28 Richard Biener <rguenther@suse.de>
34848
34849 PR tree-optimization/37021
34850 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
34851 do not restrict gaps between groups.
34852 * tree-vect-stmts.c (vectorizable_load): Properly account for
34853 a gap between groups.
34854
34855 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
34856
34857 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
34858 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
34859 is not enabled.
34860
34861 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
34862
34863 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
34864 * doc/extend.texi (Named Address Spaces): Ditto.
34865 (Variable Attributes): Ditto.
34866
34867 2013-03-27 Kai Tietz <ktietz@redhat.com>
34868
34869 * config.build: Add support for cygwin x64 target.
34870 * config.gcc: Likewise.
34871 * config.host: Likewise.
34872 * configure.ac: Likewise
34873 * configure: Regenerated.
34874
34875 2013-03-27 Kai Tietz <ktietz@redhat.com>
34876
34877 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
34878 * config/i386/t-cygwin-w64: New file.
34879 * config/i386/cygwin-w64.h: New file.
34880 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
34881 and add support for x64-cygwin target.
34882 (CPP_SPEC): Likewise.
34883 (CXX_WRAP_SPEC_LIST): Undefine before define.
34884 (LIBGCJ_SONAME): Use 15 as version.
34885
34886 2013-03-27 Richard Biener <rguenther@suse.de>
34887
34888 PR tree-optimization/56716
34889 * tree-ssa-structalias.c (perform_var_substitution): Adjust
34890 dumping for ref nodes.
34891
34892 2013-03-27 Martin Jambor <mjambor@suse.cz>
34893
34894 PR tree-optimization/55334
34895 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
34896 restricted pointers to arrays.
34897
34898 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
34899
34900 * Makefile.in (.SUFFIXES): Add .cc.
34901 (.c.o): Apply same recipe for implicit rule .cc.o.
34902
34903 2013-03-27 Richard Biener <rguenther@suse.de>
34904
34905 PR tree-optimization/37021
34906 * tree-vect-data-refs.c (vect_check_strided_load): Allow
34907 REALPART/IMAGPART_EXPRs around the supported refs.
34908 * tree-ssa-structalias.c (find_func_aliases): Assume that
34909 floating-point values are not used to transfer pointers.
34910
34911 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
34912
34913 * target.def (TARGET_HAS_IFUNC_P): New target hook.
34914 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
34915 * doc/tm.texi: Regenerate.
34916 * targhooks.h (default_has_ifunc_p): New.
34917 * targhooks.c (default_has_ifunc_p): Ditto.
34918 * config/linux-protos.h: New file.
34919 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
34920 hook for linux which disables support of indirect functions in android.
34921 * config/linux-android.c: New file.
34922 * config/t-linux-android.c: Ditto.
34923 * config.gcc: Added new object file linux-android.o.
34924 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
34925 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
34926 * varasm.c (do_assemble_alias): Likewise.
34927 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
34928 doesn't support indirect functions.
34929 * configure: Regenerate.
34930
34931 2013-03-27 Bin Cheng <bin.cheng@arm.com>
34932
34933 PR target/56102
34934 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
34935 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
34936 mult-word mode.
34937
34938 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34939
34940 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
34941
34942 2013-03-27 Terry Guo <terry.guo@arm.com>
34943
34944 * config/arm/arm-cores.def: Added core cortex-r7.
34945 * config/arm/arm-tune.md: Regenerated.
34946 * config/arm/arm-tables.opt: Regenerated.
34947 * doc/invoke.texi: Added entry for core cortex-r7.
34948
34949 2013-03-27 Walter Lee <walt@tilera.com>
34950
34951 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
34952 double-decrement of next_scratch_regno.
34953
34954 2013-03-27 Walter Lee <walt@tilera.com>
34955
34956 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
34957 input operands.
34958 (insn_v1mulus): Ditto.
34959 (insn_v2muls): Ditto.
34960
34961 2013-03-27 Walter Lee <walt@tilera.com>
34962
34963 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
34964 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
34965
34966 2013-03-27 Walter Lee <walt@tilera.com>
34967
34968 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
34969 (*sibcall_value): Ditto.
34970
34971 2013-03-27 Walter Lee <walt@tilera.com>
34972
34973 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
34974 (insn_mnz_v8qi): ... this ...
34975 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
34976 vector equivalent.
34977 (insn_v<n>mnz): Replaced by ...
34978 (insn_v1mnz): ... this ...
34979 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
34980 equivalent.
34981 (insn_mz_<mode>): Replaced by ...
34982 (insn_mz_v8qi): ... this ...
34983 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
34984 vector equivalent.
34985 (insn_v<n>mz): Replaced by ...
34986 (insn_v1mz): ... this ...
34987 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
34988 equivalent.
34989
34990 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
34991
34992 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
34993
34994 2013-03-26 Roland McGrath <mcgrathr@google.com>
34995
34996 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
34997 than fprintf with a non-constant, non-format string.
34998
34999 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
35000
35001 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
35002 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
35003 operand 0 predicate.
35004 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
35005 attribute. Use general_x64nomem_operand as operand 1 predicate.
35006 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
35007 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
35008 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
35009 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
35010 (mov<mode>_insv_1): Remove expander. Merge insn with
35011 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
35012 Use general_x64nomem_operand as operand 1 predicate.
35013 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
35014 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
35015 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
35016 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
35017 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
35018 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
35019 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
35020 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
35021 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
35022 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
35023 (general_x64nomem_operand): Ditto.
35024
35025 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
35026
35027 * config/rtems.opt: Add -pthread option.
35028
35029 2013-03-26 Richard Biener <rguenther@suse.de>
35030
35031 * alias.c (find_base_term): Avoid redundant and not used recursion.
35032 (base_alias_check): Get the initial base term from the caller.
35033 (true_dependence_1): Compute and pass base terms to base_alias_check.
35034 (write_dependence_p): Likewise.
35035 (may_alias_p): Likewise.
35036
35037 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
35038
35039 * config/aarch64/aarch64.c (aarch64_classify_address): Support
35040 PC-relative load in SI modes and above only.
35041
35042 2013-03-26 Xinyu Qi <xyqi@marvell.com>
35043
35044 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
35045 * config/arm/iwmmxt.md (WCGR0): Update.
35046 (WCGR1, WCGR2, WCGR3): Likewise.
35047
35048 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
35049
35050 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
35051 Use x64 and nox64 isa attributes.
35052
35053 2013-03-26 Richard Biener <rguenther@suse.de>
35054
35055 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
35056 alignment computations and rely on get_object_alignment_1
35057 for the !TYPE_P case.
35058 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
35059
35060 2013-03-26 Walter Lee <walt@tilera.com>
35061
35062 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
35063 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
35064
35065 2013-03-25 Jeff Law <law@redhat.com>
35066
35067 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
35068 check for INTEGRAL_TYPE_P that was missing due to checking in
35069 wrong version of prior patch.
35070
35071 2013-03-25 Walter Lee <walt@tilera.com>
35072
35073 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
35074 TILEGX_INSN_SHUFFLEBYTES1.
35075 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
35076 shufflebytes1.
35077 (tilegx_builtins): Ditto.
35078 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
35079
35080 2013-03-25 Walter Lee <walt@tilera.com>
35081
35082 * config/tilegx/tilegx.md (floatsisf2): New pattern.
35083 (floatunssisf2): New pattern.
35084 (floatsidf2): New pattern.
35085 (floatunssidf2): New pattern.
35086
35087 2013-03-25 Walter Lee <walt@tilera.com>
35088
35089 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
35090 tests for constraint J, K, N, P.
35091
35092 2013-03-25 Walter Lee <walt@tilera.com>
35093
35094 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
35095 Use indirect/pcrel encoding.
35096 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
35097 Ditto.
35098
35099 2013-03-25 Steve Ellcey <sellcey@mips.com>
35100
35101 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
35102 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
35103 * config/mips/mips.c (mips_option_override): Set IMADD default.
35104 * config/mips/mips.h (PTF_AVOID_IMADD): New.
35105 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
35106 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
35107 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
35108 * doc/invoke.texi (-mimadd/-mno-imadd): New.
35109
35110 2013-03-25 Jeff Law <law@redhat.com>
35111
35112 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
35113 slightly to avoid creating and folding useless trees. Simplify
35114 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
35115
35116 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
35117
35118 * config/i386/i386.md (*zero_extendsidi2): Merge with
35119 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
35120 * config/i386/predicates.md (x86_64_zext_operand): Rename from
35121 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
35122 targets. Clarify comment.
35123
35124 2013-03-25 Martin Jambor <mjambor@suse.cz>
35125
35126 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
35127 pass-through jump functions differently.
35128 (ipa_read_jump_function): Likewise. Also use setter functions to set
35129 up jump functions.
35130
35131 2013-03-25 Martin Jambor <mjambor@suse.cz>
35132
35133 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
35134 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
35135 process it.
35136 (ipa_get_indirect_edge_target): New function.
35137 (devirtualization_time_bonus): New parameter known_aggs, pass it to
35138 ipa_get_indirect_edge_target. Update all callers.
35139 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
35140 ipa_get_indirect_edge_target_1 instead of calling
35141 ipa_get_indirect_edge_target.
35142 (create_specialized_node): Pass aggvlas to
35143 ipcp_discover_new_direct_edges.
35144
35145 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35146
35147 * config/arm/arm.md (f_sels, f_seld): New types.
35148 (*cmov<mode>): New pattern.
35149 * config/arm/predicates.md (arm_vsel_comparison_operator): New
35150 predicate.
35151
35152 2013-03-25 Kai Tietz <ktietz@redhat.com>
35153
35154 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
35155 POSIX-printf for mingw-hosted builds.
35156
35157 2013-03-25 Richard Biener <rguenther@suse.de>
35158
35159 PR middle-end/56694
35160 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
35161 must-not-throw stmt location.
35162
35163 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35164
35165 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
35166 Emit load-acquire versions when acq is true.
35167 (arm_emit_store_exclusive): Add rel parameter.
35168 Emit store-release versions when rel is true.
35169 (arm_split_compare_and_swap): Use acquire-release instructions
35170 instead.
35171 of barriers when appropriate.
35172 (arm_split_atomic_op): Likewise.
35173 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
35174 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
35175 (VUNSPEC_SLX): Likewise.
35176 (VUNSPEC_LDA): Likewise.
35177 (VUNSPEC_STL): Likewise.
35178 * config/arm/sync.md (atomic_load<mode>): New pattern.
35179 (atomic_store<mode>): Likewise.
35180 (arm_load_acquire_exclusive<mode>): Likewise.
35181 (arm_load_acquire_exclusivesi): Likewise.
35182 (arm_load_acquire_exclusivedi): Likewise.
35183 (arm_store_release_exclusive<mode>): Likewise.
35184
35185 2013-03-25 Catherine Moore <clm@codesourcery.com>
35186
35187 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
35188 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
35189 * config/mip/predicates.md (lwsp_swsp_operand,
35190 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
35191 sb16_operand, db4_operand, db7_operand, ib3_operand,
35192 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
35193 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
35194 andi16_operand): New predicates.
35195 * config/mips/mips.md (compression): New attribute.
35196 (enabled): New attribute.
35197 (length): Consider compression in computing length.
35198 (shift_compression): New code attribute.
35199 (*add<mode>3): New operands. Record compression.
35200 (sub<mode>3): Likewise.
35201 (one_cmpl<mode>2): Likewise.
35202 (*and<mode>3): Likewise.
35203 (*ior<mode>3): Likewise.
35204 (unnamed pattern for xor): Likewise.
35205 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
35206 (*<optab><mode>3): Likewise.
35207 (*mov<mode>_internal: Likewise.
35208 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
35209 (mips_unsigned_immediate_p): New.
35210 (umips_lwsp_swsp_address_p): New.
35211 (m16_based_address_p): New.
35212 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
35213 (mips_unsigned_immediate_p): New prototype.
35214 (lwsp_swsp_address_p): New prototype.
35215 (m16_based_address_p): New prototype.
35216 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
35217 (mips_signed_immediate_p): New function.
35218 (m16_based_address_p): New function.
35219 (lwsp_swsp_address_p): New function.
35220 (mips_print_operand_punctuation): Recognize short delay slot insns
35221 for microMIPS.add<mode>3"
35222
35223 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35224
35225 PR target/56720
35226 * config/arm/iterators.md (v_cmp_result): New mode attribute.
35227 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
35228
35229 2013-03-25 Richard Biener <rguenther@suse.de>
35230
35231 PR tree-optimization/56689
35232 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
35233 any edge.
35234
35235 2013-03-25 Richard Biener <rguenther@suse.de>
35236
35237 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
35238 of bitmap.
35239 (memory_references): Likewise.
35240 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
35241 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
35242 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
35243 (gather_mem_refs_in_loops): Fold into ...
35244 (analyze_memory_references): ... this. Move initialization
35245 to tree_ssa_lim_initialize.
35246 (fill_always_executed_in): Rename to ...
35247 (fill_always_executed_in_1): ... this.
35248 (fill_always_executed_in): Move contains_call computation to
35249 this new function from ...
35250 (tree_ssa_lim_initialize): ... here.
35251 (tree_ssa_lim): Call fill_always_executed_in.
35252
35253 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
35254
35255 * postreload.c (reload_combine): Fix code detecting returns.
35256
35257 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
35258
35259 * function.c (emit_use_return_register_into_block): On cc0 targets,
35260 do not emit the sequence between cc0 setter and user.
35261
35262 2013-03-25 Kai Tietz <ktietz@redhat.com>
35263
35264 * config/i386/predicates.md (local_symbolic_operand): Interpret
35265 dll-imported symbols as none-local.
35266
35267 2013-03-25 Richard Biener <rguenther@suse.de>
35268
35269 * tree-ssa-loop-im.c (struct depend): Remove.
35270 (struct lim_aux_data): Make depends a vec of gimples.
35271 (free_lim_aux_data): Adjust.
35272 (add_dependency): Likewise.
35273 (set_level): Likewise.
35274
35275 2013-03-25 Richard Biener <rguenther@suse.de>
35276
35277 PR middle-end/56434
35278 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
35279 the pointer returned by calls with ECF_MALLOC set.
35280
35281 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
35282
35283 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
35284
35285 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
35286
35287 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
35288 using MMXMODE mode iterator.
35289 (*move<mode>_internal): Merge with *movv2sf_internal and
35290 *movv2sf_internal_rex64 using MMXMODE mode iterator.
35291
35292 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
35293
35294 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
35295 (record_last_mem_set_info): Likewise.
35296
35297 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
35298 of XNEWVEC followed by memset.
35299 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
35300
35301 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
35302
35303 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
35304 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
35305 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
35306 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
35307 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
35308 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
35309 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
35310 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
35311 BARRIER_P instead of GET_CODE.
35312
35313 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
35314
35315 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
35316 inaccuracy in the probing code.
35317
35318 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
35319 (ctrapdi4): Likewise.
35320
35321 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
35322
35323 * calls.c (expand_call): Add missing guard to code handling return
35324 of non-BLKmode structures in MSB.
35325 * function.c (expand_function_end): Likewise.
35326
35327 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
35328
35329 * combine.c (try_combine): Adjust comment. Do not add the set of
35330 insn #0 if the destination indirectly is set or dies in insn #2.
35331 Tidy up code to distribute a new note.
35332
35333 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
35334
35335 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
35336 also for alternatives 16 and 17.
35337
35338 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
35339
35340 * config/i386/sse.md (*mov<mode>_internal): Merge with
35341 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
35342 Emit insn template depending on type attribute. Use
35343 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
35344 movd instead of movq mnemonic for interunit moves. Rewrite mode
35345 attribute calculation. Remove unit attribute calculation.
35346 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
35347 Set prefix_data16 attribute for DImode ssemov types.
35348 Use Ym instead of y for SSE-MMX conversion alternatives.
35349 Reorder operand constraints.
35350
35351 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
35352
35353 * df.h (df_insn_delete): Adjust prototype.
35354 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
35355 and let it decide whether mark the basic block dirty.
35356 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
35357 * df-scan.c (df_insn_info_delete): New helper function, split
35358 off from df_insn_delete.
35359 (df_scan_free_bb_info): Use it.
35360 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
35361 Likewise.
35362 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
35363 that the insn is actually an insn and it has a non-NULL basic block.
35364 Do not mark basic block dirty if only deleting a DEBUG_INSN.
35365
35366 2013-03-22 Richard Biener <rguenther@suse.de>
35367
35368 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
35369 dep_ref members.
35370 (mem_ref_alloc): Do not allocate them.
35371 (refs_independent_p): Do not query or maintain a cache.
35372
35373 2013-03-22 Richard Biener <rguenther@suse.de>
35374
35375 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
35376 (gather_mem_refs_in_loops): Do not compute it.
35377 (analyze_memory_references): Do not allocate it.
35378 (tree_ssa_lim_finalize): Do not free it.
35379 (for_all_locs_in_loop): Do not query all_refs_in_loop.
35380
35381 2013-03-22 Richard Biener <rguenther@suse.de>
35382
35383 * is-a.h (as_a): Use gcc_checking_assert.
35384
35385 2013-03-22 Ian Bolton <ian.bolton@arm.com>
35386
35387 * config/aarch64/aarch64.c (aarch64_print_operand): New
35388 format specifier for printing a constant in hex.
35389 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
35390 format specifier for printing second operand.
35391
35392 2013-03-22 Richard Biener <rguenther@suse.de>
35393
35394 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
35395 bitmaps.
35396 (gather_mem_refs_in_loops): Perform store accumulation here.
35397 (create_vop_ref_mapping_loop): Remove.
35398 (create_vop_ref_mapping): Likewise.
35399 (analyze_memory_references): Initialize refs_stored_in_loop.
35400 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
35401 (record_indep_loop): Remove.
35402 (record_dep_loop): New function.
35403 (ref_indep_loop_p_1): Adjust to only walk over references
35404 in the loop, not its subloops.
35405 (ref_indep_loop_p): Rename to ...
35406 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
35407 maintaining a more fine-grained cache.
35408 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
35409 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
35410
35411 2013-03-22 Richard Biener <rguenther@suse.de>
35412
35413 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
35414 (struct mem_ref): Make accesses_in_loop a vec of a vec of
35415 aggregate mem_ref_loc.
35416 (free_mem_ref_locs): Inline into ...
35417 (memref_free): ... this and adjust.
35418 (mem_ref_alloc): Adjust.
35419 (mem_ref_locs_alloc): Remove.
35420 (record_mem_ref_loc): Adjust.
35421 (get_all_locs_in_loop): Rewrite into ...
35422 (for_all_locs_in_loop): ... this iterator.
35423 (rewrite_mem_ref_loc): New functor.
35424 (rewrite_mem_refs): Use for_all_locs_in_loop.
35425 (sm_set_flag_if_changed): New functor.
35426 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
35427 (ref_always_accessed): New functor.
35428 (ref_always_accessed_p): Use for_all_locs_in_loop.
35429
35430 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
35431
35432 * tree-pass.h (PROP_gimple_lvec): New.
35433 * passes.c (dump_properties): Handle PROP_gimple_lvec.
35434 (init_optimization_passes): Move pass_lower_vector.
35435 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
35436 PROP_gimple_lvec.
35437 (pass_lower_vector): Provide PROP_gimple_lvec.
35438 (pass_lower_vector_ssa): Likewise.
35439 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
35440
35441 2013-03-21 Mark Wielaard <mjw@redhat.com>
35442
35443 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
35444
35445 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
35446
35447 * config/i386/i386.md (*movdi_internal): Disparage slightly
35448 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
35449 conversion alternatives.
35450
35451 2013-03-21 Jakub Jelinek <jakub@redhat.com>
35452
35453 PR middle-end/48087
35454 * diagnostic.def (DK_WERROR): New kind.
35455 * diagnostic.h (werrorcount): Define.
35456 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
35457 promoted to DK_ERROR, increment DK_WERROR counter instead of
35458 DK_ERROR counter.
35459 * toplev.c (toplev_main): Call print_ignored_options even if
35460 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
35461 even if just werrorcount is non-zero.
35462
35463 PR debug/55608
35464 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
35465 on failure.
35466 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
35467 (string_cst_pool_decl): New function.
35468 (optimize_one_addr_into_implicit_ptr): New function.
35469 (resolve_addr_in_expr): Optimize DWARF location expression
35470 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
35471 which doesn't live in memory, but has DW_AT_location or
35472 DW_AT_const_value, or refers to a string literal, into
35473 DW_OP_GNU_implicit_pointer.
35474 (optimize_location_into_implicit_ptr): New function.
35475 (resolve_addr): If removing DW_AT_location of a variable because
35476 it was DW_OP_addr of address of the variable, but the variable doesn't
35477 live in memory, try to emit const value attribute for the initializer.
35478
35479 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
35480
35481 * tree.h (VECTOR_TYPE_P): New macro.
35482 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
35483 TYPE_MODE): Use it.
35484 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
35485 VEC_COND_EXPR cannot be lvalues.
35486 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
35487
35488 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
35489
35490 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
35491 Restrict the transformation to equal modes.
35492
35493 2013-03-21 Richard Biener <rguenther@suse.de>
35494
35495 PR tree-optimization/39326
35496 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
35497 (MEM_ANALYZABLE): Adjust.
35498 (record_mem_ref_loc): Move bitmap ops ...
35499 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
35500 unanalyzable refs, do not record locations for it.
35501 (analyze_memory_references): Allocate ref zero as shared
35502 unanalyzable ref.
35503 (refs_independent_p): Do not test for unanalyzed mems here.
35504 (ref_indep_loop_p_1): Special-case disambiguation against
35505 the unanalyzed ref.
35506 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
35507
35508 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
35509
35510 * config/arm/arm-protos.h (tune_params): Add
35511 prefer_neon_for_64bits field.
35512 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
35513 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
35514 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
35515 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
35516 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
35517 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
35518 (arm_option_override): Handle -mneon-for-64bits new option.
35519 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
35520 (prefer_neon_for_64bits): Declare new variable.
35521 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
35522 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
35523 (arch_enabled): Handle new arch types. Remove support for onlya8
35524 and nota8.
35525 (one_cmpldi2): Use new arch names.
35526 (zero_extend<mode>di2, extend<mode>di2): Ditto.
35527 * config/arm/arm.opt (mneon-for-64bits): Add option.
35528 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
35529 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
35530 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
35531 of onlya8.
35532 * doc/invoke.texi (-mneon-for-64bits): Document.
35533
35534 2013-03-21 Richard Biener <rguenther@suse.de>
35535
35536 PR tree-optimization/39326
35537 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
35538 (sort_bbs_in_loop_postorder_cmp): New function.
35539 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
35540
35541 2013-03-21 Richard Biener <rguenther@suse.de>
35542
35543 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
35544 (vect_insert_into_interleaving_chain): Likewise.
35545 (vect_drs_dependent_in_basic_block): Inline ...
35546 (vect_slp_analyze_data_ref_dependence): ... here. New function,
35547 split out from ...
35548 (vect_analyze_data_ref_dependence): ... here. Simplify.
35549 (vect_check_interleaving): Simplify.
35550 (vect_analyze_data_ref_dependences): Likewise. Split out ...
35551 (vect_slp_analyze_data_ref_dependences): ... this new function.
35552 (dr_group_sort_cmp): New function.
35553 (vect_analyze_data_ref_accesses): Compute data-reference groups
35554 here instead of in vect_analyze_data_ref_dependence. Use
35555 a more efficient algorithm.
35556 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
35557 vect_slp_analyze_data_ref_dependences. Call
35558 vect_analyze_data_ref_accesses earlier.
35559 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
35560 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
35561 (vect_slp_analyze_data_ref_dependences): New prototype.
35562
35563 2013-03-21 Richard Biener <rguenther@suse.de>
35564
35565 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
35566 ref is stored in the loop.
35567 (find_refs_for_sm): Walk only over all stores.
35568 (store_motion_loop): Allocate from lim_bitmap_obstack.
35569 (store_motion): Likewise.
35570
35571 2013-03-21 Richard Biener <rguenther@suse.de>
35572
35573 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
35574 Update virtual SSA form.
35575
35576 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35577
35578 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
35579 * configure: Regenerate.
35580 * config.in: Regenerate.
35581 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
35582 if !HAVE_LD_EH_FRAME_CIEV3.
35583
35584 2013-03-21 Richard Biener <rguenther@suse.de>
35585
35586 * tree-cfg.c (verify_expr_no_block): New function.
35587 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
35588 nor DECL_VALUE_EXPR have locations with associated blocks.
35589 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
35590 (clear_unused_block_pointer): Remove code dealing with
35591 blocks in DECL_DEBUG_EXPR locations.
35592
35593 2013-03-21 Richard Biener <rguenther@suse.de>
35594
35595 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
35596 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
35597 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
35598 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
35599 instead of DECL_DEBUG_EXPR_IS_FROM.
35600 * gimplify.c (gimplify_modify_expr): Likewise.
35601 * tree-cfg.c (verify_expr_location_1): Likewise.
35602 * tree-complex.c (create_one_component_var): Likewise.
35603 * tree-sra.c (create_access_replacement): Likewise.
35604 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
35605 (clear_unused_block_pointer): Likewise.
35606 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
35607 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
35608 * var-tracking.c (var_debug_decl): Likewise.
35609 (track_expr_p): Likewise.
35610 * tree-inline.c (add_local_variables): Likewise. Set
35611 DECL_HAS_DEBUG_EXPR_P after copying it.
35612 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
35613 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
35614
35615 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
35616
35617 PR bootstrap/56656
35618 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
35619 * configure: Regenerate.
35620 * config.in: Regenerate.
35621 * config/i386/i386.md (*movdf_internal): Use
35622 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
35623 movd instead of movq mnemonic for interunit moves.
35624 (*movdi_internal): Ditto.
35625
35626 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
35627
35628 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
35629 (abd<mode>_3): New pattern.
35630 (aba<mode>_3): New pattern.
35631 (fabd<mode>_3): New pattern.
35632
35633 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
35634
35635 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
35636 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
35637 occurrence of REGISTER_PREFIX as its empty string.
35638
35639 2013-03-20 Jeff Law <law@redhat.com>
35640
35641 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
35642 addititional equivalences for equality comparisons between an SSA_NAME
35643 and a constant where the SSA_NAME was set from a widening conversion.
35644
35645 2013-03-20 Walter Lee <walt@tilera.com>
35646
35647 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
35648
35649 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
35650
35651 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
35652 depending on type attribute.
35653 (*movti_internal): Ditto.
35654 (*movtf_internal): Ditto.
35655 (*movxf_internal): Ditto.
35656 (*movdf_internal): Ditto.
35657 (*movsf_internal): Ditto.
35658
35659 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
35660
35661 * config/i386/i386.md (*movti_internal): Set prefix attribute to
35662 maybe_vex for sselog1 and ssemov types.
35663 (*movdi_internal): Reorder operand constraints.
35664 (*movsi_internal): Ditto. Set prefix attribute to
35665 maybe_vex for sselog1 and ssemov types.
35666 (*movtf_internal): Set prefix attribute to maybe_vex
35667 for sselog1 and ssemov types.
35668 (*movdf_internal): Ditto. Set prefix_data16 attribute for
35669 DImode ssemov types. Reorder operand constraints.
35670 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
35671 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
35672 attribute for SImode ssemov types. Reorder operand constraints.
35673
35674 2013-03-20 Martin Jambor <mjambor@suse.cz>
35675
35676 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
35677 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
35678
35679 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
35680
35681 * config/rs6000/predicates.md (indexed_address, update_address_mem
35682 update_indexed_address_mem): New predicates.
35683 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
35684 attribute for load/store instructions.
35685 * config/rs6000/dfp.md (movsd_store): Likewise.
35686 (movsd_load): Likewise.
35687 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
35688 (unnamed HI->DI extend define_insn): Likewise.
35689 (unnamed SI->DI extend define_insn): Likewise.
35690 (unnamed QI->SI extend define_insn): Likewise.
35691 (unnamed QI->HI extend define_insn): Likewise.
35692 (unnamed HI->SI extend define_insn): Likewise.
35693 (unnamed HI->SI extend define_insn): Likewise.
35694 (extendsfdf2_fpr): Likewise.
35695 (movsi_internal1): Likewise.
35696 (movsi_internal1_single): Likewise.
35697 (movhi_internal): Likewise.
35698 (movqi_internal): Likewise.
35699 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
35700 attribute for load/store instructions.
35701 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
35702 instructions.
35703 (mov<mode>_softfloat): Likewise.
35704 (mov<mode>_hardfloat32): Likewise.
35705 (mov<mode>_hardfloat64): Likewise.
35706 (mov<mode>_softfloat64): Likewise.
35707 (movdi_internal32): Likewise.
35708 (movdi_internal64): Likewise.
35709 (probe_stack_<mode>): Likewise.
35710
35711 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
35712
35713 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
35714 floating point, and decimal floating point to reload iterator.
35715
35716 * config/rs6000/constraints.md (wl constraint): New constraints to
35717 return FLOAT_REGS if certain options are used to reduce the number
35718 of separate patterns that exist in the file.
35719 (wx constraint): Likewise.
35720 (wz constraint): Likewise.
35721
35722 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
35723 -mdebug=reg, print wg, wl, wx, and wz constraints.
35724 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
35725 Initialize the reload functions for 64-bit binary/decimal floating
35726 point types.
35727 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
35728 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
35729 create the buffer on the stack to overcome not having a 32-bit
35730 load and store.
35731 (rs6000_emit_move): Likewise.
35732 (rs6000_secondary_memory_needed_rtx): Likewise.
35733 (rs6000_alloc_sdmode_stack_slot): Likewise.
35734 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
35735 via xxlxor, just like DFmode 0.0.
35736
35737 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
35738 define as 1 if we are running on a power7 or newer.
35739 (enum r6000_reg_class_enum): Add new constraints.
35740
35741 * config/rs6000/dfp.md (movsd): Delete, combine with binary
35742 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
35743 with other moves by using conditional constraits (wg). Use LFIWZX
35744 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
35745 (movsd splitter): Likewise.
35746 (movsd_hardfloat): Likewise.
35747 (movsd_softfloat): Likewise.
35748
35749 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
35750 binary and decimal floating point moves.
35751 (fmove_ok): New attributes to combine binary and decimal floating
35752 point moves, and to combine power6x (mfpgpr) moves along normal
35753 floating moves.
35754 (real_value_to_target): Likewise.
35755 (f32_lr): Likewise.
35756 (f32_lm): Likewise.
35757 (f32_li): Likewise.
35758 (f32_sr): Likewise.
35759 (f32_sm): Likewise.
35760 (f32_si): Likewise.
35761 (movsf): Combine binary and decimal floating point moves. Combine
35762 power6x (mfpgpr) moves with other moves by using conditional
35763 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
35764 (mov<mode> for SFmode/SDmode); Likewise.
35765 (SFmode/SDmode splitters): Likewise.
35766 (movsf_hardfloat): Likewise.
35767 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
35768 (movsf_softfloat): Likewise.
35769 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
35770
35771 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
35772 wx and wz constraints.
35773
35774 * config/rs6000/constraints.md (wg constraint): New constraint to
35775 return FLOAT_REGS if -mmfpgpr (power6x) was used.
35776
35777 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
35778 constraint.
35779
35780 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
35781 -mdebug=reg, print wg, wl, wx, and wz constraints.
35782 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
35783 Initialize the reload functions for 64-bit binary/decimal floating
35784 point types.
35785 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
35786 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
35787 create the buffer on the stack to overcome not having a 32-bit
35788 load and store.
35789 (rs6000_emit_move): Likewise.
35790 (rs6000_secondary_memory_needed_rtx): Likewise.
35791 (rs6000_alloc_sdmode_stack_slot): Likewise.
35792 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
35793 via xxlxor, just like DFmode 0.0.
35794
35795 * config/rs6000/dfp.md (movdd): Delete, combine with binary
35796 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
35797 with other moves by using conditional constraits (wg). Use LFIWZX
35798 and STFIWX for loading SDmode on power7.
35799 (movdd splitters): Likewise.
35800 (movdd_hardfloat32): Likewise.
35801 (movdd_softfloat32): Likewise.
35802 (movdd_hardfloat64_mfpgpr): Likewise.
35803 (movdd_hardfloat64): Likewise.
35804 (movdd_softfloat64): Likewise.
35805
35806 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
35807 64-bit binary and decimal floating point moves.
35808 (FMOVE64X): Likewise.
35809 (movdf): Combine 64-bit binary and decimal floating point moves.
35810 Combine power6x (mfpgpr) moves with other moves by using
35811 conditional constraits (wg).
35812 (mov<mode> for DFmode/DDmode): Likewise.
35813 (DFmode/DDmode splitters): Likewise.
35814 (movdf_hardfloat32): Likewise.
35815 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
35816 (movdf_softfloat32): Likewise.
35817 (movdf_hardfloat64_mfpgpr): Likewise.
35818 (movdf_hardfloat64): Likewise.
35819 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
35820 (movdf_softfloat64): Likewise.
35821 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
35822 (reload_<mode>_load): Move to later in the file so they aren't in
35823 the middle of the floating point move insns.
35824 (reload_<mode>_store): Likewise.
35825
35826 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
35827 constraint.
35828
35829 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
35830 constraint if -mdebug=reg.
35831 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
35832 Enable using dd reload support if needed.
35833
35834 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
35835 binary and decimal floating point moves in rs6000.md.
35836 (movtd_internal): Likewise.
35837
35838 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
35839 decimal floating point moves.
35840 (movtf): Likewise.
35841 (movtf_internal): Likewise.
35842 (mov<mode>_internal, TDmode/TFmode): Likewise.
35843 (movtf_softfloat): Likewise.
35844 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
35845
35846 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
35847 movdi_internal64, using wg constraint for move direct operations.
35848 (movdi_internal64): Likewise.
35849
35850 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
35851 MODES_TIEABLE_P for selected modes. Print the numerical value of
35852 the various virtual registers. Use GPR/FPR first/last values,
35853 instead of hard coding the register numbers. Print which modes
35854 have reload functions registered.
35855 (rs6000_option_override_internal): If -mdebug=reg, trace the options
35856 settings before/after setting cpu, target and subtarget settings.
35857 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
35858 and for secondary reload failures in rs6000_secondary_reload_inner.
35859 (rs6000_secondary_reload_fail): Likewise.
35860 (rs6000_secondary_reload_inner): Likewise.
35861
35862 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
35863 macros for first/last GPR and FPR registers.
35864 (LAST_GPR_REGNO): Likewise.
35865 (FIRST_FPR_REGNO): Likewise.
35866 (LAST_FPR_REGNO): Likewise.
35867
35868 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
35869 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
35870 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
35871 (vcond<mode><mode>): Likewise.
35872 (vcondu<mode><mode>): Likewise.
35873 (vector_gtu<mode>): Likewise.
35874 (vector_gte<mode>): Likewise.
35875 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
35876 to prevent the compiler from converting DImode operations to TImode.
35877 (ior<mode>3): Likewise.
35878 (and<mode>3): Likewise.
35879 (one_cmpl<mode>2): Likewise.
35880 (nor<mode>3): Likewise.
35881 (andc<mode>3): Likewise.
35882
35883 * config/rs6000/constraints.md (wt constraint): New constraint
35884 that returns VSX_REGS if TImode is allowed in VSX registers.
35885
35886 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
35887 constant under VSX.
35888
35889 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
35890 similar to TImode, but it is restricted to being in the GPRs.
35891
35892 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
35893 TImode to occupy a single VSX register.
35894
35895 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
35896 -mvsx-timode for power7/power8.
35897 (power7 cpu): Likewise.
35898 (power8 cpu): Likewise.
35899
35900 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
35901 sure that TFmode/TDmode take up two registers if they are ever
35902 allowed in the upper VSX registers.
35903 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
35904 registers.
35905 (rs6000_init_hard_regno_mode_ok): Likewise.
35906 (rs6000_debug_reg_global): Add debugging for PTImode and wt
35907 constraint. Print if LRA is turned on.
35908 (rs6000_option_override_internal): Give an error if -mvsx-timode
35909 and VSX is not enabled.
35910 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
35911 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
35912 to reg+offset addressing. Use PTImode when checking offset
35913 addresses for validity.
35914 (reg_offset_addressing_ok_p): Likewise.
35915 (rs6000_legitimate_offset_address_p): Likewise.
35916 (rs6000_legitimize_address): Likewise.
35917 (rs6000_legitimize_reload_address): Likewise.
35918 (rs6000_legitimate_address_p): Likewise.
35919 (rs6000_eliminate_indexed_memrefs): Likewise.
35920 (rs6000_emit_move): Likewise.
35921 (rs6000_secondary_reload): Likewise.
35922 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
35923 reloads to fpr registers to continue to use reg+offset addressing,
35924 but 64-bit reloads to altivec registers need reg+reg addressing.
35925 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
35926 it. Treat LO_SUM like a PLUS operation.
35927 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
35928 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
35929 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
35930 registers to share a register with a smaller sized type, since VSX
35931 puts scalars in the upper 64-bits.
35932 (print_operand): Add support for PTImode.
35933 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
35934 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
35935 registers, but don't have arithmetic support.
35936 (rs6000_memory_move_cost): Add test for VSX.
35937 (rs6000_opt_masks): Add -mvsx-timode.
35938
35939 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
35940 for TImode.
35941 (VSs): Likewise.
35942 (VSr): Use wt constraint for TImode.
35943 (VSv): Drop TImode support.
35944 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
35945 (vsx_movti_64bit): Likewise.
35946 (vsx_movti_32bit): Likewise.
35947 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
35948 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
35949 one '?' on the appropriate output constraint. Do not allow TImode
35950 logical operations on 32-bit systems.
35951 (vsx_ior<mode>3): Likewise.
35952 (vsx_xor<mode>3): Likewise.
35953 (vsx_one_cmpl<mode>2): Likewise.
35954 (vsx_nor<mode>3): Likewise.
35955 (vsx_andc<mode>3): Likewise.
35956 (vsx_concat_<mode>): Likewise.
35957 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
35958
35959 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
35960 OPTION_MASK_VSX_TIMODE.
35961 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
35962 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
35963
35964 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
35965 (TI2 iterator): New iterator for TImode, PTImode.
35966 (wd mode attribute): Add values for vector types.
35967 (movti_string): Replace TI move operations with operations for TImode
35968 and PTImode. Add support for TImode being allowed in VSX registers.
35969 (mov<mode>_string, TImode/PTImode): Likewise.
35970 (movti_ppc64): Likewise.
35971 (mov<mode>_ppc64, TImode/PTImode): Likewise.
35972 (TI mode splitters): Likewise.
35973
35974 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
35975 constraint.
35976
35977 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
35978
35979 PR tree-optimization/56355
35980 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
35981 Also handle integers with undefined overflow.
35982
35983 2013-03-20 Catherine Moore <clm@codesourcery.com>
35984 Maciej W. Rozycki <macro@codesourcery.com>
35985 Tom de Vries <tom@codesourcery.com>
35986 Nathan Sidwell <nathan@codesourcery.com>
35987 Iain Sandoe <iain@codesourcery.com>
35988 Nathan Froyd <froydnj@codesourcery.com>
35989 Chao-ying Fu <fu@mips.com>
35990
35991 * doc/extend.texi: (micromips, nomicromips, nocompression):
35992 Document new function attributes.
35993 * doc/invoke.texi (minterlink-compressed, mmicromips,
35994 m14k, m14ke, m14kec): Document new options.
35995 (minterlink-mips16): Update documentation.
35996 * doc/md.texi (ZC, ZD): Document new constraints.
35997 * configure.ac (gcc_cv_as_micromips): Check if linker
35998 supports the .set micromips directive.
35999 * configure: Regenerate.
36000 * config.in: Regenerate.
36001 * config/mips/mips-tables.opt: Regenerate.
36002 * config/mips/micromips.md: New file.
36003 * constraints.md (ZC, ZD): New constraints.
36004 * config/mips/predicates.md (movep_src_register): New predicate.
36005 (movep_src_operand): New predicate.
36006 (non_volatile_mem_operand): New predicate.
36007 * config/mips/mips.md (multimem): New type.
36008 (length): Differentiate between 17-bit and 18-bit branch offsets.
36009 (MOVEP1, MOVEP2): New mode iterator.
36010 (mov_<load>l): Use ZC constraint.
36011 (mov_<load>r): Likewise.
36012 (mov_<store>l): Likewise.
36013 (mov_<store>r): Likewise.
36014 (*branch_equality<mode>_inverted): Add microMIPS support.
36015 (*branch_equality<mode>): Likewise.
36016 (*jump_absolute): Likewise.
36017 (indirect_jump_<mode>): Likewise.
36018 (tablejump_<mode>): Likewise.
36019 (<optab>_internal): Likewise.
36020 (sibcall_internal): Likewise.
36021 (sibcall_value_internal): Likewise.
36022 (prefetch): Use constraint ZD.
36023 * config/mips/mips.opt (minterlink-compressed): New option.
36024 (minterlink-mips16): Now an alias for minterlink-compressed.
36025 (mmicromips): New option.
36026 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
36027 (compare_and_swap_12): Likewise.
36028 (sync_add<mode>): Likewise.
36029 (sync_<optab>_12): Likewise.
36030 (sync_old_<optab>_12): Likewise.
36031 (sync_new_<optab>_12): Likewise.
36032 (sync_nand_12): Likewise.
36033 (sync_old_nand_12): Likewise.
36034 (sync_new_nand_12): Likewise.
36035 (sync_sub<mode>): Likewise.
36036 (sync_old_add<mode>): Likewise.
36037 (sync_old_sub<mode>): Likewise.
36038 (sync_new_add<mode>): Likewise.
36039 (sync_new_sub<mode>): Likewise.
36040 (sync_<optab><mode>): Likewise.
36041 (sync_old_<optab><mode>): Likewise.
36042 (sync_new_<optab><mode>): Likewise.
36043 (sync_nand<mode>): Likewise.
36044 (sync_old_nand<mode>): Likewise.
36045 (sync_new_nand<mode>): Likewise.
36046 (sync_lock_test_and_set<mode>): Likewise.
36047 (test_and_set_12): Likewise.
36048 (atomic_compare_and_swap<mode>): Likewise.
36049 (atomic_exchange<mode>_llsc): Likewise.
36050 (atomic_fetch_add<mode>_llsc): Likewise.
36051 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
36052 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
36053 (umips_save_restore_pattern_p): Likewise.
36054 (umips_load_store_pair_p): Likewise.
36055 (umips_output_load_store_pair): Likewise.
36056 (umips_movep_target_p): Likewise.
36057 (umips_12bit_offset_address_p): Likewise.
36058 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
36059 (mips_base_mips16): Rename this...
36060 (mips_base_compression_flags): ...to this. Update all uses.
36061 (mips_attribute_table): Add micromips, nomicromips and nocompression.
36062 (mips_mips16_decl_p): Delete.
36063 (mips_nomips16_decl_p): Delete.
36064 (mips_get_compress_on_flags): New function.
36065 (mips_get_compress_off_flags): New function.
36066 (mips_get_compress_mode): New function.
36067 (mips_get_compress_on_name): New function.
36068 (mips_get_compress_off_name): New function.
36069 (mips_insert_attributes): Support multiple compression types.
36070 (mips_merge_decl_attributes): Likewise.
36071 (umips_12bit_offset_address_p): New function.
36072 (mips_start_function_definition): Emit .set micromips directive.
36073 (mips_call_may_need_jalx_p): New function.
36074 (mips_function_ok_for_sibcall): Add microMIPS support.
36075 (mips_print_operand_punctuation): Support short delay slots and
36076 compact jumps.
36077 (umips_swm_mask, umips_swm_encoding): New.
36078 (umips_build_save_restore): New function.
36079 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
36080 (was_mips16_p): Remove.
36081 (old_compression_mode): New.
36082 (mips_set_compression_mode): New function.
36083 (mips_set_current_function): Add microMIPS support.
36084 (mips_option_override): Likewise.
36085 (umips_save_restore_pattern_p): New function.
36086 (umips_output_save_restore): New function.
36087 (umips_load_store_pair_p_1): New function.
36088 (umips_load_store_pair_p): New function.
36089 (umips_output_load_store_pair_1): New function.
36090 (umips_output_load_store_pair): New function.
36091 (umips_movep_target_p) New function.
36092 (mips_prepare_pch_save): Add microMIPS support.
36093 * config/mips/mips.h (TARGET_COMPRESSION): New.
36094 (TARGET_CPU_CPP_BUILTINS): Update macro
36095 to use new compression flags and to support microMIPS.
36096 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
36097 (MIPS_ARCH_FLOAT_SPEC): Likewise.
36098 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
36099 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
36100 (ASM_SPEC): Support mmicromips and mno-micromips.
36101 (M16STORE_REG_P): New macro.
36102 (MIPS_CALL): Support TARGET_MICROMIPS.
36103 (MICROMIPS_J): New macro.
36104 (mips_base_mips16): Rename this...
36105 (mips_base_compression_flags): ...to this.
36106 (UMIPS_12BIT_OFFSET_P): New macro.
36107 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
36108 (MULTILIB_DIRNAMES): Likewise.
36109 2013-03-20 Richard Biener <rguenther@suse.de>
36110
36111 PR tree-optimization/56661
36112 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
36113 the result does not have to be distinct.
36114
36115 2013-03-20 Richard Biener <rguenther@suse.de>
36116
36117 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
36118 remap_gimple_op_r.
36119
36120 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
36121 Steven Bosscher <steven@gcc.gnu.org>
36122
36123 PR rtl-optimization/56605
36124 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
36125
36126 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
36127
36128 PR bootstrap/56656
36129 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
36130 that require movd instead of movq.
36131
36132 2013-03-20 Richard Biener <rguenther@suse.de>
36133
36134 * tree-ssa-structalias.c (struct variable_info): Add pointer
36135 to the first field of an aggregate with sub-vars. Make
36136 this and the pointer to the next subfield its ID.
36137 (vi_next): New function.
36138 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
36139 storedanything_id, integer_id): Increment by one.
36140 (new_var_info, get_call_vi, lookup_call_clobber_vi,
36141 get_call_clobber_vi): Adjust.
36142 (solution_set_expand): Simplify and speedup.
36143 (solution_set_add): Inline into ...
36144 (set_union_with_increment): ... this. Adjust accordingly.
36145 (do_sd_constraint): Likewise.
36146 (do_ds_constraint): Likewise.
36147 (do_complex_constraint): Simplify.
36148 (build_pred_graph): Adjust.
36149 (solve_graph): Likewise. Simplify and speedup.
36150 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
36151 get_constraint_for_component_ref, get_constraint_for_1,
36152 first_vi_for_offset, first_or_preceding_vi_for_offset,
36153 create_function_info_for, create_variable_info_for_1,
36154 create_variable_info_for, intra_create_variable_infos): Adjust.
36155 (init_base_vars): Push NULL for ID zero.
36156 (compute_points_to_sets): Adjust.
36157
36158 2013-03-20 Richard Biener <rguenther@suse.de>
36159
36160 * cfgloop.c (verify_loop_structure): Streamline and avoid
36161 ICEing on corrupt loop tree.
36162 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
36163 loop tree.
36164
36165 2013-03-20 Richard Biener <rguenther@suse.de>
36166
36167 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
36168 check whether an SSA update is needed.
36169
36170 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
36171
36172 * config/mips/constraints.md (T): Rename to...
36173 (Yf): ...this.
36174 (U): Rename to...
36175 (Yd): ...this.
36176 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
36177 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
36178
36179 2013-03-19 Ian Bolton <ian.bolton@arm.com>
36180
36181 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
36182 (*subsi3_carryin_uxtw): Likewise.
36183
36184 2013-03-19 Ian Bolton <ian.bolton@arm.com>
36185
36186 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
36187 (*rorsi3_insn_uxtw): Likewise.
36188
36189 2013-03-19 Ian Bolton <ian.bolton@arm.com>
36190
36191 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
36192 (*extrsi5_insn_uxtw): Likewise.
36193
36194 2013-03-19 Richard Biener <rguenther@suse.de>
36195
36196 PR tree-optimization/56273
36197 * passes.c (init_optimization_passes): Move second VRP after DOM.
36198
36199 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
36200
36201 * config/i386/i386.md (*movti_internal): Merge from
36202 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
36203 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
36204 nox64 isa attributes.
36205
36206 2013-03-18 Richard Biener <rguenther@suse.de>
36207
36208 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
36209 (unite): Likewise.
36210 (merge_node_constraints): Likewise.
36211 (build_succ_graph): Likewise.
36212 (valid_graph_edge): Inline into single caller.
36213 (unify_nodes): Likewise. Use bitmap_set_bit return value
36214 and cache varinfo.
36215 (scc_visit): Fix formatting and variable use.
36216 (do_sd_constraint): Use gcc_checking_assert.
36217 (do_ds_constraint): Likewise.
36218 (do_complex_constraint): Likewise.
36219 (condense_visit): Likewise. Cleanup.
36220 (dump_pred_graph): New function.
36221 (perform_var_substitution): Dump the pred-graph before
36222 variable substitution.
36223 (find_equivalent_node): Use gcc_checking_assert.
36224 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
36225
36226 2013-03-18 Richard Biener <rguenther@suse.de>
36227
36228 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
36229 Remove cond_expr_stmt_list argument and do not gimplify the
36230 built expression.
36231 (vect_loop_versioning): Adjust.
36232 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
36233 Cleanup to use less temporaries.
36234 (vect_create_data_ref_ptr): Cleanup.
36235
36236 2013-03-18 Jakub Jelinek <jakub@redhat.com>
36237
36238 PR tree-optimization/56635
36239 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
36240 require types_compatible_p types.
36241
36242 2013-03-18 Nick Clifton <nickc@redhat.com>
36243
36244 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
36245 spurious backslash.
36246
36247 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
36248 Add missing line to comment describing function.
36249
36250 2013-03-18 Richard Biener <rguenther@suse.de>
36251
36252 PR tree-optimization/56210
36253 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
36254 Handle string / character search functions.
36255 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
36256
36257 2013-03-18 Richard Biener <rguenther@suse.de>
36258
36259 PR middle-end/56483
36260 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
36261 and implement properly.
36262 * gimple.h (gimple_cond_single_var_p): Remove.
36263
36264 2013-03-18 Richard Biener <rguenther@suse.de>
36265
36266 * tree-data-ref.h (find_data_references_in_loop): Declare.
36267 * tree-data-ref.c (get_references_in_stmt): Use a stack
36268 vector pre-allocated in the callers.
36269 (find_data_references_in_stmt): Adjust.
36270 (graphite_find_data_references_in_stmt): Likewise.
36271 (create_rdg_vertices): Likewise.
36272 (find_data_references_in_loop): Export.
36273 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
36274 Compute dependences here...
36275 (vect_analyze_data_refs): ...not here. When we encounter
36276 a non-vectorizable data reference in basic-block vectorization
36277 truncate the data reference vector. Do not bother to
36278 fixup data-dependence information for gather loads.
36279 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
36280 of data references, as reported.
36281
36282 2013-03-18 Richard Biener <rguenther@suse.de>
36283
36284 PR tree-optimization/3713
36285 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
36286 has_constants and expr.
36287 (stmt_has_constants): Properly valueize SSA names when deciding
36288 whether the stmt has constants.
36289
36290 2013-03-18 Richard Biener <rguenther@suse.de>
36291
36292 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
36293 whole function when there is nothing to do.
36294 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
36295 * tree-vectorizer.c (vectorize_loops): Update virtual and
36296 loop-closed SSA once.
36297 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
36298
36299 2013-03-18 Richard Biener <rguenther@suse.de>
36300
36301 PR middle-end/56113
36302 * domwalk.c (bb_postorder): New global static.
36303 (cmp_bb_postorder): New function.
36304 (walk_dominator_tree): Replace scheme imposing an order for
36305 visiting dominator sons by one sorting them at the time they
36306 are pushed on the stack.
36307
36308 2013-03-18 Richard Biener <rguenther@suse.de>
36309
36310 PR tree-optimization/39326
36311 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
36312 (struct mem_ref): Replace mem member with ao_ref typed member.
36313 (MEM_ANALYZABLE): Adjust.
36314 (memref_eq): Likewise.
36315 (mem_ref_alloc): Likewise.
36316 (gather_mem_refs_stmt): Likewise.
36317 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
36318 (execute_sm_if_changed_flag_set): Adjust.
36319 (execute_sm): Likewise.
36320 (ref_always_accessed_p): Likewise.
36321 (refs_independent_p): Likewise.
36322 (can_sm_ref_p): Likewise.
36323
36324 2013-03-18 Jakub Jelinek <jakub@redhat.com>
36325
36326 PR c/56566
36327 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
36328 return 1 even for !unsignedp.
36329
36330 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
36331
36332 * config/i386/i386.md (isa): Add x64 and nox64.
36333 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
36334 (*pushtf): Enable *roF alternative for x64 isa only.
36335 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
36336 mode attribute of integer alternatives to DImode for TARGET_64BIT.
36337 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
36338 (*movtf_internal): Merge from *movtf_internal_rex64 and
36339 *movtf_internal_sse. Use x64 and nox64 isa attributes.
36340 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
36341 nox64 isa attributes.
36342 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
36343 nox64 isa attributes.
36344 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
36345
36346 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
36347
36348 * config/alpha/alpha.c (TARGET_LRA_P): New define.
36349
36350 2013-03-17 Jakub Jelinek <jakub@redhat.com>
36351
36352 PR target/56640
36353 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
36354 class names. Remove trailing comma after "ALL_REGS".
36355
36356 2013-03-16 Jan Hubicka <jh@suse.cz>
36357
36358 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
36359 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
36360 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
36361 of cgraph_get_create_node.
36362 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
36363
36364 2013-03-16 Jason Merrill <jason@redhat.com>
36365
36366 PR debug/49090
36367 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
36368 with DW_AT_default_value.
36369
36370 2013-03-16 Jakub Jelinek <jakub@redhat.com>
36371
36372 * BASE-VER: Set to 4.9.0.
36373
36374 2013-03-14 Andi Kleen <ak@linux.intel.com>
36375
36376 PR target/56619
36377 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
36378 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
36379 Document _x* TSX intrinsics.
36380
36381 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
36382 David Holsgrove <david.holsgrove@xilinx.com>
36383
36384 * configure.ac: Add MicroBlaze TLS support detection.
36385 * configure: Regenerate.
36386 * config/microblaze/microblaze-protos.h
36387 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
36388 symbol_mentioned_p, label_mentioned_p): Add prototypes.
36389 * config/microblaze/microblaze.c (microblaze_address_type): Add
36390 ADDRESS_TLS and tls_reloc address types.
36391 (microblaze_address_info): Add tls_reloc.
36392 (TARGET_HAVE_TLS): Define.
36393 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
36394 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
36395 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
36396 load_tls_operand, microblaze_call_tls_get_addr,
36397 microblaze_legitimize_tls_address): New functions.
36398 (microblaze_classify_unspec): Handle UNSPEC_TLS.
36399 (get_base_reg): Use microblaze_tls_symbol_p.
36400 (microblaze_classify_address): Handle TLS.
36401 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
36402 label_mentioned_p and microblaze_tls_referenced_p.
36403 (microblaze_legitimize_address): Handle TLS.
36404 (microblaze_address_insns): Handle ADDRESS_TLS.
36405 (pic_address_needs_scratch): Handle TLS.
36406 (print_operand_address): Handle TLS.
36407 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
36408 (microblaze_expand_move): Handle TLS.
36409 (microblaze_legitimate_constant_p): Check
36410 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
36411 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
36412 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
36413 (PIC_OFFSET_TABLE_REGNUM): Set.
36414 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
36415 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
36416 (addsi3, movsi_internal2, movdf_internal): Update constraints
36417 * config/microblaze/predicates.md (arith_plus_operand): Define
36418 (move_operand): Redefine as move_src_operand,
36419 check microblaze_tls_referenced_p.
36420
36421 2013-03-14 Ian Bolton <ian.bolton@arm.com>
36422
36423 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
36424 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
36425
36426 2013-03-14 Ian Bolton <ian.bolton@arm.com>
36427
36428 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
36429 CC mode for AND.
36430
36431 2013-03-14 Jakub Jelinek <jakub@redhat.com>
36432
36433 PR tree-optimization/53265
36434 * common.opt (Waggressive-loop-optimizations): New option.
36435 * tree-ssa-loop-niter.c: Include tree-pass.h.
36436 (do_warn_aggressive_loop_optimizations): New function.
36437 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
36438 if number_of_latch_executions returned constant.
36439 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
36440 early. If number_of_latch_executions returned constant, set
36441 nb_iterations_upper_bound back to it.
36442 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
36443 field.
36444 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
36445 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
36446
36447 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
36448 (MULTILIB_OSDIRNAMES): Set.
36449 * genmultilib: If defaultosdirname doesn't start with :: , set
36450 defaultosdirname2 instead, clear it and emit two . multilib_raw
36451 entries instead of just one.
36452
36453 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
36454
36455 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
36456 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
36457 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
36458 (SUBTARGET_OVERRIDE_OPTIONS): New.
36459
36460 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
36461
36462 PR target/49880
36463 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
36464 (musermode): Convert to Var(TARGET_USERMODE).
36465 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
36466 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
36467 * config/sh/sh.c (sh_option_override): Use
36468 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
36469 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
36470 condition.
36471 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
36472 TARGET_SH4.
36473 (udivsi3_i4_single, divsi3_i4_single): Use
36474 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
36475
36476 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
36477
36478 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
36479 default setting.
36480
36481 2013-03-13 Richard Biener <rguenther@suse.de>
36482
36483 PR tree-optimization/56608
36484 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
36485 calls when vectorizing basic-blocks.
36486
36487 2013-03-13 Jakub Jelinek <jakub@redhat.com>
36488
36489 PR plugins/45078
36490 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
36491 tm_file.
36492
36493 2013-03-12 Jakub Jelinek <jakub@redhat.com>
36494
36495 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
36496
36497 2013-03-11 Jan Hubicka <jh@suse.cz>
36498
36499 PR lto/56557
36500 * lto-streamer-out.c (output_symbol_p): Skip references from
36501 constructors of external variables.
36502
36503 2013-03-11 Jan Hubicka <jh@suse.cz>
36504
36505 PR middle-end/56571
36506 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
36507 from pseudos.
36508 * emit-rtl.c (verify_rtx_sharing): Likewise.
36509 (copy_insn_1): Likewise.
36510 * rtl.c (copy_rtx): Likewise.
36511
36512 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
36513
36514 PR target/56591
36515 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
36516 output_operand_lossage message.
36517
36518 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
36519
36520 PR target/56470
36521 * arm.c (shift_op): Validate RTL pattern on the fly.
36522 (arm_print_operand, case 'S'): Don't use shift_operator to validate
36523 the RTL.
36524
36525 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36526
36527 PR target/56347
36528 * config/pa/pa.md (call_value): Check for calls to powf and direct to
36529 new call patterns that clobber %fr12.
36530 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
36531 split and postreload patterns.
36532 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
36533 registers %fr12 and %fr12R as call used.
36534
36535 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
36536
36537 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
36538 (canon_address, record_store, replace_read, check_mem_read_rtx,
36539 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
36540 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
36541 rest_of_handle_dse): Likewise.
36542
36543 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
36544
36545 PR middle-end/56524
36546 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
36547 Add base_optabs.
36548 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
36549 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
36550 (save_optabs_if_changed): Replace with...
36551 (init_tree_optimization_optabs): ...this.
36552 * optabs.c (save_optabs_if_changed): Rename to...
36553 (init_tree_optimization_optabs): ...this. Take the optimization node
36554 as argument. Do nothing if the base optabs are already correct.
36555 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
36556 to recompute optabs.
36557 * function.h (function): Remove optabs field.
36558 * function.c (invoke_set_current_function_hook): Call
36559 init_tree_optimization_optabs. Use the result to initialize
36560 this_fn_optabs.
36561
36562 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
36563
36564 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
36565 if GTMA_HAS_NO_INSTRUMENTATION.
36566 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
36567 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
36568 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
36569 * gimple-pretty-print.c (dump_gimple_transaction): Handle
36570 GTMA_HAS_NO_INSTRUMENTATION.
36571
36572 2013-03-08 Jakub Jelinek <jakub@redhat.com>
36573
36574 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
36575 libasan_preinit.o.
36576
36577 2013-03-08 Marek Polacek <polacek@redhat.com>
36578 Jakub Jelinek <jakub@redhat.com>
36579
36580 PR tree-optimization/56478
36581 * predict.c (is_comparison_with_loop_invariant_p): Change the
36582 type of loop_step to tree.
36583 (predict_loops): Adjust.
36584 (predict_iv_comparison): Perform the computations on double_ints.
36585
36586 2013-03-08 Richard Biener <rguenther@suse.de>
36587
36588 PR tree-optimization/56570
36589 * tree-cfg.c (verify_expr_location_1): Verify locations for
36590 DECL_DEBUG_EXPR.
36591 * tree-sra.c (create_access_replacement): Strip locations
36592 from DECL_DEBUG_EXPRs.
36593
36594 2013-03-08 Richard Biener <rguenther@suse.de>
36595
36596 * tree-inline.c (expand_call_inline): Do not associate
36597 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
36598 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
36599
36600 2013-03-08 Richard Biener <rguenther@suse.de>
36601
36602 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
36603 or block changes with -Og. Fix for location / block encoding
36604 changes and PHI arguments with locations.
36605
36606 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
36607
36608 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
36609 for all counters.
36610 (struct output_info): Likewise.
36611 (register_overhead): Remove bad gcc_assert.
36612 (bitmap_find_bit): If there is only a single bitmap element, do not
36613 count a miss as a search.
36614 (print_statistics): Update for counter type changes.
36615 (dump_bitmap_statistics): Likewise. Print headers such that they
36616 are properly lined up with the printed counters.
36617
36618 2013-03-07 Jakub Jelinek <jakub@redhat.com>
36619
36620 PR tree-optimization/56559
36621 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
36622 check that it has only a single use.
36623
36624 2013-03-07 Richard Biener <rguenther@suse.de>
36625
36626 * doc/invoke.texi (fwhole-program): Discourage use in combination
36627 with -flto.
36628
36629 2013-03-06 Jakub Jelinek <jakub@redhat.com>
36630
36631 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
36632
36633 PR tree-optimization/56539
36634 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
36635 instead of GSI_CONTINUE_LINKING as last argument to
36636 force_gimple_operand_gsi. Adjust function comment.
36637
36638 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
36639 aarch64-cores.def.
36640
36641 PR middle-end/56548
36642 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
36643 promoted mode, convert the result back to the original mode.
36644
36645 2013-03-06 Richard Biener <rguenther@suse.de>
36646
36647 PR middle-end/56294
36648 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
36649 (insert_updated_phi_nodes_compare_uids): New function.
36650 (update_ssa): Sort symbols_to_rename after UID before
36651 traversing it to insert PHI nodes.
36652
36653 2013-03-06 Richard Biener <rguenther@suse.de>
36654
36655 PR middle-end/50494
36656 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
36657 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
36658
36659 Revert
36660 2013-02-13 Richard Biener <rguenther@suse.de>
36661
36662 PR lto/50494
36663 * varasm.c (output_constant_def_1): Get the decl representing
36664 the constant as argument.
36665 (output_constant_def): Wrap output_constant_def_1.
36666 (make_decl_rtl): Use output_constant_def_1 with the decl
36667 representing the constant.
36668 (build_constant_desc): Optionally re-use a decl already
36669 representing the constant.
36670 (tree_output_constant_def): Adjust.
36671
36672 2013-03-06 Joey Ye <joey.ye@arm.com>
36673
36674 PR lto/50293
36675 * gcc.c (convert_white_space): New function.
36676 (main): Handles white space in function name.
36677
36678 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
36679
36680 PR target/56529
36681 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
36682 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
36683 to SH_DIV_CALL_TABLE for TARGET_SH2.
36684 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
36685 list.
36686 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
36687 call-table options.
36688
36689 2013-03-05 Sterling Augustine <saugustine@google.com>
36690 Cary Coutant <ccoutant@google.com>
36691
36692 PR debug/55364
36693 * dwarf2out.c (resolve_addr): Don't call
36694 remove_loc_list_addr_table_entries a second time for the same
36695 expression.
36696
36697 2013-03-05 Jakub Jelinek <jakub@redhat.com>
36698
36699 PR debug/56510
36700 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
36701 (avoid_complex_debug_insns): New function.
36702 (expand_debug_locations): Call it.
36703
36704 PR rtl-optimization/56484
36705 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
36706 lifetimes of hard registers on small register class machines.
36707
36708 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
36709
36710 * config/microblaze/microblaze-protos.h: Rename
36711 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
36712 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
36713 fast_interrupt.
36714 (microblaze_fast_interrupt_function_p): New function.
36715 (microblaze_is_interrupt_handler): Rename to
36716 microblaze_is_interrupt_variant and add fast_interrupt check.
36717 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
36718 (save_restore_insns): Likewise.
36719 (compute_frame_size): Likewise.
36720 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
36721 (microblaze_globalize_label): Likewise.
36722 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
36723 * config/microblaze/microblaze.md: Use wrapper
36724 microblaze_is_interrupt_variant.
36725
36726 2013-03-05 Kai Tietz <ktietz@redhat.com>
36727
36728 * sdbout.c (sdbout_one_type): Switch to current function's section
36729 supporting cold/hot.
36730
36731 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
36732
36733 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
36734 -mxl-reorder.
36735
36736 2013-03-05 Jakub Jelinek <jakub@redhat.com>
36737
36738 PR middle-end/56461
36739 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
36740 if VALGRIND_GET_VBITS is defined, temporarily make object
36741 memory all defined, and restore previous valgrind addressability
36742 and definability afterwards. Free this_object at the end.
36743
36744 PR middle-end/56461
36745 * lra.c (lra): Call lra_clear_live_ranges if live_p,
36746 right before calling lra_create_live_ranges, also call it
36747 when clearing live_p. Only call lra_clear_live_ranges
36748 at the end if live_p.
36749
36750 PR middle-end/56461
36751 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
36752
36753 2013-03-05 Richard Biener <rguenther@suse.de>
36754
36755 PR tree-optimization/56521
36756 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
36757 value-id.
36758
36759 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
36760
36761 PR c++/55135
36762 * except.h (remove_unreachable_eh_regions): New prototype.
36763 * except.c (remove_eh_handler_splicer): New function, split out
36764 of remove_eh_handler.
36765 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
36766 warning about running it on many EH regions one at a time.
36767 (remove_unreachable_eh_regions_worker): New function, walk the
36768 EH tree in depth-first order and remove non-marked regions.
36769 (remove_unreachable_eh_regions): New function.
36770 * tree-eh.c (mark_reachable_handlers): New function, split out
36771 from remove_unreachable_handlers.
36772 (remove_unreachable_handlers): Use mark_reachable_handlers and
36773 remove_unreachable_eh_regions.
36774 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
36775 and remove_unreachable_eh_regions.
36776
36777 2013-03-05 Richard Biener <rguenther@suse.de>
36778
36779 PR middle-end/56525
36780 * loop-init.c (fix_loop_structure): Remove loops in two stages,
36781 not freeing them until the end.
36782
36783 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36784
36785 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
36786
36787 2013-03-05 Richard Biener <rguenther@suse.de>
36788
36789 PR tree-optimization/56270
36790 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
36791 of loads after scheduling an SLP instance.
36792
36793 2013-03-05 Jakub Jelinek <jakub@redhat.com>
36794
36795 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
36796 tic6x.exp.
36797 (check_gcc_parallelize): Run guality.exp as a separate job from
36798 vect.exp with unsorted.exp and $(dg_target_exps) separately from
36799 struct-layout-1.exp with stackalign.exp.
36800
36801 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
36802
36803 PR middle-end/56461
36804 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
36805 load_index sbitmap even if some bit in it isn't set.
36806
36807 PR middle-end/56461
36808 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
36809 (discover_iteration_bound_by_body_walk): Change queues to
36810 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
36811 spelling in comment. Call safe_push on queues[bound_index] directly.
36812 Release queues[queue_index] in every iteration unconditionally.
36813 Release bounds vector.
36814
36815 PR middle-end/56461
36816 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
36817 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
36818 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
36819 inner_phis vector.
36820
36821 2013-03-05 Richard Biener <rguenther@suse.de>
36822
36823 PR lto/56515
36824 * tree-inline.c (remap_blocks_to_null): New function.
36825 (expand_call_inline): When expanding a call stmt without
36826 an associated block inline remap all callee blocks to NULL.
36827
36828 2013-03-05 Jakub Jelinek <jakub@redhat.com>
36829
36830 PR rtl-optimization/56494
36831 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
36832 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
36833 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
36834
36835 PR middle-end/56461
36836 * sel-sched-ir.c (free_sched_pools): Release
36837 succs_info_pool.stack[succs_info_pool.max_top] vectors too
36838 if succs_info_pool.max_top isn't -1.
36839
36840 PR bootstrap/56509
36841 * opts.c (opts_obstack, opts_concat): Moved to...
36842 * opts-common.c (opts_obstack, opts_concat): ... here.
36843
36844 2013-03-04 Jakub Jelinek <jakub@redhat.com>
36845
36846 PR middle-end/56461
36847 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
36848
36849 2013-03-04 Martin Jambor <mjambor@suse.cz>
36850
36851 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
36852 all appropriate places.
36853
36854 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
36855
36856 PR tree-optimization/56424
36857 * ipa-split.c (split_function): Do not set the RSO flag if result is
36858 not by reference and its type is a register type.
36859
36860 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
36861
36862 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
36863 (microblaze_legitimate_pic_operand): Likewise
36864 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
36865 new function microblaze_legitimate_pic_operand
36866 * config/microblaze/microblaze-protos.h
36867 (microblaze_legitimate_pic_operand): Declare.
36868
36869 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36870
36871 * config/microblaze/predicates.md (call_insn_simple_operand):
36872 New predicate for supported rtx code types.
36873 * config/microblaze/microblaze.md (call_internal1): Use
36874 call_insn_simple_operand predicate.
36875
36876 2013-03-04 Jakub Jelinek <jakub@redhat.com>
36877
36878 PR middle-end/56461
36879 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
36880 partitions.ordered_remove.
36881
36882 PR middle-end/56461
36883 * tree-vect-stmts.c (vectorizable_conversion): Don't call
36884 vec_oprnds0.create (1) for modifier == NONE.
36885
36886 PR middle-end/56461
36887 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
36888 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
36889 vec_oprnds1 right before pushing anything to it for
36890 scalar_shift_arg.
36891
36892 PR middle-end/56461
36893 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
36894 set nbbs to 0 instead of having separate code path.
36895 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
36896 instead of false as last argument if returning NULL.
36897
36898 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
36899
36900 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
36901 the attribute is now called "target" instead of "option".
36902 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
36903 * doc/tm.texi.in (Target Attributes): Likewise document the correct
36904 attribute/pragma name for TARGET_OPTION_VALID_P and
36905 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
36906 * doc/tm.texi: Regenerated.
36907
36908 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
36909
36910 * config/microblaze/microblaze.c:
36911 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
36912 * config/microblaze/microblaze.h: Add -mxl-reorder to
36913 DRIVER_SELF_SPECS.
36914 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
36915 instructions emitted if TARGET_REORDER.
36916 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
36917 or 0 for -m/-mno case, but initialises as 2 to detect default use case
36918 separately.
36919
36920 2013-03-01 Xinliang David Li <davidxl@google.com>
36921
36922 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
36923 walk length.
36924
36925 2013-03-01 Jakub Jelinek <jakub@redhat.com>
36926
36927 PR middle-end/56461
36928 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
36929 vector even when returning true. Fix up function comment formatting.
36930
36931 PR middle-end/56461
36932 * ira-build.c (ira_loop_nodes_count): New variable.
36933 (create_loop_tree_nodes): Initialize it.
36934 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
36935
36936 PR middle-end/56461
36937 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
36938 method on dr_chain and result_chain.
36939 * tree-vect-stmts.c (vectorizable_store): Only call
36940 result_chain.create if j == 0.
36941
36942 PR middle-end/56461
36943 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
36944 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
36945 before overwriting it.
36946
36947 2013-03-01 Tobias Burnus <burnus@net-b.de>
36948
36949 * doc/extended.texi (C Extensions): Change order in @menu
36950 to match @node.
36951 (Other MIPS Built-in Functions): Move last MIPS entry before
36952 "picoChip Built-in Functions".
36953 (SH Built-in Functions): Move after RX Built-in Functions.
36954 * doc/gcc.texi (Introduction): Change order in @menu
36955 to match @node.
36956 * doc/md.texi (Constraints): Ditto.
36957 * gty.texi (Type Information): Ditto.
36958 (User-provided marking routines for template types): Make
36959 subsection.
36960 * doc/invoke.texi (AArch64 Options): Move before
36961 "Adapteva Epiphany Options".
36962
36963 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
36964 Jakub Jelinek <jakub@redhat.com>
36965
36966 PR sanitizer/56454
36967 * asan.c (gate_asan): Lookup no_sanitize_address instead of
36968 no_address_safety_analysis attribute.
36969 * doc/extend.texi (no_address_safety_attribute): Rename to
36970 no_sanitize_address attribute, mention no_address_safety_analysis
36971 attribute as deprecated alias.
36972
36973 2013-02-28 Jakub Jelinek <jakub@redhat.com>
36974
36975 PR middle-end/56461
36976 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
36977 type to vec<vec<tree> > *.
36978 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
36979 to be vec<tree> instead of vec<tree> *, set vec_defs
36980 to vNULL and call vec_defs.create (number_of_vects), adjust other
36981 uses of vec_defs.
36982 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
36983 vectorizable_condition): Adjust vect_get_slp_defs callers.
36984
36985 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
36986
36987 * config/aarch64/aarch64.c
36988 (aarch64_float_const_representable): Remove unused variable.
36989
36990 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
36991
36992 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
36993
36994 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
36995
36996 * config/aarch64/aarch64-builtins.c
36997 (aarch64_init_simd_builtins): Make static.
36998
36999 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
37000
37001 * config/aarch64/aarch64.c
37002 (aarch64_simd_make_constant): Make static.
37003
37004 2013-02-28 Martin Jambor <mjambor@suse.cz>
37005
37006 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
37007 with no initialization to the RHS of debug statements.
37008
37009 2013-02-28 Martin Jambor <mjambor@suse.cz>
37010
37011 PR tree-optimization/56294
37012 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
37013 Adjust dumping.
37014 (get_access_replacement): Do not call create_access_replacement.
37015 Assert a replacement exists.
37016 (get_repl_default_def_ssa_name): Create the replacement declaration
37017 itself.
37018
37019 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37020
37021 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
37022 final_end_function.
37023
37024 2013-02-28 Marek Polacek <polacek@redhat.com>
37025
37026 PR rtl-optimization/56466
37027 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
37028 if we're changing a loop.
37029 (peel_loops_completely): Likewise.
37030
37031 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
37032
37033 PR c++/55813
37034 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
37035
37036 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
37037
37038 PR target/56445
37039 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
37040 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
37041 INTX_FTYPE_FX, FX_FTYPE_INTX.
37042 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
37043
37044 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
37045
37046 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
37047 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
37048 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
37049 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
37050 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
37051 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
37052 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
37053 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
37054 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
37055 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
37056 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
37057 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
37058 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
37059 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
37060 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
37061 (avrxmega6): Increase max flash segments from 5 to 6.
37062 * config/avr/t-multilib: Regenerate.
37063 * config/avr/avr-tables.opt: Regenerate.
37064 * doc/avr-mmcu.texi: Regenerate.
37065
37066 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
37067
37068 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
37069 (avr_device_to_arch): Rename to avr_device_to_ld.
37070 (avr_device_to_as): New prototype.
37071 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
37072 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
37073 * config/avr/driver-avr.c (avr_device_to_as): New.
37074 (avr_device_to_arch): Rename to avr_device_to_ld.
37075
37076 2013-02-27 Jakub Jelinek <jakub@redhat.com>
37077
37078 PR middle-end/56461
37079 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
37080 method on dr_chain and result_chain.
37081
37082 PR middle-end/56461
37083 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
37084 pointer_set_destroy on not_executed_last_iteration.
37085
37086 PR middle-end/56461
37087 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
37088
37089 PR middle-end/56461
37090 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
37091 FOR_EACH_DEFINED_FUNCTION when freeing state.
37092
37093 PR middle-end/56461
37094 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
37095 pool_free.
37096 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
37097 overwriting it.
37098
37099 PR middle-end/56461
37100 * ipa-cp.c (decide_whether_version_node): Call vec_free on
37101 known_aggs[i].items and release known_aggs vector.
37102
37103 PR middle-end/56461
37104 * ipa-reference.c (propagate): Free node_info even for alias nodes.
37105
37106 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37107
37108 * config/microblaze/microblaze.c (microblaze_emit_compare):
37109 Use xor for EQ/NE comparisions.
37110 * config/microblaze/microblaze.md (cstoresf4): Add constraints
37111 (cbranchsf4): Adjust operator to comparison_operator.
37112
37113 2013-02-27 Jakub Jelinek <jakub@redhat.com>
37114
37115 PR middle-end/56461
37116 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
37117 vector.
37118 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
37119 vec_safe_push, always update *slot.
37120 (redirect_edge_var_map_clear): Use vec_free.
37121 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
37122 (free_var_map_entry): Use vec_free.
37123 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
37124 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
37125
37126 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
37127
37128 PR middle-end/45472
37129 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
37130 when the may_trap_p bit of the exprs being merged differs.
37131 Reorder tests for speculativeness in the logical and operator.
37132
37133 2013-02-27 Jakub Jelinek <jakub@redhat.com>
37134
37135 * incpath.c (add_standard_paths): Use reconcat instead of concat
37136 where appropriate and avoid leaking memory.
37137
37138 * opts.h: Include obstack.h.
37139 (opts_concat): New prototype.
37140 (opts_obstack): New declaration.
37141 * opts.c (opts_concat): New function.
37142 (opts_obstack): New variable.
37143 (init_options_struct): Call gcc_init_obstack on opts_obstack.
37144 (finish_options): Use opts_concat instead of concat
37145 and XOBNEWVEC instead of XNEWVEC.
37146 * opts-common.c (generate_canonical_option, decode_cmdline_option,
37147 generate_option): Likewise.
37148 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
37149 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
37150
37151 PR target/56455
37152 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
37153 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
37154
37155 2013-02-26 Jakub Jelinek <jakub@redhat.com>
37156
37157 PR middle-end/56461
37158 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
37159
37160 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
37161
37162 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
37163 (arm_block_move_unaligned_straight): Likewise.
37164 (arm_adjust_block_mem): Likewise.
37165
37166 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
37167
37168 PR target/48901
37169 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
37170 temp, cond and label.
37171 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
37172
37173 PR target/52500
37174 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
37175 * config/c6x/c6x.h (dbx_register_map): Update declaration.
37176
37177 PR target/52501
37178 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
37179 of prologue/epilogue functions.
37180
37181 PR target/52550
37182 * config/tilegx/tilegx.c (tilegx_expand_prologue):
37183 Remove unused variable cfa_offset.
37184 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
37185
37186 PR target/54639
37187 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
37188 type promotion to unsigned.
37189
37190 PR target/54640
37191 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
37192 for HOST_WIDE_INT of 32 bit / same size as int.
37193 (arm_block_move_unaligned_straight): Likewise.
37194 (arm_adjust_block_mem): Likewise.
37195
37196 PR target/54662
37197 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
37198 ALL_CFLAGS.
37199
37200 2013-02-26 Marek Polacek <polacek@redhat.com>
37201
37202 PR tree-optimization/56426
37203 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
37204
37205 2013-02-26 Richard Biener <rguenther@suse.de>
37206
37207 PR target/56444
37208 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
37209 unused variable loops.
37210
37211 2013-02-26 Jakub Jelinek <jakub@redhat.com>
37212
37213 PR tree-optimization/56448
37214 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
37215 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
37216 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
37217 later operands of the references, or even first operand for
37218 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
37219
37220 PR tree-optimization/56443
37221 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
37222 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
37223 to type_for_mode langhook.
37224
37225 2013-02-25 Matt Turner <mattst88@gmail.com>
37226
37227 * doc/invoke.texi: Document r4700.
37228
37229 2013-02-25 Richard Biener <rguenther@suse.de>
37230
37231 PR tree-optimization/56175
37232 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
37233 split out from ...
37234 (simplify_bitwise_binary): ... here. Also guard the conversion
37235 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
37236
37237 2013-02-25 Catherine Moore <clm@codesourcery.com>
37238
37239 Revert:
37240 2013-02-24 Catherine Moore <clm@codesourcery.com>
37241 Maciej W. Rozycki <macro@codesourcery.com>
37242 Tom de Vries <tom@codesourcery.com>
37243 Nathan Sidwell <nathan@codesourcery.com>
37244 Iain Sandoe <iain@codesourcery.com>
37245 Nathan Froyd <froydnj@codesourcery.com>
37246 Chao-ying Fu <fu@mips.com>
37247
37248 * doc/extend.texi: (micromips, nomicromips, nocompression):
37249 Document new function attributes.
37250 * doc/invoke.texi (minterlink-compressed, mmicromips,
37251 m14k, m14ke, m14kec): Document new options.
37252 (minterlink-mips16): Update documentation.
37253 * doc/md.texi (ZC, ZD): Document new constraints.
37254 * configure.ac (gcc_cv_as_micromips): Check if linker
37255 supports the .set micromips directive.
37256 * configure: Regenerate.
37257 * config.in: Regenerate.
37258 * config/mips/mips-tables.opt: Regenerate.
37259 * config/mips/micromips.md: New file.
37260 * constraints.md (ZC, AD): New constraints.
37261 * config/mips/predicates.md (movep_src_register): New predicate.
37262 (movep_src_operand): New predicate.
37263 (non_volatile_mem_operand): New predicate.
37264 * config/mips/mips.md (multimem): New type.
37265 (length): Differentiate between 17-bit and 18-bit branch offsets.
37266 (MOVEP1, MOVEP2): New mode iterator.
37267 (mov_<load>l): Use ZC constraint.
37268 (mov_<load>r): Likewise.
37269 (mov_<store>l): Likewise.
37270 (mov_<store>r): Likewise.
37271 (*branch_equality<mode>_inverted): Add microMIPS support.
37272 (*branch_equality<mode>): Likewise.
37273 (*jump_absolute): Likewise.
37274 (indirect_jump_<mode>): Likewise.
37275 (tablejump_<mode>): Likewise.
37276 (<optab>_internal): Likewise.
37277 (sibcall_internal): Likewise.
37278 (sibcall_value_internal): Likewise.
37279 (prefetch): Use constraint ZD.
37280 * config/mips/mips.opt (minterlink-compressed): New option.
37281 (minterlink-mips16): Now an alias for minterlink-compressed.
37282 (mmicromips): New option.
37283 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
37284 (compare_and_swap_12): Likewise.
37285 (sync_add<mode>): Likewise.
37286 (sync_<optab>_12): Likewise.
37287 (sync_old_<optab>_12): Likewise.
37288 (sync_new_<optab>_12): Likewise.
37289 (sync_nand_12): Likewise.
37290 (sync_old_nand_12): Likewise.
37291 (sync_new_nand_12): Likewise.
37292 (sync_sub<mode>): Likewise.
37293 (sync_old_add<mode>): Likewise.
37294 (sync_old_sub<mode>): Likewise.
37295 (sync_new_add<mode>): Likewise.
37296 (sync_new_sub<mode>): Likewise.
37297 (sync_<optab><mode>): Likewise.
37298 (sync_old_<optab><mode>): Likewise.
37299 (sync_new_<optab><mode>): Likewise.
37300 (sync_nand<mode>): Likewise.
37301 (sync_old_nand<mode>): Likewise.
37302 (sync_new_nand<mode>): Likewise.
37303 (sync_lock_test_and_set<mode>): Likewise.
37304 (test_and_set_12): Likewise.
37305 (atomic_compare_and_swap<mode>): Likewise.
37306 (atomic_exchange<mode>_llsc): Likewise.
37307 (atomic_fetch_add<mode>_llsc): Likewise.
37308 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
37309 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
37310 (umips_save_restore_pattern_p): Likewise.
37311 (umips_load_store_pair_p): Likewise.
37312 (umips_output_load_store_pair): Likewise.
37313 (umips_movep_target_p): Likewise.
37314 (umips_12bit_offset_address_p): Likewise.
37315 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
37316 (mips_base_mips16): Rename this...
37317 (mips_base_compression_flags): ...to this. Update all uses.
37318 (mips_attribute_table): Add micromips, nomicromips and nocompression.
37319 (mips_mips16_decl_p): Delete.
37320 (mips_nomips16_decl_p): Delete.
37321 (mips_get_compress_on_flags): New function.
37322 (mips_get_compress_off_flags): New function.
37323 (mips_get_compress_mode): New function.
37324 (mips_get_compress_on_name): New function.
37325 (mips_get_compress_off_name): New function.
37326 (mips_insert_attributes): Support multiple compression types.
37327 (mips_merge_decl_attributes): Likewise.
37328 (umips_12bit_offset_address_p): New function.
37329 (mips_start_function_definition): Emit .set micromips directive.
37330 (mips_call_may_need_jalx_p): New function.
37331 (mips_function_ok_for_sibcall): Add microMIPS support.
37332 (mips_print_operand_punctuation): Support short delay slots and
37333 compact jumps.
37334 (umips_swm_mask, umips_swm_encoding): New.
37335 (umips_build_save_restore): New function.
37336 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
37337 (was_mips16_p): Remove.
37338 (old_compression_mode): New.
37339 (mips_set_compression_mode): New function.
37340 (mips_set_current_function): Add microMIPS support.
37341 (mips_option_override): Likewise.
37342 (umips_save_restore_pattern_p): New function.
37343 (umips_output_save_restore): New function.
37344 (umips_load_store_pair_p_1): New function.
37345 (umips_load_store_pair_p): New function.
37346 (umips_output_load_store_pair_1): New function.
37347 (umips_output_load_store_pair): New function.
37348 (umips_movep_target_p) New function.
37349 (mips_prepare_pch_save): Add microMIPS support.
37350 * config/mips/mips.h (TARGET_COMPRESSION): New.
37351 (TARGET_CPU_CPP_BUILTINS): Update macro
37352 to use new compression flags and to support microMIPS.
37353 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
37354 (MIPS_ARCH_FLOAT_SPEC): Likewise.
37355 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
37356 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
37357 (ASM_SPEC): Support mmicromips and mno-micromips.
37358 (M16STORE_REG_P): New macro.
37359 (MIPS_CALL): Support TARGET_MICROMIPS.
37360 (MICROMIPS_J): New macro.
37361 (mips_base_mips16): Rename this...
37362 (mips_base_compression_flags): ...to this.
37363 (UMIPS_12BIT_OFFSET_P): New macro.
37364 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
37365 (MULTILIB_DIRNAMES): Likewise.
37366
37367 2013-02-25 Tom de Vries <tom@codesourcery.com>
37368
37369 PR rtl-optimization/56131
37370 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
37371 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
37372 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
37373
37374 2013-02-25 Tobias Burnus <burnus@net-b.de>
37375
37376 * doc/invoke.texi (-fsanitize=): Move from optimization
37377 to debugging options.
37378
37379 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
37380
37381 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
37382
37383 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
37384 Alexander Monakov <amonakov@ispras.ru>
37385
37386 PR middle-end/56077
37387 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
37388 flush pending lists also on non-jumps. Adjust comment.
37389
37390 2013-02-24 Catherine Moore <clm@codesourcery.com>
37391 Maciej W. Rozycki <macro@codesourcery.com>
37392 Tom de Vries <tom@codesourcery.com>
37393 Nathan Sidwell <nathan@codesourcery.com>
37394 Iain Sandoe <iain@codesourcery.com>
37395 Nathan Froyd <froydnj@codesourcery.com>
37396 Chao-ying Fu <fu@mips.com>
37397
37398 * doc/extend.texi: (micromips, nomicromips, nocompression):
37399 Document new function attributes.
37400 * doc/invoke.texi (minterlink-compressed, mmicromips,
37401 m14k, m14ke, m14kec): Document new options.
37402 (minterlink-mips16): Update documentation.
37403 * doc/md.texi (ZC, ZD): Document new constraints.
37404 * configure.ac (gcc_cv_as_micromips): Check if linker
37405 supports the .set micromips directive.
37406 * configure: Regenerate.
37407 * config.in: Regenerate.
37408 * config/mips/mips-tables.opt: Regenerate.
37409 * config/mips/micromips.md: New file.
37410 * constraints.md (ZC, AD): New constraints.
37411 * config/mips/predicates.md (movep_src_register): New predicate.
37412 (movep_src_operand): New predicate.
37413 (non_volatile_mem_operand): New predicate.
37414 * config/mips/mips.md (multimem): New type.
37415 (length): Differentiate between 17-bit and 18-bit branch offsets.
37416 (MOVEP1, MOVEP2): New mode iterator.
37417 (mov_<load>l): Use ZC constraint.
37418 (mov_<load>r): Likewise.
37419 (mov_<store>l): Likewise.
37420 (mov_<store>r): Likewise.
37421 (*branch_equality<mode>_inverted): Add microMIPS support.
37422 (*branch_equality<mode>): Likewise.
37423 (*jump_absolute): Likewise.
37424 (indirect_jump_<mode>): Likewise.
37425 (tablejump_<mode>): Likewise.
37426 (<optab>_internal): Likewise.
37427 (sibcall_internal): Likewise.
37428 (sibcall_value_internal): Likewise.
37429 (prefetch): Use constraint ZD.
37430 * config/mips/mips.opt (minterlink-compressed): New option.
37431 (minterlink-mips16): Now an alias for minterlink-compressed.
37432 (mmicromips): New option.
37433 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
37434 (compare_and_swap_12): Likewise.
37435 (sync_add<mode>): Likewise.
37436 (sync_<optab>_12): Likewise.
37437 (sync_old_<optab>_12): Likewise.
37438 (sync_new_<optab>_12): Likewise.
37439 (sync_nand_12): Likewise.
37440 (sync_old_nand_12): Likewise.
37441 (sync_new_nand_12): Likewise.
37442 (sync_sub<mode>): Likewise.
37443 (sync_old_add<mode>): Likewise.
37444 (sync_old_sub<mode>): Likewise.
37445 (sync_new_add<mode>): Likewise.
37446 (sync_new_sub<mode>): Likewise.
37447 (sync_<optab><mode>): Likewise.
37448 (sync_old_<optab><mode>): Likewise.
37449 (sync_new_<optab><mode>): Likewise.
37450 (sync_nand<mode>): Likewise.
37451 (sync_old_nand<mode>): Likewise.
37452 (sync_new_nand<mode>): Likewise.
37453 (sync_lock_test_and_set<mode>): Likewise.
37454 (test_and_set_12): Likewise.
37455 (atomic_compare_and_swap<mode>): Likewise.
37456 (atomic_exchange<mode>_llsc): Likewise.
37457 (atomic_fetch_add<mode>_llsc): Likewise.
37458 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
37459 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
37460 (umips_save_restore_pattern_p): Likewise.
37461 (umips_load_store_pair_p): Likewise.
37462 (umips_output_load_store_pair): Likewise.
37463 (umips_movep_target_p): Likewise.
37464 (umips_12bit_offset_address_p): Likewise.
37465 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
37466 (mips_base_mips16): Rename this...
37467 (mips_base_compression_flags): ...to this. Update all uses.
37468 (mips_attribute_table): Add micromips, nomicromips and nocompression.
37469 (mips_mips16_decl_p): Delete.
37470 (mips_nomips16_decl_p): Delete.
37471 (mips_get_compress_on_flags): New function.
37472 (mips_get_compress_off_flags): New function.
37473 (mips_get_compress_mode): New function.
37474 (mips_get_compress_on_name): New function.
37475 (mips_get_compress_off_name): New function.
37476 (mips_insert_attributes): Support multiple compression types.
37477 (mips_merge_decl_attributes): Likewise.
37478 (umips_12bit_offset_address_p): New function.
37479 (mips_start_function_definition): Emit .set micromips directive.
37480 (mips_call_may_need_jalx_p): New function.
37481 (mips_function_ok_for_sibcall): Add microMIPS support.
37482 (mips_print_operand_punctuation): Support short delay slots and
37483 compact jumps.
37484 (umips_swm_mask, umips_swm_encoding): New.
37485 (umips_build_save_restore): New function.
37486 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
37487 (was_mips16_p): Remove.
37488 (old_compression_mode): New.
37489 (mips_set_compression_mode): New function.
37490 (mips_set_current_function): Add microMIPS support.
37491 (mips_option_override): Likewise.
37492 (umips_save_restore_pattern_p): New function.
37493 (umips_output_save_restore): New function.
37494 (umips_load_store_pair_p_1): New function.
37495 (umips_load_store_pair_p): New function.
37496 (umips_output_load_store_pair_1): New function.
37497 (umips_output_load_store_pair): New function.
37498 (umips_movep_target_p) New function.
37499 (mips_prepare_pch_save): Add microMIPS support.
37500 * config/mips/mips.h (TARGET_COMPRESSION): New.
37501 (TARGET_CPU_CPP_BUILTINS): Update macro
37502 to use new compression flags and to support microMIPS.
37503 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
37504 (MIPS_ARCH_FLOAT_SPEC): Likewise.
37505 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
37506 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
37507 (ASM_SPEC): Support mmicromips and mno-micromips.
37508 (M16STORE_REG_P): New macro.
37509 (MIPS_CALL): Support TARGET_MICROMIPS.
37510 (MICROMIPS_J): New macro.
37511 (mips_base_mips16): Rename this...
37512 (mips_base_compression_flags): ...to this.
37513 (UMIPS_12BIT_OFFSET_P): New macro.
37514 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
37515 (MULTILIB_DIRNAMES): Likewise.
37516
37517 2013-02-24 Jakub Jelinek <jakub@redhat.com>
37518
37519 PR target/52555
37520 * target-globals.c (save_target_globals): For init_reg_sets and
37521 target_reinit remporarily set this_fn_optabs to this_target_optabs.
37522
37523 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
37524
37525 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
37526 * config/aarch64/t-aarch64
37527 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
37528
37529 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
37530
37531 PR inline-asm/56148
37532 * lra-constraints.c (process_alt_operands): Reload operand
37533 conflicting with earlier clobber only if no more other conflicting
37534 operands.
37535
37536 2013-02-22 Jakub Jelinek <jakub@redhat.com>
37537
37538 PR sanitizer/56393
37539 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
37540 if not linking a shared library.
37541
37542 2013-02-22 Seth LaForge <sethml@google.com>
37543
37544 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
37545
37546 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
37547
37548 * config/arm/arm.md (split for extendsidi): Update condition.
37549 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
37550 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
37551 (qhs_zextenddi_cstr): Likewise.
37552
37553 2013-02-21 Jakub Jelinek <jakub@redhat.com>
37554
37555 PR middle-end/56420
37556 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
37557 avoid signed wrapping.
37558 (expand_mult): Handle properly multiplication by
37559 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
37560 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
37561 in the compiler if coeff is HOST_WIDE_INT_MIN.
37562 (expand_divmod): Don't make ext_op1 static, change it's type to
37563 uhwi. Avoid undefined behavior in -INTVAL (op1).
37564
37565 PR rtl-optimization/50339
37566 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
37567 field.
37568 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
37569 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
37570 into splitting_ashiftrt field.
37571 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
37572 ASHIFTRT.
37573 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
37574 choices.
37575
37576 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
37577
37578 PR middle-end/56108
37579 * trans-mem.c (execute_tm_mark): Do not expand transactions that
37580 are sure to go irrevocable.
37581
37582 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
37583
37584 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
37585 scalars are valid operands.
37586
37587 2013-02-21 Martin Jambor <mjambor@suse.cz>
37588
37589 PR tree-optimization/56310
37590 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
37591 only matching indices and non-negative final offsets.
37592 (intersect_aggregates_with_edge): Pass src_idx to
37593 agg_replacements_to_vector. Pass src_idx insstead of index to
37594 intersect_with_agg_replacements.
37595
37596 2013-02-21 Martin Jambor <mjambor@suse.cz>
37597
37598 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
37599 instead of hard-wired defaults.
37600
37601 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
37602
37603 * doc/invoke.texi (MIPS Options): Update documentation of the
37604 floating-point multiply-accumulate instruction restrictions.
37605
37606 2013-02-21 Kostya Serebryany <kcc@google.com>
37607
37608 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
37609 asan_shadow_offset on x86_64 linux.
37610
37611 2013-02-21 Richard Biener <rguenther@suse.de>
37612
37613 PR tree-optimization/56415
37614 Revert
37615 2013-02-11 Richard Biener <rguenther@suse.de>
37616
37617 PR tree-optimization/56273
37618 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
37619 first VRP run.
37620
37621 2013-02-21 Jakub Jelinek <jakub@redhat.com>
37622
37623 PR bootstrap/56258
37624 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
37625 instead of @itemx.
37626
37627 PR inline-asm/56405
37628 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
37629 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
37630
37631 2013-02-20 Jan Hubicka <jh@suse.cz>
37632
37633 PR tree-optimization/56265
37634 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
37635 when target is referenced for first time.
37636
37637 2013-02-20 Richard Biener <rguenther@suse.de>
37638
37639 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
37640 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
37641 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
37642 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
37643 not return anything.
37644 (rename_ssa_copies): Do not remove unused locals.
37645 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
37646 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
37647 * passes.c (execute_function_todo): Do not schedule unused locals
37648 removal if cleanup_tree_cfg did something.
37649 * tree-ssa-live.c (remove_unused_locals): Dump statistics
37650 about the number of removed locals.
37651
37652 2013-02-20 Richard Biener <rguenther@suse.de>
37653
37654 PR tree-optimization/56398
37655 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
37656
37657 2013-02-20 Martin Jambor <mjambor@suse.cz>
37658
37659 PR tree-optimization/55334
37660 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
37661 restricted pointers to arrays.
37662
37663 2013-02-20 Richard Biener <rguenther@suse.de>
37664 Jakub Jelinek <jakub@redhat.com>
37665
37666 PR tree-optimization/56396
37667 * tree-ssa-ccp.c (n_const_val): New static variable.
37668 (get_value): Return NULL for SSA names we don't have a lattice
37669 entry for.
37670 (ccp_initialize): Initialize n_const_val.
37671 * tree-ssa-copy.c (n_copy_of): New static variable.
37672 (init_copy_prop): Initialize n_copy_of.
37673 (get_value): Return NULL_TREE for SSA names we don't have a
37674 lattice entry for.
37675
37676 2013-02-20 Martin Jambor <mjambor@suse.cz>
37677
37678 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
37679
37680 2013-02-20 Richard Biener <rguenther@suse.de>
37681
37682 * genpreds.c (write_lookup_constraint): Do not compare first
37683 letter of the constraint again.
37684
37685 2013-02-20 Richard Biener <rguenther@suse.de>
37686
37687 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
37688 and ceil_log2.
37689 (get_use_iv_cost): Terminate hashtable walk when coming across
37690 an empty entry.
37691
37692 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
37693
37694 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
37695 reassociation for avx2 targets.
37696
37697 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37698
37699 * config/microblaze/microblaze.c: microblaze_has_clz = 0
37700 Add version check for v8.10.a to enable microblaze_has_clz
37701 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
37702 version and TARGET_PATTERN_COMPARE check
37703 * config/microblaze/microblaze.md: New clzsi2 instruction
37704
37705 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37706
37707 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
37708 function before branching.
37709
37710 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
37711
37712 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
37713 DUMP_INSN_RTX_UID.
37714 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
37715
37716 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
37717
37718 PR middle-end/55889
37719 * sel-sched.c: Include ira.h.
37720 (implicit_clobber_conflict_p): New function.
37721 (moveup_expr): Use it.
37722 * Makefile.in (sel-sched.o): Depend on ira.h.
37723
37724 2013-02-19 Richard Biener <rguenther@suse.de>
37725
37726 PR tree-optimization/56384
37727 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
37728 (vn_hash_type): Split out from ...
37729 (vn_hash_constant_with_type): ... here.
37730 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
37731 (vn_phi_eq): Compare types from vn_phi_s structure.
37732 (vn_phi_lookup): Populate vn_phi_s type.
37733 (vn_phi_insert): Likewise.
37734
37735 2013-02-19 Jakub Jelinek <jakub@redhat.com>
37736
37737 PR tree-optimization/56350
37738 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
37739 if haven't found reduction or nested cycle operand, rather than
37740 asserting we must find it.
37741
37742 PR tree-optimization/56381
37743 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
37744 to fold_build3.
37745
37746 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
37747 Jakub Jelinek <jakub@redhat.com>
37748
37749 PR target/52555
37750 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
37751 (swap_optab_enable): Same.
37752 (init_all_optabs): Use argument instead of global.
37753 * tree.h (struct tree_optimization_option): New field target_optabs.
37754 * expr.h (init_all_optabs): Add argument to prototype.
37755 (TREE_OPTIMIZATION_OPTABS): New.
37756 (save_optabs_if_changed): Protoize.
37757 * optabs.h: Declare this_fn_optabs.
37758 * optabs.c (save_optabs_if_changed): New.
37759 Declare this_fn_optabs.
37760 (init_optabs): Add argument to init_all_optabs() call.
37761 * function.c (invoke_set_current_function_hook): Handle per
37762 function optabs.
37763 * function.h (struct function): New field optabs.
37764 * config/mips/mips.c (mips_set_mips16_mode): Handle when
37765 optimization_current_node has changed.
37766 * target-globals.h (save_target_globals_default_opts): Protoize.
37767 * target-globals.c (save_target_globals_default_opts): New.
37768
37769 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37770
37771 PR target/56347
37772 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
37773 registers %fr12 and %fr12R as call used.
37774
37775 PR target/56214
37776 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
37777 and HImode, require all displacements to be an integer multiple of
37778 their mode size.
37779 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
37780 only allow QImode and HImode when reload is in progress and strict is
37781 true. Likewise for symbolic addresses. Use base14_operand to check
37782 displacements in REG+BASE addresses.
37783
37784 2013-02-18 Richard Biener <rguenther@suse.de>
37785
37786 PR tree-optimization/56366
37787 * tree-vect-loop.c (get_initial_def_for_induction): Properly
37788 handle sign-conversion of outer-loop initial induction value.
37789
37790 2013-02-18 Richard Biener <rguenther@suse.de>
37791
37792 PR middle-end/56349
37793 * cfghooks.c (merge_blocks): If we merge a latch into another
37794 block adjust references to it.
37795 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
37796 (verify_loop_structure): Verify that a recorded latch is in fact
37797 a latch.
37798
37799 2013-02-18 Richard Biener <rguenther@suse.de>
37800
37801 PR tree-optimization/56321
37802 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
37803 order SSA name release and virtual operand unlinking.
37804
37805 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37806
37807 * config/microblaze/microblaze.md (save_stack_block): Define.
37808 (restore_stack_block): Likewise.
37809
37810 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37811
37812 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
37813 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
37814 * config/microblaze/microblaze.c (microblaze_option_override):
37815 Bail out early for PIC modes when target does not support PIC.
37816
37817 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37818
37819 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
37820 Replace with a microblaze version.
37821 (microblaze_trampoline_init): Adapt for microblaze.
37822 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
37823 microblaze.
37824
37825 2013-02-16 Jakub Jelinek <jakub@redhat.com>
37826 Dodji Seketeli <dodji@redhat.com>
37827
37828 PR asan/56330
37829 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
37830 (instrument_mem_region_access): Do not forget to always put
37831 instrumentation of the of 'base' and 'base + len' in a "if (len !=
37832 0) statement, even for cases where either 'base' or 'base + len'
37833 are not instrumented -- because they have been previously
37834 instrumented. Simplify the logic by putting all the statements
37835 instrument 'base + len' inside a sequence, and then insert that
37836 sequence right before the current insertion point. Then, to
37837 instrument 'base + len', just get an iterator on that statement.
37838 And do not forget to update the pointer to iterator the function
37839 received as argument.
37840
37841 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
37842
37843 PR rtl-optimization/56348
37844 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
37845
37846 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
37847
37848 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
37849 (clean_graph_dump_file): Pass base to start_graph_dump.
37850
37851 2013-02-14 Richard Henderson <rth@redhat.com>
37852
37853 PR target/55941
37854 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
37855
37856 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
37857
37858 * collect2-aix.h: Define F_LOADONLY.
37859
37860 2013-02-14 Richard Biener <rguenther@suse.de>
37861
37862 PR lto/50494
37863 * varasm.c (output_constant_def_1): Get the decl representing
37864 the constant as argument.
37865 (output_constant_def): Wrap output_constant_def_1.
37866 (make_decl_rtl): Use output_constant_def_1 with the decl
37867 representing the constant.
37868 (build_constant_desc): Optionally re-use a decl already
37869 representing the constant.
37870 (tree_output_constant_def): Adjust.
37871
37872 2013-02-14 Dodji Seketeli <dodji@redhat.com>
37873
37874 Fix an asan crash
37875 * asan.c (instrument_builtin_call): Really put the length of the
37876 second source argument into src1_len.
37877
37878 2013-02-13 Jakub Jelinek <jakub@redhat.com>
37879
37880 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
37881 argument. If it is false, don't create edge from then_bb to
37882 fallthru_bb.
37883 (insert_if_then_before_iter): Pass true to it.
37884 (build_check_stmt): Pass false to it.
37885 (transform_statements): Flush hash table only on extended basic
37886 block boundaries, rather than at the beginning of every bb.
37887 Don't flush hash table on nonfreeing_call_p calls.
37888 * tree-flow.h (nonfreeing_call_p): New prototype.
37889 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
37890
37891 2013-02-13 David S. Miller <davem@davemloft.net>
37892
37893 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
37894
37895 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
37896
37897 PR target/56184
37898 * ira.c (max_regno_before_ira): Move from ...
37899 (ira): ... here.
37900 (fix_reg_equiv_init): Use max_regno_before_ira instead of
37901 vec_safe_length.
37902
37903 2013-02-13 Jakub Jelinek <jakub@redhat.com>
37904
37905 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
37906
37907 2013-02-13 Richard Biener <rguenther@suse.de>
37908
37909 PR lto/56295
37910 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
37911 globals in MEM_REFs.
37912
37913 2013-02-13 Richard Biener <rguenther@suse.de>
37914
37915 * loop-init.c (loop_optimizer_init): Clear loop state when
37916 re-initializing preserved loops.
37917 * loop-unswitch.c (unswitch_single_loop): Return whether
37918 we unswitched the loop. Do not verify loop state here.
37919 (unswitch_loops): When we unswitched a loop discover new loops.
37920
37921 2013-02-13 Kostya Serebryany <kcc@google.com>
37922
37923 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
37924 on x86_64 linux.
37925 * sanitizer.def: Rename __asan_init to __asan_init_v1.
37926
37927 2013-02-12 Dodji Seketeli <dodji@redhat.com>
37928
37929 Avoid instrumenting duplicated memory access in the same basic block
37930 * Makefile.in (asan.o): Add new dependency on hash-table.h
37931 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
37932 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
37933 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
37934 (free_mem_ref_resources, has_mem_ref_been_instrumented)
37935 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
37936 (get_mem_ref_of_assignment): New functions.
37937 (get_mem_refs_of_builtin_call): Extract from
37938 instrument_builtin_call and tweak a little bit to make it fit with
37939 the new signature.
37940 (instrument_builtin_call): Use the new
37941 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
37942 of is_gimple_builtin_call.
37943 (instrument_derefs, instrument_mem_region_access): Insert the
37944 instrumented memory reference into the hash table.
37945 (maybe_instrument_assignment): Renamed instrument_assignment into
37946 this, and change it to advance the iterator when instrumentation
37947 actually happened and return true in that case. This makes it
37948 homogeneous with maybe_instrument_assignment, and thus give a
37949 chance to callers to be more 'regular'.
37950 (transform_statements): Clear the memory reference hash table
37951 whenever we enter a new BB, when we cross a function call, or when
37952 we are done transforming statements. Use
37953 maybe_instrument_assignment instead of instrumentation. No more
37954 need to special case maybe_instrument_assignment and advance the
37955 iterator after calling it; it's now handled just like
37956 maybe_instrument_call. Update comment.
37957
37958 2013-02-13 Richard Biener <rguenther@suse.de>
37959
37960 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
37961 Fix loop discovery code.
37962
37963 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
37964
37965 PR inline-asm/56148
37966 * lra-constraints.c (process_alt_operands): Match early clobber
37967 operand with itself. Check conflicts with earlyclobber only if
37968 the operand is not reloaded. Prefer to reload conflicting operand
37969 if earlyclobber and matching operands are the same.
37970
37971 2013-02-12 Richard Biener <rguenther@suse.de>
37972
37973 PR lto/56297
37974 * lto-streamer-out.c (write_symbol): Do not output symbols
37975 for hard register variables.
37976
37977 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
37978
37979 PR target/54222
37980 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
37981 (umulsidi3_insn, mulsidi3_insn): New insns.
37982
37983 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
37984
37985 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
37986 (struct tune_params): Add vec_costs field.
37987 * config/arm/arm.c (arm_builtin_vectorization_cost)
37988 (arm_add_stmt_cost): New functions.
37989 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
37990 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
37991 (arm_default_vec_cost): New struct of type cpu_vec_costs.
37992 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
37993 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
37994 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
37995 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
37996
37997 2013-02-12 Richard Biener <rguenther@suse.de>
37998
37999 PR lto/56295
38000 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
38001 decls again if possible.
38002
38003 2013-02-12 Richard Biener <rguenther@suse.de>
38004
38005 PR middle-end/56288
38006 * tree-ssa.c (verify_ssa_name): Fix check, move
38007 SSA_NAME_IN_FREE_LIST check up.
38008
38009 2013-02-12 Jakub Jelinek <jakub@redhat.com>
38010 Steven Bosscher <steven@gcc.gnu.org>
38011
38012 PR rtl-optimization/56151
38013 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
38014 equal to op0 or op1, and last_insn pattern is CODE operation
38015 with MEM dest and one of the operands matches that MEM.
38016
38017 2013-02-11 Sriraman Tallam <tmsriram@google.com>
38018
38019 * doc/extend.texi: Document Function Multiversioning and "default"
38020 parameter string to target attribute.
38021 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
38022 target attribute parameter is "default".
38023 (ix86_compare_version_priority): Remove checks for target attribute.
38024 (ix86_mangle_function_version_assembler_name): Change error to sorry.
38025 Remove check for target attribute equal to NULL. Add assert.
38026 (ix86_generate_version_dispatcher_body): Change error to sorry.
38027
38028 2013-02-11 Iain Sandoe <iain@codesourcery.com>
38029 Jack Howarth <howarth@bromo.med.uc.edu>
38030 Patrick Marlier <patrick.marlier@gmail.com>
38031
38032 PR libitm/55693
38033 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
38034 define ENDFILE_SPEC as TM_DESTRUCTOR.
38035 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
38036
38037 2013-02-11 Alexander Potapenko <glider@google.com>
38038 Jack Howarth <howarth@bromo.med.uc.edu>
38039 Jakub Jelinek <jakub@redhat.com>
38040
38041 PR sanitizer/55617
38042 * config/darwin.c (cdtor_record): Rename ctor_record.
38043 (sort_cdtor_records): Rename sort_ctor_records.
38044 (finalize_dtors): New routine to sort destructors by
38045 priority before use in assemble_integer.
38046 (machopic_asm_out_destructor): Use finalize_dtors if needed.
38047
38048 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
38049
38050 PR rtl-optimization/56275
38051 * simplify-rtx.c (avoid_constant_pool_reference): Check that
38052 offset is non-negative and less than cmode size before
38053 calling simplify_subreg.
38054
38055 2013-02-11 Richard Biener <rguenther@suse.de>
38056
38057 PR tree-optimization/56264
38058 * cfgloop.h (fix_loop_structure): Adjust prototype.
38059 * loop-init.c (fix_loop_structure): Return the number of
38060 newly discovered loops.
38061 * tree-cfgcleanup.c (repair_loop_structures): When new loops
38062 are discovered, do a full loop-closed SSA rewrite.
38063
38064 2013-02-11 Richard Biener <rguenther@suse.de>
38065
38066 PR tree-optimization/56273
38067 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
38068 first VRP run.
38069 (check_array_ref): Fix missing newline in dumps.
38070 (search_for_addr_array): Likewise.
38071
38072 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
38073
38074 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
38075
38076 2013-02-09 Jakub Jelinek <jakub@redhat.com>
38077
38078 PR target/56256
38079 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
38080
38081 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
38082
38083 PR rtl-optimization/56246
38084 * lra-constraints.c (simplify_operand_subreg): Try to reuse
38085 reload pseudo.
38086 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
38087 constraints are satisfied.
38088
38089 2013-02-08 Jeff Law <law@redhat.com>
38090
38091 PR debug/53948
38092 * emit-rtl.c (reg_is_parm_p): New function.
38093 * regs.h (reg_is_parm_p): New prototype.
38094 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
38095 callee-clobbered registers.
38096
38097 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
38098
38099 PR target/56043
38100 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
38101 If there is no implicit builtin declaration, just return NULL.
38102
38103 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
38104
38105 * config/i386/sse.md (FMAMODEM): New mode iterator.
38106 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
38107 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
38108
38109 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
38110
38111 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
38112 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
38113 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
38114
38115 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
38116
38117 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
38118 (microblaze*-*-elf): Likewise.
38119 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
38120 LINK_SPEC.
38121 * config/microblaze/microblaze-c.c: Add builtin defines for
38122 _LITTLE_ENDIAN and _BIG_ENDIAN.
38123 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
38124 add to TARGET_DEFAULT flags.
38125 Expand ASM_SPEC and LINK_SPEC.
38126 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
38127 * config/microblaze/microblaze.md: Update extendsidi2 and
38128 movdi_internal instructions to use low-order / high-order reg
38129 print_operands.
38130 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
38131 options and inversemask / mask of LITTLE_ENDIAN.
38132 * config/microblaze/t-microblaze: Expand multilib options to
38133 include mlittle-endian (le) and update exceptions patterns.
38134
38135 2013-02-08 Jakub Jelinek <jakub@redhat.com>
38136
38137 PR rtl-optimization/56195
38138 * lra-constraints.c (get_reload_reg): Don't reuse regs
38139 if they have smaller mode than requested, if they have
38140 wider mode than requested, try to return a SUBREG.
38141
38142 PR tree-optimization/56250
38143 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
38144 if type is unsigned and code isn't MULT_EXPR.
38145
38146 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
38147
38148 PR tree-optimization/56064
38149 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
38150 bits according to mode.
38151 * fixed-value.h (fixed_from_double_int)
38152 (const_fixed_from_double_int): Adjust comments.
38153
38154 2013-02-08 Richard Biener <rguenther@suse.de>
38155
38156 PR lto/56231
38157 * lto-streamer.h (struct data_in): Remove current_file, current_line
38158 and current_col members.
38159 * lto-streamer-out.c (lto_output_location): Stream changed bits
38160 en-block for efficiency.
38161 * lto-streamer-in.c (clear_line_info): Remove.
38162 (lto_input_location): Cache current file, line and column
38163 globally via local statics. Read changed bits en-block.
38164 (input_function): Do not call clear_line_info.
38165 (lto_read_body): Likewise.
38166 (lto_input_toplevel_asms): Likewise.
38167
38168 2013-02-08 Michael Matz <matz@suse.de>
38169
38170 PR tree-optimization/52448
38171 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
38172 (nt_call_phase): New static.
38173 (add_or_mark_expr): Only mark accesses with newer phase than any
38174 call seen.
38175 (nonfreeing_call_p): New.
38176 (nt_init_block): Update nt_call_phase, mark blocks as visited.
38177 (nt_fini_block): Keep blocks marked as visited.
38178 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
38179
38180 2013-02-08 Richard Biener <rguenther@suse.de>
38181
38182 * ira.c (ira): Free broken dominator information.
38183
38184 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
38185
38186 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
38187
38188 2013-02-08 Marek Polacek <polacek@redhat.com>
38189
38190 * cfgloop.c (verify_loop_structure): Add more checking of headers.
38191
38192 2013-02-08 Richard Biener <rguenther@suse.de>
38193
38194 PR middle-end/56181
38195 * cfgloop.h (flow_loops_find): Adjust.
38196 (bb_loop_header_p): Declare.
38197 * cfgloop.c (bb_loop_header_p): New function split out from ...
38198 (flow_loops_find): ... here. Adjust function signature,
38199 support incremental loop structure update.
38200 (verify_loop_structure): Cleanup. Verify a loop is a loop.
38201 * cfgloopmanip.c (fix_loop_structure): Move ...
38202 * loop-init.c (fix_loop_structure): ... here.
38203 (apply_loop_flags): Split out from ...
38204 (loop_optimizer_init): ... here.
38205 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
38206 in incremental mode, only remove dead loops here.
38207
38208 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
38209
38210 PR target/54222
38211 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
38212 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
38213 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
38214 (*round<mode>3.libgcc): New insns for fixed-modes.
38215 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
38216 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
38217 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
38218 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
38219 implementations. Define to __builtin_avr_absFX,
38220 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
38221 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
38222 __builtin_avr_countlsFX, respectively.
38223 * config/avr/avr-c.c (target.h): Include it.
38224 (enum avr_builtin_id): New enum.
38225 (avr_resolve_overloaded_builtin): New static function.
38226 (avr_register_target_pragmas): Use it to set
38227 targetm.resolve_overloaded_builtin.
38228 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
38229 tree nodes used by DEF_BUILTIN.
38230 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
38231 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
38232 <AVR_BUILTIN_xxBITS>: Same.
38233
38234 2013-02-08 Richard Biener <rguenther@suse.de>
38235
38236 * cfgloop.c (verify_loop_structure): Properly handle
38237 a loop exiting to another loop header.
38238 * ira-int.h (ira_loops): Remove.
38239 * ira.c (ira_loops): Remove.
38240 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
38241 (do_reload): Use loop_optimizer_finalize.
38242 * ira-build.c (create_loop_tree_nodes): Use get_loops and
38243 number_of_loops to access the loop tree.
38244 (more_one_region_p): Likewise.
38245 (finish_loop_tree_nodes): Likewise.
38246 (rebuild_regno_allocno_maps): Likewise.
38247 (mark_loops_for_removal): Likewise.
38248 (mark_all_loops_for_removal): Likewise.
38249 (remove_unnecessary_regions): Likewise.
38250 (ira_build): Likewise.
38251 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
38252
38253 2013-02-08 Richard Biener <rguenther@suse.de>
38254
38255 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
38256 * ipa-pure-const.c (analyze_function): Avoid calling
38257 mark_irreducible_loops twice.
38258 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
38259
38260 2013-02-07 David S. Miller <davem@davemloft.net>
38261
38262 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
38263 on 'reg'.
38264 * var-tracking.c (vt_add_function_parameter): Test the presence of
38265 HAVE_window_save properly and do not remap argument registers when
38266 we have a leaf function.
38267
38268 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
38269
38270 PR bootstrap/56227
38271 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
38272 instead of "ll".
38273 * config/i386/i386.c (ix86_print_operand): Ditto.
38274
38275 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
38276
38277 * lra-constraints.c (process_alt_operands): Fix recently added comment.
38278
38279 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
38280
38281 PR rtl-optimization/56225
38282 * lra-constraints.c (process_alt_operands): Check that reload hard
38283 reg can hold value for strict_low_part.
38284
38285 2013-02-07 Jakub Jelinek <jakub@redhat.com>
38286
38287 PR debug/56154
38288 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
38289 dwarf2out_end_function.
38290 (in_first_function_p, maybe_at_text_label_p,
38291 first_loclabel_num_not_at_text_label): New variables.
38292 (dwarf2out_var_location): In the first function find out
38293 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
38294 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
38295 functions.
38296
38297 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
38298
38299 PR rtl-optimization/56178
38300 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
38301 SUBREG of a register. Tidy up related block of code.
38302 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
38303 note if the source is a register or a SUBREG of a register.
38304
38305 2013-02-07 Jakub Jelinek <jakub@redhat.com>
38306
38307 PR target/56228
38308 * config/rs6000/rs6000.md (ptrm): New mode attr.
38309 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
38310 call_value_indirect_aix<pttrsize>,
38311 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
38312 m in constraints.
38313
38314 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
38315
38316 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
38317 if -bnortl. Convert to strcmp and strncmp.
38318
38319 2013-02-07 Alan Modra <amodra@gmail.com>
38320
38321 PR target/54009
38322 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
38323 addresses won't wrap when offsetting.
38324 (rs6000_secondary_reload): Provide secondary reloads needed for
38325 wrapping LO_SUM addresses.
38326
38327 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
38328
38329 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
38330 MACH, just __MACH__.
38331
38332 2013-02-06 Richard Biener <rguenther@suse.de>
38333
38334 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
38335 instead of calling fix_loop_structure.
38336
38337 2013-02-06 Jakub Jelinek <jakub@redhat.com>
38338
38339 PR middle-end/56217
38340 * omp-low.c (use_pointer_for_field): Return false if
38341 lower_send_shared_vars doesn't generate any copy-out code.
38342
38343 2013-02-06 Tom de Vries <tom@codesourcery.com>
38344
38345 PR rtl-optimization/56131
38346 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
38347 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
38348 of the label is NULL. Add comment.
38349
38350 2013-02-05 Jakub Jelinek <jakub@redhat.com>
38351
38352 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
38353
38354 PR sanitizer/55374
38355 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
38356 (STATIC_LIBTSAN_LIBS): Likewise.
38357 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
38358 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
38359 is defined, don't add anything else beyond that.
38360 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
38361 (LINK_COMMAND_SPEC): Use them.
38362
38363 PR tree-optimization/56205
38364 * tree-stdarg.c (check_all_va_list_escapes): Return true if
38365 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
38366 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
38367
38368 2013-02-05 Richard Biener <rguenther@suse.de>
38369
38370 PR tree-optimization/53342
38371 PR tree-optimization/53185
38372 * tree-vectorizer.h (vect_check_strided_load): Remove.
38373 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
38374 not disallow peeling for vectorized strided loads.
38375 (vect_check_strided_load): Make static and simplify.
38376 (vect_analyze_data_refs): Adjust.
38377 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
38378 correctly when vectorizing strided loads.
38379
38380 2013-02-05 Richard Biener <rguenther@suse.de>
38381
38382 * doc/install.texi: Refer to ISL, not PPL.
38383
38384 2013-02-05 Jan Hubicka <jh@suse.cz>
38385
38386 PR tree-optimization/55789
38387 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
38388
38389 2013-02-05 Jan Hubicka <jh@suse.cz>
38390
38391 PR tree-optimization/55789
38392 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
38393 the dead call anyway.
38394
38395 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
38396
38397 PR sanitizer/55374
38398 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
38399
38400 2013-02-04 Alexander Potapenko <glider@google.com>
38401 Jack Howarth <howarth@bromo.med.uc.edu>
38402 Jakub Jelinek <jakub@redhat.com>
38403
38404 PR sanitizer/55617
38405 * config/darwin.c (sort_ctor_records): Stabilized qsort
38406 on constructor priority by using original position.
38407 (finalize_ctors): New routine to sort constructors by
38408 priority before use in assemble_integer.
38409 (machopic_asm_out_constructor): Use finalize_ctors if needed.
38410
38411 2013-02-04 Jakub Jelinek <jakub@redhat.com>
38412
38413 PR libstdc++/54314
38414 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
38415 about visibility on artificial decls.
38416 * config/sol2.c (solaris_assemble_visibility): Likewise.
38417
38418 2013-02-04 Kai Tietz <ktietz@redhat.com>
38419
38420 PR target/56186
38421 * config/i386/i386.c (function_value_ms_64): Add additional valtype
38422 argument and improve checking of return-argument types for 16-byte
38423 modes.
38424 (ix86_function_value_1): Add additional valtype argument on call
38425 of function_value_64.
38426 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
38427 handling infunction_value_64 function.
38428
38429 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
38430
38431 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
38432
38433 2013-02-04 Richard Biener <rguenther@suse.de>
38434
38435 PR tree-optimization/56188
38436 * tree-ssa-structalias.c (label_visit): Consider case with
38437 initially non-empty points-to set.
38438 (perform_var_substitution): Dump node mapping and clean up.
38439
38440 2013-02-04 Richard Guenther <rguenther@suse.de>
38441
38442 PR lto/56168
38443 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
38444 node prevail as last resort.
38445 (lto_symtab_merge_decls): Remove guard on LTRANS here.
38446 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
38447
38448 2013-02-04 Richard Biener <rguenther@suse.de>
38449
38450 PR tree-optimization/56113
38451 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
38452 Merge into ...
38453 (equiv_class_lookup_or_add): ... this.
38454 (label_visit): Adjust and fix error in previous patch.
38455 (perform_var_substitution): Adjust.
38456
38457 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
38458
38459 * config/sh/divtab.c: Fix formatting and comments throughout the file.
38460 * config/sh/sh4-300.md: Likewise.
38461 * config/sh/sh4a.md: Likewise.
38462 * config/sh/constraints.md: Likewise.
38463 * config/sh/sh.md: Likewise.
38464 * config/sh/netbsd-elf.h: Likewise.
38465 * config/sh/predicates.md: Likewise.
38466 * config/sh/sh-protos.h: Likewise.
38467 * config/sh/ushmedia.h: Likewise.
38468 * config/sh/linux.h: Likewise.
38469 * config/sh/sh.c: Likewise.
38470 * config/sh/superh.h: Likewise.
38471 * config/sh/elf.h: Likewise.
38472 * config/sh/sh4.md: Likewise.
38473 * config/sh/sh.h: Likewise.
38474
38475 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38476
38477 * config/pa/constraints.md: Adjust unused letters. Change "T"
38478 constraint to match_test floating_point_store_memory_operand().
38479 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
38480 (base14_operand): New.
38481 (floating_point_store_memory_operand): New.
38482 (integer_store_memory_operand): Revise to use base14_operand and
38483 reg_plus_base_memory_operand.
38484 (move_dest_operand): Allow symbolic_memory_operands.
38485 (symbolic_memory_operand): Check for LO_SOM.
38486 (symbolic_operand): Change default case to break.
38487 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
38488 CONST_DOUBLE values to be reloaded by putting them into memory when
38489 the destination is a floating point register.
38490 (movdf): Remove code to handle CONST_DOUBLE.
38491 (movsf): Likewise.
38492 (reload_indf_r1): New.
38493 (reload_insf_r1): New.
38494 Consistently use "Q" and "T" constraints with integer and floating
38495 point move instructions, respectively.
38496 (movdi): Remove FAIL.
38497 Change predicate for source operand unamed DImode move from
38498 general_operand to move_src_operand.
38499 (umulsidi3): Change predicate for destination operand to
38500 register_operand.
38501 Likewise for similar unamed patterns.
38502 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
38503 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
38504 (hppa_legitimize_address): Simplify mask calculation.
38505 (pa_emit_move_sequence): Revised handling of secondary reloads from
38506 REG+D addresses for floating point loads and stores. Directly handle
38507 loading CONST0_RTX (mode) to a floating point register.
38508 (pa_secondary_reload): Handle reloading DF and SFmode constant values
38509 to floating point registers. Don't restrict secondary reloads to
38510 floating point registers to integer modes. Revise some comments and
38511 cleanup some code.
38512 (TARGET_LEGITIMATE_ADDRESS_P): Define.
38513 (pa_legitimate_address_p): New.
38514 (pa_legitimize_reload_address): New.
38515 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
38516 (STRICT_REG_OK_FOR_BASE_P): New.
38517 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
38518 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
38519
38520 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
38521 Andrew Dixie <andrewd@gentrack.com>
38522
38523 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
38524 flag set.
38525
38526 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
38527
38528 * expmed.c (extract_bit_field_1): Pass the full width of the
38529 structure to get_best_reg_extraction_insn.
38530
38531 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
38532
38533 PR target/54601
38534 * configure.ac (use_cxa_atexit): Add AIX.
38535 * configure: Regenerate.
38536
38537 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
38538
38539 2013-02-01 Jakub Jelinek <jakub@redhat.com>
38540
38541 PR debug/54793
38542 * final.c (need_profile_function): New variable.
38543 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
38544 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
38545 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
38546 notes, targetm.asm_out.function_prologue doesn't emit anything,
38547 HAVE_prologue and profiler should be emitted before prologue,
38548 set need_profile_function instead of emitting it.
38549 (final_scan_insn): If need_profile_function, emit
38550 profile_function on the first NOTE_INSN_BASIC_BLOCK or
38551 NOTE_INSN_FUNCTION_BEG note.
38552
38553 2013-02-01 Richard Henderson <rth@redhat.com>
38554
38555 * config/rs6000/rs6000.md (smulditi3): New.
38556 (umulditi3): New.
38557
38558 * config/alpha/alpha.md (umulditi3): New.
38559
38560 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
38561
38562 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
38563 (ASM_OUTPUT_ALIGNED_LOCAL): New.
38564
38565 2013-02-01 Richard Biener <rguenther@suse.de>
38566
38567 PR tree-optimization/56113
38568 * tree-ssa-structalias.c (label_visit): Reduce work for
38569 single-predecessor nodes.
38570
38571 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
38572
38573 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
38574 range isn't testing for zero.
38575
38576 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
38577
38578 PR middle-end/56113
38579 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
38580
38581 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
38582 Nick Clifton <nickc@redhat.com>
38583
38584 * config/v850/constraints.md (Q): Define as a memory constraint.
38585 * config/v850/predicates.md (label_ref_operand): New predicate.
38586 (e3v5_shift_operand): New predicate.
38587 (ior_operator): New predicate.
38588 * config/v850/t-v850: Add e3v5 multilib.
38589 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
38590 (v850_gen_movdi): Prototype.
38591 * config/v850/v850.c: Add support for e3v5 architecture.
38592 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
38593 TARGET_V850E_UP.
38594 (construct_save_jarl): Add e3v5 long JARL support.
38595 (v850_adjust_insn_length): New function. Adjust length of call
38596 insns when using e3v5 instructions.
38597 (v850_gen_movdi): New function: Generate instructions to move a
38598 DImode value.
38599 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
38600 (CPP_SPEC): Define __v850e3v5__ as appropriate.
38601 (TARGET_USE_FPU): Enable for e3v5.
38602 (CONST_OK_FOR_W): New macro.
38603 (ADJUST_INSN_LENGTH): Define.
38604 * config/v850/v850.md (UNSPEC_LOOP): Define.
38605 (attr cpu): Add v850e3v5.
38606 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
38607 (movdi): New pattern.
38608 (movdi_internal): New pattern.
38609 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
38610 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
38611 (cstoresf4): Likewise.
38612 (cstoredf4): Likewise.
38613 (insv): New pattern.
38614 (rotlso3_a): New pattern.
38615 (rotlsi3_b): New pattern
38616 (rotlsi3_v850e3v5): New pattern.
38617 (doloop_begin): New pattern.
38618 (fix_loop_counter): New pattern.
38619 (doloop_end): New pattern.
38620 (branch_normal): Add e3v5 long branch support.
38621 (branch_invert): Likewise.
38622 (branch_z_normal): Likewise.
38623 (branch_z_invert): Likewise.
38624 (branch_nz_normal): Likewise.
38625 (branch_nz_invert): Likewise.
38626 (call_internal_short): Add e3v5 register-indirect JARL support.
38627 (call_internal_long): Likewise.
38628 (call_value_internal_short): Likewise.
38629 (call_value_internal_long): Likewise.
38630 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
38631 (mloop): New option.
38632 * config.gcc: Add support for configuring v840e3v5 target.
38633 * doc/invoke.texi: Document new v850 specific command line options.
38634
38635 2013-01-31 Paul Koning <ni1d@arrl.net>
38636
38637 PR debug/55059
38638 PR debug/54508
38639 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
38640 children if parent is a class.
38641 (prune_unused_types_prune): Don't add DW_AT_declaration.
38642
38643 2013-01-31 Richard Biener <rguenther@suse.de>
38644
38645 PR tree-optimization/56157
38646 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
38647 match up operand with SLP child.
38648
38649 2013-01-31 Jason Merrill <jason@redhat.com>
38650
38651 PR debug/54410
38652 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
38653 parameters the first time.
38654 (gen_scheduled_generic_parms_dies): Check completeness here.
38655
38656 2013-01-31 Richard Biener <rguenther@suse.de>
38657
38658 PR middle-end/53073
38659 * common.opt (faggressive-loop-optimizations): New flag,
38660 enabled by default.
38661 * doc/invoke.texi (faggressive-loop-optimizations): Document.
38662 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
38663 infer_loop_bounds_from_undefined by it.
38664
38665 2013-01-31 Richard Biener <rguenther@suse.de>
38666
38667 PR tree-optimization/56150
38668 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
38669 visit virtual operands.
38670 (find_uses_to_rename_bb): Likewise.
38671
38672 2013-01-31 Richard Biener <rguenther@suse.de>
38673
38674 PR tree-optimization/56150
38675 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
38676 mixed store non-store stmts.
38677
38678 2013-01-30 Jakub Jelinek <jakub@redhat.com>
38679
38680 PR sanitizer/55374
38681 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
38682 LIBASAN_EARLY_SPEC is defined.
38683 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
38684 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
38685 before %o.
38686 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
38687
38688 PR c++/55742
38689 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
38690 invalid args instead of ICEing on it.
38691 (ix86_valid_target_attribute_tree): Return error_mark_node if
38692 ix86_valid_target_attribute_inner_p failed.
38693 (ix86_valid_target_attribute_p): Return false only if
38694 ix86_valid_target_attribute_tree returned error_mark_node. Allow
38695 target("default") attribute.
38696 (sorted_attr_string): Change argument from const char * to tree,
38697 merge in all target attribute arguments rather than just one.
38698 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
38699 instead of free. Avoid using strcat.
38700 (ix86_mangle_function_version_assembler_name): Mangle
38701 target("default") as if no target attribute is present. Adjust
38702 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
38703 instead of xmalloc and XDELETEVEC instead of free.
38704 (ix86_function_versions): Don't return true if one of the decls
38705 doesn't have target attribute. If they don't and one of the decls
38706 is DECL_FUNCTION_VERSIONED, report an error. Adjust
38707 sorted_attr_string caller. Use XDELETEVEC instead of free.
38708 (ix86_supports_function_versions): Remove.
38709 (make_name): Fix up formatting.
38710 (make_dispatcher_decl): Remove resolver_name and its initialization.
38711 Avoid leaking memory.
38712 (is_function_default_version): Return true if there is
38713 target("default") attribute rather than no target attribute at all.
38714 (make_resolver_func): Avoid leaking memory.
38715 (ix86_generate_version_dispatcher_body): Likewise.
38716 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
38717 * target.def (supports_function_versions): Remove.
38718 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
38719 * doc/tm.texi: Regenerated.
38720
38721 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
38722
38723 PR rtl-optimization/56144
38724 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
38725 for values with side effects.
38726
38727 2013-01-30 Richard Biener <rguenther@suse.de>
38728
38729 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
38730 (sparseset_pop): Likewise.
38731 * cfganal.c (compute_idf): Likewise. Increase work-stack size
38732 to be able to use quick_push in the worker loop.
38733
38734 2013-01-30 Marek Polacek <polacek@redhat.com>
38735
38736 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
38737
38738 2013-01-30 Richard Biener <rguenther@suse.de>
38739
38740 PR lto/56147
38741 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
38742
38743 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
38744
38745 PR tree-optimization/56064
38746 * fixed-value.c (fixed_from_double_int): New function.
38747 * fixed-value.h (fixed_from_double_int): New prototype.
38748 (const_fixed_from_double_int): New static inline function.
38749 * fold-const.c (native_interpret_fixed): New static function.
38750 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
38751 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
38752 (native_encode_fixed): New static function.
38753 (native_encode_expr) <FIXED_CST>: Use it.
38754 (native_interpret_int): Move double_int worker code to...
38755 * double-int.c (double_int::from_buffer): ...this new static method.
38756 * double-int.h (double_int::from_buffer): Prototype it.
38757
38758 2013-01-30 Richard Biener <rguenther@suse.de>
38759
38760 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
38761 New pointer-map and obstack.
38762 (init_alias_vars): Allocate pointer-map and obstack.
38763 (delete_points_to_sets): Free them.
38764 (find_what_var_points_to): Cache result.
38765 (find_what_p_points_to): Adjust for changed interface of
38766 find_what_var_points_to.
38767 (compute_points_to_sets): Likewise.
38768 (ipa_pta_execute): Likewise.
38769
38770 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38771
38772 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
38773 * configure: Regenerate.
38774 * config.in: Regenerate.
38775 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
38776 #nobits/#progbits if supported.
38777
38778 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
38779
38780 PR target/56121
38781 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
38782 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
38783 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
38784
38785 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38786
38787 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
38788 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
38789
38790 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38791
38792 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
38793 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
38794
38795 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38796
38797 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
38798 declaration.
38799 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
38800 * config/arm/cortex-a7.md: New bypasses using
38801 arm_mac_accumulator_is_result.
38802
38803 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38804
38805 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
38806 (cortex_a7_neon_mla): Likewise.
38807 (cortex_a7_fpfmad): New reservation.
38808 (cortex_a7_fpmacs): Use ffmas and update required units.
38809 (cortex_a7_fpmuld): Update required units and latency.
38810 (cortex_a7_fpmacd): Likewise.
38811 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
38812 (cortex_a7_neon). Likewise.
38813 (bypass) Update participating units.
38814
38815 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38816
38817 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
38818 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
38819 from fmac to ffma.
38820 * config/arm/vfp11.md (vfp_farith): Use ffmas.
38821 (vfp_fmul): Use ffmad.
38822 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
38823 (cortex_r4_fmacd): Use ffmad.
38824 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
38825 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
38826 (cortex_a9_fmacd): Use ffmad.
38827 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
38828 (cortex_a8_vfp_macd): Use ffmad.
38829 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
38830 (cortex_a5_fpmacd): Use ffmad.
38831 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
38832 (cortex_a15_vfp_macd): Use ffmad.
38833 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
38834
38835 2013-01-29 Jason Merrill <jason@redhat.com>
38836
38837 PR libstdc++/54314
38838 * varasm.c (default_assemble_visibility): Don't warn about
38839 visibility on artificial decls.
38840
38841 2013-01-29 Richard Biener <rguenther@suse.de>
38842
38843 PR tree-optimization/56113
38844 * tree-ssa-structalias.c (equiv_class_lookup): Also return
38845 the bitmap leader.
38846 (label_visit): Free duplicate bitmaps and record the leader instead.
38847 (perform_var_substitution): Adjust.
38848
38849 2013-01-29 Richard Biener <rguenther@suse.de>
38850
38851 PR tree-optimization/55270
38852 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
38853 the CFG, schedule loops for fixup.
38854
38855 2013-01-29 Nick Clifton <nickc@redhat.com>
38856
38857 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
38858 SP_REG.
38859
38860 2013-01-28 Leif Ekblad <leif@rdos.net>
38861
38862 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
38863 * config/i386/i386.h (TARGET_RDOS): New macro.
38864 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
38865 * config/i386/i386.c (ix86_option_override_internal): For 64bit
38866 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
38867 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
38868 DEFAULT_LARGE_SECTION_THRESHOLD.
38869 * config/i386/i386.md (R14_REG, R15_REG): New constants.
38870 * config/i386/rdos.h: New file.
38871 * config/i386/rdos64.h: New file.
38872
38873 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
38874
38875 PR other/54814
38876 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
38877 TEST_HARD_REG_BIT.
38878
38879 2013-01-28 Jakub Jelinek <jakub@redhat.com>
38880
38881 PR rtl-optimization/56117
38882 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
38883 call cselib_lookup_from_insn on the MEM before calling
38884 add_insn_mem_dependence.
38885
38886 2013-01-28 Richard Biener <rguenther@suse.de>
38887
38888 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
38889 to a stmt that didn't have one.
38890 (copy_phis_for_bb): Likewise for PHI arguments.
38891 (copy_debug_stmt): Likewise for debug stmts.
38892
38893 2013-01-28 Richard Biener <rguenther@suse.de>
38894
38895 PR tree-optimization/56034
38896 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
38897 (partition_builtin_p): Adjust.
38898 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
38899 it is the last partition.
38900 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
38901 up the vertex for the definition.
38902 (classify_partition): Classify whether a partition is a
38903 PKIND_REDUCTION, thus has uses outside of the loop.
38904 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
38905 Merge all PKIND_REDUCTION partitions into the last partition.
38906 (tree_loop_distribution): Seed partitions from reductions as well.
38907
38908 2013-01-28 Jakub Jelinek <jakub@redhat.com>
38909
38910 PR tree-optimization/56125
38911 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
38912 pow(x,c) into sqrt(x) * powi(x, n/2) or
38913 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
38914 optimizing for size.
38915 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
38916 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
38917 integer.
38918
38919 PR tree-optimization/56094
38920 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
38921 to UNKNOWN_LOCATION while gimplifying expr.
38922
38923 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
38924
38925 PR target/56114
38926 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
38927 operand 0 in movabs insn template for -masm=intel asm alternative.
38928 (*movabs<mode>_2): Ditto for operand 1.
38929
38930 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
38931
38932 PR target/54663
38933 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
38934 of microblaze-c.o
38935
38936 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
38937
38938 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
38939 tm_file.
38940
38941 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
38942
38943 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
38944 Undef to avoid warning.
38945
38946 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
38947
38948 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
38949 * configure: Regenerate.
38950
38951 2013-01-25 Jakub Jelinek <jakub@redhat.com>
38952
38953 PR tree-optimization/56098
38954 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
38955 for stmts with volatile ops.
38956 (cond_store_replacement): Don't optimize if assign has volatile ops.
38957 (cond_if_else_store_replacement_1): Don't optimize if either
38958 then_assign or else_assign have volatile ops.
38959 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
38960 volatile ops.
38961
38962 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
38963
38964 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
38965
38966 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
38967
38968 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
38969 missing ':' in asm example.
38970
38971 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
38972
38973 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
38974 entries into lane and laneq entries.
38975 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
38976 Remove AdvSIMD scalar modes.
38977 (aarch64_sq<r>dmulh_laneq<mode>): New.
38978 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
38979 modes.
38980 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
38981 builtin implementations to relfect changes in RTL in aarch64-simd.md.
38982 * config/aarch64/iterators.md (VCOND): New.
38983 (VCONQ): New.
38984
38985 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
38986
38987 PR target/54222
38988 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
38989 Add NULL LIBNAME argument to existing definitions.
38990 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
38991 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
38992 * config/avr/avr.c (DEF_BUILTIN): Same.
38993 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
38994 (avr_expand_builtin): Expand to a vanilla call if a libgcc
38995 implementation is available (DECL_ASSEMBLER_NAME is set).
38996 (avr_fold_absfx): New static function.
38997 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
38998 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
38999 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
39000 AVR_BUILTIN_ABSLLK.
39001 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
39002 (abshk, absk, abslk, absllk): Provide as static inline functions.
39003
39004 2013-01-25 Marek Polacek <polacek@redhat.com>
39005
39006 PR tree-optimization/56035
39007 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
39008
39009 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
39010
39011 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
39012 (*movtf_internal_rex64): Add (!o,C) alternative
39013 (*movxf_internal_rex64): Ditto.
39014 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
39015
39016 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
39017
39018 * doc/invoke.texi: fix typo.
39019 * doc/objc.texi: fix typo.
39020
39021 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
39022
39023 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
39024 for the first two alternatives.
39025
39026 2013-01-24 Diego Novillo <dnovillo@google.com>
39027
39028 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
39029 (ggc-zone.o): Remove.
39030 * configure.ac: Remove option --with-gc.
39031 * configure: Re-generate.
39032 * doc/install.texi: Remove documentation for --with-gc.
39033 * gengtype.c (write_enum_defn): Remove. Update all users.
39034 (write_Types_process_field): Remove generation of gt_e_* argument.
39035 (output_type_enum): Remove. Update all users.
39036 (write_enum_defn): Remove. Update all users.
39037 (enum alloc_zone): Remove. Update all users.
39038 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
39039 * ggc-common.c (ggc_splay_alloc): Remove first argument.
39040 Update all callers.
39041 (struct ptr_data): Remove field TYPE. Update all users.
39042 (gt_pch_note_object): Remove argument TYPE. Update all users.
39043 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
39044 Update all users.
39045 * ggc-none.c (ggc_alloc_typed_stat): Remove.
39046 (struct alloc_zone): Remove.
39047 (ggc_internal_alloc_zone_stat): Remove.
39048 (ggc_internal_cleared_alloc_zone_stat): Remove.
39049 * ggc-page.c (ggc_alloc_typed_stat): Remove.
39050 (ggc_pch_count_object): Remove last argument. Update all users.
39051 (ggc_pch_alloc_object): Remove last argument. Update all users.
39052 (struct alloc_zone): Remove.
39053 * ggc-zone.c: Remove.
39054 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
39055 (struct alloc_zone): Remove.
39056 (ggc_alloc_typed_stat): Remove.
39057 (ggc_alloc_typed): Remove.
39058 (ggc_splay_alloc): Remove first argument.
39059 (rtl_zone): Remove. Update all users.
39060 (tree_zone): Remove. Update all users.
39061 (tree_id_zone): Remove. Update all users.
39062 (ggc_internal_zone_alloc_stat): Remove. Update all users.
39063 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
39064 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
39065 * tree-ssanames.c: Remove references to zone allocator in comments.
39066
39067 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
39068
39069 * config/avr/avr.c (avr_out_fract): Make register numbers that
39070 might be outside of source operand signed.
39071
39072 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
39073
39074 * config/i386/constraints.md (Yf): New constraint.
39075 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
39076 of f constraint to conditionaly disable x87 register preferences.
39077 (*movdf_internal): Ditto.
39078 (*movsf_internal): Ditto.
39079
39080 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
39081
39082 PR inline-asm/55934
39083 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
39084 that have operands with impossible constraints.
39085 Add a FIXME for a speed-up opportunity.
39086 * lra-constraints.c (process_alt_operands): Verify that a class
39087 selected from constraints on asms is valid for the operand mode.
39088 (curr_insn_transform): Remove incorrect comment.
39089
39090 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
39091
39092 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
39093 TOC operand is a valid symbol ref in the constant pool.
39094
39095 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
39096
39097 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
39098
39099 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
39100
39101 PR target/54222
39102 * config/avr/stdfix.h: New file.
39103 * t-avr (stdfix-gcc.h): New rule to build it.
39104 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
39105
39106 2013-01-23 Kostya Serebryany <kcc@google.com>
39107
39108 * config/darwin.h: remove dependency on
39109 CoreFoundation (asan on Mac OS).
39110
39111 2013-01-23 Jakub Jelinek <jakub@redhat.com>
39112
39113 PR target/49069
39114 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
39115 instead of cmpdi_operand for first comparison operand.
39116 Don't assert that comparison operands aren't both constants.
39117
39118 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
39119
39120 * doc/install.texi (Downloading the Source): Update references to
39121 downloading separate components.
39122
39123 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
39124
39125 * doc/extend.texi (__int128): Improve grammar.
39126
39127 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
39128
39129 PR target/56028
39130 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
39131 alternative to (o,r).
39132 (*movdi_internal_rex64): Remove (!o,n) alternative.
39133 (DImode immediate->memory splitter): Remove.
39134 (DImode immediate->memory peephole2): Remove.
39135 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
39136 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
39137 alternative to (!o,*r).
39138 (*movtf_internal_sse): New pattern.
39139 (*movxf_internal_rex64): New pattern.
39140 (*movxf_internal): Disable for TARGET_64BIT.
39141 (*movdf_internal_rex64): Remove (!o,F) alternative.
39142
39143 2013-01-22 Jakub Jelinek <jakub@redhat.com>
39144
39145 PR middle-end/56074
39146 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
39147 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
39148 * tree-vect-loop-manip.c (find_loop_location): Also ignore
39149 stmt locations where LOCATION_LOCUS of the stmt location is
39150 UNKNOWN_LOCATION or BUILTINS_LOCATION.
39151
39152 PR target/55686
39153 * config/i386/i386.md (UNSPEC_STOS): New.
39154 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
39155 *strsetqi_1): Add UNSPEC_STOS.
39156
39157 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
39158
39159 PR c++/56067
39160 * doc/invoke.texi: Remove left over -Wsynth example.
39161
39162 2013-01-21 Jakub Jelinek <jakub@redhat.com>
39163
39164 PR tree-optimization/56051
39165 * fold-const.c (fold_binary_loc): Don't fold
39166 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
39167 a narrowing conversion, or widening conversion from signed
39168 to unsigned.
39169
39170 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
39171
39172 PR rtl-optimization/56023
39173 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
39174 dependent on debug instruction.
39175
39176 2013-01-21 Martin Jambor <mjambor@suse.cz>
39177
39178 PR middle-end/56022
39179 * function.c (allocate_struct_function): Call
39180 invoke_set_current_function_hook earlier.
39181
39182 2013-01-21 Jakub Jelinek <jakub@redhat.com>
39183
39184 * reload1.c (init_reload): Only initialize reload_obstack
39185 during the first call.
39186
39187 2013-01-21 Marek Polacek <polacek@redhat.com>
39188
39189 * cfgloop.c (verify_loop_structure): Fix up grammar.
39190
39191 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
39192
39193 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
39194 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
39195
39196 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
39197
39198 PR target/56058
39199 * config/arm/marvell-pj4.md: Update copyright year.
39200 Fix up use of alu to alu_reg and simple_alu_imm.
39201
39202 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
39203
39204 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
39205
39206 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
39207
39208 PR target/55433
39209 * lra-constraints.c (curr_insn_transform): Don't reuse original
39210 insn for secondary memory move when memory mode should be different.
39211
39212 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39213
39214 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
39215 atomic_storedi_1): New patterns.
39216
39217 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
39218
39219 btver2 pipeline descriptions.
39220 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
39221 descriptions.
39222 * config/i386/i386.md (btver2_decode): New type attributes.
39223 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
39224 type attributes.
39225 * config/i386/btver2.md: New file describing btver2 pipelines.
39226
39227 2013-01-19 Andrew Pinski <apinski@cavium.com>
39228
39229 PR tree-optimization/52631
39230 * tree-ssa-sccvn (visit_use): Before looking up the original
39231 statement, try looking up the simplified expression.
39232
39233 2013-01-19 Anthony Green <green@moxielogic.com>
39234
39235 * config/moxie/moxie.c (moxie_expand_prologue): Set
39236 current_function_static_stack_size.
39237
39238 2013-01-18 Jakub Jelinek <jakub@redhat.com>
39239
39240 PR tree-optimization/56029
39241 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
39242 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
39243
39244 2013-01-18 Sharad Singhai <singhai@google.com>
39245
39246 PR tree-optimization/55995
39247 * dumpfile.c (dump_loc): Print location only if available.
39248 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
39249
39250 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
39251
39252 PR target/55433
39253 * lra-constraints.c (curr_insn_transform): Reuse original insn for
39254 secondary memory move.
39255 (inherit_reload_reg): Use rclass instead of cl for
39256 check_secondary_memory_needed_p.
39257
39258 2013-01-18 Jakub Jelinek <jakub@redhat.com>
39259
39260 PR middle-end/56015
39261 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
39262 the case where writing real complex part of target modifies op1.
39263
39264 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
39265
39266 * config/aarch64/aarch64-simd.md
39267 (aarch64_vcond_internal<mode>): Handle unordered cases.
39268 * config/aarch64/iterators.md (v_cmp_result): New.
39269
39270 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
39271 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
39272
39273 * config/arm/marvell-pj4.md: New file.
39274 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
39275 * config/arm/arm.md (generic_sched): Add marvell_pj4.
39276 (generic_vfp): Likewise.
39277 * config/arm/arm-cores.def: Add marvell-pj4.
39278 * config/arm/arm-tune.md: Regenerate.
39279 * config/arm/arm-tables.opt: Regenerate.
39280 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
39281 * doc/invoke.texi: Document marvell-pj4.
39282
39283 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
39284
39285 * config/aarch64/arm_neon.h: Map scalar types to standard types.
39286
39287 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
39288
39289 PR debug/54114
39290 PR debug/54402
39291 PR debug/49888
39292 * var-tracking.c (negative_power_of_two_p): New.
39293 (global_get_addr_cache, local_get_addr_cache): New.
39294 (get_addr_from_global_cache, get_addr_from_local_cache): New.
39295 (vt_canonicalize_addr): Rewrite using the above. Adjust the
39296 heading comment.
39297 (vt_stack_offset_p): Remove.
39298 (vt_canon_true_dep): Always canonicalize loc's address.
39299 (clobber_overlapping_mems): Make sure we have a MEM.
39300 (local_get_addr_clear_given_value): New.
39301 (val_reset): Clear local cached entries.
39302 (compute_bb_dataflow): Create and release the local cache.
39303 Disable duplicate MEMs clobbering.
39304 (emit_notes_in_bb): Clobber MEMs likewise.
39305 (vt_emit_notes): Create and release the local cache.
39306 (vt_initialize, vt_finalize): Create and release the global
39307 cache, respectively.
39308 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
39309
39310 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
39311
39312 PR libmudflap/53359
39313 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
39314 not found in the symtab.
39315
39316 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
39317
39318 PR debug/56006
39319 PR rtl-optimization/55547
39320 PR rtl-optimization/53827
39321 PR debug/53671
39322 PR debug/49888
39323 * alias.c (offset_overlap_p): New, factored out of...
39324 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
39325 the conservative special case for symbolic constants. Don't
39326 adjust zero sizes on alignment.
39327
39328 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
39329
39330 PR rtl-optimization/52573
39331 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
39332 REG_UNUSED for the same register.
39333
39334 2013-01-17 Richard Biener <rguenther@suse.de>
39335 Marek Polacek <polacek@redhat.com>
39336
39337 PR rtl-optimization/55833
39338 * loop-unswitch.c (unswitch_loops): Move loop verification...
39339 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
39340 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
39341 Set it to true when we're removing a loop from hierarchy tree in
39342 an irreducible region.
39343 (fix_bb_placements): Adjust caller.
39344 (fix_loop_placements): Likewise.
39345
39346 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
39347
39348 * config/avr/builtins.def (DEF_BUILTIN): Factor out
39349 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
39350 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
39351 Remove ID. Adjust comments.
39352 * config/avr/avr-c.c (avr_builtin_name): Remove.
39353 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
39354 * config/avr/avr.c (avr_tolower): New static function.
39355 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
39356 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
39357 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
39358 default expansion.
39359
39360 2013-01-17 Jan Hubicka <jh@suse.cz>
39361
39362 PR tree-optimization/55273
39363 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
39364
39365 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
39366
39367 PR target/55981
39368 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
39369 store through atomic_store<mode>_1.
39370 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
39371
39372 2013-01-17 Martin Jambor <mjambor@suse.cz>
39373
39374 PR tree-optimizations/55264
39375 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
39376 for virtual methods.
39377 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
39378 virtual methods before inlining is over.
39379 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
39380 virtual functions.
39381 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
39382 non-virtual.
39383
39384 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
39385
39386 PR rtl-optimization/56005
39387 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
39388 pending reads for prefetch.
39389
39390 2013-01-16 Ian Bolton <ian.bolton@arm.com>
39391
39392 * config/aarch64/aarch64.md
39393 (*cstoresi_neg_uxtw): New pattern.
39394 (*cmovsi_insn_uxtw): New pattern.
39395 (*<optab>si3_uxtw): New pattern.
39396 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
39397 (*<optab>si3_insn_uxtw): New pattern.
39398 (*bswapsi2_uxtw): New pattern.
39399
39400 2013-01-16 Richard Biener <rguenther@suse.de>
39401
39402 * tree-inline.c (tree_function_versioning): Remove set but
39403 never used variable.
39404
39405 2013-01-16 Richard Biener <rguenther@suse.de>
39406
39407 PR tree-optimization/55964
39408 * tree-flow.h (rename_variables_in_loop): Remove.
39409 (rename_variables_in_bb): Likewise.
39410 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
39411 (copy_loop_before): Adjust and delete update-ssa status.
39412 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
39413 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
39414 (rename_variables_in_loop): Remove.
39415 (slpeel_update_phis_for_duplicate_loop): Likewise.
39416 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
39417 use available cfg machinery instead of duplicating it.
39418 Update PHI nodes and perform poor-mans SSA update here.
39419 (slpeel_tree_peel_loop_to_edge): Adjust.
39420
39421 2013-01-16 Richard Biener <rguenther@suse.de>
39422
39423 PR tree-optimization/54767
39424 PR tree-optimization/53465
39425 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
39426 (vrp_visit_phi_node): For PHI arguments coming via backedges
39427 drop all symbolical range information.
39428 (execute_vrp): Compute backedges.
39429
39430 2013-01-16 Richard Biener <rguenther@suse.de>
39431
39432 * doc/install.texi: Update CLooG and ISL requirements to
39433 0.18.0 and 0.11.1.
39434
39435 2013-01-16 Christian Bruel <christian.bruel@st.com>
39436
39437 PR target/55301
39438 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
39439 (broken_move): Handle UNSPECV_SP_SWITCH_B.
39440 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
39441
39442 2013-01-16 DJ Delorie <dj@redhat.com>
39443
39444 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
39445 (UNSPECV_SP_SWITCH_E): New.
39446 (sp_switch_1): Change to an unspec.
39447 (sp_switch_2): Change to an unspec. Don't use post-inc when we
39448 replace $r15.
39449
39450 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
39451
39452 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
39453 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
39454 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
39455 (expand_mem_thread_fence): Ditto.
39456 (expand_mem_signal_fence): Ditto.
39457 (expand_atomic_load): Ditto.
39458 (expand_atomic_store): Ditto.
39459
39460 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
39461
39462 PR rtl-optimization/55547
39463 PR rtl-optimization/53827
39464 PR debug/53671
39465 PR debug/49888
39466 * alias.c (memrefs_conflict_p): Set sizes to negative after
39467 AND adjustments.
39468
39469 2013-01-15 Jakub Jelinek <jakub@redhat.com>
39470
39471 PR target/55940
39472 * function.c (thread_prologue_and_epilogue_insns): Always
39473 add crtl->drap_reg to set_up_by_prologue.set, even if
39474 stack_realign_drap is false.
39475
39476 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
39477
39478 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
39479 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
39480 *call): Fix indention.
39481
39482 2013-01-15 Tom de Vries <tom@codesourcery.com>
39483
39484 PR target/55876
39485 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
39486 Update comment.
39487
39488 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
39489
39490 PR rtl-optimization/55153
39491 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
39492
39493 2013-01-15 Martin Jambor <mjambor@suse.cz>
39494
39495 PR tree-optimization/55920
39496 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
39497 accesses as grp_to_be_debug_replaced.
39498
39499 2013-01-15 Jakub Jelinek <jakub@redhat.com>
39500
39501 PR tree-optimization/55920
39502 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
39503 there is non-useless type conversion needed from debug rhs to lhs,
39504 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
39505
39506 2013-01-15 Joseph Myers <joseph@codesourcery.com>
39507 Mikael Pettersson <mikpe@it.uu.se>
39508
39509 PR target/43961
39510 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
39511 Thumb.
39512 (ASM_OUTPUT_CASE_LABEL): Remove.
39513 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
39514 * final.c (shorten_branches): Update alignment of labels before
39515 jump tables if CASE_VECTOR_SHORTEN_MODE.
39516
39517 2013-01-15 Richard Biener <rguenther@suse.de>
39518
39519 PR bootstrap/55961
39520 * system.h: Do not include gmp.h for building host tools.
39521
39522 2013-01-15 Richard Biener <rguenther@suse.de>
39523
39524 PR middle-end/55882
39525 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
39526 account for bitpos when computing alignment.
39527
39528 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
39529
39530 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
39531 (ix86_target_macros_internal): Likewise.
39532
39533 * config/i386/i386.c (m_CORE2I7): Removed.
39534 (m_CORE_HASWELL): New macro.
39535 (m_CORE_ALL): Likewise.
39536 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
39537 (initial_ix86_arch_features): Likewise.
39538 (processor_target_table): Initializations for Core avx2.
39539 (cpu_names): New names "core-avx2".
39540 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
39541 PROCESSOR_CORE_HASWELL.
39542 (ix86_issue_rate): New case.
39543 (ia32_multipass_dfa_lookahead): Likewise.
39544 (ix86_sched_init_global): Likewise.
39545
39546 * config/i386/i386.h (TARGET_HASWELL): New macro.
39547 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
39548 (processor_type): New PROCESSOR_HASWELL.
39549
39550 2013-01-15 Jakub Jelinek <jakub@redhat.com>
39551
39552 PR tree-optimization/55955
39553 * tree-vect-loop.c (vectorizable_reduction): Give up early on
39554 *SHIFT_EXPR and *ROTATE_EXPR codes.
39555
39556 PR tree-optimization/48766
39557 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
39558 -ftrapv disable -fwrapv.
39559
39560 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
39561
39562 PR target/55974
39563 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
39564 etc. to 1 and not to __flash.
39565 Use LL suffix for __INT24_MAX__ with -mint8.
39566 Use ULL suffix for __UINT24_MAX__ with -mint8.
39567
39568 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
39569
39570 * config/avr/avr-arch.h
39571 (struct base_arch_s): Use typedef avr_arch_t instead.
39572 (struct arch_info_s): Use typedef avr_arch_info_t instead.
39573 (struct mcu_type_s): Use typedef avr_mcu_t instead.
39574 * config/avr/avr.c: Same.
39575 * config/avr/avr-devices.c: Same.
39576 * config/avr/driver-avr.c: Same.
39577 * config/avr/gen-avr-mmcu-texi.c: Same.
39578 * config/avr/avr-mcus.def: Adjust comment.
39579
39580 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
39581
39582 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
39583 * config/aarch64/iterators.md (VALLDI): New.
39584
39585 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
39586 Andi Kleen <ak@linux.intel.com>
39587
39588 PR target/55948
39589 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
39590 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
39591 memmodel flag.
39592
39593 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
39594
39595 * config/avr/avr-stdint.h: Remove trailing blanks.
39596 * config/avr/avr-log.h: Same.
39597 * config/avr/avr-arch.h: Same.
39598 * config/avr/avr-devices.c: Same.
39599 * config/avr/avr-dimode.md: Same.
39600 * config/avr/predicates.md: Same.
39601 * config/avr/avr-c.c: Same. And fix typo.
39602
39603 * config/avr/avr-protos.h: Same. And:
39604 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
39605 (init_cumulative_args): Rename to avr_init_cumulative_args.
39606 (expand_prologue): Rename to avr_expand_prologue.
39607 (expand_epilogue): Rename to avr_expand_epilogue.
39608 (adjust_insn_length): Rename to avr_adjust_insn_length.
39609 (notice_update_cc): Rename to avr_notice_update_cc.
39610 (final_prescan_insn): Rename to avr_final_prescan_insn.
39611 * config/avr/avr.c: Same.
39612 * config/avr/avr.h: Same.
39613 * config/avr/avr.md: Remove trailing blanks.
39614 (prologue): Use avr_expand_prologue.
39615 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
39616
39617 2013-01-14 Richard Biener <rguenther@suse.de>
39618
39619 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
39620 verify_location, collect_subblocks): New functions.
39621 (verify_gimple_in_cfg): Verify that locations only reference
39622 BLOCKs in the functions BLOCK tree.
39623
39624 2013-01-14 Richard Biener <rguenther@suse.de>
39625
39626 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
39627 PHI argument.
39628 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
39629 unshare reference.
39630 (insert_out_of_ssa_copy_on_edge): Likewise.
39631 (rewrite_close_phi_out_of_ssa): Likewise.
39632 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
39633 debug expressions.
39634 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
39635 propagated constants.
39636 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
39637 can not be shared.
39638
39639 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
39640
39641 * config/avr/avr-modes.def: Add GPL copyright notice.
39642
39643 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
39644
39645 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
39646 MEMMODEL_MASK to determine memory model.
39647 (atomic_store<mode>): Ditto from operands[2].
39648 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
39649
39650 2013-01-13 Jakub Jelinek <jakub@redhat.com>
39651
39652 PR fortran/55935
39653 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
39654 (fold_gimple_assign): Don't call unshare_expr here.
39655 (fold_ctor_reference): Call unshare_expr.
39656
39657 2013-01-13 Terry Guo <terry.guo@arm.com>
39658
39659 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
39660 * doc/fragments.texi: Document MULTILIB_REUSE.
39661 * gcc.c (multilib_reuse): New internal spec.
39662 (set_multilib_dir): Also search multilib from multilib_reuse.
39663 * genmultilib (tmpmultilib3): Refactor code.
39664 (tmpmultilib4): Ditto.
39665 (multilib_reuse): New multilib argument.
39666
39667 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
39668
39669 * Makefile.in: Update copyright.
39670
39671 2013-01-12 Tom de Vries <tom@codesourcery.com>
39672
39673 PR middle-end/55890
39674 * calls.c (expand_call): Check if arg_nr is valid.
39675
39676 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
39677
39678 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
39679 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
39680 documentation. Add missing '__' in front of
39681 __builtin_ia32_packssdw256.
39682
39683 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39684
39685 PR target/55719
39686 * config/s390/s390.c (s390_preferred_reload_class): Do not return
39687 NO_REGS for larl operands.
39688 (s390_reload_larl_operand): Use s390_load_address instead of
39689 emit_move_insn.
39690
39691 2013-01-11 Richard Biener <rguenther@suse.de>
39692
39693 * tree-cfg.c (verify_node_sharing_1): Split out from ...
39694 (verify_node_sharing): ... here.
39695 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
39696
39697 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
39698
39699 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
39700 Substitute TREECHECKING.
39701 * configure: Regenerate.
39702 * Makefile.in (TREECHECKING): New.
39703
39704 2013-01-11 Richard Guenther <rguenther@suse.de>
39705
39706 PR tree-optimization/44061
39707 * tree-vrp.c (extract_range_basic): Compute zero as
39708 value-range for __builtin_constant_p of function parameters.
39709
39710 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
39711
39712 Update copyright years.
39713
39714 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
39715
39716 PR rtl-optimization/55672
39717 * lra-eliminations.c (mark_not_eliminable): Permit addition with
39718 const to be eliminable.
39719
39720 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
39721
39722 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
39723 * configure: Regenerate.
39724
39725 2013-01-10 Richard Biener <rguenther@suse.de>
39726
39727 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
39728
39729 2013-01-10 Richard Biener <rguenther@suse.de>
39730
39731 PR bootstrap/55792
39732 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
39733 locations for virtual PHI arguments.
39734 (rewrite_update_phi_arguments): Likewise.
39735
39736 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
39737
39738 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
39739 on to assembler.
39740
39741 2013-01-10 Jakub Jelinek <jakub@redhat.com>
39742
39743 PR tree-optimization/55921
39744 * tree-complex.c (expand_complex_asm): New function.
39745 (expand_complex_operations_1): Call it for GIMPLE_ASM.
39746
39747 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39748
39749 PR target/55718
39750 * config/s390/s390.c (s390_symref_operand_p)
39751 (s390_loadrelative_operand_p): Merge the two functions.
39752 (s390_check_qrst_address, print_operand_address): Add parameters
39753 to s390_loadrelative_operand_p invokation.
39754 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
39755 (s390_reload_larl_operand, s390_secondary_reload): Use
39756 s390_loadrelative_operand_p instead of s390_symref_operand_p.
39757 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
39758
39759 2013-01-09 Mike Stump <mikestump@comcast.net>
39760
39761 * dse.c (record_store): Remove unnecessary assert.
39762
39763 2013-01-09 Jan Hubicka <jh@suse.cz>
39764
39765 PR tree-optimization/55569
39766 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
39767 * cfgloop.h (scale_loop_profile): Likewise.
39768
39769 2013-01-09 Jan Hubicka <jh@suse.cz>
39770
39771 PR lto/45375
39772 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
39773 functions.
39774 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
39775
39776 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
39777
39778 PR middle-end/55114
39779 * expr.h (maybe_emit_group_store): Declare.
39780 * expr.c (maybe_emit_group_store): New function.
39781 * builtins.c (expand_builtin_int_roundingfn): Call it.
39782 (expand_builtin_int_roundingfn_2): Likewise.
39783
39784 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
39785
39786 PR rtl-optimization/55829
39787 * lra-constraints.c (match_reload): Add code for absent output.
39788 (curr_insn_transform): Add code for reloads of matched inputs
39789 without output.
39790
39791 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
39792
39793 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
39794 attribute of movddup insn to DF.
39795 (*vec_interleave_lowv2df): Ditto.
39796 (vec_dupv2df): Ditto.
39797
39798 2013-01-09 Jan Hubicka <jh@suse.cz>
39799
39800 PR tree-optimiation/55875
39801 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
39802 EVERY_ITERATION parameter.
39803 (number_of_iterations_exit): Check if exit is executed every iteration.
39804 (idx_infer_loop_bounds): Similarly here.
39805 (n_of_executions_at_most): Simplify
39806 to only test for cases where statement is dominated by the
39807 particular bound; handle correctly the "postdominance" test.
39808 (scev_probably_wraps_p): Use max loop iterations info
39809 as a global bound first.
39810
39811 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
39812 Nick Clifton <nickc@redhat.com>
39813
39814 * config/v850/v850.md (cbranchsf4): New pattern.
39815 (cstoresf4): New pattern.
39816 (cbranchdf4): New pattern.
39817 (cstoredf4): New pattern.
39818 (movsicc): Disallow floating point comparisons.
39819 (cmpsf_le_insn): Fix order of operators.
39820 (cmpsf_lt_insn): Likewise.
39821 (cmpsf_eq_insn): Likewise.
39822 (cmpdf_le_insn): Likewise.
39823 (cmpdf_lt_insn): Likewise.
39824 (cmpdf_eq_insn): Likewise.
39825 (cmpsf_ge_insn): Use LE comparison.
39826 (cmpdf_ge_insn): Likewise.
39827 (cmpsf_gt_insn): Use LT comparison.
39828 (cmpdf_gt_insn): Likewise.
39829 (cmpsf_ne_insn): Delete pattern.
39830 (cmpdf_ne_insn): Delete pattern.
39831 * config/v850/v850.c (v850_gen_float_compare): Use
39832 gen_cmpdf_eq_insn for NE comparison.
39833 (v850_float_z_comparison_operator)
39834 (v850_float_nz_comparison_operator): Move from here ...
39835 * config/v850/predicates.md: ... to here. Move GT and GE
39836 comparisons into v850_float_z_comparison_operator.
39837 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
39838 Delete prototype.
39839 (v850_float_nz_comparison_operator): Likewise.
39840
39841 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39842
39843 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
39844 with calls to gen_insvsi/gen_insvdi.
39845
39846 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
39847
39848 * config/i386/i386.c (initial_ix86_tune_features): Set up
39849 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
39850
39851 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
39852 Jakub Jelinek <jakub@redhat.com>
39853
39854 PR tree-optimization/48189
39855 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
39856 If nitercst is 0, don't predict the exit edge.
39857
39858 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
39859
39860 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
39861 in asm_fprintf with reg_names.
39862 (aarch64_print_operand_address): Likewise.
39863 (aarch64_return_addr): Likewise.
39864 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
39865
39866 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39867
39868 * config/pa/pa.h (VAL_U6_BITS_P): Define.
39869 (INT_U6_BITS): Likewise.
39870 * config/pa/predicates.md (uint6_operand): New predicate.
39871 (shift5_operand, shift6_operand): Likewise.
39872 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
39873 arith32_operand.
39874 (lshrdi3): Use shift6_operand.
39875 (shrpsi4, shrpdi4): New insn patterns.
39876 (extzv): Delete expander.
39877 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
39878 predicates in unamed zero extract patterns. Tighten common constraint.
39879 (extv): Delete expander.
39880 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
39881 predicates in unamed sign extract patterns. Tighten common constraint.
39882 (insv): Delete expander.
39883 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
39884 predicates in unamed insert patterns. Tighten common constraint.
39885 Change uint32_operand predicate to uint6_operand predicate in unamed
39886 DImode pattern to insert constant values of type 1...1xxxx.
39887
39888 2013-01-04 Jan Hubicka <jh@suse.cz>
39889
39890 PR tree-optimization/55823
39891 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
39892 issue.
39893
39894 2013-01-08 Jakub Jelinek <jakub@redhat.com>
39895 Uros Bizjak <ubizjak@gmail.com>
39896
39897 PR rtl-optimization/55845
39898 * df-problems.c (can_move_insns_across): Stop scanning at
39899 volatile_insn_p source instruction or give up if
39900 across_from .. across_to range contains any volatile_insn_p
39901 instructions.
39902
39903 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
39904
39905 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
39906 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
39907 Declare.
39908 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
39909 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
39910
39911 2013-01-08 Jakub Jelinek <jakub@redhat.com>
39912
39913 PR fortran/55341
39914 * asan.c (asan_clear_shadow): New function.
39915 (asan_emit_stack_protection): Use it.
39916
39917 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
39918
39919 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
39920 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
39921 with tab instead of space.
39922
39923 2013-01-08 Nick Clifton <nickc@redhat.com>
39924
39925 * config/rl78/rl78.c (rl78_expand_prologue): Always select
39926 register bank 0 at the start of an interrupt handler.
39927 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
39928 MDBH registers.
39929
39930 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
39931
39932 * config/aarch64/aarch64-simd.md
39933 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
39934 (aarch64_simd_bsl): Likewise.
39935 (aarch64_vcond_internal<mode>): Likewise.
39936 (vcond<mode><mode>): Likewise.
39937 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
39938 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
39939
39940 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
39941
39942 * config/aarch64/aarch64-builtins.c
39943 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
39944
39945 2013-01-08 Martin Jambor <mjambor@suse.cz>
39946
39947 PR debug/55579
39948 * tree-sra.c (analyze_access_subtree): Return true also after
39949 potentially creating a debug-only replacement.
39950
39951 2013-01-08 Jakub Jelinek <jakub@redhat.com>
39952
39953 PR middle-end/55890
39954 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
39955
39956 PR tree-optimization/54120
39957 * tree-vrp.c (range_fits_type_p): Don't allow
39958 src_precision < precision from signed vr to unsigned_p
39959 if vr->min or vr->max is negative.
39960 (simplify_float_conversion_using_ranges): Test can_float_p
39961 against CODE_FOR_nothing.
39962
39963 2013-01-08 Jakub Jelinek <jakub@redhat.com>
39964 Richard Biener <rguenther@suse.de>
39965
39966 PR middle-end/55851
39967 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
39968 types instead of just INTEGER_TYPE types.
39969
39970 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
39971
39972 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
39973 TF_SIZE): Define.
39974
39975 2013-01-07 Steve Ellcey <sellcey@mips.com>
39976
39977 PR target/42661
39978 * config/mips/mips.opt: Change mad to mmad to match documentation.
39979
39980 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
39981
39982 PR target/55897
39983 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
39984 .progmemx.data now.
39985
39986 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
39987
39988 PR target/55897
39989 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
39990 (avr_addrspace_t): Add .section_name field.
39991 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
39992 array size.
39993 (avr_addrspace): Same. Initialize .section_name. Remove last
39994 NULL entry. Put __memx into .progmemx.data.
39995 (progmem_section_prefix): Remove.
39996 (avr_asm_init_sections): No need to initialize progmem_section.
39997 (avr_asm_named_section): Use avr_addrspace[].section_name to get
39998 section name prefix.
39999 (avr_asm_select_section): Ditto. And use get_unnamed_section to
40000 retrieve the progmem section.
40001 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
40002 boundary to run over avr_addrspace[].
40003 (avr_register_target_pragmas): Ditto.
40004
40005 2013-01-06 Jakub Jelinek <jakub@redhat.com>
40006
40007 * varasm.c (output_constant_def_contents): For asan_protect_global
40008 protected strings, adjust DECL_ALIGN if needed, before testing for
40009 anchored symbols.
40010 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
40011 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
40012 normal decls.
40013 (output_object_block): For asan protected decls, emit asan padding
40014 after their contents.
40015 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
40016 (asan_finish_file): Test it here instead.
40017
40018 2013-01-07 Nick Clifton <nickc@redhat.com>
40019 Matthias Klose <doko@debian.org>
40020 Doug Kwan <dougkwan@google.com>
40021 H.J. Lu <hongjiu.lu@intel.com>
40022
40023 PR driver/55470
40024 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
40025
40026 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
40027
40028 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
40029
40030 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
40031
40032 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
40033
40034 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
40035
40036 PR target/54461
40037 * doc/install.texi (Cross-Compiler-Specific Options): Document
40038 --with-avrlibc.
40039
40040 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
40041
40042 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
40043 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
40044 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
40045 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
40046 vqmovun_high_s64): Fix source operand number and update copyright.
40047
40048 2013-01-07 Richard Biener <rguenther@suse.de>
40049
40050 PR middle-end/55890
40051 * gimple.h (gimple_call_builtin_p): New overload.
40052 * gimple.c (validate_call): New function.
40053 (gimple_call_builtin_p): Likewise.
40054 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
40055 Use gimple_call_builtin_p.
40056 (find_func_clobbers): Likewise.
40057 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
40058 (strlen_optimize_stmt): Likewise.
40059
40060 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
40061
40062 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
40063 (vld1q_dup_*): Likewise.
40064 (vld1_*): Likewise.
40065 (vld1q_*): Likewise.
40066 (vld1_lane_*): Likewise.
40067 (vld1q_lane_*): Likewise.
40068
40069 2013-01-07 Richard Biener <rguenther@suse.de>
40070
40071 * lto-streamer.h (LTO_minor_version): Bump to 2.
40072
40073 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
40074
40075 * config/aarch64/aarch64-protos.h
40076 (aarch64_const_double_zero_rtx_p): Rename to...
40077 (aarch64_float_const_zero_rtx_p): ...this.
40078 (aarch64_float_const_representable_p): New.
40079 (aarch64_output_simd_mov_immediate): Likewise.
40080 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
40081 move immediate case.
40082 * config/aarch64/aarch64.c
40083 (aarch64_const_double_zero_rtx_p): Rename to...
40084 (aarch64_float_const_zero_rtx_p): ...this.
40085 (aarch64_print_operand): Allow printing of new constants.
40086 (aarch64_valid_floating_const): New.
40087 (aarch64_legitimate_constant_p): Check for valid floating-point
40088 constants.
40089 (aarch64_simd_valid_immediate): Likewise.
40090 (aarch64_vect_float_const_representable_p): New.
40091 (aarch64_float_const_representable_p): Likewise.
40092 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
40093 (aarch64_output_simd_mov_immediate): New.
40094 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
40095 (*movdf_aarch64): Likewise.
40096 * config/aarch64/constraints.md (Ufc): New.
40097 (Y): call aarch64_float_const_zero_rtx.
40098 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
40099
40100 2013-01-07 Richard Biener <rguenther@suse.de>
40101
40102 PR tree-optimization/55888
40103 PR tree-optimization/55862
40104 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
40105 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
40106 not if it is contained therein.
40107
40108 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
40109
40110 * config/avr/t-avr: Typo.
40111
40112 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
40113
40114 PR55243
40115 * config/avr/t-avr: Don't automatically rebuild
40116 $(srcdir)/config/avr/t-multilib
40117 $(srcdir)/config/avr/avr-tables.opt
40118 $(srcdir)/doc/avr-mmcu.texi
40119 (avr-mcus): New phony target to build them on request.
40120 (s-avr-mlib, s-avr-mmcu-texi): Remove.
40121 * avr/avr-mcus.def: Adjust comments.
40122
40123 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
40124
40125 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
40126
40127 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
40128
40129 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
40130
40131 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
40132
40133 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
40134
40135 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
40136
40137 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
40138 to generate profiling.
40139 * config/rs6000/aix64.h (LIB_SPEC): Same.
40140
40141 2013-01-04 Andrew Pinski <apinski@cavium.com>
40142
40143 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
40144 New function.
40145 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
40146
40147 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
40148
40149 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
40150 unconditionally.
40151 (ix86_expand_move): Ditto.
40152 (ix86_zero_extend_to_Pmode): Ditto.
40153 (ix86_expand_call): Ditto.
40154 (ix86_expand_special_args_builtin): Ditto.
40155 (ix86_expand_builtin): Ditto.
40156
40157 2013-01-04 Richard Biener <rguenther@suse.de>
40158
40159 PR tree-optimization/55862
40160 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
40161 translating them through PHI nodes.
40162
40163 2013-01-04 Martin Jambor <mjambor@suse.cz>
40164
40165 PR tree-optimization/55755
40166 * tree-sra.c (sra_modify_assign): Do not check that an access has no
40167 children when trying to avoid producing a VIEW_CONVERT_EXPR.
40168
40169 2013-01-04 Marek Polacek <polacek@redhat.com>
40170
40171 PR middle-end/55859
40172 * opts.c (default_options_optimization): Clarify error message.
40173
40174 2013-01-04 Richard Biener <rguenther@suse.de>
40175
40176 PR middle-end/55863
40177 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
40178 reassociation.
40179
40180 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
40181
40182 PR target/53789
40183 * config/pa/pa.md (movsi): Revert previous change.
40184 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
40185 references.
40186
40187 2013-01-03 Richard Henderson <rth@redhat.com>
40188
40189 * config/i386/i386.c (ix86_expand_move): Always assign to op1
40190 after eliminating TLS symbols.
40191
40192 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
40193
40194 PR bootstrap/50167
40195 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
40196 * graphite-poly.c (debug_gmp_value): Likewise.
40197
40198 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
40199
40200 PR target/55712
40201 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
40202 selected code model, define __code_mode_small__, __code_model_medium__,
40203 __code_model_large__, __code_model_32__ or __code_model_kernel__.
40204 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
40205 xchg temporary register with %k. Declare temporary register as
40206 early clobbered.
40207 [__x86_64__]: For medium and large code models, preserve %rbx register.
40208
40209 2013-01-03 Richard Biener <rguenther@suse.de>
40210
40211 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
40212 (dump_subscript): Adjust.
40213 (finalize_ddr_dependent): Do not dump redundant info.
40214 (analyze_siv_subscript): Adjust.
40215 (subscript_dependence_tester): Likewise.
40216 (compute_affine_dependence): Likewise.
40217
40218 2013-01-03 Richard Biener <rguenther@suse.de>
40219
40220 Revert
40221 2013-01-03 Richard Biener <rguenther@suse.de>
40222
40223 PR tree-optimization/55857
40224 * tree-vect-stmts.c (vectorizable_load): Do not setup
40225 re-alignment for invariant loads.
40226
40227 2013-01-02 Richard Biener <rguenther@suse.de>
40228
40229 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
40230 invariant load do not generate a vector load from the scalar location.
40231
40232 2013-01-03 Richard Biener <rguenther@suse.de>
40233
40234 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
40235 for not vectorizing.
40236 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
40237 not build INDIRECT_REFs, call get_name once only.
40238 (vect_create_data_ref_ptr): Likewise. Dump base object kind
40239 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
40240
40241 2013-01-03 Richard Biener <rguenther@suse.de>
40242
40243 PR tree-optimization/55857
40244 * tree-vect-stmts.c (vectorizable_load): Do not setup
40245 re-alignment for invariant loads.
40246
40247 2013-01-03 Richard Biener <rguenther@suse.de>
40248
40249 PR lto/55848
40250 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
40251 prefer a built-in decl.
40252
40253 2013-01-03 Jakub Jelinek <jakub@redhat.com>
40254
40255 * gcc.c (process_command): Update copyright notice dates.
40256 * gcov.c (print_version): Likewise.
40257 * gcov-dump.c (print_version): Likewise.
40258
40259 PR rtl-optimization/55838
40260 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
40261 iv0.step, iv1.step and step.
40262
40263 2013-01-03 Jakub Jelinek <jakub@redhat.com>
40264 Marc Glisse <marc.glisse@inria.fr>
40265
40266 PR tree-optimization/55832
40267 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
40268 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
40269 integer_{one,zero}_node.
40270
40271 2013-01-03 Jakub Jelinek <jakub@redhat.com>
40272
40273 PR debug/54402
40274 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
40275 * var-tracking.c (reverse_op): Don't add reverse ops to
40276 VALUEs that have already
40277 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
40278
40279 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
40280
40281 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
40282
40283 2013-01-02 Teresa Johnson <tejohnson@google.com>
40284
40285 * dumpfile.c (dump_loc): Print filename with location.
40286 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
40287 new location_t parameter to emit complete unroll message with
40288 new dump framework.
40289 (canonicalize_loop_induction_variables): Compute loops location
40290 and pass to try_unroll_loop_completely.
40291 * loop-unroll.c (report_unroll_peel): New function.
40292 (peel_loops_completely): Use new dump format with location
40293 for main dumpfile message, and invoke report_unroll_peel on success.
40294 (decide_unrolling_and_peeling): Ditto.
40295 (decide_peel_once_rolling): Remove old dumpfile message subsumed
40296 by report_unroll_peel.
40297 (decide_peel_completely): Ditto.
40298 (decide_unroll_constant_iterations): Ditto.
40299 (decide_unroll_runtime_iterations): Ditto.
40300 (decide_peel_simple): Ditto.
40301 (decide_unroll_stupid): Ditto.
40302 * cfgloop.c (get_loop_location): New function.
40303 * cfgloop.h (get_loop_location): Declare.
40304
40305 2013-01-02 Sriraman Tallam <tmsriram@google.com>
40306
40307 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
40308 NULL.
40309
40310 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
40311
40312 PR middle-end/55198
40313 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
40314 BLKmode objects when EXPAND_MEMORY is specified.
40315
40316 2013-01-02 Sriraman Tallam <tmsriram@google.com>
40317
40318 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
40319 in loop predicate.
40320 (fold_builtin_cpu): Do not share cpu model decls across statements.
40321
40322 2013-01-02 Jason Merrill <jason@redhat.com>
40323
40324 PR c++/55804
40325 * tree.c (build_array_type_1): Revert earlier change.
40326
40327 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
40328
40329 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
40330 "cortex-a57".
40331 * config/aarch64/aarch64-tune.md: Re-generate.
40332
40333 2013-01-02 Richard Biener <rguenther@suse.de>
40334
40335 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
40336 invariant load do not generate a vector load from the scalar location.
40337
40338 2013-01-02 Richard Biener <rguenther@suse.de>
40339
40340 PR bootstrap/55784
40341 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
40342 * configure: Regenerate.
40343
40344 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
40345
40346 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
40347 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
40348 (expand_builtin_int_roundingfn_2): Keep the original target around
40349 for the fallback case.
40350
40351 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
40352
40353 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
40354 to be clear for sign changes.
40355
40356 2013-01-01 Jan Hubicka <jh@suse.cz>
40357
40358 * ipa-inline-analysis.c: Fix formatting.
40359
40360 2013-01-01 Jakub Jelinek <jakub@redhat.com>
40361
40362 PR tree-optimization/55831
40363 * tree-vect-loop.c (get_initial_def_for_induction): Use
40364 gsi_after_labels instead of gsi_start_bb.
40365 \f
40366 Copyright (C) 2013 Free Software Foundation, Inc.
40367
40368 Copying and distribution of this file, with or without modification,
40369 are permitted in any medium without royalty provided the copyright
40370 notice and this notice are preserved.