]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
re PR libstdc++/57914 (Memory leak in __cxa_thread_atexit when using thread_local)
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
04dfc6df
JU
12013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
2
3 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
4 default for R5900 targets.
5 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
6 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
7 * config/mips/mips.c (mips_option_override): Report an error for
8 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
9 for -march=r5900 -mhard-float.
10
ae382ebd
PCC
112013-07-22 Chang <pchang9@cs.wisc.edu>
12
13 * df-problems.c (can_move_insns_across): Exit loop once we
14 find a non-fixed, non-global register.
15
16 * ipa-pure-const.c (propagate_nothrow): Exit loop after
17 setting can_throw.
18
19 * omega.c (omega_eliminate_red): Break after setting red_found.
20 (omega_problem_has_red_equations): Similarly after setting found.
21 (omega_query_variable): Similarly after setting coupled.
22
9b6e6981
MP
232013-07-22 Marek Polacek <polacek@redhat.com>
24
25 * gimplify.c: Don't include gimple.h twice.
26
5e5f7673
KT
272013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28
29 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
30 instead of TARGET_THUMB1.
31 (Pz): New constraint.
32 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
33 encodings.
34 (compare_negsi_si): Likewise.
35 (compare_addsi2_op0): Likewise.
36 (compare_addsi2_op1): Likewise.
37 (addsi3_carryin_<optab>): Likewise.
38 (addsi3_carryin_alt2_<optab>): Likewise.
39 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
40 for arm_restrict_it.
41 (subsi3_carryin): Likewise.
42 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
43 (minmax_arithsi): Disable for arm_restrict_it.
44 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
45 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
46 (satsi_<SAT:code>_shift): Likewise.
47 (arm_shiftsi3): Add alternative for 16-bit encoding.
48 (arm32_movhf): Disable for arm_restrict_it.
49 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
50 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
51
859abddd
SN
522013-07-22 Sofiane Naci <sofiane.naci@arm.com>
53
54 * config/arm/arm.md (attribute "insn"): Delete.
55 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
56 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
57 (not_shiftsi): Update for attribute change.
58 (not_shiftsi_compare0): Likewise.
59 (not_shiftsi_compare0_scratch): Likewise.
60 (arm_one_cmplsi2): Likewise.
61 (thumb1_one_cmplsi2): Likewise.
62 (notsi_compare0): Likewise.
63 (notsi_compare0_scratch): Likewise.
64 (thumb1_movdi_insn): Likewise.
65 (arm_movsi_insn): Likewise.
66 (movhi_insn_arch4): Likewise.
67 (movhi_bytes): Likewise.
68 (arm_movqi_insn): Likewise.
69 (thumb1_movqi_insn): Likewise.
70 (arm32_movhf): Likewise.
71 (thumb1_movhf): Likewise.
72 (arm_movsf_soft_insn): Likewise.
73 (thumb1_movsf_insn): Likewise.
74 (thumb_movdf_insn): Likewise.
75 (movsicc_insn): Likewise.
76 (movsfcc_soft_insn): Likewise.
77 (and_scc): Likewise.
78 (cond_move): Likewise.
79 (if_move_not): Likewise.
80 (if_not_move): Likewise.
81 (if_shift_move): Likewise.
82 (if_move_shift): Likewise.
83 (if_shift_shift): Likewise.
84 (if_not_arith): Likewise.
85 (if_arith_not): Likewise.
86 (cond_move_not): Likewise.
87 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
88 (neon_mov<mode>): Likewise.
89 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
90 (thumb2_movsi_vfp): Likewise.
91 (movsf_vfp): Likewise.
92 (thumb2_movsf_vfp): Likewise.
371e77e3
UB
93 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
94 change.
859abddd
SN
95 (cortexa7_older_only): Likewise.
96 (cortexa7_younger): Likewise.
97 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
98 (1020alu_shift_op): Likewise.
99 (1020alu_shift_reg_op): Likewise.
100 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
101 (alu_shift_op): Likewise.
102 (alu_shift_reg_op): Likewise.
103 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
104 (11_alu_shift_op): Likewise.
105 (11_alu_shift_reg_op): Likewise.
106 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
107 (9_alu_shift_reg_op): Likewise.
371e77e3
UB
108 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
109 change.
859abddd
SN
110 (cortex_a15_alu_shift): Likewise.
111 (cortex_a15_alu_shift_reg): Likewise.
112 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
113 (cortex_a5_alu_shift): Likewise.
371e77e3
UB
114 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
115 change.
859abddd 116 (cortex_a53_alu_shift): Likewise.
371e77e3
UB
117 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
118 change.
859abddd
SN
119 (cortex_a7_alu_reg): Likewise.
120 (cortex_a7_alu_shift): Likewise.
121 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
122 (cortex_a8_alu_shift): Likewise.
123 (cortex_a8_alu_shift_reg): Likewise.
124 (cortex_a8_mov): Likewise.
125 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
126 (cortex_a9_dp_shift): Likewise.
127 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
128 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
129 (cortex_r4_mov): Likewise.
130 (cortex_r4_alu_shift): Likewise.
131 (cortex_r4_alu_shift_reg): Likewise.
132 * config/arm/fa526.md (526_alu_op): Update for attribute change.
133 (526_alu_shift_op): Likewise.
134 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
135 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
136 (626te_alu_shift_op): Likewise.
137 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
138 (726te_alu_op): Likewise.
139 (726te_alu_shift_op): Likewise.
140 (726te_alu_shift_reg_op): Likewise.
141 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
142 (mp626_alu_shift_op): Likewise.
143 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
144 (pj4_alu_e1_conds): Likewise.
145 (pj4_alu): Likewise.
146 (pj4_alu_conds): Likewise.
147 (pj4_shift): Likewise.
148 (pj4_shift_conds): Likewise.
149 (pj4_alu_shift): Likewise.
150 (pj4_alu_shift_conds): Likewise.
151
95b97fac
KT
1522013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
153
154 * config/arm/predicates.md (shiftable_operator_strict_it):
155 New predicate.
156 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
157 Disable cond_exec version for arm_restrict_it.
158 (thumb2_smaxsi3): Convert to generate cond_exec.
159 (thumb2_sminsi3): Likewise.
160 (thumb32_umaxsi3): Likewise.
161 (thumb2_uminsi3): Likewise.
162 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
163 (thumb2_neg_abssi2): Likewise.
164 (thumb2_mov_scc): Add alternative for 16-bit encoding.
165 (thumb2_movsicc_insn): Adjust alternatives.
166 (thumb2_mov_negscc): Disable for arm_restrict_it.
167 (thumb2_mov_negscc_strict_it): New pattern.
168 (thumb2_mov_notscc_strict_it): New pattern.
169 (thumb2_mov_notscc): Disable for arm_restrict_it.
170 (thumb2_ior_scc): Likewise.
171 (thumb2_ior_scc_strict_it): New pattern.
172 (thumb2_cond_move): Adjust for arm_restrict_it.
173 (thumb2_cond_arith): Disable for arm_restrict_it.
174 (thumb2_cond_arith_strict_it): New pattern.
175 (thumb2_cond_sub): Adjust for arm_restrict_it.
176 (thumb2_movcond): Likewise.
177 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
178 (thumb2_zero_extendhisi2_v6): Likewise.
179 (thumb2_zero_extendqisi2_v6): Likewise.
180 (orsi_notsi_si): Likewise.
181 (orsi_not_shiftsi_si): Likewise.
182
d5a6ef82
GJL
1832013-07-22 Georg-Johann Lay <avr@gjlay.de>
184
185 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
186 instruction sequence is 1 byte shorter.
187
d9e71154
UB
1882013-07-22 Uros Bizjak <ubizjak@gmail.com>
189
190 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
191 it is not needed after split.
192
8c6381ec
IS
1932013-07-20 Iain Sandoe <iain@codesourcery.com>
194
195 PR target/51784
196 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
197 second label for nonlocal goto receivers. Don't output pic base labels
198 unless we're producing PIC; mark that action unreachable().
199 (ix86_save_reg): If the function contains a nonlocal label, save the
200 PIC base reg.
201 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
371e77e3 202 * gcc/config/darwin.c (emitted_pic_label_num): New GTY.
8c6381ec
IS
203 (update_pic_label_number_if_needed): New.
204 (machopic_output_function_base_name): Adjust for nonlocal receiver
205 case.
206 (machopic_should_output_picbase_label): New.
207 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
208 (nonlocal_goto_receiver): New insn and split.
209
d05d0709
JG
2102013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
211
212 * config/aarch64/aarch64-builtins.c
213 (aarch64_fold_builtin): Fold abs in all modes.
214 * config/aarch64/aarch64-simd-builtins.def
215 (abs): Enable for all modes.
216 * config/aarch64/arm_neon.h
217 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
218 (vabs_f64): Add missing intrinsic.
219
ba590e63
IB
2202013-07-19 Ian Bolton <ian.bolton@arm.com>
221
222 * config/aarch64/arm_neon.h (vabs_s64): New function
223
02371798
GJL
2242013-07-19 Georg-Johann Lay <avr@gjlay.de>
225
226 PR target/57516
227 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
228 * config/avr/avr.md (adjust_len): Add `round'.
229 * config/avr/avr-protos.h (avr_out_round): New prototype.
230 (avr_out_plus): Add `out_label' argument.
231 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
232 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
233 Handle the case where `insn' is just a pattern.
234 (avr_out_bitop): Handle the case where `insn' is just a pattern.
235 (avr_out_round): New function.
236 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
237
b950ac25
DH
2382013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
239
240 * config/microblaze/microblaze.c (microblaze_expand_prologue):
241 Add check for flag_stack_usage to handle -fstack-usage support
242
ed1fd999
PH
2432013-07-18 Pat Haugen <pthaugen@us.ibm.com>
244
245 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
246 interaction for new Power8 flags and VSX.
247
df9dda2d
ST
2482013-07-18 Sriraman Tallam <tmsriram@google.com>
249
250 PR middle-end/57698
251 * tree-inline.c (expand_call_inline): Emit errors during
252 early_inlining only if optimization is not turned on.
253
0f9cdef4
DM
2542013-07-18 David Malcolm <dmalcolm@redhat.com>
255
256 * passes.def: New.
257
258 * passes.c (init_optimization_passes): Move the construction of
259 the pass hierarchy into a new passes.def file.
260
261 * Makefile.in (passes.o): Add dependency on passes.def.
262
2efa4087
DM
2632013-07-18 David Malcolm <dmalcolm@redhat.com>
264
265 * passes.c (init_optimization_passes): Introduce macros for
266 constructing the tree of passes (INSERT_PASSES_AFTER,
267 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
268 TERMINATE_PASS_LIST).
269
bc404e1b
VM
2702013-07-18 Vladimir Makarov <vmakarov@redhat.com>
271 Wei Mi <wmi@google.com>
272
273 PR rtl-optimization/57878
274 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
275 top.
276 (reload_pseudo_compare_func): Check nregs first for reload
277 pseudos.
278
d675843f
DM
2792013-07-18 David Malcolm <dmalcolm@redhat.com>
280
281 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
282
bcb97fbd
PCC
2832013-07-18 Chang <pchang9@cs.wisc.edu>
284
285 * read-rtl.c (validate_const_int): Once an invalid character is
286 seen, quit the loop.
287
288 * gengtype.c (write_roots): Similarly once we find the "deletable"
289 or "if_marked" option.
290
52fceb44
SN
2912013-07-18 Sofiane Naci <sofiane.naci@arm.com>
292
293 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
294 "xtab" and "sat". Move value "clz" from here to ...
295 (attriubte "type"): ... here.
296 (satsi_<SAT:code>): Delete "insn" attribute.
297 (satsi_<SAT:code>_shift): Likewise.
298 (arm_zero_extendqisi2addsi): Likewise.
299 (arm_extendqisi2addsi): Likewise.
300 (clzsi2): Update for attribute changes.
301 (rbitsi2): Likewise.
371e77e3
UB
302 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
303 attribute.
52fceb44
SN
304 (arm_usatsihi): Likewise.
305 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
306
006bd006
SN
3072013-07-18 Sofiane Naci <sofiane.naci@arm.com>
308
309 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
371e77e3
UB
310 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
311 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
006bd006
SN
312 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
313 in alphabetical order.
314 (attribute "core_cycles"): Update for attribute changes.
315 (arm_addsi3): Likewise.
316 (addsi3_compare0): Likewise.
317 (addsi3_compare0_scratch): Likewise.
318 (addsi3_compare_op1): Likewise.
319 (addsi3_compare_op2): Likewise.
320 (compare_addsi2_op0): Likewise.
321 (compare_addsi2_op1): Likewise.
322 (addsi3_carryin_shift_<optab>): Likewise.
323 (subsi3_carryin_shift): Likewise.
324 (rsbsi3_carryin_shift): Likewise.
325 (arm_subsi3_insn): Likewise.
326 (subsi3_compare0): Likewise.
327 (subsi3_compare): Likewise.
328 (arm_andsi3_insn): Likewise.
329 (thumb1_andsi3_insn): Likewise.
330 (andsi3_compare0): Likewise.
331 (andsi3_compare0_scratch): Likewise.
332 (zeroextractsi_compare0_scratch
333 (andsi_not_shiftsi_si): Likewise.
334 (iorsi3_insn): Likewise.
335 (iorsi3_compare0): Likewise.
336 (iorsi3_compare0_scratch): Likewise.
337 (arm_xorsi3): Likewise.
338 (thumb1_xorsi3_insn): Likewise.
339 (xorsi3_compare0): Likewise.
340 (xorsi3_compare0_scratch): Likewise.
341 (satsi_<SAT:code>_shift): Likewise.
342 (rrx): Likewise.
343 (arm_shiftsi3): Likewise.
344 (shiftsi3_compare0): Likewise.
345 (not_shiftsi): Likewise.
346 (not_shiftsi_compare0): Likewise.
347 (not_shiftsi_compare0_scratch): Likewise.
348 (arm_one_cmplsi2): Likewise.
349 (thumb_one_complsi2): Likewise.
350 (notsi_compare0): Likewise.
351 (notsi_compare0_scratch): Likewise.
352 (thumb1_zero_extendhisi2): Likewise.
353 (arm_zero_extendhisi2): Likewise.
354 (arm_zero_extendhisi2_v6): Likewise.
355 (arm_zero_extendhisi2addsi): Likewise.
356 (thumb1_zero_extendqisi2): Likewise.
357 (thumb1_zero_extendqisi2_v6): Likewise.
358 (arm_zero_extendqisi2): Likewise.
359 (arm_zero_extendqisi2_v6): Likewise.
360 (arm_zero_extendqisi2addsi): Likewise.
361 (thumb1_extendhisi2): Likewise.
362 (arm_extendhisi2): Likewise.
363 (arm_extendhisi2_v6): Likewise.
364 (arm_extendqisi): Likewise.
365 (arm_extendqisi_v6): Likewise.
366 (arm_extendqisi2addsi): Likewise.
367 (thumb1_extendqisi2): Likewise.
368 (thumb1_movdi_insn): Likewise.
369 (arm_movsi_insn): Likewise.
370 (movsi_compare0): Likewise.
371 (movhi_insn_arch4): Likewise.
372 (movhi_bytes): Likewise.
373 (arm_movqi_insn): Likewise.
374 (thumb1_movqi_insn): Likewise.
375 (arm32_movhf): Likewise.
376 (thumb1_movhf): Likewise.
377 (arm_movsf_soft_insn): Likewise.
378 (thumb1_movsf_insn): Likewise.
379 (movdf_soft_insn): Likewise.
380 (thumb_movdf_insn): Likewise.
381 (arm_cmpsi_insn): Likewise.
382 (cmpsi_shiftsi): Likewise.
383 (cmpsi_shiftsi_swp): Likewise.
384 (arm_cmpsi_negshiftsi_si): Likewise.
385 (movsicc_insn): Likewise.
386 (movsfcc_soft_insn): Likewise.
387 (arith_shiftsi): Likewise.
388 (arith_shiftsi_compare0
389 (arith_shiftsi_compare0_scratch
390 (sub_shiftsi): Likewise.
391 (sub_shiftsi_compare0
392 (sub_shiftsi_compare0_scratch
393 (and_scc): Likewise.
394 (cond_move): Likewise.
395 (if_plus_move): Likewise.
396 (if_move_plus): Likewise.
397 (if_move_not): Likewise.
398 (if_not_move): Likewise.
399 (if_shift_move): Likewise.
400 (if_move_shift): Likewise.
401 (if_shift_shift): Likewise.
402 (if_not_arith): Likewise.
403 (if_arith_not): Likewise.
404 (cond_move_not): Likewise.
405 (thumb1_ashlsi3): Set type attribute.
406 (thumb1_ashrsi3): Likewise.
407 (thumb1_lshrsi3): Likewise.
408 (thumb1_rotrsi3): Likewise.
409 (shiftsi3_compare0_scratch): Likewise.
410 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
411 (neon_mov<mode>): Likewise.
371e77e3
UB
412 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
413 attribute changes.
006bd006
SN
414 (thumb2_movsi_insn): Likewise.
415 (thumb2_cmpsi_neg_shiftsi): Likewise.
416 (thumb2_extendqisi_v6): Likewise.
417 (thumb2_zero_extendhisi2_v6): Likewise.
418 (thumb2_zero_extendqisi2_v6): Likewise.
419 (thumb2_shiftsi3_short): Likewise.
420 (thumb2_addsi3_compare0_scratch): Likewise.
421 (orsi_not_shiftsi_si): Likewise.
422 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
423 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
424 changes.
425 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
426 (1020alu_shift_op): Likewise.
427 (1020alu_shift_reg_op): Likewise.
428 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
429 (alu_shift_op): Likewise.
430 (alu_shift_reg_op): Likewise.
431 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
432 (11_alu_shift_op): Likewise.
433 (11_alu_shift_reg_op): Likewise.
434 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
435 (9_alu_shift_reg_op): Likewise.
371e77e3
UB
436 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
437 changes.
006bd006
SN
438 (cortex_a15_alu_shift): Likewise.
439 (cortex_a15_alu_shift_reg): Likewise.
371e77e3
UB
440 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
441 changes.
006bd006
SN
442 (cortex_a5_alu_shift): Likewise.
443 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
444 changes.
445 (cortex_a53_alu_shift): Likewise.
446 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
447 changes.
448 (cortex_a7_alu_reg): Likewise.
449 (cortex_a7_alu_shift): Likewise.
371e77e3
UB
450 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
451 changes.
006bd006
SN
452 (cortex_a8_alu_shift): Likewise.
453 (cortex_a8_alu_shift_reg): Likewise.
454 (cortex_a8_mov): Likewise.
455 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
456 (cortex_a9_dp_shift): Likewise.
371e77e3
UB
457 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
458 changes.
459 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
460 changes.
006bd006
SN
461 (cortex_r4_mov): Likewise.
462 (cortex_r4_alu_shift): Likewise.
463 (cortex_r4_alu_shift_reg): Likewise.
464 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
465 (526_alu_shift_op): Likewise.
466 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
467 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
468 (626te_alu_shift_op): Likewise.
469 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
470 (726te_alu_op): Likewise.
471 (726te_alu_shift_op): Likewise.
472 (726te_alu_shift_reg_op): Likewise.
473 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
474 (mp626_alu_shift_op): Likewise.
475 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
476 (pj4_alu_e1_conds): Likewise.
477 (pj4_alu): Likewise.
478 (pj4_alu_conds): Likewise.
479 (pj4_shift): Likewise.
480 (pj4_shift_conds): Likewise.
481 (pj4_alu_shift): Likewise.
482 (pj4_alu_shift_conds): Likewise.
371e77e3
UB
483 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
484 changes.
006bd006
SN
485 (cortexa7_older_only): Likewise.
486 (cortexa7_younger): Likewise.
487
651df1b2
DM
4882013-07-18 David Malcolm <dmalcolm@redhat.com>
489
490 * ipa-pure-const.c (generate_summary): Rename to...
491 (pure_const_generate_summary): ... this.
492
ea717bd7
IS
4932013-07-17 Iain Sandoe <iain@codesourcery.com>
494
495 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
496
a1259a13
YR
4972013-07-17 Yvan Roux <yvan.roux@linaro.org>
498
499 PR target/57909
500 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
501 usage in HI mode.
502
167f68ed
AK
5032013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
504
505 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
506 enabled without -march=zEC12.
507 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
508 flags to be set.
509
f900a982
MR
5102013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
511
512 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
513 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
514 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
515 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
516 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
517 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
518 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
519 ISA_HAS_FP4.
520 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
521 and ISA_HAS_NMADD3_NMSUB3.
522 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
523 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
524 (nmsub4<mode>, nmsub3<mode>): Likewise.
525 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
526
d4ed27eb
MR
5272013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
528
529 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
530 TARGET_MIPS5400 checking.
531
7a5add18
PB
5322013-07-16 Jakub Jelinek <jakub@redhat.com>
533 Peter Bergner <bergner@vnet.ibm.com>
534
535 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
536 registers in the comment.
537 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
538 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
539 rather than FIRST_PSEUDO_REGISTERS.
540
5412013-07-16 Peter Bergner <bergner@vnet.ibm.com>
c694dc01
PB
542
543 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
544 enable extra ISA flags with TARGET_HTM.
545
d2ab0929
MR
5462013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
547
548 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
549 Fix comment typos.
550
839c74bc
CH
5512013-07-15 Cong Hou <congh@google.com>
552
553 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
554 in compare function for sorting.
555
7a5add18 5562013-07-15 Peter Bergner <bergner@vnet.ibm.com>
0258b6e4
PB
557
558 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
559 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
560 * config/rs6000/rs6000.opt: Add -mhtm option.
561 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
562 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
563 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
564 __HTM__ if the HTM instructions are available.
565 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
566 htm_spr_reg_operand): New define_predicates.
567 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
568 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
569 Include htm.md.
570 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
571 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
572 HTM builtin functions.
573 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
574 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
575 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
576 (rs6000_builtin_mask_calculate): Likewise.
577 (rs6000_option_override_internal): Likewise.
578 (bdesc_htm): Add new HTM builtin support.
579 (htm_spr_num): New function.
580 (htm_spr_regno): Likewise.
581 (rs6000_htm_spr_icode): Likewise.
582 (htm_expand_builtin): Likewise.
583 (htm_init_builtins): Likewise.
584 (rs6000_expand_builtin): Add support for HTM builtin functions.
585 (rs6000_init_builtins): Likewise.
371e77e3
UB
586 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
587 option.
0258b6e4
PB
588 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
589 (TARGET_HTM, MASK_HTM): Define macros.
590 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
591 (FIXED_REGISTERS): Likewise.
592 (CALL_USED_REGISTERS): Likewise.
593 (CALL_REALLY_USED_REGISTERS): Likewise.
594 (REG_ALLOC_ORDER): Likewise.
595 (enum reg_class): Likewise.
596 (REG_CLASS_NAMES): Likewise.
597 (REG_CLASS_CONTENTS): Likewise.
598 (REGISTER_NAMES): Likewise.
599 (ADDITIONAL_REGISTER_NAMES): Likewise.
600 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
601 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
602 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
603 * config/rs6000/htm.md: New file.
604 * config/rs6000/htmintrin.h: New file.
605 * config/rs6000/htmxlintrin.h: New file.
606
87dd8ab0
MS
6072013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
608
609 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
610 Define SYMBOL_TINY_GOT, update comment.
611 * config/aarch64/aarch64.c
612 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
613 (aarch64_expand_mov_immediate): Likewise.
614 (aarch64_print_operand): Likewise.
615 (aarch64_classify_symbol): Likewise.
616 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
617 (ldr_got_tiny): Define.
618
52d676b6
TG
6192013-07-13 Tobias Grosser <tobias@grosser.es>
620
621 PR tree-optimization/54094
622 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
623 scheduling dimension for the parallelism check from the polyhedral
624 information in the AST.
625 * graphite-dependences.c (carries_deps): Do not assume the schedule is
626 in 2D + 1 form.
627
286e8fc1
JM
6282013-07-13 Jason Merrill <jason@redhat.com>
629
630 * print-tree.c (debug_vec_tree): Use debug_raw.
631 (debug_raw (vec<tree, va_gc> &)): New.
632 (debug_raw (vec<tree, va_gc> *)): New.
633 * tree.h: Declare them.
634
e43257e8
BC
6352013-07-13 Bin Cheng <bin.cheng@arm.com>
636
637 * ifcvt.c (ifcvt_after_combine): New static variable.
638 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
639 for size.
640 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
641 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
642 rest_of_handle_if_after_reload): Pass new argument for if_convert.
643
da582d46
MR
6442013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
645
646 * config/mips/mips.c (mips_expand_call): Remove empty statement.
647
18b0ea8f
MM
6482013-07-12 Michael Matz <matz@suse.de>
649
650 PR middle-end/55771
651 * convert.c (convert_to_real): Reject non-float inner types.
652
e4f0f84d
TB
6532013-07-12 Tejas Belagod <tejas.belagod@arm.com>
654
655 * config/aarch64/aarch64-protos.h
656 (aarch64_simd_immediate_valid_for_move): Remove.
657 * config/aarch64/aarch64.c (simd_immediate_info): New member.
658 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
659 cases.
660 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
661
76500022
SE
6622013-07-11 Steve Ellcey <sellcey@mips.com>
663
664 * config/mips/mips.c (mips_conditional_register_usage): Do not
665 use t[0-7] registers in MIPS16 mode when optimizing for size.
666
78039734
ST
6672013-07-11 Sriraman Tallam <tmsriram@google.com>
668
669 * config/i386/i386.c (dispatch_function_versions): Fix array
670 indexing of function_version_info to match actual_versions.
671
7b24b675
TJ
6722013-07-11 Teresa Johnson <tejohnson@google.com>
673
674 * vec.h (struct va_gc): Move release out-of-line.
675 (va_gc::release): Call ggc_free on released vec.
676
85d4cbb8
UW
6772013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
678
679 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
680 Require GOT register as additional operand in UNSPEC.
681 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
682 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
683 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
684 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
685 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
686 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
687 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
688
52b3f9e2
GJL
6892013-07-11 Georg-Johann Lay <avr@gjlay.de>
690
691 PR target/57631
692 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
693 name seen by assembler/linker rather if available.
694
3f3e266e
AS
6952013-07-11 Andreas Schwab <schwab@suse.de>
696
697 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
698
21231ca6
VM
6992013-07-10 Vladimir Makarov <vmakarov@redhat.com>
700
371e77e3 701 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
21231ca6 702
d331d374
JM
7032013-07-10 Joseph Myers <joseph@codesourcery.com>
704
673c2f63
JM
705 * doc/tm.texi.in: Move hook documentation to ....
706 * target.def: ... here.
707
d331d374
JM
708 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
709 text on @hook line.
710 * doc/tm.texi: Regenerate.
711
dfeadaa0
PC
7122013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
713
714 PR c++/57869
715 * doc/invoke.texi: Document -Wconditionally-supported.
716
bb6f2bac
GJL
7172013-07-10 Georg-Johann Lay <avr@gjlay.de>
718
719 PR target/57844
720 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
721 of my_fp.
722
5219b232
GJL
7232013-07-10 Georg-Johann Lay <avr@gjlay.de>
724
725 PR target/57506
726 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
727 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
728 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
729 Remove duplicate devices.
730 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
731 * config/avr/t-multilib: Regenerate.
732 * config/avr/avr-tables.opt: Regenerate.
733 * doc/avr-mmcu.texi: Regenerate.
734
283045c0
GJL
7352013-07-10 Georg-Johann Lay <avr@gjlay.de>
736
737 PR target/56987
738 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
739
ceb2d59f 7402013-07-10 Graham Stott <graham.stott@btinternet.com>
6a2fa4b2 741
ceb2d59f
GS
742 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
743 the cost of MULT when optimizing for size.
744
055e0a99
JBG
7452013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
746
747 * config/cr16/cr16-protos.h: Don't include target.h.
748
ef43e868
JM
7492013-07-09 Joseph Myers <joseph@codesourcery.com>
750
751 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
752 adjust register size for TDmode and TFmode for VSX registers.
753
4a283fdf
KT
7542013-07-08 Kai Tietz <ktietz@redhat.com>
755
756 PR target/56892
757 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
758 hook_bool_const_tree_true.
759
2cf4c39e
AK
7602013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
761
762 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
763 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
764 * config/s390/s390.md: Define FPR*_REGNUM constants.
765 Fix FPR2_REGNUM constant (18 -> 17).
766 ("*trunc<BFP:mode><DFP_ALL:mode>2")
767 ("*trunc<DFP_ALL:mode><BFP:mode>2")
768 ("trunc<BFP:mode><DFP_ALL:mode>2")
769 ("trunc<DFP_ALL:mode><BFP:mode>2")
770 ("*extend<BFP:mode><DFP_ALL:mode>2")
771 ("*extend<DFP_ALL:mode><BFP:mode>2")
772 ("extend<BFP:mode><DFP_ALL:mode>2")
773 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
774 FPR4_REGNUM.
775
e6ac0270 7762013-07-08 Graham Stott <graham.stott@btinternet.com>
e6ac0270 777
6a2fa4b2 778 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
64a92610 779
b89b22fc
AK
7802013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
781
782 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
783 and cfun_fpr_bit_p to cfun_fpr_save_p.
784 (s390_frame_area, s390_register_info, s390_frame_info)
785 (s390_emit_prologue, s390_emit_epilogue)
786 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
787 register numbers.
788 * config/s390/s390.h: Define *_REGNUM macros for floating point
789 register numbers.
790
07f398aa
EB
7912013-07-08 Eric Botcazou <ebotcazou@adacore.com>
792
793 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
794
75fefa91
PCC
7952013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
796
797 PR rtl-optimization/57786
798 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
799 and break out of the loop when it is set to false.
800
046f1eee
JJ
8012013-07-08 Jakub Jelinek <jakub@redhat.com>
802
8140c065
JJ
803 PR target/57819
804 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
805 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
806 (const_int 63)) 0)).
807 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
808 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
809 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
810
046f1eee
JJ
811 PR rtl-optimization/57829
812 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
813 mask bits outside of mode are just sign-extension from mode to HWI.
814
930b700b
MZ
8152013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
816
817 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
818 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
819 adjust_address instead of change_address to keep info about alignment.
820 (emit_strmov): Remove.
821 (emit_memmov): New function.
822 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
823 (expand_movmem_epilogue): Likewise and return updated rtx for
824 destination.
825 (expand_constant_movmem_prologue): Likewise and return updated rtx for
826 destination and source.
827 (decide_alignment): Refactor, handle vector_loop.
828 (ix86_expand_movmem): Likewise.
829 (ix86_expand_setmem): Likewise.
830 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
831
7b9d1bd8
UB
8322013-07-07 Uros Bizjak <ubizjak@gmail.com>
833
834 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
835 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
836
eabb5f48
UB
8372013-07-06 Uros Bizjak <ubizjak@gmail.com>
838
839 * config/i386/sse.md (sse_movlhps): Change alternative 3
840 of operand 2 to "m".
841
8422013-07-06 Uros Bizjak <ubizjak@gmail.com>
843
844 PR target/57807
845 * config/i386/sse.md (iptr): New mode attribute.
846 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
847 (<sse>_vm<plusminus_insn><mode>3): Ditto.
848 (<sse>_vmmul<mode>3): Ditto.
849 (<sse>_vmdiv<mode>3): Ditto.
850 (sse_vmrcpv4sf2): Ditto.
851 (<sse>_vmsqrt<mode>2): Ditto.
852 (sse_vmrsqrtv4sf2): Ditto.
853 (<sse>_vm<code><mode>3): Ditto.
854 (avx_vmcmp<mode>3): Ditto.
855 (<sse>_vmmaskcmp<mode>3): Ditto.
856 (<sse>_comi): Ditto.
857 (<sse>_ucomi): Ditto.
858 (*xop_vmfrcz_<mode>): Ditto.
859 (*fmai_fmadd_<mode>): Ditto.
860 (*fmai_fmsub_<mode>): Ditto.
861 (*fmai_fnmadd_<mode>): Ditto.
862 (*fmai_fnmsub_<mode>): Ditto.
863 (*fma4i_vmfmadd_<mode>): Ditto.
864 (*fma4i_vmfmsub_<mode>): Ditto.
865 (*fma4i_vmfnmadd_<mode>): Ditto.
866 (*fma4i_vmfnmsub_<mode>): Ditto.
867 (*xop_vmfrcz_<mode>): Ditto.
868 (sse_cvtps2pi): Ditto.
869 (sse_cvttps2pi): Ditto.
870 (sse_cvtss2si): Ditto.
871 (sse_cvtss2si_2): Ditto.
872 (sse_cvtss2siq_2): Ditto.
873 (sse_cvttss2si): Ditto.
874 (sse_cvttss2siq): Ditto.
875 (sse_cvtsd2si): Ditto.
876 (sse_cvtsd2si_2): Ditto.
877 (sse_cvtsd2siq_2): Ditto.
878 (sse_cvttsd2si): Ditto.
879 (sse_cvttsd2siq): Ditto.
880 (sse_cvtsd2ss): Ditto.
881 (sse_cvtss2sd): Ditto.
882 (avx2_pbroadcast<mode>): Ditto.
883 (avx2_pbroadcast<mode>_1): Ditto.
884 (*avx_vperm_broadcast_v4sf): Ditto.
885
886 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
887 (sse_movlhps): Ditto.
888 (sse_storehps): Ditto.
889 (sse_loadhps): Ditto.
890 (sse_storelps): Ditto.
891 (sse_loadlps): Ditto.
892 (*vec_concatv4sf): Ditto.
893 (*vec_interleave_highv2df): Ditto.
894 (*vec_interleave_lowv2df): Ditto.
895 (*vec_extractv2df_1_sse): Ditto.
896 (*vec_extractv2df_0_sse): Ditto.
897 (sse2_storelpd): Ditto.
898 (sse2_loadlpd): Ditto.
899 (sse2_movsd): Ditto.
900 (*vec_concatv4si): Ditto.
901 (vec_concatv2di): Ditto.
902
903 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
904 for Intel asm dialect.
905 (mmx_punpcklwd): Ditto.
906 (mmx_punpckldq): Ditto.
907
908 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
909 for intel assembler dialect.
910
1f6eac90
JJ
9112013-07-06 Jakub Jelinek <jakub@redhat.com>
912
913 PR target/29776
914 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
915 for BUILT_IN_C{LZ,LRSB}*.
916 * tree.h (CASE_INT_FN): Add FN##IMAX case.
917 * tree-vrp.c (extract_range_basic): Handle
918 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
919 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
920 fall thru to code calling set_value*.
921 * builtins.c (expand_builtin): Remove *IMAX cases.
922 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
923 if width is bigger than 2*HWI.
924
2b778c9d
VM
9252013-07-05 Vladimir Makarov <vmakarov@redhat.com>
926
927 PR rtl-optimization/55342
928 * lra-int.h (lra_subreg_reload_pseudos): New.
929 * lra.c: Add undoing optional reloads to the block diagram.
930 (lra_subreg_reload_pseudos): New.
931 (lra_optional_reload_pseudos): Change comments.
932 (lra): Init and clear lra_subreg_reload_pseudos. Clear
933 lra_optional_reload_pseudos after undo transformations.
934 * lra-assigns.c (pseudo_prefix_title): New.
935 (lra_setup_reg_renumber): Use it.
936 (spill_for): Ditto. Check subreg reload pseudos too.
937 (assign_by_spills): Consider subreg reload pseudos too.
938 * lra-constraints.c (simplify_operand_subreg): Use
939 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
940 (curr_insn_transform): Recognize and do optional reloads.
941 (undo_optional_reloads): New.
942 (lra_undo_inheritance): Call undo_optional_reloads.
943
207156e4
TQ
9442013-07-05 Thomas Quinot <quinot@adacore.com>
945
946 * tree-complex.c (expand_complex_operations_1): Fix typo.
947
8990e73a
TB
9482013-07-04 Tejas Belagod <tejas.belagod@arm.com>
949
950 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
951 (tune_params): New member 'const vec_costs'.
952 * config/aarch64/aarch64.c (generic_vector_cost): New.
953 (generic_tunings): New member 'generic_vector_cost'.
954 (aarch64_builtin_vectorization_cost): New.
955 (aarch64_add_stmt_cost): New.
956 (TARGET_VECTORIZE_ADD_STMT_COST): New.
957 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
958
f7bc421d
JJ
9592013-07-03 Jakub Jelinek <jakub@redhat.com>
960
961 PR target/57777
962 * config/i386/predicates.md (vsib_address_operand): Disallow
963 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
964
e90d1568
HPN
9652013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
966
967 PR middle-end/55030
968 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
969 expand_builtin_setjmp_receiver.
970 (expand_label): Adjust, call expand_builtin_setjmp_receiver
971 with NULL for the label parameter.
972 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
973 the frame-pointer. Adjust comments.
974 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
975 only if LABEL is non-NULL.
976
cbd7413b
YZ
9772013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
978
979 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
980 (ARM_ABI_AAPCS64): Ditto.
981 (arm_abi): Ditto.
982 (ARM_DEFAULT_ABI): Ditto.
983
dec11868
JG
9842013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
985
986 * config/aarch64/aarch64-builtins.c
987 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
988 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
989 (st1): Likewise.
990 * config/aarch64/aarch64-simd.md
991 (aarch64_ld1<VALL:mode>): New.
992 (aarch64_st1<VALL:mode>): Likewise.
993 * config/aarch64/arm_neon.h
994 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
995
786fb9b6
ST
9962013-07-02 Sriraman Tallam <tmsriram@google.com>
997
0ba6aff3
UB
998 * config/i386/i386.c (gate_insert_vzeroupper): Check if
999 target ISA is AVX.
786fb9b6
ST
1000 (ix86_option_override_internal):Turn on all -mavx target flags by
1001 default as they are dependent on AVX anyway.
1002
4b043553
CC
10032013-07-02 Cary Coutant <ccoutant@google.com>
1004
1005 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
1006 deterministic hash.
1007 (loc_checksum_ordered): Likewise.
1008 (hash_loc_operands): Remove inline keyword.
1009
c4e87a13
JJ
10102013-07-02 Jakub Jelinek <jakub@redhat.com>
1011
1012 PR tree-optimization/57741
1013 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
1014 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
1015 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
1016 Allow REAL_CST step_exprs if flag_associative_math.
1017 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
1018
26366d28
IB
10192013-07-02 Ian Bolton <ian.bolton@arm.com>
1020
0ba6aff3 1021 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
26366d28 1022
2879bb2b
IB
10232013-07-02 Ian Bolton <ian.bolton@arm.com>
1024
1025 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
1026
afc5e8a6
KT
10272013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1028
1029 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
1030 encoding.
1031 (iorsi3_insn): Likewise.
1032 (arm_xorsi3): Likewise.
1033
31f8442b
SN
10342013-07-01 Sofiane Naci <sofiane.naci@arm.com>
1035
1036 * arm.md (attribute "wtype"): Delete. Move attribute values from here
1037 to ...
1038 (attribute "type"): ... here, and prefix with "wmmx_".
1039 (attribute "core_cycles"): Update for attribute changes.
1040 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
1041 (tbcstv4hi): Likewise.
1042 (tbcstv2si): Likewise.
1043 (iwmmxt_iordi3): Likewise.
1044 (iwmmxt_xordi3): Likewise.
1045 (iwmmxt_anddi3): Likewise.
1046 (iwmmxt_nanddi3): Likewise.
1047 (iwmmxt_arm_movdi): Likewise.
1048 (iwmmxt_movsi_insn): Likewise.
1049 (mov<mode>_internal): Likewise.
1050 (and<mode>3_iwmmxt): Likewise.
1051 (ior<mode>3_iwmmxt): Likewise.
1052 (xor<mode>3_iwmmxt): Likewise.
1053 (add<mode>3_iwmmxt): Likewise.
1054 (ssaddv8qi3): Likewise.
1055 (ssaddv4hi3): Likewise.
1056 (ssaddv2si3): Likewise.
1057 (usaddv8qi3): Likewise.
1058 (usaddv4hi3): Likewise.
1059 (usaddv2si3): Likewise.
1060 (sub<mode>3_iwmmxt): Likewise.
1061 (sssubv8qi3): Likewise.
1062 (sssubv4hi3): Likewise.
1063 (sssubv2si3): Likewise.
1064 (ussubv8qi3): Likewise.
1065 (ussubv4hi3): Likewise.
1066 (ussubv2si3): Likewise.
1067 (mulv4hi3_iwmmxt): Likewise.
1068 (smulv4hi3_highpart): Likewise.
1069 (umulv4hi3_highpart): Likewise.
1070 (iwmmxt_wmacs): Likewise.
1071 (iwmmxt_wmacsz): Likewise.
1072 (iwmmxt_wmacu): Likewise.
1073 (iwmmxt_wmacuz): Likewise.
1074 (iwmmxt_clrdi): Likewise.
1075 (iwmmxt_clrv8qi): Likewise.
1076 (iwmmxt_clr4hi): Likewise.
1077 (iwmmxt_clr2si): Likewise.
1078 (iwmmxt_uavgrndv8qi3): Likewise.
1079 (iwmmxt_uavgrndv4hi3): Likewise.
1080 (iwmmxt_uavgv8qi3): Likewise.
1081 (iwmmxt_uavgv4hi3): Likewise.
1082 (iwmmxt_tinsrb): Likewise.
1083 (iwmmxt_tinsrh): Likewise.
1084 (iwmmxt_tinsrw): Likewise.
1085 (iwmmxt_textrmub): Likewise.
1086 (iwmmxt_textrmsb): Likewise.
1087 (iwmmxt_textrmuh): Likewise.
1088 (iwmmxt_textrmsh): Likewise.
1089 (iwmmxt_textrmw): Likewise.
1090 (iwmxxt_wshufh): Likewise.
1091 (eqv8qi3): Likewise.
1092 (eqv4hi3): Likewise.
1093 (eqv2si3): Likewise.
1094 (gtuv8qi3): Likewise.
1095 (gtuv4hi3): Likewise.
1096 (gtuv2si3): Likewise.
1097 (gtv8qi3): Likewise.
1098 (gtv4hi3): Likewise.
1099 (gtv2si3): Likewise.
1100 (smax<mode>3_iwmmxt): Likewise.
1101 (umax<mode>3_iwmmxt): Likewise.
1102 (smin<mode>3_iwmmxt): Likewise.
1103 (umin<mode>3_iwmmxt): Likewise.
1104 (iwmmxt_wpackhss): Likewise.
1105 (iwmmxt_wpackwss): Likewise.
1106 (iwmmxt_wpackdss): Likewise.
1107 (iwmmxt_wpackhus): Likewise.
1108 (iwmmxt_wpackwus): Likewise.
1109 (iwmmxt_wpackdus): Likewise.
1110 (iwmmxt_wunpckihb): Likewise.
1111 (iwmmxt_wunpckihh): Likewise.
1112 (iwmmxt_wunpckihw): Likewise.
1113 (iwmmxt_wunpckilb): Likewise.
1114 (iwmmxt_wunpckilh): Likewise.
1115 (iwmmxt_wunpckilw): Likewise.
1116 (iwmmxt_wunpckehub): Likewise.
1117 (iwmmxt_wunpckehuh): Likewise.
1118 (iwmmxt_wunpckehuw): Likewise.
1119 (iwmmxt_wunpckehsb): Likewise.
1120 (iwmmxt_wunpckehsh): Likewise.
1121 (iwmmxt_wunpckehsw): Likewise.
1122 (iwmmxt_wunpckelub): Likewise.
1123 (iwmmxt_wunpckeluh): Likewise.
1124 (iwmmxt_wunpckeluw): Likewise.
1125 (iwmmxt_wunpckelsb): Likewise.
1126 (iwmmxt_wunpckelsh): Likewise.
1127 (iwmmxt_wunpckelsw): Likewise.
1128 (ror<mode>3): Likewise.
1129 (ashr<mode>3_iwmmxt): Likewise.
1130 (lshr<mode>3_iwmmxt): Likewise.
1131 (ashl<mode>3_iwmmxt): Likewise.
1132 (ror<mode>3_di): Likewise.
1133 (ashr<mode>3_di): Likewise.
1134 (lshr<mode>3_di): Likewise.
1135 (ashl<mode>3_di): Likewise.
1136 (iwmmxt_wmadds): Likewise.
1137 (iwmmxt_wmaddu): Likewise.
1138 (iwmmxt_tmia): Likewise.
1139 (iwmmxt_tmiaph): Likewise.
1140 (iwmmxt_tmiabb): Likewise.
1141 (iwmmxt_tmiatb): Likewise.
1142 (iwmmxt_tmiabt): Likewise.
1143 (iwmmxt_tmiatt): Likewise.
1144 (iwmmxt_tmovmskb): Likewise.
1145 (iwmmxt_tmovmskh): Likewise.
1146 (iwmmxt_tmovmskw): Likewise.
1147 (iwmmxt_waccb): Likewise.
1148 (iwmmxt_wacch): Likewise.
1149 (iwmmxt_waccw): Likewise.
1150 (iwmmxt_waligni): Likewise.
1151 (iwmmxt_walignr): Likewise.
1152 (iwmmxt_walignr0): Likewise.
1153 (iwmmxt_walignr1): Likewise.
1154 (iwmmxt_walignr2): Likewise.
1155 (iwmmxt_walignr3): Likewise.
1156 (iwmmxt_wsadb): Likewise.
1157 (iwmmxt_wsadh): Likewise.
1158 (iwmmxt_wsadbz): Likewise.
1159 (iwmmxt_wsadhz): Likewise.
1160 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
1161 (iwmmxt_wabsdiffb): Likewise.
1162 (iwmmxt_wabsdiffh): Likewise.
1163 (iwmmxt_wabsdiffw): Likewise.
1164 (iwmmxt_waddsubhx): Likewise
1165 (iwmmxt_wsubaddhx): Likewise.
1166 (addc<mode>3): Likewise.
1167 (iwmmxt_avg4): Likewise.
1168 (iwmmxt_avg4r): Likewise.
1169 (iwmmxt_wmaddsx): Likewise.
1170 (iwmmxt_wmaddux): Likewise.
1171 (iwmmxt_wmaddsn): Likewise.
1172 (iwmmxt_wmaddun): Likewise.
1173 (iwmmxt_wmulwsm): Likewise.
1174 (iwmmxt_wmulwum): Likewise.
1175 (iwmmxt_wmulsmr): Likewise.
1176 (iwmmxt_wmulumr): Likewise.
1177 (iwmmxt_wmulwsmr): Likewise.
1178 (iwmmxt_wmulwumr): Likewise.
1179 (iwmmxt_wmulwl): Likewise.
1180 (iwmmxt_wqmulm): Likewise.
1181 (iwmmxt_wqmulwm): Likewise.
1182 (iwmmxt_wqmulmr): Likewise.
1183 (iwmmxt_wqmulwmr): Likewise.
1184 (iwmmxt_waddbhusm): Likewise.
1185 (iwmmxt_waddbhusl): Likewise.
1186 (iwmmxt_wqmiabb): Likewise.
1187 (iwmmxt_wqmiabt): Likewise.
1188 (iwmmxt_wqmiatb): Likewise.
1189 (iwmmxt_wqmiatt): Likewise.
1190 (iwmmxt_wqmiabbn): Likewise.
1191 (iwmmxt_wqmiabtn): Likewise.
1192 (iwmmxt_wqmiatbn): Likewise.
1193 (iwmmxt_wqmiattn): Likewise.
1194 (iwmmxt_wmiabb): Likewise.
1195 (iwmmxt_wmiabt): Likewise.
1196 (iwmmxt_wmiatb): Likewise.
1197 (iwmmxt_wmiatt): Likewise.
1198 (iwmmxt_wmiabbn): Likewise.
1199 (iwmmxt_wmiabtn): Likewise.
1200 (iwmmxt_wmiatbn): Likewise.
1201 (iwmmxt_wmiattn): Likewise.
1202 (iwmmxt_wmiawbb): Likewise.
1203 (iwmmxt_wmiawbt): Likewise.
1204 (iwmmxt_wmiawtb): Likewise.
1205 (iwmmxt_wmiawtt): Likewise.
1206 (iwmmxt_wmiawbbn): Likewise.
1207 (iwmmxt_wmiawbtn): Likewise.
1208 (iwmmxt_wmiawtbn): Likewise.
1209 (iwmmxt_wmiawttn): Likewise.
1210 (iwmmxt_wmerge): Likewise.
1211 (iwmmxt_tandc<mode>3): Likewise.
1212 (iwmmxt_torc<mode>3): Likewise.
1213 (iwmmxt_torvsc<mode>3): Likewise.
1214 (iwmmxt_textrc<mode>3): Likewise.
1215 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
1216 (wmmxt_pack): Likewise.
1217 (wmmxt_mult_c1): Likewise.
1218 (wmmxt_mult_c2): Likewise.
1219 (wmmxt_alu_c1): Likewise.
1220 (wmmxt_alu_c2): Likewise.
1221 (wmmxt_alu_c3): Likewise.
1222 (wmmxt_transfer_c1): Likewise.
1223 (wmmxt_transfer_c2): Likewise.
1224 (wmmxt_transfer_c3): Likewise.
1225 (marvell_f_iwmmxt_wstr): Likewise.
1226 (marvell_f_iwmmxt_wldr): Likewise.
1227
bdb7bf8a
YZ
12282013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
1229
0ba6aff3 1230 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
bdb7bf8a 1231
e6631d38
VM
12322013-06-28 Vladimir Makarov <vmakarov@redhat.com>
1233
1234 Revert:
1235 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
1236 * lra-constraints.c (need_for_split_p): Check call used hard regs
1237 living through calls.
1238
1239 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
1240 call used regs for call insn.
1241
53c1275b
JJ
12422013-06-28 Jakub Jelinek <jakub@redhat.com>
1243
1244 PR target/57736
0ba6aff3
UB
1245 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
1246 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
53c1275b 1247
1141ed3f
BI
12482013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1249
1250 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
e6631d38 1251
e32e4c4a
VM
12522013-06-28 Vladimir Makarov <vmakarov@redhat.com>
1253
1254 * lra-constraints.c (need_for_split_p): Check call used hard regs
1255 living through calls.
1256
f161bfd3
MM
12572013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
1258
1259 PR target/57744
1260 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
1261 to tie with any other modes. Eliminate Altivec vector mode tests,
1262 since these are a subset of ALTIVEC or VSX vector modes. Simplify
1263 code, to return 0 if testing MODE2 for a condition, if we've
1264 already tested MODE1 for the same condition.
1265
7eda14e1
MS
12662013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1267
1268 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
1269 layout.
1270
c822f852
MS
12712013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1272
1273 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
1274 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
1275
da4f13a4
MS
12762013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1277
0ba6aff3
UB
1278 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
1279 Define.
da4f13a4
MS
1280 (aarch64_symbolic_constant_p): Remove.
1281 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
1282 static. Fix line length and white space.
1283 (aarch64_symbolic_constant_p): Remove.
1284 * config/aarch64/predicates.md (aarch64_valid_symref):
1285 Use aarch64_classify_symbol_expression.
1286
956a95a5
KT
12872013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1288
1289 * config/arm/constraints.md (Ts): New constraint.
1290 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
1291 16-bit encodings.
1292 (compare_scc): Use "Ts" constraint for operand 0.
1293 (ior_scc_scc): Likewise.
1294 (and_scc_scc): Likewise.
1295 (and_scc_scc_nodom): Likewise.
1296 (ior_scc_scc_cmp): Likewise for operand 7.
1297 (and_scc_scc_cmp): Likewise.
1298 * config/arm/thumb2.md (thumb2_movsi_insn):
1299 Add alternatives for 16-bit encodings.
1300 (thumb2_movhi_insn): Likewise.
1301 (thumb2_movsicc_insn): Likewise.
1302 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
1303 (thumb2_negscc): Use "Ts" constraint.
1304 Move mvn instruction outside cond_exec block.
1305 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
1306 for 16-bit encodings.
1307
31dfce10
KT
13082013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1309
1310 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
1311 encoding.
1312 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
1313 (mulsi3subsi): Likewise.
1314 (mulsidi3adddi): Likewise.
1315 (mulsidi3_v6): Likewise.
1316 (umulsidi3_v6): Likewise.
1317 (umulsidi3adddi_v6): Likewise.
1318 (smulsi3_highpart_v6): Likewise.
1319 (umulsi3_highpart_v6): Likewise.
1320 (mulhisi3tb): Likewise.
1321 (mulhisi3bt): Likewise.
1322 (mulhisi3tt): Likewise.
1323 (maddhisi4): Likewise.
1324 (maddhisi4tb): Likewise.
1325 (maddhisi4tt): Likewise.
1326 (maddhidi4): Likewise.
1327 (maddhidi4tb): Likewise.
1328 (maddhidi4tt): Likewise.
1329 (zeroextractsi_compare0_scratch): Likewise.
1330 (insv_zero): Likewise.
1331 (insv_t2): Likewise.
1332 (anddi_notzesidi_di): Likewise.
1333 (anddi_notsesidi_di): Likewise.
1334 (andsi_notsi_si): Likewise.
1335 (iordi_zesidi_di): Likewise.
1336 (xordi_zesidi_di): Likewise.
1337 (andsi_iorsi3_notsi): Likewise.
1338 (smax_0): Likewise.
1339 (smax_m1): Likewise.
1340 (smin_0): Likewise.
1341 (not_shiftsi): Likewise.
1342 (unaligned_loadsi): Likewise.
1343 (unaligned_loadhis): Likewise.
1344 (unaligned_loadhiu): Likewise.
1345 (unaligned_storesi): Likewise.
1346 (unaligned_storehi): Likewise.
1347 (extv_reg): Likewise.
1348 (extzv_t2): Likewise.
1349 (divsi3): Likewise.
1350 (udivsi3): Likewise.
1351 (arm_zero_extendhisi2addsi): Likewise.
1352 (arm_zero_extendqisi2addsi): Likewise.
1353 (compareqi_eq0): Likewise.
1354 (arm_extendhisi2_v6): Likewise.
1355 (arm_extendqisi2addsi): Likewise.
1356 (arm_movt): Likewise.
1357 (thumb2_ldrd): Likewise.
1358 (thumb2_ldrd_base): Likewise.
1359 (thumb2_ldrd_base_neg): Likewise.
1360 (thumb2_strd): Likewise.
1361 (thumb2_strd_base): Likewise.
1362 (thumb2_strd_base_neg): Likewise.
1363 (arm_negsi2): Add alternative for 16-bit encoding.
1364 (arm_one_cmplsi2): Likewise.
1365
1572e697
KT
13662013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1367
1368 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
1369 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
1370 (movdfcc): Likewise.
1371 * config/arm/vfp.md (*thumb2_movsf_vfp):
1372 Disable predication for arm_restrict_it.
1373 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
1374 (*thumb2_movdfcc_vfp): Likewise.
1375 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
1376 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
1377 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
1378 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
1379 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
1380 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
1381 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
1382 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
1383 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
1384 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
1385 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
1386 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
1387 Disable predication for arm_restrict_it.
1388
ebf8f0ea
KY
13892013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
1390
1391 * config/i386/bmiintrin.h (_bextr_u32): New.
1392 (_bextr_u64): Ditto.
1393
a290fcda
RS
13942013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
1395
1396 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
1397 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
1398 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
1399 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
1400 * config/mips/n32-elf.h: ...this new file.
1401
ea169996
MG
14022013-06-27 Marc Glisse <marc.glisse@inria.fr>
1403
1404 PR target/57224
1405 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
1406 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
1407
8e932114
CM
14082013-06-27 Catherine Moore <clm@codesourcery.com>
1409
1410 * config/mips/mips-tables.opt: Regenerate.
1411 * config/mips/mips-cpus.def: Add m14ke and m14kec.
0ba6aff3 1412 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
8e932114 1413 * doc/invoke.texi: Add -m14kc.
ebf8f0ea 1414
2444244e
JJ
14152013-06-27 Jakub Jelinek <jakub@redhat.com>
1416
cd06d2a2
JJ
1417 PR target/57623
1418 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
1419 constraints of operand 1 and 2.
1420
2444244e
JJ
1421 PR target/57623
1422 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
1423 to match RTL canonicalization. Swap predicates and
1424 constraints of operand 1 and 2.
1425
2f259720
VM
14262013-06-27 Vladimir Makarov <vmakarov@redhat.com>
1427
0ba6aff3
UB
1428 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
1429 Process OP_INOUT regs for splitting too.
2f259720 1430
fef4d2b3
JJ
14312013-06-27 Jakub Jelinek <jakub@redhat.com>
1432
1433 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
1434 decl before the loop, initialize to NULL.
1435 (vectorizable_load): Initialize ptr_incr to NULL.
1436
79ee9826
MJ
14372013-06-27 Martin Jambor <mjambor@suse.cz>
1438
1439 PR lto/57208
1440 * ipa-ref.h (ipa_maybe_record_reference): Declare.
1441 * ipa-ref.c (ipa_maybe_record_reference): New function.
1442 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
1443 * ipa-cp.c (create_specialized_node): Record potential references from
1444 aggvals.
1445 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
1446
e18b4a81
YZ
14472013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
1448
1449 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
1450 parameter 'mode' of type 'enum machine_mode mode'; change to pass
1451 'mode' to force_reg.
1452 (aarch64_add_offset): Update calls to aarch64_force_temporary.
1453 (aarch64_expand_mov_immediate): Likewise.
1454
9c023bf0
YZ
14552013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
1456
1457 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
1458 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
1459
5a3fe9b6
AK
14602013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1461
1462 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
1463 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
1464 (struct machine_function): Add tbegin_p.
1465 (s390_canonicalize_comparison): Fold CC mode compares to
1466 conditional jump if possible.
1467 (s390_emit_jump): Return the emitted jump.
1468 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
1469 Handle CCRAWmode compares.
1470 (s390_option_override): Default to -mhtm if available.
1471 (s390_reg_clobbered_rtx): Handle floating point regs as well.
1472 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
1473 FPRs instead of df_regs_ever_live_p.
1474 (s390_optimize_nonescaping_tx): New function.
1475 (s390_init_frame_layout): Extend clobbered_regs array to cover
1476 FPRs as well.
1477 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
1478 (s390_expand_tbegin): New function.
1479 (enum s390_builtin): New enum definition.
1480 (code_for_builtin): New array definition.
1481 (s390_init_builtins): New function.
1482 (s390_expand_builtin): New function.
1483 (TARGET_INIT_BUILTINS): Define.
1484 (TARGET_EXPAND_BUILTIN): Define.
0ba6aff3 1485 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
5a3fe9b6
AK
1486 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
1487 (s390_alc_comparison): Likewise.
1488 * config/s390/s390-modes.def: Add CCRAWmode.
1489 * config/s390/s390.h (processor_flags): Add PF_TX.
1490 (TARGET_CPU_HTM): Define macro.
1491 (TARGET_HTM): Define macro.
1492 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
1493 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
1494 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
1495 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
0ba6aff3 1496 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
5a3fe9b6
AK
1497 (TBEGIN_MASK, TBEGINC_MASK): New constants.
1498 ("*cc_to_int"): Move up.
1499 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
1500 constants other than 0.
1501 ("*ccraw_to_int"): New insn and splitter definition.
1502 ("tbegin", "tbegin_nofloat", "tbegin_retry")
1503 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
1504 ("tx_assist"): New expander.
1505 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
1506 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
1507 * config/s390/s390.opt: Add -mhtm option.
1508 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
1509 * config/s390/htmxlintrin.h: New file.
1510 * config/s390/htmintrin.h: New file.
1511 * config/s390/s390intrin.h: New file.
1512 * doc/extend.texi: Document htm builtins.
1513 * config.gcc: Add the new header files to extra_headers.
1514
9e216629
TS
15152013-06-26 Thomas Schwinge <thomas@codesourcery.com>
1516
1517 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
0ba6aff3 1518 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
9e216629 1519
fd8c65e7
MM
15202013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
1521 Pat Haugen <pthaugen@us.ibm.com>
1522 Peter Bergner <bergner@vnet.ibm.com>
1523
1524 * config/rs6000/power8.md: New.
1525 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
1526 setting for power8 entry.
1527 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
1528 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
1529 test for Power4/Power5 only.
1530 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
1531 support.
1532 (force_new_group): Adjust comment.
1533 * config/rs6000/rs6000.md: Include power8.md.
1534
b24a2ce5
GY
15352013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
1536
1537 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
1538 * config/arm/arm-protos.h (arm_max_conditional_execute): New
1539 declaration.
1540 (tune_params): Update comment.
1541 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
1542 (arm_max_conditional_execute): New function.
1543 (thumb2_final_prescan_insn): Use max_insn_skipped and
1544 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
1545
f6fdeb62
JJ
15462013-06-25 Jakub Jelinek <jakub@redhat.com>
1547
1548 PR tree-optimization/57705
1549 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
1550 SSA_NAME step, provided that it is not defined inside the loop.
0ba6aff3 1551 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
f6fdeb62
JJ
1552 (get_initial_def_for_induction): Handle SSA_NAME IV step.
1553
c13bc3d9
MJ
15542013-06-25 Martin Jambor <mjambor@suse.cz>
1555
1556 PR middle-end/57670
1557 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
1558 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
1559 calls in the dump.
1560 (ipa_note_param_call): Initialize member_ptr flag.
1561 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
1562 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
1563 (ipa_write_indirect_edge_info): Stream member_ptr flag.
1564 (ipa_read_indirect_edge_info): Likewise.
1565
8a845901
RB
15662013-06-25 Richard Biener <rguenther@suse.de>
1567
1568 PR middle-end/56977
1569 * passes.c (init_optimization_passes): Move pass_fold_builtins
1570 and pass_dce earlier with -Og.
1571
33be0bec
EB
15722013-06-25 Eric Botcazou <ebotcazou@adacore.com>
1573
1574 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
1575 <BIT_FIELD_REF>: Remove trailing TAB.
1576 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
1577 remove blank line.
1578
5fe8e757
MJ
15792013-06-24 Martin Jambor <mjambor@suse.cz>
1580
1581 PR tree-optimization/57358
1582 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
1583 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
1584 (ipa_analyze_params_uses): Generate pessimistic info when true.
1585
44a60244
MJ
15862013-06-24 Martin Jambor <mjambor@suse.cz>
1587
1588 PR tree-optimization/57539
1589 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
1590 global.inlined_to of the new node to it. All callers changed.
1591 * ipa-inline-transform.c (clone_inlined_nodes): New variable
1592 inlining_into, pass it to cgraph_clone_node.
1593 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
1594 ipa_free_edge_args_substructures.
1595 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
1596 rdesc linked list. Do not assert rdesc edges have inlined caller.
1597 Assert we have found an rdesc in the rdesc list.
1598
7c5848b8
RB
15992013-06-24 Richard Biener <rguenther@suse.de>
1600
0ba6aff3 1601 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
7c5848b8
RB
1602 (pointer_set_lookup): Declare.
1603 (class pointer_map): New template class implementing a
1604 generic pointer to T map.
1605 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
1606 pointer_map<T>::contains, pointer_map<T>::insert,
1607 pointer_map<T>::traverse): New functions.
1608 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
1609 (pointer_set_lookup): New function.
1610 (pointer_set_contains): Use pointer_set_lookup.
1611 (pointer_set_insert): Likewise.
1612 (insert_aux): Remove.
1613 (struct pointer_map_t): Embed a pointer_set_t.
1614 (pointer_map_create): Adjust.
1615 (pointer_map_destroy): Likewise.
1616 (pointer_map_contains): Likewise.
1617 (pointer_map_insert): Likewise.
1618 (pointer_map_traverse): Likewise.
1619 * tree-streamer.h (struct streamer_tree_cache_d): Use a
1620 pointer_map<unsigned> instead of a pointer_map_t.
1621 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
1622 (streamer_tree_cache_lookup): Likewise.
1623 (streamer_tree_cache_create): Likewise.
1624 (streamer_tree_cache_delete): Likewise.
1625 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
1626 pointer_map<unsigned> instead of a pointer_map_t.
1627 (lto_init_tree_ref_encoder): Adjust.
1628 (lto_destroy_tree_ref_encoder): Likewise.
1629 * lto-section-out.c (lto_output_decl_index): Likewise.
1630 (lto_record_function_out_decl_state): Likewise.
1631 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
1632
3dbc97a9
RB
16332013-06-24 Richard Biener <rguenther@suse.de>
1634
1635 PR tree-optimization/57488
1636 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
1637
8345965a
AM
16382013-06-24 Alan Modra <amodra@gmail.com>
1639
1640 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
1641 (gen_easy_altivec_constant): Likewise.
1642 * config/rs6000/predicates.md (easy_vector_constant_add_self,
1643 easy_vector_constant_msb): Likewise.
1644
b7df379f
JJ
16452013-06-23 Jakub Jelinek <jakub@redhat.com>
1646
1647 PR target/57688
1648 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
1649 add missing return true.
1650
0bcf9a09
OE
16512013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
1652
1653 PR target/52483
1654 * config/sh/predicates.md (general_extend_operand): Invoke
1655 general_movsrc_operand for memory operands.
1656 (general_movsrc_operand): Allow reg+reg addressing, do not use
1657 general_operand for memory operands.
1658
97db2bf7
ST
16592013-06-23 Sriraman Tallam <tmsriram@google.com>
1660
1661 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
1662 when current target options does not apply.
1663 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
1664 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
0ba6aff3
UB
1665 * config/i386/bmiintrin.h: Pass appropriate target
1666 attributes to header.
97db2bf7
ST
1667 * config/i386/mmintrin.h: Ditto.
1668 * config/i386/nmmintrin.h: Ditto.
1669 * config/i386/avx2intrin.h: Ditto.
1670 * config/i386/fxsrintrin.h: Ditto.
1671 * config/i386/tbmintrin.h: Ditto.
1672 * config/i386/xsaveintrin.h: Ditto.
1673 * config/i386/f16cintrin.h: Ditto.
1674 * config/i386/xtestintrin.h: Ditto.
1675 * config/i386/xsaveoptintrin.h: Ditto.
1676 * config/i386/bmi2intrin.h: Ditto.
1677 * config/i386/lzcntintrin.h: Ditto.
1678 * config/i386/smmintrin.h: Ditto.
1679 * config/i386/wmmintrin.h: Ditto.
1680 * config/i386/x86intrin.h: Remove all header include guards.
1681 * config/i386/prfchwintrin.h: Ditto.
1682 * config/i386/pmmintrin.h: Ditto.
1683 * config/i386/tmmintrin.h: Ditto.
1684 * config/i386/xmmintrin.h: Ditto.
1685 * config/i386/popcntintrin.h: Ditto.
1686 * config/i386/rdseedintrin.h: Ditto.
1687 * config/i386/ammintrin.h: Ditto.
1688 * config/i386/emmintrin.h: Ditto.
1689 * config/i386/immintrin.h: Remove all header include guards.
1690 * config/i386/fma4intrin.h: Ditto.
1691 * config/i386/lwpintrin.h: Ditto.
1692 * config/i386/xopintrin.h: Ditto.
1693 * config/i386/ia32intrin.h: Ditto.
1694 * config/i386/avxintrin.h: Ditto.
1695 * config/i386/rtmintrin.h: Ditto.
1696 * config/i386/fmaintrin.h: Ditto.
1697 * config/i386/mm3dnow.h: Ditto.
1698
495e6879
ST
16992013-06-22 Sriraman Tallam <tmsriram@google.com>
1700
1701 * common/config/i386/i386-common.c: Handle LZCNT.
1702
11e8f687
AK
17032013-06-22 Andi Kleen <ak@linux.intel.com>
1704
1705 * doc/extend.texi: Use __atomic_store_n instead of
1706 __atomic_store in HLE example.
1707
664dd721
OE
17082013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
1709
1710 * config/sh/sh.c: Remove <cstdlib> workaround.
1711
927f908b
AK
17122013-06-21 Andi Kleen <ak@linux.intel.com>
1713
0ba6aff3 1714 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
927f908b 1715
cca410b6
AK
17162013-06-21 Andi Kleen <ak@linux.intel.com>
1717
1718 * doc/extend.texi: Document that __atomic_clear and
1719 __atomic_test_and_set should only be used with bool.
1720
d84db1ed
JH
17212013-06-20 Jan Hubicka <jh@suse.cz>
1722
1723 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
1724 types_same_for_odr.
1725 * tree.c (decls_same_for_odr): New function.
1726 (same_for_edr): New function.
1727 (types_same_for_odr): New function.
1728 (get_binfo_at_offset): Use it.
1729 * tree.h (types_same_for_odr): Declare.
1730
664dd721 17312013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
469a31a9
OE
1732 Jason Merrill <jason@redhat.com>
1733
1734 * system.h: Include <cstdlib> as well as <stdlib.h>.
1735
49b4ff63
UB
17362013-06-20 Uros Bizjak <ubizjak@gmail.com>
1737
1738 PR target/57655
1739 * config/i386/i386.c (construct_container): Report error if
1740 long double is used with disabled x87 float returns.
1741
7a89ad00
JH
17422013-06-20 Jan Hubicka <jh@suse.cz>
1743
1744 * lto-cgraph.c (input_symtab): Do not set cgraph state.
1745
bd280792
JR
17462013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
1747
1748 PR rtl-optimization/57425
1749 PR rtl-optimization/57569
1750 * alias.c (write_dependence_p): Remove parameters mem_mode and
1751 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
1752 Changed all callers.
1753 (canon_anti_dependence): Get comments and semantics in sync.
1754 Add parameter mem_canonicalized. Changed all callers.
1755 * rtl.h (canon_anti_dependence): Update prototype.
1756
d16e9a99
RB
17572013-06-20 Richard Biener <rguenther@suse.de>
1758
1759 * data-streamer-in.c (streamer_read_uhwi): Optimize single
1760 byte case, inline streamer_read_uchar and defer section
1761 overrun check.
1762
c3a9b91b
RB
17632013-06-20 Richard Biener <rguenther@suse.de>
1764
1765 PR tree-optimization/57584
1766 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
1767 SSA names into the expanded expression that take part in
1768 abnormal coalescing.
1769
371e77e3 17702013-06-19 Sharad Singhai <singhai@google.com>
fc8a650e
SS
1771
1772 * gcov.c (print_usage): Handle new option.
1773 (process_args): Ditto.
1774 (get_gcov_intermediate_filename): New function.
1775 (output_intermediate_file): New function.
1776 (output_gcov_file): New function
1777 (generate_results): Handle new option.
1778 (release_function): Relase demangled name.
1779 (read_graph_file): Handle demangled name.
1780 (output_lines): Ditto.
1781 * doc/gcov.texi: Document gcov intermediate format.
1782
11f5b71a
VM
17832013-06-19 Vladimir Makarov <vmakarov@redhat.com>
1784
1785 PR bootstrap/57604
1786 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
1787 (lra_emit_add): Use the functions. Add comment about Y as an
1788 address segment.
1789
e1f9340b
DE
17902013-06-19 David Edelsohn <dje.gcc@gmail.com>
1791
1792 PR driver/57652
1793 * collect2.c (collect_atexit): New.
1794 (collect_exit): Delete.
1795 (main): Register collect_atexit with atexit.
1796 (collect_wait): Change collect_exit to exit.
1797 (do_wait): Same.
1798 * collect2.h (collect_exit): Delete.
1799 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
1800
e3f9e0ac
WM
18012013-06-19 Wei Mi <wmi@google.com>
1802
1803 PR rtl-optimization/57518
1804 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
1805 if regno is used in paradoxical subreg.
1806 (update_equiv_regs): Check pdx_subregs[regno] before
1807 set a reg to be equivalent with a mem.
1808
a09f1a76
MK
18092013-06-19 Matthias Klose <doko@ubuntu.com>
1810
1811 PR driver/57651
1812 * file-find.h (find_a_file): Add a mode parameter.
1813 * file-find.c (find_a_file): Likewise.
1814 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
1815 with X_OK for the executables.
1816 * collect2.c (main): Call find_a_file with X_OK.
1817
7d18b0ad
SE
18182013-06-19 Steve Ellcey <sellcey@mips.com>
1819
1820 PR target/56942
1821 * config/mips/mips.md (casesi_internal_mips16_<mode>):
1822 Use NEXT_INSN instead of next_real_insn.
1823
6a6dac52
JH
18242013-06-19 Jan Hubicka <jh@suse.cz>
1825
1826 * cgraph.h (const_value_known_p): Replace by ...
1827 (ctor_for_folding): .. this one.
1828 * cgraphunit.c (process_function_and_variable_attributes): Use it.
1829 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
1830 * expr.c (expand_expr_real_1): Likewise.
1831 (string_constant): Likewise.
1832 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
1833 * ipa.c (process_references): Likewise.
1834 (symtab_remove_unreachable_nodes): Likewise.
1835 * ipa-inline-analysis.c (param_change_prob): Likewise.
1836 * gimple-fold.c (canonicalize_constructor_val): Likewise.
1837 (get_base_constructor): Likwise.
1838 * varpool.c (varpool_remove_node): Likewise.
1839 (varpool_remove_initializer): LIkewise.
1840 (dump_varpool_node): LIkwise.
1841 (const_value_known_p): Rewrite to ...
1842 (ctor_for_folding): ... this one.
1843
216c12ab
JJ
18442013-06-19 Jakub Jelinek <jakub@redhat.com>
1845
1846 PR driver/57651
1847 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
1848 PERSONALITY in $PATH derived prefixes.
1849
d53e2f99
JL
18502013-06-19 Jeff Law <law@redhat.com>
1851
ecdbf306
JL
1852 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
1853 in comment.
1854
d53e2f99
JL
1855 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
1856 (simplify_bitwise_binary): Use it to simpify certain binary ops on
1857 booleans.
1858
89e7fc04
SN
18592013-06-19 Sofiane Naci <sofiane.naci@arm.com>
1860
1861 * config/arm/vfp.md: Move VFP instruction classification documentation
1862 to ...
1863 * config/arm/arm.md: ... here. Update instruction classification
1864 documentation.
1865
5e7f6aaa
RE
18662013-06-19 Richard Earnshaw <rearnsha@arm.com>
1867
1868 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
1869 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
1870 pattern. Use more efficient sequences on ARMv5 and Thumb2.
1871
5fdc1e5d
SB
18722013-06-19 Steven Bosscher <steven@gcc.gnu.org>
1873
1874 PR target/57609
1875 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1876 with NEXT_INSN. Use tablejump_p to check for jump table data
1877 insns.
1878
e952afba
PC
18792013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
1880
1881 PR c++/56544
1882 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
1883 that now in C++ the value is correct per the C++ standards.
1884
3fd0303a
RB
18852013-06-19 Richard Biener <rguenther@suse.de>
1886
1887 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
1888 for global context.
1889
b04e4b08
AK
18902013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1891
1892 Revert:
1893 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1894
1895 PR target/57609
1896 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1897 with next_active_insn.
1898
bef8491a
ST
18992013-06-18 Sriraman Tallam <tmsriram@google.com>
1900
1901 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
1902 functions are inlined during failures to flag an error.
1903 * tree-inline.c (expand_call_inline): Allow the error to be flagged
1904 in early inline pass.
22fc7d3d 1905
c21b257d
L
19062013-06-18 H.J. Lu <hongjiu.lu@intel.com>
1907
1908 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
1909 in comments.
1910
33255ae3
JB
19112013-06-18 Julian Brown <julian@codesourcery.com>
1912
1913 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
1914 Permit virtual register pre-reload if !strict.
1915 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
1916 change.
1917 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
1918 prototype.
1919 * config/arm/neon.md (movmisalign<mode>): Use
1920 neon_perm_struct_or_reg_operand instead of
1921 neon_struct_or_register_operand.
1922 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
1923 neon_permissive_struct_operand instead of neon_struct_operand.
1924 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
1925 neon_vector_mem_operand.
1926 * config/arm/predicates.md (neon_struct_operand): Adjust call to
1927 neon_vector_mem_operand.
1928 (neon_permissive_struct_operand): New.
1929 (neon_struct_or_register_operand): Rename to...
1930 (neon_perm_struct_or_reg_operand): This. Adjust call to
1931 neon_vector_mem_operand.
1932
d579fcda
RB
19332013-06-18 Richard Biener <rguenther@suse.de>
1934
1935 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
1936 * lto-streamer.h: Include pointer-set.h.
1937 (struct lto_decl_slot): Remove.
1938 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
1939 Remove next_index entry.
1940 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
1941 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
1942 (lto_init_tree_ref_encoder): Adjust.
1943 (lto_destroy_tree_ref_encoder): Likewise.
1944 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
1945 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
1946 (lto_output_decl_index): Adjust.
1947 (lto_new_out_decl_state): Likewise.
1948 (lto_record_function_out_decl_state): Likewise.
1949 * lto-streamer-out.c (copy_function): Likewise.
1950
31ee20ba
RB
19512013-06-18 Richard Biener <rguenther@suse.de>
1952
1953 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
1954 * cgraphunit.c: Include cfgloop.h.
1955 (init_lowered_empty_function): Initialize the loop tree.
1956 (assemble_thunk): Insert new BBs into loops.
1957
ac0511f2
RB
19582013-06-18 Richard Biener <rguenther@suse.de>
1959
1960 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
1961 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
1962 the map from cache entry to cache index optional.
1963 (streamer_tree_cache_replace_tree): Adjust accordingly.
1964 (streamer_tree_cache_append): Likewise.
1965 (streamer_tree_cache_delete): Likewise.
1966 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
1967 streamer cache map from cache entry to cache index.
1968 * lto-streamer-out.c (create_output_block): Adjust.
1969
09485a08
SN
19702013-06-18 Sofiane Naci <sofiane.naci@arm.com>
1971
22fc7d3d
UB
1972 * config/arm/arm.md (attribute "insn"): Move multiplication and
1973 division attributes to...
09485a08
SN
1974 (attribute "type"): ... here. Remove mult.
1975 (attribute "mul32"): New attribute.
1976 (attribute "mul64"): Add umaal.
1977 (*arm_mulsi3): Update attributes.
1978 (*arm_mulsi3_v6): Likewise.
1979 (*thumb_mulsi3): Likewise.
1980 (*thumb_mulsi3_v6): Likewise.
1981 (*mulsi3_compare0): Likewise.
1982 (*mulsi3_compare0_v6): Likewise.
1983 (*mulsi_compare0_scratch): Likewise.
1984 (*mulsi_compare0_scratch_v6): Likewise.
1985 (*mulsi3addsi): Likewise.
1986 (*mulsi3addsi_v6): Likewise.
1987 (*mulsi3addsi_compare0): Likewise.
1988 (*mulsi3addsi_compare0_v6): Likewise.
1989 (*mulsi3addsi_compare0_scratch): Likewise.
1990 (*mulsi3addsi_compare0_scratch_v6): Likewise.
1991 (*mulsi3subsi): Likewise.
1992 (*mulsidi3adddi): Likewise.
1993 (*mulsi3addsi_v6): Likewise.
1994 (*mulsidi3adddi_v6): Likewise.
1995 (*mulsidi3_nov6): Likewise.
1996 (*mulsidi3_v6): Likewise.
1997 (*umulsidi3_nov6): Likewise.
1998 (*umulsidi3_v6): Likewise.
1999 (*umulsidi3adddi): Likewise.
2000 (*umulsidi3adddi_v6): Likewise.
2001 (*smulsi3_highpart_nov6): Likewise.
2002 (*smulsi3_highpart_v6): Likewise.
2003 (*umulsi3_highpart_nov6): Likewise.
2004 (*umulsi3_highpart_v6): Likewise.
2005 (mulhisi3): Likewise.
2006 (*mulhisi3tb): Likewise.
2007 (*mulhisi3bt): Likewise.
2008 (*mulhisi3tt): Likewise.
2009 (maddhisi4): Likewise.
2010 (*maddhisi4tb): Likewise.
2011 (*maddhisi4tt): Likewise.
2012 (maddhidi4): Likewise.
2013 (*maddhidi4tb): Likewise.
2014 (*maddhidi4tt): Likewise.
2015 (divsi3): Likewise.
2016 (udivsi3): Likewise.
2017 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
2018 (thumb2_mulsi_short_compare0): Likewise.
2019 (thumb2_mulsi_short_compare0_scratch): Likewise.
2020 * config/arm/arm1020e.md (1020mult1): Update attribute change.
2021 (1020mult2): Likewise.
2022 (1020mult3): Likewise.
2023 (1020mult4): Likewise.
2024 (1020mult5): Likewise.
2025 (1020mult6): Likewise.
22fc7d3d
UB
2026 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
2027 change.
09485a08
SN
2028 (cortex_a15_mult64): Likewise.
2029 (cortex_a15_sdiv): Likewise.
2030 (cortex_a15_udiv): Likewise.
2031 * config/arm/arm1026ejs.md (mult1): Update attribute change.
2032 (mult2): Likewise.
2033 (mult3): Likewise.
2034 (mult4): Likewise.
2035 (mult5): Likewise.
2036 (mult6): Likewise.
2037 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
2038 (pj4_ir_div): Likewise.
2039 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
2040 (11_mult2): Likewise.
2041 (11_mult3): Likewise.
2042 (11_mult4): Likewise.
2043 (11_mult5): Likewise.
2044 (11_mult6): Likewise.
2045 (11_mult7): Likewise.
2046 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
2047 (cortex_a8_mla): Likewise.
2048 (cortex_a8_mull): Likewise.
2049 (cortex_a8_smulwy): Likewise.
2050 (cortex_a8_smlald): Likewise.
2051 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
2052 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
2053 (cortex_r4_mul_3): Likewise.
2054 (cortex_r4_mla_4): Likewise.
2055 (cortex_r4_mla_3): Likewise.
2056 (cortex_r4_smlald): Likewise.
2057 (cortex_r4_mull): Likewise.
2058 (cortex_r4_sdiv): Likewise.
2059 (cortex_r4_udiv): Likewise.
2060 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
2061 (cortex_a7_idiv): Likewise.
2062 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
2063 (9_mult2): Likewise.
2064 (9_mult3): Likewise.
2065 (9_mult4): Likewise.
2066 (9_mult5): Likewise.
2067 (9_mult6): Likewise.
2068 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
2069 (cortex_a53_sdiv): Likewise.
2070 (cortex_a53_udiv): Likewise.
2071 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
2072 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
2073 (mp626_mult2): Likewise.
2074 (mp626_mult3): Likewise.
2075 (mp626_mult4): Likewise.
2076 * config/arm/fa526.md (526_mult1): Update attribute change.
2077 (526_mult2): Likewise.
2078 * config/arm/arm-generic.md (mult): Update attribute change.
2079 (mult_ldsched_strongarm): Likewise.
2080 (mult_ldsched): Likewise.
2081 (multi_cycle): Likewise.
2082 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
2083 * config/arm/fa606te.md (606te_mult1): Update attribute change.
2084 (606te_mult2): Likewise.
2085 (606te_mult3): Likewise.
2086 (606te_mult4): Likewise.
2087 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
2088 (cortex_a9_mac16): Likewise.
2089 (cortex_a9_multiply): Likewise.
2090 (cortex_a9_mac): Likewise.
2091 (cortex_a9_multiply_long): Likewise.
2092 * config/arm/fa626te.md (626te_mult1): Update attribute change.
2093 (626te_mult2): Likewise.
2094 (626te_mult3): Likewise.
2095 (626te_mult4): Likewise.
2096
8951f345
RB
20972013-06-18 Richard Biener <rguenther@suse.de>
2098
2099 PR lto/57334
2100 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
2101
d8101d05
AK
21022013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2103
2104 PR target/57609
2105 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
2106 with next_active_insn.
2107
69eff9da
AM
21082013-06-18 Alan Modra <amodra@gmail.com>
2109
2110 * config/rs6000/rs6000.h (enum data_align): New.
2111 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
2112 (DATA_ABI_ALIGNMENT): Define.
2113 (CONSTANT_ALIGNMENT): Correct comment.
2114 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
2115 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
2116
8ed00d76
DM
21172013-06-17 David Malcolm <dmalcolm@redhat.com>
2118
2119 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
2120 ATTRIBUTE_UNUSED marking.
2121
3d33d06b
SN
21222013-06-17 Sofiane Naci <sofiane.naci@arm.com>
2123
2124 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
2125 alternative and update.
2126 (aarch64_dup_lanedi): Delete.
2127 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
2128 * config/aarch64/aarch64-simd-builtins.def: Update.
2129
ee03e71d
RB
21302013-06-17 Richard Biener <rguenther@suse.de>
2131
2132 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
2133 (lto_input_scc): Declare.
2134 (lto_input_tree_1): Likewise.
2135 (struct lto_stats_d): Add num_tree_bodies_output and
2136 num_pickle_refs_output.
2137 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
2138 (lto_read_tree_1): Split out from ...
2139 (lto_read_tree): ... this.
2140 (lto_input_scc): New function.
2141 (lto_input_tree_1): Split out from ...
2142 (lto_input_tree): ... this. Handle LTO_tree_scc.
2143 (lto_data_in_create): Create the streamer cache without hashes.
2144 * lto-streamer-out.c (create_output_block): Create the streamer
2145 cache with hashes when not doing WPA.
2146 (lto_write_tree_1): Split out from ...
2147 (lto_write_tree): ... this.
2148 (get_symbol_initial_value): New function.
2149 (lto_output_tree_1): Split out from ...
2150 (lto_output_tree): ... this. Write trees as series of SCCs
2151 using a DFS walk via DFS_write_tree.
2152 (struct sccs, struct scc_entry): New types.
2153 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
2154 (DFS_write_tree_body): New function.
2155 (DFS_write_tree): Likewise.
2156 (hash_tree): Likewise.
2157 (scc_entry_compare): Likewise.
2158 (hash_scc): Likewise.
2159 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
2160 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
2161 TREE_CHAIN as regular reference.
2162 (streamer_read_integer_cst): Remove.
2163 (streamer_get_pickled_tree): Adjust.
2164 * tree-streamer-out.c (streamer_write_chain): Disable streaming
2165 of DECL_EXTERNALs in BLOCK_VARS for now.
2166 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
2167 reference.
2168 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
2169 Add hash value argument and record that if hashes are recorded
2170 in the cache.
2171 (streamer_tree_cache_insert_1): Adjust.
2172 (streamer_tree_cache_insert): Likewise.
2173 (streamer_tree_cache_insert_at): Rename to ...
2174 (streamer_tree_cache_replace_tree): ... this and adjust.
2175 (streamer_tree_cache_append): Adjust.
2176 (record_common_node): Likewise.
2177 (streamer_tree_cache_create): Add argument whether to
2178 record hash values together with trees.
2179 (streamer_tree_cache_delete): Adjust.
2180 * tree-streamer.h (struct streamer_tree_cache_d): Add
2181 vector of hashes.
2182 (streamer_read_integer_cst): Remove.
2183 (streamer_tree_cache_insert): Adjust.
2184 (streamer_tree_cache_append): Likewise.
2185 (streamer_tree_cache_insert_at): Rename to ...
2186 (streamer_tree_cache_replace_tree): ... this and adjust.
2187 (streamer_tree_cache_create): Add argument whether to record hashes.
2188 (streamer_tree_cache_get): Rename to ...
2189 (streamer_tree_cache_get_tree): ... this.
2190 (streamer_tree_cache_get_hash): New function.
2191 * tree.c (cache_integer_cst): New function.
2192 * tree.h (cache_integer_cst): Declare.
2193 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
2194 * lto-symtab.c (lto_varpool_replace_node): Only release
2195 DECL_INITIAL of non-prevailing decls.
2196 * varpool.c (varpool_remove_initializer): Do not release
2197 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
2198
0de86a92
JU
21992013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
2200
2201 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
2202 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
2203 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
2204 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
2205 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
2206 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
2207 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
2208 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
2209 instead of TARGET_64BIT.
2210 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
2211 Require ISA_HAS_<D>DIV.
2212
74240413
RS
22132013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
2214
2215 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
2216 (mips*-*-linux*): Move default with_llsc setting to where other
2217 defaults are set.
2218 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
2219 with_arch block.
2220 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
2221 Likewise. Remove default with_tune setting. Move default float
2222 setting to its own block. Handle with_llsc in the same block as above.
2223
393f9fed
JR
22242013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
2225
2226 PR rtl-optimization/57425
2227 PR rtl-optimization/57569
299a5f6a 2228 * alias.c (write_dependence_p): Add new parameters mem_mode,
393f9fed
JR
2229 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
2230 Changed all callers.
2231 (canon_anti_dependence): New function.
2232 * cse.c (check_dependence): Use canon_anti_dependence.
2233 * cselib.c (cselib_invalidate_mem): Likewise.
2234 * rtl.h (canon_anti_dependence): Declare.
2235
b259d352
JU
22362013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
2237
2238 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
2239 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
2240 ".set mips3" for 64-bit targets.
2241
4de09b85
DC
22422013-06-15 Dehao Chen <dehao@google.com>
2243
2244 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
2245 * gimple-low.c (gimple_check_call_matching_types): Likewise.
2246 (gimple_check_call_args): Likewise.
2247 * value-prof.c (check_ic_target): Likewise.
2248 * ipa-inline.c (early_inliner): Likewise.
2249 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
2250 * cgraph.c (cgraph_create_edge_1): Likewise.
2251 (cgraph_make_edge_direct): Likewise.
2252
d1aa4a76
MM
22532013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2254
2255 PR target/57615
2256 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
2257 rs6000_output_move_128bit to handle emitting quad memory
2258 operations. Set attribute length to 8 bytes.
2259
24244e4d
VP
22602013-06-14 Vidya Praveen <vidyapraveen@arm.com>
2261
2262 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
2263 New pattern.
2264 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
2265 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
2266 (aarch64_<su>mlsl<mode>): Likewise.
2267
f5273574
MS
22682013-06-14 Mike Stump <mikestump@comcast.net>
2269
2270 * Makefile.in (TARGET_H): Add insn-codes.h.
2271
ef7e7ab2
AM
22722013-06-14 Alan Modra <amodra@gmail.com>
2273
2274 PR middle-end/57134
2275 PR middle-end/57586
2276 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
2277 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
2278 bitfield expansion when EXPAND_MEMORY.
2279 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
2280
135faab6
MM
22812013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
2282
2283 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2284 test for clearing quad memory on 32-bit later.
2285
948a1fd9
MG
22862013-06-13 Marc Glisse <marc.glisse@inria.fr>
2287
2288 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
2289 (fold_negate_expr): Likewise.
2290 (fold_real_zero_addition_p): Handle vectors.
2291 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
2292
0597fb9c
AM
22932013-06-14 Alan Modra <amodra@gmail.com>
2294
2295 * varasm.c (force_const_mem): Revert 2013-06-07 change.
2296
e5b962d0
JH
22972013-06-13 Jan Hubicka <jh@suse.cz>
2298
2299 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
2300 Local comdats are not externally visible.
2301 * symtab.c (dump_symtab_base): Dump externally visible.
2302 (verify_symtab_base): Verify back links in the symtab hash.
2303
a8355e51
BC
23042013-06-13 Bin Cheng <bin.cheng@arm.com>
2305
2306 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
2307 CONVERT_EXPR as equal nodes.
2308
8f7e6e33
BC
23092013-06-13 Bin Cheng <bin.cheng@arm.com>
2310
22fc7d3d 2311 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
8f7e6e33 2312
5d418483
MG
23132013-06-13 Marc Glisse <marc.glisse@inria.fr>
2314
2315 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
2316 Generalize to complex and vector.
2317 * tree.c (build_all_ones_cst): New function.
2318 * tree.h (build_all_ones_cst): Declare it.
2319
50751417
AM
23202013-06-13 Alan Modra <amodra@gmail.com>
2321
2322 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
2323 * config/rs6000/rs6000.md (signbittf2): New insn.
2324 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
2325 (abstf2_internal, cmptf_internal2): Likewise.
2326 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
2327
4b02c962
MM
23282013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
2329 Pat Haugen <pthaugen@us.ibm.com>
2330 Peter Bergner <bergner@vnet.ibm.com>
2331
2332 * config/rs6000/rs6000.c (emit_load_locked): Add support for
2333 power8 byte, half-word, and quad-word atomic instructions.
2334 (emit_store_conditional): Likewise.
2335 (rs6000_expand_atomic_compare_and_swap): Likewise.
2336 (rs6000_expand_atomic_op): Likewise.
2337
2338 * config/rs6000/sync.md (larx): Add new modes for power8.
2339 (stcx): Likewise.
2340 (AINT): New mode iterator to include TImode as well as normal
2341 integer modes on power8.
2342 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
2343 that VSX registers are not considered. Use AINT mode iterator
2344 instead of INT1 to allow inclusion of quad word atomic operations
2345 on power8.
2346 (load_locked<mode>): Likewise.
2347 (store_conditional<mode>): Likewise.
2348 (atomic_compare_and_swap<mode>): Likewise.
2349 (atomic_exchange<mode>): Likewise.
2350 (atomic_nand<mode>): Likewise.
2351 (atomic_fetch_<fetchop_name><mode>): Likewise.
2352 (atomic_nand_fetch<mode>): Likewise.
2353 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
2354 each type.
2355 (ATOMIC): On power8, add QImode, HImode modes.
2356 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
2357 modes that promote to SImode.
2358 (load_lockedti): Convert TImode arguments to PTImode, so that we
2359 get a guaranteed even/odd register pair.
2360 (load_lockedpti): Likewise.
2361 (store_conditionalti): Likewise.
2362 (store_conditionalpti): Likewise.
2363
2364 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
2365 atomic load/store instructions.
2366 (HSI): Likewise.
2367
710b6cc1
RS
23682013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
2369
2370 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
2371 loads.
2372 (insn_count): New attribute, with most cases extracted from...
2373 (length): ...here. Redefine most cases in terms of insn_count.
2374 (single_insn): Delete.
2375 (can_delay): Use insn_count to check for single instructions.
2376 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
2377 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
2378 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
2379 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
2380 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
2381 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
2382 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
2383 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
2384 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
2385 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
2386 rather than "length".
2387 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
2388 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
2389 Use "insn_count" rather than "length".
2390 * config/mips/mips-dsp.md
2391 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
2392 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
2393 length attributes.
2394
1951f101
MG
23952013-06-12 Marc Glisse <marc.glisse@inria.fr>
2396
2397 PR tree-optimization/57361
2398 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
2399
8b033a8a
SN
24002013-06-12 Sofiane Naci <sofiane.naci@arm.com>
2401
22fc7d3d
UB
2402 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
2403 to split.
8b033a8a
SN
2404 (aarch64_simd_combine<mode>): New instruction expansion.
2405 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
2406 function prototype.
2407 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
2408 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
2409
ca0f62a8
JH
24102013-06-12 Jan Hubicka <jh@suse.cz>
2411
2412 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
2413 decl has when in streaming stage.
2414 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
2415 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
2416
cddd69eb
RS
24172013-06-12 Roland Stigge <stigge@antcom.de>
2418
2419 PR target/57578
2420 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
2421
bfdeda2c
JJ
24222013-06-12 Jakub Jelinek <jakub@redhat.com>
2423
2424 PR tree-optimization/57537
2425 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
2426 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
2427
a4fa02d1
RB
24282013-06-12 Richard Biener <rguenther@suse.de>
2429
2430 * data-streamer.h (streamer_write_char_stream): CSE
2431 obs->current_pointer.
2432 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
2433 streamer_write_char_stream manually and optimize the resulting loop.
2434 (streamer_write_hwi_stream): Likewise.
2435
bbf9ad07
JH
24362013-06-12 Jan Hubicka <jh@suse.cz>
2437
2438 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
2439 * cgraph.h (varpool_create_empty_node): Declare.
2440 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
2441 duplicated nodes.
2442 * symtab.c (symtab_unregister_node): Be lax about missin entries
2443 in node hash.
2444 (symtab_get_node): Update comment.
2445 * varpool.c (varpool_create_empty_node): Break out from ...
2446 (varpool_node_for_decl): ... here.
2447 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
2448
a53f90ad
EB
24492013-06-12 Eric Botcazou <ebotcazou@adacore.com>
2450
2451 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
2452 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
2453 part. Use straight-line flow at the end.
2454 <COMPONENT_REF>: Remove superfluous else.
2455 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
2456
946f9306
JJ
24572013-06-12 Jakub Jelinek <jakub@redhat.com>
2458
2459 PR target/56564
2460 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
2461 target hook even for !TREE_PUBLIC decls. If no resolution info
2462 is available, return false for common and external decls.
2463
a7fca6f0
KP
24642013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2465
2466 * config/rl78/constraints.md (U): New constraint.
2467 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
2468 valloc attribute.
2469
c7d8f446
MM
24702013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2471
2472 PR target/57589
2473 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
2474 to allow returning address to AT_PLATFORM name.
2475
08346abd
JH
24762013-06-11 Jan Hubicka <jh@suse.cz>
2477
2478 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
2479 * cgraph.h (symtab_node_base): Add weakref flag.
2480 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
2481 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
2482 (output_weakrefs): Use weakref flag.
2483 * fold-const.c (simple_operand_p): Handle WEAK.
2484 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
2485 * ipa.c (varpool_externally_visible_p): Drop weakref.
2486 (function_and_variable_visibility): Update comment; fix weakref
2487 sanity checks; do not clear DECL_WEAK on them.
2488 * lto-cgraph.c (lto_output_node): update.
2489 (lto_output_varpool_node): Update.
2490 (input_overwrite_node): Update.
2491 (input_node): Update.
2492 (input_varpool_node): Update.
2493 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
2494 (lto_symtab_merge_symbols): Add sanity check.
2495 (lto_symtab_prevailing_decl): Do not special case weakrefs.
2496 * passes.c (rest_of_decl_compilation): Set static flag, too.
2497 * symtab.c (dump_symtab_base): Dump weakref.
2498 (verify_symtab_base): Sanity check weakrefs.
2499 (symtab_make_decl_local): Remove duplicated code.
2500 (symtab_alias_ultimate_target): Simplify.
2501 * varpool.c (varpool_create_variable_alias): Set weakref flag.
c7d8f446 2502
d9af3652
DD
25032013-06-11 DJ Delorie <dj@redhat.com>
2504
2505 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
2506 (rl78_unwind_word_mode): New.
2507
ffa66012
DM
25082013-06-11 David Malcolm <dmalcolm@redhat.com>
2509
2510 * final.c (debug_prefix_maps): Make static.
2511
783f2d35
DM
25122013-06-11 David Malcolm <dmalcolm@redhat.com>
2513
2514 * function.c (initial_trampoline): Remove stray copy.
2515
7af26def
SN
25162013-06-11 Sofiane Naci <sofiane.naci@arm.com>
2517
2518 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
2519
97756c0e
MJ
25202013-06-11 Martin Jambor <mjambor@suse.cz>
2521
2522 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
2523 within bounds at the beginning of the function.
2524
2c7b8bf6
AM
25252013-06-11 Alan Modra <amodra@gmail.com>
2526
2527 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
2528 reporting.
2529 (get_named_section): Don't NULL !DECL_P decl.
2530
77cea46e
IZ
25312013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
2532
2533 * doc/invoke.texi (core-avx2): Document.
2534 (slm): Likewise.
2535 (atom): Updated with MOVBE.
2536
888f0920
RB
25372013-06-11 Richard Biener <rguenther@suse.de>
2538
22fc7d3d 2539 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
888f0920 2540
6b438d58
AB
25412013-06-11 Anton Blanchard <anton@samba.org>
2542
2543 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
2544 correct shift value in little-endian mode.
2545
3bc66938
JJ
25462013-06-11 Jakub Jelinek <jakub@redhat.com>
2547
2548 PR target/56564
2549 * varasm.c (get_variable_align): Move #endif to the right place.
2550
a5dc7f88
CC
25512013-06-10 Cary Coutant <ccoutant@google.com>
2552
2553 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
2554 for hash so that hash table traversal order is deterministic.
2555
19be72ab
MM
25562013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2557 Pat Haugen <pthaugen@us.ibm.com>
2558 Peter Bergner <bergner@vnet.ibm.com>
2559
2560 * config/rs6000/vector.md (GPR move splitter): Do not split moves
2561 of vectors in GPRS if they are direct moves or quad word load or
2562 store moves.
2563
2564 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
2565 declaration.
2566 (direct_move_p): Likewise.
2567 (quad_load_store_p): Likewise.
2568
2569 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
2570 classes into bins based on the physical register type.
2571 (reg_class_to_reg_type): Likewise.
2572 (IS_STD_REG_TYPE): Likewise.
2573 (IS_FP_VECT_REG_TYPE): Likewise.
2574 (reload_fpr_gpr): Arrays to determine what insn to use if we can
2575 use direct move instructions.
2576 (reload_gpr_vsx): Likewise.
2577 (reload_vsx_gpr): Likewise.
2578 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
2579 information that is a simplification of register classes. Also
2580 precalculate direct move reload helpers.
2581 (direct_move_p): New function to return true if the operation can
2582 be done as a direct move instruciton.
2583 (quad_load_store_p): New function to return true if the operation
2584 is a quad memory operation.
2585 (rs6000_legitimize_address): If quad memory, only allow register
2586 indirect for TImode addresses.
2587 (rs6000_legitimate_address_p): Likewise.
2588 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
2589 (rs6000_reload_register_type): Likewise.
2590 (register_to_reg_type): Return register type.
2591 (rs6000_secondary_reload_simple_move): New helper function for
2592 secondary reload and secondary memory needed to identify anything
2593 that is a simple move, and does not need reloading.
2594 (rs6000_secondary_reload_direct_move): New helper function for
2595 secondary reload to identify cases that can be done with several
2596 instructions via the direct move instructions.
2597 (rs6000_secondary_reload_move): New helper function for secondary
2598 reload to identify moves between register types that can be done.
2599 (rs6000_secondary_reload): Add support for quad memory operations
2600 and for direct move.
2601 (rs6000_secondary_memory_needed): Likewise.
2602 (rs6000_debug_secondary_memory_needed): Change argument names.
2603 (rs6000_output_move_128bit): New function to return the move to
2604 use for 128-bit moves, including knowing about the various
2605 limitations of quad memory operations.
2606
2607 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
2608 memory operations. call rs6000_output_move_128bit for the actual
2609 instruciton(s) to generate.
2610 (vsx_movti_64bit): Likewise.
2611
2612 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
2613 (UNSPEC_P8V_MTVSRWZ): Likewise.
2614 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
2615 (UNSPEC_P8V_MTVSRD): Likewise.
2616 (UNSPEC_P8V_XXPERMDI): Likewise.
2617 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
2618 (UNSPEC_FUSION_GPR): Likewise.
2619 (FMOVE128_GPR): New iterator for direct move.
22fc7d3d 2620 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
19be72ab
MM
2621 (f32_sv): Likewise.
2622 (f32_dm): Likewise.
2623 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
2624 loads and direct move instructions.
2625 (zero_extendsidi2_lfiwzx): Likewise.
2626 (extendsidi2_lfiwax): Likewise.
2627 (extendsidi2_nocell): Likewise.
2628 (floatsi<mode>2_lfiwax): Likewise.
2629 (lfiwax): Likewise.
2630 (floatunssi<mode>2_lfiwzx): Likewise.
2631 (lfiwzx): Likewise.
2632 (fix_trunc<mode>_stfiwx): Likewise.
2633 (fixuns_trunc<mode>_stfiwx): Likewise.
2634 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
2635 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
2636 (parity<mode>2_cmpb): Set length/type attr.
2637 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
2638 for 'mr.' to fast_compare.
2639 (bpermd_<mode>): Change type attr to popcnt.
2640 (p8_fmrgow_<mode>): New insns for power8 direct move support.
2641 (p8_mtvsrwz_1): Likewise.
2642 (p8_mtvsrwz_2): Likewise.
2643 (reload_fpr_from_gpr<mode>): Likewise.
2644 (p8_mtvsrd_1): Likewise.
2645 (p8_mtvsrd_2): Likewise.
2646 (p8_xxpermdi_<mode>): Likewise.
2647 (reload_vsx_from_gpr<mode>): Likewise.
2648 (reload_vsx_from_gprsf): Likewise.
2649 (p8_mfvsrd_3_<mode>): LIkewise.
2650 (reload_gpr_from_vsx<mode>): Likewise.
2651 (reload_gpr_from_vsxsf): Likewise.
2652 (p8_mfvsrd_4_disf): Likewise.
2653 (multi-word GPR splits): Do not split direct moves or quad memory
2654 operations.
2655
16876bdc
DM
26562013-06-10 David Malcolm <dmalcolm@redhat.com>
2657
2658 * tree-into-ssa.c (interesting_blocks): Make static.
2659
df8a1d28
JJ
26602013-06-10 Jakub Jelinek <jakub@redhat.com>
2661
2662 PR target/56564
2663 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
2664 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
2665 Use DATA_ABI_ALIGNMENT for that case instead if defined.
2666 (get_variable_align): New function.
2667 (get_variable_section, emit_bss, emit_common,
2668 assemble_variable_contents, place_block_symbol): Use
2669 get_variable_align instead of DECL_ALIGN.
2670 (assemble_noswitch_variable): Add align argument, use it
2671 instead of DECL_ALIGN.
2672 (assemble_variable): Adjust caller. Use get_variable_align
2673 instead of DECL_ALIGN.
2674 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
2675 caller.
2676 (DATA_ABI_ALIGNMENT): Define.
2677 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
2678 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
2679 opt is false, only return the psABI mandated alignment increase.
2680 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
2681 (DATA_ABI_ALIGNMENT): ... this.
2682 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
2683 (DATA_ABI_ALIGNMENT): ... this.
2684 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
2685 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
2686 (DATA_ABI_ALIGNMENT): ... this.
2687 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
2688 * doc/tm.texi: Regenerated.
2689
57b29ca6
UB
26902013-06-10 Uros Bizjak <ubizjak@gmail.com>
2691
2692 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
2693 cmp_code to construct REG_EQUAL note.
2694
3e56ed50
JJ
26952013-06-09 Jakub Jelinek <jakub@redhat.com>
2696
2697 PR target/57568
2698 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
2699 that operands[2] doesn't overlap with operands[0].
2700
74fe2a1d
DE
27012013-06-09 David Edelsohn <dje.gcc@gmail.com>
2702 Jan Hubicka <jh@suse.cz>
2703
2704 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
2705 hack to mark symbols as used.
2706
ed52a84e
VM
27072013-06-08 Vladimir Makarov <vmakarov@redhat.com>
2708
2709 PR rtl-optimization/57559
2710 * lra-constraints.c (process_alt_operands): Don't discourage
2711 memory with known offset for offsetable memory constraint.
2712 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
2713
299316ed
EB
27142013-06-08 Eric Botcazou <ebotcazou@adacore.com>
2715
2716 * varasm.c (struct oc_local_state): Reorder fields.
2717 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
2718 and adjust accordingly.
2719 (output_constructor): Reorder initialization code and adjust call to
2720 output_constructor_bitfield.
2721
88ac60d3
JH
27222013-06-07 Jan Hubicka <jh@suse.cz>
2723
2724 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
2725
4cdce1a8
DM
27262013-06-07 David Malcolm <dmalcolm@redhat.com>
2727
2728 * tree-object-size.c (unknown): Make const.
2729
b5e0425c
AK
27302013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2731
2732 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
2733 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
2734 for last alternative in the cpu_facility attribute.
2735
79678d04
KT
27362013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2737
2738 PR target/56315
2739 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
2740 (xordi3): Change operand 2 constraint to arm_xordi_operand.
2741 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
2742 * config/arm/constraints.md (Dg): New constraint.
2743 * config/arm/neon.md (xordi3_neon): Remove.
2744 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
2745 * config/arm/predicates.md (arm_xordi_operand): New predicate.
2746
b31ddbdb
KT
27472013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2748
2749 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
2750 Clean up alternatives.
2751
8f90b7d4
AM
27522013-06-07 Alan Modra <amodra@gmail.com>
2753
2754 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
2755 va_list_gpr_size.
2756
961ce119
AM
27572013-06-07 Alan Modra <amodra@gmail.com>
2758
2759 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
2760
33e49835
KT
27612013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2762
2763 * config/arm/constraints.md (Df): New constraint.
2764 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
2765 Correct length attribute for last two alternatives.
2766
acd17ae6
AM
27672013-06-07 Alan Modra <amodra@gmail.com>
2768
2769 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
2770 override user -mfp-in-toc.
2771 (offsettable_ok_by_alignment): Consider just the current access
2772 rather than the whole object, unless BLKmode. Handle
2773 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
2774 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
2775 for -mcmodel=medium.
2776 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
2777 override user -mfp-in-toc or -msum-in-toc. Default to
2778 -mno-fp-in-toc for -mcmodel=medium.
2779
73310b0e
DD
27802013-06-06 DJ Delorie <dj@redhat.com>
2781
2782 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
2783 TARGET_VALID_POINTER_MODE.
2784
0bd62dca
MM
27852013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2786 Pat Haugen <pthaugen@us.ibm.com>
2787 Peter Bergner <bergner@vnet.ibm.com>
2788
2789 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
2790 Document new power8 builtins.
2791
2792 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
2793 condition code register, to allow 128-bit logical operations to be
2794 done in the VSX or GPR registers.
2795 (nor<mode>3): Use the canonical form for nor.
2796 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
2797 vclz*, and vpopcnt* vector instructions.
2798 (nand<mode>3): Likewise.
2799 (orc<mode>3): Likewise.
2800 (clz<mode>2): LIkewise.
2801 (popcount<mode>2): Likewise.
2802
2803 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
2804 that only the GPRs are recognized.
2805
2806 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2807 support for new power8 builtins.
2808
2809 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
2810 builtin functions.
2811 (xscvdpspn): Likewise.
2812 (vclz): Likewise.
2813 (vclzb): Likewise.
2814 (vclzh): Likewise.
2815 (vclzw): Likewise.
2816 (vclzd): Likewise.
2817 (vpopcnt): Likewise.
2818 (vpopcntb): Likewise.
2819 (vpopcnth): Likewise.
2820 (vpopcntw): Likewise.
2821 (vpopcntd): Likewise.
2822 (vgbbd): Likewise.
2823 (vmrgew): Likewise.
2824 (vmrgow): Likewise.
2825 (eqv): Likewise.
2826 (eqv_v16qi3): Likewise.
2827 (eqv_v8hi3): Likewise.
2828 (eqv_v4si3): Likewise.
2829 (eqv_v2di3): Likewise.
2830 (eqv_v4sf3): Likewise.
2831 (eqv_v2df3): Likewise.
2832 (nand): Likewise.
2833 (nand_v16qi3): Likewise.
2834 (nand_v8hi3): Likewise.
2835 (nand_v4si3): Likewise.
2836 (nand_v2di3): Likewise.
2837 (nand_v4sf3): Likewise.
2838 (nand_v2df3): Likewise.
2839 (orc): Likewise.
2840 (orc_v16qi3): Likewise.
2841 (orc_v8hi3): Likewise.
2842 (orc_v4si3): Likewise.
2843 (orc_v2di3): Likewise.
2844 (orc_v4sf3): Likewise.
2845 (orc_v2df3): Likewise.
2846
2847 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
2848 allow power8 quad mode in 64-bit.
2849 (rs6000_builtin_vectorized_function): Add support to vectorize
2850 ISA 2.07 count leading zeros, population count builtins.
2851 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
2852 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
2853 (builtin_function_type): Add vgbbd builtin function which takes an
2854 unsigned argument.
2855 (altivec_expand_vec_perm_const): Add support for new power8 merge
2856 instructions.
2857
2858 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
2859 that does not include TImdoe for use with 32-bit.
2860 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
2861 instructions.
2862 (UNSPEC_VSX_CVDPSPN): Likewise.
2863 (vsx_xscvdpspn): Likewise.
2864 (vsx_xscvspdpn): Likewise.
2865 (vsx_xscvdpspn_scalar): Likewise.
2866 (vsx_xscvspdpn_directmove): Likewise.
2867 (vsx_and<mode>3): Split logical operations into 32-bit and
2868 64-bit. Add support to do logical operations on TImode as well as
2869 VSX vector types. Allow logical operations to be done in either
2870 VSX registers or in general purpose registers in 64-bit mode. Add
2871 splitters if GPRs were used. For AND, add clobber of CCmode to
2872 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
2873 encoding.
2874 (vsx_and<mode>3_32bit): Likewise.
2875 (vsx_and<mode>3_64bit): Likewise.
2876 (vsx_ior<mode>3): Likewise.
2877 (vsx_ior<mode>3_32bit): Likewise.
2878 (vsx_ior<mode>3_64bit): Likewise.
2879 (vsx_xor<mode>3): Likewise.
2880 (vsx_xor<mode>3_32bit): Likewise.
2881 (vsx_xor<mode>3_64bit): Likewise.
2882 (vsx_one_cmpl<mode>2): Likewise.
2883 (vsx_one_cmpl<mode>2_32bit): Likewise.
2884 (vsx_one_cmpl<mode>2_64bit): Likewise.
2885 (vsx_nor<mode>3): Likewise.
2886 (vsx_nor<mode>3_32bit): Likewise.
2887 (vsx_nor<mode>3_64bit): Likewise.
2888 (vsx_andc<mode>3): Likewise.
2889 (vsx_andc<mode>3_32bit): Likewise.
2890 (vsx_andc<mode>3_64bit): Likewise.
2891 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
2892 and xxlorc instructions.
2893 (vsx_eqv<mode>3_64bit): Likewise.
2894 (vsx_nand<mode>3_32bit): Likewise.
2895 (vsx_nand<mode>3_64bit): Likewise.
2896 (vsx_orc<mode>3_32bit): Likewise.
2897 (vsx_orc<mode>3_64bit): Likewise.
2898
2899 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
2900
2901 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
2902 instruction.
2903 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
2904 (p8_vmrgow): Likewise.
2905 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
2906 GPRs to be split under VSX.
2907 (p8v_clz<mode>2): Add power8 count leading zero support.
2908 (p8v_popcount<mode>2): Add power8 population count support.
2909 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
2910 support.
2911
2912 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
2913 instruction.
2914
2915 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
2916 builtin functions.
2917 (vec_nand): Likewise.
2918 (vec_vclz): Likewise.
2919 (vec_vclzb): Likewise.
2920 (vec_vclzd): Likewise.
2921 (vec_vclzh): Likewise.
2922 (vec_vclzw): Likewise.
2923 (vec_vgbbd): Likewise.
2924 (vec_vmrgew): Likewise.
2925 (vec_vmrgow): Likewise.
2926 (vec_vpopcnt): Likewise.
2927 (vec_vpopcntb): Likewise.
2928 (vec_vpopcntd): Likewise.
2929 (vec_vpopcnth): Likewise.
2930 (vec_vpopcntw): Likewise.
2931
37684c46
VM
29322013-06-06 Vladimir Makarov <vmakarov@redhat.com>
2933
2934 PR rtl-optimization/57468
2935 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
2936 spilled pseudos.
2937
d89ae27c
VM
29382013-06-06 Vladimir Makarov <vmakarov@redhat.com>
2939
2940 PR rtl-optimization/57459
2941 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
2942 type when setting live regs.
2943
3597e113
VM
29442013-06-06 Vladimir Makarov <vmakarov@redhat.com>
2945
2946 * config/s390/s390.opt (mlra): New option.
2947 * config/s390/s390.c (s390_decompose_address): Check displacement
2948 for all registers for LRA.
2949 (s390_secondary_reload): Don't used secondary reloads for LRA.
2950 (s390_lra_p): New function.
2951 (TARGET_LRA_P): Define.
2952 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
2953 of attribute cpu_facility to zarch for the last alternative.
2954 (*cmpmem_short): Ditto.
2955
01037aeb
EB
29562013-06-06 Eric Botcazou <ebotcazou@adacore.com>
2957
2958 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
2959 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
2960 (arm_expand_prologue): Likewise.
2961
3371a64f
TJ
29622013-06-06 Teresa Johnson <tejohnson@google.com>
2963
2964 PR c++/53743
2965 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
2966 as this is now done by redirect_edge_and_branch_force.
2967 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
2968 barriers, and fix interaction with splitting.
2969 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
2970 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
2971 reflect changes made in the routine.
2972 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
2973 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
2974 since this is called in cfglayout mode, and replace partition fixup
2975 with assert as that is now done by force_nonfallthru_and_redirect.
2976 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
2977 already be marked with region crossing note.
2978 (insert_section_boundary_note): Make non-static, gate on flag
2979 has_bb_partition, rewrite to also check for multiple partitions.
2980 (rest_of_handle_reorder_blocks): Remove call to
2981 insert_section_boundary_note, now done later during free_cfg.
2982 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
2983 * bb-reorder.h (insert_section_boundary_note): Declare.
2984 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
2985 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
2986 invoke insert_section_boundary_note.
2987 (try_redirect_by_replacing_jump): Remove unnecessary
2988 check for region crossing note.
2989 (fixup_partition_crossing): New function.
2990 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
2991 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
2992 in non-cfglayout mode.
2993 (force_nonfallthru_and_redirect): Fixup partition boundaries,
2994 remove old code that tried to do this. Emit barrier correctly
2995 when we are in cfglayout mode.
2996 (last_bb_in_partition): New function.
2997 (rtl_split_edge): Correctly fixup partition boundaries.
2998 (commit_one_edge_insertion): Remove old code that tried to
2999 fixup region crossing edge since this is now handled in
3000 split_block, and set up insertion point correctly since
3001 block may now end in a jump.
3002 (verify_hot_cold_block_grouping): Guard against checking when not in
3003 linearized RTL mode.
3004 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
3005 notes.
3006 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
3007 rtl_verify_flow_info, so not called in cfglayout mode.
3008 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
3009 (fixup_reorder_chain): Remove old code that attempted to fixup region
3010 crossing note as this is now handled in force_nonfallthru_and_redirect.
3011 (duplicate_insn_chain): Don't duplicate switch section notes.
3012 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
3013 note.
3014 * basic-block.h (emit_barrier_after_bb): Declare.
3015
66071e10
KT
30162013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3017
3018 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
3019 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
3020 arm_usatsihi): Adjust alternatives for arm_restrict_it.
3021
0e26bf3d
KT
30222013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3023
3024 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
3025 where appropriate.
3026 * config/arm/ldmstm.md: Regenerate.
3027
12b4e7ef
KT
30282013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3029
3030 * config/arm/sync.md (atomic_loaddi_1):
3031 Disable predication for arm_restrict_it.
3032 (arm_load_exclusive<mode>): Likewise.
3033 (arm_load_exclusivesi): Likewise.
3034 (arm_load_exclusivedi): Likewise.
3035 (arm_load_acquire_exclusive<mode>): Likewise.
3036 (arm_load_acquire_exclusivesi): Likewise.
3037 (arm_load_acquire_exclusivedi): Likewise.
3038 (arm_store_exclusive<mode>): Likewise.
3039 (arm_store_exclusive<mode>): Likewise.
3040 (arm_store_release_exclusivedi): Likewise.
3041 (arm_store_release_exclusive<mode>): Likewise.
3042
15d16c8a
RB
30432013-06-06 Richard Biener <rguenther@suse.de>
3044
3045 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
3046 after LTO_null.
3047 (lto_tag_is_tree_code_p): Adjust.
3048 (lto_tag_is_gimple_code_p): Likewise.
3049 (lto_gimple_code_to_tag): Likewise.
3050 (lto_tag_to_gimple_code): Likewise.
3051 (lto_tree_code_to_tag): Likewise.
3052 (lto_tag_to_tree_code): Likewise.
3053 * data-streamer.h (streamer_write_hwi_in_range): Use
3054 uhwi streaming to stream the normalized range.
3055 (streamer_read_hwi_in_range): Likewise.
3056
17a7fc37
KT
30572013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3058
3059 * config/arm/arm.md (enabled_for_depr_it): New attribute.
3060 (predicable_short_it): Likewise.
3061 (predicated): Likewise.
3062 (enabled): Handle above.
3063 (define_cond_exec): Set predicated attribute to yes.
3064
b57ca59b
MS
30652013-06-05 Mike Stump <mikestump@comcast.net>
3066
3067 * gdbinit.in (__FUNCTION__): Add.
3068
c1e183a9
UB
30692013-06-05 Uros Bizjak <ubizjak@gmail.com>
3070
3071 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
3072 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
3073
0378bddb
JH
30742013-06-05 Jan Hubicka <jh@suse.cz>
3075
3076 * varasm.c (mark_decl_referenced): Revert the removal until targets
3077 are fixed.
3078
8f8a2057
DE
30792013-06-05 David Edelsohn <dje.gcc@gmail.com>
3080
3081 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
3082 instead of mark_decl_referenced.
3083
edb983b2
JH
30842013-06-05 Jan Hubicka <jh@suse.cz>
3085
3086 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
3087 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
3088 and symtab_used_from_object_file_p.
3089 (cgraph_make_node_local_1): Clear forced_by_abi.
3090 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
3091 * cgraph.h (symtab_node_base): Add forced_by_abi.
3092 (decide_is_variable_needed): Remove.
3093 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
3094 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
3095 (decide_is_symbol_needed): ... this one; handle symbols in general;
3096 always analyze virtuals; honnor forced_by_abi.
3097 (cgraph_finalize_function): Update.
3098 (varpool_finalize_decl): Update.
3099 (symbol_defined_and_needed): Remove.
3100 (analyze_functions): Update.
3101 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
3102 output_refs, input_overwrite_node): Handle forced_by_abi.
3103 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
3104 (address_taken_from_non_vtable_p): ... this one.
3105 (comdat_can_be_unshared_p_1): New function.
3106 (cgraph_comdat_can_be_unshared_p): Rename to ...
3107 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
3108 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
3109 (function_and_variable_visibility): Clear forced_by_abi as needed.
3110 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
3111 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
edb983b2
JH
3112 * symtab.c (dump_symtab_base): Dump forced_by_abi.
3113 * varpool.c (decide_is_variable_needed): Remove.
3114
9912dbe5
KT
31152013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3116
3117 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
3118 (arm_option_override): Override arm_restrict_it where appropriate.
3119 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
3120 * config/arm/arm.opt (mrestrict-it): New command-line option.
3121 * doc/invoke.texi: Document -mrestrict-it.
3122
34c136b6
DM
31232013-06-05 David Malcolm <dmalcolm@redhat.com>
3124
3125 * tsan.c (tsan_atomic_table): Make const.
3126
a367df53
RB
31272013-06-05 Richard Biener <rguenther@suse.de>
3128
3129 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
3130 index associated with the tree we are supposed to replace.
3131 * tree-streamer-out.c (pack_ts_base_value_fields): Output
3132 TREE_ASM_WRITTEN as zero for everything but SSA names.
3133
70d51a19
DM
31342013-06-05 David Malcolm <dmalcolm@redhat.com>
3135
3136 * tree-ssa-structalias.c (call_stmt_vars): Make static.
3137
b9bd2075
JH
31382013-06-04 Jan Hubicka <jh@suse.cz>
3139
3140 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
3141 (input_node, input_varpool_node): Handle correctly external same
3142 body aliases.
3143 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
3144 nodes at ltrans stage.
3145
aaae719d
JH
31462013-06-04 Jan Hubicka <jh@suse.cz>
3147
3148 * ipa-inline.c (update_caller_keys): Fix availability test.
3149 (update_callee_keys): Likewise.
3150 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
3151 to follow ELF standard.
3152
107eea2c
JU
31532013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
3154
3155 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
3156 (mips64r5900el-*-elf*): New configurations.
3157 * config/mips/mips-cpus.def (r5900): New processor.
3158 * config/mips/mips-tables.opt: Regenerate.
3159 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
3160 (mips_issue_rate): Handle PROCESSOR_R5900.
3161 (mips_reorg_process_insns): Force reorder mode for the R5900.
3162 * config/mips/mips.h (TARGET_MIPS5900): Define.
3163 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
3164 TARGET_MIPS5900.
3165 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
3166 TARGET_MIPS5900.
3167 * config/mips/mips.md (processor): Add r5900.
3168 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
3169
b7342d25
IB
31702013-06-04 Ian Bolton <ian.bolton@arm.com>
3171
3172 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
3173 into function to generate MOVI instruction.
c1e183a9 3174 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
b7342d25
IB
3175 (aarch64_preferred_simd_mode): Turn into wrapper.
3176 (aarch64_output_scalar_simd_mov_immediate): New function.
3177 * config/aarch64/aarch64-protos.h: Add prototype for above.
3178
81c2dfb9
IB
31792013-06-04 Ian Bolton <ian.bolton@arm.com>
3180
3181 * config/aarch64/aarch64.c (simd_immediate_info): Remove
3182 element_char member.
3183 (sizetochar): Return signed char.
3184 (aarch64_simd_valid_immediate): Remove elchar and other
3185 unnecessary variables.
3186 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
3187 Calculate element_char as required.
3188 * config/aarch64/aarch64-protos.h: Update and move prototype
3189 for aarch64_output_simd_mov_immediate.
3190 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
3191 Update arguments.
3192
48063b9d
IB
31932013-06-04 Ian Bolton <ian.bolton@arm.com>
3194
3195 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
3196 information completed by aarch64_simd_valid_immediate.
3197 (aarch64_legitimate_constant_p): Update arguments.
3198 (aarch64_simd_valid_immediate): Work with struct rather than many
3199 pointers.
3200 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
3201 (aarch64_simd_make_constant): Update arguments.
3202 (aarch64_output_simd_mov_immediate): Work with struct rather than
3203 many pointers. Output immediate directly rather than as operand.
3204 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
3205 Update prototype.
3206 * config/aarch64/constraints.md (Dn): Update arguments.
3207
3ea63f60
IB
32082013-06-04 Ian Bolton <ian.bolton@arm.com>
3209
3210 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
3211 longer static.
3212 (aarch64_simd_immediate_valid_for_move): Remove.
3213 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
3214 (aarch64_simd_make_constant): Update call.
3215 (aarch64_output_simd_mov_immediate): Update call.
3216 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
3217 Add prototype.
3218 * config/aarch64/constraints.md (Dn): Update call.
3219
d8edd899
IB
32202013-06-04 Ian Bolton <ian.bolton@arm.com>
3221
3222 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
3223 return type to bool for prototype.
3224 (aarch64_legitimate_constant_p): Check for true instead of not -1.
3225 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
3226 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
3227
44b20bb8
CM
32282013-06-04 Catherine Moore <clm@codesourcery.com>
3229
3230 * config/mips/mips.opt (meva): New.
c1e183a9 3231 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
44b20bb8
CM
3232 (ASM_SPEC): Handle -meva.
3233 * doc/invoke.texi (meva): Document.
3234
52befbd8
AM
32352013-06-04 Alan Modra <amodra@gmail.com>
3236
3237 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
3238 constant output.
3239
aadaf24e
KT
32402013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3241
3242 * rtl.def: Add extra fourth optional field to define_cond_exec.
3243 * gensupport.c (process_one_cond_exec): Process attributes from
3244 define_cond_exec.
3245 * doc/md.texi: Document fourth field in define_cond_exec.
3246
0cd9e9ee
EB
32472013-06-04 Eric Botcazou <ebotcazou@adacore.com>
3248
3249 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
3250 out the processing order as in store_bit_field_1.
3251
cb0f665d
JH
32522013-06-04 Jan Hubicka <jh@suse.cz>
3253
3254 PR middle-end/57500
3255 * cgraphunit.c (cgraph_process_same_body_aliases): Create
3256 non-VAR_DECL node if it does not exist yet.
3257
53984b9b
RS
32582013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
3259
3260 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
3261 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
3262 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
3263 target_cpu_default setting.
3264
5d318fd4
TJ
32652013-06-03 Teresa Johnson <tejohnson@google.com>
3266
3267 * dumpfile.c (opt_info_switch_p): Change -fopt-info
3268 default to -fopt-info=optimized instead of all.
3269 * doc/invoke.texi: Ditto.
3270 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
3271 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
3272 (execute_vect_slp): Emit BB vectorization success under
3273 MSG_OPTIMIZED_LOCATIONS.
3274 * tree-vect-slp.c (vect_slp_transform_bb): Change
3275 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
3276 * tree-vect-loop.c (vect_transform_loop): Ditto.
3277
ec3af349
JM
32782013-06-03 Jason Merrill <jason@redhat.com>
3279
3280 PR c++/57415
3281 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3282 Use TARGET_EXPR for C++.
3283
1baf9159
JJ
32842013-06-03 Jakub Jelinek <jakub@redhat.com>
3285
3286 PR rtl-optimization/57268
0cd9e9ee 3287 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
1baf9159
JJ
3288 if DEBUG_INSN_P (insn).
3289
3290 Reapply
3291 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
3292
3293 PR rtl-optimization/57268
3294 * sched-deps.c (sched_analyze_2): Flush dependence lists if
3295 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
3296
0f1d3965
YR
32972013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
3298
3299 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
3300 (ix86_avoid_lea_for_addr): Likewise.
3301 (exact_dependency_1): Likewise.
3302 (ix86_adjust_cost): Likewise.
3303 (swap_top_of_ready_list): Fix formatting and !reload_completed check
3304 removed.
3305 (do_reorder_for_imul): Fix typo, formatting and
3306 !reload_completed check removed.
3307 (ix86_sched_reorder): Fix typo and formatting.
3308 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
3309 list.
3310
3bc30db4
SN
33112013-06-03 Sofiane Naci <sofiane.naci@arm.com>
3312
3313 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
3314
19cc6fac
EB
33152013-06-03 Eric Botcazou <ebotcazou@adacore.com>
3316
3317 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
3318 <STRING_CST>: Likewise.
3319 <VECTOR_CST>: Likewise.
3320
c68a6e08
JW
33212013-06-01 Janus Weil <janus@gcc.gnu.org>
3322 Mikael Morin <mikael@gcc.gnu.org>
3323
3324 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
3325 * config.in: Regenerated.
3326 * configure: Regenerated.
3327
38e55e5c
JH
33282013-06-01 Jan Hubicka <jh@suse.cz>
3329
3330 PR middle-end/57366
3331 * cgraphunit.c (compile): When weakref is not supported,
3332 set up transparent aliases before final output pass.
3333 * varasm.c (assemble_alias): Do not try to do it here.
3334
eb51d2ff
JH
33352013-06-01 Jan Hubicka <jh@suse.cz>
3336
3337 PR middle-end/57467
3338 * passes.c (for_per_function): Skip unanalyzed functions.
3339
40a7fe1e
JH
33402013-06-01 Jan Hubicka <jh@suse.cz>
3341
3342 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
3343 (lto_symtab_merge_symbols_1): ... this one.
3344 (lto_symtab_merge_cgraph_nodes): Rename to ...
3345 (lto_symtab_merge_symbols): ... this one; simplify.
3346 * cgraph.c (same_body_aliases_done): Rename to ...
3347 (cpp_implicit_aliases_done): ... this one.
3348 (cgraph_create_function_alias): Update.
3349 (cgraph_same_body_alias): Update.
c1e183a9 3350 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
40a7fe1e 3351 (verify_edge_corresponds_to_fndecl): Simplify.
c1e183a9 3352 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
40a7fe1e
JH
3353 (cgraph_node): Remove same_body_alias.
3354 (varpool_node): Remove alias_of and extra_name_alias.
3355 (same_body_aliases_done): Rename to ..
3356 (cpp_implicit_aliases_done): ... this one.
3357 (symtab_alias_ultimate_target): Add default parameter.
3358 (symtab_resolve_alias): New function.
3359 (fixup_same_cpp_alias_visibility): Declare.
3360 (cgraph_function_node): Add default parameter.
3361 (cgraph_node_asm_name): Likewise.
3362 (cgraph_function_or_thunk_node): Add default parameter; do
3363 not ICE when it is NULL.
3364 (varpool_variable_node): Likewise.
3365 * tree-emutls.c (create_emultls_var): Update.
3366 (ipa_lower_emutls): Update.
3367 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
3368 (cgraph_reset_node): Reset alias info.
3369 (cgraph_finalize_function): Update.
3370 (fixup_same_cpp_alias_visibility): Move to symtab.c.
3371 (analyze_function): Simplify.
3372 (cgraph_process_same_body_aliases): Simplify.
3373 (analyze_functions): Fixup same body aliases.
3374 (handle_alias_pairs): Simplify.
3375 (assemble_thunk): Update.
3376 (assemble_thunks_and_aliases): Update.
3377 (output_weakrefs): Rewrite.
3378 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
3379 (lto_output_varpool_node): Likewise.
3380 (compute_ltrans_boundary): Remve assert.
3381 (get_alias_symbol): New functoin.
3382 (input_node): Rewrite alias handling.
3383 (input_varpool_node): Likewise.
3384 * ipa-pure-const.c (propagate_pure_const): Fix formating.
3385 * ipa.c (process_references): Handle weakrefs correctly.
3386 (symtab_remove_unreachable_nodes): Likewise.
3387 * trans-mem.c (get_cg_data): Update.
3388 (ipa_tm_create_version_alias): Update.
3389 (ipa_tm_execute): Update.
3390 * symtab.c (dump_symtab_base): Dump aliases.
3391 (verify_symtab_base): Verify aliases.
3392 (symtab_node_availability): New function.
3393 (symtab_alias_ultimate_target): Simplify.
3394 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
3395 handle all the fixup cases.
3396 (symtab_resolve_alias): New function.
3397 * passes.c (ipa_write_summaries): Handle weakrefs.
3398 * varpool.c (varpool_analyze_node): Simplify.
3399 (assemble_aliases): Update.
3400 (varpool_create_variable_alias): Simplify.
3401 (varpool_extra_name_alias): Simplify.
3402 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
3403 (lto_symtab_merge_symbols): ... this one.
3404
21759881
DT
34052013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
3406
3407 Revert
3408 PR rtl-optimization/57268
3409 * sched-deps.c (sched_analyze_2): Flush dependence lists if
3410 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
3411
daf4e940
TB
34122013-06-01 Tobias Burnus <burnus@net-b.de>
3413
3414 Partially reverted:
3415 2013-05-31 Tobias Burnus <burnus@net-b.de>
3416
3417 PR middle-end/57073
3418 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
3419 further up.
3420
c359d8d0
DT
34212013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
3422
3423 PR rtl-optimization/57268
3424 * sched-deps.c (sched_analyze_2): Flush dependence lists if
3425 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
3426
4172215d
EB
34272013-05-31 Eric Botcazou <ebotcazou@adacore.com>
3428
3429 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
3430 unordered comparison operators when -fno-trapping-math is in effect
3431 on the e500.
3432 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
3433 and implement unordered comparison operators properly on the e500.
3434
a8c50132
EB
34352013-05-31 Eric Botcazou <ebotcazou@adacore.com>
3436
3437 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
3438 for constant scalar integers.
3439 (simplify_relational_operation_1): Likewise.
3440
44626634
SB
34412013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
3442
3443 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
3444 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
3445 Fix comment.
3446
55805e54
YR
34472013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
3448 Igor Zamyatin <igor.zamyatin@intel.com>
3449
3450 Silvermont (SLM) architecture performance tuning.
3451 * config/i386/i386.h (enum ix86_tune_indices): Add
3452 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
3453 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
3454
3455 * config/i386/i386.c (initial_ix86_tune_features)
3456 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
3457 (ix86_lea_outperforms): Handle Silvermont tuning.
3458 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
3459 call.
3460 (ix86_use_lea_for_mov): Likewise.
3461 (ix86_avoid_lea_for_addr): Likewise.
3462 (ix86_lea_for_add_ok): Likewise.
3463 (exact_dependency_1): New function.
3464 (exact_store_load_dependency): Likewise.
3465 (ix86_adjust_cost): Handle Silvermont tuning.
3466 (do_reoder_for_imul): Likewise.
3467 (swap_top_of_ready_list): New function.
3468 (ix86_sched_reorder): Changed to handle Silvermont tuning.
3469
3470 * config/i386/i386.md (peepholes that split memory operand in fp
3471 converts): New.
3472
e19c9de2
MS
34732013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
3474
3475 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3476 Remove un-necessary braces.
3477
38e6c9a6
MS
34782013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
3479
3480 * config/aarch64/aarch64.c (aarch64_classify_symbol):
3481 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
3482
e3530904
TB
34832013-05-31 Tobias Burnus <burnus@net-b.de>
3484
3485 PR middle-end/57073
c1e183a9 3486 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
e3530904 3487
b6af05a9
KT
34882013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3489
3490 PR target/56315
3491 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
3492 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
3493 * config/arm/neon.md (iordi3_neon): Remove.
3494 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
3495 * config/arm/predicates.md (imm_for_neon_logic_operand):
3496 Move to earlier in the file.
3497 (neon_logic_op2): Likewise.
3498 (arm_iordi_operand_neon): New predicate.
3499
f800c166
RB
35002013-05-31 Richard Biener <rguenther@suse.de>
3501
3502 PR tree-optimization/57478
3503 PR tree-optimization/57453
3504 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
3505 are life as well.
3506
e571fa59
KP
35072013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
3508
3509 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
3510 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
3511
0fa6e0ef
TB
35122013-05-30 Tobias Burnus <burnus@net-b.de>
3513 Thomas Koenig <tkoenig@gcc.gnu.org>
3514
3515 PR middle-end/57073
3516 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
3517 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
3518
4688ddf5
SB
35192013-05-30 Steven Bosscher <steven@gcc.gnu.org>
3520
0fa6e0ef 3521 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
4688ddf5 3522
3b9ceb4b
VM
35232013-05-30 Vladimir Makarov <vmakarov@redhat.com>
3524
3525 * target.def (register_usage_leveling_p): New hook.
3526 * targhooks.c (default_register_usage_leveling_p): New.
3527 * targhooks.h (default_register_usage_leveling_p): New prototype.
3528 * lra-assigns.c (register_usage_leveling_p): Use the hook.
3529 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
3530 * doc/tm.texi: Update.
3531 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
3532
65f9e789
IB
35332013-05-30 Ian Bolton <ian.bolton@arm.com>
3534
3535 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
3536 (*insv_reg<mode>): New define_insn.
3537
ca035367
JR
35382013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
3539
3540 PR rtl-optimization/57439
3541 * postreload.c (move2add_valid_value_p): Check that we have
3542 a zero subreg_regno_offset when accessing the register in
3543 the requested mode.
3544
0b871ccf
YR
35452013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
3546 Igor Zamyatin <igor.zamyatin@intel.com>
3547
3548 Silvermont (SLM) architecture pipeline model, tuning and
3549 insn selection.
3550 * config.gcc: Add slm config options and target.
3551
3552 * config/i386/slm.md: New.
3553
3554 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
3555
3556 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
3557 PROCESSOR_SLM.
3558 (ix86_target_macros_internal): Likewise.
3559
3560 * gcc/config/i386/i386.c (slm_cost): New cost.
3561 (m_SLM): New macro flag.
3562 (initial_ix86_tune_features): Set m_SLM.
3563 (x86_accumulate_outgoing_args): Likewise.
3564 (x86_arch_always_fancy_math_387): Likewise.
3565 (processor_target_table): Add slm cost.
3566 (cpu_names): Add slm cpu name.
3567 (x86_option_override_internal): Set SLM ISA.
3568 (ix86_issue_rate): New case PROCESSOR_SLM.
3569 (ia32_multipass_dfa_lookahead): Likewise.
3570 (fold_builtin_cpu): Add slm.
3571
3572 * config/i386/i386.h (TARGET_SLM): New target macro.
3573 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
3574 (processor_type): Add PROCESSOR_SLM.
3575
3576 * config/i386/i386.md (cpu): Add new value "slm".
3577 (slm.md): Include slm.md.
3578
24d5b097
XG
35792013-05-30 Bernd Schmidt <bernds@codesourcery.com>
3580 Zhenqiang Chen <zhenqiang.chen@linaro.org>
3581
3582 * config/arm/arm-protos.h: Add and update function protos.
3583 * config/arm/arm.c (use_simple_return_p): New added.
3584 (thumb2_expand_return): Check simple_return flag.
3585 * config/arm/arm.md: Add simple_return and conditional simple_return.
3586 * config/arm/iterators.md: Add iterator for return and simple_return.
3587
c1cccc15
ZC
35882013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
3589
3590 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
3591 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
3592 (arm_emit_vfp_multi_reg_pop): Likewise.
3593 (thumb2_emit_ldrd_pop): Likewise.
3594 (arm_expand_epilogue): Add misc REG_CFA notes.
3595 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
3596
3a4f280b
LC
35972013-05-29 Lawrence Crowl <crowl@google.com>
3598
3599 * config/arm/t-arm: Update for below.
3600
3601 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
3602 Change type to hash_table. Update dependent calls and types.
3603
3604 * config/i386/t-cygming: Update for below.
3605
3606 * config/i386/t-interix: Update for below.
3607
3608 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
3609 Change type to hash_table. Update dependent calls and types.
3610 (i386_find_on_wrapper_list::wrappers): Likewise.
3611
3612 * config/ia64/t-ia64: Update for below.
3613
3614 * config/ia64/ia64.c (bundle_state_table):
3615 Change type to hash_table. Update dependent calls and types.
3616
3617 * config/mips/mips.c (mips_reorg_process_insns::htab):
3618 Change type to hash_table. Update dependent calls and types.
3619
3620 * config/sol2.c (solaris_comdat_htab):
3621 Change type to hash_table. Update dependent calls and types.
3622
3623 * config/t-sol2: Update for above.
3624
1388a0e3
TJ
36252013-05-29 Teresa Johnson <tejohnson@google.com>
3626
3627 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
3628 functions are not yet marked as defined.
3629
a5965b52
MM
36302013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
3631 Pat Haugen <pthaugen@us.ibm.com>
3632 Peter Bergner <bergner@vnet.ibm.com>
3633
3634 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
3635 instructions.
3636 (VEC_A): Likewise.
3637 (VEC_C): Likewise.
3638 (vrotl<mode>3): Likewise.
3639 (vashl<mode>3): Likewise.
3640 (vlshr<mode>3): Likewise.
3641 (vashr<mode>3): Likewise.
3642
3643 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3644 support for power8 V2DI builtins.
3645
3646 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
3647 power8 V2DI builtins.
3648 (vupkhsw): Likewise.
3649 (vupklsw): Likewise.
3650 (vaddudm): Likewise.
3651 (vminsd): Likewise.
3652 (vmaxsd): Likewise.
3653 (vminud): Likewise.
3654 (vmaxud): Likewise.
3655 (vpkudum): Likewise.
3656 (vpksdss): Likewise.
3657 (vpkudus): Likewise.
3658 (vpksdus): Likewise.
3659 (vrld): Likewise.
3660 (vsld): Likewise.
3661 (vsrd): Likewise.
3662 (vsrad): Likewise.
3663 (vsubudm): Likewise.
3664 (vcmpequd): Likewise.
3665 (vcmpgtsd): Likewise.
3666 (vcmpgtud): Likewise.
3667 (vcmpequd_p): Likewise.
3668 (vcmpgtsd_p): Likewise.
3669 (vcmpgtud_p): Likewise.
3670 (vupkhsw): Likewise.
3671 (vupklsw): Likewise.
3672 (vaddudm): Likewise.
3673 (vmaxsd): Likewise.
3674 (vmaxud): Likewise.
3675 (vminsd): Likewise.
3676 (vminud): Likewise.
3677 (vpksdss): Likewise.
3678 (vpksdus): Likewise.
3679 (vpkudum): Likewise.
3680 (vpkudus): Likewise.
3681 (vrld): Likewise.
3682 (vsld): Likewise.
3683 (vsrad): Likewise.
3684 (vsrd): Likewise.
3685 (vsubudm): Likewise.
3686
3687 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
3688 support for power8 V2DI instructions.
3689
3690 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
3691 power8 V2DI instructions. Combine pack and unpack insns to use an
3692 iterator for each mode. Check whether a particular mode supports
3693 Altivec instructions instead of just checking TARGET_ALTIVEC.
3694 (UNSPEC_VPKUWUM): Likewise.
3695 (UNSPEC_VPKSHSS): Likewise.
3696 (UNSPEC_VPKSWSS): Likewise.
3697 (UNSPEC_VPKUHUS): Likewise.
3698 (UNSPEC_VPKSHUS): Likewise.
3699 (UNSPEC_VPKUWUS): Likewise.
3700 (UNSPEC_VPKSWUS): Likewise.
3701 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
3702 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
3703 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
3704 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
3705 (UNSPEC_VUPKHSB): Likewise.
3706 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
3707 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
3708 (UNSPEC_VUPKHSH): Likewise.
3709 (UNSPEC_VUPKLSB): Likewise.
3710 (UNSPEC_VUPKLSH): Likewise.
3711 (VI2): Likewise.
3712 (VI_char): Likewise.
3713 (VI_scalar): Likewise.
3714 (VI_unit): Likewise.
3715 (VP): Likewise.
3716 (VP_small): Likewise.
3717 (VP_small_lc): Likewise.
3718 (VU_char): Likewise.
3719 (add<mode>3): Likewise.
3720 (altivec_vaddcuw): Likewise.
3721 (altivec_vaddu<VI_char>s): Likewise.
3722 (altivec_vadds<VI_char>s): Likewise.
3723 (sub<mode>3): Likewise.
3724 (altivec_vsubcuw): Likewise.
3725 (altivec_vsubu<VI_char>s): Likewise.
3726 (altivec_vsubs<VI_char>s): Likewise.
3727 (altivec_vavgs<VI_char>): Likewise.
3728 (altivec_vcmpbfp): Likewise.
3729 (altivec_eq<mode>): Likewise.
3730 (altivec_gt<mode>): Likewise.
3731 (altivec_gtu<mode>): Likewise.
3732 (umax<mode>3): Likewise.
3733 (smax<mode>3): Likewise.
3734 (umin<mode>3): Likewise.
3735 (smin<mode>3): Likewise.
3736 (altivec_vpkuhum): Likewise.
3737 (altivec_vpkuwum): Likewise.
3738 (altivec_vpkshss): Likewise.
3739 (altivec_vpkswss): Likewise.
3740 (altivec_vpkuhus): Likewise.
3741 (altivec_vpkshus): Likewise.
3742 (altivec_vpkuwus): Likewise.
3743 (altivec_vpkswus): Likewise.
3744 (altivec_vpks<VI_char>ss): Likewise.
3745 (altivec_vpks<VI_char>us): Likewise.
3746 (altivec_vpku<VI_char>us): Likewise.
3747 (altivec_vpku<VI_char>um): Likewise.
3748 (altivec_vrl<VI_char>): Likewise.
3749 (altivec_vsl<VI_char>): Likewise.
3750 (altivec_vsr<VI_char>): Likewise.
3751 (altivec_vsra<VI_char>): Likewise.
3752 (altivec_vsldoi_<mode>): Likewise.
3753 (altivec_vupkhsb): Likewise.
3754 (altivec_vupkhs<VU_char>): Likewise.
3755 (altivec_vupkls<VU_char>): Likewise.
3756 (altivec_vupkhsh): Likewise.
3757 (altivec_vupklsb): Likewise.
3758 (altivec_vupklsh): Likewise.
3759 (altivec_vcmpequ<VI_char>_p): Likewise.
3760 (altivec_vcmpgts<VI_char>_p): Likewise.
3761 (altivec_vcmpgtu<VI_char>_p): Likewise.
3762 (abs<mode>2): Likewise.
3763 (vec_unpacks_hi_v16qi): Likewise.
3764 (vec_unpacks_hi_v8hi): Likewise.
3765 (vec_unpacks_lo_v16qi): Likewise.
3766 (vec_unpacks_hi_<VP_small_lc>): Likewise.
3767 (vec_unpacks_lo_v8hi): Likewise.
3768 (vec_unpacks_lo_<VP_small_lc>): Likewise.
3769 (vec_pack_trunc_v8h): Likewise.
3770 (vec_pack_trunc_v4si): Likewise.
3771 (vec_pack_trunc_<mode>): Likewise.
3772
3773 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
3774 V2DI builtins.
3775 (vec_vmaxsd): Likewise.
3776 (vec_vmaxud): Likewise.
3777 (vec_vminsd): Likewise.
3778 (vec_vminud): Likewise.
3779 (vec_vpksdss): Likewise.
3780 (vec_vpksdus): Likewise.
3781 (vec_vpkudum): Likewise.
3782 (vec_vpkudus): Likewise.
3783 (vec_vrld): Likewise.
3784 (vec_vsld): Likewise.
3785 (vec_vsrad): Likewise.
3786 (vec_vsrd): Likewise.
3787 (vec_vsubudm): Likewise.
3788 (vec_vupkhsw): Likewise.
3789 (vec_vupklsw): Likewise.
3790
e70670cf
JH
37912013-05-29 Jan Hubicka <jh@suse.cz>
3792
3793 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
3794 flags; reorder rest of fields in more consistent way.
3795 (varpool_node): Remove analyzed, finalized and alias.
3796 (cgraph_ndoe): Likewise.
3797 (symtab_alias_ultimate_target): New function.
3798 (cgraph_function_node): Move offline.
3799 (cgraph_reset_node): Declare.
3800 (cgraph_comdat_can_be_unshared_p): Remove.
3801 (varpool_remove_initializer): Declare.
3802 (varpool_first_defined_variable, varpool_next_defined_variable
3803 cgraph_first_defined_function, cgraph_next_defined_function): Update.
3804 (cgraph_function_with_gimple_body_p): Update.
3805 (varpool_all_refs_explicit_p): Update.
3806 (symtab_alias_target): New function.
3807 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
3808 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
c1e183a9
UB
3809 (cgraph_function_or_thunk_node): Simplify using
3810 symtab_alias_ultimate_target.
e70670cf
JH
3811 (varpool_variable_node): Likewise.
3812 * cgraph.c (cgraph_create_function_alias): Update.
3813 (cgraph_add_thunk): Update.
3814 (cgraph_remove_node): Update.
3815 (dump_cgraph_node): Do not dump removed flags.
3816 (cgraph_function_body_availability): Update.
3817 (cgraph_propagate_frequency): Update.
3818 (verify_cgraph_node): Check sanity of local flag.
3819 (cgraph_function_node): Move here from cgraph.h; revamp for
3820 cgraph_function_or_thunk_node.
3821 * lto-symtab.c (lto_varpool_replace_node): Update.
3822 (lto_symtab_resolve_can_prevail_p): Update.
3823 (lto_symtab_merge_cgraph_nodes): Update.
3824 * ipa-cp.c (determine_versionability, initialize_node_lattices,
3825 propagate_constants_accross_call, devirtualization_time_bonus,
3826 ipcp_propagate_stage): Update.
3827 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
c1e183a9
UB
3828 * ipa-inline-transform.c (clone_inlined_nodes,
3829 preserve_function_body_p): Update.
e70670cf
JH
3830 * ipa-reference.c (propagate): Update.
3831 (write_node_summary_p): Update.
3832 * toplev.c (wrapup_global_declaration_2): Update.
3833 * cgraphunit.c (cgraph_analyze_function): Rename to ...
3834 (analyze_function) ... this one.
3835 (cgraph_process_new_functions): Update.
3836 (cgraph_reset_node): Export.
3837 (cgraph_finalize_function): Update.
3838 (cgraph_add_new_function): Update.
3839 (process_function_and_variable_attributes): Update.
3840 (varpool_finalize_decl): Update.
3841 (symbol_finalized): Remove.
3842 (symbol_finalized_and_needed): Rename to ...
3843 (symbol_defined_and_needed): ... update.
3844 (cgraph_analyze_functions): Update.
3845 (handle_alias_pairs): Update.
3846 (mark_functions_to_output): Update.
3847 (assemble_thunk): Update.
3848 (output_in_order): Update.
3849 (output_weakrefs): Update.
3850 (finalize_compilation_unit): Update.
3851 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
3852 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
3853 input_node, input_varpool_node): Update.
3854 * dbxout.c (dbxout_expand_expr): Update.
3855 * cgraphclones.c (cgraph_clone_node): Update.
3856 (cgraph_copy_node_for_versioning): Update.
3857 (cgraph_materialize_clone): Update.
3858 (cgraph_materialize_all_clones): Update.
3859 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
3860 propagate_pure_const, propagate_nothrow): Update.
3861 * lto-streamer-out.c (lto_output, write_symbol): Update.
3862 * ipa-utils.c (ipa_reverse_postorder): Update.
3863 * ipa-inline.c (can_inline_edge_p): Update.
3864 (update_caller_keys, ipa_inline): Update.
3865 * dwarf2out.c (reference_to_unused,
3866 premark_types_used_by_global_vars_helper): Update.
3867 * tree-eh.c (tree_could_trap_p): Update.
3868 * ipa-split.c (consider_split, execute_split_functions): Update.
3869 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
c1e183a9
UB
3870 has_addr_references_p): Update; move ahead in file for better
3871 readability.
e70670cf
JH
3872 (process_references): Simplify.
3873 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
3874 bodies are removed.
3875 (cgraph_comdat_can_be_unshared_p): Make static.
3876 (cgraph_externally_visible_p): Update.
3877 (varpool_externally_visible_p): Update.
3878 (function_and_variable_visibility): Update.
3879 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
3880 ipa_tm_mark_force_output_node): Update.
3881 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
3882 estimate_edge_devirt_benefit, inline_generate_summary,
3883 inline_write_summary): Update.
3884 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
3885 * ipa-prop.c (ipa_compute_jump_functions): Update.
c1e183a9
UB
3886 (ipa_print_node_params, ipa_prop_read_section,
3887 ipa_update_after_lto_read, read_replacements_section): Update.
e70670cf
JH
3888 * varasm.c (mark_decl_referenced): Update.
3889 (assemble_alias, dump_tm_clone_pairs): Update.
3890 * tree-inline.c (copy_bb): Update.
3891 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
3892 Update.
3893 * symtab.c (dump_symtab_base): Print new flags.
3894 (verify_symtab_base): Verify new flags.
3895 (symtab_alias_ultimate_target): New function.
3896 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
3897 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
3898 Update.
c1e183a9
UB
3899 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
3900 Update.
e70670cf
JH
3901 * i386.c (ix86_get_function_versions_dispatcher,
3902 ix86_generate_version_dispatcher_body): Update.
3903 (fold_builtin_cpu): Use varpool_add_new_variable.
3904 * varpool.c (varpool_remove_initializer): Break out from ...
3905 (varpool_remove_node): ... this one.
3906 (dump_varpool_node, varpool_node_for_asm,
3907 cgraph_variable_initializer_availability, varpool_analyze_node,
3908 varpool_assemble_decl, varpool_remove_unreferenced_decls,
c1e183a9
UB
3909 varpool_finalize_named_section_flags, varpool_create_variable_alias):
3910 Update.
e70670cf 3911
182802ad
JH
39122013-05-29 Jan Hubicka <jh@suse.cz>
3913
3914 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
3915
8190b609
ER
39162013-05-29 Easwaran Raman <eraman@google.com>
3917
3918 PR tree-optimization/57442
3919 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
3920 when control exits the main loop.
3921
69f5aa9b
SKS
39222013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
3923
3924 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
3925 and RX600.
c1e183a9 3926 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
69f5aa9b
SKS
3927 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
3928 * rx/t-rx: Add rx100 under multi library matches option for nofpu
3929 option.
3930
4b847da9
BS
39312013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3932
3933 PR tree-optimization/57441
3934 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
3935 Don't limit size of incr_vec to number of candidates.
3936
4fc43c39
SE
39372013-05-29 Steve Ellcey <sellcey@imgtec.com>
3938
3939 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
3940 and mips16 directories.
c1e183a9 3941 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
4fc43c39
SE
3942 (MULTILIB_DIRNAMES): Ditto.
3943 (MULTILIB_EXCEPTIONS): Add new exceptions.
3944 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
3945 (MULTILIB_DIRNAMES): Ditto.
3946 (MULTILIB_EXCEPTIONS): Add new exceptions.
3947
a5350ddc
CSS
39482012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3949 Marcus Shawcroft <marcus.shawcroft@arm.com>
3950
3951 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
3952 SYMBOL_TINY_ABSOLUTE.
3953 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
3954 SYMBOL_TINY_ABSOLUTE.
3955 (aarch64_expand_mov_immediate): Likewise.
3956 (aarch64_classify_symbol): Likewise.
3957 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
3958 Permit SYMBOL_TINY_ABSOLUTE.
3959 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
3960
17f4d4bf
CSS
39612013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3962 Marcus Shawcroft <marcus.shawcroft@arm.com>
3963
3964 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
3965 Refactor if/switch. Replace gcc_assert with if.
3966
c0186656
GG
39672013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3968
3969 * config/i386/i386.c (initial_ix86_tune_features): Enable
3970 FP Reassociation for AMD bdver1 and bdver2.
3971
d20188f3
MJ
39722013-05-29 Martin Jambor <mjambor@suse.cz>
3973
3974 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
3975 and IMAGPART_EXPR do not occur within other handled_components.
3976
292cba13
RB
39772013-05-29 Richard Biener <rguenther@suse.de>
3978
3979 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
3980 access on whether the use is in the BB we currently try to
3981 vectorize.
3982 (vect_bb_vectorization_profitable_p): Pass the BB we currently
3983 vectorize to vect_bb_slp_scalar_cost.
3984
6eddf228
RB
39852013-05-29 Richard Biener <rguenther@suse.de>
3986
3987 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
3988 computing scalar cost offsetted by stmts that are kept live
3989 by scalar uses.
3990 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
3991 for computation of scalar cost.
3992
7df36117
SE
39932013-05-28 Steve Ellcey <sellcey@mips.com>
3994
3995 * config/mips/mips-cpus.def (mips32r2): Change processor type.
3996
36536d79
BI
39972013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3998
3999 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
4000 array notation built-in reduction functions.
4001 * doc/passes.texi (Passes): Added documentation about changes done
4002 for Cilk Plus.
4003 * doc/invoke.texi (C Dialect Options): Added documentation about
4004 the -fcilkplus flag.
4005 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
4006 (BUILTINS_DEF): Depend on cilkplus.def.
4007 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
4008 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
4009 * cilkplus.def: New file.
4010
b49eefa5
JR
40112013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
4012
4013 PR rtl-optimization/57439
4014 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
4015
9daf6dbb
ER
40162013-05-28 Easwaran Raman <eraman@google.com>
4017
4018 PR tree-optimization/57337
4019 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
4020 (find_insert_point): Correctly identify the insertion point
4021 when two statements with the same UID is compared.
4022
fbd7e877
RB
40232013-05-28 Richard Biener <rguenther@suse.de>
4024
4025 PR tree-optimization/56787
4026 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
4027 from the list of data references.
4028 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
4029 clobbers.
4030 (vect_analyze_loop_operations): Likewise.
4031 (vect_transform_loop): Remove clobbers.
4032
bbba1117
MJ
40332013-05-28 Martin Jambor <mjambor@suse.cz>
4034
4035 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
4036 and REALPART_EXPRs have scalar type.
4037
bd388c2a
RB
40382013-05-28 Richard Biener <rguenther@suse.de>
4039
4040 PR tree-optimization/57411
4041 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
4042 virtual operands.
4043 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
4044 virtual operand propagation.
4045
2f56a311
EB
40462013-05-28 Eric Botcazou <ebotcazou@adacore.com>
4047
4048 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
4049 destination register for bmasksi_vis.
4050 (vector_init_bshuffle): Likewise.
4051 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
4052
5c3eacbb
EB
40532013-05-28 Eric Botcazou <ebotcazou@adacore.com>
4054
4055 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
4056 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
4057 mode if the instruction isn't available in the original mode.
4058 * config/sparc/sparc.opt (mfix-ut699): New option.
4059 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
4060 (divdf3): Turn into expander.
4061 (divdf3_nofix): New insn.
4062 (divdf3_fix): Likewise.
4063 (divsf3): Disable if -mfix-ut699.
4064 (sqrtdf2): Turn into expander.
4065 (sqrtdf2_nofix): New insn.
4066 (sqrtdf2_fix): Likewise.
4067 (sqrtsf2): Disable if -mfix-ut699.
4068
a1756c0a
RB
40692013-05-27 Richard Biener <rguenther@suse.de>
4070
4071 PR middle-end/57412
4072 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
4073 block for the new loop.
4074
5a892248
RB
40752013-05-27 Richard Biener <rguenther@suse.de>
4076
4077 PR tree-optimization/57343
4078 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
4079 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
4080 (number_of_iterations_cond): Do not build the folded tree.
4081
d1de852b
RB
40822013-05-27 Richard Biener <rguenther@suse.de>
4083
4084 Revert
4085 PR middle-end/57381
4086 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
4087 OEP_CONSTANT_ADDRESS_OF retained.
4088
4089 PR tree-optimization/57417
4090 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
4091 for unchanged base.
4092 (set_ssa_val_to): Compare addresses using
4093 get_addr_base_and_unit_offset.
4094
7894bc6b
JR
40952013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
4096
4097 PR rtl-optimization/56833
4098 * postreload.c (move2add_record_mode): New function.
4099 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
4100 (move2add_use_add2_insn): Use move2add_record_sym_value.
4101 (move2add_use_add3_insn): Likewise.
4102 (reload_cse_move2add): Use move2add_valid_value_p and
4103 move2add_record_mode. Invalidate call-clobbered and REG_INC
4104 affected regs by setting reg_mode to VOIDmode.
4105 (move2add_note_store): Don't pretend the inside of a SUBREG is
4106 the actual destination. Invalidate single/leading registers by
4107 setting reg_mode to VOIDmode.
4108 Use move2add_record_sym_value, move2add_valid_value_p and
4109 move2add_record_mode.
4110
b03be25f
RB
41112013-05-27 Richard Biener <rguenther@suse.de>
4112
4113 PR tree-optimization/57396
4114 * tree-affine.c (double_int_constant_multiple_p): Properly
4115 return false for val == 0 and div != 0.
4116
44e88db2
RS
41172013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
4118
4119 * config/mips/mips.h: Use #elif in preprocessor conditions.
4120
3b859704
RS
41212013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
4122
4123 PR target/53916
4124 * config/mips/constraints.md (kl): New constraint.
4125 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
4126 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
4127 constraint for operand 0. Split after CSE for MIPS16. Emit a move
4128 from LO for MIPS16.
4129 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
4130
c979d5f5
RS
41312013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
4132
4133 PR target/55777
4134 * config/mips/mips.c (mips_can_inline_p): New function.
4135 (TARGET_CAN_INLINE_P): Define.
4136
8e90de43
SB
41372013-05-25 Steven Bosscher <steven@gcc.gnu.org>
4138
4139 * sched-int.h (ds_t, dw_t): Make unsigned int.
4140 Fix documentation that describes how all the ds_t bits are used.
4141 Reserve the last bit for delayed-branch scheduling.
4142 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
4143 (BITS_PER_DEP_WEAK): Fix definition and documentation.
4144 (gen_dep_weak_1): Remove prototype.
4145 * sched-deps.c (get_dep_weak_1): Make static.
4146 * target.def (speculate_insn, needs_block_p, gen_spec_check,
4147 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
4148 * doc/tm.texi: Regenerate.
4149 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
4150
cb5cb194
SB
41512013-05-24 Steven Bosscher <steven@gcc.gnu.org>
4152
4153 PR debug/56950
4154 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
4155
5bd93ff6
NS
41562013-05-24 Nathan Sidwell <nathan@codesourcery.com>
4157 Sandra Loosemore <sandra@codesourcery.com>
4158
4159 * config.gcc (powerpc-*): Allow native for with-cpu.
4160
2343af65
JL
41612013-05-24 Jeff Law <law@redhat.com>
4162
4163 PR tree-optimization/57124
4164 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
4165 conversion feeding a condition if the range has an overflow
4166 if -fstrict-overflow. Add warnings for when we do make the
4167 transformation.
4168
3ad695b9
DC
41692013-05-24 Dehao Chen <dehao@google.com>
4170
04960246 4171 * tree-cfg.c (locus_discrim_map): Fix the typo.
3ad695b9
DC
4172 (locus_discrim_hasher): Likewise.
4173 (locus_discrim_hasher::hash): Likewise.
4174 (locus_discrim_hasher::equal): Likewise.
4175
82338059
MJ
41762013-05-24 Martin Jambor <mjambor@suse.cz>
4177
4178 PR tree-optimization/57294
4179 * cgraph.h (ipa_record_stmt_references): Declare.
4180 * cgraphbuild.c (ipa_record_stmt_references): New function.
4181 (build_cgraph_edges): Use ipa_record_stmt_references.
4182 (rebuild_cgraph_edges): Likewise.
4183 (cgraph_rebuild_references): Likewise.
4184 * ipa-prop.c (ipa_modify_call_arguments): Discard references
4185 associated with the old statement and build references from the
4186 newly built statements.
4187 * ipa-ref.c (ipa_remove_stmt_references): New function.
4188 * ipa-ref.h (ipa_remove_stmt_references): Declare.
4189
1ccd4874
VM
41902013-05-24 Vladimir Makarov <vmakarov@redhat.com>
4191
55805e54 4192 * lra-constraints.c (emit_spill_move): Use smaller mode for
1ccd4874 4193 mem-mem moves.
55805e54 4194 (check_and_process_move): Consider mem-reg moves for secondary
1ccd4874 4195 too.
55805e54 4196 (curr_insn_transform): Don't lose insns emitted before for
1ccd4874
VM
4197 secondary memory moves.
4198 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
4199 reg set up in the current insn.
4200
25e25c73
DC
42012013-05-24 Dehao Chen <dehao@google.com>
4202
04960246 4203 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25e25c73
DC
4204 hash function.
4205 (locus_descrim_hasher::equal): Likewise.
04960246 4206 (build_gimple_cfg): New discriminator assignment algorithm.
25e25c73
DC
4207 (make_edges): Likewise.
4208 (next_discriminator_for_locus): Likewise.
4209 (same_line_p): Likewise.
4210 (assign_discriminators): Likewise.
4211 (make_cond_expr_edges): Likewise.
4212 (make_gimple_switch_edges): Likewise.
4213 (make_goto_expr_edges): Likewise.
4214 (make_gimple_asm_edges): Likewise.
4215
50d38551
IB
42162013-05-24 Ian Bolton <ian.bolton@arm.com>
4217
4218 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
4219 X format specifier to only display bottom 16 bits.
4220 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
4221 immediate to match for operand 2, since it will be masked.
4222
aea0101d
RB
42232013-05-24 Richard Biener <rguenther@suse.de>
4224
4225 PR tree-optimization/57287
4226 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
4227 all SSA names that occur in abnormal PHIs.
4228
634e03d3
AI
42292013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
4230
4231 PR tree-ssa/57385
4232 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
4233 that index is not negative.
4234
b17c024f
EB
42352013-05-24 Eric Botcazou <ebotcazou@adacore.com>
4236
4237 PR rtl-optimization/55177
4238 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
4239 (simplify_byte_swapping_operation): New.
4240 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
4241 (simplify_relational_operation_1): Deal with BSWAP.
4242
46aeac1b
RH
42432013-05-23 Richard Henderson <rth@redhat.com>
4244
4245 PR target/56742
4246 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
4247 (ix86_reorg): Call it.
4248
70cc1536
UB
42492013-05-23 Uros Bizjak <ubizjak@gmail.com>
4250
4251 PR target/57379
4252 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
4253 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
4254 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
4255
b3851501
CB
42562013-05-23 Christian Bruel <christian.bruel@st.com>
4257
4258 PR debug/57351
4259 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
4260
4e194912
CSS
42612013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4262 Marcus Shawcroft <marcus.shawcroft@arm.com>
4263
4264 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
4265 * config/aarch64/constraints.md (Usa): Remove.
4266 * doc/md.texi (AArch64 Usa): Remove.
4267
83f8c414
CSS
42682013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4269 Marcus Shawcroft <marcus.shawcroft@arm.com>
4270
4271 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
4272 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
4273 * config/aarch64/predicates.md (aarch64_const_address): Remove.
4274 (aarch64_mov_operand): Use aarch64_mov_operand_p.
4275
b5574232
VP
42762013-05-23 Vidya Praveen <vidyapraveen@arm.com>
4277
4278 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
4279 instruction (AdvSIMD).
4280 * config/aarch64/aarch64-builtins.c
4281 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
4282 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
4283
76c36cb1 42842013-05-23 Martin Jambor <mjambor@suse.cz>
7d2fb524
MJ
4285
4286 PR middle-end/57347
4287 * tree.h (contains_bitfld_component_ref_p): Declare.
4288 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
70cc1536
UB
4289 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
4290 caller.
7d2fb524
MJ
4291 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
4292 not access a bit-field. Assert all final offsets are byte-aligned.
4293
ce521ae6
RB
42942013-05-23 Richard Biener <rguenther@suse.de>
4295
4296 PR tree-optimization/57380
4297 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
4298 least one invariant or re-used load.
4299 * passes.c (init_optimization_passes): Move pass_phiprop before
4300 pass_forwprop.
4301
75c7257f
JG
43022013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
4303
4304 * config/aarch64/aarch64-simd.md
4305 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
4306
af6d44b5
RB
43072013-05-23 Richard Biener <rguenther@suse.de>
4308
4309 PR middle-end/57381
4310 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
4311 OEP_CONSTANT_ADDRESS_OF retained.
4312
bd3647bf
JJ
43132013-05-23 Jakub Jelinek <jakub@redhat.com>
4314
4315 PR middle-end/57344
70cc1536
UB
4316 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
4317 don't lower unit. Handle unit not being always BITS_PER_WORD.
bd3647bf 4318
a55757ea
RB
43192013-05-23 Richard Biener <rguenther@suse.de>
4320
4321 PR rtl-optimization/57341
4322 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
4323 instead of true_dependence.
4324
cfb00b41
DM
43252013-05-22 David Malcolm <dmalcolm@redhat.com>
4326
dd1c676f
DM
4327 * bb-reorder.c (branch_threshold): Make const.
4328 (exec_threshold): Ditto.
cfb00b41 4329
f62511da
MM
43302013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4331 Pat Haugen <pthaugen@us.ibm.com>
4332 Peter Bergner <bergner@vnet.ibm.com>
4333
4334 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
4335 documentation for the power8 crypto builtins.
4336
4337 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
4338
4339 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
4340 macros for defining power8 builtin functions.
4341 (BU_P8V_AV_2): Likewise.
4342 (BU_P8V_AV_P): Likewise.
4343 (BU_P8V_VSX_1): Likewise.
4344 (BU_P8V_OVERLOAD_1): Likewise.
4345 (BU_P8V_OVERLOAD_2): Likewise.
4346 (BU_CRYPTO_1): Likewise.
4347 (BU_CRYPTO_2): Likewise.
4348 (BU_CRYPTO_3): Likewise.
4349 (BU_CRYPTO_OVERLOAD_1): Likewise.
4350 (BU_CRYPTO_OVERLOAD_2): Likewise.
4351 (XSCVSPDP): Fix typo, point to the correct instruction.
4352 (VCIPHER): Add power8 crypto builtins.
4353 (VCIPHERLAST): Likewise.
4354 (VNCIPHER): Likewise.
4355 (VNCIPHERLAST): Likewise.
4356 (VPMSUMB): Likewise.
4357 (VPMSUMH): Likewise.
4358 (VPMSUMW): Likewise.
4359 (VPERMXOR_V2DI): Likewise.
4360 (VPERMXOR_V4SI: Likewise.
4361 (VPERMXOR_V8HI: Likewise.
4362 (VPERMXOR_V16QI: Likewise.
4363 (VSHASIGMAW): Likewise.
4364 (VSHASIGMAD): Likewise.
4365 (VPMSUM): Likewise.
4366 (VPERMXOR): Likewise.
4367 (VSHASIGMA): Likewise.
4368
4369 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
4370 __CRYPTO__ if the crypto instructions are available.
4371 (altivec_overloaded_builtins): Add support for overloaded power8
4372 builtins.
4373
4374 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
4375 support for power8 crypto builtins.
4376 (builtin_function_type): Likewise.
4377 (altivec_init_builtins): Add support for builtins that take vector
4378 long long (V2DI) arguments.
4379
4380 * config/rs6000/crypto.md: New file, define power8 crypto
4381 instructions.
4382
43832013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4384 Pat Haugen <pthaugen@us.ibm.com>
4385 Peter Bergner <bergner@vnet.ibm.com>
4386
4387 * doc/invoke.texi (Option Summary): Add power8 options.
4388 (RS/6000 and PowerPC Options): Likewise.
4389
4390 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
4391 constraints.md instead of rs6000.h. Reorder w* constraints. Add
4392 wm, wn, wr documentation.
4393
4394 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
4395 registers if direct move instructions are enabled.
4396 (wn): New constraint for no registers.
4397 (wq): New constraint for quad word even GPR registers.
4398 (wr): New constraint if 64-bit instructions are enabled.
4399 (wv): New constraint if power8 vector instructions are enabled.
4400 (wQ): New constraint for quad word memory locations.
4401
4402 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
4403 constraint for 0..15 for crypto instructions.
4404 (gpc_reg_operand): If VSX allow registers in VSX registers as well
4405 as GPR and floating point registers.
4406 (int_reg_operand): New predicate to match only GPR registers.
4407 (base_reg_operand): New predicate to match base registers.
4408 (quad_int_reg_operand): New predicate to match even GPR registers
4409 for quad memory operations.
4410 (vsx_reg_or_cint_operand): New predicate to allow vector logical
4411 operations in both GPR and VSX registers.
4412 (quad_memory_operand): New predicate for quad memory operations.
4413 (reg_or_indexed_operand): New predicate for direct move support.
4414
4415 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
4416 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
4417 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
4418 (POWERPC_MASKS): Add power8 options.
4419 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
4420 various options.
4421
4422 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
4423 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
4424
4425 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
4426 (-mpower8-fusion): New power8 options.
4427 (-mpower8-fusion-sign): Likewise.
4428 (-mpower8-vector): Likewise.
4429 (-mcrypto): Likewise.
4430 (-mdirect-move): Likewise.
4431 (-mquad-memory): Likewise.
4432
4433 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
4434 power8.
4435 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
4436 registers.
70cc1536 4437 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
f62511da
MM
4438 (rs6000_debug_vector_unit): Add p8_vector.
4439 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
4440 definitions. Also print fusion state.
4441 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
4442 (rs6000_builtin_mask_calculate): Add power8 builtin support.
4443 (rs6000_option_override_internal): Add support for power8.
4444 (rs6000_common_init_builtins): Add debugging for skipped builtins
4445 if -mdebug=builtin.
4446 (rs6000_adjust_cost): Add power8 support.
4447 (rs6000_issue_rate): Likewise.
4448 (insn_must_be_first_in_group): Likewise.
4449 (insn_must_be_last_in_group): Likewise.
4450 (force_new_group): Likewise.
4451 (rs6000_register_move_cost): Likewise.
4452 (rs6000_opt_masks): Likewise.
4453
4454 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
4455 power8 capable assembler, default to power7 options.
4456 (TARGET_DIRECT_MOVE): Likewise.
4457 (TARGET_CRYPTO): Likewise.
4458 (TARGET_P8_VECTOR): Likewise.
4459 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
4460 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
4461 (VECTOR_MEM_P8_VECTOR_P): Likewise.
4462 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
4463 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
4464 (TARGET_XSCVDPSPN): Likewise.
4465 (TARGET_XSCVSPDPN): Likewsie.
4466 (TARGET_SYNC_HI_QI): Likewise.
4467 (TARGET_SYNC_TI): Likewise.
4468 (MASK_CRYPTO): Likewise.
4469 (MASK_DIRECT_MOVE): Likewise.
4470 (MASK_P8_FUSION): Likewise.
4471 (MASK_P8_VECTOR): Likewise.
70cc1536
UB
4472 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
4473 temporary used by some of the direct move instructions to get two FP
4474 temporary registers does not force creation of a stack frame.
f62511da
MM
4475 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
4476 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
4477 that any VSX registers are tieable, even if they are also an
4478 Altivec vector mode.
4479 (r6000_reg_class_enum): Add wm, wr, wv constraints.
4480 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
4481 (RS6000_BTM_CRYPTO): Likewise.
4482 (RS6000_BTM_COMMON): Likewise.
4483
4484 * config/rs6000/rs6000.md (cpu attribute): Add power8.
4485 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
4486 (enum rs6000_vector): Add power8 vector support.
4487
73a1a707
RR
44882013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4489
4490 PR target/19599
4491 PR target/57340
4492 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
4493 (any_sibcall_could_use_r3): this and handle indirect calls.
4494 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
4495
d28073d4
BS
44962013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4497
4498 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
4499
bee0b10c
RB
45002013-05-22 Richard Biener <rguenther@suse.de>
4501
4502 PR middle-end/57349
4503 * profile.c (branch_prob): Do not split blocks that are
4504 abnormally receiving from ECF_RETURNS_TWICE functions.
4505
98409b51
RS
45062013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
4507
4508 * recog.c (offsettable_address_addr_space_p): Fix calculation of
4509 address mode. Move pointer mode initialization to the same place.
4510
c0602ab8
MZ
45112013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4512
4513 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
4514 while it has any effect.
4515
4f7a634e
ER
45162013-05-21 Easwaran Raman <eraman@google.com>
4517
4518 PR tree-optimization/57322
9daf6dbb
ER
4519 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
4520 UID of the statement added to the BB to be 1.
4f7a634e 4521
a4ce1258
JJ
45222013-05-21 Jakub Jelinek <jakub@redhat.com>
4523
4524 PR tree-optimization/57331
70cc1536
UB
4525 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
4526 of conversion from pointer type to integral type with integer.
a4ce1258 4527
1b14621a
MJ
45282013-05-21 Martin Jambor <mjambor@suse.cz>
4529
4530 PR lto/57289
4531 * ipa-prop.c (ipa_read_node_info): Process param_used and
4532 controlled_uses in the same order as when writing.
4533
e60661f0
MG
45342013-05-21 Magnus Granberg <baldrick@free.fr>
4535
4536 PR plugins/56754
ee49aa34 4537 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
e60661f0 4538
4a61be9a
RB
45392013-05-21 Richard Biener <rguenther@suse.de>
4540
4541 PR tree-optimization/57318
4542 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
4543 estimate stmts with side-effects as likely eliminated.
4544
c52da5f7
RB
45452013-05-21 Richard Biener <rguenther@suse.de>
4546
4547 PR tree-optimization/57330
4548 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
4549 preserve the call stmts fntype.
4550
7ec67e2a
RB
45512013-05-21 Richard Biener <rguenther@suse.de>
4552
4553 PR tree-optimization/57303
4554 * tree-ssa-sink.c (statement_sink_location): Improve killing
4555 stmt detection and properly handle self-assignments.
4556
b112d513
CB
45572013-05-21 Christian Bruel <christian.bruel@st.com>
4558
55805e54
YR
4559 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
4560 spanning registers. LEAF_REG_REMAP is supported only for contiguous
b112d513
CB
4561 registers. Set register size out of the PARALLEL loop.
4562
14c2ec26
OE
45632013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
4564
4565 PR target/56547
4566 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
4567 (*fmasf4, *fmasf4_media): New insns.
4568
da734fa1
RS
45692013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
4570
4571 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
4572 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
4573 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
4574 (mips_idiv_insns): Update the comments to say that the returned
4575 instruction counts are in units of BASE_INSN_LENGTH.
4576 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
4577 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
4578 using 2 rather than 4 as the length of indirect MIPS16 and
4579 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
4580 length of a NOP. Don't divide MIPS16 lengths by 2.
4581 (mips16_split_long_branches): Assume a branch is long if the
4582 length is greater than 4 rather than 8.
4583 * config/mips/mips.md (length): Give MIPS16 lengths directly,
4584 rather than multiplying them by 2. Multiply instruction counts
4585 by BASE_INSN_LENGTH rather than 4.
4586 (*jump_mips16, tls_get_tp_mips16_<mode>)
4587 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
4588
13719e8b
RS
45892013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
4590
4591 * config/mips/mips.md (extended_mips16): Remove branch case.
4592 (length): Remove duplicated extended_mips16 test.
4593
c3850d14
RS
45942013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
4595
4596 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
4597
8da2e059
RS
45982013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
4599
4600 * recog.h (Recog_data): Rename to...
4601 (recog_data_d): ...this.
4602 (recog_data): Update accordingly.
4603 * recog.c (recog_data): Likewise.
4604 * reload.c (save_recog_data): Likewise.
4605 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
4606 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
4607
2df013f3
JB
46082013-05-17 Julian Brown <julian@codesourcery.com>
4609
4610 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
4611 found in a REG_EQUAL note, invalidate it.
4612
371e77e3 46132013-05-17 Easwaran Raman <eraman@google.com>
933f507d
ER
4614
4615 * tree-ssa-reassoc.c (find_insert_point): New function.
4616 (insert_stmt_after): Likewise.
4617 (get_def_stmt): Likewise.
4618 (ensure_ops_are_available): Likewise.
4619 (not_dominated_by): Likewise.
4620 (rewrite_expr_tree): Do not move statements beyond what is
4621 necessary. Remove call to swap_ops_for_binary_stmt...
4622 (reassociate_bb): ... and move it here.
4623 (build_and_add_sum): Assign UIDs for new statements.
4624 (linearize_expr): Likewise.
4625 (do_reassoc): Renumber gimple statement UIDs.
4626
e01c7cca
JH
46272013-05-17 Jan Hubicka <jh@suse.cz>
4628
4629 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
4630 weakrefs.
4631 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
e2420687
UB
4632 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
4633 weakrefs.
e01c7cca
JH
4634 (output_weakrefs): Update.
4635
c3272a92
PCC
46362013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
4637 Martin Jambor <mjambor@suse.cz>
4638
4639 PR middle-end/57276
4640 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
4641 value that corresponds to the given aggval is found in values vector.
4642
11c2aa39
UB
46432013-05-17 Uros Bizjak <ubizjak@gmail.com>
4644
4645 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
4646 sse, sse2, sse3, ssse3 and sse4a flags to options.
4647
abecc8c6
DM
46482013-05-17 David Malcolm <dmalcolm@redhat.com>
4649
4650 * gengtype-state.c: (s_expr_writer): New class, to handle
4651 prettifying of output layout of s-expressions.
4652 (state_writer): New class, to write out gtype.state.
4653 (state_written_type_count): Move this variable into member data of
4654 state_writer.
4655 (s_expr_writer::s_expr_writer): New code: constructor for new class
4656 (state_writer::state_writer(): ditto
4657 (s_expr_writer::write_new_line): New function
4658 (s_expr_writer::write_any_indent): ditto
4659 (s_expr_writer::begin_s_expr): ditto
4660 (s_expr_writer::end_s_expr): ditto
4661 (write_state_fileloc): convert to method of state_writer...
4662 (state_writer:: write_state_fileloc): ...and use methods of
4663 s_expr_writer to write indentation into the gtype.state output file
4664 to visually represent the hierarchical structure of the list
4665 structures
4666 (write_state_fields): ditto, renaming to...
4667 (state_writer::write_state_fields)
4668 (write_state_a_string): ditto, renaming to...
4669 (state_writer::write_state_a_string)
4670 (write_state_string_option): ditto, renaming to...
4671 (state_writer::write_state_string_option)
4672 (write_state_type_option): ditto, renaming to...
4673 (state_writer::write_state_type_option)
4674 (write_state_nested_option): ditto, renaming to...
4675 (state_writer::write_state_nested_option)
4676 (write_state_option): ditto, renaming to...
4677 (state_writer::write_state_option)
4678 (write_state_options): ditto, renaming to...
4679 (state_writer::write_state_options)
4680 (write_state_lang_bitmap): ditto, renaming to...
4681 (state_writer::write_state_lang_bitmap)
4682 (write_state_version): ditto, renaming to...
4683 (state_writer::write_state_version)
4684 (write_state_scalar_type): ditto, renaming to...
4685 (state_writer::write_state_scalar_type)
4686 (write_state_string_type): ditto, renaming to...
4687 (state_writer::write_state_string_type)
4688 (write_state_undefined_type): ditto, renaming to...
4689 (state_writer::write_state_undefined_type)
4690 (write_state_struct_union_type): ditto, renaming to...
4691 (state_writer::write_state_struct_union_type)
4692 (write_state_struct_type): ditto, renaming to...
4693 (state_writer::write_state_struct_type)
4694 (write_state_user_struct_type): ditto, renaming to...
4695 (state_writer::write_state_user_struct_type)
4696 (write_state_lang_struct_type): ditto, renaming to...
4697 (state_writer::write_state_lang_struct_type)
4698 (write_state_param_struct_type): ditto, renaming to...
4699 (state_writer::write_state_param_struct_type)
4700 (write_state_pointer_type): ditto, renaming to...
4701 (state_writer::write_state_pointer_type)
4702 (write_state_array_type): ditto, renaming to...
4703 (state_writer::write_state_array_type)
4704 (write_state_gc_used): ditto, renaming to...
4705 (state_writer::write_state_gc_used)
4706 (write_state_common_type_content): ditto, renaming to...
4707 (state_writer::write_state_common_type_content)
4708 (write_state_type): ditto, renaming to...
4709 (state_writer::write_state_type)
4710 (write_state_pair_list): ditto, renaming to...
4711 (state_writer::write_state_pair_list)
4712 (write_state_pair): ditto, renaming to...
4713 (state_writer::write_state_pair)
4714 (write_state_typedefs): ditto, renaming to...
4715 (state_writer::write_state_typedefs)
4716 (write_state_structures): ditto, renaming to...
4717 (state_writer::write_state_structures)
4718 (write_state_param_structs): ditto, renaming to...
4719 (state_writer::write_state_param_structs)
4720 (write_state_variables): ditto, renaming to...
4721 (state_writer::write_state_variables)
4722 (write_state_srcdir): ditto, renaming to...
4723 (state_writer::write_state_srcdir)
4724 (write_state_files_list): ditto, renaming to...
4725 (state_writer::write_state_files_list)
4726 (write_state_languages): ditto, renaming to...
4727 (state_writer::write_state_languages)
4728 (write_state): create a state_writer instance and use it when
4729 writing out the state file
4730
d6545f29
MS
47312013-05-17 Mike Stump <mikestump@comcast.net>
4732
816a3f73 4733 PR rtl-optimization/57304
d6545f29
MS
4734 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
4735 accessing DF_REF_REAL_LOC.
4736
38c821cf
JJ
47372013-05-17 Jakub Jelinek <jakub@redhat.com>
4738
4739 PR rtl-optimization/57281
4740 PR rtl-optimization/57300
4741 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
4742 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
4743 what the other splitter did if the registers are dead.
4744
2a293391
RB
47452013-05-17 Richard Biener <rguenther@suse.de>
4746
4747 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
4748 MEM_REF offsets.
4749
17042d2b
JJ
47502013-05-17 Jakub Jelinek <jakub@redhat.com>
4751
4752 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
4753 linking.
4754
5b115c1f
MP
47552013-05-17 Marek Polacek <polacek@redhat.com>
4756
11c2aa39
UB
4757 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
4758 length when doing non-zero store of storing '\0' to '\0'.
5b115c1f 4759
52d84413
JJ
47602013-05-17 Jakub Jelinek <jakub@redhat.com>
4761
68119618
JJ
4762 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
4763 vect_external_def oprnd1 with loop_vinfo, try to emit
4764 optional cast, negation and and stmts on the loop preheader
4765 edge instead of into the pattern def seq.
4766
52d84413
JJ
4767 PR tree-optimization/57051
4768 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
4769 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
4770
17b962bd
NC
47712013-05-16 Nick Clifton <nickc@redhat.com>
4772
4773 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
4774 (rl78_is_naked_func): New function.
56aefbf7
UB
4775 (rl78_expand_prologue): Skip prologue generation for naked functions.
4776 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
17b962bd
NC
4777 * doc/extend.texi (naked): Add RL78 to the list of processors
4778 that supports this attribute.
4779
b1a0f84e
JL
47802013-05-16 Jeff Law <law@redhat.com>
4781
4782 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
4783
af0e415b
UB
47842013-05-16 Uros Bizjak <ubizjak@gmail.com>
4785
4786 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
4787 cache parameters using detect_caches_amd also for CYRIX,
4788 NSC and TM2 signatures.
4789
19db293a
UB
47902013-05-16 Uros Bizjak <ubizjak@gmail.com>
4791 Dzianis Kahanovich <mahatma@eu.by>
4792
4793 PR target/45359
4794 PR target/46396
4795 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4796 VIA/Centaur processors and determine their cache parameters
4797 using detect_caches_amd.
4798
251a41b9
TJ
47992013-05-16 Teresa Johnson <tejohnson@google.com>
4800
4801 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
4802 (rtl_verify_edges): New function.
4803 (rtl_verify_bb_insns): Ditto.
4804 (rtl_verify_bb_pointers): Ditto.
4805 (rtl_verify_bb_insn_chain): Ditto.
4806 (rtl_verify_fallthru): Ditto.
4807 (rtl_verify_bb_layout): Ditto.
4808 (rtl_verify_flow_info_1): Outline checks into new functions.
4809 (rtl_verify_flow_info): Ditto.
4810
f14540b6
SE
48112013-05-16 Steve Ellcey <sellcey@imgtec.com>
4812
4813 * cfghooks.c (copy_bbs): Add update_dominance argument.
4814 * cfghooks.h (copy_bbs): Update prototype.
4815 * tree-cfg.c (gimple_duplicate_sese_region):
4816 Add update_dominance argument.
4817 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
4818 * tree-ssa-loop-ch.c (copy_loop_headers): Update
4819 gimple_duplicate_sese_region call.
4820 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
4821 Update copy_bbs call.
4822 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
4823 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
4824
7e9a3abb
JJ
48252013-05-16 Jakub Jelinek <jakub@redhat.com>
4826
4827 * tree-vectorizer.h (NUM_PATTERNS): Increment.
4828 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
4829 vect_recog_rotate_pattern.
4830 (vect_recog_rotate_pattern): New function.
4831
427b248d
JM
48322013-05-16 Jason Merrill <jason@redhat.com>
4833
4834 * Makefile.in (LLINKER): New variable.
4835 (mostlyclean): Remove link mutex.
4836 * configure.ac: Handle --enable-link-mutex.
4837 * lock-and-run.sh: New script.
4838
b871e3d2
RR
48392013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4840
4841 PR target/19599
4842 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
4843 for NULL decl.
4844
ce858126
RO
48452013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4846
4847 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
4848
798d3d04
GY
48492013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
4850
4851 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
4852 * config/arm/arm.c (next_consecutive_mem): New function.
4853 (gen_movmem_ldrd_strd): Likewise.
4854 * config/arm/arm.md (movmemqi): Update condition and code.
4855 (unaligned_loaddi, unaligned_storedi): New patterns.
4856
0baddc45
RO
48572013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4858
4859 * config.gcc: Obsolete *-*-solaris2.9*.
4860 * doc/install.texi (Specific, *-*-solaris2*): Document it.
4861
aa9d5bcf
RB
48622013-05-16 Richard Biener <rguenther@suse.de>
4863
4864 * passes.c (init_optimization_passes): Move pass_parallelize_loops
4865 earlier, after GRAPHITE transforms and IV canonicalization.
4866
5a0f4dd3
JJ
48672013-05-16 Jakub Jelinek <jakub@redhat.com>
4868
4869 * omp-low.c (extract_omp_for_data): For collapsed loops,
4870 if at least one of the loops is known at compile time to
4871 iterate zero times, set count to 0.
4872 (expand_omp_regimplify_p): New function.
4873 (expand_omp_for_generic): For collapsed loops, if at least
4874 one of the loops isn't known to iterate at least once,
4875 add runtime check with setting count to 0.
4876 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
4877 For unsigned types if it isn't known at compile time that
4878 the loop will iterate at least once, add runtime check to bypass
4879 the whole loop if initial condition isn't true.
4880
e3753785
NS
48812013-05-16 Nathan Sidwell <nathan@codesourcery.com>
4882
4883 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
4884
43bb4dd1
MG
48852013-05-16 Marc Glisse <marc.glisse@inria.fr>
4886
4887 PR middle-end/57286
4888 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
4889 transformations to avoid an infinite loop.
4890
3571dde6
MP
48912013-05-16 Marek Polacek <polacek@redhat.com>
4892
4893 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
4894
b8b3f0ca
LE
48952013-05-15 Leif Ekblad <leif@rdos.net>
4896
4897 * config/i386/i386.c (ix86_decompose_address): Use
4898 DEFAULT_TLS_SEG_REG to access TLS segment register.
4899 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
4900 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
4901 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
4902
e299a383
RS
49032013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
4904
4905 PR target/57260
4906 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
4907 sibling calls to functions that would normally be lazily bound,
4908 unless $gp is call-clobbered.
4909
e7208ea3
UB
49102013-05-15 Uros Bizjak <ubizjak@gmail.com>
4911
19db293a 4912 * config/i386/i386.c (ix86_option_override_internal): Update
e7208ea3 4913 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5d280e2b
UB
4914 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
4915 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
e7208ea3
UB
4916 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
4917 of TARGET_3DNOW.
4918 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
4919
e7413f3d
AS
49202013-05-15 Andreas Schwab <schwab@suse.de>
4921
4922 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
4923 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
4924 third operand.
4925
ad4db775
TJ
49262013-05-15 Teresa Johnson <tejohnson@google.com>
4927
4928 * loop-unroll.c (report_unroll_peel): Check decision before
4929 emitting unroll/peel message.
4930
af205f67
TJ
49312013-05-15 Teresa Johnson <tejohnson@google.com>
4932
4933 * function.h (has_bb_partition): New rtl_data flag.
4934 (bb_reorder_complete): Ditto.
4935 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
4936 instead of flag_reorder_blocks_and_partition.
4937 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
4938 with some enhancements.
4939 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
4940 * bb-reorder.c (connect_traces): Check for has_bb_partition
4941 instead of flag_reorder_blocks_and_partition.
4942 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
4943 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
4944 verify_hot_cold_block_grouping.
4945 (partition_hot_cold_basic_blocks): Set has_bb_partition.
4946
9adcfa3c
RR
49472013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4948
4949 PR target/19599
4950 * config/arm/predicates.md (call_insn_operand): New predicate.
4951 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
4952 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
4953 if insn is not a tail call.
4954 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
4955 registers.
4956 * config/arm/arm.h (enum reg_class): New caller save register class.
4957 (REG_CLASS_NAMES): Likewise.
4958 (REG_CLASS_CONTENTS): Likewise.
4959 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
4960 without decls.
4961
ccb3ad87
RB
49622013-05-15 Richard Biener <rguenther@suse.de>
4963
4964 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
4965 of MSG_OPTIMIZED_LOCATIONS.
4966 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
4967 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
4968 message.
4969 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
4970 of MSG_OPTIMIZED_LOCATIONS.
4971 (execute_vect_slp): Likewise.
4972 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
4973 (vect_create_cond_for_alias_checks): Likewise.
4974 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
4975 (vect_recog_widen_mult_pattern): Likewise.
4976 (vect_recog_widen_sum_pattern): Likewise.
4977 (vect_recog_over_widening_pattern): Likewise.
4978 (vect_recog_widen_shift_pattern): Likewise.
4979 (vect_recog_vector_vector_shift_pattern): Likewise.
4980 (vect_recog_divmod_pattern): Likewise.
4981 (vect_recog_mixed_size_cond_pattern): Likewise.
4982 (vect_recog_bool_pattern): Likewise.
4983 (vect_pattern_recog_1): Likewise.
4984
48b1474e
MJ
49852013-05-15 Martin Jambor <mjambor@suse.cz>
4986
4987 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
4988 non-functions to builtin_unreachable.
4989 * ipa-inline-transform.c (inline_call): Do not assert estimates were
4990 correct when new direct edges were discovered.
4991
9de04252
MJ
49922013-05-15 Martin Jambor <mjambor@suse.cz>
4993
4994 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
4995 header, print symbol order instead of node uid, print more information
4996 about indirect edge targets.
4997 (ipa_make_edge_direct_to_target): Print symbol order instead of node
4998 uids.
4999 (ipa_make_edge_direct_to_target): Likewise.
5000 (remove_described_reference): Likewise.
5001 (propagate_controlled_uses): Likewise.
5002 (ipa_print_node_params): Also print symbol order.
5003 (ipcp_transform_function): Print symbol order instead of node uids.
5004 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
5005 (cgraph_get_create_real_symbol_node): Likewise.
5006 * ipa-cp.c (print_lattice): Likewise.
5007 (print_all_lattices): Likewise.
5008 (determine_versionability): Likewise.
5009 (initialize_node_lattices): Likewise.
5010 (estimate_local_effects): Likewise.
5011 (update_profiling_info): Likewise.
5012 (create_specialized_node): Likewise.
5013 (perhaps_add_new_callers): Likewise.
5014 (decide_about_value): Likewise.
5015 (decide_whether_version_node): Likewise.
5016 (identify_dead_nodes): Likewise.
5017 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
5018 (dump_inline_summary): Likewise.
5019 (estimate_node_size_and_time): Likewise.
5020 (inline_analyze_function): Likewise.
5021 * ipa-inline.c (report_inline_failed_reason): Likewise.
5022 (want_early_inline_function_p): Likewise.
5023 (edge_badness): Likewise.
5024 (update_edge_key): Likewise.
5025 (inline_small_functions): Likewise. Add dumping of order to two other
5026 dumps.
5027 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
5028 instead of node uids.
5029 (propagate_pure_const): Likewise.
5030 (propagate_pure_const): Likewise.
5031 * ipa-utils.c (dump_cgraph_node_set): Likewise.
5032 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
5033 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
5034 of node uids.
5035 * tree-pretty-print.c (dump_function_header): Likewise.
5036 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
5037 Print symbol order instead of node uids.
5038
1dd03b91
AK
50392013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5040
5041 * config/s390/s390.c (s390_register_move_cost): Don't impose the
5042 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
5043
fdf6a7b9
RB
50442013-05-15 Richard Biener <rguenther@suse.de>
5045
5046 PR tree-optimization/57275
5047 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
5048 return value for fail to do runtime alias checks for gather loads.
5049
2d6e4603
JH
50502013-05-15 Jan Hubicka <jh@suse.cz>
5051
5052 PR lto/57038
5053 PR lto/47375
e7208ea3
UB
5054 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
5055 weakrefs are not external.
5056 (lto_symtab_merge_decls): Fix thinko when dealing with
5057 non-lto_symtab decls.
2d6e4603
JH
5058 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
5059 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
5060 * varpool.c (dump_varpool_node): Dump more flags.
5061
83f44b39
GG
50622013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
5063
5064 * config/i386/i386.c (processor_alias_table): Add instruction
5065 FSGSBASE for AMD bdver3 architecture.
5066
2e55d062
JJ
50672013-05-14 Jakub Jelinek <jakub@redhat.com>
5068
5069 * tree.c (warn_deprecated_use): Print file:line using locus color.
5070 * diagnostic.c (diagnostic_report_current_module): Print file:line
5071 and file:line:column using locus color.
5072
0bfdb81e
MS
50732013-05-14 Mike Stump <mikestump@comcast.net>
5074
5075 * gdbinit.in: Add __null.
5076
a508ef22
MS
50772013-05-14 Mike Stump <mikestump@comcast.net>
5078
5079 * recog.h: Rename struct recog_data to Recog_data.
5080 * recog.c: Likewise.
5081 * reload.c (can_reload_into): Likewise.
5082 * config/picochip/picochip.c: Likewise.
5083
e7180acb
MS
50842013-05-14 Mike Stump <mikestump@comcast.net>
5085
5086 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
5087
61216c26
SB
50882013-05-14 Steven Bosscher <steven@gcc.gnu.org>
5089
fd6beed4
SB
5090 * resource.h (struct resources): Remove unch_memory member.
5091 (CLEAR_RESOURCE): Don't clear unch_memory.
5092 * resource.c (mark_referenced_resources): Don't set it.
5093 (mark_set_resources): Likewise.
5094 (mark_target_live_regs): Don't clear it.
5095 (init_resource_info): Likewise.
5096 * reorg.c (resource_conflicts_p): Don't compare it.
5097 (redundant_insn): Don't set it.
5098
61216c26
SB
5099 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
5100 Remove prototypes.
5101 * emit-rtl.c (next_label): Remove unused function.
5102 (skip_consecutive_labels, link_cc0_insns): Move to ...
5103 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
5104 only place where these functions are used, and make them static.
5105
418d1b87
MG
51062013-05-14 Marc Glisse <marc.glisse@inria.fr>
5107
5108 * fold-const.c (fold_negate_expr): Handle vectors.
5109 (fold_truth_not_expr): Make it static.
5110 (fold_invert_truthvalue): New static function.
5111 (invert_truthvalue_loc): Handle vectors. Do not call
5112 fold_truth_not_expr directly.
5113 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
5114 <TRUTH_NOT_EXPR>: Do not cast to boolean.
5115 (fold_comparison): Handle vector constants.
5116 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
5117 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
5118 * tree.h (fold_truth_not_expr): Remove declaration.
5119
fc21784d
JG
51202013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
5121
5122 * config/aarch64/aarch64-simd.md
5123 (aarch64_vcond_internal<mode>): Rename to...
5124 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
5125 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
5126 float modes. Clarify all iterator modes.
5127 (vcond<mode><mode>): Use new name for vcond expanders.
5128 (vcond<v_cmp_result><mode>): Likewise.
5129 (vcondu<mode><mode>: Likewise.
5130 * config/aarch64/iterators.md (VDQF_COND): New.
5131
d4c52634
MG
51322013-05-14 Marc Glisse <marc.glisse@inria.fr>
5133
5134 PR bootstrap/57266
5135 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
5136 variable for the shift amount. Check that we shift by non-negative
5137 amounts.
5138
2b261262
CLT
51392013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
5140
5141 PR target/42017
5142 * config/arm/arm.h (EPILOGUE_USES): Only return true
5143 for LR_REGNUM after epilogue_completed.
5144
6e022d7b
JR
51452013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
5146
5147 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
e7208ea3 5148 is error_mark_node.
6e022d7b 5149
56cf7859
RO
51502013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5151
5152 PR target/57261
5153 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
5154 and Solaris 11+/x86 with gld.
5155 * configure: Regenerate.
5156
75776c6d
JJ
51572013-05-14 Jakub Jelinek <jakub@redhat.com>
5158
5159 * expmed.c (expand_shift_1): Canonicalize rotates by
5160 constant bitsize / 2 to bitsize - 1.
7f998021 5161 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
75776c6d
JJ
5162 case ROTATERT>: Likewise.
5163
5164 Revert:
5165 2013-05-10 Jakub Jelinek <jakub@redhat.com>
5166
5167 * config/i386/i386.md (rotateinv): New code attr.
5168 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
5169 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
5170 roll $31, %eax, etc.
5171
df35498a
RB
51722013-05-14 Richard Biener <rguenther@suse.de>
5173
5174 PR middle-end/57235
5175 * tree-eh.c (sink_clobbers): Give up for successors with
5176 multiple predecessors and no virtual uses.
5177
cc6e7ece
EB
51782013-05-14 Eric Botcazou <ebotcazou@adacore.com>
5179
5180 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
5181 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
5182
f778dd4d
JJ
51832013-05-14 Jakub Jelinek <jakub@redhat.com>
5184
5185 PR middle-end/57251
5186 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
5187 the case when both op0 and op1 have VOIDmode.
5188
bad4df9b
KP
51892013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
5190
5191 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
5192 in multiply-accumulate mode.
5193
56f3e9ac
GW
51942013-05-13 Guozhi Wei <carrot@google.com>
5195
5196 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
5197
a3d7ab92
KT
51982013-05-13 Kai Tietz <ktietz@redhat.com>
5199
5200 PR target/56975
5201 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
e7208ea3 5202 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
a3d7ab92 5203 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
e7208ea3 5204 * config/i386/i386.c (ix86_option_override_internal): Likewise.
a3d7ab92
KT
5205 (ix86_expand_prologue): Likewise.
5206 (ix86_expand_split_stack_prologue): Likewise.
5207 (legitimate_pic_address_disp_p): Likewise.
5208 (legitimize_pic_address): Likewise.
5209 (legitimize_tls_address): Likewise.
5210 (legitimize_pe_coff_symbol): Likewise.
5211 (output_pic_addr_const): Likewise.
5212 (construct_plt_address): Likewise.
5213 (ix86_expand_call): Likewise.
5214 (x86_output_mi_thunk): Likewise.
5215 (x86_function_profiler): Likewise.
5216
c59b7e28
SN
52172013-05-13 Sofiane Naci <sofiane.naci@arm.com>
5218
5219 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
5220 similar switch cases.
5221 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
5222 (aarch64_simd_mov_to_<mode>low): Delete.
5223 (aarch64_simd_mov_to_<mode>high): Delete.
5224 (move_lo_quad_<mode>): Add w<-r alternative.
5225 (aarch64_simd_move_hi_quad_<mode>): Likewise.
5226 (aarch64_simd_mov_from_*): Update type attribute.
5227 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
5228 statement.
5229
5f28524a
JH
52302013-05-13 Jan Hubicka <jh@suse.cz>
5231
5232 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
5233 * config/i386/i386.c (ix86_compute_frame_layout,
e7208ea3
UB
5234 ix86_expand_epilogue, emit_i387_cw_initialization,
5235 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
5236 ix86_local_alignment): Fix use of size/speed predicates.
5f28524a 5237
ae6fa899
JJ
52382013-05-13 Jakub Jelinek <jakub@redhat.com>
5239
5240 PR tree-optimization/45216
5241 PR tree-optimization/57157
5242 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
5243 the (-Y) & (B - 1) variant if OP is |.
5244 * expmed.c (expand_shift_1): For rotations by const0_rtx just
5245 return shifted. Use (-op1) & (prec - 1) as other_amount
5246 instead of prec - op1.
5247
4502fe8d
MJ
52482013-05-13 Martin Jambor <mjambor@suse.cz>
5249
5250 PR middle-end/42371
5251 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
5252 (ipa_constant_data): New type.
5253 (ipa_jump_func): Use ipa_constant_data to hold information about
5254 constant jump functions.
5255 (ipa_get_jf_constant): Adjust to jump function type changes.
5256 (ipa_get_jf_constant_rdesc): New function.
5257 (ipa_param_descriptor): New field controlled_uses.
5258 (ipa_get_controlled_uses): New function.
5259 (ipa_set_controlled_uses): Likewise.
5260 * ipa-ref.h (ipa_find_reference): Declare.
5261 * ipa-prop.c (ipa_cst_ref_desc): New type.
5262 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
5263 changes.
5264 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
5265 New parameter cs. Adjust all callers.
5266 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
5267 (remove_described_reference): New function.
5268 (jfunc_rdesc_usable): Likewise.
5269 (try_make_edge_direct_simple_call): Decrement controlled use count,
5270 attempt to remove reference if it hits zero.
5271 (combine_controlled_uses_counters): New function.
5272 (propagate_controlled_uses): Likewise.
5273 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
5274 (ipa_edge_duplication_hook): Duplicate reference descriptions.
5275 (ipa_print_node_params): Print described use counter.
5276 (ipa_write_jump_function): Adjust to jump function type changes.
5277 (ipa_read_jump_function): New parameter CS, pass it to
5278 ipa_set_jf_constant. Adjust caller.
5279 (ipa_write_node_info): Stream controlled use count
5280 (ipa_read_node_info): Likewise.
5281 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
5282 asserting.
5283 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
5284 count. Remove cloning-added reference if it reaches zero.
5285 * ipa-ref.c (ipa_find_reference): New function.
5286
0864bfc2
GG
52872013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
5288
e7208ea3 5289 * config/i386/i386.c (processor_target_table): Modified default
0864bfc2
GG
5290 alignment values for AMD BD and BT architectures.
5291
640bfeb2
MG
52922013-05-13 Marc Glisse <marc.glisse@inria.fr>
5293
5294 * tree-vect-generic.c (uniform_vector_p): Move ...
5295 * tree.c (uniform_vector_p): ... here.
5296 * tree.h (uniform_vector_p): Declare it.
5297 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
5298 into a scalar.
5299
3a60f32b
JJ
53002013-05-13 Jakub Jelinek <jakub@redhat.com>
5301
198fe1bf
JJ
5302 PR tree-optimization/57230
5303 * tree-ssa-strlen.c (handle_char_store): Record length for
5304 array store from STRING_CST.
5305
3a60f32b
JJ
5306 PR tree-optimization/57230
5307 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
5308 check.
5309
566be57c
JR
53102013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
5311
5312 * config/epiphany/epiphany.c (epiphany_init): Check size of
5313 NUM_MODES_FOR_MODE_SWITCHING.
5314 (epiphany_expand_prologue):
5315 Remove CONFIG_REGNUM initial value handling code.
5316 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
5317 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2710a27a 5318 (emit_set_fp_mode, epiphany_mode_after): Likewise.
566be57c
JR
5319 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
5320 Don't return 1 for FP_MODE_NONE.
5321 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
5322 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
5323 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
5324 * config/epiphany/epiphany.md (save_config): New pattern.
5325
0f2c2331
UB
53262013-05-12 Uros Bizjak <ubizjak@gmail.com>
5327
5328 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
5329
5b3f93c7
UB
53302013-05-10 Uros Bizjak <ubizjak@gmail.com>
5331
5332 * config/i386/i386.md (memory): Handle sseishft1.
5333 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
5334 (*vec_extractv2di_1): Ditto.
5335
1f873f0e
VM
53362013-05-10 Vladimir Makarov <vmakarov@redhat.com>
5337
5338 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
5339 saved registers.
5340
341427fa 53412013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
d7de6455
SH
5342
5343 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
5344 Add mthumb/march=armv7-a multilib.
5345 Add mthumb/march=armv7-r multilib.
5346 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
5347
9e69bdde
RC
53482013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
5349
5350 * config/v850/t-rtems: Add more multilibs.
5351
9ff09a22
RB
53522013-05-10 Richard Biener <rguenther@suse.de>
5353
5354 PR tree-optimization/57214
5355 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
5356 not propagate from SSA names that occur in abnormal PHI nodes.
5357
a5e0cd1d
MG
53582013-05-10 Marc Glisse <marc.glisse@inria.fr>
5359
5360 * stor-layout.c (element_precision): New function.
5361 * machmode.h (element_precision): Declare it.
5362 * tree.c (build_minus_one_cst): New function.
5363 (element_precision): Likewise.
5364 * tree.h (build_minus_one_cst): Declare new function.
5365 (element_precision): Likewise.
5366 * fold-const.c (operand_equal_p): Use element_precision.
5367 (fold_binary_loc): Handle vector types.
5368 * convert.c (convert_to_integer): Use element_precision.
5369 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
5370 separately.
5371
cb2558bc
RS
53722013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
5373
5374 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
5375 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
5376 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
5377 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
5378 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
5379 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
5380 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
5381 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
5382 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
5383 (Uuw8): New constraints.
5384 (Usb4): Move into alphabetical order.
5385 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
5386 (sd8_operand, ub8_operand, uw8_operand): New predicates.
5387 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
5388 previously unnamed patterns.
5389 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
5390 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
5391 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
5392 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
5393 of set_attr_alternative/if_then_else. Use extended_mips16 instead
5394 of specific lengths.
5395
cb3b8d33
JJ
53962013-05-10 Jakub Jelinek <jakub@redhat.com>
5397
6f93c008
JJ
5398 * config/i386/i386.md (rotateinv): New code attr.
5399 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
5400 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
5401 roll $31, %eax, etc.
5402
cb3b8d33
JJ
5403 PR tree-optimization/45216
5404 PR tree-optimization/57157
5405 * tree-ssa-forwprop.c (simplify_rotate): New function.
5406 (ssa_forward_propagate_and_combine): Call it.
5407
afb119be
RB
54082013-05-10 Richard Biener <rguenther@suse.de>
5409
5410 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
5411 disable peeling when we version for aliasing.
5412 (vector_alignment_reachable_p): Honor explicit user alignment.
5413 (vect_supportable_dr_alignment): Likewise.
5414 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
5415 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
5416 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
5417 then peeling to arrange for the cost-model check to come first.
5418
01ae4861
AM
54192013-05-10 Alan Modra <amodra@gmail.com>
5420
5421 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
5422 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
5423 * configure: Regenerate.
5424
ebc9a431
AM
54252013-05-10 Alan Modra <amodra@gmail.com>
5426
5427 PR target/55033
5428 * varasm.c (default_elf_select_section): Move !DECL_P check..
5429 (get_named_section): ..to here before calling get_section_name.
5430 Adjust assertion.
5431 (default_section_type_flags): Add DECL_P check.
5432 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
5433 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
5434
d4bca93c
JR
54352013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
5436
5437 * config/epiphany/epiphany.c (epiphany_expand_prologue):
5438 When using gen_stack_adjust_str with a register offset, add a
5439 REG_FRAME_RELATED_EXPR note.
5440
60ca9a65
UB
54412013-05-09 Uros Bizjak <ubizjak@gmail.com>
5442
5443 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
5444 (*vec_extractv4si_zext_mem): Ditto.
5445 (*vec_extractv2di): Add 0->x and x->x alternatives.
5446 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
5447 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
5448
a3409c02
JM
54492013-05-09 Jason Merrill <jason@redhat.com>
5450
0138d6b2
JM
5451 N3639 C++1y VLA support
5452 * gimplify.c (gimplify_vla_decl): Don't touch an existing
5453 DECL_VALUE_EXPR.
5454
a3409c02
JM
5455 * tree.c (build_constructor_va): New.
5456 * tree.h: Declare it.
5457
66e6b990
MJ
54582013-05-09 Martin Jambor <mjambor@suse.cz>
5459
5460 PR lto/57084
5461 * gimple-fold.c (canonicalize_constructor_val): Call
5462 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
5463
64cfa6c0
JH
54642013-05-09 Jan Hubicka <jh@suse.cz>
5465 Richard Biener <rguenther@suse.de>
5466
5467 PR lto/54095
5468 * symtab.c (symtab_make_decl_local): Do not add private names.
5469
c3167b00
JH
54702013-05-09 Jan Hubicka <jh@suse.cz>
5471
5472 PR lto/54095
5473 * symtab.c (insert_to_assembler_name_hash): Handle clones.
5474 (unlink_from_assembler_name_hash): Likewise.
5475 (symtab_prevail_in_asm_name_hash, symtab_register_node,
5476 symtab_unregister_node, symtab_initialize_asm_name_hash,
5477 change_decl_assembler_name): Update.
5478
12dc6974
SN
54792013-05-09 Sofiane Naci <sofiane.naci@arm.com>
5480
5481 * config/aarch64/aarch64.md: New movtf split.
5482 (*movtf_aarch64): Update.
5483 (aarch64_movdi_tilow): Handle TF modes and rename to
5484 aarch64_movdi_<mode>low.
5485 (aarch64_movdi_tihigh): Handle TF modes and rename to
5486 aarch64_movdi_<mode>high
5487 (aarch64_movtihigh_di): Handle TF modes and rename to
5488 aarch64_mov<mode>high_di
5489 (aarch64_movtilow_di): Handle TF modes and rename to
5490 aarch64_mov<mode>low_di
5491 (aarch64_movtilow_tilow): Remove spurious whitespace.
5492 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
5493 splits.
5494 (aarch64_print_operand): Update.
5495
227eb343
AM
54962013-05-09 Alan Modra <amodra@gmail.com>
5497
5498 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
5499 powerpc64le.
5500 * configure: Regenerate.
5501
0b013847
UB
55022013-05-08 Uros Bizjak <ubizjak@gmail.com>
5503
5504 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
5505 splitter preparation statements.
5506 * config/i386/sse.md (*vec_extract* splitters): Ditto.
5507 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
5508 adjust_address_nv.
5509
1dc3d6e9
BS
55102013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5511
5512 * gimple-ssa-strength-reduction.c (count_candidates): Change
5513 return value to int.
5514 (analyze_candidates_and_replace): Change type of length to int.
5515
e61e7d28
UB
55162013-05-08 Uros Bizjak <ubizjak@gmail.com>
5517
5518 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
5519 (*vec_extract<mode>): Use VI12_128 mode iterator.
5520 (*vec_extract<mode>_mem): Ditto.
5521 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
5522 attribute.
5523
4fbfcf44
DN
55242013-05-08 Diego Novillo <dnovillo@google.com>
5525
5526 PR bootstrap/54659
5527
5528 Revert:
4fbfcf44
DN
5529 2012-08-17 Diego Novillo <dnovillo@google.com>
5530
e61e7d28
UB
5531 PR bootstrap/54281
5532 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
5533 * config.in: Regenerate.
5534 * configure: Regenerate.
5535 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4fbfcf44 5536
702d8703
JH
55372013-05-08 Jan Hubicka <jh@suse.cz>
5538
5539 PR lto/54095
5540 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
5541 * cgraph.h (symtab_node_base): Add unique_name.
5542 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
5543 input_overwrite_node, input_varpool_node): Stream unique_name.
5544 * cgraphclones.c (cgraph_create_virtual_clone,
5545 cgraph_function_versioning): Set unique_name.
5546 * ipa.c (function_and_variable_visibility): Set unique_name.
5547
8b28cf47
BS
55482013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5549
5550 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
5551 (alloc_cand_and_find_basis): Restrict conditional candidate
5552 processing to CAND_MULTs.
5553
e86074fd
JH
55542013-05-08 Jan Hubicka <jh@suse.cz>
5555
5556 PR lto/54095
5557 lto-symtab.c (lto_symtab_symbol_p): New function.
5558 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
5559 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
5560 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
5561 Skip static symbols.
5562
44398cbe
PC
55632013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
5564
5565 PR tree-optimization/57200
5566 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
5567 Only call inform if the preceding warning_at returns true.
5568
f6bc1c4a
HS
55692013-05-07 Han Shen <shenhan@google.com>
5570
5571 * cfgexpand.c (record_or_union_type_has_array_p): New function.
5572 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
5573 * common.opt (fstack-protector-strong): New option.
5574 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
5575 * doc/invoke.texi (Optimization Options): Document
5576 "-fstack-protector-strong".
5577 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
5578
4ffecb1f
SB
55792013-05-06 Steven Bosscher <steven@gcc.gnu.org>
5580
5581 * config/mips/mips.c (mips_machine_reorg2): Return 0.
5582
5a107a0f
VM
55832013-05-07 Vladimir Makarov <vmakarov@redhat.com>
5584
5585 * ira.c (update_equiv_regs): Add insn having equiv memory even if
5586 it is not lhs of the insn.
5587 (setup_reg_equiv): Remove insn having equiv memory which it is not
5588 lhs of the insn.
5589 * lra-constraints.c (process_address): Try to improve generation
5590 code for address base + disp.
5591 (lra_constraints): Make correct the code for checking insn setting
5592 up backward equivalence. Remove insn only if it is in the init
5593 insn list.
5594 * lra-eliminations.c (update_reg_eliminate): Change return value.
5595 (lra_eliminate): Use the result.
5596
3f5783ea
UB
55972013-05-07 Uros Bizjak <ubizjak@gmail.com>
5598
5599 * config/i386/sse.md (ssescalarnummask): New mode attribute.
5600 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
5601 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
5602 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
5603 register target operands.
5604 (*vec_extractv8hi_sse2): New pattern.
5605 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
5606 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
5607 (*vec_extract<mode>_mem): New insn and split pattern.
5608
8a5800b8
CL
56092013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
5610
5611 * config/arm/arm.c (arm_asan_shadow_offset): New function.
5612 (TARGET_ASAN_SHADOW_OFFSET): Define.
5613 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
5614 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
5615
7bf55a70
BS
56162013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5617
5618 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
5619 (incr_vec_index): Return -1 if increment not found.
5620 (create_add_on_incoming_edge): Assert if increment not found.
5621 (record_increment): Limit number of increments recorded.
5622 (all_phi_incrs_profitable): Return false if an increment not found.
5623 (replace_profitable_candidates): Don't process increments that were
5624 not recorded.
5625 (analyze_candidates_and_replace): Limit size of incr_vec.
5626
3f8825c0
RB
56272013-05-07 Richard Biener <rguenther@suse.de>
5628
5629 * calls.c (special_function_p): setjmp-like functions are leaf.
5630 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
5631 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
5632
fd4842cd
SN
56332013-05-07 Sofiane Naci <sofiane.naci@arm.com>
5634
5635 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
5636 (aarch64_simd_mov<mode>): New expander.
5637 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
5638 (aarch64_simd_mov_to_<mode>high): Likewise.
5639 (aarch64_simd_mov_from_<mode>low): Likewise.
5640 (aarch64_simd_mov_from_<mode>high): Likewise.
5641 (aarch64_dup_lane<mode>): Update.
5642 (aarch64_dup_lanedi): New instruction pattern.
5643 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
5644 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
5645
a7a7d10e
BS
56462013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5647
5648 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
5649 (replace_mult_candidate): Remove unnecessary argument; remove
5650 unnecessary parameter from call to introduce_cast_before_cand.
5651 (replace_unconditional_candidate): Remove unnecessary parameter
5652 from call to replace_mult_candidate.
5653 (replace_conditional_candidate): Likewise.
5654 (insert_initializers): Use make_temp_ssa_name.
5655 (introduce_cast_before_cand): Remove unnecessary argument; use
5656 make_temp_ssa_name.
5657 (replace_one_candidate): Remove unnecessary argument; remove
5658 unnecessary parameter from calls to introduce_cast_before_cand.
5659 (replace_profitable_candidates): Remove unnecessary parameters
5660 from calls to replace_one_candidate.
5661
29105868
BS
56622013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5663
5664 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
5665 phi def as possibly hiding a basis for a CAND_ADD whose operands
5666 have been commuted in the analysis.
5667 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
5668
4095f9fa
N
56692013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5670
5671 * config/aarch64/aarch64.md
5672 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
5673 shift value between 0-4.
5674
39e843e8
RB
56752013-05-07 Richard Biener <rguenther@suse.de>
5676
5677 * double-int.h (rshift): New overload.
5678 * double-int.c (rshift): New function.
5679 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
5680 (create_reference_ops_from_ref): Remove.
5681 (vn_reference_insert): Use shared ops for constructing the
5682 reference and copy it.
5683
0a1a83cb
RB
56842013-05-07 Richard Biener <rguenther@suse.de>
5685
5686 PR middle-end/57190
5687 * tree-eh.c (sink_clobbers): Properly propagate
5688 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
5689
43303d6f
JJ
56902013-05-07 Jakub Jelinek <jakub@redhat.com>
5691
ba7e83f8
JJ
5692 PR tree-optimization/57149
5693 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
5694 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
5695 collect_phi_def_edges, execute_late_warn_uninitialized): Use
5696 uninit_undefined_value_p instead of ssa_undefined_value_p.
5697
43303d6f
JJ
5698 PR debug/57184
5699 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
5700 for modifier == EXPAND_INITIALIZER.
5701
14523c25
AB
57022013-05-07 Anton Blanchard <anton@samba.org>
5703
5704 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
5705 for powerpc64 little endian.
5706 * configure: Regenerate.
5707
cb7c8be9
GS
57082013-05-06 Graham Stott <grahams@btinternet.com>
5709
5710 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
5711 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
5712 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
5713 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
5714
57152013-05-06 Graham Stott <grahams@btinternet.com>
a8fd4225
GS
5716
5717 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
5718 codes which allow non-lvalues.
5719
9a0ee7b0
MG
57202013-05-06 Marc Glisse <marc.glisse@inria.fr>
5721
5722 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
5723 components are all 1s.
5724 (integer_minus_onep): New function.
5725 * tree.h (integer_minus_onep): Declare it.
5726 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
5727 integer_minus_onep instead of integer_all_onesp.
5728
f2c17ea9
OE
57292013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
5730
5731 PR target/52933
5732 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
5733 variations of these patterns.
5734
f75e6a51
UB
57352013-05-06 Uros Bizjak <ubizjak@gmail.com>
5736
5737 * config/i386/i386.md (isa): Add x64_sse4 member.
5738 (enabled): Handle x64_sse4.
5739 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
5740 instruction for 64bit SSE4_1 targets. Update insn attributes.
5741 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
5742 instruction for SSE4_1 targets. Update insn attributes.
5743 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
5744 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
5745 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
5746 const_1 selector.
5747 (*vec_extractv4si): Rename from *sse4_1_pextrd.
5748 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
5749 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
5750
a986d468
OE
57512013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
5752
5753 PR target/57108
5754 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
5755
382522cb
MK
57562013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
5757
5758 * final.c (do_assembler_dialects): Don't handle curly braces and
5759 vertical bar escaped by % as dialect delimiters.
5760 (output_asm_insn): Print curly braces and vertical bar if escaped
5761 by % and ASSEMBLER_DIALECT defined.
5762 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
5763 * doc/tm.texi: Regenerated.
5764
fb0d5c60
SB
57652013-05-06 Steven Bosscher <steven@gcc.gnu.org>
5766
fb0d5c60
SB
5767 * config/mips/mips.c: Include tree-pass.h.
5768 (mips_reorg): Split in pre- and post-dbr_schedule parts.
5769 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
5770 (pass_mips_machine_reorg2): New machine specific pass.
5771 (insert_pass_mips_machine_reorg2): New pass plugin definition.
5772 (mips_option_override): Register the new pass.
5773 * rtl.h (cleanup_barriers): Remove prototype.
5774 (dbr_schedule): Likewise.
5775 * jump.c (cleanup_barriers): Make static.
5776 * reorg.c (dbr_schedule): Likewise.
5777
aa06a978
RB
57782013-05-06 Richard Biener <rguenther@suse.de>
5779
5780 PR tree-optimization/57185
5781 * tree-parloops.c (add_field_for_reduction): Handle anonymous
5782 SSA names properly.
5783
0b953bec
UB
57842013-05-06 Uros Bizjak <ubizjak@gmail.com>
5785
5786 PR target/57106
5787 * config/i386/i386.c (add_parameter_dependencies): Add dependence
5788 between "first_arg" and "insn", not "last" and "insn".
5789
28708525
WS
57902013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5791
5792 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
5793 (find_candidates_in_block): Re-enable slsr_process_phi.
5794 (create_phi_basis): Fix double counting of candidate adjustment.
5795
0107dca2
RB
57962013-05-06 Richard Biener <rguenther@suse.de>
5797
5798 PR middle-end/57147
5799 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
5800 the edge is also fallthru, preserve it and just clear the
5801 abnormal flag.
5802 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
5803 also complex, preserve that and just clear the fallthru flag.
5804 * tree-inline.c (update_ssa_across_abnormal_edges): Also
5805 update virtual operands.
5806
470d4d13
AM
58072013-05-06 Alan Modra <amodra@gmail.com>
5808
5809 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
5810 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
5811 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
5812 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
5813 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
5814 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
5815
8f1dbf8d
AM
58162013-05-06 Alan Modra <amodra@gmail.com>
5817
5818 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
5819 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
5820 (DEFAULT_ASM_ENDIAN): Define.
5821 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
5822 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
5823 Update -K PIC clause from sysv4.h.
5824 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
5825 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
5826
54890767
AM
58272013-05-06 Alan Modra <amodra@gmail.com>
5828
5829 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
5830 twice for little-endian.
5831 (ashrdi3_no_power, ashrdi3): Support little-endian.
5832
2353515d
OE
58332013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
5834
5835 PR target/55303
5836 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
5837 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
5838 related expanders.
5839 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
5840 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
5841 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
5842 New predicates.
5843
33e67557
SB
58442013-05-05 Steven Bosscher <steven@gcc.gnu.org>
5845 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5846
5847 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
5848 * config/pa/pa.opt: Make mbig-switch a no-op.
5849 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
5850 (CASE_VECTOR_MODE): Always return SImode.
5851 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
5852 for the !TARGET_BIG_SWITCH case.
5853 * config/pa/pa-linux.h: Likewise.
5854 * config/pa/pa-openbsd.h: Likewise.
5855 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
5856 * config/pa/pa.md (short_jump): Remove define_insn.
5857 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
5858 (casesi0): Remove define_insn.
5859 (type): Remove btable_branch.
5860 (pa_combine_type): Likewise.
5861 (in_nullified_branch_delay): Likewise.
5862 (in_call_delay): Likewise.
5863 (define_delay): Likewise.
5864 (define_insn_reservation "Z3"): Likewise.
5865 (define_insn_reservation "Z4"): Likewise.
5866 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
5867 (pa_adjust_insn_length): Remove adjustment for btable branches.
5868 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
5869 and mno-big-switch
5870
3095685e
UB
58712013-05-05 Uros Bizjak <ubizjak@gmail.com>
5872
5873 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
5874 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
5875 Add m->r,x alternatives.
5876 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
5877 splitters using SWI48x mode iterator.
5878 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
5879 TARGET_64BIT. Add m->x alternative.
5880 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
5881 Add o->x alternative. Enable for TARGET_SSE.
5882 (sse_storeq): Remove expander.
5883 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
5884 with memory input operand.
5885 (*vec_extractv2di_1 splitter): New.
5886 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
5887 * config/i386/i386.md (ssevecmodelower): New mode attribute.
5888
4b36ae28
SB
58892013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
5890
5891 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
5892 (INT_LOWPART): Delete.
5893 (extract_MB): Adjust.
5894 (extract_ME): Adjust.
5895 (print_operand): Adjust.
5896
da226db2
SB
58972013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
5898
5899 * config/rs6000/predicates.md (reg_or_add_cint_operand,
5900 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
5901 (reg_or_logical_cint_operand, easy_fp_constant,
5902 logical_const_operand): Delete "CONST_DOUBLE" case.
5903 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
5904 "HOST_BITS_PER_WIDE_INT == 64" test.
3095685e 5905 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
da226db2
SB
5906 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
5907 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
5908 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
5909 test.
5910 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
5911 CONST_DOUBLE DImode/VOIDmode case.
5912 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
5913 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
5914 CONST_DOUBLE VOIDmode case.
5915 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
5916 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
5917 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
5918 Delete CONST_DOUBLE case.
5919 (splitters for mov FMOVE64 const_double): Delete
5920 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
5921 "HOST_BITS_PER_WIDE_INT >= 64" test.
5922 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
5923 case.
5924 (mov DI const_double): Delete.
5925
40de22d6
JJ
59262013-05-04 Jakub Jelinek <jakub@redhat.com>
5927
5928 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
5929 on op shows all bits zero in mode of a lowpart subreg, return zero.
5930
5ec6aff2
MM
59312013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5932
5933 PR target/57150
5934 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
5935 to save TFmode registers and DImode to save TImode registers for
5936 caller save operations.
5937 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
5938 mark being partially clobbered since they only use the first
5939 double word.
5940
5941 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
5942 and TDmode only use the upper 64-bits of each VSX register.
5943
2cefad90
BS
59442013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5945
5946 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
5947 (find_candidates_in_block): Disable slsr_process_phi.
5948
d6d7eee1
GW
59492013-05-03 Guozhi Wei <carrot@google.com>
5950
5951 * coverage.c (coverage_obj_init): Move the construction of gcov
3095685e
UB
5952 constructor to ...
5953 (build_init_ctor): ... here.
d6d7eee1 5954
9b92d12b
BS
59552013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5956
5957 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
5958 (slsr_cand_d): Redefine def_phi.
5959 (stride_status, phi_adjust_status, count_phis_status): New enums.
5960 (find_phi_def): New.
5961 (find_basis_for_base_expr): New.
5962 (find_basis_for_candidate): Handle hidden bases.
5963 (alloc_cand_and_find_basis): Handle phi candidates.
5964 (slsr_process_phi): New.
5965 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
5966 (create_mul_imm_cand): Likewise.
5967 (create_add_ssa_cand): Exclude phi base candidates.
5968 (create_add_imm_cand): Likewise.
5969 (slsr_process_cast): Likewise.
5970 (slsr_process_copy): Likewise.
5971 (find_candidates_in_block): Handle phi candidates.
5972 (dump_candidate): Likewise.
5973 (unconditional_cands): Delete.
5974 (unconditional_cands_with_known_stride_p): Delete.
5975 (phi_dependent_cand_p): New.
5976 (cand_increment): Handle phi-dependent candidates.
5977 (replace_dependent): Delete.
5978 (replace_mult_candidate): New.
5979 (replace_unconditional_candidate): New.
5980 (incr_vec_index): Move to avoid forward reference.
5981 (create_add_on_incoming_edge): New.
5982 (create_phi_basis): New.
5983 (replace_dependents): Delete.
5984 (replace_conditional_candidate): New.
5985 (phi_add_costs): New.
5986 (replace_uncond_cands_and_profitable_phis): New.
5987 (record_increment): Handle phi adjustments.
5988 (record_phi_increments): New.
5989 (record_increments): Handle phi adjustments.
5990 (phi_incr_cost): New.
5991 (lowest_cost_path): Handle phis.
5992 (total_savings): Likewise.
5993 (analyze_increments): Likewise.
5994 (ncd_with_phi): New.
5995 (ncd_of_cand_and_phis): New.
5996 (nearest_common_dominator_for_cands): Handle phi increments.
5997 (all_phi_incrs_profitable): New.
5998 (replace_profitable_candidates): Handle phi-dependent candidates.
5999 (analyze_candidates_and_replace): Likewise.
6000
68f073d4
TJ
60012013-05-03 Teresa Johnson <tejohnson@google.com>
6002
6003 PR bootstrap/57154
6004 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
6005 do not exceed REG_BR_PROB_BASE.
6006
a4ee7cb9
JL
60072013-05-03 Jeff Law <law@redhat.com>
6008
ade67f70 6009 PR tree-optimization/57144
a4ee7cb9
JL
6010 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
6011 operand of the condition will bit into the new type when eliminating
6012 a cast feeding a condition.
6013
47954c4e
JJ
60142013-05-03 Jakub Jelinek <jakub@redhat.com>
6015
6016 PR rtl-optimization/57130
3095685e
UB
6017 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
6018 of COMPARE as in_code to the recursive call if needed.
47954c4e 6019
3c21604f
UB
60202013-05-03 Uros Bizjak <ubizjak@gmail.com>
6021
6022 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
6023 (enabled): Handle new members.
6024 * config/i386/sse.md (*vec_concatv2si): Merge from
6025 *vec_concatv2si_sse2 and vec_concatv2si_sse.
6026 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
6027
95c03b36
JR
60282013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
6029
6030 PR tree-optimization/57027
6031 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
6032 for fnms opportunity, check we got the prerequisite kind
6033 of tree / gimple before using accessor functions.
6034
07bfc9ec
RB
60352013-05-03 Richard Biener <rguenther@suse.de>
6036
6037 * double-int.h (lshift): New overload without precision
6038 and arith argument.
6039 (operator *=, operator +=, operator -=): Move ...
6040 * double-int.c (operator *=, operator +=, operator -=): ... here
6041 and implement more efficiently.
6042 (mul_double_with_sign): Remove.
6043 (lshift_double): Adjust to take unsinged shift argument, push
6044 dispatching code to callers.
6045 (mul_double_wide_with_sign): Add early out for callers that
6046 are not interested in high parts or overflow.
6047 (lshift): New function.
6048 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
6049 dispatch code here.
6050 (lrotate, rrotate): Use logical shifts.
6051 * expr.c (get_inner_reference): Use lshift.
6052 * fixed-value.c (do_fixed_divide): Likewise.
6053 * tree-dfa.c (get_ref_base_and_extent): Likewise.
6054 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
6055 (indirect_refs_may_alias_p): Likewise.
6056 (stmt_kills_ref_p_1): Likewise.
6057
7769bb64
VP
60582013-05-03 Vidya Praveen <vidyapraveen@arm.com>
6059
6060 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
6061
1d0c8e5c
VP
60622013-05-03 Vidya Praveen <vidyapraveen@arm.com>
6063
6064 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
6065 scalar form of FABD instruction.
6066
f15feaf9
VM
60672013-05-02 Vladimir Makarov <vmakarov@redhat.com>
6068
6069 * lra-constraints.c (process_alt_operands): Add checking alt
6070 number to choose the best alternative.
6071
d90e76d4
RB
60722013-05-02 Richard Biener <rguenther@suse.de>
6073
6074 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
6075 bitmap and its handling.
6076 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
6077
9f8e7a96
RB
60782013-05-02 Richard Biener <rguenther@suse.de>
6079
6080 PR middle-end/57140
6081 * tree-inline.c (copy_loops): Properly handle removed loops.
6082 (copy_cfg_body): Mark destination loops for fixup if source
6083 loops needed fixup.
6084
f3a81b39
GY
60852013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
6086
6087 PR target/56732
6088 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
6089 generating simple_return for naked functions.
6090
7b920a9a
MJ
60912013-05-02 Martin Jambor <mjambor@suse.cz>
6092
6093 PR middle-end/56988
6094 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
6095 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
6096 flags match.
6097 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
6098 ipa_agg_replacement_value structures.
6099 (known_aggs_to_agg_replacement_list): Likewise.
6100 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
6101 (read_agg_replacement_chain): Likewise.
6102 (ipcp_transform_function): Also check that by_ref flags match.
6103
2c41c19d
RB
61042013-05-02 Richard Biener <rguenther@suse.de>
6105
6106 * graphds.h (struct graph): Add obstack member.
6107 * graphds.c (new_graph): Initialize obstack and allocate
6108 vertices from it.
6109 (add_edge): Allocate edge from the obstack.
3c21604f 6110 (free_graph): Free the obstack instead of all edges and vertices.
2c41c19d 6111
8b47039c
TJ
61122013-05-02 Teresa Johnson <tejohnson@google.com>
6113
6114 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
6115 divides.
6116 * cfg.c (update_bb_profile_for_threading): Ditto.
6117 * tree-inline.c (copy_bb): Ditto.
6118 (copy_edges_for_bb): Ditto.
6119 (initialize_cfun): Ditto.
6120 (copy_cfg_body): Ditto.
6121 (expand_call_inline): Ditto.
6122 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
6123 (estimate_node_size_and_time): Ditto.
6124 (inline_merge_summary): Ditto.
6125 * cgraphclones.c (cgraph_clone_edge): Ditto.
6126 (cgraph_clone_node): Ditto.
6127 * sched-rgn.c (compute_dom_prob_ps): Ditto.
6128 (compute_trg_info): Ditto.
6129
da65928c
IB
61302013-05-02 Ian Bolton <ian.bolton@arm.com>
6131
6132 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
6133 S reg when fp attribute set.
6134 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
6135
add3c965
IB
61362013-05-02 Ian Bolton <ian.bolton@arm.com>
6137
6138 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
6139 New pattern.
6140 (*and_one_cmplsi3_compare0_uxtw): Likewise.
6141 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
6142 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
6143
fdd43ac4
RB
61442013-05-02 Richard Biener <rguenther@suse.de>
6145
6146 * tree-scalar-evolution.c (scev_info_hasher): Remove.
6147 (struct instantiate_cache_entry): New type.
6148 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
6149 (struct instantiate_cache_type): New type.
6150 (set_instantiated_value, get_instantiated_value): Remove.
6151 (get_instantiated_value_entry): New function.
6152 (instantiate_scev_name): Use the new cache and adjust.
6153 (instantiate_scev_poly): Adjust.
6154 (instantiate_scev_binary): Likewise.
6155 (instantiate_array_ref): Likewise.
6156 (instantiate_scev_convert): Likewise.
6157 (instantiate_scev_not): Likewise.
6158 (instantiate_scev_3): Likewise.
6159 (instantiate_scev_2): Likewise.
6160 (instantiate_scev_r): Likewise.
6161 (instantiate_scev): Likewise.
6162 (resolve_mixers): Likewise.
6163
36ff9dfb
VM
61642013-05-01 Vladimir Makarov <vmakarov@redhat.com>
6165
6166 PR target/57091
6167 * lra-constraints.c (best_small_class_operands_num): Remove.
6168 (process_alt_operands): Remove small_class_operands_num. Take
6169 small classes operands into losers and only if the operand is not
6170 matched. Modify debugging output.
6171 (curr_insn_transform): Remove best_small_class_operands_num.
6172 Print insn name.
6173
36054fab
JG
61742013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6175
6176 * config/aarch64/aarch64-builtins.c
6177 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
6178 * config/aarch64/aarch64-simd-builtins.def
6179 (reduc_splus_): Add new modes.
6180 (reduc_uplus_): New.
6181 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
6182 (reduc_uplus_v4sf): Likewise.
6183 (reduc_splus_v4sf): Likewise.
6184 (aarch64_addv<mode>): Likewise.
6185 (reduc_uplus_<mode>): Likewise.
6186 (reduc_splus_<mode>): Likewise.
6187 (aarch64_addvv2di): Likewise.
6188 (reduc_uplus_v2di): Likewise.
6189 (reduc_splus_v2di): Likewise.
6190 (aarch64_addvv2si): Likewise.
6191 (reduc_uplus_v2si): Likewise.
6192 (reduc_splus_v2si): Likewise.
6193 (reduc_<sur>plus_<mode>): New.
6194 (reduc_<sur>plus_v2di): Likewise.
6195 (reduc_<sur>plus_v2si): Likewise.
6196 (reduc_<sur>plus_v4sf): Likewise.
6197 (aarch64_addpv4sf): Likewise.
6198 * config/aarch64/arm_neon.h
6199 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
6200 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
6201 add UNSPEC_SADDV, UNSPEC_UADDV.
6202 (SUADDV): New.
6203 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
6204
6dce23a8
JG
62052013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6206
6207 * config/aarch64/arm_neon.h
6208 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
6209
1598945b
JG
62102013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6211
6212 * config/aarch64/aarch64-builtins
6213 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
6214
998eaf97
JG
62152013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6216
6217 * config/aarch64/aarch64-simd-builtins.def
6218 (reduc_smax_): New.
6219 (reduc_smin_): Likewise.
6220 (reduc_umax_): Likewise.
6221 (reduc_umin_): Likewise.
6222 (reduc_smax_nan_): Likewise.
6223 (reduc_smin_nan_): Likewise.
6224 (fmax): Remove.
6225 (fmin): Likewise.
6226 (smax): Update for V2SF, V4SF and V2DF modes.
6227 (smin): Likewise.
6228 (smax_nan): New.
6229 (smin_nan): Likewise.
6230 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
6231 (<su><maxmin><mode>3): ...This, refactor.
6232 (s<maxmin><mode>3): New.
6233 (<maxmin_uns><mode>3): Likewise.
6234 (reduc_<maxmin_uns>_<mode>): Refactor.
6235 (reduc_<maxmin_uns>_v4sf): Likewise.
6236 (reduc_<maxmin_uns>_v2si): Likewise.
6237 (aarch64_<fmaxmin><mode>: Remove.
6238 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
6239 new builtin names.
6240 (vmin<q>_f<32,64>): Likewise.
6241 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
6242 (FMAXMIN): New.
6243 (su): Add mappings for smax, smin, umax, umin.
6244 (maxmin): New.
6245 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
6246 (FMAXMIN): Rename as...
6247 (FMAXMIN_UNS): ...This.
6248 (maxminv): Remove.
6249 (fmaxminv): Likewise.
6250 (fmaxmin): Likewise.
6251 (maxmin_uns): New.
6252 (maxmin_uns_op): Likewise.
6253
bd11644e
JG
62542013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6255
6256 * config/aarch64/arm_neon.h
6257 (vac<ge, gt><sd>_f<32, 64>): Rename to...
6258 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
6259 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
6260
75dd5ace
JG
62612013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6262
6263 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
6264 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
6265
7c19979f
JG
62662013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6267
6268 * config/aarch64/aarch64-simd.md
6269 (vcond<mode>_internal): Handle special cases for constant masks.
6270 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
6271 (vcondu<mode><mode>): Likewise.
6272 (vcond<v_cmp_result><mode>): New.
6273
bb60efd9
JG
62742013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6275
6276 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
6277 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
6278 * config/aarch64/aarch64-simd-builtins.def
6279 (cmeq): Update to BUILTIN_VALLDI.
6280 (cmgt): Likewise.
6281 (cmge): Likewise.
6282 (cmle): Likewise.
6283 (cmlt): Likewise.
6284 * config/aarch64/arm_neon.h
6285 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
6286 to builtins or C as appropriate.
6287
889b9412
JG
62882013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6289
6290 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
6291 (cmgeu): ...This.
6292 (cmhi): Rename to...
6293 (cmgtu): ...This.
6294 * config/aarch64/aarch64-simd.md
6295 (simd_mode): Add SF.
6296 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
6297 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
6298 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
6299 (cstore<mode>_neg): ...This.
6300 * config/aarch64/iterators.md
6301 (VALLF): new.
6302 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
6303 (COMPARISONS): New.
6304 (UCOMPARISONS): Likewise.
6305 (optab): Add missing comparisons.
6306 (n_optab): New.
6307 (cmp_1): Likewise.
6308 (cmp_2): Likewise.
6309 (CMP): Likewise.
6310 (cmp): Remove.
6311 (VCMP_S): Likewise.
6312 (VCMP_U): Likewise.
6313 (V_cmp_result): Add DF, SF modes.
6314 (v_cmp_result): Likewise.
6315 (v): Likewise.
6316 (vmtype): Likewise.
6317 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
6318
0a7dbb76
GY
63192013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
6320
6321 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
6322 define_insn to define_insn_and_split.
6323 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
6324 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
6325 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
6326 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
6327 (thumb2_negscc): Likewise.
6328
fb614ca6
GY
63292013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
6330
6331 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
6332
9e64a0bf
GY
63332013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
6334
6335 * config/arm/thumb2.md: Remove trailing whitespaces.
6336
d6b28156
RS
63372013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
6338
6339 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
6340 Use gen_int_mode rather than GEN_INT.
6341
f91674c3
L
63422013-04-30 H.J. Lu <hongjiu.lu@intel.com>
6343
b0dec607 6344 * value-prof.c (stream_in_histogram_value): Remove the strayed
f91674c3
L
6345 debug_gimple_stmt.
6346
3551257c
RB
63472013-04-30 Richard Biener <rguenther@suse.de>
6348
6349 PR middle-end/57122
3c21604f 6350 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3551257c 6351
4c1aff1c
RB
63522013-04-30 Richard Biener <rguenther@suse.de>
6353
6354 PR middle-end/57107
6355 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
6356
54b8379a
AB
63572013-04-30 Andrey Belevantsev <abel@ispras.ru>
6358
6359 PR rtl-optimization/56957
6360 PR rtl-optimization/57105
54b8379a
AB
6361 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
6362 variable. Use just INSN_UID for determining whether an insn
6363 should be only disconnected from the insn stream.
6364 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
6365
abc27962
JJ
63662013-04-30 Jakub Jelinek <jakub@redhat.com>
6367
6368 PR tree-optimization/57104
6369 * tsan.c (instrument_expr): Don't instrument accesses to
6370 DECL_HARD_REGISTER VAR_DECLs.
6371
0fc822d0
RB
63722013-04-30 Richard Biener <rguenther@suse.de>
6373
6374 * function.h (loops_for_fn): New inline function.
6375 (set_loops_for_fn): Likewise.
6376 * cfgloop.h (place_new_loop): Add struct function parameter.
6377 (get_loop): Likewise.
6378 (get_loops): Likewise.
6379 (number_of_loops): Likewise.
6380 (fel_next): Adjust.
6381 (fel_init): Likewise.
6382 * cfg.c (get_loop_copy): Adjust.
6383 * cfgloop.c (flow_loops_dump): Likewise.
6384 (record_loop_exits): Likewise.
6385 (verify_loop_structure): Likewise.
6386 * cfgloopanal.c (mark_irreducible_loops): Likewise.
6387 (estimate_reg_pressure_cost): Likewise.
6388 (mark_loop_exit_edges): Likewise.
6389 * cfgloopmanip.c (place_new_loop): Likewise.
6390 (add_loop): Likewise.
6391 (duplicate_loop): Likewise.
6392 * graph.c (draw_cfg_nodes): Likewise.
6393 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
6394 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
6395 (extract_affine_chrec): Likewise.
6396 (build_scop_iteration_domain): Likewise.
6397 * graphite.c (graphite_initialize): Likewise.
6398 * ira-build.c (create_loop_tree_nodes): Likewise.
6399 (more_one_region_p): Likewise.
6400 (rebuild_regno_allocno_maps): Likewise.
6401 (mark_loops_for_removal): Likewise.
6402 (mark_all_loops_for_removal): Likewise.
6403 (remove_unnecessary_regions): Likewise.
6404 (ira_build): Likewise.
6405 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
6406 * loop-init.c (fix_loop_structure): Likewise.
6407 (gate_rtl_move_loop_invariants): Likewise.
6408 (gate_rtl_unswitch): Likewise.
6409 (gate_rtl_unroll_and_peel_loops): Likewise.
6410 (rtl_doloop): Likewise.
6411 * lto-streamer-in.c (input_cfg): Likewise.
6412 * lto-streamer-out.c (output_cfg): Likewise.
6413 * modulo-sched.c (sms_schedule): Likewise.
6414 * predict.c (tree_estimate_probability): Likewise.
6415 (tree_estimate_probability_driver): Likewise.
6416 (estimate_loops): Likewise.
6417 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
6418 (move_sese_region_to_fn): Likewise.
6419 (debug_loop_num): Likewise.
6420 * tree-chrec.c (chrec_evaluate): Likewise.
6421 (hide_evolution_in_other_loops_than_loop): Likewise.
6422 (chrec_component_in_loop_num): Likewise.
6423 (reset_evolution_in_loop): Likewise.
6424 (evolution_function_is_invariant_rec_p): Likewise.
6425 * tree-if-conv.c (main_tree_if_conversion): Likewise.
6426 * tree-inline.c (copy_loops): Likewise.
6427 (copy_cfg_body): Likewise.
6428 (tree_function_versioning): Likewise.
6429 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
6430 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
6431 Likewise.
6432 (add_to_evolution_1): Likewise.
6433 (scev_const_prop): Likewise.
6434 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
6435 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
6436 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
6437 (tree_ssa_lim_initialize): Likewise.
6438 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
6439 (verify_loop_closed_ssa): Likewise.
6440 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
6441 (tree_ssa_loop_im): Likewise.
6442 (tree_ssa_loop_unswitch): Likewise.
6443 (tree_vectorize): Likewise.
6444 (check_data_deps): Likewise.
6445 (tree_ssa_loop_ivcanon): Likewise.
6446 (tree_ssa_loop_bounds): Likewise.
6447 (tree_complete_unroll): Likewise.
6448 (tree_complete_unroll_inner): Likewise.
6449 (tree_parallelize_loops): Likewise.
6450 (tree_ssa_loop_prefetch): Likewise.
6451 (tree_ssa_loop_ivopts): Likewise.
6452 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
6453 * tree-vectorizer.c (vectorize_loops): Likewise.
6454
37953bd3
MF
64552013-04-29 Mike Frysinger <vapier@gentoo.org>
6456
6457 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
6458 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
6459 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
6460 with EABI_LINK_SPEC.
6461
f9ed28db
UB
64622013-04-29 Uros Bizjak <ubizjak@gmail.com>
6463
6464 PR target/44578
6465 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
6466 alternative.
6467
deca73f5
VM
64682013-04-29 Vladimir Makarov <vmakarov@redhat.com>
6469
6470 PR target/57097
37953bd3 6471 * lra-constraints.c (process_alt_operands): Discourage a bit more
deca73f5
VM
6472 using memory for pseudos. Print cost dump for alternatives.
6473 Modify cost values for conflicts with early clobbers.
6474 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
6475
fdca7d03
UB
64762013-04-29 Uros Bizjak <ubizjak@gmail.com>
6477
6478 PR target/57098
6479 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
6480
0b064172
IB
64812013-04-29 Ian Bolton <ian.bolton@arm.com>
6482
6483 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
6484 from/to S register.
6485 (movdi_aarch64): Support LDR/STR from/to D register.
6486
473cec55
IB
64872013-04-29 Ian Bolton <ian.bolton@arm.com>
6488
6489 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
6490 or higher by default.
6491
a6f30e66
RB
64922013-04-29 Richard Biener <rguenther@suse.de>
6493
6494 PR middle-end/57075
6495 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
6496 even if not adding abnormal edges for calls that can make
6497 abnormal gotos.
6498
0c2b2040
RB
64992013-04-29 Richard Biener <rguenther@suse.de>
6500
6501 PR middle-end/57103
6502 * tree-cfg.c (move_stmt_op): Fix condition under which to update
6503 TREE_BLOCK.
6504 (move_stmt_r): Remove redundant checking.
6505
f41f80f9
TJ
65062013-04-29 Teresa Johnson <tejohnson@google.com>
6507
6508 PR bootstrap/57077
6509 * basic-block.h (apply_scale): New function.
6510 (apply_probability): Use apply_scale.
6511 * gimple-streamer-in.c (input_bb): Ditto.
6512 * lto-streamer-in.c (input_cfg): Ditto.
6513 * lto-cgraph.c (merge_profile_summaries): Ditto.
6514 * tree-optimize.c (execute_fixup_cfg): Ditto.
fdca7d03 6515 * tree-inline.c (copy_bb): Update comment to use apply_scale.
f41f80f9
TJ
6516 (copy_edges_for_bb): Ditto.
6517 (copy_cfg_body): Ditto.
6518
315bbd2e
TV
65192013-04-29 Tom de Vries <tom@codesourcery.com>
6520
6521 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
6522 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
6523 (tail_merge_optimize): Handle current_loops == NULL.
6524
ebbd90d8
JL
65252013-04-26 Jeff Law <law@redhat.com>
6526
6527 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
6528 (simplify_cond_using_ranges): Generalize code to simplify
6529 COND_EXPRs where one argument is a constant and the other
6530 is an SSA_NAME created by an integral type conversion.
6531
8b9b57eb
KT
65322013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6533
6534 * config/arm/arm.md (store_minmaxsi): Use only when
6535 optimize_insn_for_size_p.
6536
9498e5dc
CB
65372013-04-29 Christian Bruel <christian.bruel@st.com>
6538
6539 PR target/57108
6540 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
6541
6093bc06
RB
65422013-04-29 Richard Biener <rguenther@suse.de>
6543
6544 PR middle-end/57089
fdca7d03
UB
6545 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
6546 loop tree make sure to schedule a fixup for the child as well.
6093bc06
RB
6547 (expand_omp_for_generic): Properly add loops.
6548 (expand_omp_for_static_nochunk): Likewise.
6549 (expand_omp_for_static_chunk): Likewise.
6550 (expand_omp_for): For the degenerate case fixup loops.
6551 (expand_omp_sections): Fix default bb placement in loops.
6552 (expand_omp_atomic_pipeline): Properly add loops.
6553
84aacbfd
KT
65542013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6555
6556 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
6557
8dee4479
TV
65582013-04-29 Tom de Vries <tom@codesourcery.com>
6559
6560 * tree-ssa-tail-merge.c: Update header comment.
6561
47934dc4
JG
65622013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6563
6564 * config/aarch64/arm_neon.h
6565 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
6566 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
6567 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
6568 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
6569 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
6570 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
6571 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
6572 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
6573
384be29f
JG
65742013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6575
6576 * config/aarch64/aarch64-simd.md
6577 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
6578 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
6579 fix_trunc, fixuns_trunc.
6580 (ftrunc<VDQF:mode>2): New.
6581 * config/aarch64/iterators.md (optab): Add fix, fixuns.
6582 (fix_trunc_optab): New.
6583
0386b123
JG
65842013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6585
6586 * config/aarch64/aarch64-builtins.c
6587 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
6588 iceilf, lround, iroundf.
6589
00fcb892
UB
65902013-04-29 Uros Bizjak <ubizjak@gmail.com>
6591
6592 PR target/54349
6593 * config/i386/i386.h (enum ix86_tune_indices)
6594 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
6595 New, split from X86_TUNE_INTER_UNIT_MOVES.
6596 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
6597 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
6598 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
6599 (TARGET_INTER_UNIT_MOVES): Remove.
6600 * config/i386/i386.c (initial_ix86_tune_features): Update.
6601 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
6602 (ix86_expand_convert_uns_didf_sse): Use
6603 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
6604 (ix86_expand_vector_init_one_nonzero): Ditto.
6605 (ix86_expand_vector_init_interleave): Ditto.
6606 (inline_secondary_memory_needed): Return true for moves from SSE class
6607 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
6608 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
6609 * config/i386/constraints.md (Yi, Ym): Depend on
6610 TARGET_INTER_UNIT_MOVES_TO_VEC.
6611 (Yj, Yn): New constraints.
6612 * config/i386/i386.md (*movdi_internal): Change constraints of
6613 operand 1 from Yi to Yj and from Ym to Yn.
6614 (*movsi_internal): Ditto.
6615 (*movdf_internal): Ditto.
6616 (*movsf_internal): Ditto.
6617 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
6618 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
6619 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
6620 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
6621 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
6622 * config/i386/sse.md (movdi_to_sse): Ditto.
6623 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
6624 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
6625 TARGET_INTER_UNIT_MOVES.
6626 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
6627 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
6628 instead of TARGET_INTER_UNIT_MOVES.
6629 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
6630 operand 1 from Yi to Yj and from Ym to Yn.
6631
4c871069
JG
66322013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6633
6634 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
6635 (float_truncate_hi_): Likewise.
6636 (float_extend_lo_): Likewise.
6637 (float_truncate_lo_): Likewise.
6638 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
6639 (aarch64_float_extend_lo_v2df): Likewise.
6640 (vec_unpacks_hi_v4sf): Likewise.
6641 (aarch64_float_truncate_lo_v2sf): Likewise.
6642 (aarch64_float_truncate_hi_v4sf): Likewise.
6643 (vec_pack_trunc_v2df): Likewise.
6644 (vec_pack_trunc_df): Likewise.
6645
1709ff9b
JG
66462013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6647
6648 * config/aarch64/aarch64-builtins.c
6649 (aarch64_fold_builtin): Fold float conversions.
6650 * config/aarch64/aarch64-simd-builtins.def
6651 (floatv2si, floatv4si, floatv2di): New.
6652 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
6653 * config/aarch64/aarch64-simd.md
6654 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
6655 * config/aarch64/iterators.md (FLOATUORS): New.
6656 (optab): Add float, floatuns.
6657 (su_optab): Likewise.
6658
ce966824
JG
66592013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6660
6661 * config/aarch64/aarch64-builtins.c
6662 (aarch64_builtin_vectorized_function): Use new names for
6663 fcvt builtins.
6664 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
6665 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
6666 (fcvtzu): Split as...
6667 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
6668 (fcvtas): Split as...
6669 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
6670 (fcvtau): Split as...
6671 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
6672 (fcvtps): Split as...
6673 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
6674 (fcvtpu): Split as...
6675 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
6676 (fcvtms): Split as...
6677 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
6678 (fcvtmu): Split as...
6679 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
6680 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
6681 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
6682 (lfrintnusf, lfrintnudf): Likewise.
6683 * config/aarch64/aarch64-simd.md
6684 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
6685 define_insn.
6686 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
6687 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
6688 (fcvt_pattern): Likewise.
6689
b9de24fe
JG
66902013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6691
6692 * config/aarch64/aarch64-simd.md
6693 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
6694 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
6695
77a205be
JG
66962013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6697
6698 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
6699 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
6700 (vrnd<a,m,n,p>_f32): Implement using builtins.
6701 (vrnd<i,x><q>_f<32, 64>): New.
6702
0659ce6f
JG
67032013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6704
6705 * config/aarch64/aarch64-builtins.c
6706 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
6707 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
6708 (frintz): Rename to...
6709 (btrunc): ...this.
6710 (frintp): Rename to...
6711 (ceil): ...this.
6712 (frintm): Rename to...
6713 (floor): ...this.
6714 (frinti): Rename to...
6715 (nearbyint): ...this.
6716 (frintx): Rename to...
6717 (rint): ...this.
6718 (frinta): Rename to...
6719 (round): ...this.
6720 * config/aarch64/aarch64-simd.md
6721 (aarch64_frint<frint_suffix><mode>): Delete.
6722 (<frint_pattern><mode>2): Convert to insn.
6723 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
6724 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
6725 (frint_pattern): Likewise.
6726 (frint_suffix): Likewise.
6727
ea78906a
RB
67282013-04-29 Richard Biener <rguenther@suse.de>
6729
6730 PR tree-optimization/57081
6731 * loop-init.c: Include tree-flow.h.
6732 (loop_optimizer_finalize): Free number of iteration estimates.
6733 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
6734
baee1763
JJ
67352013-04-29 Jakub Jelinek <jakub@redhat.com>
6736
94dc5332
JJ
6737 PR tree-optimization/57083
6738 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
6739 non-singleton shift count range, zero extend low_bound for uns case.
6740
baee1763
JJ
6741 * config/i386/predicates.md (general_vector_operand): New predicate.
6742 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
6743 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
6744 if they aren't nonimmediate operands. If their original values
6745 satisfy const_vector_equal_evenodd_p, don't shift them.
6746 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
6747 predicates. For the SSE4.1 case force operands[{1,2}] into registers
6748 if not nonimmediate_operand.
6749 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
6750 instead of register_operand.
6751 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
6752
a9073727 67532013-04-28 Eric Botcazou <ebotcazou@adacore.com>
22ad5e0a
EB
6754
6755 * stor-layout.c (finalize_size_functions): Allocate a structure and
6756 reset cfun before dumping the functions.
6757
ba8011e6
JJ
67582013-04-27 Jakub Jelinek <jakub@redhat.com>
6759
d6fde69e
JJ
6760 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
6761
ba8011e6
JJ
6762 PR target/56866
6763 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
6764 use xop_pmacsdqh if uns_p.
6765 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
6766 the immediate rotate count.
6767
2c62cbaa
VM
67682013-04-26 Vladimir Makarov <vmakarov@redhat.com>
6769
6770 * rtl.h (struct rtx_def): Add comment for field jump.
6771 (LRA_SUBREG_P): New macro.
6772 * recog.c (register_operand): Check LRA_SUBREG_P.
6773 * lra.c (lra): Add note at the end of RTL code. Align non-empty
6774 stack frame.
6775 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
6776 (lra_final_code_change): Skip subreg change for operators.
6777 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
6778 if there are no operand changes.
6779 * lra-constraints.c (curr_insn_set): New.
6780 (match_reload): Set LRA_SUBREG_P.
6781 (emit_spill_move): Ditto.
6782 (check_and_process_move): Use curr_insn_set. Process only single
6783 set insns. Don't initialize sec_mem_p and change_p.
6784 (simplify_operand_subreg): Use LRA_SUBREG_P.
6785 (reg_in_class_p): New function.
6786 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
6787 of #ifdef. Add code to remove cycling.
6788 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
6789 non-null disp. Reload inner instead of disp when base and index
6790 are null. Try to put lo_sum into register.
6791 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
6792 (check_and_process_move): Move code for move cost check to
6793 simple_move_p. Remove equiv_substitution.
6794 (simple_move_p): New function.
6795 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
6796 curr_insn_set. Call check_and_process_move only for single set
6797 insns. Use the new function. Move call of check_and_process_move
6798 after operand equiv substitution and address process.
6799
e7d764f3
JJ
68002013-04-26 Jakub Jelinek <jakub@redhat.com>
6801
6802 PR go/57045
6803 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
6804 with nonlocal goto receivers or returns twice calls, ignore
6805 unininitialized values from abnormal edges to nl goto receiver
6806 or returns twice call.
6807
41e10689
JJ
68082013-04-26 Jakub Jelinek <jakub@redhat.com>
6809
6810 PR tree-optimization/57051
6811 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
6812 and VEC_RSHIFT_EXPR if shift count is a multiple of element
6813 bitsize.
6814
d7ed20db
RB
68152013-04-26 Richard Biener <rguenther@suse.de>
6816
6817 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
6818 (expand_omp_taskreg): Likewise. Mark loops for fixup.
6819 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
6820 (fixup_loop_arrays_after_move): New function.
6821 (move_sese_region_to_fn): Properly outline the loop tree parts
6822 of the SESE region.
6823
df93505e
UB
68242013-04-26 Uros Bizjak <ubizjak@gmail.com>
6825
6826 * config/i386/i386.md (type, unit): Fix long lines.
6827
dd366ec3
RB
68282013-04-26 Richard Biener <rguenther@suse.de>
6829
6830 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
6831 (lto-streamer-out.o): Likewise.
6832 * cfgloop.c (init_loops_structure): Export, add struct function
6833 argument and adjust.
6834 (flow_loops_find): Adjust.
6835 * cfgloop.h (enum loop_estimation): Add EST_LAST.
6836 (init_loops_structure): Declare.
6837 * lto-streamer-in.c: Include cfgloop.h.
6838 (input_cfg): Input the loop tree.
6839 * lto-streamer-out.c: Include cfgloop.h.
6840 (output_cfg): Output the loop tree.
6841 (output_struct_function_base): Do not drop PROP_loops.
6842
a9e0d843
RB
68432013-03-26 Richard Biener <rguenther@suse.de>
6844
6845 * tree-cfg.c (execute_build_cfg): Build the loop tree.
6846 (pass_build_cfg): Provide PROP_loops.
6847 (move_sese_region_to_fn): Remove loops that are outlined into fn
6848 for now.
6849 * tree-inline.c: Include cfgloop.h.
6850 (initialize_cfun): Do not drop PROP_loops.
6851 (copy_loops): New function.
6852 (copy_cfg_body): Copy loop structure.
6853 (tree_function_versioning): Initialize destination loop tree.
6854 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
6855 (pass_parallelize_loops): Do IL verification.
6856 * loop-init.c (loop_optimizer_init): Fixup loops if required.
6857 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
6858 the CFG make sure we fixup loops as well.
6859 * tree-ssa-tail-merge.c: Include cfgloop.h.
6860 (replace_block_by): When merging loop latches mark loops for fixup.
6861 * lto-streamer-out.c (output_struct_function_base): Drop
6862 PROP_loops for now.
6863 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
6864 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
6865 * ipa-split.c: Include cfgloop.h.
6866 (split_function): Add the new return block to the loop tree root.
6867 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
6868 whether we have removed the forwarder block.
6869 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
6870 * cfgloop.h (place_new_loop): Declare.
6871 * cfgloopmanip.c (place_new_loop): Export.
6872 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
6873 (tree-switch-conversion.o): Likewise.
6874 (tree-complex.o): Likewise.
6875 (tree-inline.o): Likewise.
6876 (tree-ssa-tailmerge.o): Likewise.
6877 (ipa-split.o): Likewise.
6878 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
6879 (tree-ssa-copy.o): Likewise.
6880 * tree-switch-conversion.c: Include cfgloop.h
6881 (process_switch): If we emit a bit-test cascade, schedule loops
6882 for fixup.
6883 * tree-complex.c: Include cfgloop.h.
6884 (expand_complex_div_wide): Properly add new basic-blocks to loops.
6885 * asan.c: Include cfgloop.h.
6886 (create_cond_insert_point): Properly add new basic-blocks to
6887 loops, schedule loop fixup.
6888 * cfgloop.c (verify_loop_structure): Check that looks are not
6889 marked for fixup.
6890 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
6891 to loops.
6892 (expand_omp_for_generic): Likewise.
6893 (expand_omp_sections): Likewise.
6894 (expand_omp_atomic_pipeline): Schedule loops for fixup.
6895 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
6896 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
6897 is initialized, not when loops are present.
6898 * tree-parloops.c (parallelize_loops): Remove checking here.
6899 * passes.c (init_optimization_passes): Schedule a copy-propagation
6900 pass before complete unrolling of inner loops.
6901
e78e8a0b
JJ
69022013-04-26 Jakub Jelinek <jakub@redhat.com>
6903
a2e836b2
JJ
6904 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
6905 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
6906 (colorize_init): Add argument to _WIN32 version.
6907 * toplev.c: Include diagnostic-color.h.
6908 (process_options): Default to -fdiagnostics-color=auto if
6909 GCC_COLORS env var is in the environment.
6910 * common.opt (fdiagnostics-color=): Add Var and Init.
df93505e
UB
6911 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
6912 env var is in the environment, the default is auto rather than never.
a2e836b2 6913
e78e8a0b
JJ
6914 * diagnostic.h (file_name_as_prefix): Add context argument.
6915 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
6916 the string as locus.
6917 * langhooks.c (lhd_print_error_function): Adjust caller.
6918
013e5ef9
LC
69192013-04-25 Lawrence Crowl <crowl@google.com>
6920
6921 * var-tracking.c (shared_hash_def::htab):
6922 Change type to hash_table. Update dependent calls and types.
6923
4a8fb1a1
LC
69242013-04-25 Lawrence Crowl <crowl@google.com>
6925
6926 * Makefile.in: Update as needed below.
6927
6928 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
6929 Move declaration to after the type's method definitons.
6930
6931 * attribs.c (htab_t scoped_attributes::attribute_hash):
6932 Change type to hash_table. Update dependent calls and types.
6933
6934 * bitmap.c (htab_t bitmap_desc_hash):
6935 Change type to hash_table. Update dependent calls and types.
6936
6937 * cselib.c (htab_t cselib_hash_table):
6938 Change type to hash_table. Update dependent calls and types.
6939
6940 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
6941 (hash_string_slot_node): Move implementation into lto-streamer.h
6942 struct string_slot_hasher.
6943 (eq_string_slot_node): Likewise.
6944
6945 * data-streamer-out.c: Update output_block::string_hash_table
6946 dependent calls and types.
6947
6948 * dwarf2cfi.c (htab_t trace_index):
6949 Change type to hash_table. Update dependent calls and types.
6950
6951 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
6952 Change type to hash_table. Update dependent calls and types.
6953 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
6954 (htab_t optimize_external_refs::map): Likewise.
6955 (htab_t output_comp_unit::extern_map): Likewise.
6956 (htab_t output_comdat_type_unit::extern_map): Likewise.
6957 (htab_t output_macinfo::macinfo_htab): Likewise.
6958 (htab_t optimize_location_lists::htab): Likewise.
6959 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
6960
6961 * except.c (htab_t ehspec_hash_type):
6962 Change type to hash_table. Update dependent calls and types.
6963 (assign_filter_values::ttypes): Likewise.
6964 (assign_filter_values::ehspec): Likewise.
6965 (sjlj_assign_call_site_values::ar_hash): Likewise.
6966 (convert_to_eh_region_ranges::ar_hash): Likewise.
6967
6968 * gcse.c (htab_t pre_ldst_table):
6969 Change type to hash_table. Update dependent calls and types.
6970
6971 * ggc-common.c (htab_t saving_htab):
6972 Change type to hash_table. Update dependent calls and types.
6973 (htab_t loc_hash): Likewise.
6974 (htab_t ptr_hash): Likewise.
6975 (call_count): Rename ggc_call_count.
6976 (call_alloc): Rename ggc_call_alloc.
6977 (loc_descriptor): Rename make_loc_descriptor.
6978 (add_statistics): Rename ggc_add_statistics.
6979
6980 * ggc-common.c (saving_htab):
6981 Change type to hash_table. Update dependent calls and types.
6982
6983 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
6984 (push_gimplify_context): Likewise.
6985 (pop_gimplify_context): Likewise.
6986 (struct gimple_temp_hash_elt): Added.
6987 (struct gimplify_hasher): Likewise.
6988 (struct gimplify_ctx.temp_htab):
6989 Change type to hash_table. Update dependent calls and types.
6990
6991 * gimple-fold.c: Include gimplify-ctx.h.
6992
6993 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
6994 Change type to hash_table. Update dependent calls and types.
6995 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
6996 avoid potential global name collision.
6997
6998 * gimplify.c: Include gimplify-ctx.h.
6999 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
7000 (htab_t gimplify_ctx::temp_htab):
7001 Update dependent calls and types for new type hash_table.
7002 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
7003 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
7004
7005 * gimplify-ctx.h: New.
7006 (struct gimple_temp_hash_elt): Move from gimplify.c.
7007 (class gimplify_hasher): New.
7008 (struct gimplify_ctx): Move from gimple.h.
7009 (htab_t gimplify_ctx::temp_htab):
7010 Change type to hash_table. Update dependent calls and types.
7011
7012 * graphite-clast-to-gimple.c: Include graphite-htab.h.
7013 (htab_t ivs_params::newivs_index):
7014 Change type to hash_table. Update dependent calls and types.
7015 (htab_t ivs_params::params_index): Likewise.
7016 (htab_t print_generated_program::params_index): Likewise.
7017 (htab_t gloog::newivs_index): Likewise.
7018 (htab_t gloog::params_index): Likewise.
7019
7020 * graphite.c: Include graphite-htab.h.
7021 4htab_t graphite_transform_loops::bb_pbb_mapping):
7022 Change type to hash_table. Update dependent calls and types.
7023
7024 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
7025 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
7026 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
7027
7028 * graphite-dependences.c: Include graphite-htab.h.
7029 (loop_is_parallel_p): Change hash table type of parameter.
7030
7031 * graphite-htab.h: New.
7032 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
7033 (extern find_pbb_via_hash): Move from graphite-poly.h.
7034 (extern loop_is_parallel_p): Move from graphite-poly.h.
7035 (extern get_loop_body_pbbs): Move from graphite-poly.h.
7036
7037 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
7038 (extern loop_is_parallel_p): Move to graphite-htab.h.
7039 (extern get_loop_body_pbbs): Move to graphite-htab.h.
7040
7041 * haifa-sched.c (htab_t delay_htab):
7042 Change type to hash_table. Update dependent calls and types.
7043 (htab_t delay_htab_i2): Likewise.
7044
7045 * ira-color.c (htab_t allocno_hard_regs_htab):
7046 Change type to hash_table. Update dependent calls and types.
7047
7048 * ira-costs.c (htab_t cost_classes_htab):
7049 Change type to hash_table. Update dependent calls and types.
7050
7051 * loop-invariant.c (htab_t merge_identical_invariants::eq):
7052 Change type to hash_table. Update dependent calls and types.
7053
7054 * loop-iv.c (htab_t bivs):
7055 Change type to hash_table. Update dependent calls and types.
7056
7057 * loop-unroll.c (htab_t opt_info::insns_to_split):
7058 Change type to hash_table. Update dependent calls and types.
7059 (htab_t opt_info::insns_with_var_to_expand): Likewise.
7060
7061 * lto-streamer.h (struct string_slot): Move from data-streamer.h
7062 (struct string_slot_hasher): New.
7063 (htab_t output_block::string_hash_table):
7064 Change type to hash_table. Update dependent calls and types.
7065
7066 * lto-streamer-in.c (freeing_string_slot_hasher): New.
7067 (htab_t file_name_hash_table):
7068 Change type to hash_table. Update dependent calls and types.
7069
7070 * lto-streamer-out.c: Update output_block::string_hash_table dependent
7071 calls and types.
7072
7073 * lto-streamer.c (htab_t tree_htab):
7074 Change type to hash_table. Update dependent calls and types.
7075
7076 * omp-low.c: Include gimplify-ctx.h.
7077
7078 * passes.c (htab_t name_to_pass_map):
7079 Change type to hash_table. Update dependent calls and types.
7080 (pass_traverse): Rename to passes_pass_traverse.
7081
7082 * plugin.c (htab_t event_tab):
7083 Change type to hash_table. Update dependent calls and types.
7084
7085 * postreload-gcse.c (htab_t expr_table):
7086 Change type to hash_table. Update dependent calls and types.
7087 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
7088
7089 * sese.c (debug_rename_map_1): Make extern.
7090 (htab_t copy_bb_and_scalar_dependences::rename_map):
7091 Change type to hash_table. Update dependent calls and types.
7092
7093 * sese.h (extern debug_rename_map): Move to .c file.
7094
7095 * store-motion.c (htab_t store_motion_mems_table):
7096 Change type to hash_table. Update dependent calls and types.
7097
7098 * trans-mem.c (htab_t tm_new_mem_hash):
7099 Change type to hash_table. Update dependent calls and types.
7100
7101 * tree-browser.c (htab_t TB_up_ht):
7102 Change type to hash_table. Update dependent calls and types.
7103
7104 * tree-cfg.c (htab_t discriminator_per_locus):
7105 Change type to hash_table. Update dependent calls and types.
7106
7107 * tree-complex.c: Include tree-hasher.h
7108 (htab_t complex_variable_components):
7109 Change type to hash_table. Update dependent calls and types.
7110
7111 * tree-eh.c (htab_t finally_tree):
7112 Change type to hash_table. Update dependent calls and types.
7113
7114 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
7115 struct int_tree_hasher.
7116 (extern int_tree_map_eq): Likewise.
7117 (uid_decl_map_hash): Removed.
7118 (extern decl_tree_map_eq): Likewise.
7119
7120 * tree-hasher.h: New.
7121 (struct int_tree_hasher): New.
7122 (typedef int_tree_htab_type): New.
7123
7124 * tree-inline.c: Include gimplify-ctx.h.
7125
7126 * tree-mudflap.c: Include gimplify-ctx.h.
7127
7128 * tree-parloops.c: Include tree-hasher.h.
7129 (htab_t eliminate_local_variables_stmt::decl_address):
7130 Change type to hash_table. Update dependent calls and types.
7131 (htab_t separate_decls_in_region::decl_copies): Likewise.
7132
7133 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
7134 Change type to hash_table. Update dependent calls and types.
7135
7136 * tree-sra.c (candidates):
7137 Change type to hash_table. Update dependent calls and types.
7138
7139 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
7140 in tree-flow.h.
7141 (int_tree_map_hash): Likewise.
7142
7143 * tree-ssa-dom.c (htab_t avail_exprs):
7144 Change type to hash_table. Update dependent calls and types.
7145
7146 * tree-ssa-live.c (var_map_base_init::tree_to_index):
7147 Change type to hash_table. Update dependent calls and types.
7148
7149 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
7150 Change type to hash_table. Update dependent calls and types.
7151
7152 * tree-ssa-phiopt.c (seen_ssa_names):
7153 Change type to hash_table. Update dependent calls and types.
7154
7155 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
7156 Change type to hash_table. Update dependent calls and types.
7157
7158 * tree-ssa-uncprop.c (equiv):
7159 Change type to hash_table. Update dependent calls and types.
7160
c5a44004
JJ
71612013-04-25 Jakub Jelinek <jakub@redhat.com>
7162
7163 PR rtl-optimization/57003
7164 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
7165 call note_stores with kill_clobbered_value callback again after
7166 killing regs_invalidated_by_call.
7167
09962a4a
JG
71682013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7169
7170 * config/aarch64/aarch64-simd.md
7171 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
7172 (aarch64_simd_bsl<mode>): Likewise.
7173 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
7174
ea28bb0b
MP
71752013-04-25 Marek Polacek <polacek@redhat.com>
7176
7177 PR tree-optimization/57066
3c21604f 7178 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
ea28bb0b 7179
96659611
JG
71802013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
7181
7182 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
7183
9697e620
JG
71842013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7185
7186 * config/aarch64/aarch64-builtins.c
7187 (aarch64_fold_builtin): New.
7188 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
7189 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
7190 * config/aarch64/aarch64-simd-builtins.def (abs): New.
7191 * config/aarch64/arm_neon.h
7192 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
7193
0ac198d3
JG
71942013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7195 Tejas Belagod <tejas.belagod@arm.com>
7196
7197 * config/aarch64/aarch64-builtins.c
7198 (aarch64_gimple_fold_builtin): New.
7199 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
7200 * config/aarch64/aarch64-simd-builtins.def (addv): New.
7201 * config/aarch64/aarch64-simd.md (addpv4sf): New.
7202 (addvv4sf): Update.
7203 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
7204
58cff58c
N
72052013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7206
df93505e 7207 * config/aarch64/aarch64.md
58cff58c
N
7208 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
7209
7e0228bf
N
72102013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7211
7212 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
7213 (*ngcsi_uxtw): New pattern.
7214
5819f96f 72152013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3c21604f 7216 Julian Brown <julian@codesourcery.com>
5819f96f
KT
7217
7218 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
7219 (TB_DREG): Add T_V4HF.
7220 (v4hf_UP): New macro.
7221 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
df93505e 7222 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
7223 Handle initialisation of V4HF. Adjust initialisation of reinterpret
7224 built-ins.
df93505e 7225 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
7226 (arm_vector_mode_supported_p): Handle V4HF.
7227 (arm_mangle_map): Handle V4HFmode.
7228 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
7229 * config/arm/arm_neon_builtins.def: Add entries for
7230 vcvtv4hfv4sf, vcvtv4sfv4hf.
7231 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
7232 (neon_vcvtv4hfv4sf): Likewise.
7233 * config/arm/neon-gen.ml: Handle half-precision floating point
7234 features.
7235 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
7236 * config/arm/arm_neon.h: Regenerate.
7237 * config/arm/neon.ml (type elts): Add F16.
7238 (type vectype): Add T_float16x4, T_floatHF.
7239 (type vecmode): Add V4HF.
7240 (type features): Add Requires_FP_bit feature.
7241 (elt_width): Handle F16.
7242 (elt_class): Likewise.
7243 (elt_of_class_width): Likewise.
7244 (mode_of_elt): Refactor.
7245 (type_for_elt): Handle F16, fix error messages.
7246 (vectype_size): Handle T_float16x4.
7247 (vcvt_sh): New function.
7248 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
7249 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
7250 (string_of_mode): Handle V4HF.
7251 * doc/arm-neon-intrinsics.texi: Regenerate.
7252
1ef395e4
JG
72532013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7254
7255 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
7256 format specifier in 'X' case.
7257
41c34e94
AM
72582013-04-25 Alan Modra <amodra@gmail.com>
7259
7260 PR target/57052
7261 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
7262 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
7263 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
7264 Repeat for many other rotate/shift and mask patterns using subregs.
7265 Name lshiftrt insns.
7266 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
7267 on WORDS_BIG_ENDIAN.
7268
b9a7eb5d
AM
72692013-04-25 Alan Modra <amodra@gmail.com>
7270
7271 * config.gcc: Support little-endian powerpc-linux targets.
7272 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
7273 (LINK_OS_LINUX_SPEC): Define.
7274 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
7275 Preserve MASK_LITTLE_ENDIAN.
7276 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
7277 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
7278 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
7279 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
7280 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
7281 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
7282 Correct fp word order for little-endian. Don't shift toc entries
7283 smaller than a word for little-endian.
7284 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
7285 (bswapdi2 splits): Correct low-part subreg for little-endian.
7286 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
7287 low/high where such is correct only for be.
7288 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
7289 little-endian for -mcall-aixdesc.
7290
87f73374
AM
72912013-04-25 Alan Modra <amodra@gmail.com>
7292
7293 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
7294 replace_equiv_address_nv.
7295
cabf91cd
AM
72962013-04-25 Alan Modra <amodra@gmail.com>
7297
7298 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
7299
0ae24cc8
VM
73002013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7301
7302 Revert:
7303 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7304 * rtl.h (struct rtx_def): ...
cabf91cd 7305
77bce07c
VM
73062013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7307
7308 PR rtl-optimizations/57046
7309 * lra-constraints (split_reg): Set up lra_risky_transformations_p
7310 for multi-reg splits.
7311
0db63e7f
L
73122013-04-24 H.J. Lu <hongjiu.lu@intel.com>
7313
7314 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
7315
3362b6b6
SA
73162013-04-24 Sterling Augustine <saugustine@google.com>
7317
7318 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
7319 (comp_dir_string, debug_str_dwo_section): New.
7320 (DEBUG_STR_DWO_SECTION): Rename to ...
7321 (DEBUG_DWO_STR_SECTION): ... this.
7322 (DEBUG_NORM_STR_SECTION): Delete.
7323 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
7324 (DEBUG_STR_DWO_SECTION_FLAGS): New.
7325 (find_AT_string): Move most logic to ...
7326 (find_AT_string_in_table): ... here. New.
7327 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
7328 add_skeleton_AT_string. Delete logic.
7329 (output_skeleton_debug_sections): Remove call to
7330 add_top_level_skeleton_die_attrs.
7331 (add_comp_dir_attribute): Move logic to comp_dir_string.
7332 (dwarf2out_init): Initialize debug_str_dwo_section.
7333 (output_indirect_string): Call find_string_form.
7334 (output_indirect_strings): Rewrite.
7335 (prune_unused_types): Empty skeleton_debug_str_hash.
7336 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
7337 (dwarf2out_finish): Call output_indirect_strings.
7338
e93e18e9
PC
73392013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7340
7341 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
7342
f6ce35ac
VM
73432013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7344
cabf91cd 7345 * rtl.h (struct rtx_def): Add comment for field jump.
f6ce35ac
VM
7346 (LRA_SUBREG_P): New macro.
7347 * recog.c (register_operand): Check LRA_SUBREG_P.
7348 * lra.c (lra): Add note at the end of RTL code. Align non-empty
7349 stack frame.
7350 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
7351 (lra_final_code_change): Skip subreg change for operators.
7352 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
7353 if there are no operand changes.
7354 * lra-constraints.c (curr_insn_set): New.
7355 (match_reload): Set LRA_SUBREG_P.
7356 (emit_spill_move): Ditto.
7357 (check_and_process_move): Use curr_insn_set. Process only single
7358 set insns. Don't initialize sec_mem_p and change_p.
7359 (simplify_operand_subreg): Use LRA_SUBREG_P.
7360 (reg_in_class_p): New function.
7361 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
7362 of #ifdef. Add code to remove cycling.
7363 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
7364 non-null disp. Reload inner instead of disp when base and index
7365 are null. Try to put lo_sum into register.
7366 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
cabf91cd 7367 (check_and_process_move): Move code for move cost check to
f6ce35ac 7368 simple_move_p. Remove equiv_substitution.
cabf91cd 7369 (simple_move_p): New function.
f6ce35ac
VM
7370 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
7371 curr_insn_set. Call check_and_process_move only for single set
7372 insns. Use the new function. Move call of check_and_process_move
7373 after operand equiv substitution and address process.
7374
38047d90
JG
73752013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
7376
7377 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
7378 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
7379 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
7380
13f39b2e
PC
73812013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7382
7383 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
7384
97c116dc
MP
73852013-04-24 Marek Polacek <polacek@redhat.com>
7386
7387 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
7388 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
7389 (select_loops_exit_conditions): Likewise.
7390 (number_of_iterations_for_all_loops): Likewise.
7391 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
7392 (scev_analysis): Likewise.
7393
83082391
CM
73942013-04-02 Catherine Moore <clm@codesourcery.com>
7395 Chao-ying Fu <fu@mips.com>
7396
cabf91cd
AM
7397 * config/mips/micromips.md (jraddiusp): New pattern.
7398 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
7399 instruction if possible.
83082391 7400
19e34aa2
AM
74012013-04-24 Alan Modra <amodra@gmail.com>
7402
7403 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
7404
fdb6603c
JB
74052013-04-24 Julian Brown <julian@codesourcery.com>
7406 Chung-Lin Tang <cltang@codesourcery.com>
7407
7408 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
df93505e
UB
7409 dependency behavior in enumeration type DIE generation. Add TODO note
7410 to comments about future DW_FORM_sdata/udata re-work of related code.
fdb6603c 7411
bf190e8d
LC
74122013-04-23 Lawrence Crowl <crowl@google.com>
7413
7414 * Makefile.in: Update as needed below.
7415
7416 * hash-table.h (class hash_table):
7417 Correct many methods with parameter types compare_type to the correct
7418 value_type. (Correct code was unlikely to notice the change.)
7419 (hash_table::elements_with_deleted) New.
7420 (class hashtable::iterator): New.
7421 (hashtable::begin()): New.
7422 (hashtable::end()): New.
7423 (FOR_EACH_HASH_TABLE_ELEMENT): New.
7424
7425 * statistics.c (statistics_hashes):
7426 Change type to hash_table. Update dependent calls and types.
7427
7428 * tree-into-ssa.c (var_infos):
7429 Change type to hash_table. Update dependent calls and types.
7430
7431 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
7432 Change type to hash_table. Update dependent calls and types.
7433
7434 * tree-ssa-loop-im.c (struct mem_ref.refs):
7435 Change type to hash_table. Update dependent calls and types.
7436
7437 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
7438 Change type to hash_table. Update dependent calls and types.
7439
7440 * tree-ssa-sccvn.c (vn_tables_s::nary):
7441 Change type to hash_table. Update dependent calls and types.
7442 (vn_tables_s::phis): Likewise.
7443 (vn_tables_s::references): Likewise.
7444
7445 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
7446 (vn_reference_eq): Update parameter and return types.
7447
7448 * tree-ssa-structalias.c (pointer_equiv_class_table):
7449 Change type to hash_table. Update dependent calls and types.
7450 (location_equiv_class_table): Likewise.
7451
7452 * tree-vect-data-refs.c: Consequential changes for making
7453 peeling a hash_table.
7454
7455 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
7456 (destroy_loop_vec_info): Dependent hash_table update.
7457
7458 * tree-vectorizer.h (peeling_htab):
7459 Change type to hash_table. Update dependent calls and types.
7460
d70a81dd
SC
74612013-04-23 Shiva Chen <shiva0217@gmail.com>
7462
cabf91cd
AM
7463 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
7464 to check the register content is equal or not.
7465 * lra-constraints.c (match_reload): Use lra_assign_reg_val
7466 to assign register content record.
7467 * lra-eliminations.c (update_reg_eliminate): Use
d70a81dd 7468 lra_update_reg_val_offset to update register content offset.
cabf91cd
AM
7469 * lra-int.h (struct lra_reg): Add offset member.
7470 (lra_reg_val_equal_p): New static inline function.
7471 (lra_update_reg_val_offset): New static inline function.
7472 (lra_assign_reg_val): New static inline function.
7473 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
7474 to assign register content record.
7475 (initialize_lra_reg_info_element): Initial offset to zero.
d70a81dd 7476
b894a1f3
CM
74772013-04-23 Catherine Moore <clm@codesourcery.com>
7478
7479 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
7480 operands. Record compression.
7481
ecd14de9
XDL
74822013-04-23 Xinliang David Li <davidxl@google.com>
7483
7484 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
7485
92e776e9
RB
74862013-04-23 Richard Biener <rguenther@suse.de>
7487
7488 PR middle-end/57036
7489 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
7490 parameter, only add abnormal goto edges from the copied body
7491 if the call could perform abnormal gotos.
7492 (copy_cfg_body): Adjust.
7493
a15ee567
SN
74942013-04-23 Sofiane Naci <sofiane.naci@arm.com>
7495
7496 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
7497
08c52234
AS
74982013-04-23 Andreas Schwab <schwab@linux-m68k.org>
7499
7500 * coretypes.h (gimple_stmt_iterator): Add struct to make
7501 compatible with C.
7502
999c1171
RB
75032013-04-23 Richard Biener <rguenther@suse.de>
7504
7505 PR tree-optimization/57026
7506 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
7507 from SSA names occuring in abnormal PHI nodes.
7508
53669259
AK
75092013-04-22 Andi Kleen <ak@linux.intel.com>
7510
7511 * lto/lto.c (print_lto_report_1): Fix LTO report names.
7512
1a0ad150
AK
75132013-04-22 Andi Kleen <ak@linux.intel.com>
7514
7515 * lto/lto.c (print_lto_report_1): Declare early.
7516 (read_cgraph_and_symbols): Call print_lto_report_1 early.
7517
057f8f20
AK
75182013-04-22 Andi Kleen <ak@linux.intel.com>
7519
7520 * common.opt (-flto-report-wpa): Add.
7521 * doc/invoke.texi (-flto-report-wpa): Add.
7522 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
7523 (lto_main): dito.
7524
473b1e05
XDL
75252013-04-22 Xinliang David Li <davidxl@google.com>
7526
7527 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
7528 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
7529 * Makefile.in: New dependency
7530
cabf91cd 7531 David Daney <ddaney.cavm@gmail.com>
b1485a33 7532
cabf91cd
AM
7533 * configure.ac (gcc_cv_as_micromips_support): Use the
7534 --fatal-warnings option.
7535 * configure: Regenerate.
b1485a33 7536
829d0168
MP
75372013-04-22 Marek Polacek <polacek@redhat.com>
7538
7539 PR sanitizer/56990
7540 * tsan.c (instrument_expr): Don't instrument expression
7541 in case its size is zero.
7542
6d9b7208
UB
75432013-04-22 Uros Bizjak <ubizjak@gmail.com>
7544
7545 PR target/57032
7546 Revert:
7547 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
7548
7549 * config/alpha/alpha.c (TARGET_LRA_P): New define.
7550
ea679d55
JG
75512013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
7552
7553 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
7554 (gimple_stmt_iterator): New typedef.
7555 * gimple.h (gimple_stmt_iterator): Rename to...
7556 (gimple_stmt_iterator_d): ... This.
7557 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
7558 trees be valid for GIMPLE and GENERIC.
7559 (TARGET_GIMPLE_FOLD_BUILTIN): New.
7560 * gimple-fold.c (gimple_fold_call): Call target hook
7561 gimple_fold_builtin.
7562 * hooks.c (hook_bool_gsiptr_false): New.
7563 * hooks.h (hook_bool_gsiptr_false): New.
7564 * target.def (fold_stmt): New.
7565 * doc/tm.texi: Regenerate.
7566
88a581da
VM
75672013-04-22 Vladimir Makarov <vmakarov@redhat.com>
7568
7569 PR target/57018
7570 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
7571 a set sp if no stack realignment.
7572
92be22dc
NC
75732013-04-22 Nick Clifton <nickc@redhat.com>
7574
7575 * config.gcc (tilegx-linux): Extend extra_objs rather than
7576 overwriting it.
7577 (tilepro-linux): Likewise.
7578
0ddec79f
JG
75792013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
7580
7581 * config/aarch64/aarch64-builtins.c
7582 (CF): Remove.
7583 (CF0, CF1, CF2, CF3, CF4, CF10): New.
7584 (VAR<1-12>): Add MAP parameter.
7585 (BUILTIN_*): Likewise.
7586 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
7587 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
7588 (aarch64_ushl_n<mode>): Likewise.
7589 (aarch64_sshr_n<mode>): Likewise.
7590 (aarch64_ushr_n<mode>): Likewise.
7591 (aarch64_<maxmin><mode>): Likewise.
7592 (aarch64_sqrt<mode>): Likewise.
7593 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
7594 (vshr<q>_n_*): Likewise.
7595
0050faf8
JG
75962013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
7597
7598 * config/aarch64/aarch64-builtins.c
7599 (aarch64_simd_builtin_type_mode): Handle SF types.
7600 (sf_UP): Define.
7601 (BUILTIN_GPF): Define.
7602 (aarch64_init_simd_builtins): Handle SF types.
7603 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
7604 (frecps): Likewise.
7605 (frecpx): Likewise.
7606 * config/aarch64/aarch64-simd.md
7607 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
7608 (aarch64_frecpe<mode>): New.
7609 (aarch64_frecps<mode>): Likewise.
7610 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
7611 (v8type): Add frecp<esx>.
7612 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
7613 (aarch64_frecps<mode>): Likewise.
7614 * config/aarch64/iterators.md (FRECP): New.
7615 (frecp_suffix): Likewise.
7616 * config/aarch64/arm_neon.h
7617 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
7618
0fad3dbc 76192013-04-22 Christian Bruel <christian.bruel@st.com>
1818d01c
CB
7620
7621 PR target/56995
7622 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
7623 (REG_CLASS_NAMES): Idem.
7624 (REG_CLASS_CONTENTS): Idem.
7625 (REGCLASS_HAS_FP_REG): Idem.
7626 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
7627 (sh_conditional_register_usage): Idem.
7628
3e8a33f9
JL
76292013-04-21 Jeff Law <law@redhat.com>
7630
7631 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
7632 (ssa_forward_propagate_and_combine): Use it.
7633
f38e1b0a
VM
76342013-04-19 Vladimir Makarov <vmakarov@redhat.com>
7635
7636 * lra.c: Update the flow chart diagram.
7637
682303da
VM
76382013-04-19 Vladimir Makarov <vmakarov@redhat.com>
7639
7640 PR rtl-optimization/56847
7641 * lra-constraints.c (process_alt_operands): Discourage alternative
7642 with non-matche doffsettable memory constraint fro memory with
7643 known offset.
7644
f6b64c35
RB
76452013-04-19 Richard Biener <rguenther@suse.de>
7646
7647 PR tree-optimization/56982
7648 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
7649 function.
7650 * gimplify.c (gimplify_call_expr): Notice special calls.
7651 (gimplify_modify_expr): Likewise.
7652 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
7653 abnormal control flow receivers.
7654 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
7655 in the same way as cfun->has_nonlocal_labels.
7656 (gimple_purge_dead_abnormal_call_edges): Likewise.
7657 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
7658 receivers start a basic-block.
7659
01d8bf07
RB
76602013-04-19 Richard Biener <rguenther@suse.de>
7661
7662 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
7663 member ...
7664 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
7665 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
7666 (SLP_TREE_LOAD_PERMUTATION): Add.
7667 (vect_transform_slp_perm_load): Adjust prototype.
7668 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
7669 (vect_free_slp_instance): Likewise.
7670 (vect_create_new_slp_node): Likewise.
7671 (vect_supported_slp_permutation_p): Remove.
7672 (vect_slp_rearrange_stmts): Adjust.
7673 (vect_supported_load_permutation_p): Likewise. Inline
7674 vect_supported_slp_permutation_p here.
7675 (vect_analyze_slp_instance): Compute load permutations per
7676 slp node instead of per instance.
7677 (vect_get_slp_defs): Adjust.
7678 (vect_transform_slp_perm_load): Likewise.
7679 (vect_schedule_slp_instance): Remove redundant code.
7680 (vect_schedule_slp): Remove hack for PR56270, add it ...
7681 * tree-vect-stmts.c (vectorizable_load): ... here, do not
7682 CSE loads for SLP. Adjust.
7683
ede22fc3
GY
76842013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
7685
7686 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
7687 spelling in two comments.
7688
67bc84fb
GY
76892013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
7690
7691 PR target/56797
7692 * config/arm/arm.c (load_multiple_sequence): Require SP
7693 as base register for loads if SP is in the register list.
7694
e248d83f
MJ
76952013-04-19 Martin Jambor <mjambor@suse.cz>
7696
7697 PR tree-optimization/56718
7698 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
7699 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
7700 and made public. Adjusted all callers.
7701 (ipa_intraprocedural_devirtualization): New function.
7702 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
7703 (ipa_intraprocedural_devirtualization): Likewise.
7704 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
7705
4891e8f8
RB
77062013-04-19 Richard Biener <rguenther@suse.de>
7707
7708 PR tree-optimization/57000
7709 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
7710
dad89f7c
TG
77112013-04-19 Terry Guo <terry.guo@arm.com>
7712
7713 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
7714 Replace with ...
7715 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
7716 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
7717 (cortex_m4_fmacs): Use new reservations.
7718 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
7719
72ea0d47
VM
77202013-04-18 Vladimir Makarov <vmakarov@redhat.com>
7721
f1e6512c 7722 PR rtl-optimization/56999
72ea0d47
VM
7723 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
7724 related code.
7725 (lra_coalesce): Remove split_origin_bitmap and related code.
7726 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
7727 ranges if necessary.
7728
780a5b71
UB
77292013-04-18 Uros Bizjak <ubizjak@gmail.com>
7730
7731 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
7732 New array.
7733 (ix86_expand_call): Remove clobbered_registers array and use
7734 x86_64_ms_sysv_extra_clobbered_registers instead.
7735 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
7736 Declare here.
7737 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
7738 predicate.
7739 * config/i386/i386.md (*call_rex64_ms_sysv): Use
7740 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
7741 (*call_value_rex64_ms_sysv): Ditto.
7742
6f5a366a
CC
77432013-04-18 Cary Coutant <ccoutant@google.com>
7744
7745 * dwarf2out.c (output_pubnames): Check die_perennial_p of
7746 parent instead of die_mark.
7747
475b8f37
DN
77482013-04-18 Diego Novillo <dnovillo@google.com>
7749
7750 * gimple.c (create_gimple_tmp): New.
7751 (get_expr_type): New.
7752 (build_assign): New.
7753 (build_type_cast): New.
7754 * gimple.h (enum ssa_mode): Define.
7755 (gimple_seq_set_location): New.
7756 * asan.c (build_check_stmt): Change some gimple_build_* calls
780a5b71 7757 to use build_assign and build_type_cast.
475b8f37 7758
08940f33
RB
77592013-04-18 Richard Biener <rguenther@suse.de>
7760
7761 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
7762 handle negative step. Remove redundant checks.
7763 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
7764 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
7765 for negative step and grouped loads fail to vectorize.
7766
0e0f87d4
SB
77672013-04-18 Steven Bosscher <steven@gcc.gnu.org>
7768
7769 * emit-rtl.c (reset_insn_used_flags): New function.
7770 (reset_all_used_flags): Use it.
7771 (verify_insn_sharing): New function.
7772 (verify_rtl_sharing): Fix verification for SEQUENCEs.
7773
4c445590
JJ
77742013-04-18 Jakub Jelinek <jakub@redhat.com>
7775
7776 PR tree-optimization/56984
7777 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
7778 and (x >> M) >= N don't register any assertion if N << M is the
7779 minimum value.
7780
6873ecab
SB
77812013-04-18 Steven Bosscher <steven@gcc.gnu.org>
7782
7783 * lower-subreg.c (resolve_simple_move): If called self-recursive,
7784 do not delete_insn insns that have not yet been emitted, only
7785 unlink them with remove_insn.
7786 * df-scan.c (df_insn_delete): Revert r197492.
7787
3ccb989e
SB
77882013-04-17 Steven Bosscher <steven@gcc.gnu.org>
7789
7790 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
7791 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
7792
77932013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
0480fff0
GY
7794
7795 * config/arm/arm.md (movsicc_insn): Convert define_insn into
7796 define_insn_and_split.
7797 (and_scc,ior_scc,negscc): Likewise.
7798 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
7799
3ccb989e 78002013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
367075fe
GY
7801
7802 * config/arm/arm.c (use_return_insn): Return 0 for targets that
7803 can benefit from using a sequence of LDRD instructions in epilogue
7804 instead of a single LDM instruction.
7805
6d10a203
MLI
78062013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
7807
7808 PR 45688
7809 * doc/extend.texi: Fix typo.
7810
6983e6b5
RB
78112013-04-17 Richard Biener <rguenther@suse.de>
7812
7813 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
7814 (vect_build_slp_tree): ... here.
7815 (vect_build_slp_tree_1): Compute which stmts of the SLP group
7816 match. Remove special-casing of mismatched complex loads.
7817 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
7818 re-try the match with swapped commutative operands.
7819 (vect_supported_load_permutation_p): Remove special-casing of
7820 mismatched complex loads.
7821 (vect_analyze_slp_instance): Adjust.
7822
ef23e6a2
RB
78232013-04-17 Richard Biener <rguenther@suse.de>
7824
7825 PR rtl-optimization/56921
7826 * cfgloop.h (struct loop): Add simple_loop_desc member.
7827 (struct niter_desc): Mark with GTY(()).
7828 (simple_loop_desc): Do not use aux field but simple_loop_desc.
7829 * loop-iv.c (get_simple_loop_desc): Likewise.
7830 (free_simple_loop_desc): Likewise.
7831
7832 Revert
7833 2013-04-16 Richard Biener <rguenther@suse.de>
7834
7835 PR rtl-optimization/56921
7836 * loop-init.c (pass_rtl_move_loop_invariants): Add
7837 TODO_do_not_ggc_collect to todo_flags_finish.
7838 (pass_rtl_unswitch): Same.
7839 (pass_rtl_unroll_and_peel_loops): Same.
7840 (pass_rtl_doloop): Same.
7841
fc6f94f5
EB
78422013-04-17 Eric Botcazou <ebotcazou@adacore.com>
7843
7844 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
7845 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
7846 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
7847 references.
7848 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
7849 * tree-streamer.c (record_common_node): Adjust reference in comment.
7850
10a88311
TG
78512013-04-17 Terry Guo <terry.guo@arm.com>
7852
7853 * config/arm/cortex-m4.md: Add a new bypass.
7854
6d9b7208 78552013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f3d096b0
N
7856
7857 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
7858 New pattern.
7859 (*subs_<optab><mode>_multp2): New pattern.
7860 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
7861 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
7862
6d9b7208 78632013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
860ad33f
N
7864
7865 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
7866 (*subs_mul_imm_<mode>): New pattern.
7867
18a6701e
DE
78682013-04-16 David Edelsohn <dje.gcc@gmail.com>
7869
7870 PR target/56948
7871 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
7872 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
7873 (vsx_movti_32bit): Change j->wa to O->wa.
7874
07c37b2f
RB
78752013-04-16 Richard Biener <rguenther@suse.de>
7876
7877 PR rtl-optimization/56921
7878 * loop-init.c (pass_rtl_move_loop_invariants): Add
7879 TODO_do_not_ggc_collect to todo_flags_finish.
7880 (pass_rtl_unswitch): Same.
7881 (pass_rtl_unroll_and_peel_loops): Same.
7882 (pass_rtl_doloop): Same.
7883
0e0f87d4 78842013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
974ba22d
GY
7885
7886 * config/arm/arm.c (emit_multi_reg_push): New declaration
7887 for an existing function.
7888 (arm_emit_strd_push): New function.
7889 (arm_expand_prologue): Used here.
7890 (arm_emit_ldrd_pop): New function.
7891 (arm_expand_epilogue): Used here.
7892 (arm_get_frame_offsets): Update condition.
7893 (arm_emit_multi_reg_pop): Add a special case for load of a single
7894 register with writeback.
7895
5e8e2af4
UB
78962013-04-16 Uros Bizjak <ubizjak@gmail.com>
7897
7898 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
7899 description.
7900
9fd9ccf7
RB
79012013-04-16 Richard Biener <rguenther@suse.de>
7902
7903 PR tree-optimization/56756
7904 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
7905 (first_mem_ref_loc): New.
7906 (execute_sm): Place the load temporarily before a previous
7907 access instead of in the latch edge to ensure its SSA dependencies
7908 are defined at points dominating the load.
7909
96fba521
SB
79102013-04-16 Steven Bosscher <steven@gcc.gnu.org>
7911
4c8af858
SB
7912 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
7913 correct fix by moving header and footer insn to the footer of
7914 the merged basic block. Clear BB_END of the merged-away block.
7915
96fba521
SB
7916 PR middle-end/43631
7917 * emit-rtl.c (make_note_raw): New function.
7918 (link_insn_into_chain): New static inline function.
7919 (add_insn): Use it.
7920 (add_insn_before, add_insn_after): Factor insn chain linking code...
7921 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
7922 using link_insn_into_chain.
7923 (note_outside_basic_block_p): New helper function for emit_note_after
7924 and emit_note_before.
7925 (emit_note_after): Use nobb variant of add_insn_after if the note
7926 should not be contained in a basic block.
7927 (emit_note_before): Use nobb variant of add_insn_before if the note
7928 should not be contained in a basic block.
7929 (emit_note_copy): Use make_note_raw.
7930 (emit_note): Likewise.
7931 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
7932 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
7933 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
7934 the moved barrier the tail of the basic block it follows.
7935 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
7936
7b8265ba
JJ
79372013-04-15 Jakub Jelinek <jakub@redhat.com>
7938
7939 PR tree-optimization/56962
7940 * gimple-ssa-strength-reduction.c (record_increment): Only set
7941 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
7942 either rhs1 or rhs2 is equal to c->base_expr.
7943
5185d248
RB
79442013-04-15 Richard Biener <rguenther@suse.de>
7945
7946 PR tree-optimization/56933
7947 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
7948 member.
7949 (GROUP_READ_WRITE_DEPENDENCE): Remove.
7950 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
7951 * tree-vect-data-refs.c (vect_analyze_group_access): Move
7952 dependence check ...
7953 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
7954 ... here.
7955 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
7956 GROUP_READ_WRITE_DEPENDENCE.
7957
a24243a0
AK
79582013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7959
7960 * emit-rtl.c (reset_all_used_flags): New function.
7961 (verify_rtl_sharing): Call reset_all_used_flags before and after
7962 performing the checks.
7963
1c50eada
KT
79642013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7965
7966 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
7967 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
7968 * config/arm/constraints.md (De): New constraint.
7969 * config/arm/neon.md (anddi3_neon): Delete.
7970 (neon_vand<mode>): Expand to standard anddi3 pattern.
7971 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
7972 Move earlier in the file.
7973 (neon_inv_logic_op2): Likewise.
7974 (arm_anddi_operand_neon): New predicate.
7975
e927b6ad
RO
79762013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7977
7978 * configure.ac (gcc_cv_ld_as_needed): Set
7979 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
7980 Use -z ignore, -z record on *-*-solaris2*.
7981 (HAVE_LD_AS_NEEDED): Update comment.
7982 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
7983 * configure: Regenerate.
7984 * config.in: Regenerate.
7985 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
7986 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
7987 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
7988 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
7989 equivalents. Fix markup.
7990 * doc/tm.texi: Regenerate.
7991
e0ea8797
AH
79922013-04-15 Andrew Hsieh <andrewhsieh.google.com>
7993
7994 * config/i386/i386.opt: New option mstack-protector-guard=.
7995 * config/i386/i386-opts.h: Add enum stack_protector_guard.
7996 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
7997 TARGET_SSP_TLS_GUARD.
7998 * config/i386/i386.c (ix86_option_override_internal): Set
7999 ix86_stack_protector_guard.
8000 * config/i386/i386.md (stack_protect_set): Enable for
8001 TARGET_SSP_TLS_GUARD only.
8002 (stack_protect_set_<mode>): Ditto.
8003 (stack_protect_test): Ditto.
8004 (stack_protect_test_<mode>): Ditto.
8005 * doc/invoke.texi (i386 Option): Document.
8006
811b72f9
EB
80072013-04-15 Eric Botcazou <ebotcazou@adacore.com>
8008
8009 PR target/56890
8010 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
8011 (S_MODES): Set H_MODE bit.
8012 (SF_MODES): Set only S_MODE and SF_MODE bits.
8013 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
8014 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
8015 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
8016 <MODE_FLOAT>: Likewise.
8017
5529fdd6
JY
80182013-04-15 Joey Ye <joey.ye@arm.com>
8019
8020 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
8021
517b1da2
JY
80222013-04-15 Joey Ye <joey.ye@arm.com>
8023
8024 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
8025 for real far jump.
8026 (thumb_far_jump_used_p): Count instruction size and set
8027 far_jump_used.
8028
01007ae0
EB
80292013-04-14 Eric Botcazou <ebotcazou@adacore.com>
8030
8031 * reorg.c (fill_simple_delay_slots): Reindent block of code.
8032 * resource.c (mark_target_live_regs): Reformat conditional block.
8033
c46f6580
SB
80342013-04-13 Steven Bosscher <steven@gcc.gnu.org>
8035
8036 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
8037 notes, they are emitted only just before final.
8038 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
8039
1f397f45
SB
80402013-04-13 Steven Bosscher <steven@gcc.gnu.org>
8041
8042 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
8043 * cfgrtl.c (delete_insn): Call it here instead.
8044 * lra-spills.c (lra_final_code_change): Use delete_insn.
8045 * haifa-sched.c (sched_remove_insn): Likewise.
8046 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
8047 returning to the nop pool.
8048 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
8049 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
8050
58a51369
SB
80512013-04-12 Steven Bosscher <steven@gcc.gnu.org>
8052
8053 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
8054 * doc/tm.texi: Regenerated.
8055
33159866
UB
80562013-04-12 Uros Bizjak <ubizjak@gmail.com>
8057
8058 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
8059 QImode checks.
8060
226e378f
SB
80612013-04-12 Steven Bosscher <steven@gcc.gnu.org>
8062
8063 * df-core.c (df_find_def): Compare register numbers.
8064 (df_find_use): Likewise.
8065
fafb9b18
VM
80662013-04-12 Vladimir Makarov <vmakarov@redhat.com>
8067
8068 PR target/56903
8069 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
8070 lra_in_progress for return.
8071
9a946fd6
GY
80722013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
8073
8074 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
8075 define_insn into define_insn_and_split and emit movsicc patterns.
8076
41b83758
GY
80772013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
8078
8079 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
8080
d3afd9aa
RB
80812013-04-12 Richard Biener <rguenther@suse.de>
8082
8083 * tree-pass.h (TODO_do_not_ggc_collect): New.
8084 * passes.c (execute_one_ipa_transform_pass): Honor
8085 TODO_do_not_ggc_collect.
8086 (execute_one_pass): Likewise.
8087
8088 Revert
8089 2013-04-10 Richard Biener <rguenther@suse.de>
8090
8091 * passes.c (init_optimization_passes): Remove reload pass.
8092 * ira.c (do_reload): Merge into ...
8093 (ira): ... this.
8094 (rest_of_handle_reload): Remove.
8095 (pass_reload): Likewise.
8096 * config/i386/i386.c (ix86_option_override): Refer to ira instead
8097 of reload for vzeroupper pass placement.
8098
06f9b387
JJ
80992013-04-12 Jakub Jelinek <jakub@redhat.com>
8100
8101 PR tree-optimization/56918
8102 PR tree-optimization/56920
8103 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
8104 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
8105 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
8106 use wide_mul_with_sign method.
8107
953094d2
RB
81082013-04-12 Richard Biener <rguenther@suse.de>
8109
8110 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
8111 not be considered a gimple constant.
8112
bb506982
MG
81132013-04-12 Marc Glisse <marc.glisse@inria.fr>
8114
8115 * fold-const.c (const_binop): Handle vector shifts by a scalar.
8116 (fold_binary_loc): Call const_binop also for mixed vector-scalar
8117 operations.
8118
4b84d650
JJ
81192013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
8120 Jakub Jelinek <jakub@redhat.com>
8121
8122 * opts.c: Include diagnostic-color.h.
8123 (common_handle_option): Handle OPT_fdiagnostics_color_.
8124 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
8125 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
8126 (diagnostic-color.o): New.
8127 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
8128 (diagnostic_color_rule): New enum.
8129 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
8130 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
8131 the location string.
8132 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
8133 either NULL, or color kind.
8134 * diagnostic-color.c: New file.
8135 * diagnostic-color.h: New file.
8136 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
8137 arguments.
8138 * doc/invoke.texi (-fdiagnostics-color): Document.
8139 * pretty-print.h (pp_show_color): Define.
8140 (struct pretty_print_info): Add show_color field.
8141 * diagnostic.c: Include diagnostic-color.h.
8142 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
8143 macros. Colorize error:, warning: etc. strings and also the location
8144 string.
8145 (diagnostic_show_locus): Colorize the caret line.
8146 * pretty-print.c: Include diagnostic-color.h.
8147 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
8148 inside of %< %> quotes or quoted through q format modifier.
8149
067a1e71
AK
81502013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8151
33159866 8152 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
067a1e71 8153
33159866 81542013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b056c910
N
8155
8156 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
8157 code in CC_NZ mode.
8158 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
8159 pattern.
8160
7b55f98f
MP
81612013-04-11 Marek Polacek <polacek@redhat.com>
8162
8163 PR tree-optimization/48184
33159866 8164 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7b55f98f 8165
966b587e
EB
81662013-04-11 Eric Botcazou <ebotcazou@adacore.com>
8167
8168 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
8169 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
8170 (skip_simple_arithmetic): Tidy up.
8171 * tree.h (skip_simple_constant_arithmetic): Declare.
8172
33159866 81732013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f8bf91ab
N
8174
8175 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
8176
1d42c1ec
RB
81772013-04-11 Richard Biener <rguenther@suse.de>
8178
8179 * tree-vect-loop.c (get_initial_def_for_induction): Properly
8180 generate vector constants.
8181
4ba5ea11
RB
81822013-04-11 Richard Biener <rguenther@suse.de>
8183
8184 PR tree-optimization/56878
8185 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
8186 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
8187 New function.
8188 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8189 Prefer to align the DR with the most invariant base address.
8190
f0defe58
SKS
81912013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8192
8193 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
8194 comment.
8195
d07458be
JG
81962013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
8197
8198 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
8199 floating-point vector comparisons against 0.
8200
146b8692
JJ
82012013-04-11 Jakub Jelinek <jakub@redhat.com>
8202
8203 PR tree-optimization/56899
8204 * fold-const.c (extract_muldiv_1): Apply distributive law
8205 only if TYPE_OVERFLOW_WRAPS (ctype).
8206
b8578ff7
BC
82072013-04-11 Bin Cheng <bin.cheng@arm.com>
8208
8209 PR target/56124
8210 * ira-costs.c (scan_one_insn): Check whether the source rtx of
8211 loading has side effect.
8212
0ea8a6f9
SB
82132013-04-10 Steven Bosscher <steven@gcc.gnu.org>
8214
8215 * config/sparc/sparc.c: Include tree-pass.h.
8216 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
8217 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
8218 head of file. Change return type. Split off gate function.
8219 (sparc_gate_work_around_errata): New function.
8220 (pass_work_around_errata): New pass definition.
8221 (insert_pass_work_around_errata) New pass insert definition to
8222 insert pass_work_around_errata just after delayed-branch scheduling.
8223 (sparc_option_override): Insert the pass.
8224 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
8225
42e37616
DM
82262013-04-10 David S. Miller <davem@davemloft.net>
8227
89deeb3b
DM
8228 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
8229 or -mcpu=hypersparc.
8230
42e37616
DM
8231 * target.def (cstore_mode): New hook.
8232 * target.h: Include insn-codes.h
8233 * targhooks.c: Likewise.
8234 (default_cstore_mode): New function.
8235 * targhooks.h: Declare it.
8236 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
8237 * doc/tm.texi: Rebuild.
8238 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
8239 target hook, rather than inspecting the insn_data.
8240 * config/sparc/sparc.c (sparc_cstore_mode): New function.
8241 (TARGET_CSTORE_MODE): Redefine.
8242 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
8243 result patterns.
8244 * config/sparc/predicates.md (cstore_result_operand): New special
8245 predicate.
8246 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
8247 Use it for operand 0.
8248 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
8249 (*snesi_special): Likewise.
8250 (*snesi_zero): Likewise.
8251 (*seqsi_zero): Likewise.
8252 (*sltu_insn): Likewise.
8253 (*sgeu_insn): Likewise.
8254 (*seqdi_special): Make operand 0 and comparison operation be of
8255 DImode.
8256 (*snedi_special): Likewise.
8257 (*snedi_special_vis3): Likewise.
8258 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
8259 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
8260 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
8261 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
8262 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
8263 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
8264 (*sltu_extend_sp64): Likewise.
8265 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
8266 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
8267 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
8268 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
8269 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
8270
95ca411e
YZ
82712013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
8272
8273 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
8274 (aarch64_start_file): Use the new function.
8275
6782438d 82762013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33159866 8277 Jason Merrill <jason@redhat.com>
6782438d
SKS
8278
8279 * common.opt: Add -gdwarf.
8280 * opts.c (common_handle_option): Handle it.
8281 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
8282
bb313b93
RB
82832013-04-10 Richard Biener <rguenther@suse.de>
8284
8285 * passes.c (execute_todo): Do not call ggc_collect conditional here.
8286 (execute_one_ipa_transform_pass): But unconditionally here.
8287 (execute_one_pass): And here.
8288 (init_optimization_passes): Remove reload pass.
8289 * tree-pass.h (TODO_ggc_collect): Remove.
8290 (pass_reload): Likewise.
8291 * ira.c (do_reload): Merge into ...
8292 (ira): ... this.
8293 (rest_of_handle_reload): Remove.
8294 (pass_reload): Likewise.
8295 * config/i386/i386.c (ix86_option_override): Refer to ira instead
8296 of reload for vzeroupper pass placement.
8297 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
8298 and todo_flags_finish of all passes.
8299
793d9a16
RB
83002013-04-10 Richard Biener <rguenther@suse.de>
8301
8302 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
8303 first_const_oprnd field, rename first_def_type to first_op_type.
8304 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
8305 (vect_get_and_check_slp_defs): Always use the type of the
8306 operand. Allow mixed vect_external_def, vect_constant_def types.
8307 (vect_get_constant_vectors): Handle mixed vect_external_def,
8308 vect_constant_def types.
8309
ee8a9b7b
JR
83102013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
8311
8312 PR tree-optimization/55524
8313 * tree-ssa-math-opts.c
8314 (convert_mult_to_fma): Don't use an fms construct
8315 when we don't have an fms operation, but fnma, and it looks
8316 likely that we'll be able to use the latter.
8317
6957a6f6
ZZ
83182013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
8319
8320 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
8321 function.
8322 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
8323 inline fail caused by overwritable functions.
8324
34ab4a5b
CJW
83252013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
8326
8327 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
8328 unnecessary bits in the constant power of two case.
8329
abf9bfbc
RB
83302013-04-10 Richard Biener <rguenther@suse.de>
8331
8332 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
8333 broken code swapping operands.
8334 (vect_build_slp_tree): Do not compute load permutations here.
8335 (vect_analyze_slp_instance): Compute load permutations here,
8336 after building the SLP tree.
8337
f408477e
CB
83382013-04-09 Christian Bruel <christian.bruel@st.com>
8339
8340 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
8341 of next/prev_real_insn.
8342
5ac42672
JH
83432013-04-09 Jan Hubicka <jh@suse.cz>
8344
abf9bfbc
RB
8345 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
8346 Drop aliased parameter.
5ac42672
JH
8347 (function_and_variable_visibility): Do not handle alias pairs.
8348 * cgraph.c (varpool_externally_visible_p): Update prototype.
8349 * varpool.c (varpool_add_new_variable): Update.
8350
5017f1d2
KT
83512013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8352
8353 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
8354
48eecbee
SB
83552013-04-09 Steven Bosscher <steven@gcc.gnu.org>
8356
a949cf1c
SB
8357 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
8358
48eecbee
SB
8359 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
8360
75ef8e3d
MP
83612013-04-09 Marek Polacek <polacek@redhat.com>
8362
8363 PR tree-optimization/48762
33159866 8364 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
75ef8e3d 8365
23847df4
RB
83662013-04-09 Richard Biener <rguenther@suse.de>
8367
8368 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
8369 dealing with cost.
8370 (vect_build_slp_tree): Likewise.
8371 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
8372 calculating the cost of a SLP instance.
8373 (vect_analyze_slp_instance): Use it from here, after building
8374 the SLP tree.
8375
ea3a0fde
JJ
83762013-04-09 Jakub Jelinek <jakub@redhat.com>
8377
8378 PR middle-end/56883
8379 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
8380 expand_omp_for_static_chunk): Use simple_p = true in
8381 force_gimple_operand_gsi calls when assigning to addressable decls.
8382
a32dfe9d
JL
83832013-04-09 Jeff Law <law@redhat.com>
8384
8385 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
8386 when the boolean was created by converting a wider object which
8387 had a boolean range.
8388
d755c7ef
RB
83892013-04-09 Richard Biener <rguenther@suse.de>
8390
8391 * tree-vectorizer.h (slp_void_p): Remove.
8392 (slp_tree): Typedef before _slp_tree declaration.
8393 (struct _slp_tree): Use a vector of slp_tree as children.
8394 (vect_get_place_in_interleaving_chain): Remove.
8395 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
8396 Move ...
8397 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
8398 and make static.
8399 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
8400 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
8401 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
8402 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
8403 Use slp_node instead of slp_void_p and adjust.
8404
3d741091
RB
84052013-04-09 Richard Biener <rguenther@suse.de>
8406
8407 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
8408 work that is not necessary.
8409
39307ba7
JJ
84102013-04-09 Jakub Jelinek <jakub@redhat.com>
8411
8412 PR tree-optimization/56854
8413 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
8414 forward into clobber stmts if it would change MEM_REF lhs into
8415 non-MEM_REF.
8416
343881fd
MK
84172013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
8418
8419 * tree.c (type_hash_lookup, type_hash_add): Make static.
8420 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
8421
3922658a
RB
84222013-04-09 Richard Biener <rguenther@suse.de>
8423
8424 * tree.h (unsave_expr_now): Remove.
8425 * tree-inline.c (mark_local_for_remap_r): Remove.
8426 (unsave_expr_1): Likewise.
8427 (unsave_r): Likewise.
8428 (unsave_expr_now): Likewise.
8429 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
8430 (propagate_tree_value): Likewise.
8431
9fb6b620
SB
84322013-04-08 Steven Bosscher <steven@gcc.gnu.org>
8433
8434 * doc/rtl.texi (sequence): Rewrite documentation to match the
8435 current use of SEQUENCE rtl objects.
8436 * rtl.def (SEQUENCE): Likewise.
8437
8438 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
8439 Update documentation.
8440 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
8441 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
8442
8443 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
8444
8ddb5a29
TJ
84452013-04-08 Teresa Johnson <tejohnson@google.com>
8446
8447 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
8448 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33159866 8449 methods.
8ddb5a29
TJ
8450 (estimate_edge_size_and_time): Add comment to suggest using rounding
8451 methods.
8452 (estimate_node_size_and_time): Ditto.
8453 (remap_edge_change_prob): Use helper rounding divide methods.
8454 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
8455 (gimple_mod_pow2_value_transform): Ditto.
8456 (gimple_mod_subtract_transform): Ditto.
8457 (gimple_ic_transform): Ditto.
8458 (gimple_stringops_transform): Ditto.
8459 * stmt.c (conditional_probability): Ditto.
8460 (emit_case_dispatch_table): Ditto.
8461 * lto-cgraph.c (merge_profile_summaries): Ditto.
8462 * tree-optimize.c (execute_fixup_cfg): Ditto.
8463 * cfgcleanup.c (try_forward_edges): Ditto.
8464 * cfgloopmanip.c (scale_loop_profile): Ditto.
8465 (loopify): Ditto.
8466 (duplicate_loop_to_header_edge): Ditto.
8467 (lv_adjust_loop_entry_edge): Ditto.
8468 * tree-vect-loop.c (vect_transform_loop): Ditto.
8469 * profile.c (compute_branch_probabilities): Ditto.
8470 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
8471 * lto-streamer-in.c (input_cfg): Ditto.
8472 * gimple-streamer-in.c (input_bb): Ditto.
8473 * ipa-cp.c (update_profiling_info): Ditto.
8474 (update_specialized_profile): Ditto.
8475 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
8476 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33159866 8477 rounding methods.
8ddb5a29
TJ
8478 * sched-rgn.c (compute_dom_prob_ps): Ditto.
8479 (compute_trg_info): Ditto.
8480 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
8481 (purge_dead_edges): Ditto.
8482 * loop-unswitch.c (unswitch_loop): Ditto.
8483 * cgraphclones.c (cgraph_clone_edge): Ditto.
8484 (cgraph_clone_node): Ditto.
8485 * tree-inline.c (copy_bb): Ditto.
8486 (copy_edges_for_bb): Ditto.
8487 (initialize_cfun): Ditto.
8488 (copy_cfg_body): Ditto.
8489 (expand_call_inline): Ditto.
8490
661e6bd7
KT
84912013-04-08 Kai Tietz <ktietz@redhat.com>
8492
8493 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
8494 TARGET_CYGWIN64 by TARGET_64BIT.
8495
105766f3
JR
84962013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
8497
8498 * config/epiphany/epiphany.md (GPR_1): New constant.
8499 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
8500 * config/epiphany/epiphany.c (gen_compare_reg):
8501 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
8502 is already in place.
8503 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
8504 Don't require being called during rtl expansion; If y operlaps r0,
8505 return 0.
8506 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
8507 (epiphany_expand_epilogue): Likewise.
8508
8afab237
JR
8509 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
8510 Don't use CC_FPmode for ORDERED / UNORDERED.
33159866 8511 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8afab237 8512
fa7707d6
JR
8513 * config/epiphany/constraints.md (CnL): New constraint.
8514 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
8515 * config/epiphany/predicates.md (add_operand): Allow 1024.
8516
5138e18d
JR
8517 * config/epiphany/epiphany.md (logical_op): New code iterator.
8518 (op_mnc): New code attribute.
8519 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
8520 (mov_f+1, mov_f+2): New peephole2 patterns.
8521
2ccc703d
JR
8522 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
8523 (cstoresi4): Also allow re-use of zero result when doing a NE
8524 comparison to a non-zero operand.
aefb0819 8525 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2ccc703d 8526
093ac0a5
JR
8527 * config/epiphany/epiphany.md (<insn_opname>v2si3):
8528 Use gen_addsi3_i / gen_subsi3_i.
8529
f223bb13
JJ
85302013-04-08 Jakub Jelinek <jakub@redhat.com>
8531
8532 PR c++/34949
8533 PR c++/50243
8534 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
8535 contain anything but clobbers, at most one __builtin_stack_restore,
8536 optionally debug stmts and final resx, and if it has at least one
8537 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
8538 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
8539 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
8540 which isn't defaut definition, remove them.
8541 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
8542 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
8543 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
8544 with MEM_REF LHS with SSA_NAME address.
8545
4481581f
JL
85462013-04-08 Jeff Law <law@redhat.com>
8547
8548 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
a32dfe9d 8549
451dabda
RB
85502013-04-08 Richard Biener <rguenther@suse.de>
8551
8552 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
8553 extra newline.
8554 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
8555 determined vector type.
8556 (vect_analyze_data_refs): Likewise.
8557 (vect_get_new_vect_var): Adjust.
8558 (vect_create_destination_var): Preserve SSA name versions.
8559 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
8560 not dump anything here.
8561
3b088b47
JR
85622013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
8563
8564 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
8565 Add member lr_slot_known.
8566 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
8567 if necessary.
8568 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
8569 Remove code that sets lr_slot_offset according to what a previous
8570 version of epiphany_emit_save_restore used to do.
8571 (epiphany_emit_save_restore): When doing an lr save or restore,
8572 set/verify lr_slot_known and lr_slot_offset.
8573
d8484d41
XQ
85742013-04-08 Xinyu Qi <xyqi@marvell.com>
8575
33159866
UB
8576 PR target/54338
8577 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
d8484d41
XQ
8578 in ALL_REGS.
8579
481be1c4
RB
85802013-04-08 Richard Biener <rguenther@suse.de>
8581
8582 * alias.c (find_base_term): Fix thinko in previous change.
8583
401f3a81
JJ
85842013-04-08 Jakub Jelinek <jakub@redhat.com>
8585
8586 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
8587 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
8588 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
8589 if possible to compute val.
8590 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
8591 For QImode integers don't require anything about precision. Use
8592 const_with_all_bytes_same to find out if the constant doesn't have
8593 repeated bytes in it.
8594
03ed99a8
AK
85952013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8596
8597 * config/s390/s390.c (s390_expand_insv): Only accept insertions
8598 within mode size.
8599
781b2e62
MP
86002013-04-08 Marek Polacek <polacek@redhat.com>
8601
8602 PR rtl-optimization/48182
8603 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
8604 value to 1.
8605
27e430a2
JDA
86062013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8607
8608 PR target/55487
8609 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
8610 nuses, make sure we have a label.
8611
4902aa64
BS
86122013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8613
8614 PR target/56843
8615 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
8616 (rs6000_emit_swdiv_low_precision): Remove.
8617 (rs6000_emit_swdiv): Rewrite to handle between one and four
8618 iterations of Newton-Raphson generally; modify required number of
8619 iterations for some cases.
8620 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
8621
7bca81dc
SB
86222013-04-05 Steven Bosscher <steven@gcc.gnu.org>
8623
8624 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
8625 set-but-unused variable.
8626
8627 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
8628 basic blocks of released function bodies garbage-collectable.
8629
8630 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
8631 (struct rtl_opt_pass): Add TODO_df_finish.
8632
8633 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
8634
4542a38a
GY
86352013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8636
8637 * config/arm/constraints.md (q): New constraint.
8638 * config/arm/ldrdstrd.md: New file.
8639 * config/arm/arm.md (ldrdstrd.md) New include.
8640 (arm_movdi): Use "q" instead of "r" constraint
8641 for double-word memory access.
8642 (movdf_soft_insn): Likewise.
8643 * config/arm/vfp.md (movdi_vfp): Likewise.
8644 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33159866 8645 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4542a38a
GY
8646 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
8647 (mem_ok_for_ldrd_strd): Likewise.
8648 (output_move_double): Update assertion.
8649
2385b218
GY
86502013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8651
8652 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
8653
75fe1cb5
GY
86542013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8655
8656 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
8657 define_insn_and_split.
8658 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
8659
dd660e8e
GY
86602013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8661
8662 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
8663 define_insn_and_split.
33159866 8664 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
dd660e8e
GY
8665 (shiftsi3_compare): New pattern.
8666 (rrx): New pattern.
8667 * config/arm/unspecs.md (UNSPEC_RRX): New.
8668
045e472c
GY
86692013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8670
8671 * config/arm/arm.md (negdi_extendsidi): New pattern.
8672 (negdi_zero_extendsidi): Likewise.
8673
3f3bf1a8
GY
86742013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8675
8676 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
8677 define_insn_and_split.
8678 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
8679 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
8680
b0b49556
GY
86812013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8682
8683 * config/arm/arm.md (arm_subdi3): Convert define_insn into
8684 define_insn_and_split.
8685 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
8686 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
8687
d633dd84
GY
86882013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8689
8690 * config/arm/arm.md (subsi3_carryin): New pattern.
8691 (subsi3_carryin_const): Likewise.
8692 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
8693 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
8694
f4499066
GY
86952013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8696
8697 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
8698
ceef6fd9
GY
86992013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8700
8701 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
d633dd84 8702 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
ceef6fd9 8703
ddbdd8a7
KT
87042013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8705
8706 * config/arm/arm.c (arm_expand_builtin): Change fcode
8707 type to unsigned int.
8708
8456d78a
RR
87092013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8710
8711 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
8712
526c230f
ILT
87132013-04-04 Ian Lance Taylor <iant@google.com>
8714
33159866
UB
8715 * doc/standards.texi (Standards): The Go frontend supports the Go 1
8716 language standard.
526c230f 8717
3cfbe04d
SB
87182013-04-04 Steven Bosscher <steven@gcc.gnu.org>
8719
8720 PR middle-end/56729
8721 * df-scan.c (df_insn_delete): Disable failing assert.
8722
dfa3f8d0
KT
87232013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8724
8725 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
8726 New function prototype.
8727 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
8728 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
8729 (arm_builtin_vectorized_function): New function.
8730
f7837758
KT
87312013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8732
8733 * config/arm/arm_neon_builtins.def: New file.
8734 * config/arm/arm.c (neon_builtin_data): Move contents to
8735 arm_neon_builtins.def.
8736 (enum arm_builtins): Include neon builtin definitions.
8737 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33159866 8738 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
f7837758 8739
39c1b6db
MP
87402013-04-04 Marek Polacek <polacek@redhat.com>
8741
8742 PR tree-optimization/48186
8743 * predict.c (maybe_hot_frequency_p): Return false if
8744 HOT_BB_FREQUENCY_FRACTION is 0.
8745 (cgraph_maybe_hot_edge_p): Likewise.
8746
314f64eb
RB
87472013-04-04 Richard Biener <rguenther@suse.de>
8748
8749 PR tree-optimization/56826
8750 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
8751 more accurately.
8752
51a905b2
RB
87532013-04-04 Richard Biener <rguenther@suse.de>
8754
8755 PR tree-optimization/56213
8756 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33159866 8757 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
51a905b2 8758
f1bf4f3a
RB
87592013-04-04 Richard Biener <rguenther@suse.de>
8760
8761 PR tree-optimization/56837
8762 * tree-loop-distribution.c (classify_partition): For non-zero
8763 values require that the value has the same precision as its
8764 mode to be useful as memset value.
8765
0bca7ded
NC
87662013-04-03 Nick Clifton <nickc@redhat.com>
8767
33159866 8768 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
0bca7ded
NC
8769 (fmssf4): Use fmsf.s on E3V5 architectures.
8770 (fnmasf4): Use fnmaf.s on E3V5 architectures.
8771 (fnmssf4): Use fnmsf.s on E3V5 architectures.
8772
b4019227
JL
87732013-04-03 Jeff Law <law@redhat.com>
8774
8775 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
8776 (lra-eliminations.o): Likewise.
8777
f57ddb5b
TJ
87782013-04-03 Teresa Johnson <tejohnson@google.com>
8779
8780 * gcov-io.c (compute_working_sets): Moved most of body of old
33159866 8781 compute_working_sets here from profile.c.
f57ddb5b 8782 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33159866
UB
8783 (gcov_working_set_t): Moved typedef here from basic-block.h
8784 (compute_working_set): Declare.
f57ddb5b
TJ
8785 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
8786 (get_working_sets): Renamed from compute_working_set,
33159866 8787 replace most of body with call to new compute_working_sets.
f57ddb5b 8788 (get_exec_counts): Replace call to compute_working_sets
33159866
UB
8789 to get_working_sets.
8790 * profile.h (get_working_sets): Renamed from compute_working_set.
f57ddb5b 8791 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33159866 8792 to get_working_sets.
f57ddb5b
TJ
8793 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
8794 * gcov-dump.c (dump_working_sets): New function.
8795
5e0919f1
KZ
87962013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
8797
8798 * hwint.c (sext_hwi, zext_hwi): New functions.
8799 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
8800 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
8801 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
8802 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
8803 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
8804 (sext_hwi, zext_hwi): New functions.
0bca7ded 8805
be672e08
JL
88062013-04-03 Jeff Law <law@redhat.com>
8807
8808 PR tree-optimization/56799
33159866
UB
8809 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
8810 back test for widening conversion erroneously dropped in prior change.
be672e08 8811
9d821fa5
KT
88122013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8813
8814 PR target/56809
8815 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
8816 instead of next_real_insn.
8817
71c581e7
MP
88182013-04-03 Marek Polacek <polacek@redhat.com>
8819
8820 PR sanitizer/55702
33159866 8821 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
71c581e7 8822
4a32ef80
KT
88232013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8824
8825 PR target/56809
8826 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
8827 next_real_insn.
8828 (thumb1_output_casesi): Likewise.
8829 (thumb2_output_casesi): Likewise.
8830
1b2253d4
RB
88312013-04-03 Richard Biener <rguenther@suse.de>
8832
8833 PR tree-optimization/56817
8834 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
8835 Split out ...
8836 (tree_unroll_loops_completely_1): ... new function to manually
8837 walk the loop tree, properly defering outer loops of unrolled
8838 loops to later iterations.
8839
38000232
MG
88402013-04-03 Marc Glisse <marc.glisse@inria.fr>
8841
8842 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
8843 (vectorizable_load): Likewise.
8844 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
8845 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
8846
3fa35298
MG
88472013-04-03 Marc Glisse <marc.glisse@inria.fr>
8848
8849 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
8850 BIT_FIELD_REF.
8851
b3d45ff0
UW
88522013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8853
8854 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
8855
ec9202a8
BC
88562013-04-03 Bin Cheng <bin.cheng@arm.com>
8857
8858 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
8859
6805bd36
MG
88602013-04-03 Marc Glisse <marc.glisse@inria.fr>
8861
8862 PR tree-optimization/56790
33159866
UB
8863 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
8864 folding.
6805bd36 8865
da694a77
MG
88662013-04-03 Marc Glisse <marc.glisse@inria.fr>
8867
8868 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8869 Handle VEC_MERGE.
8870 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
8871 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
8872 equal arguments.
8873
4e7d7b3d
JJ
88742013-04-03 Jakub Jelinek <jakub@redhat.com>
8875
8876 PR c/19449
8877 * tree.h (force_folding_builtin_constant_p): New decl.
8878 * builtins.c (force_folding_builtin_constant_p): New variable.
8879 (fold_builtin_constant_p): Fold immediately also if
8880 force_folding_builtin_constant_p.
8881
e6c9d234
RB
88822013-04-03 Richard Biener <rguenther@suse.de>
8883
8884 PR tree-optimization/56812
8885 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
8886 DRs of the same interleaving chain are independent.
8887
984d07dd
JM
88882013-04-02 Jason Merrill <jason@redhat.com>
8889
8890 * gdbinit.in (pbb): Use debug fn.
8891
622849c9
LC
88922013-04-02 Lawrence Crowl <crowl@google.com>
8893
8894 * sese.h (struct ivtype_map_elt_s): Remove unused.
8895 (extern debug_ivtype_map): Remove unused.
8896 (extern eq_ivtype_map_elts): Remove unused.
8897 * sese.c (debug_ivtype_map): Removed unused.
8898 (debug_ivtype_map_1): Removed unused.
8899 (debug_ivtype_elt): Remove unused.
8900 (eq_ivtype_map_elts): Remove unused.
8901
8902
82c0e1a0
KT
89032013-04-02 Kai Tietz <ktietz@redhat.com>
8904
8905 PR target/52790
8906 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
8907 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33159866
UB
8908 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
8909 function.
82c0e1a0
KT
8910 (legitimize_pe_coff_symbol): Likewise.
8911 (is_imported_p): New helper-function.
8912 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
8913 for Windows x64 targets.
8914 (ix86_expand_prologue): Optimize for pe-coff targets.
8915 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
8916 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
8917 medium/large code-model.
8918 (legitimize_pic_address): Likewise.
8919 (legitimize_tls_address): Likewise.
8920 (ix86_expand_call): Likewise.
8921 (x86_output_mi_thunk): Likewise.
8922 (get_dllimport_decl): Add new beimport argument.
8923 (construct_plt_address): Don't assert for x64 pe-coff targets.
8924 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
8925 targets.
8926 (SYMBOL_FLAG_STUBVAR): New macro.
8927 (SYMBOL_REF_STUBVAR_P): Likewise.
8928 * config/i386/winnt.c (stub_list): New structure.
8929 (stub_head): New local variable.
8930 (i386_pe_record_stub): New function.
8931 (i386_pe_file_end): Emit refptr-stubs.
8932
5d751b0c
JJ
89332013-04-02 Jakub Jelinek <jakub@redhat.com>
8934
09bb4c99
JJ
8935 PR rtl-optimization/56745
8936 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
8937 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
8938
a1d8947a
JJ
8939 PR c++/34949
8940 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
8941 and both of them are MEM_REFs, just compare first argument for
8942 equality and attempt to deal even with differing offsets.
8943
5d751b0c
JJ
8944 PR c++/34949
8945 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
8946 of gimple_clobber_p to be MEM_REF.
8947 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
8948 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
8949 after gimplification.
8950 * asan.c (get_mem_ref_of_assignment): Don't instrument
8951 gimple_clobber_p stmts.
8952 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
8953 gimple_clobber_p stmt if they have MEM_REF lhs and
8954 are dead because of another gimple_clobber_p stmt.
8955 * tree-ssa-live.c (clear_unused_block_pointer): Treat
8956 gimple_clobber_p stmts like debug stmts.
8957 (remove_unused_locals): Remove clobbers with MEM_REF lhs
8958 that refer to unused VAR_DECLs or uninitialized values.
8959 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
8960 gimple_clobber_p stmts if they refer to removed parameters.
8961 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
8962 formatting.
8963
e594716a
UB
89642013-04-02 Uros Bizjak <ubizjak@gmail.com>
8965
8966 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
8967 using SWI48 mode attribute.
8968
7a80735b
WM
89692013-04-02 Wei Mi <wmi@google.com>
8970
8971 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
8972 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
8973 *<rotate_insn><mode>3_mask in i386.md.
8974
f423a9e4
AI
89752013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
8976
8977 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
8978
90eb75f2
RB
89792013-04-02 Richard Biener <rguenther@suse.de>
8980
8981 PR tree-optimization/56778
8982 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
8983 Runtime alias tests are not supported for gather loads.
8984 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
8985 stmts referenced from SSA operands before updating SSA form.
8986
d8c69a92
IC
89872013-04-02 Ian Caulfield <ian.caulfield@arm.com>
8988 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8989
8990 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
8991 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
8992 * config/arm/cortex-a53.md: New file.
8993 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
8994 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
8995 * config/arm/arm.c (arm_issue_rate): Likewise.
8996 * config/arm/arm-tune.md: Regenerate
8997 * config/arm/arm-tables.opt: Regenerate.
8998 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 8999
239eb04c
ZC
90002013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
9001
9002 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
9003 non-static link.
9004
c902d3c8
SN
90052013-04-02 Sofiane Naci <sofiane.naci@arm.com>
9006
d8c69a92
IC
9007 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
9008 scalar load/store operations using B/H registers.
c902d3c8
SN
9009 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
9010
051d0e2f
SN
90112013-04-02 Sofiane Naci <sofiane.naci@arm.com>
9012
9013 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
9014 scalar move.
9015 * config/aarch64/aarch64.c
9016 (aarch64_simd_scalar_immediate_valid_for_move): New.
9017 * config/aarch64/aarch64-protos.h
9018 (aarch64_simd_scalar_immediate_valid_for_move): New.
9019 * config/aarch64/constraints.md (Dh, Dq): New.
9020 * config/aarch64/iterators.md (hq): New.
9021
0ee1e3d9
EB
90222013-04-02 Eric Botcazou <ebotcazou@adacore.com>
9023
9024 * reorg.c (get_branch_condition): Deal with conditional returns.
9025 (fill_simple_delay_slots): Remove dead code dealing with jumps.
9026
136fb3f7
WM
90272013-04-01 Wei Mi <wmi@google.com>
9028
9029 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
9030 Truncate operand 2 using %b asm operand modifier.
9031 (*<shift_insn><mode>3_mask): Ditto.
9032 (*<rotate_insn><mode>3_mask): Ditto.
9033
6388c738
SB
90342013-04-01 Steven Bosscher <steven@gcc.gnu.org>
9035
9036 PR middle-end/56798
9037 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
9038
f7a4d826
KK
90392013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
9040
9041 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
9042 of next_real_insn.
9043 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
9044
4b943a49
LC
90452013-03-30 Lawrence Crowl <crowl@google.com>
9046
9047 * dse.c (clear_alias_sets): Remove never set.
9048 (disqualified_clear_alias_sets): Remove never set.
9049 (clear_alias_mode_pool): Remove never set.
9050 (dse_step0): Remove condition that is never true.
9051 (canon_address): Remove condition that is never true.
9052 (dse_step7): Remove condition that is never true.
9053 (rest_of_handle_dse): Remove condition that is never true.
9054 (rest_of_handle_dse::did_global): Remove never read from above.
9055 (dse_step2_spill): Remove never called from above.
9056 (dse_step5_spill): Remove never called from above.
9057
39718607
SB
90582013-03-30 Steven Bosscher <steven@gcc.gnu.org>
9059
da5c6bde
SB
9060 * doc/md.texi (Standard Names) <casesi>: Update documentation for
9061 JUMP_TABLE_DATA changes.
9062 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
9063 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
9064 (Insns) <jump_table_data>: New entry.
9065 * doc/tm.texi: Regenerate.
9066
39718607
SB
9067 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
9068
9069 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
9070 for table jump at the end of a basic block using tablejump_p.
9071 * targhooks.c (default_invalid_within_doloop): Likewise.
9072 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
9073 target hook implementation that is identical to the default hook.
9074 (rs6000_invalid_within_doloop): Remove.
9075
9076 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
9077 unused variable from tablejump_p call.
9078
9079 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
9080 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
9081 (INSN_DELETED_P): Likewise.
9082 (emit_jump_table_data): New prototype.
9083 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
9084 after 4th as unused.
9085 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
9086 * sched-vis.c (print_insn): Likewise.
9087 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
9088 insn for compatibility with back ends that use next_active_insn to
9089 identify jump table data.
9090 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
9091 (remove_insn): Likewise.
9092 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
9093 to be emitted.
9094 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
9095 (emit_jump_table_data): New function.
9096
9097 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
9098 basic block, a JUMP_TABLE_DATA never is.
9099 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
9100 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
9101 off from code handling real insns.
9102 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
9103 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
9104 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
9105 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
9106 is not a NONDEBUG_INSN_P.
9107 * ira-costs.c (scan_one_insn): Likewise.
9108 * jump.c (mark_all_labels): Likewise.
9109 (mark_jump_label_1): Likewise.
9110 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
9111 * lra.c (get_insn_freq): Expect all insns reaching here to be in
9112 a basic block.
9113 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
9114 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
9115 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
9116 JUMP_TABLE_DATA_P insns.
9117 (calculate_elim_costs_all_insns): Likewise.
9118 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
9119 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
9120 (delete_output_reload): Code style fixups.
9121 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
9122 insn flags on this non-insn.
9123 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
9124 as scheduling barriers, for pre-change compatibility.
9125 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
9126 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
9127
9128 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
9129 redundant JUMP_TABLE_DATA_P test.
9130 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
9131 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
9132 (frv_for_each_packet): Likewise.
9133 * config/i386/i386.c (min_insn_size): Likewise.
9134 (ix86_avoid_jump_mispredicts): Likewise.
9135 * config/m32r/m32r.c (m32r_is_insn): Likewise.
9136 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
9137 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
9138 (mips16_insn_length): Robustify.
9139 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
9140 (mips16_split_long_branches): Likewise.
9141 * config/pa/pa.c (pa_combine_instructions): Likewise.
9142 * config/rs6000/rs6000.c (get_next_active_insn): Treat
9143 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
9144 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
9145 as contributing to pool range lengths.
9146 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
9147 Remove redundant JUMP_TABLE_DATA_P test.
9148 (sh_loop_align): Likewise.
9149 (split_branches): Likewise.
9150 (sh_insn_length_adjustment): Likewise.
9151 * config/spu/spu.c (get_branch_target): Likewise.
9152
0208f7da
JH
91532013-03-29 Jan Hubicka <jh@suse.cz>
9154
9155 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
9156 gcov streaming; stream hot bb threshold to ltrans.
9157 * predict.c (get_hot_bb_threshold): Break out from ....
9158 (maybe_hot_count_p): ... here.
9159 (set_hot_bb_threshold): New function.
9160 * lto-section-in.c (lto_section_name): Add profile.
9161 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
9162 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
9163 and data-streamer.h
9164 (histogram_entry): New structure.
9165 (histogram, histogram_pool): New global vars.
9166 (histogram_hash): New structure.
9167 (histogram_hash::hash): New method.
9168 (histogram_hash::equal): Likewise.
9169 (account_time_size): New function.
9170 (cmp_counts): New function.
9171 (dump_histogram): New function.
9172 (ipa_profile_generate_summary): New function.
9173 (ipa_profile_write_summary): New function.
9174 (ipa_profile_read_summary): New function.
9175 (ipa_profile): Decide on threshold.
e594716a
UB
9176 (pass_ipa_profile): Add ipa_profile_write_summary and
9177 ipa_profile_read_summary.
0208f7da
JH
9178 * Makefile.in (ipa.o): Update dependencies.
9179 * lto-streamer.h (LTO_section_ipa_profile): New section.
9180
5a6ccc94
GDR
91812013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
9182
9183 * tree.h (VAR_P): New.
9184
39385fa6
PC
91852013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
9186
9187 PR lto/56777
9188 * doc/invoke.texi ([-fwhole-program]): Fix typo.
9189
34f0d87a
SB
91902013-03-29 Steven Bosscher <steven@gcc.gnu.org>
9191
9192 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
9193 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
9194 (control_flow_insn_p): Likewise.
9195 * cfgrtl.c (duplicate_insn_chain): Likewise.
9196 * final.c (get_attr_length_1): Likewise.
9197 (shorten_branches): Likewise.
9198 (final_scan_insn): Likewise.
9199 * function.c (instantiate_virtual_regs): Likewise.
9200 * gcse.c (insert_insn_end_basic_block): Likewise.
9201 * ira-costs.c (scan_one_insn): Likewise.
9202 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
9203 * lra.c (check_rtl): Likewise.
9204 * reload1.c (elimination_costs_in_insn): Likewise.
9205 * reorg.c (follow_jumps): Likewise.
9206
9207 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
9208 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
9209 (thumb_far_jump_used_p): Likewise.
9210 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
9211 (workaround_speculation): Likewise.
9212 (add_sched_insns_for_speculation): Likewise.
9213 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
9214 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
9215 (frv_for_each_packet): Likewise.
9216 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
9217 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
9218 (final_emit_insn_group_barriers): Likewise.
9219 * config/m32r/m32r.c (m32r_is_insn): Likewise.
9220 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
9221 (mips16_insn_length): Likewise.
9222 * config/pa/pa.c (pa_reorg): Likewise.
9223 (pa_combine_instructions): Likewise.
9224 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
9225 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
9226 (sh_reorg): Likewise.
9227 (split_branches): Likewise.
9228 * config/spu/spu.c (get_branch_target): Likewise.
9229
9230 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
9231 JUMP_TABLE_DATA_P.
9232
4ac761b0
KY
92332013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
9234
39385fa6 9235 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
9236 Fix declaration name.
9237
58a49189
LC
92382013-03-28 Lawrence Crowl <crowl@google.com>
9239
9240 * graphds.h (struct graph.indicies): Remove unused.
9241 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
9242 (SCOP_ORIGINAL_PDDRS): Remove unused.
9243 * sese.h (extern insert_loop_close_phis): Removed unused.
9244 (extern insert_guard_phis): Removed unused.
9245 (extern ivtype_map_elt_info): Removed unused.
9246 (new_ivtype_map_elt): Removed unused.
9247 * sese.c (ivtype_map_elt_info): Removed unused.
9248
7b3b6ae4
LC
92492013-03-28 Lawrence Crowl <crowl@google.com>
9250
9251 * Makefile.in: Add several missing include dependences.
9252 (DUMPFILE_H): New.
9253 (test-dump.o): New. This object is not added to any executable,
9254 but is present for ad-hoc testing.
9255 * bitmap.c
9256 (debug (const bitmap_head_def &)): New.
9257 (debug (const bitmap_head_def *)): New.
9258 * bitmap.h
9259 (extern debug (const bitmap_head_def &)): New.
9260 (extern debug (const bitmap_head_def *)): New.
9261 * cfg.c
9262 (debug (edge_def &)): New.
9263 (debug (edge_def *)): New.
9264 * cfghooks.c
9265 (debug (basic_block_def &)): New.
9266 (debug (basic_block_def *)): New.
9267 * dumpfile.h
9268 (dump_node (const_tree, int, FILE *)): Correct source file.
9269 * dwarf2out.c
9270 (debug (die_struct &)): New.
9271 (debug (die_struct *)): New.
9272 * dwarf2out.h
9273 (extern debug (die_struct &)): New.
9274 (extern debug (die_struct *)): New.
9275 * gimple-pretty-print.c
9276 (debug (gimple_statement_d &)): New.
9277 (debug (gimple_statement_d *)): New.
9278 * gimple-pretty-print.h
9279 (extern debug (gimple_statement_d &)): New.
9280 (extern debug (gimple_statement_d *)): New.
9281 * ira-build.c
9282 (debug (ira_allocno_copy &)): New.
9283 (debug (ira_allocno_copy *)): New.
9284 (debug (ira_allocno &)): New.
9285 (debug (ira_allocno *)): New.
9286 * ira-int.h
9287 (extern debug (ira_allocno_copy &)): New.
9288 (extern debug (ira_allocno_copy *)): New.
9289 (extern debug (ira_allocno &)): New.
9290 (extern debug (ira_allocno *)): New.
9291 * ira-lives.c
9292 (debug (live_range &)): New.
9293 (debug (live_range *)): New.
9294 * lra-int.h
9295 (debug (lra_live_range &)): New.
9296 (debug (lra_live_range *)): New.
9297 * lra-lives.c
9298 (debug (lra_live_range &)): New.
9299 (debug (lra_live_range *)): New.
9300 * omega.c
9301 (debug (omega_pb_d &)): New.
9302 (debug (omega_pb_d *)): New.
9303 * omega.h
9304 (extern debug (omega_pb_d &)): New.
9305 (extern debug (omega_pb_d *)): New.
9306 * print-rtl.c
9307 (debug (const rtx_def &)): New.
9308 (debug (const rtx_def *)): New.
9309 * print-tree.c
9310 (debug_tree (tree): Move within file.
9311 (debug_raw (const tree_node &)): New.
9312 (debug_raw (const tree_node *)): New.
9313 (dump_tree_via_hooks (const tree_node *, int)): New.
9314 (debug (const tree_node &)): New.
9315 (debug (const tree_node *)): New.
9316 (debug_verbose (const tree_node &)): New.
9317 (debug_verbose (const tree_node *)): New.
9318 (debug_head (const tree_node &)): New.
9319 (debug_head (const tree_node *)): New.
9320 (debug_body (const tree_node &)): New.
9321 (debug_body (const tree_node *)): New.
9322 (debug_vec_tree (tree): Move and reimplement in terms of dump.
9323 (debug (vec<tree, va_gc> &)): New.
9324 (debug (vec<tree, va_gc> *)): New.
9325 * rtl.h
9326 (extern debug (const rtx_def &)): New.
9327 (extern debug (const rtx_def *)): New.
9328 * sbitmap.c
9329 (debug_raw (simple_bitmap_def &)): New.
9330 (debug_raw (simple_bitmap_def *)): New.
9331 (debug (simple_bitmap_def &)): New.
9332 (debug (simple_bitmap_def *)): New.
9333 * sbitmap.h
9334 (extern debug (simple_bitmap_def &)): New.
9335 (extern debug (simple_bitmap_def *)): New.
9336 (extern debug_raw (simple_bitmap_def &)): New.
9337 (extern debug_raw (simple_bitmap_def *)): New.
9338 * sel-sched-dump.c
9339 (debug (vinsn_def &)): New.
9340 (debug (vinsn_def *)): New.
9341 (debug_verbose (vinsn_def &)): New.
9342 (debug_verbose (vinsn_def *)): New.
9343 (debug (expr_def &)): New.
9344 (debug (expr_def *)): New.
9345 (debug_verbose (expr_def &)): New.
9346 (debug_verbose (expr_def *)): New.
9347 (debug (vec<rtx> &)): New.
9348 (debug (vec<rtx> *)): New.
9349 * sel-sched-dump.h
9350 (extern debug (vinsn_def &)): New.
9351 (extern debug (vinsn_def *)): New.
9352 (extern debug_verbose (vinsn_def &)): New.
9353 (extern debug_verbose (vinsn_def *)): New.
9354 (extern debug (expr_def &)): New.
9355 (extern debug (expr_def *)): New.
9356 (extern debug_verbose (expr_def &)): New.
9357 (extern debug_verbose (expr_def *)): New.
9358 (extern debug (vec<rtx> &)): New.
9359 (extern debug (vec<rtx> *)): New.
9360 * sel-sched-ir.h
9361 (_list_iter_cond_expr): Make inline instead of static.
9362 * sreal.c
9363 (debug (sreal &)): New.
9364 (debug (sreal *)): New.
9365 * sreal.h
9366 (extern debug (sreal &)): New.
9367 (extern debug (sreal *)): New.
9368 * tree.h
9369 (extern debug_raw (const tree_node &)): New.
9370 (extern debug_raw (const tree_node *)): New.
9371 (extern debug (const tree_node &)): New.
9372 (extern debug (const tree_node *)): New.
9373 (extern debug_verbose (const tree_node &)): New.
9374 (extern debug_verbose (const tree_node *)): New.
9375 (extern debug_head (const tree_node &)): New.
9376 (extern debug_head (const tree_node *)): New.
9377 (extern debug_body (const tree_node &)): New.
9378 (extern debug_body (const tree_node *)): New.
9379 (extern debug (vec<tree, va_gc> &)): New.
9380 (extern debug (vec<tree, va_gc> *)): New.
9381 * tree-cfg.c
9382 (debug (struct loop &)): New.
9383 (debug (struct loop *)): New.
9384 (debug_verbose (struct loop &)): New.
9385 (debug_verbose (struct loop *)): New.
9386 * tree-dump.c: Add header dependence.
9387 * tree-flow.h
9388 (extern debug (struct loop &)): New.
9389 (extern debug (struct loop *)): New.
9390 (extern debug_verbose (struct loop &)): New.
9391 (extern debug_verbose (struct loop *)): New.
9392 * tree-data-ref.c
9393 (debug (data_reference &)): New.
9394 (debug (data_reference *)): New.
9395 (debug (vec<data_reference_p> &)): New.
9396 (debug (vec<data_reference_p> *)): New.
9397 (debug (vec<ddr_p> &)): New.
9398 (debug (vec<ddr_p> *)): New.
9399 * tree-data-ref.h
9400 (extern debug (data_reference &)): New.
9401 (extern debug (data_reference *)): New.
9402 (extern debug (vec<data_reference_p> &)): New.
9403 (extern debug (vec<data_reference_p> *)): New.
9404 (extern debug (vec<ddr_p> &)): New.
9405 (extern debug (vec<ddr_p> *)): New.
9406 * tree-ssa-alias.c
9407 (debug (pt_solution &)): New.
9408 (debug (pt_solution *)): New.
9409 * tree-ssa-alias.h
9410 (extern debug (pt_solution &)): New.
9411 (extern debug (pt_solution *)): New.
9412 * tree-ssa-alias.c
9413 (debug (_var_map &)): New.
9414 (debug (_var_map *)): New.
9415 (debug (tree_live_info_d &)): New.
9416 (debug (tree_live_info_d *)): New.
9417 * tree-ssa-alias.h
9418 (extern debug (_var_map &)): New.
9419 (extern debug (_var_map *)): New.
9420 (extern debug (tree_live_info_d &)): New.
9421 (extern debug (tree_live_info_d *)): New.
9422
be77e1e5
JH
94232013-03-28 Jan Hubicka <jh@suse.cz>
9424
9425 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
9426
777e6976
IB
94272013-03-28 Ian Bolton <ian.bolton@arm.com>
9428
9429 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
9430 record only when desired or required.
9431
9cd347ae
UB
94322013-03-28 Uros Bizjak <ubizjak@gmail.com>
9433
9434 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
9435 *vec_extractv2di_1_rex64. Use x64 isa attribute.
9436
33159866 94372013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2a1d1991
N
9438
9439 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
9440 (*andsi3_compare0_uxtw): New pattern.
9441 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
9442 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
9443
89ab31c1
JH
94442013-03-28 Jan Hubicka <jh@suse.cz>
9445
9446 * data-streamer-in.c (streamer_read_gcov_count): New function.
9447 * gimple-streamer-out.c: Include value-prof.h.
9448 (output_gimple_stmt): Output histogram.
9449 (output_bb): Use streamer_write_gcov_count.
9450 * value-prof.c: Include data-streamer.h
9451 (dump_histogram_value): Add HIST_TYPE_MAX.
9452 (stream_out_histogram_value): New function.
9453 (stream_in_histogram_value): New function.
9454 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
9455 (stream_out_histogram_value, stream_in_histogram_value): Declare.
9456 * data-streamer-out.c (streamer_write_gcov_count): New function.
9457 (streamer_write_gcov_count_stream): New function.
9458 * lto-cgraph.c (lto_output_edge): Update counter streaming.
9459 (lto_output_node): Likewise.
9460 (input_node, input_edge): Likewise.
9461 * lto-streamer-out.c (output_cfg): Update streaming.
9462 * lto-streamer-in.c (input_cfg): Likewise.
9463 * data-streamer.h (streamer_write_gcov_count,
9464 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
9465 * gimple-streamer-in.c: Include value-prof.h
9466 (input_gimple_stmt): Input histograms.
9467 (input_bb): Update profile streaming.
9468
e594716a 94692013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 9470
33159866 9471 * genmodes.c (emit_max_int): New function.
8697be17 9472 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
9473 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
9474 Added doc.
8697be17 9475 * machmode.def: Fixed comment.
89ab31c1 9476
e594716a 94772013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
9478
9479 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
9480 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
9481
74946978
MP
94822013-03-28 Marek Polacek <polacek@redhat.com>
9483 Richard Biener <rguenther@suse.de>
9484
9485 PR tree-optimization/56695
9486 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
9487 build signed result of a vector comparison.
9488 * tree-cfg.c (verify_gimple_comparison): Check that a result
9489 of a vector comparison has signed type.
9490
a64b9c26
RB
94912013-03-28 Richard Biener <rguenther@suse.de>
9492
9493 PR tree-optimization/37021
9494 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
9495 do not restrict gaps between groups.
9496 * tree-vect-stmts.c (vectorizable_load): Properly account for
9497 a gap between groups.
9498
a9dc2a2f
EB
94992013-03-28 Eric Botcazou <ebotcazou@adacore.com>
9500
9501 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
9502 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
9503 is not enabled.
9504
53cb97f9
GP
95052013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
9506
9507 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
9508 * doc/extend.texi (Named Address Spaces): Ditto.
9509 (Variable Attributes): Ditto.
9510
b802ae5c
KT
95112013-03-27 Kai Tietz <ktietz@redhat.com>
9512
eddae10a
KT
9513 * config.build: Add support for cygwin x64 target.
9514 * config.gcc: Likewise.
9515 * config.host: Likewise.
9516 * configure.ac: Likewise
9517 * configure: Regenerated.
b802ae5c 9518
371e77e3 95192013-03-27 Kai Tietz <ktietz@redhat.com>
8269de54
KT
9520
9521 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
9522 * config/i386/t-cygwin-w64: New file.
9523 * config/i386/cygwin-w64.h: New file.
9524 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
9525 and add support for x64-cygwin target.
9526 (CPP_SPEC): Likewise.
9527 (CXX_WRAP_SPEC_LIST): Undefine before define.
9528 (LIBGCJ_SONAME): Use 15 as version.
9529
f49b33cb
RB
95302013-03-27 Richard Biener <rguenther@suse.de>
9531
9532 PR tree-optimization/56716
9533 * tree-ssa-structalias.c (perform_var_substitution): Adjust
9534 dumping for ref nodes.
9535
b37a6ce5
MJ
95362013-03-27 Martin Jambor <mjambor@suse.cz>
9537
9538 PR tree-optimization/55334
9539 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
9540 restricted pointers to arrays.
9541
9469b9b2
GDR
95422013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
9543
9544 * Makefile.in (.SUFFIXES): Add .cc.
9545 (.c.o): Apply same recipe for implicit rule .cc.o.
9546
7d24f650
RB
95472013-03-27 Richard Biener <rguenther@suse.de>
9548
9549 PR tree-optimization/37021
9550 * tree-vect-data-refs.c (vect_check_strided_load): Allow
9551 REALPART/IMAGPART_EXPRs around the supported refs.
9552 * tree-ssa-structalias.c (find_func_aliases): Assume that
9553 floating-point values are not used to transfer pointers.
9554
2f251a05
AI
95552013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9556
39385fa6
PC
9557 * target.def (TARGET_HAS_IFUNC_P): New target hook.
9558 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
9559 * doc/tm.texi: Regenerate.
9560 * targhooks.h (default_has_ifunc_p): New.
9561 * targhooks.c (default_has_ifunc_p): Ditto.
9562 * config/linux-protos.h: New file.
9563 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
2f251a05
AI
9564 this hook for linux which disables support of indirect functions in
9565 android.
39385fa6
PC
9566 * config/linux-android.c: New file.
9567 * config/t-linux-android.c: Ditto.
9568 * config.gcc: Added new object file linux-android.o.
9569 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 9570 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
39385fa6 9571 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
9572 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
9573 doesn't support indirect functions.
9574 * configure: Regenerate.
9575
78b4e425
BC
95762013-03-27 Bin Cheng <bin.cheng@arm.com>
9577
9578 PR target/56102
9579 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
9580 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
9581 mult-word mode.
9582
a5ba7b92
AK
95832013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9584
9585 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
9586
be624986
TG
95872013-03-27 Terry Guo <terry.guo@arm.com>
9588
9589 * config/arm/arm-cores.def: Added core cortex-r7.
9590 * config/arm/arm-tune.md: Regenerated.
9591 * config/arm/arm-tables.opt: Regenerated.
9592 * doc/invoke.texi: Added entry for core cortex-r7.
9593
0a514f47
WL
95942013-03-27 Walter Lee <walt@tilera.com>
9595
9596 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
9597 double-decrement of next_scratch_regno.
9598
9332b0d2
WL
95992013-03-27 Walter Lee <walt@tilera.com>
9600
801d9b2a 9601 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
9602 input operands.
9603 (insn_v1mulus): Ditto.
9604 (insn_v2muls): Ditto.
9605
f54ea5dd
WL
96062013-03-27 Walter Lee <walt@tilera.com>
9607
e594716a 9608 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
9609 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
9610
bf60f4ca
WL
96112013-03-27 Walter Lee <walt@tilera.com>
9612
e594716a 9613 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
9614 (*sibcall_value): Ditto.
9615
e3b51eeb
WL
96162013-03-27 Walter Lee <walt@tilera.com>
9617
9618 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
9619 (insn_mnz_v8qi): ... this ...
9620 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
9621 vector equivalent.
9622 (insn_v<n>mnz): Replaced by ...
9623 (insn_v1mnz): ... this ...
9624 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
9625 equivalent.
9626 (insn_mz_<mode>): Replaced by ...
9627 (insn_mz_v8qi): ... this ...
9628 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
9629 vector equivalent.
9630 (insn_v<n>mz): Replaced by ...
9631 (insn_v1mz): ... this ...
9632 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
9633 equivalent.
9634
4fc7b145
EB
96352013-03-26 Eric Botcazou <ebotcazou@adacore.com>
9636
9637 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
9638
6f33817e
RM
96392013-03-26 Roland McGrath <mcgrathr@google.com>
9640
9641 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
9642 than fprintf with a non-constant, non-format string.
9643
93a4145b
UB
96442013-03-26 Uros Bizjak <ubizjak@gmail.com>
9645
9646 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
9647 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
9648 operand 0 predicate.
9649 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
9650 attribute. Use general_x64nomem_operand as operand 1 predicate.
9651 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
9652 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
9653 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
9654 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
9655 (mov<mode>_insv_1): Remove expander. Merge insn with
9656 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
9657 Use general_x64nomem_operand as operand 1 predicate.
9658 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
9659 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
9660 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
9661 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
9662 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
9663 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
9664 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
9665 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
9666 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
9667 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
9668 (general_x64nomem_operand): Ditto.
9669
c6a9ed5a 96702013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
9671
9672 * config/rtems.opt: Add -pthread option.
9673
31b0a960
RB
96742013-03-26 Richard Biener <rguenther@suse.de>
9675
93a4145b
UB
9676 * alias.c (find_base_term): Avoid redundant and not used recursion.
9677 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
9678 (true_dependence_1): Compute and pass base terms to base_alias_check.
9679 (write_dependence_p): Likewise.
9680 (may_alias_p): Likewise.
9681
79517551
SN
96822013-03-26 Sofiane Naci <sofiane.naci@arm.com>
9683
9684 * config/aarch64/aarch64.c (aarch64_classify_address): Support
9685 PC-relative load in SI modes and above only.
9686
a76213b9
XQ
96872013-03-26 Xinyu Qi <xyqi@marvell.com>
9688
9689 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33159866
UB
9690 * config/arm/iwmmxt.md (WCGR0): Update.
9691 (WCGR1, WCGR2, WCGR3): Likewise.
a76213b9 9692
37ff9355
UB
96932013-03-26 Uros Bizjak <ubizjak@gmail.com>
9694
9695 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
9696 Use x64 and nox64 isa attributes.
9697
30b0317c
RB
96982013-03-26 Richard Biener <rguenther@suse.de>
9699
9700 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
9701 alignment computations and rely on get_object_alignment_1
9702 for the !TYPE_P case.
9703 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
9704
cbcdb140
WL
97052013-03-26 Walter Lee <walt@tilera.com>
9706
9707 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
9708 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
9709
dd884525 97102013-03-25 Jeff Law <law@redhat.com>
be672e08 9711
33159866
UB
9712 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
9713 check for INTEGRAL_TYPE_P that was missing due to checking in
dd884525
JL
9714 wrong version of prior patch.
9715
0051d3ec
WL
97162013-03-25 Walter Lee <walt@tilera.com>
9717
9718 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
9719 TILEGX_INSN_SHUFFLEBYTES1.
9720 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
9721 shufflebytes1.
9722 (tilegx_builtins): Ditto.
9723 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
9724
065a3605
WL
97252013-03-25 Walter Lee <walt@tilera.com>
9726
9727 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
9728 (floatunssisf2): New pattern.
9729 (floatsidf2): New pattern.
9730 (floatunssidf2): New pattern.
065a3605 9731
5b2a3c82
WL
97322013-03-25 Walter Lee <walt@tilera.com>
9733
9734 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
9735 tests for constraint J, K, N, P.
9736
192ea533
WL
97372013-03-25 Walter Lee <walt@tilera.com>
9738
9739 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
9740 Use indirect/pcrel encoding.
9741 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
9742 Ditto.
9743
855e0d0b
SE
97442013-03-25 Steve Ellcey <sellcey@mips.com>
9745
9746 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
9747 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
9748 * config/mips/mips.c (mips_option_override): Set IMADD default.
9749 * config/mips/mips.h (PTF_AVOID_IMADD): New.
9750 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
9751 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
9752 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
9753 * doc/invoke.texi (-mimadd/-mno-imadd): New.
9754
39e45653
JL
97552013-03-25 Jeff Law <law@redhat.com>
9756
9757 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
9758 slightly to avoid creating and folding useless trees. Simplify
9759 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
9760
7482c470
UB
97612013-03-25 Uros Bizjak <ubizjak@gmail.com>
9762
9763 * config/i386/i386.md (*zero_extendsidi2): Merge with
9764 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
9765 * config/i386/predicates.md (x86_64_zext_operand): Rename from
9766 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
9767 targets. Clarify comment.
9768
4a53743e
MJ
97692013-03-25 Martin Jambor <mjambor@suse.cz>
9770
9771 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
9772 pass-through jump functions differently.
9773 (ipa_read_jump_function): Likewise. Also use setter functions to set
9774 up jump functions.
9775
162712de
MJ
97762013-03-25 Martin Jambor <mjambor@suse.cz>
9777
9778 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
9779 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
9780 process it.
9781 (ipa_get_indirect_edge_target): New function.
9782 (devirtualization_time_bonus): New parameter known_aggs, pass it to
9783 ipa_get_indirect_edge_target. Update all callers.
9784 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
9785 ipa_get_indirect_edge_target_1 instead of calling
9786 ipa_get_indirect_edge_target.
9787 (create_specialized_node): Pass aggvlas to
9788 ipcp_discover_new_direct_edges.
9789
a5a4c20a
KT
97902013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9791
9792 * config/arm/arm.md (f_sels, f_seld): New types.
9793 (*cmov<mode>): New pattern.
9794 * config/arm/predicates.md (arm_vsel_comparison_operator): New
9795 predicate.
9796
f992b9fc
KT
97972013-03-25 Kai Tietz <ktietz@redhat.com>
9798
9799 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
9800 POSIX-printf for mingw-hosted builds.
9801
c16fd676
RB
98022013-03-25 Richard Biener <rguenther@suse.de>
9803
9804 PR middle-end/56694
9805 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
9806 must-not-throw stmt location.
9807
5ad29f12
KT
98082013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9809
9810 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
9811 Emit load-acquire versions when acq is true.
9812 (arm_emit_store_exclusive): Add rel parameter.
9813 Emit store-release versions when rel is true.
9814 (arm_split_compare_and_swap): Use acquire-release instructions
9815 instead.
9816 of barriers when appropriate.
9817 (arm_split_atomic_op): Likewise.
9818 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
9819 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
9820 (VUNSPEC_SLX): Likewise.
9821 (VUNSPEC_LDA): Likewise.
9822 (VUNSPEC_STL): Likewise.
9823 * config/arm/sync.md (atomic_load<mode>): New pattern.
9824 (atomic_store<mode>): Likewise.
9825 (arm_load_acquire_exclusive<mode>): Likewise.
9826 (arm_load_acquire_exclusivesi): Likewise.
9827 (arm_load_acquire_exclusivedi): Likewise.
9828 (arm_store_release_exclusive<mode>): Likewise.
9829
03a7dddb
CM
98302013-03-25 Catherine Moore <clm@codesourcery.com>
9831
9832 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
9833 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
9834 * config/mip/predicates.md (lwsp_swsp_operand,
9835 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
9836 sb16_operand, db4_operand, db7_operand, ib3_operand,
9837 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
9838 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
9839 andi16_operand): New predicates.
9840 * config/mips/mips.md (compression): New attribute.
9841 (enabled): New attribute.
9842 (length): Consider compression in computing length.
9843 (shift_compression): New code attribute.
9844 (*add<mode>3): New operands. Record compression.
9845 (sub<mode>3): Likewise.
9846 (one_cmpl<mode>2): Likewise.
9847 (*and<mode>3): Likewise.
9848 (*ior<mode>3): Likewise.
9849 (unnamed pattern for xor): Likewise.
9850 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
9851 (*<optab><mode>3): Likewise.
9852 (*mov<mode>_internal: Likewise.
9853 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
9854 (mips_unsigned_immediate_p): New.
9855 (umips_lwsp_swsp_address_p): New.
9856 (m16_based_address_p): New.
9857 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
9858 (mips_unsigned_immediate_p): New prototype.
9859 (lwsp_swsp_address_p): New prototype.
9860 (m16_based_address_p): New prototype.
9861 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
9862 (mips_signed_immediate_p): New function.
9863 (m16_based_address_p): New function.
9864 (lwsp_swsp_address_p): New function.
9865 (mips_print_operand_punctuation): Recognize short delay slot insns
9866 for microMIPS.add<mode>3"
9867
f35c297f 98682013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 9869
f35c297f
KT
9870 PR target/56720
9871 * config/arm/iterators.md (v_cmp_result): New mode attribute.
9872 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
9873
051b9446
RB
98742013-03-25 Richard Biener <rguenther@suse.de>
9875
9876 PR tree-optimization/56689
9877 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
9878 any edge.
9879
374001cb
RB
98802013-03-25 Richard Biener <rguenther@suse.de>
9881
9882 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
9883 of bitmap.
9884 (memory_references): Likewise.
9885 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
9886 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
9887 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
9888 (gather_mem_refs_in_loops): Fold into ...
9889 (analyze_memory_references): ... this. Move initialization
9890 to tree_ssa_lim_initialize.
9891 (fill_always_executed_in): Rename to ...
9892 (fill_always_executed_in_1): ... this.
9893 (fill_always_executed_in): Move contains_call computation to
9894 this new function from ...
9895 (tree_ssa_lim_initialize): ... here.
9896 (tree_ssa_lim): Call fill_always_executed_in.
9897
57895947
EB
98982013-03-25 Eric Botcazou <ebotcazou@adacore.com>
9899
9900 * postreload.c (reload_combine): Fix code detecting returns.
9901
1e1b18c1
EB
99022013-03-25 Eric Botcazou <ebotcazou@adacore.com>
9903
9904 * function.c (emit_use_return_register_into_block): On cc0 targets,
9905 do not emit the sequence between cc0 setter and user.
9906
9216baf1
KT
99072013-03-25 Kai Tietz <ktietz@redhat.com>
9908
1e1b18c1
EB
9909 * config/i386/predicates.md (local_symbolic_operand): Interpret
9910 dll-imported symbols as none-local.
9216baf1 9911
76421b44
RB
99122013-03-25 Richard Biener <rguenther@suse.de>
9913
9914 * tree-ssa-loop-im.c (struct depend): Remove.
9915 (struct lim_aux_data): Make depends a vec of gimples.
9916 (free_lim_aux_data): Adjust.
9917 (add_dependency): Likewise.
9918 (set_level): Likewise.
9919
d154bfa2
RB
99202013-03-25 Richard Biener <rguenther@suse.de>
9921
9922 PR middle-end/56434
9923 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
9924 the pointer returned by calls with ECF_MALLOC set.
9925
2cd9804e
UB
99262013-03-24 Uros Bizjak <ubizjak@gmail.com>
9927
acef5fe0
UB
9928 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
9929
99302013-03-24 Uros Bizjak <ubizjak@gmail.com>
9931
9932 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
9933 using MMXMODE mode iterator.
9934 (*move<mode>_internal): Merge with *movv2sf_internal and
9935 *movv2sf_internal_rex64 using MMXMODE mode iterator.
9936
225ccc68
SB
99372013-03-23 Steven Bosscher <steven@gcc.gnu.org>
9938
85c0f02d
SB
9939 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
9940 (record_last_mem_set_info): Likewise.
9941
225ccc68
SB
9942 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
9943 of XNEWVEC followed by memset.
9944 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
9945
b64925dc
SB
99462013-03-23 Steven Bosscher <steven@gcc.gnu.org>
9947
9948 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
9949 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
9950 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
9951 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
9952 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
9953 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
9954 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
9955 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
9956 BARRIER_P instead of GET_CODE.
9957
b9aaf52e
EB
99582013-03-23 Eric Botcazou <ebotcazou@adacore.com>
9959
9960 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
9961 inaccuracy in the probing code.
9962
9963 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
9964 (ctrapdi4): Likewise.
9965
66de4d7c
EB
99662013-03-23 Eric Botcazou <ebotcazou@adacore.com>
9967
9968 * calls.c (expand_call): Add missing guard to code handling return
9969 of non-BLKmode structures in MSB.
9970 * function.c (expand_function_end): Likewise.
9971
4f25c8fb
EB
99722013-03-23 Eric Botcazou <ebotcazou@adacore.com>
9973
9974 * combine.c (try_combine): Adjust comment. Do not add the set of
9975 insn #0 if the destination indirectly is set or dies in insn #2.
9976 Tidy up code to distribute a new note.
9977
23b7850d
UB
99782013-03-22 Uros Bizjak <ubizjak@gmail.com>
9979
9980 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
9981 also for alternatives 16 and 17.
9982
bed852cf
UB
99832013-03-22 Uros Bizjak <ubizjak@gmail.com>
9984
9985 * config/i386/sse.md (*mov<mode>_internal): Merge with
9986 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
9987 Emit insn template depending on type attribute. Use
9988 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
9989 movd instead of movq mnemonic for interunit moves. Rewrite mode
9990 attribute calculation. Remove unit attribute calculation.
9991 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
9992 Set prefix_data16 attribute for DImode ssemov types.
9993 Use Ym instead of y for SSE-MMX conversion alternatives.
9994 Reorder operand constraints.
9995
1e8a7937
SB
99962013-03-22 Steven Bosscher <steven@gcc.gnu.org>
9997
9998 * df.h (df_insn_delete): Adjust prototype.
9999 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
10000 and let it decide whether mark the basic block dirty.
10001 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
10002 * df-scan.c (df_insn_info_delete): New helper function, split
10003 off from df_insn_delete.
10004 (df_scan_free_bb_info): Use it.
10005 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
10006 Likewise.
10007 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
10008 that the insn is actually an insn and it has a non-NULL basic block.
10009 Do not mark basic block dirty if only deleting a DEBUG_INSN.
10010
e14d094c
RB
100112013-03-22 Richard Biener <rguenther@suse.de>
10012
10013 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
10014 dep_ref members.
10015 (mem_ref_alloc): Do not allocate them.
10016 (refs_independent_p): Do not query or maintain a cache.
10017
e9cf7316
RB
100182013-03-22 Richard Biener <rguenther@suse.de>
10019
10020 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
10021 (gather_mem_refs_in_loops): Do not compute it.
10022 (analyze_memory_references): Do not allocate it.
10023 (tree_ssa_lim_finalize): Do not free it.
10024 (for_all_locs_in_loop): Do not query all_refs_in_loop.
10025
f046e81b
RB
100262013-03-22 Richard Biener <rguenther@suse.de>
10027
10028 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 10029
a05c0ddf
IB
100302013-03-22 Ian Bolton <ian.bolton@arm.com>
10031
10032 * config/aarch64/aarch64.c (aarch64_print_operand): New
10033 format specifier for printing a constant in hex.
10034 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
10035 format specifier for printing second operand.
10036
c00217fc
RB
100372013-03-22 Richard Biener <rguenther@suse.de>
10038
10039 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
10040 bitmaps.
10041 (gather_mem_refs_in_loops): Perform store accumulation here.
10042 (create_vop_ref_mapping_loop): Remove.
10043 (create_vop_ref_mapping): Likewise.
10044 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 10045 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
10046 (record_indep_loop): Remove.
10047 (record_dep_loop): New function.
10048 (ref_indep_loop_p_1): Adjust to only walk over references
10049 in the loop, not its subloops.
10050 (ref_indep_loop_p): Rename to ...
10051 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
10052 maintaining a more fine-grained cache.
10053 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
10054 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
10055
15d19bf8
RB
100562013-03-22 Richard Biener <rguenther@suse.de>
10057
10058 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
10059 (struct mem_ref): Make accesses_in_loop a vec of a vec of
10060 aggregate mem_ref_loc.
10061 (free_mem_ref_locs): Inline into ...
10062 (memref_free): ... this and adjust.
10063 (mem_ref_alloc): Adjust.
10064 (mem_ref_locs_alloc): Remove.
10065 (record_mem_ref_loc): Adjust.
10066 (get_all_locs_in_loop): Rewrite into ...
10067 (for_all_locs_in_loop): ... this iterator.
10068 (rewrite_mem_ref_loc): New functor.
10069 (rewrite_mem_refs): Use for_all_locs_in_loop.
10070 (sm_set_flag_if_changed): New functor.
10071 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
10072 (ref_always_accessed): New functor.
10073 (ref_always_accessed_p): Use for_all_locs_in_loop.
10074
6f37411d
MG
100752013-03-21 Marc Glisse <marc.glisse@inria.fr>
10076
10077 * tree-pass.h (PROP_gimple_lvec): New.
10078 * passes.c (dump_properties): Handle PROP_gimple_lvec.
10079 (init_optimization_passes): Move pass_lower_vector.
10080 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
10081 PROP_gimple_lvec.
10082 (pass_lower_vector): Provide PROP_gimple_lvec.
10083 (pass_lower_vector_ssa): Likewise.
10084 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
10085
511ef689
MW
100862013-03-21 Mark Wielaard <mjw@redhat.com>
10087
10088 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
10089
cc1df30b
UB
100902013-03-21 Uros Bizjak <ubizjak@gmail.com>
10091
10092 * config/i386/i386.md (*movdi_internal): Disparage slightly
10093 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
10094 conversion alternatives.
10095
c845cfe1
JJ
100962013-03-21 Jakub Jelinek <jakub@redhat.com>
10097
37e99116
JJ
10098 PR middle-end/48087
10099 * diagnostic.def (DK_WERROR): New kind.
10100 * diagnostic.h (werrorcount): Define.
10101 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
10102 promoted to DK_ERROR, increment DK_WERROR counter instead of
10103 DK_ERROR counter.
10104 * toplev.c (toplev_main): Call print_ignored_options even if
10105 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
10106 even if just werrorcount is non-zero.
10107
c845cfe1
JJ
10108 PR debug/55608
10109 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
10110 on failure.
10111 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
10112 (string_cst_pool_decl): New function.
10113 (optimize_one_addr_into_implicit_ptr): New function.
10114 (resolve_addr_in_expr): Optimize DWARF location expression
10115 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
10116 which doesn't live in memory, but has DW_AT_location or
10117 DW_AT_const_value, or refers to a string literal, into
10118 DW_OP_GNU_implicit_pointer.
10119 (optimize_location_into_implicit_ptr): New function.
10120 (resolve_addr): If removing DW_AT_location of a variable because
10121 it was DW_OP_addr of address of the variable, but the variable doesn't
10122 live in memory, try to emit const value attribute for the initializer.
10123
08e0cda6
MG
101242013-03-21 Marc Glisse <marc.glisse@inria.fr>
10125
10126 * tree.h (VECTOR_TYPE_P): New macro.
10127 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
10128 TYPE_MODE): Use it.
10129 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
10130 VEC_COND_EXPR cannot be lvalues.
10131 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
10132
d08633b4
MG
101332013-03-21 Marc Glisse <marc.glisse@inria.fr>
10134
10135 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
10136 Restrict the transformation to equal modes.
10137
e6647190
RB
101382013-03-21 Richard Biener <rguenther@suse.de>
10139
10140 PR tree-optimization/39326
10141 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
10142 (MEM_ANALYZABLE): Adjust.
10143 (record_mem_ref_loc): Move bitmap ops ...
10144 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
10145 unanalyzable refs, do not record locations for it.
10146 (analyze_memory_references): Allocate ref zero as shared
10147 unanalyzable ref.
10148 (refs_independent_p): Do not test for unanalyzed mems here.
10149 (ref_indep_loop_p_1): Special-case disambiguation against
10150 the unanalyzed ref.
cc1df30b 10151 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 10152
65074f54
CL
101532013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
10154
10155 * config/arm/arm-protos.h (tune_params): Add
10156 prefer_neon_for_64bits field.
10157 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
10158 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
10159 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
10160 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
10161 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
10162 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
10163 (arm_option_override): Handle -mneon-for-64bits new option.
10164 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
10165 (prefer_neon_for_64bits): Declare new variable.
10166 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 10167 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
10168 (arch_enabled): Handle new arch types. Remove support for onlya8
10169 and nota8.
10170 (one_cmpldi2): Use new arch names.
bc5faa5b 10171 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
10172 * config/arm/arm.opt (mneon-for-64bits): Add option.
10173 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
10174 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
10175 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
10176 of onlya8.
10177 * doc/invoke.texi (-mneon-for-64bits): Document.
10178
5a2d2a79
RB
101792013-03-21 Richard Biener <rguenther@suse.de>
10180
10181 PR tree-optimization/39326
10182 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
10183 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 10184 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 10185
5abe1e05
RB
101862013-03-21 Richard Biener <rguenther@suse.de>
10187
10188 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
10189 (vect_insert_into_interleaving_chain): Likewise.
10190 (vect_drs_dependent_in_basic_block): Inline ...
10191 (vect_slp_analyze_data_ref_dependence): ... here. New function,
10192 split out from ...
10193 (vect_analyze_data_ref_dependence): ... here. Simplify.
10194 (vect_check_interleaving): Simplify.
10195 (vect_analyze_data_ref_dependences): Likewise. Split out ...
10196 (vect_slp_analyze_data_ref_dependences): ... this new function.
10197 (dr_group_sort_cmp): New function.
10198 (vect_analyze_data_ref_accesses): Compute data-reference groups
10199 here instead of in vect_analyze_data_ref_dependence. Use
10200 a more efficient algorithm.
10201 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
10202 vect_slp_analyze_data_ref_dependences. Call
10203 vect_analyze_data_ref_accesses earlier.
10204 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
10205 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
10206 (vect_slp_analyze_data_ref_dependences): New prototype.
10207
cad1735b
RB
102082013-03-21 Richard Biener <rguenther@suse.de>
10209
10210 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
10211 ref is stored in the loop.
10212 (find_refs_for_sm): Walk only over all stores.
10213 (store_motion_loop): Allocate from lim_bitmap_obstack.
10214 (store_motion): Likewise.
10215
141310ef
RB
102162013-03-21 Richard Biener <rguenther@suse.de>
10217
10218 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
10219 Update virtual SSA form.
10220
5022315a
RO
102212013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10222
10223 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
10224 * configure: Regenerate.
10225 * config.in: Regenerate.
10226 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
10227 if !HAVE_LD_EH_FRAME_CIEV3.
10228
50d4421c
RB
102292013-03-21 Richard Biener <rguenther@suse.de>
10230
10231 * tree-cfg.c (verify_expr_no_block): New function.
10232 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
10233 nor DECL_VALUE_EXPR have locations with associated blocks.
10234 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
10235 (clear_unused_block_pointer): Remove code dealing with
10236 blocks in DECL_DEBUG_EXPR locations.
10237
839b422f
RB
102382013-03-21 Richard Biener <rguenther@suse.de>
10239
10240 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
10241 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
10242 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
10243 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
10244 instead of DECL_DEBUG_EXPR_IS_FROM.
10245 * gimplify.c (gimplify_modify_expr): Likewise.
10246 * tree-cfg.c (verify_expr_location_1): Likewise.
10247 * tree-complex.c (create_one_component_var): Likewise.
10248 * tree-sra.c (create_access_replacement): Likewise.
10249 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
10250 (clear_unused_block_pointer): Likewise.
10251 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
10252 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
10253 * var-tracking.c (var_debug_decl): Likewise.
10254 (track_expr_p): Likewise.
10255 * tree-inline.c (add_local_variables): Likewise. Set
10256 DECL_HAS_DEBUG_EXPR_P after copying it.
10257 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
10258 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
10259
fe04878d
UB
102602013-03-21 Uros Bizjak <ubizjak@gmail.com>
10261
10262 PR bootstrap/56656
10263 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
10264 * configure: Regenerate.
10265 * config.in: Regenerate.
10266 * config/i386/i386.md (*movdf_internal): Use
10267 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
10268 movd instead of movq mnemonic for interunit moves.
10269 (*movdi_internal): Ditto.
10270
bd059b26 102712013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
10272
10273 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
10274 (abd<mode>_3): New pattern.
10275 (aba<mode>_3): New pattern.
10276 (fabd<mode>_3): New pattern.
10277
bd059b26 102782013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
10279
10280 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
10281 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
10282 occurrence of REGISTER_PREFIX as its empty string.
10283
4f1f78b9
JL
102842013-03-20 Jeff Law <law@redhat.com>
10285
10286 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
10287 addititional equivalences for equality comparisons between an SSA_NAME
10288 and a constant where the SSA_NAME was set from a widening conversion.
10289
327a1118
WL
102902013-03-20 Walter Lee <walt@tilera.com>
10291
10292 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
10293
813e0036
UB
102942013-03-20 Uros Bizjak <ubizjak@gmail.com>
10295
10296 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
10297 depending on type attribute.
10298 (*movti_internal): Ditto.
10299 (*movtf_internal): Ditto.
10300 (*movxf_internal): Ditto.
10301 (*movdf_internal): Ditto.
10302 (*movsf_internal): Ditto.
10303
7cf34aae
UB
103042013-03-20 Uros Bizjak <ubizjak@gmail.com>
10305
10306 * config/i386/i386.md (*movti_internal): Set prefix attribute to
10307 maybe_vex for sselog1 and ssemov types.
10308 (*movdi_internal): Reorder operand constraints.
10309 (*movsi_internal): Ditto. Set prefix attribute to
10310 maybe_vex for sselog1 and ssemov types.
10311 (*movtf_internal): Set prefix attribute to maybe_vex
10312 for sselog1 and ssemov types.
10313 (*movdf_internal): Ditto. Set prefix_data16 attribute for
10314 DImode ssemov types. Reorder operand constraints.
10315 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
10316 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
10317 attribute for SImode ssemov types. Reorder operand constraints.
10318
19321415
MJ
103192013-03-20 Martin Jambor <mjambor@suse.cz>
10320
10321 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
10322 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
10323
c6d5ff83
MM
103242013-03-20 Pat Haugen <pthaugen@us.ibm.com>
10325
10326 * config/rs6000/predicates.md (indexed_address, update_address_mem
10327 update_indexed_address_mem): New predicates.
10328 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
10329 attribute for load/store instructions.
10330 * config/rs6000/dfp.md (movsd_store): Likewise.
10331 (movsd_load): Likewise.
10332 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
10333 (unnamed HI->DI extend define_insn): Likewise.
10334 (unnamed SI->DI extend define_insn): Likewise.
10335 (unnamed QI->SI extend define_insn): Likewise.
10336 (unnamed QI->HI extend define_insn): Likewise.
10337 (unnamed HI->SI extend define_insn): Likewise.
10338 (unnamed HI->SI extend define_insn): Likewise.
10339 (extendsfdf2_fpr): Likewise.
10340 (movsi_internal1): Likewise.
10341 (movsi_internal1_single): Likewise.
10342 (movhi_internal): Likewise.
10343 (movqi_internal): Likewise.
10344 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
10345 attribute for load/store instructions.
10346 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
10347 instructions.
10348 (mov<mode>_softfloat): Likewise.
10349 (mov<mode>_hardfloat32): Likewise.
10350 (mov<mode>_hardfloat64): Likewise.
10351 (mov<mode>_softfloat64): Likewise.
10352 (movdi_internal32): Likewise.
10353 (movdi_internal64): Likewise.
10354 (probe_stack_<mode>): Likewise.
10355
103562013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
10357
10358 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
10359 floating point, and decimal floating point to reload iterator.
10360
10361 * config/rs6000/constraints.md (wl constraint): New constraints to
10362 return FLOAT_REGS if certain options are used to reduce the number
10363 of separate patterns that exist in the file.
10364 (wx constraint): Likewise.
10365 (wz constraint): Likewise.
10366
10367 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
10368 -mdebug=reg, print wg, wl, wx, and wz constraints.
10369 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
10370 Initialize the reload functions for 64-bit binary/decimal floating
10371 point types.
10372 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
10373 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
10374 create the buffer on the stack to overcome not having a 32-bit
10375 load and store.
10376 (rs6000_emit_move): Likewise.
10377 (rs6000_secondary_memory_needed_rtx): Likewise.
10378 (rs6000_alloc_sdmode_stack_slot): Likewise.
10379 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
10380 via xxlxor, just like DFmode 0.0.
10381
10382 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
10383 define as 1 if we are running on a power7 or newer.
10384 (enum r6000_reg_class_enum): Add new constraints.
10385
10386 * config/rs6000/dfp.md (movsd): Delete, combine with binary
10387 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
10388 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 10389 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
10390 (movsd splitter): Likewise.
10391 (movsd_hardfloat): Likewise.
10392 (movsd_softfloat): Likewise.
10393
10394 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
10395 binary and decimal floating point moves.
10396 (fmove_ok): New attributes to combine binary and decimal floating
10397 point moves, and to combine power6x (mfpgpr) moves along normal
10398 floating moves.
10399 (real_value_to_target): Likewise.
10400 (f32_lr): Likewise.
10401 (f32_lm): Likewise.
10402 (f32_li): Likewise.
10403 (f32_sr): Likewise.
10404 (f32_sm): Likewise.
10405 (f32_si): Likewise.
10406 (movsf): Combine binary and decimal floating point moves. Combine
10407 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 10408 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
10409 (mov<mode> for SFmode/SDmode); Likewise.
10410 (SFmode/SDmode splitters): Likewise.
10411 (movsf_hardfloat): Likewise.
10412 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
10413 (movsf_softfloat): Likewise.
10414 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
10415
10416 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
10417 wx and wz constraints.
10418
10419 * config/rs6000/constraints.md (wg constraint): New constraint to
10420 return FLOAT_REGS if -mmfpgpr (power6x) was used.
10421
10422 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
10423 constraint.
10424
10425 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
10426 -mdebug=reg, print wg, wl, wx, and wz constraints.
10427 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
10428 Initialize the reload functions for 64-bit binary/decimal floating
10429 point types.
10430 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
10431 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
10432 create the buffer on the stack to overcome not having a 32-bit
10433 load and store.
10434 (rs6000_emit_move): Likewise.
10435 (rs6000_secondary_memory_needed_rtx): Likewise.
10436 (rs6000_alloc_sdmode_stack_slot): Likewise.
10437 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
10438 via xxlxor, just like DFmode 0.0.
10439
c6d5ff83
MM
10440 * config/rs6000/dfp.md (movdd): Delete, combine with binary
10441 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
10442 with other moves by using conditional constraits (wg). Use LFIWZX
10443 and STFIWX for loading SDmode on power7.
10444 (movdd splitters): Likewise.
10445 (movdd_hardfloat32): Likewise.
10446 (movdd_softfloat32): Likewise.
10447 (movdd_hardfloat64_mfpgpr): Likewise.
10448 (movdd_hardfloat64): Likewise.
10449 (movdd_softfloat64): Likewise.
10450
10451 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
10452 64-bit binary and decimal floating point moves.
10453 (FMOVE64X): Likewise.
10454 (movdf): Combine 64-bit binary and decimal floating point moves.
10455 Combine power6x (mfpgpr) moves with other moves by using
10456 conditional constraits (wg).
10457 (mov<mode> for DFmode/DDmode): Likewise.
10458 (DFmode/DDmode splitters): Likewise.
10459 (movdf_hardfloat32): Likewise.
10460 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
10461 (movdf_softfloat32): Likewise.
10462 (movdf_hardfloat64_mfpgpr): Likewise.
10463 (movdf_hardfloat64): Likewise.
10464 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
10465 (movdf_softfloat64): Likewise.
10466 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
10467 (reload_<mode>_load): Move to later in the file so they aren't in
10468 the middle of the floating point move insns.
10469 (reload_<mode>_store): Likewise.
10470
10471 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
10472 constraint.
10473
10474 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
10475 constraint if -mdebug=reg.
bd059b26
UB
10476 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
10477 Enable using dd reload support if needed.
c6d5ff83
MM
10478
10479 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
10480 binary and decimal floating point moves in rs6000.md.
10481 (movtd_internal): Likewise.
10482
10483 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
10484 decimal floating point moves.
10485 (movtf): Likewise.
10486 (movtf_internal): Likewise.
10487 (mov<mode>_internal, TDmode/TFmode): Likewise.
10488 (movtf_softfloat): Likewise.
10489 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
10490
10491 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
10492 movdi_internal64, using wg constraint for move direct operations.
10493 (movdi_internal64): Likewise.
10494
10495 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
10496 MODES_TIEABLE_P for selected modes. Print the numerical value of
10497 the various virtual registers. Use GPR/FPR first/last values,
10498 instead of hard coding the register numbers. Print which modes
10499 have reload functions registered.
bd059b26
UB
10500 (rs6000_option_override_internal): If -mdebug=reg, trace the options
10501 settings before/after setting cpu, target and subtarget settings.
10502 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
10503 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
10504 (rs6000_secondary_reload_fail): Likewise.
10505 (rs6000_secondary_reload_inner): Likewise.
10506
10507 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
10508 macros for first/last GPR and FPR registers.
10509 (LAST_GPR_REGNO): Likewise.
10510 (FIRST_FPR_REGNO): Likewise.
10511 (LAST_FPR_REGNO): Likewise.
10512
10513 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
10514 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
10515 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
10516 (vcond<mode><mode>): Likewise.
10517 (vcondu<mode><mode>): Likewise.
10518 (vector_gtu<mode>): Likewise.
10519 (vector_gte<mode>): Likewise.
10520 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 10521 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
10522 (ior<mode>3): Likewise.
10523 (and<mode>3): Likewise.
10524 (one_cmpl<mode>2): Likewise.
10525 (nor<mode>3): Likewise.
10526 (andc<mode>3): Likewise.
10527
10528 * config/rs6000/constraints.md (wt constraint): New constraint
10529 that returns VSX_REGS if TImode is allowed in VSX registers.
10530
10531 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
10532 constant under VSX.
10533
10534 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
10535 similar to TImode, but it is restricted to being in the GPRs.
10536
10537 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
10538 TImode to occupy a single VSX register.
10539
10540 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
10541 -mvsx-timode for power7/power8.
10542 (power7 cpu): Likewise.
10543 (power8 cpu): Likewise.
10544
10545 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
10546 sure that TFmode/TDmode take up two registers if they are ever
10547 allowed in the upper VSX registers.
10548 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
10549 registers.
10550 (rs6000_init_hard_regno_mode_ok): Likewise.
10551 (rs6000_debug_reg_global): Add debugging for PTImode and wt
10552 constraint. Print if LRA is turned on.
10553 (rs6000_option_override_internal): Give an error if -mvsx-timode
10554 and VSX is not enabled.
10555 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
10556 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
10557 to reg+offset addressing. Use PTImode when checking offset
10558 addresses for validity.
10559 (reg_offset_addressing_ok_p): Likewise.
10560 (rs6000_legitimate_offset_address_p): Likewise.
10561 (rs6000_legitimize_address): Likewise.
10562 (rs6000_legitimize_reload_address): Likewise.
10563 (rs6000_legitimate_address_p): Likewise.
10564 (rs6000_eliminate_indexed_memrefs): Likewise.
10565 (rs6000_emit_move): Likewise.
10566 (rs6000_secondary_reload): Likewise.
10567 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
10568 reloads to fpr registers to continue to use reg+offset addressing,
10569 but 64-bit reloads to altivec registers need reg+reg addressing.
10570 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
10571 it. Treat LO_SUM like a PLUS operation.
10572 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 10573 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
10574 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
10575 registers to share a register with a smaller sized type, since VSX
10576 puts scalars in the upper 64-bits.
10577 (print_operand): Add support for PTImode.
10578 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
10579 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
10580 registers, but don't have arithmetic support.
10581 (rs6000_memory_move_cost): Add test for VSX.
10582 (rs6000_opt_masks): Add -mvsx-timode.
10583
10584 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
10585 for TImode.
10586 (VSs): Likewise.
10587 (VSr): Use wt constraint for TImode.
10588 (VSv): Drop TImode support.
10589 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
10590 (vsx_movti_64bit): Likewise.
10591 (vsx_movti_32bit): Likewise.
10592 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
10593 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
10594 one '?' on the appropriate output constraint. Do not allow TImode
10595 logical operations on 32-bit systems.
10596 (vsx_ior<mode>3): Likewise.
10597 (vsx_xor<mode>3): Likewise.
10598 (vsx_one_cmpl<mode>2): Likewise.
10599 (vsx_nor<mode>3): Likewise.
10600 (vsx_andc<mode>3): Likewise.
10601 (vsx_concat_<mode>): Likewise.
10602 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
10603
10604 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
10605 OPTION_MASK_VSX_TIMODE.
10606 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
10607 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
10608
10609 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
10610 (TI2 iterator): New iterator for TImode, PTImode.
10611 (wd mode attribute): Add values for vector types.
bd059b26
UB
10612 (movti_string): Replace TI move operations with operations for TImode
10613 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
10614 (mov<mode>_string, TImode/PTImode): Likewise.
10615 (movti_ppc64): Likewise.
10616 (mov<mode>_ppc64, TImode/PTImode): Likewise.
10617 (TI mode splitters): Likewise.
10618
10619 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
10620 constraint.
10621
1fc5eced
MG
106222013-03-20 Marc Glisse <marc.glisse@inria.fr>
10623
10624 PR tree-optimization/56355
10625 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
10626 Also handle integers with undefined overflow.
10627
22c4c869
CM
106282013-03-20 Catherine Moore <clm@codesourcery.com>
10629 Maciej W. Rozycki <macro@codesourcery.com>
10630 Tom de Vries <tom@codesourcery.com>
10631 Nathan Sidwell <nathan@codesourcery.com>
10632 Iain Sandoe <iain@codesourcery.com>
10633 Nathan Froyd <froydnj@codesourcery.com>
10634 Chao-ying Fu <fu@mips.com>
10635
10636 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 10637 Document new function attributes.
22c4c869
CM
10638 * doc/invoke.texi (minterlink-compressed, mmicromips,
10639 m14k, m14ke, m14kec): Document new options.
10640 (minterlink-mips16): Update documentation.
10641 * doc/md.texi (ZC, ZD): Document new constraints.
10642 * configure.ac (gcc_cv_as_micromips): Check if linker
10643 supports the .set micromips directive.
10644 * configure: Regenerate.
10645 * config.in: Regenerate.
10646 * config/mips/mips-tables.opt: Regenerate.
10647 * config/mips/micromips.md: New file.
10648 * constraints.md (ZC, ZD): New constraints.
10649 * config/mips/predicates.md (movep_src_register): New predicate.
10650 (movep_src_operand): New predicate.
10651 (non_volatile_mem_operand): New predicate.
10652 * config/mips/mips.md (multimem): New type.
10653 (length): Differentiate between 17-bit and 18-bit branch offsets.
10654 (MOVEP1, MOVEP2): New mode iterator.
33159866 10655 (mov_<load>l): Use ZC constraint.
22c4c869
CM
10656 (mov_<load>r): Likewise.
10657 (mov_<store>l): Likewise.
10658 (mov_<store>r): Likewise.
10659 (*branch_equality<mode>_inverted): Add microMIPS support.
10660 (*branch_equality<mode>): Likewise.
10661 (*jump_absolute): Likewise.
10662 (indirect_jump_<mode>): Likewise.
10663 (tablejump_<mode>): Likewise.
10664 (<optab>_internal): Likewise.
10665 (sibcall_internal): Likewise.
10666 (sibcall_value_internal): Likewise.
10667 (prefetch): Use constraint ZD.
10668 * config/mips/mips.opt (minterlink-compressed): New option.
10669 (minterlink-mips16): Now an alias for minterlink-compressed.
10670 (mmicromips): New option.
10671 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10672 (compare_and_swap_12): Likewise.
10673 (sync_add<mode>): Likewise.
10674 (sync_<optab>_12): Likewise.
10675 (sync_old_<optab>_12): Likewise.
10676 (sync_new_<optab>_12): Likewise.
10677 (sync_nand_12): Likewise.
10678 (sync_old_nand_12): Likewise.
10679 (sync_new_nand_12): Likewise.
10680 (sync_sub<mode>): Likewise.
10681 (sync_old_add<mode>): Likewise.
10682 (sync_old_sub<mode>): Likewise.
10683 (sync_new_add<mode>): Likewise.
10684 (sync_new_sub<mode>): Likewise.
10685 (sync_<optab><mode>): Likewise.
10686 (sync_old_<optab><mode>): Likewise.
10687 (sync_new_<optab><mode>): Likewise.
10688 (sync_nand<mode>): Likewise.
10689 (sync_old_nand<mode>): Likewise.
10690 (sync_new_nand<mode>): Likewise.
10691 (sync_lock_test_and_set<mode>): Likewise.
10692 (test_and_set_12): Likewise.
10693 (atomic_compare_and_swap<mode>): Likewise.
10694 (atomic_exchange<mode>_llsc): Likewise.
10695 (atomic_fetch_add<mode>_llsc): Likewise.
10696 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10697 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10698 (umips_save_restore_pattern_p): Likewise.
10699 (umips_load_store_pair_p): Likewise.
10700 (umips_output_load_store_pair): Likewise.
10701 (umips_movep_target_p): Likewise.
10702 (umips_12bit_offset_address_p): Likewise.
10703 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10704 (mips_base_mips16): Rename this...
10705 (mips_base_compression_flags): ...to this. Update all uses.
10706 (mips_attribute_table): Add micromips, nomicromips and nocompression.
10707 (mips_mips16_decl_p): Delete.
10708 (mips_nomips16_decl_p): Delete.
33159866 10709 (mips_get_compress_on_flags): New function.
22c4c869
CM
10710 (mips_get_compress_off_flags): New function.
10711 (mips_get_compress_mode): New function.
10712 (mips_get_compress_on_name): New function.
10713 (mips_get_compress_off_name): New function.
10714 (mips_insert_attributes): Support multiple compression types.
10715 (mips_merge_decl_attributes): Likewise.
10716 (umips_12bit_offset_address_p): New function.
10717 (mips_start_function_definition): Emit .set micromips directive.
10718 (mips_call_may_need_jalx_p): New function.
10719 (mips_function_ok_for_sibcall): Add microMIPS support.
10720 (mips_print_operand_punctuation): Support short delay slots and
10721 compact jumps.
10722 (umips_swm_mask, umips_swm_encoding): New.
10723 (umips_build_save_restore): New function.
10724 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10725 (was_mips16_p): Remove.
10726 (old_compression_mode): New.
10727 (mips_set_compression_mode): New function.
10728 (mips_set_current_function): Add microMIPS support.
10729 (mips_option_override): Likewise.
10730 (umips_save_restore_pattern_p): New function.
10731 (umips_output_save_restore): New function.
10732 (umips_load_store_pair_p_1): New function.
10733 (umips_load_store_pair_p): New function.
10734 (umips_output_load_store_pair_1): New function.
10735 (umips_output_load_store_pair): New function.
10736 (umips_movep_target_p) New function.
10737 (mips_prepare_pch_save): Add microMIPS support.
10738 * config/mips/mips.h (TARGET_COMPRESSION): New.
10739 (TARGET_CPU_CPP_BUILTINS): Update macro
10740 to use new compression flags and to support microMIPS.
10741 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10742 (MIPS_ARCH_FLOAT_SPEC): Likewise.
10743 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10744 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10745 (ASM_SPEC): Support mmicromips and mno-micromips.
10746 (M16STORE_REG_P): New macro.
10747 (MIPS_CALL): Support TARGET_MICROMIPS.
10748 (MICROMIPS_J): New macro.
10749 (mips_base_mips16): Rename this...
10750 (mips_base_compression_flags): ...to this.
10751 (UMIPS_12BIT_OFFSET_P): New macro.
10752 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10753 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
107542013-03-20 Richard Biener <rguenther@suse.de>
10755
10756 PR tree-optimization/56661
10757 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
10758 the result does not have to be distinct.
10759
54714c68
RB
107602013-03-20 Richard Biener <rguenther@suse.de>
10761
10762 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
10763 remap_gimple_op_r.
10764
cca1130d
BS
107652013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10766 Steven Bosscher <steven@gcc.gnu.org>
10767
10768 PR rtl-optimization/56605
10769 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
10770
2a930377
UB
107712013-03-20 Uros Bizjak <ubizjak@gmail.com>
10772
10773 PR bootstrap/56656
10774 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
10775 that require movd instead of movq.
10776
d6d305fe
RB
107772013-03-20 Richard Biener <rguenther@suse.de>
10778
10779 * tree-ssa-structalias.c (struct variable_info): Add pointer
10780 to the first field of an aggregate with sub-vars. Make
10781 this and the pointer to the next subfield its ID.
10782 (vi_next): New function.
10783 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
10784 storedanything_id, integer_id): Increment by one.
10785 (new_var_info, get_call_vi, lookup_call_clobber_vi,
10786 get_call_clobber_vi): Adjust.
10787 (solution_set_expand): Simplify and speedup.
10788 (solution_set_add): Inline into ...
10789 (set_union_with_increment): ... this. Adjust accordingly.
10790 (do_sd_constraint): Likewise.
10791 (do_ds_constraint): Likewise.
10792 (do_complex_constraint): Simplify.
10793 (build_pred_graph): Adjust.
10794 (solve_graph): Likewise. Simplify and speedup.
10795 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
10796 get_constraint_for_component_ref, get_constraint_for_1,
10797 first_vi_for_offset, first_or_preceding_vi_for_offset,
10798 create_function_info_for, create_variable_info_for_1,
10799 create_variable_info_for, intra_create_variable_infos): Adjust.
10800 (init_base_vars): Push NULL for ID zero.
10801 (compute_points_to_sets): Adjust.
10802
a271b42d
RB
108032013-03-20 Richard Biener <rguenther@suse.de>
10804
10805 * cfgloop.c (verify_loop_structure): Streamline and avoid
10806 ICEing on corrupt loop tree.
10807 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
10808 loop tree.
10809
ebd65954
RB
108102013-03-20 Richard Biener <rguenther@suse.de>
10811
10812 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
10813 check whether an SSA update is needed.
10814
4547b7ee
RS
108152013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
10816
10817 * config/mips/constraints.md (T): Rename to...
10818 (Yf): ...this.
10819 (U): Rename to...
10820 (Yd): ...this.
10821 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
10822 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
10823
0b8cdc58
IB
108242013-03-19 Ian Bolton <ian.bolton@arm.com>
10825
10826 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
10827 (*subsi3_carryin_uxtw): Likewise.
10828
5977a10d
IB
108292013-03-19 Ian Bolton <ian.bolton@arm.com>
10830
10831 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
10832 (*rorsi3_insn_uxtw): Likewise.
10833
bd83ff2c
IB
108342013-03-19 Ian Bolton <ian.bolton@arm.com>
10835
10836 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
10837 (*extrsi5_insn_uxtw): Likewise.
10838
ba65123c
RB
108392013-03-19 Richard Biener <rguenther@suse.de>
10840
10841 PR tree-optimization/56273
10842 * passes.c (init_optimization_passes): Move second VRP after DOM.
10843
2eac0476
UB
108442013-03-19 Uros Bizjak <ubizjak@gmail.com>
10845
10846 * config/i386/i386.md (*movti_internal): Merge from
10847 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
10848 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
10849 nox64 isa attributes.
10850
6e55eda7
RB
108512013-03-18 Richard Biener <rguenther@suse.de>
10852
10853 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
10854 (unite): Likewise.
10855 (merge_node_constraints): Likewise.
10856 (build_succ_graph): Likewise.
10857 (valid_graph_edge): Inline into single caller.
10858 (unify_nodes): Likewise. Use bitmap_set_bit return value
10859 and cache varinfo.
10860 (scc_visit): Fix formatting and variable use.
10861 (do_sd_constraint): Use gcc_checking_assert.
10862 (do_ds_constraint): Likewise.
10863 (do_complex_constraint): Likewise.
10864 (condense_visit): Likewise. Cleanup.
10865 (dump_pred_graph): New function.
10866 (perform_var_substitution): Dump the pred-graph before
10867 variable substitution.
10868 (find_equivalent_node): Use gcc_checking_assert.
10869 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
10870
4bdd44c4
RB
108712013-03-18 Richard Biener <rguenther@suse.de>
10872
10873 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
10874 Remove cond_expr_stmt_list argument and do not gimplify the
10875 built expression.
10876 (vect_loop_versioning): Adjust.
10877 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
10878 Cleanup to use less temporaries.
10879 (vect_create_data_ref_ptr): Cleanup.
10880
38c56a5b
JJ
108812013-03-18 Jakub Jelinek <jakub@redhat.com>
10882
10883 PR tree-optimization/56635
10884 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
10885 require types_compatible_p types.
10886
20b2e6a0
NC
108872013-03-18 Nick Clifton <nickc@redhat.com>
10888
a6178a25
NC
10889 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
10890 spurious backslash.
10891
20b2e6a0
NC
10892 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
10893 Add missing line to comment describing function.
10894
92608d0e
RB
108952013-03-18 Richard Biener <rguenther@suse.de>
10896
10897 PR tree-optimization/56210
10898 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10899 Handle string / character search functions.
10900 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10901
31348d52
RB
109022013-03-18 Richard Biener <rguenther@suse.de>
10903
10904 PR middle-end/56483
10905 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
10906 and implement properly.
10907 * gimple.h (gimple_cond_single_var_p): Remove.
10908
fcac74a1
RB
109092013-03-18 Richard Biener <rguenther@suse.de>
10910
10911 * tree-data-ref.h (find_data_references_in_loop): Declare.
10912 * tree-data-ref.c (get_references_in_stmt): Use a stack
10913 vector pre-allocated in the callers.
10914 (find_data_references_in_stmt): Adjust.
10915 (graphite_find_data_references_in_stmt): Likewise.
10916 (create_rdg_vertices): Likewise.
10917 (find_data_references_in_loop): Export.
10918 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
10919 Compute dependences here...
10920 (vect_analyze_data_refs): ...not here. When we encounter
10921 a non-vectorizable data reference in basic-block vectorization
10922 truncate the data reference vector. Do not bother to
10923 fixup data-dependence information for gather loads.
10924 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
10925 of data references, as reported.
10926
0d5a1b56
RB
109272013-03-18 Richard Biener <rguenther@suse.de>
10928
10929 PR tree-optimization/3713
10930 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
10931 has_constants and expr.
10932 (stmt_has_constants): Properly valueize SSA names when deciding
10933 whether the stmt has constants.
10934
789c34e3
RB
109352013-03-18 Richard Biener <rguenther@suse.de>
10936
10937 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
10938 whole function when there is nothing to do.
10939 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
10940 * tree-vectorizer.c (vectorize_loops): Update virtual and
10941 loop-closed SSA once.
10942 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
10943
076b4605
RB
109442013-03-18 Richard Biener <rguenther@suse.de>
10945
10946 PR middle-end/56113
10947 * domwalk.c (bb_postorder): New global static.
10948 (cmp_bb_postorder): New function.
10949 (walk_dominator_tree): Replace scheme imposing an order for
10950 visiting dominator sons by one sorting them at the time they
10951 are pushed on the stack.
10952
bdb01696
RB
109532013-03-18 Richard Biener <rguenther@suse.de>
10954
10955 PR tree-optimization/39326
10956 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
10957 (struct mem_ref): Replace mem member with ao_ref typed member.
10958 (MEM_ANALYZABLE): Adjust.
10959 (memref_eq): Likewise.
10960 (mem_ref_alloc): Likewise.
10961 (gather_mem_refs_stmt): Likewise.
10962 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
10963 (execute_sm_if_changed_flag_set): Adjust.
10964 (execute_sm): Likewise.
10965 (ref_always_accessed_p): Likewise.
10966 (refs_independent_p): Likewise.
10967 (can_sm_ref_p): Likewise.
10968
12d2dc5e
JJ
109692013-03-18 Jakub Jelinek <jakub@redhat.com>
10970
10971 PR c/56566
10972 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
10973 return 1 even for !unsignedp.
10974
286fb677
UB
109752013-03-17 Uros Bizjak <ubizjak@gmail.com>
10976
10977 * config/i386/i386.md (isa): Add x64 and nox64.
10978 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
10979 (*pushtf): Enable *roF alternative for x64 isa only.
10980 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
10981 mode attribute of integer alternatives to DImode for TARGET_64BIT.
10982 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
10983 (*movtf_internal): Merge from *movtf_internal_rex64 and
10984 *movtf_internal_sse. Use x64 and nox64 isa attributes.
10985 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
10986 nox64 isa attributes.
10987 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
10988 nox64 isa attributes.
10989 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
10990
88b97037
UB
109912013-03-17 Uros Bizjak <ubizjak@gmail.com>
10992
10993 * config/alpha/alpha.c (TARGET_LRA_P): New define.
10994
9f4f1735
JJ
109952013-03-17 Jakub Jelinek <jakub@redhat.com>
10996
10997 PR target/56640
10998 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
10999 class names. Remove trailing comma after "ALL_REGS".
11000
48f4a6fa
JH
110012013-03-16 Jan Hubicka <jh@suse.cz>
11002
11003 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
11004 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
11005 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
11006 of cgraph_get_create_node.
11007 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
11008
98e81123
JM
110092013-03-16 Jason Merrill <jason@redhat.com>
11010
11011 PR debug/49090
11012 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
11013 with DW_AT_default_value.
11014
8a298c04
JJ
110152013-03-16 Jakub Jelinek <jakub@redhat.com>
11016
11017 * BASE-VER: Set to 4.9.0.
11018
4323afa0
AK
110192013-03-14 Andi Kleen <ak@linux.intel.com>
11020
11021 PR target/56619
11022 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
11023 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
11024 Document _x* TSX intrinsics.
11025
b3c0d469
JJ
110262013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
11027 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
11028
11029 * configure.ac: Add MicroBlaze TLS support detection.
11030 * configure: Regenerate.
88b97037
UB
11031 * config/microblaze/microblaze-protos.h
11032 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
11033 symbol_mentioned_p, label_mentioned_p): Add prototypes.
11034 * config/microblaze/microblaze.c (microblaze_address_type): Add
11035 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
11036 (microblaze_address_info): Add tls_reloc.
11037 (TARGET_HAVE_TLS): Define.
11038 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
11039 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
11040 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
11041 load_tls_operand, microblaze_call_tls_get_addr,
11042 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
11043 (microblaze_classify_unspec): Handle UNSPEC_TLS.
11044 (get_base_reg): Use microblaze_tls_symbol_p.
11045 (microblaze_classify_address): Handle TLS.
88b97037
UB
11046 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
11047 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
11048 (microblaze_legitimize_address): Handle TLS.
11049 (microblaze_address_insns): Handle ADDRESS_TLS.
11050 (pic_address_needs_scratch): Handle TLS.
11051 (print_operand_address): Handle TLS.
11052 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
11053 (microblaze_expand_move): Handle TLS.
88b97037
UB
11054 (microblaze_legitimate_constant_p): Check
11055 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
11056 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
11057 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
11058 (PIC_OFFSET_TABLE_REGNUM): Set.
11059 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
11060 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
11061 (addsi3, movsi_internal2, movdf_internal): Update constraints
11062 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
11063 (move_operand): Redefine as move_src_operand,
11064 check microblaze_tls_referenced_p.
8cc9a5a5 11065
d803a491
IB
110662013-03-14 Ian Bolton <ian.bolton@arm.com>
11067
11068 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
11069 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
11070
a8504f22
IB
110712013-03-14 Ian Bolton <ian.bolton@arm.com>
11072
11073 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
11074 CC mode for AND.
11075
df2dfaea
JJ
110762013-03-14 Jakub Jelinek <jakub@redhat.com>
11077
fbd28bc3
JJ
11078 PR tree-optimization/53265
11079 * common.opt (Waggressive-loop-optimizations): New option.
11080 * tree-ssa-loop-niter.c: Include tree-pass.h.
11081 (do_warn_aggressive_loop_optimizations): New function.
11082 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
11083 if number_of_latch_executions returned constant.
11084 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
11085 early. If number_of_latch_executions returned constant, set
11086 nb_iterations_upper_bound back to it.
11087 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
11088 field.
11089 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
11090 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
11091
df2dfaea
JJ
11092 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
11093 (MULTILIB_OSDIRNAMES): Set.
11094 * genmultilib: If defaultosdirname doesn't start with :: , set
11095 defaultosdirname2 instead, clear it and emit two . multilib_raw
11096 entries instead of just one.
11097
ee0d2b68
KK
110982013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
11099
11100 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
11101 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
11102 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
11103 (SUBTARGET_OVERRIDE_OPTIONS): New.
11104
decc676e
OE
111052013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
11106
11107 PR target/49880
11108 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
11109 (musermode): Convert to Var(TARGET_USERMODE).
11110 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
11111 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
11112 * config/sh/sh.c (sh_option_override): Use
11113 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
11114 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
11115 condition.
11116 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
11117 TARGET_SH4.
11118 (udivsi3_i4_single, divsi3_i4_single): Use
11119 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
11120
f4b719c7
DK
111212013-03-13 Dave Korn <dave.korn.cygwin@....>
11122
11123 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
11124 default setting.
11125
c40eced0
RB
111262013-03-13 Richard Biener <rguenther@suse.de>
11127
11128 PR tree-optimization/56608
11129 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
11130 calls when vectorizing basic-blocks.
11131
1bfa5973
JJ
111322013-03-13 Jakub Jelinek <jakub@redhat.com>
11133
11134 PR plugins/45078
11135 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
11136 tm_file.
11137
6fcf5434
JJ
111382013-03-12 Jakub Jelinek <jakub@redhat.com>
11139
11140 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
11141
4f38fa8c
JH
111422013-03-11 Jan Hubicka <jh@suse.cz>
11143
11144 PR lto/56557
11145 * lto-streamer-out.c (output_symbol_p): Skip references from
11146 constructors of external variables.
11147
c5c5ba89
JH
111482013-03-11 Jan Hubicka <jh@suse.cz>
11149
11150 PR middle-end/56571
11151 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
11152 from pseudos.
11153 * emit-rtl.c (verify_rtx_sharing): Likewise.
11154 (copy_insn_1): Likewise.
11155 * rtl.c (copy_rtx): Likewise.
11156
c2a939b1
GJL
111572013-03-11 Georg-Johann Lay <avr@gjlay.de>
11158
11159 PR target/56591
11160 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
11161 output_operand_lossage message.
88b97037 11162
3c3279fb
RE
111632013-03-11 Richard Earnshaw <rearnsha@arm.com>
11164
11165 PR target/56470
11166 * arm.c (shift_op): Validate RTL pattern on the fly.
11167 (arm_print_operand, case 'S'): Don't use shift_operator to validate
11168 the RTL.
11169
aef5ef9d
JDA
111702013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11171
11172 PR target/56347
11173 * config/pa/pa.md (call_value): Check for calls to powf and direct to
11174 new call patterns that clobber %fr12.
11175 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
11176 split and postreload patterns.
11177 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
11178 registers %fr12 and %fr12R as call used.
11179
456610d3
SB
111802013-03-09 Steven Bosscher <steven@gcc.gnu.org>
11181
11182 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
11183 (canon_address, record_store, replace_read, check_mem_read_rtx,
11184 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
11185 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
11186 rest_of_handle_dse): Likewise.
11187
4b1baac8
RS
111882013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
11189
11190 PR middle-end/56524
11191 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
11192 Add base_optabs.
11193 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
11194 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
11195 (save_optabs_if_changed): Replace with...
11196 (init_tree_optimization_optabs): ...this.
11197 * optabs.c (save_optabs_if_changed): Rename to...
11198 (init_tree_optimization_optabs): ...this. Take the optimization node
11199 as argument. Do nothing if the base optabs are already correct.
11200 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
11201 to recompute optabs.
11202 * function.h (function): Remove optabs field.
11203 * function.c (invoke_set_current_function_hook): Call
11204 init_tree_optimization_optabs. Use the result to initialize
11205 this_fn_optabs.
11206
b7a78683
AH
112072013-02-27 Aldy Hernandez <aldyh@redhat.com>
11208
11209 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
11210 if GTMA_HAS_NO_INSTRUMENTATION.
11211 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
11212 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
11213 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
11214 * gimple-pretty-print.c (dump_gimple_transaction): Handle
11215 GTMA_HAS_NO_INSTRUMENTATION.
11216
6384c29b
JJ
112172013-03-08 Jakub Jelinek <jakub@redhat.com>
11218
11219 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
11220 libasan_preinit.o.
11221
ecd4f20a
MP
112222013-03-08 Marek Polacek <polacek@redhat.com>
11223 Jakub Jelinek <jakub@redhat.com>
11224
11225 PR tree-optimization/56478
11226 * predict.c (is_comparison_with_loop_invariant_p): Change the
11227 type of loop_step to tree.
11228 (predict_loops): Adjust.
11229 (predict_iv_comparison): Perform the computations on double_ints.
11230
64366d35
RB
112312013-03-08 Richard Biener <rguenther@suse.de>
11232
11233 PR tree-optimization/56570
11234 * tree-cfg.c (verify_expr_location_1): Verify locations for
11235 DECL_DEBUG_EXPR.
11236 * tree-sra.c (create_access_replacement): Strip locations
11237 from DECL_DEBUG_EXPRs.
11238
a9d5a059
RB
112392013-03-08 Richard Biener <rguenther@suse.de>
11240
11241 * tree-inline.c (expand_call_inline): Do not associate
11242 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
11243 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
11244
b7aa4e9a
RB
112452013-03-08 Richard Biener <rguenther@suse.de>
11246
11247 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
11248 or block changes with -Og. Fix for location / block encoding
11249 changes and PHI arguments with locations.
11250
c4c2f9fa
SB
112512013-03-07 Steven Bosscher <steven@gcc.gnu.org>
11252
11253 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
11254 for all counters.
11255 (struct output_info): Likewise.
11256 (register_overhead): Remove bad gcc_assert.
11257 (bitmap_find_bit): If there is only a single bitmap element, do not
11258 count a miss as a search.
11259 (print_statistics): Update for counter type changes.
11260 (dump_bitmap_statistics): Likewise. Print headers such that they
11261 are properly lined up with the printed counters.
11262
5bf6606a
JJ
112632013-03-07 Jakub Jelinek <jakub@redhat.com>
11264
11265 PR tree-optimization/56559
11266 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
11267 check that it has only a single use.
11268
2c653d46
RB
112692013-03-07 Richard Biener <rguenther@suse.de>
11270
11271 * doc/invoke.texi (fwhole-program): Discourage use in combination
11272 with -flto.
11273
a72d8780
JJ
112742013-03-06 Jakub Jelinek <jakub@redhat.com>
11275
01a454df
JJ
11276 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
11277
c1781047
JJ
11278 PR tree-optimization/56539
11279 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
11280 instead of GSI_CONTINUE_LINKING as last argument to
11281 force_gimple_operand_gsi. Adjust function comment.
11282
9772c47a
JJ
11283 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
11284 aarch64-cores.def.
11285
a72d8780
JJ
11286 PR middle-end/56548
11287 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
11288 promoted mode, convert the result back to the original mode.
11289
fa5556de
RB
112902013-03-06 Richard Biener <rguenther@suse.de>
11291
11292 PR middle-end/56294
11293 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
11294 (insert_updated_phi_nodes_compare_uids): New function.
11295 (update_ssa): Sort symbols_to_rename after UID before
11296 traversing it to insert PHI nodes.
11297
010403d1
RB
112982013-03-06 Richard Biener <rguenther@suse.de>
11299
11300 PR middle-end/50494
11301 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
11302 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
11303
11304 Revert
11305 2013-02-13 Richard Biener <rguenther@suse.de>
11306
11307 PR lto/50494
11308 * varasm.c (output_constant_def_1): Get the decl representing
11309 the constant as argument.
11310 (output_constant_def): Wrap output_constant_def_1.
11311 (make_decl_rtl): Use output_constant_def_1 with the decl
11312 representing the constant.
11313 (build_constant_desc): Optionally re-use a decl already
11314 representing the constant.
11315 (tree_output_constant_def): Adjust.
11316
3c27ce4c
JY
113172013-03-06 Joey Ye <joey.ye@arm.com>
11318
11319 PR lto/50293
11320 * gcc.c (convert_white_space): New function.
11321 (main): Handles white space in function name.
11322
8f6d1c86
OE
113232013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
11324
11325 PR target/56529
11326 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
11327 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
11328 to SH_DIV_CALL_TABLE for TARGET_SH2.
11329 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
11330 list.
11331 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
11332 call-table options.
11333
798a209f
SA
113342013-03-05 Sterling Augustine <saugustine@google.com>
11335 Cary Coutant <ccoutant@google.com>
11336
11337 PR debug/55364
11338 * dwarf2out.c (resolve_addr): Don't call
11339 remove_loc_list_addr_table_entries a second time for the same
11340 expression.
11341
6cfa417f 113422013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 11343
6cfa417f
JJ
11344 PR debug/56510
11345 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
11346 (avoid_complex_debug_insns): New function.
11347 (expand_debug_locations): Call it.
11348
11349 PR rtl-optimization/56484
11350 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
11351 lifetimes of hard registers on small register class machines.
11352
113532013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
11354
11355 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 11356 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 11357 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
11358 fast_interrupt.
11359 (microblaze_fast_interrupt_function_p): New function.
11360 (microblaze_is_interrupt_handler): Rename to
11361 microblaze_is_interrupt_variant and add fast_interrupt check.
11362 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
11363 (save_restore_insns): Likewise.
11364 (compute_frame_size): Likewise.
11365 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
11366 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
11367 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
11368 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
11369 microblaze_is_interrupt_variant.
11370
731aefac
KT
113712013-03-05 Kai Tietz <ktietz@redhat.com>
11372
11373 * sdbout.c (sdbout_one_type): Switch to current function's section
11374 supporting cold/hot.
11375
a72d8780 113762013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
11377
11378 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
11379 -mxl-reorder.
11380
334e71e8
JJ
113812013-03-05 Jakub Jelinek <jakub@redhat.com>
11382
0b50e654
JJ
11383 PR middle-end/56461
11384 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
11385 if VALGRIND_GET_VBITS is defined, temporarily make object
11386 memory all defined, and restore previous valgrind addressability
11387 and definability afterwards. Free this_object at the end.
11388
4ccf8f43
JJ
11389 PR middle-end/56461
11390 * lra.c (lra): Call lra_clear_live_ranges if live_p,
11391 right before calling lra_create_live_ranges, also call it
11392 when clearing live_p. Only call lra_clear_live_ranges
11393 at the end if live_p.
11394
334e71e8
JJ
11395 PR middle-end/56461
11396 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
11397
9ca966ca
RB
113982013-03-05 Richard Biener <rguenther@suse.de>
11399
11400 PR tree-optimization/56521
11401 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
11402 value-id.
11403
d273b176
SB
114042013-03-05 Steven Bosscher <steven@gcc.gnu.org>
11405
11406 PR c++/55135
11407 * except.h (remove_unreachable_eh_regions): New prototype.
11408 * except.c (remove_eh_handler_splicer): New function, split out
11409 of remove_eh_handler.
11410 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
11411 warning about running it on many EH regions one at a time.
11412 (remove_unreachable_eh_regions_worker): New function, walk the
11413 EH tree in depth-first order and remove non-marked regions.
11414 (remove_unreachable_eh_regions): New function.
11415 * tree-eh.c (mark_reachable_handlers): New function, split out
11416 from remove_unreachable_handlers.
11417 (remove_unreachable_handlers): Use mark_reachable_handlers and
11418 remove_unreachable_eh_regions.
11419 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
11420 and remove_unreachable_eh_regions.
11421
5e7f1aef
RB
114222013-03-05 Richard Biener <rguenther@suse.de>
11423
11424 PR middle-end/56525
11425 * loop-init.c (fix_loop_structure): Remove loops in two stages,
11426 not freeing them until the end.
11427
f276b762
AK
114282013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11429
11430 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
11431
12a43ab8
RB
114322013-03-05 Richard Biener <rguenther@suse.de>
11433
11434 PR tree-optimization/56270
11435 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
11436 of loads after scheduling an SLP instance.
11437
93675444
JJ
114382013-03-05 Jakub Jelinek <jakub@redhat.com>
11439
db4138e3
JJ
11440 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
11441 tic6x.exp.
11442 (check_gcc_parallelize): Run guality.exp as a separate job from
11443 vect.exp with unsorted.exp and $(dg_target_exps) separately from
11444 struct-layout-1.exp with stackalign.exp.
11445
dd3d1ec0
JJ
11446 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
11447
b8d381a3
JJ
11448 PR middle-end/56461
11449 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
11450 load_index sbitmap even if some bit in it isn't set.
11451
b4f9786b
JJ
11452 PR middle-end/56461
11453 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
11454 (discover_iteration_bound_by_body_walk): Change queues to
11455 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
11456 spelling in comment. Call safe_push on queues[bound_index] directly.
11457 Release queues[queue_index] in every iteration unconditionally.
11458 Release bounds vector.
11459
93675444
JJ
11460 PR middle-end/56461
11461 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
11462 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
11463 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
11464 inner_phis vector.
11465
3e492e9c
RB
114662013-03-05 Richard Biener <rguenther@suse.de>
11467
11468 PR lto/56515
11469 * tree-inline.c (remap_blocks_to_null): New function.
11470 (expand_call_inline): When expanding a call stmt without
11471 an associated block inline remap all callee blocks to NULL.
11472
a5d1569a
JJ
114732013-03-05 Jakub Jelinek <jakub@redhat.com>
11474
86efb5cd
JJ
11475 PR rtl-optimization/56494
11476 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
11477 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
11478 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
11479
85f5dbea
JJ
11480 PR middle-end/56461
11481 * sel-sched-ir.c (free_sched_pools): Release
11482 succs_info_pool.stack[succs_info_pool.max_top] vectors too
11483 if succs_info_pool.max_top isn't -1.
11484
a5d1569a
JJ
11485 PR bootstrap/56509
11486 * opts.c (opts_obstack, opts_concat): Moved to...
11487 * opts-common.c (opts_obstack, opts_concat): ... here.
11488
4432aa6c
JJ
114892013-03-04 Jakub Jelinek <jakub@redhat.com>
11490
11491 PR middle-end/56461
11492 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
11493
f3a1fb91
MJ
114942013-03-04 Martin Jambor <mjambor@suse.cz>
11495
11496 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
11497 all appropriate places.
11498
22110e6c
EB
114992013-01-04 Eric Botcazou <ebotcazou@adacore.com>
11500
11501 PR tree-optimization/56424
11502 * ipa-split.c (split_function): Do not set the RSO flag if result is
11503 not by reference and its type is a register type.
11504
a72d8780 115052013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 11506
88b97037 11507 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 11508 (microblaze_legitimate_pic_operand): Likewise
88b97037 11509 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
11510 new function microblaze_legitimate_pic_operand
11511 * config/microblaze/microblaze-protos.h
11512 (microblaze_legitimate_pic_operand): Declare.
11513
a72d8780 115142013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 11515
a72d8780 11516 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 11517 New predicate for supported rtx code types.
a72d8780 11518 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
11519 call_insn_simple_operand predicate.
11520
541d9ac8
JJ
115212013-03-04 Jakub Jelinek <jakub@redhat.com>
11522
5eb010bc
JJ
11523 PR middle-end/56461
11524 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
11525 partitions.ordered_remove.
11526
30862efc
JJ
11527 PR middle-end/56461
11528 * tree-vect-stmts.c (vectorizable_conversion): Don't call
11529 vec_oprnds0.create (1) for modifier == NONE.
11530
8930f723
JJ
11531 PR middle-end/56461
11532 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
11533 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
11534 vec_oprnds1 right before pushing anything to it for
11535 scalar_shift_arg.
11536
541d9ac8
JJ
11537 PR middle-end/56461
11538 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
11539 set nbbs to 0 instead of having separate code path.
11540 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
11541 instead of false as last argument if returning NULL.
11542
7aa7f2e3
SL
115432013-03-03 Sandra Loosemore <sandra@codesourcery.com>
11544
11545 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
11546 the attribute is now called "target" instead of "option".
11547 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
11548 * doc/tm.texi.in (Target Attributes): Likewise document the correct
11549 attribute/pragma name for TARGET_OPTION_VALID_P and
11550 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
11551 * doc/tm.texi: Regenerated.
11552
8930f723 115532013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 11554
8930f723 11555 * config/microblaze/microblaze.c:
cb8a1637 11556 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
11557 * config/microblaze/microblaze.h: Add -mxl-reorder to
11558 DRIVER_SELF_SPECS.
11559 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
11560 instructions emitted if TARGET_REORDER.
88b97037
UB
11561 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
11562 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 11563 separately.
cb8a1637 11564
4dc1d68c
XDL
115652013-03-01 Xinliang David Li <davidxl@google.com>
11566
11567 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
11568 walk length.
11569
689eaba3
JJ
115702013-03-01 Jakub Jelinek <jakub@redhat.com>
11571
9d676bf6
JJ
11572 PR middle-end/56461
11573 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
11574 vector even when returning true. Fix up function comment formatting.
11575
caff7edf
JJ
11576 PR middle-end/56461
11577 * ira-build.c (ira_loop_nodes_count): New variable.
11578 (create_loop_tree_nodes): Initialize it.
11579 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
11580
b6b9227d
JJ
11581 PR middle-end/56461
11582 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
11583 method on dr_chain and result_chain.
11584 * tree-vect-stmts.c (vectorizable_store): Only call
11585 result_chain.create if j == 0.
11586
689eaba3
JJ
11587 PR middle-end/56461
11588 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
11589 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
11590 before overwriting it.
11591
40bf31ed
TB
115922013-03-01 Tobias Burnus <burnus@net-b.de>
11593
11594 * doc/extended.texi (C Extensions): Change order in @menu
11595 to match @node.
11596 (Other MIPS Built-in Functions): Move last MIPS entry before
11597 "picoChip Built-in Functions".
11598 (SH Built-in Functions): Move after RX Built-in Functions.
11599 * doc/gcc.texi (Introduction): Change order in @menu
11600 to match @node.
11601 * doc/md.texi (Constraints): Ditto.
11602 * gty.texi (Type Information): Ditto.
11603 (User-provided marking routines for template types): Make
11604 subsection.
11605 * doc/invoke.texi (AArch64 Options): Move before
11606 "Adapteva Epiphany Options".
11607
e664c61c
KS
116082013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
11609 Jakub Jelinek <jakub@redhat.com>
11610
11611 PR sanitizer/56454
11612 * asan.c (gate_asan): Lookup no_sanitize_address instead of
11613 no_address_safety_analysis attribute.
11614 * doc/extend.texi (no_address_safety_attribute): Rename to
11615 no_sanitize_address attribute, mention no_address_safety_analysis
11616 attribute as deprecated alias.
11617
37b5ec8f
JJ
116182013-02-28 Jakub Jelinek <jakub@redhat.com>
11619
11620 PR middle-end/56461
11621 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
11622 type to vec<vec<tree> > *.
11623 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
11624 to be vec<tree> instead of vec<tree> *, set vec_defs
11625 to vNULL and call vec_defs.create (number_of_vects), adjust other
11626 uses of vec_defs.
11627 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
11628 vectorizable_condition): Adjust vect_get_slp_defs callers.
11629
ba96cdfb
JG
116302013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
11631
11632 * config/aarch64/aarch64.c
11633 (aarch64_float_const_representable): Remove unused variable.
11634
6f549691
JG
116352013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
11636
11637 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
11638
af55e82d
JG
116392013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
11640
11641 * config/aarch64/aarch64-builtins.c
11642 (aarch64_init_simd_builtins): Make static.
11643
1df3f464
JG
116442013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
11645
11646 * config/aarch64/aarch64.c
11647 (aarch64_simd_make_constant): Make static.
11648
f8f42513
MJ
116492013-02-28 Martin Jambor <mjambor@suse.cz>
11650
11651 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
11652 with no initialization to the RHS of debug statements.
11653
b48b3fc4
MJ
116542013-02-28 Martin Jambor <mjambor@suse.cz>
11655
11656 PR tree-optimization/56294
11657 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
11658 Adjust dumping.
11659 (get_access_replacement): Do not call create_access_replacement.
11660 Assert a replacement exists.
11661 (get_repl_default_def_ssa_name): Create the replacement declaration
11662 itself.
11663
c3ae224c
RR
116642013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11665
11666 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
11667 final_end_function.
11668
45fa0eef
MP
116692013-02-28 Marek Polacek <polacek@redhat.com>
11670
11671 PR rtl-optimization/56466
11672 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
11673 if we're changing a loop.
11674 (peel_loops_completely): Likewise.
11675
502c067d
PC
116762013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
11677
11678 PR c++/55813
11679 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
11680
ff24afc8
GJL
116812013-02-28 Georg-Johann Lay <avr@gjlay.de>
11682
11683 PR target/56445
11684 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
11685 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
11686 INTX_FTYPE_FX, FX_FTYPE_INTX.
11687 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
11688
c7b1fc1b
GJL
116892013-02-28 Georg-Johann Lay <avr@gjlay.de>
11690
11691 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
11692 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
11693 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
11694 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
11695 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
11696 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
11697 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
11698 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
11699 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
11700 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
11701 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
11702 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
11703 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
11704 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
11705 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
11706 (avrxmega6): Increase max flash segments from 5 to 6.
11707 * config/avr/t-multilib: Regenerate.
11708 * config/avr/avr-tables.opt: Regenerate.
11709 * doc/avr-mmcu.texi: Regenerate.
11710
4a0e3cfe
GJL
117112013-02-28 Georg-Johann Lay <avr@gjlay.de>
11712
11713 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
11714 (avr_device_to_arch): Rename to avr_device_to_ld.
11715 (avr_device_to_as): New prototype.
11716 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
11717 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
11718 * config/avr/driver-avr.c (avr_device_to_as): New.
11719 (avr_device_to_arch): Rename to avr_device_to_ld.
11720
97785e52
JJ
117212013-02-27 Jakub Jelinek <jakub@redhat.com>
11722
3f292312
JJ
11723 PR middle-end/56461
11724 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
11725 method on dr_chain and result_chain.
11726
a344216b
JJ
11727 PR middle-end/56461
11728 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
11729 pointer_set_destroy on not_executed_last_iteration.
11730
f121ad02 11731 PR middle-end/56461
88b97037 11732 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 11733
307f83a3
JJ
11734 PR middle-end/56461
11735 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
11736 FOR_EACH_DEFINED_FUNCTION when freeing state.
11737
e19624ee
JJ
11738 PR middle-end/56461
11739 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
11740 pool_free.
11741 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
11742 overwriting it.
11743
90e709fd
JJ
11744 PR middle-end/56461
11745 * ipa-cp.c (decide_whether_version_node): Call vec_free on
11746 known_aggs[i].items and release known_aggs vector.
11747
97785e52
JJ
11748 PR middle-end/56461
11749 * ipa-reference.c (propagate): Free node_info even for alias nodes.
11750
117512013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 11752
97785e52
JJ
11753 * config/microblaze/microblaze.c (microblaze_emit_compare):
11754 Use xor for EQ/NE comparisions.
11755 * config/microblaze/microblaze.md (cstoresf4): Add constraints
11756 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 11757
6fa5e0ed
JJ
117582013-02-27 Jakub Jelinek <jakub@redhat.com>
11759
11760 PR middle-end/56461
11761 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
11762 vector.
11763 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
11764 vec_safe_push, always update *slot.
11765 (redirect_edge_var_map_clear): Use vec_free.
11766 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
11767 (free_var_map_entry): Use vec_free.
11768 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
11769 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
11770
436a956a
AB
117712013-02-27 Andrey Belevantsev <abel@ispras.ru>
11772
11773 PR middle-end/45472
436a956a
AB
11774 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
11775 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
11776 Reorder tests for speculativeness in the logical and operator.
11777
f5c2caca
JJ
117782013-02-27 Jakub Jelinek <jakub@redhat.com>
11779
0fcb564b
JJ
11780 * incpath.c (add_standard_paths): Use reconcat instead of concat
11781 where appropriate and avoid leaking memory.
11782
dc357798
JJ
11783 * opts.h: Include obstack.h.
11784 (opts_concat): New prototype.
11785 (opts_obstack): New declaration.
11786 * opts.c (opts_concat): New function.
11787 (opts_obstack): New variable.
11788 (init_options_struct): Call gcc_init_obstack on opts_obstack.
11789 (finish_options): Use opts_concat instead of concat
11790 and XOBNEWVEC instead of XNEWVEC.
11791 * opts-common.c (generate_canonical_option, decode_cmdline_option,
11792 generate_option): Likewise.
11793 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
11794 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
11795
f5c2caca
JJ
11796 PR target/56455
11797 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
11798 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
11799
d0163673
JJ
118002013-02-26 Jakub Jelinek <jakub@redhat.com>
11801
11802 PR middle-end/56461
11803 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
11804
b5ad2b8e
JR
118052013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
11806
11807 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
11808 (arm_block_move_unaligned_straight): Likewise.
11809 (arm_adjust_block_mem): Likewise.
11810
9b639e2c
JR
118112013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
11812
11813 PR target/48901
11814 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
11815 temp, cond and label.
11816 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
11817
e13a0ccb
JR
11818 PR target/52500
11819 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
11820 * config/c6x/c6x.h (dbx_register_map): Update declaration.
11821
fbe4f171
JR
11822 PR target/52501
11823 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
11824 of prologue/epilogue functions.
11825
ae006543
JR
11826 PR target/52550
11827 * config/tilegx/tilegx.c (tilegx_expand_prologue):
11828 Remove unused variable cfa_offset.
11829 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
11830
c81369fa
JR
11831 PR target/54639
11832 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
11833 type promotion to unsigned.
11834
f8a8fea7
JR
11835 PR target/54640
11836 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
11837 for HOST_WIDE_INT of 32 bit / same size as int.
11838 (arm_block_move_unaligned_straight): Likewise.
11839 (arm_adjust_block_mem): Likewise.
11840
f8be5169
JR
11841 PR target/54662
11842 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
11843 ALL_CFLAGS.
11844
f1ad3354
MP
118452013-02-26 Marek Polacek <polacek@redhat.com>
11846
11847 PR tree-optimization/56426
88b97037 11848 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 11849
a6af0f42
RB
118502013-02-26 Richard Biener <rguenther@suse.de>
11851
11852 PR target/56444
11853 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
11854 unused variable loops.
11855
aca43c6c
JJ
118562013-02-26 Jakub Jelinek <jakub@redhat.com>
11857
cecbe5d9
JJ
11858 PR tree-optimization/56448
11859 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
11860 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
11861 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
11862 later operands of the references, or even first operand for
11863 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
11864
aca43c6c
JJ
11865 PR tree-optimization/56443
11866 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
11867 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
11868 to type_for_mode langhook.
11869
53e2e141
MT
118702013-02-25 Matt Turner <mattst88@gmail.com>
11871
11872 * doc/invoke.texi: Document r4700.
11873
259ee451
RB
118742013-02-25 Richard Biener <rguenther@suse.de>
11875
11876 PR tree-optimization/56175
11877 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
11878 split out from ...
11879 (simplify_bitwise_binary): ... here. Also guard the conversion
11880 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
11881
6d65e8f1
CM
118822013-02-25 Catherine Moore <clm@codesourcery.com>
11883
11884 Revert:
11885 2013-02-24 Catherine Moore <clm@codesourcery.com>
11886 Maciej W. Rozycki <macro@codesourcery.com>
11887 Tom de Vries <tom@codesourcery.com>
a72d8780 11888 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
11889 Iain Sandoe <iain@codesourcery.com>
11890 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 11891 Chao-ying Fu <fu@mips.com>
88b97037 11892
6d65e8f1 11893 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 11894 Document new function attributes.
6d65e8f1
CM
11895 * doc/invoke.texi (minterlink-compressed, mmicromips,
11896 m14k, m14ke, m14kec): Document new options.
11897 (minterlink-mips16): Update documentation.
11898 * doc/md.texi (ZC, ZD): Document new constraints.
11899 * configure.ac (gcc_cv_as_micromips): Check if linker
11900 supports the .set micromips directive.
11901 * configure: Regenerate.
11902 * config.in: Regenerate.
11903 * config/mips/mips-tables.opt: Regenerate.
11904 * config/mips/micromips.md: New file.
11905 * constraints.md (ZC, AD): New constraints.
11906 * config/mips/predicates.md (movep_src_register): New predicate.
11907 (movep_src_operand): New predicate.
11908 (non_volatile_mem_operand): New predicate.
11909 * config/mips/mips.md (multimem): New type.
11910 (length): Differentiate between 17-bit and 18-bit branch offsets.
11911 (MOVEP1, MOVEP2): New mode iterator.
11912 (mov_<load>l): Use ZC constraint.
11913 (mov_<load>r): Likewise.
11914 (mov_<store>l): Likewise.
11915 (mov_<store>r): Likewise.
11916 (*branch_equality<mode>_inverted): Add microMIPS support.
11917 (*branch_equality<mode>): Likewise.
11918 (*jump_absolute): Likewise.
11919 (indirect_jump_<mode>): Likewise.
11920 (tablejump_<mode>): Likewise.
11921 (<optab>_internal): Likewise.
11922 (sibcall_internal): Likewise.
11923 (sibcall_value_internal): Likewise.
11924 (prefetch): Use constraint ZD.
11925 * config/mips/mips.opt (minterlink-compressed): New option.
11926 (minterlink-mips16): Now an alias for minterlink-compressed.
11927 (mmicromips): New option.
11928 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
11929 (compare_and_swap_12): Likewise.
11930 (sync_add<mode>): Likewise.
11931 (sync_<optab>_12): Likewise.
11932 (sync_old_<optab>_12): Likewise.
11933 (sync_new_<optab>_12): Likewise.
11934 (sync_nand_12): Likewise.
11935 (sync_old_nand_12): Likewise.
11936 (sync_new_nand_12): Likewise.
11937 (sync_sub<mode>): Likewise.
11938 (sync_old_add<mode>): Likewise.
11939 (sync_old_sub<mode>): Likewise.
11940 (sync_new_add<mode>): Likewise.
11941 (sync_new_sub<mode>): Likewise.
11942 (sync_<optab><mode>): Likewise.
11943 (sync_old_<optab><mode>): Likewise.
11944 (sync_new_<optab><mode>): Likewise.
11945 (sync_nand<mode>): Likewise.
11946 (sync_old_nand<mode>): Likewise.
11947 (sync_new_nand<mode>): Likewise.
11948 (sync_lock_test_and_set<mode>): Likewise.
11949 (test_and_set_12): Likewise.
11950 (atomic_compare_and_swap<mode>): Likewise.
11951 (atomic_exchange<mode>_llsc): Likewise.
11952 (atomic_fetch_add<mode>_llsc): Likewise.
11953 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
11954 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
11955 (umips_save_restore_pattern_p): Likewise.
11956 (umips_load_store_pair_p): Likewise.
11957 (umips_output_load_store_pair): Likewise.
11958 (umips_movep_target_p): Likewise.
11959 (umips_12bit_offset_address_p): Likewise.
11960 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
11961 (mips_base_mips16): Rename this...
11962 (mips_base_compression_flags): ...to this. Update all uses.
11963 (mips_attribute_table): Add micromips, nomicromips and nocompression.
11964 (mips_mips16_decl_p): Delete.
11965 (mips_nomips16_decl_p): Delete.
11966 (mips_get_compress_on_flags): New function.
11967 (mips_get_compress_off_flags): New function.
11968 (mips_get_compress_mode): New function.
11969 (mips_get_compress_on_name): New function.
11970 (mips_get_compress_off_name): New function.
11971 (mips_insert_attributes): Support multiple compression types.
11972 (mips_merge_decl_attributes): Likewise.
11973 (umips_12bit_offset_address_p): New function.
11974 (mips_start_function_definition): Emit .set micromips directive.
11975 (mips_call_may_need_jalx_p): New function.
11976 (mips_function_ok_for_sibcall): Add microMIPS support.
11977 (mips_print_operand_punctuation): Support short delay slots and
11978 compact jumps.
11979 (umips_swm_mask, umips_swm_encoding): New.
11980 (umips_build_save_restore): New function.
11981 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
11982 (was_mips16_p): Remove.
11983 (old_compression_mode): New.
11984 (mips_set_compression_mode): New function.
11985 (mips_set_current_function): Add microMIPS support.
11986 (mips_option_override): Likewise.
11987 (umips_save_restore_pattern_p): New function.
11988 (umips_output_save_restore): New function.
11989 (umips_load_store_pair_p_1): New function.
11990 (umips_load_store_pair_p): New function.
11991 (umips_output_load_store_pair_1): New function.
11992 (umips_output_load_store_pair): New function.
11993 (umips_movep_target_p) New function.
11994 (mips_prepare_pch_save): Add microMIPS support.
11995 * config/mips/mips.h (TARGET_COMPRESSION): New.
11996 (TARGET_CPU_CPP_BUILTINS): Update macro
11997 to use new compression flags and to support microMIPS.
11998 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
11999 (MIPS_ARCH_FLOAT_SPEC): Likewise.
12000 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
12001 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
12002 (ASM_SPEC): Support mmicromips and mno-micromips.
12003 (M16STORE_REG_P): New macro.
12004 (MIPS_CALL): Support TARGET_MICROMIPS.
12005 (MICROMIPS_J): New macro.
12006 (mips_base_mips16): Rename this...
12007 (mips_base_compression_flags): ...to this.
12008 (UMIPS_12BIT_OFFSET_P): New macro.
12009 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
12010 (MULTILIB_DIRNAMES): Likewise.
12011
5e5df392
TV
120122013-02-25 Tom de Vries <tom@codesourcery.com>
12013
12014 PR rtl-optimization/56131
12015 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
12016 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
12017 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
12018
3fdb53c1
TB
120192013-02-25 Tobias Burnus <burnus@net-b.de>
12020
12021 * doc/invoke.texi (-fsanitize=): Move from optimization
12022 to debugging options.
12023
ed358aea
AB
120242013-02-25 Andrey Belevantsev <abel@ispras.ru>
12025
12026 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
12027
f45e9053
AB
120282013-02-25 Andrey Belevantsev <abel@ispras.ru>
12029 Alexander Monakov <amonakov@ispras.ru>
12030
12031 PR middle-end/56077
12032 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
12033 flush pending lists also on non-jumps. Adjust comment.
12034
6941b508
CM
120352013-02-24 Catherine Moore <clm@codesourcery.com>
12036 Maciej W. Rozycki <macro@codesourcery.com>
12037 Tom de Vries <tom@codesourcery.com>
a72d8780 12038 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
12039 Iain Sandoe <iain@codesourcery.com>
12040 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 12041 Chao-ying Fu <fu@mips.com>
6941b508
CM
12042
12043 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 12044 Document new function attributes.
6941b508
CM
12045 * doc/invoke.texi (minterlink-compressed, mmicromips,
12046 m14k, m14ke, m14kec): Document new options.
12047 (minterlink-mips16): Update documentation.
12048 * doc/md.texi (ZC, ZD): Document new constraints.
12049 * configure.ac (gcc_cv_as_micromips): Check if linker
12050 supports the .set micromips directive.
12051 * configure: Regenerate.
12052 * config.in: Regenerate.
12053 * config/mips/mips-tables.opt: Regenerate.
12054 * config/mips/micromips.md: New file.
12055 * constraints.md (ZC, AD): New constraints.
12056 * config/mips/predicates.md (movep_src_register): New predicate.
12057 (movep_src_operand): New predicate.
12058 (non_volatile_mem_operand): New predicate.
12059 * config/mips/mips.md (multimem): New type.
12060 (length): Differentiate between 17-bit and 18-bit branch offsets.
12061 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 12062 (mov_<load>l): Use ZC constraint.
6941b508
CM
12063 (mov_<load>r): Likewise.
12064 (mov_<store>l): Likewise.
12065 (mov_<store>r): Likewise.
12066 (*branch_equality<mode>_inverted): Add microMIPS support.
12067 (*branch_equality<mode>): Likewise.
12068 (*jump_absolute): Likewise.
12069 (indirect_jump_<mode>): Likewise.
12070 (tablejump_<mode>): Likewise.
12071 (<optab>_internal): Likewise.
12072 (sibcall_internal): Likewise.
12073 (sibcall_value_internal): Likewise.
12074 (prefetch): Use constraint ZD.
12075 * config/mips/mips.opt (minterlink-compressed): New option.
12076 (minterlink-mips16): Now an alias for minterlink-compressed.
12077 (mmicromips): New option.
12078 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
12079 (compare_and_swap_12): Likewise.
12080 (sync_add<mode>): Likewise.
12081 (sync_<optab>_12): Likewise.
12082 (sync_old_<optab>_12): Likewise.
12083 (sync_new_<optab>_12): Likewise.
12084 (sync_nand_12): Likewise.
12085 (sync_old_nand_12): Likewise.
12086 (sync_new_nand_12): Likewise.
12087 (sync_sub<mode>): Likewise.
12088 (sync_old_add<mode>): Likewise.
12089 (sync_old_sub<mode>): Likewise.
12090 (sync_new_add<mode>): Likewise.
12091 (sync_new_sub<mode>): Likewise.
12092 (sync_<optab><mode>): Likewise.
12093 (sync_old_<optab><mode>): Likewise.
12094 (sync_new_<optab><mode>): Likewise.
12095 (sync_nand<mode>): Likewise.
12096 (sync_old_nand<mode>): Likewise.
12097 (sync_new_nand<mode>): Likewise.
12098 (sync_lock_test_and_set<mode>): Likewise.
12099 (test_and_set_12): Likewise.
12100 (atomic_compare_and_swap<mode>): Likewise.
12101 (atomic_exchange<mode>_llsc): Likewise.
12102 (atomic_fetch_add<mode>_llsc): Likewise.
12103 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
12104 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
12105 (umips_save_restore_pattern_p): Likewise.
12106 (umips_load_store_pair_p): Likewise.
12107 (umips_output_load_store_pair): Likewise.
12108 (umips_movep_target_p): Likewise.
12109 (umips_12bit_offset_address_p): Likewise.
12110 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
12111 (mips_base_mips16): Rename this...
12112 (mips_base_compression_flags): ...to this. Update all uses.
12113 (mips_attribute_table): Add micromips, nomicromips and nocompression.
12114 (mips_mips16_decl_p): Delete.
12115 (mips_nomips16_decl_p): Delete.
3fdb53c1 12116 (mips_get_compress_on_flags): New function.
6941b508
CM
12117 (mips_get_compress_off_flags): New function.
12118 (mips_get_compress_mode): New function.
12119 (mips_get_compress_on_name): New function.
12120 (mips_get_compress_off_name): New function.
12121 (mips_insert_attributes): Support multiple compression types.
12122 (mips_merge_decl_attributes): Likewise.
12123 (umips_12bit_offset_address_p): New function.
12124 (mips_start_function_definition): Emit .set micromips directive.
12125 (mips_call_may_need_jalx_p): New function.
12126 (mips_function_ok_for_sibcall): Add microMIPS support.
12127 (mips_print_operand_punctuation): Support short delay slots and
12128 compact jumps.
12129 (umips_swm_mask, umips_swm_encoding): New.
12130 (umips_build_save_restore): New function.
12131 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
12132 (was_mips16_p): Remove.
12133 (old_compression_mode): New.
12134 (mips_set_compression_mode): New function.
12135 (mips_set_current_function): Add microMIPS support.
12136 (mips_option_override): Likewise.
12137 (umips_save_restore_pattern_p): New function.
12138 (umips_output_save_restore): New function.
12139 (umips_load_store_pair_p_1): New function.
12140 (umips_load_store_pair_p): New function.
12141 (umips_output_load_store_pair_1): New function.
12142 (umips_output_load_store_pair): New function.
12143 (umips_movep_target_p) New function.
12144 (mips_prepare_pch_save): Add microMIPS support.
12145 * config/mips/mips.h (TARGET_COMPRESSION): New.
12146 (TARGET_CPU_CPP_BUILTINS): Update macro
12147 to use new compression flags and to support microMIPS.
12148 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
12149 (MIPS_ARCH_FLOAT_SPEC): Likewise.
12150 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
12151 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
12152 (ASM_SPEC): Support mmicromips and mno-micromips.
12153 (M16STORE_REG_P): New macro.
12154 (MIPS_CALL): Support TARGET_MICROMIPS.
12155 (MICROMIPS_J): New macro.
12156 (mips_base_mips16): Rename this...
12157 (mips_base_compression_flags): ...to this.
12158 (UMIPS_12BIT_OFFSET_P): New macro.
12159 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
12160 (MULTILIB_DIRNAMES): Likewise.
12161
cdebbc6d
JJ
121622013-02-24 Jakub Jelinek <jakub@redhat.com>
12163
12164 PR target/52555
12165 * target-globals.c (save_target_globals): For init_reg_sets and
12166 target_reinit remporarily set this_fn_optabs to this_target_optabs.
12167
18c63565
JG
121682013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
12169
12170 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
12171 * config/aarch64/t-aarch64
12172 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
12173
2194f7a2
VM
121742013-02-22 Vladimir Makarov <vmakarov@redhat.com>
12175
12176 PR inline-asm/56148
12177 * lra-constraints.c (process_alt_operands): Reload operand
12178 conflicting with earlier clobber only if no more other conflicting
12179 operands.
12180
7d613735
JJ
121812013-02-22 Jakub Jelinek <jakub@redhat.com>
12182
12183 PR sanitizer/56393
12184 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
12185 if not linking a shared library.
12186
ac8d93a7
SL
121872013-02-22 Seth LaForge <sethml@google.com>
12188
12189 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
12190
e0237780
GY
121912013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
12192
3fdb53c1
TB
12193 * config/arm/arm.md (split for extendsidi): Update condition.
12194 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
12195 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
12196 (qhs_zextenddi_cstr): Likewise.
e0237780 12197
d7fde18c
JJ
121982013-02-21 Jakub Jelinek <jakub@redhat.com>
12199
be63b77d
JJ
12200 PR middle-end/56420
12201 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
12202 avoid signed wrapping.
12203 (expand_mult): Handle properly multiplication by
12204 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
12205 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
12206 in the compiler if coeff is HOST_WIDE_INT_MIN.
12207 (expand_divmod): Don't make ext_op1 static, change it's type to
12208 uhwi. Avoid undefined behavior in -INTVAL (op1).
12209
d7fde18c
JJ
12210 PR rtl-optimization/50339
12211 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
12212 field.
12213 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
12214 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
12215 into splitting_ashiftrt field.
12216 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
12217 ASHIFTRT.
12218 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
12219 choices.
12220
6aad4455
AH
122212013-02-20 Aldy Hernandez <aldyh@redhat.com>
12222
12223 PR middle-end/56108
12224 * trans-mem.c (execute_tm_mark): Do not expand transactions that
12225 are sure to go irrevocable.
12226
38fe784d
HPN
122272013-02-21 Hans-Peter Nilsson <hp@axis.com>
12228
12229 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
12230 scalars are valid operands.
12231
0fd44da3
MJ
122322013-02-21 Martin Jambor <mjambor@suse.cz>
12233
12234 PR tree-optimization/56310
12235 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
12236 only matching indices and non-negative final offsets.
12237 (intersect_aggregates_with_edge): Pass src_idx to
12238 agg_replacements_to_vector. Pass src_idx insstead of index to
12239 intersect_with_agg_replacements.
12240
7a92038b
MJ
122412013-02-21 Martin Jambor <mjambor@suse.cz>
12242
12243 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
12244 instead of hard-wired defaults.
12245
c0da9c37
MR
122462013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
12247
12248 * doc/invoke.texi (MIPS Options): Update documentation of the
12249 floating-point multiply-accumulate instruction restrictions.
12250
d247ea0c 122512013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
12252
12253 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
12254 asan_shadow_offset on x86_64 linux.
12255
22deefcb
RB
122562013-02-21 Richard Biener <rguenther@suse.de>
12257
12258 PR tree-optimization/56415
12259 Revert
12260 2013-02-11 Richard Biener <rguenther@suse.de>
12261
12262 PR tree-optimization/56273
12263 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
12264 first VRP run.
12265
7bcc6e75
JJ
122662013-02-21 Jakub Jelinek <jakub@redhat.com>
12267
a0ad148f
JJ
12268 PR bootstrap/56258
12269 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
12270 instead of @itemx.
12271
7bcc6e75
JJ
12272 PR inline-asm/56405
12273 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
12274 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
12275
a0a7b611
JH
122762013-02-20 Jan Hubicka <jh@suse.cz>
12277
12278 PR tree-optimization/56265
88b97037
UB
12279 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
12280 when target is referenced for first time.
a0a7b611 12281
c0e50f72
RB
122822013-02-20 Richard Biener <rguenther@suse.de>
12283
12284 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
12285 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
12286 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
12287 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
12288 not return anything.
12289 (rename_ssa_copies): Do not remove unused locals.
12290 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 12291 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
12292 * passes.c (execute_function_todo): Do not schedule unused locals
12293 removal if cleanup_tree_cfg did something.
12294 * tree-ssa-live.c (remove_unused_locals): Dump statistics
12295 about the number of removed locals.
12296
a52ca739
RB
122972013-02-20 Richard Biener <rguenther@suse.de>
12298
12299 PR tree-optimization/56398
88b97037 12300 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 12301
ec9c9d1b
MJ
123022013-02-20 Martin Jambor <mjambor@suse.cz>
12303
12304 PR tree-optimization/55334
12305 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
12306 restricted pointers to arrays.
12307
e91c8ed6 123082013-02-20 Richard Biener <rguenther@suse.de>
88b97037 12309 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
12310
12311 PR tree-optimization/56396
12312 * tree-ssa-ccp.c (n_const_val): New static variable.
12313 (get_value): Return NULL for SSA names we don't have a lattice
12314 entry for.
12315 (ccp_initialize): Initialize n_const_val.
12316 * tree-ssa-copy.c (n_copy_of): New static variable.
12317 (init_copy_prop): Initialize n_copy_of.
12318 (get_value): Return NULL_TREE for SSA names we don't have a
12319 lattice entry for.
12320
3d916479
MJ
123212013-02-20 Martin Jambor <mjambor@suse.cz>
12322
12323 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
12324
71a86758
RB
123252013-02-20 Richard Biener <rguenther@suse.de>
12326
12327 * genpreds.c (write_lookup_constraint): Do not compare first
12328 letter of the constraint again.
12329
79836a12
RB
123302013-02-20 Richard Biener <rguenther@suse.de>
12331
12332 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
12333 and ceil_log2.
12334 (get_use_iv_cost): Terminate hashtable walk when coming across
12335 an empty entry.
12336
bbe4fb2c
IZ
123372013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
12338
12339 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
12340 reassociation for avx2 targets.
12341
a72d8780 123422012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 12343
c77f83d5
EI
12344 * config/microblaze/microblaze.c: microblaze_has_clz = 0
12345 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 12346 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
12347 version and TARGET_PATTERN_COMPARE check
12348 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 12349
a72d8780 123502012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 12351
a72d8780 12352 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
12353 function before branching.
12354
242387fa
AB
123552012-02-19 Andrey Belevantsev <abel@ispras.ru>
12356
12357 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
12358 DUMP_INSN_RTX_UID.
12359 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
12360
b4979ab9
AB
123612012-02-19 Andrey Belevantsev <abel@ispras.ru>
12362
12363 PR middle-end/55889
b4979ab9
AB
12364 * sel-sched.c: Include ira.h.
12365 (implicit_clobber_conflict_p): New function.
12366 (moveup_expr): Use it.
88b97037 12367 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 12368
24d63016
RB
123692013-02-19 Richard Biener <rguenther@suse.de>
12370
12371 PR tree-optimization/56384
12372 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
12373 (vn_hash_type): Split out from ...
12374 (vn_hash_constant_with_type): ... here.
12375 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
12376 (vn_phi_eq): Compare types from vn_phi_s structure.
12377 (vn_phi_lookup): Populate vn_phi_s type.
12378 (vn_phi_insert): Likewise.
12379
a475fd3d
JJ
123802013-02-19 Jakub Jelinek <jakub@redhat.com>
12381
47cc28f5
JJ
12382 PR tree-optimization/56350
12383 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
12384 if haven't found reduction or nested cycle operand, rather than
12385 asserting we must find it.
12386
a475fd3d
JJ
12387 PR tree-optimization/56381
12388 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
12389 to fold_build3.
12390
123912013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
12392 Jakub Jelinek <jakub@redhat.com>
12393
12394 PR target/52555
12395 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
12396 (swap_optab_enable): Same.
12397 (init_all_optabs): Use argument instead of global.
88b97037 12398 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
12399 * expr.h (init_all_optabs): Add argument to prototype.
12400 (TREE_OPTIMIZATION_OPTABS): New.
12401 (save_optabs_if_changed): Protoize.
12402 * optabs.h: Declare this_fn_optabs.
12403 * optabs.c (save_optabs_if_changed): New.
12404 Declare this_fn_optabs.
12405 (init_optabs): Add argument to init_all_optabs() call.
12406 * function.c (invoke_set_current_function_hook): Handle per
12407 function optabs.
12408 * function.h (struct function): New field optabs.
12409 * config/mips/mips.c (mips_set_mips16_mode): Handle when
12410 optimization_current_node has changed.
12411 * target-globals.h (save_target_globals_default_opts): Protoize.
12412 * target-globals.c (save_target_globals_default_opts): New.
12413
3f587ca3
JDA
124142013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12415
12416 PR target/56347
12417 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
12418 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
12419
12420 PR target/56214
12421 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
12422 and HImode, require all displacements to be an integer multiple of
12423 their mode size.
ceaca33e
JDA
12424 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
12425 only allow QImode and HImode when reload is in progress and strict is
12426 true. Likewise for symbolic addresses. Use base14_operand to check
12427 displacements in REG+BASE addresses.
12428
fe0b4796
RB
124292013-02-18 Richard Biener <rguenther@suse.de>
12430
12431 PR tree-optimization/56366
12432 * tree-vect-loop.c (get_initial_def_for_induction): Properly
12433 handle sign-conversion of outer-loop initial induction value.
12434
6aaf596b
RB
124352013-02-18 Richard Biener <rguenther@suse.de>
12436
73db8ff1 12437 PR middle-end/56349
6aaf596b
RB
12438 * cfghooks.c (merge_blocks): If we merge a latch into another
12439 block adjust references to it.
12440 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
12441 (verify_loop_structure): Verify that a recorded latch is in fact
12442 a latch.
12443
5e97dfb6
RB
124442013-02-18 Richard Biener <rguenther@suse.de>
12445
12446 PR tree-optimization/56321
12447 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
12448 order SSA name release and virtual operand unlinking.
12449
825527e8
EI
124502013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12451
12452 * config/microblaze/microblaze.md (save_stack_block): Define.
12453 (restore_stack_block): Likewise.
12454
debd11d9
EI
124552013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12456
12457 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
12458 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
12459 * config/microblaze/microblaze.c (microblaze_option_override):
12460 Bail out early for PIC modes when target does not support PIC.
12461
8ec77be0
EI
124622013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12463
88b97037 12464 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
12465 Replace with a microblaze version.
12466 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 12467 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
12468 microblaze.
12469
b41288b3
JJ
124702013-02-16 Jakub Jelinek <jakub@redhat.com>
12471 Dodji Seketeli <dodji@redhat.com>
12472
12473 PR asan/56330
88b97037 12474 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
12475 (instrument_mem_region_access): Do not forget to always put
12476 instrumentation of the of 'base' and 'base + len' in a "if (len !=
12477 0) statement, even for cases where either 'base' or 'base + len'
12478 are not instrumented -- because they have been previously
12479 instrumented. Simplify the logic by putting all the statements
12480 instrument 'base + len' inside a sequence, and then insert that
12481 sequence right before the current insertion point. Then, to
12482 instrument 'base + len', just get an iterator on that statement.
12483 And do not forget to update the pointer to iterator the function
12484 received as argument.
12485
47918951
VM
124862013-02-15 Vladimir Makarov <vmakarov@redhat.com>
12487
12488 PR rtl-optimization/56348
12489 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
12490
3fb7c699
SB
124912013-02-15 Steven Bosscher <steven@gcc.gnu.org>
12492
12493 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
12494 (clean_graph_dump_file): Pass base to start_graph_dump.
12495
576fe41a
RH
124962013-02-14 Richard Henderson <rth@redhat.com>
12497
12498 PR target/55941
12499 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
12500
bb3accfa
SB
125012013-02-14 Steven Bosscher <steven@gcc.gnu.org>
12502
12503 * collect2-aix.h: Define F_LOADONLY.
12504
03143140
RB
125052013-02-14 Richard Biener <rguenther@suse.de>
12506
12507 PR lto/50494
12508 * varasm.c (output_constant_def_1): Get the decl representing
12509 the constant as argument.
12510 (output_constant_def): Wrap output_constant_def_1.
12511 (make_decl_rtl): Use output_constant_def_1 with the decl
12512 representing the constant.
12513 (build_constant_desc): Optionally re-use a decl already
12514 representing the constant.
12515 (tree_output_constant_def): Adjust.
12516
8fb06726
DS
125172013-02-14 Dodji Seketeli <dodji@redhat.com>
12518
12519 Fix an asan crash
12520 * asan.c (instrument_builtin_call): Really put the length of the
12521 second source argument into src1_len.
12522
c4bfe8bf
JJ
125232013-02-13 Jakub Jelinek <jakub@redhat.com>
12524
12525 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
12526 argument. If it is false, don't create edge from then_bb to
12527 fallthru_bb.
12528 (insert_if_then_before_iter): Pass true to it.
12529 (build_check_stmt): Pass false to it.
12530 (transform_statements): Flush hash table only on extended basic
12531 block boundaries, rather than at the beginning of every bb.
12532 Don't flush hash table on nonfreeing_call_p calls.
12533 * tree-flow.h (nonfreeing_call_p): New prototype.
12534 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
12535
7afe2801
DM
125362013-02-13 David S. Miller <davem@davemloft.net>
12537
12538 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
12539
70cc3288
VM
125402013-02-13 Vladimir Makarov <vmakarov@redhat.com>
12541
12542 PR target/56184
12543 * ira.c (max_regno_before_ira): Move from ...
12544 (ira): ... here.
12545 (fix_reg_equiv_init): Use max_regno_before_ira instead of
12546 vec_safe_length.
12547
6422242b
JJ
125482013-02-13 Jakub Jelinek <jakub@redhat.com>
12549
12550 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
12551
976a81ee
RB
125522013-02-13 Richard Biener <rguenther@suse.de>
12553
12554 PR lto/56295
12555 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
12556 globals in MEM_REFs.
12557
c1874a87
RB
125582013-02-13 Richard Biener <rguenther@suse.de>
12559
12560 * loop-init.c (loop_optimizer_init): Clear loop state when
12561 re-initializing preserved loops.
12562 * loop-unswitch.c (unswitch_single_loop): Return whether
12563 we unswitched the loop. Do not verify loop state here.
88b97037 12564 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 12565
b4ab7d34
KS
125662013-02-13 Kostya Serebryany <kcc@google.com>
12567
88b97037
UB
12568 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
12569 on x86_64 linux.
b4ab7d34
KS
12570 * sanitizer.def: Rename __asan_init to __asan_init_v1.
12571
bdcbe80c
DS
125722013-02-12 Dodji Seketeli <dodji@redhat.com>
12573
12574 Avoid instrumenting duplicated memory access in the same basic block
12575 * Makefile.in (asan.o): Add new dependency on hash-table.h
12576 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
12577 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
12578 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
12579 (free_mem_ref_resources, has_mem_ref_been_instrumented)
12580 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
12581 (get_mem_ref_of_assignment): New functions.
12582 (get_mem_refs_of_builtin_call): Extract from
12583 instrument_builtin_call and tweak a little bit to make it fit with
12584 the new signature.
12585 (instrument_builtin_call): Use the new
12586 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
12587 of is_gimple_builtin_call.
12588 (instrument_derefs, instrument_mem_region_access): Insert the
12589 instrumented memory reference into the hash table.
12590 (maybe_instrument_assignment): Renamed instrument_assignment into
12591 this, and change it to advance the iterator when instrumentation
12592 actually happened and return true in that case. This makes it
12593 homogeneous with maybe_instrument_assignment, and thus give a
12594 chance to callers to be more 'regular'.
12595 (transform_statements): Clear the memory reference hash table
12596 whenever we enter a new BB, when we cross a function call, or when
12597 we are done transforming statements. Use
12598 maybe_instrument_assignment instead of instrumentation. No more
12599 need to special case maybe_instrument_assignment and advance the
12600 iterator after calling it; it's now handled just like
12601 maybe_instrument_call. Update comment.
12602
4861a1f7
RB
126032013-02-13 Richard Biener <rguenther@suse.de>
12604
12605 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
12606 Fix loop discovery code.
12607
1c86bd80
VM
126082013-02-12 Vladimir Makarov <vmakarov@redhat.com>
12609
12610 PR inline-asm/56148
12611 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 12612 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
12613 the operand is not reloaded. Prefer to reload conflicting operand
12614 if earlyclobber and matching operands are the same.
12615
7cbda518
RB
126162013-02-12 Richard Biener <rguenther@suse.de>
12617
12618 PR lto/56297
12619 * lto-streamer-out.c (write_symbol): Do not output symbols
12620 for hard register variables.
12621
e68a4ef6
GJL
126222013-02-12 Georg-Johann Lay <avr@gjlay.de>
12623
12624 PR target/54222
12625 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
12626 (umulsidi3_insn, mulsidi3_insn): New insns.
12627
a72d8780 126282013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
12629
12630 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
12631 (struct tune_params): Add vec_costs field.
12632 * config/arm/arm.c (arm_builtin_vectorization_cost)
12633 (arm_add_stmt_cost): New functions.
12634 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
12635 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
12636 (arm_default_vec_cost): New struct of type cpu_vec_costs.
12637 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
12638 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
12639 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
12640 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
12641
43320568
RB
126422013-02-12 Richard Biener <rguenther@suse.de>
12643
12644 PR lto/56295
12645 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
12646 decls again if possible.
12647
a011aa39
RB
126482013-02-12 Richard Biener <rguenther@suse.de>
12649
12650 PR middle-end/56288
12651 * tree-ssa.c (verify_ssa_name): Fix check, move
12652 SSA_NAME_IN_FREE_LIST check up.
12653
6da26889
JJ
126542013-02-12 Jakub Jelinek <jakub@redhat.com>
12655 Steven Bosscher <steven@gcc.gnu.org>
12656
12657 PR rtl-optimization/56151
12658 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
12659 equal to op0 or op1, and last_insn pattern is CODE operation
12660 with MEM dest and one of the operands matches that MEM.
12661
f80e0faf
ST
126622013-02-11 Sriraman Tallam <tmsriramgoogle.com>
12663
12664 * doc/extend.texi: Document Function Multiversioning and "default"
12665 parameter string to target attribute.
12666 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
12667 target attribute parameter is "default".
12668 (ix86_compare_version_priority): Remove checks for target attribute.
12669 (ix86_mangle_function_version_assembler_name): Change error to sorry.
12670 Remove check for target attribute equal to NULL. Add assert.
12671 (ix86_generate_version_dispatcher_body): Change error to sorry.
12672
6c59ffd1
IS
126732013-02-11 Iain Sandoe <iain@codesourcery.com>
12674 Jack Howarth <howarth@bromo.med.uc.edu>
12675 Patrick Marlier <patrick.marlier@gmail.com>
12676
12677 PR libitm/55693
12678 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
12679 define ENDFILE_SPEC as TM_DESTRUCTOR.
12680 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
12681
a72d8780 126822013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
12683 Jack Howarth <howarth@bromo.med.uc.edu>
12684 Jakub Jelinek <jakub@redhat.com>
12685
12686 PR sanitizer/55617
12687 * config/darwin.c (cdtor_record): Rename ctor_record.
12688 (sort_cdtor_records): Rename sort_ctor_records.
12689 (finalize_dtors): New routine to sort destructors by
12690 priority before use in assemble_integer.
12691 (machopic_asm_out_destructor): Use finalize_dtors if needed.
12692
b63fe007
UB
126932013-02-11 Uros Bizjak <ubizjak@gmail.com>
12694
12695 PR rtl-optimization/56275
12696 * simplify-rtx.c (avoid_constant_pool_reference): Check that
12697 offset is non-negative and less than cmode size before
12698 calling simplify_subreg.
12699
8e89b5b5
RB
127002013-02-11 Richard Biener <rguenther@suse.de>
12701
12702 PR tree-optimization/56264
12703 * cfgloop.h (fix_loop_structure): Adjust prototype.
12704 * loop-init.c (fix_loop_structure): Return the number of
12705 newly discovered loops.
12706 * tree-cfgcleanup.c (repair_loop_structures): When new loops
12707 are discovered, do a full loop-closed SSA rewrite.
12708
b4a4b56d
RB
127092013-02-11 Richard Biener <rguenther@suse.de>
12710
12711 PR tree-optimization/56273
12712 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
12713 first VRP run.
12714 (check_array_ref): Fix missing newline in dumps.
12715 (search_for_addr_array): Likewise.
12716
0c885229
DE
127172013-02-09 David Edelsohn <dje.gcc@gmail.com>
12718
12719 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
12720
59ac9a55
JJ
127212013-02-09 Jakub Jelinek <jakub@redhat.com>
12722
12723 PR target/56256
12724 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
12725
25bb0bb5
VM
127262013-02-08 Vladimir Makarov <vmakarov@redhat.com>
12727
12728 PR rtl-optimization/56246
0c885229 12729 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
12730 reload pseudo.
12731 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
12732 constraints are satisfied.
12733
a698cc03
JL
127342013-02-08 Jeff Law <law@redhat.com>
12735
12736 PR debug/53948
12737 * emit-rtl.c (reg_is_parm_p): New function.
12738 * regs.h (reg_is_parm_p): New prototype.
12739 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
12740 callee-clobbered registers.
12741
e1122ddd
MM
127422013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12743
12744 PR target/56043
12745 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
12746 If there is no implicit builtin declaration, just return NULL.
12747
19c5f6e6
UB
127482013-02-08 Uros Bizjak <ubizjak@gmail.com>
12749
12750 * config/i386/sse.md (FMAMODEM): New mode iterator.
12751 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
12752 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
12753
2480f2ca 127542013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 12755
2480f2ca
UB
12756 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
12757 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
12758 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
12759
127602013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12761
12762 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
12763 (microblaze*-*-elf): Likewise.
12764 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
12765 LINK_SPEC.
12766 * config/microblaze/microblaze-c.c: Add builtin defines for
12767 _LITTLE_ENDIAN and _BIG_ENDIAN.
12768 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
12769 add to TARGET_DEFAULT flags.
76ef61fb 12770 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
12771 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
12772 * config/microblaze/microblaze.md: Update extendsidi2 and
12773 movdi_internal instructions to use low-order / high-order reg
12774 print_operands.
12775 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
12776 options and inversemask / mask of LITTLE_ENDIAN.
12777 * config/microblaze/t-microblaze: Expand multilib options to
12778 include mlittle-endian (le) and update exceptions patterns.
12779
600a5961
JJ
127802013-02-08 Jakub Jelinek <jakub@redhat.com>
12781
5df81313
JJ
12782 PR rtl-optimization/56195
12783 * lra-constraints.c (get_reload_reg): Don't reuse regs
12784 if they have smaller mode than requested, if they have
12785 wider mode than requested, try to return a SUBREG.
12786
600a5961
JJ
12787 PR tree-optimization/56250
12788 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
12789 if type is unsigned and code isn't MULT_EXPR.
12790
ff544649
GJL
127912013-02-08 Georg-Johann Lay <avr@gjlay.de>
12792
12793 PR tree-optimization/56064
12794 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
12795 bits according to mode.
12796 * fixed-value.h (fixed_from_double_int)
12797 (const_fixed_from_double_int): Adjust comments.
12798
e45cde98
RB
127992013-02-08 Richard Biener <rguenther@suse.de>
12800
12801 PR lto/56231
12802 * lto-streamer.h (struct data_in): Remove current_file, current_line
12803 and current_col members.
12804 * lto-streamer-out.c (lto_output_location): Stream changed bits
12805 en-block for efficiency.
12806 * lto-streamer-in.c (clear_line_info): Remove.
12807 (lto_input_location): Cache current file, line and column
12808 globally via local statics. Read changed bits en-block.
12809 (input_function): Do not call clear_line_info.
12810 (lto_read_body): Likewise.
12811 (lto_input_toplevel_asms): Likewise.
12812
c1ca73d8
MM
128132013-02-08 Michael Matz <matz@suse.de>
12814
12815 PR tree-optimization/52448
12816 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
12817 (nt_call_phase): New static.
12818 (add_or_mark_expr): Only mark accesses with newer phase than any
12819 call seen.
12820 (nonfreeing_call_p): New.
12821 (nt_init_block): Update nt_call_phase, mark blocks as visited.
12822 (nt_fini_block): Keep blocks marked as visited.
12823 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
12824
57548aa2
RB
128252013-02-08 Richard Biener <rguenther@suse.de>
12826
12827 * ira.c (ira): Free broken dominator information.
12828
8e10366f
UB
128292013-02-08 Uros Bizjak <ubizjak@gmail.com>
12830
12831 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
12832
f64fb0fa
MP
128332013-02-08 Marek Polacek <polacek@redhat.com>
12834
8e10366f 12835 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 12836
0375167b
RB
128372013-02-08 Richard Biener <rguenther@suse.de>
12838
12839 PR middle-end/56181
12840 * cfgloop.h (flow_loops_find): Adjust.
12841 (bb_loop_header_p): Declare.
12842 * cfgloop.c (bb_loop_header_p): New function split out from ...
12843 (flow_loops_find): ... here. Adjust function signature,
12844 support incremental loop structure update.
12845 (verify_loop_structure): Cleanup. Verify a loop is a loop.
12846 * cfgloopmanip.c (fix_loop_structure): Move ...
12847 * loop-init.c (fix_loop_structure): ... here.
12848 (apply_loop_flags): Split out from ...
12849 (loop_optimizer_init): ... here.
12850 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
12851 in incremental mode, only remove dead loops here.
12852
85d768f3
GJL
128532013-02-08 Georg-Johann Lay <avr@gjlay.de>
12854
12855 PR target/54222
12856 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
12857 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
12858 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
12859 (*round<mode>3.libgcc): New insns for fixed-modes.
12860 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
12861 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
12862 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
12863 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
12864 implementations. Define to __builtin_avr_absFX,
12865 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
12866 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
12867 __builtin_avr_countlsFX, respectively.
12868 * config/avr/avr-c.c (target.h): Include it.
12869 (enum avr_builtin_id): New enum.
12870 (avr_resolve_overloaded_builtin): New static function.
12871 (avr_register_target_pragmas): Use it to set
12872 targetm.resolve_overloaded_builtin.
12873 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
12874 tree nodes used by DEF_BUILTIN.
12875 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
12876 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
12877 <AVR_BUILTIN_xxBITS>: Same.
12878
661bc682
RB
128792013-02-08 Richard Biener <rguenther@suse.de>
12880
12881 * cfgloop.c (verify_loop_structure): Properly handle
12882 a loop exiting to another loop header.
12883 * ira-int.h (ira_loops): Remove.
12884 * ira.c (ira_loops): Remove.
12885 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
12886 (do_reload): Use loop_optimizer_finalize.
12887 * ira-build.c (create_loop_tree_nodes): Use get_loops and
12888 number_of_loops to access the loop tree.
12889 (more_one_region_p): Likewise.
12890 (finish_loop_tree_nodes): Likewise.
12891 (rebuild_regno_allocno_maps): Likewise.
12892 (mark_loops_for_removal): Likewise.
12893 (mark_all_loops_for_removal): Likewise.
12894 (remove_unnecessary_regions): Likewise.
12895 (ira_build): Likewise.
12896 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
12897
0d5049b2
RB
128982013-02-08 Richard Biener <rguenther@suse.de>
12899
12900 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
12901 * ipa-pure-const.c (analyze_function): Avoid calling
12902 mark_irreducible_loops twice.
8e10366f 12903 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 12904
499f32e8
DM
129052013-02-07 David S. Miller <davem@davemloft.net>
12906
12907 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
12908 on 'reg'.
12909 * var-tracking.c (vt_add_function_parameter): Test the presence of
12910 HAVE_window_save properly and do not remap argument registers when
12911 we have a leaf function.
12912
6edc3e32
UB
129132013-02-07 Uros Bizjak <ubizjak@gmail.com>
12914
12915 PR bootstrap/56227
12916 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
12917 instead of "ll".
12918 * config/i386/i386.c (ix86_print_operand): Ditto.
12919
5306401f
VM
129202013-02-07 Vladimir Makarov <vmakarov@redhat.com>
12921
6edc3e32 12922 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 12923
027ece11
VM
129242013-02-07 Vladimir Makarov <vmakarov@redhat.com>
12925
12926 PR rtl-optimization/56225
12927 * lra-constraints.c (process_alt_operands): Check that reload hard
12928 reg can hold value for strict_low_part.
12929
f980dfdb
JJ
129302013-02-07 Jakub Jelinek <jakub@redhat.com>
12931
12932 PR debug/56154
12933 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
12934 dwarf2out_end_function.
12935 (in_first_function_p, maybe_at_text_label_p,
12936 first_loclabel_num_not_at_text_label): New variables.
12937 (dwarf2out_var_location): In the first function find out
6edc3e32 12938 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
12939 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
12940 functions.
12941
73dd3123
EB
129422013-02-07 Eric Botcazou <ebotcazou@adacore.com>
12943
12944 PR rtl-optimization/56178
12945 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
12946 SUBREG of a register. Tidy up related block of code.
12947 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
12948 note if the source is a register or a SUBREG of a register.
12949
e3936f47
JJ
129502013-02-07 Jakub Jelinek <jakub@redhat.com>
12951
12952 PR target/56228
12953 * config/rs6000/rs6000.md (ptrm): New mode attr.
12954 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
12955 call_value_indirect_aix<pttrsize>,
12956 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
12957 m in constraints.
12958
d96d674b
MH
129592013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12960
12961 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
12962 if -bnortl. Convert to strcmp and strncmp.
12963
921f2dee
AM
129642013-02-07 Alan Modra <amodra@gmail.com>
12965
12966 PR target/54009
12967 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
12968 addresses won't wrap when offsetting.
12969 (rs6000_secondary_reload): Provide secondary reloads needed for
12970 wrapping LO_SUM addresses.
12971
d09c7dba
TS
129722013-02-06 Thomas Schwinge <thomas@codesourcery.com>
12973
12974 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
12975 MACH, just __MACH__.
12976
a44bbd48
RB
129772013-02-06 Richard Biener <rguenther@suse.de>
12978
12979 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
12980 instead of calling fix_loop_structure.
12981
6d840d99
JJ
129822013-02-06 Jakub Jelinek <jakub@redhat.com>
12983
12984 PR middle-end/56217
12985 * omp-low.c (use_pointer_for_field): Return false if
12986 lower_send_shared_vars doesn't generate any copy-out code.
12987
0f33baa9
TV
129882013-02-06 Tom de Vries <tom@codesourcery.com>
12989
12990 PR rtl-optimization/56131
12991 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
12992 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
12993 of the label is NULL. Add comment.
12994
11f1e3ab
JJ
129952013-02-05 Jakub Jelinek <jakub@redhat.com>
12996
31502f9f
JJ
12997 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
12998
a74db9bd
JJ
12999 PR sanitizer/55374
13000 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
13001 (STATIC_LIBTSAN_LIBS): Likewise.
13002 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
13003 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
13004 is defined, don't add anything else beyond that.
13005 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
13006 (LINK_COMMAND_SPEC): Use them.
13007
11f1e3ab
JJ
13008 PR tree-optimization/56205
13009 * tree-stdarg.c (check_all_va_list_escapes): Return true if
13010 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
13011 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
13012
14ac6aa2
RB
130132013-02-05 Richard Biener <rguenther@suse.de>
13014
13015 PR tree-optimization/53342
13016 PR tree-optimization/53185
13017 * tree-vectorizer.h (vect_check_strided_load): Remove.
13018 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
13019 not disallow peeling for vectorized strided loads.
13020 (vect_check_strided_load): Make static and simplify.
13021 (vect_analyze_data_refs): Adjust.
13022 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
13023 correctly when vectorizing strided loads.
13024
6f22445a
RB
130252013-02-05 Richard Biener <rguenther@suse.de>
13026
13027 * doc/install.texi: Refer to ISL, not PPL.
13028
39f9719e
JH
130292013-02-05 Jan Hubicka <jh@suse.cz>
13030
ec4224ac
JH
13031 PR tree-optimization/55789
13032 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
13033
130342013-02-05 Jan Hubicka <jh@suse.cz>
13035
13036 PR tree-optimization/55789
39f9719e
JH
13037 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
13038 the dead call anyway.
13039
956d3b33
EB
130402013-02-05 Eric Botcazou <ebotcazou@adacore.com>
13041
13042 PR sanitizer/55374
13043 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
13044
130452013-02-04 Alexander Potapenko <glider@google.com>
13046 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
13047 Jakub Jelinek <jakub@redhat.com>
13048
13049 PR sanitizer/55617
13050 * config/darwin.c (sort_ctor_records): Stabilized qsort
13051 on constructor priority by using original position.
13052 (finalize_ctors): New routine to sort constructors by
13053 priority before use in assemble_integer.
13054 (machopic_asm_out_constructor): Use finalize_ctors if needed.
13055
7ac3af38
JJ
130562013-02-04 Jakub Jelinek <jakub@redhat.com>
13057
13058 PR libstdc++/54314
13059 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
13060 about visibility on artificial decls.
13061 * config/sol2.c (solaris_assemble_visibility): Likewise.
13062
152689dc
KT
130632013-02-04 Kai Tietz <ktietz@redhat.com>
13064
13065 PR target/56186
13066 * config/i386/i386.c (function_value_ms_64): Add additional valtype
13067 argument and improve checking of return-argument types for 16-byte
13068 modes.
13069 (ix86_function_value_1): Add additional valtype argument on call
13070 of function_value_64.
13071 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
13072 handling infunction_value_64 function.
13073
2b5987b5
MGD
130742013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
13075
7ac3af38 13076 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 13077
14597080
RB
130782013-02-04 Richard Biener <rguenther@suse.de>
13079
13080 PR tree-optimization/56188
13081 * tree-ssa-structalias.c (label_visit): Consider case with
13082 initially non-empty points-to set.
13083 (perform_var_substitution): Dump node mapping and clean up.
13084
ed73881e
RG
130852013-02-04 Richard Guenther <rguenther@suse.de>
13086
13087 PR lto/56168
13088 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
13089 node prevail as last resort.
13090 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 13091 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 13092
139a0707
RB
130932013-02-04 Richard Biener <rguenther@suse.de>
13094
13095 PR tree-optimization/56113
13096 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
13097 Merge into ...
13098 (equiv_class_lookup_or_add): ... this.
13099 (label_visit): Adjust and fix error in previous patch.
13100 (perform_var_substitution): Adjust.
13101
50fe8924
OE
131022013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
13103
13104 * config/sh/divtab.c: Fix formatting and comments throughout the file.
13105 * config/sh/sh4-300.md: Likewise.
13106 * config/sh/sh4a.md: Likewise.
13107 * config/sh/constraints.md: Likewise.
13108 * config/sh/sh.md: Likewise.
13109 * config/sh/netbsd-elf.h: Likewise.
13110 * config/sh/predicates.md: Likewise.
13111 * config/sh/sh-protos.h: Likewise.
13112 * config/sh/ushmedia.h: Likewise.
13113 * config/sh/linux.h: Likewise.
13114 * config/sh/sh.c: Likewise.
13115 * config/sh/superh.h: Likewise.
13116 * config/sh/elf.h: Likewise.
13117 * config/sh/sh4.md: Likewise.
13118 * config/sh/sh.h: Likewise.
13119
1a04ac2b
JDA
131202013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13121
13122 * config/pa/constraints.md: Adjust unused letters. Change "T"
13123 constraint to match_test floating_point_store_memory_operand().
13124 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
13125 (base14_operand): New.
13126 (floating_point_store_memory_operand): New.
13127 (integer_store_memory_operand): Revise to use base14_operand and
13128 reg_plus_base_memory_operand.
13129 (move_dest_operand): Allow symbolic_memory_operands.
13130 (symbolic_memory_operand): Check for LO_SOM.
13131 (symbolic_operand): Change default case to break.
13132 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
13133 CONST_DOUBLE values to be reloaded by putting them into memory when
13134 the destination is a floating point register.
13135 (movdf): Remove code to handle CONST_DOUBLE.
13136 (movsf): Likewise.
13137 (reload_indf_r1): New.
13138 (reload_insf_r1): New.
13139 Consistently use "Q" and "T" constraints with integer and floating
13140 point move instructions, respectively.
13141 (movdi): Remove FAIL.
13142 Change predicate for source operand unamed DImode move from
13143 general_operand to move_src_operand.
13144 (umulsidi3): Change predicate for destination operand to
13145 register_operand.
13146 Likewise for similar unamed patterns.
13147 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
13148 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
13149 (hppa_legitimize_address): Simplify mask calculation.
13150 (pa_emit_move_sequence): Revised handling of secondary reloads from
13151 REG+D addresses for floating point loads and stores. Directly handle
13152 loading CONST0_RTX (mode) to a floating point register.
13153 (pa_secondary_reload): Handle reloading DF and SFmode constant values
13154 to floating point registers. Don't restrict secondary reloads to
13155 floating point registers to integer modes. Revise some comments and
13156 cleanup some code.
13157 (TARGET_LEGITIMATE_ADDRESS_P): Define.
13158 (pa_legitimate_address_p): New.
13159 (pa_legitimize_reload_address): New.
13160 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
13161 (STRICT_REG_OK_FOR_BASE_P): New.
13162 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
13163 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
13164
3bf65591
DE
131652013-02-03 David Edelsohn <dje.gcc@gmail.com>
13166 Andrew Dixie <andrewd@gentrack.com>
13167
13168 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
13169 flag set.
13170
c0a8a3e6
RS
131712013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
13172
13173 * expmed.c (extract_bit_field_1): Pass the full width of the
13174 structure to get_best_reg_extraction_insn.
13175
99113dff
DE
131762013-02-01 David Edelsohn <dje.gcc@gmail.com>
13177
13178 PR target/54601
13179 * configure.ac (use_cxa_atexit): Add AIX.
13180 * configure: Regenerate.
13181
13182 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
13183
ddd84654
JJ
131842013-02-01 Jakub Jelinek <jakub@redhat.com>
13185
13186 PR debug/54793
13187 * final.c (need_profile_function): New variable.
13188 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
13189 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
13190 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
13191 notes, targetm.asm_out.function_prologue doesn't emit anything,
13192 HAVE_prologue and profiler should be emitted before prologue,
13193 set need_profile_function instead of emitting it.
13194 (final_scan_insn): If need_profile_function, emit
13195 profile_function on the first NOTE_INSN_BASIC_BLOCK or
13196 NOTE_INSN_FUNCTION_BEG note.
13197
131982013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
13199
13200 * config/rs6000/rs6000.md (smulditi3): New.
13201 (umulditi3): New.
13202
ff2a9d88
RH
13203 * config/alpha/alpha.md (umulditi3): New.
13204
14d52b90
DE
132052013-02-01 David Edelsohn <dje.gcc@gmail.com>
13206
13207 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
13208 (ASM_OUTPUT_ALIGNED_LOCAL): New.
13209
8c7ca45c
RB
132102013-02-01 Richard Biener <rguenther@suse.de>
13211
13212 PR tree-optimization/56113
13213 * tree-ssa-structalias.c (label_visit): Reduce work for
13214 single-predecessor nodes.
13215
9f419393
EB
132162013-02-01 Eric Botcazou <ebotcazou@adacore.com>
13217
13218 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
13219 range isn't testing for zero.
13220
c5f4be84
SB
132212013-01-31 Steven Bosscher <steven@gcc.gnu.org>
13222
13223 PR middle-end/56113
13224 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
13225
dbdbd982
NC
132262013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
13227 Nick Clifton <nickc@redhat.com>
13228
13229 * config/v850/constraints.md (Q): Define as a memory constraint.
13230 * config/v850/predicates.md (label_ref_operand): New predicate.
13231 (e3v5_shift_operand): New predicate.
13232 (ior_operator): New predicate.
13233 * config/v850/t-v850: Add e3v5 multilib.
13234 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
13235 (v850_gen_movdi): Prototype.
13236 * config/v850/v850.c: Add support for e3v5 architecture.
13237 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
13238 TARGET_V850E_UP.
13239 (construct_save_jarl): Add e3v5 long JARL support.
13240 (v850_adjust_insn_length): New function. Adjust length of call
13241 insns when using e3v5 instructions.
13242 (v850_gen_movdi): New function: Generate instructions to move a
13243 DImode value.
13244 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
13245 (CPP_SPEC): Define __v850e3v5__ as appropriate.
13246 (TARGET_USE_FPU): Enable for e3v5.
13247 (CONST_OK_FOR_W): New macro.
13248 (ADJUST_INSN_LENGTH): Define.
13249 * config/v850/v850.md (UNSPEC_LOOP): Define.
13250 (attr cpu): Add v850e3v5.
13251 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
13252 (movdi): New pattern.
13253 (movdi_internal): New pattern.
13254 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
13255 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
13256 (cstoresf4): Likewise.
13257 (cstoredf4): Likewise.
13258 (insv): New pattern.
13259 (rotlso3_a): New pattern.
13260 (rotlsi3_b): New pattern
13261 (rotlsi3_v850e3v5): New pattern.
13262 (doloop_begin): New pattern.
13263 (fix_loop_counter): New pattern.
13264 (doloop_end): New pattern.
13265 (branch_normal): Add e3v5 long branch support.
13266 (branch_invert): Likewise.
13267 (branch_z_normal): Likewise.
13268 (branch_z_invert): Likewise.
13269 (branch_nz_normal): Likewise.
13270 (branch_nz_invert): Likewise.
13271 (call_internal_short): Add e3v5 register-indirect JARL support.
13272 (call_internal_long): Likewise.
13273 (call_value_internal_short): Likewise.
13274 (call_value_internal_long): Likewise.
13275 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
13276 (mloop): New option.
13277 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 13278 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 13279
73861a41
PK
132802013-01-31 Paul Koning <ni1d@arrl.net>
13281
13282 PR debug/55059
13283 PR debug/54508
13284 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
13285 children if parent is a class.
13286 (prune_unused_types_prune): Don't add DW_AT_declaration.
13287
e44978dc
RB
132882013-01-31 Richard Biener <rguenther@suse.de>
13289
13290 PR tree-optimization/56157
13291 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
13292 match up operand with SLP child.
13293
90b10dec
JM
132942013-01-31 Jason Merrill <jason@redhat.com>
13295
04d2dadd 13296 PR debug/54410
90b10dec
JM
13297 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
13298 parameters the first time.
13299 (gen_scheduled_generic_parms_dies): Check completeness here.
13300
6e616110
RB
133012013-01-31 Richard Biener <rguenther@suse.de>
13302
13303 PR middle-end/53073
13304 * common.opt (faggressive-loop-optimizations): New flag,
13305 enabled by default.
13306 * doc/invoke.texi (faggressive-loop-optimizations): Document.
13307 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
13308 infer_loop_bounds_from_undefined by it.
13309
636f59cf
RB
133102013-01-31 Richard Biener <rguenther@suse.de>
13311
13312 PR tree-optimization/56150
13313 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
13314 visit virtual operands.
13315 (find_uses_to_rename_bb): Likewise.
13316
133172013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
13318
13319 PR tree-optimization/56150
13320 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
13321 mixed store non-store stmts.
13322
32887460
JJ
133232013-01-30 Jakub Jelinek <jakub@redhat.com>
13324
e60e09a0
JJ
13325 PR sanitizer/55374
13326 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
13327 LIBASAN_EARLY_SPEC is defined.
13328 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
13329 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
13330 before %o.
13331 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
13332
32887460
JJ
13333 PR c++/55742
13334 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
13335 invalid args instead of ICEing on it.
13336 (ix86_valid_target_attribute_tree): Return error_mark_node if
13337 ix86_valid_target_attribute_inner_p failed.
13338 (ix86_valid_target_attribute_p): Return false only if
13339 ix86_valid_target_attribute_tree returned error_mark_node. Allow
13340 target("default") attribute.
13341 (sorted_attr_string): Change argument from const char * to tree,
13342 merge in all target attribute arguments rather than just one.
13343 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
13344 instead of free. Avoid using strcat.
13345 (ix86_mangle_function_version_assembler_name): Mangle
13346 target("default") as if no target attribute is present. Adjust
13347 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
13348 instead of xmalloc and XDELETEVEC instead of free.
13349 (ix86_function_versions): Don't return true if one of the decls
13350 doesn't have target attribute. If they don't and one of the decls
13351 is DECL_FUNCTION_VERSIONED, report an error. Adjust
13352 sorted_attr_string caller. Use XDELETEVEC instead of free.
13353 (ix86_supports_function_versions): Remove.
13354 (make_name): Fix up formatting.
13355 (make_dispatcher_decl): Remove resolver_name and its initialization.
13356 Avoid leaking memory.
13357 (is_function_default_version): Return true if there is
13358 target("default") attribute rather than no target attribute at all.
13359 (make_resolver_func): Avoid leaking memory.
13360 (ix86_generate_version_dispatcher_body): Likewise.
13361 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
13362 * target.def (supports_function_versions): Remove.
13363 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
13364 * doc/tm.texi: Regenerated.
13365
73cca0cc
VM
133662013-01-30 Vladimir Makarov <vmakarov@redhat.com>
13367
13368 PR rtl-optimization/56144
13369 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
13370 for values with side effects.
13371
11452e7b
RB
133722013-01-30 Richard Biener <rguenther@suse.de>
13373
13374 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
13375 (sparseset_pop): Likewise.
13376 * cfganal.c (compute_idf): Likewise. Increase work-stack size
13377 to be able to use quick_push in the worker loop.
13378
01cb1ef5
MP
133792013-01-30 Marek Polacek <polacek@redhat.com>
13380
13381 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
13382
e892936e
RB
133832013-01-30 Richard Biener <rguenther@suse.de>
13384
13385 PR lto/56147
6edc3e32 13386 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 13387
cc06c01d
GJL
133882013-01-30 Georg-Johann Lay <avr@gjlay.de>
13389
13390 PR tree-optimization/56064
13391 * fixed-value.c (fixed_from_double_int): New function.
13392 * fixed-value.h (fixed_from_double_int): New prototype.
13393 (const_fixed_from_double_int): New static inline function.
13394 * fold-const.c (native_interpret_fixed): New static function.
13395 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
13396 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
13397 (native_encode_fixed): New static function.
13398 (native_encode_expr) <FIXED_CST>: Use it.
13399 (native_interpret_int): Move double_int worker code to...
13400 * double-int.c (double_int::from_buffer): ...this new static method.
13401 * double-int.h (double_int::from_buffer): Prototype it.
13402
d394a308
RB
134032013-01-30 Richard Biener <rguenther@suse.de>
13404
13405 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
13406 New pointer-map and obstack.
13407 (init_alias_vars): Allocate pointer-map and obstack.
13408 (delete_points_to_sets): Free them.
13409 (find_what_var_points_to): Cache result.
13410 (find_what_p_points_to): Adjust for changed interface of
13411 find_what_var_points_to.
13412 (compute_points_to_sets): Likewise.
13413 (ipa_pta_execute): Likewise.
13414
20804d96
RO
134152013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13416
13417 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
13418 * configure: Regenerate.
13419 * config.in: Regenerate.
13420 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
13421 #nobits/#progbits if supported.
13422
a7ad88a2
OE
134232013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
13424
13425 PR target/56121
13426 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
13427 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
13428 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
13429
7af79f92
GY
134302013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13431
91bfca59
OE
13432 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
13433 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 13434
753bcf7b
GY
134352013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13436
91bfca59
OE
13437 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
13438 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 13439
8cbc2ea8
GY
134402013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13441
91bfca59
OE
13442 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
13443 declaration.
13444 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
13445 * config/arm/cortex-a7.md: New bypasses using
13446 arm_mac_accumulator_is_result.
8cbc2ea8 13447
697a3325
GY
134482013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13449
91bfca59 13450 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 13451 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
13452 (cortex_a7_fpfmad): New reservation.
13453 (cortex_a7_fpmacs): Use ffmas and update required units.
13454 (cortex_a7_fpmuld): Update required units and latency.
13455 (cortex_a7_fpmacd): Likewise.
13456 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
13457 (cortex_a7_neon). Likewise.
13458 (bypass) Update participating units.
697a3325 13459
29637783
GY
134602013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13461
91bfca59
OE
13462 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
13463 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
13464 from fmac to ffma.
13465 * config/arm/vfp11.md (vfp_farith): Use ffmas.
13466 (vfp_fmul): Use ffmad.
13467 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
13468 (cortex_r4_fmacd): Use ffmad.
13469 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
13470 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
13471 (cortex_a9_fmacd): Use ffmad.
13472 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
13473 (cortex_a8_vfp_macd): Use ffmad.
13474 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
13475 (cortex_a5_fpmacd): Use ffmad.
13476 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
13477 (cortex_a15_vfp_macd): Use ffmad.
13478 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 13479
2ee8a2d5
JM
134802013-01-29 Jason Merrill <jason@redhat.com>
13481
13482 PR libstdc++/54314
13483 * varasm.c (default_assemble_visibility): Don't warn about
13484 visibility on artificial decls.
13485
78d087bc
RB
134862013-01-29 Richard Biener <rguenther@suse.de>
13487
13488 PR tree-optimization/56113
13489 * tree-ssa-structalias.c (equiv_class_lookup): Also return
13490 the bitmap leader.
13491 (label_visit): Free duplicate bitmaps and record the leader instead.
13492 (perform_var_substitution): Adjust.
13493
83ba4d6f
RB
134942013-01-29 Richard Biener <rguenther@suse.de>
13495
13496 PR tree-optimization/55270
13497 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
13498 the CFG, schedule loops for fixup.
13499
66dfe13f
NC
135002013-01-29 Nick Clifton <nickc@redhat.com>
13501
13502 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
13503 SP_REG.
13504
5a579c3b
LE
135052013-01-28 Leif Ekblad <leif@rdos.net>
13506
13507 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
13508 * config/i386/i386.h (TARGET_RDOS): New macro.
13509 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
13510 * config/i386/i386.c (ix86_option_override_internal): For 64bit
13511 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
13512 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
13513 DEFAULT_LARGE_SECTION_THRESHOLD.
13514 * config/i386/i386.md (R14_REG, R15_REG): New constants.
13515 * config/i386/rdos.h: New file.
13516 * config/i386/rdos64.h: New file.
13517
51e44392
BS
135182013-01-28 Bernd Schmidt <bernds@codesourcery.com>
13519
13520 PR other/54814
13521 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
13522 TEST_HARD_REG_BIT.
13523
db1fb332
JJ
135242013-01-28 Jakub Jelinek <jakub@redhat.com>
13525
13526 PR rtl-optimization/56117
13527 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
13528 call cselib_lookup_from_insn on the MEM before calling
13529 add_insn_mem_dependence.
13530
16917761
RB
135312013-01-28 Richard Biener <rguenther@suse.de>
13532
13533 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
13534 to a stmt that didn't have one.
13535 (copy_phis_for_bb): Likewise for PHI arguments.
13536 (copy_debug_stmt): Likewise for debug stmts.
13537
b9fc0497
RB
135382013-01-28 Richard Biener <rguenther@suse.de>
13539
13540 PR tree-optimization/56034
6edc3e32 13541 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
13542 (partition_builtin_p): Adjust.
13543 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
13544 it is the last partition.
13545 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
13546 up the vertex for the definition.
13547 (classify_partition): Classify whether a partition is a
13548 PKIND_REDUCTION, thus has uses outside of the loop.
13549 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
13550 Merge all PKIND_REDUCTION partitions into the last partition.
13551 (tree_loop_distribution): Seed partitions from reductions as well.
13552
aa710d25
JJ
135532013-01-28 Jakub Jelinek <jakub@redhat.com>
13554
0bfbca58
JJ
13555 PR tree-optimization/56125
13556 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
13557 pow(x,c) into sqrt(x) * powi(x, n/2) or
13558 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
13559 optimizing for size.
13560 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
13561 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
13562 integer.
13563
aa710d25
JJ
13564 PR tree-optimization/56094
13565 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
13566 to UNKNOWN_LOCATION while gimplifying expr.
13567
77dc5297
UB
135682013-01-27 Uros Bizjak <ubizjak@gmail.com>
13569
13570 PR target/56114
13571 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
13572 operand 0 in movabs insn template for -masm=intel asm alternative.
13573 (*movabs<mode>_2): Ditto for operand 1.
13574
0bfbca58 135752013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
13576
13577 PR target/54663
13578 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
13579 of microblaze-c.o
13580
0bfbca58 135812013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
13582
13583 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
13584 tm_file.
13585
0bfbca58 135862013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
13587
13588 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
13589 Undef to avoid warning.
13590
478f60f9
MH
135912013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13592
13593 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
13594 * configure: Regenerate.
13595
d7fa6ee2
JJ
135962013-01-25 Jakub Jelinek <jakub@redhat.com>
13597
13598 PR tree-optimization/56098
13599 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
13600 for stmts with volatile ops.
13601 (cond_store_replacement): Don't optimize if assign has volatile ops.
13602 (cond_if_else_store_replacement_1): Don't optimize if either
13603 then_assign or else_assign have volatile ops.
13604 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
13605 volatile ops.
13606
f8fe87bd
GJL
136072013-01-25 Georg-Johann Lay <avr@gjlay.de>
13608
13609 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
13610
28398d0d
GJL
136112013-01-25 Georg-Johann Lay <avr@gjlay.de>
13612
13613 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
13614 missing ':' in asm example.
13615
b7d7d917
TB
136162013-01-25 Tejas Belagod <tejas.belagod@arm.com>
13617
13618 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
13619 entries into lane and laneq entries.
77dc5297
UB
13620 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
13621 Remove AdvSIMD scalar modes.
b7d7d917
TB
13622 (aarch64_sq<r>dmulh_laneq<mode>): New.
13623 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
13624 modes.
13625 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
13626 builtin implementations to relfect changes in RTL in aarch64-simd.md.
13627 * config/aarch64/iterators.md (VCOND): New.
13628 (VCONQ): New.
13629
556f9906
GJL
136302013-01-25 Georg-Johann Lay <avr@gjlay.de>
13631
13632 PR target/54222
13633 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
13634 Add NULL LIBNAME argument to existing definitions.
13635 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
13636 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
13637 * config/avr/avr.c (DEF_BUILTIN): Same.
13638 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
13639 (avr_expand_builtin): Expand to a vanilla call if a libgcc
13640 implementation is available (DECL_ASSEMBLER_NAME is set).
13641 (avr_fold_absfx): New static function.
13642 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
13643 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
13644 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
13645 AVR_BUILTIN_ABSLLK.
13646 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
13647 (abshk, absk, abslk, absllk): Provide as static inline functions.
13648
1f546bbb
MP
136492013-01-25 Marek Polacek <polacek@redhat.com>
13650
13651 PR tree-optimization/56035
13652 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
13653
7e184bd7
UB
136542012-01-24 Uros Bizjak <ubizjak@gmail.com>
13655
13656 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
13657 (*movtf_internal_rex64): Add (!o,C) alternative
13658 (*movxf_internal_rex64): Ditto.
13659 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
13660
f5ba49ac
SM
136612013-01-24 Shenghou Ma <minux.ma@gmail.com>
13662
13663 * doc/invoke.texi: fix typo.
13664 * doc/objc.texi: fix typo.
13665
a6343728
RS
136662013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
13667
13668 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
13669 for the first two alternatives.
13670
cd030c07
DN
136712013-01-24 Diego Novillo <dnovillo@google.com>
13672
77dc5297 13673 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
13674 (ggc-zone.o): Remove.
13675 * configure.ac: Remove option --with-gc.
13676 * configure: Re-generate.
13677 * doc/install.texi: Remove documentation for --with-gc.
13678 * gengtype.c (write_enum_defn): Remove. Update all users.
13679 (write_Types_process_field): Remove generation of gt_e_* argument.
13680 (output_type_enum): Remove. Update all users.
13681 (write_enum_defn): Remove. Update all users.
13682 (enum alloc_zone): Remove. Update all users.
77dc5297 13683 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
13684 * ggc-common.c (ggc_splay_alloc): Remove first argument.
13685 Update all callers.
13686 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 13687 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
13688 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
13689 Update all users.
aaf1e810 13690 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
13691 (struct alloc_zone): Remove.
13692 (ggc_internal_alloc_zone_stat): Remove.
13693 (ggc_internal_cleared_alloc_zone_stat): Remove.
13694 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
13695 (ggc_pch_count_object): Remove last argument. Update all users.
13696 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
13697 (struct alloc_zone): Remove.
13698 * ggc-zone.c: Remove.
77dc5297 13699 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
13700 (struct alloc_zone): Remove.
13701 (ggc_alloc_typed_stat): Remove.
13702 (ggc_alloc_typed): Remove.
13703 (ggc_splay_alloc): Remove first argument.
13704 (rtl_zone): Remove. Update all users.
13705 (tree_zone): Remove. Update all users.
13706 (tree_id_zone): Remove. Update all users.
13707 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 13708 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 13709 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 13710 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 13711
a861ffa4
GJL
137122013-01-24 Georg-Johann Lay <avr@gjlay.de>
13713
13714 * config/avr/avr.c (avr_out_fract): Make register numbers that
13715 might be outside of source operand signed.
13716
593c0ddd
UB
137172013-01-24 Uros Bizjak <ubizjak@gmail.com>
13718
13719 * config/i386/constraints.md (Yf): New constraint.
13720 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
13721 of f constraint to conditionaly disable x87 register preferences.
13722 (*movdf_internal): Ditto.
13723 (*movsf_internal): Ditto.
13724
e86c0101
SB
137252013-01-24 Steven Bosscher <steven@gcc.gnu.org>
13726
13727 PR inline-asm/55934
13728 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
13729 that have operands with impossible constraints.
13730 Add a FIXME for a speed-up opportunity.
13731 * lra-constraints.c (process_alt_operands): Verify that a class
13732 selected from constraints on asms is valid for the operand mode.
13733 (curr_insn_transform): Remove incorrect comment.
13734
f6fee35f
DE
137352013-01-23 David Edelsohn <dje.gcc@gmail.com>
13736
13737 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
13738 TOC operand is a valid symbol ref in the constant pool.
13739
137402013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 13741
aaf1e810 13742 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 13743
dc62d7d1
GJL
137442013-01-23 Georg-Johann Lay <avr@gjlay.de>
13745
13746 PR target/54222
13747 * config/avr/stdfix.h: New file.
13748 * t-avr (stdfix-gcc.h): New rule to build it.
13749 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
13750
2660d12d
KS
137512013-01-23 Kostya Serebryany <kcc@google.com>
13752
77dc5297
UB
13753 * config/darwin.h: remove dependency on
13754 CoreFoundation (asan on Mac OS).
2660d12d 13755
a70418fc
JJ
137562013-01-23 Jakub Jelinek <jakub@redhat.com>
13757
13758 PR target/49069
13759 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
13760 instead of cmpdi_operand for first comparison operand.
13761 Don't assert that comparison operands aren't both constants.
13762
47876a2a
JW
137632013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
13764
13765 * doc/install.texi (Downloading the Source): Update references to
13766 downloading separate components.
13767
137682013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
13769
13770 * doc/extend.texi (__int128): Improve grammar.
13771
47876a2a 137722013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
13773
13774 PR target/56028
13775 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
13776 alternative to (o,r).
13777 (*movdi_internal_rex64): Remove (!o,n) alternative.
13778 (DImode immediate->memory splitter): Remove.
13779 (DImode immediate->memory peephole2): Remove.
13780 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
13781 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
13782 alternative to (!o,*r).
13783 (*movtf_internal_sse): New pattern.
13784 (*movxf_internal_rex64): New pattern.
13785 (*movxf_internal): Disable for TARGET_64BIT.
13786 (*movdf_internal_rex64): Remove (!o,F) alternative.
13787
3a984f10
JJ
137882013-01-22 Jakub Jelinek <jakub@redhat.com>
13789
502498d5
JJ
13790 PR middle-end/56074
13791 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
13792 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
13793 * tree-vect-loop-manip.c (find_loop_location): Also ignore
13794 stmt locations where LOCATION_LOCUS of the stmt location is
13795 UNKNOWN_LOCATION or BUILTINS_LOCATION.
13796
3a984f10
JJ
13797 PR target/55686
13798 * config/i386/i386.md (UNSPEC_STOS): New.
13799 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
13800 *strsetqi_1): Add UNSPEC_STOS.
13801
fa817f7f
PC
138022013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
13803
13804 PR c++/56067
13805 * doc/invoke.texi: Remove left over -Wsynth example.
13806
8f498c1b
JJ
138072013-01-21 Jakub Jelinek <jakub@redhat.com>
13808
13809 PR tree-optimization/56051
13810 * fold-const.c (fold_binary_loc): Don't fold
13811 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
13812 a narrowing conversion, or widening conversion from signed
13813 to unsigned.
13814
47876a2a 138152013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
13816
13817 PR rtl-optimization/56023
13818 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
13819 dependent on debug instruction.
13820
5b9db1bc
MJ
138212013-01-21 Martin Jambor <mjambor@suse.cz>
13822
13823 PR middle-end/56022
13824 * function.c (allocate_struct_function): Call
13825 invoke_set_current_function_hook earlier.
13826
e8bb7d68
JJ
138272013-01-21 Jakub Jelinek <jakub@redhat.com>
13828
13829 * reload1.c (init_reload): Only initialize reload_obstack
13830 during the first call.
13831
616a4e32
MP
138322013-01-21 Marek Polacek <polacek@redhat.com>
13833
13834 * cfgloop.c (verify_loop_structure): Fix up grammar.
13835
4401981b
YHH
138362013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
13837
13838 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
13839 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
13840
8e87740b
RR
138412013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13842
13843 PR target/56058
13844 * config/arm/marvell-pj4.md: Update copyright year.
13845 Fix up use of alu to alu_reg and simple_alu_imm.
13846
47876a2a 138472013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
13848
13849 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
13850
89d56d79
VM
138512013-01-20 Vladimir Makarov <vmakarov@redhat.com>
13852
13853 PR target/55433
13854 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 13855 insn for secondary memory move when memory mode should be different.
89d56d79 13856
fe603553
JDA
138572013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13858
13859 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
13860 atomic_storedi_1): New patterns.
13861
01284895
VK
138622013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13863
13864 btver2 pipeline descriptions.
13865 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
13866 descriptions.
13867 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 13868 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
13869 type attributes.
13870 * config/i386/btver2.md: New file describing btver2 pipelines.
13871
5630e3e1
JL
138722013-01-19 Andrew Pinski <apinski@cavium.com>
13873
13874 PR tree-optimization/52631
13875 * tree-ssa-sccvn (visit_use): Before looking up the original
13876 statement, try looking up the simplified expression.
13877
650ae806
AG
138782013-01-19 Anthony Green <green@moxielogic.com>
13879
13880 * config/moxie/moxie.c (moxie_expand_prologue): Set
13881 current_function_static_stack_size.
13882
e300ec2d
JJ
138832013-01-18 Jakub Jelinek <jakub@redhat.com>
13884
13885 PR tree-optimization/56029
13886 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
13887 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
13888
a3d7af04
SS
138892013-01-18 Sharad Singhai <singhai@google.com>
13890
13891 PR tree-optimization/55995
13892 * dumpfile.c (dump_loc): Print location only if available.
13893 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
13894
66aa7879
VM
138952013-01-18 Vladimir Makarov <vmakarov@redhat.com>
13896
13897 PR target/55433
13898 * lra-constraints.c (curr_insn_transform): Reuse original insn for
13899 secondary memory move.
13900 (inherit_reload_reg): Use rclass instead of cl for
13901 check_secondary_memory_needed_p.
13902
3f0fee7b
JJ
139032013-01-18 Jakub Jelinek <jakub@redhat.com>
13904
13905 PR middle-end/56015
13906 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 13907 the case where writing real complex part of target modifies op1.
3f0fee7b 13908
70c67693
JG
139092013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
13910
13911 * config/aarch64/aarch64-simd.md
13912 (aarch64_vcond_internal<mode>): Handle unordered cases.
13913 * config/aarch64/iterators.md (v_cmp_result): New.
13914
df8de9b3
YHH
139152013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
13916 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13917
13918 * config/arm/marvell-pj4.md: New file.
13919 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
13920 * config/arm/arm.md (generic_sched): Add marvell_pj4.
13921 (generic_vfp): Likewise.
13922 * config/arm/arm-cores.def: Add marvell-pj4.
13923 * config/arm/arm-tune.md: Regenerate.
13924 * config/arm/arm-tables.opt: Regenerate.
13925 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
13926 * doc/invoke.texi: Document marvell-pj4.
13927
be30c356
TB
139282013-01-18 Tejas Belagod <tejas.belagod@arm.com>
13929
13930 * config/aarch64/arm_neon.h: Map scalar types to standard types.
13931
0bfbca58 139322013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
13933
13934 PR debug/54114
13935 PR debug/54402
13936 PR debug/49888
13937 * var-tracking.c (negative_power_of_two_p): New.
13938 (global_get_addr_cache, local_get_addr_cache): New.
13939 (get_addr_from_global_cache, get_addr_from_local_cache): New.
13940 (vt_canonicalize_addr): Rewrite using the above. Adjust the
13941 heading comment.
13942 (vt_stack_offset_p): Remove.
13943 (vt_canon_true_dep): Always canonicalize loc's address.
13944 (clobber_overlapping_mems): Make sure we have a MEM.
13945 (local_get_addr_clear_given_value): New.
13946 (val_reset): Clear local cached entries.
13947 (compute_bb_dataflow): Create and release the local cache.
13948 Disable duplicate MEMs clobbering.
13949 (emit_notes_in_bb): Clobber MEMs likewise.
13950 (vt_emit_notes): Create and release the local cache.
13951 (vt_initialize, vt_finalize): Create and release the global
13952 cache, respectively.
1f6bc337 13953 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 13954
0bfbca58 139552013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
13956
13957 PR libmudflap/53359
13958 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
13959 not found in the symtab.
13960
0bfbca58 139612013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 13962
c350ba53 13963 PR debug/56006
3aa03517
AO
13964 PR rtl-optimization/55547
13965 PR rtl-optimization/53827
13966 PR debug/53671
13967 PR debug/49888
13968 * alias.c (offset_overlap_p): New, factored out of...
13969 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
13970 the conservative special case for symbolic constants. Don't
13971 adjust zero sizes on alignment.
13972
c664546f
JL
139732013-01-18 Bernd Schmidt <bernds@codesourcery.com>
13974
13975 PR rtl-optimization/52573
13976 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
13977 REG_UNUSED for the same register.
13978
1bd3f750
MP
139792013-01-17 Richard Biener <rguenther@suse.de>
13980 Marek Polacek <polacek@redhat.com>
13981
13982 PR rtl-optimization/55833
13983 * loop-unswitch.c (unswitch_loops): Move loop verification...
13984 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
13985 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
13986 Set it to true when we're removing a loop from hierarchy tree in
13987 an irreducible region.
13988 (fix_bb_placements): Adjust caller.
13989 (fix_loop_placements): Likewise.
13990
e52a8b71
GJL
139912013-01-17 Georg-Johann Lay <avr@gjlay.de>
13992
13993 * config/avr/builtins.def (DEF_BUILTIN): Factor out
13994 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
13995 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
13996 Remove ID. Adjust comments.
13997 * config/avr/avr-c.c (avr_builtin_name): Remove.
13998 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
13999 * config/avr/avr.c (avr_tolower): New static function.
14000 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
14001 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
14002 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
14003 default expansion.
14004
8386a7ea
JH
140052013-01-17 Jan Hubicka <jh@suse.cz>
14006
610fb637 14007 PR tree-optimization/55273
8386a7ea
JH
14008 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
14009
47876a2a 140102013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
14011
14012 PR target/55981
14013 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
14014 store through atomic_store<mode>_1.
14015 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
14016
8222c37e
MJ
140172013-01-17 Martin Jambor <mjambor@suse.cz>
14018
14019 PR tree-optimizations/55264
14020 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
14021 for virtual methods.
14022 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
14023 virtual methods before inlining is over.
14024 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
14025 virtual functions.
14026 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
14027 non-virtual.
14028
79f01c76
VM
140292013-01-16 Vladimir Makarov <vmakarov@redhat.com>
14030
14031 PR rtl-optimization/56005
14032 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
14033 pending reads for prefetch.
14034
d0b6bb1b
IB
140352013-01-16 Ian Bolton <ian.bolton@arm.com>
14036
aaf1e810 14037 * config/aarch64/aarch64.md
d0b6bb1b
IB
14038 (*cstoresi_neg_uxtw): New pattern.
14039 (*cmovsi_insn_uxtw): New pattern.
14040 (*<optab>si3_uxtw): New pattern.
14041 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
14042 (*<optab>si3_insn_uxtw): New pattern.
14043 (*bswapsi2_uxtw): New pattern.
14044
cb9cf03b
RB
140452013-01-16 Richard Biener <rguenther@suse.de>
14046
14047 * tree-inline.c (tree_function_versioning): Remove set but
14048 never used variable.
14049
2cfc56b9
RB
140502013-01-16 Richard Biener <rguenther@suse.de>
14051
14052 PR tree-optimization/55964
14053 * tree-flow.h (rename_variables_in_loop): Remove.
14054 (rename_variables_in_bb): Likewise.
14055 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
14056 (copy_loop_before): Adjust and delete update-ssa status.
14057 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 14058 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
14059 (rename_variables_in_loop): Remove.
14060 (slpeel_update_phis_for_duplicate_loop): Likewise.
14061 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
14062 use available cfg machinery instead of duplicating it.
14063 Update PHI nodes and perform poor-mans SSA update here.
14064 (slpeel_tree_peel_loop_to_edge): Adjust.
14065
c25a0c60
RB
140662013-01-16 Richard Biener <rguenther@suse.de>
14067
14068 PR tree-optimization/54767
14069 PR tree-optimization/53465
14070 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
14071 (vrp_visit_phi_node): For PHI arguments coming via backedges
14072 drop all symbolical range information.
14073 (execute_vrp): Compute backedges.
14074
04b535af
RB
140752013-01-16 Richard Biener <rguenther@suse.de>
14076
14077 * doc/install.texi: Update CLooG and ISL requirements to
14078 0.18.0 and 0.11.1.
14079
8b0a1e0b
CB
140802013-01-16 Christian Bruel <christian.bruel@st.com>
14081
14082 PR target/55301
14083 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
14084 (broken_move): Handle UNSPECV_SP_SWITCH_B.
14085 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
14086
140872013-01-16 DJ Delorie <dj@redhat.com>
14088
14089 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
14090 (UNSPECV_SP_SWITCH_E): New.
14091 (sp_switch_1): Change to an unspec.
14092 (sp_switch_2): Change to an unspec. Don't use post-inc when we
14093 replace $r15.
14094
140952013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
14096
14097 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
14098 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
14099 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
14100 (expand_mem_thread_fence): Ditto.
14101 (expand_mem_signal_fence): Ditto.
14102 (expand_atomic_load): Ditto.
14103 (expand_atomic_store): Ditto.
14104
0bfbca58 141052013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
14106
14107 PR rtl-optimization/55547
14108 PR rtl-optimization/53827
14109 PR debug/53671
14110 PR debug/49888
14111 * alias.c (memrefs_conflict_p): Set sizes to negative after
14112 AND adjustments.
14113
305e3ac1
JJ
141142013-01-15 Jakub Jelinek <jakub@redhat.com>
14115
14116 PR target/55940
14117 * function.c (thread_prologue_and_epilogue_insns): Always
14118 add crtl->drap_reg to set_up_by_prologue.set, even if
14119 stack_realign_drap is false.
14120
f78ac4f2
JBG
141212013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14122
14123 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
14124 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
14125 *call): Fix indention.
14126
a78a8cc4
TV
141272013-01-15 Tom de Vries <tom@codesourcery.com>
14128
14129 PR target/55876
14130 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
14131 Update comment.
14132
0e80383f
VM
141332013-01-15 Vladimir Makarov <vmakarov@redhat.com>
14134
305e3ac1 14135 PR rtl-optimization/55153
0e80383f
VM
14136 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
14137
207b5956
MJ
141382013-01-15 Martin Jambor <mjambor@suse.cz>
14139
14140 PR tree-optimization/55920
14141 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
14142 accesses as grp_to_be_debug_replaced.
14143
a7818b54
JJ
141442013-01-15 Jakub Jelinek <jakub@redhat.com>
14145
14146 PR tree-optimization/55920
14147 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
14148 there is non-useless type conversion needed from debug rhs to lhs,
14149 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
14150
b0fe107e
JM
141512013-01-15 Joseph Myers <joseph@codesourcery.com>
14152 Mikael Pettersson <mikpe@it.uu.se>
14153
14154 PR target/43961
14155 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
14156 Thumb.
14157 (ASM_OUTPUT_CASE_LABEL): Remove.
14158 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
14159 * final.c (shorten_branches): Update alignment of labels before
14160 jump tables if CASE_VECTOR_SHORTEN_MODE.
14161
34ab62ee
RB
141622013-01-15 Richard Biener <rguenther@suse.de>
14163
14164 PR bootstrap/55961
14165 * system.h: Do not include gmp.h for building host tools.
14166
783a3a05
RB
141672013-01-15 Richard Biener <rguenther@suse.de>
14168
14169 PR middle-end/55882
14170 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
14171 account for bitpos when computing alignment.
14172
3a579e09
VY
141732013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
14174
14175 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
14176 (ix86_target_macros_internal): Likewise.
14177
14178 * config/i386/i386.c (m_CORE2I7): Removed.
14179 (m_CORE_HASWELL): New macro.
14180 (m_CORE_ALL): Likewise.
14181 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
14182 (initial_ix86_arch_features): Likewise.
14183 (processor_target_table): Initializations for Core avx2.
14184 (cpu_names): New names "core-avx2".
14185 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
14186 PROCESSOR_CORE_HASWELL.
14187 (ix86_issue_rate): New case.
14188 (ia32_multipass_dfa_lookahead): Likewise.
14189 (ix86_sched_init_global): Likewise.
14190
14191 * config/i386/i386.h (TARGET_HASWELL): New macro.
14192 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
14193 (processor_type): New PROCESSOR_HASWELL.
14194
955f5a07
JJ
141952013-01-15 Jakub Jelinek <jakub@redhat.com>
14196
ff784829
JJ
14197 PR tree-optimization/55955
14198 * tree-vect-loop.c (vectorizable_reduction): Give up early on
14199 *SHIFT_EXPR and *ROTATE_EXPR codes.
14200
955f5a07
JJ
14201 PR tree-optimization/48766
14202 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
14203 -ftrapv disable -fwrapv.
14204
aeb8b4e9
GJL
142052013-01-14 Georg-Johann Lay <avr@gjlay.de>
14206
14207 PR target/55974
14208 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
14209 etc. to 1 and not to __flash.
14210 Use LL suffix for __INT24_MAX__ with -mint8.
14211 Use ULL suffix for __UINT24_MAX__ with -mint8.
14212
1c494c6a
GJL
142132013-01-14 Georg-Johann Lay <avr@gjlay.de>
14214
14215 * config/avr/avr-arch.h
14216 (struct base_arch_s): Use typedef avr_arch_t instead.
14217 (struct arch_info_s): Use typedef avr_arch_info_t instead.
14218 (struct mcu_type_s): Use typedef avr_mcu_t instead.
14219 * config/avr/avr.c: Same.
14220 * config/avr/avr-devices.c: Same.
14221 * config/avr/driver-avr.c: Same.
14222 * config/avr/gen-avr-mmcu-texi.c: Same.
14223 * config/avr/avr-mcus.def: Adjust comment.
14224
a50344cb
TB
142252013-01-14 Tejas Belagod <tejas.belagod@arm.com>
14226
88e784e6
UB
14227 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
14228 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 14229
47876a2a 142302013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
14231 Andi Kleen <ak@linux.intel.com>
14232
14233 PR target/55948
14234 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
14235 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
14236 memmodel flag.
14237
00892272
GJL
142382013-01-14 Georg-Johann Lay <avr@gjlay.de>
14239
14240 * config/avr/avr-stdint.h: Remove trailing blanks.
14241 * config/avr/avr-log.h: Same.
14242 * config/avr/avr-arch.h: Same.
14243 * config/avr/avr-devices.c: Same.
14244 * config/avr/avr-dimode.md: Same.
14245 * config/avr/predicates.md: Same.
14246 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 14247
00892272
GJL
14248 * config/avr/avr-protos.h: Same. And:
14249 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
14250 (init_cumulative_args): Rename to avr_init_cumulative_args.
14251 (expand_prologue): Rename to avr_expand_prologue.
14252 (expand_epilogue): Rename to avr_expand_epilogue.
14253 (adjust_insn_length): Rename to avr_adjust_insn_length.
14254 (notice_update_cc): Rename to avr_notice_update_cc.
14255 (final_prescan_insn): Rename to avr_final_prescan_insn.
14256 * config/avr/avr.c: Same.
14257 * config/avr/avr.h: Same.
14258 * config/avr/avr.md: Remove trailing blanks.
14259 (prologue): Use avr_expand_prologue.
14260 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
14261
7bb01996
RB
142622013-01-14 Richard Biener <rguenther@suse.de>
14263
14264 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
14265 verify_location, collect_subblocks): New functions.
14266 (verify_gimple_in_cfg): Verify that locations only reference
14267 BLOCKs in the functions BLOCK tree.
14268
2724573f
RB
142692013-01-14 Richard Biener <rguenther@suse.de>
14270
14271 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
14272 PHI argument.
14273 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
14274 unshare reference.
14275 (insert_out_of_ssa_copy_on_edge): Likewise.
14276 (rewrite_close_phi_out_of_ssa): Likewise.
14277 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
14278 debug expressions.
14279 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
14280 propagated constants.
14281 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
14282 can not be shared.
14283
9a0bbab6
GJL
142842013-01-14 Georg-Johann Lay <avr@gjlay.de>
14285
14286 * config/avr/avr-modes.def: Add GPL copyright notice.
14287
45805f17
UB
142882013-01-13 Uros Bizjak <ubizjak@gmail.com>
14289
14290 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
14291 MEMMODEL_MASK to determine memory model.
14292 (atomic_store<mode>): Ditto from operands[2].
14293 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
14294
9d60be38
JJ
142952013-01-13 Jakub Jelinek <jakub@redhat.com>
14296
14297 PR fortran/55935
45805f17 14298 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
14299 (fold_gimple_assign): Don't call unshare_expr here.
14300 (fold_ctor_reference): Call unshare_expr.
14301
e7f49d92
TG
143022013-01-13 Terry Guo <terry.guo@arm.com>
14303
aaf1e810
EB
14304 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
14305 * doc/fragments.texi: Document MULTILIB_REUSE.
14306 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 14307 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 14308 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
14309 (tmpmultilib4): Ditto.
14310 (multilib_reuse): New multilib argument.
14311
fbd03a27
RS
143122013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
14313
14314 * Makefile.in: Update copyright.
14315
b3681f13
TV
143162013-01-12 Tom de Vries <tom@codesourcery.com>
14317
14318 PR middle-end/55890
14319 * calls.c (expand_call): Check if arg_nr is valid.
14320
3f287e4b
MM
143212013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
14322
14323 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
14324 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
14325 documentation. Add missing '__' in front of
14326 __builtin_ia32_packssdw256.
3f287e4b 14327
1abcd5eb
AK
143282013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14329
14330 PR target/55719
14331 * config/s390/s390.c (s390_preferred_reload_class): Do not return
14332 NO_REGS for larl operands.
14333 (s390_reload_larl_operand): Use s390_load_address instead of
14334 emit_move_insn.
14335
980d0812
RB
143362013-01-11 Richard Biener <rguenther@suse.de>
14337
14338 * tree-cfg.c (verify_node_sharing_1): Split out from ...
14339 (verify_node_sharing): ... here.
14340 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
14341
7cb9fd07
EB
143422013-01-11 Eric Botcazou <ebotcazou@adacore.com>
14343
14344 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
14345 Substitute TREECHECKING.
14346 * configure: Regenerate.
14347 * Makefile.in (TREECHECKING): New.
14348
47876a2a 143492013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
14350
14351 PR tree-optimization/44061
14352 * tree-vrp.c (extract_range_basic): Compute zero as
14353 value-range for __builtin_constant_p of function parameters.
14354
d1e082c2
RS
143552013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
14356
45805f17 14357 Update copyright years.
d1e082c2 14358
f85021b0
VM
143592013-01-10 Vladimir Makarov <vmakarov@redhat.com>
14360
9d60be38 14361 PR rtl-optimization/55672
0160442c
VM
14362 * lra-eliminations.c (mark_not_eliminable): Permit addition with
14363 const to be eliminable.
f85021b0 14364
7a8b1ec4
DE
143652013-01-10 David Edelsohn <dje.gcc@gmail.com>
14366
14367 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
14368 * configure: Regenerate.
14369
ad2e5b71
RB
143702013-01-10 Richard Biener <rguenther@suse.de>
14371
ddf9322d 14372 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 14373
ffc5b2bb
RB
143742013-01-10 Richard Biener <rguenther@suse.de>
14375
14376 PR bootstrap/55792
14377 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
14378 locations for virtual PHI arguments.
14379 (rewrite_update_phi_arguments): Likewise.
14380
e1f674e4
JS
143812013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
14382
14383 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
14384 on to assembler.
14385
a57fc743
JJ
143862013-01-10 Jakub Jelinek <jakub@redhat.com>
14387
14388 PR tree-optimization/55921
14389 * tree-complex.c (expand_complex_asm): New function.
14390 (expand_complex_operations_1): Call it for GIMPLE_ASM.
14391
0ff4390d
AK
143922013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14393
14394 PR target/55718
14395 * config/s390/s390.c (s390_symref_operand_p)
14396 (s390_loadrelative_operand_p): Merge the two functions.
14397 (s390_check_qrst_address, print_operand_address): Add parameters
14398 to s390_loadrelative_operand_p invokation.
14399 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
14400 (s390_reload_larl_operand, s390_secondary_reload): Use
14401 s390_loadrelative_operand_p instead of s390_symref_operand_p.
14402 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
14403
6f557e0e
MS
144042013-01-09 Mike Stump <mikestump@comcast.net>
14405
14406 * dse.c (record_store): Remove unnecessary assert.
14407
7770c9e9
JH
144082013-01-09 Jan Hubicka <jh@suse.cz>
14409
14410 PR tree-optimization/55569
14411 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
14412 * cfgloop.h (scale_loop_profile): Likewise.
14413
a19b1432
JH
144142013-01-09 Jan Hubicka <jh@suse.cz>
14415
14416 PR lto/45375
ddf9322d
UB
14417 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
14418 functions.
a19b1432
JH
14419 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
14420
9a002da8
RS
144212013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
14422
14423 PR middle-end/55114
14424 * expr.h (maybe_emit_group_store): Declare.
14425 * expr.c (maybe_emit_group_store): New function.
14426 * builtins.c (expand_builtin_int_roundingfn): Call it.
14427 (expand_builtin_int_roundingfn_2): Likewise.
14428
511dcace
VM
144292013-01-09 Vladimir Makarov <vmakarov@redhat.com>
14430
e1f2b729 14431 PR rtl-optimization/55829
511dcace
VM
14432 * lra-constraints.c (match_reload): Add code for absent output.
14433 (curr_insn_transform): Add code for reloads of matched inputs
14434 without output.
14435
7b0fe4f4
UB
144362013-01-09 Uros Bizjak <ubizjak@gmail.com>
14437
14438 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
14439 attribute of movddup insn to DF.
14440 (*vec_interleave_lowv2df): Ditto.
14441 (vec_dupv2df): Ditto.
14442
870ca331
JH
144432013-01-09 Jan Hubicka <jh@suse.cz>
14444
14445 PR tree-optimiation/55875
14446 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
14447 EVERY_ITERATION parameter.
7b0fe4f4 14448 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
14449 (idx_infer_loop_bounds): Similarly here.
14450 (n_of_executions_at_most): Simplify
14451 to only test for cases where statement is dominated by the
7b0fe4f4 14452 particular bound; handle correctly the "postdominance" test.
870ca331
JH
14453 (scev_probably_wraps_p): Use max loop iterations info
14454 as a global bound first.
14455
6f575fe4 144562013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
14457 Nick Clifton <nickc@redhat.com>
14458
14459 * config/v850/v850.md (cbranchsf4): New pattern.
14460 (cstoresf4): New pattern.
14461 (cbranchdf4): New pattern.
14462 (cstoredf4): New pattern.
14463 (movsicc): Disallow floating point comparisons.
14464 (cmpsf_le_insn): Fix order of operators.
14465 (cmpsf_lt_insn): Likewise.
14466 (cmpsf_eq_insn): Likewise.
14467 (cmpdf_le_insn): Likewise.
14468 (cmpdf_lt_insn): Likewise.
14469 (cmpdf_eq_insn): Likewise.
14470 (cmpsf_ge_insn): Use LE comparison.
14471 (cmpdf_ge_insn): Likewise.
14472 (cmpsf_gt_insn): Use LT comparison.
14473 (cmpdf_gt_insn): Likewise.
14474 (cmpsf_ne_insn): Delete pattern.
14475 (cmpdf_ne_insn): Delete pattern.
14476 * config/v850/v850.c (v850_gen_float_compare): Use
14477 gen_cmpdf_eq_insn for NE comparison.
14478 (v850_float_z_comparison_operator)
14479 (v850_float_nz_comparison_operator): Move from here ...
14480 * config/v850/predicates.md: ... to here. Move GT and GE
14481 comparisons into v850_float_z_comparison_operator.
14482 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
14483 Delete prototype.
14484 (v850_float_nz_comparison_operator): Likewise.
14485
f0d54148
JDA
144862013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14487
14488 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
14489 with calls to gen_insvsi/gen_insvdi.
14490
8f01beca
VK
144912013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14492
14493 * config/i386/i386.c (initial_ix86_tune_features): Set up
14494 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
14495
2aa579ad
JJ
144962013-01-09 Steven Bosscher <steven@gcc.gnu.org>
14497 Jakub Jelinek <jakub@redhat.com>
14498
14499 PR tree-optimization/48189
14500 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
14501 If nitercst is 0, don't predict the exit edge.
14502
6edc3e32 145032013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
14504
14505 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
14506 in asm_fprintf with reg_names.
14507 (aarch64_print_operand_address): Likewise.
14508 (aarch64_return_addr): Likewise.
14509 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
14510
f6f94d94
JDA
145112013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14512
14513 * config/pa/pa.h (VAL_U6_BITS_P): Define.
14514 (INT_U6_BITS): Likewise.
14515 * config/pa/predicates.md (uint6_operand): New predicate.
14516 (shift5_operand, shift6_operand): Likewise.
14517 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
14518 arith32_operand.
14519 (lshrdi3): Use shift6_operand.
14520 (shrpsi4, shrpdi4): New insn patterns.
14521 (extzv): Delete expander.
14522 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
14523 predicates in unamed zero extract patterns. Tighten common constraint.
14524 (extv): Delete expander.
14525 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
14526 predicates in unamed sign extract patterns. Tighten common constraint.
14527 (insv): Delete expander.
14528 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
14529 predicates in unamed insert patterns. Tighten common constraint.
14530 Change uint32_operand predicate to uint6_operand predicate in unamed
14531 DImode pattern to insert constant values of type 1...1xxxx.
14532
36b72910
JH
145332013-01-04 Jan Hubicka <jh@suse.cz>
14534
14535 PR tree-optimization/55823
7b0fe4f4
UB
14536 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
14537 issue.
36b72910 14538
47876a2a 145392013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
14540 Uros Bizjak <ubizjak@gmail.com>
14541
14542 PR rtl-optimization/55845
14543 * df-problems.c (can_move_insns_across): Stop scanning at
14544 volatile_insn_p source instruction or give up if
14545 across_from .. across_to range contains any volatile_insn_p
14546 instructions.
14547
4369c11e
TB
145482013-01-08 Tejas Belagod <tejas.belagod@arm.com>
14549
7b0fe4f4
UB
14550 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
14551 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
14552 Declare.
4369c11e 14553 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 14554 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 14555
aeb7e7c1
JJ
145562013-01-08 Jakub Jelinek <jakub@redhat.com>
14557
14558 PR fortran/55341
14559 * asan.c (asan_clear_shadow): New function.
14560 (asan_emit_stack_protection): Use it.
14561
a02ad1aa
TB
145622013-01-08 Tejas Belagod <tejas.belagod@arm.com>
14563
14564 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
14565 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
14566 with tab instead of space.
14567
f90d87f5
NC
145682013-01-08 Nick Clifton <nickc@redhat.com>
14569
14570 * config/rl78/rl78.c (rl78_expand_prologue): Always select
14571 register bank 0 at the start of an interrupt handler.
83ffd964
NC
14572 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
14573 MDBH registers.
f90d87f5 14574
385eb93d
JG
145752013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
14576
14577 * config/aarch64/aarch64-simd.md
14578 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
14579 (aarch64_simd_bsl): Likewise.
14580 (aarch64_vcond_internal<mode>): Likewise.
14581 (vcond<mode><mode>): Likewise.
14582 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
14583 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
14584
4dcd1054
JG
145852013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
14586
14587 * config/aarch64/aarch64-builtins.c
14588 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
14589
4267a4a6
MJ
145902013-01-08 Martin Jambor <mjambor@suse.cz>
14591
14592 PR debug/55579
14593 * tree-sra.c (analyze_access_subtree): Return true also after
14594 potentially creating a debug-only replacement.
14595
5f4e6de3
JJ
145962013-01-08 Jakub Jelinek <jakub@redhat.com>
14597
3138f224
JJ
14598 PR middle-end/55890
14599 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
14600
5f4e6de3
JJ
14601 PR tree-optimization/54120
14602 * tree-vrp.c (range_fits_type_p): Don't allow
14603 src_precision < precision from signed vr to unsigned_p
14604 if vr->min or vr->max is negative.
14605 (simplify_float_conversion_using_ranges): Test can_float_p
14606 against CODE_FOR_nothing.
14607
f3ef18ff
JJ
146082013-01-08 Jakub Jelinek <jakub@redhat.com>
14609 Richard Biener <rguenther@suse.de>
14610
14611 PR middle-end/55851
14612 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
14613 types instead of just INTEGER_TYPE types.
14614
25c210f9
MK
146152013-01-07 Mark Kettenis <kettenis@openbsd.org>
14616
14617 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
14618 TF_SIZE): Define.
f90d87f5 14619
81826a7b
SE
146202013-01-07 Steve Ellcey <sellcey@mips.com>
14621
14622 PR target/42661
14623 * config/mips/mips.opt: Change mad to mmad to match documentation.
14624
35678514
GJL
146252013-01-07 Georg-Johann Lay <avr@gjlay.de>
14626
14627 PR target/55897
14628 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
14629 .progmemx.data now.
14630
e5669488
GJL
146312013-01-07 Georg-Johann Lay <avr@gjlay.de>
14632
14633 PR target/55897
14634 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
14635 (avr_addrspace_t): Add .section_name field.
14636 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
14637 array size.
14638 (avr_addrspace): Same. Initialize .section_name. Remove last
14639 NULL entry. Put __memx into .progmemx.data.
14640 (progmem_section_prefix): Remove.
14641 (avr_asm_init_sections): No need to initialize progmem_section.
14642 (avr_asm_named_section): Use avr_addrspace[].section_name to get
14643 section name prefix.
14644 (avr_asm_select_section): Ditto. And use get_unnamed_section to
14645 retrieve the progmem section.
14646 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
14647 boundary to run over avr_addrspace[].
14648 (avr_register_target_pragmas): Ditto.
14649
656e6f37
JJ
146502013-01-06 Jakub Jelinek <jakub@redhat.com>
14651
14652 * varasm.c (output_constant_def_contents): For asan_protect_global
14653 protected strings, adjust DECL_ALIGN if needed, before testing for
14654 anchored symbols.
14655 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
14656 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
14657 normal decls.
14658 (output_object_block): For asan protected decls, emit asan padding
14659 after their contents.
14660 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
14661 (asan_finish_file): Test it here instead.
14662
6edc3e32
UB
146632013-01-07 Nick Clifton <nickc@redhat.com>
14664 Matthias Klose <doko@debian.org>
14665 Doug Kwan <dougkwan@google.com>
14666 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
14667
14668 PR driver/55470
14669 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
14670
14671 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
14672
14673 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
14674
7b0fe4f4 14675 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
14676
14677 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
14678
2a095093
GJL
146792013-01-07 Georg-Johann Lay <avr@gjlay.de>
14680
f3b503f4 14681 PR target/54461
2a095093
GJL
14682 * doc/install.texi (Cross-Compiler-Specific Options): Document
14683 --with-avrlibc.
14684
383f9b34
TB
146852013-01-07 Tejas Belagod <tejas.belagod@arm.com>
14686
14687 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
14688 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
14689 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
14690 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
14691 vqmovun_high_s64): Fix source operand number and update copyright.
14692
3626621a
RB
146932013-01-07 Richard Biener <rguenther@suse.de>
14694
14695 PR middle-end/55890
14696 * gimple.h (gimple_call_builtin_p): New overload.
14697 * gimple.c (validate_call): New function.
14698 (gimple_call_builtin_p): Likewise.
14699 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14700 Use gimple_call_builtin_p.
14701 (find_func_clobbers): Likewise.
14702 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
14703 (strlen_optimize_stmt): Likewise.
14704
8b2ea410
JG
147052013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
14706
14707 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
14708 (vld1q_dup_*): Likewise.
14709 (vld1_*): Likewise.
14710 (vld1q_*): Likewise.
14711 (vld1_lane_*): Likewise.
14712 (vld1q_lane_*): Likewise.
14713
9713d329
RB
147142013-01-07 Richard Biener <rguenther@suse.de>
14715
14716 * lto-streamer.h (LTO_minor_version): Bump to 2.
14717
3520f7cc
JG
147182013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
14719
14720 * config/aarch64/aarch64-protos.h
14721 (aarch64_const_double_zero_rtx_p): Rename to...
14722 (aarch64_float_const_zero_rtx_p): ...this.
14723 (aarch64_float_const_representable_p): New.
14724 (aarch64_output_simd_mov_immediate): Likewise.
14725 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
14726 move immediate case.
14727 * config/aarch64/aarch64.c
14728 (aarch64_const_double_zero_rtx_p): Rename to...
14729 (aarch64_float_const_zero_rtx_p): ...this.
14730 (aarch64_print_operand): Allow printing of new constants.
14731 (aarch64_valid_floating_const): New.
14732 (aarch64_legitimate_constant_p): Check for valid floating-point
14733 constants.
14734 (aarch64_simd_valid_immediate): Likewise.
14735 (aarch64_vect_float_const_representable_p): New.
14736 (aarch64_float_const_representable_p): Likewise.
14737 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
14738 (aarch64_output_simd_mov_immediate): New.
14739 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
14740 (*movdf_aarch64): Likewise.
14741 * config/aarch64/constraints.md (Ufc): New.
14742 (Y): call aarch64_float_const_zero_rtx.
14743 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
14744
e167c04d
RB
147452013-01-07 Richard Biener <rguenther@suse.de>
14746
14747 PR tree-optimization/55888
14748 PR tree-optimization/55862
14749 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
14750 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
14751 not if it is contained therein.
14752
0139aaab
GJL
147532013-01-07 Georg-Johann Lay <avr@gjlay.de>
14754
14755 * config/avr/t-avr: Typo.
14756
4a176b23
GJL
147572013-01-07 Georg-Johann Lay <avr@gjlay.de>
14758
14759 PR55243
14760 * config/avr/t-avr: Don't automatically rebuild
14761 $(srcdir)/config/avr/t-multilib
14762 $(srcdir)/config/avr/avr-tables.opt
14763 $(srcdir)/doc/avr-mmcu.texi
14764 (avr-mcus): New phony target to build them on request.
14765 (s-avr-mlib, s-avr-mmcu-texi): Remove.
14766 * avr/avr-mcus.def: Adjust comments.
14767
c7afdc98
UB
147682013-01-07 Uros Bizjak <ubizjak@gmail.com>
14769
14770 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
14771
1ab05c31
RS
147722013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
14773
14774 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
14775
488e3acc
RS
147762013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
14777
14778 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
14779
a89599d2
DE
147802013-01-05 David Edelsohn <dje.gcc@gmail.com>
14781
14782 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
14783 to generate profiling.
14784 * config/rs6000/aix64.h (LIB_SPEC): Same.
14785
70f09188
AP
147862013-01-04 Andrew Pinski <apinski@cavium.com>
14787
14788 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
14789 New function.
14790 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
14791
918d445f
UB
147922013-01-04 Uros Bizjak <ubizjak@gmail.com>
14793
14794 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
14795 unconditionally.
14796 (ix86_expand_move): Ditto.
14797 (ix86_zero_extend_to_Pmode): Ditto.
14798 (ix86_expand_call): Ditto.
14799 (ix86_expand_special_args_builtin): Ditto.
14800 (ix86_expand_builtin): Ditto.
14801
361618ec
RB
148022013-01-04 Richard Biener <rguenther@suse.de>
14803
14804 PR tree-optimization/55862
14805 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
14806 translating them through PHI nodes.
14807
87eab554
MJ
148082013-01-04 Martin Jambor <mjambor@suse.cz>
14809
14810 PR tree-optimization/55755
14811 * tree-sra.c (sra_modify_assign): Do not check that an access has no
14812 children when trying to avoid producing a VIEW_CONVERT_EXPR.
14813
33879b9f
MP
148142013-01-04 Marek Polacek <polacek@redhat.com>
14815
14816 PR middle-end/55859
14817 * opts.c (default_options_optimization): Clarify error message.
14818
3068819a
RB
148192013-01-04 Richard Biener <rguenther@suse.de>
14820
14821 PR middle-end/55863
14822 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
14823 reassociation.
14824
0e4ae794
JDA
148252013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14826
14827 PR target/53789
14828 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
14829 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
14830 references.
0e4ae794 14831
65c88cef
RH
148322013-01-03 Richard Henderson <rth@redhat.com>
14833
14834 * config/i386/i386.c (ix86_expand_move): Always assign to op1
14835 after eliminating TLS symbols.
14836
8ac16127
MG
148372013-01-03 Marc Glisse <marc.glisse@inria.fr>
14838
14839 PR bootstrap/50167
14840 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
14841 * graphite-poly.c (debug_gmp_value): Likewise.
14842
bb664f09
UB
148432013-01-03 Uros Bizjak <ubizjak@gmail.com>
14844
14845 PR target/55712
14846 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
14847 selected code model, define __code_mode_small__, __code_model_medium__,
14848 __code_model_large__, __code_model_32__ or __code_model_kernel__.
14849 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
14850 xchg temporary register with %k. Declare temporary register as
14851 early clobbered.
14852 [__x86_64__]: For medium and large code models, preserve %rbx register.
14853
bcf1ef00
RB
148542013-01-03 Richard Biener <rguenther@suse.de>
14855
0506634a 14856 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
14857 (dump_subscript): Adjust.
14858 (finalize_ddr_dependent): Do not dump redundant info.
14859 (analyze_siv_subscript): Adjust.
14860 (subscript_dependence_tester): Likewise.
14861 (compute_affine_dependence): Likewise.
14862
59fd17e3
RB
148632013-01-03 Richard Biener <rguenther@suse.de>
14864
14865 Revert
14866 2013-01-03 Richard Biener <rguenther@suse.de>
14867
14868 PR tree-optimization/55857
14869 * tree-vect-stmts.c (vectorizable_load): Do not setup
14870 re-alignment for invariant loads.
14871
14872 2013-01-02 Richard Biener <rguenther@suse.de>
14873
14874 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 14875 invariant load do not generate a vector load from the scalar location.
59fd17e3 14876
595c2679
RB
148772013-01-03 Richard Biener <rguenther@suse.de>
14878
14879 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
14880 for not vectorizing.
14881 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
14882 not build INDIRECT_REFs, call get_name once only.
14883 (vect_create_data_ref_ptr): Likewise. Dump base object kind
14884 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
14885
90bb7d7a
RB
148862013-01-03 Richard Biener <rguenther@suse.de>
14887
14888 PR tree-optimization/55857
14889 * tree-vect-stmts.c (vectorizable_load): Do not setup
14890 re-alignment for invariant loads.
14891
f09b77ca
RB
148922013-01-03 Richard Biener <rguenther@suse.de>
14893
14894 PR lto/55848
14895 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
14896 prefer a built-in decl.
14897
3461a16e
JJ
148982013-01-03 Jakub Jelinek <jakub@redhat.com>
14899
df8e2b4f
JJ
14900 * gcc.c (process_command): Update copyright notice dates.
14901 * gcov.c (print_version): Likewise.
14902 * gcov-dump.c (print_version): Likewise.
14903
3461a16e
JJ
14904 PR rtl-optimization/55838
14905 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
14906 iv0.step, iv1.step and step.
14907
8b5546d6
JJ
149082013-01-03 Jakub Jelinek <jakub@redhat.com>
14909 Marc Glisse <marc.glisse@inria.fr>
14910
14911 PR tree-optimization/55832
14912 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
14913 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
14914 integer_{one,zero}_node.
14915
8ab1d2e9
JJ
149162013-01-03 Jakub Jelinek <jakub@redhat.com>
14917
14918 PR debug/54402
14919 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
14920 * var-tracking.c (reverse_op): Don't add reverse ops to
14921 VALUEs that have already
0506634a 14922 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 14923
5b9ad1d4
GP
149242013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
14925
14926 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
14927
e25a6711
TJ
149282013-01-02 Teresa Johnson <tejohnson@google.com>
14929
14930 * dumpfile.c (dump_loc): Print filename with location.
14931 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
14932 new location_t parameter to emit complete unroll message with
14933 new dump framework.
14934 (canonicalize_loop_induction_variables): Compute loops location
14935 and pass to try_unroll_loop_completely.
14936 * loop-unroll.c (report_unroll_peel): New function.
14937 (peel_loops_completely): Use new dump format with location
14938 for main dumpfile message, and invoke report_unroll_peel on success.
14939 (decide_unrolling_and_peeling): Ditto.
14940 (decide_peel_once_rolling): Remove old dumpfile message subsumed
14941 by report_unroll_peel.
14942 (decide_peel_completely): Ditto.
14943 (decide_unroll_constant_iterations): Ditto.
14944 (decide_unroll_runtime_iterations): Ditto.
14945 (decide_peel_simple): Ditto.
14946 (decide_unroll_stupid): Ditto.
14947 * cfgloop.c (get_loop_location): New function.
14948 * cfgloop.h (get_loop_location): Declare.
14949
77878621
ST
149502013-01-02 Sriraman Tallam <tmsriram@google.com>
14951
14952 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
14953 NULL.
14954
9e65d03e
JDA
149552013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14956
14957 PR middle-end/55198
14958 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
14959 BLKmode objects when EXPAND_MEMORY is specified.
14960
6a7da30f
ST
149612013-01-02 Sriraman Tallam <tmsriram@google.com>
14962
14963 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
14964 in loop predicate.
14965 (fold_builtin_cpu): Do not share cpu model decls across statements.
14966
e78167f2
JM
149672013-01-02 Jason Merrill <jason@redhat.com>
14968
14969 PR c++/55804
14970 * tree.c (build_array_type_1): Revert earlier change.
14971
8c075fb4
YZ
149722013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
14973
14974 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
14975 "cortex-a57".
14976 * config/aarch64/aarch64-tune.md: Re-generate.
14977
0682ed3e
RB
149782013-01-02 Richard Biener <rguenther@suse.de>
14979
14980 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 14981 invariant load do not generate a vector load from the scalar location.
0682ed3e 14982
b8f6a302
RB
149832013-01-02 Richard Biener <rguenther@suse.de>
14984
14985 PR bootstrap/55784
14986 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
14987 * configure: Regenerate.
14988
04b80dbb
RS
149892013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14990
14991 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
14992 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
14993 (expand_builtin_int_roundingfn_2): Keep the original target around
14994 for the fallback case.
14995
635b0b0c
RS
149962013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14997
14998 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
14999 to be clear for sign changes.
15000
42d57399
JH
150012013-01-01 Jan Hubicka <jh@suse.cz>
15002
15003 * ipa-inline-analysis.c: Fix formatting.
15004
5bb6669d
JJ
150052013-01-01 Jakub Jelinek <jakub@redhat.com>
15006
15007 PR tree-optimization/55831
15008 * tree-vect-loop.c (get_initial_def_for_induction): Use
15009 gsi_after_labels instead of gsi_start_bb.
ad41bd84 15010\f
86a2db33 15011Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
15012
15013Copying and distribution of this file, with or without modification,
15014are permitted in any medium without royalty provided the copyright
15015notice and this notice are preserved.