]> gcc.gnu.org Git - gcc.git/blob - gcc/ChangeLog
config.gcc (sparc*-*-*): Accept leon3 processor.
[gcc.git] / gcc / ChangeLog
1 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
2
3 * config.gcc (sparc*-*-*): Accept leon3 processor.
4 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
5 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
6 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
7 * config/sparc/sparc.opt (enum processor_type): Add leon3.
8 (mfix-ut699): Adjust comment.
9 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
10 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
11 (CPP_CPU_SPEC): Likewise.
12 (ASM_CPU_SPEC): Likewise.
13 * config/sparc/sparc.c (leon3_cost): New constant.
14 (sparc_option_override): Add leon3 support.
15 (mem_ref): New function.
16 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
17 (sparc_do_work_around_errata): Look into the instruction in the delay
18 slot and adjust accordingly. Add fix for the data cache nullify issues
19 of the UT699. Change insertion position for the NOP.
20 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
21 (leon3_load): New reservation.
22 (leon_store): Bump latency to 2.
23 (grfpu): New automaton.
24 (grfpu_alu): New unit.
25 (grfpu_ds): Likewise.
26 (leon_fp_alu): Adjust.
27 (leon_fp_mult): Delete.
28 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
29 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
30 * config/sparc/sparc.md (cpu): Add leon3.
31 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
32 (swapsi): Likewise.
33 (atomic_test_and_set): Likewise.
34 (ldstub): Likewise.
35
36 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
37
38 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
39 default for R5900 targets.
40 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
41 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
42 * config/mips/mips.c (mips_option_override): Report an error for
43 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
44 for -march=r5900 -mhard-float.
45
46 2013-07-22 Chang <pchang9@cs.wisc.edu>
47
48 * df-problems.c (can_move_insns_across): Exit loop once we
49 find a non-fixed, non-global register.
50
51 * ipa-pure-const.c (propagate_nothrow): Exit loop after
52 setting can_throw.
53
54 * omega.c (omega_eliminate_red): Break after setting red_found.
55 (omega_problem_has_red_equations): Similarly after setting found.
56 (omega_query_variable): Similarly after setting coupled.
57
58 2013-07-22 Marek Polacek <polacek@redhat.com>
59
60 * gimplify.c: Don't include gimple.h twice.
61
62 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
63
64 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
65 instead of TARGET_THUMB1.
66 (Pz): New constraint.
67 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
68 encodings.
69 (compare_negsi_si): Likewise.
70 (compare_addsi2_op0): Likewise.
71 (compare_addsi2_op1): Likewise.
72 (addsi3_carryin_<optab>): Likewise.
73 (addsi3_carryin_alt2_<optab>): Likewise.
74 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
75 for arm_restrict_it.
76 (subsi3_carryin): Likewise.
77 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
78 (minmax_arithsi): Disable for arm_restrict_it.
79 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
80 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
81 (satsi_<SAT:code>_shift): Likewise.
82 (arm_shiftsi3): Add alternative for 16-bit encoding.
83 (arm32_movhf): Disable for arm_restrict_it.
84 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
85 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
86
87 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
88
89 * config/arm/arm.md (attribute "insn"): Delete.
90 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
91 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
92 (not_shiftsi): Update for attribute change.
93 (not_shiftsi_compare0): Likewise.
94 (not_shiftsi_compare0_scratch): Likewise.
95 (arm_one_cmplsi2): Likewise.
96 (thumb1_one_cmplsi2): Likewise.
97 (notsi_compare0): Likewise.
98 (notsi_compare0_scratch): Likewise.
99 (thumb1_movdi_insn): Likewise.
100 (arm_movsi_insn): Likewise.
101 (movhi_insn_arch4): Likewise.
102 (movhi_bytes): Likewise.
103 (arm_movqi_insn): Likewise.
104 (thumb1_movqi_insn): Likewise.
105 (arm32_movhf): Likewise.
106 (thumb1_movhf): Likewise.
107 (arm_movsf_soft_insn): Likewise.
108 (thumb1_movsf_insn): Likewise.
109 (thumb_movdf_insn): Likewise.
110 (movsicc_insn): Likewise.
111 (movsfcc_soft_insn): Likewise.
112 (and_scc): Likewise.
113 (cond_move): Likewise.
114 (if_move_not): Likewise.
115 (if_not_move): Likewise.
116 (if_shift_move): Likewise.
117 (if_move_shift): Likewise.
118 (if_shift_shift): Likewise.
119 (if_not_arith): Likewise.
120 (if_arith_not): Likewise.
121 (cond_move_not): Likewise.
122 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
123 (neon_mov<mode>): Likewise.
124 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
125 (thumb2_movsi_vfp): Likewise.
126 (movsf_vfp): Likewise.
127 (thumb2_movsf_vfp): Likewise.
128 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
129 change.
130 (cortexa7_older_only): Likewise.
131 (cortexa7_younger): Likewise.
132 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
133 (1020alu_shift_op): Likewise.
134 (1020alu_shift_reg_op): Likewise.
135 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
136 (alu_shift_op): Likewise.
137 (alu_shift_reg_op): Likewise.
138 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
139 (11_alu_shift_op): Likewise.
140 (11_alu_shift_reg_op): Likewise.
141 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
142 (9_alu_shift_reg_op): Likewise.
143 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
144 change.
145 (cortex_a15_alu_shift): Likewise.
146 (cortex_a15_alu_shift_reg): Likewise.
147 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
148 (cortex_a5_alu_shift): Likewise.
149 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
150 change.
151 (cortex_a53_alu_shift): Likewise.
152 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
153 change.
154 (cortex_a7_alu_reg): Likewise.
155 (cortex_a7_alu_shift): Likewise.
156 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
157 (cortex_a8_alu_shift): Likewise.
158 (cortex_a8_alu_shift_reg): Likewise.
159 (cortex_a8_mov): Likewise.
160 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
161 (cortex_a9_dp_shift): Likewise.
162 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
163 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
164 (cortex_r4_mov): Likewise.
165 (cortex_r4_alu_shift): Likewise.
166 (cortex_r4_alu_shift_reg): Likewise.
167 * config/arm/fa526.md (526_alu_op): Update for attribute change.
168 (526_alu_shift_op): Likewise.
169 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
170 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
171 (626te_alu_shift_op): Likewise.
172 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
173 (726te_alu_op): Likewise.
174 (726te_alu_shift_op): Likewise.
175 (726te_alu_shift_reg_op): Likewise.
176 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
177 (mp626_alu_shift_op): Likewise.
178 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
179 (pj4_alu_e1_conds): Likewise.
180 (pj4_alu): Likewise.
181 (pj4_alu_conds): Likewise.
182 (pj4_shift): Likewise.
183 (pj4_shift_conds): Likewise.
184 (pj4_alu_shift): Likewise.
185 (pj4_alu_shift_conds): Likewise.
186
187 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
188
189 * config/arm/predicates.md (shiftable_operator_strict_it):
190 New predicate.
191 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
192 Disable cond_exec version for arm_restrict_it.
193 (thumb2_smaxsi3): Convert to generate cond_exec.
194 (thumb2_sminsi3): Likewise.
195 (thumb32_umaxsi3): Likewise.
196 (thumb2_uminsi3): Likewise.
197 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
198 (thumb2_neg_abssi2): Likewise.
199 (thumb2_mov_scc): Add alternative for 16-bit encoding.
200 (thumb2_movsicc_insn): Adjust alternatives.
201 (thumb2_mov_negscc): Disable for arm_restrict_it.
202 (thumb2_mov_negscc_strict_it): New pattern.
203 (thumb2_mov_notscc_strict_it): New pattern.
204 (thumb2_mov_notscc): Disable for arm_restrict_it.
205 (thumb2_ior_scc): Likewise.
206 (thumb2_ior_scc_strict_it): New pattern.
207 (thumb2_cond_move): Adjust for arm_restrict_it.
208 (thumb2_cond_arith): Disable for arm_restrict_it.
209 (thumb2_cond_arith_strict_it): New pattern.
210 (thumb2_cond_sub): Adjust for arm_restrict_it.
211 (thumb2_movcond): Likewise.
212 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
213 (thumb2_zero_extendhisi2_v6): Likewise.
214 (thumb2_zero_extendqisi2_v6): Likewise.
215 (orsi_notsi_si): Likewise.
216 (orsi_not_shiftsi_si): Likewise.
217
218 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
219
220 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
221 instruction sequence is 1 byte shorter.
222
223 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
224
225 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
226 it is not needed after split.
227
228 2013-07-20 Iain Sandoe <iain@codesourcery.com>
229
230 PR target/51784
231 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
232 second label for nonlocal goto receivers. Don't output pic base labels
233 unless we're producing PIC; mark that action unreachable().
234 (ix86_save_reg): If the function contains a nonlocal label, save the
235 PIC base reg.
236 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
237 * gcc/config/darwin.c (emitted_pic_label_num): New GTY.
238 (update_pic_label_number_if_needed): New.
239 (machopic_output_function_base_name): Adjust for nonlocal receiver
240 case.
241 (machopic_should_output_picbase_label): New.
242 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
243 (nonlocal_goto_receiver): New insn and split.
244
245 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
246
247 * config/aarch64/aarch64-builtins.c
248 (aarch64_fold_builtin): Fold abs in all modes.
249 * config/aarch64/aarch64-simd-builtins.def
250 (abs): Enable for all modes.
251 * config/aarch64/arm_neon.h
252 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
253 (vabs_f64): Add missing intrinsic.
254
255 2013-07-19 Ian Bolton <ian.bolton@arm.com>
256
257 * config/aarch64/arm_neon.h (vabs_s64): New function
258
259 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
260
261 PR target/57516
262 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
263 * config/avr/avr.md (adjust_len): Add `round'.
264 * config/avr/avr-protos.h (avr_out_round): New prototype.
265 (avr_out_plus): Add `out_label' argument.
266 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
267 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
268 Handle the case where `insn' is just a pattern.
269 (avr_out_bitop): Handle the case where `insn' is just a pattern.
270 (avr_out_round): New function.
271 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
272
273 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
274
275 * config/microblaze/microblaze.c (microblaze_expand_prologue):
276 Add check for flag_stack_usage to handle -fstack-usage support
277
278 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
279
280 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
281 interaction for new Power8 flags and VSX.
282
283 2013-07-18 Sriraman Tallam <tmsriram@google.com>
284
285 PR middle-end/57698
286 * tree-inline.c (expand_call_inline): Emit errors during
287 early_inlining only if optimization is not turned on.
288
289 2013-07-18 David Malcolm <dmalcolm@redhat.com>
290
291 * passes.def: New.
292
293 * passes.c (init_optimization_passes): Move the construction of
294 the pass hierarchy into a new passes.def file.
295
296 * Makefile.in (passes.o): Add dependency on passes.def.
297
298 2013-07-18 David Malcolm <dmalcolm@redhat.com>
299
300 * passes.c (init_optimization_passes): Introduce macros for
301 constructing the tree of passes (INSERT_PASSES_AFTER,
302 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
303 TERMINATE_PASS_LIST).
304
305 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
306 Wei Mi <wmi@google.com>
307
308 PR rtl-optimization/57878
309 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
310 top.
311 (reload_pseudo_compare_func): Check nregs first for reload
312 pseudos.
313
314 2013-07-18 David Malcolm <dmalcolm@redhat.com>
315
316 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
317
318 2013-07-18 Chang <pchang9@cs.wisc.edu>
319
320 * read-rtl.c (validate_const_int): Once an invalid character is
321 seen, quit the loop.
322
323 * gengtype.c (write_roots): Similarly once we find the "deletable"
324 or "if_marked" option.
325
326 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
327
328 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
329 "xtab" and "sat". Move value "clz" from here to ...
330 (attriubte "type"): ... here.
331 (satsi_<SAT:code>): Delete "insn" attribute.
332 (satsi_<SAT:code>_shift): Likewise.
333 (arm_zero_extendqisi2addsi): Likewise.
334 (arm_extendqisi2addsi): Likewise.
335 (clzsi2): Update for attribute changes.
336 (rbitsi2): Likewise.
337 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
338 attribute.
339 (arm_usatsihi): Likewise.
340 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
341
342 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
343
344 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
345 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
346 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
347 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
348 in alphabetical order.
349 (attribute "core_cycles"): Update for attribute changes.
350 (arm_addsi3): Likewise.
351 (addsi3_compare0): Likewise.
352 (addsi3_compare0_scratch): Likewise.
353 (addsi3_compare_op1): Likewise.
354 (addsi3_compare_op2): Likewise.
355 (compare_addsi2_op0): Likewise.
356 (compare_addsi2_op1): Likewise.
357 (addsi3_carryin_shift_<optab>): Likewise.
358 (subsi3_carryin_shift): Likewise.
359 (rsbsi3_carryin_shift): Likewise.
360 (arm_subsi3_insn): Likewise.
361 (subsi3_compare0): Likewise.
362 (subsi3_compare): Likewise.
363 (arm_andsi3_insn): Likewise.
364 (thumb1_andsi3_insn): Likewise.
365 (andsi3_compare0): Likewise.
366 (andsi3_compare0_scratch): Likewise.
367 (zeroextractsi_compare0_scratch
368 (andsi_not_shiftsi_si): Likewise.
369 (iorsi3_insn): Likewise.
370 (iorsi3_compare0): Likewise.
371 (iorsi3_compare0_scratch): Likewise.
372 (arm_xorsi3): Likewise.
373 (thumb1_xorsi3_insn): Likewise.
374 (xorsi3_compare0): Likewise.
375 (xorsi3_compare0_scratch): Likewise.
376 (satsi_<SAT:code>_shift): Likewise.
377 (rrx): Likewise.
378 (arm_shiftsi3): Likewise.
379 (shiftsi3_compare0): Likewise.
380 (not_shiftsi): Likewise.
381 (not_shiftsi_compare0): Likewise.
382 (not_shiftsi_compare0_scratch): Likewise.
383 (arm_one_cmplsi2): Likewise.
384 (thumb_one_complsi2): Likewise.
385 (notsi_compare0): Likewise.
386 (notsi_compare0_scratch): Likewise.
387 (thumb1_zero_extendhisi2): Likewise.
388 (arm_zero_extendhisi2): Likewise.
389 (arm_zero_extendhisi2_v6): Likewise.
390 (arm_zero_extendhisi2addsi): Likewise.
391 (thumb1_zero_extendqisi2): Likewise.
392 (thumb1_zero_extendqisi2_v6): Likewise.
393 (arm_zero_extendqisi2): Likewise.
394 (arm_zero_extendqisi2_v6): Likewise.
395 (arm_zero_extendqisi2addsi): Likewise.
396 (thumb1_extendhisi2): Likewise.
397 (arm_extendhisi2): Likewise.
398 (arm_extendhisi2_v6): Likewise.
399 (arm_extendqisi): Likewise.
400 (arm_extendqisi_v6): Likewise.
401 (arm_extendqisi2addsi): Likewise.
402 (thumb1_extendqisi2): Likewise.
403 (thumb1_movdi_insn): Likewise.
404 (arm_movsi_insn): Likewise.
405 (movsi_compare0): Likewise.
406 (movhi_insn_arch4): Likewise.
407 (movhi_bytes): Likewise.
408 (arm_movqi_insn): Likewise.
409 (thumb1_movqi_insn): Likewise.
410 (arm32_movhf): Likewise.
411 (thumb1_movhf): Likewise.
412 (arm_movsf_soft_insn): Likewise.
413 (thumb1_movsf_insn): Likewise.
414 (movdf_soft_insn): Likewise.
415 (thumb_movdf_insn): Likewise.
416 (arm_cmpsi_insn): Likewise.
417 (cmpsi_shiftsi): Likewise.
418 (cmpsi_shiftsi_swp): Likewise.
419 (arm_cmpsi_negshiftsi_si): Likewise.
420 (movsicc_insn): Likewise.
421 (movsfcc_soft_insn): Likewise.
422 (arith_shiftsi): Likewise.
423 (arith_shiftsi_compare0
424 (arith_shiftsi_compare0_scratch
425 (sub_shiftsi): Likewise.
426 (sub_shiftsi_compare0
427 (sub_shiftsi_compare0_scratch
428 (and_scc): Likewise.
429 (cond_move): Likewise.
430 (if_plus_move): Likewise.
431 (if_move_plus): Likewise.
432 (if_move_not): Likewise.
433 (if_not_move): Likewise.
434 (if_shift_move): Likewise.
435 (if_move_shift): Likewise.
436 (if_shift_shift): Likewise.
437 (if_not_arith): Likewise.
438 (if_arith_not): Likewise.
439 (cond_move_not): Likewise.
440 (thumb1_ashlsi3): Set type attribute.
441 (thumb1_ashrsi3): Likewise.
442 (thumb1_lshrsi3): Likewise.
443 (thumb1_rotrsi3): Likewise.
444 (shiftsi3_compare0_scratch): Likewise.
445 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
446 (neon_mov<mode>): Likewise.
447 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
448 attribute changes.
449 (thumb2_movsi_insn): Likewise.
450 (thumb2_cmpsi_neg_shiftsi): Likewise.
451 (thumb2_extendqisi_v6): Likewise.
452 (thumb2_zero_extendhisi2_v6): Likewise.
453 (thumb2_zero_extendqisi2_v6): Likewise.
454 (thumb2_shiftsi3_short): Likewise.
455 (thumb2_addsi3_compare0_scratch): Likewise.
456 (orsi_not_shiftsi_si): Likewise.
457 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
458 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
459 changes.
460 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
461 (1020alu_shift_op): Likewise.
462 (1020alu_shift_reg_op): Likewise.
463 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
464 (alu_shift_op): Likewise.
465 (alu_shift_reg_op): Likewise.
466 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
467 (11_alu_shift_op): Likewise.
468 (11_alu_shift_reg_op): Likewise.
469 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
470 (9_alu_shift_reg_op): Likewise.
471 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
472 changes.
473 (cortex_a15_alu_shift): Likewise.
474 (cortex_a15_alu_shift_reg): Likewise.
475 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
476 changes.
477 (cortex_a5_alu_shift): Likewise.
478 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
479 changes.
480 (cortex_a53_alu_shift): Likewise.
481 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
482 changes.
483 (cortex_a7_alu_reg): Likewise.
484 (cortex_a7_alu_shift): Likewise.
485 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
486 changes.
487 (cortex_a8_alu_shift): Likewise.
488 (cortex_a8_alu_shift_reg): Likewise.
489 (cortex_a8_mov): Likewise.
490 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
491 (cortex_a9_dp_shift): Likewise.
492 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
493 changes.
494 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
495 changes.
496 (cortex_r4_mov): Likewise.
497 (cortex_r4_alu_shift): Likewise.
498 (cortex_r4_alu_shift_reg): Likewise.
499 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
500 (526_alu_shift_op): Likewise.
501 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
502 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
503 (626te_alu_shift_op): Likewise.
504 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
505 (726te_alu_op): Likewise.
506 (726te_alu_shift_op): Likewise.
507 (726te_alu_shift_reg_op): Likewise.
508 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
509 (mp626_alu_shift_op): Likewise.
510 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
511 (pj4_alu_e1_conds): Likewise.
512 (pj4_alu): Likewise.
513 (pj4_alu_conds): Likewise.
514 (pj4_shift): Likewise.
515 (pj4_shift_conds): Likewise.
516 (pj4_alu_shift): Likewise.
517 (pj4_alu_shift_conds): Likewise.
518 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
519 changes.
520 (cortexa7_older_only): Likewise.
521 (cortexa7_younger): Likewise.
522
523 2013-07-18 David Malcolm <dmalcolm@redhat.com>
524
525 * ipa-pure-const.c (generate_summary): Rename to...
526 (pure_const_generate_summary): ... this.
527
528 2013-07-17 Iain Sandoe <iain@codesourcery.com>
529
530 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
531
532 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
533
534 PR target/57909
535 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
536 usage in HI mode.
537
538 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
539
540 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
541 enabled without -march=zEC12.
542 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
543 flags to be set.
544
545 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
546
547 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
548 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
549 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
550 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
551 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
552 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
553 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
554 ISA_HAS_FP4.
555 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
556 and ISA_HAS_NMADD3_NMSUB3.
557 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
558 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
559 (nmsub4<mode>, nmsub3<mode>): Likewise.
560 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
561
562 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
563
564 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
565 TARGET_MIPS5400 checking.
566
567 2013-07-16 Jakub Jelinek <jakub@redhat.com>
568 Peter Bergner <bergner@vnet.ibm.com>
569
570 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
571 registers in the comment.
572 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
573 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
574 rather than FIRST_PSEUDO_REGISTERS.
575
576 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
577
578 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
579 enable extra ISA flags with TARGET_HTM.
580
581 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
582
583 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
584 Fix comment typos.
585
586 2013-07-15 Cong Hou <congh@google.com>
587
588 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
589 in compare function for sorting.
590
591 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
592
593 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
594 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
595 * config/rs6000/rs6000.opt: Add -mhtm option.
596 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
597 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
598 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
599 __HTM__ if the HTM instructions are available.
600 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
601 htm_spr_reg_operand): New define_predicates.
602 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
603 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
604 Include htm.md.
605 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
606 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
607 HTM builtin functions.
608 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
609 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
610 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
611 (rs6000_builtin_mask_calculate): Likewise.
612 (rs6000_option_override_internal): Likewise.
613 (bdesc_htm): Add new HTM builtin support.
614 (htm_spr_num): New function.
615 (htm_spr_regno): Likewise.
616 (rs6000_htm_spr_icode): Likewise.
617 (htm_expand_builtin): Likewise.
618 (htm_init_builtins): Likewise.
619 (rs6000_expand_builtin): Add support for HTM builtin functions.
620 (rs6000_init_builtins): Likewise.
621 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
622 option.
623 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
624 (TARGET_HTM, MASK_HTM): Define macros.
625 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
626 (FIXED_REGISTERS): Likewise.
627 (CALL_USED_REGISTERS): Likewise.
628 (CALL_REALLY_USED_REGISTERS): Likewise.
629 (REG_ALLOC_ORDER): Likewise.
630 (enum reg_class): Likewise.
631 (REG_CLASS_NAMES): Likewise.
632 (REG_CLASS_CONTENTS): Likewise.
633 (REGISTER_NAMES): Likewise.
634 (ADDITIONAL_REGISTER_NAMES): Likewise.
635 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
636 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
637 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
638 * config/rs6000/htm.md: New file.
639 * config/rs6000/htmintrin.h: New file.
640 * config/rs6000/htmxlintrin.h: New file.
641
642 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
643
644 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
645 Define SYMBOL_TINY_GOT, update comment.
646 * config/aarch64/aarch64.c
647 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
648 (aarch64_expand_mov_immediate): Likewise.
649 (aarch64_print_operand): Likewise.
650 (aarch64_classify_symbol): Likewise.
651 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
652 (ldr_got_tiny): Define.
653
654 2013-07-13 Tobias Grosser <tobias@grosser.es>
655
656 PR tree-optimization/54094
657 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
658 scheduling dimension for the parallelism check from the polyhedral
659 information in the AST.
660 * graphite-dependences.c (carries_deps): Do not assume the schedule is
661 in 2D + 1 form.
662
663 2013-07-13 Jason Merrill <jason@redhat.com>
664
665 * print-tree.c (debug_vec_tree): Use debug_raw.
666 (debug_raw (vec<tree, va_gc> &)): New.
667 (debug_raw (vec<tree, va_gc> *)): New.
668 * tree.h: Declare them.
669
670 2013-07-13 Bin Cheng <bin.cheng@arm.com>
671
672 * ifcvt.c (ifcvt_after_combine): New static variable.
673 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
674 for size.
675 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
676 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
677 rest_of_handle_if_after_reload): Pass new argument for if_convert.
678
679 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
680
681 * config/mips/mips.c (mips_expand_call): Remove empty statement.
682
683 2013-07-12 Michael Matz <matz@suse.de>
684
685 PR middle-end/55771
686 * convert.c (convert_to_real): Reject non-float inner types.
687
688 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
689
690 * config/aarch64/aarch64-protos.h
691 (aarch64_simd_immediate_valid_for_move): Remove.
692 * config/aarch64/aarch64.c (simd_immediate_info): New member.
693 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
694 cases.
695 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
696
697 2013-07-11 Steve Ellcey <sellcey@mips.com>
698
699 * config/mips/mips.c (mips_conditional_register_usage): Do not
700 use t[0-7] registers in MIPS16 mode when optimizing for size.
701
702 2013-07-11 Sriraman Tallam <tmsriram@google.com>
703
704 * config/i386/i386.c (dispatch_function_versions): Fix array
705 indexing of function_version_info to match actual_versions.
706
707 2013-07-11 Teresa Johnson <tejohnson@google.com>
708
709 * vec.h (struct va_gc): Move release out-of-line.
710 (va_gc::release): Call ggc_free on released vec.
711
712 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
713
714 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
715 Require GOT register as additional operand in UNSPEC.
716 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
717 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
718 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
719 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
720 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
721 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
722 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
723
724 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
725
726 PR target/57631
727 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
728 name seen by assembler/linker rather if available.
729
730 2013-07-11 Andreas Schwab <schwab@suse.de>
731
732 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
733
734 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
735
736 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
737
738 2013-07-10 Joseph Myers <joseph@codesourcery.com>
739
740 * doc/tm.texi.in: Move hook documentation to ....
741 * target.def: ... here.
742
743 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
744 text on @hook line.
745 * doc/tm.texi: Regenerate.
746
747 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
748
749 PR c++/57869
750 * doc/invoke.texi: Document -Wconditionally-supported.
751
752 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
753
754 PR target/57844
755 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
756 of my_fp.
757
758 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
759
760 PR target/57506
761 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
762 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
763 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
764 Remove duplicate devices.
765 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
766 * config/avr/t-multilib: Regenerate.
767 * config/avr/avr-tables.opt: Regenerate.
768 * doc/avr-mmcu.texi: Regenerate.
769
770 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
771
772 PR target/56987
773 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
774
775 2013-07-10 Graham Stott <graham.stott@btinternet.com>
776
777 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
778 the cost of MULT when optimizing for size.
779
780 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
781
782 * config/cr16/cr16-protos.h: Don't include target.h.
783
784 2013-07-09 Joseph Myers <joseph@codesourcery.com>
785
786 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
787 adjust register size for TDmode and TFmode for VSX registers.
788
789 2013-07-08 Kai Tietz <ktietz@redhat.com>
790
791 PR target/56892
792 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
793 hook_bool_const_tree_true.
794
795 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
796
797 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
798 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
799 * config/s390/s390.md: Define FPR*_REGNUM constants.
800 Fix FPR2_REGNUM constant (18 -> 17).
801 ("*trunc<BFP:mode><DFP_ALL:mode>2")
802 ("*trunc<DFP_ALL:mode><BFP:mode>2")
803 ("trunc<BFP:mode><DFP_ALL:mode>2")
804 ("trunc<DFP_ALL:mode><BFP:mode>2")
805 ("*extend<BFP:mode><DFP_ALL:mode>2")
806 ("*extend<DFP_ALL:mode><BFP:mode>2")
807 ("extend<BFP:mode><DFP_ALL:mode>2")
808 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
809 FPR4_REGNUM.
810
811 2013-07-08 Graham Stott <graham.stott@btinternet.com>
812
813 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
814
815 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
816
817 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
818 and cfun_fpr_bit_p to cfun_fpr_save_p.
819 (s390_frame_area, s390_register_info, s390_frame_info)
820 (s390_emit_prologue, s390_emit_epilogue)
821 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
822 register numbers.
823 * config/s390/s390.h: Define *_REGNUM macros for floating point
824 register numbers.
825
826 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
827
828 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
829
830 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
831
832 PR rtl-optimization/57786
833 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
834 and break out of the loop when it is set to false.
835
836 2013-07-08 Jakub Jelinek <jakub@redhat.com>
837
838 PR target/57819
839 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
840 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
841 (const_int 63)) 0)).
842 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
843 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
844 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
845
846 PR rtl-optimization/57829
847 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
848 mask bits outside of mode are just sign-extension from mode to HWI.
849
850 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
851
852 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
853 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
854 adjust_address instead of change_address to keep info about alignment.
855 (emit_strmov): Remove.
856 (emit_memmov): New function.
857 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
858 (expand_movmem_epilogue): Likewise and return updated rtx for
859 destination.
860 (expand_constant_movmem_prologue): Likewise and return updated rtx for
861 destination and source.
862 (decide_alignment): Refactor, handle vector_loop.
863 (ix86_expand_movmem): Likewise.
864 (ix86_expand_setmem): Likewise.
865 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
866
867 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
868
869 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
870 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
871
872 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
873
874 * config/i386/sse.md (sse_movlhps): Change alternative 3
875 of operand 2 to "m".
876
877 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
878
879 PR target/57807
880 * config/i386/sse.md (iptr): New mode attribute.
881 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
882 (<sse>_vm<plusminus_insn><mode>3): Ditto.
883 (<sse>_vmmul<mode>3): Ditto.
884 (<sse>_vmdiv<mode>3): Ditto.
885 (sse_vmrcpv4sf2): Ditto.
886 (<sse>_vmsqrt<mode>2): Ditto.
887 (sse_vmrsqrtv4sf2): Ditto.
888 (<sse>_vm<code><mode>3): Ditto.
889 (avx_vmcmp<mode>3): Ditto.
890 (<sse>_vmmaskcmp<mode>3): Ditto.
891 (<sse>_comi): Ditto.
892 (<sse>_ucomi): Ditto.
893 (*xop_vmfrcz_<mode>): Ditto.
894 (*fmai_fmadd_<mode>): Ditto.
895 (*fmai_fmsub_<mode>): Ditto.
896 (*fmai_fnmadd_<mode>): Ditto.
897 (*fmai_fnmsub_<mode>): Ditto.
898 (*fma4i_vmfmadd_<mode>): Ditto.
899 (*fma4i_vmfmsub_<mode>): Ditto.
900 (*fma4i_vmfnmadd_<mode>): Ditto.
901 (*fma4i_vmfnmsub_<mode>): Ditto.
902 (*xop_vmfrcz_<mode>): Ditto.
903 (sse_cvtps2pi): Ditto.
904 (sse_cvttps2pi): Ditto.
905 (sse_cvtss2si): Ditto.
906 (sse_cvtss2si_2): Ditto.
907 (sse_cvtss2siq_2): Ditto.
908 (sse_cvttss2si): Ditto.
909 (sse_cvttss2siq): Ditto.
910 (sse_cvtsd2si): Ditto.
911 (sse_cvtsd2si_2): Ditto.
912 (sse_cvtsd2siq_2): Ditto.
913 (sse_cvttsd2si): Ditto.
914 (sse_cvttsd2siq): Ditto.
915 (sse_cvtsd2ss): Ditto.
916 (sse_cvtss2sd): Ditto.
917 (avx2_pbroadcast<mode>): Ditto.
918 (avx2_pbroadcast<mode>_1): Ditto.
919 (*avx_vperm_broadcast_v4sf): Ditto.
920
921 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
922 (sse_movlhps): Ditto.
923 (sse_storehps): Ditto.
924 (sse_loadhps): Ditto.
925 (sse_storelps): Ditto.
926 (sse_loadlps): Ditto.
927 (*vec_concatv4sf): Ditto.
928 (*vec_interleave_highv2df): Ditto.
929 (*vec_interleave_lowv2df): Ditto.
930 (*vec_extractv2df_1_sse): Ditto.
931 (*vec_extractv2df_0_sse): Ditto.
932 (sse2_storelpd): Ditto.
933 (sse2_loadlpd): Ditto.
934 (sse2_movsd): Ditto.
935 (*vec_concatv4si): Ditto.
936 (vec_concatv2di): Ditto.
937
938 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
939 for Intel asm dialect.
940 (mmx_punpcklwd): Ditto.
941 (mmx_punpckldq): Ditto.
942
943 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
944 for intel assembler dialect.
945
946 2013-07-06 Jakub Jelinek <jakub@redhat.com>
947
948 PR target/29776
949 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
950 for BUILT_IN_C{LZ,LRSB}*.
951 * tree.h (CASE_INT_FN): Add FN##IMAX case.
952 * tree-vrp.c (extract_range_basic): Handle
953 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
954 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
955 fall thru to code calling set_value*.
956 * builtins.c (expand_builtin): Remove *IMAX cases.
957 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
958 if width is bigger than 2*HWI.
959
960 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
961
962 PR rtl-optimization/55342
963 * lra-int.h (lra_subreg_reload_pseudos): New.
964 * lra.c: Add undoing optional reloads to the block diagram.
965 (lra_subreg_reload_pseudos): New.
966 (lra_optional_reload_pseudos): Change comments.
967 (lra): Init and clear lra_subreg_reload_pseudos. Clear
968 lra_optional_reload_pseudos after undo transformations.
969 * lra-assigns.c (pseudo_prefix_title): New.
970 (lra_setup_reg_renumber): Use it.
971 (spill_for): Ditto. Check subreg reload pseudos too.
972 (assign_by_spills): Consider subreg reload pseudos too.
973 * lra-constraints.c (simplify_operand_subreg): Use
974 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
975 (curr_insn_transform): Recognize and do optional reloads.
976 (undo_optional_reloads): New.
977 (lra_undo_inheritance): Call undo_optional_reloads.
978
979 2013-07-05 Thomas Quinot <quinot@adacore.com>
980
981 * tree-complex.c (expand_complex_operations_1): Fix typo.
982
983 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
984
985 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
986 (tune_params): New member 'const vec_costs'.
987 * config/aarch64/aarch64.c (generic_vector_cost): New.
988 (generic_tunings): New member 'generic_vector_cost'.
989 (aarch64_builtin_vectorization_cost): New.
990 (aarch64_add_stmt_cost): New.
991 (TARGET_VECTORIZE_ADD_STMT_COST): New.
992 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
993
994 2013-07-03 Jakub Jelinek <jakub@redhat.com>
995
996 PR target/57777
997 * config/i386/predicates.md (vsib_address_operand): Disallow
998 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
999
1000 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
1001
1002 PR middle-end/55030
1003 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
1004 expand_builtin_setjmp_receiver.
1005 (expand_label): Adjust, call expand_builtin_setjmp_receiver
1006 with NULL for the label parameter.
1007 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
1008 the frame-pointer. Adjust comments.
1009 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
1010 only if LABEL is non-NULL.
1011
1012 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
1013
1014 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
1015 (ARM_ABI_AAPCS64): Ditto.
1016 (arm_abi): Ditto.
1017 (ARM_DEFAULT_ABI): Ditto.
1018
1019 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
1020
1021 * config/aarch64/aarch64-builtins.c
1022 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
1023 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
1024 (st1): Likewise.
1025 * config/aarch64/aarch64-simd.md
1026 (aarch64_ld1<VALL:mode>): New.
1027 (aarch64_st1<VALL:mode>): Likewise.
1028 * config/aarch64/arm_neon.h
1029 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
1030
1031 2013-07-02 Sriraman Tallam <tmsriram@google.com>
1032
1033 * config/i386/i386.c (gate_insert_vzeroupper): Check if
1034 target ISA is AVX.
1035 (ix86_option_override_internal):Turn on all -mavx target flags by
1036 default as they are dependent on AVX anyway.
1037
1038 2013-07-02 Cary Coutant <ccoutant@google.com>
1039
1040 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
1041 deterministic hash.
1042 (loc_checksum_ordered): Likewise.
1043 (hash_loc_operands): Remove inline keyword.
1044
1045 2013-07-02 Jakub Jelinek <jakub@redhat.com>
1046
1047 PR tree-optimization/57741
1048 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
1049 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
1050 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
1051 Allow REAL_CST step_exprs if flag_associative_math.
1052 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
1053
1054 2013-07-02 Ian Bolton <ian.bolton@arm.com>
1055
1056 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
1057
1058 2013-07-02 Ian Bolton <ian.bolton@arm.com>
1059
1060 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
1061
1062 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1063
1064 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
1065 encoding.
1066 (iorsi3_insn): Likewise.
1067 (arm_xorsi3): Likewise.
1068
1069 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
1070
1071 * arm.md (attribute "wtype"): Delete. Move attribute values from here
1072 to ...
1073 (attribute "type"): ... here, and prefix with "wmmx_".
1074 (attribute "core_cycles"): Update for attribute changes.
1075 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
1076 (tbcstv4hi): Likewise.
1077 (tbcstv2si): Likewise.
1078 (iwmmxt_iordi3): Likewise.
1079 (iwmmxt_xordi3): Likewise.
1080 (iwmmxt_anddi3): Likewise.
1081 (iwmmxt_nanddi3): Likewise.
1082 (iwmmxt_arm_movdi): Likewise.
1083 (iwmmxt_movsi_insn): Likewise.
1084 (mov<mode>_internal): Likewise.
1085 (and<mode>3_iwmmxt): Likewise.
1086 (ior<mode>3_iwmmxt): Likewise.
1087 (xor<mode>3_iwmmxt): Likewise.
1088 (add<mode>3_iwmmxt): Likewise.
1089 (ssaddv8qi3): Likewise.
1090 (ssaddv4hi3): Likewise.
1091 (ssaddv2si3): Likewise.
1092 (usaddv8qi3): Likewise.
1093 (usaddv4hi3): Likewise.
1094 (usaddv2si3): Likewise.
1095 (sub<mode>3_iwmmxt): Likewise.
1096 (sssubv8qi3): Likewise.
1097 (sssubv4hi3): Likewise.
1098 (sssubv2si3): Likewise.
1099 (ussubv8qi3): Likewise.
1100 (ussubv4hi3): Likewise.
1101 (ussubv2si3): Likewise.
1102 (mulv4hi3_iwmmxt): Likewise.
1103 (smulv4hi3_highpart): Likewise.
1104 (umulv4hi3_highpart): Likewise.
1105 (iwmmxt_wmacs): Likewise.
1106 (iwmmxt_wmacsz): Likewise.
1107 (iwmmxt_wmacu): Likewise.
1108 (iwmmxt_wmacuz): Likewise.
1109 (iwmmxt_clrdi): Likewise.
1110 (iwmmxt_clrv8qi): Likewise.
1111 (iwmmxt_clr4hi): Likewise.
1112 (iwmmxt_clr2si): Likewise.
1113 (iwmmxt_uavgrndv8qi3): Likewise.
1114 (iwmmxt_uavgrndv4hi3): Likewise.
1115 (iwmmxt_uavgv8qi3): Likewise.
1116 (iwmmxt_uavgv4hi3): Likewise.
1117 (iwmmxt_tinsrb): Likewise.
1118 (iwmmxt_tinsrh): Likewise.
1119 (iwmmxt_tinsrw): Likewise.
1120 (iwmmxt_textrmub): Likewise.
1121 (iwmmxt_textrmsb): Likewise.
1122 (iwmmxt_textrmuh): Likewise.
1123 (iwmmxt_textrmsh): Likewise.
1124 (iwmmxt_textrmw): Likewise.
1125 (iwmxxt_wshufh): Likewise.
1126 (eqv8qi3): Likewise.
1127 (eqv4hi3): Likewise.
1128 (eqv2si3): Likewise.
1129 (gtuv8qi3): Likewise.
1130 (gtuv4hi3): Likewise.
1131 (gtuv2si3): Likewise.
1132 (gtv8qi3): Likewise.
1133 (gtv4hi3): Likewise.
1134 (gtv2si3): Likewise.
1135 (smax<mode>3_iwmmxt): Likewise.
1136 (umax<mode>3_iwmmxt): Likewise.
1137 (smin<mode>3_iwmmxt): Likewise.
1138 (umin<mode>3_iwmmxt): Likewise.
1139 (iwmmxt_wpackhss): Likewise.
1140 (iwmmxt_wpackwss): Likewise.
1141 (iwmmxt_wpackdss): Likewise.
1142 (iwmmxt_wpackhus): Likewise.
1143 (iwmmxt_wpackwus): Likewise.
1144 (iwmmxt_wpackdus): Likewise.
1145 (iwmmxt_wunpckihb): Likewise.
1146 (iwmmxt_wunpckihh): Likewise.
1147 (iwmmxt_wunpckihw): Likewise.
1148 (iwmmxt_wunpckilb): Likewise.
1149 (iwmmxt_wunpckilh): Likewise.
1150 (iwmmxt_wunpckilw): Likewise.
1151 (iwmmxt_wunpckehub): Likewise.
1152 (iwmmxt_wunpckehuh): Likewise.
1153 (iwmmxt_wunpckehuw): Likewise.
1154 (iwmmxt_wunpckehsb): Likewise.
1155 (iwmmxt_wunpckehsh): Likewise.
1156 (iwmmxt_wunpckehsw): Likewise.
1157 (iwmmxt_wunpckelub): Likewise.
1158 (iwmmxt_wunpckeluh): Likewise.
1159 (iwmmxt_wunpckeluw): Likewise.
1160 (iwmmxt_wunpckelsb): Likewise.
1161 (iwmmxt_wunpckelsh): Likewise.
1162 (iwmmxt_wunpckelsw): Likewise.
1163 (ror<mode>3): Likewise.
1164 (ashr<mode>3_iwmmxt): Likewise.
1165 (lshr<mode>3_iwmmxt): Likewise.
1166 (ashl<mode>3_iwmmxt): Likewise.
1167 (ror<mode>3_di): Likewise.
1168 (ashr<mode>3_di): Likewise.
1169 (lshr<mode>3_di): Likewise.
1170 (ashl<mode>3_di): Likewise.
1171 (iwmmxt_wmadds): Likewise.
1172 (iwmmxt_wmaddu): Likewise.
1173 (iwmmxt_tmia): Likewise.
1174 (iwmmxt_tmiaph): Likewise.
1175 (iwmmxt_tmiabb): Likewise.
1176 (iwmmxt_tmiatb): Likewise.
1177 (iwmmxt_tmiabt): Likewise.
1178 (iwmmxt_tmiatt): Likewise.
1179 (iwmmxt_tmovmskb): Likewise.
1180 (iwmmxt_tmovmskh): Likewise.
1181 (iwmmxt_tmovmskw): Likewise.
1182 (iwmmxt_waccb): Likewise.
1183 (iwmmxt_wacch): Likewise.
1184 (iwmmxt_waccw): Likewise.
1185 (iwmmxt_waligni): Likewise.
1186 (iwmmxt_walignr): Likewise.
1187 (iwmmxt_walignr0): Likewise.
1188 (iwmmxt_walignr1): Likewise.
1189 (iwmmxt_walignr2): Likewise.
1190 (iwmmxt_walignr3): Likewise.
1191 (iwmmxt_wsadb): Likewise.
1192 (iwmmxt_wsadh): Likewise.
1193 (iwmmxt_wsadbz): Likewise.
1194 (iwmmxt_wsadhz): Likewise.
1195 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
1196 (iwmmxt_wabsdiffb): Likewise.
1197 (iwmmxt_wabsdiffh): Likewise.
1198 (iwmmxt_wabsdiffw): Likewise.
1199 (iwmmxt_waddsubhx): Likewise
1200 (iwmmxt_wsubaddhx): Likewise.
1201 (addc<mode>3): Likewise.
1202 (iwmmxt_avg4): Likewise.
1203 (iwmmxt_avg4r): Likewise.
1204 (iwmmxt_wmaddsx): Likewise.
1205 (iwmmxt_wmaddux): Likewise.
1206 (iwmmxt_wmaddsn): Likewise.
1207 (iwmmxt_wmaddun): Likewise.
1208 (iwmmxt_wmulwsm): Likewise.
1209 (iwmmxt_wmulwum): Likewise.
1210 (iwmmxt_wmulsmr): Likewise.
1211 (iwmmxt_wmulumr): Likewise.
1212 (iwmmxt_wmulwsmr): Likewise.
1213 (iwmmxt_wmulwumr): Likewise.
1214 (iwmmxt_wmulwl): Likewise.
1215 (iwmmxt_wqmulm): Likewise.
1216 (iwmmxt_wqmulwm): Likewise.
1217 (iwmmxt_wqmulmr): Likewise.
1218 (iwmmxt_wqmulwmr): Likewise.
1219 (iwmmxt_waddbhusm): Likewise.
1220 (iwmmxt_waddbhusl): Likewise.
1221 (iwmmxt_wqmiabb): Likewise.
1222 (iwmmxt_wqmiabt): Likewise.
1223 (iwmmxt_wqmiatb): Likewise.
1224 (iwmmxt_wqmiatt): Likewise.
1225 (iwmmxt_wqmiabbn): Likewise.
1226 (iwmmxt_wqmiabtn): Likewise.
1227 (iwmmxt_wqmiatbn): Likewise.
1228 (iwmmxt_wqmiattn): Likewise.
1229 (iwmmxt_wmiabb): Likewise.
1230 (iwmmxt_wmiabt): Likewise.
1231 (iwmmxt_wmiatb): Likewise.
1232 (iwmmxt_wmiatt): Likewise.
1233 (iwmmxt_wmiabbn): Likewise.
1234 (iwmmxt_wmiabtn): Likewise.
1235 (iwmmxt_wmiatbn): Likewise.
1236 (iwmmxt_wmiattn): Likewise.
1237 (iwmmxt_wmiawbb): Likewise.
1238 (iwmmxt_wmiawbt): Likewise.
1239 (iwmmxt_wmiawtb): Likewise.
1240 (iwmmxt_wmiawtt): Likewise.
1241 (iwmmxt_wmiawbbn): Likewise.
1242 (iwmmxt_wmiawbtn): Likewise.
1243 (iwmmxt_wmiawtbn): Likewise.
1244 (iwmmxt_wmiawttn): Likewise.
1245 (iwmmxt_wmerge): Likewise.
1246 (iwmmxt_tandc<mode>3): Likewise.
1247 (iwmmxt_torc<mode>3): Likewise.
1248 (iwmmxt_torvsc<mode>3): Likewise.
1249 (iwmmxt_textrc<mode>3): Likewise.
1250 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
1251 (wmmxt_pack): Likewise.
1252 (wmmxt_mult_c1): Likewise.
1253 (wmmxt_mult_c2): Likewise.
1254 (wmmxt_alu_c1): Likewise.
1255 (wmmxt_alu_c2): Likewise.
1256 (wmmxt_alu_c3): Likewise.
1257 (wmmxt_transfer_c1): Likewise.
1258 (wmmxt_transfer_c2): Likewise.
1259 (wmmxt_transfer_c3): Likewise.
1260 (marvell_f_iwmmxt_wstr): Likewise.
1261 (marvell_f_iwmmxt_wldr): Likewise.
1262
1263 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
1264
1265 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
1266
1267 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
1268
1269 Revert:
1270 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
1271 * lra-constraints.c (need_for_split_p): Check call used hard regs
1272 living through calls.
1273
1274 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
1275 call used regs for call insn.
1276
1277 2013-06-28 Jakub Jelinek <jakub@redhat.com>
1278
1279 PR target/57736
1280 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
1281 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
1282
1283 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1284
1285 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
1286
1287 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
1288
1289 * lra-constraints.c (need_for_split_p): Check call used hard regs
1290 living through calls.
1291
1292 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
1293
1294 PR target/57744
1295 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
1296 to tie with any other modes. Eliminate Altivec vector mode tests,
1297 since these are a subset of ALTIVEC or VSX vector modes. Simplify
1298 code, to return 0 if testing MODE2 for a condition, if we've
1299 already tested MODE1 for the same condition.
1300
1301 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1302
1303 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
1304 layout.
1305
1306 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1307
1308 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
1309 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
1310
1311 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1312
1313 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
1314 Define.
1315 (aarch64_symbolic_constant_p): Remove.
1316 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
1317 static. Fix line length and white space.
1318 (aarch64_symbolic_constant_p): Remove.
1319 * config/aarch64/predicates.md (aarch64_valid_symref):
1320 Use aarch64_classify_symbol_expression.
1321
1322 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1323
1324 * config/arm/constraints.md (Ts): New constraint.
1325 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
1326 16-bit encodings.
1327 (compare_scc): Use "Ts" constraint for operand 0.
1328 (ior_scc_scc): Likewise.
1329 (and_scc_scc): Likewise.
1330 (and_scc_scc_nodom): Likewise.
1331 (ior_scc_scc_cmp): Likewise for operand 7.
1332 (and_scc_scc_cmp): Likewise.
1333 * config/arm/thumb2.md (thumb2_movsi_insn):
1334 Add alternatives for 16-bit encodings.
1335 (thumb2_movhi_insn): Likewise.
1336 (thumb2_movsicc_insn): Likewise.
1337 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
1338 (thumb2_negscc): Use "Ts" constraint.
1339 Move mvn instruction outside cond_exec block.
1340 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
1341 for 16-bit encodings.
1342
1343 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1344
1345 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
1346 encoding.
1347 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
1348 (mulsi3subsi): Likewise.
1349 (mulsidi3adddi): Likewise.
1350 (mulsidi3_v6): Likewise.
1351 (umulsidi3_v6): Likewise.
1352 (umulsidi3adddi_v6): Likewise.
1353 (smulsi3_highpart_v6): Likewise.
1354 (umulsi3_highpart_v6): Likewise.
1355 (mulhisi3tb): Likewise.
1356 (mulhisi3bt): Likewise.
1357 (mulhisi3tt): Likewise.
1358 (maddhisi4): Likewise.
1359 (maddhisi4tb): Likewise.
1360 (maddhisi4tt): Likewise.
1361 (maddhidi4): Likewise.
1362 (maddhidi4tb): Likewise.
1363 (maddhidi4tt): Likewise.
1364 (zeroextractsi_compare0_scratch): Likewise.
1365 (insv_zero): Likewise.
1366 (insv_t2): Likewise.
1367 (anddi_notzesidi_di): Likewise.
1368 (anddi_notsesidi_di): Likewise.
1369 (andsi_notsi_si): Likewise.
1370 (iordi_zesidi_di): Likewise.
1371 (xordi_zesidi_di): Likewise.
1372 (andsi_iorsi3_notsi): Likewise.
1373 (smax_0): Likewise.
1374 (smax_m1): Likewise.
1375 (smin_0): Likewise.
1376 (not_shiftsi): Likewise.
1377 (unaligned_loadsi): Likewise.
1378 (unaligned_loadhis): Likewise.
1379 (unaligned_loadhiu): Likewise.
1380 (unaligned_storesi): Likewise.
1381 (unaligned_storehi): Likewise.
1382 (extv_reg): Likewise.
1383 (extzv_t2): Likewise.
1384 (divsi3): Likewise.
1385 (udivsi3): Likewise.
1386 (arm_zero_extendhisi2addsi): Likewise.
1387 (arm_zero_extendqisi2addsi): Likewise.
1388 (compareqi_eq0): Likewise.
1389 (arm_extendhisi2_v6): Likewise.
1390 (arm_extendqisi2addsi): Likewise.
1391 (arm_movt): Likewise.
1392 (thumb2_ldrd): Likewise.
1393 (thumb2_ldrd_base): Likewise.
1394 (thumb2_ldrd_base_neg): Likewise.
1395 (thumb2_strd): Likewise.
1396 (thumb2_strd_base): Likewise.
1397 (thumb2_strd_base_neg): Likewise.
1398 (arm_negsi2): Add alternative for 16-bit encoding.
1399 (arm_one_cmplsi2): Likewise.
1400
1401 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1402
1403 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
1404 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
1405 (movdfcc): Likewise.
1406 * config/arm/vfp.md (*thumb2_movsf_vfp):
1407 Disable predication for arm_restrict_it.
1408 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
1409 (*thumb2_movdfcc_vfp): Likewise.
1410 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
1411 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
1412 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
1413 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
1414 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
1415 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
1416 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
1417 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
1418 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
1419 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
1420 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
1421 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
1422 Disable predication for arm_restrict_it.
1423
1424 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
1425
1426 * config/i386/bmiintrin.h (_bextr_u32): New.
1427 (_bextr_u64): Ditto.
1428
1429 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
1430
1431 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
1432 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
1433 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
1434 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
1435 * config/mips/n32-elf.h: ...this new file.
1436
1437 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
1438
1439 PR target/57224
1440 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
1441 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
1442
1443 2013-06-27 Catherine Moore <clm@codesourcery.com>
1444
1445 * config/mips/mips-tables.opt: Regenerate.
1446 * config/mips/mips-cpus.def: Add m14ke and m14kec.
1447 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
1448 * doc/invoke.texi: Add -m14kc.
1449
1450 2013-06-27 Jakub Jelinek <jakub@redhat.com>
1451
1452 PR target/57623
1453 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
1454 constraints of operand 1 and 2.
1455
1456 PR target/57623
1457 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
1458 to match RTL canonicalization. Swap predicates and
1459 constraints of operand 1 and 2.
1460
1461 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
1462
1463 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
1464 Process OP_INOUT regs for splitting too.
1465
1466 2013-06-27 Jakub Jelinek <jakub@redhat.com>
1467
1468 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
1469 decl before the loop, initialize to NULL.
1470 (vectorizable_load): Initialize ptr_incr to NULL.
1471
1472 2013-06-27 Martin Jambor <mjambor@suse.cz>
1473
1474 PR lto/57208
1475 * ipa-ref.h (ipa_maybe_record_reference): Declare.
1476 * ipa-ref.c (ipa_maybe_record_reference): New function.
1477 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
1478 * ipa-cp.c (create_specialized_node): Record potential references from
1479 aggvals.
1480 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
1481
1482 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
1483
1484 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
1485 parameter 'mode' of type 'enum machine_mode mode'; change to pass
1486 'mode' to force_reg.
1487 (aarch64_add_offset): Update calls to aarch64_force_temporary.
1488 (aarch64_expand_mov_immediate): Likewise.
1489
1490 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
1491
1492 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
1493 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
1494
1495 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1496
1497 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
1498 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
1499 (struct machine_function): Add tbegin_p.
1500 (s390_canonicalize_comparison): Fold CC mode compares to
1501 conditional jump if possible.
1502 (s390_emit_jump): Return the emitted jump.
1503 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
1504 Handle CCRAWmode compares.
1505 (s390_option_override): Default to -mhtm if available.
1506 (s390_reg_clobbered_rtx): Handle floating point regs as well.
1507 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
1508 FPRs instead of df_regs_ever_live_p.
1509 (s390_optimize_nonescaping_tx): New function.
1510 (s390_init_frame_layout): Extend clobbered_regs array to cover
1511 FPRs as well.
1512 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
1513 (s390_expand_tbegin): New function.
1514 (enum s390_builtin): New enum definition.
1515 (code_for_builtin): New array definition.
1516 (s390_init_builtins): New function.
1517 (s390_expand_builtin): New function.
1518 (TARGET_INIT_BUILTINS): Define.
1519 (TARGET_EXPAND_BUILTIN): Define.
1520 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
1521 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
1522 (s390_alc_comparison): Likewise.
1523 * config/s390/s390-modes.def: Add CCRAWmode.
1524 * config/s390/s390.h (processor_flags): Add PF_TX.
1525 (TARGET_CPU_HTM): Define macro.
1526 (TARGET_HTM): Define macro.
1527 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
1528 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
1529 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
1530 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
1531 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
1532 (TBEGIN_MASK, TBEGINC_MASK): New constants.
1533 ("*cc_to_int"): Move up.
1534 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
1535 constants other than 0.
1536 ("*ccraw_to_int"): New insn and splitter definition.
1537 ("tbegin", "tbegin_nofloat", "tbegin_retry")
1538 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
1539 ("tx_assist"): New expander.
1540 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
1541 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
1542 * config/s390/s390.opt: Add -mhtm option.
1543 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
1544 * config/s390/htmxlintrin.h: New file.
1545 * config/s390/htmintrin.h: New file.
1546 * config/s390/s390intrin.h: New file.
1547 * doc/extend.texi: Document htm builtins.
1548 * config.gcc: Add the new header files to extra_headers.
1549
1550 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
1551
1552 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
1553 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
1554
1555 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
1556 Pat Haugen <pthaugen@us.ibm.com>
1557 Peter Bergner <bergner@vnet.ibm.com>
1558
1559 * config/rs6000/power8.md: New.
1560 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
1561 setting for power8 entry.
1562 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
1563 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
1564 test for Power4/Power5 only.
1565 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
1566 support.
1567 (force_new_group): Adjust comment.
1568 * config/rs6000/rs6000.md: Include power8.md.
1569
1570 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
1571
1572 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
1573 * config/arm/arm-protos.h (arm_max_conditional_execute): New
1574 declaration.
1575 (tune_params): Update comment.
1576 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
1577 (arm_max_conditional_execute): New function.
1578 (thumb2_final_prescan_insn): Use max_insn_skipped and
1579 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
1580
1581 2013-06-25 Jakub Jelinek <jakub@redhat.com>
1582
1583 PR tree-optimization/57705
1584 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
1585 SSA_NAME step, provided that it is not defined inside the loop.
1586 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
1587 (get_initial_def_for_induction): Handle SSA_NAME IV step.
1588
1589 2013-06-25 Martin Jambor <mjambor@suse.cz>
1590
1591 PR middle-end/57670
1592 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
1593 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
1594 calls in the dump.
1595 (ipa_note_param_call): Initialize member_ptr flag.
1596 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
1597 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
1598 (ipa_write_indirect_edge_info): Stream member_ptr flag.
1599 (ipa_read_indirect_edge_info): Likewise.
1600
1601 2013-06-25 Richard Biener <rguenther@suse.de>
1602
1603 PR middle-end/56977
1604 * passes.c (init_optimization_passes): Move pass_fold_builtins
1605 and pass_dce earlier with -Og.
1606
1607 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
1608
1609 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
1610 <BIT_FIELD_REF>: Remove trailing TAB.
1611 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
1612 remove blank line.
1613
1614 2013-06-24 Martin Jambor <mjambor@suse.cz>
1615
1616 PR tree-optimization/57358
1617 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
1618 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
1619 (ipa_analyze_params_uses): Generate pessimistic info when true.
1620
1621 2013-06-24 Martin Jambor <mjambor@suse.cz>
1622
1623 PR tree-optimization/57539
1624 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
1625 global.inlined_to of the new node to it. All callers changed.
1626 * ipa-inline-transform.c (clone_inlined_nodes): New variable
1627 inlining_into, pass it to cgraph_clone_node.
1628 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
1629 ipa_free_edge_args_substructures.
1630 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
1631 rdesc linked list. Do not assert rdesc edges have inlined caller.
1632 Assert we have found an rdesc in the rdesc list.
1633
1634 2013-06-24 Richard Biener <rguenther@suse.de>
1635
1636 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
1637 (pointer_set_lookup): Declare.
1638 (class pointer_map): New template class implementing a
1639 generic pointer to T map.
1640 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
1641 pointer_map<T>::contains, pointer_map<T>::insert,
1642 pointer_map<T>::traverse): New functions.
1643 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
1644 (pointer_set_lookup): New function.
1645 (pointer_set_contains): Use pointer_set_lookup.
1646 (pointer_set_insert): Likewise.
1647 (insert_aux): Remove.
1648 (struct pointer_map_t): Embed a pointer_set_t.
1649 (pointer_map_create): Adjust.
1650 (pointer_map_destroy): Likewise.
1651 (pointer_map_contains): Likewise.
1652 (pointer_map_insert): Likewise.
1653 (pointer_map_traverse): Likewise.
1654 * tree-streamer.h (struct streamer_tree_cache_d): Use a
1655 pointer_map<unsigned> instead of a pointer_map_t.
1656 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
1657 (streamer_tree_cache_lookup): Likewise.
1658 (streamer_tree_cache_create): Likewise.
1659 (streamer_tree_cache_delete): Likewise.
1660 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
1661 pointer_map<unsigned> instead of a pointer_map_t.
1662 (lto_init_tree_ref_encoder): Adjust.
1663 (lto_destroy_tree_ref_encoder): Likewise.
1664 * lto-section-out.c (lto_output_decl_index): Likewise.
1665 (lto_record_function_out_decl_state): Likewise.
1666 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
1667
1668 2013-06-24 Richard Biener <rguenther@suse.de>
1669
1670 PR tree-optimization/57488
1671 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
1672
1673 2013-06-24 Alan Modra <amodra@gmail.com>
1674
1675 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
1676 (gen_easy_altivec_constant): Likewise.
1677 * config/rs6000/predicates.md (easy_vector_constant_add_self,
1678 easy_vector_constant_msb): Likewise.
1679
1680 2013-06-23 Jakub Jelinek <jakub@redhat.com>
1681
1682 PR target/57688
1683 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
1684 add missing return true.
1685
1686 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
1687
1688 PR target/52483
1689 * config/sh/predicates.md (general_extend_operand): Invoke
1690 general_movsrc_operand for memory operands.
1691 (general_movsrc_operand): Allow reg+reg addressing, do not use
1692 general_operand for memory operands.
1693
1694 2013-06-23 Sriraman Tallam <tmsriram@google.com>
1695
1696 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
1697 when current target options does not apply.
1698 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
1699 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
1700 * config/i386/bmiintrin.h: Pass appropriate target
1701 attributes to header.
1702 * config/i386/mmintrin.h: Ditto.
1703 * config/i386/nmmintrin.h: Ditto.
1704 * config/i386/avx2intrin.h: Ditto.
1705 * config/i386/fxsrintrin.h: Ditto.
1706 * config/i386/tbmintrin.h: Ditto.
1707 * config/i386/xsaveintrin.h: Ditto.
1708 * config/i386/f16cintrin.h: Ditto.
1709 * config/i386/xtestintrin.h: Ditto.
1710 * config/i386/xsaveoptintrin.h: Ditto.
1711 * config/i386/bmi2intrin.h: Ditto.
1712 * config/i386/lzcntintrin.h: Ditto.
1713 * config/i386/smmintrin.h: Ditto.
1714 * config/i386/wmmintrin.h: Ditto.
1715 * config/i386/x86intrin.h: Remove all header include guards.
1716 * config/i386/prfchwintrin.h: Ditto.
1717 * config/i386/pmmintrin.h: Ditto.
1718 * config/i386/tmmintrin.h: Ditto.
1719 * config/i386/xmmintrin.h: Ditto.
1720 * config/i386/popcntintrin.h: Ditto.
1721 * config/i386/rdseedintrin.h: Ditto.
1722 * config/i386/ammintrin.h: Ditto.
1723 * config/i386/emmintrin.h: Ditto.
1724 * config/i386/immintrin.h: Remove all header include guards.
1725 * config/i386/fma4intrin.h: Ditto.
1726 * config/i386/lwpintrin.h: Ditto.
1727 * config/i386/xopintrin.h: Ditto.
1728 * config/i386/ia32intrin.h: Ditto.
1729 * config/i386/avxintrin.h: Ditto.
1730 * config/i386/rtmintrin.h: Ditto.
1731 * config/i386/fmaintrin.h: Ditto.
1732 * config/i386/mm3dnow.h: Ditto.
1733
1734 2013-06-22 Sriraman Tallam <tmsriram@google.com>
1735
1736 * common/config/i386/i386-common.c: Handle LZCNT.
1737
1738 2013-06-22 Andi Kleen <ak@linux.intel.com>
1739
1740 * doc/extend.texi: Use __atomic_store_n instead of
1741 __atomic_store in HLE example.
1742
1743 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
1744
1745 * config/sh/sh.c: Remove <cstdlib> workaround.
1746
1747 2013-06-21 Andi Kleen <ak@linux.intel.com>
1748
1749 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
1750
1751 2013-06-21 Andi Kleen <ak@linux.intel.com>
1752
1753 * doc/extend.texi: Document that __atomic_clear and
1754 __atomic_test_and_set should only be used with bool.
1755
1756 2013-06-20 Jan Hubicka <jh@suse.cz>
1757
1758 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
1759 types_same_for_odr.
1760 * tree.c (decls_same_for_odr): New function.
1761 (same_for_edr): New function.
1762 (types_same_for_odr): New function.
1763 (get_binfo_at_offset): Use it.
1764 * tree.h (types_same_for_odr): Declare.
1765
1766 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
1767 Jason Merrill <jason@redhat.com>
1768
1769 * system.h: Include <cstdlib> as well as <stdlib.h>.
1770
1771 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
1772
1773 PR target/57655
1774 * config/i386/i386.c (construct_container): Report error if
1775 long double is used with disabled x87 float returns.
1776
1777 2013-06-20 Jan Hubicka <jh@suse.cz>
1778
1779 * lto-cgraph.c (input_symtab): Do not set cgraph state.
1780
1781 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
1782
1783 PR rtl-optimization/57425
1784 PR rtl-optimization/57569
1785 * alias.c (write_dependence_p): Remove parameters mem_mode and
1786 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
1787 Changed all callers.
1788 (canon_anti_dependence): Get comments and semantics in sync.
1789 Add parameter mem_canonicalized. Changed all callers.
1790 * rtl.h (canon_anti_dependence): Update prototype.
1791
1792 2013-06-20 Richard Biener <rguenther@suse.de>
1793
1794 * data-streamer-in.c (streamer_read_uhwi): Optimize single
1795 byte case, inline streamer_read_uchar and defer section
1796 overrun check.
1797
1798 2013-06-20 Richard Biener <rguenther@suse.de>
1799
1800 PR tree-optimization/57584
1801 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
1802 SSA names into the expanded expression that take part in
1803 abnormal coalescing.
1804
1805 2013-06-19 Sharad Singhai <singhai@google.com>
1806
1807 * gcov.c (print_usage): Handle new option.
1808 (process_args): Ditto.
1809 (get_gcov_intermediate_filename): New function.
1810 (output_intermediate_file): New function.
1811 (output_gcov_file): New function
1812 (generate_results): Handle new option.
1813 (release_function): Relase demangled name.
1814 (read_graph_file): Handle demangled name.
1815 (output_lines): Ditto.
1816 * doc/gcov.texi: Document gcov intermediate format.
1817
1818 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
1819
1820 PR bootstrap/57604
1821 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
1822 (lra_emit_add): Use the functions. Add comment about Y as an
1823 address segment.
1824
1825 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
1826
1827 PR driver/57652
1828 * collect2.c (collect_atexit): New.
1829 (collect_exit): Delete.
1830 (main): Register collect_atexit with atexit.
1831 (collect_wait): Change collect_exit to exit.
1832 (do_wait): Same.
1833 * collect2.h (collect_exit): Delete.
1834 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
1835
1836 2013-06-19 Wei Mi <wmi@google.com>
1837
1838 PR rtl-optimization/57518
1839 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
1840 if regno is used in paradoxical subreg.
1841 (update_equiv_regs): Check pdx_subregs[regno] before
1842 set a reg to be equivalent with a mem.
1843
1844 2013-06-19 Matthias Klose <doko@ubuntu.com>
1845
1846 PR driver/57651
1847 * file-find.h (find_a_file): Add a mode parameter.
1848 * file-find.c (find_a_file): Likewise.
1849 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
1850 with X_OK for the executables.
1851 * collect2.c (main): Call find_a_file with X_OK.
1852
1853 2013-06-19 Steve Ellcey <sellcey@mips.com>
1854
1855 PR target/56942
1856 * config/mips/mips.md (casesi_internal_mips16_<mode>):
1857 Use NEXT_INSN instead of next_real_insn.
1858
1859 2013-06-19 Jan Hubicka <jh@suse.cz>
1860
1861 * cgraph.h (const_value_known_p): Replace by ...
1862 (ctor_for_folding): .. this one.
1863 * cgraphunit.c (process_function_and_variable_attributes): Use it.
1864 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
1865 * expr.c (expand_expr_real_1): Likewise.
1866 (string_constant): Likewise.
1867 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
1868 * ipa.c (process_references): Likewise.
1869 (symtab_remove_unreachable_nodes): Likewise.
1870 * ipa-inline-analysis.c (param_change_prob): Likewise.
1871 * gimple-fold.c (canonicalize_constructor_val): Likewise.
1872 (get_base_constructor): Likwise.
1873 * varpool.c (varpool_remove_node): Likewise.
1874 (varpool_remove_initializer): LIkewise.
1875 (dump_varpool_node): LIkwise.
1876 (const_value_known_p): Rewrite to ...
1877 (ctor_for_folding): ... this one.
1878
1879 2013-06-19 Jakub Jelinek <jakub@redhat.com>
1880
1881 PR driver/57651
1882 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
1883 PERSONALITY in $PATH derived prefixes.
1884
1885 2013-06-19 Jeff Law <law@redhat.com>
1886
1887 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
1888 in comment.
1889
1890 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
1891 (simplify_bitwise_binary): Use it to simpify certain binary ops on
1892 booleans.
1893
1894 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
1895
1896 * config/arm/vfp.md: Move VFP instruction classification documentation
1897 to ...
1898 * config/arm/arm.md: ... here. Update instruction classification
1899 documentation.
1900
1901 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
1902
1903 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
1904 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
1905 pattern. Use more efficient sequences on ARMv5 and Thumb2.
1906
1907 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
1908
1909 PR target/57609
1910 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1911 with NEXT_INSN. Use tablejump_p to check for jump table data
1912 insns.
1913
1914 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
1915
1916 PR c++/56544
1917 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
1918 that now in C++ the value is correct per the C++ standards.
1919
1920 2013-06-19 Richard Biener <rguenther@suse.de>
1921
1922 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
1923 for global context.
1924
1925 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1926
1927 Revert:
1928 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1929
1930 PR target/57609
1931 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1932 with next_active_insn.
1933
1934 2013-06-18 Sriraman Tallam <tmsriram@google.com>
1935
1936 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
1937 functions are inlined during failures to flag an error.
1938 * tree-inline.c (expand_call_inline): Allow the error to be flagged
1939 in early inline pass.
1940
1941 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
1942
1943 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
1944 in comments.
1945
1946 2013-06-18 Julian Brown <julian@codesourcery.com>
1947
1948 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
1949 Permit virtual register pre-reload if !strict.
1950 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
1951 change.
1952 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
1953 prototype.
1954 * config/arm/neon.md (movmisalign<mode>): Use
1955 neon_perm_struct_or_reg_operand instead of
1956 neon_struct_or_register_operand.
1957 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
1958 neon_permissive_struct_operand instead of neon_struct_operand.
1959 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
1960 neon_vector_mem_operand.
1961 * config/arm/predicates.md (neon_struct_operand): Adjust call to
1962 neon_vector_mem_operand.
1963 (neon_permissive_struct_operand): New.
1964 (neon_struct_or_register_operand): Rename to...
1965 (neon_perm_struct_or_reg_operand): This. Adjust call to
1966 neon_vector_mem_operand.
1967
1968 2013-06-18 Richard Biener <rguenther@suse.de>
1969
1970 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
1971 * lto-streamer.h: Include pointer-set.h.
1972 (struct lto_decl_slot): Remove.
1973 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
1974 Remove next_index entry.
1975 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
1976 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
1977 (lto_init_tree_ref_encoder): Adjust.
1978 (lto_destroy_tree_ref_encoder): Likewise.
1979 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
1980 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
1981 (lto_output_decl_index): Adjust.
1982 (lto_new_out_decl_state): Likewise.
1983 (lto_record_function_out_decl_state): Likewise.
1984 * lto-streamer-out.c (copy_function): Likewise.
1985
1986 2013-06-18 Richard Biener <rguenther@suse.de>
1987
1988 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
1989 * cgraphunit.c: Include cfgloop.h.
1990 (init_lowered_empty_function): Initialize the loop tree.
1991 (assemble_thunk): Insert new BBs into loops.
1992
1993 2013-06-18 Richard Biener <rguenther@suse.de>
1994
1995 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
1996 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
1997 the map from cache entry to cache index optional.
1998 (streamer_tree_cache_replace_tree): Adjust accordingly.
1999 (streamer_tree_cache_append): Likewise.
2000 (streamer_tree_cache_delete): Likewise.
2001 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
2002 streamer cache map from cache entry to cache index.
2003 * lto-streamer-out.c (create_output_block): Adjust.
2004
2005 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
2006
2007 * config/arm/arm.md (attribute "insn"): Move multiplication and
2008 division attributes to...
2009 (attribute "type"): ... here. Remove mult.
2010 (attribute "mul32"): New attribute.
2011 (attribute "mul64"): Add umaal.
2012 (*arm_mulsi3): Update attributes.
2013 (*arm_mulsi3_v6): Likewise.
2014 (*thumb_mulsi3): Likewise.
2015 (*thumb_mulsi3_v6): Likewise.
2016 (*mulsi3_compare0): Likewise.
2017 (*mulsi3_compare0_v6): Likewise.
2018 (*mulsi_compare0_scratch): Likewise.
2019 (*mulsi_compare0_scratch_v6): Likewise.
2020 (*mulsi3addsi): Likewise.
2021 (*mulsi3addsi_v6): Likewise.
2022 (*mulsi3addsi_compare0): Likewise.
2023 (*mulsi3addsi_compare0_v6): Likewise.
2024 (*mulsi3addsi_compare0_scratch): Likewise.
2025 (*mulsi3addsi_compare0_scratch_v6): Likewise.
2026 (*mulsi3subsi): Likewise.
2027 (*mulsidi3adddi): Likewise.
2028 (*mulsi3addsi_v6): Likewise.
2029 (*mulsidi3adddi_v6): Likewise.
2030 (*mulsidi3_nov6): Likewise.
2031 (*mulsidi3_v6): Likewise.
2032 (*umulsidi3_nov6): Likewise.
2033 (*umulsidi3_v6): Likewise.
2034 (*umulsidi3adddi): Likewise.
2035 (*umulsidi3adddi_v6): Likewise.
2036 (*smulsi3_highpart_nov6): Likewise.
2037 (*smulsi3_highpart_v6): Likewise.
2038 (*umulsi3_highpart_nov6): Likewise.
2039 (*umulsi3_highpart_v6): Likewise.
2040 (mulhisi3): Likewise.
2041 (*mulhisi3tb): Likewise.
2042 (*mulhisi3bt): Likewise.
2043 (*mulhisi3tt): Likewise.
2044 (maddhisi4): Likewise.
2045 (*maddhisi4tb): Likewise.
2046 (*maddhisi4tt): Likewise.
2047 (maddhidi4): Likewise.
2048 (*maddhidi4tb): Likewise.
2049 (*maddhidi4tt): Likewise.
2050 (divsi3): Likewise.
2051 (udivsi3): Likewise.
2052 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
2053 (thumb2_mulsi_short_compare0): Likewise.
2054 (thumb2_mulsi_short_compare0_scratch): Likewise.
2055 * config/arm/arm1020e.md (1020mult1): Update attribute change.
2056 (1020mult2): Likewise.
2057 (1020mult3): Likewise.
2058 (1020mult4): Likewise.
2059 (1020mult5): Likewise.
2060 (1020mult6): Likewise.
2061 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
2062 change.
2063 (cortex_a15_mult64): Likewise.
2064 (cortex_a15_sdiv): Likewise.
2065 (cortex_a15_udiv): Likewise.
2066 * config/arm/arm1026ejs.md (mult1): Update attribute change.
2067 (mult2): Likewise.
2068 (mult3): Likewise.
2069 (mult4): Likewise.
2070 (mult5): Likewise.
2071 (mult6): Likewise.
2072 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
2073 (pj4_ir_div): Likewise.
2074 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
2075 (11_mult2): Likewise.
2076 (11_mult3): Likewise.
2077 (11_mult4): Likewise.
2078 (11_mult5): Likewise.
2079 (11_mult6): Likewise.
2080 (11_mult7): Likewise.
2081 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
2082 (cortex_a8_mla): Likewise.
2083 (cortex_a8_mull): Likewise.
2084 (cortex_a8_smulwy): Likewise.
2085 (cortex_a8_smlald): Likewise.
2086 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
2087 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
2088 (cortex_r4_mul_3): Likewise.
2089 (cortex_r4_mla_4): Likewise.
2090 (cortex_r4_mla_3): Likewise.
2091 (cortex_r4_smlald): Likewise.
2092 (cortex_r4_mull): Likewise.
2093 (cortex_r4_sdiv): Likewise.
2094 (cortex_r4_udiv): Likewise.
2095 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
2096 (cortex_a7_idiv): Likewise.
2097 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
2098 (9_mult2): Likewise.
2099 (9_mult3): Likewise.
2100 (9_mult4): Likewise.
2101 (9_mult5): Likewise.
2102 (9_mult6): Likewise.
2103 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
2104 (cortex_a53_sdiv): Likewise.
2105 (cortex_a53_udiv): Likewise.
2106 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
2107 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
2108 (mp626_mult2): Likewise.
2109 (mp626_mult3): Likewise.
2110 (mp626_mult4): Likewise.
2111 * config/arm/fa526.md (526_mult1): Update attribute change.
2112 (526_mult2): Likewise.
2113 * config/arm/arm-generic.md (mult): Update attribute change.
2114 (mult_ldsched_strongarm): Likewise.
2115 (mult_ldsched): Likewise.
2116 (multi_cycle): Likewise.
2117 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
2118 * config/arm/fa606te.md (606te_mult1): Update attribute change.
2119 (606te_mult2): Likewise.
2120 (606te_mult3): Likewise.
2121 (606te_mult4): Likewise.
2122 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
2123 (cortex_a9_mac16): Likewise.
2124 (cortex_a9_multiply): Likewise.
2125 (cortex_a9_mac): Likewise.
2126 (cortex_a9_multiply_long): Likewise.
2127 * config/arm/fa626te.md (626te_mult1): Update attribute change.
2128 (626te_mult2): Likewise.
2129 (626te_mult3): Likewise.
2130 (626te_mult4): Likewise.
2131
2132 2013-06-18 Richard Biener <rguenther@suse.de>
2133
2134 PR lto/57334
2135 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
2136
2137 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2138
2139 PR target/57609
2140 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
2141 with next_active_insn.
2142
2143 2013-06-18 Alan Modra <amodra@gmail.com>
2144
2145 * config/rs6000/rs6000.h (enum data_align): New.
2146 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
2147 (DATA_ABI_ALIGNMENT): Define.
2148 (CONSTANT_ALIGNMENT): Correct comment.
2149 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
2150 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
2151
2152 2013-06-17 David Malcolm <dmalcolm@redhat.com>
2153
2154 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
2155 ATTRIBUTE_UNUSED marking.
2156
2157 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
2158
2159 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
2160 alternative and update.
2161 (aarch64_dup_lanedi): Delete.
2162 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
2163 * config/aarch64/aarch64-simd-builtins.def: Update.
2164
2165 2013-06-17 Richard Biener <rguenther@suse.de>
2166
2167 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
2168 (lto_input_scc): Declare.
2169 (lto_input_tree_1): Likewise.
2170 (struct lto_stats_d): Add num_tree_bodies_output and
2171 num_pickle_refs_output.
2172 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
2173 (lto_read_tree_1): Split out from ...
2174 (lto_read_tree): ... this.
2175 (lto_input_scc): New function.
2176 (lto_input_tree_1): Split out from ...
2177 (lto_input_tree): ... this. Handle LTO_tree_scc.
2178 (lto_data_in_create): Create the streamer cache without hashes.
2179 * lto-streamer-out.c (create_output_block): Create the streamer
2180 cache with hashes when not doing WPA.
2181 (lto_write_tree_1): Split out from ...
2182 (lto_write_tree): ... this.
2183 (get_symbol_initial_value): New function.
2184 (lto_output_tree_1): Split out from ...
2185 (lto_output_tree): ... this. Write trees as series of SCCs
2186 using a DFS walk via DFS_write_tree.
2187 (struct sccs, struct scc_entry): New types.
2188 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
2189 (DFS_write_tree_body): New function.
2190 (DFS_write_tree): Likewise.
2191 (hash_tree): Likewise.
2192 (scc_entry_compare): Likewise.
2193 (hash_scc): Likewise.
2194 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
2195 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
2196 TREE_CHAIN as regular reference.
2197 (streamer_read_integer_cst): Remove.
2198 (streamer_get_pickled_tree): Adjust.
2199 * tree-streamer-out.c (streamer_write_chain): Disable streaming
2200 of DECL_EXTERNALs in BLOCK_VARS for now.
2201 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
2202 reference.
2203 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
2204 Add hash value argument and record that if hashes are recorded
2205 in the cache.
2206 (streamer_tree_cache_insert_1): Adjust.
2207 (streamer_tree_cache_insert): Likewise.
2208 (streamer_tree_cache_insert_at): Rename to ...
2209 (streamer_tree_cache_replace_tree): ... this and adjust.
2210 (streamer_tree_cache_append): Adjust.
2211 (record_common_node): Likewise.
2212 (streamer_tree_cache_create): Add argument whether to
2213 record hash values together with trees.
2214 (streamer_tree_cache_delete): Adjust.
2215 * tree-streamer.h (struct streamer_tree_cache_d): Add
2216 vector of hashes.
2217 (streamer_read_integer_cst): Remove.
2218 (streamer_tree_cache_insert): Adjust.
2219 (streamer_tree_cache_append): Likewise.
2220 (streamer_tree_cache_insert_at): Rename to ...
2221 (streamer_tree_cache_replace_tree): ... this and adjust.
2222 (streamer_tree_cache_create): Add argument whether to record hashes.
2223 (streamer_tree_cache_get): Rename to ...
2224 (streamer_tree_cache_get_tree): ... this.
2225 (streamer_tree_cache_get_hash): New function.
2226 * tree.c (cache_integer_cst): New function.
2227 * tree.h (cache_integer_cst): Declare.
2228 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
2229 * lto-symtab.c (lto_varpool_replace_node): Only release
2230 DECL_INITIAL of non-prevailing decls.
2231 * varpool.c (varpool_remove_initializer): Do not release
2232 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
2233
2234 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
2235
2236 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
2237 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
2238 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
2239 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
2240 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
2241 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
2242 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
2243 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
2244 instead of TARGET_64BIT.
2245 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
2246 Require ISA_HAS_<D>DIV.
2247
2248 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
2249
2250 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
2251 (mips*-*-linux*): Move default with_llsc setting to where other
2252 defaults are set.
2253 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
2254 with_arch block.
2255 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
2256 Likewise. Remove default with_tune setting. Move default float
2257 setting to its own block. Handle with_llsc in the same block as above.
2258
2259 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
2260
2261 PR rtl-optimization/57425
2262 PR rtl-optimization/57569
2263 * alias.c (write_dependence_p): Add new parameters mem_mode,
2264 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
2265 Changed all callers.
2266 (canon_anti_dependence): New function.
2267 * cse.c (check_dependence): Use canon_anti_dependence.
2268 * cselib.c (cselib_invalidate_mem): Likewise.
2269 * rtl.h (canon_anti_dependence): Declare.
2270
2271 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
2272
2273 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
2274 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
2275 ".set mips3" for 64-bit targets.
2276
2277 2013-06-15 Dehao Chen <dehao@google.com>
2278
2279 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
2280 * gimple-low.c (gimple_check_call_matching_types): Likewise.
2281 (gimple_check_call_args): Likewise.
2282 * value-prof.c (check_ic_target): Likewise.
2283 * ipa-inline.c (early_inliner): Likewise.
2284 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
2285 * cgraph.c (cgraph_create_edge_1): Likewise.
2286 (cgraph_make_edge_direct): Likewise.
2287
2288 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2289
2290 PR target/57615
2291 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
2292 rs6000_output_move_128bit to handle emitting quad memory
2293 operations. Set attribute length to 8 bytes.
2294
2295 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
2296
2297 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
2298 New pattern.
2299 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
2300 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
2301 (aarch64_<su>mlsl<mode>): Likewise.
2302
2303 2013-06-14 Mike Stump <mikestump@comcast.net>
2304
2305 * Makefile.in (TARGET_H): Add insn-codes.h.
2306
2307 2013-06-14 Alan Modra <amodra@gmail.com>
2308
2309 PR middle-end/57134
2310 PR middle-end/57586
2311 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
2312 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
2313 bitfield expansion when EXPAND_MEMORY.
2314 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
2315
2316 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
2317
2318 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2319 test for clearing quad memory on 32-bit later.
2320
2321 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
2322
2323 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
2324 (fold_negate_expr): Likewise.
2325 (fold_real_zero_addition_p): Handle vectors.
2326 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
2327
2328 2013-06-14 Alan Modra <amodra@gmail.com>
2329
2330 * varasm.c (force_const_mem): Revert 2013-06-07 change.
2331
2332 2013-06-13 Jan Hubicka <jh@suse.cz>
2333
2334 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
2335 Local comdats are not externally visible.
2336 * symtab.c (dump_symtab_base): Dump externally visible.
2337 (verify_symtab_base): Verify back links in the symtab hash.
2338
2339 2013-06-13 Bin Cheng <bin.cheng@arm.com>
2340
2341 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
2342 CONVERT_EXPR as equal nodes.
2343
2344 2013-06-13 Bin Cheng <bin.cheng@arm.com>
2345
2346 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
2347
2348 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
2349
2350 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
2351 Generalize to complex and vector.
2352 * tree.c (build_all_ones_cst): New function.
2353 * tree.h (build_all_ones_cst): Declare it.
2354
2355 2013-06-13 Alan Modra <amodra@gmail.com>
2356
2357 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
2358 * config/rs6000/rs6000.md (signbittf2): New insn.
2359 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
2360 (abstf2_internal, cmptf_internal2): Likewise.
2361 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
2362
2363 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
2364 Pat Haugen <pthaugen@us.ibm.com>
2365 Peter Bergner <bergner@vnet.ibm.com>
2366
2367 * config/rs6000/rs6000.c (emit_load_locked): Add support for
2368 power8 byte, half-word, and quad-word atomic instructions.
2369 (emit_store_conditional): Likewise.
2370 (rs6000_expand_atomic_compare_and_swap): Likewise.
2371 (rs6000_expand_atomic_op): Likewise.
2372
2373 * config/rs6000/sync.md (larx): Add new modes for power8.
2374 (stcx): Likewise.
2375 (AINT): New mode iterator to include TImode as well as normal
2376 integer modes on power8.
2377 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
2378 that VSX registers are not considered. Use AINT mode iterator
2379 instead of INT1 to allow inclusion of quad word atomic operations
2380 on power8.
2381 (load_locked<mode>): Likewise.
2382 (store_conditional<mode>): Likewise.
2383 (atomic_compare_and_swap<mode>): Likewise.
2384 (atomic_exchange<mode>): Likewise.
2385 (atomic_nand<mode>): Likewise.
2386 (atomic_fetch_<fetchop_name><mode>): Likewise.
2387 (atomic_nand_fetch<mode>): Likewise.
2388 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
2389 each type.
2390 (ATOMIC): On power8, add QImode, HImode modes.
2391 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
2392 modes that promote to SImode.
2393 (load_lockedti): Convert TImode arguments to PTImode, so that we
2394 get a guaranteed even/odd register pair.
2395 (load_lockedpti): Likewise.
2396 (store_conditionalti): Likewise.
2397 (store_conditionalpti): Likewise.
2398
2399 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
2400 atomic load/store instructions.
2401 (HSI): Likewise.
2402
2403 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
2404
2405 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
2406 loads.
2407 (insn_count): New attribute, with most cases extracted from...
2408 (length): ...here. Redefine most cases in terms of insn_count.
2409 (single_insn): Delete.
2410 (can_delay): Use insn_count to check for single instructions.
2411 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
2412 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
2413 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
2414 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
2415 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
2416 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
2417 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
2418 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
2419 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
2420 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
2421 rather than "length".
2422 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
2423 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
2424 Use "insn_count" rather than "length".
2425 * config/mips/mips-dsp.md
2426 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
2427 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
2428 length attributes.
2429
2430 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
2431
2432 PR tree-optimization/57361
2433 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
2434
2435 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
2436
2437 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
2438 to split.
2439 (aarch64_simd_combine<mode>): New instruction expansion.
2440 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
2441 function prototype.
2442 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
2443 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
2444
2445 2013-06-12 Jan Hubicka <jh@suse.cz>
2446
2447 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
2448 decl has when in streaming stage.
2449 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
2450 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
2451
2452 2013-06-12 Roland Stigge <stigge@antcom.de>
2453
2454 PR target/57578
2455 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
2456
2457 2013-06-12 Jakub Jelinek <jakub@redhat.com>
2458
2459 PR tree-optimization/57537
2460 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
2461 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
2462
2463 2013-06-12 Richard Biener <rguenther@suse.de>
2464
2465 * data-streamer.h (streamer_write_char_stream): CSE
2466 obs->current_pointer.
2467 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
2468 streamer_write_char_stream manually and optimize the resulting loop.
2469 (streamer_write_hwi_stream): Likewise.
2470
2471 2013-06-12 Jan Hubicka <jh@suse.cz>
2472
2473 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
2474 * cgraph.h (varpool_create_empty_node): Declare.
2475 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
2476 duplicated nodes.
2477 * symtab.c (symtab_unregister_node): Be lax about missin entries
2478 in node hash.
2479 (symtab_get_node): Update comment.
2480 * varpool.c (varpool_create_empty_node): Break out from ...
2481 (varpool_node_for_decl): ... here.
2482 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
2483
2484 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
2485
2486 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
2487 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
2488 part. Use straight-line flow at the end.
2489 <COMPONENT_REF>: Remove superfluous else.
2490 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
2491
2492 2013-06-12 Jakub Jelinek <jakub@redhat.com>
2493
2494 PR target/56564
2495 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
2496 target hook even for !TREE_PUBLIC decls. If no resolution info
2497 is available, return false for common and external decls.
2498
2499 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2500
2501 * config/rl78/constraints.md (U): New constraint.
2502 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
2503 valloc attribute.
2504
2505 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2506
2507 PR target/57589
2508 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
2509 to allow returning address to AT_PLATFORM name.
2510
2511 2013-06-11 Jan Hubicka <jh@suse.cz>
2512
2513 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
2514 * cgraph.h (symtab_node_base): Add weakref flag.
2515 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
2516 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
2517 (output_weakrefs): Use weakref flag.
2518 * fold-const.c (simple_operand_p): Handle WEAK.
2519 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
2520 * ipa.c (varpool_externally_visible_p): Drop weakref.
2521 (function_and_variable_visibility): Update comment; fix weakref
2522 sanity checks; do not clear DECL_WEAK on them.
2523 * lto-cgraph.c (lto_output_node): update.
2524 (lto_output_varpool_node): Update.
2525 (input_overwrite_node): Update.
2526 (input_node): Update.
2527 (input_varpool_node): Update.
2528 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
2529 (lto_symtab_merge_symbols): Add sanity check.
2530 (lto_symtab_prevailing_decl): Do not special case weakrefs.
2531 * passes.c (rest_of_decl_compilation): Set static flag, too.
2532 * symtab.c (dump_symtab_base): Dump weakref.
2533 (verify_symtab_base): Sanity check weakrefs.
2534 (symtab_make_decl_local): Remove duplicated code.
2535 (symtab_alias_ultimate_target): Simplify.
2536 * varpool.c (varpool_create_variable_alias): Set weakref flag.
2537
2538 2013-06-11 DJ Delorie <dj@redhat.com>
2539
2540 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
2541 (rl78_unwind_word_mode): New.
2542
2543 2013-06-11 David Malcolm <dmalcolm@redhat.com>
2544
2545 * final.c (debug_prefix_maps): Make static.
2546
2547 2013-06-11 David Malcolm <dmalcolm@redhat.com>
2548
2549 * function.c (initial_trampoline): Remove stray copy.
2550
2551 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
2552
2553 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
2554
2555 2013-06-11 Martin Jambor <mjambor@suse.cz>
2556
2557 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
2558 within bounds at the beginning of the function.
2559
2560 2013-06-11 Alan Modra <amodra@gmail.com>
2561
2562 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
2563 reporting.
2564 (get_named_section): Don't NULL !DECL_P decl.
2565
2566 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
2567
2568 * doc/invoke.texi (core-avx2): Document.
2569 (slm): Likewise.
2570 (atom): Updated with MOVBE.
2571
2572 2013-06-11 Richard Biener <rguenther@suse.de>
2573
2574 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
2575
2576 2013-06-11 Anton Blanchard <anton@samba.org>
2577
2578 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
2579 correct shift value in little-endian mode.
2580
2581 2013-06-11 Jakub Jelinek <jakub@redhat.com>
2582
2583 PR target/56564
2584 * varasm.c (get_variable_align): Move #endif to the right place.
2585
2586 2013-06-10 Cary Coutant <ccoutant@google.com>
2587
2588 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
2589 for hash so that hash table traversal order is deterministic.
2590
2591 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2592 Pat Haugen <pthaugen@us.ibm.com>
2593 Peter Bergner <bergner@vnet.ibm.com>
2594
2595 * config/rs6000/vector.md (GPR move splitter): Do not split moves
2596 of vectors in GPRS if they are direct moves or quad word load or
2597 store moves.
2598
2599 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
2600 declaration.
2601 (direct_move_p): Likewise.
2602 (quad_load_store_p): Likewise.
2603
2604 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
2605 classes into bins based on the physical register type.
2606 (reg_class_to_reg_type): Likewise.
2607 (IS_STD_REG_TYPE): Likewise.
2608 (IS_FP_VECT_REG_TYPE): Likewise.
2609 (reload_fpr_gpr): Arrays to determine what insn to use if we can
2610 use direct move instructions.
2611 (reload_gpr_vsx): Likewise.
2612 (reload_vsx_gpr): Likewise.
2613 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
2614 information that is a simplification of register classes. Also
2615 precalculate direct move reload helpers.
2616 (direct_move_p): New function to return true if the operation can
2617 be done as a direct move instruciton.
2618 (quad_load_store_p): New function to return true if the operation
2619 is a quad memory operation.
2620 (rs6000_legitimize_address): If quad memory, only allow register
2621 indirect for TImode addresses.
2622 (rs6000_legitimate_address_p): Likewise.
2623 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
2624 (rs6000_reload_register_type): Likewise.
2625 (register_to_reg_type): Return register type.
2626 (rs6000_secondary_reload_simple_move): New helper function for
2627 secondary reload and secondary memory needed to identify anything
2628 that is a simple move, and does not need reloading.
2629 (rs6000_secondary_reload_direct_move): New helper function for
2630 secondary reload to identify cases that can be done with several
2631 instructions via the direct move instructions.
2632 (rs6000_secondary_reload_move): New helper function for secondary
2633 reload to identify moves between register types that can be done.
2634 (rs6000_secondary_reload): Add support for quad memory operations
2635 and for direct move.
2636 (rs6000_secondary_memory_needed): Likewise.
2637 (rs6000_debug_secondary_memory_needed): Change argument names.
2638 (rs6000_output_move_128bit): New function to return the move to
2639 use for 128-bit moves, including knowing about the various
2640 limitations of quad memory operations.
2641
2642 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
2643 memory operations. call rs6000_output_move_128bit for the actual
2644 instruciton(s) to generate.
2645 (vsx_movti_64bit): Likewise.
2646
2647 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
2648 (UNSPEC_P8V_MTVSRWZ): Likewise.
2649 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
2650 (UNSPEC_P8V_MTVSRD): Likewise.
2651 (UNSPEC_P8V_XXPERMDI): Likewise.
2652 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
2653 (UNSPEC_FUSION_GPR): Likewise.
2654 (FMOVE128_GPR): New iterator for direct move.
2655 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
2656 (f32_sv): Likewise.
2657 (f32_dm): Likewise.
2658 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
2659 loads and direct move instructions.
2660 (zero_extendsidi2_lfiwzx): Likewise.
2661 (extendsidi2_lfiwax): Likewise.
2662 (extendsidi2_nocell): Likewise.
2663 (floatsi<mode>2_lfiwax): Likewise.
2664 (lfiwax): Likewise.
2665 (floatunssi<mode>2_lfiwzx): Likewise.
2666 (lfiwzx): Likewise.
2667 (fix_trunc<mode>_stfiwx): Likewise.
2668 (fixuns_trunc<mode>_stfiwx): Likewise.
2669 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
2670 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
2671 (parity<mode>2_cmpb): Set length/type attr.
2672 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
2673 for 'mr.' to fast_compare.
2674 (bpermd_<mode>): Change type attr to popcnt.
2675 (p8_fmrgow_<mode>): New insns for power8 direct move support.
2676 (p8_mtvsrwz_1): Likewise.
2677 (p8_mtvsrwz_2): Likewise.
2678 (reload_fpr_from_gpr<mode>): Likewise.
2679 (p8_mtvsrd_1): Likewise.
2680 (p8_mtvsrd_2): Likewise.
2681 (p8_xxpermdi_<mode>): Likewise.
2682 (reload_vsx_from_gpr<mode>): Likewise.
2683 (reload_vsx_from_gprsf): Likewise.
2684 (p8_mfvsrd_3_<mode>): LIkewise.
2685 (reload_gpr_from_vsx<mode>): Likewise.
2686 (reload_gpr_from_vsxsf): Likewise.
2687 (p8_mfvsrd_4_disf): Likewise.
2688 (multi-word GPR splits): Do not split direct moves or quad memory
2689 operations.
2690
2691 2013-06-10 David Malcolm <dmalcolm@redhat.com>
2692
2693 * tree-into-ssa.c (interesting_blocks): Make static.
2694
2695 2013-06-10 Jakub Jelinek <jakub@redhat.com>
2696
2697 PR target/56564
2698 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
2699 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
2700 Use DATA_ABI_ALIGNMENT for that case instead if defined.
2701 (get_variable_align): New function.
2702 (get_variable_section, emit_bss, emit_common,
2703 assemble_variable_contents, place_block_symbol): Use
2704 get_variable_align instead of DECL_ALIGN.
2705 (assemble_noswitch_variable): Add align argument, use it
2706 instead of DECL_ALIGN.
2707 (assemble_variable): Adjust caller. Use get_variable_align
2708 instead of DECL_ALIGN.
2709 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
2710 caller.
2711 (DATA_ABI_ALIGNMENT): Define.
2712 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
2713 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
2714 opt is false, only return the psABI mandated alignment increase.
2715 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
2716 (DATA_ABI_ALIGNMENT): ... this.
2717 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
2718 (DATA_ABI_ALIGNMENT): ... this.
2719 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
2720 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
2721 (DATA_ABI_ALIGNMENT): ... this.
2722 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
2723 * doc/tm.texi: Regenerated.
2724
2725 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
2726
2727 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
2728 cmp_code to construct REG_EQUAL note.
2729
2730 2013-06-09 Jakub Jelinek <jakub@redhat.com>
2731
2732 PR target/57568
2733 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
2734 that operands[2] doesn't overlap with operands[0].
2735
2736 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
2737 Jan Hubicka <jh@suse.cz>
2738
2739 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
2740 hack to mark symbols as used.
2741
2742 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
2743
2744 PR rtl-optimization/57559
2745 * lra-constraints.c (process_alt_operands): Don't discourage
2746 memory with known offset for offsetable memory constraint.
2747 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
2748
2749 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
2750
2751 * varasm.c (struct oc_local_state): Reorder fields.
2752 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
2753 and adjust accordingly.
2754 (output_constructor): Reorder initialization code and adjust call to
2755 output_constructor_bitfield.
2756
2757 2013-06-07 Jan Hubicka <jh@suse.cz>
2758
2759 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
2760
2761 2013-06-07 David Malcolm <dmalcolm@redhat.com>
2762
2763 * tree-object-size.c (unknown): Make const.
2764
2765 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2766
2767 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
2768 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
2769 for last alternative in the cpu_facility attribute.
2770
2771 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2772
2773 PR target/56315
2774 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
2775 (xordi3): Change operand 2 constraint to arm_xordi_operand.
2776 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
2777 * config/arm/constraints.md (Dg): New constraint.
2778 * config/arm/neon.md (xordi3_neon): Remove.
2779 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
2780 * config/arm/predicates.md (arm_xordi_operand): New predicate.
2781
2782 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2783
2784 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
2785 Clean up alternatives.
2786
2787 2013-06-07 Alan Modra <amodra@gmail.com>
2788
2789 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
2790 va_list_gpr_size.
2791
2792 2013-06-07 Alan Modra <amodra@gmail.com>
2793
2794 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
2795
2796 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2797
2798 * config/arm/constraints.md (Df): New constraint.
2799 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
2800 Correct length attribute for last two alternatives.
2801
2802 2013-06-07 Alan Modra <amodra@gmail.com>
2803
2804 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
2805 override user -mfp-in-toc.
2806 (offsettable_ok_by_alignment): Consider just the current access
2807 rather than the whole object, unless BLKmode. Handle
2808 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
2809 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
2810 for -mcmodel=medium.
2811 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
2812 override user -mfp-in-toc or -msum-in-toc. Default to
2813 -mno-fp-in-toc for -mcmodel=medium.
2814
2815 2013-06-06 DJ Delorie <dj@redhat.com>
2816
2817 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
2818 TARGET_VALID_POINTER_MODE.
2819
2820 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2821 Pat Haugen <pthaugen@us.ibm.com>
2822 Peter Bergner <bergner@vnet.ibm.com>
2823
2824 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
2825 Document new power8 builtins.
2826
2827 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
2828 condition code register, to allow 128-bit logical operations to be
2829 done in the VSX or GPR registers.
2830 (nor<mode>3): Use the canonical form for nor.
2831 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
2832 vclz*, and vpopcnt* vector instructions.
2833 (nand<mode>3): Likewise.
2834 (orc<mode>3): Likewise.
2835 (clz<mode>2): LIkewise.
2836 (popcount<mode>2): Likewise.
2837
2838 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
2839 that only the GPRs are recognized.
2840
2841 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2842 support for new power8 builtins.
2843
2844 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
2845 builtin functions.
2846 (xscvdpspn): Likewise.
2847 (vclz): Likewise.
2848 (vclzb): Likewise.
2849 (vclzh): Likewise.
2850 (vclzw): Likewise.
2851 (vclzd): Likewise.
2852 (vpopcnt): Likewise.
2853 (vpopcntb): Likewise.
2854 (vpopcnth): Likewise.
2855 (vpopcntw): Likewise.
2856 (vpopcntd): Likewise.
2857 (vgbbd): Likewise.
2858 (vmrgew): Likewise.
2859 (vmrgow): Likewise.
2860 (eqv): Likewise.
2861 (eqv_v16qi3): Likewise.
2862 (eqv_v8hi3): Likewise.
2863 (eqv_v4si3): Likewise.
2864 (eqv_v2di3): Likewise.
2865 (eqv_v4sf3): Likewise.
2866 (eqv_v2df3): Likewise.
2867 (nand): Likewise.
2868 (nand_v16qi3): Likewise.
2869 (nand_v8hi3): Likewise.
2870 (nand_v4si3): Likewise.
2871 (nand_v2di3): Likewise.
2872 (nand_v4sf3): Likewise.
2873 (nand_v2df3): Likewise.
2874 (orc): Likewise.
2875 (orc_v16qi3): Likewise.
2876 (orc_v8hi3): Likewise.
2877 (orc_v4si3): Likewise.
2878 (orc_v2di3): Likewise.
2879 (orc_v4sf3): Likewise.
2880 (orc_v2df3): Likewise.
2881
2882 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
2883 allow power8 quad mode in 64-bit.
2884 (rs6000_builtin_vectorized_function): Add support to vectorize
2885 ISA 2.07 count leading zeros, population count builtins.
2886 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
2887 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
2888 (builtin_function_type): Add vgbbd builtin function which takes an
2889 unsigned argument.
2890 (altivec_expand_vec_perm_const): Add support for new power8 merge
2891 instructions.
2892
2893 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
2894 that does not include TImdoe for use with 32-bit.
2895 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
2896 instructions.
2897 (UNSPEC_VSX_CVDPSPN): Likewise.
2898 (vsx_xscvdpspn): Likewise.
2899 (vsx_xscvspdpn): Likewise.
2900 (vsx_xscvdpspn_scalar): Likewise.
2901 (vsx_xscvspdpn_directmove): Likewise.
2902 (vsx_and<mode>3): Split logical operations into 32-bit and
2903 64-bit. Add support to do logical operations on TImode as well as
2904 VSX vector types. Allow logical operations to be done in either
2905 VSX registers or in general purpose registers in 64-bit mode. Add
2906 splitters if GPRs were used. For AND, add clobber of CCmode to
2907 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
2908 encoding.
2909 (vsx_and<mode>3_32bit): Likewise.
2910 (vsx_and<mode>3_64bit): Likewise.
2911 (vsx_ior<mode>3): Likewise.
2912 (vsx_ior<mode>3_32bit): Likewise.
2913 (vsx_ior<mode>3_64bit): Likewise.
2914 (vsx_xor<mode>3): Likewise.
2915 (vsx_xor<mode>3_32bit): Likewise.
2916 (vsx_xor<mode>3_64bit): Likewise.
2917 (vsx_one_cmpl<mode>2): Likewise.
2918 (vsx_one_cmpl<mode>2_32bit): Likewise.
2919 (vsx_one_cmpl<mode>2_64bit): Likewise.
2920 (vsx_nor<mode>3): Likewise.
2921 (vsx_nor<mode>3_32bit): Likewise.
2922 (vsx_nor<mode>3_64bit): Likewise.
2923 (vsx_andc<mode>3): Likewise.
2924 (vsx_andc<mode>3_32bit): Likewise.
2925 (vsx_andc<mode>3_64bit): Likewise.
2926 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
2927 and xxlorc instructions.
2928 (vsx_eqv<mode>3_64bit): Likewise.
2929 (vsx_nand<mode>3_32bit): Likewise.
2930 (vsx_nand<mode>3_64bit): Likewise.
2931 (vsx_orc<mode>3_32bit): Likewise.
2932 (vsx_orc<mode>3_64bit): Likewise.
2933
2934 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
2935
2936 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
2937 instruction.
2938 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
2939 (p8_vmrgow): Likewise.
2940 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
2941 GPRs to be split under VSX.
2942 (p8v_clz<mode>2): Add power8 count leading zero support.
2943 (p8v_popcount<mode>2): Add power8 population count support.
2944 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
2945 support.
2946
2947 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
2948 instruction.
2949
2950 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
2951 builtin functions.
2952 (vec_nand): Likewise.
2953 (vec_vclz): Likewise.
2954 (vec_vclzb): Likewise.
2955 (vec_vclzd): Likewise.
2956 (vec_vclzh): Likewise.
2957 (vec_vclzw): Likewise.
2958 (vec_vgbbd): Likewise.
2959 (vec_vmrgew): Likewise.
2960 (vec_vmrgow): Likewise.
2961 (vec_vpopcnt): Likewise.
2962 (vec_vpopcntb): Likewise.
2963 (vec_vpopcntd): Likewise.
2964 (vec_vpopcnth): Likewise.
2965 (vec_vpopcntw): Likewise.
2966
2967 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
2968
2969 PR rtl-optimization/57468
2970 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
2971 spilled pseudos.
2972
2973 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
2974
2975 PR rtl-optimization/57459
2976 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
2977 type when setting live regs.
2978
2979 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
2980
2981 * config/s390/s390.opt (mlra): New option.
2982 * config/s390/s390.c (s390_decompose_address): Check displacement
2983 for all registers for LRA.
2984 (s390_secondary_reload): Don't used secondary reloads for LRA.
2985 (s390_lra_p): New function.
2986 (TARGET_LRA_P): Define.
2987 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
2988 of attribute cpu_facility to zarch for the last alternative.
2989 (*cmpmem_short): Ditto.
2990
2991 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
2992
2993 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
2994 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
2995 (arm_expand_prologue): Likewise.
2996
2997 2013-06-06 Teresa Johnson <tejohnson@google.com>
2998
2999 PR c++/53743
3000 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
3001 as this is now done by redirect_edge_and_branch_force.
3002 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
3003 barriers, and fix interaction with splitting.
3004 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
3005 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
3006 reflect changes made in the routine.
3007 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
3008 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
3009 since this is called in cfglayout mode, and replace partition fixup
3010 with assert as that is now done by force_nonfallthru_and_redirect.
3011 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
3012 already be marked with region crossing note.
3013 (insert_section_boundary_note): Make non-static, gate on flag
3014 has_bb_partition, rewrite to also check for multiple partitions.
3015 (rest_of_handle_reorder_blocks): Remove call to
3016 insert_section_boundary_note, now done later during free_cfg.
3017 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
3018 * bb-reorder.h (insert_section_boundary_note): Declare.
3019 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
3020 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
3021 invoke insert_section_boundary_note.
3022 (try_redirect_by_replacing_jump): Remove unnecessary
3023 check for region crossing note.
3024 (fixup_partition_crossing): New function.
3025 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
3026 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
3027 in non-cfglayout mode.
3028 (force_nonfallthru_and_redirect): Fixup partition boundaries,
3029 remove old code that tried to do this. Emit barrier correctly
3030 when we are in cfglayout mode.
3031 (last_bb_in_partition): New function.
3032 (rtl_split_edge): Correctly fixup partition boundaries.
3033 (commit_one_edge_insertion): Remove old code that tried to
3034 fixup region crossing edge since this is now handled in
3035 split_block, and set up insertion point correctly since
3036 block may now end in a jump.
3037 (verify_hot_cold_block_grouping): Guard against checking when not in
3038 linearized RTL mode.
3039 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
3040 notes.
3041 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
3042 rtl_verify_flow_info, so not called in cfglayout mode.
3043 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
3044 (fixup_reorder_chain): Remove old code that attempted to fixup region
3045 crossing note as this is now handled in force_nonfallthru_and_redirect.
3046 (duplicate_insn_chain): Don't duplicate switch section notes.
3047 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
3048 note.
3049 * basic-block.h (emit_barrier_after_bb): Declare.
3050
3051 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3052
3053 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
3054 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
3055 arm_usatsihi): Adjust alternatives for arm_restrict_it.
3056
3057 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3058
3059 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
3060 where appropriate.
3061 * config/arm/ldmstm.md: Regenerate.
3062
3063 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3064
3065 * config/arm/sync.md (atomic_loaddi_1):
3066 Disable predication for arm_restrict_it.
3067 (arm_load_exclusive<mode>): Likewise.
3068 (arm_load_exclusivesi): Likewise.
3069 (arm_load_exclusivedi): Likewise.
3070 (arm_load_acquire_exclusive<mode>): Likewise.
3071 (arm_load_acquire_exclusivesi): Likewise.
3072 (arm_load_acquire_exclusivedi): Likewise.
3073 (arm_store_exclusive<mode>): Likewise.
3074 (arm_store_exclusive<mode>): Likewise.
3075 (arm_store_release_exclusivedi): Likewise.
3076 (arm_store_release_exclusive<mode>): Likewise.
3077
3078 2013-06-06 Richard Biener <rguenther@suse.de>
3079
3080 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
3081 after LTO_null.
3082 (lto_tag_is_tree_code_p): Adjust.
3083 (lto_tag_is_gimple_code_p): Likewise.
3084 (lto_gimple_code_to_tag): Likewise.
3085 (lto_tag_to_gimple_code): Likewise.
3086 (lto_tree_code_to_tag): Likewise.
3087 (lto_tag_to_tree_code): Likewise.
3088 * data-streamer.h (streamer_write_hwi_in_range): Use
3089 uhwi streaming to stream the normalized range.
3090 (streamer_read_hwi_in_range): Likewise.
3091
3092 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3093
3094 * config/arm/arm.md (enabled_for_depr_it): New attribute.
3095 (predicable_short_it): Likewise.
3096 (predicated): Likewise.
3097 (enabled): Handle above.
3098 (define_cond_exec): Set predicated attribute to yes.
3099
3100 2013-06-05 Mike Stump <mikestump@comcast.net>
3101
3102 * gdbinit.in (__FUNCTION__): Add.
3103
3104 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
3105
3106 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
3107 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
3108
3109 2013-06-05 Jan Hubicka <jh@suse.cz>
3110
3111 * varasm.c (mark_decl_referenced): Revert the removal until targets
3112 are fixed.
3113
3114 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
3115
3116 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
3117 instead of mark_decl_referenced.
3118
3119 2013-06-05 Jan Hubicka <jh@suse.cz>
3120
3121 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
3122 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
3123 and symtab_used_from_object_file_p.
3124 (cgraph_make_node_local_1): Clear forced_by_abi.
3125 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
3126 * cgraph.h (symtab_node_base): Add forced_by_abi.
3127 (decide_is_variable_needed): Remove.
3128 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
3129 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
3130 (decide_is_symbol_needed): ... this one; handle symbols in general;
3131 always analyze virtuals; honnor forced_by_abi.
3132 (cgraph_finalize_function): Update.
3133 (varpool_finalize_decl): Update.
3134 (symbol_defined_and_needed): Remove.
3135 (analyze_functions): Update.
3136 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
3137 output_refs, input_overwrite_node): Handle forced_by_abi.
3138 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
3139 (address_taken_from_non_vtable_p): ... this one.
3140 (comdat_can_be_unshared_p_1): New function.
3141 (cgraph_comdat_can_be_unshared_p): Rename to ...
3142 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
3143 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
3144 (function_and_variable_visibility): Clear forced_by_abi as needed.
3145 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
3146 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
3147 * symtab.c (dump_symtab_base): Dump forced_by_abi.
3148 * varpool.c (decide_is_variable_needed): Remove.
3149
3150 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3151
3152 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
3153 (arm_option_override): Override arm_restrict_it where appropriate.
3154 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
3155 * config/arm/arm.opt (mrestrict-it): New command-line option.
3156 * doc/invoke.texi: Document -mrestrict-it.
3157
3158 2013-06-05 David Malcolm <dmalcolm@redhat.com>
3159
3160 * tsan.c (tsan_atomic_table): Make const.
3161
3162 2013-06-05 Richard Biener <rguenther@suse.de>
3163
3164 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
3165 index associated with the tree we are supposed to replace.
3166 * tree-streamer-out.c (pack_ts_base_value_fields): Output
3167 TREE_ASM_WRITTEN as zero for everything but SSA names.
3168
3169 2013-06-05 David Malcolm <dmalcolm@redhat.com>
3170
3171 * tree-ssa-structalias.c (call_stmt_vars): Make static.
3172
3173 2013-06-04 Jan Hubicka <jh@suse.cz>
3174
3175 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
3176 (input_node, input_varpool_node): Handle correctly external same
3177 body aliases.
3178 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
3179 nodes at ltrans stage.
3180
3181 2013-06-04 Jan Hubicka <jh@suse.cz>
3182
3183 * ipa-inline.c (update_caller_keys): Fix availability test.
3184 (update_callee_keys): Likewise.
3185 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
3186 to follow ELF standard.
3187
3188 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
3189
3190 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
3191 (mips64r5900el-*-elf*): New configurations.
3192 * config/mips/mips-cpus.def (r5900): New processor.
3193 * config/mips/mips-tables.opt: Regenerate.
3194 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
3195 (mips_issue_rate): Handle PROCESSOR_R5900.
3196 (mips_reorg_process_insns): Force reorder mode for the R5900.
3197 * config/mips/mips.h (TARGET_MIPS5900): Define.
3198 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
3199 TARGET_MIPS5900.
3200 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
3201 TARGET_MIPS5900.
3202 * config/mips/mips.md (processor): Add r5900.
3203 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
3204
3205 2013-06-04 Ian Bolton <ian.bolton@arm.com>
3206
3207 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
3208 into function to generate MOVI instruction.
3209 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
3210 (aarch64_preferred_simd_mode): Turn into wrapper.
3211 (aarch64_output_scalar_simd_mov_immediate): New function.
3212 * config/aarch64/aarch64-protos.h: Add prototype for above.
3213
3214 2013-06-04 Ian Bolton <ian.bolton@arm.com>
3215
3216 * config/aarch64/aarch64.c (simd_immediate_info): Remove
3217 element_char member.
3218 (sizetochar): Return signed char.
3219 (aarch64_simd_valid_immediate): Remove elchar and other
3220 unnecessary variables.
3221 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
3222 Calculate element_char as required.
3223 * config/aarch64/aarch64-protos.h: Update and move prototype
3224 for aarch64_output_simd_mov_immediate.
3225 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
3226 Update arguments.
3227
3228 2013-06-04 Ian Bolton <ian.bolton@arm.com>
3229
3230 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
3231 information completed by aarch64_simd_valid_immediate.
3232 (aarch64_legitimate_constant_p): Update arguments.
3233 (aarch64_simd_valid_immediate): Work with struct rather than many
3234 pointers.
3235 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
3236 (aarch64_simd_make_constant): Update arguments.
3237 (aarch64_output_simd_mov_immediate): Work with struct rather than
3238 many pointers. Output immediate directly rather than as operand.
3239 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
3240 Update prototype.
3241 * config/aarch64/constraints.md (Dn): Update arguments.
3242
3243 2013-06-04 Ian Bolton <ian.bolton@arm.com>
3244
3245 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
3246 longer static.
3247 (aarch64_simd_immediate_valid_for_move): Remove.
3248 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
3249 (aarch64_simd_make_constant): Update call.
3250 (aarch64_output_simd_mov_immediate): Update call.
3251 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
3252 Add prototype.
3253 * config/aarch64/constraints.md (Dn): Update call.
3254
3255 2013-06-04 Ian Bolton <ian.bolton@arm.com>
3256
3257 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
3258 return type to bool for prototype.
3259 (aarch64_legitimate_constant_p): Check for true instead of not -1.
3260 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
3261 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
3262
3263 2013-06-04 Catherine Moore <clm@codesourcery.com>
3264
3265 * config/mips/mips.opt (meva): New.
3266 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
3267 (ASM_SPEC): Handle -meva.
3268 * doc/invoke.texi (meva): Document.
3269
3270 2013-06-04 Alan Modra <amodra@gmail.com>
3271
3272 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
3273 constant output.
3274
3275 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3276
3277 * rtl.def: Add extra fourth optional field to define_cond_exec.
3278 * gensupport.c (process_one_cond_exec): Process attributes from
3279 define_cond_exec.
3280 * doc/md.texi: Document fourth field in define_cond_exec.
3281
3282 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
3283
3284 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
3285 out the processing order as in store_bit_field_1.
3286
3287 2013-06-04 Jan Hubicka <jh@suse.cz>
3288
3289 PR middle-end/57500
3290 * cgraphunit.c (cgraph_process_same_body_aliases): Create
3291 non-VAR_DECL node if it does not exist yet.
3292
3293 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
3294
3295 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
3296 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
3297 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
3298 target_cpu_default setting.
3299
3300 2013-06-03 Teresa Johnson <tejohnson@google.com>
3301
3302 * dumpfile.c (opt_info_switch_p): Change -fopt-info
3303 default to -fopt-info=optimized instead of all.
3304 * doc/invoke.texi: Ditto.
3305 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
3306 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
3307 (execute_vect_slp): Emit BB vectorization success under
3308 MSG_OPTIMIZED_LOCATIONS.
3309 * tree-vect-slp.c (vect_slp_transform_bb): Change
3310 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
3311 * tree-vect-loop.c (vect_transform_loop): Ditto.
3312
3313 2013-06-03 Jason Merrill <jason@redhat.com>
3314
3315 PR c++/57415
3316 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3317 Use TARGET_EXPR for C++.
3318
3319 2013-06-03 Jakub Jelinek <jakub@redhat.com>
3320
3321 PR rtl-optimization/57268
3322 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
3323 if DEBUG_INSN_P (insn).
3324
3325 Reapply
3326 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
3327
3328 PR rtl-optimization/57268
3329 * sched-deps.c (sched_analyze_2): Flush dependence lists if
3330 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
3331
3332 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
3333
3334 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
3335 (ix86_avoid_lea_for_addr): Likewise.
3336 (exact_dependency_1): Likewise.
3337 (ix86_adjust_cost): Likewise.
3338 (swap_top_of_ready_list): Fix formatting and !reload_completed check
3339 removed.
3340 (do_reorder_for_imul): Fix typo, formatting and
3341 !reload_completed check removed.
3342 (ix86_sched_reorder): Fix typo and formatting.
3343 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
3344 list.
3345
3346 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
3347
3348 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
3349
3350 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
3351
3352 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
3353 <STRING_CST>: Likewise.
3354 <VECTOR_CST>: Likewise.
3355
3356 2013-06-01 Janus Weil <janus@gcc.gnu.org>
3357 Mikael Morin <mikael@gcc.gnu.org>
3358
3359 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
3360 * config.in: Regenerated.
3361 * configure: Regenerated.
3362
3363 2013-06-01 Jan Hubicka <jh@suse.cz>
3364
3365 PR middle-end/57366
3366 * cgraphunit.c (compile): When weakref is not supported,
3367 set up transparent aliases before final output pass.
3368 * varasm.c (assemble_alias): Do not try to do it here.
3369
3370 2013-06-01 Jan Hubicka <jh@suse.cz>
3371
3372 PR middle-end/57467
3373 * passes.c (for_per_function): Skip unanalyzed functions.
3374
3375 2013-06-01 Jan Hubicka <jh@suse.cz>
3376
3377 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
3378 (lto_symtab_merge_symbols_1): ... this one.
3379 (lto_symtab_merge_cgraph_nodes): Rename to ...
3380 (lto_symtab_merge_symbols): ... this one; simplify.
3381 * cgraph.c (same_body_aliases_done): Rename to ...
3382 (cpp_implicit_aliases_done): ... this one.
3383 (cgraph_create_function_alias): Update.
3384 (cgraph_same_body_alias): Update.
3385 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
3386 (verify_edge_corresponds_to_fndecl): Simplify.
3387 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
3388 (cgraph_node): Remove same_body_alias.
3389 (varpool_node): Remove alias_of and extra_name_alias.
3390 (same_body_aliases_done): Rename to ..
3391 (cpp_implicit_aliases_done): ... this one.
3392 (symtab_alias_ultimate_target): Add default parameter.
3393 (symtab_resolve_alias): New function.
3394 (fixup_same_cpp_alias_visibility): Declare.
3395 (cgraph_function_node): Add default parameter.
3396 (cgraph_node_asm_name): Likewise.
3397 (cgraph_function_or_thunk_node): Add default parameter; do
3398 not ICE when it is NULL.
3399 (varpool_variable_node): Likewise.
3400 * tree-emutls.c (create_emultls_var): Update.
3401 (ipa_lower_emutls): Update.
3402 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
3403 (cgraph_reset_node): Reset alias info.
3404 (cgraph_finalize_function): Update.
3405 (fixup_same_cpp_alias_visibility): Move to symtab.c.
3406 (analyze_function): Simplify.
3407 (cgraph_process_same_body_aliases): Simplify.
3408 (analyze_functions): Fixup same body aliases.
3409 (handle_alias_pairs): Simplify.
3410 (assemble_thunk): Update.
3411 (assemble_thunks_and_aliases): Update.
3412 (output_weakrefs): Rewrite.
3413 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
3414 (lto_output_varpool_node): Likewise.
3415 (compute_ltrans_boundary): Remve assert.
3416 (get_alias_symbol): New functoin.
3417 (input_node): Rewrite alias handling.
3418 (input_varpool_node): Likewise.
3419 * ipa-pure-const.c (propagate_pure_const): Fix formating.
3420 * ipa.c (process_references): Handle weakrefs correctly.
3421 (symtab_remove_unreachable_nodes): Likewise.
3422 * trans-mem.c (get_cg_data): Update.
3423 (ipa_tm_create_version_alias): Update.
3424 (ipa_tm_execute): Update.
3425 * symtab.c (dump_symtab_base): Dump aliases.
3426 (verify_symtab_base): Verify aliases.
3427 (symtab_node_availability): New function.
3428 (symtab_alias_ultimate_target): Simplify.
3429 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
3430 handle all the fixup cases.
3431 (symtab_resolve_alias): New function.
3432 * passes.c (ipa_write_summaries): Handle weakrefs.
3433 * varpool.c (varpool_analyze_node): Simplify.
3434 (assemble_aliases): Update.
3435 (varpool_create_variable_alias): Simplify.
3436 (varpool_extra_name_alias): Simplify.
3437 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
3438 (lto_symtab_merge_symbols): ... this one.
3439
3440 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
3441
3442 Revert
3443 PR rtl-optimization/57268
3444 * sched-deps.c (sched_analyze_2): Flush dependence lists if
3445 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
3446
3447 2013-06-01 Tobias Burnus <burnus@net-b.de>
3448
3449 Partially reverted:
3450 2013-05-31 Tobias Burnus <burnus@net-b.de>
3451
3452 PR middle-end/57073
3453 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
3454 further up.
3455
3456 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
3457
3458 PR rtl-optimization/57268
3459 * sched-deps.c (sched_analyze_2): Flush dependence lists if
3460 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
3461
3462 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
3463
3464 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
3465 unordered comparison operators when -fno-trapping-math is in effect
3466 on the e500.
3467 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
3468 and implement unordered comparison operators properly on the e500.
3469
3470 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
3471
3472 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
3473 for constant scalar integers.
3474 (simplify_relational_operation_1): Likewise.
3475
3476 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
3477
3478 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
3479 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
3480 Fix comment.
3481
3482 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
3483 Igor Zamyatin <igor.zamyatin@intel.com>
3484
3485 Silvermont (SLM) architecture performance tuning.
3486 * config/i386/i386.h (enum ix86_tune_indices): Add
3487 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
3488 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
3489
3490 * config/i386/i386.c (initial_ix86_tune_features)
3491 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
3492 (ix86_lea_outperforms): Handle Silvermont tuning.
3493 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
3494 call.
3495 (ix86_use_lea_for_mov): Likewise.
3496 (ix86_avoid_lea_for_addr): Likewise.
3497 (ix86_lea_for_add_ok): Likewise.
3498 (exact_dependency_1): New function.
3499 (exact_store_load_dependency): Likewise.
3500 (ix86_adjust_cost): Handle Silvermont tuning.
3501 (do_reoder_for_imul): Likewise.
3502 (swap_top_of_ready_list): New function.
3503 (ix86_sched_reorder): Changed to handle Silvermont tuning.
3504
3505 * config/i386/i386.md (peepholes that split memory operand in fp
3506 converts): New.
3507
3508 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
3509
3510 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3511 Remove un-necessary braces.
3512
3513 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
3514
3515 * config/aarch64/aarch64.c (aarch64_classify_symbol):
3516 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
3517
3518 2013-05-31 Tobias Burnus <burnus@net-b.de>
3519
3520 PR middle-end/57073
3521 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
3522
3523 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3524
3525 PR target/56315
3526 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
3527 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
3528 * config/arm/neon.md (iordi3_neon): Remove.
3529 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
3530 * config/arm/predicates.md (imm_for_neon_logic_operand):
3531 Move to earlier in the file.
3532 (neon_logic_op2): Likewise.
3533 (arm_iordi_operand_neon): New predicate.
3534
3535 2013-05-31 Richard Biener <rguenther@suse.de>
3536
3537 PR tree-optimization/57478
3538 PR tree-optimization/57453
3539 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
3540 are life as well.
3541
3542 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
3543
3544 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
3545 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
3546
3547 2013-05-30 Tobias Burnus <burnus@net-b.de>
3548 Thomas Koenig <tkoenig@gcc.gnu.org>
3549
3550 PR middle-end/57073
3551 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
3552 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
3553
3554 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
3555
3556 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
3557
3558 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
3559
3560 * target.def (register_usage_leveling_p): New hook.
3561 * targhooks.c (default_register_usage_leveling_p): New.
3562 * targhooks.h (default_register_usage_leveling_p): New prototype.
3563 * lra-assigns.c (register_usage_leveling_p): Use the hook.
3564 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
3565 * doc/tm.texi: Update.
3566 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
3567
3568 2013-05-30 Ian Bolton <ian.bolton@arm.com>
3569
3570 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
3571 (*insv_reg<mode>): New define_insn.
3572
3573 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
3574
3575 PR rtl-optimization/57439
3576 * postreload.c (move2add_valid_value_p): Check that we have
3577 a zero subreg_regno_offset when accessing the register in
3578 the requested mode.
3579
3580 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
3581 Igor Zamyatin <igor.zamyatin@intel.com>
3582
3583 Silvermont (SLM) architecture pipeline model, tuning and
3584 insn selection.
3585 * config.gcc: Add slm config options and target.
3586
3587 * config/i386/slm.md: New.
3588
3589 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
3590
3591 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
3592 PROCESSOR_SLM.
3593 (ix86_target_macros_internal): Likewise.
3594
3595 * gcc/config/i386/i386.c (slm_cost): New cost.
3596 (m_SLM): New macro flag.
3597 (initial_ix86_tune_features): Set m_SLM.
3598 (x86_accumulate_outgoing_args): Likewise.
3599 (x86_arch_always_fancy_math_387): Likewise.
3600 (processor_target_table): Add slm cost.
3601 (cpu_names): Add slm cpu name.
3602 (x86_option_override_internal): Set SLM ISA.
3603 (ix86_issue_rate): New case PROCESSOR_SLM.
3604 (ia32_multipass_dfa_lookahead): Likewise.
3605 (fold_builtin_cpu): Add slm.
3606
3607 * config/i386/i386.h (TARGET_SLM): New target macro.
3608 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
3609 (processor_type): Add PROCESSOR_SLM.
3610
3611 * config/i386/i386.md (cpu): Add new value "slm".
3612 (slm.md): Include slm.md.
3613
3614 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
3615 Zhenqiang Chen <zhenqiang.chen@linaro.org>
3616
3617 * config/arm/arm-protos.h: Add and update function protos.
3618 * config/arm/arm.c (use_simple_return_p): New added.
3619 (thumb2_expand_return): Check simple_return flag.
3620 * config/arm/arm.md: Add simple_return and conditional simple_return.
3621 * config/arm/iterators.md: Add iterator for return and simple_return.
3622
3623 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
3624
3625 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
3626 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
3627 (arm_emit_vfp_multi_reg_pop): Likewise.
3628 (thumb2_emit_ldrd_pop): Likewise.
3629 (arm_expand_epilogue): Add misc REG_CFA notes.
3630 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
3631
3632 2013-05-29 Lawrence Crowl <crowl@google.com>
3633
3634 * config/arm/t-arm: Update for below.
3635
3636 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
3637 Change type to hash_table. Update dependent calls and types.
3638
3639 * config/i386/t-cygming: Update for below.
3640
3641 * config/i386/t-interix: Update for below.
3642
3643 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
3644 Change type to hash_table. Update dependent calls and types.
3645 (i386_find_on_wrapper_list::wrappers): Likewise.
3646
3647 * config/ia64/t-ia64: Update for below.
3648
3649 * config/ia64/ia64.c (bundle_state_table):
3650 Change type to hash_table. Update dependent calls and types.
3651
3652 * config/mips/mips.c (mips_reorg_process_insns::htab):
3653 Change type to hash_table. Update dependent calls and types.
3654
3655 * config/sol2.c (solaris_comdat_htab):
3656 Change type to hash_table. Update dependent calls and types.
3657
3658 * config/t-sol2: Update for above.
3659
3660 2013-05-29 Teresa Johnson <tejohnson@google.com>
3661
3662 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
3663 functions are not yet marked as defined.
3664
3665 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
3666 Pat Haugen <pthaugen@us.ibm.com>
3667 Peter Bergner <bergner@vnet.ibm.com>
3668
3669 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
3670 instructions.
3671 (VEC_A): Likewise.
3672 (VEC_C): Likewise.
3673 (vrotl<mode>3): Likewise.
3674 (vashl<mode>3): Likewise.
3675 (vlshr<mode>3): Likewise.
3676 (vashr<mode>3): Likewise.
3677
3678 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3679 support for power8 V2DI builtins.
3680
3681 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
3682 power8 V2DI builtins.
3683 (vupkhsw): Likewise.
3684 (vupklsw): Likewise.
3685 (vaddudm): Likewise.
3686 (vminsd): Likewise.
3687 (vmaxsd): Likewise.
3688 (vminud): Likewise.
3689 (vmaxud): Likewise.
3690 (vpkudum): Likewise.
3691 (vpksdss): Likewise.
3692 (vpkudus): Likewise.
3693 (vpksdus): Likewise.
3694 (vrld): Likewise.
3695 (vsld): Likewise.
3696 (vsrd): Likewise.
3697 (vsrad): Likewise.
3698 (vsubudm): Likewise.
3699 (vcmpequd): Likewise.
3700 (vcmpgtsd): Likewise.
3701 (vcmpgtud): Likewise.
3702 (vcmpequd_p): Likewise.
3703 (vcmpgtsd_p): Likewise.
3704 (vcmpgtud_p): Likewise.
3705 (vupkhsw): Likewise.
3706 (vupklsw): Likewise.
3707 (vaddudm): Likewise.
3708 (vmaxsd): Likewise.
3709 (vmaxud): Likewise.
3710 (vminsd): Likewise.
3711 (vminud): Likewise.
3712 (vpksdss): Likewise.
3713 (vpksdus): Likewise.
3714 (vpkudum): Likewise.
3715 (vpkudus): Likewise.
3716 (vrld): Likewise.
3717 (vsld): Likewise.
3718 (vsrad): Likewise.
3719 (vsrd): Likewise.
3720 (vsubudm): Likewise.
3721
3722 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
3723 support for power8 V2DI instructions.
3724
3725 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
3726 power8 V2DI instructions. Combine pack and unpack insns to use an
3727 iterator for each mode. Check whether a particular mode supports
3728 Altivec instructions instead of just checking TARGET_ALTIVEC.
3729 (UNSPEC_VPKUWUM): Likewise.
3730 (UNSPEC_VPKSHSS): Likewise.
3731 (UNSPEC_VPKSWSS): Likewise.
3732 (UNSPEC_VPKUHUS): Likewise.
3733 (UNSPEC_VPKSHUS): Likewise.
3734 (UNSPEC_VPKUWUS): Likewise.
3735 (UNSPEC_VPKSWUS): Likewise.
3736 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
3737 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
3738 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
3739 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
3740 (UNSPEC_VUPKHSB): Likewise.
3741 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
3742 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
3743 (UNSPEC_VUPKHSH): Likewise.
3744 (UNSPEC_VUPKLSB): Likewise.
3745 (UNSPEC_VUPKLSH): Likewise.
3746 (VI2): Likewise.
3747 (VI_char): Likewise.
3748 (VI_scalar): Likewise.
3749 (VI_unit): Likewise.
3750 (VP): Likewise.
3751 (VP_small): Likewise.
3752 (VP_small_lc): Likewise.
3753 (VU_char): Likewise.
3754 (add<mode>3): Likewise.
3755 (altivec_vaddcuw): Likewise.
3756 (altivec_vaddu<VI_char>s): Likewise.
3757 (altivec_vadds<VI_char>s): Likewise.
3758 (sub<mode>3): Likewise.
3759 (altivec_vsubcuw): Likewise.
3760 (altivec_vsubu<VI_char>s): Likewise.
3761 (altivec_vsubs<VI_char>s): Likewise.
3762 (altivec_vavgs<VI_char>): Likewise.
3763 (altivec_vcmpbfp): Likewise.
3764 (altivec_eq<mode>): Likewise.
3765 (altivec_gt<mode>): Likewise.
3766 (altivec_gtu<mode>): Likewise.
3767 (umax<mode>3): Likewise.
3768 (smax<mode>3): Likewise.
3769 (umin<mode>3): Likewise.
3770 (smin<mode>3): Likewise.
3771 (altivec_vpkuhum): Likewise.
3772 (altivec_vpkuwum): Likewise.
3773 (altivec_vpkshss): Likewise.
3774 (altivec_vpkswss): Likewise.
3775 (altivec_vpkuhus): Likewise.
3776 (altivec_vpkshus): Likewise.
3777 (altivec_vpkuwus): Likewise.
3778 (altivec_vpkswus): Likewise.
3779 (altivec_vpks<VI_char>ss): Likewise.
3780 (altivec_vpks<VI_char>us): Likewise.
3781 (altivec_vpku<VI_char>us): Likewise.
3782 (altivec_vpku<VI_char>um): Likewise.
3783 (altivec_vrl<VI_char>): Likewise.
3784 (altivec_vsl<VI_char>): Likewise.
3785 (altivec_vsr<VI_char>): Likewise.
3786 (altivec_vsra<VI_char>): Likewise.
3787 (altivec_vsldoi_<mode>): Likewise.
3788 (altivec_vupkhsb): Likewise.
3789 (altivec_vupkhs<VU_char>): Likewise.
3790 (altivec_vupkls<VU_char>): Likewise.
3791 (altivec_vupkhsh): Likewise.
3792 (altivec_vupklsb): Likewise.
3793 (altivec_vupklsh): Likewise.
3794 (altivec_vcmpequ<VI_char>_p): Likewise.
3795 (altivec_vcmpgts<VI_char>_p): Likewise.
3796 (altivec_vcmpgtu<VI_char>_p): Likewise.
3797 (abs<mode>2): Likewise.
3798 (vec_unpacks_hi_v16qi): Likewise.
3799 (vec_unpacks_hi_v8hi): Likewise.
3800 (vec_unpacks_lo_v16qi): Likewise.
3801 (vec_unpacks_hi_<VP_small_lc>): Likewise.
3802 (vec_unpacks_lo_v8hi): Likewise.
3803 (vec_unpacks_lo_<VP_small_lc>): Likewise.
3804 (vec_pack_trunc_v8h): Likewise.
3805 (vec_pack_trunc_v4si): Likewise.
3806 (vec_pack_trunc_<mode>): Likewise.
3807
3808 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
3809 V2DI builtins.
3810 (vec_vmaxsd): Likewise.
3811 (vec_vmaxud): Likewise.
3812 (vec_vminsd): Likewise.
3813 (vec_vminud): Likewise.
3814 (vec_vpksdss): Likewise.
3815 (vec_vpksdus): Likewise.
3816 (vec_vpkudum): Likewise.
3817 (vec_vpkudus): Likewise.
3818 (vec_vrld): Likewise.
3819 (vec_vsld): Likewise.
3820 (vec_vsrad): Likewise.
3821 (vec_vsrd): Likewise.
3822 (vec_vsubudm): Likewise.
3823 (vec_vupkhsw): Likewise.
3824 (vec_vupklsw): Likewise.
3825
3826 2013-05-29 Jan Hubicka <jh@suse.cz>
3827
3828 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
3829 flags; reorder rest of fields in more consistent way.
3830 (varpool_node): Remove analyzed, finalized and alias.
3831 (cgraph_ndoe): Likewise.
3832 (symtab_alias_ultimate_target): New function.
3833 (cgraph_function_node): Move offline.
3834 (cgraph_reset_node): Declare.
3835 (cgraph_comdat_can_be_unshared_p): Remove.
3836 (varpool_remove_initializer): Declare.
3837 (varpool_first_defined_variable, varpool_next_defined_variable
3838 cgraph_first_defined_function, cgraph_next_defined_function): Update.
3839 (cgraph_function_with_gimple_body_p): Update.
3840 (varpool_all_refs_explicit_p): Update.
3841 (symtab_alias_target): New function.
3842 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
3843 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
3844 (cgraph_function_or_thunk_node): Simplify using
3845 symtab_alias_ultimate_target.
3846 (varpool_variable_node): Likewise.
3847 * cgraph.c (cgraph_create_function_alias): Update.
3848 (cgraph_add_thunk): Update.
3849 (cgraph_remove_node): Update.
3850 (dump_cgraph_node): Do not dump removed flags.
3851 (cgraph_function_body_availability): Update.
3852 (cgraph_propagate_frequency): Update.
3853 (verify_cgraph_node): Check sanity of local flag.
3854 (cgraph_function_node): Move here from cgraph.h; revamp for
3855 cgraph_function_or_thunk_node.
3856 * lto-symtab.c (lto_varpool_replace_node): Update.
3857 (lto_symtab_resolve_can_prevail_p): Update.
3858 (lto_symtab_merge_cgraph_nodes): Update.
3859 * ipa-cp.c (determine_versionability, initialize_node_lattices,
3860 propagate_constants_accross_call, devirtualization_time_bonus,
3861 ipcp_propagate_stage): Update.
3862 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
3863 * ipa-inline-transform.c (clone_inlined_nodes,
3864 preserve_function_body_p): Update.
3865 * ipa-reference.c (propagate): Update.
3866 (write_node_summary_p): Update.
3867 * toplev.c (wrapup_global_declaration_2): Update.
3868 * cgraphunit.c (cgraph_analyze_function): Rename to ...
3869 (analyze_function) ... this one.
3870 (cgraph_process_new_functions): Update.
3871 (cgraph_reset_node): Export.
3872 (cgraph_finalize_function): Update.
3873 (cgraph_add_new_function): Update.
3874 (process_function_and_variable_attributes): Update.
3875 (varpool_finalize_decl): Update.
3876 (symbol_finalized): Remove.
3877 (symbol_finalized_and_needed): Rename to ...
3878 (symbol_defined_and_needed): ... update.
3879 (cgraph_analyze_functions): Update.
3880 (handle_alias_pairs): Update.
3881 (mark_functions_to_output): Update.
3882 (assemble_thunk): Update.
3883 (output_in_order): Update.
3884 (output_weakrefs): Update.
3885 (finalize_compilation_unit): Update.
3886 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
3887 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
3888 input_node, input_varpool_node): Update.
3889 * dbxout.c (dbxout_expand_expr): Update.
3890 * cgraphclones.c (cgraph_clone_node): Update.
3891 (cgraph_copy_node_for_versioning): Update.
3892 (cgraph_materialize_clone): Update.
3893 (cgraph_materialize_all_clones): Update.
3894 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
3895 propagate_pure_const, propagate_nothrow): Update.
3896 * lto-streamer-out.c (lto_output, write_symbol): Update.
3897 * ipa-utils.c (ipa_reverse_postorder): Update.
3898 * ipa-inline.c (can_inline_edge_p): Update.
3899 (update_caller_keys, ipa_inline): Update.
3900 * dwarf2out.c (reference_to_unused,
3901 premark_types_used_by_global_vars_helper): Update.
3902 * tree-eh.c (tree_could_trap_p): Update.
3903 * ipa-split.c (consider_split, execute_split_functions): Update.
3904 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
3905 has_addr_references_p): Update; move ahead in file for better
3906 readability.
3907 (process_references): Simplify.
3908 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
3909 bodies are removed.
3910 (cgraph_comdat_can_be_unshared_p): Make static.
3911 (cgraph_externally_visible_p): Update.
3912 (varpool_externally_visible_p): Update.
3913 (function_and_variable_visibility): Update.
3914 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
3915 ipa_tm_mark_force_output_node): Update.
3916 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
3917 estimate_edge_devirt_benefit, inline_generate_summary,
3918 inline_write_summary): Update.
3919 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
3920 * ipa-prop.c (ipa_compute_jump_functions): Update.
3921 (ipa_print_node_params, ipa_prop_read_section,
3922 ipa_update_after_lto_read, read_replacements_section): Update.
3923 * varasm.c (mark_decl_referenced): Update.
3924 (assemble_alias, dump_tm_clone_pairs): Update.
3925 * tree-inline.c (copy_bb): Update.
3926 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
3927 Update.
3928 * symtab.c (dump_symtab_base): Print new flags.
3929 (verify_symtab_base): Verify new flags.
3930 (symtab_alias_ultimate_target): New function.
3931 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
3932 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
3933 Update.
3934 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
3935 Update.
3936 * i386.c (ix86_get_function_versions_dispatcher,
3937 ix86_generate_version_dispatcher_body): Update.
3938 (fold_builtin_cpu): Use varpool_add_new_variable.
3939 * varpool.c (varpool_remove_initializer): Break out from ...
3940 (varpool_remove_node): ... this one.
3941 (dump_varpool_node, varpool_node_for_asm,
3942 cgraph_variable_initializer_availability, varpool_analyze_node,
3943 varpool_assemble_decl, varpool_remove_unreferenced_decls,
3944 varpool_finalize_named_section_flags, varpool_create_variable_alias):
3945 Update.
3946
3947 2013-05-29 Jan Hubicka <jh@suse.cz>
3948
3949 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
3950
3951 2013-05-29 Easwaran Raman <eraman@google.com>
3952
3953 PR tree-optimization/57442
3954 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
3955 when control exits the main loop.
3956
3957 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
3958
3959 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
3960 and RX600.
3961 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
3962 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
3963 * rx/t-rx: Add rx100 under multi library matches option for nofpu
3964 option.
3965
3966 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3967
3968 PR tree-optimization/57441
3969 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
3970 Don't limit size of incr_vec to number of candidates.
3971
3972 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
3973
3974 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
3975 and mips16 directories.
3976 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
3977 (MULTILIB_DIRNAMES): Ditto.
3978 (MULTILIB_EXCEPTIONS): Add new exceptions.
3979 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
3980 (MULTILIB_DIRNAMES): Ditto.
3981 (MULTILIB_EXCEPTIONS): Add new exceptions.
3982
3983 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3984 Marcus Shawcroft <marcus.shawcroft@arm.com>
3985
3986 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
3987 SYMBOL_TINY_ABSOLUTE.
3988 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
3989 SYMBOL_TINY_ABSOLUTE.
3990 (aarch64_expand_mov_immediate): Likewise.
3991 (aarch64_classify_symbol): Likewise.
3992 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
3993 Permit SYMBOL_TINY_ABSOLUTE.
3994 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
3995
3996 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3997 Marcus Shawcroft <marcus.shawcroft@arm.com>
3998
3999 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
4000 Refactor if/switch. Replace gcc_assert with if.
4001
4002 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4003
4004 * config/i386/i386.c (initial_ix86_tune_features): Enable
4005 FP Reassociation for AMD bdver1 and bdver2.
4006
4007 2013-05-29 Martin Jambor <mjambor@suse.cz>
4008
4009 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
4010 and IMAGPART_EXPR do not occur within other handled_components.
4011
4012 2013-05-29 Richard Biener <rguenther@suse.de>
4013
4014 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
4015 access on whether the use is in the BB we currently try to
4016 vectorize.
4017 (vect_bb_vectorization_profitable_p): Pass the BB we currently
4018 vectorize to vect_bb_slp_scalar_cost.
4019
4020 2013-05-29 Richard Biener <rguenther@suse.de>
4021
4022 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
4023 computing scalar cost offsetted by stmts that are kept live
4024 by scalar uses.
4025 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
4026 for computation of scalar cost.
4027
4028 2013-05-28 Steve Ellcey <sellcey@mips.com>
4029
4030 * config/mips/mips-cpus.def (mips32r2): Change processor type.
4031
4032 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
4033
4034 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
4035 array notation built-in reduction functions.
4036 * doc/passes.texi (Passes): Added documentation about changes done
4037 for Cilk Plus.
4038 * doc/invoke.texi (C Dialect Options): Added documentation about
4039 the -fcilkplus flag.
4040 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
4041 (BUILTINS_DEF): Depend on cilkplus.def.
4042 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
4043 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
4044 * cilkplus.def: New file.
4045
4046 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
4047
4048 PR rtl-optimization/57439
4049 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
4050
4051 2013-05-28 Easwaran Raman <eraman@google.com>
4052
4053 PR tree-optimization/57337
4054 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
4055 (find_insert_point): Correctly identify the insertion point
4056 when two statements with the same UID is compared.
4057
4058 2013-05-28 Richard Biener <rguenther@suse.de>
4059
4060 PR tree-optimization/56787
4061 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
4062 from the list of data references.
4063 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
4064 clobbers.
4065 (vect_analyze_loop_operations): Likewise.
4066 (vect_transform_loop): Remove clobbers.
4067
4068 2013-05-28 Martin Jambor <mjambor@suse.cz>
4069
4070 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
4071 and REALPART_EXPRs have scalar type.
4072
4073 2013-05-28 Richard Biener <rguenther@suse.de>
4074
4075 PR tree-optimization/57411
4076 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
4077 virtual operands.
4078 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
4079 virtual operand propagation.
4080
4081 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
4082
4083 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
4084 destination register for bmasksi_vis.
4085 (vector_init_bshuffle): Likewise.
4086 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
4087
4088 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
4089
4090 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
4091 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
4092 mode if the instruction isn't available in the original mode.
4093 * config/sparc/sparc.opt (mfix-ut699): New option.
4094 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
4095 (divdf3): Turn into expander.
4096 (divdf3_nofix): New insn.
4097 (divdf3_fix): Likewise.
4098 (divsf3): Disable if -mfix-ut699.
4099 (sqrtdf2): Turn into expander.
4100 (sqrtdf2_nofix): New insn.
4101 (sqrtdf2_fix): Likewise.
4102 (sqrtsf2): Disable if -mfix-ut699.
4103
4104 2013-05-27 Richard Biener <rguenther@suse.de>
4105
4106 PR middle-end/57412
4107 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
4108 block for the new loop.
4109
4110 2013-05-27 Richard Biener <rguenther@suse.de>
4111
4112 PR tree-optimization/57343
4113 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
4114 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
4115 (number_of_iterations_cond): Do not build the folded tree.
4116
4117 2013-05-27 Richard Biener <rguenther@suse.de>
4118
4119 Revert
4120 PR middle-end/57381
4121 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
4122 OEP_CONSTANT_ADDRESS_OF retained.
4123
4124 PR tree-optimization/57417
4125 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
4126 for unchanged base.
4127 (set_ssa_val_to): Compare addresses using
4128 get_addr_base_and_unit_offset.
4129
4130 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
4131
4132 PR rtl-optimization/56833
4133 * postreload.c (move2add_record_mode): New function.
4134 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
4135 (move2add_use_add2_insn): Use move2add_record_sym_value.
4136 (move2add_use_add3_insn): Likewise.
4137 (reload_cse_move2add): Use move2add_valid_value_p and
4138 move2add_record_mode. Invalidate call-clobbered and REG_INC
4139 affected regs by setting reg_mode to VOIDmode.
4140 (move2add_note_store): Don't pretend the inside of a SUBREG is
4141 the actual destination. Invalidate single/leading registers by
4142 setting reg_mode to VOIDmode.
4143 Use move2add_record_sym_value, move2add_valid_value_p and
4144 move2add_record_mode.
4145
4146 2013-05-27 Richard Biener <rguenther@suse.de>
4147
4148 PR tree-optimization/57396
4149 * tree-affine.c (double_int_constant_multiple_p): Properly
4150 return false for val == 0 and div != 0.
4151
4152 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
4153
4154 * config/mips/mips.h: Use #elif in preprocessor conditions.
4155
4156 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
4157
4158 PR target/53916
4159 * config/mips/constraints.md (kl): New constraint.
4160 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
4161 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
4162 constraint for operand 0. Split after CSE for MIPS16. Emit a move
4163 from LO for MIPS16.
4164 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
4165
4166 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
4167
4168 PR target/55777
4169 * config/mips/mips.c (mips_can_inline_p): New function.
4170 (TARGET_CAN_INLINE_P): Define.
4171
4172 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
4173
4174 * sched-int.h (ds_t, dw_t): Make unsigned int.
4175 Fix documentation that describes how all the ds_t bits are used.
4176 Reserve the last bit for delayed-branch scheduling.
4177 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
4178 (BITS_PER_DEP_WEAK): Fix definition and documentation.
4179 (gen_dep_weak_1): Remove prototype.
4180 * sched-deps.c (get_dep_weak_1): Make static.
4181 * target.def (speculate_insn, needs_block_p, gen_spec_check,
4182 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
4183 * doc/tm.texi: Regenerate.
4184 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
4185
4186 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
4187
4188 PR debug/56950
4189 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
4190
4191 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
4192 Sandra Loosemore <sandra@codesourcery.com>
4193
4194 * config.gcc (powerpc-*): Allow native for with-cpu.
4195
4196 2013-05-24 Jeff Law <law@redhat.com>
4197
4198 PR tree-optimization/57124
4199 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
4200 conversion feeding a condition if the range has an overflow
4201 if -fstrict-overflow. Add warnings for when we do make the
4202 transformation.
4203
4204 2013-05-24 Dehao Chen <dehao@google.com>
4205
4206 * tree-cfg.c (locus_discrim_map): Fix the typo.
4207 (locus_discrim_hasher): Likewise.
4208 (locus_discrim_hasher::hash): Likewise.
4209 (locus_discrim_hasher::equal): Likewise.
4210
4211 2013-05-24 Martin Jambor <mjambor@suse.cz>
4212
4213 PR tree-optimization/57294
4214 * cgraph.h (ipa_record_stmt_references): Declare.
4215 * cgraphbuild.c (ipa_record_stmt_references): New function.
4216 (build_cgraph_edges): Use ipa_record_stmt_references.
4217 (rebuild_cgraph_edges): Likewise.
4218 (cgraph_rebuild_references): Likewise.
4219 * ipa-prop.c (ipa_modify_call_arguments): Discard references
4220 associated with the old statement and build references from the
4221 newly built statements.
4222 * ipa-ref.c (ipa_remove_stmt_references): New function.
4223 * ipa-ref.h (ipa_remove_stmt_references): Declare.
4224
4225 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
4226
4227 * lra-constraints.c (emit_spill_move): Use smaller mode for
4228 mem-mem moves.
4229 (check_and_process_move): Consider mem-reg moves for secondary
4230 too.
4231 (curr_insn_transform): Don't lose insns emitted before for
4232 secondary memory moves.
4233 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
4234 reg set up in the current insn.
4235
4236 2013-05-24 Dehao Chen <dehao@google.com>
4237
4238 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
4239 hash function.
4240 (locus_descrim_hasher::equal): Likewise.
4241 (build_gimple_cfg): New discriminator assignment algorithm.
4242 (make_edges): Likewise.
4243 (next_discriminator_for_locus): Likewise.
4244 (same_line_p): Likewise.
4245 (assign_discriminators): Likewise.
4246 (make_cond_expr_edges): Likewise.
4247 (make_gimple_switch_edges): Likewise.
4248 (make_goto_expr_edges): Likewise.
4249 (make_gimple_asm_edges): Likewise.
4250
4251 2013-05-24 Ian Bolton <ian.bolton@arm.com>
4252
4253 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
4254 X format specifier to only display bottom 16 bits.
4255 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
4256 immediate to match for operand 2, since it will be masked.
4257
4258 2013-05-24 Richard Biener <rguenther@suse.de>
4259
4260 PR tree-optimization/57287
4261 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
4262 all SSA names that occur in abnormal PHIs.
4263
4264 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
4265
4266 PR tree-ssa/57385
4267 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
4268 that index is not negative.
4269
4270 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
4271
4272 PR rtl-optimization/55177
4273 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
4274 (simplify_byte_swapping_operation): New.
4275 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
4276 (simplify_relational_operation_1): Deal with BSWAP.
4277
4278 2013-05-23 Richard Henderson <rth@redhat.com>
4279
4280 PR target/56742
4281 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
4282 (ix86_reorg): Call it.
4283
4284 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
4285
4286 PR target/57379
4287 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
4288 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
4289 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
4290
4291 2013-05-23 Christian Bruel <christian.bruel@st.com>
4292
4293 PR debug/57351
4294 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
4295
4296 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4297 Marcus Shawcroft <marcus.shawcroft@arm.com>
4298
4299 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
4300 * config/aarch64/constraints.md (Usa): Remove.
4301 * doc/md.texi (AArch64 Usa): Remove.
4302
4303 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4304 Marcus Shawcroft <marcus.shawcroft@arm.com>
4305
4306 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
4307 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
4308 * config/aarch64/predicates.md (aarch64_const_address): Remove.
4309 (aarch64_mov_operand): Use aarch64_mov_operand_p.
4310
4311 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
4312
4313 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
4314 instruction (AdvSIMD).
4315 * config/aarch64/aarch64-builtins.c
4316 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
4317 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
4318
4319 2013-05-23 Martin Jambor <mjambor@suse.cz>
4320
4321 PR middle-end/57347
4322 * tree.h (contains_bitfld_component_ref_p): Declare.
4323 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
4324 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
4325 caller.
4326 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
4327 not access a bit-field. Assert all final offsets are byte-aligned.
4328
4329 2013-05-23 Richard Biener <rguenther@suse.de>
4330
4331 PR tree-optimization/57380
4332 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
4333 least one invariant or re-used load.
4334 * passes.c (init_optimization_passes): Move pass_phiprop before
4335 pass_forwprop.
4336
4337 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
4338
4339 * config/aarch64/aarch64-simd.md
4340 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
4341
4342 2013-05-23 Richard Biener <rguenther@suse.de>
4343
4344 PR middle-end/57381
4345 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
4346 OEP_CONSTANT_ADDRESS_OF retained.
4347
4348 2013-05-23 Jakub Jelinek <jakub@redhat.com>
4349
4350 PR middle-end/57344
4351 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
4352 don't lower unit. Handle unit not being always BITS_PER_WORD.
4353
4354 2013-05-23 Richard Biener <rguenther@suse.de>
4355
4356 PR rtl-optimization/57341
4357 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
4358 instead of true_dependence.
4359
4360 2013-05-22 David Malcolm <dmalcolm@redhat.com>
4361
4362 * bb-reorder.c (branch_threshold): Make const.
4363 (exec_threshold): Ditto.
4364
4365 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4366 Pat Haugen <pthaugen@us.ibm.com>
4367 Peter Bergner <bergner@vnet.ibm.com>
4368
4369 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
4370 documentation for the power8 crypto builtins.
4371
4372 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
4373
4374 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
4375 macros for defining power8 builtin functions.
4376 (BU_P8V_AV_2): Likewise.
4377 (BU_P8V_AV_P): Likewise.
4378 (BU_P8V_VSX_1): Likewise.
4379 (BU_P8V_OVERLOAD_1): Likewise.
4380 (BU_P8V_OVERLOAD_2): Likewise.
4381 (BU_CRYPTO_1): Likewise.
4382 (BU_CRYPTO_2): Likewise.
4383 (BU_CRYPTO_3): Likewise.
4384 (BU_CRYPTO_OVERLOAD_1): Likewise.
4385 (BU_CRYPTO_OVERLOAD_2): Likewise.
4386 (XSCVSPDP): Fix typo, point to the correct instruction.
4387 (VCIPHER): Add power8 crypto builtins.
4388 (VCIPHERLAST): Likewise.
4389 (VNCIPHER): Likewise.
4390 (VNCIPHERLAST): Likewise.
4391 (VPMSUMB): Likewise.
4392 (VPMSUMH): Likewise.
4393 (VPMSUMW): Likewise.
4394 (VPERMXOR_V2DI): Likewise.
4395 (VPERMXOR_V4SI: Likewise.
4396 (VPERMXOR_V8HI: Likewise.
4397 (VPERMXOR_V16QI: Likewise.
4398 (VSHASIGMAW): Likewise.
4399 (VSHASIGMAD): Likewise.
4400 (VPMSUM): Likewise.
4401 (VPERMXOR): Likewise.
4402 (VSHASIGMA): Likewise.
4403
4404 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
4405 __CRYPTO__ if the crypto instructions are available.
4406 (altivec_overloaded_builtins): Add support for overloaded power8
4407 builtins.
4408
4409 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
4410 support for power8 crypto builtins.
4411 (builtin_function_type): Likewise.
4412 (altivec_init_builtins): Add support for builtins that take vector
4413 long long (V2DI) arguments.
4414
4415 * config/rs6000/crypto.md: New file, define power8 crypto
4416 instructions.
4417
4418 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4419 Pat Haugen <pthaugen@us.ibm.com>
4420 Peter Bergner <bergner@vnet.ibm.com>
4421
4422 * doc/invoke.texi (Option Summary): Add power8 options.
4423 (RS/6000 and PowerPC Options): Likewise.
4424
4425 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
4426 constraints.md instead of rs6000.h. Reorder w* constraints. Add
4427 wm, wn, wr documentation.
4428
4429 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
4430 registers if direct move instructions are enabled.
4431 (wn): New constraint for no registers.
4432 (wq): New constraint for quad word even GPR registers.
4433 (wr): New constraint if 64-bit instructions are enabled.
4434 (wv): New constraint if power8 vector instructions are enabled.
4435 (wQ): New constraint for quad word memory locations.
4436
4437 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
4438 constraint for 0..15 for crypto instructions.
4439 (gpc_reg_operand): If VSX allow registers in VSX registers as well
4440 as GPR and floating point registers.
4441 (int_reg_operand): New predicate to match only GPR registers.
4442 (base_reg_operand): New predicate to match base registers.
4443 (quad_int_reg_operand): New predicate to match even GPR registers
4444 for quad memory operations.
4445 (vsx_reg_or_cint_operand): New predicate to allow vector logical
4446 operations in both GPR and VSX registers.
4447 (quad_memory_operand): New predicate for quad memory operations.
4448 (reg_or_indexed_operand): New predicate for direct move support.
4449
4450 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
4451 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
4452 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
4453 (POWERPC_MASKS): Add power8 options.
4454 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
4455 various options.
4456
4457 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
4458 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
4459
4460 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
4461 (-mpower8-fusion): New power8 options.
4462 (-mpower8-fusion-sign): Likewise.
4463 (-mpower8-vector): Likewise.
4464 (-mcrypto): Likewise.
4465 (-mdirect-move): Likewise.
4466 (-mquad-memory): Likewise.
4467
4468 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
4469 power8.
4470 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
4471 registers.
4472 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
4473 (rs6000_debug_vector_unit): Add p8_vector.
4474 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
4475 definitions. Also print fusion state.
4476 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
4477 (rs6000_builtin_mask_calculate): Add power8 builtin support.
4478 (rs6000_option_override_internal): Add support for power8.
4479 (rs6000_common_init_builtins): Add debugging for skipped builtins
4480 if -mdebug=builtin.
4481 (rs6000_adjust_cost): Add power8 support.
4482 (rs6000_issue_rate): Likewise.
4483 (insn_must_be_first_in_group): Likewise.
4484 (insn_must_be_last_in_group): Likewise.
4485 (force_new_group): Likewise.
4486 (rs6000_register_move_cost): Likewise.
4487 (rs6000_opt_masks): Likewise.
4488
4489 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
4490 power8 capable assembler, default to power7 options.
4491 (TARGET_DIRECT_MOVE): Likewise.
4492 (TARGET_CRYPTO): Likewise.
4493 (TARGET_P8_VECTOR): Likewise.
4494 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
4495 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
4496 (VECTOR_MEM_P8_VECTOR_P): Likewise.
4497 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
4498 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
4499 (TARGET_XSCVDPSPN): Likewise.
4500 (TARGET_XSCVSPDPN): Likewsie.
4501 (TARGET_SYNC_HI_QI): Likewise.
4502 (TARGET_SYNC_TI): Likewise.
4503 (MASK_CRYPTO): Likewise.
4504 (MASK_DIRECT_MOVE): Likewise.
4505 (MASK_P8_FUSION): Likewise.
4506 (MASK_P8_VECTOR): Likewise.
4507 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
4508 temporary used by some of the direct move instructions to get two FP
4509 temporary registers does not force creation of a stack frame.
4510 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
4511 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
4512 that any VSX registers are tieable, even if they are also an
4513 Altivec vector mode.
4514 (r6000_reg_class_enum): Add wm, wr, wv constraints.
4515 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
4516 (RS6000_BTM_CRYPTO): Likewise.
4517 (RS6000_BTM_COMMON): Likewise.
4518
4519 * config/rs6000/rs6000.md (cpu attribute): Add power8.
4520 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
4521 (enum rs6000_vector): Add power8 vector support.
4522
4523 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4524
4525 PR target/19599
4526 PR target/57340
4527 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
4528 (any_sibcall_could_use_r3): this and handle indirect calls.
4529 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
4530
4531 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4532
4533 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
4534
4535 2013-05-22 Richard Biener <rguenther@suse.de>
4536
4537 PR middle-end/57349
4538 * profile.c (branch_prob): Do not split blocks that are
4539 abnormally receiving from ECF_RETURNS_TWICE functions.
4540
4541 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
4542
4543 * recog.c (offsettable_address_addr_space_p): Fix calculation of
4544 address mode. Move pointer mode initialization to the same place.
4545
4546 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4547
4548 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
4549 while it has any effect.
4550
4551 2013-05-21 Easwaran Raman <eraman@google.com>
4552
4553 PR tree-optimization/57322
4554 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
4555 UID of the statement added to the BB to be 1.
4556
4557 2013-05-21 Jakub Jelinek <jakub@redhat.com>
4558
4559 PR tree-optimization/57331
4560 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
4561 of conversion from pointer type to integral type with integer.
4562
4563 2013-05-21 Martin Jambor <mjambor@suse.cz>
4564
4565 PR lto/57289
4566 * ipa-prop.c (ipa_read_node_info): Process param_used and
4567 controlled_uses in the same order as when writing.
4568
4569 2013-05-21 Magnus Granberg <baldrick@free.fr>
4570
4571 PR plugins/56754
4572 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
4573
4574 2013-05-21 Richard Biener <rguenther@suse.de>
4575
4576 PR tree-optimization/57318
4577 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
4578 estimate stmts with side-effects as likely eliminated.
4579
4580 2013-05-21 Richard Biener <rguenther@suse.de>
4581
4582 PR tree-optimization/57330
4583 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
4584 preserve the call stmts fntype.
4585
4586 2013-05-21 Richard Biener <rguenther@suse.de>
4587
4588 PR tree-optimization/57303
4589 * tree-ssa-sink.c (statement_sink_location): Improve killing
4590 stmt detection and properly handle self-assignments.
4591
4592 2013-05-21 Christian Bruel <christian.bruel@st.com>
4593
4594 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
4595 spanning registers. LEAF_REG_REMAP is supported only for contiguous
4596 registers. Set register size out of the PARALLEL loop.
4597
4598 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
4599
4600 PR target/56547
4601 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
4602 (*fmasf4, *fmasf4_media): New insns.
4603
4604 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
4605
4606 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
4607 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
4608 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
4609 (mips_idiv_insns): Update the comments to say that the returned
4610 instruction counts are in units of BASE_INSN_LENGTH.
4611 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
4612 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
4613 using 2 rather than 4 as the length of indirect MIPS16 and
4614 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
4615 length of a NOP. Don't divide MIPS16 lengths by 2.
4616 (mips16_split_long_branches): Assume a branch is long if the
4617 length is greater than 4 rather than 8.
4618 * config/mips/mips.md (length): Give MIPS16 lengths directly,
4619 rather than multiplying them by 2. Multiply instruction counts
4620 by BASE_INSN_LENGTH rather than 4.
4621 (*jump_mips16, tls_get_tp_mips16_<mode>)
4622 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
4623
4624 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
4625
4626 * config/mips/mips.md (extended_mips16): Remove branch case.
4627 (length): Remove duplicated extended_mips16 test.
4628
4629 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
4630
4631 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
4632
4633 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
4634
4635 * recog.h (Recog_data): Rename to...
4636 (recog_data_d): ...this.
4637 (recog_data): Update accordingly.
4638 * recog.c (recog_data): Likewise.
4639 * reload.c (save_recog_data): Likewise.
4640 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
4641 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
4642
4643 2013-05-17 Julian Brown <julian@codesourcery.com>
4644
4645 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
4646 found in a REG_EQUAL note, invalidate it.
4647
4648 2013-05-17 Easwaran Raman <eraman@google.com>
4649
4650 * tree-ssa-reassoc.c (find_insert_point): New function.
4651 (insert_stmt_after): Likewise.
4652 (get_def_stmt): Likewise.
4653 (ensure_ops_are_available): Likewise.
4654 (not_dominated_by): Likewise.
4655 (rewrite_expr_tree): Do not move statements beyond what is
4656 necessary. Remove call to swap_ops_for_binary_stmt...
4657 (reassociate_bb): ... and move it here.
4658 (build_and_add_sum): Assign UIDs for new statements.
4659 (linearize_expr): Likewise.
4660 (do_reassoc): Renumber gimple statement UIDs.
4661
4662 2013-05-17 Jan Hubicka <jh@suse.cz>
4663
4664 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
4665 weakrefs.
4666 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
4667 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
4668 weakrefs.
4669 (output_weakrefs): Update.
4670
4671 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
4672 Martin Jambor <mjambor@suse.cz>
4673
4674 PR middle-end/57276
4675 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
4676 value that corresponds to the given aggval is found in values vector.
4677
4678 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
4679
4680 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
4681 sse, sse2, sse3, ssse3 and sse4a flags to options.
4682
4683 2013-05-17 David Malcolm <dmalcolm@redhat.com>
4684
4685 * gengtype-state.c: (s_expr_writer): New class, to handle
4686 prettifying of output layout of s-expressions.
4687 (state_writer): New class, to write out gtype.state.
4688 (state_written_type_count): Move this variable into member data of
4689 state_writer.
4690 (s_expr_writer::s_expr_writer): New code: constructor for new class
4691 (state_writer::state_writer(): ditto
4692 (s_expr_writer::write_new_line): New function
4693 (s_expr_writer::write_any_indent): ditto
4694 (s_expr_writer::begin_s_expr): ditto
4695 (s_expr_writer::end_s_expr): ditto
4696 (write_state_fileloc): convert to method of state_writer...
4697 (state_writer:: write_state_fileloc): ...and use methods of
4698 s_expr_writer to write indentation into the gtype.state output file
4699 to visually represent the hierarchical structure of the list
4700 structures
4701 (write_state_fields): ditto, renaming to...
4702 (state_writer::write_state_fields)
4703 (write_state_a_string): ditto, renaming to...
4704 (state_writer::write_state_a_string)
4705 (write_state_string_option): ditto, renaming to...
4706 (state_writer::write_state_string_option)
4707 (write_state_type_option): ditto, renaming to...
4708 (state_writer::write_state_type_option)
4709 (write_state_nested_option): ditto, renaming to...
4710 (state_writer::write_state_nested_option)
4711 (write_state_option): ditto, renaming to...
4712 (state_writer::write_state_option)
4713 (write_state_options): ditto, renaming to...
4714 (state_writer::write_state_options)
4715 (write_state_lang_bitmap): ditto, renaming to...
4716 (state_writer::write_state_lang_bitmap)
4717 (write_state_version): ditto, renaming to...
4718 (state_writer::write_state_version)
4719 (write_state_scalar_type): ditto, renaming to...
4720 (state_writer::write_state_scalar_type)
4721 (write_state_string_type): ditto, renaming to...
4722 (state_writer::write_state_string_type)
4723 (write_state_undefined_type): ditto, renaming to...
4724 (state_writer::write_state_undefined_type)
4725 (write_state_struct_union_type): ditto, renaming to...
4726 (state_writer::write_state_struct_union_type)
4727 (write_state_struct_type): ditto, renaming to...
4728 (state_writer::write_state_struct_type)
4729 (write_state_user_struct_type): ditto, renaming to...
4730 (state_writer::write_state_user_struct_type)
4731 (write_state_lang_struct_type): ditto, renaming to...
4732 (state_writer::write_state_lang_struct_type)
4733 (write_state_param_struct_type): ditto, renaming to...
4734 (state_writer::write_state_param_struct_type)
4735 (write_state_pointer_type): ditto, renaming to...
4736 (state_writer::write_state_pointer_type)
4737 (write_state_array_type): ditto, renaming to...
4738 (state_writer::write_state_array_type)
4739 (write_state_gc_used): ditto, renaming to...
4740 (state_writer::write_state_gc_used)
4741 (write_state_common_type_content): ditto, renaming to...
4742 (state_writer::write_state_common_type_content)
4743 (write_state_type): ditto, renaming to...
4744 (state_writer::write_state_type)
4745 (write_state_pair_list): ditto, renaming to...
4746 (state_writer::write_state_pair_list)
4747 (write_state_pair): ditto, renaming to...
4748 (state_writer::write_state_pair)
4749 (write_state_typedefs): ditto, renaming to...
4750 (state_writer::write_state_typedefs)
4751 (write_state_structures): ditto, renaming to...
4752 (state_writer::write_state_structures)
4753 (write_state_param_structs): ditto, renaming to...
4754 (state_writer::write_state_param_structs)
4755 (write_state_variables): ditto, renaming to...
4756 (state_writer::write_state_variables)
4757 (write_state_srcdir): ditto, renaming to...
4758 (state_writer::write_state_srcdir)
4759 (write_state_files_list): ditto, renaming to...
4760 (state_writer::write_state_files_list)
4761 (write_state_languages): ditto, renaming to...
4762 (state_writer::write_state_languages)
4763 (write_state): create a state_writer instance and use it when
4764 writing out the state file
4765
4766 2013-05-17 Mike Stump <mikestump@comcast.net>
4767
4768 PR rtl-optimization/57304
4769 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
4770 accessing DF_REF_REAL_LOC.
4771
4772 2013-05-17 Jakub Jelinek <jakub@redhat.com>
4773
4774 PR rtl-optimization/57281
4775 PR rtl-optimization/57300
4776 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
4777 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
4778 what the other splitter did if the registers are dead.
4779
4780 2013-05-17 Richard Biener <rguenther@suse.de>
4781
4782 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
4783 MEM_REF offsets.
4784
4785 2013-05-17 Jakub Jelinek <jakub@redhat.com>
4786
4787 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
4788 linking.
4789
4790 2013-05-17 Marek Polacek <polacek@redhat.com>
4791
4792 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
4793 length when doing non-zero store of storing '\0' to '\0'.
4794
4795 2013-05-17 Jakub Jelinek <jakub@redhat.com>
4796
4797 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
4798 vect_external_def oprnd1 with loop_vinfo, try to emit
4799 optional cast, negation and and stmts on the loop preheader
4800 edge instead of into the pattern def seq.
4801
4802 PR tree-optimization/57051
4803 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
4804 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
4805
4806 2013-05-16 Nick Clifton <nickc@redhat.com>
4807
4808 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
4809 (rl78_is_naked_func): New function.
4810 (rl78_expand_prologue): Skip prologue generation for naked functions.
4811 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
4812 * doc/extend.texi (naked): Add RL78 to the list of processors
4813 that supports this attribute.
4814
4815 2013-05-16 Jeff Law <law@redhat.com>
4816
4817 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
4818
4819 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
4820
4821 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
4822 cache parameters using detect_caches_amd also for CYRIX,
4823 NSC and TM2 signatures.
4824
4825 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
4826 Dzianis Kahanovich <mahatma@eu.by>
4827
4828 PR target/45359
4829 PR target/46396
4830 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4831 VIA/Centaur processors and determine their cache parameters
4832 using detect_caches_amd.
4833
4834 2013-05-16 Teresa Johnson <tejohnson@google.com>
4835
4836 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
4837 (rtl_verify_edges): New function.
4838 (rtl_verify_bb_insns): Ditto.
4839 (rtl_verify_bb_pointers): Ditto.
4840 (rtl_verify_bb_insn_chain): Ditto.
4841 (rtl_verify_fallthru): Ditto.
4842 (rtl_verify_bb_layout): Ditto.
4843 (rtl_verify_flow_info_1): Outline checks into new functions.
4844 (rtl_verify_flow_info): Ditto.
4845
4846 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
4847
4848 * cfghooks.c (copy_bbs): Add update_dominance argument.
4849 * cfghooks.h (copy_bbs): Update prototype.
4850 * tree-cfg.c (gimple_duplicate_sese_region):
4851 Add update_dominance argument.
4852 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
4853 * tree-ssa-loop-ch.c (copy_loop_headers): Update
4854 gimple_duplicate_sese_region call.
4855 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
4856 Update copy_bbs call.
4857 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
4858 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
4859
4860 2013-05-16 Jakub Jelinek <jakub@redhat.com>
4861
4862 * tree-vectorizer.h (NUM_PATTERNS): Increment.
4863 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
4864 vect_recog_rotate_pattern.
4865 (vect_recog_rotate_pattern): New function.
4866
4867 2013-05-16 Jason Merrill <jason@redhat.com>
4868
4869 * Makefile.in (LLINKER): New variable.
4870 (mostlyclean): Remove link mutex.
4871 * configure.ac: Handle --enable-link-mutex.
4872 * lock-and-run.sh: New script.
4873
4874 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4875
4876 PR target/19599
4877 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
4878 for NULL decl.
4879
4880 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4881
4882 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
4883
4884 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
4885
4886 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
4887 * config/arm/arm.c (next_consecutive_mem): New function.
4888 (gen_movmem_ldrd_strd): Likewise.
4889 * config/arm/arm.md (movmemqi): Update condition and code.
4890 (unaligned_loaddi, unaligned_storedi): New patterns.
4891
4892 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4893
4894 * config.gcc: Obsolete *-*-solaris2.9*.
4895 * doc/install.texi (Specific, *-*-solaris2*): Document it.
4896
4897 2013-05-16 Richard Biener <rguenther@suse.de>
4898
4899 * passes.c (init_optimization_passes): Move pass_parallelize_loops
4900 earlier, after GRAPHITE transforms and IV canonicalization.
4901
4902 2013-05-16 Jakub Jelinek <jakub@redhat.com>
4903
4904 * omp-low.c (extract_omp_for_data): For collapsed loops,
4905 if at least one of the loops is known at compile time to
4906 iterate zero times, set count to 0.
4907 (expand_omp_regimplify_p): New function.
4908 (expand_omp_for_generic): For collapsed loops, if at least
4909 one of the loops isn't known to iterate at least once,
4910 add runtime check with setting count to 0.
4911 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
4912 For unsigned types if it isn't known at compile time that
4913 the loop will iterate at least once, add runtime check to bypass
4914 the whole loop if initial condition isn't true.
4915
4916 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
4917
4918 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
4919
4920 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
4921
4922 PR middle-end/57286
4923 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
4924 transformations to avoid an infinite loop.
4925
4926 2013-05-16 Marek Polacek <polacek@redhat.com>
4927
4928 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
4929
4930 2013-05-15 Leif Ekblad <leif@rdos.net>
4931
4932 * config/i386/i386.c (ix86_decompose_address): Use
4933 DEFAULT_TLS_SEG_REG to access TLS segment register.
4934 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
4935 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
4936 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
4937
4938 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
4939
4940 PR target/57260
4941 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
4942 sibling calls to functions that would normally be lazily bound,
4943 unless $gp is call-clobbered.
4944
4945 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
4946
4947 * config/i386/i386.c (ix86_option_override_internal): Update
4948 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
4949 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
4950 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
4951 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
4952 of TARGET_3DNOW.
4953 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
4954
4955 2013-05-15 Andreas Schwab <schwab@suse.de>
4956
4957 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
4958 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
4959 third operand.
4960
4961 2013-05-15 Teresa Johnson <tejohnson@google.com>
4962
4963 * loop-unroll.c (report_unroll_peel): Check decision before
4964 emitting unroll/peel message.
4965
4966 2013-05-15 Teresa Johnson <tejohnson@google.com>
4967
4968 * function.h (has_bb_partition): New rtl_data flag.
4969 (bb_reorder_complete): Ditto.
4970 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
4971 instead of flag_reorder_blocks_and_partition.
4972 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
4973 with some enhancements.
4974 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
4975 * bb-reorder.c (connect_traces): Check for has_bb_partition
4976 instead of flag_reorder_blocks_and_partition.
4977 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
4978 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
4979 verify_hot_cold_block_grouping.
4980 (partition_hot_cold_basic_blocks): Set has_bb_partition.
4981
4982 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4983
4984 PR target/19599
4985 * config/arm/predicates.md (call_insn_operand): New predicate.
4986 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
4987 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
4988 if insn is not a tail call.
4989 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
4990 registers.
4991 * config/arm/arm.h (enum reg_class): New caller save register class.
4992 (REG_CLASS_NAMES): Likewise.
4993 (REG_CLASS_CONTENTS): Likewise.
4994 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
4995 without decls.
4996
4997 2013-05-15 Richard Biener <rguenther@suse.de>
4998
4999 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
5000 of MSG_OPTIMIZED_LOCATIONS.
5001 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
5002 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
5003 message.
5004 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
5005 of MSG_OPTIMIZED_LOCATIONS.
5006 (execute_vect_slp): Likewise.
5007 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
5008 (vect_create_cond_for_alias_checks): Likewise.
5009 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
5010 (vect_recog_widen_mult_pattern): Likewise.
5011 (vect_recog_widen_sum_pattern): Likewise.
5012 (vect_recog_over_widening_pattern): Likewise.
5013 (vect_recog_widen_shift_pattern): Likewise.
5014 (vect_recog_vector_vector_shift_pattern): Likewise.
5015 (vect_recog_divmod_pattern): Likewise.
5016 (vect_recog_mixed_size_cond_pattern): Likewise.
5017 (vect_recog_bool_pattern): Likewise.
5018 (vect_pattern_recog_1): Likewise.
5019
5020 2013-05-15 Martin Jambor <mjambor@suse.cz>
5021
5022 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
5023 non-functions to builtin_unreachable.
5024 * ipa-inline-transform.c (inline_call): Do not assert estimates were
5025 correct when new direct edges were discovered.
5026
5027 2013-05-15 Martin Jambor <mjambor@suse.cz>
5028
5029 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
5030 header, print symbol order instead of node uid, print more information
5031 about indirect edge targets.
5032 (ipa_make_edge_direct_to_target): Print symbol order instead of node
5033 uids.
5034 (ipa_make_edge_direct_to_target): Likewise.
5035 (remove_described_reference): Likewise.
5036 (propagate_controlled_uses): Likewise.
5037 (ipa_print_node_params): Also print symbol order.
5038 (ipcp_transform_function): Print symbol order instead of node uids.
5039 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
5040 (cgraph_get_create_real_symbol_node): Likewise.
5041 * ipa-cp.c (print_lattice): Likewise.
5042 (print_all_lattices): Likewise.
5043 (determine_versionability): Likewise.
5044 (initialize_node_lattices): Likewise.
5045 (estimate_local_effects): Likewise.
5046 (update_profiling_info): Likewise.
5047 (create_specialized_node): Likewise.
5048 (perhaps_add_new_callers): Likewise.
5049 (decide_about_value): Likewise.
5050 (decide_whether_version_node): Likewise.
5051 (identify_dead_nodes): Likewise.
5052 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
5053 (dump_inline_summary): Likewise.
5054 (estimate_node_size_and_time): Likewise.
5055 (inline_analyze_function): Likewise.
5056 * ipa-inline.c (report_inline_failed_reason): Likewise.
5057 (want_early_inline_function_p): Likewise.
5058 (edge_badness): Likewise.
5059 (update_edge_key): Likewise.
5060 (inline_small_functions): Likewise. Add dumping of order to two other
5061 dumps.
5062 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
5063 instead of node uids.
5064 (propagate_pure_const): Likewise.
5065 (propagate_pure_const): Likewise.
5066 * ipa-utils.c (dump_cgraph_node_set): Likewise.
5067 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
5068 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
5069 of node uids.
5070 * tree-pretty-print.c (dump_function_header): Likewise.
5071 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
5072 Print symbol order instead of node uids.
5073
5074 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5075
5076 * config/s390/s390.c (s390_register_move_cost): Don't impose the
5077 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
5078
5079 2013-05-15 Richard Biener <rguenther@suse.de>
5080
5081 PR tree-optimization/57275
5082 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
5083 return value for fail to do runtime alias checks for gather loads.
5084
5085 2013-05-15 Jan Hubicka <jh@suse.cz>
5086
5087 PR lto/57038
5088 PR lto/47375
5089 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
5090 weakrefs are not external.
5091 (lto_symtab_merge_decls): Fix thinko when dealing with
5092 non-lto_symtab decls.
5093 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
5094 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
5095 * varpool.c (dump_varpool_node): Dump more flags.
5096
5097 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
5098
5099 * config/i386/i386.c (processor_alias_table): Add instruction
5100 FSGSBASE for AMD bdver3 architecture.
5101
5102 2013-05-14 Jakub Jelinek <jakub@redhat.com>
5103
5104 * tree.c (warn_deprecated_use): Print file:line using locus color.
5105 * diagnostic.c (diagnostic_report_current_module): Print file:line
5106 and file:line:column using locus color.
5107
5108 2013-05-14 Mike Stump <mikestump@comcast.net>
5109
5110 * gdbinit.in: Add __null.
5111
5112 2013-05-14 Mike Stump <mikestump@comcast.net>
5113
5114 * recog.h: Rename struct recog_data to Recog_data.
5115 * recog.c: Likewise.
5116 * reload.c (can_reload_into): Likewise.
5117 * config/picochip/picochip.c: Likewise.
5118
5119 2013-05-14 Mike Stump <mikestump@comcast.net>
5120
5121 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
5122
5123 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
5124
5125 * resource.h (struct resources): Remove unch_memory member.
5126 (CLEAR_RESOURCE): Don't clear unch_memory.
5127 * resource.c (mark_referenced_resources): Don't set it.
5128 (mark_set_resources): Likewise.
5129 (mark_target_live_regs): Don't clear it.
5130 (init_resource_info): Likewise.
5131 * reorg.c (resource_conflicts_p): Don't compare it.
5132 (redundant_insn): Don't set it.
5133
5134 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
5135 Remove prototypes.
5136 * emit-rtl.c (next_label): Remove unused function.
5137 (skip_consecutive_labels, link_cc0_insns): Move to ...
5138 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
5139 only place where these functions are used, and make them static.
5140
5141 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
5142
5143 * fold-const.c (fold_negate_expr): Handle vectors.
5144 (fold_truth_not_expr): Make it static.
5145 (fold_invert_truthvalue): New static function.
5146 (invert_truthvalue_loc): Handle vectors. Do not call
5147 fold_truth_not_expr directly.
5148 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
5149 <TRUTH_NOT_EXPR>: Do not cast to boolean.
5150 (fold_comparison): Handle vector constants.
5151 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
5152 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
5153 * tree.h (fold_truth_not_expr): Remove declaration.
5154
5155 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
5156
5157 * config/aarch64/aarch64-simd.md
5158 (aarch64_vcond_internal<mode>): Rename to...
5159 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
5160 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
5161 float modes. Clarify all iterator modes.
5162 (vcond<mode><mode>): Use new name for vcond expanders.
5163 (vcond<v_cmp_result><mode>): Likewise.
5164 (vcondu<mode><mode>: Likewise.
5165 * config/aarch64/iterators.md (VDQF_COND): New.
5166
5167 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
5168
5169 PR bootstrap/57266
5170 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
5171 variable for the shift amount. Check that we shift by non-negative
5172 amounts.
5173
5174 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
5175
5176 PR target/42017
5177 * config/arm/arm.h (EPILOGUE_USES): Only return true
5178 for LR_REGNUM after epilogue_completed.
5179
5180 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
5181
5182 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
5183 is error_mark_node.
5184
5185 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5186
5187 PR target/57261
5188 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
5189 and Solaris 11+/x86 with gld.
5190 * configure: Regenerate.
5191
5192 2013-05-14 Jakub Jelinek <jakub@redhat.com>
5193
5194 * expmed.c (expand_shift_1): Canonicalize rotates by
5195 constant bitsize / 2 to bitsize - 1.
5196 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
5197 case ROTATERT>: Likewise.
5198
5199 Revert:
5200 2013-05-10 Jakub Jelinek <jakub@redhat.com>
5201
5202 * config/i386/i386.md (rotateinv): New code attr.
5203 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
5204 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
5205 roll $31, %eax, etc.
5206
5207 2013-05-14 Richard Biener <rguenther@suse.de>
5208
5209 PR middle-end/57235
5210 * tree-eh.c (sink_clobbers): Give up for successors with
5211 multiple predecessors and no virtual uses.
5212
5213 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
5214
5215 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
5216 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
5217
5218 2013-05-14 Jakub Jelinek <jakub@redhat.com>
5219
5220 PR middle-end/57251
5221 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
5222 the case when both op0 and op1 have VOIDmode.
5223
5224 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
5225
5226 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
5227 in multiply-accumulate mode.
5228
5229 2013-05-13 Guozhi Wei <carrot@google.com>
5230
5231 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
5232
5233 2013-05-13 Kai Tietz <ktietz@redhat.com>
5234
5235 PR target/56975
5236 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
5237 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
5238 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
5239 * config/i386/i386.c (ix86_option_override_internal): Likewise.
5240 (ix86_expand_prologue): Likewise.
5241 (ix86_expand_split_stack_prologue): Likewise.
5242 (legitimate_pic_address_disp_p): Likewise.
5243 (legitimize_pic_address): Likewise.
5244 (legitimize_tls_address): Likewise.
5245 (legitimize_pe_coff_symbol): Likewise.
5246 (output_pic_addr_const): Likewise.
5247 (construct_plt_address): Likewise.
5248 (ix86_expand_call): Likewise.
5249 (x86_output_mi_thunk): Likewise.
5250 (x86_function_profiler): Likewise.
5251
5252 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
5253
5254 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
5255 similar switch cases.
5256 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
5257 (aarch64_simd_mov_to_<mode>low): Delete.
5258 (aarch64_simd_mov_to_<mode>high): Delete.
5259 (move_lo_quad_<mode>): Add w<-r alternative.
5260 (aarch64_simd_move_hi_quad_<mode>): Likewise.
5261 (aarch64_simd_mov_from_*): Update type attribute.
5262 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
5263 statement.
5264
5265 2013-05-13 Jan Hubicka <jh@suse.cz>
5266
5267 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
5268 * config/i386/i386.c (ix86_compute_frame_layout,
5269 ix86_expand_epilogue, emit_i387_cw_initialization,
5270 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
5271 ix86_local_alignment): Fix use of size/speed predicates.
5272
5273 2013-05-13 Jakub Jelinek <jakub@redhat.com>
5274
5275 PR tree-optimization/45216
5276 PR tree-optimization/57157
5277 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
5278 the (-Y) & (B - 1) variant if OP is |.
5279 * expmed.c (expand_shift_1): For rotations by const0_rtx just
5280 return shifted. Use (-op1) & (prec - 1) as other_amount
5281 instead of prec - op1.
5282
5283 2013-05-13 Martin Jambor <mjambor@suse.cz>
5284
5285 PR middle-end/42371
5286 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
5287 (ipa_constant_data): New type.
5288 (ipa_jump_func): Use ipa_constant_data to hold information about
5289 constant jump functions.
5290 (ipa_get_jf_constant): Adjust to jump function type changes.
5291 (ipa_get_jf_constant_rdesc): New function.
5292 (ipa_param_descriptor): New field controlled_uses.
5293 (ipa_get_controlled_uses): New function.
5294 (ipa_set_controlled_uses): Likewise.
5295 * ipa-ref.h (ipa_find_reference): Declare.
5296 * ipa-prop.c (ipa_cst_ref_desc): New type.
5297 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
5298 changes.
5299 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
5300 New parameter cs. Adjust all callers.
5301 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
5302 (remove_described_reference): New function.
5303 (jfunc_rdesc_usable): Likewise.
5304 (try_make_edge_direct_simple_call): Decrement controlled use count,
5305 attempt to remove reference if it hits zero.
5306 (combine_controlled_uses_counters): New function.
5307 (propagate_controlled_uses): Likewise.
5308 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
5309 (ipa_edge_duplication_hook): Duplicate reference descriptions.
5310 (ipa_print_node_params): Print described use counter.
5311 (ipa_write_jump_function): Adjust to jump function type changes.
5312 (ipa_read_jump_function): New parameter CS, pass it to
5313 ipa_set_jf_constant. Adjust caller.
5314 (ipa_write_node_info): Stream controlled use count
5315 (ipa_read_node_info): Likewise.
5316 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
5317 asserting.
5318 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
5319 count. Remove cloning-added reference if it reaches zero.
5320 * ipa-ref.c (ipa_find_reference): New function.
5321
5322 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
5323
5324 * config/i386/i386.c (processor_target_table): Modified default
5325 alignment values for AMD BD and BT architectures.
5326
5327 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
5328
5329 * tree-vect-generic.c (uniform_vector_p): Move ...
5330 * tree.c (uniform_vector_p): ... here.
5331 * tree.h (uniform_vector_p): Declare it.
5332 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
5333 into a scalar.
5334
5335 2013-05-13 Jakub Jelinek <jakub@redhat.com>
5336
5337 PR tree-optimization/57230
5338 * tree-ssa-strlen.c (handle_char_store): Record length for
5339 array store from STRING_CST.
5340
5341 PR tree-optimization/57230
5342 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
5343 check.
5344
5345 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
5346
5347 * config/epiphany/epiphany.c (epiphany_init): Check size of
5348 NUM_MODES_FOR_MODE_SWITCHING.
5349 (epiphany_expand_prologue):
5350 Remove CONFIG_REGNUM initial value handling code.
5351 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
5352 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
5353 (emit_set_fp_mode, epiphany_mode_after): Likewise.
5354 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
5355 Don't return 1 for FP_MODE_NONE.
5356 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
5357 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
5358 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
5359 * config/epiphany/epiphany.md (save_config): New pattern.
5360
5361 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
5362
5363 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
5364
5365 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
5366
5367 * config/i386/i386.md (memory): Handle sseishft1.
5368 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
5369 (*vec_extractv2di_1): Ditto.
5370
5371 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
5372
5373 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
5374 saved registers.
5375
5376 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
5377
5378 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
5379 Add mthumb/march=armv7-a multilib.
5380 Add mthumb/march=armv7-r multilib.
5381 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
5382
5383 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
5384
5385 * config/v850/t-rtems: Add more multilibs.
5386
5387 2013-05-10 Richard Biener <rguenther@suse.de>
5388
5389 PR tree-optimization/57214
5390 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
5391 not propagate from SSA names that occur in abnormal PHI nodes.
5392
5393 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
5394
5395 * stor-layout.c (element_precision): New function.
5396 * machmode.h (element_precision): Declare it.
5397 * tree.c (build_minus_one_cst): New function.
5398 (element_precision): Likewise.
5399 * tree.h (build_minus_one_cst): Declare new function.
5400 (element_precision): Likewise.
5401 * fold-const.c (operand_equal_p): Use element_precision.
5402 (fold_binary_loc): Handle vector types.
5403 * convert.c (convert_to_integer): Use element_precision.
5404 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
5405 separately.
5406
5407 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
5408
5409 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
5410 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
5411 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
5412 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
5413 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
5414 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
5415 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
5416 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
5417 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
5418 (Uuw8): New constraints.
5419 (Usb4): Move into alphabetical order.
5420 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
5421 (sd8_operand, ub8_operand, uw8_operand): New predicates.
5422 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
5423 previously unnamed patterns.
5424 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
5425 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
5426 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
5427 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
5428 of set_attr_alternative/if_then_else. Use extended_mips16 instead
5429 of specific lengths.
5430
5431 2013-05-10 Jakub Jelinek <jakub@redhat.com>
5432
5433 * config/i386/i386.md (rotateinv): New code attr.
5434 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
5435 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
5436 roll $31, %eax, etc.
5437
5438 PR tree-optimization/45216
5439 PR tree-optimization/57157
5440 * tree-ssa-forwprop.c (simplify_rotate): New function.
5441 (ssa_forward_propagate_and_combine): Call it.
5442
5443 2013-05-10 Richard Biener <rguenther@suse.de>
5444
5445 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
5446 disable peeling when we version for aliasing.
5447 (vector_alignment_reachable_p): Honor explicit user alignment.
5448 (vect_supportable_dr_alignment): Likewise.
5449 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
5450 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
5451 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
5452 then peeling to arrange for the cost-model check to come first.
5453
5454 2013-05-10 Alan Modra <amodra@gmail.com>
5455
5456 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
5457 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
5458 * configure: Regenerate.
5459
5460 2013-05-10 Alan Modra <amodra@gmail.com>
5461
5462 PR target/55033
5463 * varasm.c (default_elf_select_section): Move !DECL_P check..
5464 (get_named_section): ..to here before calling get_section_name.
5465 Adjust assertion.
5466 (default_section_type_flags): Add DECL_P check.
5467 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
5468 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
5469
5470 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
5471
5472 * config/epiphany/epiphany.c (epiphany_expand_prologue):
5473 When using gen_stack_adjust_str with a register offset, add a
5474 REG_FRAME_RELATED_EXPR note.
5475
5476 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
5477
5478 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
5479 (*vec_extractv4si_zext_mem): Ditto.
5480 (*vec_extractv2di): Add 0->x and x->x alternatives.
5481 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
5482 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
5483
5484 2013-05-09 Jason Merrill <jason@redhat.com>
5485
5486 N3639 C++1y VLA support
5487 * gimplify.c (gimplify_vla_decl): Don't touch an existing
5488 DECL_VALUE_EXPR.
5489
5490 * tree.c (build_constructor_va): New.
5491 * tree.h: Declare it.
5492
5493 2013-05-09 Martin Jambor <mjambor@suse.cz>
5494
5495 PR lto/57084
5496 * gimple-fold.c (canonicalize_constructor_val): Call
5497 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
5498
5499 2013-05-09 Jan Hubicka <jh@suse.cz>
5500 Richard Biener <rguenther@suse.de>
5501
5502 PR lto/54095
5503 * symtab.c (symtab_make_decl_local): Do not add private names.
5504
5505 2013-05-09 Jan Hubicka <jh@suse.cz>
5506
5507 PR lto/54095
5508 * symtab.c (insert_to_assembler_name_hash): Handle clones.
5509 (unlink_from_assembler_name_hash): Likewise.
5510 (symtab_prevail_in_asm_name_hash, symtab_register_node,
5511 symtab_unregister_node, symtab_initialize_asm_name_hash,
5512 change_decl_assembler_name): Update.
5513
5514 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
5515
5516 * config/aarch64/aarch64.md: New movtf split.
5517 (*movtf_aarch64): Update.
5518 (aarch64_movdi_tilow): Handle TF modes and rename to
5519 aarch64_movdi_<mode>low.
5520 (aarch64_movdi_tihigh): Handle TF modes and rename to
5521 aarch64_movdi_<mode>high
5522 (aarch64_movtihigh_di): Handle TF modes and rename to
5523 aarch64_mov<mode>high_di
5524 (aarch64_movtilow_di): Handle TF modes and rename to
5525 aarch64_mov<mode>low_di
5526 (aarch64_movtilow_tilow): Remove spurious whitespace.
5527 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
5528 splits.
5529 (aarch64_print_operand): Update.
5530
5531 2013-05-09 Alan Modra <amodra@gmail.com>
5532
5533 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
5534 powerpc64le.
5535 * configure: Regenerate.
5536
5537 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
5538
5539 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
5540 splitter preparation statements.
5541 * config/i386/sse.md (*vec_extract* splitters): Ditto.
5542 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
5543 adjust_address_nv.
5544
5545 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5546
5547 * gimple-ssa-strength-reduction.c (count_candidates): Change
5548 return value to int.
5549 (analyze_candidates_and_replace): Change type of length to int.
5550
5551 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
5552
5553 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
5554 (*vec_extract<mode>): Use VI12_128 mode iterator.
5555 (*vec_extract<mode>_mem): Ditto.
5556 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
5557 attribute.
5558
5559 2013-05-08 Diego Novillo <dnovillo@google.com>
5560
5561 PR bootstrap/54659
5562
5563 Revert:
5564 2012-08-17 Diego Novillo <dnovillo@google.com>
5565
5566 PR bootstrap/54281
5567 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
5568 * config.in: Regenerate.
5569 * configure: Regenerate.
5570 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
5571
5572 2013-05-08 Jan Hubicka <jh@suse.cz>
5573
5574 PR lto/54095
5575 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
5576 * cgraph.h (symtab_node_base): Add unique_name.
5577 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
5578 input_overwrite_node, input_varpool_node): Stream unique_name.
5579 * cgraphclones.c (cgraph_create_virtual_clone,
5580 cgraph_function_versioning): Set unique_name.
5581 * ipa.c (function_and_variable_visibility): Set unique_name.
5582
5583 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5584
5585 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
5586 (alloc_cand_and_find_basis): Restrict conditional candidate
5587 processing to CAND_MULTs.
5588
5589 2013-05-08 Jan Hubicka <jh@suse.cz>
5590
5591 PR lto/54095
5592 lto-symtab.c (lto_symtab_symbol_p): New function.
5593 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
5594 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
5595 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
5596 Skip static symbols.
5597
5598 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
5599
5600 PR tree-optimization/57200
5601 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
5602 Only call inform if the preceding warning_at returns true.
5603
5604 2013-05-07 Han Shen <shenhan@google.com>
5605
5606 * cfgexpand.c (record_or_union_type_has_array_p): New function.
5607 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
5608 * common.opt (fstack-protector-strong): New option.
5609 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
5610 * doc/invoke.texi (Optimization Options): Document
5611 "-fstack-protector-strong".
5612 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
5613
5614 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
5615
5616 * config/mips/mips.c (mips_machine_reorg2): Return 0.
5617
5618 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
5619
5620 * ira.c (update_equiv_regs): Add insn having equiv memory even if
5621 it is not lhs of the insn.
5622 (setup_reg_equiv): Remove insn having equiv memory which it is not
5623 lhs of the insn.
5624 * lra-constraints.c (process_address): Try to improve generation
5625 code for address base + disp.
5626 (lra_constraints): Make correct the code for checking insn setting
5627 up backward equivalence. Remove insn only if it is in the init
5628 insn list.
5629 * lra-eliminations.c (update_reg_eliminate): Change return value.
5630 (lra_eliminate): Use the result.
5631
5632 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
5633
5634 * config/i386/sse.md (ssescalarnummask): New mode attribute.
5635 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
5636 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
5637 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
5638 register target operands.
5639 (*vec_extractv8hi_sse2): New pattern.
5640 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
5641 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
5642 (*vec_extract<mode>_mem): New insn and split pattern.
5643
5644 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
5645
5646 * config/arm/arm.c (arm_asan_shadow_offset): New function.
5647 (TARGET_ASAN_SHADOW_OFFSET): Define.
5648 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
5649 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
5650
5651 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5652
5653 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
5654 (incr_vec_index): Return -1 if increment not found.
5655 (create_add_on_incoming_edge): Assert if increment not found.
5656 (record_increment): Limit number of increments recorded.
5657 (all_phi_incrs_profitable): Return false if an increment not found.
5658 (replace_profitable_candidates): Don't process increments that were
5659 not recorded.
5660 (analyze_candidates_and_replace): Limit size of incr_vec.
5661
5662 2013-05-07 Richard Biener <rguenther@suse.de>
5663
5664 * calls.c (special_function_p): setjmp-like functions are leaf.
5665 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
5666 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
5667
5668 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
5669
5670 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
5671 (aarch64_simd_mov<mode>): New expander.
5672 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
5673 (aarch64_simd_mov_to_<mode>high): Likewise.
5674 (aarch64_simd_mov_from_<mode>low): Likewise.
5675 (aarch64_simd_mov_from_<mode>high): Likewise.
5676 (aarch64_dup_lane<mode>): Update.
5677 (aarch64_dup_lanedi): New instruction pattern.
5678 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
5679 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
5680
5681 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5682
5683 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
5684 (replace_mult_candidate): Remove unnecessary argument; remove
5685 unnecessary parameter from call to introduce_cast_before_cand.
5686 (replace_unconditional_candidate): Remove unnecessary parameter
5687 from call to replace_mult_candidate.
5688 (replace_conditional_candidate): Likewise.
5689 (insert_initializers): Use make_temp_ssa_name.
5690 (introduce_cast_before_cand): Remove unnecessary argument; use
5691 make_temp_ssa_name.
5692 (replace_one_candidate): Remove unnecessary argument; remove
5693 unnecessary parameter from calls to introduce_cast_before_cand.
5694 (replace_profitable_candidates): Remove unnecessary parameters
5695 from calls to replace_one_candidate.
5696
5697 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5698
5699 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
5700 phi def as possibly hiding a basis for a CAND_ADD whose operands
5701 have been commuted in the analysis.
5702 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
5703
5704 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5705
5706 * config/aarch64/aarch64.md
5707 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
5708 shift value between 0-4.
5709
5710 2013-05-07 Richard Biener <rguenther@suse.de>
5711
5712 * double-int.h (rshift): New overload.
5713 * double-int.c (rshift): New function.
5714 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
5715 (create_reference_ops_from_ref): Remove.
5716 (vn_reference_insert): Use shared ops for constructing the
5717 reference and copy it.
5718
5719 2013-05-07 Richard Biener <rguenther@suse.de>
5720
5721 PR middle-end/57190
5722 * tree-eh.c (sink_clobbers): Properly propagate
5723 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
5724
5725 2013-05-07 Jakub Jelinek <jakub@redhat.com>
5726
5727 PR tree-optimization/57149
5728 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
5729 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
5730 collect_phi_def_edges, execute_late_warn_uninitialized): Use
5731 uninit_undefined_value_p instead of ssa_undefined_value_p.
5732
5733 PR debug/57184
5734 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
5735 for modifier == EXPAND_INITIALIZER.
5736
5737 2013-05-07 Anton Blanchard <anton@samba.org>
5738
5739 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
5740 for powerpc64 little endian.
5741 * configure: Regenerate.
5742
5743 2013-05-06 Graham Stott <grahams@btinternet.com>
5744
5745 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
5746 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
5747 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
5748 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
5749
5750 2013-05-06 Graham Stott <grahams@btinternet.com>
5751
5752 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
5753 codes which allow non-lvalues.
5754
5755 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
5756
5757 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
5758 components are all 1s.
5759 (integer_minus_onep): New function.
5760 * tree.h (integer_minus_onep): Declare it.
5761 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
5762 integer_minus_onep instead of integer_all_onesp.
5763
5764 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
5765
5766 PR target/52933
5767 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
5768 variations of these patterns.
5769
5770 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
5771
5772 * config/i386/i386.md (isa): Add x64_sse4 member.
5773 (enabled): Handle x64_sse4.
5774 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
5775 instruction for 64bit SSE4_1 targets. Update insn attributes.
5776 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
5777 instruction for SSE4_1 targets. Update insn attributes.
5778 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
5779 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
5780 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
5781 const_1 selector.
5782 (*vec_extractv4si): Rename from *sse4_1_pextrd.
5783 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
5784 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
5785
5786 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
5787
5788 PR target/57108
5789 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
5790
5791 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
5792
5793 * final.c (do_assembler_dialects): Don't handle curly braces and
5794 vertical bar escaped by % as dialect delimiters.
5795 (output_asm_insn): Print curly braces and vertical bar if escaped
5796 by % and ASSEMBLER_DIALECT defined.
5797 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
5798 * doc/tm.texi: Regenerated.
5799
5800 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
5801
5802 * config/mips/mips.c: Include tree-pass.h.
5803 (mips_reorg): Split in pre- and post-dbr_schedule parts.
5804 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
5805 (pass_mips_machine_reorg2): New machine specific pass.
5806 (insert_pass_mips_machine_reorg2): New pass plugin definition.
5807 (mips_option_override): Register the new pass.
5808 * rtl.h (cleanup_barriers): Remove prototype.
5809 (dbr_schedule): Likewise.
5810 * jump.c (cleanup_barriers): Make static.
5811 * reorg.c (dbr_schedule): Likewise.
5812
5813 2013-05-06 Richard Biener <rguenther@suse.de>
5814
5815 PR tree-optimization/57185
5816 * tree-parloops.c (add_field_for_reduction): Handle anonymous
5817 SSA names properly.
5818
5819 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
5820
5821 PR target/57106
5822 * config/i386/i386.c (add_parameter_dependencies): Add dependence
5823 between "first_arg" and "insn", not "last" and "insn".
5824
5825 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5826
5827 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
5828 (find_candidates_in_block): Re-enable slsr_process_phi.
5829 (create_phi_basis): Fix double counting of candidate adjustment.
5830
5831 2013-05-06 Richard Biener <rguenther@suse.de>
5832
5833 PR middle-end/57147
5834 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
5835 the edge is also fallthru, preserve it and just clear the
5836 abnormal flag.
5837 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
5838 also complex, preserve that and just clear the fallthru flag.
5839 * tree-inline.c (update_ssa_across_abnormal_edges): Also
5840 update virtual operands.
5841
5842 2013-05-06 Alan Modra <amodra@gmail.com>
5843
5844 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
5845 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
5846 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
5847 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
5848 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
5849 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
5850
5851 2013-05-06 Alan Modra <amodra@gmail.com>
5852
5853 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
5854 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
5855 (DEFAULT_ASM_ENDIAN): Define.
5856 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
5857 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
5858 Update -K PIC clause from sysv4.h.
5859 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
5860 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
5861
5862 2013-05-06 Alan Modra <amodra@gmail.com>
5863
5864 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
5865 twice for little-endian.
5866 (ashrdi3_no_power, ashrdi3): Support little-endian.
5867
5868 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
5869
5870 PR target/55303
5871 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
5872 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
5873 related expanders.
5874 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
5875 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
5876 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
5877 New predicates.
5878
5879 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
5880 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5881
5882 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
5883 * config/pa/pa.opt: Make mbig-switch a no-op.
5884 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
5885 (CASE_VECTOR_MODE): Always return SImode.
5886 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
5887 for the !TARGET_BIG_SWITCH case.
5888 * config/pa/pa-linux.h: Likewise.
5889 * config/pa/pa-openbsd.h: Likewise.
5890 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
5891 * config/pa/pa.md (short_jump): Remove define_insn.
5892 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
5893 (casesi0): Remove define_insn.
5894 (type): Remove btable_branch.
5895 (pa_combine_type): Likewise.
5896 (in_nullified_branch_delay): Likewise.
5897 (in_call_delay): Likewise.
5898 (define_delay): Likewise.
5899 (define_insn_reservation "Z3"): Likewise.
5900 (define_insn_reservation "Z4"): Likewise.
5901 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
5902 (pa_adjust_insn_length): Remove adjustment for btable branches.
5903 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
5904 and mno-big-switch
5905
5906 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
5907
5908 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
5909 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
5910 Add m->r,x alternatives.
5911 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
5912 splitters using SWI48x mode iterator.
5913 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
5914 TARGET_64BIT. Add m->x alternative.
5915 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
5916 Add o->x alternative. Enable for TARGET_SSE.
5917 (sse_storeq): Remove expander.
5918 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
5919 with memory input operand.
5920 (*vec_extractv2di_1 splitter): New.
5921 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
5922 * config/i386/i386.md (ssevecmodelower): New mode attribute.
5923
5924 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
5925
5926 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
5927 (INT_LOWPART): Delete.
5928 (extract_MB): Adjust.
5929 (extract_ME): Adjust.
5930 (print_operand): Adjust.
5931
5932 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
5933
5934 * config/rs6000/predicates.md (reg_or_add_cint_operand,
5935 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
5936 (reg_or_logical_cint_operand, easy_fp_constant,
5937 logical_const_operand): Delete "CONST_DOUBLE" case.
5938 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
5939 "HOST_BITS_PER_WIDE_INT == 64" test.
5940 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
5941 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
5942 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
5943 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
5944 test.
5945 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
5946 CONST_DOUBLE DImode/VOIDmode case.
5947 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
5948 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
5949 CONST_DOUBLE VOIDmode case.
5950 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
5951 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
5952 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
5953 Delete CONST_DOUBLE case.
5954 (splitters for mov FMOVE64 const_double): Delete
5955 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
5956 "HOST_BITS_PER_WIDE_INT >= 64" test.
5957 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
5958 case.
5959 (mov DI const_double): Delete.
5960
5961 2013-05-04 Jakub Jelinek <jakub@redhat.com>
5962
5963 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
5964 on op shows all bits zero in mode of a lowpart subreg, return zero.
5965
5966 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5967
5968 PR target/57150
5969 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
5970 to save TFmode registers and DImode to save TImode registers for
5971 caller save operations.
5972 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
5973 mark being partially clobbered since they only use the first
5974 double word.
5975
5976 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
5977 and TDmode only use the upper 64-bits of each VSX register.
5978
5979 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5980
5981 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
5982 (find_candidates_in_block): Disable slsr_process_phi.
5983
5984 2013-05-03 Guozhi Wei <carrot@google.com>
5985
5986 * coverage.c (coverage_obj_init): Move the construction of gcov
5987 constructor to ...
5988 (build_init_ctor): ... here.
5989
5990 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5991
5992 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
5993 (slsr_cand_d): Redefine def_phi.
5994 (stride_status, phi_adjust_status, count_phis_status): New enums.
5995 (find_phi_def): New.
5996 (find_basis_for_base_expr): New.
5997 (find_basis_for_candidate): Handle hidden bases.
5998 (alloc_cand_and_find_basis): Handle phi candidates.
5999 (slsr_process_phi): New.
6000 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
6001 (create_mul_imm_cand): Likewise.
6002 (create_add_ssa_cand): Exclude phi base candidates.
6003 (create_add_imm_cand): Likewise.
6004 (slsr_process_cast): Likewise.
6005 (slsr_process_copy): Likewise.
6006 (find_candidates_in_block): Handle phi candidates.
6007 (dump_candidate): Likewise.
6008 (unconditional_cands): Delete.
6009 (unconditional_cands_with_known_stride_p): Delete.
6010 (phi_dependent_cand_p): New.
6011 (cand_increment): Handle phi-dependent candidates.
6012 (replace_dependent): Delete.
6013 (replace_mult_candidate): New.
6014 (replace_unconditional_candidate): New.
6015 (incr_vec_index): Move to avoid forward reference.
6016 (create_add_on_incoming_edge): New.
6017 (create_phi_basis): New.
6018 (replace_dependents): Delete.
6019 (replace_conditional_candidate): New.
6020 (phi_add_costs): New.
6021 (replace_uncond_cands_and_profitable_phis): New.
6022 (record_increment): Handle phi adjustments.
6023 (record_phi_increments): New.
6024 (record_increments): Handle phi adjustments.
6025 (phi_incr_cost): New.
6026 (lowest_cost_path): Handle phis.
6027 (total_savings): Likewise.
6028 (analyze_increments): Likewise.
6029 (ncd_with_phi): New.
6030 (ncd_of_cand_and_phis): New.
6031 (nearest_common_dominator_for_cands): Handle phi increments.
6032 (all_phi_incrs_profitable): New.
6033 (replace_profitable_candidates): Handle phi-dependent candidates.
6034 (analyze_candidates_and_replace): Likewise.
6035
6036 2013-05-03 Teresa Johnson <tejohnson@google.com>
6037
6038 PR bootstrap/57154
6039 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
6040 do not exceed REG_BR_PROB_BASE.
6041
6042 2013-05-03 Jeff Law <law@redhat.com>
6043
6044 PR tree-optimization/57144
6045 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
6046 operand of the condition will bit into the new type when eliminating
6047 a cast feeding a condition.
6048
6049 2013-05-03 Jakub Jelinek <jakub@redhat.com>
6050
6051 PR rtl-optimization/57130
6052 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
6053 of COMPARE as in_code to the recursive call if needed.
6054
6055 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
6056
6057 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
6058 (enabled): Handle new members.
6059 * config/i386/sse.md (*vec_concatv2si): Merge from
6060 *vec_concatv2si_sse2 and vec_concatv2si_sse.
6061 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
6062
6063 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
6064
6065 PR tree-optimization/57027
6066 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
6067 for fnms opportunity, check we got the prerequisite kind
6068 of tree / gimple before using accessor functions.
6069
6070 2013-05-03 Richard Biener <rguenther@suse.de>
6071
6072 * double-int.h (lshift): New overload without precision
6073 and arith argument.
6074 (operator *=, operator +=, operator -=): Move ...
6075 * double-int.c (operator *=, operator +=, operator -=): ... here
6076 and implement more efficiently.
6077 (mul_double_with_sign): Remove.
6078 (lshift_double): Adjust to take unsinged shift argument, push
6079 dispatching code to callers.
6080 (mul_double_wide_with_sign): Add early out for callers that
6081 are not interested in high parts or overflow.
6082 (lshift): New function.
6083 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
6084 dispatch code here.
6085 (lrotate, rrotate): Use logical shifts.
6086 * expr.c (get_inner_reference): Use lshift.
6087 * fixed-value.c (do_fixed_divide): Likewise.
6088 * tree-dfa.c (get_ref_base_and_extent): Likewise.
6089 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
6090 (indirect_refs_may_alias_p): Likewise.
6091 (stmt_kills_ref_p_1): Likewise.
6092
6093 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
6094
6095 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
6096
6097 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
6098
6099 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
6100 scalar form of FABD instruction.
6101
6102 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
6103
6104 * lra-constraints.c (process_alt_operands): Add checking alt
6105 number to choose the best alternative.
6106
6107 2013-05-02 Richard Biener <rguenther@suse.de>
6108
6109 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
6110 bitmap and its handling.
6111 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
6112
6113 2013-05-02 Richard Biener <rguenther@suse.de>
6114
6115 PR middle-end/57140
6116 * tree-inline.c (copy_loops): Properly handle removed loops.
6117 (copy_cfg_body): Mark destination loops for fixup if source
6118 loops needed fixup.
6119
6120 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
6121
6122 PR target/56732
6123 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
6124 generating simple_return for naked functions.
6125
6126 2013-05-02 Martin Jambor <mjambor@suse.cz>
6127
6128 PR middle-end/56988
6129 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
6130 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
6131 flags match.
6132 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
6133 ipa_agg_replacement_value structures.
6134 (known_aggs_to_agg_replacement_list): Likewise.
6135 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
6136 (read_agg_replacement_chain): Likewise.
6137 (ipcp_transform_function): Also check that by_ref flags match.
6138
6139 2013-05-02 Richard Biener <rguenther@suse.de>
6140
6141 * graphds.h (struct graph): Add obstack member.
6142 * graphds.c (new_graph): Initialize obstack and allocate
6143 vertices from it.
6144 (add_edge): Allocate edge from the obstack.
6145 (free_graph): Free the obstack instead of all edges and vertices.
6146
6147 2013-05-02 Teresa Johnson <tejohnson@google.com>
6148
6149 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
6150 divides.
6151 * cfg.c (update_bb_profile_for_threading): Ditto.
6152 * tree-inline.c (copy_bb): Ditto.
6153 (copy_edges_for_bb): Ditto.
6154 (initialize_cfun): Ditto.
6155 (copy_cfg_body): Ditto.
6156 (expand_call_inline): Ditto.
6157 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
6158 (estimate_node_size_and_time): Ditto.
6159 (inline_merge_summary): Ditto.
6160 * cgraphclones.c (cgraph_clone_edge): Ditto.
6161 (cgraph_clone_node): Ditto.
6162 * sched-rgn.c (compute_dom_prob_ps): Ditto.
6163 (compute_trg_info): Ditto.
6164
6165 2013-05-02 Ian Bolton <ian.bolton@arm.com>
6166
6167 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
6168 S reg when fp attribute set.
6169 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
6170
6171 2013-05-02 Ian Bolton <ian.bolton@arm.com>
6172
6173 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
6174 New pattern.
6175 (*and_one_cmplsi3_compare0_uxtw): Likewise.
6176 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
6177 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
6178
6179 2013-05-02 Richard Biener <rguenther@suse.de>
6180
6181 * tree-scalar-evolution.c (scev_info_hasher): Remove.
6182 (struct instantiate_cache_entry): New type.
6183 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
6184 (struct instantiate_cache_type): New type.
6185 (set_instantiated_value, get_instantiated_value): Remove.
6186 (get_instantiated_value_entry): New function.
6187 (instantiate_scev_name): Use the new cache and adjust.
6188 (instantiate_scev_poly): Adjust.
6189 (instantiate_scev_binary): Likewise.
6190 (instantiate_array_ref): Likewise.
6191 (instantiate_scev_convert): Likewise.
6192 (instantiate_scev_not): Likewise.
6193 (instantiate_scev_3): Likewise.
6194 (instantiate_scev_2): Likewise.
6195 (instantiate_scev_r): Likewise.
6196 (instantiate_scev): Likewise.
6197 (resolve_mixers): Likewise.
6198
6199 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
6200
6201 PR target/57091
6202 * lra-constraints.c (best_small_class_operands_num): Remove.
6203 (process_alt_operands): Remove small_class_operands_num. Take
6204 small classes operands into losers and only if the operand is not
6205 matched. Modify debugging output.
6206 (curr_insn_transform): Remove best_small_class_operands_num.
6207 Print insn name.
6208
6209 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6210
6211 * config/aarch64/aarch64-builtins.c
6212 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
6213 * config/aarch64/aarch64-simd-builtins.def
6214 (reduc_splus_): Add new modes.
6215 (reduc_uplus_): New.
6216 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
6217 (reduc_uplus_v4sf): Likewise.
6218 (reduc_splus_v4sf): Likewise.
6219 (aarch64_addv<mode>): Likewise.
6220 (reduc_uplus_<mode>): Likewise.
6221 (reduc_splus_<mode>): Likewise.
6222 (aarch64_addvv2di): Likewise.
6223 (reduc_uplus_v2di): Likewise.
6224 (reduc_splus_v2di): Likewise.
6225 (aarch64_addvv2si): Likewise.
6226 (reduc_uplus_v2si): Likewise.
6227 (reduc_splus_v2si): Likewise.
6228 (reduc_<sur>plus_<mode>): New.
6229 (reduc_<sur>plus_v2di): Likewise.
6230 (reduc_<sur>plus_v2si): Likewise.
6231 (reduc_<sur>plus_v4sf): Likewise.
6232 (aarch64_addpv4sf): Likewise.
6233 * config/aarch64/arm_neon.h
6234 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
6235 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
6236 add UNSPEC_SADDV, UNSPEC_UADDV.
6237 (SUADDV): New.
6238 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
6239
6240 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6241
6242 * config/aarch64/arm_neon.h
6243 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
6244
6245 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6246
6247 * config/aarch64/aarch64-builtins
6248 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
6249
6250 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6251
6252 * config/aarch64/aarch64-simd-builtins.def
6253 (reduc_smax_): New.
6254 (reduc_smin_): Likewise.
6255 (reduc_umax_): Likewise.
6256 (reduc_umin_): Likewise.
6257 (reduc_smax_nan_): Likewise.
6258 (reduc_smin_nan_): Likewise.
6259 (fmax): Remove.
6260 (fmin): Likewise.
6261 (smax): Update for V2SF, V4SF and V2DF modes.
6262 (smin): Likewise.
6263 (smax_nan): New.
6264 (smin_nan): Likewise.
6265 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
6266 (<su><maxmin><mode>3): ...This, refactor.
6267 (s<maxmin><mode>3): New.
6268 (<maxmin_uns><mode>3): Likewise.
6269 (reduc_<maxmin_uns>_<mode>): Refactor.
6270 (reduc_<maxmin_uns>_v4sf): Likewise.
6271 (reduc_<maxmin_uns>_v2si): Likewise.
6272 (aarch64_<fmaxmin><mode>: Remove.
6273 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
6274 new builtin names.
6275 (vmin<q>_f<32,64>): Likewise.
6276 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
6277 (FMAXMIN): New.
6278 (su): Add mappings for smax, smin, umax, umin.
6279 (maxmin): New.
6280 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
6281 (FMAXMIN): Rename as...
6282 (FMAXMIN_UNS): ...This.
6283 (maxminv): Remove.
6284 (fmaxminv): Likewise.
6285 (fmaxmin): Likewise.
6286 (maxmin_uns): New.
6287 (maxmin_uns_op): Likewise.
6288
6289 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6290
6291 * config/aarch64/arm_neon.h
6292 (vac<ge, gt><sd>_f<32, 64>): Rename to...
6293 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
6294 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
6295
6296 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6297
6298 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
6299 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
6300
6301 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6302
6303 * config/aarch64/aarch64-simd.md
6304 (vcond<mode>_internal): Handle special cases for constant masks.
6305 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
6306 (vcondu<mode><mode>): Likewise.
6307 (vcond<v_cmp_result><mode>): New.
6308
6309 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6310
6311 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
6312 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
6313 * config/aarch64/aarch64-simd-builtins.def
6314 (cmeq): Update to BUILTIN_VALLDI.
6315 (cmgt): Likewise.
6316 (cmge): Likewise.
6317 (cmle): Likewise.
6318 (cmlt): Likewise.
6319 * config/aarch64/arm_neon.h
6320 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
6321 to builtins or C as appropriate.
6322
6323 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6324
6325 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
6326 (cmgeu): ...This.
6327 (cmhi): Rename to...
6328 (cmgtu): ...This.
6329 * config/aarch64/aarch64-simd.md
6330 (simd_mode): Add SF.
6331 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
6332 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
6333 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
6334 (cstore<mode>_neg): ...This.
6335 * config/aarch64/iterators.md
6336 (VALLF): new.
6337 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
6338 (COMPARISONS): New.
6339 (UCOMPARISONS): Likewise.
6340 (optab): Add missing comparisons.
6341 (n_optab): New.
6342 (cmp_1): Likewise.
6343 (cmp_2): Likewise.
6344 (CMP): Likewise.
6345 (cmp): Remove.
6346 (VCMP_S): Likewise.
6347 (VCMP_U): Likewise.
6348 (V_cmp_result): Add DF, SF modes.
6349 (v_cmp_result): Likewise.
6350 (v): Likewise.
6351 (vmtype): Likewise.
6352 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
6353
6354 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
6355
6356 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
6357 define_insn to define_insn_and_split.
6358 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
6359 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
6360 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
6361 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
6362 (thumb2_negscc): Likewise.
6363
6364 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
6365
6366 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
6367
6368 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
6369
6370 * config/arm/thumb2.md: Remove trailing whitespaces.
6371
6372 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
6373
6374 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
6375 Use gen_int_mode rather than GEN_INT.
6376
6377 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
6378
6379 * value-prof.c (stream_in_histogram_value): Remove the strayed
6380 debug_gimple_stmt.
6381
6382 2013-04-30 Richard Biener <rguenther@suse.de>
6383
6384 PR middle-end/57122
6385 * cfghooks.c (split_edge): Properly check for the loop latch edge.
6386
6387 2013-04-30 Richard Biener <rguenther@suse.de>
6388
6389 PR middle-end/57107
6390 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
6391
6392 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
6393
6394 PR rtl-optimization/56957
6395 PR rtl-optimization/57105
6396 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
6397 variable. Use just INSN_UID for determining whether an insn
6398 should be only disconnected from the insn stream.
6399 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
6400
6401 2013-04-30 Jakub Jelinek <jakub@redhat.com>
6402
6403 PR tree-optimization/57104
6404 * tsan.c (instrument_expr): Don't instrument accesses to
6405 DECL_HARD_REGISTER VAR_DECLs.
6406
6407 2013-04-30 Richard Biener <rguenther@suse.de>
6408
6409 * function.h (loops_for_fn): New inline function.
6410 (set_loops_for_fn): Likewise.
6411 * cfgloop.h (place_new_loop): Add struct function parameter.
6412 (get_loop): Likewise.
6413 (get_loops): Likewise.
6414 (number_of_loops): Likewise.
6415 (fel_next): Adjust.
6416 (fel_init): Likewise.
6417 * cfg.c (get_loop_copy): Adjust.
6418 * cfgloop.c (flow_loops_dump): Likewise.
6419 (record_loop_exits): Likewise.
6420 (verify_loop_structure): Likewise.
6421 * cfgloopanal.c (mark_irreducible_loops): Likewise.
6422 (estimate_reg_pressure_cost): Likewise.
6423 (mark_loop_exit_edges): Likewise.
6424 * cfgloopmanip.c (place_new_loop): Likewise.
6425 (add_loop): Likewise.
6426 (duplicate_loop): Likewise.
6427 * graph.c (draw_cfg_nodes): Likewise.
6428 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
6429 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
6430 (extract_affine_chrec): Likewise.
6431 (build_scop_iteration_domain): Likewise.
6432 * graphite.c (graphite_initialize): Likewise.
6433 * ira-build.c (create_loop_tree_nodes): Likewise.
6434 (more_one_region_p): Likewise.
6435 (rebuild_regno_allocno_maps): Likewise.
6436 (mark_loops_for_removal): Likewise.
6437 (mark_all_loops_for_removal): Likewise.
6438 (remove_unnecessary_regions): Likewise.
6439 (ira_build): Likewise.
6440 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
6441 * loop-init.c (fix_loop_structure): Likewise.
6442 (gate_rtl_move_loop_invariants): Likewise.
6443 (gate_rtl_unswitch): Likewise.
6444 (gate_rtl_unroll_and_peel_loops): Likewise.
6445 (rtl_doloop): Likewise.
6446 * lto-streamer-in.c (input_cfg): Likewise.
6447 * lto-streamer-out.c (output_cfg): Likewise.
6448 * modulo-sched.c (sms_schedule): Likewise.
6449 * predict.c (tree_estimate_probability): Likewise.
6450 (tree_estimate_probability_driver): Likewise.
6451 (estimate_loops): Likewise.
6452 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
6453 (move_sese_region_to_fn): Likewise.
6454 (debug_loop_num): Likewise.
6455 * tree-chrec.c (chrec_evaluate): Likewise.
6456 (hide_evolution_in_other_loops_than_loop): Likewise.
6457 (chrec_component_in_loop_num): Likewise.
6458 (reset_evolution_in_loop): Likewise.
6459 (evolution_function_is_invariant_rec_p): Likewise.
6460 * tree-if-conv.c (main_tree_if_conversion): Likewise.
6461 * tree-inline.c (copy_loops): Likewise.
6462 (copy_cfg_body): Likewise.
6463 (tree_function_versioning): Likewise.
6464 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
6465 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
6466 Likewise.
6467 (add_to_evolution_1): Likewise.
6468 (scev_const_prop): Likewise.
6469 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
6470 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
6471 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
6472 (tree_ssa_lim_initialize): Likewise.
6473 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
6474 (verify_loop_closed_ssa): Likewise.
6475 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
6476 (tree_ssa_loop_im): Likewise.
6477 (tree_ssa_loop_unswitch): Likewise.
6478 (tree_vectorize): Likewise.
6479 (check_data_deps): Likewise.
6480 (tree_ssa_loop_ivcanon): Likewise.
6481 (tree_ssa_loop_bounds): Likewise.
6482 (tree_complete_unroll): Likewise.
6483 (tree_complete_unroll_inner): Likewise.
6484 (tree_parallelize_loops): Likewise.
6485 (tree_ssa_loop_prefetch): Likewise.
6486 (tree_ssa_loop_ivopts): Likewise.
6487 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
6488 * tree-vectorizer.c (vectorize_loops): Likewise.
6489
6490 2013-04-29 Mike Frysinger <vapier@gentoo.org>
6491
6492 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
6493 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
6494 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
6495 with EABI_LINK_SPEC.
6496
6497 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
6498
6499 PR target/44578
6500 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
6501 alternative.
6502
6503 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
6504
6505 PR target/57097
6506 * lra-constraints.c (process_alt_operands): Discourage a bit more
6507 using memory for pseudos. Print cost dump for alternatives.
6508 Modify cost values for conflicts with early clobbers.
6509 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
6510
6511 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
6512
6513 PR target/57098
6514 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
6515
6516 2013-04-29 Ian Bolton <ian.bolton@arm.com>
6517
6518 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
6519 from/to S register.
6520 (movdi_aarch64): Support LDR/STR from/to D register.
6521
6522 2013-04-29 Ian Bolton <ian.bolton@arm.com>
6523
6524 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
6525 or higher by default.
6526
6527 2013-04-29 Richard Biener <rguenther@suse.de>
6528
6529 PR middle-end/57075
6530 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
6531 even if not adding abnormal edges for calls that can make
6532 abnormal gotos.
6533
6534 2013-04-29 Richard Biener <rguenther@suse.de>
6535
6536 PR middle-end/57103
6537 * tree-cfg.c (move_stmt_op): Fix condition under which to update
6538 TREE_BLOCK.
6539 (move_stmt_r): Remove redundant checking.
6540
6541 2013-04-29 Teresa Johnson <tejohnson@google.com>
6542
6543 PR bootstrap/57077
6544 * basic-block.h (apply_scale): New function.
6545 (apply_probability): Use apply_scale.
6546 * gimple-streamer-in.c (input_bb): Ditto.
6547 * lto-streamer-in.c (input_cfg): Ditto.
6548 * lto-cgraph.c (merge_profile_summaries): Ditto.
6549 * tree-optimize.c (execute_fixup_cfg): Ditto.
6550 * tree-inline.c (copy_bb): Update comment to use apply_scale.
6551 (copy_edges_for_bb): Ditto.
6552 (copy_cfg_body): Ditto.
6553
6554 2013-04-29 Tom de Vries <tom@codesourcery.com>
6555
6556 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
6557 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
6558 (tail_merge_optimize): Handle current_loops == NULL.
6559
6560 2013-04-26 Jeff Law <law@redhat.com>
6561
6562 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
6563 (simplify_cond_using_ranges): Generalize code to simplify
6564 COND_EXPRs where one argument is a constant and the other
6565 is an SSA_NAME created by an integral type conversion.
6566
6567 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6568
6569 * config/arm/arm.md (store_minmaxsi): Use only when
6570 optimize_insn_for_size_p.
6571
6572 2013-04-29 Christian Bruel <christian.bruel@st.com>
6573
6574 PR target/57108
6575 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
6576
6577 2013-04-29 Richard Biener <rguenther@suse.de>
6578
6579 PR middle-end/57089
6580 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
6581 loop tree make sure to schedule a fixup for the child as well.
6582 (expand_omp_for_generic): Properly add loops.
6583 (expand_omp_for_static_nochunk): Likewise.
6584 (expand_omp_for_static_chunk): Likewise.
6585 (expand_omp_for): For the degenerate case fixup loops.
6586 (expand_omp_sections): Fix default bb placement in loops.
6587 (expand_omp_atomic_pipeline): Properly add loops.
6588
6589 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6590
6591 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
6592
6593 2013-04-29 Tom de Vries <tom@codesourcery.com>
6594
6595 * tree-ssa-tail-merge.c: Update header comment.
6596
6597 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6598
6599 * config/aarch64/arm_neon.h
6600 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
6601 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
6602 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
6603 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
6604 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
6605 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
6606 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
6607 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
6608
6609 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6610
6611 * config/aarch64/aarch64-simd.md
6612 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
6613 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
6614 fix_trunc, fixuns_trunc.
6615 (ftrunc<VDQF:mode>2): New.
6616 * config/aarch64/iterators.md (optab): Add fix, fixuns.
6617 (fix_trunc_optab): New.
6618
6619 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6620
6621 * config/aarch64/aarch64-builtins.c
6622 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
6623 iceilf, lround, iroundf.
6624
6625 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
6626
6627 PR target/54349
6628 * config/i386/i386.h (enum ix86_tune_indices)
6629 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
6630 New, split from X86_TUNE_INTER_UNIT_MOVES.
6631 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
6632 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
6633 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
6634 (TARGET_INTER_UNIT_MOVES): Remove.
6635 * config/i386/i386.c (initial_ix86_tune_features): Update.
6636 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
6637 (ix86_expand_convert_uns_didf_sse): Use
6638 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
6639 (ix86_expand_vector_init_one_nonzero): Ditto.
6640 (ix86_expand_vector_init_interleave): Ditto.
6641 (inline_secondary_memory_needed): Return true for moves from SSE class
6642 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
6643 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
6644 * config/i386/constraints.md (Yi, Ym): Depend on
6645 TARGET_INTER_UNIT_MOVES_TO_VEC.
6646 (Yj, Yn): New constraints.
6647 * config/i386/i386.md (*movdi_internal): Change constraints of
6648 operand 1 from Yi to Yj and from Ym to Yn.
6649 (*movsi_internal): Ditto.
6650 (*movdf_internal): Ditto.
6651 (*movsf_internal): Ditto.
6652 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
6653 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
6654 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
6655 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
6656 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
6657 * config/i386/sse.md (movdi_to_sse): Ditto.
6658 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
6659 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
6660 TARGET_INTER_UNIT_MOVES.
6661 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
6662 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
6663 instead of TARGET_INTER_UNIT_MOVES.
6664 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
6665 operand 1 from Yi to Yj and from Ym to Yn.
6666
6667 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6668
6669 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
6670 (float_truncate_hi_): Likewise.
6671 (float_extend_lo_): Likewise.
6672 (float_truncate_lo_): Likewise.
6673 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
6674 (aarch64_float_extend_lo_v2df): Likewise.
6675 (vec_unpacks_hi_v4sf): Likewise.
6676 (aarch64_float_truncate_lo_v2sf): Likewise.
6677 (aarch64_float_truncate_hi_v4sf): Likewise.
6678 (vec_pack_trunc_v2df): Likewise.
6679 (vec_pack_trunc_df): Likewise.
6680
6681 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6682
6683 * config/aarch64/aarch64-builtins.c
6684 (aarch64_fold_builtin): Fold float conversions.
6685 * config/aarch64/aarch64-simd-builtins.def
6686 (floatv2si, floatv4si, floatv2di): New.
6687 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
6688 * config/aarch64/aarch64-simd.md
6689 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
6690 * config/aarch64/iterators.md (FLOATUORS): New.
6691 (optab): Add float, floatuns.
6692 (su_optab): Likewise.
6693
6694 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6695
6696 * config/aarch64/aarch64-builtins.c
6697 (aarch64_builtin_vectorized_function): Use new names for
6698 fcvt builtins.
6699 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
6700 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
6701 (fcvtzu): Split as...
6702 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
6703 (fcvtas): Split as...
6704 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
6705 (fcvtau): Split as...
6706 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
6707 (fcvtps): Split as...
6708 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
6709 (fcvtpu): Split as...
6710 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
6711 (fcvtms): Split as...
6712 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
6713 (fcvtmu): Split as...
6714 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
6715 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
6716 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
6717 (lfrintnusf, lfrintnudf): Likewise.
6718 * config/aarch64/aarch64-simd.md
6719 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
6720 define_insn.
6721 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
6722 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
6723 (fcvt_pattern): Likewise.
6724
6725 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6726
6727 * config/aarch64/aarch64-simd.md
6728 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
6729 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
6730
6731 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6732
6733 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
6734 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
6735 (vrnd<a,m,n,p>_f32): Implement using builtins.
6736 (vrnd<i,x><q>_f<32, 64>): New.
6737
6738 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6739
6740 * config/aarch64/aarch64-builtins.c
6741 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
6742 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
6743 (frintz): Rename to...
6744 (btrunc): ...this.
6745 (frintp): Rename to...
6746 (ceil): ...this.
6747 (frintm): Rename to...
6748 (floor): ...this.
6749 (frinti): Rename to...
6750 (nearbyint): ...this.
6751 (frintx): Rename to...
6752 (rint): ...this.
6753 (frinta): Rename to...
6754 (round): ...this.
6755 * config/aarch64/aarch64-simd.md
6756 (aarch64_frint<frint_suffix><mode>): Delete.
6757 (<frint_pattern><mode>2): Convert to insn.
6758 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
6759 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
6760 (frint_pattern): Likewise.
6761 (frint_suffix): Likewise.
6762
6763 2013-04-29 Richard Biener <rguenther@suse.de>
6764
6765 PR tree-optimization/57081
6766 * loop-init.c: Include tree-flow.h.
6767 (loop_optimizer_finalize): Free number of iteration estimates.
6768 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
6769
6770 2013-04-29 Jakub Jelinek <jakub@redhat.com>
6771
6772 PR tree-optimization/57083
6773 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
6774 non-singleton shift count range, zero extend low_bound for uns case.
6775
6776 * config/i386/predicates.md (general_vector_operand): New predicate.
6777 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
6778 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
6779 if they aren't nonimmediate operands. If their original values
6780 satisfy const_vector_equal_evenodd_p, don't shift them.
6781 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
6782 predicates. For the SSE4.1 case force operands[{1,2}] into registers
6783 if not nonimmediate_operand.
6784 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
6785 instead of register_operand.
6786 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
6787
6788 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
6789
6790 * stor-layout.c (finalize_size_functions): Allocate a structure and
6791 reset cfun before dumping the functions.
6792
6793 2013-04-27 Jakub Jelinek <jakub@redhat.com>
6794
6795 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
6796
6797 PR target/56866
6798 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
6799 use xop_pmacsdqh if uns_p.
6800 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
6801 the immediate rotate count.
6802
6803 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
6804
6805 * rtl.h (struct rtx_def): Add comment for field jump.
6806 (LRA_SUBREG_P): New macro.
6807 * recog.c (register_operand): Check LRA_SUBREG_P.
6808 * lra.c (lra): Add note at the end of RTL code. Align non-empty
6809 stack frame.
6810 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
6811 (lra_final_code_change): Skip subreg change for operators.
6812 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
6813 if there are no operand changes.
6814 * lra-constraints.c (curr_insn_set): New.
6815 (match_reload): Set LRA_SUBREG_P.
6816 (emit_spill_move): Ditto.
6817 (check_and_process_move): Use curr_insn_set. Process only single
6818 set insns. Don't initialize sec_mem_p and change_p.
6819 (simplify_operand_subreg): Use LRA_SUBREG_P.
6820 (reg_in_class_p): New function.
6821 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
6822 of #ifdef. Add code to remove cycling.
6823 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
6824 non-null disp. Reload inner instead of disp when base and index
6825 are null. Try to put lo_sum into register.
6826 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
6827 (check_and_process_move): Move code for move cost check to
6828 simple_move_p. Remove equiv_substitution.
6829 (simple_move_p): New function.
6830 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
6831 curr_insn_set. Call check_and_process_move only for single set
6832 insns. Use the new function. Move call of check_and_process_move
6833 after operand equiv substitution and address process.
6834
6835 2013-04-26 Jakub Jelinek <jakub@redhat.com>
6836
6837 PR go/57045
6838 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
6839 with nonlocal goto receivers or returns twice calls, ignore
6840 unininitialized values from abnormal edges to nl goto receiver
6841 or returns twice call.
6842
6843 2013-04-26 Jakub Jelinek <jakub@redhat.com>
6844
6845 PR tree-optimization/57051
6846 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
6847 and VEC_RSHIFT_EXPR if shift count is a multiple of element
6848 bitsize.
6849
6850 2013-04-26 Richard Biener <rguenther@suse.de>
6851
6852 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
6853 (expand_omp_taskreg): Likewise. Mark loops for fixup.
6854 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
6855 (fixup_loop_arrays_after_move): New function.
6856 (move_sese_region_to_fn): Properly outline the loop tree parts
6857 of the SESE region.
6858
6859 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
6860
6861 * config/i386/i386.md (type, unit): Fix long lines.
6862
6863 2013-04-26 Richard Biener <rguenther@suse.de>
6864
6865 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
6866 (lto-streamer-out.o): Likewise.
6867 * cfgloop.c (init_loops_structure): Export, add struct function
6868 argument and adjust.
6869 (flow_loops_find): Adjust.
6870 * cfgloop.h (enum loop_estimation): Add EST_LAST.
6871 (init_loops_structure): Declare.
6872 * lto-streamer-in.c: Include cfgloop.h.
6873 (input_cfg): Input the loop tree.
6874 * lto-streamer-out.c: Include cfgloop.h.
6875 (output_cfg): Output the loop tree.
6876 (output_struct_function_base): Do not drop PROP_loops.
6877
6878 2013-03-26 Richard Biener <rguenther@suse.de>
6879
6880 * tree-cfg.c (execute_build_cfg): Build the loop tree.
6881 (pass_build_cfg): Provide PROP_loops.
6882 (move_sese_region_to_fn): Remove loops that are outlined into fn
6883 for now.
6884 * tree-inline.c: Include cfgloop.h.
6885 (initialize_cfun): Do not drop PROP_loops.
6886 (copy_loops): New function.
6887 (copy_cfg_body): Copy loop structure.
6888 (tree_function_versioning): Initialize destination loop tree.
6889 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
6890 (pass_parallelize_loops): Do IL verification.
6891 * loop-init.c (loop_optimizer_init): Fixup loops if required.
6892 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
6893 the CFG make sure we fixup loops as well.
6894 * tree-ssa-tail-merge.c: Include cfgloop.h.
6895 (replace_block_by): When merging loop latches mark loops for fixup.
6896 * lto-streamer-out.c (output_struct_function_base): Drop
6897 PROP_loops for now.
6898 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
6899 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
6900 * ipa-split.c: Include cfgloop.h.
6901 (split_function): Add the new return block to the loop tree root.
6902 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
6903 whether we have removed the forwarder block.
6904 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
6905 * cfgloop.h (place_new_loop): Declare.
6906 * cfgloopmanip.c (place_new_loop): Export.
6907 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
6908 (tree-switch-conversion.o): Likewise.
6909 (tree-complex.o): Likewise.
6910 (tree-inline.o): Likewise.
6911 (tree-ssa-tailmerge.o): Likewise.
6912 (ipa-split.o): Likewise.
6913 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
6914 (tree-ssa-copy.o): Likewise.
6915 * tree-switch-conversion.c: Include cfgloop.h
6916 (process_switch): If we emit a bit-test cascade, schedule loops
6917 for fixup.
6918 * tree-complex.c: Include cfgloop.h.
6919 (expand_complex_div_wide): Properly add new basic-blocks to loops.
6920 * asan.c: Include cfgloop.h.
6921 (create_cond_insert_point): Properly add new basic-blocks to
6922 loops, schedule loop fixup.
6923 * cfgloop.c (verify_loop_structure): Check that looks are not
6924 marked for fixup.
6925 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
6926 to loops.
6927 (expand_omp_for_generic): Likewise.
6928 (expand_omp_sections): Likewise.
6929 (expand_omp_atomic_pipeline): Schedule loops for fixup.
6930 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
6931 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
6932 is initialized, not when loops are present.
6933 * tree-parloops.c (parallelize_loops): Remove checking here.
6934 * passes.c (init_optimization_passes): Schedule a copy-propagation
6935 pass before complete unrolling of inner loops.
6936
6937 2013-04-26 Jakub Jelinek <jakub@redhat.com>
6938
6939 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
6940 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
6941 (colorize_init): Add argument to _WIN32 version.
6942 * toplev.c: Include diagnostic-color.h.
6943 (process_options): Default to -fdiagnostics-color=auto if
6944 GCC_COLORS env var is in the environment.
6945 * common.opt (fdiagnostics-color=): Add Var and Init.
6946 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
6947 env var is in the environment, the default is auto rather than never.
6948
6949 * diagnostic.h (file_name_as_prefix): Add context argument.
6950 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
6951 the string as locus.
6952 * langhooks.c (lhd_print_error_function): Adjust caller.
6953
6954 2013-04-25 Lawrence Crowl <crowl@google.com>
6955
6956 * var-tracking.c (shared_hash_def::htab):
6957 Change type to hash_table. Update dependent calls and types.
6958
6959 2013-04-25 Lawrence Crowl <crowl@google.com>
6960
6961 * Makefile.in: Update as needed below.
6962
6963 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
6964 Move declaration to after the type's method definitons.
6965
6966 * attribs.c (htab_t scoped_attributes::attribute_hash):
6967 Change type to hash_table. Update dependent calls and types.
6968
6969 * bitmap.c (htab_t bitmap_desc_hash):
6970 Change type to hash_table. Update dependent calls and types.
6971
6972 * cselib.c (htab_t cselib_hash_table):
6973 Change type to hash_table. Update dependent calls and types.
6974
6975 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
6976 (hash_string_slot_node): Move implementation into lto-streamer.h
6977 struct string_slot_hasher.
6978 (eq_string_slot_node): Likewise.
6979
6980 * data-streamer-out.c: Update output_block::string_hash_table
6981 dependent calls and types.
6982
6983 * dwarf2cfi.c (htab_t trace_index):
6984 Change type to hash_table. Update dependent calls and types.
6985
6986 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
6987 Change type to hash_table. Update dependent calls and types.
6988 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
6989 (htab_t optimize_external_refs::map): Likewise.
6990 (htab_t output_comp_unit::extern_map): Likewise.
6991 (htab_t output_comdat_type_unit::extern_map): Likewise.
6992 (htab_t output_macinfo::macinfo_htab): Likewise.
6993 (htab_t optimize_location_lists::htab): Likewise.
6994 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
6995
6996 * except.c (htab_t ehspec_hash_type):
6997 Change type to hash_table. Update dependent calls and types.
6998 (assign_filter_values::ttypes): Likewise.
6999 (assign_filter_values::ehspec): Likewise.
7000 (sjlj_assign_call_site_values::ar_hash): Likewise.
7001 (convert_to_eh_region_ranges::ar_hash): Likewise.
7002
7003 * gcse.c (htab_t pre_ldst_table):
7004 Change type to hash_table. Update dependent calls and types.
7005
7006 * ggc-common.c (htab_t saving_htab):
7007 Change type to hash_table. Update dependent calls and types.
7008 (htab_t loc_hash): Likewise.
7009 (htab_t ptr_hash): Likewise.
7010 (call_count): Rename ggc_call_count.
7011 (call_alloc): Rename ggc_call_alloc.
7012 (loc_descriptor): Rename make_loc_descriptor.
7013 (add_statistics): Rename ggc_add_statistics.
7014
7015 * ggc-common.c (saving_htab):
7016 Change type to hash_table. Update dependent calls and types.
7017
7018 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
7019 (push_gimplify_context): Likewise.
7020 (pop_gimplify_context): Likewise.
7021 (struct gimple_temp_hash_elt): Added.
7022 (struct gimplify_hasher): Likewise.
7023 (struct gimplify_ctx.temp_htab):
7024 Change type to hash_table. Update dependent calls and types.
7025
7026 * gimple-fold.c: Include gimplify-ctx.h.
7027
7028 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
7029 Change type to hash_table. Update dependent calls and types.
7030 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
7031 avoid potential global name collision.
7032
7033 * gimplify.c: Include gimplify-ctx.h.
7034 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
7035 (htab_t gimplify_ctx::temp_htab):
7036 Update dependent calls and types for new type hash_table.
7037 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
7038 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
7039
7040 * gimplify-ctx.h: New.
7041 (struct gimple_temp_hash_elt): Move from gimplify.c.
7042 (class gimplify_hasher): New.
7043 (struct gimplify_ctx): Move from gimple.h.
7044 (htab_t gimplify_ctx::temp_htab):
7045 Change type to hash_table. Update dependent calls and types.
7046
7047 * graphite-clast-to-gimple.c: Include graphite-htab.h.
7048 (htab_t ivs_params::newivs_index):
7049 Change type to hash_table. Update dependent calls and types.
7050 (htab_t ivs_params::params_index): Likewise.
7051 (htab_t print_generated_program::params_index): Likewise.
7052 (htab_t gloog::newivs_index): Likewise.
7053 (htab_t gloog::params_index): Likewise.
7054
7055 * graphite.c: Include graphite-htab.h.
7056 4htab_t graphite_transform_loops::bb_pbb_mapping):
7057 Change type to hash_table. Update dependent calls and types.
7058
7059 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
7060 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
7061 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
7062
7063 * graphite-dependences.c: Include graphite-htab.h.
7064 (loop_is_parallel_p): Change hash table type of parameter.
7065
7066 * graphite-htab.h: New.
7067 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
7068 (extern find_pbb_via_hash): Move from graphite-poly.h.
7069 (extern loop_is_parallel_p): Move from graphite-poly.h.
7070 (extern get_loop_body_pbbs): Move from graphite-poly.h.
7071
7072 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
7073 (extern loop_is_parallel_p): Move to graphite-htab.h.
7074 (extern get_loop_body_pbbs): Move to graphite-htab.h.
7075
7076 * haifa-sched.c (htab_t delay_htab):
7077 Change type to hash_table. Update dependent calls and types.
7078 (htab_t delay_htab_i2): Likewise.
7079
7080 * ira-color.c (htab_t allocno_hard_regs_htab):
7081 Change type to hash_table. Update dependent calls and types.
7082
7083 * ira-costs.c (htab_t cost_classes_htab):
7084 Change type to hash_table. Update dependent calls and types.
7085
7086 * loop-invariant.c (htab_t merge_identical_invariants::eq):
7087 Change type to hash_table. Update dependent calls and types.
7088
7089 * loop-iv.c (htab_t bivs):
7090 Change type to hash_table. Update dependent calls and types.
7091
7092 * loop-unroll.c (htab_t opt_info::insns_to_split):
7093 Change type to hash_table. Update dependent calls and types.
7094 (htab_t opt_info::insns_with_var_to_expand): Likewise.
7095
7096 * lto-streamer.h (struct string_slot): Move from data-streamer.h
7097 (struct string_slot_hasher): New.
7098 (htab_t output_block::string_hash_table):
7099 Change type to hash_table. Update dependent calls and types.
7100
7101 * lto-streamer-in.c (freeing_string_slot_hasher): New.
7102 (htab_t file_name_hash_table):
7103 Change type to hash_table. Update dependent calls and types.
7104
7105 * lto-streamer-out.c: Update output_block::string_hash_table dependent
7106 calls and types.
7107
7108 * lto-streamer.c (htab_t tree_htab):
7109 Change type to hash_table. Update dependent calls and types.
7110
7111 * omp-low.c: Include gimplify-ctx.h.
7112
7113 * passes.c (htab_t name_to_pass_map):
7114 Change type to hash_table. Update dependent calls and types.
7115 (pass_traverse): Rename to passes_pass_traverse.
7116
7117 * plugin.c (htab_t event_tab):
7118 Change type to hash_table. Update dependent calls and types.
7119
7120 * postreload-gcse.c (htab_t expr_table):
7121 Change type to hash_table. Update dependent calls and types.
7122 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
7123
7124 * sese.c (debug_rename_map_1): Make extern.
7125 (htab_t copy_bb_and_scalar_dependences::rename_map):
7126 Change type to hash_table. Update dependent calls and types.
7127
7128 * sese.h (extern debug_rename_map): Move to .c file.
7129
7130 * store-motion.c (htab_t store_motion_mems_table):
7131 Change type to hash_table. Update dependent calls and types.
7132
7133 * trans-mem.c (htab_t tm_new_mem_hash):
7134 Change type to hash_table. Update dependent calls and types.
7135
7136 * tree-browser.c (htab_t TB_up_ht):
7137 Change type to hash_table. Update dependent calls and types.
7138
7139 * tree-cfg.c (htab_t discriminator_per_locus):
7140 Change type to hash_table. Update dependent calls and types.
7141
7142 * tree-complex.c: Include tree-hasher.h
7143 (htab_t complex_variable_components):
7144 Change type to hash_table. Update dependent calls and types.
7145
7146 * tree-eh.c (htab_t finally_tree):
7147 Change type to hash_table. Update dependent calls and types.
7148
7149 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
7150 struct int_tree_hasher.
7151 (extern int_tree_map_eq): Likewise.
7152 (uid_decl_map_hash): Removed.
7153 (extern decl_tree_map_eq): Likewise.
7154
7155 * tree-hasher.h: New.
7156 (struct int_tree_hasher): New.
7157 (typedef int_tree_htab_type): New.
7158
7159 * tree-inline.c: Include gimplify-ctx.h.
7160
7161 * tree-mudflap.c: Include gimplify-ctx.h.
7162
7163 * tree-parloops.c: Include tree-hasher.h.
7164 (htab_t eliminate_local_variables_stmt::decl_address):
7165 Change type to hash_table. Update dependent calls and types.
7166 (htab_t separate_decls_in_region::decl_copies): Likewise.
7167
7168 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
7169 Change type to hash_table. Update dependent calls and types.
7170
7171 * tree-sra.c (candidates):
7172 Change type to hash_table. Update dependent calls and types.
7173
7174 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
7175 in tree-flow.h.
7176 (int_tree_map_hash): Likewise.
7177
7178 * tree-ssa-dom.c (htab_t avail_exprs):
7179 Change type to hash_table. Update dependent calls and types.
7180
7181 * tree-ssa-live.c (var_map_base_init::tree_to_index):
7182 Change type to hash_table. Update dependent calls and types.
7183
7184 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
7185 Change type to hash_table. Update dependent calls and types.
7186
7187 * tree-ssa-phiopt.c (seen_ssa_names):
7188 Change type to hash_table. Update dependent calls and types.
7189
7190 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
7191 Change type to hash_table. Update dependent calls and types.
7192
7193 * tree-ssa-uncprop.c (equiv):
7194 Change type to hash_table. Update dependent calls and types.
7195
7196 2013-04-25 Jakub Jelinek <jakub@redhat.com>
7197
7198 PR rtl-optimization/57003
7199 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
7200 call note_stores with kill_clobbered_value callback again after
7201 killing regs_invalidated_by_call.
7202
7203 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7204
7205 * config/aarch64/aarch64-simd.md
7206 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
7207 (aarch64_simd_bsl<mode>): Likewise.
7208 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
7209
7210 2013-04-25 Marek Polacek <polacek@redhat.com>
7211
7212 PR tree-optimization/57066
7213 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
7214
7215 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
7216
7217 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
7218
7219 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7220
7221 * config/aarch64/aarch64-builtins.c
7222 (aarch64_fold_builtin): New.
7223 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
7224 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
7225 * config/aarch64/aarch64-simd-builtins.def (abs): New.
7226 * config/aarch64/arm_neon.h
7227 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
7228
7229 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7230 Tejas Belagod <tejas.belagod@arm.com>
7231
7232 * config/aarch64/aarch64-builtins.c
7233 (aarch64_gimple_fold_builtin): New.
7234 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
7235 * config/aarch64/aarch64-simd-builtins.def (addv): New.
7236 * config/aarch64/aarch64-simd.md (addpv4sf): New.
7237 (addvv4sf): Update.
7238 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
7239
7240 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7241
7242 * config/aarch64/aarch64.md
7243 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
7244
7245 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7246
7247 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
7248 (*ngcsi_uxtw): New pattern.
7249
7250 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7251 Julian Brown <julian@codesourcery.com>
7252
7253 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
7254 (TB_DREG): Add T_V4HF.
7255 (v4hf_UP): New macro.
7256 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
7257 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
7258 Handle initialisation of V4HF. Adjust initialisation of reinterpret
7259 built-ins.
7260 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
7261 (arm_vector_mode_supported_p): Handle V4HF.
7262 (arm_mangle_map): Handle V4HFmode.
7263 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
7264 * config/arm/arm_neon_builtins.def: Add entries for
7265 vcvtv4hfv4sf, vcvtv4sfv4hf.
7266 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
7267 (neon_vcvtv4hfv4sf): Likewise.
7268 * config/arm/neon-gen.ml: Handle half-precision floating point
7269 features.
7270 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
7271 * config/arm/arm_neon.h: Regenerate.
7272 * config/arm/neon.ml (type elts): Add F16.
7273 (type vectype): Add T_float16x4, T_floatHF.
7274 (type vecmode): Add V4HF.
7275 (type features): Add Requires_FP_bit feature.
7276 (elt_width): Handle F16.
7277 (elt_class): Likewise.
7278 (elt_of_class_width): Likewise.
7279 (mode_of_elt): Refactor.
7280 (type_for_elt): Handle F16, fix error messages.
7281 (vectype_size): Handle T_float16x4.
7282 (vcvt_sh): New function.
7283 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
7284 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
7285 (string_of_mode): Handle V4HF.
7286 * doc/arm-neon-intrinsics.texi: Regenerate.
7287
7288 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7289
7290 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
7291 format specifier in 'X' case.
7292
7293 2013-04-25 Alan Modra <amodra@gmail.com>
7294
7295 PR target/57052
7296 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
7297 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
7298 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
7299 Repeat for many other rotate/shift and mask patterns using subregs.
7300 Name lshiftrt insns.
7301 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
7302 on WORDS_BIG_ENDIAN.
7303
7304 2013-04-25 Alan Modra <amodra@gmail.com>
7305
7306 * config.gcc: Support little-endian powerpc-linux targets.
7307 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
7308 (LINK_OS_LINUX_SPEC): Define.
7309 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
7310 Preserve MASK_LITTLE_ENDIAN.
7311 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
7312 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
7313 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
7314 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
7315 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
7316 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
7317 Correct fp word order for little-endian. Don't shift toc entries
7318 smaller than a word for little-endian.
7319 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
7320 (bswapdi2 splits): Correct low-part subreg for little-endian.
7321 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
7322 low/high where such is correct only for be.
7323 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
7324 little-endian for -mcall-aixdesc.
7325
7326 2013-04-25 Alan Modra <amodra@gmail.com>
7327
7328 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
7329 replace_equiv_address_nv.
7330
7331 2013-04-25 Alan Modra <amodra@gmail.com>
7332
7333 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
7334
7335 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7336
7337 Revert:
7338 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7339 * rtl.h (struct rtx_def): ...
7340
7341 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7342
7343 PR rtl-optimizations/57046
7344 * lra-constraints (split_reg): Set up lra_risky_transformations_p
7345 for multi-reg splits.
7346
7347 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
7348
7349 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
7350
7351 2013-04-24 Sterling Augustine <saugustine@google.com>
7352
7353 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
7354 (comp_dir_string, debug_str_dwo_section): New.
7355 (DEBUG_STR_DWO_SECTION): Rename to ...
7356 (DEBUG_DWO_STR_SECTION): ... this.
7357 (DEBUG_NORM_STR_SECTION): Delete.
7358 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
7359 (DEBUG_STR_DWO_SECTION_FLAGS): New.
7360 (find_AT_string): Move most logic to ...
7361 (find_AT_string_in_table): ... here. New.
7362 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
7363 add_skeleton_AT_string. Delete logic.
7364 (output_skeleton_debug_sections): Remove call to
7365 add_top_level_skeleton_die_attrs.
7366 (add_comp_dir_attribute): Move logic to comp_dir_string.
7367 (dwarf2out_init): Initialize debug_str_dwo_section.
7368 (output_indirect_string): Call find_string_form.
7369 (output_indirect_strings): Rewrite.
7370 (prune_unused_types): Empty skeleton_debug_str_hash.
7371 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
7372 (dwarf2out_finish): Call output_indirect_strings.
7373
7374 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7375
7376 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
7377
7378 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7379
7380 * rtl.h (struct rtx_def): Add comment for field jump.
7381 (LRA_SUBREG_P): New macro.
7382 * recog.c (register_operand): Check LRA_SUBREG_P.
7383 * lra.c (lra): Add note at the end of RTL code. Align non-empty
7384 stack frame.
7385 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
7386 (lra_final_code_change): Skip subreg change for operators.
7387 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
7388 if there are no operand changes.
7389 * lra-constraints.c (curr_insn_set): New.
7390 (match_reload): Set LRA_SUBREG_P.
7391 (emit_spill_move): Ditto.
7392 (check_and_process_move): Use curr_insn_set. Process only single
7393 set insns. Don't initialize sec_mem_p and change_p.
7394 (simplify_operand_subreg): Use LRA_SUBREG_P.
7395 (reg_in_class_p): New function.
7396 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
7397 of #ifdef. Add code to remove cycling.
7398 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
7399 non-null disp. Reload inner instead of disp when base and index
7400 are null. Try to put lo_sum into register.
7401 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
7402 (check_and_process_move): Move code for move cost check to
7403 simple_move_p. Remove equiv_substitution.
7404 (simple_move_p): New function.
7405 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
7406 curr_insn_set. Call check_and_process_move only for single set
7407 insns. Use the new function. Move call of check_and_process_move
7408 after operand equiv substitution and address process.
7409
7410 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
7411
7412 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
7413 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
7414 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
7415
7416 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7417
7418 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
7419
7420 2013-04-24 Marek Polacek <polacek@redhat.com>
7421
7422 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
7423 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
7424 (select_loops_exit_conditions): Likewise.
7425 (number_of_iterations_for_all_loops): Likewise.
7426 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
7427 (scev_analysis): Likewise.
7428
7429 2013-04-02 Catherine Moore <clm@codesourcery.com>
7430 Chao-ying Fu <fu@mips.com>
7431
7432 * config/mips/micromips.md (jraddiusp): New pattern.
7433 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
7434 instruction if possible.
7435
7436 2013-04-24 Alan Modra <amodra@gmail.com>
7437
7438 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
7439
7440 2013-04-24 Julian Brown <julian@codesourcery.com>
7441 Chung-Lin Tang <cltang@codesourcery.com>
7442
7443 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
7444 dependency behavior in enumeration type DIE generation. Add TODO note
7445 to comments about future DW_FORM_sdata/udata re-work of related code.
7446
7447 2013-04-23 Lawrence Crowl <crowl@google.com>
7448
7449 * Makefile.in: Update as needed below.
7450
7451 * hash-table.h (class hash_table):
7452 Correct many methods with parameter types compare_type to the correct
7453 value_type. (Correct code was unlikely to notice the change.)
7454 (hash_table::elements_with_deleted) New.
7455 (class hashtable::iterator): New.
7456 (hashtable::begin()): New.
7457 (hashtable::end()): New.
7458 (FOR_EACH_HASH_TABLE_ELEMENT): New.
7459
7460 * statistics.c (statistics_hashes):
7461 Change type to hash_table. Update dependent calls and types.
7462
7463 * tree-into-ssa.c (var_infos):
7464 Change type to hash_table. Update dependent calls and types.
7465
7466 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
7467 Change type to hash_table. Update dependent calls and types.
7468
7469 * tree-ssa-loop-im.c (struct mem_ref.refs):
7470 Change type to hash_table. Update dependent calls and types.
7471
7472 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
7473 Change type to hash_table. Update dependent calls and types.
7474
7475 * tree-ssa-sccvn.c (vn_tables_s::nary):
7476 Change type to hash_table. Update dependent calls and types.
7477 (vn_tables_s::phis): Likewise.
7478 (vn_tables_s::references): Likewise.
7479
7480 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
7481 (vn_reference_eq): Update parameter and return types.
7482
7483 * tree-ssa-structalias.c (pointer_equiv_class_table):
7484 Change type to hash_table. Update dependent calls and types.
7485 (location_equiv_class_table): Likewise.
7486
7487 * tree-vect-data-refs.c: Consequential changes for making
7488 peeling a hash_table.
7489
7490 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
7491 (destroy_loop_vec_info): Dependent hash_table update.
7492
7493 * tree-vectorizer.h (peeling_htab):
7494 Change type to hash_table. Update dependent calls and types.
7495
7496 2013-04-23 Shiva Chen <shiva0217@gmail.com>
7497
7498 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
7499 to check the register content is equal or not.
7500 * lra-constraints.c (match_reload): Use lra_assign_reg_val
7501 to assign register content record.
7502 * lra-eliminations.c (update_reg_eliminate): Use
7503 lra_update_reg_val_offset to update register content offset.
7504 * lra-int.h (struct lra_reg): Add offset member.
7505 (lra_reg_val_equal_p): New static inline function.
7506 (lra_update_reg_val_offset): New static inline function.
7507 (lra_assign_reg_val): New static inline function.
7508 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
7509 to assign register content record.
7510 (initialize_lra_reg_info_element): Initial offset to zero.
7511
7512 2013-04-23 Catherine Moore <clm@codesourcery.com>
7513
7514 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
7515 operands. Record compression.
7516
7517 2013-04-23 Xinliang David Li <davidxl@google.com>
7518
7519 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
7520
7521 2013-04-23 Richard Biener <rguenther@suse.de>
7522
7523 PR middle-end/57036
7524 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
7525 parameter, only add abnormal goto edges from the copied body
7526 if the call could perform abnormal gotos.
7527 (copy_cfg_body): Adjust.
7528
7529 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
7530
7531 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
7532
7533 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
7534
7535 * coretypes.h (gimple_stmt_iterator): Add struct to make
7536 compatible with C.
7537
7538 2013-04-23 Richard Biener <rguenther@suse.de>
7539
7540 PR tree-optimization/57026
7541 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
7542 from SSA names occuring in abnormal PHI nodes.
7543
7544 2013-04-22 Andi Kleen <ak@linux.intel.com>
7545
7546 * lto/lto.c (print_lto_report_1): Fix LTO report names.
7547
7548 2013-04-22 Andi Kleen <ak@linux.intel.com>
7549
7550 * lto/lto.c (print_lto_report_1): Declare early.
7551 (read_cgraph_and_symbols): Call print_lto_report_1 early.
7552
7553 2013-04-22 Andi Kleen <ak@linux.intel.com>
7554
7555 * common.opt (-flto-report-wpa): Add.
7556 * doc/invoke.texi (-flto-report-wpa): Add.
7557 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
7558 (lto_main): dito.
7559
7560 2013-04-22 Xinliang David Li <davidxl@google.com>
7561
7562 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
7563 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
7564 * Makefile.in: New dependency
7565
7566 David Daney <ddaney.cavm@gmail.com>
7567
7568 * configure.ac (gcc_cv_as_micromips_support): Use the
7569 --fatal-warnings option.
7570 * configure: Regenerate.
7571
7572 2013-04-22 Marek Polacek <polacek@redhat.com>
7573
7574 PR sanitizer/56990
7575 * tsan.c (instrument_expr): Don't instrument expression
7576 in case its size is zero.
7577
7578 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
7579
7580 PR target/57032
7581 Revert:
7582 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
7583
7584 * config/alpha/alpha.c (TARGET_LRA_P): New define.
7585
7586 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
7587
7588 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
7589 (gimple_stmt_iterator): New typedef.
7590 * gimple.h (gimple_stmt_iterator): Rename to...
7591 (gimple_stmt_iterator_d): ... This.
7592 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
7593 trees be valid for GIMPLE and GENERIC.
7594 (TARGET_GIMPLE_FOLD_BUILTIN): New.
7595 * gimple-fold.c (gimple_fold_call): Call target hook
7596 gimple_fold_builtin.
7597 * hooks.c (hook_bool_gsiptr_false): New.
7598 * hooks.h (hook_bool_gsiptr_false): New.
7599 * target.def (fold_stmt): New.
7600 * doc/tm.texi: Regenerate.
7601
7602 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
7603
7604 PR target/57018
7605 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
7606 a set sp if no stack realignment.
7607
7608 2013-04-22 Nick Clifton <nickc@redhat.com>
7609
7610 * config.gcc (tilegx-linux): Extend extra_objs rather than
7611 overwriting it.
7612 (tilepro-linux): Likewise.
7613
7614 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
7615
7616 * config/aarch64/aarch64-builtins.c
7617 (CF): Remove.
7618 (CF0, CF1, CF2, CF3, CF4, CF10): New.
7619 (VAR<1-12>): Add MAP parameter.
7620 (BUILTIN_*): Likewise.
7621 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
7622 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
7623 (aarch64_ushl_n<mode>): Likewise.
7624 (aarch64_sshr_n<mode>): Likewise.
7625 (aarch64_ushr_n<mode>): Likewise.
7626 (aarch64_<maxmin><mode>): Likewise.
7627 (aarch64_sqrt<mode>): Likewise.
7628 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
7629 (vshr<q>_n_*): Likewise.
7630
7631 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
7632
7633 * config/aarch64/aarch64-builtins.c
7634 (aarch64_simd_builtin_type_mode): Handle SF types.
7635 (sf_UP): Define.
7636 (BUILTIN_GPF): Define.
7637 (aarch64_init_simd_builtins): Handle SF types.
7638 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
7639 (frecps): Likewise.
7640 (frecpx): Likewise.
7641 * config/aarch64/aarch64-simd.md
7642 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
7643 (aarch64_frecpe<mode>): New.
7644 (aarch64_frecps<mode>): Likewise.
7645 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
7646 (v8type): Add frecp<esx>.
7647 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
7648 (aarch64_frecps<mode>): Likewise.
7649 * config/aarch64/iterators.md (FRECP): New.
7650 (frecp_suffix): Likewise.
7651 * config/aarch64/arm_neon.h
7652 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
7653
7654 2013-04-22 Christian Bruel <christian.bruel@st.com>
7655
7656 PR target/56995
7657 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
7658 (REG_CLASS_NAMES): Idem.
7659 (REG_CLASS_CONTENTS): Idem.
7660 (REGCLASS_HAS_FP_REG): Idem.
7661 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
7662 (sh_conditional_register_usage): Idem.
7663
7664 2013-04-21 Jeff Law <law@redhat.com>
7665
7666 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
7667 (ssa_forward_propagate_and_combine): Use it.
7668
7669 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
7670
7671 * lra.c: Update the flow chart diagram.
7672
7673 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
7674
7675 PR rtl-optimization/56847
7676 * lra-constraints.c (process_alt_operands): Discourage alternative
7677 with non-matche doffsettable memory constraint fro memory with
7678 known offset.
7679
7680 2013-04-19 Richard Biener <rguenther@suse.de>
7681
7682 PR tree-optimization/56982
7683 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
7684 function.
7685 * gimplify.c (gimplify_call_expr): Notice special calls.
7686 (gimplify_modify_expr): Likewise.
7687 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
7688 abnormal control flow receivers.
7689 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
7690 in the same way as cfun->has_nonlocal_labels.
7691 (gimple_purge_dead_abnormal_call_edges): Likewise.
7692 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
7693 receivers start a basic-block.
7694
7695 2013-04-19 Richard Biener <rguenther@suse.de>
7696
7697 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
7698 member ...
7699 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
7700 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
7701 (SLP_TREE_LOAD_PERMUTATION): Add.
7702 (vect_transform_slp_perm_load): Adjust prototype.
7703 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
7704 (vect_free_slp_instance): Likewise.
7705 (vect_create_new_slp_node): Likewise.
7706 (vect_supported_slp_permutation_p): Remove.
7707 (vect_slp_rearrange_stmts): Adjust.
7708 (vect_supported_load_permutation_p): Likewise. Inline
7709 vect_supported_slp_permutation_p here.
7710 (vect_analyze_slp_instance): Compute load permutations per
7711 slp node instead of per instance.
7712 (vect_get_slp_defs): Adjust.
7713 (vect_transform_slp_perm_load): Likewise.
7714 (vect_schedule_slp_instance): Remove redundant code.
7715 (vect_schedule_slp): Remove hack for PR56270, add it ...
7716 * tree-vect-stmts.c (vectorizable_load): ... here, do not
7717 CSE loads for SLP. Adjust.
7718
7719 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
7720
7721 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
7722 spelling in two comments.
7723
7724 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
7725
7726 PR target/56797
7727 * config/arm/arm.c (load_multiple_sequence): Require SP
7728 as base register for loads if SP is in the register list.
7729
7730 2013-04-19 Martin Jambor <mjambor@suse.cz>
7731
7732 PR tree-optimization/56718
7733 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
7734 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
7735 and made public. Adjusted all callers.
7736 (ipa_intraprocedural_devirtualization): New function.
7737 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
7738 (ipa_intraprocedural_devirtualization): Likewise.
7739 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
7740
7741 2013-04-19 Richard Biener <rguenther@suse.de>
7742
7743 PR tree-optimization/57000
7744 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
7745
7746 2013-04-19 Terry Guo <terry.guo@arm.com>
7747
7748 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
7749 Replace with ...
7750 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
7751 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
7752 (cortex_m4_fmacs): Use new reservations.
7753 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
7754
7755 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
7756
7757 PR rtl-optimization/56999
7758 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
7759 related code.
7760 (lra_coalesce): Remove split_origin_bitmap and related code.
7761 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
7762 ranges if necessary.
7763
7764 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
7765
7766 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
7767 New array.
7768 (ix86_expand_call): Remove clobbered_registers array and use
7769 x86_64_ms_sysv_extra_clobbered_registers instead.
7770 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
7771 Declare here.
7772 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
7773 predicate.
7774 * config/i386/i386.md (*call_rex64_ms_sysv): Use
7775 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
7776 (*call_value_rex64_ms_sysv): Ditto.
7777
7778 2013-04-18 Cary Coutant <ccoutant@google.com>
7779
7780 * dwarf2out.c (output_pubnames): Check die_perennial_p of
7781 parent instead of die_mark.
7782
7783 2013-04-18 Diego Novillo <dnovillo@google.com>
7784
7785 * gimple.c (create_gimple_tmp): New.
7786 (get_expr_type): New.
7787 (build_assign): New.
7788 (build_type_cast): New.
7789 * gimple.h (enum ssa_mode): Define.
7790 (gimple_seq_set_location): New.
7791 * asan.c (build_check_stmt): Change some gimple_build_* calls
7792 to use build_assign and build_type_cast.
7793
7794 2013-04-18 Richard Biener <rguenther@suse.de>
7795
7796 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
7797 handle negative step. Remove redundant checks.
7798 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
7799 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
7800 for negative step and grouped loads fail to vectorize.
7801
7802 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
7803
7804 * emit-rtl.c (reset_insn_used_flags): New function.
7805 (reset_all_used_flags): Use it.
7806 (verify_insn_sharing): New function.
7807 (verify_rtl_sharing): Fix verification for SEQUENCEs.
7808
7809 2013-04-18 Jakub Jelinek <jakub@redhat.com>
7810
7811 PR tree-optimization/56984
7812 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
7813 and (x >> M) >= N don't register any assertion if N << M is the
7814 minimum value.
7815
7816 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
7817
7818 * lower-subreg.c (resolve_simple_move): If called self-recursive,
7819 do not delete_insn insns that have not yet been emitted, only
7820 unlink them with remove_insn.
7821 * df-scan.c (df_insn_delete): Revert r197492.
7822
7823 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
7824
7825 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
7826 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
7827
7828 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
7829
7830 * config/arm/arm.md (movsicc_insn): Convert define_insn into
7831 define_insn_and_split.
7832 (and_scc,ior_scc,negscc): Likewise.
7833 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
7834
7835 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
7836
7837 * config/arm/arm.c (use_return_insn): Return 0 for targets that
7838 can benefit from using a sequence of LDRD instructions in epilogue
7839 instead of a single LDM instruction.
7840
7841 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
7842
7843 PR 45688
7844 * doc/extend.texi: Fix typo.
7845
7846 2013-04-17 Richard Biener <rguenther@suse.de>
7847
7848 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
7849 (vect_build_slp_tree): ... here.
7850 (vect_build_slp_tree_1): Compute which stmts of the SLP group
7851 match. Remove special-casing of mismatched complex loads.
7852 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
7853 re-try the match with swapped commutative operands.
7854 (vect_supported_load_permutation_p): Remove special-casing of
7855 mismatched complex loads.
7856 (vect_analyze_slp_instance): Adjust.
7857
7858 2013-04-17 Richard Biener <rguenther@suse.de>
7859
7860 PR rtl-optimization/56921
7861 * cfgloop.h (struct loop): Add simple_loop_desc member.
7862 (struct niter_desc): Mark with GTY(()).
7863 (simple_loop_desc): Do not use aux field but simple_loop_desc.
7864 * loop-iv.c (get_simple_loop_desc): Likewise.
7865 (free_simple_loop_desc): Likewise.
7866
7867 Revert
7868 2013-04-16 Richard Biener <rguenther@suse.de>
7869
7870 PR rtl-optimization/56921
7871 * loop-init.c (pass_rtl_move_loop_invariants): Add
7872 TODO_do_not_ggc_collect to todo_flags_finish.
7873 (pass_rtl_unswitch): Same.
7874 (pass_rtl_unroll_and_peel_loops): Same.
7875 (pass_rtl_doloop): Same.
7876
7877 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
7878
7879 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
7880 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
7881 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
7882 references.
7883 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
7884 * tree-streamer.c (record_common_node): Adjust reference in comment.
7885
7886 2013-04-17 Terry Guo <terry.guo@arm.com>
7887
7888 * config/arm/cortex-m4.md: Add a new bypass.
7889
7890 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7891
7892 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
7893 New pattern.
7894 (*subs_<optab><mode>_multp2): New pattern.
7895 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
7896 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
7897
7898 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7899
7900 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
7901 (*subs_mul_imm_<mode>): New pattern.
7902
7903 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
7904
7905 PR target/56948
7906 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
7907 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
7908 (vsx_movti_32bit): Change j->wa to O->wa.
7909
7910 2013-04-16 Richard Biener <rguenther@suse.de>
7911
7912 PR rtl-optimization/56921
7913 * loop-init.c (pass_rtl_move_loop_invariants): Add
7914 TODO_do_not_ggc_collect to todo_flags_finish.
7915 (pass_rtl_unswitch): Same.
7916 (pass_rtl_unroll_and_peel_loops): Same.
7917 (pass_rtl_doloop): Same.
7918
7919 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
7920
7921 * config/arm/arm.c (emit_multi_reg_push): New declaration
7922 for an existing function.
7923 (arm_emit_strd_push): New function.
7924 (arm_expand_prologue): Used here.
7925 (arm_emit_ldrd_pop): New function.
7926 (arm_expand_epilogue): Used here.
7927 (arm_get_frame_offsets): Update condition.
7928 (arm_emit_multi_reg_pop): Add a special case for load of a single
7929 register with writeback.
7930
7931 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
7932
7933 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
7934 description.
7935
7936 2013-04-16 Richard Biener <rguenther@suse.de>
7937
7938 PR tree-optimization/56756
7939 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
7940 (first_mem_ref_loc): New.
7941 (execute_sm): Place the load temporarily before a previous
7942 access instead of in the latch edge to ensure its SSA dependencies
7943 are defined at points dominating the load.
7944
7945 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
7946
7947 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
7948 correct fix by moving header and footer insn to the footer of
7949 the merged basic block. Clear BB_END of the merged-away block.
7950
7951 PR middle-end/43631
7952 * emit-rtl.c (make_note_raw): New function.
7953 (link_insn_into_chain): New static inline function.
7954 (add_insn): Use it.
7955 (add_insn_before, add_insn_after): Factor insn chain linking code...
7956 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
7957 using link_insn_into_chain.
7958 (note_outside_basic_block_p): New helper function for emit_note_after
7959 and emit_note_before.
7960 (emit_note_after): Use nobb variant of add_insn_after if the note
7961 should not be contained in a basic block.
7962 (emit_note_before): Use nobb variant of add_insn_before if the note
7963 should not be contained in a basic block.
7964 (emit_note_copy): Use make_note_raw.
7965 (emit_note): Likewise.
7966 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
7967 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
7968 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
7969 the moved barrier the tail of the basic block it follows.
7970 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
7971
7972 2013-04-15 Jakub Jelinek <jakub@redhat.com>
7973
7974 PR tree-optimization/56962
7975 * gimple-ssa-strength-reduction.c (record_increment): Only set
7976 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
7977 either rhs1 or rhs2 is equal to c->base_expr.
7978
7979 2013-04-15 Richard Biener <rguenther@suse.de>
7980
7981 PR tree-optimization/56933
7982 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
7983 member.
7984 (GROUP_READ_WRITE_DEPENDENCE): Remove.
7985 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
7986 * tree-vect-data-refs.c (vect_analyze_group_access): Move
7987 dependence check ...
7988 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
7989 ... here.
7990 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
7991 GROUP_READ_WRITE_DEPENDENCE.
7992
7993 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7994
7995 * emit-rtl.c (reset_all_used_flags): New function.
7996 (verify_rtl_sharing): Call reset_all_used_flags before and after
7997 performing the checks.
7998
7999 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8000
8001 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
8002 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
8003 * config/arm/constraints.md (De): New constraint.
8004 * config/arm/neon.md (anddi3_neon): Delete.
8005 (neon_vand<mode>): Expand to standard anddi3 pattern.
8006 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
8007 Move earlier in the file.
8008 (neon_inv_logic_op2): Likewise.
8009 (arm_anddi_operand_neon): New predicate.
8010
8011 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8012
8013 * configure.ac (gcc_cv_ld_as_needed): Set
8014 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
8015 Use -z ignore, -z record on *-*-solaris2*.
8016 (HAVE_LD_AS_NEEDED): Update comment.
8017 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
8018 * configure: Regenerate.
8019 * config.in: Regenerate.
8020 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
8021 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
8022 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
8023 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
8024 equivalents. Fix markup.
8025 * doc/tm.texi: Regenerate.
8026
8027 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
8028
8029 * config/i386/i386.opt: New option mstack-protector-guard=.
8030 * config/i386/i386-opts.h: Add enum stack_protector_guard.
8031 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
8032 TARGET_SSP_TLS_GUARD.
8033 * config/i386/i386.c (ix86_option_override_internal): Set
8034 ix86_stack_protector_guard.
8035 * config/i386/i386.md (stack_protect_set): Enable for
8036 TARGET_SSP_TLS_GUARD only.
8037 (stack_protect_set_<mode>): Ditto.
8038 (stack_protect_test): Ditto.
8039 (stack_protect_test_<mode>): Ditto.
8040 * doc/invoke.texi (i386 Option): Document.
8041
8042 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
8043
8044 PR target/56890
8045 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
8046 (S_MODES): Set H_MODE bit.
8047 (SF_MODES): Set only S_MODE and SF_MODE bits.
8048 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
8049 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
8050 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
8051 <MODE_FLOAT>: Likewise.
8052
8053 2013-04-15 Joey Ye <joey.ye@arm.com>
8054
8055 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
8056
8057 2013-04-15 Joey Ye <joey.ye@arm.com>
8058
8059 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
8060 for real far jump.
8061 (thumb_far_jump_used_p): Count instruction size and set
8062 far_jump_used.
8063
8064 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
8065
8066 * reorg.c (fill_simple_delay_slots): Reindent block of code.
8067 * resource.c (mark_target_live_regs): Reformat conditional block.
8068
8069 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
8070
8071 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
8072 notes, they are emitted only just before final.
8073 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
8074
8075 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
8076
8077 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
8078 * cfgrtl.c (delete_insn): Call it here instead.
8079 * lra-spills.c (lra_final_code_change): Use delete_insn.
8080 * haifa-sched.c (sched_remove_insn): Likewise.
8081 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
8082 returning to the nop pool.
8083 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
8084 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
8085
8086 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
8087
8088 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
8089 * doc/tm.texi: Regenerated.
8090
8091 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
8092
8093 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
8094 QImode checks.
8095
8096 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
8097
8098 * df-core.c (df_find_def): Compare register numbers.
8099 (df_find_use): Likewise.
8100
8101 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
8102
8103 PR target/56903
8104 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
8105 lra_in_progress for return.
8106
8107 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
8108
8109 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
8110 define_insn into define_insn_and_split and emit movsicc patterns.
8111
8112 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
8113
8114 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
8115
8116 2013-04-12 Richard Biener <rguenther@suse.de>
8117
8118 * tree-pass.h (TODO_do_not_ggc_collect): New.
8119 * passes.c (execute_one_ipa_transform_pass): Honor
8120 TODO_do_not_ggc_collect.
8121 (execute_one_pass): Likewise.
8122
8123 Revert
8124 2013-04-10 Richard Biener <rguenther@suse.de>
8125
8126 * passes.c (init_optimization_passes): Remove reload pass.
8127 * ira.c (do_reload): Merge into ...
8128 (ira): ... this.
8129 (rest_of_handle_reload): Remove.
8130 (pass_reload): Likewise.
8131 * config/i386/i386.c (ix86_option_override): Refer to ira instead
8132 of reload for vzeroupper pass placement.
8133
8134 2013-04-12 Jakub Jelinek <jakub@redhat.com>
8135
8136 PR tree-optimization/56918
8137 PR tree-optimization/56920
8138 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
8139 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
8140 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
8141 use wide_mul_with_sign method.
8142
8143 2013-04-12 Richard Biener <rguenther@suse.de>
8144
8145 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
8146 not be considered a gimple constant.
8147
8148 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
8149
8150 * fold-const.c (const_binop): Handle vector shifts by a scalar.
8151 (fold_binary_loc): Call const_binop also for mixed vector-scalar
8152 operations.
8153
8154 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
8155 Jakub Jelinek <jakub@redhat.com>
8156
8157 * opts.c: Include diagnostic-color.h.
8158 (common_handle_option): Handle OPT_fdiagnostics_color_.
8159 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
8160 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
8161 (diagnostic-color.o): New.
8162 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
8163 (diagnostic_color_rule): New enum.
8164 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
8165 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
8166 the location string.
8167 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
8168 either NULL, or color kind.
8169 * diagnostic-color.c: New file.
8170 * diagnostic-color.h: New file.
8171 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
8172 arguments.
8173 * doc/invoke.texi (-fdiagnostics-color): Document.
8174 * pretty-print.h (pp_show_color): Define.
8175 (struct pretty_print_info): Add show_color field.
8176 * diagnostic.c: Include diagnostic-color.h.
8177 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
8178 macros. Colorize error:, warning: etc. strings and also the location
8179 string.
8180 (diagnostic_show_locus): Colorize the caret line.
8181 * pretty-print.c: Include diagnostic-color.h.
8182 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
8183 inside of %< %> quotes or quoted through q format modifier.
8184
8185 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8186
8187 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
8188
8189 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8190
8191 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
8192 code in CC_NZ mode.
8193 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
8194 pattern.
8195
8196 2013-04-11 Marek Polacek <polacek@redhat.com>
8197
8198 PR tree-optimization/48184
8199 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
8200
8201 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
8202
8203 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
8204 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
8205 (skip_simple_arithmetic): Tidy up.
8206 * tree.h (skip_simple_constant_arithmetic): Declare.
8207
8208 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8209
8210 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
8211
8212 2013-04-11 Richard Biener <rguenther@suse.de>
8213
8214 * tree-vect-loop.c (get_initial_def_for_induction): Properly
8215 generate vector constants.
8216
8217 2013-04-11 Richard Biener <rguenther@suse.de>
8218
8219 PR tree-optimization/56878
8220 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
8221 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
8222 New function.
8223 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8224 Prefer to align the DR with the most invariant base address.
8225
8226 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8227
8228 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
8229 comment.
8230
8231 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
8232
8233 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
8234 floating-point vector comparisons against 0.
8235
8236 2013-04-11 Jakub Jelinek <jakub@redhat.com>
8237
8238 PR tree-optimization/56899
8239 * fold-const.c (extract_muldiv_1): Apply distributive law
8240 only if TYPE_OVERFLOW_WRAPS (ctype).
8241
8242 2013-04-11 Bin Cheng <bin.cheng@arm.com>
8243
8244 PR target/56124
8245 * ira-costs.c (scan_one_insn): Check whether the source rtx of
8246 loading has side effect.
8247
8248 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
8249
8250 * config/sparc/sparc.c: Include tree-pass.h.
8251 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
8252 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
8253 head of file. Change return type. Split off gate function.
8254 (sparc_gate_work_around_errata): New function.
8255 (pass_work_around_errata): New pass definition.
8256 (insert_pass_work_around_errata) New pass insert definition to
8257 insert pass_work_around_errata just after delayed-branch scheduling.
8258 (sparc_option_override): Insert the pass.
8259 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
8260
8261 2013-04-10 David S. Miller <davem@davemloft.net>
8262
8263 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
8264 or -mcpu=hypersparc.
8265
8266 * target.def (cstore_mode): New hook.
8267 * target.h: Include insn-codes.h
8268 * targhooks.c: Likewise.
8269 (default_cstore_mode): New function.
8270 * targhooks.h: Declare it.
8271 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
8272 * doc/tm.texi: Rebuild.
8273 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
8274 target hook, rather than inspecting the insn_data.
8275 * config/sparc/sparc.c (sparc_cstore_mode): New function.
8276 (TARGET_CSTORE_MODE): Redefine.
8277 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
8278 result patterns.
8279 * config/sparc/predicates.md (cstore_result_operand): New special
8280 predicate.
8281 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
8282 Use it for operand 0.
8283 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
8284 (*snesi_special): Likewise.
8285 (*snesi_zero): Likewise.
8286 (*seqsi_zero): Likewise.
8287 (*sltu_insn): Likewise.
8288 (*sgeu_insn): Likewise.
8289 (*seqdi_special): Make operand 0 and comparison operation be of
8290 DImode.
8291 (*snedi_special): Likewise.
8292 (*snedi_special_vis3): Likewise.
8293 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
8294 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
8295 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
8296 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
8297 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
8298 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
8299 (*sltu_extend_sp64): Likewise.
8300 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
8301 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
8302 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
8303 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
8304 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
8305
8306 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
8307
8308 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
8309 (aarch64_start_file): Use the new function.
8310
8311 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8312 Jason Merrill <jason@redhat.com>
8313
8314 * common.opt: Add -gdwarf.
8315 * opts.c (common_handle_option): Handle it.
8316 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
8317
8318 2013-04-10 Richard Biener <rguenther@suse.de>
8319
8320 * passes.c (execute_todo): Do not call ggc_collect conditional here.
8321 (execute_one_ipa_transform_pass): But unconditionally here.
8322 (execute_one_pass): And here.
8323 (init_optimization_passes): Remove reload pass.
8324 * tree-pass.h (TODO_ggc_collect): Remove.
8325 (pass_reload): Likewise.
8326 * ira.c (do_reload): Merge into ...
8327 (ira): ... this.
8328 (rest_of_handle_reload): Remove.
8329 (pass_reload): Likewise.
8330 * config/i386/i386.c (ix86_option_override): Refer to ira instead
8331 of reload for vzeroupper pass placement.
8332 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
8333 and todo_flags_finish of all passes.
8334
8335 2013-04-10 Richard Biener <rguenther@suse.de>
8336
8337 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
8338 first_const_oprnd field, rename first_def_type to first_op_type.
8339 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
8340 (vect_get_and_check_slp_defs): Always use the type of the
8341 operand. Allow mixed vect_external_def, vect_constant_def types.
8342 (vect_get_constant_vectors): Handle mixed vect_external_def,
8343 vect_constant_def types.
8344
8345 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
8346
8347 PR tree-optimization/55524
8348 * tree-ssa-math-opts.c
8349 (convert_mult_to_fma): Don't use an fms construct
8350 when we don't have an fms operation, but fnma, and it looks
8351 likely that we'll be able to use the latter.
8352
8353 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
8354
8355 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
8356 function.
8357 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
8358 inline fail caused by overwritable functions.
8359
8360 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
8361
8362 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
8363 unnecessary bits in the constant power of two case.
8364
8365 2013-04-10 Richard Biener <rguenther@suse.de>
8366
8367 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
8368 broken code swapping operands.
8369 (vect_build_slp_tree): Do not compute load permutations here.
8370 (vect_analyze_slp_instance): Compute load permutations here,
8371 after building the SLP tree.
8372
8373 2013-04-09 Christian Bruel <christian.bruel@st.com>
8374
8375 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
8376 of next/prev_real_insn.
8377
8378 2013-04-09 Jan Hubicka <jh@suse.cz>
8379
8380 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
8381 Drop aliased parameter.
8382 (function_and_variable_visibility): Do not handle alias pairs.
8383 * cgraph.c (varpool_externally_visible_p): Update prototype.
8384 * varpool.c (varpool_add_new_variable): Update.
8385
8386 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8387
8388 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
8389
8390 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
8391
8392 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
8393
8394 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
8395
8396 2013-04-09 Marek Polacek <polacek@redhat.com>
8397
8398 PR tree-optimization/48762
8399 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
8400
8401 2013-04-09 Richard Biener <rguenther@suse.de>
8402
8403 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
8404 dealing with cost.
8405 (vect_build_slp_tree): Likewise.
8406 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
8407 calculating the cost of a SLP instance.
8408 (vect_analyze_slp_instance): Use it from here, after building
8409 the SLP tree.
8410
8411 2013-04-09 Jakub Jelinek <jakub@redhat.com>
8412
8413 PR middle-end/56883
8414 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
8415 expand_omp_for_static_chunk): Use simple_p = true in
8416 force_gimple_operand_gsi calls when assigning to addressable decls.
8417
8418 2013-04-09 Jeff Law <law@redhat.com>
8419
8420 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
8421 when the boolean was created by converting a wider object which
8422 had a boolean range.
8423
8424 2013-04-09 Richard Biener <rguenther@suse.de>
8425
8426 * tree-vectorizer.h (slp_void_p): Remove.
8427 (slp_tree): Typedef before _slp_tree declaration.
8428 (struct _slp_tree): Use a vector of slp_tree as children.
8429 (vect_get_place_in_interleaving_chain): Remove.
8430 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
8431 Move ...
8432 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
8433 and make static.
8434 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
8435 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
8436 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
8437 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
8438 Use slp_node instead of slp_void_p and adjust.
8439
8440 2013-04-09 Richard Biener <rguenther@suse.de>
8441
8442 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
8443 work that is not necessary.
8444
8445 2013-04-09 Jakub Jelinek <jakub@redhat.com>
8446
8447 PR tree-optimization/56854
8448 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
8449 forward into clobber stmts if it would change MEM_REF lhs into
8450 non-MEM_REF.
8451
8452 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
8453
8454 * tree.c (type_hash_lookup, type_hash_add): Make static.
8455 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
8456
8457 2013-04-09 Richard Biener <rguenther@suse.de>
8458
8459 * tree.h (unsave_expr_now): Remove.
8460 * tree-inline.c (mark_local_for_remap_r): Remove.
8461 (unsave_expr_1): Likewise.
8462 (unsave_r): Likewise.
8463 (unsave_expr_now): Likewise.
8464 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
8465 (propagate_tree_value): Likewise.
8466
8467 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
8468
8469 * doc/rtl.texi (sequence): Rewrite documentation to match the
8470 current use of SEQUENCE rtl objects.
8471 * rtl.def (SEQUENCE): Likewise.
8472
8473 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
8474 Update documentation.
8475 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
8476 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
8477
8478 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
8479
8480 2013-04-08 Teresa Johnson <tejohnson@google.com>
8481
8482 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
8483 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
8484 methods.
8485 (estimate_edge_size_and_time): Add comment to suggest using rounding
8486 methods.
8487 (estimate_node_size_and_time): Ditto.
8488 (remap_edge_change_prob): Use helper rounding divide methods.
8489 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
8490 (gimple_mod_pow2_value_transform): Ditto.
8491 (gimple_mod_subtract_transform): Ditto.
8492 (gimple_ic_transform): Ditto.
8493 (gimple_stringops_transform): Ditto.
8494 * stmt.c (conditional_probability): Ditto.
8495 (emit_case_dispatch_table): Ditto.
8496 * lto-cgraph.c (merge_profile_summaries): Ditto.
8497 * tree-optimize.c (execute_fixup_cfg): Ditto.
8498 * cfgcleanup.c (try_forward_edges): Ditto.
8499 * cfgloopmanip.c (scale_loop_profile): Ditto.
8500 (loopify): Ditto.
8501 (duplicate_loop_to_header_edge): Ditto.
8502 (lv_adjust_loop_entry_edge): Ditto.
8503 * tree-vect-loop.c (vect_transform_loop): Ditto.
8504 * profile.c (compute_branch_probabilities): Ditto.
8505 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
8506 * lto-streamer-in.c (input_cfg): Ditto.
8507 * gimple-streamer-in.c (input_bb): Ditto.
8508 * ipa-cp.c (update_profiling_info): Ditto.
8509 (update_specialized_profile): Ditto.
8510 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
8511 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
8512 rounding methods.
8513 * sched-rgn.c (compute_dom_prob_ps): Ditto.
8514 (compute_trg_info): Ditto.
8515 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
8516 (purge_dead_edges): Ditto.
8517 * loop-unswitch.c (unswitch_loop): Ditto.
8518 * cgraphclones.c (cgraph_clone_edge): Ditto.
8519 (cgraph_clone_node): Ditto.
8520 * tree-inline.c (copy_bb): Ditto.
8521 (copy_edges_for_bb): Ditto.
8522 (initialize_cfun): Ditto.
8523 (copy_cfg_body): Ditto.
8524 (expand_call_inline): Ditto.
8525
8526 2013-04-08 Kai Tietz <ktietz@redhat.com>
8527
8528 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
8529 TARGET_CYGWIN64 by TARGET_64BIT.
8530
8531 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
8532
8533 * config/epiphany/epiphany.md (GPR_1): New constant.
8534 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
8535 * config/epiphany/epiphany.c (gen_compare_reg):
8536 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
8537 is already in place.
8538 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
8539 Don't require being called during rtl expansion; If y operlaps r0,
8540 return 0.
8541 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
8542 (epiphany_expand_epilogue): Likewise.
8543
8544 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
8545 Don't use CC_FPmode for ORDERED / UNORDERED.
8546 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8547
8548 * config/epiphany/constraints.md (CnL): New constraint.
8549 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
8550 * config/epiphany/predicates.md (add_operand): Allow 1024.
8551
8552 * config/epiphany/epiphany.md (logical_op): New code iterator.
8553 (op_mnc): New code attribute.
8554 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
8555 (mov_f+1, mov_f+2): New peephole2 patterns.
8556
8557 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
8558 (cstoresi4): Also allow re-use of zero result when doing a NE
8559 comparison to a non-zero operand.
8560 Use (clobber (scratch)) for first insn if the gpr output is not needed.
8561
8562 * config/epiphany/epiphany.md (<insn_opname>v2si3):
8563 Use gen_addsi3_i / gen_subsi3_i.
8564
8565 2013-04-08 Jakub Jelinek <jakub@redhat.com>
8566
8567 PR c++/34949
8568 PR c++/50243
8569 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
8570 contain anything but clobbers, at most one __builtin_stack_restore,
8571 optionally debug stmts and final resx, and if it has at least one
8572 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
8573 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
8574 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
8575 which isn't defaut definition, remove them.
8576 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
8577 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
8578 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
8579 with MEM_REF LHS with SSA_NAME address.
8580
8581 2013-04-08 Jeff Law <law@redhat.com>
8582
8583 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
8584
8585 2013-04-08 Richard Biener <rguenther@suse.de>
8586
8587 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
8588 extra newline.
8589 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
8590 determined vector type.
8591 (vect_analyze_data_refs): Likewise.
8592 (vect_get_new_vect_var): Adjust.
8593 (vect_create_destination_var): Preserve SSA name versions.
8594 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
8595 not dump anything here.
8596
8597 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
8598
8599 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
8600 Add member lr_slot_known.
8601 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
8602 if necessary.
8603 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
8604 Remove code that sets lr_slot_offset according to what a previous
8605 version of epiphany_emit_save_restore used to do.
8606 (epiphany_emit_save_restore): When doing an lr save or restore,
8607 set/verify lr_slot_known and lr_slot_offset.
8608
8609 2013-04-08 Xinyu Qi <xyqi@marvell.com>
8610
8611 PR target/54338
8612 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
8613 in ALL_REGS.
8614
8615 2013-04-08 Richard Biener <rguenther@suse.de>
8616
8617 * alias.c (find_base_term): Fix thinko in previous change.
8618
8619 2013-04-08 Jakub Jelinek <jakub@redhat.com>
8620
8621 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
8622 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
8623 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
8624 if possible to compute val.
8625 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
8626 For QImode integers don't require anything about precision. Use
8627 const_with_all_bytes_same to find out if the constant doesn't have
8628 repeated bytes in it.
8629
8630 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8631
8632 * config/s390/s390.c (s390_expand_insv): Only accept insertions
8633 within mode size.
8634
8635 2013-04-08 Marek Polacek <polacek@redhat.com>
8636
8637 PR rtl-optimization/48182
8638 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
8639 value to 1.
8640
8641 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8642
8643 PR target/55487
8644 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
8645 nuses, make sure we have a label.
8646
8647 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8648
8649 PR target/56843
8650 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
8651 (rs6000_emit_swdiv_low_precision): Remove.
8652 (rs6000_emit_swdiv): Rewrite to handle between one and four
8653 iterations of Newton-Raphson generally; modify required number of
8654 iterations for some cases.
8655 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
8656
8657 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
8658
8659 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
8660 set-but-unused variable.
8661
8662 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
8663 basic blocks of released function bodies garbage-collectable.
8664
8665 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
8666 (struct rtl_opt_pass): Add TODO_df_finish.
8667
8668 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
8669
8670 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8671
8672 * config/arm/constraints.md (q): New constraint.
8673 * config/arm/ldrdstrd.md: New file.
8674 * config/arm/arm.md (ldrdstrd.md) New include.
8675 (arm_movdi): Use "q" instead of "r" constraint
8676 for double-word memory access.
8677 (movdf_soft_insn): Likewise.
8678 * config/arm/vfp.md (movdi_vfp): Likewise.
8679 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
8680 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
8681 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
8682 (mem_ok_for_ldrd_strd): Likewise.
8683 (output_move_double): Update assertion.
8684
8685 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8686
8687 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
8688
8689 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8690
8691 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
8692 define_insn_and_split.
8693 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
8694
8695 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8696
8697 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
8698 define_insn_and_split.
8699 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
8700 (shiftsi3_compare): New pattern.
8701 (rrx): New pattern.
8702 * config/arm/unspecs.md (UNSPEC_RRX): New.
8703
8704 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8705
8706 * config/arm/arm.md (negdi_extendsidi): New pattern.
8707 (negdi_zero_extendsidi): Likewise.
8708
8709 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8710
8711 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
8712 define_insn_and_split.
8713 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
8714 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
8715
8716 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8717
8718 * config/arm/arm.md (arm_subdi3): Convert define_insn into
8719 define_insn_and_split.
8720 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
8721 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
8722
8723 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8724
8725 * config/arm/arm.md (subsi3_carryin): New pattern.
8726 (subsi3_carryin_const): Likewise.
8727 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
8728 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
8729
8730 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8731
8732 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
8733
8734 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8735
8736 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
8737 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
8738
8739 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8740
8741 * config/arm/arm.c (arm_expand_builtin): Change fcode
8742 type to unsigned int.
8743
8744 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8745
8746 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
8747
8748 2013-04-04 Ian Lance Taylor <iant@google.com>
8749
8750 * doc/standards.texi (Standards): The Go frontend supports the Go 1
8751 language standard.
8752
8753 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
8754
8755 PR middle-end/56729
8756 * df-scan.c (df_insn_delete): Disable failing assert.
8757
8758 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8759
8760 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
8761 New function prototype.
8762 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
8763 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
8764 (arm_builtin_vectorized_function): New function.
8765
8766 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8767
8768 * config/arm/arm_neon_builtins.def: New file.
8769 * config/arm/arm.c (neon_builtin_data): Move contents to
8770 arm_neon_builtins.def.
8771 (enum arm_builtins): Include neon builtin definitions.
8772 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
8773 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
8774
8775 2013-04-04 Marek Polacek <polacek@redhat.com>
8776
8777 PR tree-optimization/48186
8778 * predict.c (maybe_hot_frequency_p): Return false if
8779 HOT_BB_FREQUENCY_FRACTION is 0.
8780 (cgraph_maybe_hot_edge_p): Likewise.
8781
8782 2013-04-04 Richard Biener <rguenther@suse.de>
8783
8784 PR tree-optimization/56826
8785 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
8786 more accurately.
8787
8788 2013-04-04 Richard Biener <rguenther@suse.de>
8789
8790 PR tree-optimization/56213
8791 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
8792 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
8793
8794 2013-04-04 Richard Biener <rguenther@suse.de>
8795
8796 PR tree-optimization/56837
8797 * tree-loop-distribution.c (classify_partition): For non-zero
8798 values require that the value has the same precision as its
8799 mode to be useful as memset value.
8800
8801 2013-04-03 Nick Clifton <nickc@redhat.com>
8802
8803 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
8804 (fmssf4): Use fmsf.s on E3V5 architectures.
8805 (fnmasf4): Use fnmaf.s on E3V5 architectures.
8806 (fnmssf4): Use fnmsf.s on E3V5 architectures.
8807
8808 2013-04-03 Jeff Law <law@redhat.com>
8809
8810 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
8811 (lra-eliminations.o): Likewise.
8812
8813 2013-04-03 Teresa Johnson <tejohnson@google.com>
8814
8815 * gcov-io.c (compute_working_sets): Moved most of body of old
8816 compute_working_sets here from profile.c.
8817 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
8818 (gcov_working_set_t): Moved typedef here from basic-block.h
8819 (compute_working_set): Declare.
8820 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
8821 (get_working_sets): Renamed from compute_working_set,
8822 replace most of body with call to new compute_working_sets.
8823 (get_exec_counts): Replace call to compute_working_sets
8824 to get_working_sets.
8825 * profile.h (get_working_sets): Renamed from compute_working_set.
8826 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
8827 to get_working_sets.
8828 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
8829 * gcov-dump.c (dump_working_sets): New function.
8830
8831 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
8832
8833 * hwint.c (sext_hwi, zext_hwi): New functions.
8834 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
8835 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
8836 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
8837 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
8838 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
8839 (sext_hwi, zext_hwi): New functions.
8840
8841 2013-04-03 Jeff Law <law@redhat.com>
8842
8843 PR tree-optimization/56799
8844 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
8845 back test for widening conversion erroneously dropped in prior change.
8846
8847 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8848
8849 PR target/56809
8850 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
8851 instead of next_real_insn.
8852
8853 2013-04-03 Marek Polacek <polacek@redhat.com>
8854
8855 PR sanitizer/55702
8856 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
8857
8858 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8859
8860 PR target/56809
8861 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
8862 next_real_insn.
8863 (thumb1_output_casesi): Likewise.
8864 (thumb2_output_casesi): Likewise.
8865
8866 2013-04-03 Richard Biener <rguenther@suse.de>
8867
8868 PR tree-optimization/56817
8869 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
8870 Split out ...
8871 (tree_unroll_loops_completely_1): ... new function to manually
8872 walk the loop tree, properly defering outer loops of unrolled
8873 loops to later iterations.
8874
8875 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
8876
8877 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
8878 (vectorizable_load): Likewise.
8879 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
8880 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
8881
8882 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
8883
8884 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
8885 BIT_FIELD_REF.
8886
8887 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8888
8889 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
8890
8891 2013-04-03 Bin Cheng <bin.cheng@arm.com>
8892
8893 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
8894
8895 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
8896
8897 PR tree-optimization/56790
8898 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
8899 folding.
8900
8901 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
8902
8903 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8904 Handle VEC_MERGE.
8905 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
8906 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
8907 equal arguments.
8908
8909 2013-04-03 Jakub Jelinek <jakub@redhat.com>
8910
8911 PR c/19449
8912 * tree.h (force_folding_builtin_constant_p): New decl.
8913 * builtins.c (force_folding_builtin_constant_p): New variable.
8914 (fold_builtin_constant_p): Fold immediately also if
8915 force_folding_builtin_constant_p.
8916
8917 2013-04-03 Richard Biener <rguenther@suse.de>
8918
8919 PR tree-optimization/56812
8920 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
8921 DRs of the same interleaving chain are independent.
8922
8923 2013-04-02 Jason Merrill <jason@redhat.com>
8924
8925 * gdbinit.in (pbb): Use debug fn.
8926
8927 2013-04-02 Lawrence Crowl <crowl@google.com>
8928
8929 * sese.h (struct ivtype_map_elt_s): Remove unused.
8930 (extern debug_ivtype_map): Remove unused.
8931 (extern eq_ivtype_map_elts): Remove unused.
8932 * sese.c (debug_ivtype_map): Removed unused.
8933 (debug_ivtype_map_1): Removed unused.
8934 (debug_ivtype_elt): Remove unused.
8935 (eq_ivtype_map_elts): Remove unused.
8936
8937
8938 2013-04-02 Kai Tietz <ktietz@redhat.com>
8939
8940 PR target/52790
8941 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
8942 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
8943 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
8944 function.
8945 (legitimize_pe_coff_symbol): Likewise.
8946 (is_imported_p): New helper-function.
8947 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
8948 for Windows x64 targets.
8949 (ix86_expand_prologue): Optimize for pe-coff targets.
8950 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
8951 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
8952 medium/large code-model.
8953 (legitimize_pic_address): Likewise.
8954 (legitimize_tls_address): Likewise.
8955 (ix86_expand_call): Likewise.
8956 (x86_output_mi_thunk): Likewise.
8957 (get_dllimport_decl): Add new beimport argument.
8958 (construct_plt_address): Don't assert for x64 pe-coff targets.
8959 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
8960 targets.
8961 (SYMBOL_FLAG_STUBVAR): New macro.
8962 (SYMBOL_REF_STUBVAR_P): Likewise.
8963 * config/i386/winnt.c (stub_list): New structure.
8964 (stub_head): New local variable.
8965 (i386_pe_record_stub): New function.
8966 (i386_pe_file_end): Emit refptr-stubs.
8967
8968 2013-04-02 Jakub Jelinek <jakub@redhat.com>
8969
8970 PR rtl-optimization/56745
8971 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
8972 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
8973
8974 PR c++/34949
8975 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
8976 and both of them are MEM_REFs, just compare first argument for
8977 equality and attempt to deal even with differing offsets.
8978
8979 PR c++/34949
8980 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
8981 of gimple_clobber_p to be MEM_REF.
8982 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
8983 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
8984 after gimplification.
8985 * asan.c (get_mem_ref_of_assignment): Don't instrument
8986 gimple_clobber_p stmts.
8987 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
8988 gimple_clobber_p stmt if they have MEM_REF lhs and
8989 are dead because of another gimple_clobber_p stmt.
8990 * tree-ssa-live.c (clear_unused_block_pointer): Treat
8991 gimple_clobber_p stmts like debug stmts.
8992 (remove_unused_locals): Remove clobbers with MEM_REF lhs
8993 that refer to unused VAR_DECLs or uninitialized values.
8994 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
8995 gimple_clobber_p stmts if they refer to removed parameters.
8996 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
8997 formatting.
8998
8999 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
9000
9001 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
9002 using SWI48 mode attribute.
9003
9004 2013-04-02 Wei Mi <wmi@google.com>
9005
9006 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
9007 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
9008 *<rotate_insn><mode>3_mask in i386.md.
9009
9010 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
9011
9012 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
9013
9014 2013-04-02 Richard Biener <rguenther@suse.de>
9015
9016 PR tree-optimization/56778
9017 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9018 Runtime alias tests are not supported for gather loads.
9019 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
9020 stmts referenced from SSA operands before updating SSA form.
9021
9022 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
9023 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9024
9025 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
9026 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
9027 * config/arm/cortex-a53.md: New file.
9028 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
9029 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
9030 * config/arm/arm.c (arm_issue_rate): Likewise.
9031 * config/arm/arm-tune.md: Regenerate
9032 * config/arm/arm-tables.opt: Regenerate.
9033 * config/arm/arm-cores.def: Add cortex-a53.
9034
9035 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
9036
9037 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
9038 non-static link.
9039
9040 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
9041
9042 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
9043 scalar load/store operations using B/H registers.
9044 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
9045
9046 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
9047
9048 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
9049 scalar move.
9050 * config/aarch64/aarch64.c
9051 (aarch64_simd_scalar_immediate_valid_for_move): New.
9052 * config/aarch64/aarch64-protos.h
9053 (aarch64_simd_scalar_immediate_valid_for_move): New.
9054 * config/aarch64/constraints.md (Dh, Dq): New.
9055 * config/aarch64/iterators.md (hq): New.
9056
9057 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
9058
9059 * reorg.c (get_branch_condition): Deal with conditional returns.
9060 (fill_simple_delay_slots): Remove dead code dealing with jumps.
9061
9062 2013-04-01 Wei Mi <wmi@google.com>
9063
9064 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
9065 Truncate operand 2 using %b asm operand modifier.
9066 (*<shift_insn><mode>3_mask): Ditto.
9067 (*<rotate_insn><mode>3_mask): Ditto.
9068
9069 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
9070
9071 PR middle-end/56798
9072 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
9073
9074 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
9075
9076 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
9077 of next_real_insn.
9078 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
9079
9080 2013-03-30 Lawrence Crowl <crowl@google.com>
9081
9082 * dse.c (clear_alias_sets): Remove never set.
9083 (disqualified_clear_alias_sets): Remove never set.
9084 (clear_alias_mode_pool): Remove never set.
9085 (dse_step0): Remove condition that is never true.
9086 (canon_address): Remove condition that is never true.
9087 (dse_step7): Remove condition that is never true.
9088 (rest_of_handle_dse): Remove condition that is never true.
9089 (rest_of_handle_dse::did_global): Remove never read from above.
9090 (dse_step2_spill): Remove never called from above.
9091 (dse_step5_spill): Remove never called from above.
9092
9093 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
9094
9095 * doc/md.texi (Standard Names) <casesi>: Update documentation for
9096 JUMP_TABLE_DATA changes.
9097 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
9098 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
9099 (Insns) <jump_table_data>: New entry.
9100 * doc/tm.texi: Regenerate.
9101
9102 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
9103
9104 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
9105 for table jump at the end of a basic block using tablejump_p.
9106 * targhooks.c (default_invalid_within_doloop): Likewise.
9107 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
9108 target hook implementation that is identical to the default hook.
9109 (rs6000_invalid_within_doloop): Remove.
9110
9111 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
9112 unused variable from tablejump_p call.
9113
9114 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
9115 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
9116 (INSN_DELETED_P): Likewise.
9117 (emit_jump_table_data): New prototype.
9118 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
9119 after 4th as unused.
9120 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
9121 * sched-vis.c (print_insn): Likewise.
9122 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
9123 insn for compatibility with back ends that use next_active_insn to
9124 identify jump table data.
9125 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
9126 (remove_insn): Likewise.
9127 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
9128 to be emitted.
9129 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
9130 (emit_jump_table_data): New function.
9131
9132 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
9133 basic block, a JUMP_TABLE_DATA never is.
9134 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
9135 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
9136 off from code handling real insns.
9137 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
9138 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
9139 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
9140 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
9141 is not a NONDEBUG_INSN_P.
9142 * ira-costs.c (scan_one_insn): Likewise.
9143 * jump.c (mark_all_labels): Likewise.
9144 (mark_jump_label_1): Likewise.
9145 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
9146 * lra.c (get_insn_freq): Expect all insns reaching here to be in
9147 a basic block.
9148 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
9149 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
9150 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
9151 JUMP_TABLE_DATA_P insns.
9152 (calculate_elim_costs_all_insns): Likewise.
9153 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
9154 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
9155 (delete_output_reload): Code style fixups.
9156 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
9157 insn flags on this non-insn.
9158 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
9159 as scheduling barriers, for pre-change compatibility.
9160 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
9161 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
9162
9163 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
9164 redundant JUMP_TABLE_DATA_P test.
9165 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
9166 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
9167 (frv_for_each_packet): Likewise.
9168 * config/i386/i386.c (min_insn_size): Likewise.
9169 (ix86_avoid_jump_mispredicts): Likewise.
9170 * config/m32r/m32r.c (m32r_is_insn): Likewise.
9171 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
9172 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
9173 (mips16_insn_length): Robustify.
9174 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
9175 (mips16_split_long_branches): Likewise.
9176 * config/pa/pa.c (pa_combine_instructions): Likewise.
9177 * config/rs6000/rs6000.c (get_next_active_insn): Treat
9178 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
9179 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
9180 as contributing to pool range lengths.
9181 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
9182 Remove redundant JUMP_TABLE_DATA_P test.
9183 (sh_loop_align): Likewise.
9184 (split_branches): Likewise.
9185 (sh_insn_length_adjustment): Likewise.
9186 * config/spu/spu.c (get_branch_target): Likewise.
9187
9188 2013-03-29 Jan Hubicka <jh@suse.cz>
9189
9190 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
9191 gcov streaming; stream hot bb threshold to ltrans.
9192 * predict.c (get_hot_bb_threshold): Break out from ....
9193 (maybe_hot_count_p): ... here.
9194 (set_hot_bb_threshold): New function.
9195 * lto-section-in.c (lto_section_name): Add profile.
9196 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
9197 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
9198 and data-streamer.h
9199 (histogram_entry): New structure.
9200 (histogram, histogram_pool): New global vars.
9201 (histogram_hash): New structure.
9202 (histogram_hash::hash): New method.
9203 (histogram_hash::equal): Likewise.
9204 (account_time_size): New function.
9205 (cmp_counts): New function.
9206 (dump_histogram): New function.
9207 (ipa_profile_generate_summary): New function.
9208 (ipa_profile_write_summary): New function.
9209 (ipa_profile_read_summary): New function.
9210 (ipa_profile): Decide on threshold.
9211 (pass_ipa_profile): Add ipa_profile_write_summary and
9212 ipa_profile_read_summary.
9213 * Makefile.in (ipa.o): Update dependencies.
9214 * lto-streamer.h (LTO_section_ipa_profile): New section.
9215
9216 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
9217
9218 * tree.h (VAR_P): New.
9219
9220 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
9221
9222 PR lto/56777
9223 * doc/invoke.texi ([-fwhole-program]): Fix typo.
9224
9225 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
9226
9227 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
9228 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
9229 (control_flow_insn_p): Likewise.
9230 * cfgrtl.c (duplicate_insn_chain): Likewise.
9231 * final.c (get_attr_length_1): Likewise.
9232 (shorten_branches): Likewise.
9233 (final_scan_insn): Likewise.
9234 * function.c (instantiate_virtual_regs): Likewise.
9235 * gcse.c (insert_insn_end_basic_block): Likewise.
9236 * ira-costs.c (scan_one_insn): Likewise.
9237 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
9238 * lra.c (check_rtl): Likewise.
9239 * reload1.c (elimination_costs_in_insn): Likewise.
9240 * reorg.c (follow_jumps): Likewise.
9241
9242 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
9243 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
9244 (thumb_far_jump_used_p): Likewise.
9245 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
9246 (workaround_speculation): Likewise.
9247 (add_sched_insns_for_speculation): Likewise.
9248 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
9249 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
9250 (frv_for_each_packet): Likewise.
9251 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
9252 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
9253 (final_emit_insn_group_barriers): Likewise.
9254 * config/m32r/m32r.c (m32r_is_insn): Likewise.
9255 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
9256 (mips16_insn_length): Likewise.
9257 * config/pa/pa.c (pa_reorg): Likewise.
9258 (pa_combine_instructions): Likewise.
9259 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
9260 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
9261 (sh_reorg): Likewise.
9262 (split_branches): Likewise.
9263 * config/spu/spu.c (get_branch_target): Likewise.
9264
9265 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
9266 JUMP_TABLE_DATA_P.
9267
9268 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
9269
9270 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
9271 Fix declaration name.
9272
9273 2013-03-28 Lawrence Crowl <crowl@google.com>
9274
9275 * graphds.h (struct graph.indicies): Remove unused.
9276 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
9277 (SCOP_ORIGINAL_PDDRS): Remove unused.
9278 * sese.h (extern insert_loop_close_phis): Removed unused.
9279 (extern insert_guard_phis): Removed unused.
9280 (extern ivtype_map_elt_info): Removed unused.
9281 (new_ivtype_map_elt): Removed unused.
9282 * sese.c (ivtype_map_elt_info): Removed unused.
9283
9284 2013-03-28 Lawrence Crowl <crowl@google.com>
9285
9286 * Makefile.in: Add several missing include dependences.
9287 (DUMPFILE_H): New.
9288 (test-dump.o): New. This object is not added to any executable,
9289 but is present for ad-hoc testing.
9290 * bitmap.c
9291 (debug (const bitmap_head_def &)): New.
9292 (debug (const bitmap_head_def *)): New.
9293 * bitmap.h
9294 (extern debug (const bitmap_head_def &)): New.
9295 (extern debug (const bitmap_head_def *)): New.
9296 * cfg.c
9297 (debug (edge_def &)): New.
9298 (debug (edge_def *)): New.
9299 * cfghooks.c
9300 (debug (basic_block_def &)): New.
9301 (debug (basic_block_def *)): New.
9302 * dumpfile.h
9303 (dump_node (const_tree, int, FILE *)): Correct source file.
9304 * dwarf2out.c
9305 (debug (die_struct &)): New.
9306 (debug (die_struct *)): New.
9307 * dwarf2out.h
9308 (extern debug (die_struct &)): New.
9309 (extern debug (die_struct *)): New.
9310 * gimple-pretty-print.c
9311 (debug (gimple_statement_d &)): New.
9312 (debug (gimple_statement_d *)): New.
9313 * gimple-pretty-print.h
9314 (extern debug (gimple_statement_d &)): New.
9315 (extern debug (gimple_statement_d *)): New.
9316 * ira-build.c
9317 (debug (ira_allocno_copy &)): New.
9318 (debug (ira_allocno_copy *)): New.
9319 (debug (ira_allocno &)): New.
9320 (debug (ira_allocno *)): New.
9321 * ira-int.h
9322 (extern debug (ira_allocno_copy &)): New.
9323 (extern debug (ira_allocno_copy *)): New.
9324 (extern debug (ira_allocno &)): New.
9325 (extern debug (ira_allocno *)): New.
9326 * ira-lives.c
9327 (debug (live_range &)): New.
9328 (debug (live_range *)): New.
9329 * lra-int.h
9330 (debug (lra_live_range &)): New.
9331 (debug (lra_live_range *)): New.
9332 * lra-lives.c
9333 (debug (lra_live_range &)): New.
9334 (debug (lra_live_range *)): New.
9335 * omega.c
9336 (debug (omega_pb_d &)): New.
9337 (debug (omega_pb_d *)): New.
9338 * omega.h
9339 (extern debug (omega_pb_d &)): New.
9340 (extern debug (omega_pb_d *)): New.
9341 * print-rtl.c
9342 (debug (const rtx_def &)): New.
9343 (debug (const rtx_def *)): New.
9344 * print-tree.c
9345 (debug_tree (tree): Move within file.
9346 (debug_raw (const tree_node &)): New.
9347 (debug_raw (const tree_node *)): New.
9348 (dump_tree_via_hooks (const tree_node *, int)): New.
9349 (debug (const tree_node &)): New.
9350 (debug (const tree_node *)): New.
9351 (debug_verbose (const tree_node &)): New.
9352 (debug_verbose (const tree_node *)): New.
9353 (debug_head (const tree_node &)): New.
9354 (debug_head (const tree_node *)): New.
9355 (debug_body (const tree_node &)): New.
9356 (debug_body (const tree_node *)): New.
9357 (debug_vec_tree (tree): Move and reimplement in terms of dump.
9358 (debug (vec<tree, va_gc> &)): New.
9359 (debug (vec<tree, va_gc> *)): New.
9360 * rtl.h
9361 (extern debug (const rtx_def &)): New.
9362 (extern debug (const rtx_def *)): New.
9363 * sbitmap.c
9364 (debug_raw (simple_bitmap_def &)): New.
9365 (debug_raw (simple_bitmap_def *)): New.
9366 (debug (simple_bitmap_def &)): New.
9367 (debug (simple_bitmap_def *)): New.
9368 * sbitmap.h
9369 (extern debug (simple_bitmap_def &)): New.
9370 (extern debug (simple_bitmap_def *)): New.
9371 (extern debug_raw (simple_bitmap_def &)): New.
9372 (extern debug_raw (simple_bitmap_def *)): New.
9373 * sel-sched-dump.c
9374 (debug (vinsn_def &)): New.
9375 (debug (vinsn_def *)): New.
9376 (debug_verbose (vinsn_def &)): New.
9377 (debug_verbose (vinsn_def *)): New.
9378 (debug (expr_def &)): New.
9379 (debug (expr_def *)): New.
9380 (debug_verbose (expr_def &)): New.
9381 (debug_verbose (expr_def *)): New.
9382 (debug (vec<rtx> &)): New.
9383 (debug (vec<rtx> *)): New.
9384 * sel-sched-dump.h
9385 (extern debug (vinsn_def &)): New.
9386 (extern debug (vinsn_def *)): New.
9387 (extern debug_verbose (vinsn_def &)): New.
9388 (extern debug_verbose (vinsn_def *)): New.
9389 (extern debug (expr_def &)): New.
9390 (extern debug (expr_def *)): New.
9391 (extern debug_verbose (expr_def &)): New.
9392 (extern debug_verbose (expr_def *)): New.
9393 (extern debug (vec<rtx> &)): New.
9394 (extern debug (vec<rtx> *)): New.
9395 * sel-sched-ir.h
9396 (_list_iter_cond_expr): Make inline instead of static.
9397 * sreal.c
9398 (debug (sreal &)): New.
9399 (debug (sreal *)): New.
9400 * sreal.h
9401 (extern debug (sreal &)): New.
9402 (extern debug (sreal *)): New.
9403 * tree.h
9404 (extern debug_raw (const tree_node &)): New.
9405 (extern debug_raw (const tree_node *)): New.
9406 (extern debug (const tree_node &)): New.
9407 (extern debug (const tree_node *)): New.
9408 (extern debug_verbose (const tree_node &)): New.
9409 (extern debug_verbose (const tree_node *)): New.
9410 (extern debug_head (const tree_node &)): New.
9411 (extern debug_head (const tree_node *)): New.
9412 (extern debug_body (const tree_node &)): New.
9413 (extern debug_body (const tree_node *)): New.
9414 (extern debug (vec<tree, va_gc> &)): New.
9415 (extern debug (vec<tree, va_gc> *)): New.
9416 * tree-cfg.c
9417 (debug (struct loop &)): New.
9418 (debug (struct loop *)): New.
9419 (debug_verbose (struct loop &)): New.
9420 (debug_verbose (struct loop *)): New.
9421 * tree-dump.c: Add header dependence.
9422 * tree-flow.h
9423 (extern debug (struct loop &)): New.
9424 (extern debug (struct loop *)): New.
9425 (extern debug_verbose (struct loop &)): New.
9426 (extern debug_verbose (struct loop *)): New.
9427 * tree-data-ref.c
9428 (debug (data_reference &)): New.
9429 (debug (data_reference *)): New.
9430 (debug (vec<data_reference_p> &)): New.
9431 (debug (vec<data_reference_p> *)): New.
9432 (debug (vec<ddr_p> &)): New.
9433 (debug (vec<ddr_p> *)): New.
9434 * tree-data-ref.h
9435 (extern debug (data_reference &)): New.
9436 (extern debug (data_reference *)): New.
9437 (extern debug (vec<data_reference_p> &)): New.
9438 (extern debug (vec<data_reference_p> *)): New.
9439 (extern debug (vec<ddr_p> &)): New.
9440 (extern debug (vec<ddr_p> *)): New.
9441 * tree-ssa-alias.c
9442 (debug (pt_solution &)): New.
9443 (debug (pt_solution *)): New.
9444 * tree-ssa-alias.h
9445 (extern debug (pt_solution &)): New.
9446 (extern debug (pt_solution *)): New.
9447 * tree-ssa-alias.c
9448 (debug (_var_map &)): New.
9449 (debug (_var_map *)): New.
9450 (debug (tree_live_info_d &)): New.
9451 (debug (tree_live_info_d *)): New.
9452 * tree-ssa-alias.h
9453 (extern debug (_var_map &)): New.
9454 (extern debug (_var_map *)): New.
9455 (extern debug (tree_live_info_d &)): New.
9456 (extern debug (tree_live_info_d *)): New.
9457
9458 2013-03-28 Jan Hubicka <jh@suse.cz>
9459
9460 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
9461
9462 2013-03-28 Ian Bolton <ian.bolton@arm.com>
9463
9464 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
9465 record only when desired or required.
9466
9467 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
9468
9469 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
9470 *vec_extractv2di_1_rex64. Use x64 isa attribute.
9471
9472 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9473
9474 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
9475 (*andsi3_compare0_uxtw): New pattern.
9476 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
9477 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
9478
9479 2013-03-28 Jan Hubicka <jh@suse.cz>
9480
9481 * data-streamer-in.c (streamer_read_gcov_count): New function.
9482 * gimple-streamer-out.c: Include value-prof.h.
9483 (output_gimple_stmt): Output histogram.
9484 (output_bb): Use streamer_write_gcov_count.
9485 * value-prof.c: Include data-streamer.h
9486 (dump_histogram_value): Add HIST_TYPE_MAX.
9487 (stream_out_histogram_value): New function.
9488 (stream_in_histogram_value): New function.
9489 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
9490 (stream_out_histogram_value, stream_in_histogram_value): Declare.
9491 * data-streamer-out.c (streamer_write_gcov_count): New function.
9492 (streamer_write_gcov_count_stream): New function.
9493 * lto-cgraph.c (lto_output_edge): Update counter streaming.
9494 (lto_output_node): Likewise.
9495 (input_node, input_edge): Likewise.
9496 * lto-streamer-out.c (output_cfg): Update streaming.
9497 * lto-streamer-in.c (input_cfg): Likewise.
9498 * data-streamer.h (streamer_write_gcov_count,
9499 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
9500 * gimple-streamer-in.c: Include value-prof.h
9501 (input_gimple_stmt): Input histograms.
9502 (input_bb): Update profile streaming.
9503
9504 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
9505
9506 * genmodes.c (emit_max_int): New function.
9507 (emit_insn_modes_h): Added call to emit_max_function.
9508 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
9509 Added doc.
9510 * machmode.def: Fixed comment.
9511
9512 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
9513
9514 * combine.c (try_combine): Removed useless assert.
9515 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
9516
9517 2013-03-28 Marek Polacek <polacek@redhat.com>
9518 Richard Biener <rguenther@suse.de>
9519
9520 PR tree-optimization/56695
9521 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
9522 build signed result of a vector comparison.
9523 * tree-cfg.c (verify_gimple_comparison): Check that a result
9524 of a vector comparison has signed type.
9525
9526 2013-03-28 Richard Biener <rguenther@suse.de>
9527
9528 PR tree-optimization/37021
9529 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
9530 do not restrict gaps between groups.
9531 * tree-vect-stmts.c (vectorizable_load): Properly account for
9532 a gap between groups.
9533
9534 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
9535
9536 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
9537 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
9538 is not enabled.
9539
9540 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
9541
9542 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
9543 * doc/extend.texi (Named Address Spaces): Ditto.
9544 (Variable Attributes): Ditto.
9545
9546 2013-03-27 Kai Tietz <ktietz@redhat.com>
9547
9548 * config.build: Add support for cygwin x64 target.
9549 * config.gcc: Likewise.
9550 * config.host: Likewise.
9551 * configure.ac: Likewise
9552 * configure: Regenerated.
9553
9554 2013-03-27 Kai Tietz <ktietz@redhat.com>
9555
9556 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
9557 * config/i386/t-cygwin-w64: New file.
9558 * config/i386/cygwin-w64.h: New file.
9559 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
9560 and add support for x64-cygwin target.
9561 (CPP_SPEC): Likewise.
9562 (CXX_WRAP_SPEC_LIST): Undefine before define.
9563 (LIBGCJ_SONAME): Use 15 as version.
9564
9565 2013-03-27 Richard Biener <rguenther@suse.de>
9566
9567 PR tree-optimization/56716
9568 * tree-ssa-structalias.c (perform_var_substitution): Adjust
9569 dumping for ref nodes.
9570
9571 2013-03-27 Martin Jambor <mjambor@suse.cz>
9572
9573 PR tree-optimization/55334
9574 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
9575 restricted pointers to arrays.
9576
9577 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
9578
9579 * Makefile.in (.SUFFIXES): Add .cc.
9580 (.c.o): Apply same recipe for implicit rule .cc.o.
9581
9582 2013-03-27 Richard Biener <rguenther@suse.de>
9583
9584 PR tree-optimization/37021
9585 * tree-vect-data-refs.c (vect_check_strided_load): Allow
9586 REALPART/IMAGPART_EXPRs around the supported refs.
9587 * tree-ssa-structalias.c (find_func_aliases): Assume that
9588 floating-point values are not used to transfer pointers.
9589
9590 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9591
9592 * target.def (TARGET_HAS_IFUNC_P): New target hook.
9593 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
9594 * doc/tm.texi: Regenerate.
9595 * targhooks.h (default_has_ifunc_p): New.
9596 * targhooks.c (default_has_ifunc_p): Ditto.
9597 * config/linux-protos.h: New file.
9598 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
9599 this hook for linux which disables support of indirect functions in
9600 android.
9601 * config/linux-android.c: New file.
9602 * config/t-linux-android.c: Ditto.
9603 * config.gcc: Added new object file linux-android.o.
9604 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
9605 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
9606 * varasm.c (do_assemble_alias): Likewise.
9607 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
9608 doesn't support indirect functions.
9609 * configure: Regenerate.
9610
9611 2013-03-27 Bin Cheng <bin.cheng@arm.com>
9612
9613 PR target/56102
9614 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
9615 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
9616 mult-word mode.
9617
9618 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9619
9620 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
9621
9622 2013-03-27 Terry Guo <terry.guo@arm.com>
9623
9624 * config/arm/arm-cores.def: Added core cortex-r7.
9625 * config/arm/arm-tune.md: Regenerated.
9626 * config/arm/arm-tables.opt: Regenerated.
9627 * doc/invoke.texi: Added entry for core cortex-r7.
9628
9629 2013-03-27 Walter Lee <walt@tilera.com>
9630
9631 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
9632 double-decrement of next_scratch_regno.
9633
9634 2013-03-27 Walter Lee <walt@tilera.com>
9635
9636 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9637 input operands.
9638 (insn_v1mulus): Ditto.
9639 (insn_v2muls): Ditto.
9640
9641 2013-03-27 Walter Lee <walt@tilera.com>
9642
9643 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
9644 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
9645
9646 2013-03-27 Walter Lee <walt@tilera.com>
9647
9648 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
9649 (*sibcall_value): Ditto.
9650
9651 2013-03-27 Walter Lee <walt@tilera.com>
9652
9653 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
9654 (insn_mnz_v8qi): ... this ...
9655 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
9656 vector equivalent.
9657 (insn_v<n>mnz): Replaced by ...
9658 (insn_v1mnz): ... this ...
9659 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
9660 equivalent.
9661 (insn_mz_<mode>): Replaced by ...
9662 (insn_mz_v8qi): ... this ...
9663 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
9664 vector equivalent.
9665 (insn_v<n>mz): Replaced by ...
9666 (insn_v1mz): ... this ...
9667 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
9668 equivalent.
9669
9670 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
9671
9672 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
9673
9674 2013-03-26 Roland McGrath <mcgrathr@google.com>
9675
9676 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
9677 than fprintf with a non-constant, non-format string.
9678
9679 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
9680
9681 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
9682 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
9683 operand 0 predicate.
9684 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
9685 attribute. Use general_x64nomem_operand as operand 1 predicate.
9686 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
9687 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
9688 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
9689 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
9690 (mov<mode>_insv_1): Remove expander. Merge insn with
9691 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
9692 Use general_x64nomem_operand as operand 1 predicate.
9693 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
9694 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
9695 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
9696 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
9697 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
9698 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
9699 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
9700 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
9701 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
9702 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
9703 (general_x64nomem_operand): Ditto.
9704
9705 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
9706
9707 * config/rtems.opt: Add -pthread option.
9708
9709 2013-03-26 Richard Biener <rguenther@suse.de>
9710
9711 * alias.c (find_base_term): Avoid redundant and not used recursion.
9712 (base_alias_check): Get the initial base term from the caller.
9713 (true_dependence_1): Compute and pass base terms to base_alias_check.
9714 (write_dependence_p): Likewise.
9715 (may_alias_p): Likewise.
9716
9717 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
9718
9719 * config/aarch64/aarch64.c (aarch64_classify_address): Support
9720 PC-relative load in SI modes and above only.
9721
9722 2013-03-26 Xinyu Qi <xyqi@marvell.com>
9723
9724 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
9725 * config/arm/iwmmxt.md (WCGR0): Update.
9726 (WCGR1, WCGR2, WCGR3): Likewise.
9727
9728 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
9729
9730 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
9731 Use x64 and nox64 isa attributes.
9732
9733 2013-03-26 Richard Biener <rguenther@suse.de>
9734
9735 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
9736 alignment computations and rely on get_object_alignment_1
9737 for the !TYPE_P case.
9738 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
9739
9740 2013-03-26 Walter Lee <walt@tilera.com>
9741
9742 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
9743 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
9744
9745 2013-03-25 Jeff Law <law@redhat.com>
9746
9747 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
9748 check for INTEGRAL_TYPE_P that was missing due to checking in
9749 wrong version of prior patch.
9750
9751 2013-03-25 Walter Lee <walt@tilera.com>
9752
9753 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
9754 TILEGX_INSN_SHUFFLEBYTES1.
9755 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
9756 shufflebytes1.
9757 (tilegx_builtins): Ditto.
9758 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
9759
9760 2013-03-25 Walter Lee <walt@tilera.com>
9761
9762 * config/tilegx/tilegx.md (floatsisf2): New pattern.
9763 (floatunssisf2): New pattern.
9764 (floatsidf2): New pattern.
9765 (floatunssidf2): New pattern.
9766
9767 2013-03-25 Walter Lee <walt@tilera.com>
9768
9769 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
9770 tests for constraint J, K, N, P.
9771
9772 2013-03-25 Walter Lee <walt@tilera.com>
9773
9774 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
9775 Use indirect/pcrel encoding.
9776 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
9777 Ditto.
9778
9779 2013-03-25 Steve Ellcey <sellcey@mips.com>
9780
9781 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
9782 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
9783 * config/mips/mips.c (mips_option_override): Set IMADD default.
9784 * config/mips/mips.h (PTF_AVOID_IMADD): New.
9785 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
9786 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
9787 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
9788 * doc/invoke.texi (-mimadd/-mno-imadd): New.
9789
9790 2013-03-25 Jeff Law <law@redhat.com>
9791
9792 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
9793 slightly to avoid creating and folding useless trees. Simplify
9794 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
9795
9796 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
9797
9798 * config/i386/i386.md (*zero_extendsidi2): Merge with
9799 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
9800 * config/i386/predicates.md (x86_64_zext_operand): Rename from
9801 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
9802 targets. Clarify comment.
9803
9804 2013-03-25 Martin Jambor <mjambor@suse.cz>
9805
9806 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
9807 pass-through jump functions differently.
9808 (ipa_read_jump_function): Likewise. Also use setter functions to set
9809 up jump functions.
9810
9811 2013-03-25 Martin Jambor <mjambor@suse.cz>
9812
9813 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
9814 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
9815 process it.
9816 (ipa_get_indirect_edge_target): New function.
9817 (devirtualization_time_bonus): New parameter known_aggs, pass it to
9818 ipa_get_indirect_edge_target. Update all callers.
9819 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
9820 ipa_get_indirect_edge_target_1 instead of calling
9821 ipa_get_indirect_edge_target.
9822 (create_specialized_node): Pass aggvlas to
9823 ipcp_discover_new_direct_edges.
9824
9825 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9826
9827 * config/arm/arm.md (f_sels, f_seld): New types.
9828 (*cmov<mode>): New pattern.
9829 * config/arm/predicates.md (arm_vsel_comparison_operator): New
9830 predicate.
9831
9832 2013-03-25 Kai Tietz <ktietz@redhat.com>
9833
9834 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
9835 POSIX-printf for mingw-hosted builds.
9836
9837 2013-03-25 Richard Biener <rguenther@suse.de>
9838
9839 PR middle-end/56694
9840 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
9841 must-not-throw stmt location.
9842
9843 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9844
9845 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
9846 Emit load-acquire versions when acq is true.
9847 (arm_emit_store_exclusive): Add rel parameter.
9848 Emit store-release versions when rel is true.
9849 (arm_split_compare_and_swap): Use acquire-release instructions
9850 instead.
9851 of barriers when appropriate.
9852 (arm_split_atomic_op): Likewise.
9853 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
9854 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
9855 (VUNSPEC_SLX): Likewise.
9856 (VUNSPEC_LDA): Likewise.
9857 (VUNSPEC_STL): Likewise.
9858 * config/arm/sync.md (atomic_load<mode>): New pattern.
9859 (atomic_store<mode>): Likewise.
9860 (arm_load_acquire_exclusive<mode>): Likewise.
9861 (arm_load_acquire_exclusivesi): Likewise.
9862 (arm_load_acquire_exclusivedi): Likewise.
9863 (arm_store_release_exclusive<mode>): Likewise.
9864
9865 2013-03-25 Catherine Moore <clm@codesourcery.com>
9866
9867 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
9868 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
9869 * config/mip/predicates.md (lwsp_swsp_operand,
9870 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
9871 sb16_operand, db4_operand, db7_operand, ib3_operand,
9872 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
9873 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
9874 andi16_operand): New predicates.
9875 * config/mips/mips.md (compression): New attribute.
9876 (enabled): New attribute.
9877 (length): Consider compression in computing length.
9878 (shift_compression): New code attribute.
9879 (*add<mode>3): New operands. Record compression.
9880 (sub<mode>3): Likewise.
9881 (one_cmpl<mode>2): Likewise.
9882 (*and<mode>3): Likewise.
9883 (*ior<mode>3): Likewise.
9884 (unnamed pattern for xor): Likewise.
9885 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
9886 (*<optab><mode>3): Likewise.
9887 (*mov<mode>_internal: Likewise.
9888 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
9889 (mips_unsigned_immediate_p): New.
9890 (umips_lwsp_swsp_address_p): New.
9891 (m16_based_address_p): New.
9892 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
9893 (mips_unsigned_immediate_p): New prototype.
9894 (lwsp_swsp_address_p): New prototype.
9895 (m16_based_address_p): New prototype.
9896 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
9897 (mips_signed_immediate_p): New function.
9898 (m16_based_address_p): New function.
9899 (lwsp_swsp_address_p): New function.
9900 (mips_print_operand_punctuation): Recognize short delay slot insns
9901 for microMIPS.add<mode>3"
9902
9903 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9904
9905 PR target/56720
9906 * config/arm/iterators.md (v_cmp_result): New mode attribute.
9907 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
9908
9909 2013-03-25 Richard Biener <rguenther@suse.de>
9910
9911 PR tree-optimization/56689
9912 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
9913 any edge.
9914
9915 2013-03-25 Richard Biener <rguenther@suse.de>
9916
9917 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
9918 of bitmap.
9919 (memory_references): Likewise.
9920 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
9921 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
9922 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
9923 (gather_mem_refs_in_loops): Fold into ...
9924 (analyze_memory_references): ... this. Move initialization
9925 to tree_ssa_lim_initialize.
9926 (fill_always_executed_in): Rename to ...
9927 (fill_always_executed_in_1): ... this.
9928 (fill_always_executed_in): Move contains_call computation to
9929 this new function from ...
9930 (tree_ssa_lim_initialize): ... here.
9931 (tree_ssa_lim): Call fill_always_executed_in.
9932
9933 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
9934
9935 * postreload.c (reload_combine): Fix code detecting returns.
9936
9937 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
9938
9939 * function.c (emit_use_return_register_into_block): On cc0 targets,
9940 do not emit the sequence between cc0 setter and user.
9941
9942 2013-03-25 Kai Tietz <ktietz@redhat.com>
9943
9944 * config/i386/predicates.md (local_symbolic_operand): Interpret
9945 dll-imported symbols as none-local.
9946
9947 2013-03-25 Richard Biener <rguenther@suse.de>
9948
9949 * tree-ssa-loop-im.c (struct depend): Remove.
9950 (struct lim_aux_data): Make depends a vec of gimples.
9951 (free_lim_aux_data): Adjust.
9952 (add_dependency): Likewise.
9953 (set_level): Likewise.
9954
9955 2013-03-25 Richard Biener <rguenther@suse.de>
9956
9957 PR middle-end/56434
9958 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
9959 the pointer returned by calls with ECF_MALLOC set.
9960
9961 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
9962
9963 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
9964
9965 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
9966
9967 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
9968 using MMXMODE mode iterator.
9969 (*move<mode>_internal): Merge with *movv2sf_internal and
9970 *movv2sf_internal_rex64 using MMXMODE mode iterator.
9971
9972 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
9973
9974 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
9975 (record_last_mem_set_info): Likewise.
9976
9977 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
9978 of XNEWVEC followed by memset.
9979 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
9980
9981 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
9982
9983 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
9984 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
9985 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
9986 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
9987 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
9988 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
9989 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
9990 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
9991 BARRIER_P instead of GET_CODE.
9992
9993 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
9994
9995 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
9996 inaccuracy in the probing code.
9997
9998 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
9999 (ctrapdi4): Likewise.
10000
10001 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
10002
10003 * calls.c (expand_call): Add missing guard to code handling return
10004 of non-BLKmode structures in MSB.
10005 * function.c (expand_function_end): Likewise.
10006
10007 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
10008
10009 * combine.c (try_combine): Adjust comment. Do not add the set of
10010 insn #0 if the destination indirectly is set or dies in insn #2.
10011 Tidy up code to distribute a new note.
10012
10013 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
10014
10015 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
10016 also for alternatives 16 and 17.
10017
10018 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
10019
10020 * config/i386/sse.md (*mov<mode>_internal): Merge with
10021 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
10022 Emit insn template depending on type attribute. Use
10023 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
10024 movd instead of movq mnemonic for interunit moves. Rewrite mode
10025 attribute calculation. Remove unit attribute calculation.
10026 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
10027 Set prefix_data16 attribute for DImode ssemov types.
10028 Use Ym instead of y for SSE-MMX conversion alternatives.
10029 Reorder operand constraints.
10030
10031 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
10032
10033 * df.h (df_insn_delete): Adjust prototype.
10034 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
10035 and let it decide whether mark the basic block dirty.
10036 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
10037 * df-scan.c (df_insn_info_delete): New helper function, split
10038 off from df_insn_delete.
10039 (df_scan_free_bb_info): Use it.
10040 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
10041 Likewise.
10042 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
10043 that the insn is actually an insn and it has a non-NULL basic block.
10044 Do not mark basic block dirty if only deleting a DEBUG_INSN.
10045
10046 2013-03-22 Richard Biener <rguenther@suse.de>
10047
10048 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
10049 dep_ref members.
10050 (mem_ref_alloc): Do not allocate them.
10051 (refs_independent_p): Do not query or maintain a cache.
10052
10053 2013-03-22 Richard Biener <rguenther@suse.de>
10054
10055 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
10056 (gather_mem_refs_in_loops): Do not compute it.
10057 (analyze_memory_references): Do not allocate it.
10058 (tree_ssa_lim_finalize): Do not free it.
10059 (for_all_locs_in_loop): Do not query all_refs_in_loop.
10060
10061 2013-03-22 Richard Biener <rguenther@suse.de>
10062
10063 * is-a.h (as_a): Use gcc_checking_assert.
10064
10065 2013-03-22 Ian Bolton <ian.bolton@arm.com>
10066
10067 * config/aarch64/aarch64.c (aarch64_print_operand): New
10068 format specifier for printing a constant in hex.
10069 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
10070 format specifier for printing second operand.
10071
10072 2013-03-22 Richard Biener <rguenther@suse.de>
10073
10074 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
10075 bitmaps.
10076 (gather_mem_refs_in_loops): Perform store accumulation here.
10077 (create_vop_ref_mapping_loop): Remove.
10078 (create_vop_ref_mapping): Likewise.
10079 (analyze_memory_references): Initialize refs_stored_in_loop.
10080 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
10081 (record_indep_loop): Remove.
10082 (record_dep_loop): New function.
10083 (ref_indep_loop_p_1): Adjust to only walk over references
10084 in the loop, not its subloops.
10085 (ref_indep_loop_p): Rename to ...
10086 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
10087 maintaining a more fine-grained cache.
10088 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
10089 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
10090
10091 2013-03-22 Richard Biener <rguenther@suse.de>
10092
10093 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
10094 (struct mem_ref): Make accesses_in_loop a vec of a vec of
10095 aggregate mem_ref_loc.
10096 (free_mem_ref_locs): Inline into ...
10097 (memref_free): ... this and adjust.
10098 (mem_ref_alloc): Adjust.
10099 (mem_ref_locs_alloc): Remove.
10100 (record_mem_ref_loc): Adjust.
10101 (get_all_locs_in_loop): Rewrite into ...
10102 (for_all_locs_in_loop): ... this iterator.
10103 (rewrite_mem_ref_loc): New functor.
10104 (rewrite_mem_refs): Use for_all_locs_in_loop.
10105 (sm_set_flag_if_changed): New functor.
10106 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
10107 (ref_always_accessed): New functor.
10108 (ref_always_accessed_p): Use for_all_locs_in_loop.
10109
10110 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
10111
10112 * tree-pass.h (PROP_gimple_lvec): New.
10113 * passes.c (dump_properties): Handle PROP_gimple_lvec.
10114 (init_optimization_passes): Move pass_lower_vector.
10115 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
10116 PROP_gimple_lvec.
10117 (pass_lower_vector): Provide PROP_gimple_lvec.
10118 (pass_lower_vector_ssa): Likewise.
10119 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
10120
10121 2013-03-21 Mark Wielaard <mjw@redhat.com>
10122
10123 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
10124
10125 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
10126
10127 * config/i386/i386.md (*movdi_internal): Disparage slightly
10128 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
10129 conversion alternatives.
10130
10131 2013-03-21 Jakub Jelinek <jakub@redhat.com>
10132
10133 PR middle-end/48087
10134 * diagnostic.def (DK_WERROR): New kind.
10135 * diagnostic.h (werrorcount): Define.
10136 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
10137 promoted to DK_ERROR, increment DK_WERROR counter instead of
10138 DK_ERROR counter.
10139 * toplev.c (toplev_main): Call print_ignored_options even if
10140 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
10141 even if just werrorcount is non-zero.
10142
10143 PR debug/55608
10144 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
10145 on failure.
10146 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
10147 (string_cst_pool_decl): New function.
10148 (optimize_one_addr_into_implicit_ptr): New function.
10149 (resolve_addr_in_expr): Optimize DWARF location expression
10150 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
10151 which doesn't live in memory, but has DW_AT_location or
10152 DW_AT_const_value, or refers to a string literal, into
10153 DW_OP_GNU_implicit_pointer.
10154 (optimize_location_into_implicit_ptr): New function.
10155 (resolve_addr): If removing DW_AT_location of a variable because
10156 it was DW_OP_addr of address of the variable, but the variable doesn't
10157 live in memory, try to emit const value attribute for the initializer.
10158
10159 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
10160
10161 * tree.h (VECTOR_TYPE_P): New macro.
10162 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
10163 TYPE_MODE): Use it.
10164 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
10165 VEC_COND_EXPR cannot be lvalues.
10166 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
10167
10168 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
10169
10170 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
10171 Restrict the transformation to equal modes.
10172
10173 2013-03-21 Richard Biener <rguenther@suse.de>
10174
10175 PR tree-optimization/39326
10176 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
10177 (MEM_ANALYZABLE): Adjust.
10178 (record_mem_ref_loc): Move bitmap ops ...
10179 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
10180 unanalyzable refs, do not record locations for it.
10181 (analyze_memory_references): Allocate ref zero as shared
10182 unanalyzable ref.
10183 (refs_independent_p): Do not test for unanalyzed mems here.
10184 (ref_indep_loop_p_1): Special-case disambiguation against
10185 the unanalyzed ref.
10186 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
10187
10188 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
10189
10190 * config/arm/arm-protos.h (tune_params): Add
10191 prefer_neon_for_64bits field.
10192 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
10193 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
10194 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
10195 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
10196 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
10197 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
10198 (arm_option_override): Handle -mneon-for-64bits new option.
10199 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
10200 (prefer_neon_for_64bits): Declare new variable.
10201 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
10202 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
10203 (arch_enabled): Handle new arch types. Remove support for onlya8
10204 and nota8.
10205 (one_cmpldi2): Use new arch names.
10206 (zero_extend<mode>di2, extend<mode>di2): Ditto.
10207 * config/arm/arm.opt (mneon-for-64bits): Add option.
10208 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
10209 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
10210 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
10211 of onlya8.
10212 * doc/invoke.texi (-mneon-for-64bits): Document.
10213
10214 2013-03-21 Richard Biener <rguenther@suse.de>
10215
10216 PR tree-optimization/39326
10217 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
10218 (sort_bbs_in_loop_postorder_cmp): New function.
10219 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
10220
10221 2013-03-21 Richard Biener <rguenther@suse.de>
10222
10223 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
10224 (vect_insert_into_interleaving_chain): Likewise.
10225 (vect_drs_dependent_in_basic_block): Inline ...
10226 (vect_slp_analyze_data_ref_dependence): ... here. New function,
10227 split out from ...
10228 (vect_analyze_data_ref_dependence): ... here. Simplify.
10229 (vect_check_interleaving): Simplify.
10230 (vect_analyze_data_ref_dependences): Likewise. Split out ...
10231 (vect_slp_analyze_data_ref_dependences): ... this new function.
10232 (dr_group_sort_cmp): New function.
10233 (vect_analyze_data_ref_accesses): Compute data-reference groups
10234 here instead of in vect_analyze_data_ref_dependence. Use
10235 a more efficient algorithm.
10236 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
10237 vect_slp_analyze_data_ref_dependences. Call
10238 vect_analyze_data_ref_accesses earlier.
10239 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
10240 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
10241 (vect_slp_analyze_data_ref_dependences): New prototype.
10242
10243 2013-03-21 Richard Biener <rguenther@suse.de>
10244
10245 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
10246 ref is stored in the loop.
10247 (find_refs_for_sm): Walk only over all stores.
10248 (store_motion_loop): Allocate from lim_bitmap_obstack.
10249 (store_motion): Likewise.
10250
10251 2013-03-21 Richard Biener <rguenther@suse.de>
10252
10253 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
10254 Update virtual SSA form.
10255
10256 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10257
10258 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
10259 * configure: Regenerate.
10260 * config.in: Regenerate.
10261 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
10262 if !HAVE_LD_EH_FRAME_CIEV3.
10263
10264 2013-03-21 Richard Biener <rguenther@suse.de>
10265
10266 * tree-cfg.c (verify_expr_no_block): New function.
10267 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
10268 nor DECL_VALUE_EXPR have locations with associated blocks.
10269 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
10270 (clear_unused_block_pointer): Remove code dealing with
10271 blocks in DECL_DEBUG_EXPR locations.
10272
10273 2013-03-21 Richard Biener <rguenther@suse.de>
10274
10275 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
10276 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
10277 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
10278 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
10279 instead of DECL_DEBUG_EXPR_IS_FROM.
10280 * gimplify.c (gimplify_modify_expr): Likewise.
10281 * tree-cfg.c (verify_expr_location_1): Likewise.
10282 * tree-complex.c (create_one_component_var): Likewise.
10283 * tree-sra.c (create_access_replacement): Likewise.
10284 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
10285 (clear_unused_block_pointer): Likewise.
10286 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
10287 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
10288 * var-tracking.c (var_debug_decl): Likewise.
10289 (track_expr_p): Likewise.
10290 * tree-inline.c (add_local_variables): Likewise. Set
10291 DECL_HAS_DEBUG_EXPR_P after copying it.
10292 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
10293 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
10294
10295 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
10296
10297 PR bootstrap/56656
10298 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
10299 * configure: Regenerate.
10300 * config.in: Regenerate.
10301 * config/i386/i386.md (*movdf_internal): Use
10302 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
10303 movd instead of movq mnemonic for interunit moves.
10304 (*movdi_internal): Ditto.
10305
10306 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10307
10308 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
10309 (abd<mode>_3): New pattern.
10310 (aba<mode>_3): New pattern.
10311 (fabd<mode>_3): New pattern.
10312
10313 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10314
10315 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
10316 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
10317 occurrence of REGISTER_PREFIX as its empty string.
10318
10319 2013-03-20 Jeff Law <law@redhat.com>
10320
10321 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
10322 addititional equivalences for equality comparisons between an SSA_NAME
10323 and a constant where the SSA_NAME was set from a widening conversion.
10324
10325 2013-03-20 Walter Lee <walt@tilera.com>
10326
10327 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
10328
10329 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
10330
10331 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
10332 depending on type attribute.
10333 (*movti_internal): Ditto.
10334 (*movtf_internal): Ditto.
10335 (*movxf_internal): Ditto.
10336 (*movdf_internal): Ditto.
10337 (*movsf_internal): Ditto.
10338
10339 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
10340
10341 * config/i386/i386.md (*movti_internal): Set prefix attribute to
10342 maybe_vex for sselog1 and ssemov types.
10343 (*movdi_internal): Reorder operand constraints.
10344 (*movsi_internal): Ditto. Set prefix attribute to
10345 maybe_vex for sselog1 and ssemov types.
10346 (*movtf_internal): Set prefix attribute to maybe_vex
10347 for sselog1 and ssemov types.
10348 (*movdf_internal): Ditto. Set prefix_data16 attribute for
10349 DImode ssemov types. Reorder operand constraints.
10350 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
10351 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
10352 attribute for SImode ssemov types. Reorder operand constraints.
10353
10354 2013-03-20 Martin Jambor <mjambor@suse.cz>
10355
10356 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
10357 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
10358
10359 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
10360
10361 * config/rs6000/predicates.md (indexed_address, update_address_mem
10362 update_indexed_address_mem): New predicates.
10363 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
10364 attribute for load/store instructions.
10365 * config/rs6000/dfp.md (movsd_store): Likewise.
10366 (movsd_load): Likewise.
10367 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
10368 (unnamed HI->DI extend define_insn): Likewise.
10369 (unnamed SI->DI extend define_insn): Likewise.
10370 (unnamed QI->SI extend define_insn): Likewise.
10371 (unnamed QI->HI extend define_insn): Likewise.
10372 (unnamed HI->SI extend define_insn): Likewise.
10373 (unnamed HI->SI extend define_insn): Likewise.
10374 (extendsfdf2_fpr): Likewise.
10375 (movsi_internal1): Likewise.
10376 (movsi_internal1_single): Likewise.
10377 (movhi_internal): Likewise.
10378 (movqi_internal): Likewise.
10379 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
10380 attribute for load/store instructions.
10381 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
10382 instructions.
10383 (mov<mode>_softfloat): Likewise.
10384 (mov<mode>_hardfloat32): Likewise.
10385 (mov<mode>_hardfloat64): Likewise.
10386 (mov<mode>_softfloat64): Likewise.
10387 (movdi_internal32): Likewise.
10388 (movdi_internal64): Likewise.
10389 (probe_stack_<mode>): Likewise.
10390
10391 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
10392
10393 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
10394 floating point, and decimal floating point to reload iterator.
10395
10396 * config/rs6000/constraints.md (wl constraint): New constraints to
10397 return FLOAT_REGS if certain options are used to reduce the number
10398 of separate patterns that exist in the file.
10399 (wx constraint): Likewise.
10400 (wz constraint): Likewise.
10401
10402 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
10403 -mdebug=reg, print wg, wl, wx, and wz constraints.
10404 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
10405 Initialize the reload functions for 64-bit binary/decimal floating
10406 point types.
10407 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
10408 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
10409 create the buffer on the stack to overcome not having a 32-bit
10410 load and store.
10411 (rs6000_emit_move): Likewise.
10412 (rs6000_secondary_memory_needed_rtx): Likewise.
10413 (rs6000_alloc_sdmode_stack_slot): Likewise.
10414 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
10415 via xxlxor, just like DFmode 0.0.
10416
10417 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
10418 define as 1 if we are running on a power7 or newer.
10419 (enum r6000_reg_class_enum): Add new constraints.
10420
10421 * config/rs6000/dfp.md (movsd): Delete, combine with binary
10422 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
10423 with other moves by using conditional constraits (wg). Use LFIWZX
10424 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
10425 (movsd splitter): Likewise.
10426 (movsd_hardfloat): Likewise.
10427 (movsd_softfloat): Likewise.
10428
10429 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
10430 binary and decimal floating point moves.
10431 (fmove_ok): New attributes to combine binary and decimal floating
10432 point moves, and to combine power6x (mfpgpr) moves along normal
10433 floating moves.
10434 (real_value_to_target): Likewise.
10435 (f32_lr): Likewise.
10436 (f32_lm): Likewise.
10437 (f32_li): Likewise.
10438 (f32_sr): Likewise.
10439 (f32_sm): Likewise.
10440 (f32_si): Likewise.
10441 (movsf): Combine binary and decimal floating point moves. Combine
10442 power6x (mfpgpr) moves with other moves by using conditional
10443 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
10444 (mov<mode> for SFmode/SDmode); Likewise.
10445 (SFmode/SDmode splitters): Likewise.
10446 (movsf_hardfloat): Likewise.
10447 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
10448 (movsf_softfloat): Likewise.
10449 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
10450
10451 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
10452 wx and wz constraints.
10453
10454 * config/rs6000/constraints.md (wg constraint): New constraint to
10455 return FLOAT_REGS if -mmfpgpr (power6x) was used.
10456
10457 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
10458 constraint.
10459
10460 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
10461 -mdebug=reg, print wg, wl, wx, and wz constraints.
10462 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
10463 Initialize the reload functions for 64-bit binary/decimal floating
10464 point types.
10465 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
10466 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
10467 create the buffer on the stack to overcome not having a 32-bit
10468 load and store.
10469 (rs6000_emit_move): Likewise.
10470 (rs6000_secondary_memory_needed_rtx): Likewise.
10471 (rs6000_alloc_sdmode_stack_slot): Likewise.
10472 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
10473 via xxlxor, just like DFmode 0.0.
10474
10475 * config/rs6000/dfp.md (movdd): Delete, combine with binary
10476 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
10477 with other moves by using conditional constraits (wg). Use LFIWZX
10478 and STFIWX for loading SDmode on power7.
10479 (movdd splitters): Likewise.
10480 (movdd_hardfloat32): Likewise.
10481 (movdd_softfloat32): Likewise.
10482 (movdd_hardfloat64_mfpgpr): Likewise.
10483 (movdd_hardfloat64): Likewise.
10484 (movdd_softfloat64): Likewise.
10485
10486 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
10487 64-bit binary and decimal floating point moves.
10488 (FMOVE64X): Likewise.
10489 (movdf): Combine 64-bit binary and decimal floating point moves.
10490 Combine power6x (mfpgpr) moves with other moves by using
10491 conditional constraits (wg).
10492 (mov<mode> for DFmode/DDmode): Likewise.
10493 (DFmode/DDmode splitters): Likewise.
10494 (movdf_hardfloat32): Likewise.
10495 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
10496 (movdf_softfloat32): Likewise.
10497 (movdf_hardfloat64_mfpgpr): Likewise.
10498 (movdf_hardfloat64): Likewise.
10499 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
10500 (movdf_softfloat64): Likewise.
10501 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
10502 (reload_<mode>_load): Move to later in the file so they aren't in
10503 the middle of the floating point move insns.
10504 (reload_<mode>_store): Likewise.
10505
10506 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
10507 constraint.
10508
10509 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
10510 constraint if -mdebug=reg.
10511 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
10512 Enable using dd reload support if needed.
10513
10514 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
10515 binary and decimal floating point moves in rs6000.md.
10516 (movtd_internal): Likewise.
10517
10518 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
10519 decimal floating point moves.
10520 (movtf): Likewise.
10521 (movtf_internal): Likewise.
10522 (mov<mode>_internal, TDmode/TFmode): Likewise.
10523 (movtf_softfloat): Likewise.
10524 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
10525
10526 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
10527 movdi_internal64, using wg constraint for move direct operations.
10528 (movdi_internal64): Likewise.
10529
10530 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
10531 MODES_TIEABLE_P for selected modes. Print the numerical value of
10532 the various virtual registers. Use GPR/FPR first/last values,
10533 instead of hard coding the register numbers. Print which modes
10534 have reload functions registered.
10535 (rs6000_option_override_internal): If -mdebug=reg, trace the options
10536 settings before/after setting cpu, target and subtarget settings.
10537 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
10538 and for secondary reload failures in rs6000_secondary_reload_inner.
10539 (rs6000_secondary_reload_fail): Likewise.
10540 (rs6000_secondary_reload_inner): Likewise.
10541
10542 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
10543 macros for first/last GPR and FPR registers.
10544 (LAST_GPR_REGNO): Likewise.
10545 (FIRST_FPR_REGNO): Likewise.
10546 (LAST_FPR_REGNO): Likewise.
10547
10548 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
10549 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
10550 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
10551 (vcond<mode><mode>): Likewise.
10552 (vcondu<mode><mode>): Likewise.
10553 (vector_gtu<mode>): Likewise.
10554 (vector_gte<mode>): Likewise.
10555 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
10556 to prevent the compiler from converting DImode operations to TImode.
10557 (ior<mode>3): Likewise.
10558 (and<mode>3): Likewise.
10559 (one_cmpl<mode>2): Likewise.
10560 (nor<mode>3): Likewise.
10561 (andc<mode>3): Likewise.
10562
10563 * config/rs6000/constraints.md (wt constraint): New constraint
10564 that returns VSX_REGS if TImode is allowed in VSX registers.
10565
10566 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
10567 constant under VSX.
10568
10569 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
10570 similar to TImode, but it is restricted to being in the GPRs.
10571
10572 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
10573 TImode to occupy a single VSX register.
10574
10575 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
10576 -mvsx-timode for power7/power8.
10577 (power7 cpu): Likewise.
10578 (power8 cpu): Likewise.
10579
10580 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
10581 sure that TFmode/TDmode take up two registers if they are ever
10582 allowed in the upper VSX registers.
10583 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
10584 registers.
10585 (rs6000_init_hard_regno_mode_ok): Likewise.
10586 (rs6000_debug_reg_global): Add debugging for PTImode and wt
10587 constraint. Print if LRA is turned on.
10588 (rs6000_option_override_internal): Give an error if -mvsx-timode
10589 and VSX is not enabled.
10590 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
10591 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
10592 to reg+offset addressing. Use PTImode when checking offset
10593 addresses for validity.
10594 (reg_offset_addressing_ok_p): Likewise.
10595 (rs6000_legitimate_offset_address_p): Likewise.
10596 (rs6000_legitimize_address): Likewise.
10597 (rs6000_legitimize_reload_address): Likewise.
10598 (rs6000_legitimate_address_p): Likewise.
10599 (rs6000_eliminate_indexed_memrefs): Likewise.
10600 (rs6000_emit_move): Likewise.
10601 (rs6000_secondary_reload): Likewise.
10602 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
10603 reloads to fpr registers to continue to use reg+offset addressing,
10604 but 64-bit reloads to altivec registers need reg+reg addressing.
10605 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
10606 it. Treat LO_SUM like a PLUS operation.
10607 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
10608 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
10609 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
10610 registers to share a register with a smaller sized type, since VSX
10611 puts scalars in the upper 64-bits.
10612 (print_operand): Add support for PTImode.
10613 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
10614 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
10615 registers, but don't have arithmetic support.
10616 (rs6000_memory_move_cost): Add test for VSX.
10617 (rs6000_opt_masks): Add -mvsx-timode.
10618
10619 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
10620 for TImode.
10621 (VSs): Likewise.
10622 (VSr): Use wt constraint for TImode.
10623 (VSv): Drop TImode support.
10624 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
10625 (vsx_movti_64bit): Likewise.
10626 (vsx_movti_32bit): Likewise.
10627 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
10628 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
10629 one '?' on the appropriate output constraint. Do not allow TImode
10630 logical operations on 32-bit systems.
10631 (vsx_ior<mode>3): Likewise.
10632 (vsx_xor<mode>3): Likewise.
10633 (vsx_one_cmpl<mode>2): Likewise.
10634 (vsx_nor<mode>3): Likewise.
10635 (vsx_andc<mode>3): Likewise.
10636 (vsx_concat_<mode>): Likewise.
10637 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
10638
10639 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
10640 OPTION_MASK_VSX_TIMODE.
10641 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
10642 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
10643
10644 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
10645 (TI2 iterator): New iterator for TImode, PTImode.
10646 (wd mode attribute): Add values for vector types.
10647 (movti_string): Replace TI move operations with operations for TImode
10648 and PTImode. Add support for TImode being allowed in VSX registers.
10649 (mov<mode>_string, TImode/PTImode): Likewise.
10650 (movti_ppc64): Likewise.
10651 (mov<mode>_ppc64, TImode/PTImode): Likewise.
10652 (TI mode splitters): Likewise.
10653
10654 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
10655 constraint.
10656
10657 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
10658
10659 PR tree-optimization/56355
10660 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
10661 Also handle integers with undefined overflow.
10662
10663 2013-03-20 Catherine Moore <clm@codesourcery.com>
10664 Maciej W. Rozycki <macro@codesourcery.com>
10665 Tom de Vries <tom@codesourcery.com>
10666 Nathan Sidwell <nathan@codesourcery.com>
10667 Iain Sandoe <iain@codesourcery.com>
10668 Nathan Froyd <froydnj@codesourcery.com>
10669 Chao-ying Fu <fu@mips.com>
10670
10671 * doc/extend.texi: (micromips, nomicromips, nocompression):
10672 Document new function attributes.
10673 * doc/invoke.texi (minterlink-compressed, mmicromips,
10674 m14k, m14ke, m14kec): Document new options.
10675 (minterlink-mips16): Update documentation.
10676 * doc/md.texi (ZC, ZD): Document new constraints.
10677 * configure.ac (gcc_cv_as_micromips): Check if linker
10678 supports the .set micromips directive.
10679 * configure: Regenerate.
10680 * config.in: Regenerate.
10681 * config/mips/mips-tables.opt: Regenerate.
10682 * config/mips/micromips.md: New file.
10683 * constraints.md (ZC, ZD): New constraints.
10684 * config/mips/predicates.md (movep_src_register): New predicate.
10685 (movep_src_operand): New predicate.
10686 (non_volatile_mem_operand): New predicate.
10687 * config/mips/mips.md (multimem): New type.
10688 (length): Differentiate between 17-bit and 18-bit branch offsets.
10689 (MOVEP1, MOVEP2): New mode iterator.
10690 (mov_<load>l): Use ZC constraint.
10691 (mov_<load>r): Likewise.
10692 (mov_<store>l): Likewise.
10693 (mov_<store>r): Likewise.
10694 (*branch_equality<mode>_inverted): Add microMIPS support.
10695 (*branch_equality<mode>): Likewise.
10696 (*jump_absolute): Likewise.
10697 (indirect_jump_<mode>): Likewise.
10698 (tablejump_<mode>): Likewise.
10699 (<optab>_internal): Likewise.
10700 (sibcall_internal): Likewise.
10701 (sibcall_value_internal): Likewise.
10702 (prefetch): Use constraint ZD.
10703 * config/mips/mips.opt (minterlink-compressed): New option.
10704 (minterlink-mips16): Now an alias for minterlink-compressed.
10705 (mmicromips): New option.
10706 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10707 (compare_and_swap_12): Likewise.
10708 (sync_add<mode>): Likewise.
10709 (sync_<optab>_12): Likewise.
10710 (sync_old_<optab>_12): Likewise.
10711 (sync_new_<optab>_12): Likewise.
10712 (sync_nand_12): Likewise.
10713 (sync_old_nand_12): Likewise.
10714 (sync_new_nand_12): Likewise.
10715 (sync_sub<mode>): Likewise.
10716 (sync_old_add<mode>): Likewise.
10717 (sync_old_sub<mode>): Likewise.
10718 (sync_new_add<mode>): Likewise.
10719 (sync_new_sub<mode>): Likewise.
10720 (sync_<optab><mode>): Likewise.
10721 (sync_old_<optab><mode>): Likewise.
10722 (sync_new_<optab><mode>): Likewise.
10723 (sync_nand<mode>): Likewise.
10724 (sync_old_nand<mode>): Likewise.
10725 (sync_new_nand<mode>): Likewise.
10726 (sync_lock_test_and_set<mode>): Likewise.
10727 (test_and_set_12): Likewise.
10728 (atomic_compare_and_swap<mode>): Likewise.
10729 (atomic_exchange<mode>_llsc): Likewise.
10730 (atomic_fetch_add<mode>_llsc): Likewise.
10731 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10732 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10733 (umips_save_restore_pattern_p): Likewise.
10734 (umips_load_store_pair_p): Likewise.
10735 (umips_output_load_store_pair): Likewise.
10736 (umips_movep_target_p): Likewise.
10737 (umips_12bit_offset_address_p): Likewise.
10738 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10739 (mips_base_mips16): Rename this...
10740 (mips_base_compression_flags): ...to this. Update all uses.
10741 (mips_attribute_table): Add micromips, nomicromips and nocompression.
10742 (mips_mips16_decl_p): Delete.
10743 (mips_nomips16_decl_p): Delete.
10744 (mips_get_compress_on_flags): New function.
10745 (mips_get_compress_off_flags): New function.
10746 (mips_get_compress_mode): New function.
10747 (mips_get_compress_on_name): New function.
10748 (mips_get_compress_off_name): New function.
10749 (mips_insert_attributes): Support multiple compression types.
10750 (mips_merge_decl_attributes): Likewise.
10751 (umips_12bit_offset_address_p): New function.
10752 (mips_start_function_definition): Emit .set micromips directive.
10753 (mips_call_may_need_jalx_p): New function.
10754 (mips_function_ok_for_sibcall): Add microMIPS support.
10755 (mips_print_operand_punctuation): Support short delay slots and
10756 compact jumps.
10757 (umips_swm_mask, umips_swm_encoding): New.
10758 (umips_build_save_restore): New function.
10759 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10760 (was_mips16_p): Remove.
10761 (old_compression_mode): New.
10762 (mips_set_compression_mode): New function.
10763 (mips_set_current_function): Add microMIPS support.
10764 (mips_option_override): Likewise.
10765 (umips_save_restore_pattern_p): New function.
10766 (umips_output_save_restore): New function.
10767 (umips_load_store_pair_p_1): New function.
10768 (umips_load_store_pair_p): New function.
10769 (umips_output_load_store_pair_1): New function.
10770 (umips_output_load_store_pair): New function.
10771 (umips_movep_target_p) New function.
10772 (mips_prepare_pch_save): Add microMIPS support.
10773 * config/mips/mips.h (TARGET_COMPRESSION): New.
10774 (TARGET_CPU_CPP_BUILTINS): Update macro
10775 to use new compression flags and to support microMIPS.
10776 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10777 (MIPS_ARCH_FLOAT_SPEC): Likewise.
10778 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10779 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10780 (ASM_SPEC): Support mmicromips and mno-micromips.
10781 (M16STORE_REG_P): New macro.
10782 (MIPS_CALL): Support TARGET_MICROMIPS.
10783 (MICROMIPS_J): New macro.
10784 (mips_base_mips16): Rename this...
10785 (mips_base_compression_flags): ...to this.
10786 (UMIPS_12BIT_OFFSET_P): New macro.
10787 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10788 (MULTILIB_DIRNAMES): Likewise.
10789 2013-03-20 Richard Biener <rguenther@suse.de>
10790
10791 PR tree-optimization/56661
10792 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
10793 the result does not have to be distinct.
10794
10795 2013-03-20 Richard Biener <rguenther@suse.de>
10796
10797 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
10798 remap_gimple_op_r.
10799
10800 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10801 Steven Bosscher <steven@gcc.gnu.org>
10802
10803 PR rtl-optimization/56605
10804 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
10805
10806 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
10807
10808 PR bootstrap/56656
10809 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
10810 that require movd instead of movq.
10811
10812 2013-03-20 Richard Biener <rguenther@suse.de>
10813
10814 * tree-ssa-structalias.c (struct variable_info): Add pointer
10815 to the first field of an aggregate with sub-vars. Make
10816 this and the pointer to the next subfield its ID.
10817 (vi_next): New function.
10818 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
10819 storedanything_id, integer_id): Increment by one.
10820 (new_var_info, get_call_vi, lookup_call_clobber_vi,
10821 get_call_clobber_vi): Adjust.
10822 (solution_set_expand): Simplify and speedup.
10823 (solution_set_add): Inline into ...
10824 (set_union_with_increment): ... this. Adjust accordingly.
10825 (do_sd_constraint): Likewise.
10826 (do_ds_constraint): Likewise.
10827 (do_complex_constraint): Simplify.
10828 (build_pred_graph): Adjust.
10829 (solve_graph): Likewise. Simplify and speedup.
10830 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
10831 get_constraint_for_component_ref, get_constraint_for_1,
10832 first_vi_for_offset, first_or_preceding_vi_for_offset,
10833 create_function_info_for, create_variable_info_for_1,
10834 create_variable_info_for, intra_create_variable_infos): Adjust.
10835 (init_base_vars): Push NULL for ID zero.
10836 (compute_points_to_sets): Adjust.
10837
10838 2013-03-20 Richard Biener <rguenther@suse.de>
10839
10840 * cfgloop.c (verify_loop_structure): Streamline and avoid
10841 ICEing on corrupt loop tree.
10842 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
10843 loop tree.
10844
10845 2013-03-20 Richard Biener <rguenther@suse.de>
10846
10847 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
10848 check whether an SSA update is needed.
10849
10850 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
10851
10852 * config/mips/constraints.md (T): Rename to...
10853 (Yf): ...this.
10854 (U): Rename to...
10855 (Yd): ...this.
10856 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
10857 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
10858
10859 2013-03-19 Ian Bolton <ian.bolton@arm.com>
10860
10861 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
10862 (*subsi3_carryin_uxtw): Likewise.
10863
10864 2013-03-19 Ian Bolton <ian.bolton@arm.com>
10865
10866 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
10867 (*rorsi3_insn_uxtw): Likewise.
10868
10869 2013-03-19 Ian Bolton <ian.bolton@arm.com>
10870
10871 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
10872 (*extrsi5_insn_uxtw): Likewise.
10873
10874 2013-03-19 Richard Biener <rguenther@suse.de>
10875
10876 PR tree-optimization/56273
10877 * passes.c (init_optimization_passes): Move second VRP after DOM.
10878
10879 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
10880
10881 * config/i386/i386.md (*movti_internal): Merge from
10882 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
10883 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
10884 nox64 isa attributes.
10885
10886 2013-03-18 Richard Biener <rguenther@suse.de>
10887
10888 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
10889 (unite): Likewise.
10890 (merge_node_constraints): Likewise.
10891 (build_succ_graph): Likewise.
10892 (valid_graph_edge): Inline into single caller.
10893 (unify_nodes): Likewise. Use bitmap_set_bit return value
10894 and cache varinfo.
10895 (scc_visit): Fix formatting and variable use.
10896 (do_sd_constraint): Use gcc_checking_assert.
10897 (do_ds_constraint): Likewise.
10898 (do_complex_constraint): Likewise.
10899 (condense_visit): Likewise. Cleanup.
10900 (dump_pred_graph): New function.
10901 (perform_var_substitution): Dump the pred-graph before
10902 variable substitution.
10903 (find_equivalent_node): Use gcc_checking_assert.
10904 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
10905
10906 2013-03-18 Richard Biener <rguenther@suse.de>
10907
10908 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
10909 Remove cond_expr_stmt_list argument and do not gimplify the
10910 built expression.
10911 (vect_loop_versioning): Adjust.
10912 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
10913 Cleanup to use less temporaries.
10914 (vect_create_data_ref_ptr): Cleanup.
10915
10916 2013-03-18 Jakub Jelinek <jakub@redhat.com>
10917
10918 PR tree-optimization/56635
10919 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
10920 require types_compatible_p types.
10921
10922 2013-03-18 Nick Clifton <nickc@redhat.com>
10923
10924 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
10925 spurious backslash.
10926
10927 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
10928 Add missing line to comment describing function.
10929
10930 2013-03-18 Richard Biener <rguenther@suse.de>
10931
10932 PR tree-optimization/56210
10933 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10934 Handle string / character search functions.
10935 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10936
10937 2013-03-18 Richard Biener <rguenther@suse.de>
10938
10939 PR middle-end/56483
10940 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
10941 and implement properly.
10942 * gimple.h (gimple_cond_single_var_p): Remove.
10943
10944 2013-03-18 Richard Biener <rguenther@suse.de>
10945
10946 * tree-data-ref.h (find_data_references_in_loop): Declare.
10947 * tree-data-ref.c (get_references_in_stmt): Use a stack
10948 vector pre-allocated in the callers.
10949 (find_data_references_in_stmt): Adjust.
10950 (graphite_find_data_references_in_stmt): Likewise.
10951 (create_rdg_vertices): Likewise.
10952 (find_data_references_in_loop): Export.
10953 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
10954 Compute dependences here...
10955 (vect_analyze_data_refs): ...not here. When we encounter
10956 a non-vectorizable data reference in basic-block vectorization
10957 truncate the data reference vector. Do not bother to
10958 fixup data-dependence information for gather loads.
10959 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
10960 of data references, as reported.
10961
10962 2013-03-18 Richard Biener <rguenther@suse.de>
10963
10964 PR tree-optimization/3713
10965 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
10966 has_constants and expr.
10967 (stmt_has_constants): Properly valueize SSA names when deciding
10968 whether the stmt has constants.
10969
10970 2013-03-18 Richard Biener <rguenther@suse.de>
10971
10972 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
10973 whole function when there is nothing to do.
10974 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
10975 * tree-vectorizer.c (vectorize_loops): Update virtual and
10976 loop-closed SSA once.
10977 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
10978
10979 2013-03-18 Richard Biener <rguenther@suse.de>
10980
10981 PR middle-end/56113
10982 * domwalk.c (bb_postorder): New global static.
10983 (cmp_bb_postorder): New function.
10984 (walk_dominator_tree): Replace scheme imposing an order for
10985 visiting dominator sons by one sorting them at the time they
10986 are pushed on the stack.
10987
10988 2013-03-18 Richard Biener <rguenther@suse.de>
10989
10990 PR tree-optimization/39326
10991 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
10992 (struct mem_ref): Replace mem member with ao_ref typed member.
10993 (MEM_ANALYZABLE): Adjust.
10994 (memref_eq): Likewise.
10995 (mem_ref_alloc): Likewise.
10996 (gather_mem_refs_stmt): Likewise.
10997 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
10998 (execute_sm_if_changed_flag_set): Adjust.
10999 (execute_sm): Likewise.
11000 (ref_always_accessed_p): Likewise.
11001 (refs_independent_p): Likewise.
11002 (can_sm_ref_p): Likewise.
11003
11004 2013-03-18 Jakub Jelinek <jakub@redhat.com>
11005
11006 PR c/56566
11007 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
11008 return 1 even for !unsignedp.
11009
11010 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
11011
11012 * config/i386/i386.md (isa): Add x64 and nox64.
11013 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
11014 (*pushtf): Enable *roF alternative for x64 isa only.
11015 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
11016 mode attribute of integer alternatives to DImode for TARGET_64BIT.
11017 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
11018 (*movtf_internal): Merge from *movtf_internal_rex64 and
11019 *movtf_internal_sse. Use x64 and nox64 isa attributes.
11020 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
11021 nox64 isa attributes.
11022 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
11023 nox64 isa attributes.
11024 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
11025
11026 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
11027
11028 * config/alpha/alpha.c (TARGET_LRA_P): New define.
11029
11030 2013-03-17 Jakub Jelinek <jakub@redhat.com>
11031
11032 PR target/56640
11033 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
11034 class names. Remove trailing comma after "ALL_REGS".
11035
11036 2013-03-16 Jan Hubicka <jh@suse.cz>
11037
11038 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
11039 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
11040 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
11041 of cgraph_get_create_node.
11042 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
11043
11044 2013-03-16 Jason Merrill <jason@redhat.com>
11045
11046 PR debug/49090
11047 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
11048 with DW_AT_default_value.
11049
11050 2013-03-16 Jakub Jelinek <jakub@redhat.com>
11051
11052 * BASE-VER: Set to 4.9.0.
11053
11054 2013-03-14 Andi Kleen <ak@linux.intel.com>
11055
11056 PR target/56619
11057 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
11058 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
11059 Document _x* TSX intrinsics.
11060
11061 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
11062 David Holsgrove <david.holsgrove@xilinx.com>
11063
11064 * configure.ac: Add MicroBlaze TLS support detection.
11065 * configure: Regenerate.
11066 * config/microblaze/microblaze-protos.h
11067 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
11068 symbol_mentioned_p, label_mentioned_p): Add prototypes.
11069 * config/microblaze/microblaze.c (microblaze_address_type): Add
11070 ADDRESS_TLS and tls_reloc address types.
11071 (microblaze_address_info): Add tls_reloc.
11072 (TARGET_HAVE_TLS): Define.
11073 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
11074 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
11075 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
11076 load_tls_operand, microblaze_call_tls_get_addr,
11077 microblaze_legitimize_tls_address): New functions.
11078 (microblaze_classify_unspec): Handle UNSPEC_TLS.
11079 (get_base_reg): Use microblaze_tls_symbol_p.
11080 (microblaze_classify_address): Handle TLS.
11081 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
11082 label_mentioned_p and microblaze_tls_referenced_p.
11083 (microblaze_legitimize_address): Handle TLS.
11084 (microblaze_address_insns): Handle ADDRESS_TLS.
11085 (pic_address_needs_scratch): Handle TLS.
11086 (print_operand_address): Handle TLS.
11087 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
11088 (microblaze_expand_move): Handle TLS.
11089 (microblaze_legitimate_constant_p): Check
11090 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
11091 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
11092 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
11093 (PIC_OFFSET_TABLE_REGNUM): Set.
11094 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
11095 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
11096 (addsi3, movsi_internal2, movdf_internal): Update constraints
11097 * config/microblaze/predicates.md (arith_plus_operand): Define
11098 (move_operand): Redefine as move_src_operand,
11099 check microblaze_tls_referenced_p.
11100
11101 2013-03-14 Ian Bolton <ian.bolton@arm.com>
11102
11103 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
11104 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
11105
11106 2013-03-14 Ian Bolton <ian.bolton@arm.com>
11107
11108 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
11109 CC mode for AND.
11110
11111 2013-03-14 Jakub Jelinek <jakub@redhat.com>
11112
11113 PR tree-optimization/53265
11114 * common.opt (Waggressive-loop-optimizations): New option.
11115 * tree-ssa-loop-niter.c: Include tree-pass.h.
11116 (do_warn_aggressive_loop_optimizations): New function.
11117 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
11118 if number_of_latch_executions returned constant.
11119 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
11120 early. If number_of_latch_executions returned constant, set
11121 nb_iterations_upper_bound back to it.
11122 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
11123 field.
11124 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
11125 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
11126
11127 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
11128 (MULTILIB_OSDIRNAMES): Set.
11129 * genmultilib: If defaultosdirname doesn't start with :: , set
11130 defaultosdirname2 instead, clear it and emit two . multilib_raw
11131 entries instead of just one.
11132
11133 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
11134
11135 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
11136 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
11137 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
11138 (SUBTARGET_OVERRIDE_OPTIONS): New.
11139
11140 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
11141
11142 PR target/49880
11143 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
11144 (musermode): Convert to Var(TARGET_USERMODE).
11145 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
11146 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
11147 * config/sh/sh.c (sh_option_override): Use
11148 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
11149 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
11150 condition.
11151 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
11152 TARGET_SH4.
11153 (udivsi3_i4_single, divsi3_i4_single): Use
11154 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
11155
11156 2013-03-13 Dave Korn <dave.korn.cygwin@....>
11157
11158 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
11159 default setting.
11160
11161 2013-03-13 Richard Biener <rguenther@suse.de>
11162
11163 PR tree-optimization/56608
11164 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
11165 calls when vectorizing basic-blocks.
11166
11167 2013-03-13 Jakub Jelinek <jakub@redhat.com>
11168
11169 PR plugins/45078
11170 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
11171 tm_file.
11172
11173 2013-03-12 Jakub Jelinek <jakub@redhat.com>
11174
11175 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
11176
11177 2013-03-11 Jan Hubicka <jh@suse.cz>
11178
11179 PR lto/56557
11180 * lto-streamer-out.c (output_symbol_p): Skip references from
11181 constructors of external variables.
11182
11183 2013-03-11 Jan Hubicka <jh@suse.cz>
11184
11185 PR middle-end/56571
11186 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
11187 from pseudos.
11188 * emit-rtl.c (verify_rtx_sharing): Likewise.
11189 (copy_insn_1): Likewise.
11190 * rtl.c (copy_rtx): Likewise.
11191
11192 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
11193
11194 PR target/56591
11195 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
11196 output_operand_lossage message.
11197
11198 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
11199
11200 PR target/56470
11201 * arm.c (shift_op): Validate RTL pattern on the fly.
11202 (arm_print_operand, case 'S'): Don't use shift_operator to validate
11203 the RTL.
11204
11205 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11206
11207 PR target/56347
11208 * config/pa/pa.md (call_value): Check for calls to powf and direct to
11209 new call patterns that clobber %fr12.
11210 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
11211 split and postreload patterns.
11212 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
11213 registers %fr12 and %fr12R as call used.
11214
11215 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
11216
11217 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
11218 (canon_address, record_store, replace_read, check_mem_read_rtx,
11219 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
11220 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
11221 rest_of_handle_dse): Likewise.
11222
11223 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
11224
11225 PR middle-end/56524
11226 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
11227 Add base_optabs.
11228 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
11229 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
11230 (save_optabs_if_changed): Replace with...
11231 (init_tree_optimization_optabs): ...this.
11232 * optabs.c (save_optabs_if_changed): Rename to...
11233 (init_tree_optimization_optabs): ...this. Take the optimization node
11234 as argument. Do nothing if the base optabs are already correct.
11235 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
11236 to recompute optabs.
11237 * function.h (function): Remove optabs field.
11238 * function.c (invoke_set_current_function_hook): Call
11239 init_tree_optimization_optabs. Use the result to initialize
11240 this_fn_optabs.
11241
11242 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
11243
11244 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
11245 if GTMA_HAS_NO_INSTRUMENTATION.
11246 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
11247 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
11248 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
11249 * gimple-pretty-print.c (dump_gimple_transaction): Handle
11250 GTMA_HAS_NO_INSTRUMENTATION.
11251
11252 2013-03-08 Jakub Jelinek <jakub@redhat.com>
11253
11254 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
11255 libasan_preinit.o.
11256
11257 2013-03-08 Marek Polacek <polacek@redhat.com>
11258 Jakub Jelinek <jakub@redhat.com>
11259
11260 PR tree-optimization/56478
11261 * predict.c (is_comparison_with_loop_invariant_p): Change the
11262 type of loop_step to tree.
11263 (predict_loops): Adjust.
11264 (predict_iv_comparison): Perform the computations on double_ints.
11265
11266 2013-03-08 Richard Biener <rguenther@suse.de>
11267
11268 PR tree-optimization/56570
11269 * tree-cfg.c (verify_expr_location_1): Verify locations for
11270 DECL_DEBUG_EXPR.
11271 * tree-sra.c (create_access_replacement): Strip locations
11272 from DECL_DEBUG_EXPRs.
11273
11274 2013-03-08 Richard Biener <rguenther@suse.de>
11275
11276 * tree-inline.c (expand_call_inline): Do not associate
11277 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
11278 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
11279
11280 2013-03-08 Richard Biener <rguenther@suse.de>
11281
11282 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
11283 or block changes with -Og. Fix for location / block encoding
11284 changes and PHI arguments with locations.
11285
11286 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
11287
11288 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
11289 for all counters.
11290 (struct output_info): Likewise.
11291 (register_overhead): Remove bad gcc_assert.
11292 (bitmap_find_bit): If there is only a single bitmap element, do not
11293 count a miss as a search.
11294 (print_statistics): Update for counter type changes.
11295 (dump_bitmap_statistics): Likewise. Print headers such that they
11296 are properly lined up with the printed counters.
11297
11298 2013-03-07 Jakub Jelinek <jakub@redhat.com>
11299
11300 PR tree-optimization/56559
11301 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
11302 check that it has only a single use.
11303
11304 2013-03-07 Richard Biener <rguenther@suse.de>
11305
11306 * doc/invoke.texi (fwhole-program): Discourage use in combination
11307 with -flto.
11308
11309 2013-03-06 Jakub Jelinek <jakub@redhat.com>
11310
11311 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
11312
11313 PR tree-optimization/56539
11314 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
11315 instead of GSI_CONTINUE_LINKING as last argument to
11316 force_gimple_operand_gsi. Adjust function comment.
11317
11318 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
11319 aarch64-cores.def.
11320
11321 PR middle-end/56548
11322 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
11323 promoted mode, convert the result back to the original mode.
11324
11325 2013-03-06 Richard Biener <rguenther@suse.de>
11326
11327 PR middle-end/56294
11328 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
11329 (insert_updated_phi_nodes_compare_uids): New function.
11330 (update_ssa): Sort symbols_to_rename after UID before
11331 traversing it to insert PHI nodes.
11332
11333 2013-03-06 Richard Biener <rguenther@suse.de>
11334
11335 PR middle-end/50494
11336 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
11337 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
11338
11339 Revert
11340 2013-02-13 Richard Biener <rguenther@suse.de>
11341
11342 PR lto/50494
11343 * varasm.c (output_constant_def_1): Get the decl representing
11344 the constant as argument.
11345 (output_constant_def): Wrap output_constant_def_1.
11346 (make_decl_rtl): Use output_constant_def_1 with the decl
11347 representing the constant.
11348 (build_constant_desc): Optionally re-use a decl already
11349 representing the constant.
11350 (tree_output_constant_def): Adjust.
11351
11352 2013-03-06 Joey Ye <joey.ye@arm.com>
11353
11354 PR lto/50293
11355 * gcc.c (convert_white_space): New function.
11356 (main): Handles white space in function name.
11357
11358 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
11359
11360 PR target/56529
11361 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
11362 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
11363 to SH_DIV_CALL_TABLE for TARGET_SH2.
11364 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
11365 list.
11366 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
11367 call-table options.
11368
11369 2013-03-05 Sterling Augustine <saugustine@google.com>
11370 Cary Coutant <ccoutant@google.com>
11371
11372 PR debug/55364
11373 * dwarf2out.c (resolve_addr): Don't call
11374 remove_loc_list_addr_table_entries a second time for the same
11375 expression.
11376
11377 2013-03-05 Jakub Jelinek <jakub@redhat.com>
11378
11379 PR debug/56510
11380 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
11381 (avoid_complex_debug_insns): New function.
11382 (expand_debug_locations): Call it.
11383
11384 PR rtl-optimization/56484
11385 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
11386 lifetimes of hard registers on small register class machines.
11387
11388 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
11389
11390 * config/microblaze/microblaze-protos.h: Rename
11391 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
11392 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
11393 fast_interrupt.
11394 (microblaze_fast_interrupt_function_p): New function.
11395 (microblaze_is_interrupt_handler): Rename to
11396 microblaze_is_interrupt_variant and add fast_interrupt check.
11397 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
11398 (save_restore_insns): Likewise.
11399 (compute_frame_size): Likewise.
11400 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
11401 (microblaze_globalize_label): Likewise.
11402 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
11403 * config/microblaze/microblaze.md: Use wrapper
11404 microblaze_is_interrupt_variant.
11405
11406 2013-03-05 Kai Tietz <ktietz@redhat.com>
11407
11408 * sdbout.c (sdbout_one_type): Switch to current function's section
11409 supporting cold/hot.
11410
11411 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
11412
11413 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
11414 -mxl-reorder.
11415
11416 2013-03-05 Jakub Jelinek <jakub@redhat.com>
11417
11418 PR middle-end/56461
11419 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
11420 if VALGRIND_GET_VBITS is defined, temporarily make object
11421 memory all defined, and restore previous valgrind addressability
11422 and definability afterwards. Free this_object at the end.
11423
11424 PR middle-end/56461
11425 * lra.c (lra): Call lra_clear_live_ranges if live_p,
11426 right before calling lra_create_live_ranges, also call it
11427 when clearing live_p. Only call lra_clear_live_ranges
11428 at the end if live_p.
11429
11430 PR middle-end/56461
11431 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
11432
11433 2013-03-05 Richard Biener <rguenther@suse.de>
11434
11435 PR tree-optimization/56521
11436 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
11437 value-id.
11438
11439 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
11440
11441 PR c++/55135
11442 * except.h (remove_unreachable_eh_regions): New prototype.
11443 * except.c (remove_eh_handler_splicer): New function, split out
11444 of remove_eh_handler.
11445 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
11446 warning about running it on many EH regions one at a time.
11447 (remove_unreachable_eh_regions_worker): New function, walk the
11448 EH tree in depth-first order and remove non-marked regions.
11449 (remove_unreachable_eh_regions): New function.
11450 * tree-eh.c (mark_reachable_handlers): New function, split out
11451 from remove_unreachable_handlers.
11452 (remove_unreachable_handlers): Use mark_reachable_handlers and
11453 remove_unreachable_eh_regions.
11454 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
11455 and remove_unreachable_eh_regions.
11456
11457 2013-03-05 Richard Biener <rguenther@suse.de>
11458
11459 PR middle-end/56525
11460 * loop-init.c (fix_loop_structure): Remove loops in two stages,
11461 not freeing them until the end.
11462
11463 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11464
11465 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
11466
11467 2013-03-05 Richard Biener <rguenther@suse.de>
11468
11469 PR tree-optimization/56270
11470 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
11471 of loads after scheduling an SLP instance.
11472
11473 2013-03-05 Jakub Jelinek <jakub@redhat.com>
11474
11475 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
11476 tic6x.exp.
11477 (check_gcc_parallelize): Run guality.exp as a separate job from
11478 vect.exp with unsorted.exp and $(dg_target_exps) separately from
11479 struct-layout-1.exp with stackalign.exp.
11480
11481 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
11482
11483 PR middle-end/56461
11484 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
11485 load_index sbitmap even if some bit in it isn't set.
11486
11487 PR middle-end/56461
11488 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
11489 (discover_iteration_bound_by_body_walk): Change queues to
11490 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
11491 spelling in comment. Call safe_push on queues[bound_index] directly.
11492 Release queues[queue_index] in every iteration unconditionally.
11493 Release bounds vector.
11494
11495 PR middle-end/56461
11496 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
11497 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
11498 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
11499 inner_phis vector.
11500
11501 2013-03-05 Richard Biener <rguenther@suse.de>
11502
11503 PR lto/56515
11504 * tree-inline.c (remap_blocks_to_null): New function.
11505 (expand_call_inline): When expanding a call stmt without
11506 an associated block inline remap all callee blocks to NULL.
11507
11508 2013-03-05 Jakub Jelinek <jakub@redhat.com>
11509
11510 PR rtl-optimization/56494
11511 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
11512 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
11513 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
11514
11515 PR middle-end/56461
11516 * sel-sched-ir.c (free_sched_pools): Release
11517 succs_info_pool.stack[succs_info_pool.max_top] vectors too
11518 if succs_info_pool.max_top isn't -1.
11519
11520 PR bootstrap/56509
11521 * opts.c (opts_obstack, opts_concat): Moved to...
11522 * opts-common.c (opts_obstack, opts_concat): ... here.
11523
11524 2013-03-04 Jakub Jelinek <jakub@redhat.com>
11525
11526 PR middle-end/56461
11527 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
11528
11529 2013-03-04 Martin Jambor <mjambor@suse.cz>
11530
11531 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
11532 all appropriate places.
11533
11534 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
11535
11536 PR tree-optimization/56424
11537 * ipa-split.c (split_function): Do not set the RSO flag if result is
11538 not by reference and its type is a register type.
11539
11540 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
11541
11542 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
11543 (microblaze_legitimate_pic_operand): Likewise
11544 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
11545 new function microblaze_legitimate_pic_operand
11546 * config/microblaze/microblaze-protos.h
11547 (microblaze_legitimate_pic_operand): Declare.
11548
11549 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11550
11551 * config/microblaze/predicates.md (call_insn_simple_operand):
11552 New predicate for supported rtx code types.
11553 * config/microblaze/microblaze.md (call_internal1): Use
11554 call_insn_simple_operand predicate.
11555
11556 2013-03-04 Jakub Jelinek <jakub@redhat.com>
11557
11558 PR middle-end/56461
11559 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
11560 partitions.ordered_remove.
11561
11562 PR middle-end/56461
11563 * tree-vect-stmts.c (vectorizable_conversion): Don't call
11564 vec_oprnds0.create (1) for modifier == NONE.
11565
11566 PR middle-end/56461
11567 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
11568 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
11569 vec_oprnds1 right before pushing anything to it for
11570 scalar_shift_arg.
11571
11572 PR middle-end/56461
11573 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
11574 set nbbs to 0 instead of having separate code path.
11575 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
11576 instead of false as last argument if returning NULL.
11577
11578 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
11579
11580 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
11581 the attribute is now called "target" instead of "option".
11582 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
11583 * doc/tm.texi.in (Target Attributes): Likewise document the correct
11584 attribute/pragma name for TARGET_OPTION_VALID_P and
11585 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
11586 * doc/tm.texi: Regenerated.
11587
11588 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
11589
11590 * config/microblaze/microblaze.c:
11591 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
11592 * config/microblaze/microblaze.h: Add -mxl-reorder to
11593 DRIVER_SELF_SPECS.
11594 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
11595 instructions emitted if TARGET_REORDER.
11596 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
11597 or 0 for -m/-mno case, but initialises as 2 to detect default use case
11598 separately.
11599
11600 2013-03-01 Xinliang David Li <davidxl@google.com>
11601
11602 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
11603 walk length.
11604
11605 2013-03-01 Jakub Jelinek <jakub@redhat.com>
11606
11607 PR middle-end/56461
11608 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
11609 vector even when returning true. Fix up function comment formatting.
11610
11611 PR middle-end/56461
11612 * ira-build.c (ira_loop_nodes_count): New variable.
11613 (create_loop_tree_nodes): Initialize it.
11614 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
11615
11616 PR middle-end/56461
11617 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
11618 method on dr_chain and result_chain.
11619 * tree-vect-stmts.c (vectorizable_store): Only call
11620 result_chain.create if j == 0.
11621
11622 PR middle-end/56461
11623 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
11624 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
11625 before overwriting it.
11626
11627 2013-03-01 Tobias Burnus <burnus@net-b.de>
11628
11629 * doc/extended.texi (C Extensions): Change order in @menu
11630 to match @node.
11631 (Other MIPS Built-in Functions): Move last MIPS entry before
11632 "picoChip Built-in Functions".
11633 (SH Built-in Functions): Move after RX Built-in Functions.
11634 * doc/gcc.texi (Introduction): Change order in @menu
11635 to match @node.
11636 * doc/md.texi (Constraints): Ditto.
11637 * gty.texi (Type Information): Ditto.
11638 (User-provided marking routines for template types): Make
11639 subsection.
11640 * doc/invoke.texi (AArch64 Options): Move before
11641 "Adapteva Epiphany Options".
11642
11643 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
11644 Jakub Jelinek <jakub@redhat.com>
11645
11646 PR sanitizer/56454
11647 * asan.c (gate_asan): Lookup no_sanitize_address instead of
11648 no_address_safety_analysis attribute.
11649 * doc/extend.texi (no_address_safety_attribute): Rename to
11650 no_sanitize_address attribute, mention no_address_safety_analysis
11651 attribute as deprecated alias.
11652
11653 2013-02-28 Jakub Jelinek <jakub@redhat.com>
11654
11655 PR middle-end/56461
11656 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
11657 type to vec<vec<tree> > *.
11658 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
11659 to be vec<tree> instead of vec<tree> *, set vec_defs
11660 to vNULL and call vec_defs.create (number_of_vects), adjust other
11661 uses of vec_defs.
11662 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
11663 vectorizable_condition): Adjust vect_get_slp_defs callers.
11664
11665 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
11666
11667 * config/aarch64/aarch64.c
11668 (aarch64_float_const_representable): Remove unused variable.
11669
11670 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
11671
11672 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
11673
11674 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
11675
11676 * config/aarch64/aarch64-builtins.c
11677 (aarch64_init_simd_builtins): Make static.
11678
11679 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
11680
11681 * config/aarch64/aarch64.c
11682 (aarch64_simd_make_constant): Make static.
11683
11684 2013-02-28 Martin Jambor <mjambor@suse.cz>
11685
11686 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
11687 with no initialization to the RHS of debug statements.
11688
11689 2013-02-28 Martin Jambor <mjambor@suse.cz>
11690
11691 PR tree-optimization/56294
11692 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
11693 Adjust dumping.
11694 (get_access_replacement): Do not call create_access_replacement.
11695 Assert a replacement exists.
11696 (get_repl_default_def_ssa_name): Create the replacement declaration
11697 itself.
11698
11699 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11700
11701 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
11702 final_end_function.
11703
11704 2013-02-28 Marek Polacek <polacek@redhat.com>
11705
11706 PR rtl-optimization/56466
11707 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
11708 if we're changing a loop.
11709 (peel_loops_completely): Likewise.
11710
11711 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
11712
11713 PR c++/55813
11714 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
11715
11716 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
11717
11718 PR target/56445
11719 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
11720 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
11721 INTX_FTYPE_FX, FX_FTYPE_INTX.
11722 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
11723
11724 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
11725
11726 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
11727 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
11728 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
11729 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
11730 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
11731 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
11732 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
11733 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
11734 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
11735 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
11736 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
11737 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
11738 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
11739 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
11740 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
11741 (avrxmega6): Increase max flash segments from 5 to 6.
11742 * config/avr/t-multilib: Regenerate.
11743 * config/avr/avr-tables.opt: Regenerate.
11744 * doc/avr-mmcu.texi: Regenerate.
11745
11746 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
11747
11748 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
11749 (avr_device_to_arch): Rename to avr_device_to_ld.
11750 (avr_device_to_as): New prototype.
11751 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
11752 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
11753 * config/avr/driver-avr.c (avr_device_to_as): New.
11754 (avr_device_to_arch): Rename to avr_device_to_ld.
11755
11756 2013-02-27 Jakub Jelinek <jakub@redhat.com>
11757
11758 PR middle-end/56461
11759 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
11760 method on dr_chain and result_chain.
11761
11762 PR middle-end/56461
11763 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
11764 pointer_set_destroy on not_executed_last_iteration.
11765
11766 PR middle-end/56461
11767 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
11768
11769 PR middle-end/56461
11770 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
11771 FOR_EACH_DEFINED_FUNCTION when freeing state.
11772
11773 PR middle-end/56461
11774 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
11775 pool_free.
11776 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
11777 overwriting it.
11778
11779 PR middle-end/56461
11780 * ipa-cp.c (decide_whether_version_node): Call vec_free on
11781 known_aggs[i].items and release known_aggs vector.
11782
11783 PR middle-end/56461
11784 * ipa-reference.c (propagate): Free node_info even for alias nodes.
11785
11786 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11787
11788 * config/microblaze/microblaze.c (microblaze_emit_compare):
11789 Use xor for EQ/NE comparisions.
11790 * config/microblaze/microblaze.md (cstoresf4): Add constraints
11791 (cbranchsf4): Adjust operator to comparison_operator.
11792
11793 2013-02-27 Jakub Jelinek <jakub@redhat.com>
11794
11795 PR middle-end/56461
11796 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
11797 vector.
11798 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
11799 vec_safe_push, always update *slot.
11800 (redirect_edge_var_map_clear): Use vec_free.
11801 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
11802 (free_var_map_entry): Use vec_free.
11803 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
11804 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
11805
11806 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
11807
11808 PR middle-end/45472
11809 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
11810 when the may_trap_p bit of the exprs being merged differs.
11811 Reorder tests for speculativeness in the logical and operator.
11812
11813 2013-02-27 Jakub Jelinek <jakub@redhat.com>
11814
11815 * incpath.c (add_standard_paths): Use reconcat instead of concat
11816 where appropriate and avoid leaking memory.
11817
11818 * opts.h: Include obstack.h.
11819 (opts_concat): New prototype.
11820 (opts_obstack): New declaration.
11821 * opts.c (opts_concat): New function.
11822 (opts_obstack): New variable.
11823 (init_options_struct): Call gcc_init_obstack on opts_obstack.
11824 (finish_options): Use opts_concat instead of concat
11825 and XOBNEWVEC instead of XNEWVEC.
11826 * opts-common.c (generate_canonical_option, decode_cmdline_option,
11827 generate_option): Likewise.
11828 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
11829 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
11830
11831 PR target/56455
11832 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
11833 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
11834
11835 2013-02-26 Jakub Jelinek <jakub@redhat.com>
11836
11837 PR middle-end/56461
11838 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
11839
11840 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
11841
11842 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
11843 (arm_block_move_unaligned_straight): Likewise.
11844 (arm_adjust_block_mem): Likewise.
11845
11846 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
11847
11848 PR target/48901
11849 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
11850 temp, cond and label.
11851 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
11852
11853 PR target/52500
11854 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
11855 * config/c6x/c6x.h (dbx_register_map): Update declaration.
11856
11857 PR target/52501
11858 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
11859 of prologue/epilogue functions.
11860
11861 PR target/52550
11862 * config/tilegx/tilegx.c (tilegx_expand_prologue):
11863 Remove unused variable cfa_offset.
11864 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
11865
11866 PR target/54639
11867 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
11868 type promotion to unsigned.
11869
11870 PR target/54640
11871 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
11872 for HOST_WIDE_INT of 32 bit / same size as int.
11873 (arm_block_move_unaligned_straight): Likewise.
11874 (arm_adjust_block_mem): Likewise.
11875
11876 PR target/54662
11877 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
11878 ALL_CFLAGS.
11879
11880 2013-02-26 Marek Polacek <polacek@redhat.com>
11881
11882 PR tree-optimization/56426
11883 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
11884
11885 2013-02-26 Richard Biener <rguenther@suse.de>
11886
11887 PR target/56444
11888 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
11889 unused variable loops.
11890
11891 2013-02-26 Jakub Jelinek <jakub@redhat.com>
11892
11893 PR tree-optimization/56448
11894 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
11895 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
11896 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
11897 later operands of the references, or even first operand for
11898 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
11899
11900 PR tree-optimization/56443
11901 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
11902 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
11903 to type_for_mode langhook.
11904
11905 2013-02-25 Matt Turner <mattst88@gmail.com>
11906
11907 * doc/invoke.texi: Document r4700.
11908
11909 2013-02-25 Richard Biener <rguenther@suse.de>
11910
11911 PR tree-optimization/56175
11912 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
11913 split out from ...
11914 (simplify_bitwise_binary): ... here. Also guard the conversion
11915 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
11916
11917 2013-02-25 Catherine Moore <clm@codesourcery.com>
11918
11919 Revert:
11920 2013-02-24 Catherine Moore <clm@codesourcery.com>
11921 Maciej W. Rozycki <macro@codesourcery.com>
11922 Tom de Vries <tom@codesourcery.com>
11923 Nathan Sidwell <nathan@codesourcery.com>
11924 Iain Sandoe <iain@codesourcery.com>
11925 Nathan Froyd <froydnj@codesourcery.com>
11926 Chao-ying Fu <fu@mips.com>
11927
11928 * doc/extend.texi: (micromips, nomicromips, nocompression):
11929 Document new function attributes.
11930 * doc/invoke.texi (minterlink-compressed, mmicromips,
11931 m14k, m14ke, m14kec): Document new options.
11932 (minterlink-mips16): Update documentation.
11933 * doc/md.texi (ZC, ZD): Document new constraints.
11934 * configure.ac (gcc_cv_as_micromips): Check if linker
11935 supports the .set micromips directive.
11936 * configure: Regenerate.
11937 * config.in: Regenerate.
11938 * config/mips/mips-tables.opt: Regenerate.
11939 * config/mips/micromips.md: New file.
11940 * constraints.md (ZC, AD): New constraints.
11941 * config/mips/predicates.md (movep_src_register): New predicate.
11942 (movep_src_operand): New predicate.
11943 (non_volatile_mem_operand): New predicate.
11944 * config/mips/mips.md (multimem): New type.
11945 (length): Differentiate between 17-bit and 18-bit branch offsets.
11946 (MOVEP1, MOVEP2): New mode iterator.
11947 (mov_<load>l): Use ZC constraint.
11948 (mov_<load>r): Likewise.
11949 (mov_<store>l): Likewise.
11950 (mov_<store>r): Likewise.
11951 (*branch_equality<mode>_inverted): Add microMIPS support.
11952 (*branch_equality<mode>): Likewise.
11953 (*jump_absolute): Likewise.
11954 (indirect_jump_<mode>): Likewise.
11955 (tablejump_<mode>): Likewise.
11956 (<optab>_internal): Likewise.
11957 (sibcall_internal): Likewise.
11958 (sibcall_value_internal): Likewise.
11959 (prefetch): Use constraint ZD.
11960 * config/mips/mips.opt (minterlink-compressed): New option.
11961 (minterlink-mips16): Now an alias for minterlink-compressed.
11962 (mmicromips): New option.
11963 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
11964 (compare_and_swap_12): Likewise.
11965 (sync_add<mode>): Likewise.
11966 (sync_<optab>_12): Likewise.
11967 (sync_old_<optab>_12): Likewise.
11968 (sync_new_<optab>_12): Likewise.
11969 (sync_nand_12): Likewise.
11970 (sync_old_nand_12): Likewise.
11971 (sync_new_nand_12): Likewise.
11972 (sync_sub<mode>): Likewise.
11973 (sync_old_add<mode>): Likewise.
11974 (sync_old_sub<mode>): Likewise.
11975 (sync_new_add<mode>): Likewise.
11976 (sync_new_sub<mode>): Likewise.
11977 (sync_<optab><mode>): Likewise.
11978 (sync_old_<optab><mode>): Likewise.
11979 (sync_new_<optab><mode>): Likewise.
11980 (sync_nand<mode>): Likewise.
11981 (sync_old_nand<mode>): Likewise.
11982 (sync_new_nand<mode>): Likewise.
11983 (sync_lock_test_and_set<mode>): Likewise.
11984 (test_and_set_12): Likewise.
11985 (atomic_compare_and_swap<mode>): Likewise.
11986 (atomic_exchange<mode>_llsc): Likewise.
11987 (atomic_fetch_add<mode>_llsc): Likewise.
11988 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
11989 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
11990 (umips_save_restore_pattern_p): Likewise.
11991 (umips_load_store_pair_p): Likewise.
11992 (umips_output_load_store_pair): Likewise.
11993 (umips_movep_target_p): Likewise.
11994 (umips_12bit_offset_address_p): Likewise.
11995 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
11996 (mips_base_mips16): Rename this...
11997 (mips_base_compression_flags): ...to this. Update all uses.
11998 (mips_attribute_table): Add micromips, nomicromips and nocompression.
11999 (mips_mips16_decl_p): Delete.
12000 (mips_nomips16_decl_p): Delete.
12001 (mips_get_compress_on_flags): New function.
12002 (mips_get_compress_off_flags): New function.
12003 (mips_get_compress_mode): New function.
12004 (mips_get_compress_on_name): New function.
12005 (mips_get_compress_off_name): New function.
12006 (mips_insert_attributes): Support multiple compression types.
12007 (mips_merge_decl_attributes): Likewise.
12008 (umips_12bit_offset_address_p): New function.
12009 (mips_start_function_definition): Emit .set micromips directive.
12010 (mips_call_may_need_jalx_p): New function.
12011 (mips_function_ok_for_sibcall): Add microMIPS support.
12012 (mips_print_operand_punctuation): Support short delay slots and
12013 compact jumps.
12014 (umips_swm_mask, umips_swm_encoding): New.
12015 (umips_build_save_restore): New function.
12016 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
12017 (was_mips16_p): Remove.
12018 (old_compression_mode): New.
12019 (mips_set_compression_mode): New function.
12020 (mips_set_current_function): Add microMIPS support.
12021 (mips_option_override): Likewise.
12022 (umips_save_restore_pattern_p): New function.
12023 (umips_output_save_restore): New function.
12024 (umips_load_store_pair_p_1): New function.
12025 (umips_load_store_pair_p): New function.
12026 (umips_output_load_store_pair_1): New function.
12027 (umips_output_load_store_pair): New function.
12028 (umips_movep_target_p) New function.
12029 (mips_prepare_pch_save): Add microMIPS support.
12030 * config/mips/mips.h (TARGET_COMPRESSION): New.
12031 (TARGET_CPU_CPP_BUILTINS): Update macro
12032 to use new compression flags and to support microMIPS.
12033 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
12034 (MIPS_ARCH_FLOAT_SPEC): Likewise.
12035 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
12036 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
12037 (ASM_SPEC): Support mmicromips and mno-micromips.
12038 (M16STORE_REG_P): New macro.
12039 (MIPS_CALL): Support TARGET_MICROMIPS.
12040 (MICROMIPS_J): New macro.
12041 (mips_base_mips16): Rename this...
12042 (mips_base_compression_flags): ...to this.
12043 (UMIPS_12BIT_OFFSET_P): New macro.
12044 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
12045 (MULTILIB_DIRNAMES): Likewise.
12046
12047 2013-02-25 Tom de Vries <tom@codesourcery.com>
12048
12049 PR rtl-optimization/56131
12050 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
12051 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
12052 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
12053
12054 2013-02-25 Tobias Burnus <burnus@net-b.de>
12055
12056 * doc/invoke.texi (-fsanitize=): Move from optimization
12057 to debugging options.
12058
12059 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
12060
12061 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
12062
12063 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
12064 Alexander Monakov <amonakov@ispras.ru>
12065
12066 PR middle-end/56077
12067 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
12068 flush pending lists also on non-jumps. Adjust comment.
12069
12070 2013-02-24 Catherine Moore <clm@codesourcery.com>
12071 Maciej W. Rozycki <macro@codesourcery.com>
12072 Tom de Vries <tom@codesourcery.com>
12073 Nathan Sidwell <nathan@codesourcery.com>
12074 Iain Sandoe <iain@codesourcery.com>
12075 Nathan Froyd <froydnj@codesourcery.com>
12076 Chao-ying Fu <fu@mips.com>
12077
12078 * doc/extend.texi: (micromips, nomicromips, nocompression):
12079 Document new function attributes.
12080 * doc/invoke.texi (minterlink-compressed, mmicromips,
12081 m14k, m14ke, m14kec): Document new options.
12082 (minterlink-mips16): Update documentation.
12083 * doc/md.texi (ZC, ZD): Document new constraints.
12084 * configure.ac (gcc_cv_as_micromips): Check if linker
12085 supports the .set micromips directive.
12086 * configure: Regenerate.
12087 * config.in: Regenerate.
12088 * config/mips/mips-tables.opt: Regenerate.
12089 * config/mips/micromips.md: New file.
12090 * constraints.md (ZC, AD): New constraints.
12091 * config/mips/predicates.md (movep_src_register): New predicate.
12092 (movep_src_operand): New predicate.
12093 (non_volatile_mem_operand): New predicate.
12094 * config/mips/mips.md (multimem): New type.
12095 (length): Differentiate between 17-bit and 18-bit branch offsets.
12096 (MOVEP1, MOVEP2): New mode iterator.
12097 (mov_<load>l): Use ZC constraint.
12098 (mov_<load>r): Likewise.
12099 (mov_<store>l): Likewise.
12100 (mov_<store>r): Likewise.
12101 (*branch_equality<mode>_inverted): Add microMIPS support.
12102 (*branch_equality<mode>): Likewise.
12103 (*jump_absolute): Likewise.
12104 (indirect_jump_<mode>): Likewise.
12105 (tablejump_<mode>): Likewise.
12106 (<optab>_internal): Likewise.
12107 (sibcall_internal): Likewise.
12108 (sibcall_value_internal): Likewise.
12109 (prefetch): Use constraint ZD.
12110 * config/mips/mips.opt (minterlink-compressed): New option.
12111 (minterlink-mips16): Now an alias for minterlink-compressed.
12112 (mmicromips): New option.
12113 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
12114 (compare_and_swap_12): Likewise.
12115 (sync_add<mode>): Likewise.
12116 (sync_<optab>_12): Likewise.
12117 (sync_old_<optab>_12): Likewise.
12118 (sync_new_<optab>_12): Likewise.
12119 (sync_nand_12): Likewise.
12120 (sync_old_nand_12): Likewise.
12121 (sync_new_nand_12): Likewise.
12122 (sync_sub<mode>): Likewise.
12123 (sync_old_add<mode>): Likewise.
12124 (sync_old_sub<mode>): Likewise.
12125 (sync_new_add<mode>): Likewise.
12126 (sync_new_sub<mode>): Likewise.
12127 (sync_<optab><mode>): Likewise.
12128 (sync_old_<optab><mode>): Likewise.
12129 (sync_new_<optab><mode>): Likewise.
12130 (sync_nand<mode>): Likewise.
12131 (sync_old_nand<mode>): Likewise.
12132 (sync_new_nand<mode>): Likewise.
12133 (sync_lock_test_and_set<mode>): Likewise.
12134 (test_and_set_12): Likewise.
12135 (atomic_compare_and_swap<mode>): Likewise.
12136 (atomic_exchange<mode>_llsc): Likewise.
12137 (atomic_fetch_add<mode>_llsc): Likewise.
12138 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
12139 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
12140 (umips_save_restore_pattern_p): Likewise.
12141 (umips_load_store_pair_p): Likewise.
12142 (umips_output_load_store_pair): Likewise.
12143 (umips_movep_target_p): Likewise.
12144 (umips_12bit_offset_address_p): Likewise.
12145 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
12146 (mips_base_mips16): Rename this...
12147 (mips_base_compression_flags): ...to this. Update all uses.
12148 (mips_attribute_table): Add micromips, nomicromips and nocompression.
12149 (mips_mips16_decl_p): Delete.
12150 (mips_nomips16_decl_p): Delete.
12151 (mips_get_compress_on_flags): New function.
12152 (mips_get_compress_off_flags): New function.
12153 (mips_get_compress_mode): New function.
12154 (mips_get_compress_on_name): New function.
12155 (mips_get_compress_off_name): New function.
12156 (mips_insert_attributes): Support multiple compression types.
12157 (mips_merge_decl_attributes): Likewise.
12158 (umips_12bit_offset_address_p): New function.
12159 (mips_start_function_definition): Emit .set micromips directive.
12160 (mips_call_may_need_jalx_p): New function.
12161 (mips_function_ok_for_sibcall): Add microMIPS support.
12162 (mips_print_operand_punctuation): Support short delay slots and
12163 compact jumps.
12164 (umips_swm_mask, umips_swm_encoding): New.
12165 (umips_build_save_restore): New function.
12166 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
12167 (was_mips16_p): Remove.
12168 (old_compression_mode): New.
12169 (mips_set_compression_mode): New function.
12170 (mips_set_current_function): Add microMIPS support.
12171 (mips_option_override): Likewise.
12172 (umips_save_restore_pattern_p): New function.
12173 (umips_output_save_restore): New function.
12174 (umips_load_store_pair_p_1): New function.
12175 (umips_load_store_pair_p): New function.
12176 (umips_output_load_store_pair_1): New function.
12177 (umips_output_load_store_pair): New function.
12178 (umips_movep_target_p) New function.
12179 (mips_prepare_pch_save): Add microMIPS support.
12180 * config/mips/mips.h (TARGET_COMPRESSION): New.
12181 (TARGET_CPU_CPP_BUILTINS): Update macro
12182 to use new compression flags and to support microMIPS.
12183 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
12184 (MIPS_ARCH_FLOAT_SPEC): Likewise.
12185 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
12186 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
12187 (ASM_SPEC): Support mmicromips and mno-micromips.
12188 (M16STORE_REG_P): New macro.
12189 (MIPS_CALL): Support TARGET_MICROMIPS.
12190 (MICROMIPS_J): New macro.
12191 (mips_base_mips16): Rename this...
12192 (mips_base_compression_flags): ...to this.
12193 (UMIPS_12BIT_OFFSET_P): New macro.
12194 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
12195 (MULTILIB_DIRNAMES): Likewise.
12196
12197 2013-02-24 Jakub Jelinek <jakub@redhat.com>
12198
12199 PR target/52555
12200 * target-globals.c (save_target_globals): For init_reg_sets and
12201 target_reinit remporarily set this_fn_optabs to this_target_optabs.
12202
12203 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
12204
12205 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
12206 * config/aarch64/t-aarch64
12207 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
12208
12209 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
12210
12211 PR inline-asm/56148
12212 * lra-constraints.c (process_alt_operands): Reload operand
12213 conflicting with earlier clobber only if no more other conflicting
12214 operands.
12215
12216 2013-02-22 Jakub Jelinek <jakub@redhat.com>
12217
12218 PR sanitizer/56393
12219 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
12220 if not linking a shared library.
12221
12222 2013-02-22 Seth LaForge <sethml@google.com>
12223
12224 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
12225
12226 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
12227
12228 * config/arm/arm.md (split for extendsidi): Update condition.
12229 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
12230 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
12231 (qhs_zextenddi_cstr): Likewise.
12232
12233 2013-02-21 Jakub Jelinek <jakub@redhat.com>
12234
12235 PR middle-end/56420
12236 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
12237 avoid signed wrapping.
12238 (expand_mult): Handle properly multiplication by
12239 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
12240 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
12241 in the compiler if coeff is HOST_WIDE_INT_MIN.
12242 (expand_divmod): Don't make ext_op1 static, change it's type to
12243 uhwi. Avoid undefined behavior in -INTVAL (op1).
12244
12245 PR rtl-optimization/50339
12246 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
12247 field.
12248 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
12249 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
12250 into splitting_ashiftrt field.
12251 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
12252 ASHIFTRT.
12253 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
12254 choices.
12255
12256 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
12257
12258 PR middle-end/56108
12259 * trans-mem.c (execute_tm_mark): Do not expand transactions that
12260 are sure to go irrevocable.
12261
12262 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
12263
12264 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
12265 scalars are valid operands.
12266
12267 2013-02-21 Martin Jambor <mjambor@suse.cz>
12268
12269 PR tree-optimization/56310
12270 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
12271 only matching indices and non-negative final offsets.
12272 (intersect_aggregates_with_edge): Pass src_idx to
12273 agg_replacements_to_vector. Pass src_idx insstead of index to
12274 intersect_with_agg_replacements.
12275
12276 2013-02-21 Martin Jambor <mjambor@suse.cz>
12277
12278 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
12279 instead of hard-wired defaults.
12280
12281 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
12282
12283 * doc/invoke.texi (MIPS Options): Update documentation of the
12284 floating-point multiply-accumulate instruction restrictions.
12285
12286 2013-02-21 Kostya Serebryany <kcc@google.com>
12287
12288 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
12289 asan_shadow_offset on x86_64 linux.
12290
12291 2013-02-21 Richard Biener <rguenther@suse.de>
12292
12293 PR tree-optimization/56415
12294 Revert
12295 2013-02-11 Richard Biener <rguenther@suse.de>
12296
12297 PR tree-optimization/56273
12298 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
12299 first VRP run.
12300
12301 2013-02-21 Jakub Jelinek <jakub@redhat.com>
12302
12303 PR bootstrap/56258
12304 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
12305 instead of @itemx.
12306
12307 PR inline-asm/56405
12308 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
12309 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
12310
12311 2013-02-20 Jan Hubicka <jh@suse.cz>
12312
12313 PR tree-optimization/56265
12314 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
12315 when target is referenced for first time.
12316
12317 2013-02-20 Richard Biener <rguenther@suse.de>
12318
12319 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
12320 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
12321 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
12322 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
12323 not return anything.
12324 (rename_ssa_copies): Do not remove unused locals.
12325 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
12326 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
12327 * passes.c (execute_function_todo): Do not schedule unused locals
12328 removal if cleanup_tree_cfg did something.
12329 * tree-ssa-live.c (remove_unused_locals): Dump statistics
12330 about the number of removed locals.
12331
12332 2013-02-20 Richard Biener <rguenther@suse.de>
12333
12334 PR tree-optimization/56398
12335 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
12336
12337 2013-02-20 Martin Jambor <mjambor@suse.cz>
12338
12339 PR tree-optimization/55334
12340 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
12341 restricted pointers to arrays.
12342
12343 2013-02-20 Richard Biener <rguenther@suse.de>
12344 Jakub Jelinek <jakub@redhat.com>
12345
12346 PR tree-optimization/56396
12347 * tree-ssa-ccp.c (n_const_val): New static variable.
12348 (get_value): Return NULL for SSA names we don't have a lattice
12349 entry for.
12350 (ccp_initialize): Initialize n_const_val.
12351 * tree-ssa-copy.c (n_copy_of): New static variable.
12352 (init_copy_prop): Initialize n_copy_of.
12353 (get_value): Return NULL_TREE for SSA names we don't have a
12354 lattice entry for.
12355
12356 2013-02-20 Martin Jambor <mjambor@suse.cz>
12357
12358 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
12359
12360 2013-02-20 Richard Biener <rguenther@suse.de>
12361
12362 * genpreds.c (write_lookup_constraint): Do not compare first
12363 letter of the constraint again.
12364
12365 2013-02-20 Richard Biener <rguenther@suse.de>
12366
12367 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
12368 and ceil_log2.
12369 (get_use_iv_cost): Terminate hashtable walk when coming across
12370 an empty entry.
12371
12372 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
12373
12374 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
12375 reassociation for avx2 targets.
12376
12377 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12378
12379 * config/microblaze/microblaze.c: microblaze_has_clz = 0
12380 Add version check for v8.10.a to enable microblaze_has_clz
12381 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
12382 version and TARGET_PATTERN_COMPARE check
12383 * config/microblaze/microblaze.md: New clzsi2 instruction
12384
12385 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12386
12387 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
12388 function before branching.
12389
12390 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
12391
12392 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
12393 DUMP_INSN_RTX_UID.
12394 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
12395
12396 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
12397
12398 PR middle-end/55889
12399 * sel-sched.c: Include ira.h.
12400 (implicit_clobber_conflict_p): New function.
12401 (moveup_expr): Use it.
12402 * Makefile.in (sel-sched.o): Depend on ira.h.
12403
12404 2013-02-19 Richard Biener <rguenther@suse.de>
12405
12406 PR tree-optimization/56384
12407 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
12408 (vn_hash_type): Split out from ...
12409 (vn_hash_constant_with_type): ... here.
12410 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
12411 (vn_phi_eq): Compare types from vn_phi_s structure.
12412 (vn_phi_lookup): Populate vn_phi_s type.
12413 (vn_phi_insert): Likewise.
12414
12415 2013-02-19 Jakub Jelinek <jakub@redhat.com>
12416
12417 PR tree-optimization/56350
12418 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
12419 if haven't found reduction or nested cycle operand, rather than
12420 asserting we must find it.
12421
12422 PR tree-optimization/56381
12423 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
12424 to fold_build3.
12425
12426 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
12427 Jakub Jelinek <jakub@redhat.com>
12428
12429 PR target/52555
12430 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
12431 (swap_optab_enable): Same.
12432 (init_all_optabs): Use argument instead of global.
12433 * tree.h (struct tree_optimization_option): New field target_optabs.
12434 * expr.h (init_all_optabs): Add argument to prototype.
12435 (TREE_OPTIMIZATION_OPTABS): New.
12436 (save_optabs_if_changed): Protoize.
12437 * optabs.h: Declare this_fn_optabs.
12438 * optabs.c (save_optabs_if_changed): New.
12439 Declare this_fn_optabs.
12440 (init_optabs): Add argument to init_all_optabs() call.
12441 * function.c (invoke_set_current_function_hook): Handle per
12442 function optabs.
12443 * function.h (struct function): New field optabs.
12444 * config/mips/mips.c (mips_set_mips16_mode): Handle when
12445 optimization_current_node has changed.
12446 * target-globals.h (save_target_globals_default_opts): Protoize.
12447 * target-globals.c (save_target_globals_default_opts): New.
12448
12449 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12450
12451 PR target/56347
12452 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
12453 registers %fr12 and %fr12R as call used.
12454
12455 PR target/56214
12456 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
12457 and HImode, require all displacements to be an integer multiple of
12458 their mode size.
12459 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
12460 only allow QImode and HImode when reload is in progress and strict is
12461 true. Likewise for symbolic addresses. Use base14_operand to check
12462 displacements in REG+BASE addresses.
12463
12464 2013-02-18 Richard Biener <rguenther@suse.de>
12465
12466 PR tree-optimization/56366
12467 * tree-vect-loop.c (get_initial_def_for_induction): Properly
12468 handle sign-conversion of outer-loop initial induction value.
12469
12470 2013-02-18 Richard Biener <rguenther@suse.de>
12471
12472 PR middle-end/56349
12473 * cfghooks.c (merge_blocks): If we merge a latch into another
12474 block adjust references to it.
12475 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
12476 (verify_loop_structure): Verify that a recorded latch is in fact
12477 a latch.
12478
12479 2013-02-18 Richard Biener <rguenther@suse.de>
12480
12481 PR tree-optimization/56321
12482 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
12483 order SSA name release and virtual operand unlinking.
12484
12485 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12486
12487 * config/microblaze/microblaze.md (save_stack_block): Define.
12488 (restore_stack_block): Likewise.
12489
12490 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12491
12492 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
12493 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
12494 * config/microblaze/microblaze.c (microblaze_option_override):
12495 Bail out early for PIC modes when target does not support PIC.
12496
12497 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12498
12499 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
12500 Replace with a microblaze version.
12501 (microblaze_trampoline_init): Adapt for microblaze.
12502 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
12503 microblaze.
12504
12505 2013-02-16 Jakub Jelinek <jakub@redhat.com>
12506 Dodji Seketeli <dodji@redhat.com>
12507
12508 PR asan/56330
12509 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
12510 (instrument_mem_region_access): Do not forget to always put
12511 instrumentation of the of 'base' and 'base + len' in a "if (len !=
12512 0) statement, even for cases where either 'base' or 'base + len'
12513 are not instrumented -- because they have been previously
12514 instrumented. Simplify the logic by putting all the statements
12515 instrument 'base + len' inside a sequence, and then insert that
12516 sequence right before the current insertion point. Then, to
12517 instrument 'base + len', just get an iterator on that statement.
12518 And do not forget to update the pointer to iterator the function
12519 received as argument.
12520
12521 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
12522
12523 PR rtl-optimization/56348
12524 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
12525
12526 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
12527
12528 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
12529 (clean_graph_dump_file): Pass base to start_graph_dump.
12530
12531 2013-02-14 Richard Henderson <rth@redhat.com>
12532
12533 PR target/55941
12534 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
12535
12536 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
12537
12538 * collect2-aix.h: Define F_LOADONLY.
12539
12540 2013-02-14 Richard Biener <rguenther@suse.de>
12541
12542 PR lto/50494
12543 * varasm.c (output_constant_def_1): Get the decl representing
12544 the constant as argument.
12545 (output_constant_def): Wrap output_constant_def_1.
12546 (make_decl_rtl): Use output_constant_def_1 with the decl
12547 representing the constant.
12548 (build_constant_desc): Optionally re-use a decl already
12549 representing the constant.
12550 (tree_output_constant_def): Adjust.
12551
12552 2013-02-14 Dodji Seketeli <dodji@redhat.com>
12553
12554 Fix an asan crash
12555 * asan.c (instrument_builtin_call): Really put the length of the
12556 second source argument into src1_len.
12557
12558 2013-02-13 Jakub Jelinek <jakub@redhat.com>
12559
12560 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
12561 argument. If it is false, don't create edge from then_bb to
12562 fallthru_bb.
12563 (insert_if_then_before_iter): Pass true to it.
12564 (build_check_stmt): Pass false to it.
12565 (transform_statements): Flush hash table only on extended basic
12566 block boundaries, rather than at the beginning of every bb.
12567 Don't flush hash table on nonfreeing_call_p calls.
12568 * tree-flow.h (nonfreeing_call_p): New prototype.
12569 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
12570
12571 2013-02-13 David S. Miller <davem@davemloft.net>
12572
12573 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
12574
12575 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
12576
12577 PR target/56184
12578 * ira.c (max_regno_before_ira): Move from ...
12579 (ira): ... here.
12580 (fix_reg_equiv_init): Use max_regno_before_ira instead of
12581 vec_safe_length.
12582
12583 2013-02-13 Jakub Jelinek <jakub@redhat.com>
12584
12585 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
12586
12587 2013-02-13 Richard Biener <rguenther@suse.de>
12588
12589 PR lto/56295
12590 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
12591 globals in MEM_REFs.
12592
12593 2013-02-13 Richard Biener <rguenther@suse.de>
12594
12595 * loop-init.c (loop_optimizer_init): Clear loop state when
12596 re-initializing preserved loops.
12597 * loop-unswitch.c (unswitch_single_loop): Return whether
12598 we unswitched the loop. Do not verify loop state here.
12599 (unswitch_loops): When we unswitched a loop discover new loops.
12600
12601 2013-02-13 Kostya Serebryany <kcc@google.com>
12602
12603 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
12604 on x86_64 linux.
12605 * sanitizer.def: Rename __asan_init to __asan_init_v1.
12606
12607 2013-02-12 Dodji Seketeli <dodji@redhat.com>
12608
12609 Avoid instrumenting duplicated memory access in the same basic block
12610 * Makefile.in (asan.o): Add new dependency on hash-table.h
12611 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
12612 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
12613 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
12614 (free_mem_ref_resources, has_mem_ref_been_instrumented)
12615 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
12616 (get_mem_ref_of_assignment): New functions.
12617 (get_mem_refs_of_builtin_call): Extract from
12618 instrument_builtin_call and tweak a little bit to make it fit with
12619 the new signature.
12620 (instrument_builtin_call): Use the new
12621 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
12622 of is_gimple_builtin_call.
12623 (instrument_derefs, instrument_mem_region_access): Insert the
12624 instrumented memory reference into the hash table.
12625 (maybe_instrument_assignment): Renamed instrument_assignment into
12626 this, and change it to advance the iterator when instrumentation
12627 actually happened and return true in that case. This makes it
12628 homogeneous with maybe_instrument_assignment, and thus give a
12629 chance to callers to be more 'regular'.
12630 (transform_statements): Clear the memory reference hash table
12631 whenever we enter a new BB, when we cross a function call, or when
12632 we are done transforming statements. Use
12633 maybe_instrument_assignment instead of instrumentation. No more
12634 need to special case maybe_instrument_assignment and advance the
12635 iterator after calling it; it's now handled just like
12636 maybe_instrument_call. Update comment.
12637
12638 2013-02-13 Richard Biener <rguenther@suse.de>
12639
12640 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
12641 Fix loop discovery code.
12642
12643 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
12644
12645 PR inline-asm/56148
12646 * lra-constraints.c (process_alt_operands): Match early clobber
12647 operand with itself. Check conflicts with earlyclobber only if
12648 the operand is not reloaded. Prefer to reload conflicting operand
12649 if earlyclobber and matching operands are the same.
12650
12651 2013-02-12 Richard Biener <rguenther@suse.de>
12652
12653 PR lto/56297
12654 * lto-streamer-out.c (write_symbol): Do not output symbols
12655 for hard register variables.
12656
12657 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
12658
12659 PR target/54222
12660 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
12661 (umulsidi3_insn, mulsidi3_insn): New insns.
12662
12663 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
12664
12665 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
12666 (struct tune_params): Add vec_costs field.
12667 * config/arm/arm.c (arm_builtin_vectorization_cost)
12668 (arm_add_stmt_cost): New functions.
12669 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
12670 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
12671 (arm_default_vec_cost): New struct of type cpu_vec_costs.
12672 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
12673 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
12674 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
12675 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
12676
12677 2013-02-12 Richard Biener <rguenther@suse.de>
12678
12679 PR lto/56295
12680 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
12681 decls again if possible.
12682
12683 2013-02-12 Richard Biener <rguenther@suse.de>
12684
12685 PR middle-end/56288
12686 * tree-ssa.c (verify_ssa_name): Fix check, move
12687 SSA_NAME_IN_FREE_LIST check up.
12688
12689 2013-02-12 Jakub Jelinek <jakub@redhat.com>
12690 Steven Bosscher <steven@gcc.gnu.org>
12691
12692 PR rtl-optimization/56151
12693 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
12694 equal to op0 or op1, and last_insn pattern is CODE operation
12695 with MEM dest and one of the operands matches that MEM.
12696
12697 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
12698
12699 * doc/extend.texi: Document Function Multiversioning and "default"
12700 parameter string to target attribute.
12701 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
12702 target attribute parameter is "default".
12703 (ix86_compare_version_priority): Remove checks for target attribute.
12704 (ix86_mangle_function_version_assembler_name): Change error to sorry.
12705 Remove check for target attribute equal to NULL. Add assert.
12706 (ix86_generate_version_dispatcher_body): Change error to sorry.
12707
12708 2013-02-11 Iain Sandoe <iain@codesourcery.com>
12709 Jack Howarth <howarth@bromo.med.uc.edu>
12710 Patrick Marlier <patrick.marlier@gmail.com>
12711
12712 PR libitm/55693
12713 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
12714 define ENDFILE_SPEC as TM_DESTRUCTOR.
12715 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
12716
12717 2013-02-11 Alexander Potapenko <glider@google.com>
12718 Jack Howarth <howarth@bromo.med.uc.edu>
12719 Jakub Jelinek <jakub@redhat.com>
12720
12721 PR sanitizer/55617
12722 * config/darwin.c (cdtor_record): Rename ctor_record.
12723 (sort_cdtor_records): Rename sort_ctor_records.
12724 (finalize_dtors): New routine to sort destructors by
12725 priority before use in assemble_integer.
12726 (machopic_asm_out_destructor): Use finalize_dtors if needed.
12727
12728 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
12729
12730 PR rtl-optimization/56275
12731 * simplify-rtx.c (avoid_constant_pool_reference): Check that
12732 offset is non-negative and less than cmode size before
12733 calling simplify_subreg.
12734
12735 2013-02-11 Richard Biener <rguenther@suse.de>
12736
12737 PR tree-optimization/56264
12738 * cfgloop.h (fix_loop_structure): Adjust prototype.
12739 * loop-init.c (fix_loop_structure): Return the number of
12740 newly discovered loops.
12741 * tree-cfgcleanup.c (repair_loop_structures): When new loops
12742 are discovered, do a full loop-closed SSA rewrite.
12743
12744 2013-02-11 Richard Biener <rguenther@suse.de>
12745
12746 PR tree-optimization/56273
12747 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
12748 first VRP run.
12749 (check_array_ref): Fix missing newline in dumps.
12750 (search_for_addr_array): Likewise.
12751
12752 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
12753
12754 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
12755
12756 2013-02-09 Jakub Jelinek <jakub@redhat.com>
12757
12758 PR target/56256
12759 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
12760
12761 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
12762
12763 PR rtl-optimization/56246
12764 * lra-constraints.c (simplify_operand_subreg): Try to reuse
12765 reload pseudo.
12766 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
12767 constraints are satisfied.
12768
12769 2013-02-08 Jeff Law <law@redhat.com>
12770
12771 PR debug/53948
12772 * emit-rtl.c (reg_is_parm_p): New function.
12773 * regs.h (reg_is_parm_p): New prototype.
12774 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
12775 callee-clobbered registers.
12776
12777 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12778
12779 PR target/56043
12780 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
12781 If there is no implicit builtin declaration, just return NULL.
12782
12783 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
12784
12785 * config/i386/sse.md (FMAMODEM): New mode iterator.
12786 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
12787 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
12788
12789 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
12790
12791 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
12792 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
12793 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
12794
12795 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12796
12797 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
12798 (microblaze*-*-elf): Likewise.
12799 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
12800 LINK_SPEC.
12801 * config/microblaze/microblaze-c.c: Add builtin defines for
12802 _LITTLE_ENDIAN and _BIG_ENDIAN.
12803 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
12804 add to TARGET_DEFAULT flags.
12805 Expand ASM_SPEC and LINK_SPEC.
12806 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
12807 * config/microblaze/microblaze.md: Update extendsidi2 and
12808 movdi_internal instructions to use low-order / high-order reg
12809 print_operands.
12810 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
12811 options and inversemask / mask of LITTLE_ENDIAN.
12812 * config/microblaze/t-microblaze: Expand multilib options to
12813 include mlittle-endian (le) and update exceptions patterns.
12814
12815 2013-02-08 Jakub Jelinek <jakub@redhat.com>
12816
12817 PR rtl-optimization/56195
12818 * lra-constraints.c (get_reload_reg): Don't reuse regs
12819 if they have smaller mode than requested, if they have
12820 wider mode than requested, try to return a SUBREG.
12821
12822 PR tree-optimization/56250
12823 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
12824 if type is unsigned and code isn't MULT_EXPR.
12825
12826 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
12827
12828 PR tree-optimization/56064
12829 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
12830 bits according to mode.
12831 * fixed-value.h (fixed_from_double_int)
12832 (const_fixed_from_double_int): Adjust comments.
12833
12834 2013-02-08 Richard Biener <rguenther@suse.de>
12835
12836 PR lto/56231
12837 * lto-streamer.h (struct data_in): Remove current_file, current_line
12838 and current_col members.
12839 * lto-streamer-out.c (lto_output_location): Stream changed bits
12840 en-block for efficiency.
12841 * lto-streamer-in.c (clear_line_info): Remove.
12842 (lto_input_location): Cache current file, line and column
12843 globally via local statics. Read changed bits en-block.
12844 (input_function): Do not call clear_line_info.
12845 (lto_read_body): Likewise.
12846 (lto_input_toplevel_asms): Likewise.
12847
12848 2013-02-08 Michael Matz <matz@suse.de>
12849
12850 PR tree-optimization/52448
12851 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
12852 (nt_call_phase): New static.
12853 (add_or_mark_expr): Only mark accesses with newer phase than any
12854 call seen.
12855 (nonfreeing_call_p): New.
12856 (nt_init_block): Update nt_call_phase, mark blocks as visited.
12857 (nt_fini_block): Keep blocks marked as visited.
12858 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
12859
12860 2013-02-08 Richard Biener <rguenther@suse.de>
12861
12862 * ira.c (ira): Free broken dominator information.
12863
12864 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
12865
12866 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
12867
12868 2013-02-08 Marek Polacek <polacek@redhat.com>
12869
12870 * cfgloop.c (verify_loop_structure): Add more checking of headers.
12871
12872 2013-02-08 Richard Biener <rguenther@suse.de>
12873
12874 PR middle-end/56181
12875 * cfgloop.h (flow_loops_find): Adjust.
12876 (bb_loop_header_p): Declare.
12877 * cfgloop.c (bb_loop_header_p): New function split out from ...
12878 (flow_loops_find): ... here. Adjust function signature,
12879 support incremental loop structure update.
12880 (verify_loop_structure): Cleanup. Verify a loop is a loop.
12881 * cfgloopmanip.c (fix_loop_structure): Move ...
12882 * loop-init.c (fix_loop_structure): ... here.
12883 (apply_loop_flags): Split out from ...
12884 (loop_optimizer_init): ... here.
12885 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
12886 in incremental mode, only remove dead loops here.
12887
12888 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
12889
12890 PR target/54222
12891 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
12892 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
12893 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
12894 (*round<mode>3.libgcc): New insns for fixed-modes.
12895 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
12896 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
12897 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
12898 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
12899 implementations. Define to __builtin_avr_absFX,
12900 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
12901 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
12902 __builtin_avr_countlsFX, respectively.
12903 * config/avr/avr-c.c (target.h): Include it.
12904 (enum avr_builtin_id): New enum.
12905 (avr_resolve_overloaded_builtin): New static function.
12906 (avr_register_target_pragmas): Use it to set
12907 targetm.resolve_overloaded_builtin.
12908 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
12909 tree nodes used by DEF_BUILTIN.
12910 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
12911 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
12912 <AVR_BUILTIN_xxBITS>: Same.
12913
12914 2013-02-08 Richard Biener <rguenther@suse.de>
12915
12916 * cfgloop.c (verify_loop_structure): Properly handle
12917 a loop exiting to another loop header.
12918 * ira-int.h (ira_loops): Remove.
12919 * ira.c (ira_loops): Remove.
12920 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
12921 (do_reload): Use loop_optimizer_finalize.
12922 * ira-build.c (create_loop_tree_nodes): Use get_loops and
12923 number_of_loops to access the loop tree.
12924 (more_one_region_p): Likewise.
12925 (finish_loop_tree_nodes): Likewise.
12926 (rebuild_regno_allocno_maps): Likewise.
12927 (mark_loops_for_removal): Likewise.
12928 (mark_all_loops_for_removal): Likewise.
12929 (remove_unnecessary_regions): Likewise.
12930 (ira_build): Likewise.
12931 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
12932
12933 2013-02-08 Richard Biener <rguenther@suse.de>
12934
12935 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
12936 * ipa-pure-const.c (analyze_function): Avoid calling
12937 mark_irreducible_loops twice.
12938 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
12939
12940 2013-02-07 David S. Miller <davem@davemloft.net>
12941
12942 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
12943 on 'reg'.
12944 * var-tracking.c (vt_add_function_parameter): Test the presence of
12945 HAVE_window_save properly and do not remap argument registers when
12946 we have a leaf function.
12947
12948 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
12949
12950 PR bootstrap/56227
12951 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
12952 instead of "ll".
12953 * config/i386/i386.c (ix86_print_operand): Ditto.
12954
12955 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
12956
12957 * lra-constraints.c (process_alt_operands): Fix recently added comment.
12958
12959 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
12960
12961 PR rtl-optimization/56225
12962 * lra-constraints.c (process_alt_operands): Check that reload hard
12963 reg can hold value for strict_low_part.
12964
12965 2013-02-07 Jakub Jelinek <jakub@redhat.com>
12966
12967 PR debug/56154
12968 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
12969 dwarf2out_end_function.
12970 (in_first_function_p, maybe_at_text_label_p,
12971 first_loclabel_num_not_at_text_label): New variables.
12972 (dwarf2out_var_location): In the first function find out
12973 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
12974 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
12975 functions.
12976
12977 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
12978
12979 PR rtl-optimization/56178
12980 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
12981 SUBREG of a register. Tidy up related block of code.
12982 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
12983 note if the source is a register or a SUBREG of a register.
12984
12985 2013-02-07 Jakub Jelinek <jakub@redhat.com>
12986
12987 PR target/56228
12988 * config/rs6000/rs6000.md (ptrm): New mode attr.
12989 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
12990 call_value_indirect_aix<pttrsize>,
12991 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
12992 m in constraints.
12993
12994 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12995
12996 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
12997 if -bnortl. Convert to strcmp and strncmp.
12998
12999 2013-02-07 Alan Modra <amodra@gmail.com>
13000
13001 PR target/54009
13002 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
13003 addresses won't wrap when offsetting.
13004 (rs6000_secondary_reload): Provide secondary reloads needed for
13005 wrapping LO_SUM addresses.
13006
13007 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
13008
13009 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
13010 MACH, just __MACH__.
13011
13012 2013-02-06 Richard Biener <rguenther@suse.de>
13013
13014 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
13015 instead of calling fix_loop_structure.
13016
13017 2013-02-06 Jakub Jelinek <jakub@redhat.com>
13018
13019 PR middle-end/56217
13020 * omp-low.c (use_pointer_for_field): Return false if
13021 lower_send_shared_vars doesn't generate any copy-out code.
13022
13023 2013-02-06 Tom de Vries <tom@codesourcery.com>
13024
13025 PR rtl-optimization/56131
13026 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
13027 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
13028 of the label is NULL. Add comment.
13029
13030 2013-02-05 Jakub Jelinek <jakub@redhat.com>
13031
13032 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
13033
13034 PR sanitizer/55374
13035 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
13036 (STATIC_LIBTSAN_LIBS): Likewise.
13037 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
13038 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
13039 is defined, don't add anything else beyond that.
13040 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
13041 (LINK_COMMAND_SPEC): Use them.
13042
13043 PR tree-optimization/56205
13044 * tree-stdarg.c (check_all_va_list_escapes): Return true if
13045 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
13046 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
13047
13048 2013-02-05 Richard Biener <rguenther@suse.de>
13049
13050 PR tree-optimization/53342
13051 PR tree-optimization/53185
13052 * tree-vectorizer.h (vect_check_strided_load): Remove.
13053 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
13054 not disallow peeling for vectorized strided loads.
13055 (vect_check_strided_load): Make static and simplify.
13056 (vect_analyze_data_refs): Adjust.
13057 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
13058 correctly when vectorizing strided loads.
13059
13060 2013-02-05 Richard Biener <rguenther@suse.de>
13061
13062 * doc/install.texi: Refer to ISL, not PPL.
13063
13064 2013-02-05 Jan Hubicka <jh@suse.cz>
13065
13066 PR tree-optimization/55789
13067 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
13068
13069 2013-02-05 Jan Hubicka <jh@suse.cz>
13070
13071 PR tree-optimization/55789
13072 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
13073 the dead call anyway.
13074
13075 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
13076
13077 PR sanitizer/55374
13078 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
13079
13080 2013-02-04 Alexander Potapenko <glider@google.com>
13081 Jack Howarth <howarth@bromo.med.uc.edu>
13082 Jakub Jelinek <jakub@redhat.com>
13083
13084 PR sanitizer/55617
13085 * config/darwin.c (sort_ctor_records): Stabilized qsort
13086 on constructor priority by using original position.
13087 (finalize_ctors): New routine to sort constructors by
13088 priority before use in assemble_integer.
13089 (machopic_asm_out_constructor): Use finalize_ctors if needed.
13090
13091 2013-02-04 Jakub Jelinek <jakub@redhat.com>
13092
13093 PR libstdc++/54314
13094 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
13095 about visibility on artificial decls.
13096 * config/sol2.c (solaris_assemble_visibility): Likewise.
13097
13098 2013-02-04 Kai Tietz <ktietz@redhat.com>
13099
13100 PR target/56186
13101 * config/i386/i386.c (function_value_ms_64): Add additional valtype
13102 argument and improve checking of return-argument types for 16-byte
13103 modes.
13104 (ix86_function_value_1): Add additional valtype argument on call
13105 of function_value_64.
13106 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
13107 handling infunction_value_64 function.
13108
13109 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
13110
13111 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
13112
13113 2013-02-04 Richard Biener <rguenther@suse.de>
13114
13115 PR tree-optimization/56188
13116 * tree-ssa-structalias.c (label_visit): Consider case with
13117 initially non-empty points-to set.
13118 (perform_var_substitution): Dump node mapping and clean up.
13119
13120 2013-02-04 Richard Guenther <rguenther@suse.de>
13121
13122 PR lto/56168
13123 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
13124 node prevail as last resort.
13125 (lto_symtab_merge_decls): Remove guard on LTRANS here.
13126 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
13127
13128 2013-02-04 Richard Biener <rguenther@suse.de>
13129
13130 PR tree-optimization/56113
13131 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
13132 Merge into ...
13133 (equiv_class_lookup_or_add): ... this.
13134 (label_visit): Adjust and fix error in previous patch.
13135 (perform_var_substitution): Adjust.
13136
13137 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
13138
13139 * config/sh/divtab.c: Fix formatting and comments throughout the file.
13140 * config/sh/sh4-300.md: Likewise.
13141 * config/sh/sh4a.md: Likewise.
13142 * config/sh/constraints.md: Likewise.
13143 * config/sh/sh.md: Likewise.
13144 * config/sh/netbsd-elf.h: Likewise.
13145 * config/sh/predicates.md: Likewise.
13146 * config/sh/sh-protos.h: Likewise.
13147 * config/sh/ushmedia.h: Likewise.
13148 * config/sh/linux.h: Likewise.
13149 * config/sh/sh.c: Likewise.
13150 * config/sh/superh.h: Likewise.
13151 * config/sh/elf.h: Likewise.
13152 * config/sh/sh4.md: Likewise.
13153 * config/sh/sh.h: Likewise.
13154
13155 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13156
13157 * config/pa/constraints.md: Adjust unused letters. Change "T"
13158 constraint to match_test floating_point_store_memory_operand().
13159 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
13160 (base14_operand): New.
13161 (floating_point_store_memory_operand): New.
13162 (integer_store_memory_operand): Revise to use base14_operand and
13163 reg_plus_base_memory_operand.
13164 (move_dest_operand): Allow symbolic_memory_operands.
13165 (symbolic_memory_operand): Check for LO_SOM.
13166 (symbolic_operand): Change default case to break.
13167 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
13168 CONST_DOUBLE values to be reloaded by putting them into memory when
13169 the destination is a floating point register.
13170 (movdf): Remove code to handle CONST_DOUBLE.
13171 (movsf): Likewise.
13172 (reload_indf_r1): New.
13173 (reload_insf_r1): New.
13174 Consistently use "Q" and "T" constraints with integer and floating
13175 point move instructions, respectively.
13176 (movdi): Remove FAIL.
13177 Change predicate for source operand unamed DImode move from
13178 general_operand to move_src_operand.
13179 (umulsidi3): Change predicate for destination operand to
13180 register_operand.
13181 Likewise for similar unamed patterns.
13182 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
13183 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
13184 (hppa_legitimize_address): Simplify mask calculation.
13185 (pa_emit_move_sequence): Revised handling of secondary reloads from
13186 REG+D addresses for floating point loads and stores. Directly handle
13187 loading CONST0_RTX (mode) to a floating point register.
13188 (pa_secondary_reload): Handle reloading DF and SFmode constant values
13189 to floating point registers. Don't restrict secondary reloads to
13190 floating point registers to integer modes. Revise some comments and
13191 cleanup some code.
13192 (TARGET_LEGITIMATE_ADDRESS_P): Define.
13193 (pa_legitimate_address_p): New.
13194 (pa_legitimize_reload_address): New.
13195 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
13196 (STRICT_REG_OK_FOR_BASE_P): New.
13197 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
13198 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
13199
13200 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
13201 Andrew Dixie <andrewd@gentrack.com>
13202
13203 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
13204 flag set.
13205
13206 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
13207
13208 * expmed.c (extract_bit_field_1): Pass the full width of the
13209 structure to get_best_reg_extraction_insn.
13210
13211 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
13212
13213 PR target/54601
13214 * configure.ac (use_cxa_atexit): Add AIX.
13215 * configure: Regenerate.
13216
13217 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
13218
13219 2013-02-01 Jakub Jelinek <jakub@redhat.com>
13220
13221 PR debug/54793
13222 * final.c (need_profile_function): New variable.
13223 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
13224 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
13225 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
13226 notes, targetm.asm_out.function_prologue doesn't emit anything,
13227 HAVE_prologue and profiler should be emitted before prologue,
13228 set need_profile_function instead of emitting it.
13229 (final_scan_insn): If need_profile_function, emit
13230 profile_function on the first NOTE_INSN_BASIC_BLOCK or
13231 NOTE_INSN_FUNCTION_BEG note.
13232
13233 2013-02-01 Richard Henderson <rth@redhat.com>
13234
13235 * config/rs6000/rs6000.md (smulditi3): New.
13236 (umulditi3): New.
13237
13238 * config/alpha/alpha.md (umulditi3): New.
13239
13240 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
13241
13242 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
13243 (ASM_OUTPUT_ALIGNED_LOCAL): New.
13244
13245 2013-02-01 Richard Biener <rguenther@suse.de>
13246
13247 PR tree-optimization/56113
13248 * tree-ssa-structalias.c (label_visit): Reduce work for
13249 single-predecessor nodes.
13250
13251 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
13252
13253 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
13254 range isn't testing for zero.
13255
13256 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
13257
13258 PR middle-end/56113
13259 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
13260
13261 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
13262 Nick Clifton <nickc@redhat.com>
13263
13264 * config/v850/constraints.md (Q): Define as a memory constraint.
13265 * config/v850/predicates.md (label_ref_operand): New predicate.
13266 (e3v5_shift_operand): New predicate.
13267 (ior_operator): New predicate.
13268 * config/v850/t-v850: Add e3v5 multilib.
13269 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
13270 (v850_gen_movdi): Prototype.
13271 * config/v850/v850.c: Add support for e3v5 architecture.
13272 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
13273 TARGET_V850E_UP.
13274 (construct_save_jarl): Add e3v5 long JARL support.
13275 (v850_adjust_insn_length): New function. Adjust length of call
13276 insns when using e3v5 instructions.
13277 (v850_gen_movdi): New function: Generate instructions to move a
13278 DImode value.
13279 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
13280 (CPP_SPEC): Define __v850e3v5__ as appropriate.
13281 (TARGET_USE_FPU): Enable for e3v5.
13282 (CONST_OK_FOR_W): New macro.
13283 (ADJUST_INSN_LENGTH): Define.
13284 * config/v850/v850.md (UNSPEC_LOOP): Define.
13285 (attr cpu): Add v850e3v5.
13286 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
13287 (movdi): New pattern.
13288 (movdi_internal): New pattern.
13289 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
13290 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
13291 (cstoresf4): Likewise.
13292 (cstoredf4): Likewise.
13293 (insv): New pattern.
13294 (rotlso3_a): New pattern.
13295 (rotlsi3_b): New pattern
13296 (rotlsi3_v850e3v5): New pattern.
13297 (doloop_begin): New pattern.
13298 (fix_loop_counter): New pattern.
13299 (doloop_end): New pattern.
13300 (branch_normal): Add e3v5 long branch support.
13301 (branch_invert): Likewise.
13302 (branch_z_normal): Likewise.
13303 (branch_z_invert): Likewise.
13304 (branch_nz_normal): Likewise.
13305 (branch_nz_invert): Likewise.
13306 (call_internal_short): Add e3v5 register-indirect JARL support.
13307 (call_internal_long): Likewise.
13308 (call_value_internal_short): Likewise.
13309 (call_value_internal_long): Likewise.
13310 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
13311 (mloop): New option.
13312 * config.gcc: Add support for configuring v840e3v5 target.
13313 * doc/invoke.texi: Document new v850 specific command line options.
13314
13315 2013-01-31 Paul Koning <ni1d@arrl.net>
13316
13317 PR debug/55059
13318 PR debug/54508
13319 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
13320 children if parent is a class.
13321 (prune_unused_types_prune): Don't add DW_AT_declaration.
13322
13323 2013-01-31 Richard Biener <rguenther@suse.de>
13324
13325 PR tree-optimization/56157
13326 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
13327 match up operand with SLP child.
13328
13329 2013-01-31 Jason Merrill <jason@redhat.com>
13330
13331 PR debug/54410
13332 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
13333 parameters the first time.
13334 (gen_scheduled_generic_parms_dies): Check completeness here.
13335
13336 2013-01-31 Richard Biener <rguenther@suse.de>
13337
13338 PR middle-end/53073
13339 * common.opt (faggressive-loop-optimizations): New flag,
13340 enabled by default.
13341 * doc/invoke.texi (faggressive-loop-optimizations): Document.
13342 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
13343 infer_loop_bounds_from_undefined by it.
13344
13345 2013-01-31 Richard Biener <rguenther@suse.de>
13346
13347 PR tree-optimization/56150
13348 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
13349 visit virtual operands.
13350 (find_uses_to_rename_bb): Likewise.
13351
13352 2013-01-31 Richard Biener <rguenther@suse.de>
13353
13354 PR tree-optimization/56150
13355 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
13356 mixed store non-store stmts.
13357
13358 2013-01-30 Jakub Jelinek <jakub@redhat.com>
13359
13360 PR sanitizer/55374
13361 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
13362 LIBASAN_EARLY_SPEC is defined.
13363 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
13364 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
13365 before %o.
13366 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
13367
13368 PR c++/55742
13369 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
13370 invalid args instead of ICEing on it.
13371 (ix86_valid_target_attribute_tree): Return error_mark_node if
13372 ix86_valid_target_attribute_inner_p failed.
13373 (ix86_valid_target_attribute_p): Return false only if
13374 ix86_valid_target_attribute_tree returned error_mark_node. Allow
13375 target("default") attribute.
13376 (sorted_attr_string): Change argument from const char * to tree,
13377 merge in all target attribute arguments rather than just one.
13378 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
13379 instead of free. Avoid using strcat.
13380 (ix86_mangle_function_version_assembler_name): Mangle
13381 target("default") as if no target attribute is present. Adjust
13382 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
13383 instead of xmalloc and XDELETEVEC instead of free.
13384 (ix86_function_versions): Don't return true if one of the decls
13385 doesn't have target attribute. If they don't and one of the decls
13386 is DECL_FUNCTION_VERSIONED, report an error. Adjust
13387 sorted_attr_string caller. Use XDELETEVEC instead of free.
13388 (ix86_supports_function_versions): Remove.
13389 (make_name): Fix up formatting.
13390 (make_dispatcher_decl): Remove resolver_name and its initialization.
13391 Avoid leaking memory.
13392 (is_function_default_version): Return true if there is
13393 target("default") attribute rather than no target attribute at all.
13394 (make_resolver_func): Avoid leaking memory.
13395 (ix86_generate_version_dispatcher_body): Likewise.
13396 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
13397 * target.def (supports_function_versions): Remove.
13398 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
13399 * doc/tm.texi: Regenerated.
13400
13401 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
13402
13403 PR rtl-optimization/56144
13404 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
13405 for values with side effects.
13406
13407 2013-01-30 Richard Biener <rguenther@suse.de>
13408
13409 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
13410 (sparseset_pop): Likewise.
13411 * cfganal.c (compute_idf): Likewise. Increase work-stack size
13412 to be able to use quick_push in the worker loop.
13413
13414 2013-01-30 Marek Polacek <polacek@redhat.com>
13415
13416 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
13417
13418 2013-01-30 Richard Biener <rguenther@suse.de>
13419
13420 PR lto/56147
13421 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
13422
13423 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
13424
13425 PR tree-optimization/56064
13426 * fixed-value.c (fixed_from_double_int): New function.
13427 * fixed-value.h (fixed_from_double_int): New prototype.
13428 (const_fixed_from_double_int): New static inline function.
13429 * fold-const.c (native_interpret_fixed): New static function.
13430 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
13431 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
13432 (native_encode_fixed): New static function.
13433 (native_encode_expr) <FIXED_CST>: Use it.
13434 (native_interpret_int): Move double_int worker code to...
13435 * double-int.c (double_int::from_buffer): ...this new static method.
13436 * double-int.h (double_int::from_buffer): Prototype it.
13437
13438 2013-01-30 Richard Biener <rguenther@suse.de>
13439
13440 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
13441 New pointer-map and obstack.
13442 (init_alias_vars): Allocate pointer-map and obstack.
13443 (delete_points_to_sets): Free them.
13444 (find_what_var_points_to): Cache result.
13445 (find_what_p_points_to): Adjust for changed interface of
13446 find_what_var_points_to.
13447 (compute_points_to_sets): Likewise.
13448 (ipa_pta_execute): Likewise.
13449
13450 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13451
13452 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
13453 * configure: Regenerate.
13454 * config.in: Regenerate.
13455 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
13456 #nobits/#progbits if supported.
13457
13458 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
13459
13460 PR target/56121
13461 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
13462 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
13463 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
13464
13465 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13466
13467 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
13468 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
13469
13470 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13471
13472 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
13473 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
13474
13475 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13476
13477 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
13478 declaration.
13479 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
13480 * config/arm/cortex-a7.md: New bypasses using
13481 arm_mac_accumulator_is_result.
13482
13483 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13484
13485 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
13486 (cortex_a7_neon_mla): Likewise.
13487 (cortex_a7_fpfmad): New reservation.
13488 (cortex_a7_fpmacs): Use ffmas and update required units.
13489 (cortex_a7_fpmuld): Update required units and latency.
13490 (cortex_a7_fpmacd): Likewise.
13491 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
13492 (cortex_a7_neon). Likewise.
13493 (bypass) Update participating units.
13494
13495 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13496
13497 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
13498 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
13499 from fmac to ffma.
13500 * config/arm/vfp11.md (vfp_farith): Use ffmas.
13501 (vfp_fmul): Use ffmad.
13502 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
13503 (cortex_r4_fmacd): Use ffmad.
13504 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
13505 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
13506 (cortex_a9_fmacd): Use ffmad.
13507 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
13508 (cortex_a8_vfp_macd): Use ffmad.
13509 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
13510 (cortex_a5_fpmacd): Use ffmad.
13511 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
13512 (cortex_a15_vfp_macd): Use ffmad.
13513 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
13514
13515 2013-01-29 Jason Merrill <jason@redhat.com>
13516
13517 PR libstdc++/54314
13518 * varasm.c (default_assemble_visibility): Don't warn about
13519 visibility on artificial decls.
13520
13521 2013-01-29 Richard Biener <rguenther@suse.de>
13522
13523 PR tree-optimization/56113
13524 * tree-ssa-structalias.c (equiv_class_lookup): Also return
13525 the bitmap leader.
13526 (label_visit): Free duplicate bitmaps and record the leader instead.
13527 (perform_var_substitution): Adjust.
13528
13529 2013-01-29 Richard Biener <rguenther@suse.de>
13530
13531 PR tree-optimization/55270
13532 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
13533 the CFG, schedule loops for fixup.
13534
13535 2013-01-29 Nick Clifton <nickc@redhat.com>
13536
13537 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
13538 SP_REG.
13539
13540 2013-01-28 Leif Ekblad <leif@rdos.net>
13541
13542 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
13543 * config/i386/i386.h (TARGET_RDOS): New macro.
13544 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
13545 * config/i386/i386.c (ix86_option_override_internal): For 64bit
13546 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
13547 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
13548 DEFAULT_LARGE_SECTION_THRESHOLD.
13549 * config/i386/i386.md (R14_REG, R15_REG): New constants.
13550 * config/i386/rdos.h: New file.
13551 * config/i386/rdos64.h: New file.
13552
13553 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
13554
13555 PR other/54814
13556 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
13557 TEST_HARD_REG_BIT.
13558
13559 2013-01-28 Jakub Jelinek <jakub@redhat.com>
13560
13561 PR rtl-optimization/56117
13562 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
13563 call cselib_lookup_from_insn on the MEM before calling
13564 add_insn_mem_dependence.
13565
13566 2013-01-28 Richard Biener <rguenther@suse.de>
13567
13568 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
13569 to a stmt that didn't have one.
13570 (copy_phis_for_bb): Likewise for PHI arguments.
13571 (copy_debug_stmt): Likewise for debug stmts.
13572
13573 2013-01-28 Richard Biener <rguenther@suse.de>
13574
13575 PR tree-optimization/56034
13576 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
13577 (partition_builtin_p): Adjust.
13578 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
13579 it is the last partition.
13580 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
13581 up the vertex for the definition.
13582 (classify_partition): Classify whether a partition is a
13583 PKIND_REDUCTION, thus has uses outside of the loop.
13584 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
13585 Merge all PKIND_REDUCTION partitions into the last partition.
13586 (tree_loop_distribution): Seed partitions from reductions as well.
13587
13588 2013-01-28 Jakub Jelinek <jakub@redhat.com>
13589
13590 PR tree-optimization/56125
13591 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
13592 pow(x,c) into sqrt(x) * powi(x, n/2) or
13593 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
13594 optimizing for size.
13595 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
13596 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
13597 integer.
13598
13599 PR tree-optimization/56094
13600 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
13601 to UNKNOWN_LOCATION while gimplifying expr.
13602
13603 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
13604
13605 PR target/56114
13606 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
13607 operand 0 in movabs insn template for -masm=intel asm alternative.
13608 (*movabs<mode>_2): Ditto for operand 1.
13609
13610 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
13611
13612 PR target/54663
13613 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
13614 of microblaze-c.o
13615
13616 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
13617
13618 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
13619 tm_file.
13620
13621 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13622
13623 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
13624 Undef to avoid warning.
13625
13626 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13627
13628 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
13629 * configure: Regenerate.
13630
13631 2013-01-25 Jakub Jelinek <jakub@redhat.com>
13632
13633 PR tree-optimization/56098
13634 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
13635 for stmts with volatile ops.
13636 (cond_store_replacement): Don't optimize if assign has volatile ops.
13637 (cond_if_else_store_replacement_1): Don't optimize if either
13638 then_assign or else_assign have volatile ops.
13639 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
13640 volatile ops.
13641
13642 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
13643
13644 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
13645
13646 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
13647
13648 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
13649 missing ':' in asm example.
13650
13651 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
13652
13653 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
13654 entries into lane and laneq entries.
13655 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
13656 Remove AdvSIMD scalar modes.
13657 (aarch64_sq<r>dmulh_laneq<mode>): New.
13658 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
13659 modes.
13660 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
13661 builtin implementations to relfect changes in RTL in aarch64-simd.md.
13662 * config/aarch64/iterators.md (VCOND): New.
13663 (VCONQ): New.
13664
13665 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
13666
13667 PR target/54222
13668 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
13669 Add NULL LIBNAME argument to existing definitions.
13670 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
13671 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
13672 * config/avr/avr.c (DEF_BUILTIN): Same.
13673 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
13674 (avr_expand_builtin): Expand to a vanilla call if a libgcc
13675 implementation is available (DECL_ASSEMBLER_NAME is set).
13676 (avr_fold_absfx): New static function.
13677 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
13678 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
13679 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
13680 AVR_BUILTIN_ABSLLK.
13681 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
13682 (abshk, absk, abslk, absllk): Provide as static inline functions.
13683
13684 2013-01-25 Marek Polacek <polacek@redhat.com>
13685
13686 PR tree-optimization/56035
13687 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
13688
13689 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
13690
13691 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
13692 (*movtf_internal_rex64): Add (!o,C) alternative
13693 (*movxf_internal_rex64): Ditto.
13694 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
13695
13696 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
13697
13698 * doc/invoke.texi: fix typo.
13699 * doc/objc.texi: fix typo.
13700
13701 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
13702
13703 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
13704 for the first two alternatives.
13705
13706 2013-01-24 Diego Novillo <dnovillo@google.com>
13707
13708 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
13709 (ggc-zone.o): Remove.
13710 * configure.ac: Remove option --with-gc.
13711 * configure: Re-generate.
13712 * doc/install.texi: Remove documentation for --with-gc.
13713 * gengtype.c (write_enum_defn): Remove. Update all users.
13714 (write_Types_process_field): Remove generation of gt_e_* argument.
13715 (output_type_enum): Remove. Update all users.
13716 (write_enum_defn): Remove. Update all users.
13717 (enum alloc_zone): Remove. Update all users.
13718 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
13719 * ggc-common.c (ggc_splay_alloc): Remove first argument.
13720 Update all callers.
13721 (struct ptr_data): Remove field TYPE. Update all users.
13722 (gt_pch_note_object): Remove argument TYPE. Update all users.
13723 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
13724 Update all users.
13725 * ggc-none.c (ggc_alloc_typed_stat): Remove.
13726 (struct alloc_zone): Remove.
13727 (ggc_internal_alloc_zone_stat): Remove.
13728 (ggc_internal_cleared_alloc_zone_stat): Remove.
13729 * ggc-page.c (ggc_alloc_typed_stat): Remove.
13730 (ggc_pch_count_object): Remove last argument. Update all users.
13731 (ggc_pch_alloc_object): Remove last argument. Update all users.
13732 (struct alloc_zone): Remove.
13733 * ggc-zone.c: Remove.
13734 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
13735 (struct alloc_zone): Remove.
13736 (ggc_alloc_typed_stat): Remove.
13737 (ggc_alloc_typed): Remove.
13738 (ggc_splay_alloc): Remove first argument.
13739 (rtl_zone): Remove. Update all users.
13740 (tree_zone): Remove. Update all users.
13741 (tree_id_zone): Remove. Update all users.
13742 (ggc_internal_zone_alloc_stat): Remove. Update all users.
13743 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
13744 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
13745 * tree-ssanames.c: Remove references to zone allocator in comments.
13746
13747 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
13748
13749 * config/avr/avr.c (avr_out_fract): Make register numbers that
13750 might be outside of source operand signed.
13751
13752 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
13753
13754 * config/i386/constraints.md (Yf): New constraint.
13755 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
13756 of f constraint to conditionaly disable x87 register preferences.
13757 (*movdf_internal): Ditto.
13758 (*movsf_internal): Ditto.
13759
13760 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
13761
13762 PR inline-asm/55934
13763 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
13764 that have operands with impossible constraints.
13765 Add a FIXME for a speed-up opportunity.
13766 * lra-constraints.c (process_alt_operands): Verify that a class
13767 selected from constraints on asms is valid for the operand mode.
13768 (curr_insn_transform): Remove incorrect comment.
13769
13770 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
13771
13772 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
13773 TOC operand is a valid symbol ref in the constant pool.
13774
13775 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
13776
13777 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
13778
13779 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
13780
13781 PR target/54222
13782 * config/avr/stdfix.h: New file.
13783 * t-avr (stdfix-gcc.h): New rule to build it.
13784 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
13785
13786 2013-01-23 Kostya Serebryany <kcc@google.com>
13787
13788 * config/darwin.h: remove dependency on
13789 CoreFoundation (asan on Mac OS).
13790
13791 2013-01-23 Jakub Jelinek <jakub@redhat.com>
13792
13793 PR target/49069
13794 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
13795 instead of cmpdi_operand for first comparison operand.
13796 Don't assert that comparison operands aren't both constants.
13797
13798 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
13799
13800 * doc/install.texi (Downloading the Source): Update references to
13801 downloading separate components.
13802
13803 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
13804
13805 * doc/extend.texi (__int128): Improve grammar.
13806
13807 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
13808
13809 PR target/56028
13810 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
13811 alternative to (o,r).
13812 (*movdi_internal_rex64): Remove (!o,n) alternative.
13813 (DImode immediate->memory splitter): Remove.
13814 (DImode immediate->memory peephole2): Remove.
13815 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
13816 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
13817 alternative to (!o,*r).
13818 (*movtf_internal_sse): New pattern.
13819 (*movxf_internal_rex64): New pattern.
13820 (*movxf_internal): Disable for TARGET_64BIT.
13821 (*movdf_internal_rex64): Remove (!o,F) alternative.
13822
13823 2013-01-22 Jakub Jelinek <jakub@redhat.com>
13824
13825 PR middle-end/56074
13826 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
13827 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
13828 * tree-vect-loop-manip.c (find_loop_location): Also ignore
13829 stmt locations where LOCATION_LOCUS of the stmt location is
13830 UNKNOWN_LOCATION or BUILTINS_LOCATION.
13831
13832 PR target/55686
13833 * config/i386/i386.md (UNSPEC_STOS): New.
13834 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
13835 *strsetqi_1): Add UNSPEC_STOS.
13836
13837 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
13838
13839 PR c++/56067
13840 * doc/invoke.texi: Remove left over -Wsynth example.
13841
13842 2013-01-21 Jakub Jelinek <jakub@redhat.com>
13843
13844 PR tree-optimization/56051
13845 * fold-const.c (fold_binary_loc): Don't fold
13846 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
13847 a narrowing conversion, or widening conversion from signed
13848 to unsigned.
13849
13850 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
13851
13852 PR rtl-optimization/56023
13853 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
13854 dependent on debug instruction.
13855
13856 2013-01-21 Martin Jambor <mjambor@suse.cz>
13857
13858 PR middle-end/56022
13859 * function.c (allocate_struct_function): Call
13860 invoke_set_current_function_hook earlier.
13861
13862 2013-01-21 Jakub Jelinek <jakub@redhat.com>
13863
13864 * reload1.c (init_reload): Only initialize reload_obstack
13865 during the first call.
13866
13867 2013-01-21 Marek Polacek <polacek@redhat.com>
13868
13869 * cfgloop.c (verify_loop_structure): Fix up grammar.
13870
13871 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
13872
13873 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
13874 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
13875
13876 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13877
13878 PR target/56058
13879 * config/arm/marvell-pj4.md: Update copyright year.
13880 Fix up use of alu to alu_reg and simple_alu_imm.
13881
13882 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
13883
13884 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
13885
13886 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
13887
13888 PR target/55433
13889 * lra-constraints.c (curr_insn_transform): Don't reuse original
13890 insn for secondary memory move when memory mode should be different.
13891
13892 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13893
13894 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
13895 atomic_storedi_1): New patterns.
13896
13897 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13898
13899 btver2 pipeline descriptions.
13900 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
13901 descriptions.
13902 * config/i386/i386.md (btver2_decode): New type attributes.
13903 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
13904 type attributes.
13905 * config/i386/btver2.md: New file describing btver2 pipelines.
13906
13907 2013-01-19 Andrew Pinski <apinski@cavium.com>
13908
13909 PR tree-optimization/52631
13910 * tree-ssa-sccvn (visit_use): Before looking up the original
13911 statement, try looking up the simplified expression.
13912
13913 2013-01-19 Anthony Green <green@moxielogic.com>
13914
13915 * config/moxie/moxie.c (moxie_expand_prologue): Set
13916 current_function_static_stack_size.
13917
13918 2013-01-18 Jakub Jelinek <jakub@redhat.com>
13919
13920 PR tree-optimization/56029
13921 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
13922 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
13923
13924 2013-01-18 Sharad Singhai <singhai@google.com>
13925
13926 PR tree-optimization/55995
13927 * dumpfile.c (dump_loc): Print location only if available.
13928 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
13929
13930 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
13931
13932 PR target/55433
13933 * lra-constraints.c (curr_insn_transform): Reuse original insn for
13934 secondary memory move.
13935 (inherit_reload_reg): Use rclass instead of cl for
13936 check_secondary_memory_needed_p.
13937
13938 2013-01-18 Jakub Jelinek <jakub@redhat.com>
13939
13940 PR middle-end/56015
13941 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
13942 the case where writing real complex part of target modifies op1.
13943
13944 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
13945
13946 * config/aarch64/aarch64-simd.md
13947 (aarch64_vcond_internal<mode>): Handle unordered cases.
13948 * config/aarch64/iterators.md (v_cmp_result): New.
13949
13950 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
13951 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13952
13953 * config/arm/marvell-pj4.md: New file.
13954 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
13955 * config/arm/arm.md (generic_sched): Add marvell_pj4.
13956 (generic_vfp): Likewise.
13957 * config/arm/arm-cores.def: Add marvell-pj4.
13958 * config/arm/arm-tune.md: Regenerate.
13959 * config/arm/arm-tables.opt: Regenerate.
13960 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
13961 * doc/invoke.texi: Document marvell-pj4.
13962
13963 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
13964
13965 * config/aarch64/arm_neon.h: Map scalar types to standard types.
13966
13967 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
13968
13969 PR debug/54114
13970 PR debug/54402
13971 PR debug/49888
13972 * var-tracking.c (negative_power_of_two_p): New.
13973 (global_get_addr_cache, local_get_addr_cache): New.
13974 (get_addr_from_global_cache, get_addr_from_local_cache): New.
13975 (vt_canonicalize_addr): Rewrite using the above. Adjust the
13976 heading comment.
13977 (vt_stack_offset_p): Remove.
13978 (vt_canon_true_dep): Always canonicalize loc's address.
13979 (clobber_overlapping_mems): Make sure we have a MEM.
13980 (local_get_addr_clear_given_value): New.
13981 (val_reset): Clear local cached entries.
13982 (compute_bb_dataflow): Create and release the local cache.
13983 Disable duplicate MEMs clobbering.
13984 (emit_notes_in_bb): Clobber MEMs likewise.
13985 (vt_emit_notes): Create and release the local cache.
13986 (vt_initialize, vt_finalize): Create and release the global
13987 cache, respectively.
13988 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
13989
13990 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
13991
13992 PR libmudflap/53359
13993 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
13994 not found in the symtab.
13995
13996 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
13997
13998 PR debug/56006
13999 PR rtl-optimization/55547
14000 PR rtl-optimization/53827
14001 PR debug/53671
14002 PR debug/49888
14003 * alias.c (offset_overlap_p): New, factored out of...
14004 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
14005 the conservative special case for symbolic constants. Don't
14006 adjust zero sizes on alignment.
14007
14008 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
14009
14010 PR rtl-optimization/52573
14011 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
14012 REG_UNUSED for the same register.
14013
14014 2013-01-17 Richard Biener <rguenther@suse.de>
14015 Marek Polacek <polacek@redhat.com>
14016
14017 PR rtl-optimization/55833
14018 * loop-unswitch.c (unswitch_loops): Move loop verification...
14019 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
14020 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
14021 Set it to true when we're removing a loop from hierarchy tree in
14022 an irreducible region.
14023 (fix_bb_placements): Adjust caller.
14024 (fix_loop_placements): Likewise.
14025
14026 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
14027
14028 * config/avr/builtins.def (DEF_BUILTIN): Factor out
14029 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
14030 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
14031 Remove ID. Adjust comments.
14032 * config/avr/avr-c.c (avr_builtin_name): Remove.
14033 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
14034 * config/avr/avr.c (avr_tolower): New static function.
14035 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
14036 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
14037 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
14038 default expansion.
14039
14040 2013-01-17 Jan Hubicka <jh@suse.cz>
14041
14042 PR tree-optimization/55273
14043 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
14044
14045 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
14046
14047 PR target/55981
14048 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
14049 store through atomic_store<mode>_1.
14050 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
14051
14052 2013-01-17 Martin Jambor <mjambor@suse.cz>
14053
14054 PR tree-optimizations/55264
14055 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
14056 for virtual methods.
14057 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
14058 virtual methods before inlining is over.
14059 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
14060 virtual functions.
14061 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
14062 non-virtual.
14063
14064 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
14065
14066 PR rtl-optimization/56005
14067 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
14068 pending reads for prefetch.
14069
14070 2013-01-16 Ian Bolton <ian.bolton@arm.com>
14071
14072 * config/aarch64/aarch64.md
14073 (*cstoresi_neg_uxtw): New pattern.
14074 (*cmovsi_insn_uxtw): New pattern.
14075 (*<optab>si3_uxtw): New pattern.
14076 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
14077 (*<optab>si3_insn_uxtw): New pattern.
14078 (*bswapsi2_uxtw): New pattern.
14079
14080 2013-01-16 Richard Biener <rguenther@suse.de>
14081
14082 * tree-inline.c (tree_function_versioning): Remove set but
14083 never used variable.
14084
14085 2013-01-16 Richard Biener <rguenther@suse.de>
14086
14087 PR tree-optimization/55964
14088 * tree-flow.h (rename_variables_in_loop): Remove.
14089 (rename_variables_in_bb): Likewise.
14090 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
14091 (copy_loop_before): Adjust and delete update-ssa status.
14092 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
14093 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
14094 (rename_variables_in_loop): Remove.
14095 (slpeel_update_phis_for_duplicate_loop): Likewise.
14096 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
14097 use available cfg machinery instead of duplicating it.
14098 Update PHI nodes and perform poor-mans SSA update here.
14099 (slpeel_tree_peel_loop_to_edge): Adjust.
14100
14101 2013-01-16 Richard Biener <rguenther@suse.de>
14102
14103 PR tree-optimization/54767
14104 PR tree-optimization/53465
14105 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
14106 (vrp_visit_phi_node): For PHI arguments coming via backedges
14107 drop all symbolical range information.
14108 (execute_vrp): Compute backedges.
14109
14110 2013-01-16 Richard Biener <rguenther@suse.de>
14111
14112 * doc/install.texi: Update CLooG and ISL requirements to
14113 0.18.0 and 0.11.1.
14114
14115 2013-01-16 Christian Bruel <christian.bruel@st.com>
14116
14117 PR target/55301
14118 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
14119 (broken_move): Handle UNSPECV_SP_SWITCH_B.
14120 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
14121
14122 2013-01-16 DJ Delorie <dj@redhat.com>
14123
14124 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
14125 (UNSPECV_SP_SWITCH_E): New.
14126 (sp_switch_1): Change to an unspec.
14127 (sp_switch_2): Change to an unspec. Don't use post-inc when we
14128 replace $r15.
14129
14130 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
14131
14132 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
14133 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
14134 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
14135 (expand_mem_thread_fence): Ditto.
14136 (expand_mem_signal_fence): Ditto.
14137 (expand_atomic_load): Ditto.
14138 (expand_atomic_store): Ditto.
14139
14140 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
14141
14142 PR rtl-optimization/55547
14143 PR rtl-optimization/53827
14144 PR debug/53671
14145 PR debug/49888
14146 * alias.c (memrefs_conflict_p): Set sizes to negative after
14147 AND adjustments.
14148
14149 2013-01-15 Jakub Jelinek <jakub@redhat.com>
14150
14151 PR target/55940
14152 * function.c (thread_prologue_and_epilogue_insns): Always
14153 add crtl->drap_reg to set_up_by_prologue.set, even if
14154 stack_realign_drap is false.
14155
14156 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14157
14158 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
14159 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
14160 *call): Fix indention.
14161
14162 2013-01-15 Tom de Vries <tom@codesourcery.com>
14163
14164 PR target/55876
14165 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
14166 Update comment.
14167
14168 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
14169
14170 PR rtl-optimization/55153
14171 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
14172
14173 2013-01-15 Martin Jambor <mjambor@suse.cz>
14174
14175 PR tree-optimization/55920
14176 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
14177 accesses as grp_to_be_debug_replaced.
14178
14179 2013-01-15 Jakub Jelinek <jakub@redhat.com>
14180
14181 PR tree-optimization/55920
14182 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
14183 there is non-useless type conversion needed from debug rhs to lhs,
14184 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
14185
14186 2013-01-15 Joseph Myers <joseph@codesourcery.com>
14187 Mikael Pettersson <mikpe@it.uu.se>
14188
14189 PR target/43961
14190 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
14191 Thumb.
14192 (ASM_OUTPUT_CASE_LABEL): Remove.
14193 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
14194 * final.c (shorten_branches): Update alignment of labels before
14195 jump tables if CASE_VECTOR_SHORTEN_MODE.
14196
14197 2013-01-15 Richard Biener <rguenther@suse.de>
14198
14199 PR bootstrap/55961
14200 * system.h: Do not include gmp.h for building host tools.
14201
14202 2013-01-15 Richard Biener <rguenther@suse.de>
14203
14204 PR middle-end/55882
14205 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
14206 account for bitpos when computing alignment.
14207
14208 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
14209
14210 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
14211 (ix86_target_macros_internal): Likewise.
14212
14213 * config/i386/i386.c (m_CORE2I7): Removed.
14214 (m_CORE_HASWELL): New macro.
14215 (m_CORE_ALL): Likewise.
14216 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
14217 (initial_ix86_arch_features): Likewise.
14218 (processor_target_table): Initializations for Core avx2.
14219 (cpu_names): New names "core-avx2".
14220 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
14221 PROCESSOR_CORE_HASWELL.
14222 (ix86_issue_rate): New case.
14223 (ia32_multipass_dfa_lookahead): Likewise.
14224 (ix86_sched_init_global): Likewise.
14225
14226 * config/i386/i386.h (TARGET_HASWELL): New macro.
14227 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
14228 (processor_type): New PROCESSOR_HASWELL.
14229
14230 2013-01-15 Jakub Jelinek <jakub@redhat.com>
14231
14232 PR tree-optimization/55955
14233 * tree-vect-loop.c (vectorizable_reduction): Give up early on
14234 *SHIFT_EXPR and *ROTATE_EXPR codes.
14235
14236 PR tree-optimization/48766
14237 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
14238 -ftrapv disable -fwrapv.
14239
14240 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
14241
14242 PR target/55974
14243 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
14244 etc. to 1 and not to __flash.
14245 Use LL suffix for __INT24_MAX__ with -mint8.
14246 Use ULL suffix for __UINT24_MAX__ with -mint8.
14247
14248 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
14249
14250 * config/avr/avr-arch.h
14251 (struct base_arch_s): Use typedef avr_arch_t instead.
14252 (struct arch_info_s): Use typedef avr_arch_info_t instead.
14253 (struct mcu_type_s): Use typedef avr_mcu_t instead.
14254 * config/avr/avr.c: Same.
14255 * config/avr/avr-devices.c: Same.
14256 * config/avr/driver-avr.c: Same.
14257 * config/avr/gen-avr-mmcu-texi.c: Same.
14258 * config/avr/avr-mcus.def: Adjust comment.
14259
14260 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
14261
14262 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
14263 * config/aarch64/iterators.md (VALLDI): New.
14264
14265 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
14266 Andi Kleen <ak@linux.intel.com>
14267
14268 PR target/55948
14269 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
14270 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
14271 memmodel flag.
14272
14273 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
14274
14275 * config/avr/avr-stdint.h: Remove trailing blanks.
14276 * config/avr/avr-log.h: Same.
14277 * config/avr/avr-arch.h: Same.
14278 * config/avr/avr-devices.c: Same.
14279 * config/avr/avr-dimode.md: Same.
14280 * config/avr/predicates.md: Same.
14281 * config/avr/avr-c.c: Same. And fix typo.
14282
14283 * config/avr/avr-protos.h: Same. And:
14284 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
14285 (init_cumulative_args): Rename to avr_init_cumulative_args.
14286 (expand_prologue): Rename to avr_expand_prologue.
14287 (expand_epilogue): Rename to avr_expand_epilogue.
14288 (adjust_insn_length): Rename to avr_adjust_insn_length.
14289 (notice_update_cc): Rename to avr_notice_update_cc.
14290 (final_prescan_insn): Rename to avr_final_prescan_insn.
14291 * config/avr/avr.c: Same.
14292 * config/avr/avr.h: Same.
14293 * config/avr/avr.md: Remove trailing blanks.
14294 (prologue): Use avr_expand_prologue.
14295 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
14296
14297 2013-01-14 Richard Biener <rguenther@suse.de>
14298
14299 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
14300 verify_location, collect_subblocks): New functions.
14301 (verify_gimple_in_cfg): Verify that locations only reference
14302 BLOCKs in the functions BLOCK tree.
14303
14304 2013-01-14 Richard Biener <rguenther@suse.de>
14305
14306 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
14307 PHI argument.
14308 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
14309 unshare reference.
14310 (insert_out_of_ssa_copy_on_edge): Likewise.
14311 (rewrite_close_phi_out_of_ssa): Likewise.
14312 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
14313 debug expressions.
14314 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
14315 propagated constants.
14316 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
14317 can not be shared.
14318
14319 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
14320
14321 * config/avr/avr-modes.def: Add GPL copyright notice.
14322
14323 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
14324
14325 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
14326 MEMMODEL_MASK to determine memory model.
14327 (atomic_store<mode>): Ditto from operands[2].
14328 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
14329
14330 2013-01-13 Jakub Jelinek <jakub@redhat.com>
14331
14332 PR fortran/55935
14333 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
14334 (fold_gimple_assign): Don't call unshare_expr here.
14335 (fold_ctor_reference): Call unshare_expr.
14336
14337 2013-01-13 Terry Guo <terry.guo@arm.com>
14338
14339 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
14340 * doc/fragments.texi: Document MULTILIB_REUSE.
14341 * gcc.c (multilib_reuse): New internal spec.
14342 (set_multilib_dir): Also search multilib from multilib_reuse.
14343 * genmultilib (tmpmultilib3): Refactor code.
14344 (tmpmultilib4): Ditto.
14345 (multilib_reuse): New multilib argument.
14346
14347 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
14348
14349 * Makefile.in: Update copyright.
14350
14351 2013-01-12 Tom de Vries <tom@codesourcery.com>
14352
14353 PR middle-end/55890
14354 * calls.c (expand_call): Check if arg_nr is valid.
14355
14356 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
14357
14358 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
14359 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
14360 documentation. Add missing '__' in front of
14361 __builtin_ia32_packssdw256.
14362
14363 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14364
14365 PR target/55719
14366 * config/s390/s390.c (s390_preferred_reload_class): Do not return
14367 NO_REGS for larl operands.
14368 (s390_reload_larl_operand): Use s390_load_address instead of
14369 emit_move_insn.
14370
14371 2013-01-11 Richard Biener <rguenther@suse.de>
14372
14373 * tree-cfg.c (verify_node_sharing_1): Split out from ...
14374 (verify_node_sharing): ... here.
14375 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
14376
14377 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
14378
14379 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
14380 Substitute TREECHECKING.
14381 * configure: Regenerate.
14382 * Makefile.in (TREECHECKING): New.
14383
14384 2013-01-11 Richard Guenther <rguenther@suse.de>
14385
14386 PR tree-optimization/44061
14387 * tree-vrp.c (extract_range_basic): Compute zero as
14388 value-range for __builtin_constant_p of function parameters.
14389
14390 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
14391
14392 Update copyright years.
14393
14394 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
14395
14396 PR rtl-optimization/55672
14397 * lra-eliminations.c (mark_not_eliminable): Permit addition with
14398 const to be eliminable.
14399
14400 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
14401
14402 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
14403 * configure: Regenerate.
14404
14405 2013-01-10 Richard Biener <rguenther@suse.de>
14406
14407 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
14408
14409 2013-01-10 Richard Biener <rguenther@suse.de>
14410
14411 PR bootstrap/55792
14412 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
14413 locations for virtual PHI arguments.
14414 (rewrite_update_phi_arguments): Likewise.
14415
14416 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
14417
14418 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
14419 on to assembler.
14420
14421 2013-01-10 Jakub Jelinek <jakub@redhat.com>
14422
14423 PR tree-optimization/55921
14424 * tree-complex.c (expand_complex_asm): New function.
14425 (expand_complex_operations_1): Call it for GIMPLE_ASM.
14426
14427 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14428
14429 PR target/55718
14430 * config/s390/s390.c (s390_symref_operand_p)
14431 (s390_loadrelative_operand_p): Merge the two functions.
14432 (s390_check_qrst_address, print_operand_address): Add parameters
14433 to s390_loadrelative_operand_p invokation.
14434 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
14435 (s390_reload_larl_operand, s390_secondary_reload): Use
14436 s390_loadrelative_operand_p instead of s390_symref_operand_p.
14437 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
14438
14439 2013-01-09 Mike Stump <mikestump@comcast.net>
14440
14441 * dse.c (record_store): Remove unnecessary assert.
14442
14443 2013-01-09 Jan Hubicka <jh@suse.cz>
14444
14445 PR tree-optimization/55569
14446 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
14447 * cfgloop.h (scale_loop_profile): Likewise.
14448
14449 2013-01-09 Jan Hubicka <jh@suse.cz>
14450
14451 PR lto/45375
14452 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
14453 functions.
14454 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
14455
14456 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
14457
14458 PR middle-end/55114
14459 * expr.h (maybe_emit_group_store): Declare.
14460 * expr.c (maybe_emit_group_store): New function.
14461 * builtins.c (expand_builtin_int_roundingfn): Call it.
14462 (expand_builtin_int_roundingfn_2): Likewise.
14463
14464 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
14465
14466 PR rtl-optimization/55829
14467 * lra-constraints.c (match_reload): Add code for absent output.
14468 (curr_insn_transform): Add code for reloads of matched inputs
14469 without output.
14470
14471 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
14472
14473 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
14474 attribute of movddup insn to DF.
14475 (*vec_interleave_lowv2df): Ditto.
14476 (vec_dupv2df): Ditto.
14477
14478 2013-01-09 Jan Hubicka <jh@suse.cz>
14479
14480 PR tree-optimiation/55875
14481 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
14482 EVERY_ITERATION parameter.
14483 (number_of_iterations_exit): Check if exit is executed every iteration.
14484 (idx_infer_loop_bounds): Similarly here.
14485 (n_of_executions_at_most): Simplify
14486 to only test for cases where statement is dominated by the
14487 particular bound; handle correctly the "postdominance" test.
14488 (scev_probably_wraps_p): Use max loop iterations info
14489 as a global bound first.
14490
14491 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
14492 Nick Clifton <nickc@redhat.com>
14493
14494 * config/v850/v850.md (cbranchsf4): New pattern.
14495 (cstoresf4): New pattern.
14496 (cbranchdf4): New pattern.
14497 (cstoredf4): New pattern.
14498 (movsicc): Disallow floating point comparisons.
14499 (cmpsf_le_insn): Fix order of operators.
14500 (cmpsf_lt_insn): Likewise.
14501 (cmpsf_eq_insn): Likewise.
14502 (cmpdf_le_insn): Likewise.
14503 (cmpdf_lt_insn): Likewise.
14504 (cmpdf_eq_insn): Likewise.
14505 (cmpsf_ge_insn): Use LE comparison.
14506 (cmpdf_ge_insn): Likewise.
14507 (cmpsf_gt_insn): Use LT comparison.
14508 (cmpdf_gt_insn): Likewise.
14509 (cmpsf_ne_insn): Delete pattern.
14510 (cmpdf_ne_insn): Delete pattern.
14511 * config/v850/v850.c (v850_gen_float_compare): Use
14512 gen_cmpdf_eq_insn for NE comparison.
14513 (v850_float_z_comparison_operator)
14514 (v850_float_nz_comparison_operator): Move from here ...
14515 * config/v850/predicates.md: ... to here. Move GT and GE
14516 comparisons into v850_float_z_comparison_operator.
14517 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
14518 Delete prototype.
14519 (v850_float_nz_comparison_operator): Likewise.
14520
14521 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14522
14523 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
14524 with calls to gen_insvsi/gen_insvdi.
14525
14526 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14527
14528 * config/i386/i386.c (initial_ix86_tune_features): Set up
14529 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
14530
14531 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
14532 Jakub Jelinek <jakub@redhat.com>
14533
14534 PR tree-optimization/48189
14535 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
14536 If nitercst is 0, don't predict the exit edge.
14537
14538 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14539
14540 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
14541 in asm_fprintf with reg_names.
14542 (aarch64_print_operand_address): Likewise.
14543 (aarch64_return_addr): Likewise.
14544 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
14545
14546 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14547
14548 * config/pa/pa.h (VAL_U6_BITS_P): Define.
14549 (INT_U6_BITS): Likewise.
14550 * config/pa/predicates.md (uint6_operand): New predicate.
14551 (shift5_operand, shift6_operand): Likewise.
14552 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
14553 arith32_operand.
14554 (lshrdi3): Use shift6_operand.
14555 (shrpsi4, shrpdi4): New insn patterns.
14556 (extzv): Delete expander.
14557 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
14558 predicates in unamed zero extract patterns. Tighten common constraint.
14559 (extv): Delete expander.
14560 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
14561 predicates in unamed sign extract patterns. Tighten common constraint.
14562 (insv): Delete expander.
14563 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
14564 predicates in unamed insert patterns. Tighten common constraint.
14565 Change uint32_operand predicate to uint6_operand predicate in unamed
14566 DImode pattern to insert constant values of type 1...1xxxx.
14567
14568 2013-01-04 Jan Hubicka <jh@suse.cz>
14569
14570 PR tree-optimization/55823
14571 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
14572 issue.
14573
14574 2013-01-08 Jakub Jelinek <jakub@redhat.com>
14575 Uros Bizjak <ubizjak@gmail.com>
14576
14577 PR rtl-optimization/55845
14578 * df-problems.c (can_move_insns_across): Stop scanning at
14579 volatile_insn_p source instruction or give up if
14580 across_from .. across_to range contains any volatile_insn_p
14581 instructions.
14582
14583 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
14584
14585 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
14586 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
14587 Declare.
14588 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
14589 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
14590
14591 2013-01-08 Jakub Jelinek <jakub@redhat.com>
14592
14593 PR fortran/55341
14594 * asan.c (asan_clear_shadow): New function.
14595 (asan_emit_stack_protection): Use it.
14596
14597 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
14598
14599 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
14600 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
14601 with tab instead of space.
14602
14603 2013-01-08 Nick Clifton <nickc@redhat.com>
14604
14605 * config/rl78/rl78.c (rl78_expand_prologue): Always select
14606 register bank 0 at the start of an interrupt handler.
14607 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
14608 MDBH registers.
14609
14610 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
14611
14612 * config/aarch64/aarch64-simd.md
14613 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
14614 (aarch64_simd_bsl): Likewise.
14615 (aarch64_vcond_internal<mode>): Likewise.
14616 (vcond<mode><mode>): Likewise.
14617 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
14618 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
14619
14620 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
14621
14622 * config/aarch64/aarch64-builtins.c
14623 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
14624
14625 2013-01-08 Martin Jambor <mjambor@suse.cz>
14626
14627 PR debug/55579
14628 * tree-sra.c (analyze_access_subtree): Return true also after
14629 potentially creating a debug-only replacement.
14630
14631 2013-01-08 Jakub Jelinek <jakub@redhat.com>
14632
14633 PR middle-end/55890
14634 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
14635
14636 PR tree-optimization/54120
14637 * tree-vrp.c (range_fits_type_p): Don't allow
14638 src_precision < precision from signed vr to unsigned_p
14639 if vr->min or vr->max is negative.
14640 (simplify_float_conversion_using_ranges): Test can_float_p
14641 against CODE_FOR_nothing.
14642
14643 2013-01-08 Jakub Jelinek <jakub@redhat.com>
14644 Richard Biener <rguenther@suse.de>
14645
14646 PR middle-end/55851
14647 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
14648 types instead of just INTEGER_TYPE types.
14649
14650 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
14651
14652 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
14653 TF_SIZE): Define.
14654
14655 2013-01-07 Steve Ellcey <sellcey@mips.com>
14656
14657 PR target/42661
14658 * config/mips/mips.opt: Change mad to mmad to match documentation.
14659
14660 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
14661
14662 PR target/55897
14663 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
14664 .progmemx.data now.
14665
14666 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
14667
14668 PR target/55897
14669 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
14670 (avr_addrspace_t): Add .section_name field.
14671 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
14672 array size.
14673 (avr_addrspace): Same. Initialize .section_name. Remove last
14674 NULL entry. Put __memx into .progmemx.data.
14675 (progmem_section_prefix): Remove.
14676 (avr_asm_init_sections): No need to initialize progmem_section.
14677 (avr_asm_named_section): Use avr_addrspace[].section_name to get
14678 section name prefix.
14679 (avr_asm_select_section): Ditto. And use get_unnamed_section to
14680 retrieve the progmem section.
14681 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
14682 boundary to run over avr_addrspace[].
14683 (avr_register_target_pragmas): Ditto.
14684
14685 2013-01-06 Jakub Jelinek <jakub@redhat.com>
14686
14687 * varasm.c (output_constant_def_contents): For asan_protect_global
14688 protected strings, adjust DECL_ALIGN if needed, before testing for
14689 anchored symbols.
14690 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
14691 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
14692 normal decls.
14693 (output_object_block): For asan protected decls, emit asan padding
14694 after their contents.
14695 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
14696 (asan_finish_file): Test it here instead.
14697
14698 2013-01-07 Nick Clifton <nickc@redhat.com>
14699 Matthias Klose <doko@debian.org>
14700 Doug Kwan <dougkwan@google.com>
14701 H.J. Lu <hongjiu.lu@intel.com>
14702
14703 PR driver/55470
14704 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
14705
14706 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
14707
14708 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
14709
14710 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
14711
14712 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
14713
14714 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
14715
14716 PR target/54461
14717 * doc/install.texi (Cross-Compiler-Specific Options): Document
14718 --with-avrlibc.
14719
14720 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
14721
14722 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
14723 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
14724 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
14725 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
14726 vqmovun_high_s64): Fix source operand number and update copyright.
14727
14728 2013-01-07 Richard Biener <rguenther@suse.de>
14729
14730 PR middle-end/55890
14731 * gimple.h (gimple_call_builtin_p): New overload.
14732 * gimple.c (validate_call): New function.
14733 (gimple_call_builtin_p): Likewise.
14734 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14735 Use gimple_call_builtin_p.
14736 (find_func_clobbers): Likewise.
14737 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
14738 (strlen_optimize_stmt): Likewise.
14739
14740 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
14741
14742 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
14743 (vld1q_dup_*): Likewise.
14744 (vld1_*): Likewise.
14745 (vld1q_*): Likewise.
14746 (vld1_lane_*): Likewise.
14747 (vld1q_lane_*): Likewise.
14748
14749 2013-01-07 Richard Biener <rguenther@suse.de>
14750
14751 * lto-streamer.h (LTO_minor_version): Bump to 2.
14752
14753 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
14754
14755 * config/aarch64/aarch64-protos.h
14756 (aarch64_const_double_zero_rtx_p): Rename to...
14757 (aarch64_float_const_zero_rtx_p): ...this.
14758 (aarch64_float_const_representable_p): New.
14759 (aarch64_output_simd_mov_immediate): Likewise.
14760 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
14761 move immediate case.
14762 * config/aarch64/aarch64.c
14763 (aarch64_const_double_zero_rtx_p): Rename to...
14764 (aarch64_float_const_zero_rtx_p): ...this.
14765 (aarch64_print_operand): Allow printing of new constants.
14766 (aarch64_valid_floating_const): New.
14767 (aarch64_legitimate_constant_p): Check for valid floating-point
14768 constants.
14769 (aarch64_simd_valid_immediate): Likewise.
14770 (aarch64_vect_float_const_representable_p): New.
14771 (aarch64_float_const_representable_p): Likewise.
14772 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
14773 (aarch64_output_simd_mov_immediate): New.
14774 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
14775 (*movdf_aarch64): Likewise.
14776 * config/aarch64/constraints.md (Ufc): New.
14777 (Y): call aarch64_float_const_zero_rtx.
14778 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
14779
14780 2013-01-07 Richard Biener <rguenther@suse.de>
14781
14782 PR tree-optimization/55888
14783 PR tree-optimization/55862
14784 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
14785 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
14786 not if it is contained therein.
14787
14788 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
14789
14790 * config/avr/t-avr: Typo.
14791
14792 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
14793
14794 PR55243
14795 * config/avr/t-avr: Don't automatically rebuild
14796 $(srcdir)/config/avr/t-multilib
14797 $(srcdir)/config/avr/avr-tables.opt
14798 $(srcdir)/doc/avr-mmcu.texi
14799 (avr-mcus): New phony target to build them on request.
14800 (s-avr-mlib, s-avr-mmcu-texi): Remove.
14801 * avr/avr-mcus.def: Adjust comments.
14802
14803 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
14804
14805 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
14806
14807 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
14808
14809 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
14810
14811 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
14812
14813 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
14814
14815 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
14816
14817 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
14818 to generate profiling.
14819 * config/rs6000/aix64.h (LIB_SPEC): Same.
14820
14821 2013-01-04 Andrew Pinski <apinski@cavium.com>
14822
14823 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
14824 New function.
14825 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
14826
14827 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
14828
14829 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
14830 unconditionally.
14831 (ix86_expand_move): Ditto.
14832 (ix86_zero_extend_to_Pmode): Ditto.
14833 (ix86_expand_call): Ditto.
14834 (ix86_expand_special_args_builtin): Ditto.
14835 (ix86_expand_builtin): Ditto.
14836
14837 2013-01-04 Richard Biener <rguenther@suse.de>
14838
14839 PR tree-optimization/55862
14840 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
14841 translating them through PHI nodes.
14842
14843 2013-01-04 Martin Jambor <mjambor@suse.cz>
14844
14845 PR tree-optimization/55755
14846 * tree-sra.c (sra_modify_assign): Do not check that an access has no
14847 children when trying to avoid producing a VIEW_CONVERT_EXPR.
14848
14849 2013-01-04 Marek Polacek <polacek@redhat.com>
14850
14851 PR middle-end/55859
14852 * opts.c (default_options_optimization): Clarify error message.
14853
14854 2013-01-04 Richard Biener <rguenther@suse.de>
14855
14856 PR middle-end/55863
14857 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
14858 reassociation.
14859
14860 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14861
14862 PR target/53789
14863 * config/pa/pa.md (movsi): Revert previous change.
14864 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
14865 references.
14866
14867 2013-01-03 Richard Henderson <rth@redhat.com>
14868
14869 * config/i386/i386.c (ix86_expand_move): Always assign to op1
14870 after eliminating TLS symbols.
14871
14872 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
14873
14874 PR bootstrap/50167
14875 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
14876 * graphite-poly.c (debug_gmp_value): Likewise.
14877
14878 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
14879
14880 PR target/55712
14881 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
14882 selected code model, define __code_mode_small__, __code_model_medium__,
14883 __code_model_large__, __code_model_32__ or __code_model_kernel__.
14884 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
14885 xchg temporary register with %k. Declare temporary register as
14886 early clobbered.
14887 [__x86_64__]: For medium and large code models, preserve %rbx register.
14888
14889 2013-01-03 Richard Biener <rguenther@suse.de>
14890
14891 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
14892 (dump_subscript): Adjust.
14893 (finalize_ddr_dependent): Do not dump redundant info.
14894 (analyze_siv_subscript): Adjust.
14895 (subscript_dependence_tester): Likewise.
14896 (compute_affine_dependence): Likewise.
14897
14898 2013-01-03 Richard Biener <rguenther@suse.de>
14899
14900 Revert
14901 2013-01-03 Richard Biener <rguenther@suse.de>
14902
14903 PR tree-optimization/55857
14904 * tree-vect-stmts.c (vectorizable_load): Do not setup
14905 re-alignment for invariant loads.
14906
14907 2013-01-02 Richard Biener <rguenther@suse.de>
14908
14909 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
14910 invariant load do not generate a vector load from the scalar location.
14911
14912 2013-01-03 Richard Biener <rguenther@suse.de>
14913
14914 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
14915 for not vectorizing.
14916 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
14917 not build INDIRECT_REFs, call get_name once only.
14918 (vect_create_data_ref_ptr): Likewise. Dump base object kind
14919 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
14920
14921 2013-01-03 Richard Biener <rguenther@suse.de>
14922
14923 PR tree-optimization/55857
14924 * tree-vect-stmts.c (vectorizable_load): Do not setup
14925 re-alignment for invariant loads.
14926
14927 2013-01-03 Richard Biener <rguenther@suse.de>
14928
14929 PR lto/55848
14930 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
14931 prefer a built-in decl.
14932
14933 2013-01-03 Jakub Jelinek <jakub@redhat.com>
14934
14935 * gcc.c (process_command): Update copyright notice dates.
14936 * gcov.c (print_version): Likewise.
14937 * gcov-dump.c (print_version): Likewise.
14938
14939 PR rtl-optimization/55838
14940 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
14941 iv0.step, iv1.step and step.
14942
14943 2013-01-03 Jakub Jelinek <jakub@redhat.com>
14944 Marc Glisse <marc.glisse@inria.fr>
14945
14946 PR tree-optimization/55832
14947 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
14948 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
14949 integer_{one,zero}_node.
14950
14951 2013-01-03 Jakub Jelinek <jakub@redhat.com>
14952
14953 PR debug/54402
14954 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
14955 * var-tracking.c (reverse_op): Don't add reverse ops to
14956 VALUEs that have already
14957 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
14958
14959 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
14960
14961 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
14962
14963 2013-01-02 Teresa Johnson <tejohnson@google.com>
14964
14965 * dumpfile.c (dump_loc): Print filename with location.
14966 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
14967 new location_t parameter to emit complete unroll message with
14968 new dump framework.
14969 (canonicalize_loop_induction_variables): Compute loops location
14970 and pass to try_unroll_loop_completely.
14971 * loop-unroll.c (report_unroll_peel): New function.
14972 (peel_loops_completely): Use new dump format with location
14973 for main dumpfile message, and invoke report_unroll_peel on success.
14974 (decide_unrolling_and_peeling): Ditto.
14975 (decide_peel_once_rolling): Remove old dumpfile message subsumed
14976 by report_unroll_peel.
14977 (decide_peel_completely): Ditto.
14978 (decide_unroll_constant_iterations): Ditto.
14979 (decide_unroll_runtime_iterations): Ditto.
14980 (decide_peel_simple): Ditto.
14981 (decide_unroll_stupid): Ditto.
14982 * cfgloop.c (get_loop_location): New function.
14983 * cfgloop.h (get_loop_location): Declare.
14984
14985 2013-01-02 Sriraman Tallam <tmsriram@google.com>
14986
14987 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
14988 NULL.
14989
14990 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14991
14992 PR middle-end/55198
14993 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
14994 BLKmode objects when EXPAND_MEMORY is specified.
14995
14996 2013-01-02 Sriraman Tallam <tmsriram@google.com>
14997
14998 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
14999 in loop predicate.
15000 (fold_builtin_cpu): Do not share cpu model decls across statements.
15001
15002 2013-01-02 Jason Merrill <jason@redhat.com>
15003
15004 PR c++/55804
15005 * tree.c (build_array_type_1): Revert earlier change.
15006
15007 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
15008
15009 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
15010 "cortex-a57".
15011 * config/aarch64/aarch64-tune.md: Re-generate.
15012
15013 2013-01-02 Richard Biener <rguenther@suse.de>
15014
15015 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
15016 invariant load do not generate a vector load from the scalar location.
15017
15018 2013-01-02 Richard Biener <rguenther@suse.de>
15019
15020 PR bootstrap/55784
15021 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
15022 * configure: Regenerate.
15023
15024 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
15025
15026 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
15027 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
15028 (expand_builtin_int_roundingfn_2): Keep the original target around
15029 for the fallback case.
15030
15031 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
15032
15033 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
15034 to be clear for sign changes.
15035
15036 2013-01-01 Jan Hubicka <jh@suse.cz>
15037
15038 * ipa-inline-analysis.c: Fix formatting.
15039
15040 2013-01-01 Jakub Jelinek <jakub@redhat.com>
15041
15042 PR tree-optimization/55831
15043 * tree-vect-loop.c (get_initial_def_for_induction): Use
15044 gsi_after_labels instead of gsi_start_bb.
15045 \f
15046 Copyright (C) 2013 Free Software Foundation, Inc.
15047
15048 Copying and distribution of this file, with or without modification,
15049 are permitted in any medium without royalty provided the copyright
15050 notice and this notice are preserved.
This page took 0.781799 seconds and 5 git commands to generate.